idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,694,189 | public void jpa_jpa20_cache_testCache010() throws Exception {<NEW_LINE>int testEntryId = 10000;<NEW_LINE>Cache l2cache = em_CACHE_JEE_DCTRUE_DAC.getEntityManagerFactory().getCache();<NEW_LINE>// 1. Test em.clear() does not clear the L2 cache<NEW_LINE>CacheEntitySimple1 newEntitySimple1 = new CacheEntitySimple1();<NEW_L... | newEntitySimple2.setStrVal("CacheEntitySimple2 " + testEntryId); |
1,624,726 | public DescribePrincipalIdFormatResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribePrincipalIdFormatResult describePrincipalIdFormatResult = new DescribePrincipalIdFormatResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NE... | new ArrayList<PrincipalIdFormat>()); |
567,513 | private void markupHashTable(TaskMonitor monitor) {<NEW_LINE>ElfDynamicTable dynamicTable = elf.getDynamicTable();<NEW_LINE>if (dynamicTable == null || !dynamicTable.containsDynamicValue(ElfDynamicType.DT_HASH)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>DataType dt = DWordDataType.dataType;<NEW_LINE>Address hashTableAddr ... | , dt.getLength())); |
717,482 | public void run() {<NEW_LINE>if (!LOG.isStatistics()) {<NEW_LINE>LOG.error("Logging level should be at least level STATISTICS (parameter -time) to see any output.");<NEW_LINE>}<NEW_LINE>Database database = inputstep.getDatabase();<NEW_LINE>Relation<O> relation = database.getRelation(distance.getInputTypeRestriction());... | (key + ".checksum", hash)); |
1,622,913 | protected void configureForSourceSet(final SourceSet sourceSet, final Pmd task) {<NEW_LINE>task.setDescription("Run PMD analysis for " + <MASK><NEW_LINE>task.setSource(sourceSet.getAllJava());<NEW_LINE>ConventionMapping taskMapping = task.getConventionMapping();<NEW_LINE>ConfigurationContainer configurations = project.... | sourceSet.getName() + " classes"); |
1,417,285 | private List<JExpression> popCallArguments(SourceInfo info, Expression[] arguments, MethodBinding methodBinding) {<NEW_LINE>List<JExpression> args = pop(arguments);<NEW_LINE>for (int i = 0; i < args.size(); i++) {<NEW_LINE>// Account for varargs parameter.<NEW_LINE>int parameterIndex = Math.min(i, methodBinding.paramet... | int varArg = params.length - 1; |
74,228 | private void loadNode1092() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerState_EnumStrings, new QualifiedName(0, "EnumStrings"), new LocalizedText("en", "EnumStrings"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new Dat... | .expanded(), true)); |
1,037,011 | protected void reportMatching(LambdaExpression lambdaExpression, IJavaElement parent, int accuracy, MatchingNodeSet nodeSet, boolean typeInHierarchy) throws CoreException {<NEW_LINE>IJavaElement enclosingElement = null;<NEW_LINE>// Report the lambda declaration itself.<NEW_LINE>if (accuracy > -1) {<NEW_LINE>enclosingEl... | .removeKey(nodes[i]); |
384,899 | public void addBreezemoon(final RequestContext context) {<NEW_LINE>context.renderJSON(StatusCodes.ERR);<NEW_LINE>final Request request = context.getRequest();<NEW_LINE>final JSONObject requestJSONObject = context.requestJSON();<NEW_LINE>if (isInvalid(context, requestJSONObject)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>f... | request, Common.USER_AGENT, ""); |
1,481,304 | public static void main(String[] args) {<NEW_LINE>int port = Integer.parseInt(System.getenv().getOrDefault("PORT", "8080"));<NEW_LINE>port(port);<NEW_LINE>get("/", (req, res) -> {<NEW_LINE>// [START cloudrun_manual_logging]<NEW_LINE>// [START run_manual_logging]<NEW_LINE>// Build structured log messages as an object.<N... | ("severity", "NOTICE"), globalLogFields); |
799,754 | public void run() {<NEW_LINE>try {<NEW_LINE>// Get the version number of the latest KeyStore Explorer from its web site<NEW_LINE>URL latestVersionUrl = new URL(URLs.LATEST_VERSION_ADDRESS);<NEW_LINE>String versionString = IOUtils.toString(latestVersionUrl, StandardCharsets.US_ASCII);<NEW_LINE>latestVersion = new Versio... | (() -> closeDialog()); |
1,609,764 | private ArrayList<String> load(String fileName) {<NEW_LINE>ArrayList<String> arrayList <MASK><NEW_LINE>if (fileName == null) {<NEW_LINE>logger.error("fail to loadProperties, filename is null");<NEW_LINE>return arrayList;<NEW_LINE>}<NEW_LINE>FileReader reader = null;<NEW_LINE>BufferedReader br = null;<NEW_LINE>try {<NEW... | = new ArrayList<String>(); |
1,547,979 | public StackManipulation resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, ArgumentHandler argumentHandler, StackMapFrameHandler.ForPostProcessor stackMapFrameHandler, StackManipulation exceptionHandler) {<NEW_LINE>List<StackManipulation> stackManipulations = new ArrayLi... | enter(), type) : stackManipulation; |
532,376 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@Name('context') @public create context SegmentedByString partition by theString from SupportBean", path);<NEW_LINE>String[] fields = new String[] { "theString", "intPrimitive", "val0" };<NEW_LI... | { "G3", 10, null }); |
254,329 | // EE9 does not support keep-alive property<NEW_LINE>@SkipForRepeat(MicroProfileActions.MP50_ID)<NEW_LINE>public void testKeepAliveProp(HttpServletRequest req, HttpServletResponse resp) throws Exception {<NEW_LINE>final String m = "testKeepAliveProp";<NEW_LINE>int port = req.getServerPort();<NEW_LINE>PropChecker client... | ).build(PropChecker.class); |
968,324 | private static void process(AgentInstance agentInstance, Collection<FilterHandle> callbacks, EventBean theEvent) {<NEW_LINE>AgentInstanceContext agentInstanceContext = agentInstance.getAgentInstanceContext();<NEW_LINE>agentInstance.getAgentInstanceContext().getAgentInstanceLock().acquireWriteLock();<NEW_LINE>try {<NEW_... | .getTableExprEvaluatorContext().releaseAcquiredLocks(); |
980,030 | public void propertyChange(final PropertyChangeEvent evt) {<NEW_LINE>if (calendar != null) {<NEW_LINE>if (evt.getPropertyName().equals(JDayChooser.DAY_PROPERTY)) {<NEW_LINE>calendar.set(Calendar.DAY_OF_MONTH, ((Integer) evt.getNewValue<MASK><NEW_LINE>} else if (evt.getPropertyName().equals(JMonthChooser.MONTH_PROPERTY)... | ()).intValue()); |
858,827 | private static RexNode refactorOrListToInList(List<RexNode> disjunctions) {<NEW_LINE>LinkedList<RexNode> firstList = new LinkedList<>();<NEW_LINE>LinkedList<RexNode> restList = new LinkedList<>();<NEW_LINE>Collection<RexNode> lastList;<NEW_LINE>Map<Boolean, List<RexNode>> map = disjunctions.stream().collect(Collectors.... | right = RexUtil.removeCast(right); |
1,372,379 | private static void checkFunction(Method method) {<NEW_LINE>// check that the Method is public in some public reachable class:<NEW_LINE>final MethodType type;<NEW_LINE>try {<NEW_LINE>type = MethodHandles.publicLookup().unreflect(method).type();<NEW_LINE>} catch (IllegalAccessException iae) {<NEW_LINE>throw new IllegalA... | throw new IllegalArgumentException(method + " is not static."); |
1,498,345 | public List<Long> bitField(byte[] key, BitFieldSubCommands subCommands) {<NEW_LINE>List<Object> params = new ArrayList<>();<NEW_LINE>params.add(key);<NEW_LINE>boolean writeOp = false;<NEW_LINE>for (BitFieldSubCommands.BitFieldSubCommand subCommand : subCommands) {<NEW_LINE>String size = "u";<NEW_LINE>if (subCommand.get... | ) subCommand).getValue()); |
204,500 | final UpdateSMBSecurityStrategyResult executeUpdateSMBSecurityStrategy(UpdateSMBSecurityStrategyRequest updateSMBSecurityStrategyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateSMBSecurityStrategyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,847,484 | private static // pos is already after the leadByte, and the lead byte is already shifted right by 1.<NEW_LINE>int readValue(byte[] bytes, int pos, int leadByte) {<NEW_LINE>int value;<NEW_LINE>if (leadByte < kMinTwoByteValueLead) {<NEW_LINE>value = leadByte - kMinOneByteValueLead;<NEW_LINE>} else if (leadByte < kMinThr... | [pos + 1] & 0xff); |
1,264,989 | protected void taskOnceLoop() {<NEW_LINE>try {<NEW_LINE>WeEvent event = this.eventQueue.poll(this.idleTime, TimeUnit.MILLISECONDS);<NEW_LINE>// empty queue, try next.<NEW_LINE>if (event == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>log.debug("poll from notify queue, event: {}", event);<NEW_LINE>// avoid duplicate wit... | "event to be notify again, skip {}", event.getEventId()); |
552,023 | private String computeProvider() {<NEW_LINE>String originalProvider = computedProvider;<NEW_LINE>String curProvider;<NEW_LINE>if (providersFoundByBells.isEmpty()) {<NEW_LINE>curProvider = null;<NEW_LINE>} else {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())<NEW_LINE>Tr.debug(tc, "Choose firs... | info(tc, "DEFAULT_PERSISTENCE_PROVIDER_LOADED_CWWJP0006I", curProvider); |
14,810 | public User load(final String username) {<NEW_LINE>LOG.debug("Loading user {}", username);<NEW_LINE>// special case for the locally defined user, we don't store that in MongoDB.<NEW_LINE>if (!configuration.isRootUserDisabled() && configuration.getRootUsername().equals(username)) {<NEW_LINE>LOG.debug("User {} is the bui... | query(UserImpl.class, query); |
1,010,909 | public Repo<Manager> call(final long tid, Manager env) throws Exception {<NEW_LINE>String zTablePath = Constants.ZROOT + "/" + env.getInstanceID() + Constants.ZTABLES + "/" + tableId + Constants.ZTABLE_COMPACT_ID;<NEW_LINE>ZooReaderWriter zoo = env.getContext().getZooReaderWriter();<NEW_LINE>byte[] cid;<NEW_LINE>try {<... | namespaceId, tableId, startRow, endRow); |
1,452,919 | final ListJobsResult executeListJobs(ListJobsRequest listJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,585,831 | public static void test() throws Exception {<NEW_LINE>TransactionTopologyBuilder builder = new TransactionTopologyBuilder();<NEW_LINE>if (isLocal) {<NEW_LINE>conf.put("tuple.num.per.batch", 5);<NEW_LINE><MASK><NEW_LINE>conf.put("transaction.exactly.cache.type", "default");<NEW_LINE>}<NEW_LINE>int spoutParallelism = JSt... | conf.put("transaction.scheduler.spout", false); |
1,354,217 | public static <T extends IRecipeRoot> T readFileUser(T target, String rootElement, String fileName, File userFL) throws IOException, XMLStreamException {<NEW_LINE>if (userFL.exists()) {<NEW_LINE>Log.info("Reading user recipe file " + fileName);<NEW_LINE>try (InputStream userFileStream = userFL.exists() ? new FileInputS... | stream, userFL.toString()); |
1,186,999 | protected List<Contentlet> findByStructure(String structureInode, Date maxDate, int limit, int offset) throws DotDataException, DotStateException, DotSecurityException {<NEW_LINE>final DotConnect dotConnect = new DotConnect();<NEW_LINE>final StringBuilder select = new StringBuilder();<NEW_LINE>select.append("select con... | (structureInode).append("' "); |
502,456 | public void onBindViewHolder(@NonNull ViewHolder holder, int position) {<NEW_LINE>String packageName = packages.get(position);<NEW_LINE>ApplicationInfo info = null;<NEW_LINE>try {<NEW_LINE>info = pm.getApplicationInfo(packageName, 0);<NEW_LINE>} catch (PackageManager.NameNotFoundException ignore) {<NEW_LINE>}<NEW_LINE>... | holder.title.setText(label); |
722,843 | private static SelectedMethod<SourceMethod> findMatchingPresenceCheckMethod(Method method, SelectionParameters selectionParameters, MappingBuilderContext ctx) {<NEW_LINE>MethodSelectors selectors = new MethodSelectors(ctx.getTypeUtils(), ctx.getElementUtils(), ctx.getTypeFactory(<MASK><NEW_LINE>Type booleanType = ctx.g... | ), ctx.getMessager()); |
1,160,082 | private void initialize(Snapshot snapshot) {<NEW_LINE>// TODO: if some property cannot be loaded for current snapshot version, FAIL initializing the snapshot!<NEW_LINE>Storage storage = snapshot.getStorage();<NEW_LINE>String version = getProperty(storage, SNAPSHOT_VERSION);<NEW_LINE>chartCache = Integer.parseInt(getPro... | (getProperty(storage, PROP_TOTAL_THREADS)); |
387,358 | void parseStatusParameters() {<NEW_LINE>mStatusCode = mParameters[0];<NEW_LINE>mStatusCodeName = getStatusCodeName(mStatusCode);<NEW_LINE>final int srcAddress = MeshParserUtils.unsignedBytesToInt(mParameters[1], mParameters[2]);<NEW_LINE>final int dstAddress = MeshParserUtils.unsignedBytesToInt(mParameters[3], mParamet... | .unsignedByteToInt(mParameters[5]); |
583,215 | public static Optional<FileValue> readFileUploadToSettingValue(final PwmRequest pwmRequest, final int maxFileSize) throws PwmUnrecoverableException, IOException {<NEW_LINE>final Map<String, PwmRequest.FileUploadItem> fileUploads;<NEW_LINE>try {<NEW_LINE>fileUploads = pwmRequest.readFileUploads(maxFileSize, 1);<NEW_LINE... | fileUploads.get(PwmConstants.PARAM_FILE_UPLOAD); |
264,185 | public void drawAsManyDot(String prefix, boolean drawUnanalysed) {<NEW_LINE>for (SootMethod m : data.keySet()) {<NEW_LINE>DotGraph dot = new DotGraph(m.toString());<NEW_LINE>dot.setGraphLabel(m.toString());<NEW_LINE>fillDotGraph("X", data<MASK><NEW_LINE>File f = new File(SourceLocator.v().getOutputDir(), prefix + m.toS... | .get(m), dot); |
1,209,347 | public Result doMerge() {<NEW_LINE>com.feth.play.module.pa.controllers.Authenticate.noCache(response());<NEW_LINE>// this is the currently logged in user<NEW_LINE>final AuthUser aUser = this.auth.getUser(session());<NEW_LINE>// this is the user that was selected for a login<NEW_LINE>final AuthUser bUser = this.auth.get... | routes.Application.index()); |
164,437 | private TypeDef findPreexistingTypeDef(Program program) throws InvalidDataTypeException {<NEW_LINE>DataTypeManager dtm = program.getDataTypeManager();<NEW_LINE>DataType dt = dtm.getDataType(userPath, userName);<NEW_LINE>if (dt == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (!(dt instanceof TypeDef)) {<NEW_LINE... | getDataType()).getDataType(); |
347,608 | static Table evalGraph(OpGraph opGraph, Evaluator evaluator) {<NEW_LINE>ExecutionContext execCxt = evaluator.getExecContext();<NEW_LINE>if (!Var.isVar(opGraph.getNode())) {<NEW_LINE>DatasetGraph dsg = execCxt.getDataset();<NEW_LINE>Node graphNode = opGraph.getNode();<NEW_LINE>if (!dsg.containsGraph(graphNode))<NEW_LINE... | evaluator.join(patternTable, tableVarURI); |
1,393,454 | private void printUnweighted() {<NEW_LINE><MASK><NEW_LINE>String bitWise = imageType.getBitWise();<NEW_LINE>out.print("\t@Override\n" + "\tprotected void computeUnweightedScore() {\n" + "\t\t// compute the score for each angle in the histogram\n" + "\t\tfor( int y = rect.y0; y < rect.y1; y++ ) {\n" + "\t\t\tint indexX ... | String type = imageType.getDataType(); |
1,069,600 | private void logXmlProblem(CategorizedProblem problem, char[] unitSource) {<NEW_LINE>final int sourceStart = problem.getSourceStart();<NEW_LINE>final int sourceEnd = problem.getSourceEnd();<NEW_LINE>final <MASK><NEW_LINE>HashMap<String, Object> parameters = new HashMap<>();<NEW_LINE>// ID as field name<NEW_LINE>paramet... | int id = problem.getID(); |
264,054 | protected <O> Flux<O> doAggregate(Aggregation aggregation, String collectionName, @Nullable Class<?> inputType, Class<O> outputType) {<NEW_LINE>Assert.notNull(aggregation, "Aggregation pipeline must not be null!");<NEW_LINE>Assert.hasText(collectionName, "Collection name must not be null or empty!");<NEW_LINE>Assert.no... | , ctx.getInputType())); |
920,783 | public Dialog createDialog(Activity activity, Bundle args) {<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(mapActivity);<NEW_LINE>builder.setTitle(R.string.gps_status);<NEW_LINE>LinearLayout ll = new LinearLayout(activity);<NEW_LINE>final ListView lv = new ListView(activity);<NEW_LINE>final int dp24 = ... | (getItem(position).stringRes); |
495,015 | public TreeNode visitForStatement(com.strobel.decompiler.languages.java.ast.ForStatement node, Void data) {<NEW_LINE>ForStatement forStatement = new ForStatement();<NEW_LINE>for (com.strobel.decompiler.languages.java.ast.Statement init : node.getInitializers()) {<NEW_LINE>TreeNode stmt = init.acceptVisitor(this, null);... | updater.acceptVisitor(this, null); |
603,980 | public static void main(String[] args) {<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE>int[][] A = new int[110][110];<NEW_LINE>int n = sc.nextInt();<NEW_LINE>for (int i = 0; i < n; ++i) for (int j = 0; j < n; ++j) {<NEW_LINE>A[i][j] = sc.nextInt();<NEW_LINE>// pre-processing<NEW_LINE>if (j > 0)<NEW_LINE>A[i][j... | += A[row][r]; |
356,864 | public boolean willHaveEnoughDays(LeaveRequest leaveRequest) {<NEW_LINE>LocalDateTime todayDate = appBaseService<MASK><NEW_LINE>LocalDateTime beginDate = leaveRequest.getFromDateT();<NEW_LINE>int interval = (beginDate.getYear() - todayDate.getYear()) * 12 + beginDate.getMonthValue() - todayDate.getMonthValue();<NEW_LIN... | .getTodayDateTime().toLocalDateTime(); |
9,586 | protected static BaseInjection showDefaultInjectionUI(final Project project, BaseInjection injection) {<NEW_LINE>final BaseInjectionPanel panel = new BaseInjectionPanel(injection, project);<NEW_LINE>panel.reset();<NEW_LINE>final DialogBuilder builder = new DialogBuilder(project);<NEW_LINE>LanguageInjectionSupport suppo... | builder.setTitle(EditInjectionSettingsAction.EDIT_INJECTION_TITLE); |
518,644 | private FLClientStatus checkSignature(ReturnExchangeKeys bufData, int dataIndex, byte[] cPkByte, byte[] sPkByte) {<NEW_LINE>ByteBuffer signature = bufData.remotePublickeys(dataIndex).signatureAsByteBuffer();<NEW_LINE>if (signature == null) {<NEW_LINE>LOGGER.severe<MASK><NEW_LINE>return FLClientStatus.FAILED;<NEW_LINE>}... | (Common.addTag("[checkSignature] the signature get from server is null, please confirm that pki_verify mode is open at server.")); |
652,851 | public void defaultVMInstallChanged(IVMInstall previous, IVMInstall current) {<NEW_LINE>if (Objects.equals(previous, current)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String prev = (previous == null) ? null : previous.getId() + "-" + previous.getInstallLocation();<NEW_LINE>String curr = (current == null) ? null : curren... | "defaultVMInstallChanged -> force update of " + project.getName()); |
1,106,751 | public void showEditTextDialog(int title, int hint, int positiveBtn, final OnEditTextDialogClicked positiveListener) {<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(this);<NEW_LINE>LayoutInflater inflater = getLayoutInflater();<NEW_LINE>View layout = inflater.inflate(R.layout.dialog_edit_text, null);<N... | findViewById(R.id.editText); |
173,023 | private void drawPonderingState(Graphics2D g, String text, int x, int y, double size) {<NEW_LINE>int fontSize = (int) (max(getWidth(), getHeight()) * size);<NEW_LINE>Font font = new Font(Lizzie.config.fontName, Font.PLAIN, fontSize);<NEW_LINE>FontMetrics fm = g.getFontMetrics(font);<NEW_LINE>int stringWidth = fm.string... | x, y, width, height); |
1,309,091 | protected List<Attachment> downloadCssAndImages(String endpoint, HttpRequest request) throws MalformedURLException, IOException {<NEW_LINE>HtmlPage htmlPage = client.getPage(endpoint);<NEW_LINE>String xPathExpression = "//*[name() = 'img' or name() = 'link' and @type = 'text/css']";<NEW_LINE>List<?> resultList = htmlPa... | (request, url, fhsce)); |
208,571 | private void addInferenceUsage(ActionListener<Map<String, Object>> listener) {<NEW_LINE>GetTrainedModelsAction.Request getModelsRequest = new GetTrainedModelsAction.Request("*", Collections.emptyList(), Collections.emptySet());<NEW_LINE>getModelsRequest.setPageParams(new PageParams(0, 10_000));<NEW_LINE>client.execute(... | inferenceUsage = new LinkedHashMap<>(); |
735,041 | public void writeSinglePage() {<NEW_LINE>List<PageBox> pages = _root.getLayer().getPages();<NEW_LINE>int rootHeight = _root.getHeight();<NEW_LINE>RenderingContext c = newRenderingContext();<NEW_LINE>c.setInitialPageNo(_initialPageNo);<NEW_LINE>c.setFastRenderer(true);<NEW_LINE>PageBox page = pages.get(0);<NEW_LINE>Rect... | ).assignPagePaintingPositions(c, _pagingMode); |
1,150,493 | public Environment decrypt(Environment environment) {<NEW_LINE>Map<String, VaultResponse> loadedVaultKeys = new HashMap<>();<NEW_LINE>Environment result = new Environment(environment);<NEW_LINE>for (PropertySource source : environment.getPropertySources()) {<NEW_LINE>Map<Object, Object> map = new LinkedHashMap<>(source... | String name = key.toString(); |
1,545,993 | private void onQueueChanged(List<QueueRecord> result) {<NEW_LINE>Timber.d(">>Queue changed ! Size=%s", result.size());<NEW_LINE>isEmpty = (result.isEmpty());<NEW_LINE>isPaused = (!isEmpty && (ContentQueueManager.getInstance().isQueuePaused() || !ContentQueueManager.getInstance().isQueueActive(requireActivity())));<NEW_... | INSTANCE.set(itemAdapter, contentItems); |
1,342,738 | public void encode(Buffer valueBuffer) {<NEW_LINE>StrategyAnalyzer<Long<MASK><NEW_LINE>StrategyAnalyzer<Long> directMemoryUsedStrategyAnalyzer = directMemoryUsedAnalyzerBuilder.build();<NEW_LINE>StrategyAnalyzer<Long> mappedCountStrategyAnalyzer = mappedCountAnalyzerBuilder.build();<NEW_LINE>StrategyAnalyzer<Long> mapp... | > directCountStrategyAnalyzer = directCountAnalyzerBuilder.build(); |
1,370,476 | final UpdateEnvironmentResult executeUpdateEnvironment(UpdateEnvironmentRequest updateEnvironmentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateEnvironmentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | false), new UpdateEnvironmentResultJsonUnmarshaller()); |
1,274,853 | public String submitTask(final String task) {<NEW_LINE>try {<NEW_LINE>return RetryUtils.retry(() -> {<NEW_LINE>StatusResponseHolder response = httpClient.go(new Request(HttpMethod.POST, new URL(getIndexerURL() + "task")).setContent("application/json", StringUtils.toUtf8(task)), StatusResponseHandler.getInstance()).get(... | LOG.debug("Submitted task with TaskID[%s]", taskID); |
807,159 | private PResult handleStringMetaData(final PStringMetaData stringMetaData) {<NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE>logger.debug("Handle PStringMetaData={}", MessageFormatUtils.debugLog(stringMetaData));<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>final Header agentInfo = ServerContext.getAgentInfo();<NEW_LINE>final S... | stringMetaData.getStringId(), stringValue); |
616,538 | public void migrate(@NonNull SupportSQLiteDatabase database) {<NEW_LINE>// Add hosts sources id column and migrate data<NEW_LINE>database.execSQL("CREATE TABLE `hosts_sources_new` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `url` TEXT NOT NULL, `enabled` INTEGER NOT NULL, `last_modified_local` INTEGER, `last_modi... | USER_SOURCE_ID + ", '" + USER_SOURCE_URL + "', 1)"); |
1,743,709 | private void printTopicInfo(final SourceDescription source) {<NEW_LINE>final String timestamp = source.getTimestamp().isEmpty() ? "Not set - using <ROWTIME>" : source.getTimestamp();<NEW_LINE>writer().println(String.format("%-20s : %s", "Timestamp field", timestamp));<NEW_LINE>writer().println(String.format("%-20s : %s... | writer().println(topicInformation); |
1,076,935 | private static boolean daemonizeIfPossible() {<NEW_LINE>String osName = System.getProperty("os.name");<NEW_LINE>Libc.OpenPtyLibrary openPtyLibrary;<NEW_LINE>Platform platform = Platform.detect();<NEW_LINE>if (platform == Platform.LINUX) {<NEW_LINE>Libc.Constants.rTIOCSCTTY = Libc.Constants.LINUX_TIOCSCTTY;<NEW_LINE>Lib... | .rFSETFD = Libc.Constants.LINUX_F_SETFD; |
1,741,334 | private void addEdge(String[] edgeData) {<NEW_LINE>NodeDraft sourceNode;<NEW_LINE>if (!container.nodeExists(edgeData[0])) {<NEW_LINE>sourceNode = container.factory().newNodeDraft(edgeData[0]);<NEW_LINE>container.addNode(sourceNode);<NEW_LINE>} else {<NEW_LINE>sourceNode = container.getNode(edgeData[0]);<NEW_LINE>}<NEW_... | .newNodeDraft(edgeData[1]); |
476,289 | public CompletableFuture<@Nullable Void> apply(String[] childIDs, final Function<TYPE, CompletableFuture<Void>> addedAction, final Function<String, TYPE> supplyNewChild, final Consumer<TYPE> removedCallback) {<NEW_LINE>Set<String> arrayValues = Stream.of(childIDs).collect(Collectors.toSet());<NEW_LINE>// Add all entrie... | accept(entry.getValue()); |
536,739 | public ListCell<BlockChainExplorer> call(ListView<BlockChainExplorer> list) {<NEW_LINE>ListCell<BlockChainExplorer> cell = new ListCell<>() {<NEW_LINE><NEW_LINE>final Label label = new AutoTooltipLabel();<NEW_LINE><NEW_LINE>final AnchorPane pane = new AnchorPane(label);<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void... | .getSelectionModel().getSelectedItem(); |
155,959 | public void parentImplotion(int PP_Product_BOMLine_ID) throws Exception {<NEW_LINE>int PP_Product_BOM_ID = 0;<NEW_LINE>int M_Product_ID = 0;<NEW_LINE>X_T_BOMLine tboml = new X_T_BOMLine(ctx, 0, null);<NEW_LINE>PP_Product_BOM_ID = DB.getSQLValue(null, "SELECT PP_Product_BOM_ID FROM PP_Product_BOMLine WHERE PP_Product_BO... | (rs.getInt(2)); |
830,460 | public void customize(final Logger logger) {<NEW_LINE>if (logger == null) {<NEW_LINE>// nothing to customize<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (withinCustomizeLogLevel.get() != null && withinCustomizeLogLevel.get()) {<NEW_LINE>// was already handled<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// mainly we don't customiz... | + hostNameWithDot + logger.getName(); |
840,632 | Map<String, Object> buildSupportFileBundle(List<Object> allOperations, List<ModelMap> allModels) {<NEW_LINE>Map<String, Object> bundle = new HashMap<>(config.additionalProperties());<NEW_LINE>bundle.put("apiPackage", config.apiPackage());<NEW_LINE>Map<String, Object> apis = new HashMap<>();<NEW_LINE>apis.put("apis", al... | bundle.put("apiInfo", apis); |
1,300,059 | public boolean shouldCreateEndpoint(Method method, List<Annotation> annotations) {<NEW_LINE>boolean isBean = AnnotatedElementUtils.isAnnotated(method, Bean.class.getName());<NEW_LINE>Assert.isTrue(isBean, "'@BridgeFrom' is eligible only for '@Bean' methods");<NEW_LINE>boolean isMessageChannelBean = MessageChannel.class... | (!hasBridgeTo, "'@BridgeFrom' and '@BridgeTo' are mutually exclusive 'MessageChannel' " + "'@Bean' method annotations"); |
1,778,316 | public static DescribeAlarmEventListResponse unmarshall(DescribeAlarmEventListResponse describeAlarmEventListResponse, UnmarshallerContext context) {<NEW_LINE>describeAlarmEventListResponse.setRequestId(context.stringValue("DescribeAlarmEventListResponse.RequestId"));<NEW_LINE>PageInfo pageInfo = new PageInfo();<NEW_LI... | ("DescribeAlarmEventListResponse.SuspEvents[" + i + "].HasTraceInfo")); |
195,985 | default LongColumn timeWindow(ChronoUnit unit, int n, LocalDateTime start) {<NEW_LINE>String newColumnName = "" + n + " " + unit.toString() + " window [" + name() + "]";<NEW_LINE>long packedStartDate = pack(start);<NEW_LINE>LongColumn numberColumn = LongColumn.create(newColumnName, size());<NEW_LINE>for (int i = 0; i <... | numberColumn.set(i, result); |
1,836,544 | public Integer call() throws Exception {<NEW_LINE>String[] args = allParameters.toArray(new String[0]);<NEW_LINE>ctx.<MASK><NEW_LINE>// Lets verify our arguments before we try to execute the command, avoiding forking the VM if the arguments are invalid and improves error/help messages<NEW_LINE>CommandLine actualAdminCo... | init(expandCommands, verbose, args); |
283,204 | private void matchupArgs(Object[] args) {<NEW_LINE>// if any error -- just return quietly<NEW_LINE>// if it can be fixed -- then change the contents of args<NEW_LINE>if (args == null || args.length == 0 || methodParamTypes == null || methodParamTypes.length == 0)<NEW_LINE>return;<NEW_LINE>if (args.length != methodParam... | args[i].toString(); |
267,626 | private void visitLabel(NodeTraversal t, Node node) {<NEW_LINE><MASK><NEW_LINE>checkState(nameNode != null);<NEW_LINE>String name = nameNode.getString();<NEW_LINE>LabelInfo li = getLabelInfo(name);<NEW_LINE>// This is a label...<NEW_LINE>if (li.referenced || !removeUnused) {<NEW_LINE>String newName = getNameForId(li.id... | Node nameNode = node.getFirstChild(); |
675,523 | private void appendExternalArchiveLabel(IPackageFragmentRoot root, long flags) {<NEW_LINE>IPath path;<NEW_LINE>IClasspathEntry classpathEntry = null;<NEW_LINE>try {<NEW_LINE>classpathEntry = JavaModelUtil.getClasspathEntry(root);<NEW_LINE>IPath rawPath = classpathEntry.getPath();<NEW_LINE>if (classpathEntry.getEntryKin... | .segment(segments - 1)); |
230,069 | private void loadHeaderless(InputStream inStream, String encoding, boolean verbose) throws IOException, UnsupportedEncodingException {<NEW_LINE>int i;<NEW_LINE>DataInputStream in = new DataInputStream(new BufferedInputStream(inStream));<NEW_LINE>// int fileSize= (int) f.length();<NEW_LINE>// TODO: how robust is this??<... | - 4 * (nPairs + nArcs); |
372,616 | public Entity unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Entity entity = new Entity();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = c... | class).unmarshall(context)); |
758,851 | // Options<NEW_LINE>@Override<NEW_LINE>public boolean onPrepareOptionsMenu(Menu menu) {<NEW_LINE>boolean accountsRestricted = PrivacyManager.getRestrictionEx(mAppInfo.getUid(), <MASK><NEW_LINE>boolean appsRestricted = PrivacyManager.getRestrictionEx(mAppInfo.getUid(), PrivacyManager.cSystem, null).restricted;<NEW_LINE>... | PrivacyManager.cAccounts, null).restricted; |
1,656,388 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see org.eclipse.core.runtime.jobs.Job#run(org.eclipse.core.runtime.IProgressMonitor)<NEW_LINE>*/<NEW_LINE>protected IStatus run(IProgressMonitor monitor) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>String resultText = "";<NEW_LINE>try {<NEW_LINE>this.beforeExecute();<NEW_LINE>resultText =... | result.setReturnValue(this._exitValue); |
135,416 | private void gameLogic(float tpf) {<NEW_LINE>// Subtract difficulty level in accordance to speed every 10 seconds<NEW_LINE>if (timer.getTimeInSeconds() >= coreTime2) {<NEW_LINE>coreTime2 = timer.getTimeInSeconds() + 10;<NEW_LINE>if (difficulty <= lowCap) {<NEW_LINE>difficulty = lowCap;<NEW_LINE>} else if (difficulty > ... | tpf * fpsRate, 0, 0); |
261,198 | static Socket createSocket(String host, int port, int timeout) throws JSchException {<NEW_LINE>Socket socket = null;<NEW_LINE>if (timeout == 0) {<NEW_LINE>try {<NEW_LINE>socket = new Socket(host, port);<NEW_LINE>return socket;<NEW_LINE>} catch (Exception e) {<NEW_LINE>String message = e.toString();<NEW_LINE>if (e insta... | ] ee = new Exception[1]; |
1,041,942 | public void itemStateChanged(ItemEvent e) {<NEW_LINE>// If selected: disable buttons, set their bg values from default setting, set sample bg & fg<NEW_LINE>// If deselected: enable buttons, set their bg values from current setting, set sample bg & bg<NEW_LINE>Color newBackground = null;<NEW_LINE>Color newForeground = n... | [position].setEnabled(true); |
1,817,660 | public void register(final SelectableChannel ch, final int interestOps, final NioTask<?> task) {<NEW_LINE>ObjectUtil.checkNotNull(ch, "ch");<NEW_LINE>if (interestOps == 0) {<NEW_LINE>throw new IllegalArgumentException("interestOps must be non-zero.");<NEW_LINE>}<NEW_LINE>if ((interestOps & ~ch.validOps()) != 0) {<NEW_L... | .currentThread().interrupt(); |
47,779 | protected void processAnnotationOnMethod(MethodMetadata data, Annotation methodAnnotation, Method method) {<NEW_LINE>if (CollectionFormat.class.isInstance(methodAnnotation)) {<NEW_LINE>CollectionFormat collectionFormat = findMergedAnnotation(method, CollectionFormat.class);<NEW_LINE>data.template().collectionFormat(col... | (new LinkedHashMap<>()); |
752,658 | protected boolean doJSObject(Object obj, JSDynamicObject target, @Cached("create()") @SuppressWarnings("unused") IsJSObjectNode isObjectNode, @Cached("createGetMethodHasInstance()") GetMethodNode getMethodHasInstanceNode, @Cached("create()") JSToBooleanNode toBooleanNode, @Cached("createCall()") JSFunctionCallNode call... | = getRealm().getOrdinaryHasInstanceFunction(); |
4,774 | private static Iterator<String> downloadSeedFile(final DigestURL seedURL) throws IOException {<NEW_LINE>// Configure http headers<NEW_LINE>final RequestHeader reqHeader = new RequestHeader();<NEW_LINE>reqHeader.<MASK><NEW_LINE>// httpc uses HTTP/1.0 is this necessary?<NEW_LINE>reqHeader.put(HeaderFramework.CACHE_CONTRO... | put(HeaderFramework.PRAGMA, "no-cache"); |
1,211,595 | protected void onSubmit(AjaxRequestTarget target, Form<?> form) {<NEW_LINE>UserModel user = GitBlitWebSession.get().getUser();<NEW_LINE>String data = keyData.getObject();<NEW_LINE>if (StringUtils.isEmpty(data)) {<NEW_LINE>// do not submit empty key<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SshKey key = new SshKey(data);<NEW... | String comment = keyComment.getObject(); |
739,892 | private boolean initAsTermMulOrDivFactor(String termString) {<NEW_LINE>int bracketChecker = 0;<NEW_LINE>for (int i = 0; i < termString.length(); i++) {<NEW_LINE>if (termString.charAt(i) == '(') {<NEW_LINE>bracketChecker++;<NEW_LINE>}<NEW_LINE>if (termString.charAt(i) == ')') {<NEW_LINE>bracketChecker--;<NEW_LINE>}<NEW_... | = new Term(leftSubString, parser); |
918,179 | private CompletableFuture<Void> excludeObsolete(IndexedCompactionArgs args, Map<UUID, TableBucket> buckets, TimeoutTimer timer) {<NEW_LINE>// Exclude all those Table Entries whose buckets altogether do not exist.<NEW_LINE>val deletedBuckets = args.candidatesByHash.keySet().stream().filter(k -> {<NEW_LINE>val bucket = b... | val bucketId = candidateBuckets.next(); |
840,083 | private void processDefaultProperty(PropertySetter p) {<NEW_LINE>FxProperty pi = beanInfo.getDefaultProperty();<NEW_LINE>if (pi == null) {<NEW_LINE>// check if the bean is not a Map or Collection:<NEW_LINE>if (beanInfo.isCollection() || beanInfo.isMap()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int[] posInfo = findConten... | getName()), p)); |
495,568 | protected void doLinkActivated(Link link) {<NEW_LINE>Map<String, Boolean> data = new HashMap<String, Boolean>();<NEW_LINE>data.put(DATA_NO_LINK, Boolean.TRUE);<NEW_LINE>if (isProjectPreferencePage()) {<NEW_LINE>openWorkspacePreferences(data);<NEW_LINE>} else {<NEW_LINE>HashSet<IProject> projectsWithSpecifics = new Hash... | ), projectsWithSpecifics, getNatureIDs()); |
1,145,081 | private CommitBean toCommitBean(Map<String, Object> commitMap, String callsign) throws Exception {<NEW_LINE>CommitBean CommitBean = new CommitBean();<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Map<String, Object> metaData = (Map<String, Object>) commitMap.get("commit");<NEW_LINE>String sha = metaData.get("commitI... | .setTitle(parts[0]); |
1,693,442 | public void writeExternal(Element rootElement) {<NEW_LINE>checkDisposed();<NEW_LINE>Element element = new Element(ELEMENT);<NEW_LINE>if (myName != null) {<NEW_LINE>element.setAttribute(LIBRARY_NAME_ATTR, myName);<NEW_LINE>}<NEW_LINE>if (myKind != null) {<NEW_LINE>element.setAttribute(LIBRARY_TYPE_ATTR, myKind.getKindId... | writeExternal(excluded, ROOT_PATH_ELEMENT, false); |
445,260 | private WrappedExecuteStageRequest createExecuteStageRequest() throws MalformedURLException {<NEW_LINE>// TODO make ExecuteStageRequest params configurable<NEW_LINE>final long timeoutToReportStartSec = 5;<NEW_LINE>final URL jobJarUrl = new URL("file:/Users/nmahilani/Projects/Mantis/mantis-sdk/examples/sine-function/bui... | Boolean>create(), executeStageRequest); |
1,840,490 | public static void computeStereoCloud(GrayU8 distortedLeft, GrayU8 distortedRight, Planar<GrayU8> colorLeft, Planar<GrayU8> colorRight, CameraPinholeBrown intrinsicLeft, CameraPinholeBrown intrinsicRight, Se3_F64 leftToRight, int minDisparity, int rangeDisparity) {<NEW_LINE>// drawInliers(origLeft, origRight, intrinsic... | System.out.println("Rectified K"); |
747,275 | private void doInspectInjectedPsi(@Nonnull PsiFile injectedPsi, final boolean isOnTheFly, @Nonnull final ProgressIndicator indicator, @Nonnull InspectionManager iManager, final boolean inVisibleRange, @Nonnull List<LocalInspectionToolWrapper> wrappers) {<NEW_LINE>final PsiElement host = InjectedLanguageManager.getInsta... | LocalInspectionTool tool = wrapper.getTool(); |
1,202,195 | private void populateValidateNullableIfNeeded(Column column, List<CachedRow> metaDataNotNullConst, Database database) {<NEW_LINE>if (!(database instanceof OracleDatabase)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String name = column.getName();<NEW_LINE>for (CachedRow cachedRow : metaDataNotNullConst) {<NEW_LINE>Object c... | ? "" : searchCondition.toUpperCase(); |
928,723 | protected void undeployLeftoverJobs() {<NEW_LINE>try {<NEW_LINE>// See if there are jobs running on any helios agent. If we are using TemporaryJobs,<NEW_LINE>// that class should've undeployed them at this point.<NEW_LINE>// Any jobs still running at this point have only been partially cleaned up.<NEW_LINE>// We look f... | log.warn("Exception occurred when trying to clean up leftover jobs.", e); |
1,845,129 | public Object createModule(String name) throws CheckstyleException {<NEW_LINE>Object instance = null;<NEW_LINE>// if the name is a simple class name, try to find it in maps at first<NEW_LINE>if (!name.contains(PACKAGE_SEPARATOR)) {<NEW_LINE>instance = createFromStandardCheckSet(name);<NEW_LINE>// find the name in third... | null, getClass(), null); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.