content stringlengths 40 137k |
|---|
"private void writeParagraphBorders(IStyle style) {\n writer.openTag(\"String_Node_Str\");\n writeBorders(style, 0, 0, 0, 0);\n writer.closeTag(\"String_Node_Str\");\n}\n"
|
"public Object convertValueBasedOnSchemaType(Object value, XMLConversionManager xmlConversionManager) {\n Object convertedValue = value;\n for (int i = 0; i < schemaTypes.size(); i++) {\n QName nextQName = (QName) schemaTypes.get(i);\n try {\n if (nextQName != null) {\n if ... |
"private void putToAllPartitionsAndWaitForCompletion(List<Map.Entry<Data, Data>>[] entriesPerPartition, ExpiryPolicy expiryPolicy, long start, Map<Data, Boolean> markers) throws ExecutionException, InterruptedException {\n Data expiryPolicyData = toData(expiryPolicy);\n List<FutureEntriesTuple> futureEntriesTuple... |
"public ArrayList<DownloadLink> decryptIt(CryptedLink param, ProgressController progress) throws Exception {\n try {\n progress.getBroadcaster().addListener(this);\n } catch (Throwable e) {\n }\n ArrayList<DownloadLink> decryptedLinks = new ArrayList<DownloadLink>();\n String parameter = param.toS... |
"public boolean apply(Game game, Ability source) {\n Permanent creature = game.getPermanentOrLKIBattlefield(getTargetPointer().getFirst(game, source));\n if (creature != null) {\n Player controller = game.getPlayer(creature.getControllerId());\n if (controller != null) {\n controller.lose... |
"public void itemDataToGemData(int data) {\n this.dataManager.set(COLOR, data);\n this.setUniformColor(data);\n this.nativeColor = data;\n this.setSkinColor(this.generateSkinColor());\n this.setHairStyle(this.generateHairStyle());\n this.setHairColor(this.generateHairColor());\n this.setGemColor(th... |
"private void useCsvReader(File file, DelimitedFileConnection delimitedFileconnection, List<ModelElement> analysisElementList) {\n int tableLimit = getLimit();\n int connLimit = JavaSqlFactory.getLimitValue(delimitedFileconnection);\n int limitValue = tableLimit < connLimit ? tableLimit : connLimit;\n int h... |
"public void start(CoprocessorEnvironment env) {\n if (env instanceof RegionCoprocessorEnvironment) {\n HTableDescriptor tableDesc = ((RegionCoprocessorEnvironment) env).getRegion().getTableDesc();\n String hTableName = tableDesc.getNameAsString();\n String prefixBytes = tableDesc.getValue(HBase... |
"public void optimize() {\n LinkedList<Double> valueQueue = new LinkedList<>();\n valueQueue.add(function.getValue());\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\" + valueQueue.getLast());\n }\n int iteration = 0;\n iterate();\n iteration += 1;\n valueQueue.add(func... |
"public void handle(final Structure structure) {\n if (structure == null) {\n addError(profile, \"String_Node_Str\");\n handler.handle(result);\n return;\n }\n try {\n CSVReader csvParser = getCsvReader(path, charset, 1);\n String[] strings;\n int i = 0;\n while... |
"public boolean isSlidingEnabled() {\n return mIsSlidingEnabled && mSlideableView != null;\n}\n"
|
"public Class loadClass(String className) throws ClassNotFoundException {\n try {\n return IReportEngine.class.getClassLoader().loadClass(className);\n } catch (ClassNotFoundException ex) {\n if (loader == null) {\n createWrappedClassLoaders();\n }\n return loader.loadClass(... |
"public boolean loadColumns(OpenJPAStateManager stateManager, BitSet fieldSet, Keyspace keyspace, MetaCache metaCache) {\n List<String> fields = new ArrayList<String>();\n StringColumnField<?> field = null;\n AbstractCollectionField<?> collectionField = null;\n Object entityId = stateManager.getObjectId();\... |
"protected int commit(final String aDatasourceId, final List<Change> aLog) throws Exception {\n for (String validatorName : validators.keySet()) {\n Collection<String> datasourcesUnderControl = validators.get(validatorName);\n if (((datasourcesUnderControl == null || datasourcesUnderControl.isEmpty()) ... |
"public void testGetTemporaryDirectoryWhenNotSet() {\n final ServletContext servletContext = getMockery().mock(ServletContext.class);\n getMockery().checking(new Expectations() {\n {\n atLeast(1).of(servletContext).getAttribute(\"String_Node_Str\");\n will(returnValue(servletTmpDir));... |
"public boolean match(final String annotationInternalName) {\n if (annotationInternalName == null) {\n return false;\n }\n return false;\n}\n"
|
"final int applyConfigurationToResourcesLocked(Configuration config) {\n if (mResConfiguration == null) {\n mResConfiguration = new Configuration();\n }\n if (!mResConfiguration.isOtherSeqNewer(config)) {\n if (DEBUG_CONFIGURATION)\n Slog.v(TAG, \"String_Node_Str\" + mResConfiguration.... |
"public Map<String, String> configIOShares(String clusterName, List<NodeEntity> targetNodes, Priority ioShares) {\n AuAssert.check(clusterName != null && targetNodes != null && !targetNodes.isEmpty());\n Callable<Void>[] storeProcedures = new Callable[targetNodes.size()];\n int i = 0;\n for (NodeEntity node... |
"public void init(CameraActivity activity, View root) {\n mActivity = activity;\n mUI = new VideoUI(activity, this, root);\n mPreferences = ComboPreferences.get(mActivity);\n if (mPreferences == null) {\n mPreferences = new ComboPreferences(mActivity);\n }\n CameraSettings.upgradeGlobalPreferen... |
"public Long configCluster(String clusterName, ClusterCreate createSpec) throws Exception {\n logger.info(\"String_Node_Str\" + clusterName);\n ClusterEntity cluster;\n if ((cluster = ClusterEntity.findClusterEntityByName(clusterName)) == null) {\n logger.error(\"String_Node_Str\" + clusterName + \"Stri... |
"public void finish(ItemRecord[] records, IProgressMonitor monitor) throws IOException, CoreException {\n ItemRecord.clear();\n IFile defFile = ResourceManager.getLibrariesFolder().getFile(DEFINITION_FILE_NAME);\n if (definitionFile != null && definitionFile.exists()) {\n File defintionFile = defFile.ge... |
"public boolean isDone(JSONObject instance) throws IncompleteException, IOException {\n String updated = instance.getString(\"String_Node_Str\");\n String state = instance.getString(\"String_Node_Str\");\n String operation = instance.getString(\"String_Node_Str\");\n if (lastModified.equals(updated) || !FIN... |
"public void onGestureTypingInput(int x, int y, long eventTime) {\n if (!getGestureTypeingEnabled())\n return;\n mGestureTypingDetector.addPoint(x, y, eventTime);\n}\n"
|
"public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n if (isDrawerOpen()) {\n closeDrawer();\n return true;\n }\n startActivity(HomeActivity.newInstance(this, R.id.nav_item_teams).setFlags(Intent.FLAG_ACTIV... |
"public InputStream getRS232InputStream() {\n try {\n if (cc == null) {\n cc = (CommConnection) Connector.open(getCommString(), Connector.READ_WRITE, true);\n }\n if (inputStream == null) {\n inputStream = cc.openInputStream();\n }\n } catch (IOException e) {\n ... |
"public static org.hl7.fhir.dstu2.model.Observation convertObservation(org.hl7.fhir.dstu3.model.Observation src) throws FHIRException {\n if (src == null)\n return null;\n org.hl7.fhir.dstu2.model.Observation tgt = new org.hl7.fhir.dstu2.model.Observation();\n copyDomainResource(src, tgt);\n for (org... |
"public IRootObject getLatestRootObject(int rootObjectId) throws RepositoryException {\n RootObjectMetaData metadata = getRootObjectCache().getRootObjectMetaData(rootObjectId);\n if (metadata == null) {\n try {\n Iterator<RootObjectMetaData> iterator = loadRootObjectMetaDatas().iterator();\n ... |
"public List<?> getEntities(EntityReference ref, Search search) {\n log.info(userInfo() + \"String_Node_Str\");\n Context context;\n try {\n context = new Context();\n } catch (SQLException ex) {\n throw new EntityException(\"String_Node_Str\", \"String_Node_Str\", 500);\n }\n UserReques... |
"private boolean isInRepeatHeader() {\n if (currentRow == null)\n return false;\n IContent rowContent = currentRow.getContent();\n if (rowContent != null) {\n IElement band = rowContent.getParent();\n if (band != null && band instanceof IBandContent) {\n int type = ((IBandConten... |
"public void open(final WindowEvent event) {\n final Shell shell = UIUtil.createDefaultShell();\n shell.setLayout(new FillLayout());\n Browser browser = new Browser(shell, SWT.NONE);\n initialize(display, browser);\n event.browser = browser;\n shell.open();\n}\n"
|
"public TopologyData getTopology() {\n return _topology;\n}\n"
|
"public static int deleteCalendarsForAccount(ContentResolver cr, Account account) {\n return Calendar.Calendars.delete(cr, WHERE_DELETE_FOR_ACCOUNT, new String[] { account.name, account.type });\n}\n"
|
"public Resource parse() throws InvalidStructureException, IOException, XmlPullParserException {\n checkNode(\"String_Node_Str\");\n String id = parser.getAttributeValue(null, \"String_Node_Str\");\n int version = parseInt(parser.getAttributeValue(null, \"String_Node_Str\"));\n Vector<ResourceLocation> loca... |
"public void flushCommits() throws IOException {\n BufferedMutator bufMutator = connection.getBufferedMutator(this.tableName);\n for (ConcurrentLinkedQueue<Mutation> buffer : bPool) {\n while (!buffer.isEmpty()) {\n Mutation m = buffer.poll();\n bufMutator.mutate(m);\n bufM... |
"public void read(ByteBuf buf) {\n List<EntityMetadataItem> items = new LinkedList<>();\n short id;\n while ((id = buf.readUnsignedByte()) != 0xFF) {\n EntityMetadataType type = EntityMetadataType.values()[id];\n Object value = null;\n switch(type) {\n case BYTE:\n ... |
"public static void test() {\n Variables variables = new Variables();\n ParameterVariables parameterVariables = new ParameterVariables(1);\n Variable multiA = variables.newSparseMultionomialVariable(\"String_Node_Str\", 10);\n Variable dirichlet = parameterVariables.newSparseDirichletParameter(\"String_Node... |
"public void attemptLogin() {\n if (loginTask != null) {\n return;\n }\n usernameEdit.setError(null);\n passwordEdit.setError(null);\n username = usernameEdit.getText().toString();\n password = passwordEdit.getText().toString();\n boolean cancel = false;\n View focusView = null;\n if (... |
"protected void updatePlotComposite(Composite plotComposite, VtkWebClient connection) throws Exception {\n refreshToolBar(toolBar);\n final String representation = getPlotRepresentation();\n boolean representationChanged = (representation != null && !representation.equals(plotRepresentation) && getPlotRepresen... |
"public String getUnits() {\n if (!StringUtil.isBlank(units))\n return units;\n String tempUnits = (String) getPropertyDefn(UNITS_PROP).getDefault();\n if (!StringUtil.isBlank(tempUnits))\n return tempUnits;\n return getSession().getUnits();\n}\n"
|
"protected void configure() {\n String persistenceUnitName = ninjaProperties.get(NinjaConstant.PERSISTENCE_UNIT_NAME);\n if (persistenceUnitName != null) {\n String connectionUrl = ninjaProperties.get(NinjaConstant.DB_CONNECTION_URL);\n String connectionUsername = ninjaProperties.get(NinjaConstant.D... |
"public static void modifyUser(User requestUser, ArrayList<String> keys, ArrayList<String> values) throws EucalyptusServiceException {\n try {\n int i = 0;\n String userId = values.get(i++);\n String userName = values.get(i++);\n String path = values.get(i++);\n i++;\n Strin... |
"private LFgExample getExample(AnnoSentence sent, AnnoSentence gold, boolean labeledExample) {\n ObsFeatureExtractor obsFe = new SrlFeatureExtractor(prm.fePrm.srlFePrm, sent, cs);\n obsFe = new ObsFeatureCache(obsFe);\n FeatureExtractor fe = new DepParseFeatureExtractor(prm.fePrm.dpFePrm, sent, cs, ofc.getFeAl... |
"public void write(ItemRecord record, String destination) throws IOException, CoreException {\n IPath itemPath = PropertyHelper.getElementPath(record.getProperty());\n IPath itemDesPath = ResourcesPlugin.getWorkspace().getRoot().getFile(itemPath).getLocation();\n IPath propDesPath = itemDesPath.removeFileExten... |
"public VFSItem resolve(String path) {\n path = VFSManager.sanitizePath(path);\n if (path.equals(\"String_Node_Str\"))\n return this;\n String childName = VFSManager.extractChild(path);\n VFSItem vfsItem = null;\n for (VFSContainer container : mergedContainers) {\n String nextPath = path.su... |
"public CalculatedValue.ValueType getValue(CalculaterTask thread, CalculatedValue outValue) throws CancelException {\n if (termType != null) {\n leftTerm.getValue(thread, leftTermValue);\n rightTerm.getValue(thread, rightTermValue);\n switch(getComparatorType()) {\n case EQUAL:\n ... |
"protected void evolve() {\n boolean[] blocking = Level.solid;\n int cell;\n for (int i = area.top - 1; i <= area.bottom; i++) {\n for (int j = area.left - 1; j <= area.right; j++) {\n cell = j + i * Dungeon.level.width();\n if (Dungeon.level.insideMap(cell)) {\n if ... |
"protected boolean hasLeftFragment() {\n return selectedTabIndex == subredditsTabIndex;\n}\n"
|
"public void init(VaadinRequest request) {\n setContent(AppLayout.getDefaultBuilder(Behaviour.LEFT_RESPONSIVE_HYBRID).withTitle(\"String_Node_Str\").addToAppBar(new AppBarNotificationButton(notifications)).withNavigationElementInfoProducer(new DefaultNavigationElementInfoProducer()).withDesign(AppLayoutDesign.MATERI... |
"private void genElement(String defPath, HeirarchicalTableGenerator gen, List<Row> rows, ElementComponent element, List<ElementComponent> all, Profile profile, ProfileKnowledgeProvider pkp, boolean showMissing, String profileBaseFileName) throws Exception {\n if (!onlyInformationIsMapping(all, element)) {\n R... |
"private boolean onRow(int aggrIndex, int startingGroupLevel, int endingGroupLevel, boolean populateValue) throws DataException {\n IAggrInfo aggrInfo = getAggrInfo(aggrIndex);\n Accumulator acc = null;\n boolean newGroup = false;\n IParameterDefn[] argDefs = aggrInfo.getAggregation().getParameterDefn();\n ... |
"private void createBootstrapperFromDiskConfiguration() {\n try {\n ServiceConfiguration diskConf = (ServiceConfiguration) FileHelper.getContentsOfFileOrNull(platform.getFile(SERVICE_CONFIGURATION));\n if (diskConf.resolverConfiguration.getResolverLayoutURL() != null) {\n URLFactory.setLayou... |
"public static String toRapidshareComPremium(File file, String userid, String pass) {\n try {\n Browser br = new Browser();\n String[] data = br.getPage(\"String_Node_Str\").split(\"String_Node_Str\");\n PostFormDataRequest r = (PostFormDataRequest) br.createPostFormDataRequest(\"String_Node_Str... |
"public void onEvent(IEvent<?> event) {\n if (event.getPayload() instanceof AjaxRequestTarget && Broadcast.BUBBLE.equals(event.getType())) {\n AjaxRequestTarget target = ((AjaxRequestTarget) event.getPayload());\n target.add(this);\n onAjaxUpdate(target);\n event.stop();\n }\n}\n"
|
"public boolean checkTrigger(GameEvent event, Game game) {\n if (event.getType() == EventType.DAMAGED_PLAYER && (!onlyCombat || ((DamagedPlayerEvent) event).isCombatDamage())) {\n Permanent permanent = game.getPermanent(event.getSourceId());\n if (permanent != null && filter.match(permanent, sourceId, ... |
"public void flush() throws Exception {\n if ((flushCount.getAndIncrement() % flushLogRecordRate) == 0) {\n logger.info(\"String_Node_Str\", applicationName);\n }\n if (isStopped) {\n return;\n }\n AgentActiveThreadCountList response = new AgentActiveThreadCountList();\n synchronized (ag... |
"public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {\n TileEntity te = world.getTileEntity(x, y, z);\n if (te != null && te instanceof TileEntityMagReader) {\n TileEntityMagReader icte = (TileEntityMagReader) te;\n return new MagCardContainer(player.inv... |
"public long getDurationMs() {\n return durationMs;\n}\n"
|
"public List<ValidationMessage> validate(final Path path, final GlobalsModel content) {\n try {\n return genericValidator.validate(path, new ByteArrayInputStream(GlobalsPersistence.getInstance().marshal(content).getBytes(Charsets.UTF_8)), FILTER_JAVA);\n } catch (Exception e) {\n throw ExceptionUtil... |
"public static String encodeQueries(Collection<? extends Parameter<String>> queries, Charset charset) {\n StringBuilder sb = new StringBuilder();\n for (Map.Entry<String, String> query : queries) {\n sb.append(encodeParam(query.getKey(), charset));\n sb.append('=');\n sb.append(encodeParam(qu... |
"CodeBaseFingerprint build() {\n return new CodeBaseFingerprint(count, size, lastModified, Long.valueOf(hashCodeSum).hashCode());\n}\n"
|
"public static ReturnCode deleteRelations(Item item) {\n ReturnCode rc = new ReturnCode(Boolean.TRUE);\n if (item == null || item.getProperty() == null || item instanceof FolderItem) {\n rc.setOk(Boolean.FALSE);\n return rc;\n }\n IFile itemFile = PropertyHelper.getItemFile(item.getProperty())... |
"public void continueTaskWithoutPauses() {\n noPauses = true;\n synchronized (lock) {\n lock.notify();\n }\n return;\n}\n"
|
"protected void onLayout(boolean changed, int left, int top, int right, int bottom) {\n super.onLayout(changed, left, top, right, bottom);\n if (changed) {\n final int width = getWidth();\n final ViewGroup.LayoutParams leftParams = mLeftSpacer.getLayoutParams();\n leftParams.width = width / 2... |
"private void reloadComponentsFromCache() throws BusinessException {\n Map<String, String> bundleIdToPath = new HashMap<String, String>();\n ComponentsCache cache = ComponentManager.getInstance();\n Iterator it = cache.getComponentEntryMap().entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry... |
"private boolean handleOldNeighbour(int changeIndex) {\n if (valuesEqual(changeIndex - 1, changeIndex)) {\n duplicatesList.set(changeIndex, DUPLICATE);\n return NEIGHBOUR_LEFT;\n }\n int followerIndex = changeIndex + 1;\n while (true) {\n if (valuesEqual(changeIndex, followerIndex)) {\n... |
"public ExactRelation rewriteWithPartition() {\n ExactRelation newSource1 = source1.rewriteWithPartition();\n ExactRelation newSource2 = source2.rewriteWithPartition();\n List<Pair<Expr, Expr>> newJoinCond = joinCondWithTablesSubstitutioned();\n JoinedRelation r = JoinedRelation.from(vc, newSource1, newSour... |
"public void suspended() {\n execute(new Runnable() {\n\n public void run() {\n listener.suspended();\n }\n });\n}\n"
|
"void updateNotificationSuccessForMedia(List<MediaModel> mediaList, SiteModel site) {\n if (mediaList != null && !mediaList.isEmpty()) {\n String snackbarMessage = buildSnackbarSuccessMessageForMedia(mediaList.size());\n EventBus.getDefault().postSticky(new UploadService.UploadMediaSuccessEvent(mediaLi... |
"public boolean accept(Path file) throws IOException {\n Path fileName = file.getFileName();\n return Files.isRegularFile(file) && fileName != null && PATTERN_LOOSE_OBJECT.matcher(fileName.toString()).matches();\n}\n"
|
"private boolean isLinkCDCNode(RepositoryNode node) {\n if (node != null) {\n if (ENodeType.STABLE_SYSTEM_FOLDER.equals(node.getType())) {\n if (node.getParent() != null) {\n RepositoryNode pNode = node.getParent().getParent();\n if (pNode != null) {\n ... |
"protected static KloudlessResponse _request(APIResource.RequestMethod method, String path, Map<String, Object> params, Map<String, String> keys) throws AuthenticationException, InvalidRequestException, APIConnectionException, APIException {\n if (keys == null) {\n keys = new HashMap<String, String>();\n }... |
"private void updateCell(Worksheet sheet, int left, int top, int right, int bottom) {\n if (this.isInvalidated())\n return;\n String sheetId = Utils.getSheetUuid(sheet);\n if (!getActiveRangeHelper().containsSheet(sheet))\n return;\n left = left > 0 ? left - 1 : 0;\n top = top > 0 ? top - 1... |
"private void startUpdateTask(final String taskName) {\n try {\n this.getContainer().run(true, true, new IRunnableWithProgress() {\n\n public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {\n synchronized (BatchImportTraceWizard.this) {\n ... |
"public static final Connection getTdDataProvider(ModelElementIndicator indicator) {\n Property property = indicator.getModelElementRepositoryNode().getObject().getProperty();\n if (property != null && property.getItem() instanceof ConnectionItem) {\n return ((ConnectionItem) property.getItem()).getConnect... |
"public static EPerson findByEmail(Context context, String email) throws SQLException, AuthorizeException {\n if (email == null) {\n return null;\n }\n TableRow row = DatabaseManager.findByUnique(context, \"String_Node_Str\", \"String_Node_Str\", email.toLowerCase());\n if (row == null) {\n re... |
"public void setGame(Game g, Direction human) {\n game = g;\n table.setHumanDirection(human);\n humanHandDisplay = new AllCardsInOneRow(human, human, game, this);\n humanHandDisplay.display();\n dummy = new OneColumnPerColor(human, North.i(), game, this);\n displayDummyIfWestPlayed();\n}\n"
|
"public void handleRequest(HttpServerExchange exchange, RequestContext context) throws Exception {\n ObjectId etag = RequestHelper.getUpdateEtag(exchange);\n if (etag == null) {\n ResponseHelper.endExchangeWithMessage(exchange, HttpStatus.SC_CONFLICT, \"String_Node_Str\" + Headers.ETAG + \"String_Node_Str\... |
"public void rebuild() {\n propertyManager = new OWLObjectPropertyManager(getRootOntology().getOWLOntologyManager(), getRootOntology());\n sub2Super = propertyManager.getPropertyHierarchy();\n super2Sub = new HashMap<>();\n for (Map.Entry<OWLObjectPropertyExpression, Set<OWLObjectPropertyExpression>> entry ... |
"private void disconnectMAVConnection() {\n Log.d(LOG_TAG, \"String_Node_Str\");\n if (mavConnection != null && mavConnection.getConnectionStatus() != MavLinkConnection.MAVLINK_DISCONNECTED) {\n mavConnection.disconnect();\n }\n GAUtils.sendEvent(new HitBuilders.EventBuilder().setCategory(GAUtils.Cat... |
"public Object call() {\n IJ.showProgress(counter.getAndIncrement(), stack.getSize() - 1);\n String path = base_path + stack.getSliceLabel(slice) + \"String_Node_Str\";\n ArrayList<PointMatch> candidates = deserializePointMatches(p, path);\n if (null == candidates) {\n ArrayList<Feature> fs1 = deseri... |
"public boolean onTouch(View v, MotionEvent event) {\n if ((event.getAction()) == event.ACTION_DOWN) {\n Log.d(TAG, \"String_Node_Str\");\n if (!taking_picture) {\n taking_picture = true;\n mCamera.takePicture(CameraUtils.mShutterFeedback, null, null, new CameraUtils.TimeLapsePict... |
"public synchronized void finish() {\n _keepIterating = false;\n _isPaused = false;\n if (_simulationThread != null) {\n synchronized (_simulationThread) {\n _simulationThread.notify();\n }\n }\n}\n"
|
"public void initializeAndRun() {\n JAXWSBundle jaxwsBundle = new JAXWSBundle(\"String_Node_Str\", jaxwsEnvironment);\n try {\n jaxwsBundle.run(null);\n } catch (Exception e) {\n assertThat(e, is(instanceOf(IllegalArgumentException.class)));\n }\n jaxwsBundle.initialize(bootstrap);\n ver... |
"public void getImplicitTargets(SootMethod source) {\n final SootClass scl = source.getDeclaringClass();\n if (source.isNative())\n return;\n if (source.getSubSignature().indexOf(\"String_Node_Str\") >= 0) {\n handleInit(source, scl);\n }\n Body b = source.retrieveActiveBody();\n boolean... |
"public void burstBomb(int x, int y) {\n for (int i = 0; i < this.board.getCols(); i++) {\n int index = i + this.board.getCols() * y;\n Element element = this.board.getElements().get(index);\n if (element != null && element.isBreakable()) {\n this.board.setElement(index, null);\n ... |
"public void handleMessage(Message msg) {\n super.handleMessage(msg);\n if (msg.what == Constant.MSG_ERROR) {\n SnackBarUtil.showSnackInfo(view, CreateNewRecordTypeActivity.this, getString(R.string.please_not_enter_same_record_type_name));\n } else {\n setResult(RESULT_OK);\n finish();\n ... |
"void setSortCondition(Object[] sortKeys, boolean[] sortOrderings, int[] sortStrength) {\n this.sortKeys = sortKeys;\n this.sortDirections = sortOrderings;\n this.comparator = new Collator[this.sortKeys.length];\n for (int i = 0; i < this.comparator.length; i++) {\n this.comparator[i] = sortStrength[... |
"public void widgetSelected(SelectionEvent e) {\n XmlFileSchemaDialog dialog = new XmlFileSchemaDialog(mainSashFormComposite.getShell(), XmlFileOutputStep2Form.this);\n if (dialog != null && dialog.open() == XmlFileSchemaDialog.OK) {\n MetadataTable metadataTable = dialog.getMetadataTable();\n EList... |
"public void testAverage() {\n final Random randomEngine = new Random();\n final DifferentialExpressionCalculator deCalc = new DifferentialExpressionCalculator() {\n public double getNormalizedExpressionValue(final String sample, final NormalizationMethod method, final MutableString elementId) {\n ... |
"public void endSelfElement(String namespaceURI, String localName, String qName) throws SAXException {\n if (super.nodes.size() == 2) {\n Element endedElement = (Element) nodes.get(nodes.size() - 1);\n if (stringBuffer.length() > 0) {\n Text text = getInitializedDocument().createTextNode(str... |
"void traverse(BusTerminal terminal, VoltageLevel.TopologyTraverser traverser, Set<Terminal> traversedTerminals) {\n Objects.requireNonNull(terminal);\n Objects.requireNonNull(traverser);\n Objects.requireNonNull(traversedTerminals);\n if (traversedTerminals.contains(terminal)) {\n return;\n }\n ... |
"public void map(InfoMap infoMap) {\n infoMap.put(new Info(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\").cppTypes().annotations()).p... |
"public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {\n if (command.getName().equalsIgnoreCase(\"String_Node_Str\")) {\n if (sender instanceof Player) {\n Player player = (Player) sender;\n if (!has(player, \"String_Node_Str\")) {\n ... |
"public void setShape(ICEShape shape) {\n this.currentShape = shape;\n Transformation transformation;\n if (shape == null) {\n transformation = new ICETransformation();\n } else {\n transformation = shape.getTransformation();\n }\n double size = transformation.getSize();\n sizeSpinner... |
"public void buildContextMenu(IMenuManager menuManager) {\n if (proxy != null) {\n proxy.menuAboutToShow(menuManager);\n proxy = null;\n return;\n }\n GEFActionConstants.addStandardActionGroups(menuManager);\n Object firstSelectedElement = getFirstElement();\n Object selectedElements... |
"public List getColumnKeys(Object dataset) {\n if (isTOPChartInstalled()) {\n return chartService.getColumnKeys(dataset);\n }\n return null;\n}\n"
|
"public void testValidateColumnName() {\n CoreRuntimePlugin.getInstance().getDesignerCoreService().setPreferenceStoreValue(IRepositoryPrefConstants.ALLOW_SPECIFIC_CHARACTERS_FOR_SCHEMA_COLUMNS, false);\n String columnName = MetadataToolHelper.validateColumnName(\"String_Node_Str\", 0);\n assertEquals(columnNam... |
"public static synchronized GroovyIndentationService get(IJavaProject project) {\n if (lastIndenter != null && project != null && !project.equals(lastIndenter.project)) {\n disposeLastImpl();\n }\n if (lastIndenter == null) {\n lastIndenter = new GroovyIndentationService(project);\n }\n ret... |
"private XMLDescriptor getDescriptor(QName qName) {\n XPathQName xpathQName = new XPathQName(qName.getNamespaceURI(), qName.getLocalPart(), true);\n return (XMLDescriptor) descriptorsByQName.get(xpathQName);\n}\n"
|
"public void initGui() {\n super.initGui();\n resetGuiElements();\n xSize = 372;\n ySize = 250;\n ScaledResolution var8 = new ScaledResolution(mc);\n int scaledWidth = var8.getScaledWidth();\n int scaledHeight = var8.getScaledHeight();\n xCenter = scaledWidth / 2;\n yCenter = scaledHeight / 2... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.