content stringlengths 40 137k |
|---|
"private void executeSendAllUnsentCommand() {\n Enumeration en = this.models.elements();\n Vector unsent = new Vector();\n while (en.hasMoreElements()) {\n DataModelTreeMetaData data = (DataModelTreeMetaData) en.nextElement();\n DataModelTree model = new DataModelTree();\n ITransportManage... |
"public void handleChannelEvent(IChannelEvent event) {\n if (event instanceof IChannelMessageEvent) {\n setEditorEditable(false);\n Activator.getDefault().setListenerActive(false);\n IChannelMessageEvent msg = (IChannelMessageEvent) event;\n ByteArrayInputStream bins = new ByteArrayInputS... |
"public void performClose() {\n if (this.prune != null) {\n BasicNetwork network = this.prune.getBestNetwork();\n if (network != null) {\n if (EncogWorkBench.askQuestion(\"String_Node_Str\", \"String_Node_Str\")) {\n if (network != null) {\n collection.add(n... |
"public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {\n if (cmd.getName().equalsIgnoreCase(\"String_Node_Str\")) {\n if (args.length == 0) {\n sender.sendMessage(\"String_Node_Str\");\n sender.sendMessage(\"String_Node_Str\");\n sender.sen... |
"protected void setlinkStyle(StyleEntry entry, HyperlinkDef link) {\n if (link != null) {\n Color color = link.getColor();\n if (color != null) {\n entry.setProperty(StyleConstant.COLOR_PROP, color);\n } else {\n entry.setProperty(StyleConstant.COLOR_PROP, StyleConstant.HYP... |
"protected void setUp() throws Exception {\n applicationContext = ApplicationContextHelper.getApplicationContext();\n repositoryHelper = (Repository) this.applicationContext.getBean(\"String_Node_Str\");\n ApplicationContextFactory fileServers = (ApplicationContextFactory) this.applicationContext.getBean(\"Str... |
"public void setIsExpanded(boolean isExpanded) {\n if (isExpanded != mIsExpanded) {\n mIsExpanded = isExpanded;\n if (isExpanded) {\n releaseAllToShade();\n }\n }\n}\n"
|
"public void updateState(MachineState state, List<Move> moves) {\n if (savedState == null || state != savedState) {\n for (Proposition p : basePropositions.values()) {\n p.setValue(false);\n }\n for (GdlSentence s : state.getContents()) {\n basePropositions.get(s.toTerm()).... |
"public IntLongEntry next() {\n entry.i++;\n return entry;\n}\n"
|
"protected void setStatus(CellStatus status, boolean increasing) {\n super.setStatus(status, increasing);\n if (status == CellStatus.INACTIVE && increasing) {\n AppConventionalMessageReceiver mr = new AppConventionalMessageReceiver();\n channel.addMessageReceiver(AppConventionalCellSetConnectionInfo... |
"private void move(boolean separateStacks, boolean drop) throws Exception {\n int toIndex = -1;\n synchronized (this) {\n toIndex = getNextIndex(separateStacks, drop);\n if (toIndex != -1) {\n switch(shortcutType) {\n case MOVE_ONE_STACK:\n {\n ... |
"public synchronized void launchWorkflow(SecretProviderConfigurationAndCredentials secretProviderConfigurationAndCredentials, String applicationEnvironmentId, String workflowName, Map<String, Object> params, IPaaSCallback<?> iPaaSCallback) {\n Deployment deployment = deploymentService.getActiveDeploymentOrFail(appli... |
"private void populateNestedXMLDataMappingColumns() {\n if (!isNotNestedXMLTable) {\n for (int i = 0; i < namesOfCachedColumns.length; i++) {\n for (int j = 0; j < namesOfColumns.length; j++) {\n if (namesOfCachedColumns[i].equals(namesOfColumns[j])) {\n cachedResu... |
"private void updateBlobWithUpdateBinaryStream(ResultSet rs) throws SQLException {\n Blob b;\n byte[] value, expectedValue;\n String blobData = \"String_Node_Str\";\n String updatedBlobData = \"String_Node_Str\";\n b = rs.getBlob(2);\n value = b.getBytes(1, blobData.length() + 1);\n expectedValue =... |
"public void delete() {\n nodeManager.acquireLock(this, LockType.WRITE);\n boolean success = false;\n try {\n ArrayMap<Integer, PropertyData> skipMap = nodeManager.getCowPropertyRemoveMap(this, true);\n ArrayMap<Integer, PropertyData> removedProps = nodeManager.deleteNode(this);\n if (remo... |
"public void onCheckedChanged(CompoundButton view, boolean checked) {\n setVibrate(checked);\n}\n"
|
"protected Object convertToType(Object value, String type) {\n try {\n if (DesignChoiceConstants.SCALAR_PARAM_TYPE_MULTI_VALUE.equals(paramType)) {\n List<Object> list = new ArrayList<Object>();\n for (String string : values) {\n list.add(convertParameterType(string, type)... |
"public void read(Reader r) {\n BufferedReader in = new BufferedReader(r);\n FormatUtil formatter = new FormatUtil();\n String line = null;\n try {\n Header header = null;\n boolean inHeader = true;\n while ((line = in.readLine()) != null && inHeader) {\n line = line.trim();\... |
"public void onErrorResponse(VolleyError volleyError) {\n AppLog.w(T.READER, \"String_Node_Str\" + actionName + \"String_Node_Str\");\n AppLog.e(T.READER, volleyError);\n if (hasBlogUrl) {\n ReaderBlogTable.setIsFollowedBlogUrl(blogUrl, !isAskingToFollow);\n }\n if (hasBlogId) {\n ReaderPos... |
"protected void paintComponent(Graphics g) {\n Graphics2D g2d = (Graphics2D) g.create();\n if (icon == null) {\n g2d.drawLine(0, 0, iconWidth, iconWidth);\n g2d.drawLine(0, iconWidth, iconWidth, 0);\n } else {\n Image image = ((ImageIcon) icon).getImage();\n g2d.drawImage(image, 0, ... |
"public void onPageStarted(WebView view, String url, Bitmap favicon) {\n try {\n URI uri = new URI(url);\n String[] segments = uri.getPath().split(\"String_Node_Str\");\n String filename = segments[segments.length - 1];\n currentPage = htmlMap.get(filename);\n } catch (URISyntaxExcepti... |
"protected void repOk() {\n if (!DEBUG)\n return;\n Assert.that(buckets.size() == incompletes.size());\n Assert.that(buckets.size() == sha1s.length);\n for (int i = 0; i < buckets.size(); i++) {\n List bucket = (List) buckets.get(i);\n File tmp1 = (File) incompletes.get(i);\n for... |
"public static void main(String[] args) throws TTransportException, IOException, KeeperException, InterruptedException, BlurException {\n int serverIndex = getServerIndex(args);\n LOG.info(\"String_Node_Str\");\n Thread.setDefaultUncaughtExceptionHandler(new SimpleUncaughtExceptionHandler());\n BlurConfigur... |
"public synchronized void unHarness() {\n santa_is_harnessing = false;\n notifyAll();\n}\n"
|
"public void tick() {\n if (timer1running) {\n timer1counter--;\n if (timer1counter < 0) {\n timer1counter = timer1latch;\n if (!timer1freerun) {\n timer1running = false;\n if (timer1interruptEnabled) {\n timer1IRQ = true;\n ... |
"public File getDataFolder() {\n return plotMeCorePlugin.getDataFolder();\n}\n"
|
"public List<PostInfo> getPosts(PostFilterParameters filterParameters, IWContext iwc) {\n Collection<PostEntity> postEntities = null;\n postEntities = this.postDao.getPosts(filterParameters.getCreators(), filterParameters.getReceivers(), filterParameters.getTypes(), filterParameters.getMax(), filterParameters.get... |
"private void provisionServicesForApplication(String appName, ReadableArchive archive, DeploymentContext dc) {\n logger.entering(getClass().getName(), \"String_Node_Str\");\n Set<Plugin> installedPlugins = getPlugins();\n ServiceMetadata appServiceMetadata = serviceDependencyDiscovery(appName, archive, install... |
"public Response exportExecutionResult(final Long executionId, final ReportExecExportFormat fmt) {\n final ReportExecExportFormat format = (fmt == null) ? ReportExecExportFormat.XML : fmt;\n final ReportExec reportExec = reportController.getAndCheckReportExecInternal(executionId);\n StreamingOutput sout = new ... |
"private List getBinarySourcesFrom(Map binarySourceEntries) {\n List ret = new ArrayList();\n for (Iterator binIter = binarySourceEntries.keySet().iterator(); binIter.hasNext(); ) {\n String sourceFileName = (String) binIter.next();\n List unwovenClassFiles = (List) binarySourceEntries.get(sourceFil... |
"protected List<JAXBElement> createShellJAXBElementList(List<ReportItem> reportItems) {\n List<JAXBElement> jaxbElements = new ArrayList<JAXBElement>(reportItems.size());\n if ((reportItems != null) && (reportItems.size() > 0)) {\n for (int index = 0; index < reportItems.size(); index++) {\n Rep... |
"public void addKeyword(String keyword) {\n if (!isEmptyTrimmed(keyword)) {\n keyword = keyword.trim();\n if (!keywords.contains(keyword)) {\n keywords.add(keyword);\n }\n }\n}\n"
|
"public void readFields(DataInput in) throws IOException {\n BooleanWritable flag = new BooleanWritable(false);\n flag.readFields(in);\n double[] xUpdated = null;\n if (flag.get()) {\n DoubleArrayWritable reader = new DoubleArrayWritable();\n reader.readFields(in);\n xUpdated = reader.g... |
"public void onFinish() {\n if (stopped || !isEnabled() || getModel().getSelectedFeatures().isEmpty() || getModel().getSelectedClasses().isEmpty()) {\n setStatusEmpty();\n return;\n }\n for (final TableItem i : table.getItems()) {\n i.dispose();\n }\n for (int i = 0; i < classes.leng... |
"public Case parse() throws InvalidStructureException, IOException, XmlPullParserException {\n this.checkNode(\"String_Node_Str\");\n this.nextTag(\"String_Node_Str\");\n String caseId = parser.nextText().trim();\n this.nextTag(\"String_Node_Str\");\n String dateModified = parser.nextText().trim();\n ... |
"protected INDArray compute() {\n INDArray x = op.x();\n INDArray y = op.y();\n DataBuffer dx = x.data();\n DataBuffer dy = (y != null ? y.data() : null);\n int nTensors = x.tensorssAlongDimension(dimensions);\n List<RecursiveTask<Pair<Double, Integer>>> taskList = new ArrayList<>(nTensors);\n bool... |
"public static boolean isIn(Location loc) {\n for (Region region : REGION_LIST) {\n if (region.isIn(loc)) {\n return true;\n }\n }\n return false;\n}\n"
|
"public static void main(final String[] args) {\n final DefaultData data = Data.create();\n data.add(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n data.add(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_... |
"private void makeResultResource(ITestResult result, String status) {\n String className = result.getTestClass().getName();\n className = className.substring(className.lastIndexOf(\"String_Node_Str\") + 1);\n Resource assertionResource = model.createResource(null, Earl.Assertion);\n Resource resultResource ... |
"public void shutdown() {\n if (!isInitialized) {\n return;\n }\n new ShutdownThread().run();\n}\n"
|
"public void run(ProgressStatus progressStatus) {\n progressStatus.setDescription(\"String_Node_Str\");\n if (ProjectUtilities.isFromTeamworkServer(project.getPrimaryProject()) && TeamworkUtils.getLoggedUserName() == null) {\n Utils.guilog(\"String_Node_Str\");\n return;\n }\n LocalSyncTransac... |
"private void setUpImageListener() {\n getImagePager().addOnPageChangeListener(this);\n}\n"
|
"final public BitVector get(Type type) {\n if (type == null)\n return null;\n while (allocNodeListener.hasNext()) {\n AllocNode n = allocNodeListener.next();\n for (final Type t : Scene.v().getTypeNumberer()) {\n if (!(t instanceof RefLikeType))\n continue;\n ... |
"private void postponeSync() {\n AlarmManager alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n Intent serviceIntent = new Intent(this, KeyserverSyncAdapterService.class);\n serviceIntent.setAction(ACTION_SYNC_NOW);\n PendingIntent pi = PendingIntent.getService(this, 0, serviceIntent,... |
"public List<?> getItemIds(int startIndex, int numberOfItems) {\n return container.getItemIds(this.startIndex + startIndex, numberOfItems);\n}\n"
|
"public void reloadMapTexture() {\n this.regionManager.close();\n this.executor.close();\n MapTexture oldMapTexture = this.mapTexture;\n this.mapTexture = new MapTexture(this.textureSize, this.linearTextureScalingEnabled);\n if (oldMapTexture != null) {\n oldMapTexture.close();\n }\n this.ex... |
"public boolean isConcurrentExectionDisallowed() {\n return ClassUtils.isAnnotationPresent(jobClass, DisallowConcurrentExecution.class);\n}\n"
|
"protected void setChildrenDrawingCacheEnabled(boolean enabled) {\n final int count = getChildCount();\n for (int i = 0; i < count; i++) {\n final View view = getChildAt(i);\n view.setDrawingCacheEnabled(enabled);\n view.buildDrawingCache(true);\n }\n}\n"
|
"public int getInt(long offset) {\n return Numbers.INT_NaN;\n}\n"
|
"public void doInTransactionWithoutResult(TransactionStatus status) {\n List<DataCenterIpAddressVO> privateIps = _privateIpAddressDao.listByPodIdDcId(podId, pod.getDataCenterId());\n if (!privateIps.isEmpty()) {\n if (!(_privateIpAddressDao.deleteIpAddressByPod(podId))) {\n throw new CloudRuntim... |
"protected void verify() {\n if (results.isEmpty()) {\n throw new TestErrorException(\"String_Node_Str\");\n } else {\n ReportQueryResult result = results.firstElement();\n Object value;\n value = result.get(\"String_Node_Str\");\n if (value instanceof Integer && !(getSession().... |
"public void onTrustChanged(int userId) {\n updateCanSkipBouncerState();\n notifyKeyguardChanged();\n}\n"
|
"public static void main(String[] args) {\n TimetableLibrary tl = new TimetableLibrary(timetableURL);\n List<Section> sections;\n sections = tl.getSections(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n System.out.println(sections.size());\n for (Section s : sections) {\n System... |
"public ComputedColumnHandle addColumnBinding(ComputedColumn addColumn, boolean inForce) throws SemanticException {\n if (addColumn == null)\n return null;\n String expr = addColumn.getExpression();\n if (expr == null)\n return null;\n List columns = (List) getProperty(BOUND_DATA_COLUMNS_PROP)... |
"int minIndex(String[] list1, char[] list2){\n\tint minIndex = list1.length;\n\tfor (int i = 0; i < list1.length; i++){\n\t\tif (list1[i] == null || list2[i] == null)\n\t\t\tcontinue;\n\t\tint index = list1[i].lastIndexOf(list2[i]);\n\t\tif (index != -1 && index < minIndex)\n\t\t\tminIndex = index;\n\t}\n\treturn minIn... |
"public boolean isSticky() {\n return this.sticky;\n}\n"
|
"public T next() {\n if (hasNext() == false) {\n throw new NoSuchElementException();\n }\n return tableOrView.at(index++);\n}\n"
|
"public boolean accept(File dir, String name) {\n return (Pattern.matches(\"String_Node_Str\", name) || Pattern.matches(\"String_Node_Str\", name)) && new File(dir, name).isDirectory();\n}\n"
|
"public boolean checkBlockRequirementsAfter(Player player, Player controller, Game game) {\n Set<UUID> opponents = game.getOpponents(attackingPlayerId);\n Map<UUID, Set<UUID>> mustBeBlockedByAtLeastOne = new HashMap<>();\n Map<UUID, Integer> minNumberOfBlockersMap = new HashMap<>();\n for (Permanent creatur... |
"public void enableFollow() {\n isFollowEnabled.set(true);\n}\n"
|
"private PrestoTopic updateContextFieldValues(PrestoContext context, PrestoFieldUsage field, List<? extends Object> updateableValues) {\n PrestoTopic topic = context.getTopic();\n PrestoType type = context.getType();\n PrestoDataProvider dataProvider = getDataProvider();\n PrestoChangeSet changeSet = dataPr... |
"public List<QuasiLiveService> getAllServices(File source) {\n List<QuasiLiveService> quasiLiveServices = new ArrayList<QuasiLiveService>();\n if (source == null) {\n SortedMap<Long, QuasiLiveService> services = getServicesSortedMap(this.getQuasiFramework());\n for (Entry<Long, QuasiLiveService> ser... |
"public void onClick(View v) {\n if (optDO.getId() == 4) {\n checkForUpdate();\n } else if (optDO.getId() == 6) {\n context.finish();\n } else {\n if (MyAVUser.getCurrentUser() == null && (optDO.getAct() == MonthReportActivity.class || optDO.getAct() == UserLinkActivity.class)) {\n ... |
"public void follow_path() {\n Point __destination = new Point(this.destination);\n if (path != null && path.getLength() > 0) {\n for (int i = 0; i < path.getLength(); i++) {\n Step tmp_step = path.getStep(i);\n Point tmp = new Point(tmp_step.getX(), tmp_step.getY());\n tmp... |
"public static void main(String[] args) {\n Cell a = Cell.parseCif(new File(\"String_Node_Str\"));\n Cell b = Cell.parseCif(new File(\"String_Node_Str\"));\n System.out.println(a.matchesCell(b, 0.1, 0.1, 0.1));\n System.out.println(getFindsymOutput(b.getNigliReducedCell()));\n}\n"
|
"protected void onPersist(EntityMetadata entityMetadata, Object entity, Object id, List<RelationHolder> relations) {\n String tableName = entityMetadata.getSchema();\n try {\n handler.writeData(tableName, entityMetadata, entity, id, relations);\n } catch (IOException e) {\n throw new PersistenceE... |
"public void setLogger(Logger logger) {\n if (logger != null) {\n EngineLogger.startEngineLogging(logger, null, null, null);\n }\n}\n"
|
"public void sendMidiSystemExclusive(int cable, byte[] systemExclusive) {\n if (systemExclusive.length > 3) {\n sysexTransferDataStream.reset();\n for (int sysexIndex = 0; sysexIndex < systemExclusive.length; sysexIndex += 3) {\n if ((sysexIndex + 3 < systemExclusive.length)) {\n ... |
"public org.hl7.fhir.dstu2.model.Ratio convertRatio(org.hl7.fhir.dstu3.model.Ratio src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Ratio tgt = new org.hl7.fhir.dstu2.model.Ratio();\n copyElement(src, tgt);\n tgt.setNumerator(convertQuantity(sr... |
"public List<Dag> split() {\n List<Dag> dags = new ArrayList<>();\n Set<String> remainingNodes = new HashSet<>();\n remainingNodes.addAll(nodes);\n Set<String> possibleNewSources = Sets.union(sources, connectors);\n Set<String> possibleNewSinks = Sets.union(sinks, connectors);\n for (String reduceNode... |
"public void onNext(List<Identifier> identifiers) {\n getMvpView().showProgressbar(false);\n getMvpView().showClientIdentifiers(identifiers);\n if (identifiers.isEmpty()) {\n getMvpView().showEmptyClientIdentifier();\n }\n}\n"
|
"public void fillInsertStatementFromResultSet(final String sourceConnectorId, final TableMetaData sourceTableMetaData, final String targetConnectorId, final TableMetaData targetTableMetaData, final TargetDatabaseConfiguration targetDatabaseConfiguration, final Connection targetConnection, final ResultSet rs, final Prep... |
"public void onMessage(Message message) {\n if (isDisabled()) {\n return;\n }\n lastMessage = message;\n if (!(message instanceof TextMessage)) {\n return;\n }\n final String text;\n try {\n text = ((TextMessage) message).getText();\n } catch (JMSException e) {\n e.pr... |
"protected void startUp() throws Exception {\n LOGGER.info(\"String_Node_Str\");\n shutdowner.startAsync();\n shutdowner.awaitRunning();\n BackendBundle backendBundle = config.getBackendBundleGenerator().apply(generalBundleConfig);\n startBundle(backendBundle);\n TorodBundle torodBundle = createTorodB... |
"public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {\n boolean retVal = false;\n Player player = (Player) sender;\n if (this.plugin.hasPermission(player, AppStrings.COMMAND_DELETE_PERMISSION, AppStrings.COMMAND_DELETE)) {\n if (args.length == 1) {\n ... |
"public void selectionChanged(SelectionChangedEvent e) {\n StructuredSelection sel = (StructuredSelection) e.getSelection();\n xpath = getXpath(sel);\n xpathText.setText(xpath);\n if (getButton(IDialogConstants.OK_ID) != null)\n getButton(IDialogConstants.OK_ID).setEnabled(xpath.length() > 0);\n}\n"
|
"public static void sendNoSpacePacket(Entity player) {\n ByteBuf buf = Unpooled.buffer();\n ByteBufOutputStream out = new ByteBufOutputStream(buf);\n try {\n out.writeByte(2);\n out.writeInt(player.worldObj.provider.dimensionId);\n out.writeInt(player.getEntityId());\n } catch (IOExcept... |
"final void appNotRespondingLocked(ProcessRecord app, HistoryRecord activity, HistoryRecord parent, final String annotation) {\n if (mShuttingDown || app.notResponding || app.crashing) {\n return;\n }\n EventLog.writeEvent(EventLogTags.AM_ANR, app.pid, app.processName, app.info.flags, annotation);\n ... |
"private HandlerCollection createHandlers() {\n WebAppContext ctx = new WebAppContext();\n ctx.setContextPath(\"String_Node_Str\");\n ctx.setWar(appBase);\n if (!Strings.isNullOrEmpty(webInfLocation)) {\n ctx.setDescriptor(webInfLocation);\n }\n HashLoginService loginService = new HashLoginServ... |
"private int internalAddRow(ResultSet resultSet, int column) throws SQLException {\n RolapMember member = null;\n if (currMember != null) {\n member = currMember;\n } else {\n boolean checkCacheStatus = true;\n for (int i = 0; i <= levelDepth; i++) {\n RolapLevel childLevel = le... |
"public Token parameter(String name, Map<String, Object> options) throws IllegalActionException, NameDuplicationException {\n if (name == null) {\n throw new IllegalActionException(this, \"String_Node_Str\");\n }\n Attribute parameter = getAttribute(name);\n if (parameter == null) {\n paramete... |
"public RefactoringStatus checkFinalConditions(IProgressMonitor progressMonitor) throws OperationCanceledException {\n clearChanges();\n RefactoringStatus status = new RefactoringStatus();\n try {\n progressMonitor.beginTask(RefactorResourcesUtils.getString(\"String_Node_Str\"), 2);\n for (IResou... |
"protected Position handlePosition(Position position) {\n Device device = Context.getIdentityManager().getDeviceById(position.getDeviceId());\n String attributes = MiscFormatter.toJsonString(position.getAttributes());\n String request = url.replace(\"String_Node_Str\", device.getUniqueId()).replace(\"String_No... |
"protected Object runMethod(Method m, Class<? extends Annotation> requiredAnnotation) throws NoSuchMethodException, IllegalAccessException, InstantiationException, InvocationTargetException {\n Boolean findRequiredAnnotation = false;\n Boolean findAdapterOnMethod = false;\n NoAdapter noAdapter = NoAdapter.NO_A... |
"public List<Pair<String, Object>> execute(Map<String, Object> params) {\n Long id = (Long) params.get(BaseCmd.Properties.ID.getName());\n Account account = (Account) params.get(BaseCmd.Properties.ACCOUNT_OBJ.getName());\n String accountName = (String) params.get(BaseCmd.Properties.ACCOUNT.getName());\n Lon... |
"private Query prepareInsertQuery() {\n QueryBuilder qb = QueryBuilder.insert();\n qb.from(getEntity().getGeneratedName());\n for (Field f : getEntity().getFields()) {\n boolean useField = true;\n if (f.isId()) {\n IdGenerationPolicy policy = MappingSession.getConfiguration().getIdGene... |
"private boolean isCompatiblePhpModuleNodeType(QName nodeTypeId) {\n if (nodeTypeId.equals(this.phpModule)) {\n return true;\n }\n if (nodeTypeId.toString().equals(this.phpModuleNodeTypeTOSCASpecificType.toString())) {\n return true;\n }\n return false;\n}\n"
|
"public static ThriftServer createServer(int serverIndex, BlurConfiguration configuration, boolean randomPort) throws Exception {\n Configuration config = new Configuration();\n TableContext.setSystemBlurConfiguration(configuration);\n TableContext.setSystemConfiguration(config);\n String bindAddress = conf... |
"public Object getValuesIndicatingNoEntry(DatabaseField key, boolean shouldReturnNodes) {\n XMLField field = convertToXMLField(key);\n NodeList nodeList = UnmarshalXPathEngine.getInstance().selectNodes(dom, field, field.getNamespaceResolver());\n if (null == nodeList) {\n return null;\n }\n int re... |
"private List<NetworkVO> listAccountSpecificAndZoneLevelNetworks(SearchCriteria<NetworkVO> sc, Filter searchFilter, String path, List<Long> permittedAccounts) {\n SearchCriteria<NetworkVO> ssc = _networksDao.createSearchCriteria();\n SearchCriteria<NetworkVO> accountSC = _networksDao.createSearchCriteria();\n ... |
"public void testReplicators() throws Exception {\n statService = new StatServiceBuilder().setRecorder(recorder).addReplicator(replicator).addReplicator(replicator).addReplicator(new NoOpReplicator()).build();\n String[] names = Arry.array(\"String_Node_Str\", \"String_Node_Str\");\n int[] counts = Int.array(1... |
"protected void sleepInternal(long millis, int ns) throws InterruptedException {\n wakeupNanoTime = VM_Time.nanoTime() + (millis * (long) 1e6) + ns;\n VM_ThreadProxy proxy = new VM_ThreadProxy(this, wakeupNanoTime);\n if (sleepImpl(proxy)) {\n throw new InterruptedException(\"String_Node_Str\");\n }\... |
"public boolean applies(GameEvent event, Ability source, Game game) {\n cardWasCycledThisTurn = false;\n cardHasCycling = false;\n if (((ZoneChangeEvent) event).getToZone() == Zone.GRAVEYARD && !game.isSimulation()) {\n Player controller = game.getPlayer(source.getControllerId());\n AbandonedSarc... |
"private TwillController startTwillApplication(TwillRunnerService twillRunner, ServiceStore serviceStore, TokenSecureStoreRenewer secureStoreRenewer) {\n try {\n Path tempPath = Files.createDirectories(Paths.get(cConf.get(Constants.CFG_LOCAL_DATA_DIR), cConf.get(Constants.AppFabric.TEMP_DIR)).toAbsolutePath()... |
"protected final void decode(ChannelHandlerContext ctx, FMLProxyPacket msg, List<Object> out) throws Exception {\n testMessageValidity(msg);\n ByteBuf payload = msg.payload();\n byte discriminator = payload.readByte();\n Class<? extends A> clazz = discriminators.get(discriminator);\n if (clazz == null) {... |
"public static void createBootImageObjects(Vector typeNames, String bootImageTypeNamesFile) throws IllegalAccessException, ClassNotFoundException {\n VM_Callbacks.notifyBootImage(typeNames.elements());\n if (verbose >= 1)\n say(\"String_Node_Str\");\n for (Enumeration e = typeNames.elements(); e.hasMore... |
"public Pointcut concretize1(ResolvedTypeX inAspect, IntMap bindings) {\n IfPointcut ret = new IfPointcut(testMethod, extraParameterFlags);\n partiallyConcretized = ret;\n if (bindings.directlyInAdvice()) {\n Advice advice = bindings.getEnclosingAdvice();\n ret.baseArgsCount = advice.getBaseParam... |
"private void loadDeep() throws ServerException, UserException, BimServerClientException, PublicInterfaceNotFoundException {\n if (modelState != ModelState.FULLY_LOADED) {\n modelState = ModelState.LOADING;\n Long download = bimServerClient.getBimsie1ServiceInterface().download(roid, getIfcSerializerOi... |
"public PointF getCenterOffsets() {\n return new PointF(mContentRect.centerX(), mContentRect.centerY());\n}\n"
|
"public int process(Buffer input, Buffer output) {\n if (!checkInputBuffer(input))\n return BUFFER_PROCESSED_FAILED;\n if (isEOM(input)) {\n propagateEOM(output);\n return BUFFER_PROCESSED_OK;\n }\n if (input.isDiscard() || frameProcessingControl.isMinimalProcessing()) {\n output... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.