idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
544,514 | public SNSAction unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>SNSAction sNSAction = new SNSAction();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 2;<NEW_LINE>while (true)... | int xmlEvent = context.nextEvent(); |
364,146 | public static boolean stop(final long id, final Context context) {<NEW_LINE>if (null == context) {<NEW_LINE>Log.e(TAG, "context==null");<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>synchronized (alarm_waiting_set) {<NEW_LINE>if (null == wakerlock) {<NEW_LINE>wakerlock = new WakerLock(context);<NEW_LINE>Log.i(TAG, "stop ... | PENDINGINTENT.ordinal()])); |
183,170 | private boolean listVoices() {<NEW_LINE>// list all known voices<NEW_LINE>for (Voice v : Voice.getAvailableVoices()) {<NEW_LINE>if (v instanceof InterpolatingVoice) {<NEW_LINE>// do not list interpolating voice<NEW_LINE>} else if (v instanceof UnitSelectionVoice) {<NEW_LINE>clientOut.println(v.getName() + " " + v.getLo... | ) v).getDomain()); |
1,534,008 | private void loadAndEvaluateESRImportFile0(@NonNull final I_ESR_Import esrImport) {<NEW_LINE>final ImmutableList<I_ESR_ImportFile> esrImportFiles = esrImportDAO.retrieveActiveESRImportFiles(esrImport);<NEW_LINE>for (final I_ESR_ImportFile esrImportFile : esrImportFiles) {<NEW_LINE>//<NEW_LINE>// Fetch data to be import... | data = attachmentEntryService.retrieveData(attachmentEntryId); |
1,135,366 | static Node[] performPaste(PasteType type, Node targetFolder) {<NEW_LINE>// System.out.println("performing drop...."+type); // NOI18N<NEW_LINE>try {<NEW_LINE>if (targetFolder == null) {<NEW_LINE>// call paste action<NEW_LINE>type.paste();<NEW_LINE>return new Node[] {};<NEW_LINE>}<NEW_LINE>Node[] preNodes = targetFolder... | Node n = it.next(); |
81,359 | /*<NEW_LINE>getFormattedDate(event, start.withZoneSameInstant(target), "date.extended.pattern", messageSource),<NEW_LINE>getFormattedDate(event, start.withZoneSameInstant(target), "time.extended.pattern", messageSource),<NEW_LINE>getFormattedDate(event, end.withZoneSameInstant(target), "date.extended.pattern", messageS... | atZone(event.getZoneId()); |
259,492 | public static IMethod findMethod(IType type, char[] selector, String[] paramTypeSignatures, boolean isConstructor) throws JavaModelException {<NEW_LINE>IMethod method = null;<NEW_LINE>int startingIndex = 0;<NEW_LINE>String[] args;<NEW_LINE>IType enclosingType = type.getDeclaringType();<NEW_LINE>// If the method is a co... | methods = type.findMethods(method); |
413,004 | private void registerSetLocationReceiver(@NonNull MapActivity mapActivity) {<NEW_LINE>BroadcastReceiver setLocationReceiver = new BroadcastReceiver() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onReceive(Context context, Intent intent) {<NEW_LINE>String packName = intent.getStringExtra(AIDL_PACKAGE_NAME);<NEW_L... | aLocation = intent.getParcelableExtra(AIDL_LOCATION); |
1,267,741 | protected void doStop() {<NEW_LINE>ExecutorService indicesStopExecutor = Executors.newFixedThreadPool(5, EsExecutors<MASK><NEW_LINE>// Copy indices because we modify it asynchronously in the body of the loop<NEW_LINE>final Set<Index> indices = this.indices.values().stream().map(s -> s.index()).collect(Collectors.toSet(... | .daemonThreadFactory(settings, "indices_shutdown")); |
999,995 | private Description describe(MethodInvocationTree methodInvocationTree, VisitorState state) {<NEW_LINE>// Find the root of the field access chain, i.e. a.intern().trim() ==> a.<NEW_LINE>ExpressionTree identifierExpr = ASTHelpers.getRootAssignable(methodInvocationTree);<NEW_LINE>String identifierStr = null;<NEW_LINE>Typ... | .getParentPath().getLeaf(); |
98,560 | public List<CandidateCellForSweeping> next() {<NEW_LINE>Preconditions.checkState(hasNext());<NEW_LINE>List<CellTsPairInfo> cellTsBatch = cellTsIterator.next();<NEW_LINE>List<CandidateCellForSweeping> candidates = new ArrayList<>();<NEW_LINE>for (CellTsPairInfo cellTs : cellTsBatch) {<NEW_LINE>checkCurrentCellAndUpdateI... | () - 1), "Timestamps for each cell must be fed in strictly increasing order"); |
846,994 | private static void testStringMethods() {<NEW_LINE>String string1 = "string1";<NEW_LINE>String whitespaceString = string1 + " ";<NEW_LINE>assertTrue(whitespaceString.trim().equals(string1));<NEW_LINE>whitespaceString = " " + string1 + " ";<NEW_LINE>assertTrue(whitespaceString.trim().equals(string1));<NEW_LINE>// subst... | 5).equals("g1")); |
545,938 | public ProcessInstance execute(CommandContext commandContext) {<NEW_LINE>if (messageName == null) {<NEW_LINE>throw new ActivitiIllegalArgumentException("Cannot start process instance by message: message name is null");<NEW_LINE>}<NEW_LINE>MessageEventSubscriptionEntity messageEventSubscription = commandContext.getEvent... | ProcessDefinitionEntity) deploymentManager.findDeployedProcessDefinitionById(processDefinitionId); |
1,573,570 | protected List<Expense> processExpenses() {<NEW_LINE>List<Expense> doneList = new ArrayList<>();<NEW_LINE>// Can't pass an empty collection to the query<NEW_LINE>List<Long> anomalyList = Lists.newArrayList(0L);<NEW_LINE><MASK><NEW_LINE>boolean manageMultiBanks = appAccountService.getAppBase().getManageMultiBanks();<NEW... | AccountingBatch accountingBatch = batch.getAccountingBatch(); |
1,413,999 | public void initialize(AccessServiceConfig accessServiceConfig, OMRSTopicConnector enterpriseOMRSTopicConnector, OMRSRepositoryConnector repositoryConnector, AuditLog auditLog, String serverUserName) {<NEW_LINE>final String actionDescription = "initialize Glossary View OMAS";<NEW_LINE>this.auditLog = auditLog;<NEW_LINE... | ), auditCode.getUserAction()); |
1,699,160 | public void detectAndSendChanges(IGrid network) {<NEW_LINE>final ICraftingService cc = network.getCraftingService();<NEW_LINE>final ImmutableSet<ICraftingCPU> cpuSet = cc.getCpus();<NEW_LINE>int matches = 0;<NEW_LINE>boolean changed = !initialDataSent;<NEW_LINE>initialDataSent = true;<NEW_LINE>for (ICraftingCPU c : cpu... | cpu = cpus.get(i); |
1,717,069 | public boolean execute(WorkflowModel workflow, TaskModel task, WorkflowExecutor workflowExecutor) {<NEW_LINE>boolean allDone = true;<NEW_LINE>boolean hasFailures = false;<NEW_LINE>StringBuilder failureReason = new StringBuilder();<NEW_LINE>List<String> joinOn = (List<String>) task.getInputData().get("joinOn");<NEW_LINE... | ()).append(" "); |
928,561 | public void onViewCreated(View v, Bundle savedInstanceState) {<NEW_LINE>SharedPreferences themePrefs = getActivity().getSharedPreferences("THEME", 0);<NEW_LINE>Boolean isDark = themePrefs.getBoolean("isDark", false);<NEW_LINE>if (isDark) {<NEW_LINE>getActivity().setTheme(R.style.DarkTheme);<NEW_LINE>v.setBackgroundColo... | (R.string.wifi_activated)); |
584,473 | public ImmutableList<Issue> fetchIssues(@NonNull final RetrieveIssuesRequest retrieveIssuesRequest) {<NEW_LINE>final ImmutableList<Issue> issueList;<NEW_LINE>final List<String> pathVariables = Arrays.asList(REPOS.getValue(), retrieveIssuesRequest.getRepositoryOwner(), retrieveIssuesRequest.getRepositoryId(), ISSUES.get... | .atStartOfDay(ZoneOffset.UTC)); |
418,375 | private void loadNode158() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_SessionName, new QualifiedName(0, "SessionName"), new LocalizedText("en", "SessionName"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.va... | .expanded(), true)); |
1,562,390 | static CompletableFuture<CoreMessageSender> create(final MessagingFactory factory, final String clientId, final MessagingEntityType entityType, final SenderLinkSettings linkSettings) {<NEW_LINE>TRACE_LOGGER.info("Creating core message sender to '{}'", linkSettings.linkPath);<NEW_LINE>final Connection connection = facto... | (false, "Failed to create Sender, see cause for more details.", ioException)); |
81,007 | <T> void addSchedule(CronJob cronJob, Map<String, Object> map) {<NEW_LINE>final Object scheduleConfig = map.get(CronJob.CRON);<NEW_LINE>String[] schedules = null;<NEW_LINE>if (scheduleConfig instanceof String[]) {<NEW_LINE><MASK><NEW_LINE>} else if (scheduleConfig instanceof String) {<NEW_LINE>schedules = new String[] ... | schedules = (String[]) scheduleConfig; |
1,823,394 | private Function createFunction(DWARFFunction dfunc, DIEAggregate diea) {<NEW_LINE>try {<NEW_LINE>// create a new symbol if one does not exist (symbol table will figure this out)<NEW_LINE>SymbolTable symbolTable = currentProgram.getSymbolTable();<NEW_LINE>symbolTable.createLabel(dfunc.address, dfunc.dni.getName(), dfun... | dni.getOriginalName(), "\n"); |
169,392 | private void addCrusherRedRockRecipes(Consumer<FinishedRecipe> consumer, String basePath) {<NEW_LINE>// Chiseled Red Rock -> Red Rock Bricks<NEW_LINE>crushing(consumer, BYGBlocks.CHISELED_RED_ROCK_BRICKS, BYGBlocks.RED_ROCK_BRICKS, basePath + "chiseled_to_brick");<NEW_LINE>crushing(consumer, BYGBlocks.CHISELED_RED_ROCK... | BYGBlocks.CRACKED_RED_ROCK_BRICK_STAIRS, basePath + "brick_stairs_to_cracked_brick_stairs"); |
1,055,041 | public void onAcceptMediationResult(Trade trade, ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {<NEW_LINE>String tradeId = trade.getId();<NEW_LINE>Optional<Dispute> optionalDispute = findDispute(tradeId);<NEW_LINE>checkArgument(optionalDispute.isPresent(), "dispute must be present");<NEW_LINE>Di... | ProcessModel processModel = trade.getProcessModel(); |
1,639,354 | final UpdatePoolResult executeUpdatePool(UpdatePoolRequest updatePoolRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updatePoolRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | endClientExecution(awsRequestMetrics, request, response); |
1,256,476 | public void screenshot(long jobId, List<ImageContent> imageContents, Integer imageWidth) {<NEW_LINE>scheduleLogger.info("Start screenshot for job({})", jobId);<NEW_LINE>try {<NEW_LINE>int contentsSize = imageContents.size();<NEW_LINE>List<Future> futures = new ArrayList<>(contentsSize);<NEW_LINE>final AtomicInteger ind... | e.getMessage(), e); |
894,559 | public static boolean testMatch(ICpe left, ICpe right) {<NEW_LINE>boolean result = true;<NEW_LINE>result &= compareAttributes(left.getPart(), right.getPart());<NEW_LINE>result &= compareAttributes(left.getWellFormedVendor(), right.getWellFormedVendor());<NEW_LINE>result &= compareAttributes(left.getWellFormedProduct(),... | vs, left.getVersion()); |
1,043,131 | final GetSnapshotsResult executeGetSnapshots(GetSnapshotsRequest getSnapshotsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSnapshotsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetSnapshots"); |
775,558 | public Destination unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Destination destination = new Destination();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE... | JsonToken token = context.getCurrentToken(); |
431,802 | private void loadNode47() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.TrustListType_OpenWithMasks_InputArguments, new QualifiedName(0, "InputArguments"), new LocalizedText("en", "InputArguments"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInte... | (1), 0.0, false); |
1,666,441 | private static void apply(CompLongLongVector v1, CompLongIntVector v2, Binary op, CompLongLongVector result, int start, int end) {<NEW_LINE>if (v1.isCompatable(v2)) {<NEW_LINE>LongLongVector[] v1Parts = v1.getPartitions();<NEW_LINE>LongIntVector[] v2Parts = v2.getPartitions();<NEW_LINE>if (op.isInplace()) {<NEW_LINE>fo... | , v2Parts[i], op); |
794,379 | public void check(CommonReturnValue commonReturnValue) throws JRException {<NEW_LINE>VariableReturnValue returnValue = (VariableReturnValue) commonReturnValue;<NEW_LINE>String subreportVariableName = returnValue.getFromVariable();<NEW_LINE>JRVariable subrepVariable = getFromVariable(subreportVariableName);<NEW_LINE>if ... | { returnValue.getToVariable() }); |
786,594 | protected SQLShowTablesStatement parseShowTables() {<NEW_LINE>SQLShowTablesStatement stmt = new SQLShowTablesStatement();<NEW_LINE>if (lexer.identifierEquals(FnvHash.Constants.SHOW)) {<NEW_LINE>lexer.nextToken();<NEW_LINE>}<NEW_LINE>if (lexer.identifierEquals(FnvHash.Constants.TABLES)) {<NEW_LINE>lexer.nextToken();<NEW... | String strVal = lexer.stringVal(); |
520,284 | public void alarm(Object arg0) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.<MASK><NEW_LINE>synchronized (this) {<NEW_LINE>// Reset the alarm<NEW_LINE>reattachAlarm = null;<NEW_LINE>final Iterator it = unreachableMEs.iterator();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>fina... | entry(tc, "GatheringChangeListener.alarm", arg0); |
886,961 | public void run() {<NEW_LINE>final String[] names = suggestNames(replaceAllOccurrences, getLocalVariable());<NEW_LINE>final V variable = createFieldToStartTemplateOn(replaceAllOccurrences, names);<NEW_LINE>boolean started = false;<NEW_LINE>if (variable != null) {<NEW_LINE>int caretOffset = getCaretOffset();<NEW_LINE>my... | ).scrollToCaret(ScrollType.MAKE_VISIBLE); |
1,257,615 | public static DescribeGroupMonitoringAgentProcessResponse unmarshall(DescribeGroupMonitoringAgentProcessResponse describeGroupMonitoringAgentProcessResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeGroupMonitoringAgentProcessResponse.setRequestId(_ctx.stringValue("DescribeGroupMonitoringAgentProcessResponse.Reques... | + "].AlertConfig[" + j + "].Webhook")); |
74,321 | public static void main(final String[] args) throws IOException {<NEW_LINE>String executionPath = ReactAndroidCodeTransformer.class.getProtectionDomain().getCodeSource().getLocation().getPath();<NEW_LINE>String projectRoot = new File(executionPath + "../../../../../../").getCanonicalPath() + '/';<NEW_LINE>String sdkVer... | = projectRoot + REACT_ANDROID_DEST_ROOT + '/' + SOURCE_PATH; |
797,261 | protected void initGroupTreeActions() {<NEW_LINE>groupCreateAction = new CreateAction(groupsTree);<NEW_LINE>groupCreateAction.setAfterCommitHandler(entity -> groupsTree.expandTree());<NEW_LINE>groupsTree.addAction(groupCreateAction);<NEW_LINE>groupCreateAction.setCaption(getMessage("action.create"));<NEW_LINE>groupCrea... | Group.class, EntityOp.CREATE); |
271,464 | /*<NEW_LINE>* Copies the given classpath entry replacing its path with the destination path<NEW_LINE>* if it is a source folder or a library.<NEW_LINE>*/<NEW_LINE>protected IClasspathEntry copy(IClasspathEntry entry) throws JavaModelException {<NEW_LINE>switch(entry.getEntryKind()) {<NEW_LINE>case IClasspathEntry.CPE_C... | ), entry.isExported()); |
126,563 | final GetFindingsReportStatusResult executeGetFindingsReportStatus(GetFindingsReportStatusRequest getFindingsReportStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getFindingsReportStatusRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | false), new GetFindingsReportStatusResultJsonUnmarshaller()); |
817,784 | public void visitMethodInsn(int opcode, String owner, String name, String descriptor, boolean isInterface) {<NEW_LINE>super.visitMethodInsn(opcode, owner, name, descriptor, isInterface);<NEW_LINE>if (isCorePublisher(owner)) {<NEW_LINE>if ("checkpoint".equals(name)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String returnTy... | "reactor/core/publisher/Hooks", "addCallSiteInfo", ADD_CALLSITE_INFO_METHOD, false); |
580,562 | void decode(Decoder decoder, Instruction instruction) {<NEW_LINE>if ((decoder.state_vvvv_invalidCheck & decoder.invalidCheckMask) != 0)<NEW_LINE>decoder.setInvalidInstruction();<NEW_LINE>instruction.setCode(code);<NEW_LINE>instruction.setOp0Register(decoder.state_reg + decoder.state_zs_extraRegisterBase + decoder.state... | & 3) + RoundingControl.ROUND_TO_NEAREST); |
1,512,969 | public R apply(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7) throws Exception {<NEW_LINE>if (t1 == null) {<NEW_LINE>throw new NullPointerException("t1 is null, tag = " + tag);<NEW_LINE>}<NEW_LINE>if (t2 == null) {<NEW_LINE>throw new NullPointerException("t2 is null, tag = " + tag);<NEW_LINE>}<NEW_LINE>if (t3 == null... | throw new NullPointerException("t5 is null, tag = " + tag); |
281,317 | private boolean checkMatchIndex(int index) throws LeaderUnknownException, TException, InterruptedException {<NEW_LINE>Log log = logs.get(index);<NEW_LINE>synchronized (raftMember.getTerm()) {<NEW_LINE>// make sure this node is still a leader<NEW_LINE>if (raftMember.getCharacter() != NodeCharacter.LEADER) {<NEW_LINE>thr... | node, System.currentTimeMillis()); |
1,257,238 | protected void updateState(Screen screen, Map<String, String> urlParams, boolean pushState) {<NEW_LINE>NavigationState currentState = getState();<NEW_LINE>NavigationState newState = buildNavState(screen, urlParams);<NEW_LINE>// do not push copy-pasted requested state to avoid double state pushing into browser history<N... | getHistory().forward(newState); |
1,067,707 | private void initialiseScalarConverters(BootupClasses bootupClasses) {<NEW_LINE>for (Class<? extends ScalarTypeConverter<?, ?>> foundType : bootupClasses.getScalarConverters()) {<NEW_LINE>try {<NEW_LINE>Class<?>[] paramTypes = TypeReflectHelper.<MASK><NEW_LINE>if (paramTypes.length != 2) {<NEW_LINE>throw new IllegalSta... | getParams(foundType, ScalarTypeConverter.class); |
43,272 | public final SortField sortField(NumericType targetNumericType, Object missingValue, MultiValueMode sortMode, Nested nested, boolean reverse) {<NEW_LINE>XFieldComparatorSource source = comparatorSource(targetNumericType, missingValue, sortMode, nested);<NEW_LINE>if (sortRequiresCustomComparator() || nested != null || (... | getFieldName(), source, reverse); |
1,443,375 | public void toggleVisibility(final JComponent owner) {<NEW_LINE>final JPopupMenu popupMenu = getPopupMenu();<NEW_LINE>final JPanel panel = getPanelMenu();<NEW_LINE>if (popupMenu.isVisible()) {<NEW_LINE>popupMenu.setVisible(false);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Update popup only if it's staled<NEW_LINE>// refr... | owner, xPos, buttonSize.height); |
1,056,810 | private StreamObserver<T> biStreamImperative(StreamObserver<T> responseObserver, ServerCallStreamObserver<T> serverCallStreamObserver, AtomicBoolean wasReady) {<NEW_LINE>return new StreamObserver<T>() {<NEW_LINE><NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>@Override<NEW_LINE>public void onNext(T request) {<NEW_LIN... | >) request.getClass()); |
1,268,072 | private static boolean isLookupGsiSide(RelNode relNode) {<NEW_LINE>if (relNode instanceof LogicalTableLookup) {<NEW_LINE>// before expand<NEW_LINE>RelNode input = ((LogicalTableLookup) relNode).getInput();<NEW_LINE>if (input instanceof Gather) {<NEW_LINE>input = ((Gather) input).getInput();<NEW_LINE>}<NEW_LINE>if (inpu... | input).getJoin() != null; |
822,069 | private SparseVector sparsePE(SparseVector vec, int degree) {<NEW_LINE>int[] indices = vec.getIndices();<NEW_LINE>double[<MASK><NEW_LINE>int size = vec.size();<NEW_LINE>int nnz = vec.getValues().length;<NEW_LINE>int nnzPolySize = getPolySize(nnz, degree);<NEW_LINE>Tuple2<Integer, int[]> polyIndices = Tuple2.of(0, new i... | ] values = vec.getValues(); |
1,157,088 | final GetTimelineEventResult executeGetTimelineEvent(GetTimelineEventRequest getTimelineEventRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getTimelineEventRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
624,084 | public Object visit(Object context, NewOperatorExpression expr, boolean strict) {<NEW_LINE>Scope scope = (Scope) context;<NEW_LINE>// We can statically replace an attempt at calls to illegal member types with an exception<NEW_LINE>// raise. This should eliminate needing to actually check this within the runtime.<NEW_L... | accept(context, this, strict); |
610,618 | public ImageStoreVO createImageStore(Map<String, Object> params) {<NEW_LINE>ImageStoreVO store = imageStoreDao.findByName((String) params.get("name"));<NEW_LINE>if (store != null) {<NEW_LINE>return store;<NEW_LINE>}<NEW_LINE>store = new ImageStoreVO();<NEW_LINE>store.setProtocol((String) params.get("protocol"));<NEW_LI... | store = imageStoreDao.persist(store); |
1,295,756 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,782,959 | private void initStandardActions() {<NEW_LINE>// NOI18N<NEW_LINE>final String RELOAD = "RELOAD_BROWSER";<NEW_LINE>// NOI18N<NEW_LINE>final String BACK = "NAVIGATE_BACK";<NEW_LINE>// NOI18N<NEW_LINE>final String FORWARD = "NAVIGATE_FORWARD";<NEW_LINE>ActionMap am = getActionMap();<NEW_LINE>InputMap im = getInputMap(JCom... | .VK_F5, 0), RELOAD); |
1,281,377 | public File findArtifact(String groupId, String artifactId, String baseVersion, String extension, String classifier) {<NEW_LINE>File f = mappings.get(groupId + <MASK><NEW_LINE>if (f != null) {<NEW_LINE>if ("pom".equals(extension)) {<NEW_LINE>logger.debug("[NETBEANS] linking artifact to workspace POM:" + new File(f, "po... | ":" + artifactId + ":" + baseVersion); |
633,034 | final AllocatePrivateVirtualInterfaceResult executeAllocatePrivateVirtualInterface(AllocatePrivateVirtualInterfaceRequest allocatePrivateVirtualInterfaceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(allocatePrivateVirtualInterfaceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "AllocatePrivateVirtualInterface"); |
336,806 | public TitleAggregationResponse unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TitleAggregationResponse titleAggregationResponse = new TitleAggregationResponse();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +... | int originalDepth = context.getCurrentDepth(); |
201,899 | // -----------------------------------------------------<NEW_LINE>// Details<NEW_LINE>// -------<NEW_LINE>@Execute<NEW_LINE>@Secured({ ROLE, ROLE + VIEW })<NEW_LINE>public HtmlResponse details(final int crudMode, final String id) {<NEW_LINE>verifyCrudMode(crudMode, CrudMode.DETAILS);<NEW_LINE>saveToken();<NEW_LINE>retu... | "running", entity.isRunning()); |
1,032,593 | public boolean replaceEvent(GameEvent event, Ability source, Game game) {<NEW_LINE>Permanent creature = ((EntersTheBattlefieldEvent) event).getTarget();<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>if (creature == null || player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (pl... | " choose to put a +1/+1 counter on " + creature.getName()); |
1,184,711 | public void logout() {<NEW_LINE>final ServletRequestContext servletRequestContext = exchange.getAttachment(ServletRequestContext.ATTACHMENT_KEY);<NEW_LINE>HttpServletRequest req = <MASK><NEW_LINE>req.removeAttribute(KeycloakUndertowAccount.class.getName());<NEW_LINE>req.removeAttribute(KeycloakSecurityContext.class.get... | (HttpServletRequest) servletRequestContext.getServletRequest(); |
718,693 | private long initMillis(final ThreadContext context, IRubyObject ajd) {<NEW_LINE>final Ruby runtime = context.runtime;<NEW_LINE>// cannot use DateTimeUtils.fromJulianDay since we need to keep ajd as a Rational for precision<NEW_LINE>// millis, @sub_millis = ((ajd - UNIX_EPOCH_IN_AJD) * 86400000).divmod(1)<NEW_LINE>IRub... | .convertToInteger().getLongValue(); |
1,485,275 | protected void prepare() {<NEW_LINE>for (ProcessInfoParameter para : getParameter()) {<NEW_LINE>String name = para.getParameterName();<NEW_LINE>if (para.getParameter() == null)<NEW_LINE>;<NEW_LINE>else // BR [ 264 ] Parameter Name Changed<NEW_LINE>if (name.equals("M_Product_ID"))<NEW_LINE>p_M_Product_ID = para.getParam... | String) para.getParameter()); |
402,669 | public static boolean isValidExpression(String string) {<NEW_LINE>String trimmed = string.trim();<NEW_LINE>if ("".equals(trimmed)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>StringBuilder cuBuff = new StringBuilder();<NEW_LINE>// $NON-NLS-1$<NEW_LINE>cuBuff.append(CONST_CLASS_DECL).// $NON-NLS-1$<NEW_LINE>append<MASK... | ("Object").append(CONST_ASSIGN); |
812,612 | protected Sheet createSheet() {<NEW_LINE>Sheet sheet = super.createSheet();<NEW_LINE>Sheet.Set sheetSet = sheet.get(Sheet.PROPERTIES);<NEW_LINE>if (sheetSet == null) {<NEW_LINE>sheetSet = Sheet.createPropertiesSet();<NEW_LINE>sheet.put(sheetSet);<NEW_LINE>}<NEW_LINE>final BlackboardArtifact artifact = getArtifact();<NE... | Account.Type.PHONE, phoneNumber); |
633,347 | private FieldDeclaration createNewFieldDeclaration(ASTRewrite rewrite) throws CoreException {<NEW_LINE>AST ast = fCURewrite.getAST();<NEW_LINE>VariableDeclarationFragment fragment = ast.newVariableDeclarationFragment();<NEW_LINE>SimpleName <MASK><NEW_LINE>fragment.setName(variableName);<NEW_LINE>if (fLinkedProposalMode... | variableName = ast.newSimpleName(fFieldName); |
810,253 | public static SparseMatrix text(Path path) throws IOException {<NEW_LINE>try (InputStream <MASK><NEW_LINE>Scanner scanner = new Scanner(stream)) {<NEW_LINE>int nrow = scanner.nextInt();<NEW_LINE>int ncol = scanner.nextInt();<NEW_LINE>int nz = scanner.nextInt();<NEW_LINE>int[] colIndex = new int[ncol + 1];<NEW_LINE>int[... | stream = Files.newInputStream(path); |
864,350 | public void received(NetworkInterface network_interface, InetAddress local_address, InetSocketAddress originator, byte[] data, int length) {<NEW_LINE>try {<NEW_LINE>Map map = BDecoder.<MASK><NEW_LINE>long version = ((Long) map.get("ver")).longValue();<NEW_LINE>long type = ((Long) map.get("type")).longValue();<NEW_LINE>... | decode(data, 0, length); |
1,590,602 | public static Patch<String> create(String deltasJson) {<NEW_LINE>List<Delta> deltas = JsonUtils.jsonToObject(deltasJson, new TypeReference<>() {<NEW_LINE>});<NEW_LINE>Patch<String> patch = new Patch<>();<NEW_LINE>for (Delta delta : deltas) {<NEW_LINE>StringChunk sourceChunk = delta.getSource();<NEW_LINE>StringChunk tar... | <>(orgChunk, revChunk)); |
973,401 | protected static void addStandardConverters() {<NEW_LINE>addConverter(void.class, new VoidConverter());<NEW_LINE>addConverter(String.class, new StringConverter());<NEW_LINE>addConverter(Date.class, new DateConverter());<NEW_LINE>addConverter(Double.class, new DoubleConverter());<NEW_LINE>addConverter(double.class, new ... | .class, new PrimitiveBooleanConverter()); |
1,514,259 | public void marshall(UpdateAuthorizerRequest updateAuthorizerRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateAuthorizerRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateAuthorize... | updateAuthorizerRequest.getIdentitySource(), IDENTITYSOURCE_BINDING); |
440,661 | protected void initModel(IContainer parent, String text, Image image) {<NEW_LINE>this.nodeStyle |= parent.getGraph().getNodeStyle();<NEW_LINE>this.parent = parent;<NEW_LINE>this.sourceConnections = new ArrayList();<NEW_LINE>this.targetConnections = new ArrayList();<NEW_LINE>this.foreColor <MASK><NEW_LINE>this.backColor... | = parent.getGraph().DARK_BLUE; |
1,749,335 | public byte[] marshall(DeleteVersionsRequest request) {<NEW_LINE>StringBuffer xmlBody = new StringBuffer();<NEW_LINE><MASK><NEW_LINE>List<KeyVersion> keysToDelete = request.getKeys();<NEW_LINE>xmlBody.append("<Delete>");<NEW_LINE>xmlBody.append("<Quiet>" + quiet + "</Quiet>");<NEW_LINE>for (int i = 0; i < keysToDelete.... | boolean quiet = request.getQuiet(); |
332,614 | public void report(SortedMap<String, Gauge> gauges, SortedMap<String, Counter> counters, SortedMap<String, Histogram> histograms, SortedMap<String, Meter> meters, SortedMap<String, Timer> timers) {<NEW_LINE>final long timestamp = TimeUnit.MILLISECONDS.<MASK><NEW_LINE>for (Map.Entry<String, Gauge> entry : gauges.entrySe... | toSeconds(clock.getTime()); |
1,517,749 | public PrivateKey parse() throws GeneralSecurityException, IOException {<NEW_LINE>Path path = pemFile.toPath();<NEW_LINE>String privateKeyPem = new String(Files.readAllBytes(path));<NEW_LINE>if (privateKeyPem.contains(PEM_PRIVATE_START)) {<NEW_LINE>// PKCS#8 format<NEW_LINE>privateKeyPem = privateKeyPem.replace(PEM_PRI... | ).decode(privateKeyPem))); |
1,540,747 | final CreateStreamingURLResult executeCreateStreamingURL(CreateStreamingURLRequest createStreamingURLRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createStreamingURLRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | false), new CreateStreamingURLResultJsonUnmarshaller()); |
1,083,849 | private DeleteResult cleanupStaleIndices(Map<String, BlobContainer> foundIndices, Set<String> survivingIndexIds) {<NEW_LINE>DeleteResult deleteResult = DeleteResult.ZERO;<NEW_LINE>for (Map.Entry<String, BlobContainer> indexEntry : foundIndices.entrySet()) {<NEW_LINE>final String indexSnId = indexEntry.getKey();<NEW_LIN... | metadata.name(), indexSnId); |
91,525 | public Future<Boolean> deployModule(DeployedModuleInfo deployedMod, DeployedAppInfo deployedApp) {<NEW_LINE>this.firstFailure = null;<NEW_LINE>ExtendedModuleInfo moduleInfo = deployedMod.getModuleInfo();<NEW_LINE>ModuleMetaData mmd = moduleInfo.getMetaData();<NEW_LINE>if (mmd == null) {<NEW_LINE>deployedApp.uninstallAp... | createFutureWithResult(Boolean.class, ex); |
639,385 | private void createMethodMemoryBlocks(Program program, ByteProvider provider, ClassFileJava classFile, TaskMonitor monitor) {<NEW_LINE>AbstractConstantPoolInfoJava[] constantPool = classFile.getConstantPool();<NEW_LINE>MethodInfoJava[] methods = classFile.getMethods();<NEW_LINE>monitor.setMessage("Processing Methods...... | () + methodDescriptorInfo.getString(); |
1,270,857 | private List<DtlsHandshakeMessageFragment> generateFragments(HandshakeMessage message, byte[] handshakeBytes, int maxFragmentLength, TlsContext context) {<NEW_LINE>List<DtlsHandshakeMessageFragment> fragments = new LinkedList<>();<NEW_LINE>int currentOffset = 0;<NEW_LINE>do {<NEW_LINE>byte[] fragmentBytes = Arrays.copy... | .getMessageSequence().getValue(); |
295,784 | private static List<String> readSql() throws IOException {<NEW_LINE>InputStream resourceAsStream = InitialDb.class.getResourceAsStream("/script/governance_" + databaseType + ".sql");<NEW_LINE>StringBuffer sqlBuffer = new StringBuffer();<NEW_LINE>List<String> sqlList = new ArrayList<>();<NEW_LINE>byte[] buff = new byte[... | , Charset.defaultCharset())); |
224,676 | private static void validateParameters(int ikmSize, int keySizeInBytes, String tagAlgo, int tagSizeInBytes, int ciphertextSegmentSize, int firstSegmentOffset) throws InvalidAlgorithmParameterException {<NEW_LINE>if (ikmSize < 16 || ikmSize < keySizeInBytes) {<NEW_LINE>throw new InvalidAlgorithmParameterException("ikm t... | throw new InvalidAlgorithmParameterException("tag size too small " + tagSizeInBytes); |
436,219 | Data pollInternal(long timeout) {<NEW_LINE>QueueItem reservedOffer = offeredQueue.peek();<NEW_LINE>long itemId = reservedOffer == null ? -1 : reservedOffer.getItemId();<NEW_LINE>TxnReservePollOperation operation = new TxnReservePollOperation(name, timeout, <MASK><NEW_LINE>operation.setCallerUuid(tx.getOwnerUuid());<NEW... | itemId, tx.getTxnId()); |
1,106,565 | final GetDiskSnapshotsResult executeGetDiskSnapshots(GetDiskSnapshotsRequest getDiskSnapshotsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDiskSnapshotsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GetDiskSnapshotsRequest> ... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,438,536 | private List<Object> buildClassPath0(List<Object> classPath0) {<NEW_LINE>final long start = clock();<NEW_LINE>final List<Object> classPath = new ArrayList<>();<NEW_LINE>// The caplets and capsule jars<NEW_LINE>if (!isWrapperOfNonCapsule() && getAttribute(ATTR_CAPSULE_IN_CLASS_PATH))<NEW_LINE>addCapsuleJars(classPath);<... | final String artifact = getAttribute(ATTR_APP_ARTIFACT); |
329,125 | public List<List<Integer>> zigzagLevelOrder(TreeNode root) {<NEW_LINE>if (root == null) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>Deque<TreeNode> q = new ArrayDeque<>();<NEW_LINE>q.offer(root);<NEW_LINE>boolean left = false;<NEW_LINE>List<List<Integer>> ans = new ArrayList<>();<NEW_LINE>while (!q.i... | t = new ArrayList<>(); |
686,513 | private boolean startDownloadRpc(FileReferenceDownload fileReferenceDownload, int retryCount, Connection connection) {<NEW_LINE>Request request = createRequest(fileReferenceDownload);<NEW_LINE>Duration rpcTimeout = rpcTimeout(retryCount);<NEW_LINE>connection.invokeSync(request, rpcTimeout.getSeconds());<NEW_LINE>Level ... | retryCount + ", rpc timeout " + rpcTimeout + ")"); |
74,234 | private Flow convertAzkabanFlowToFlow(final AzkabanFlow azkabanFlow, final String flowName, final File flowFile) {<NEW_LINE>final Flow flow = new Flow(flowName);<NEW_LINE>flow.setAzkabanFlowVersion(Constants.AZKABAN_FLOW_VERSION_2_0);<NEW_LINE>final Props props = azkabanFlow.getProps();<NEW_LINE><MASK><NEW_LINE>String ... | FlowLoaderUtils.addEmailPropsToFlow(flow, props); |
92,476 | private Intent createOpenUrlIntentFrom(KrollInvocation invocation, String url) {<NEW_LINE>// Validate argument.<NEW_LINE>if ((url == null) || url.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// Create a URI object from the given string.<NEW_LINE>Uri uri = null;<NEW_LINE>if (TiFileFactory.isLocalScheme(url)) {... | uri = TiFileProvider.createUriFrom(tiFile); |
1,015,961 | private static String md5(final String src, final String charset) {<NEW_LINE>MessageDigest md5;<NEW_LINE>StringBuilder hexValue = new StringBuilder(32);<NEW_LINE>try {<NEW_LINE>md5 = MessageDigest.getInstance("MD5");<NEW_LINE>} catch (NoSuchAlgorithmException e) {<NEW_LINE>throw new ShenyuException("MD5 not supported",... | ] byteArray = new byte[0]; |
281,133 | public NodeModel addFreeNode(final Point pt, final boolean newNodeIsLeft) {<NEW_LINE>final ModeController modeController = Controller.getCurrentModeController();<NEW_LINE>final TextController textController = TextController.getController();<NEW_LINE>if (textController instanceof MTextController) {<NEW_LINE>((MTextContr... | final boolean parentFolded = isFolded(targetNode); |
1,628,021 | @Path("/{jpaQuery}")<NEW_LINE>public Response executeDeleteJPAQuery(@Context HttpHeaders headers, @Context UriInfo info, String parameters) {<NEW_LINE>String jpaQuery = info.getPathParameters().getFirst("jpaQuery");<NEW_LINE>String params = info.getRequestUri().getQuery();<NEW_LINE>String sessionToken = headers.getRequ... | sessionToken.replaceAll("^\"|\"$", ""); |
19,057 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String stmtTextCreateOne = namedWindow ? "@name('create') @public create window MyInfraDC#keepall as (f1 string, f2 int, f3 string, f4 string)" : "@name('create') @public create table MyInfraDC as (f1 string prima... | env.compileDeploy("@name('IndexThree') create index MyInfraDCIndex2 on MyInfraDC(f4)", path); |
402,223 | public static DetectVehicleResponse unmarshall(DetectVehicleResponse detectVehicleResponse, UnmarshallerContext _ctx) {<NEW_LINE>detectVehicleResponse.setRequestId<MASK><NEW_LINE>Data data = new Data();<NEW_LINE>data.setWidth(_ctx.integerValue("DetectVehicleResponse.Data.Width"));<NEW_LINE>data.setHeight(_ctx.integerVa... | (_ctx.stringValue("DetectVehicleResponse.RequestId")); |
160,479 | private String renderAfterAuthentication(HttpServletRequest request, HttpServletResponse response, BiFunction<HttpServletRequest, HttpServletResponse, String> renderer) {<NEW_LINE>if (!authToken.isValid()) {<NEW_LINE>response.setStatus(422);<NEW_LINE>return "Please setup business continuity according to the documentati... | renderer.apply(request, response); |
528,515 | public List<T> applyFuzzy(List<T> target, int maxFuzz) throws PatchFailedException {<NEW_LINE>PatchApplyingContext<T> ctx = new PatchApplyingContext<>(new ArrayList<>(target), maxFuzz);<NEW_LINE>// the difference between patch's position and actually applied position<NEW_LINE>int lastPatchDelta = 0;<NEW_LINE>for (Abstr... | ().getPosition() + lastPatchDelta; |
733,142 | protected Control createDialogArea(Composite parent) {<NEW_LINE>Composite parentComposite = (Composite) super.createDialogArea(parent);<NEW_LINE>Composite composite = new Composite(parentComposite, SWT.NULL);<NEW_LINE>GridLayout layout = new GridLayout();<NEW_LINE>layout.marginHeight = 10;<NEW_LINE>layout.marginWidth =... | DEFAULT, SWT.DEFAULT).x; |
1,008,546 | final BatchGetTracesResult executeBatchGetTraces(BatchGetTracesRequest batchGetTracesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchGetTracesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | false), new BatchGetTracesResultJsonUnmarshaller()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.