content stringlengths 40 137k |
|---|
"public void run() {\n if (isSelectedSameDataProvider()) {\n TdColumn oneColumn = columns[0];\n TdDataProvider dataprovider = DataProviderHelper.getTdDataProvider(oneColumn);\n ColumnSet columnSetOwner = ColumnHelper.getColumnSetOwner(oneColumn);\n String tableName = ColumnSetNameHelper.g... |
"private List<Map<String, Object>> executeMetricDefsQuery(String tenantId, String name, Map<String, String> dimensions, String offset, int limit) {\n String namePart = \"String_Node_Str\";\n if (name != null && !name.isEmpty()) {\n sb.append(\"String_Node_Str\");\n }\n if (offset != null && !offset.i... |
"private boolean processTargetPacket(ChannelHandlerContext ctx, MyMessage message) {\n RedistTargetSite siteCtx = siteCtxByChannel.get(ctx.channel());\n if (!isProcessingComplete(siteCtx)) {\n try {\n if (message instanceof MyOKResponse) {\n if (!isProcessingComplete(siteCtx) && !... |
"public void testValidationAnnotation() {\n CsvParserSettings settings = new CsvParserSettings();\n final boolean[] ran = new boolean[] { false };\n settings.setProcessorErrorHandler(new ProcessorErrorHandler<Context>() {\n public void handleError(DataProcessingException error, Object[] inputRow, Contex... |
"public Object nextElement() {\n if (names.hasNext()) {\n try {\n String name = (String) names.next();\n Object obj = nm.lookup(name);\n return producesNamesOnly ? (T) (new NameClassPair(name, getClass().getName())) : (T) (new Binding(name, obj));\n } catch (RuntimeExce... |
"public static RepositoryMapping getMapping(IPath path) {\n IProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects();\n for (IProject project : projects) {\n if (isNonWorkspace(project))\n continue;\n RepositoryMapping mapping = getMapping(project);\n if (mappin... |
"private static void drawArmorTip(EntityPlayer player, TextureManager renderEngine, int k, int l) {\n int tx = k - 26, tx2 = k - 10;\n for (int i = 0, xOffset = -10; i < 4; i++) {\n ItemStack is = player.inventory.armorInventory[i];\n ArmorHEV hev;\n if (is != null && is.getItem() instanceof ... |
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.enssingle);\n con = this;\n Betreff = (TextView) findViewById(R.id.TxBetreff);\n Absender = (TextView) findViewById(R.id.TxVon);\n Nachricht = (TextView) findViewById(R.id.TxENS);\n EN... |
"static void validateCompliance(SBOLDocument sbolDocument) {\n for (TopLevel topLevel : sbolDocument.getTopLevels()) {\n try {\n topLevel.isURIcompliant();\n } catch (SBOLValidationException e) {\n errors.add(e.getMessage());\n }\n }\n for (Sequence sequence : sbolDoc... |
"public void autoInitialize(Collection<CATEGORY_TYPE> unsortedCategories) {\n List<CATEGORY_TYPE> categories = new ArrayList<>(unsortedCategories);\n Collections.sort(categories);\n ColorBrewer cb = categoryType == ECategoryType.NOMINAL ? DEFAULT_QUALITATIVE_COLOR_SCHEME : DEFAULT_SEQUENTIAL_COLOR_SCHEME;\n ... |
"public void addSimpleAttributeContent(AttributeElement simpleAttributeContent) {\n if (this.simpleAttributeContent == null) {\n this.simpleAttributeContent = new LinkedHashSet<AttributeElement>();\n }\n this.simpleAttributeContent.add(simpleAttributeContent);\n}\n"
|
"public List<String[]> getAllRows(List<List<Object>> queryResult) {\n List<String[]> allRows = new ArrayList<String[]>();\n if (queryResult == null || queryResult.isEmpty())\n return allRows;\n String[] row = null;\n for (int i = 0; i < queryResult.size(); i++) {\n List<Object> rawRow = queryR... |
"public static void main(String[] args) throws Less4jException {\n basicFileExample();\n customCssLocationExample1();\n customCssLocationExample2();\n guessedCssLocationExample1();\n guessedCssLocationExample2();\n}\n"
|
"private void createEditorProposal() {\n try {\n KeyStroke keyStroke = KeyStroke.getInstance(\"String_Node_Str\");\n IControlContentAdapter controlContentAdapter = new StyledTextContentAdapter();\n if (GlobalServiceRegister.getDefault().isServiceRegistered(IPigMapService.class)) {\n f... |
"public EditPageContract.View getCurrentPage() {\n return mPageAdapter.getCurrentFragment();\n}\n"
|
"private synchronized void closeOpenFilesAndUnlock(boolean flush) {\n stopWriter();\n if (pageStore != null) {\n if (flush) {\n try {\n pageStore.checkpoint();\n if (!readOnly) {\n lockMeta(pageStore.getPageStoreSession());\n pa... |
"public void onPostWeaponFired(ItemStack stack, World world, EntityPlayer shooter) {\n if (!world.isRemote) {\n if (!isEmpty(stack)) {\n consume(stack, 1);\n shooter.getHeldItem().setItemDamage(shooter.getHeldItem().getItemDamage() - 1);\n }\n }\n}\n"
|
"public void setupLayout() {\n super.setupLayout();\n Form form = Form.create(this, Form.MAIN);\n form.addRow(userName);\n form.addRow(widget(userPassword).setWidgetType(WidgetType.HIDDEN_TEXT));\n}\n"
|
"public void updateNotification(StatusBarNotification notification, RankingMap ranking) {\n if (DEBUG)\n Log.d(TAG, \"String_Node_Str\" + notification + \"String_Node_Str\");\n final String key = notification.getKey();\n Entry entry = mNotificationData.get(key);\n if (entry == null) {\n return... |
"public Class getCollectionContentType() {\n return getAttributeElementClass();\n}\n"
|
"public void obtainData(LogicalData ld, DataLocation source, DataLocation target, LogicalData tgtData, Transferable reason, DataOperation.EventListener listener) {\n if (ld.isInMemory()) {\n try {\n Serializer.serialize(ld.getValue(), target.getPath());\n if (tgtData != null) {\n ... |
"public void doJoinTest() {\n List<Relation> relations = new ArrayList<Relation>();\n ColumnSelector leftSelector = new ColumnSelector(new ColumnName(CATALOG_CONSTANT, TABLE1_CONSTANT.getName(), COLUMN1_CONSTANT));\n ColumnSelector rightSelector = new ColumnSelector(new ColumnName(CATALOG_CONSTANT, TABLE2_CONS... |
"public void actionPerformed(ActionEvent e) {\n super.actionPerformed(e);\n NamedObj container = getContainer();\n if (container instanceof OntologySolver) {\n try {\n ((OntologySolver) container).invokeSolver();\n } catch (IllegalActionException e1) {\n MessageHandler.error... |
"public Component findComponent(IComponentIdentifier componentIdentifier) throws IllegalArgumentException, ComponentNotManagedException, InvalidDataException {\n Component comp = (Component) findBP.findComponent(componentIdentifier, ComponentHandler.getAutHierarchy());\n if (comp != null && comp.isShowing()) {\n ... |
"private boolean isSuitableOn(Object owner, NavigationCase navigationCase) {\n if (navigationCase.on().length == 0) {\n if (!void.class.equals(navigationCase.onException())) {\n return true;\n }\n if ((owner instanceof Method) && (((Method) owner).getName().equals(event.getOutcome()))... |
"public Member[] getLevelMembers(Level level, Evaluator context) {\n boolean[] satisfied = { false };\n TupleConstraint constraint = sqlConstraintFactory.getLevelMembersConstraint(context, new Level[] { level }, satisfied);\n final MemberReader memberReader = getMemberReader(level.getHierarchy());\n final L... |
"public void startElement(String uri, String localName, String qName, Attributes baseAttributes) throws SAXException {\n Attributes atts = new ExpandingAttributes(baseAttributes);\n try {\n if (\"String_Node_Str\".equals(qName)) {\n text = new StringBuffer();\n } else if (\"String_Node_St... |
"public boolean setValue(String newValue) {\n boolean returnCode = false;\n AllowedValueType valueType = contentProvider.getAllowedValueType();\n if (value == newValue || (value != null && value.equals(newValue))) {\n returnCode = true;\n changeState = false;\n errorMessage = null;\n } ... |
"public boolean consume(long tokensToConsume, long maxWaitTimeNanos, BlockingStrategy blockingStrategy) throws InterruptedException {\n return consumeImpl(tokensToConsume, maxWaitTimeNanos, true, blockingStrategy);\n}\n"
|
"public static VerifyWrapper CRC16() {\n return new VerifyWrapper(new CRC16Verifier());\n}\n"
|
"public Period getNextPeriod(Period period) throws AxelorException {\n Period nextPeriod = all().filter(\"String_Node_Str\", period.getToDate(), period.getCompany(), PeriodRepository.STATUS_OPENED).fetchOne();\n if (nextPeriod == null || nextPeriod.getStatusSelect() == PeriodRepository.STATUS_CLOSED) {\n t... |
"private Set<Object> initValueForDBSet(String dbName) {\n if (isUsedMapDBMode()) {\n return new DBSet<Object>(ResourceManager.getMapDBFilePath(), ResourceManager.getMapDBFileName(this), ResourceManager.getMapDBCatalogName(this, dbName));\n } else {\n return new HashSet<Object>();\n }\n}\n"
|
"private void findStart(final Iterator<Range> rangeIt, final Collection<Range> internalRanges, final Range seekRange) {\n while (rangeIt.hasNext()) {\n final Range internalRange = rangeIt.next();\n if (internalRange.getEndKey() == null || internalRange.getEndKey().compareTo(seekRange.getStartKey()) > 0... |
"public void testJson() {\n JSONObject reference = new JSONObject();\n try {\n reference.put(Rectangle.KEY_X, (Test.GENERAL_FLOAT));\n reference.put(Rectangle.KEY_Y, (Test.GENERAL_FLOAT));\n reference.put(Rectangle.KEY_WIDTH, (Test.GENERAL_FLOAT));\n reference.put(Rectangle.KEY_HEIGHT,... |
"protected List<String> read(Socket socket) throws IOException {\n List<String> values = new ArrayList<String>();\n InputStreamReader reader = new InputStreamReader(socket.getInputStream(), \"String_Node_Str\");\n BufferedReader buf = new BufferedReader(reader);\n String commandLine = buf.readLine();\n S... |
"private final void drawFrame(final GifFrame fr) {\n int bgCol = 0;\n final int[] activeColTbl;\n if (fr.hasLocColTbl) {\n activeColTbl = fr.localColTbl;\n } else {\n activeColTbl = globalColTbl;\n if (!fr.transpColFlag) {\n bgCol = globalColTbl[bgColIndex];\n }\n }... |
"protected Object processResultSet(ResultSet rs) {\n List<ICCLink> links = new ArrayList<ICCLink>();\n try {\n while (rs.next()) {\n String fromSMString = rs.getString(1);\n int instruction = rs.getInt(2);\n String exitKind = rs.getString(3);\n String destination... |
"protected void onLayout(boolean changed, int left, int top, int right, int bottom) {\n super.onLayout(changed, left, top, right, bottom);\n if (!isInEditMode()) {\n loadLoResImage(true);\n }\n}\n"
|
"protected List<?> doInBackground(String... params) {\n List<Annotation> messages = new ArrayList<Annotation>();\n XmlPullParser pull = Xml.newPullParser();\n Annotation annotation = null;\n try {\n try {\n URL url = new URL(params[0]);\n HttpURLConnection conn = (HttpURLConnect... |
"public void run(Konto konto) throws ApplicationException {\n ArrayList<String> seiten = new ArrayList<String>();\n try {\n String username = konto.getKundennummer();\n String password = konto.getMeta(PROP_PASSWORD, null);\n if (username == null || username.length() == 0) {\n throw... |
"private void setContextLoader(DataSetHandle dataSet) {\n oldContextLoader = Thread.currentThread().getContextClassLoader();\n ClassLoader parentLoader = oldContextLoader;\n if (parentLoader == null)\n parentLoader = this.getClass().getClassLoader();\n ClassLoader newContextLoader = DataSetProvider.g... |
"public void sendProcessableToAll(RemotelyProcessable rp, boolean processLocally) {\n if (processLocally) {\n rp.process();\n }\n Data value = toData(rp);\n for (MemberImpl member : lsMembers) {\n if (!member.localMember()) {\n Packet packet = obtainPacket();\n packet.set... |
"public FormValidation doCheckBoxVersion(String value, String endpointUrl, String username, String password, String token, String workspace, String box) {\n Client client = createClient(endpointUrl, username, password, token);\n return checkBoxVersion(value, box, workspace, client);\n}\n"
|
"protected void processRequest() throws Exception {\n locale = request.getLocale();\n FormDiscrepancyNotes discNotes;\n panel.setStudyInfoShown(false);\n String age = \"String_Node_Str\";\n if (fp.getString(GO_EXIT).equals(\"String_Node_Str\") && !isSubmitted && fp.getString(\"String_Node_Str\").equals(\... |
"public boolean shouldContinueExecuting() {\n return isOwnerNearAndSitting();\n}\n"
|
"private void copyArrayByValue(Context context, Var dst, Var src) throws UserException {\n assert (dst.type().equals(src.type()));\n assert (Types.isArray(src.type()));\n LocalContext copyContext = new LocalContext(context);\n Type t = src.type();\n Type memType = Types.getArrayMemberType(t);\n Var me... |
"public List<String> getTopologyList(String topologyNameMatching, List<String> knoxTopologyList) {\n LOG.debug(\"String_Node_Str\" + topologyNameMatching);\n List<String> topologyList = new ArrayList<String>();\n String errMsg = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n if (topology... |
"protected boolean fieldsConfirmed(String[] necessaryFields) {\n for (String s : necessaryFields) {\n Log.stdout(s + \"String_Node_Str\" + fields.get(s));\n }\n String confirm = ConsoleAdapter.getInstance().readLine(\"String_Node_Str\");\n if (confirm.trim().toLowerCase().equals(\"String_Node_Str\") ... |
"public void run() {\n try {\n _up.connect();\n try {\n synchronized (UploadManager.this) {\n _activeUploads++;\n }\n _up.start();\n } finally {\n synchronized (UploadManager.this) {\n _activeUploads--;\n }\n ... |
"private void printTo(Body b, PrintWriter out) {\n b.validate();\n String decl = b.getMethod().getDavaDeclaration();\n {\n out.println(\"String_Node_Str\" + decl);\n for (Iterator tIt = b.getMethod().getTags().iterator(); tIt.hasNext(); ) {\n final Tag t = (Tag) tIt.next();\n ... |
"public void prepare(boolean majorGC) {\n if (majorGC)\n markState = ObjectHeader.deltaMarkState(markState, true);\n chunkMap.reset();\n defrag.prepare(chunkMap, this);\n inCollection = true;\n if (TMP_CHECK_REUSE_EFFICIENCY && Options.verbose.getValue() >= 1) {\n float ratio = (TMPreusable... |
"public static void main(String[] args) {\n String xmlString = serializePretty(TRADE_LIST);\n System.out.println(\"String_Node_Str\" + TRADE_LIST.toString());\n System.out.println(\"String_Node_Str\" + xmlString);\n TradeList deserializedPortfolioFromString = deserialize(xmlString);\n System.out.println(... |
"public SqlgDataSource setup(String driver, Configuration configuration) throws Exception {\n Preconditions.checkState(configuration.containsKey(SqlgGraph.JDBC_URL));\n Preconditions.checkState(configuration.containsKey(\"String_Node_Str\"));\n Preconditions.checkState(configuration.containsKey(\"String_Node_S... |
"public BaseIncrementalValueStore cloneStore(String key) {\n List<ExpressionExecutor> newExpressionExecutors = new ArrayList<>(expressionExecutors.size());\n expressionExecutors.forEach(expressionExecutor -> newExpressionExecutors.add(expressionExecutor.cloneExecutor(key)));\n return new BaseIncrementalValueSt... |
"public void configurationChanged(final ExecutionConfigurationEvent event) {\n TeiidServer eventServer = event.getServer();\n if (eventServer == null)\n return;\n refreshThread.refresh();\n}\n"
|
"public void evaluate_shouldCalculatePregnancyStatusAtArtStart() throws Exception {\n PatientService ps = Context.getPatientService();\n Concept pregnancyStatus = Dictionary.getConcept(Dictionary.PREGNANCY_STATUS);\n Concept yes = Dictionary.getConcept(Dictionary.YES);\n Concept no = Dictionary.getConcept(D... |
"protected void populateItem(final ListItem item) {\n final ConfigurationTO configurationTO = (ConfigurationTO) item.getModelObject();\n item.add(new Label(\"String_Node_Str\", configurationTO.getConfKey()));\n item.add(new Label(\"String_Node_Str\", configurationTO.getConfValue()));\n AjaxLink editLink = n... |
"public void onPanelSlide(View panel, float slideOffset) {\n Log.i(TAG, \"String_Node_Str\" + slideOffset);\n setActionBarTranslation(mLayout.getCurrentParalaxOffset());\n}\n"
|
"public void updateConnect(String key, List<PlayerInfo> list, String remoteAddr) {\n DatastoreService service = DatastoreServiceFactory.getDatastoreService();\n ServerManager serverManager = new ServerManager();\n try {\n Date stamp = new Date();\n Server server = serverManager.getAuthorizedServe... |
"protected Row createToolBar() {\n System.out.println(this.toString());\n Row toolBar = new ToolBar(\"String_Node_Str\", brick);\n toolBar.setPixelSizeY(0);\n ElementLayout spacingLayoutX = new ElementLayout(\"String_Node_Str\");\n spacingLayoutX.setPixelSizeX(SPACING_PIXELS);\n spacingLayoutX.setRati... |
"public static TextureAtlasSprite getIcon(final Item item) {\n return (item == null) ? getDefaultIcon() : getIcon(item.getRegistryName().toString(), EXPANSION_ITEM);\n}\n"
|
"public AttributeSchema find(String name) {\n AttributeSchema result = entityManager.find(AttributeSchema.class, name);\n if (isDeletedOrNotManaged(result)) {\n result = null;\n }\n return result;\n}\n"
|
"private void processMultiRequest(JsonArray requests, String jsonToken, HttpServletRequest httpRequest, JsonWriter out) throws Exception {\n out.name(\"String_Node_Str\");\n out.beginArray();\n for (int r = 0; r < requests.size(); r++) {\n try {\n processSingleRequest((JsonObject) requests.ge... |
"public IColumnAnalizeResult analize() throws IOException {\n boolean maybeSorted = true;\n Boolean currentSortCheckValue = false;\n int trueCount = 0;\n int falseCount = 0;\n int nullCount = 0;\n int rowCount = 0;\n for (int i = 0; i < column.size(); i++) {\n ICell cell = column.get(i);\n ... |
"protected void openItem(Object item) {\n if (item instanceof AgentName) {\n AgentName agentName = (AgentName) item;\n Agent agent = context.getOperationsService().findAgent(agentName.getId(), true);\n tabbedPanel.addCloseableTab(agent.getId(), agent.getName(), Icons.AGENT, new EditAgentPanel(co... |
"public void resolve(MarkerList markers, IContext context) {\n for (int i = 0; i < this.annotationCount; i++) {\n Annotation a = this.annotations[i];\n String fullName = a.type.getInternalName();\n if (fullName != null && !this.addRawAnnotation(fullName)) {\n this.removeAnnotation(i--... |
"private void changeOverlaySeriesType() {\n if (getCurrentChartType().canCombine()) {\n ChartCacheManager.getInstance().cacheSeriesType(cbSeriesType.getText());\n }\n try {\n Axis XAxis = ((ChartWithAxes) chartModel).getAxes().get(0);\n int iSeriesDefinitionIndex = (XAxis.getAssociatedAxes... |
"protected void _setInputVars() throws IllegalArgumentException, IllegalActionException {\n Enumeration inports = inputPorts();\n IOPort port;\n System.out.println(\"String_Node_Str\");\n while (inports.hasMoreElements()) {\n port = (IOPort) inports.nextElement();\n if (port.numLinks() > 0) {\... |
"private synchronized boolean findSubgraphs() throws CDKException {\n boolean isSubgraph;\n if ((getTarget() == null) || (getQuery() == null)) {\n throw new CDKException(\"String_Node_Str\");\n }\n if (getQuery().getAtomCount() == 1 || getTarget().getAtomCount() == 1) {\n singleMapping(isMatch... |
"public synchronized Plugin loadPlugin(File paramFile, boolean ignoresoftdepends) throws InvalidPluginException, UnknownDependencyException, InvalidDescriptionFileException {\n CommonPlugin result;\n PluginDescriptionFile desc;\n CommonClassLoader loader;\n desc = getDescription(paramFile);\n File dataFo... |
"protected Object defaultTypeDataFromBinary(final byte[] bytes) {\n final ByteBuffer buf = ByteBuffer.wrap(bytes);\n final byte[] typeNameBytes = new byte[buf.getInt()];\n final byte[] namespaceBytes = new byte[buf.getInt()];\n final byte[] fieldVisibilityAtributeNameBytes = new byte[buf.getInt()];\n fin... |
"public HealthDataEntry getHealthDataEntry(HealthDataKey key, String recordId) throws BridgeServiceException {\n if (recordId == null) {\n throw new BridgeServiceException(\"String_Node_Str\");\n }\n try {\n DynamoDBMapper mapper = getCreateMapper();\n DynamoRecord record = new DynamoRecor... |
"public boolean inStableStatus() {\n ClusterStatus[] stableStatus = new ClusterStatus[] { ClusterStatus.RUNNING, ClusterStatus.STOPPED, ClusterStatus.CONFIGURE_ERROR, ClusterStatus.ERROR, ClusterStatus.PROVISION_ERROR, ClusterStatus.SERVICE_ERROR };\n return Arrays.asList(stableStatus).contains(this.status);\n}\n... |
"protected void updateEntityActionState() {\n EntityPlayer closest = worldObj.getClosestPlayerToEntity(this, 164D);\n if (closest == null)\n return;\n rotationYaw = MathUtil.toDeg((float) Math.atan2(posZ - closest.posZ, posX - closest.posX)) + 90F;\n rotationPitch = MathUtil.toDeg((float) Math.atan2(... |
"public void run() {\n cancellable2.cancel();\n}\n"
|
"public String getQualifiedName() {\n if (jPkg != null) {\n return jPkg.getName();\n } else {\n return null;\n }\n}\n"
|
"public void onClick(ClickEvent event) {\n Widget sender = (Widget) event.getSource();\n if (sender == bold) {\n formatter.toggleBold();\n } else if (sender == italic) {\n formatter.toggleItalic();\n } else if (sender == underline) {\n formatter.toggleUnderline();\n } else if (sender... |
"protected void init(EPNContainer container) throws Exception {\n for (String name : _nodes.keySet()) {\n Node node = _nodes.get(name);\n if (node.getDestinationNodes() != null) {\n for (String nodeName : node.getDestinationNodes()) {\n node.getChannels().add(container.getChan... |
"public Item getItemDropped(int metadata, Random random, int fortune) {\n if (metadata % 4 == 2)\n return NContent.potashApple;\n return Item.getItemFromBlock(NContent.floraSapling);\n}\n"
|
"private void piggybackDecrementsOnInstructions(Logger logger, Function fn, Block block, RCTracker tracker, RefCountType rcType) {\n if (!RCUtil.piggybackEnabled()) {\n return;\n }\n RefCountCandidates candidates = tracker.getVarCandidates(block, rcType, RCDir.DECR);\n UseFinder subblockWalker = new ... |
"public void run() {\n long myTimeNow = 0L;\n long nextTime;\n boolean oldDirection;\n schedule = new Timer(speed, timeCounter);\n schedule.start();\n while (playing) {\n if (timeCounter.getTime() == myTimeNow) {\n try {\n Thread.sleep(20);\n continue;\n... |
"public static void setBasicVmConfig(VirtualMachineConfigSpec vmConfig, int cpuCount, int cpuSpeedMHz, int cpuReservedMhz, int memoryMB, int memoryReserveMB, String guestOsIdentifier, boolean limitCpuUse) {\n vmConfig.setMemoryMB((long) memoryMB);\n vmConfig.setNumCPUs(cpuCount);\n ResourceAllocationInfo cpuIn... |
"public List<Image> listImages(final ListImagesParam... params) throws DockerException, InterruptedException {\n WebTarget resource = resource().path(\"String_Node_Str\").path(\"String_Node_Str\");\n final Map<String, List<String>> filters = newHashMap();\n for (final ListImagesParam param : params) {\n ... |
"private boolean upgradeVersionKeys(Table table, int maxNumberUpdateRows) {\n int numRowsUpgraded = 0;\n try (Scanner scan = getScannerWithPrefix(table, KEY_PREFIX)) {\n Row next;\n while (((next = scan.next()) != null) && (numRowsUpgraded < maxNumberUpdateRows)) {\n if (isInvalidRow(next... |
"protected void preConfiguration(IProgressMonitor monitor) throws CoreException {\n BirtWizardUtil.processCheckFolder(properties, this.getFacetedProject().getProject(), configFolder, monitor);\n}\n"
|
"public String viewOrders() {\n String column = getColumnFilter();\n List<Orders> orderEntityList = new ArrayList<Orders>();\n SimpleDateFormat formatter = new SimpleDateFormat(\"String_Node_Str\");\n if (StringUtils.isNotBlank(column)) {\n System.out.println(\"String_Node_Str\" + column);\n S... |
"public void openLanguageDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(\"String_Node_Str\");\n builder.setPositiveButton(\"String_Node_Str\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n ... |
"public void cacheAll() {\n for (String ident : dataStore.getAllIdentifiers(type)) {\n try {\n cache.get(ident);\n } catch (ExecutionException e) {\n }\n }\n}\n"
|
"synchronized public ArchiveEntry createEntry(String name) throws IOException {\n if (isArchiveFileAvailable(af)) {\n return af.createEntry(name);\n } else {\n throw new IOException(\"String_Node_Str\" + name + \"String_Node_Str\" + systemId);\n }\n}\n"
|
"private void prepareEmfTree(List<FOXTreeNode> list, TreeNode parent, String xmlPath, String absoluteXPathQuery) {\n if (list == null || list.isEmpty()) {\n return;\n }\n String xPath = parent.getXpath();\n for (FOXTreeNode foxNode : list) {\n TreeNode createTreeNode = createModel();\n ... |
"private static byte[] derivePayload(InetAddress addr, int port) throws BadPacketException {\n try {\n QueryReply.IPPortCombo combo = new QueryReply.IPPortCombo(addr.getHostAddress(), port);\n return combo.toBytes();\n } catch (UnknownHostException uhe) {\n ErrorService.error(uhe);\n t... |
"public long size() {\n return length;\n}\n"
|
"public StockMove generateStockMove(Inventory inventory) throws AxelorException {\n Location toLocation = inventory.getLocation();\n Company company = toLocation.getCompany();\n if (company == null) {\n throw new AxelorException(String.format(\"String_Node_Str\", toLocation.getName()), IException.CONFIG... |
"public void receiveData(MAVLinkMessage msg) {\n if (drone.parameters.processMessage(msg)) {\n return;\n }\n drone.waypointManager.processMessage(msg);\n drone.calibrationSetup.processMessage(msg);\n switch(msg.msgid) {\n case msg_attitude.MAVLINK_MSG_ID_ATTITUDE:\n msg_attitude ... |
"protected void addJobItem(ExportFileResource[] allResources, ProcessItem processItem, boolean needSource, ExportFileResource resource, String... selectedJobVersion) {\n if (!needSource) {\n return;\n }\n try {\n String projectName = getCorrespondingProjectName(processItem);\n String jobNa... |
"public Object resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) throws Exception {\n HttpServletRequest request = (HttpServletRequest) webRequest.getNativeRequest();\n PageRequest pr = null;\n for (Annotation annotat... |
"public void onMcMMOPlayerLevelUp(McMMOPlayerLevelUpEvent event) {\n for (DropEvent dropEvent : plugin.getDropEventFactory().createEvents(event)) {\n Bukkit.getPluginManager().callEvent(dropEvent);\n }\n}\n"
|
"public void run() {\n application.invokeLater(new Runnable() {\n public void run() {\n executeAction(action, context, actionName);\n }\n });\n}\n"
|
"public void registrationStateChanged(RegistrationStateChangeEvent evt) {\n if (logger.isDebugEnabled())\n logger.debug(\"String_Node_Str\" + evt.getOldState() + \"String_Node_Str\" + evt.getNewState());\n if (evt.getNewState() == RegistrationState.REGISTERED) {\n parentProvider.getConnection().remo... |
"public void setWindowBase(int line) {\n if (line > screenBase)\n line = screenBase;\n else if (line < 0)\n line = 0;\n windowBase = line;\n update[0] = true;\n redraw();\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.