idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
689,239 | // Suppress high Cognitive Complexity warning<NEW_LINE>@SuppressWarnings("squid:S3776")<NEW_LINE>private void restore() throws IOException {<NEW_LINE>File directory = <MASK><NEW_LINE>if (!directory.exists()) {<NEW_LINE>directory.mkdirs();<NEW_LINE>}<NEW_LINE>File[] versionFiles = directory.listFiles((dir, name) -> name... | SystemFileFactory.INSTANCE.getFile(directoryPath); |
344,662 | public static EBinary integer_to_binary(EObject arg, EObject radix) {<NEW_LINE>EInteger i = arg.testInteger();<NEW_LINE><MASK><NEW_LINE>if (i == null || r == null || r.value < 2 || r.value > 36)<NEW_LINE>throw ERT.badarg(arg, radix);<NEW_LINE>String out;<NEW_LINE>EBig big;<NEW_LINE>ESmall small;<NEW_LINE>if ((small = i... | ESmall r = radix.testSmall(); |
1,587,803 | protected void applyConnectionOptions(ServerBootstrap bootstrap) {<NEW_LINE>SocketConfig config = configCopy.getSocketConfig();<NEW_LINE>bootstrap.childOption(ChannelOption.TCP_NODELAY, config.isTcpNoDelay());<NEW_LINE>if (config.getTcpSendBufferSize() != -1) {<NEW_LINE>bootstrap.childOption(ChannelOption.SO_SNDBUF, co... | SO_REUSEADDR, config.isReuseAddress()); |
1,175,934 | public int trap(int[] height) {<NEW_LINE>int n = height.length;<NEW_LINE>if (n < 3) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>int[<MASK><NEW_LINE>int[] rmx = new int[n];<NEW_LINE>lmx[0] = height[0];<NEW_LINE>rmx[n - 1] = height[n - 1];<NEW_LINE>for (int i = 1; i < n; ++i) {<NEW_LINE>lmx[i] = Math.max(lmx[i - 1], height[... | ] lmx = new int[n]; |
361,258 | public View initializeForView(ApplicationListener listener, AndroidApplicationConfiguration config) {<NEW_LINE>if (this.getVersion() < MINIMUM_SDK) {<NEW_LINE>throw new GdxRuntimeException("libGDX requires Android API Level " + MINIMUM_SDK + " or later.");<NEW_LINE>}<NEW_LINE>GdxNativesLoader.load();<NEW_LINE>setApplic... | = new AndroidNet(this, config); |
283,688 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>Optional<ContentFactoryPair> factoryOptional = inputConfig.getFactory(Optional.ofNullable(request.getContentType()).map(MediaType::parse));<NEW_LINE>if (!factoryOptional.isPresent()) {<NEW_LIN... | acceptHeader.map(MediaType::parse); |
535,258 | public static void submitJob(String principal, String keytab, String esNodes) throws Exception {<NEW_LINE>List doc1 = Collections.singletonList("{\"reason\" : \"business\",\"airport\" : \"SFO\"}");<NEW_LINE>List doc2 = Collections.singletonList("{\"participants\" : 5,\"airport\" : \"OTP\"}");<NEW_LINE>TopologyBuilder b... | AutoElasticsearch.class.getName()); |
1,586,139 | public void onActivityResult(int requestCode, int resultCode, Intent data) {<NEW_LINE>super.onActivityResult(requestCode, resultCode, data);<NEW_LINE>if (resultCode == RESULT_OK) {<NEW_LINE>Uri selectedImageUri = data.getData();<NEW_LINE>try {<NEW_LINE>InputStream imageStream = getActivity().getContentResolver().openIn... | binding.logoImage.setImageBitmap(bitmap); |
1,292,991 | public CompletableFuture<Void> closeSession(SessionId sessionId, boolean delete) {<NEW_LINE>RaftSessionState state = sessions.get(sessionId.id());<NEW_LINE>if (state == null) {<NEW_LINE>return Futures.exceptionalFuture(new RaftException.UnknownSession("Unknown session: " + sessionId));<NEW_LINE>}<NEW_LINE>log.debug("Cl... | error().createException()); |
1,688,588 | public Boolean call() {<NEW_LINE>try {<NEW_LINE>// NOI18N<NEW_LINE>SSLContext context = SSLContext.getInstance("TLS");<NEW_LINE>context.init(null, new TrustManager[] { new <MASK><NEW_LINE>SSLSocket socket = (SSLSocket) context.getSocketFactory().createSocket();<NEW_LINE>try {<NEW_LINE>// we just trigger the trust manag... | DelegatingTrustManager(config) }, RANDOM); |
1,573,558 | public static void showShareChatLinkDialog(final Context context, MegaChatRoom chat, final String chatLink) {<NEW_LINE>MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(context, R.style.ThemeOverlay_Mega_MaterialAlertDialog);<NEW_LINE>LayoutInflater inflater = null;<NEW_LINE>if (context instanceof Gro... | findViewById(R.id.dismiss_button); |
644,187 | public long longValue(boolean exact) {<NEW_LINE>switch(typeName) {<NEW_LINE>case MEDIUMINT:<NEW_LINE>case MEDIUMINT_UNSIGNED:<NEW_LINE>case SMALLINT:<NEW_LINE>case SMALLINT_UNSIGNED:<NEW_LINE>case TINYINT:<NEW_LINE>case TINYINT_UNSIGNED:<NEW_LINE>case INTEGER:<NEW_LINE>case SIGNED:<NEW_LINE>return ((Integer) value).lon... | Long) value).longValue(); |
1,395,593 | protected void parseErrorStartEventDefinition(Element errorEventDefinition, ActivityImpl startEventActivity) {<NEW_LINE>startEventActivity.getProperties().set(BpmnProperties.TYPE, ActivityTypes.START_EVENT_ERROR);<NEW_LINE>String <MASK><NEW_LINE>Error error = null;<NEW_LINE>// the error event definition executes the ev... | errorRef = errorEventDefinition.attribute("errorRef"); |
1,278,988 | private static JSFunctionData createAsyncGeneratorReturnProcessorFulfilledImpl(JSContext context) {<NEW_LINE>class AsyncGeneratorReturnFulfilledRootNode extends JavaScriptRootNode {<NEW_LINE><NEW_LINE>@Child<NEW_LINE>private JavaScriptNode valueNode = AccessIndexedArgumentNode.create(0);<NEW_LINE><NEW_LINE>@Child<NEW_L... | frame, generatorObject, value, true); |
1,286,665 | public void processSpecific(ClassSource_Streamer streamer, Set<String> i_classNames) throws ClassSource_Exception {<NEW_LINE>String methodName = "processSpecific";<NEW_LINE>if (logger.isLoggable(Level.FINER)) {<NEW_LINE>logger.logp(Level.FINER, CLASS_NAME, methodName, "[ {0} ] ENTER [ {1} ]", new Object[] { getHashText... | String nextEntryName = nextEntry.getName(); |
1,029,077 | DocumentPointer<?> computePointer(MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext, MongoPersistentProperty property, Object value, Class<?> typeHint) {<NEW_LINE>if (value instanceof LazyLoadingProxy) {<NEW_LINE>return () -> ((LazyLoadingProxy) value).getSource();<NEW_LINE>}<NE... | getPersistentEntity(value.getClass()); |
1,505,281 | final DescribeLedgerResult executeDescribeLedger(DescribeLedgerRequest describeLedgerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeLedgerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | false), new DescribeLedgerResultJsonUnmarshaller()); |
418,362 | @PostMapping(value = "/cmmn-runtime/tasks/{taskId}")<NEW_LINE>@ResponseStatus(value = HttpStatus.OK)<NEW_LINE>public void executeTaskAction(@ApiParam(name = "taskId") @PathVariable String taskId, @RequestBody TaskActionRequest actionRequest) {<NEW_LINE>if (actionRequest == null) {<NEW_LINE>throw new FlowableException("... | actionRequest.getAction() + "'."); |
426,191 | public void receiveMessageFromServer(CompoundTag message) {<NEW_LINE>if (message.contains("targetEntity", NBT.TAG_INT)) {<NEW_LINE>Entity target = level.getEntity(message.getInt("targetEntity"));<NEW_LINE>if (target instanceof LivingEntity) {<NEW_LINE>double dx = target.getX() - getBlockPos().getX();<NEW_LINE>double dy... | , message.getDouble("tH")); |
510,638 | public int calculateMinimumHP(int[][] dungeon) {<NEW_LINE>if (dungeon == null || dungeon.length == 0) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>int height = dungeon.length;<NEW_LINE>int width = dungeon[0].length;<NEW_LINE>int[][] dp = new int[height][width];<NEW_LINE>dp[height - 1][width - 1] = (dungeon[height - 1][widt... | dungeon[i][j]); |
1,572,965 | Referable visitClassFieldReference(Concrete.ClassElement element, Referable oldField, ClassReferable classDef) {<NEW_LINE>if (oldField instanceof UnresolvedReference) {<NEW_LINE>List<Referable> resolvedRefs = myResolverListener == null ? null : new ArrayList<>();<NEW_LINE>Referable field = resolve(oldField, new MergeSc... | ) element).setImplementedField(field); |
1,147,598 | private static String encodeRoot(URI uri) {<NEW_LINE>// based on reversing the operations performed by URI.toString()<NEW_LINE>if (uri.getPath() == null) {<NEW_LINE>throw new IllegalArgumentException(format("Cannot create resource name from non-hierarchical URI '%s'.", uri));<NEW_LINE>}<NEW_LINE>StringBuilder builder =... | String fragment = uri.getRawFragment(); |
1,297,248 | public void add() {<NEW_LINE>if (bps != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Project project = pc.getProject();<NEW_LINE>if (project != null) {<NEW_LINE>URL urlBP = db.getURL();<NEW_LINE>FileObject fo = URLMapper.findFileObject(urlBP);<NEW_LINE>if (fo != null) {<NEW_LINE>FileObject projectDirectory = project.ge... | Node n = dn.getNode(); |
1,396,844 | private static PyObject loadBuiltin(String name) {<NEW_LINE>final String MSG = "import {0} # builtin";<NEW_LINE>if (name == "sys") {<NEW_LINE>logger.log(<MASK><NEW_LINE>return Py.java2py(Py.getSystemState());<NEW_LINE>}<NEW_LINE>if (name == "__builtin__") {<NEW_LINE>logger.log(Level.CONFIG, MSG, new Object[] { name, na... | Level.CONFIG, MSG, name); |
1,637,778 | protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {<NEW_LINE>int width = 0;<NEW_LINE>int height = 0;<NEW_LINE>int <MASK><NEW_LINE>int heightMode = MeasureSpec.getMode(heightMeasureSpec);<NEW_LINE>int widthAllowed = MeasureSpec.getSize(widthMeasureSpec);<NEW_LINE>int heightAllowed = MeasureSpec.getSi... | widthMode = MeasureSpec.getMode(widthMeasureSpec); |
262,532 | public void marshall(CreateExportTaskRequest createExportTaskRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createExportTaskRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE... | createExportTaskRequest.getTaskName(), TASKNAME_BINDING); |
1,565,399 | public void init() {<NEW_LINE>baseList = new Object[BaseListType.values().length][];<NEW_LINE>collections = new Collection[BaseListType.values().length][CollectionType.values().length];<NEW_LINE>maps = new Map[BaseListType.values().length][CollectionType.values().length];<NEW_LINE>// make an array of linear indices<NEW... | (new HashSet(), list); |
1,090,311 | protected void migrateProcessElementInstance(MigratingProcessElementInstance migratingInstance, MigratingScopeInstanceBranch migratingInstanceBranch) {<NEW_LINE>final MigratingScopeInstance parentMigratingInstance = migratingInstance.getParent();<NEW_LINE>ScopeImpl sourceScope = migratingInstance.getSourceScope();<NEW_... | get(0).getFlowScope(); |
853,890 | public Result changePassword(UUID customerUUID, UUID userUUID) {<NEW_LINE>Users user = Users.getOrBadRequest(userUUID);<NEW_LINE>if (UserType.ldap == user.getUserType()) {<NEW_LINE>throw new PlatformServiceException(BAD_REQUEST, "Can't change password for LDAP user.");<NEW_LINE>}<NEW_LINE>checkUserOwnership(customerUUI... | customerUUID, formData.getPassword()); |
329,270 | public static Driver start(Map<String, Object> options, ScenarioRuntime sr) {<NEW_LINE>// TODO unify logger<NEW_LINE>Target target = (Target) options.get("target");<NEW_LINE>if (target != null) {<NEW_LINE>sr.logger.debug("custom target configured, calling start()");<NEW_LINE>Map<String, Object> map = target.start(sr);<... | String) options.get("type"); |
1,779,584 | public String[][] dealDSV(BufferedReader reader, String filedNames, String seprator, String quoteStr) {<NEW_LINE>String tempString = null;<NEW_LINE>List<String[]> result = new LinkedList<>();<NEW_LINE>int line = 0;<NEW_LINE>// add filed header<NEW_LINE>if (StringUtils.isNotBlank(filedNames)) {<NEW_LINE>result.add(filed... | throw new CBoardException("Cube result count is greater than limit " + resultLimit); |
497,782 | final AllocateIpamPoolCidrResult executeAllocateIpamPoolCidr(AllocateIpamPoolCidrRequest allocateIpamPoolCidrRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(allocateIpamPoolCidrRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
798,712 | public String groovy(String A_TrxName, Properties A_Ctx, int P_M_Warehouse_ID, int P_M_PriceList_Version_ID, int P_M_DistributionList_ID) {<NEW_LINE>MPriceListVersion plv = new MPriceListVersion(A_Ctx, P_M_PriceList_Version_ID, A_TrxName);<NEW_LINE>MPriceList pl = new MPriceList(A_Ctx, plv.getM_PriceList_ID(), A_TrxNam... | MWarehouse(A_Ctx, P_M_Warehouse_ID, A_TrxName); |
550,619 | final ListMulticastGroupsByFuotaTaskResult executeListMulticastGroupsByFuotaTask(ListMulticastGroupsByFuotaTaskRequest listMulticastGroupsByFuotaTaskRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listMulticastGroupsByFuotaTaskRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu... | addHandlerContext(HandlerContextKey.SERVICE_ID, "IoT Wireless"); |
575,125 | private static void handleByteCode(ConfigurationCompiler compiler, Element element) {<NEW_LINE>ConfigurationCompilerByteCode codegen = compiler.getByteCode();<NEW_LINE>parseOptionalBoolean(element, "include-debugsymbols", codegen::setIncludeDebugSymbols);<NEW_LINE>parseOptionalBoolean(element, "include-comments", codeg... | element, "threadpool-compiler-num-threads", codegen::setThreadPoolCompilerNumThreads); |
1,764,602 | public Optional<TokenPayload> retrieveToken(final SessionLabel sessionLabel, final TokenKey tokenKey) throws PwmOperationalException, PwmUnrecoverableException {<NEW_LINE>final String storedHash = tokenKey.getStoredHash();<NEW_LINE>final Optional<String> storedRawValue = dataStore.get(storedHash);<NEW_LINE>if (storedRa... | fromEncryptedString(storedRawValue.get()); |
1,452,309 | final CreateWorkforceResult executeCreateWorkforce(CreateWorkforceRequest createWorkforceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createWorkforceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | false), new CreateWorkforceResultJsonUnmarshaller()); |
1,004,557 | private JsonVendor toJsonVendor(@NonNull final JsonResponseComposite jsonResponseComposite, @NonNull final String tenantId, @Nullable final String bPartnerBasePath) {<NEW_LINE>final JsonResponseBPartner jsonResponseBPartner = jsonResponseComposite.getBpartner();<NEW_LINE>final String bpartnerMetasfreshId = String.value... | ).orElseGet(JsonVendor::builder); |
457,287 | public ASTNode visitReadwriteSplittingRuleDefinition(final ReadwriteSplittingRuleDefinitionContext ctx) {<NEW_LINE>Properties props = new Properties();<NEW_LINE>String algorithmName = null;<NEW_LINE>if (null != ctx.algorithmDefinition()) {<NEW_LINE>algorithmName = getIdentifierValue(ctx.<MASK><NEW_LINE>}<NEW_LINE>if (n... | algorithmDefinition().algorithmName()); |
1,360,132 | public EditorWordViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {<NEW_LINE>switch(viewType) {<NEW_LINE>case R.id.word_editor_view_type_editing_row:<NEW_LINE>return new EditorWordViewHolderEditing<MASK><NEW_LINE>case R.id.word_editor_view_type_empty_view_row:<NEW_LINE>return new EditorWordViewHolderAddNew... | (inflateEditingRowView(mLayoutInflater, parent)); |
1,161,291 | public void extract(CrawlURI curi) {<NEW_LINE>// { regex name -> list of matches }<NEW_LINE>Map<String, MatchList> matchLists;<NEW_LINE>// uri regex<NEW_LINE>Matcher matcher = TextUtils.getMatcher(getUriRegex(), curi.getURI());<NEW_LINE>if (matcher.matches()) {<NEW_LINE>matchLists = new LinkedHashMap<String, MatchList>... | ).getName(), e); |
754,699 | protected String doTccActionLogStore(Method method, Parameter[] parameters, Object[] arguments, TwoPhaseBusinessAction businessAction, BusinessActionContext actionContext) {<NEW_LINE>String actionName = actionContext.getActionName();<NEW_LINE>String xid = actionContext.getXid();<NEW_LINE>//<NEW_LINE>Map<String, Object>... | initBusinessContext(context, method, businessAction); |
1,180,054 | private CompletableFuture<PageWrapper> fetchPage(PagePointer pagePointer, PageWrapper parentPage, PageCollection pageCollection, Duration timeout) {<NEW_LINE>PageWrapper fromCache = pageCollection.<MASK><NEW_LINE>if (fromCache != null) {<NEW_LINE>return CompletableFuture.completedFuture(fromCache);<NEW_LINE>}<NEW_LINE>... | get(pagePointer.getOffset()); |
667,952 | public static ListTransitRouterRouteTablePropagationsResponse unmarshall(ListTransitRouterRouteTablePropagationsResponse listTransitRouterRouteTablePropagationsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTransitRouterRouteTablePropagationsResponse.setRequestId(_ctx.stringValue("ListTransitRouterRouteTablePropaga... | ("ListTransitRouterRouteTablePropagationsResponse.TransitRouterPropagations[" + i + "].TransitRouterAttachmentId")); |
909,166 | protected final Number openNonAssetNative(int cookie, String fileName, int accessMode) throws FileNotFoundException {<NEW_LINE>CppAssetManager am = assetManagerForJavaObject();<NEW_LINE>if (am == null) {<NEW_LINE>return RuntimeEnvironment.castNativePtr(0);<NEW_LINE>}<NEW_LINE>ALOGV("openNonAssetNative in %s (Java objec... | openNonAsset(fileName8, mode, null); |
1,264,356 | public static DescribeRoleZoneInfoResponse unmarshall(DescribeRoleZoneInfoResponse describeRoleZoneInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRoleZoneInfoResponse.setRequestId(_ctx.stringValue("DescribeRoleZoneInfoResponse.RequestId"));<NEW_LINE>describeRoleZoneInfoResponse.setPageNumber(_ctx.integerVal... | ("DescribeRoleZoneInfoResponse.Node[" + i + "].AvgRt")); |
1,716,992 | public SkyValue compute(SkyKey skyKey, Environment env) throws SkyFunctionException, InterruptedException {<NEW_LINE>CollectTargetsInPackageValue.CollectTargetsInPackageKey argument = (CollectTargetsInPackageValue.CollectTargetsInPackageKey) skyKey.argument();<NEW_LINE><MASK><NEW_LINE>PackageValue packageValue = (Packa... | PackageIdentifier packageId = argument.getPackageId(); |
1,213,235 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.<MASK><NEW_LINE>Permanent sourcePermanent = game.getPermanent(source.getSourceId());<NEW_LINE>if (controller != null) {<NEW_LINE>if (!controller.flipCoin(source, game, true)) {<NEW_LINE>if (sourcePermanent != null) {<NEW_LINE>Target tar... | getPlayer(source.getControllerId()); |
1,337,321 | public static float[] refineBySpectralReassignment(ComplexArray windowedFrameFFT, ComplexArray windowedFrameDerivativeFFT, float[] freqInds, int fftSize, int fs) {<NEW_LINE>float[] freqIndsRefined = null;<NEW_LINE>if (freqInds != null) {<NEW_LINE>freqIndsRefined = new float[freqInds.length];<NEW_LINE>if (windowedFrameF... | double f0InRadians, f0RefinedInRadians, f0RefinedInHz, f0RefinedInd; |
718,914 | final ListConfigurationsResult executeListConfigurations(ListConfigurationsRequest listConfigurationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listConfigurationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListConfigurations"); |
1,200,688 | public static void main(String[] args) {<NEW_LINE>// load and convert the image into a usable format<NEW_LINE>BufferedImage image = UtilImageIO.loadImageNotNull(UtilIO.pathExample("particles01.jpg"));<NEW_LINE>// convert into a usable format<NEW_LINE>GrayF32 input = ConvertBufferedImage.convertFromSingle(image, null, G... | panel.addImage(visualBinary, "Binary Original"); |
915,476 | public void renderWireFrame(PoseStack matrix, VertexConsumer vertexBuilder, double angle, float red, float green, float blue, float alpha) {<NEW_LINE>float baseRotation = getAbsoluteRotation(angle);<NEW_LINE>setRotation(blade1a, 0F, 0F, baseRotation);<NEW_LINE>setRotation(blade1b, 0F, 0F, 0.0349066F + baseRotation);<NE... | bladeCap, 0F, 0F, baseRotation); |
814,845 | public Task complete(CompleteTaskPayload completeTaskPayload) {<NEW_LINE>// @TODO: not the most efficient way to return the just completed task, improve<NEW_LINE>// we might need to create an empty shell with the task ID and Status only<NEW_LINE>Task task;<NEW_LINE>String authenticatedUserId = securityManager.getAuthen... | task(completeTaskPayload.getTaskId()); |
789,138 | private String sendWsReq(HttpServletRequest req, String productId, boolean secured) {<NEW_LINE>Product simpleClient = null;<NEW_LINE>// try {<NEW_LINE>JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();<NEW_LINE>factory.setServiceClass(Product.class);<NEW_LINE>factory.setAddress("http://localhost:8282/ProductS... | = "Can't receive product. Reason: " + wse.getMessage(); |
338,828 | private static void updatePointersFromObjectsYoung() {<NEW_LINE>int validMask = CARD_VALID | (CARD_VALID << 8) | (CARD_VALID << 16) | (CARD_VALID << 24);<NEW_LINE>int youngMask = CARD_YOUNG_GEN | (CARD_YOUNG_GEN << 8) | (CARD_YOUNG_GEN << 16) | (CARD_YOUNG_GEN << 24);<NEW_LINE>int regionsCount = getRegionCount();<NEW_L... | regionPtr.add(4 * regionSize); |
454,651 | protected void run() throws Exception {<NEW_LINE>String dwarfExtDebugFilesLocEnvVar = System.getenv("DWARF_EXTERNAL_DEBUG_FILES");<NEW_LINE>if (dwarfExtDebugFilesLocEnvVar == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>File dir = new File(dwarfExtDebugFilesLocEnvVar);<NEW_LINE>if (!dir.isDirectory()) {<NEW_LINE>Msg.wa... | ExternalDebugFilesService edfs = new ExternalDebugFilesService(searchLocations); |
271,696 | public void appendRuntimeTo(Appendable out) throws IOException {<NEW_LINE>String runtime = transpiler.runtime();<NEW_LINE>if (!runtime.isEmpty()) {<NEW_LINE>mode.appendTraditional(runtime, out, null);<NEW_LINE>}<NEW_LINE>if (transpiler == Transpiler.NULL) {<NEW_LINE>mode.appendTraditional(es6ModuleTranspiler.runtime(),... | appendTraditional("}", out, null); |
1,482,576 | public RerouteAnalyzedStatement visitReroutePromoteReplica(PromoteReplica<?> node, Context context) {<NEW_LINE>var promoteReplica = node.map(x -> context.exprAnalyzer.convert((Expression) x, context.exprCtx));<NEW_LINE>HashMap<String, Symbol> properties = new HashMap<>(promoteReplica.<MASK><NEW_LINE>Symbol acceptDataLo... | properties().properties()); |
575,458 | public void watchArticle(final RequestContext context) {<NEW_LINE>context.renderJSON(StatusCodes.SUCC);<NEW_LINE>final JSONObject requestJSONObject = context.requestJSON();<NEW_LINE>final String followingArticleId = requestJSONObject.optString(Follow.FOLLOWING_ID);<NEW_LINE>final JSONObject currentUser = Sessions.getUs... | article.optString(Article.ARTICLE_AUTHOR_ID); |
346,281 | // -------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public BoundSurfaceInterpolator bind(DoubleArray xValues, DoubleArray yValues, DoubleArray zValues) {<NEW_LINE>// single loop around all parameters, collecting data<NEW_LINE>int size = xValues.size();<NEW_LINE>int c... | > yInterpBuilder = ImmutableList.builder(); |
1,208,761 | protected void sort(CommandSession session, Process process, String[] argv) throws Exception {<NEW_LINE>final String[] usage = { "sort - writes sorted standard input to standard output.", "Usage: sort [OPTIONS] [FILES]", " -? --help show help", " -f --ignore-case fold lower case to upp... | caseInsensitive = opt.isSet("ignore-case"); |
125,826 | private void drawMask(Bitmap image, Mask mask) {<NEW_LINE>float r = RandomUtils.nextFloat();<NEW_LINE>float g = RandomUtils.nextFloat();<NEW_LINE>float b = RandomUtils.nextFloat();<NEW_LINE><MASK><NEW_LINE>int imageHeight = image.getHeight();<NEW_LINE>int x = (int) (mask.getX() * imageWidth);<NEW_LINE>int y = (int) (ma... | int imageWidth = image.getWidth(); |
986,799 | private // FIXME: We need to centralize prologue logic in case there's other places we want to use it<NEW_LINE>BasicBlock createPrologueBlock(CFG cfg) {<NEW_LINE>BasicBlock entryBB = cfg.getEntryBB();<NEW_LINE>BasicBlock oldStart = cfg.getOutgoingDestinationOfType(entryBB, CFG.EdgeType.FALL_THROUGH);<NEW_LINE>BasicBloc... | cfg.setRescuerBB(prologueBB, geb); |
326,218 | private void testItemSizeHolderOverride() {<NEW_LINE>// final String mmapID = "testItemSizeHolderOverride_crypted";<NEW_LINE>// final String encryptKey = "encrypeKey";<NEW_LINE>final String mmapID = "testItemSizeHolderOverride_plaintext";<NEW_LINE>final String encryptKey = null;<NEW_LINE>MMKV mmkv = MMKV.mmkvWithID(mma... | (mmkv.allKeys())); |
1,058,958 | private static void markToReformatBeforeOrInsertWhitespace(final ASTNode left, @Nonnull final ASTNode right) {<NEW_LINE>final Language leftLang = left != null ? <MASK><NEW_LINE>final Language rightLang = PsiUtilCore.getNotAnyLanguage(right);<NEW_LINE>ASTNode generatedWhitespace = null;<NEW_LINE>if (leftLang != null && ... | PsiUtilCore.getNotAnyLanguage(left) : null; |
992,640 | public ServiceStatus save(String userId, String json) {<NEW_LINE>JSONObject jsonObject = JSONObject.parseObject(json);<NEW_LINE>DashboardJob job = new DashboardJob();<NEW_LINE>job.setUserId(userId);<NEW_LINE>job.setName(jsonObject.getString("name"));<NEW_LINE>job.setConfig(jsonObject.getString("config"));<NEW_LINE>job.... | ServiceStatus.Status.Success, "success"); |
338,624 | protected Node<ArangoDBExpression> generateExpression(int depth) {<NEW_LINE>if (depth >= globalState.getOptions().getMaxExpressionDepth() || Randomly.getBoolean()) {<NEW_LINE>return generateLeafNode();<NEW_LINE>}<NEW_LINE>List<Expression> possibleOptions = new ArrayList<>(Arrays.asList(Expression.values()));<NEW_LINE>E... | (depth + 1), op); |
257,553 | public void run(RegressionEnvironment env) {<NEW_LINE>String stmtText = "@name('s0') select id from SupportBean_S0 as s0 where p00 in (select p10 from SupportBean_S1#length(1000))";<NEW_LINE>env.compileDeployAddListenerMileZero(stmtText, "s0");<NEW_LINE>env.sendEventBean(new SupportBean_S0(1, "a"));<NEW_LINE>env.assert... | new SupportBean_S0(4, "A")); |
1,052,705 | private void generateReconciliation() {<NEW_LINE>log.info("");<NEW_LINE>//<NEW_LINE>miniTable.stopEditor(true);<NEW_LINE>if (miniTable.getRowCount() == 0)<NEW_LINE>return;<NEW_LINE><MASK><NEW_LINE>calculateSelection();<NEW_LINE>if (m_noSelected == 0)<NEW_LINE>return;<NEW_LINE>Calendar cal = Calendar.getInstance();<NEW_... | miniTable.setRowSelectionInterval(0, 0); |
65,165 | public XContentBuilder innerXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>if (sliceId != null) {<NEW_LINE>builder.field(SLICE_ID_FIELD, sliceId);<NEW_LINE>}<NEW_LINE>builder.field(TOTAL_FIELD, total);<NEW_LINE>if (params.paramAsBoolean(INCLUDE_UPDATED, true)) {<NEW_LINE>builder.field(UP... | slice.toXContent(builder, params); |
440,970 | public void run(final SecurityContext securityContext, final List<String> parameters, final Writable writable) throws FrameworkException, IOException {<NEW_LINE>if (parameters.size() > 1) {<NEW_LINE>final String key = parameters.get(1);<NEW_LINE>final AdminConsoleCommand cmd = AdminConsoleCommand.getCommand(key);<NEW_L... | .rightPad(key, maxCommandNameLength)); |
1,451,289 | public com.amazonaws.services.iottwinmaker.model.ConnectorTimeoutException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.iottwinmaker.model.ConnectorTimeoutException connectorTimeoutException = new com.amazonaws.services.iottwinmaker.model.ConnectorTimeoutExce... | int originalDepth = context.getCurrentDepth(); |
841,797 | public static String createproject(String category, String project, boolean wait) {<NEW_LINE>// select Projects tab<NEW_LINE>ProjectsTabOperator.invoke();<NEW_LINE>// create a project<NEW_LINE><MASK><NEW_LINE>wizard.selectCategory(category);<NEW_LINE>wizard.selectProject(project);<NEW_LINE>wizard.next();<NEW_LINE>NewJa... | NewProjectWizardOperator wizard = NewProjectWizardOperator.invoke(); |
784,363 | public int compareTo(Status other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetTimestamp(), other.isSetTimestamp());<NEW_LINE>if (la... | this.compactor, other.compactor); |
1,710,450 | private static void runAssertionAfterWithOutputLast(RegressionEnvironment env, SupportOutputLimitOpt opt, AtomicInteger milestone) {<NEW_LINE>String epl = opt.getHint() + "@name('s0') select sum(intPrimitive) as thesum " + "from SupportBean#keepall " + "output after 4 events last every 2 events";<NEW_LINE>env.compileDe... | new SupportBean("E5", 50)); |
424,067 | final DisassociateMembersResult executeDisassociateMembers(DisassociateMembersRequest disassociateMembersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateMembersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | addHandlerContext(HandlerContextKey.SERVICE_ID, "SecurityHub"); |
984,296 | public Object handleTransaction(final ProceedingJoinPoint point, final HmilyTransactionContext context) throws Throwable {<NEW_LINE>HmilyParticipant hmilyParticipant = null;<NEW_LINE>switch(HmilyActionEnum.acquireByCode(context.getAction())) {<NEW_LINE>case TRYING:<NEW_LINE>try {<NEW_LINE>hmilyParticipant = executor.pr... | removeByKey(hmilyParticipant.getParticipantId()); |
1,200,682 | // parse the trade info<NEW_LINE>private TradeInfo parseTradeInfo(CsvRow row) {<NEW_LINE>TradeInfoBuilder infoBuilder = TradeInfo.builder();<NEW_LINE>String scheme = row.findField(ID_SCHEME_FIELD).orElse(DEFAULT_TRADE_SCHEME);<NEW_LINE>row.findValue(ID_FIELD).ifPresent(id -> infoBuilder.id(StandardId.of(scheme, id)));<... | of(schemeCpty, cpty))); |
84,242 | protected void unprotectedCommitTransaction2PC(TransactionState transactionState, Database db) {<NEW_LINE>// transaction state is modified during check if the transaction could committed<NEW_LINE>if (transactionState.getTransactionStatus() != TransactionStatus.PRECOMMITTED) {<NEW_LINE>LOG.warn("Unknow exception. state ... | long tableId = tableCommitInfo.getTableId(); |
864,283 | public Object authenticate(final Context context, final Object payload) throws AuthException {<NEW_LINE>final Request request = context.request();<NEW_LINE>if (Logger.isDebugEnabled()) {<NEW_LINE>Logger.debug("Returned with URL: '" + request.uri() + "'");<NEW_LINE>}<NEW_LINE>final boolean hasOpenID = payload != null &&... | (getTimeout(), MILLISECONDS)); |
1,406,779 | void registerForNavigationUpdates(long id) {<NEW_LINE>final NextDirectionInfo baseNdi = new NextDirectionInfo();<NEW_LINE>IRoutingDataUpdateListener listener = () -> {<NEW_LINE>if (aidlCallbackListener != null) {<NEW_LINE>ADirectionInfo directionInfo = new ADirectionInfo(-1, -1, false);<NEW_LINE>RoutingHelper rh = app.... | getTurnType().getValue()); |
1,379,027 | public void waitForTimestampGranularity(OutErr outErr) {<NEW_LINE>if (this.waitASecond || this.waitAMillisecond) {<NEW_LINE>long before = clock.currentTimeMillis();<NEW_LINE>long startedWaiting = Profiler.nanoTimeMaybe();<NEW_LINE>boolean interrupted = false;<NEW_LINE>if (waitASecond) {<NEW_LINE>// 50ms slack after the... | clock.currentTimeMillis() - before); |
897,645 | public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {<NEW_LINE>// add new socket channel in channel container, used to manage sockets.<NEW_LINE>if (childGroups != null) {<NEW_LINE>childGroups.<MASK><NEW_LINE>}<NEW_LINE>final byte[] seed = org.apache.commons.lang3.RandomUtils.nextByt... | add(ctx.getChannel()); |
525,969 | public static GetRegisterHistoryListResponse unmarshall(GetRegisterHistoryListResponse getRegisterHistoryListResponse, UnmarshallerContext context) {<NEW_LINE>getRegisterHistoryListResponse.setRequestId(context.stringValue("GetRegisterHistoryListResponse.RequestId"));<NEW_LINE>getRegisterHistoryListResponse.setErrorCod... | ("GetRegisterHistoryListResponse.ErrorList[" + i + "].ErrorMessage")); |
1,590,730 | public static Converter<InputStream, RSAPrivateKey> pkcs8() {<NEW_LINE>KeyFactory keyFactory = rsaFactory();<NEW_LINE>return (source) -> {<NEW_LINE>List<String> lines = readAllLines(source);<NEW_LINE>Assert.isTrue(!lines.isEmpty() && lines.get(0).startsWith(PKCS8_PEM_HEADER), "Key is not in PEM-encoded PKCS#8 format, p... | decode(base64Encoded.toString()); |
958,587 | // Newly added to allow the EcoService to be added<NEW_LINE>public void init(Echo13Service echo13Service) {<NEW_LINE>_service = echo13Service;<NEW_LINE>_proxy = null;<NEW_LINE>_dispatch = null;<NEW_LINE>if (_service == null) {<NEW_LINE>try {<NEW_LINE>InitialContext ctx = new InitialContext();<NEW_LINE>_service = (com.i... | Echo13Service) ctx.lookup("java:comp/env/service/Echo13Service"); |
677,458 | private RunQueryResponse runQueryWithRetries(RunQueryRequest request) throws Exception {<NEW_LINE>Sleeper sleeper = Sleeper.DEFAULT;<NEW_LINE>BackOff backoff = RUNQUERY_BACKOFF.backoff();<NEW_LINE>while (true) {<NEW_LINE>HashMap<String, String> baseLabels = new HashMap<>();<NEW_LINE>baseLabels.put(MonitoringInfoConstan... | MonitoringInfoConstants.Labels.SERVICE, "Datastore"); |
999,090 | protected void writeToFile(File file) throws IOException {<NEW_LINE>try (CSVPrinter printer = new CSVPrinter(new OutputStreamWriter(new FileOutputStream(file), StandardCharsets.UTF_8), STRATEGY)) {<NEW_LINE>// write header<NEW_LINE>printer.print(Messages.ColumnDataSeries);<NEW_LINE>printer.print(chart.getAxisSet().getX... | print(serie.getId()); |
1,363,021 | private void visit(Binding binding) {<NEW_LINE>// Getting its wsdl:operation elements<NEW_LINE>Collection<BindingOperation> ops = (Collection<BindingOperation>) binding.getBindingOperations();<NEW_LINE>// Going through the operation elements<NEW_LINE>for (BindingOperation bindingOperation : ops) {<NEW_LINE>// Getting w... | .getExtensibilityElements(MIMEMultipartRelated.class)); |
78,085 | final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | false), new ListTagsForResourceResultJsonUnmarshaller()); |
468,485 | public static void installApk(Context context, DownloadsUtil.DownloadInfo info) {<NEW_LINE>Intent installIntent = new Intent(Intent.ACTION_INSTALL_PACKAGE);<NEW_LINE>installIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);<NEW_LINE>Uri uri;<NEW_LINE>if (Build.VERSION.SDK_INT >= 24) {<NEW_LINE>uri = FileProvider.getUriFor... | new File(info.localFilename)); |
235,841 | public Tuple2<DataSet<Tuple2<Long, MT>>, BatchOperator[]> iterate(DataSet<Tuple2<Long, MT>> model, DataSet<DT> trainData, ApsContext context, BatchOperator[] others, boolean persistentBeforeExce, final int numIter, final int numCheckpoint, Params params, ApsIterator<DT, MT> trainIter, PersistentHook modelAfterHook) {<N... | model, curContext.getCriterion()); |
257,775 | protected void updateGeometry(Vector3f start, Vector3f[] ends) {<NEW_LINE>float[] pos = new float[ends.length * 3 + 3];<NEW_LINE><MASK><NEW_LINE>pos[1] = start.y;<NEW_LINE>pos[2] = start.z;<NEW_LINE>int index;<NEW_LINE>for (int i = 0; i < ends.length; i++) {<NEW_LINE>index = i * 3 + 3;<NEW_LINE>pos[index] = ends[i].x;<... | pos[0] = start.x; |
936,331 | public void addEntryCriterionToCurrentElement(Criterion entryCriterion) {<NEW_LINE>addEntryCriterion(entryCriterion);<NEW_LINE>ListIterator<CmmnElement> iterator = currentCmmnElements.listIterator(currentCmmnElements.size());<NEW_LINE>HasEntryCriteria hasEntryCriteria = null;<NEW_LINE>while (hasEntryCriteria == null &&... | setAttachedToRefId(hasEntryCriteria.getId()); |
1,277,104 | protected CommandExecutionResult executeArg(ActivityDiagram diagram, LineLocation location, RegexResult arg) throws NoSuchColorException {<NEW_LINE>final IEntity entity1 = getEntity(diagram, arg, true);<NEW_LINE>if (entity1 == null) {<NEW_LINE>return CommandExecutionResult.error("No such activity");<NEW_LINE>}<NEW_LINE... | .get("BRACKET", 0)); |
551,695 | public com.amazonaws.services.pinpointemail.model.AlreadyExistsException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.pinpointemail.model.AlreadyExistsException alreadyExistsException = new com.amazonaws.services.pinpointemail.model.AlreadyExistsException(nul... | String currentParentElement = context.getCurrentParentElement(); |
780,197 | public Map<String, List<LineChart>> queryDependencyGraph() {<NEW_LINE>Map<String, List<LineChart>> allCharts = new HashMap<String, List<LineChart>>();<NEW_LINE>for (String type : m_types) {<NEW_LINE>List<LineChart> charts = new ArrayList<LineChart>();<NEW_LINE>Map<String, Item> totalItems = m_dependencies.get<MASK><NEW... | (appendStr(type, TOTAL_COUNT)); |
1,084,566 | ActionResult<Wo> execute(EffectivePerson effectivePerson, byte[] bytes, FormDataContentDisposition disposition) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create();<NEW_LINE>InputStream is = new ByteArrayInputStream(bytes);<NEW_LINE>XSSFWorkbook workbook = new... | CacheManager.notify(Role.class); |
1,323,012 | public static ListAlbumsResponse unmarshall(ListAlbumsResponse listAlbumsResponse, UnmarshallerContext context) {<NEW_LINE>listAlbumsResponse.setRequestId(context.stringValue("ListAlbumsResponse.RequestId"));<NEW_LINE>listAlbumsResponse.setCode(context.stringValue("ListAlbumsResponse.Code"));<NEW_LINE>listAlbumsRespons... | ("ListAlbumsResponse.Albums[" + i + "].Mtime")); |
1,758,912 | private void mountVmfsDatastore2(DatastoreMO dsMO, List<HostMO> hosts) throws Exception {<NEW_LINE>for (HostMO hostMO : hosts) {<NEW_LINE>if (!isDatastoreMounted(dsMO, hostMO)) {<NEW_LINE>HostStorageSystemMO hostStorageSystemMO = hostMO.getHostStorageSystemMO();<NEW_LINE>try {<NEW_LINE>hostStorageSystemMO.mountVmfsVolu... | "' exception thrown: " + ex.getMessage()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.