idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,270,631 | public DvmObject<?> toReflectedMethod(BaseVM vm, DvmClass dvmClass, DvmMethod dvmMethod) {<NEW_LINE>try {<NEW_LINE>Class<?> clazz = classLoader.<MASK><NEW_LINE>List<Class<?>> classes = new ArrayList<>(10);<NEW_LINE>ProxyUtils.parseMethodArgs(dvmMethod, classes, clazz.getClassLoader());<NEW_LINE>Class<?>[] types = class... | loadClass(dvmClass.getName()); |
1,758,817 | private void measure(HttpServletResponse httpResponse, HttpServletRequest httpReq, Duration duration, PageConfig config) {<NEW_LINE>String category;<NEW_LINE>category = getCategory(httpReq, config);<NEW_LINE>Timer categoryTimer = Timer.builder("requests.latency").tags("category", category, "code", String.valueOf(httpRe... | MeterRegistry registry = Metrics.getRegistry(); |
299,579 | public AndroidDeployInfo readDeployInfoProtoForTarget(Label target, BuildResultHelper buildResultHelper, Predicate<String> pathFilter) throws GetDeployInfoException {<NEW_LINE>ImmutableList<File> deployInfoFiles;<NEW_LINE>try {<NEW_LINE>deployInfoFiles = BlazeArtifact.getLocalFiles(buildResultHelper.getBuildArtifactsFo... | log.warn("Error occured when gathering logs:", e); |
1,748,898 | public static long CreateWindowEx(@NativeType("DWORD") int dwExStyle, @Nullable @NativeType("LPCTSTR") CharSequence lpClassName, @Nullable @NativeType("LPCTSTR") CharSequence lpWindowName, @NativeType("DWORD") int dwStyle, int x, int y, int nWidth, int nHeight, @NativeType("HWND") long hWndParent, @NativeType("HMENU") ... | int stackPointer = stack.getPointer(); |
1,657,762 | public Publisher<Collection<ServiceDiscovererEvent<R>>> discover(final U ignoredAddress) {<NEW_LINE>return newGroup.filter(new Predicate<PSDE>() {<NEW_LINE><NEW_LINE>// Use a mutable Count to avoid boxing-unboxing and put on each call.<NEW_LINE>private final Map<R, MutableInt> addressCount = new HashMap<>();<NEW_LINE><... | , __ -> new MutableInt()); |
895,846 | public final ConstantContext constant() throws RecognitionException {<NEW_LINE>ConstantContext _localctx = new ConstantContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 540, RULE_constant);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>setState(5527);<NEW_LINE>_errHandler.sync(this);<NEW_LINE>switch(getInterpreter()... | _errHandler.reportError(this, re); |
1,834,624 | Query applyExecutionState(ExecutionStateGlobalOverride state) {<NEW_LINE>if (state == null || !state.hasValues()) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>if (state.timerange().isPresent() || state.query().isPresent() || !state.searchTypes().isEmpty() || !state.keepSearchTypes().isEmpty()) {<NEW_LINE>final Builder b... | ), state) : searchTypes(); |
869,064 | final UpdateDomainNameResult executeUpdateDomainName(UpdateDomainNameRequest updateDomainNameRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDomainNameRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,707,889 | private VoiceStateData saveOrRemoveVoiceState(long guildId, VoiceStateData voiceState) {<NEW_LINE>Long2 voiceStateId = new Long2(guildId, voiceState.userId().asLong());<NEW_LINE>GuildContent guildContent = computeGuildContent(guildId);<NEW_LINE>if (voiceState.channelId().isPresent()) {<NEW_LINE>guildContent.voiceStateI... | old = voiceStates.remove(voiceStateId); |
811,906 | public OResultSet executeSimple(OCommandContext ctx) {<NEW_LINE>OInternalResultSet rs = new OInternalResultSet();<NEW_LINE>ODatabaseSession db = (ODatabaseSession) ctx.getDatabase();<NEW_LINE>OSecurityInternal security = ((ODatabaseInternal) db).getSharedContext().getSecurity();<NEW_LINE>ORole role = db.getMetadata().g... | result.setProperty("operation", "ADD POLICY"); |
425,399 | void fillArray(final char[] array) {<NEW_LINE>int pos = 0;<NEW_LINE>if (BufferUtil.isBackedBySimpleArray(bitmap)) {<NEW_LINE>long[] b = bitmap.array();<NEW_LINE>int base = 0;<NEW_LINE>for (int k = 0; k < b.length; ++k) {<NEW_LINE>long bitset = b[k];<NEW_LINE>while (bitset != 0) {<NEW_LINE>array[pos++] = (char) (base + ... | = this.bitmap.limit(); |
181,850 | public boolean process(Person person, long time) {<NEW_LINE>ThreadLocal<ExpressionProcessor> expProcessor = getExpProcessor();<NEW_LINE>if (expProcessor.get() != null) {<NEW_LINE>value = expProcessor.get().evaluate(person, time);<NEW_LINE>} else if (range != null) {<NEW_LINE>value = person.rand(range.low, <MASK><NEW_LI... | range.high, range.decimals); |
1,762,093 | private Handler<Promise<Object>> executeHandler(final Optional<AuthenticationService> authenticationService, final ServerWebSocket websocket, final String payload, final Optional<User> user, final Collection<String> noAuthApiMethods) {<NEW_LINE>return future -> {<NEW_LINE>final String json = payload.trim();<NEW_LINE>if... | JsonArray jsonArray = new JsonArray(json); |
1,263,853 | private static void tryAssertsVariant(RegressionEnvironment env, String stmtText, EPStatementObjectModel model, String typeName) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>// Attach listener to feed<NEW_LINE>if (model != null) {<NEW_LINE>model.setAnnotations(Arrays.asList(AnnotationPart.nameAnnotat... | sendEvent(env, 5, 2); |
691,103 | static StringBuilder extractQueryParams(AnnotatedMethod method) throws SecurityException {<NEW_LINE>// append query parameters<NEW_LINE>StringBuilder querySubString = new StringBuilder();<NEW_LINE>int parameterIndex = 0;<NEW_LINE>for (Annotation[] paramAnns : method.getParameterAnnotations()) {<NEW_LINE>for (Annotation... | field.getAnnotation(QueryParam.class); |
1,583,171 | @DELETE<NEW_LINE>@Path("{name}")<NEW_LINE>public Response deleteSecretSeries(@Auth AutomationClient automationClient, @PathParam("name") String name) {<NEW_LINE>Secret secret = secretController.getSecretByName(name).orElseThrow(() -> new NotFoundException("Secret series not found."));<NEW_LINE>// Get the groups for thi... | .noContent().build(); |
107,291 | final DescribeAcceleratorTypesResult executeDescribeAcceleratorTypes(DescribeAcceleratorTypesRequest describeAcceleratorTypesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAcceleratorTypesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | (super.beforeMarshalling(describeAcceleratorTypesRequest)); |
1,676,584 | public boolean visit(SQLReplaceStatement x) {<NEW_LINE>print0(ucase ? "MERGE INTO " : "merge into ");<NEW_LINE><MASK><NEW_LINE>List<SQLExpr> columns = x.getColumns();<NEW_LINE>if (columns.size() > 0) {<NEW_LINE>print0(ucase ? " KEY (" : " key (");<NEW_LINE>for (int i = 0, size = columns.size(); i < size; ++i) {<NEW_LIN... | printTableSourceExpr(x.getTableName()); |
637,774 | final GetProtectionStatusResult executeGetProtectionStatus(GetProtectionStatusRequest getProtectionStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getProtectionStatusRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | false), new GetProtectionStatusResultJsonUnmarshaller()); |
119,485 | final DeleteWorldTemplateResult executeDeleteWorldTemplate(DeleteWorldTemplateRequest deleteWorldTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteWorldTemplateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | false), new DeleteWorldTemplateResultJsonUnmarshaller()); |
1,713,571 | private void reap() {<NEW_LINE>try (Stream<Path> stream = Files.list(inputDir)) {<NEW_LINE>final List<Path> inputFiles = stream.filter(p -> p.getFileName().toString().endsWith(".cmd")).collect(Collectors.toList());<NEW_LINE>for (Path inputFile : inputFiles) {<NEW_LINE>System.out.println("Process file: " + inputFile);<N... | command = line.split(" "); |
897,157 | public DeleteThingGroupResult deleteThingGroup(DeleteThingGroupRequest deleteThingGroupRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteThingGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsReque... | JsonUnmarshallerContext> unmarshaller = new DeleteThingGroupResultJsonUnmarshaller(); |
424,290 | public synchronized void join(UUID userId) {<NEW_LINE>UUID playerId = userPlayerMap.get(userId);<NEW_LINE>if (playerId == null) {<NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE>managerFactory.userManager().getUser(userId).ifPresent(user -> logger.debug(user.getName() + " shows tournament panel tournamentId: " + tour... | " - client has joined tournament " + tournament.getId()); |
1,627,571 | private void process(File[] files, File outputRoot, File outputDir, LinkedHashMap<File, ArrayList<Entry>> dirToEntries, int depth) {<NEW_LINE>// Store empty entries for every directory.<NEW_LINE>for (File file : files) {<NEW_LINE>File dir = file.getParentFile();<NEW_LINE>ArrayList<Entry> entries = dirToEntries.get(dir)... | String outputName = file.getName(); |
821,082 | private BTChipOutput finalizeInput(String outputAddress, String amount, String fees, String changePath) throws BTChipException {<NEW_LINE>resolvePath(changePath);<NEW_LINE>ByteArrayOutputStream data = new ByteArrayOutputStream();<NEW_LINE>byte[] path = BIP32Utils.splitPath(changePath);<NEW_LINE>data.write(outputAddress... | , CoinFormatUtils.toSatoshi(fees)); |
609,230 | void init(EsInputSplit esSplit, Configuration cfg, Progressable progressable) {<NEW_LINE>// get a copy to override the host/port<NEW_LINE>Settings settings = HadoopSettingsManager.loadFrom(cfg).copy().load(esSplit.getPartition().getSerializedSettings());<NEW_LINE>if (log.isTraceEnabled()) {<NEW_LINE>log.trace(String.fo... | PartitionDefinition part = esSplit.getPartition(); |
776,305 | public void handleImageFileUpload(FileUploadEvent event) {<NEW_LINE>logger.fine("handleImageFileUpload clicked");<NEW_LINE>UploadedFile uploadedFile = event.getFile();<NEW_LINE>try {<NEW_LINE>updateDatasetThumbnailCommand = new UpdateDatasetThumbnailCommand(dvRequestService.getDataverseRequest(), dataset, UpdateDataset... | log(Level.SEVERE, "Failed to produce a thumbnail from the uploaded dataset logo."); |
985,613 | public void decryptDeterministically(DeterministicAeadDecryptRequest request, StreamObserver<DeterministicAeadDecryptResponse> responseObserver) {<NEW_LINE>DeterministicAeadDecryptResponse response;<NEW_LINE>try {<NEW_LINE>KeysetHandle keysetHandle = CleartextKeysetHandle.read(BinaryKeysetReader.withBytes(request.getKe... | ()).asException()); |
1,428,577 | private void save(ServerMatrix matrix, Path matrixPath, FileSystem fs, List<Integer> partIds, PSMatrixSaveContext saveContext, int startPos, int endPos, PSMatrixFilesMeta dataFilesMeta) throws IOException {<NEW_LINE>Path destFile = new Path(matrixPath, ModelFilesUtils.fileName(partIds.get(startPos)));<NEW_LINE>Path tmp... | rename(tmpDestFile, destFile, fs); |
670,236 | public UiFsModel resourceResourceIdGet(String resourceId, String cookie, String ifNoneMatch, String downloadURIValidity, String fields, Integer length, Integer offset, List<String> option, String sort) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'resourceId' ... | HashMap<String, Object>(); |
877,914 | // LIBERTY - NEW METHOD<NEW_LINE>@Override<NEW_LINE>public ModuleMetaData createModuleMetaData(ExtendedModuleInfo moduleInfo) throws MetaDataException {<NEW_LINE>WebModuleInfo webModule = (WebModuleInfo) moduleInfo;<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "creat... | String appName = appConfig.getApplicationName(); |
960,818 | final TransferInputDeviceResult executeTransferInputDevice(TransferInputDeviceRequest transferInputDeviceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(transferInputDeviceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
739,626 | public static boolean checkJsonCompliance(String sourceJson, String matchJson) {<NEW_LINE>boolean isMatch = false;<NEW_LINE>try {<NEW_LINE>boolean isSourceJsonIsArray = false;<NEW_LINE>boolean isMatchJsonIsArray = false;<NEW_LINE>JSONValidator sourceValidator = JSONValidator.from(sourceJson);<NEW_LINE>JSONValidator mat... | isMatch = checkJsonArrayContainsObj(sourceArr, compObj); |
1,775,191 | public Object calculate(Context ctx) {<NEW_LINE>ArrayList<Number> num <MASK><NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("gcd" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>Object result = param.getLeafExpress... | = new ArrayList<Number>(); |
1,454,840 | public Request<UntagResourceRequest> marshall(UntagResourceRequest untagResourceRequest) {<NEW_LINE>if (untagResourceRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(UntagResourceRequest)");<NEW_LINE>}<NEW_LINE>Request<UntagResourceRequest> request = new DefaultRequest<Un... | request.addHeader("Content-Type", "application/x-amz-json-1.0"); |
649,770 | protected void unsetResourceAdapter(ServiceReference<ApplicationRecycleContext> ref) {<NEW_LINE>final String methodName = "unsetResourceAdapter";<NEW_LINE>final <MASK><NEW_LINE>if (trace && tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, methodName, "Entry Count: " + ++JCAMBeanRuntime.counterUnsetResourceAdapter);<NEW_LINE>... | boolean trace = TraceComponent.isAnyTracingEnabled(); |
32,170 | private static void assertEventProps(RegressionEnvironment env, EventBean eventBean, String currSymbol, String prev0Symbol, Double prev0Price, String prev1Symbol, Double prev1Price, String prev2Symbol, Double prev2Price, String prevTail0Symbol, Double prevTail0Price, String prevTail1Symbol, Double prevTail1Price, Long ... | , eventBean.get("prev0Symbol")); |
1,767,098 | final DescribeApplicationResult executeDescribeApplication(DescribeApplicationRequest describeApplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeApplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,294,337 | public static byte[] serialize(Descriptors.Descriptor descriptor) {<NEW_LINE>byte[] schemaDataBytes;<NEW_LINE>try {<NEW_LINE>Map<String, FileDescriptorProto> fileDescriptorProtoCache = new HashMap<>();<NEW_LINE>// recursively cache all FileDescriptorProto<NEW_LINE>serializeFileDescriptor(<MASK><NEW_LINE>// extract root... | descriptor.getFile(), fileDescriptorProtoCache); |
225,531 | @Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>@Path("/v2/segments")<NEW_LINE>@Authenticate(AccessType.CREATE)<NEW_LINE>@ApiOperation(value = "Upload a segment", notes = "Upload a segment as json")<NEW_LINE>@ApiResponses(value = { @ApiResponse(code = 200, message = "Succes... | , request, true, allowRefresh)); |
1,401,742 | public AppInstanceSummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AppInstanceSummary appInstanceSummary = new AppInstanceSummary();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =... | class).unmarshall(context)); |
525,424 | // GEN-LAST:event_bnTestConfigureActionPerformed<NEW_LINE>@Override<NEW_LINE>@Messages({ "GlobalSettingsPanel.validationerrMsg.mustConfigure=Configure the database to enable this module." })<NEW_LINE>public void load() {<NEW_LINE>tbOops.setText("");<NEW_LINE>enableButtonSubComponents(false);<NEW_LINE>CentralRepoDbChoic... | setText(Bundle.GlobalSettingsPanel_validationerrMsg_mustConfigure()); |
1,422,382 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {<NEW_LINE>Player player = game.getPlay... | cards, false, source, game); |
484,767 | public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws Exception {<NEW_LINE>final String tableName = OptUtil.getTableOpt(cl, shellState);<NEW_LINE>final ScanInterpreter interpeter = getInterpreter(cl, tableName, shellState);<NEW_LINE>final Range range = getRange(cl, interpeter... | auths = getAuths(cl, shellState); |
295,695 | public Object callWriteReplace(final Object object) {<NEW_LINE>if (object == null) {<NEW_LINE>return null;<NEW_LINE>} else {<NEW_LINE>final Class<? extends Object> objectType = object.getClass();<NEW_LINE>final Method writeReplaceMethod = getRRMethod(objectType, "writeReplace");<NEW_LINE>if (writeReplaceMethod != null)... | "Failed calling method", e.getTargetException()); |
699,789 | public ReturnT<Map<String, Object>> chartInfo() {<NEW_LINE>// process<NEW_LINE>List<String> triggerDayList = new ArrayList<String>();<NEW_LINE>List<Integer> triggerDayCountRunningList = new ArrayList<Integer>();<NEW_LINE>List<Integer> triggerDayCountSucList = new ArrayList<Integer>();<NEW_LINE>List<Integer> triggerDayC... | 7), new Date()); |
1,737,128 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
180,289 | protected void doInit() {<NEW_LINE>if (ConfigDataMode.isMasterMode()) {<NEW_LINE>SysTableUtil.getInstance().prepareCdcSysTables();<NEW_LINE>// init storage check scheduler<NEW_LINE>final int checkStorageChangeInterval = 2000;<NEW_LINE>checkStorageChangeExecutor.scheduleWithFixedDelay(() -> {<NEW_LINE>try {<NEW_LINE>if ... | CommandScanner commandScanner = new CommandScanner(this); |
14,623 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@JsonSchema(dynamic=true) @public @buseventtype create json schema SensorEvent();\n" + "@name('s0') select entityID? as entityId, temperature? as temperature, status? as status, \n" + "\tentityName? as entityName, vt? as vt, flags? as flags from Sensor... | ] { "2014-08-20T15:30:23.524Z" }, null }); |
224,937 | public boolean isSupported(final Path file, final Type type) {<NEW_LINE>if (file.isRoot()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>switch(type) {<NEW_LINE>case download:<NEW_LINE>{<NEW_LINE>if (file.isDirectory()) {<NEW_LINE>if (SDSNodeIdProvider.isEncrypted(containerService.getContainer(file))) {<NEW_LINE>log.war... | ("Not supported for file %s with missing role %s", file, role)); |
874,391 | protected void animHeight(HMBase base) {<NEW_LINE>if (keyframes == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Keyframe[] frameArray = new Keyframe[keyframes.size()];<NEW_LINE>for (int i = 0; i < keyframes.size(); i++) {<NEW_LINE>KeyFrame <MASK><NEW_LINE>Keyframe frame = Keyframe.ofInt(kf.percent, (int) HummerStyleUti... | kf = keyframes.get(i); |
614,074 | private static void joinChat() throws NotInitializedException {<NEW_LINE>if (chatroom == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!initialized) {<NEW_LINE>establishConnection();<NEW_LINE>if (!initialized) {<NEW_LINE>throw new NotInitializedException();<NEW_LINE>}<NEW_LINE>}<NEW_LINE>chat = new MultiUserChat(con... | chat.join(chatnickname, chatpassword); |
168,981 | private void openDownloadDialog() {<NEW_LINE>disposables.add(ExtractorHelper.getStreamInfo(currentServiceId, currentUrl, true).subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()).subscribe(result -> {<NEW_LINE>final List<VideoStream> sortedVideoStreams = ListHelper.getSortedStreamVideosList(this, res... | throwable -> showUnsupportedUrlDialog(currentUrl))); |
1,139,947 | public void fillCompletionVariants(final CompletionParameters parameters, CompletionResultSet result) {<NEW_LINE>PsiFile file = parameters.getOriginalFile();<NEW_LINE>final TextFieldWithAutoCompletionListProvider<T> provider = file.getUserData(KEY);<NEW_LINE>if (provider == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>... | shortcut = getActionShortcut(IdeActions.ACTION_QUICK_JAVADOC); |
649,590 | public static InstantiateVmFromNewCreatedStruct fromMessage(InstantiateNewCreatedVmInstanceMsg msg) {<NEW_LINE>InstantiateVmFromNewCreatedStruct struct = new InstantiateVmFromNewCreatedStruct();<NEW_LINE>struct.setDataDiskOfferingUuids(msg.getDataDiskOfferingUuids());<NEW_LINE>struct.setDataVolumeTemplateUuids(msg.getD... | setPrimaryStorageUuidForDataVolume(msg.getPrimaryStorageUuidForDataVolume()); |
399,668 | public static TransformGroup drawCone(double x, double y, double z, double r, double h, String imageURL) {<NEW_LINE>Appearance appearance = createAppearance();<NEW_LINE>// Load an image from the file<NEW_LINE>TextureLoader loader;<NEW_LINE>try {<NEW_LINE>loader = new TextureLoader(imageURL<MASK><NEW_LINE>} catch (Excep... | , "RGBA", new Container()); |
523,772 | protected List<Element> expand(List<Element> tokens, String s, int type) {<NEW_LINE>if (tokens == null)<NEW_LINE>throw new NullPointerException("Received null argument");<NEW_LINE>if (tokens.isEmpty())<NEW_LINE>throw new IllegalArgumentException("Received empty list");<NEW_LINE>// Expand the list of potential multi-tok... | "Expanded multiword: " + logBuf.toString()); |
1,208,624 | public void marshall(AwsS3BucketBucketLifecycleConfigurationRulesDetails awsS3BucketBucketLifecycleConfigurationRulesDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsS3BucketBucketLifecycleConfigurationRulesDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(..... | awsS3BucketBucketLifecycleConfigurationRulesDetails.getNoncurrentVersionTransitions(), NONCURRENTVERSIONTRANSITIONS_BINDING); |
1,834,970 | static public MPrintFormat createFromTable(Properties ctx, int AD_Table_ID, int AD_PrintFormat_ID) {<NEW_LINE>MClient company = MClient.get(ctx);<NEW_LINE>s_log.info("AD_Table_ID=" + AD_Table_ID + " - AD_Client_ID=" + company.get_ID());<NEW_LINE>MPrintFormat pf = new MPrintFormat(ctx, AD_PrintFormat_ID, null);<NEW_LINE... | Level.SEVERE, "No info found " + AD_Table_ID); |
677,624 | public INDArray activate(boolean training, LayerWorkspaceMgr workspaceMgr) {<NEW_LINE>INDArray input = this.input;<NEW_LINE>if (input.rank() != 3)<NEW_LINE>throw new UnsupportedOperationException("Input must be rank 3. Got input with rank " + input.rank() + " " + layerId());<NEW_LINE>INDArray b = getParamWithNoise(<MAS... | DefaultParamInitializer.BIAS_KEY, training, workspaceMgr); |
820,650 | public void startJob() {<NEW_LINE><MASK><NEW_LINE>AbstractFile currentFolder = mainFrame.getActivePanel().getCurrentFolder();<NEW_LINE>// Resolves destination folder<NEW_LINE>PathUtils.ResolvedDestination resolvedDest = PathUtils.resolveDestination(enteredPath, currentFolder, currentFolder);<NEW_LINE>// The path entere... | String enteredPath = pathField.getText(); |
479,646 | protected void drawIcon(Graphics graphics) {<NEW_LINE>if (!isIconVisible()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>graphics.pushState();<NEW_LINE>graphics.setLineWidth(1);<NEW_LINE>graphics.setForegroundColor(isEnabled() ? ColorConstants.black : ColorConstants.gray);<NEW_LINE>Point pt = getIconOrigin();<NEW_LINE><MASK>... | Path path = new Path(null); |
1,798,057 | public void enterScope(NodeTraversal t) {<NEW_LINE>Node n = t.getCurrentNode();<NEW_LINE>Scope scope = t.getScope();<NEW_LINE>Node root = scope.getRootNode();<NEW_LINE>if (root.isFunction()) {<NEW_LINE>String propName = getPrototypePropertyNameFromRValue(n);<NEW_LINE>if (propName != null) {<NEW_LINE>symbolStack.push(ne... | Node parent = n.getParent(); |
1,676,164 | public JsonBean<?> push(String target, String secretKey, String mode, List<SelectedResource> resources) {<NEW_LINE>notBlank(target, TARGET_IS_REQUIRED);<NEW_LINE>notBlank(secretKey, SECRET_KEY_IS_REQUIRED);<NEW_LINE>ByteArrayOutputStream baos = new ByteArrayOutputStream();<NEW_LINE>try {<NEW_LINE>download(null, resourc... | ] bytes = baos.toByteArray(); |
1,045,801 | public static void serialize(final LocalDate value, final JsonWriter sw) {<NEW_LINE>final int year = value.getYear();<NEW_LINE>if (year < 0) {<NEW_LINE>throw new SerializationException("Negative dates are not supported.");<NEW_LINE>} else if (year > 9999) {<NEW_LINE>sw.writeByte(JsonWriter.QUOTE);<NEW_LINE>NumberConver... | buf[pos + 8] = '-'; |
542,230 | private void processAssertion(SampleResult result, Assertion assertion) {<NEW_LINE>AssertionResult assertionResult;<NEW_LINE>try {<NEW_LINE>assertionResult = assertion.getResult(result);<NEW_LINE>} catch (AssertionError e) {<NEW_LINE>log.debug("Error processing Assertion.", e);<NEW_LINE>assertionResult = new AssertionR... | || assertionResult.isFailure())); |
1,190,376 | protected Problem preCheck(CompilationController info) throws IOException {<NEW_LINE>// fire operation start on the registered progress listeners (4 steps)<NEW_LINE>fireProgressListenerStart(refactoring.PRE_CHECK, 4);<NEW_LINE>Problem preCheckProblem = null;<NEW_LINE>info.toPhase(JavaSource.Phase.RESOLVED);<NEW_LINE>El... | (InnerToOuterRefactoringPlugin.class, "ERR_InnerToOuter_Anonymous")); |
1,428,419 | public void print() {<NEW_LINE>log.info(m_info.toString());<NEW_LINE>if (m_layout == null)<NEW_LINE>layout();<NEW_LINE>// Paper Attributes: media-printable-area, orientation-requested, media<NEW_LINE>PrintRequestAttributeSet prats = m_layout.getPaper().getPrintRequestAttributeSet();<NEW_LINE>// add: copies, job-nam... | getPrinterJob(m_info.getPrinterName()); |
1,411,069 | public static DescribeContactPointsResponse unmarshall(DescribeContactPointsResponse describeContactPointsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeContactPointsResponse.setRequestId(_ctx.stringValue("DescribeContactPointsResponse.RequestId"));<NEW_LINE>List<ContactPoint> contactPoints = new ArrayList<Cont... | = new ArrayList<String>(); |
597,476 | protected void printSpecialsNormal(String text, User user, MutableAttributeSet style, TagEmotes emotes, boolean ignoreLinks, boolean containsBits, java.util.List<Match> highlightMatches, java.util.List<Match> replacements, String replacement, MsgTags tags) {<NEW_LINE>// Where stuff was found<NEW_LINE>TreeMap<Integer, I... | replacements, replacement, ranges, rangesStyle); |
514,881 | private String inferStringValue(Scope scope, Node node) {<NEW_LINE>if (node == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>switch(node.getToken()) {<NEW_LINE>case STRING_KEY:<NEW_LINE>case STRINGLIT:<NEW_LINE>case TEMPLATELIT:<NEW_LINE>case TEMPLATELIT_STRING:<NEW_LINE>return NodeUtil.getStringValue(node);<NEW_LI... | , node.getString())); |
29,240 | protected void postProcessOutputChannel(MessageChannel outputChannel, ExtendedProducerProperties<KinesisProducerProperties> producerProperties) {<NEW_LINE>if (outputChannel instanceof InterceptableChannel && producerProperties.isPartitioned()) {<NEW_LINE>((InterceptableChannel) outputChannel).addInterceptor(0, new Chan... | getPartitionKeyExtractorName(), PartitionKeyExtractorStrategy.class); |
640,759 | public void updateZoomRectangleSelection(MouseEvent e, boolean hZoom, boolean vZoom, Rectangle2D scaledDataArea) {<NEW_LINE>if (hZoom && vZoom) {<NEW_LINE>// selected rectangle shouldn't extend outside the data area...<NEW_LINE>double xMax = Math.min(e.getX(), scaledDataArea.getMaxX());<NEW_LINE>double yMax = Math.min(... | yMax - zoomPoint.getY()); |
941,369 | public void execute() {<NEW_LINE>try {<NEW_LINE>if (getValue("srcfile") == null) {<NEW_LINE>throw new InstantiationException("You need to choose a sourcefile");<NEW_LINE>}<NEW_LINE>File src = (File) getValue("srcfile");<NEW_LINE>if (getValue("destfile") == null) {<NEW_LINE>throw new InstantiationException("You need to ... | e.printStackTrace(System.out); |
1,293,447 | final ListSkillsStoreSkillsByCategoryResult executeListSkillsStoreSkillsByCategory(ListSkillsStoreSkillsByCategoryRequest listSkillsStoreSkillsByCategoryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listSkillsStoreSkillsByCategoryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ... | false), new ListSkillsStoreSkillsByCategoryResultJsonUnmarshaller()); |
837,434 | public void open(Map<String, Object> stormConf, TopologyContext context, SpoutOutputCollector newCollector) {<NEW_LINE>int numTasks = context.getComponentTasks(context.getThisComponentId()).size();<NEW_LINE>// Pre-condition: the number of tasks is equal to the number of files to read<NEW_LINE>if (paths.length != numTas... | throw new RuntimeException("Failed to access the HDFS", e); |
1,638,034 | private Num calcPivotPoint(List<Integer> barsOfPreviousPeriod) {<NEW_LINE>if (barsOfPreviousPeriod.isEmpty())<NEW_LINE>return NaN;<NEW_LINE>Bar bar = getBarSeries().getBar(barsOfPreviousPeriod.get(0));<NEW_LINE>Num open = getBarSeries().getBar(barsOfPreviousPeriod.get(barsOfPreviousPeriod.size() - 1)).getOpenPrice();<N... | Num high = bar.getHighPrice(); |
221,234 | protected void onLoad() {<NEW_LINE>super.onLoad();<NEW_LINE>releaseOnUnload_.add(tabPanel_.addBeforeSelectionHandler(beforeSelectionEvent -> {<NEW_LINE>if (clearing_)<NEW_LINE>return;<NEW_LINE>if (getSelectedIndex() >= 0) {<NEW_LINE>int unselectedTab = getSelectedIndex();<NEW_LINE>if (unselectedTab < tabs_.size()) {<NE... | tab = tabs_.get(selectedTab); |
1,687,554 | public static String formatMenuLabel(ImageResource icon, String label, boolean html, String shortcut, Integer iconOffsetY, ImageResource rightImage, String rightImageDesc, String styleName) {<NEW_LINE>StringBuilder text = new StringBuilder();<NEW_LINE>int topOffset = -2;<NEW_LINE>if (iconOffsetY != null)<NEW_LINE>topOf... | imageHtml = createRightImageHtml(rightImage, rightImageDesc); |
1,280,952 | public FingerTree<V, A> cons(final A a) {<NEW_LINE>final Measured<V<MASK><NEW_LINE>final V measure = m.sum(m.measure(a), v);<NEW_LINE>final MakeTree<V, A> mk = mkTree(m);<NEW_LINE>return prefix.match(one -> new Deep<>(m, measure, mk.two(a, one.value()), middle, suffix), two -> new Deep<>(m, measure, mk.three(a, two.val... | , A> m = measured(); |
1,031,388 | public static CompIntIntVector mergeSparseIntCompVector(IndexGetParam param, List<PartitionGetResult> partResults) {<NEW_LINE>Map<PartitionKey, PartitionGetResult> partKeyToResultMap = mapPartKeyToResult(partResults);<NEW_LINE>List<PartitionKey> partKeys = getSortedPartKeys(param.matrixId, param.getRowId());<NEW_LINE>M... | setRowId(param.getRowId()); |
350,495 | public GetOrderResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetOrderResult getOrderResult = new GetOrderResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +... | JsonToken token = context.getCurrentToken(); |
456,685 | public ODeleteEdgeStatement copy() {<NEW_LINE>ODeleteEdgeStatement result = null;<NEW_LINE>try {<NEW_LINE>result = getClass().getConstructor(Integer.TYPE).newInstance(-1);<NEW_LINE>} catch (Exception e) {<NEW_LINE>throw new RuntimeException(e);<NEW_LINE>}<NEW_LINE>result.className = className == null <MASK><NEW_LINE>re... | ? null : className.copy(); |
1,422,444 | public IRubyObject rationalize(ThreadContext context, IRubyObject[] args) {<NEW_LINE>if (f_negative_p(context, this)) {<NEW_LINE>return f_negate(context, f_abs(context, this).rationalize(context, args));<NEW_LINE>}<NEW_LINE>final Ruby runtime = context.runtime;<NEW_LINE>IRubyObject eps, a, b;<NEW_LINE>if (args.length !... | f = frexp(value, exp); |
1,386,277 | private void autoAssignMappings() {<NEW_LINE>DBSObjectContainer objectContainer = chooseEntityContainer();<NEW_LINE>if (objectContainer == null) {<NEW_LINE><MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>java.util.List<DBSObject> containerObjects = new ArrayList<>();<NEW_LINE>try {<NEW_LINE>getWizard().getContainer().run(t... | setMessage(DTUIMessages.database_producer_page_input_objects_error_message_auto_assign_failed, WARNING); |
510,512 | public void rebuild(int index, int count) {<NEW_LINE>if (count != 0) {<NEW_LINE>int startOffset = (index == 0) ? -1 : getView(<MASK><NEW_LINE>int viewCount = getViewCount();<NEW_LINE>int endIndex = Math.min(index + count, viewCount);<NEW_LINE>int endOffset = (endIndex == viewCount) ? -1 : getView(endIndex).getStartOffs... | index - 1).getEndOffset(); |
940,678 | public Status addLearners(final String groupId, final Configuration conf, final List<PeerId> learners) {<NEW_LINE>checkLearnersOpParams(groupId, conf, learners);<NEW_LINE>final PeerId leaderId = new PeerId();<NEW_LINE>final Status st = getLeader(groupId, conf, leaderId);<NEW_LINE>if (!st.isOk()) {<NEW_LINE>return st;<N... | groupId, result, "adding learners: %s", learners); |
1,246,015 | public void run(RegressionEnvironment env) {<NEW_LINE>AtomicInteger milestone = new AtomicInteger();<NEW_LINE>String epl = "@name('s0') select sum(intPrimitive) as si, window(sa.intPrimitive) as wi from SupportBean#length(2) as sa";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>String[] fields = "si,wi".s... | new SupportBean("E1", 1)); |
1,796,429 | private DataType applyAbstractPointerMsType(AbstractPointerMsType type) {<NEW_LINE>MsTypeApplier underlyingApplier = applicator.getTypeApplier(type.getUnderlyingRecordNumber());<NEW_LINE>if (underlyingApplier instanceof ProcedureTypeApplier) {<NEW_LINE>isFunctionPointer = true;<NEW_LINE>}<NEW_LINE>// DataType underlyin... | .getSize().intValueExact(); |
1,153,694 | public static QuantileDigest fromByteBuffer(ByteBuffer byteBuffer) {<NEW_LINE>double maxError = byteBuffer.getDouble();<NEW_LINE>double alpha = byteBuffer.getDouble();<NEW_LINE>QuantileDigest quantileDigest = new QuantileDigest(maxError, alpha);<NEW_LINE>quantileDigest._landmarkInSeconds = byteBuffer.getLong();<NEW_LIN... | size() == 1, "Tree is corrupted, expecting a single root node"); |
269,325 | final DescribeAssociationExecutionsResult executeDescribeAssociationExecutions(DescribeAssociationExecutionsRequest describeAssociationExecutionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAssociationExecutionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC... | (super.beforeMarshalling(describeAssociationExecutionsRequest)); |
1,665,308 | void connect(SocketAddressProvider remoteAddressProvider, boolean reconnect, PipelineFactory pipelineFactory) {<NEW_LINE>Objects.requireNonNull(remoteAddressProvider, "remoteAddress");<NEW_LINE>final <MASK><NEW_LINE>Timer channelTimer = createTimer("Pinpoint-PinpointClientHandler-Timer");<NEW_LINE>final ChannelHandler ... | ChannelPipeline pipeline = pipelineFactory.newPipeline(); |
292,599 | public CostModelManager optimizeCostModel() {<NEW_LINE>List<TreeNode> treeNodeList = TreeNodeUtils.buildTreeNodeListFromLeaf(this.getTreeLeaf());<NEW_LINE>CostGraph costGraph = CostUtils.buildCostGraph(this.getTreeLeaf(), this.labelManager);<NEW_LINE>NodeLabelManager nodeLabelManager = new NodeLabelManager();<NEW_LINE>... | > costPathList = costGraph.getCostPathList(); |
364,214 | protected void onRun() throws Exception {<NEW_LINE>SignalServiceAccountManager accountManager = ApplicationDependencies.getSignalServiceAccountManager();<NEW_LINE>StorageKey storageServiceKey = SignalStore.storageService().getOrCreateStorageKey();<NEW_LINE>Log.i(TAG, "Retrieving manifest...");<NEW_LINE>Optional<SignalS... | Log.w(TAG, "Avatar retrieval did not complete in time (or otherwise failed)."); |
821,648 | public void execute() throws BuildException {<NEW_LINE>if (skip) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (source == null) {<NEW_LINE>log("source attribute is required but was not set");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// attempt to parse the url<NEW_LINE>URL sourceURL;<NEW_LINE>try {<NEW_LINE>sourceURL = URLUtil... | RuleLogger ruleLogger = new AntRuleLogger(this); |
809,426 | private // If so, restart the TManagerClientService with the new TManagerLocation<NEW_LINE>void startTManagerChecker() {<NEW_LINE>final int checkIntervalSec = TypeUtils.getInteger(sinkConfig.get(KEY_TMANAGER_LOCATION_CHECK_INTERVAL_SEC));<NEW_LINE>Runnable runnable = new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LI... | SingletonRegistry.INSTANCE.getSingleton(TMANAGER_LOCATION_BEAN_NAME); |
1,255,954 | // -------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public ResolvedFixedCouponBond resolve(ReferenceData refData) {<NEW_LINE>Schedule adjustedSchedule = accrualSchedule.createSchedule(refData);<NEW_LINE>Schedule unadjustedSchedule = adjustedSchedule.toUnadjusted();<N... | periodicPayments.size() - 1); |
1,575,960 | private Optional<RepresentationModel<?>> doWithReferencedProperty(RootResourceInformation resourceInformation, Serializable id, String propertyPath, Function<ReferencedProperty, RepresentationModel<?>> handler, HttpMethod method) throws Exception {<NEW_LINE>ResourceMetadata metadata = resourceInformation.getResourceMet... | > property = mapping.getProperty(); |
1,504,608 | public static LocalPredictor loadLocalPredictor(String modelPath, TableSchema inputSchema) throws Exception {<NEW_LINE>Map<Long, List<Row>> rows = readPipelineModelRowsFromCsvFile(modelPath, LegacyModelExporterUtils.PIPELINE_MODEL_SCHEMA);<NEW_LINE>Preconditions.checkState(rows.containsKey(-1L), "can't find meta in mod... | modelRows.set(j, r); |
534,067 | private boolean checkJoinRequest(JoinRequest joinRequest, ServerConnection connection) {<NEW_LINE>if (checkIfJoinRequestFromAnExistingMember(joinRequest, connection)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>final InternalHotRestartService hotRestartService = node.getNodeExtension().getInternalHotRestartService();<N... | Address target = joinRequest.getAddress(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.