idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
844,039
public static String bindValueToString(String[] bindValueArray, int limit) {<NEW_LINE>if (bindValueArray == null) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>final <MASK><NEW_LINE>final int length = bindValueArray.length;<NEW_LINE>final int end = length - 1;<NEW_LINE>for (int i = 0; i < length; i++) {<NEW_LINE>if (sb.length() >= limit) {<NEW_LINE>// Appending omission postfix makes generating binded sql difficult. But without this, we cannot say if it's omitted or not.<NEW_LINE>appendLength(sb, length);<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>final String bindValue = StringUtils.defaultString(bindValueArray[i], "");<NEW_LINE>StringUtils.appendAbbreviate(sb, bindValue, limit);<NEW_LINE>if (i < end) {<NEW_LINE>sb.append(", ");<NEW_LINE>}<NEW_LINE>}<NEW_LINE>return sb.toString();<NEW_LINE>}
StringBuilder sb = new StringBuilder(32);
1,492,426
public static IpRangeInventory fromMessage(APIAddIpv6RangeByNetworkCidrMsg msg) {<NEW_LINE>IpRangeInventory ipr = new IpRangeInventory();<NEW_LINE>ipr.setNetworkCidr(IPv6NetworkUtils.getFormalCidrOfNetworkCidr(msg.getNetworkCidr()));<NEW_LINE>ipr.setName(msg.getName());<NEW_LINE>ipr.setDescription(msg.getDescription());<NEW_LINE>ipr.<MASK><NEW_LINE>ipr.setStartIp(IPv6NetworkUtils.getStartIpOfNetworkCidr(msg.getNetworkCidr()));<NEW_LINE>ipr.setEndIp(IPv6NetworkUtils.getEndIpOfNetworkCidr(msg.getNetworkCidr()));<NEW_LINE>ipr.setNetmask(IPv6NetworkUtils.getFormalNetmaskOfNetworkCidr(msg.getNetworkCidr()));<NEW_LINE>ipr.setGateway(IPv6NetworkUtils.getGatewayOfNetworkCidr(msg.getNetworkCidr()));<NEW_LINE>ipr.setL3NetworkUuid(msg.getL3NetworkUuid());<NEW_LINE>ipr.setUuid(msg.getResourceUuid());<NEW_LINE>ipr.setIpVersion(IPv6Constants.IPv6);<NEW_LINE>ipr.setPrefixLen(IPv6NetworkUtils.getPrefixLenOfNetworkCidr(msg.getNetworkCidr()));<NEW_LINE>ipr.setIpRangeType(IpRangeType.valueOf(msg.getIpRangeType()));<NEW_LINE>return ipr;<NEW_LINE>}
setAddressMode(msg.getAddressMode());
1,514,526
private void updateImpl(Context context) {<NEW_LINE><MASK><NEW_LINE>String md5 = md5File(latestImplApk);<NEW_LINE>if (mLogger.isInfoEnabled()) {<NEW_LINE>mLogger.info("TextUtils.equals(mCurrentImplMd5, md5) : " + (TextUtils.equals(mCurrentImplMd5, md5)));<NEW_LINE>}<NEW_LINE>if (!TextUtils.equals(mCurrentImplMd5, md5)) {<NEW_LINE>HelloImplLoader implLoader = new HelloImplLoader(context, latestImplApk);<NEW_LINE>IHelloWorldImpl newImpl = implLoader.load();<NEW_LINE>Bundle state;<NEW_LINE>if (mHelloWorldImpl != null) {<NEW_LINE>state = new Bundle();<NEW_LINE>mHelloWorldImpl.onSaveInstanceState(state);<NEW_LINE>mHelloWorldImpl.onDestroy();<NEW_LINE>} else {<NEW_LINE>state = null;<NEW_LINE>}<NEW_LINE>newImpl.onCreate(state);<NEW_LINE>mHelloWorldImpl = newImpl;<NEW_LINE>mCurrentImplMd5 = md5;<NEW_LINE>}<NEW_LINE>}
File latestImplApk = mUpdater.getLatest();
1,100,584
public static void extendRecursive(Map<String, Object> map, Map<String, Object> additions, BiFunction<List<Object>, Collection<Object>, List<Object>> mergeLists) {<NEW_LINE>for (Map.Entry<String, Object> additionEntry : additions.entrySet()) {<NEW_LINE>String key = additionEntry.getKey();<NEW_LINE>Object addition = additionEntry.getValue();<NEW_LINE>if (map.containsKey(key)) {<NEW_LINE>Object <MASK><NEW_LINE>if (sourceValue instanceof Map && addition instanceof Map) {<NEW_LINE>// noinspection unchecked<NEW_LINE>extendRecursive((Map) sourceValue, (Map) addition);<NEW_LINE>}<NEW_LINE>if (sourceValue instanceof List && addition instanceof Collection) {<NEW_LINE>map.put(key, mergeLists.apply((List<Object>) sourceValue, (List<Object>) addition));<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>map.put(key, addition);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}
sourceValue = map.get(key);
327,208
private <K, V> OffHeapStore<K, V> createStoreInternal(Configuration<K, V> storeConfig, StoreEventDispatcher<K, V> eventDispatcher, ServiceConfiguration<?, ?>... serviceConfigs) {<NEW_LINE>if (getServiceProvider() == null) {<NEW_LINE>throw new NullPointerException("ServiceProvider is null in OffHeapStore.Provider.");<NEW_LINE>}<NEW_LINE>TimeSource timeSource = getServiceProvider().getService(<MASK><NEW_LINE>SizedResourcePool offHeapPool = storeConfig.getResourcePools().getPoolForResource(getResourceType());<NEW_LINE>if (!(offHeapPool.getUnit() instanceof MemoryUnit)) {<NEW_LINE>throw new IllegalArgumentException("OffHeapStore only supports resources with memory unit");<NEW_LINE>}<NEW_LINE>MemoryUnit unit = (MemoryUnit) offHeapPool.getUnit();<NEW_LINE>OffHeapStore<K, V> offHeapStore = new OffHeapStore<>(storeConfig, timeSource, eventDispatcher, unit.toBytes(offHeapPool.getSize()), getServiceProvider().getService(StatisticsService.class));<NEW_LINE>createdStores.add(offHeapStore);<NEW_LINE>return offHeapStore;<NEW_LINE>}
TimeSourceService.class).getTimeSource();
1,793,346
public static ClientMessage encodeRequest(java.lang.String mapName, java.lang.String cacheName, com.hazelcast.internal.serialization.Data predicate, int batchSize, int bufferSize, long delaySeconds, boolean populate, boolean coalesce) {<NEW_LINE>ClientMessage clientMessage = ClientMessage.createForEncode();<NEW_LINE>clientMessage.setRetryable(true);<NEW_LINE>clientMessage.setOperationName("ContinuousQuery.PublisherCreate");<NEW_LINE>ClientMessage.Frame initialFrame = new ClientMessage.Frame(<MASK><NEW_LINE>encodeInt(initialFrame.content, TYPE_FIELD_OFFSET, REQUEST_MESSAGE_TYPE);<NEW_LINE>encodeInt(initialFrame.content, PARTITION_ID_FIELD_OFFSET, -1);<NEW_LINE>encodeInt(initialFrame.content, REQUEST_BATCH_SIZE_FIELD_OFFSET, batchSize);<NEW_LINE>encodeInt(initialFrame.content, REQUEST_BUFFER_SIZE_FIELD_OFFSET, bufferSize);<NEW_LINE>encodeLong(initialFrame.content, REQUEST_DELAY_SECONDS_FIELD_OFFSET, delaySeconds);<NEW_LINE>encodeBoolean(initialFrame.content, REQUEST_POPULATE_FIELD_OFFSET, populate);<NEW_LINE>encodeBoolean(initialFrame.content, REQUEST_COALESCE_FIELD_OFFSET, coalesce);<NEW_LINE>clientMessage.add(initialFrame);<NEW_LINE>StringCodec.encode(clientMessage, mapName);<NEW_LINE>StringCodec.encode(clientMessage, cacheName);<NEW_LINE>DataCodec.encode(clientMessage, predicate);<NEW_LINE>return clientMessage;<NEW_LINE>}
new byte[REQUEST_INITIAL_FRAME_SIZE], UNFRAGMENTED_MESSAGE);
189,414
public static void main(String[] args) throws Exception {<NEW_LINE>// This solution is nearly TLE without using BufferedReader and PrintWriter<NEW_LINE>BufferedReader br = new BufferedReader(new InputStreamReader(System.in));<NEW_LINE>PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));<NEW_LINE>while (true) {<NEW_LINE><MASK><NEW_LINE>if (line == null)<NEW_LINE>break;<NEW_LINE>StringTokenizer st = new StringTokenizer(line);<NEW_LINE>sign[0] = 1;<NEW_LINE>num[0] = Integer.parseInt(st.nextToken());<NEW_LINE>N = 1;<NEW_LINE>S = new HashSet<>();<NEW_LINE>while (st.hasMoreTokens()) {<NEW_LINE>sign[N] = (st.nextToken().equals("-") ? -1 : 1);<NEW_LINE>num[N] = Integer.parseInt(st.nextToken());<NEW_LINE>++N;<NEW_LINE>}<NEW_LINE>for (int i = 0; i < MAX_N; ++i) for (int j = 0; j < MAX_N; ++j) for (int k = 0; k < 6010; ++k) visited[i][j][k] = false;<NEW_LINE>dp(0, 0, num[0]);<NEW_LINE>pw.println(S.size());<NEW_LINE>}<NEW_LINE>pw.close();<NEW_LINE>}
String line = br.readLine();
26,174
public static X509Certificate loadX509Certificate(Reader reader) throws CryptoException {<NEW_LINE>try (PEMParser pemParser = new PEMParser(reader)) {<NEW_LINE>Object pemObj = pemParser.readObject();<NEW_LINE>// /CLOVER:OFF<NEW_LINE>if (pemObj instanceof X509Certificate) {<NEW_LINE>return (X509Certificate) pemObj;<NEW_LINE>} else if (pemObj instanceof X509CertificateHolder) {<NEW_LINE>// /CLOVER:ON<NEW_LINE>try {<NEW_LINE>return new JcaX509CertificateConverter().setProvider(BC_PROVIDER)<MASK><NEW_LINE>// /CLOVER:OFF<NEW_LINE>} catch (CertificateException ex) {<NEW_LINE>LOG.error("loadX509Certificate: Caught CertificateException, unable to parse X509 certificate: {}", ex.getMessage());<NEW_LINE>throw new CryptoException(ex);<NEW_LINE>}<NEW_LINE>// /CLOVER:ON<NEW_LINE>}<NEW_LINE>} catch (IOException ex) {<NEW_LINE>LOG.error("loadX509Certificate: Caught IOException, unable to parse X509 certificate: {}", ex.getMessage());<NEW_LINE>throw new CryptoException(ex);<NEW_LINE>}<NEW_LINE>// /CLOVER:OFF<NEW_LINE>return null;<NEW_LINE>// /CLOVER:ON<NEW_LINE>}
.getCertificate((X509CertificateHolder) pemObj);
1,414,387
public static void main(String[] args) {<NEW_LINE>try {<NEW_LINE>PrintWriterTreeLogger logger = new PrintWriterTreeLogger(new PrintWriter(System.err, true));<NEW_LINE><MASK><NEW_LINE>CompilerContext.Builder compilerContextBuilder = new CompilerContext.Builder();<NEW_LINE>CompilerContext compilerContext = compilerContextBuilder.build();<NEW_LINE>ModuleDef module = ModuleDefLoader.loadFromClassPath(logger, "com.google.gwt.core.Core");<NEW_LINE>compilerContext = compilerContextBuilder.module(module).build();<NEW_LINE>CompilationState compilationState = module.getCompilationState(logger, compilerContext);<NEW_LINE>TypeOracle typeOracle = compilationState.getTypeOracle();<NEW_LINE>SignatureDumper.dumpSignatures(typeOracle, System.out, new FilterImplementation());<NEW_LINE>} catch (UnableToCompleteException e) {<NEW_LINE>// Error has already been logged.<NEW_LINE>System.exit(1);<NEW_LINE>} catch (Throwable e) {<NEW_LINE>System.err.println("Unexpected error");<NEW_LINE>e.printStackTrace();<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>}
logger.setMaxDetail(TreeLogger.WARN);
1,143,170
public static void vertical(Kernel1D_S32 kernel, GrayS16 src, GrayI16 dst) {<NEW_LINE>final short[] dataSrc = src.data;<NEW_LINE>final <MASK><NEW_LINE>final int[] dataKer = kernel.data;<NEW_LINE>final int offset = kernel.getOffset();<NEW_LINE>final int kernelWidth = kernel.getWidth();<NEW_LINE>final int imgWidth = dst.getWidth();<NEW_LINE>final int imgHeight = dst.getHeight();<NEW_LINE>final int yEnd = imgHeight - (kernelWidth - offset - 1);<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(offset, yEnd, y -> {<NEW_LINE>for (int y = offset; y < yEnd; y++) {<NEW_LINE>final int indexDstStart = dst.startIndex + y * dst.stride;<NEW_LINE>Arrays.fill(dataDst, indexDstStart, indexDstStart + imgWidth, (short) 0);<NEW_LINE>for (int k = 0; k < kernelWidth; k++) {<NEW_LINE>final int iStart = src.startIndex + (y - offset + k) * src.stride;<NEW_LINE>final int iEnd = iStart + imgWidth;<NEW_LINE>int indexDst = indexDstStart;<NEW_LINE>int kernelValue = dataKer[k];<NEW_LINE>for (int i = iStart; i < iEnd; i++) {<NEW_LINE>dataDst[indexDst++] += (short) ((dataSrc[i]) * kernelValue);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>// CONCURRENT_ABOVE });<NEW_LINE>}
short[] dataDst = dst.data;
1,594,906
final StopBuildBatchResult executeStopBuildBatch(StopBuildBatchRequest stopBuildBatchRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopBuildBatchRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<StopBuildBatchRequest> request = null;<NEW_LINE>Response<StopBuildBatchResult> response = null;<NEW_LINE>try {<NEW_LINE>awsRequestMetrics.startEvent(Field.RequestMarshallTime);<NEW_LINE>try {<NEW_LINE>request = new StopBuildBatchRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(stopBuildBatchRequest));<NEW_LINE>// Binds the request metrics to the current request.<NEW_LINE>request.setAWSRequestMetrics(awsRequestMetrics);<NEW_LINE>request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);<NEW_LINE>request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SERVICE_ID, "CodeBuild");<NEW_LINE>request.<MASK><NEW_LINE>request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);<NEW_LINE>} finally {<NEW_LINE>awsRequestMetrics.endEvent(Field.RequestMarshallTime);<NEW_LINE>}<NEW_LINE>HttpResponseHandler<AmazonWebServiceResponse<StopBuildBatchResult>> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StopBuildBatchResultJsonUnmarshaller());<NEW_LINE>response = invoke(request, responseHandler, executionContext);<NEW_LINE>return response.getAwsResponse();<NEW_LINE>} finally {<NEW_LINE>endClientExecution(awsRequestMetrics, request, response);<NEW_LINE>}<NEW_LINE>}
addHandlerContext(HandlerContextKey.OPERATION_NAME, "StopBuildBatch");
1,799,542
private URI calculateNewRequestURI(URI newBaseURI, URI requestURI, boolean proxy) {<NEW_LINE>String baseURIPath = newBaseURI.getRawPath();<NEW_LINE><MASK><NEW_LINE>UriBuilder builder = new UriBuilderImpl().uri(newBaseURI);<NEW_LINE>String basePath = reqURIPath.startsWith(baseURIPath) ? baseURIPath : getBaseURI().getRawPath();<NEW_LINE>String relativePath = reqURIPath.equals(basePath) ? "" : reqURIPath.startsWith(basePath) ? reqURIPath.substring(basePath.length()) : reqURIPath;<NEW_LINE>builder.path(relativePath);<NEW_LINE>String newQuery = newBaseURI.getRawQuery();<NEW_LINE>if (newQuery == null) {<NEW_LINE>builder.replaceQuery(requestURI.getRawQuery());<NEW_LINE>} else {<NEW_LINE>builder.replaceQuery(newQuery);<NEW_LINE>}<NEW_LINE>URI newRequestURI = builder.build();<NEW_LINE>resetBaseAddress(newBaseURI);<NEW_LINE>URI current = proxy ? newBaseURI : newRequestURI;<NEW_LINE>resetCurrentBuilder(current);<NEW_LINE>return newRequestURI;<NEW_LINE>}
String reqURIPath = requestURI.getRawPath();
883,476
private void runSavePointJob(List<JobInfo> jobInfos, ClusterClient<String> clusterClient, String savePoint) throws Exception {<NEW_LINE>for (JobInfo jobInfo : jobInfos) {<NEW_LINE>if (ActionType.CANCEL == config.getFlinkConfig().getAction()) {<NEW_LINE>clusterClient.cancel(JobID.fromHexString(jobInfo.getJobId()));<NEW_LINE>jobInfo.setStatus(JobInfo.JobStatus.CANCEL);<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>switch(config.getFlinkConfig().getSavePointType()) {<NEW_LINE>case TRIGGER:<NEW_LINE>CompletableFuture<String> triggerFuture = clusterClient.triggerSavepoint(JobID.fromHexString(jobInfo.getJobId()), savePoint);<NEW_LINE>jobInfo.<MASK><NEW_LINE>break;<NEW_LINE>case STOP:<NEW_LINE>CompletableFuture<String> stopFuture = clusterClient.stopWithSavepoint(JobID.fromHexString(jobInfo.getJobId()), true, savePoint);<NEW_LINE>jobInfo.setStatus(JobInfo.JobStatus.STOP);<NEW_LINE>jobInfo.setSavePoint(stopFuture.get());<NEW_LINE>break;<NEW_LINE>case CANCEL:<NEW_LINE>CompletableFuture<String> cancelFuture = clusterClient.cancelWithSavepoint(JobID.fromHexString(jobInfo.getJobId()), savePoint);<NEW_LINE>jobInfo.setStatus(JobInfo.JobStatus.CANCEL);<NEW_LINE>jobInfo.setSavePoint(cancelFuture.get());<NEW_LINE>break;<NEW_LINE>default:<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}
setSavePoint(triggerFuture.get());
22,309
protected byte[] makePacket(boolean write, int start, int length, byte[] data) {<NEW_LINE>byte[] outPacket;<NEW_LINE>if (write == false) {<NEW_LINE>outPacket = new byte[10];<NEW_LINE>} else {<NEW_LINE>outPacket = new byte[10 + length];<NEW_LINE>}<NEW_LINE>outPacket[0] = address;<NEW_LINE>if (write) {<NEW_LINE>outPacket[1] = (byte) (length + 10);<NEW_LINE>outPacket[3] = 1;<NEW_LINE>} else {<NEW_LINE>outPacket[1] = 10;<NEW_LINE>outPacket[3] = 0;<NEW_LINE>}<NEW_LINE>outPacket[2] = (byte) 0x81;<NEW_LINE>outPacket[4] = (byte) (start & 0xff);<NEW_LINE>outPacket[5] = (byte) ((<MASK><NEW_LINE>outPacket[6] = (byte) (length & 0xff);<NEW_LINE>outPacket[7] = (byte) ((length >> 8) & 0xff);<NEW_LINE>if (write == true) {<NEW_LINE>for (byte cnt = 0; cnt < length; cnt++) {<NEW_LINE>outPacket[8 + cnt] = data[cnt];<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>length = 0;<NEW_LINE>}<NEW_LINE>int crc = checkCRC(outPacket);<NEW_LINE>outPacket[length + 8] = (byte) (crc & 0xff);<NEW_LINE>outPacket[length + 9] = (byte) ((crc >> 8) & 0xff);<NEW_LINE>return outPacket;<NEW_LINE>}
start >> 8) & 0xff);
110,101
public ExpressionScriptProvided resolve(String name, int numParameters) {<NEW_LINE>NameAndParamNum key = new NameAndParamNum(name, numParameters);<NEW_LINE>// try self-originated protected types first<NEW_LINE>ExpressionScriptProvided localExpr = locals.getScripts().get(key);<NEW_LINE>if (localExpr != null) {<NEW_LINE>return localExpr;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>Pair<ExpressionScriptProvided, String> expression = path.getAnyModuleExpectSingle(new NameAndParamNum(name, numParameters), moduleUses);<NEW_LINE>if (expression != null) {<NEW_LINE>if (!isFireAndForget && !NameAccessModifier.visible(expression.getFirst().getVisibility(), expression.getFirst().getModuleName(), moduleName)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>moduleDependencies.addPathScript(<MASK><NEW_LINE>return expression.getFirst();<NEW_LINE>}<NEW_LINE>} catch (PathException e) {<NEW_LINE>throw CompileTimeResolver.makePathAmbiguous(PathRegistryObjectType.SCRIPT, name, e);<NEW_LINE>}<NEW_LINE>return null;<NEW_LINE>}
key, expression.getSecond());
109,052
private void inlineAnonymousConstructor(ICodeWriter code, ClassNode cls, ConstructorInsn insn) throws CodegenException {<NEW_LINE>if (this.mth.getParentClass() == cls) {<NEW_LINE>cls.remove(AType.ANONYMOUS_CLASS);<NEW_LINE><MASK><NEW_LINE>mth.getParentClass().getTopParentClass().add(AFlag.RESTART_CODEGEN);<NEW_LINE>throw new CodegenException("Anonymous inner class unlimited recursion detected." + " Convert class to inner: " + cls.getClassInfo().getFullName());<NEW_LINE>}<NEW_LINE>ArgType parent = cls.get(AType.ANONYMOUS_CLASS).getBaseType();<NEW_LINE>// hide empty anonymous constructors<NEW_LINE>for (MethodNode ctor : cls.getMethods()) {<NEW_LINE>if (ctor.contains(AFlag.ANONYMOUS_CONSTRUCTOR) && RegionUtils.isEmpty(ctor.getRegion())) {<NEW_LINE>ctor.add(AFlag.DONT_GENERATE);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>code.add("new ");<NEW_LINE>useClass(code, parent);<NEW_LINE>MethodNode callMth = mth.root().resolveMethod(insn.getCallMth());<NEW_LINE>if (callMth != null) {<NEW_LINE>// copy var names<NEW_LINE>List<RegisterArg> mthArgs = callMth.getArgRegs();<NEW_LINE>int argsCount = Math.min(insn.getArgsCount(), mthArgs.size());<NEW_LINE>for (int i = 0; i < argsCount; i++) {<NEW_LINE>InsnArg arg = insn.getArg(i);<NEW_LINE>if (arg.isRegister()) {<NEW_LINE>RegisterArg mthArg = mthArgs.get(i);<NEW_LINE>RegisterArg insnArg = (RegisterArg) arg;<NEW_LINE>mthArg.getSVar().setCodeVar(insnArg.getSVar().getCodeVar());<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>generateMethodArguments(code, insn, 0, callMth);<NEW_LINE>code.add(' ');<NEW_LINE>ClassGen classGen = new ClassGen(cls, mgen.getClassGen().getParentGen());<NEW_LINE>classGen.setOuterNameGen(mgen.getNameGen());<NEW_LINE>classGen.addClassBody(code, true);<NEW_LINE>}
cls.remove(AFlag.DONT_GENERATE);
1,698,388
public static void detach(List<String> cmd) {<NEW_LINE>if (cmd.size() > 0) {<NEW_LINE>String line = "";<NEW_LINE>boolean shouldPrint = false;<NEW_LINE>for (String item : cmd) {<NEW_LINE>line += " " + item.trim();<NEW_LINE>if ("-v".equals(item.trim())) {<NEW_LINE>shouldPrint = true;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (shouldPrint) {<NEW_LINE>System.out.println("[DEBUG] ProcessRunner::detach:");<NEW_LINE>System.out.println(line.trim());<NEW_LINE>}<NEW_LINE>ProcessBuilder app = new ProcessBuilder();<NEW_LINE>Map<String, String<MASK><NEW_LINE>app.command(cmd);<NEW_LINE>app.redirectErrorStream(true);<NEW_LINE>app.redirectInput(ProcessBuilder.Redirect.INHERIT);<NEW_LINE>app.redirectOutput(ProcessBuilder.Redirect.INHERIT);<NEW_LINE>try {<NEW_LINE>app.start();<NEW_LINE>} catch (Exception e) {<NEW_LINE>p("[Error] ProcessRunner: start: %s", e.getMessage());<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}
> processEnv = app.environment();
309,873
private Map<String, Object> createInsightsMap(ServerUUID serverUUID) {<NEW_LINE>Database db = dbSystem.getDatabase();<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>long monthAgo = now - TimeUnit.DAYS.toMillis(30L);<NEW_LINE>List<TPS> tpsData = db.query(TPSQueries.fetchTPSDataOfServer(monthAgo, now, serverUUID));<NEW_LINE>TPSMutator tpsMutator = new TPSMutator(tpsData);<NEW_LINE>Map<String, Object> insights = new HashMap<>();<NEW_LINE>long uptime = TimeUnit.DAYS.toMillis(30L) - tpsMutator.serverDownTime();<NEW_LINE>long occupied = tpsMutator.serverOccupiedTime();<NEW_LINE>insights.put("server_occupied", timeAmount.apply(occupied));<NEW_LINE>insights.put("server_occupied_perc", percentage.apply(Percentage.calculate(occupied, uptime, -1)));<NEW_LINE>Long playtime = db.query(SessionQueries.playtime(monthAgo, now, serverUUID));<NEW_LINE>Long afkTime = db.query(SessionQueries.afkTime(monthAgo, now, serverUUID));<NEW_LINE>insights.put("total_playtime", timeAmount.apply(playtime));<NEW_LINE>insights.put("afk_time", timeAmount.apply(afkTime));<NEW_LINE>insights.put("afk_time_perc", percentage.apply(Percentage.calculate(afkTime, playtime, -1)));<NEW_LINE>GMTimes gmTimes = db.query(WorldTimesQueries.fetchGMTimes(monthAgo, now, serverUUID));<NEW_LINE>Optional<String> mostUsedGameMode = gmTimes.getMostUsedGameMode();<NEW_LINE>Long longestGMTime = mostUsedGameMode.map(gmTimes::getTime).orElse(-1L);<NEW_LINE>insights.put("most_active_gamemode", mostUsedGameMode.map(WordUtils::<MASK><NEW_LINE>insights.put("most_active_gamemode_perc", percentage.apply(Percentage.calculate(longestGMTime, playtime, -1)));<NEW_LINE>return insights;<NEW_LINE>}
capitalizeFully).orElse("Not Known"));
830,976
public void marshall(CreateLaunchProfileRequest createLaunchProfileRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createLaunchProfileRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createLaunchProfileRequest.getClientToken(), CLIENTTOKEN_BINDING);<NEW_LINE>protocolMarshaller.marshall(createLaunchProfileRequest.getDescription(), DESCRIPTION_BINDING);<NEW_LINE>protocolMarshaller.marshall(createLaunchProfileRequest.getEc2SubnetIds(), EC2SUBNETIDS_BINDING);<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarshaller.marshall(createLaunchProfileRequest.getName(), NAME_BINDING);<NEW_LINE>protocolMarshaller.marshall(createLaunchProfileRequest.getStreamConfiguration(), STREAMCONFIGURATION_BINDING);<NEW_LINE>protocolMarshaller.marshall(createLaunchProfileRequest.getStudioComponentIds(), STUDIOCOMPONENTIDS_BINDING);<NEW_LINE>protocolMarshaller.marshall(createLaunchProfileRequest.getStudioId(), STUDIOID_BINDING);<NEW_LINE>protocolMarshaller.marshall(createLaunchProfileRequest.getTags(), TAGS_BINDING);<NEW_LINE>} catch (Exception e) {<NEW_LINE>throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);<NEW_LINE>}<NEW_LINE>}
createLaunchProfileRequest.getLaunchProfileProtocolVersions(), LAUNCHPROFILEPROTOCOLVERSIONS_BINDING);
1,142,759
public static void vertical(Kernel1D_S32 kernel, GrayU8 src, GrayI16 dst) {<NEW_LINE>final byte[] dataSrc = src.data;<NEW_LINE>final short[] dataDst = dst.data;<NEW_LINE>final int[] dataKer = kernel.data;<NEW_LINE>final int offset = kernel.getOffset();<NEW_LINE>final int kernelWidth = kernel.getWidth();<NEW_LINE>final int imgWidth = dst.getWidth();<NEW_LINE>final int imgHeight = dst.getHeight();<NEW_LINE>final int yEnd = imgHeight - (kernelWidth - offset - 1);<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(offset, yEnd, y -> {<NEW_LINE>for (int y = offset; y < yEnd; y++) {<NEW_LINE>final int indexDstStart = dst.startIndex + y * dst.stride;<NEW_LINE>Arrays.fill(dataDst, indexDstStart, indexDstStart <MASK><NEW_LINE>for (int k = 0; k < kernelWidth; k++) {<NEW_LINE>final int iStart = src.startIndex + (y - offset + k) * src.stride;<NEW_LINE>final int iEnd = iStart + imgWidth;<NEW_LINE>int indexDst = indexDstStart;<NEW_LINE>int kernelValue = dataKer[k];<NEW_LINE>for (int i = iStart; i < iEnd; i++) {<NEW_LINE>dataDst[indexDst++] += (short) ((dataSrc[i] & 0xFF) * kernelValue);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>// CONCURRENT_ABOVE });<NEW_LINE>}
+ imgWidth, (short) 0);
1,794,349
protected void parseIdentityProviderDefinitions() {<NEW_LINE>if (getLegacyIdpMetaData() != null) {<NEW_LINE>SamlIdentityProviderDefinition def = new SamlIdentityProviderDefinition();<NEW_LINE>def.setMetaDataLocation(getLegacyIdpMetaData());<NEW_LINE>def.setMetadataTrustCheck(isLegacyMetadataTrustCheck());<NEW_LINE>def.setNameID(getLegacyNameId());<NEW_LINE>def.setAssertionConsumerIndex(getLegacyAssertionConsumerIndex());<NEW_LINE>String alias = getLegacyIdpIdentityAlias();<NEW_LINE>if (alias == null) {<NEW_LINE>throw new IllegalArgumentException("Invalid IDP - Alias must be not null for deprecated IDP.");<NEW_LINE>}<NEW_LINE>def.setIdpEntityAlias(alias);<NEW_LINE>def.setShowSamlLink(isLegacyShowSamlLink());<NEW_LINE>def.setLinkText("Use your corporate credentials");<NEW_LINE>// legacy only has UAA zone<NEW_LINE>def.setZoneId(IdentityZone.getUaaZoneId());<NEW_LINE>logger.debug("Legacy SAML provider configured with alias: " + alias);<NEW_LINE>IdentityProviderWrapper wrapper = new IdentityProviderWrapper(parseSamlProvider(def));<NEW_LINE>wrapper.setOverride(true);<NEW_LINE>samlProviders.add(wrapper);<NEW_LINE>}<NEW_LINE>Set<String> uniqueAlias = new HashSet<>();<NEW_LINE>for (IdentityProviderWrapper wrapper : samlProviders) {<NEW_LINE>String alias = getUniqueAlias((SamlIdentityProviderDefinition) wrapper.getProvider().getConfig());<NEW_LINE>if (uniqueAlias.contains(alias)) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>uniqueAlias.add(alias);<NEW_LINE>}<NEW_LINE>}
throw new IllegalStateException("Duplicate IDP alias found:" + alias);
185,483
private Challenge dnsChallenge(final Authorization auth, final Integer wait) throws FrameworkException {<NEW_LINE>final Dns01Challenge challenge = auth.findChallenge(Dns01Challenge.TYPE);<NEW_LINE>if (challenge == null) {<NEW_LINE>error("No " + Dns01Challenge.TYPE + " challenge found, aborting.");<NEW_LINE>}<NEW_LINE>final String domain = auth.getIdentifier().getDomain();<NEW_LINE>final String hostname = "_acme-challenge." + domain + ".";<NEW_LINE>final String digest = challenge.getDigest();<NEW_LINE>final Object result = Actions.callWithSecurityContext("onAcmeChallenge", SecurityContext.getSuperUserInstance(), Map.of("type", "dns", "hostname", hostname, "digest", digest));<NEW_LINE>if (result == null) {<NEW_LINE>publishProgressMessage(CERTIFICATE_RETRIEVAL_STATUS, "Lifecycle method 'onAcmeChallenge' not found! Within the next " + waitForSeconds + " seconds, create a TXT record in your DNS for " + domain + " with the following data: Hostname = '" + hostname + "', Target = '" + digest + "'");<NEW_LINE>logger.info("Within the next " + waitForSeconds + " seconds, create a TXT record in your DNS for " + domain + " with the following data:");<NEW_LINE>logger.info("{} IN TXT {}", hostname, digest);<NEW_LINE>logger.info("After " + waitForSeconds + " seconds, the certificate authority will probe the DNS record to authorize the challenge. If the record is not available, the authorization will fail.");<NEW_LINE>} else {<NEW_LINE>publishProgressMessage(CERTIFICATE_RETRIEVAL_STATUS, "Called lifecycle method onAcmeChallenge");<NEW_LINE>logger.info("DNS record (TXT) for domain " + domain + " has to be created with the following data:");<NEW_LINE>logger.<MASK><NEW_LINE>}<NEW_LINE>return challenge;<NEW_LINE>}
info("{} IN TXT {}", hostname, digest);
952,613
protected void encode(ChannelHandlerContext ctx, BaseModelRequest msg, ByteBuf out) {<NEW_LINE>if (msg instanceof ModelLoadModelRequest) {<NEW_LINE>out.writeByte('L');<NEW_LINE>ModelLoadModelRequest request = (ModelLoadModelRequest) msg;<NEW_LINE>byte[] buf = msg.getModelName().getBytes(StandardCharsets.UTF_8);<NEW_LINE>out.writeInt(buf.length);<NEW_LINE>out.writeBytes(buf);<NEW_LINE>buf = request.getModelPath().getBytes(StandardCharsets.UTF_8);<NEW_LINE>out.writeInt(buf.length);<NEW_LINE>out.writeBytes(buf);<NEW_LINE>int batchSize = request.getBatchSize();<NEW_LINE>if (batchSize <= 0) {<NEW_LINE>batchSize = 1;<NEW_LINE>}<NEW_LINE>out.writeInt(batchSize);<NEW_LINE>String handler = request.getHandler();<NEW_LINE>if (handler != null) {<NEW_LINE>buf = handler.getBytes(StandardCharsets.UTF_8);<NEW_LINE>}<NEW_LINE>// TODO: this might be a bug. If handler isn't specified, this<NEW_LINE>// will repeat the model path<NEW_LINE>out.writeInt(buf.length);<NEW_LINE>out.writeBytes(buf);<NEW_LINE>out.<MASK><NEW_LINE>String envelope = request.getEnvelope();<NEW_LINE>if (envelope != null) {<NEW_LINE>buf = envelope.getBytes(StandardCharsets.UTF_8);<NEW_LINE>} else {<NEW_LINE>buf = new byte[0];<NEW_LINE>}<NEW_LINE>out.writeInt(buf.length);<NEW_LINE>out.writeBytes(buf);<NEW_LINE>out.writeBoolean(request.isLimitMaxImagePixels());<NEW_LINE>} else if (msg instanceof ModelInferenceRequest) {<NEW_LINE>out.writeByte('I');<NEW_LINE>ModelInferenceRequest request = (ModelInferenceRequest) msg;<NEW_LINE>for (RequestInput input : request.getRequestBatch()) {<NEW_LINE>encodeRequest(input, out);<NEW_LINE>}<NEW_LINE>// End of List<NEW_LINE>out.writeInt(-1);<NEW_LINE>}<NEW_LINE>}
writeInt(request.getGpuId());
675,580
public static boolean hasSameContentItem(final Object iCurrent, ODatabaseDocumentInternal iMyDb, final Object iOther, final ODatabaseDocumentInternal iOtherDb, RIDMapper ridMapper) {<NEW_LINE>if (iCurrent instanceof ODocument) {<NEW_LINE>final ODocument current = (ODocument) iCurrent;<NEW_LINE>if (iOther instanceof ORID) {<NEW_LINE>if (!current.isDirty()) {<NEW_LINE>ORID id;<NEW_LINE>if (ridMapper != null) {<NEW_LINE>ORID mappedId = ridMapper.map(current.getIdentity());<NEW_LINE>if (mappedId != null)<NEW_LINE>id = mappedId;<NEW_LINE>else<NEW_LINE>id = current.getIdentity();<NEW_LINE>} else<NEW_LINE>id = current.getIdentity();<NEW_LINE>if (!id.equals(iOther)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>final ODocument otherDoc = iOtherDb<MASK><NEW_LINE>if (!ODocumentHelper.hasSameContentOf(current, iMyDb, otherDoc, iOtherDb, ridMapper))<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>} else if (!ODocumentHelper.hasSameContentOf(current, iMyDb, (ODocument) iOther, iOtherDb, ridMapper))<NEW_LINE>return false;<NEW_LINE>} else if (!compareScalarValues(iCurrent, iMyDb, iOther, iOtherDb, ridMapper))<NEW_LINE>return false;<NEW_LINE>return true;<NEW_LINE>}
.load((ORID) iOther);
864,402
public static void main(String[] args) {<NEW_LINE>var factory = new HeroFactoryImpl(new ElfMage("cooking"), new ElfWarlord("cleaning"), new ElfBeast("protecting"));<NEW_LINE>var mage = factory.createMage();<NEW_LINE><MASK><NEW_LINE>var beast = factory.createBeast();<NEW_LINE>LOGGER.info(mage.toString());<NEW_LINE>LOGGER.info(warlord.toString());<NEW_LINE>LOGGER.info(beast.toString());<NEW_LINE>factory = new HeroFactoryImpl(new OrcMage("axe"), new OrcWarlord("sword"), new OrcBeast("laser"));<NEW_LINE>mage = factory.createMage();<NEW_LINE>warlord = factory.createWarlord();<NEW_LINE>beast = factory.createBeast();<NEW_LINE>LOGGER.info(mage.toString());<NEW_LINE>LOGGER.info(warlord.toString());<NEW_LINE>LOGGER.info(beast.toString());<NEW_LINE>}
var warlord = factory.createWarlord();
477,727
public BLangNode transform(TableTypeDescriptorNode tableTypeDescriptorNode) {<NEW_LINE>BLangBuiltInRefTypeNode refType = (BLangBuiltInRefTypeNode) TreeBuilder.createBuiltInReferenceTypeNode();<NEW_LINE>refType.typeKind = TreeUtils.stringToTypeKind(tableTypeDescriptorNode.tableKeywordToken().text());<NEW_LINE>refType.pos = getPosition(tableTypeDescriptorNode);<NEW_LINE>BLangTableTypeNode tableTypeNode = (BLangTableTypeNode) TreeBuilder.createTableTypeNode();<NEW_LINE>tableTypeNode.pos = getPosition(tableTypeDescriptorNode);<NEW_LINE>tableTypeNode.type = refType;<NEW_LINE>tableTypeNode.constraint = createTypeNode(tableTypeDescriptorNode.rowTypeParameterNode());<NEW_LINE>if (tableTypeDescriptorNode.keyConstraintNode().isPresent()) {<NEW_LINE>Node constraintNode = tableTypeDescriptorNode.keyConstraintNode().get();<NEW_LINE>if (constraintNode.kind() == SyntaxKind.KEY_TYPE_CONSTRAINT) {<NEW_LINE>tableTypeNode.tableKeyTypeConstraint = (BLangTableKeyTypeConstraint) constraintNode.apply(this);<NEW_LINE>} else if (constraintNode.kind() == SyntaxKind.KEY_SPECIFIER) {<NEW_LINE>tableTypeNode.tableKeySpecifier = (BLangTableKeySpecifier) constraintNode.apply(this);<NEW_LINE>}<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>return tableTypeNode;<NEW_LINE>}
tableTypeNode.isTypeInlineDefined = checkIfAnonymous(tableTypeDescriptorNode);
1,129,376
public void run() {<NEW_LINE>if (marker == null && file == null && javaElement == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (javaElement != null) {<NEW_LINE>IEditorPart editor = JavaUI.openInEditor(javaElement, true, true);<NEW_LINE>// if we have both java element AND line info, go to the<NEW_LINE>// line<NEW_LINE>if (editor instanceof ITextEditor && marker != null) {<NEW_LINE>EditorUtil.goToLine(editor, marker.getAttribute(IMarker.LINE_NUMBER, EditorUtil.DEFAULT_LINE_IN_EDITOR));<NEW_LINE>}<NEW_LINE>} else if (marker != null) {<NEW_LINE>IDE.openEditor(FindbugsPlugin.getActiveWorkbenchWindow().getActivePage(), marker, true);<NEW_LINE>} else {<NEW_LINE>IDE.openEditor(FindbugsPlugin.getActiveWorkbenchWindow().getActivePage(), file, true);<NEW_LINE>}<NEW_LINE>} catch (PartInitException e) {<NEW_LINE>FindbugsPlugin.getDefault().logException(e, "Cannot open editor for marker: " + marker);<NEW_LINE>} catch (JavaModelException e) {<NEW_LINE>FindbugsPlugin.getDefault().<MASK><NEW_LINE>}<NEW_LINE>}
logException(e, "Cannot open editor for java element: " + javaElement);
264,936
// The tested deployment exceptions cause FFDC so we have to allow for this.<NEW_LINE>@AllowedFFDC<NEW_LINE>public void launchTck() throws Exception {<NEW_LINE>String protocol = "http";<NEW_LINE>String host = server.getHostname();<NEW_LINE>String port = Integer.toString(server.getHttpDefaultPort());<NEW_LINE>Map<String, String> additionalProps = new HashMap<>();<NEW_LINE>additionalProps.put("test.url", protocol + "://" + host + ":" + port);<NEW_LINE>additionalProps.put("test.user", "theUser");<NEW_LINE>additionalProps.put("test.pwd", "thePassword");<NEW_LINE>MvnUtils.runTCKMvnCmd(server, "com.ibm.ws.microprofile.metrics.1.1.noAuth_fat_tck", "launchTck", additionalProps);<NEW_LINE>Map<String, String> <MASK><NEW_LINE>resultInfo.put("results_type", "MicroProfile");<NEW_LINE>resultInfo.put("feature_name", "Metrics");<NEW_LINE>resultInfo.put("feature_version", "1.1");<NEW_LINE>MvnUtils.preparePublicationFile(resultInfo);<NEW_LINE>;<NEW_LINE>}
resultInfo = MvnUtils.getResultInfo(server);
803,246
public // keep this javadoc in sync with SelectionModel.Single.select<NEW_LINE>boolean select(Object itemId) throws IllegalArgumentException, IllegalStateException {<NEW_LINE>if (selectionModel instanceof SelectionModel.Single) {<NEW_LINE>return ((SelectionModel.Single<MASK><NEW_LINE>} else if (selectionModel instanceof SelectionModel.Multi) {<NEW_LINE>return ((SelectionModel.Multi) selectionModel).select(itemId);<NEW_LINE>} else if (selectionModel instanceof SelectionModel.None) {<NEW_LINE>throw new IllegalStateException("Cannot select row '" + itemId + "': Grid selection is disabled " + "(the current selection model is " + selectionModel.getClass().getName() + ").");<NEW_LINE>} else {<NEW_LINE>throw new IllegalStateException("Cannot select row '" + itemId + "': Grid selection model does not implement " + SelectionModel.Single.class.getName() + " or " + SelectionModel.Multi.class.getName() + "(the current model is " + selectionModel.getClass().getName() + ").");<NEW_LINE>}<NEW_LINE>}
) selectionModel).select(itemId);
262,792
public okhttp3.Call readNamespacedResourceQuotaCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas/{name}".replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())).replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString()));<NEW_LINE>List<Pair> localVarQueryParams = new ArrayList<Pair>();<NEW_LINE>List<Pair> localVarCollectionQueryParams <MASK><NEW_LINE>if (pretty != null) {<NEW_LINE>localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty));<NEW_LINE>}<NEW_LINE>Map<String, String> localVarHeaderParams = new HashMap<String, String>();<NEW_LINE>Map<String, String> localVarCookieParams = new HashMap<String, String>();<NEW_LINE>Map<String, Object> localVarFormParams = new HashMap<String, Object>();<NEW_LINE>final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" };<NEW_LINE>final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);<NEW_LINE>if (localVarAccept != null) {<NEW_LINE>localVarHeaderParams.put("Accept", localVarAccept);<NEW_LINE>}<NEW_LINE>final String[] localVarContentTypes = {};<NEW_LINE>final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);<NEW_LINE>localVarHeaderParams.put("Content-Type", localVarContentType);<NEW_LINE>String[] localVarAuthNames = new String[] { "BearerToken" };<NEW_LINE>return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);<NEW_LINE>}
= new ArrayList<Pair>();
1,036,797
final ListResourcesAssociatedToCustomLineItemResult executeListResourcesAssociatedToCustomLineItem(ListResourcesAssociatedToCustomLineItemRequest listResourcesAssociatedToCustomLineItemRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listResourcesAssociatedToCustomLineItemRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListResourcesAssociatedToCustomLineItemRequest> request = null;<NEW_LINE>Response<ListResourcesAssociatedToCustomLineItemResult> response = null;<NEW_LINE>try {<NEW_LINE>awsRequestMetrics.startEvent(Field.RequestMarshallTime);<NEW_LINE>try {<NEW_LINE>request = new ListResourcesAssociatedToCustomLineItemRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listResourcesAssociatedToCustomLineItemRequest));<NEW_LINE>// Binds the request metrics to the current request.<NEW_LINE>request.setAWSRequestMetrics(awsRequestMetrics);<NEW_LINE>request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);<NEW_LINE>request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SERVICE_ID, "billingconductor");<NEW_LINE>request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListResourcesAssociatedToCustomLineItem");<NEW_LINE>request.<MASK><NEW_LINE>} finally {<NEW_LINE>awsRequestMetrics.endEvent(Field.RequestMarshallTime);<NEW_LINE>}<NEW_LINE>HttpResponseHandler<AmazonWebServiceResponse<ListResourcesAssociatedToCustomLineItemResult>> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListResourcesAssociatedToCustomLineItemResultJsonUnmarshaller());<NEW_LINE>response = invoke(request, responseHandler, executionContext);<NEW_LINE>return response.getAwsResponse();<NEW_LINE>} finally {<NEW_LINE>endClientExecution(awsRequestMetrics, request, response);<NEW_LINE>}<NEW_LINE>}
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
370,279
protected void doHandle(final String[] args, final RedisClient redisClient) throws Exception {<NEW_LINE>// in non-psync executor<NEW_LINE>final RedisKeeperServer redisKeeperServer = redisClient.getRedisKeeperServer();<NEW_LINE>if (redisKeeperServer.rdbDumper() == null && redisKeeperServer.getReplicationStore().isFresh()) {<NEW_LINE>redisClient.sendMessage(new RedisErrorParser(new NoMasterlinkRedisError("Can't SYNC while replicationstore fresh")).format());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!redisKeeperServer.getRedisKeeperServerState().psync(redisClient, args)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final RedisSlave redisSlave = redisClient.becomeSlave();<NEW_LINE>if (redisSlave == null) {<NEW_LINE>logger.warn("[doHandle][psync client already slave]" + redisClient);<NEW_LINE>try {<NEW_LINE>redisClient.close();<NEW_LINE>} catch (IOException e) {<NEW_LINE>logger.error("[doHandle]" + redisClient, e);<NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// transfer to psync executor, which will do psync dedicatedly<NEW_LINE>redisSlave.processPsyncSequentially(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>} catch (Throwable th) {<NEW_LINE>try {<NEW_LINE>logger.error("[run]" + redisClient, th);<NEW_LINE>if (redisSlave.isOpen()) {<NEW_LINE>redisSlave.close();<NEW_LINE>}<NEW_LINE>} catch (IOException e) {<NEW_LINE>logger.error("[run][close]" + redisSlave, th);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>});<NEW_LINE>}
innerDoHandle(args, redisSlave, redisKeeperServer);
1,558,432
public boolean isCustomized() {<NEW_LINE>if (m_customizationLevel == null) {<NEW_LINE>// just for initializing m_elementID<NEW_LINE>getElementID();<NEW_LINE>// default is not customized<NEW_LINE>m_customizationLevel = new Integer(s_parameters.CUSTOMNONE);<NEW_LINE>// first check whether the column name starts with a custom prefix<NEW_LINE>if (m_parent.isCustomPrefix(m_name)) {<NEW_LINE>m_customizationLevel = new Integer(s_parameters.CUSTOMPREFIXED);<NEW_LINE>} else {<NEW_LINE>// otherwise check if it is marked as customization in the application dictionary<NEW_LINE>if (m_parent.isObjectExists("AD_COLUMN", m_parent.getTables()) && m_parent.isObjectExists("AD_TABLE", m_parent.getTables())) {<NEW_LINE>String sql = s_dbEngine.sqlAD_getTableColumnEntityType(m_parent.getVendor(), m_parent.getCatalog(), m_parent.<MASK><NEW_LINE>Statement stmt = m_parent.setStatement();<NEW_LINE>ResultSet rs = m_parent.executeQuery(stmt, sql);<NEW_LINE>if (m_parent.getResultSetNext(rs)) {<NEW_LINE>String s = m_parent.getResultSetString(rs, "ENTITY_TYPE");<NEW_LINE>if (m_parent.isCustomEntityType(s))<NEW_LINE>m_customizationLevel = new Integer(s_parameters.CUSTOMMARKED);<NEW_LINE>}<NEW_LINE>m_parent.releaseResultSet(rs);<NEW_LINE>m_parent.releaseStatement(stmt);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (m_customizationLevel.intValue() > s_parameters.CUSTOMNONE)<NEW_LINE>return true;<NEW_LINE>else<NEW_LINE>return false;<NEW_LINE>}
getSchema(), m_table, m_name);
1,674,442
final GetEntitlementsResult executeGetEntitlements(GetEntitlementsRequest getEntitlementsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getEntitlementsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GetEntitlementsRequest> request = null;<NEW_LINE>Response<GetEntitlementsResult> response = null;<NEW_LINE>try {<NEW_LINE>awsRequestMetrics.startEvent(Field.RequestMarshallTime);<NEW_LINE>try {<NEW_LINE>request = new GetEntitlementsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getEntitlementsRequest));<NEW_LINE>// Binds the request metrics to the current request.<NEW_LINE>request.setAWSRequestMetrics(awsRequestMetrics);<NEW_LINE>request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);<NEW_LINE>request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Marketplace Entitlement Service");<NEW_LINE>request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetEntitlements");<NEW_LINE>request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);<NEW_LINE>} finally {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>HttpResponseHandler<AmazonWebServiceResponse<GetEntitlementsResult>> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetEntitlementsResultJsonUnmarshaller());<NEW_LINE>response = invoke(request, responseHandler, executionContext);<NEW_LINE>return response.getAwsResponse();<NEW_LINE>} finally {<NEW_LINE>endClientExecution(awsRequestMetrics, request, response);<NEW_LINE>}<NEW_LINE>}
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,005,258
final UpdateTableResult executeUpdateTable(UpdateTableRequest updateTableRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateTableRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<UpdateTableRequest> request = null;<NEW_LINE>Response<UpdateTableResult> response = null;<NEW_LINE>try {<NEW_LINE>awsRequestMetrics.startEvent(Field.RequestMarshallTime);<NEW_LINE>try {<NEW_LINE>request = new UpdateTableRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateTableRequest));<NEW_LINE>// Binds the request metrics to the current request.<NEW_LINE>request.setAWSRequestMetrics(awsRequestMetrics);<NEW_LINE>request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);<NEW_LINE>request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());<NEW_LINE>request.<MASK><NEW_LINE>request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateTable");<NEW_LINE>request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);<NEW_LINE>} finally {<NEW_LINE>awsRequestMetrics.endEvent(Field.RequestMarshallTime);<NEW_LINE>}<NEW_LINE>URI cachedEndpoint = null;<NEW_LINE>if (endpointDiscoveryEnabled) {<NEW_LINE>DescribeEndpointsRequest discoveryRequest = new DescribeEndpointsRequest();<NEW_LINE>cachedEndpoint = cache.get(awsCredentialsProvider.getCredentials().getAWSAccessKeyId(), discoveryRequest, true, endpoint);<NEW_LINE>}<NEW_LINE>HttpResponseHandler<AmazonWebServiceResponse<UpdateTableResult>> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateTableResultJsonUnmarshaller());<NEW_LINE>response = invoke(request, responseHandler, executionContext, cachedEndpoint, null);<NEW_LINE>return response.getAwsResponse();<NEW_LINE>} finally {<NEW_LINE>endClientExecution(awsRequestMetrics, request, response);<NEW_LINE>}<NEW_LINE>}
addHandlerContext(HandlerContextKey.SERVICE_ID, "Timestream Write");
1,549,317
public DataAccessException translateExceptionIfPossible(RuntimeException ex) {<NEW_LINE>if (isSeqNoConflict(ex)) {<NEW_LINE>return new OptimisticLockingFailureException("Cannot index a document due to seq_no+primary_term conflict", ex);<NEW_LINE>}<NEW_LINE>if (ex instanceof ElasticsearchException) {<NEW_LINE>ElasticsearchException elasticsearchException = (ElasticsearchException) ex;<NEW_LINE>if (!indexAvailable(elasticsearchException)) {<NEW_LINE>return new NoSuchIndexException(ObjectUtils.nullSafeToString(elasticsearchException.getMetadata("es.index")), ex);<NEW_LINE>}<NEW_LINE>if (elasticsearchException instanceof ElasticsearchStatusException) {<NEW_LINE>ElasticsearchStatusException elasticsearchStatusException = (ElasticsearchStatusException) elasticsearchException;<NEW_LINE>return new RestStatusException(elasticsearchStatusException.status().getStatus(), elasticsearchStatusException.getMessage(), elasticsearchStatusException);<NEW_LINE>}<NEW_LINE>return new UncategorizedElasticsearchException(ex.getMessage(), ex);<NEW_LINE>}<NEW_LINE>if (ex instanceof RestStatusException) {<NEW_LINE>RestStatusException restStatusException = (RestStatusException) ex;<NEW_LINE>Throwable cause = restStatusException.getCause();<NEW_LINE>if (cause instanceof ElasticsearchException) {<NEW_LINE>ElasticsearchException elasticsearchException = (ElasticsearchException) cause;<NEW_LINE>if (!indexAvailable(elasticsearchException)) {<NEW_LINE>return new NoSuchIndexException(ObjectUtils.nullSafeToString(elasticsearchException.<MASK><NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (ex instanceof ValidationException) {<NEW_LINE>return new DataIntegrityViolationException(ex.getMessage(), ex);<NEW_LINE>}<NEW_LINE>Throwable cause = ex.getCause();<NEW_LINE>if (cause instanceof IOException) {<NEW_LINE>return new DataAccessResourceFailureException(ex.getMessage(), ex);<NEW_LINE>}<NEW_LINE>return null;<NEW_LINE>}
getMetadata("es.index")), ex);
1,710,039
public List<Hypothesis> specialisations(List<LogicalExample> examplesSoFar) {<NEW_LINE>List<Hypothesis> <MASK><NEW_LINE>LogicalExample lastExample = examplesSoFar.get(examplesSoFar.size() - 1);<NEW_LINE>for (String key : lastExample.getAttributes().keySet()) {<NEW_LINE>List<HashMap<String, String>> satisfiedDisjuncts = new ArrayList<>();<NEW_LINE>for (HashMap<String, String> disjunct : this.getHypothesis()) {<NEW_LINE>if (this.satisfiesConjunction(lastExample, disjunct))<NEW_LINE>satisfiedDisjuncts.add(new HashMap<>(disjunct));<NEW_LINE>}<NEW_LINE>List<HashMap<String, String>> tempDisjuncts = new ArrayList<>(this.getHypothesis());<NEW_LINE>tempDisjuncts.removeAll(satisfiedDisjuncts);<NEW_LINE>for (HashMap<String, String> falseDisjunct : satisfiedDisjuncts) {<NEW_LINE>if (falseDisjunct.containsKey(key))<NEW_LINE>continue;<NEW_LINE>else<NEW_LINE>falseDisjunct.put(key, "!" + lastExample.getAttributes().get(key));<NEW_LINE>}<NEW_LINE>tempDisjuncts.addAll(new ArrayList<>(satisfiedDisjuncts));<NEW_LINE>Hypothesis newHypo = new Hypothesis(this.getGoal(), new ArrayList<>(tempDisjuncts));<NEW_LINE>result.add(newHypo);<NEW_LINE>}<NEW_LINE>Collections.shuffle(result);<NEW_LINE>return result;<NEW_LINE>}
result = new ArrayList<>();
820,685
private static void buildConversionMap() {<NEW_LINE>// Values in the map below may be always changed<NEW_LINE>ArrayMap<String, String> keyValueMap = new ArrayMap<>(10);<NEW_LINE>keyValueMap.put("top", "0");<NEW_LINE>keyValueMap.put("left", "0");<NEW_LINE>keyValueMap.put("right", "DUMMY_RIGHT");<NEW_LINE>keyValueMap.put("bottom", "DUMMY_BOTTOM");<NEW_LINE>keyValueMap.put("width", "DUMMY_WIDTH");<NEW_LINE>keyValueMap.put("height", "DUMMY_HEIGHT");<NEW_LINE>keyValueMap.put("screen_width", "DUMMY_DATA");<NEW_LINE>keyValueMap.put("screen_height", "DUMMY_DATA");<NEW_LINE>keyValueMap.put("margin", Integer.toString((int) Tools.dpToPx(2)));<NEW_LINE>keyValueMap.put("preferred_scale", Float<MASK><NEW_LINE>conversionMap = new WeakReference<>(keyValueMap);<NEW_LINE>}
.toString(LauncherPreferences.PREF_BUTTONSIZE));
810,739
public FormatWalkResult format(String type, long address, PrintStream out, Context context, List<IFieldFormatter> fieldFormatters, String[] extraArgs) {<NEW_LINE>setFieldFormatters(fieldFormatters);<NEW_LINE>List<StructureDescriptor> inheritanceStack = new LinkedList<StructureDescriptor>();<NEW_LINE>String current = type;<NEW_LINE>while (current != null && current.length() > 0) {<NEW_LINE>StructureDescriptor desc = StructureCommandUtil.getStructureDescriptor(current, context);<NEW_LINE>inheritanceStack.add(0, desc);<NEW_LINE>current = desc.getSuperName();<NEW_LINE>}<NEW_LINE>StructureDescriptor specifiedType = inheritanceStack.get(inheritanceStack.size() - 1);<NEW_LINE>out.print(specifiedType.getName());<NEW_LINE>out.print(" at ");<NEW_LINE>out.print("0x");<NEW_LINE>out.print(Long.toHexString(address));<NEW_LINE>out.print(" {");<NEW_LINE>out.println();<NEW_LINE>for (StructureDescriptor desc : inheritanceStack) {<NEW_LINE>out.println(String.format(" Fields for %s:", desc.getName()));<NEW_LINE>for (FieldDescriptor thisField : desc.getFields()) {<NEW_LINE>out.print("\t0x");<NEW_LINE>out.print(Integer.toHexString(thisField.getOffset()));<NEW_LINE>out.print(": ");<NEW_LINE>out.print(thisField.getDeclaredType());<NEW_LINE>out.print(" ");<NEW_LINE>out.print(thisField.getName());<NEW_LINE>out.print(" = ");<NEW_LINE>try {<NEW_LINE>formatField(thisField.getName(), thisField.getType(), thisField.getDeclaredType(), address + thisField.<MASK><NEW_LINE>} catch (CorruptDataException e) {<NEW_LINE>out.print("<FAULT>");<NEW_LINE>}<NEW_LINE>out.println();<NEW_LINE>}<NEW_LINE>}<NEW_LINE>out.println("}");<NEW_LINE>return FormatWalkResult.STOP_WALKING;<NEW_LINE>}
getOffset(), out, context);
109,247
public boolean createCreateNodeTasks(Universe universe, Set<NodeDetails> nodesToBeCreated, boolean ignoreNodeStatus) {<NEW_LINE>// Determine the starting state of the nodes and invoke the callback if<NEW_LINE>// ignoreNodeStatus is not set.<NEW_LINE>boolean isNextFallThrough = applyOnNodesWithStatus(universe, nodesToBeCreated, ignoreNodeStatus, NodeStatus.builder().nodeState(NodeState.ToBeAdded).build(), filteredNodes -> {<NEW_LINE>createSetNodeStatusTasks(filteredNodes, NodeStatus.builder().nodeState(NodeState.Adding).build()).setSubTaskGroupType(SubTaskGroupType.Provisioning);<NEW_LINE>});<NEW_LINE>isNextFallThrough = applyOnNodesWithStatus(universe, nodesToBeCreated, isNextFallThrough, NodeStatus.builder().nodeState(NodeState.Adding).build(), filteredNodes -> {<NEW_LINE>createCreateServerTasks(filteredNodes).setSubTaskGroupType(SubTaskGroupType.Provisioning);<NEW_LINE>});<NEW_LINE>isNextFallThrough = applyOnNodesWithStatus(universe, nodesToBeCreated, isNextFallThrough, NodeStatus.builder().nodeState(NodeState.InstanceCreated).build(), filteredNodes -> {<NEW_LINE>createServerInfoTasks(filteredNodes).setSubTaskGroupType(SubTaskGroupType.Provisioning);<NEW_LINE>});<NEW_LINE>isNextFallThrough = applyOnNodesWithStatus(universe, nodesToBeCreated, isNextFallThrough, NodeStatus.builder().nodeState(NodeState.Provisioned).build(), filteredNodes -> {<NEW_LINE>createSetupServerTasks(filteredNodes<MASK><NEW_LINE>});<NEW_LINE>return isNextFallThrough;<NEW_LINE>}
).setSubTaskGroupType(SubTaskGroupType.Provisioning);
1,604,213
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>jScrollPane1 = new javax.swing.JScrollPane();<NEW_LINE>jList1 = new javax.swing.JList();<NEW_LINE>jScrollPane2 = new javax.swing.JScrollPane();<NEW_LINE>jTextArea1 = <MASK><NEW_LINE>lblOptions = new javax.swing.JLabel();<NEW_LINE>jScrollPane1.setViewportView(jList1);<NEW_LINE>jTextArea1.setColumns(20);<NEW_LINE>jTextArea1.setEditable(false);<NEW_LINE>jTextArea1.setRows(5);<NEW_LINE>jScrollPane2.setViewportView(jTextArea1);<NEW_LINE>// NOI18N<NEW_LINE>org.openide.awt.Mnemonics.setLocalizedText(lblOptions, org.openide.util.NbBundle.getMessage(GlobalOptionsPanel.class, "GlobalOptionsPanel.lblOptions.text"));<NEW_LINE>javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);<NEW_LINE>this.setLayout(layout);<NEW_LINE>layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 376, Short.MAX_VALUE).addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 376, Short.MAX_VALUE).addComponent(lblOptions)).addContainerGap()));<NEW_LINE>layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap().addComponent(lblOptions).addGap(7, 7, 7).addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jScrollPane2).addContainerGap()));<NEW_LINE>}
new javax.swing.JTextArea();
559,296
public static void register() {<NEW_LINE>IRecipeTransferRegistry recipeTransferRegistry = MachinesPlugin.iModRegistry.getRecipeTransferRegistry();<NEW_LINE>recipeTransferRegistry.addRecipeTransferHandler(new CrafterRecipeTransferHandler.Simple(), VanillaRecipeCategoryUid.CRAFTING);<NEW_LINE>recipeTransferRegistry.addRecipeTransferHandler(new CrafterRecipeTransferHandler.Normal(), VanillaRecipeCategoryUid.CRAFTING);<NEW_LINE>MachinesPlugin.iModRegistry.addRecipeClickArea(GuiCrafter.class, 219 - 21, 43, 16, 16, VanillaRecipeCategoryUid.CRAFTING);<NEW_LINE>MachinesPlugin.iModRegistry.addRecipeCatalyst(new ItemStack(MachineObject.block_crafter.getBlockNN()), VanillaRecipeCategoryUid.CRAFTING);<NEW_LINE>MachinesPlugin.iModRegistry.addRecipeCatalyst(new ItemStack(MachineObject.block_simple_crafter.getBlockNN<MASK><NEW_LINE>}
()), VanillaRecipeCategoryUid.CRAFTING);
278,997
public static void vertical(Kernel1D_S32 kernel, InterleavedU8 input, InterleavedI8 output) {<NEW_LINE>final <MASK><NEW_LINE>final int width = input.getWidth();<NEW_LINE>final int height = input.getHeight();<NEW_LINE>final int numBands = input.getNumBands();<NEW_LINE>final int[] pixel = new int[numBands];<NEW_LINE>final int[] total = new int[numBands];<NEW_LINE>for (int y = 0; y < height; y++) {<NEW_LINE>for (int x = 0; x < width; x++) {<NEW_LINE>Arrays.fill(total, 0);<NEW_LINE>int weight = 0;<NEW_LINE>int startY = y - offset;<NEW_LINE>int endY = startY + kernel.getWidth();<NEW_LINE>if (startY < 0)<NEW_LINE>startY = 0;<NEW_LINE>if (endY > height)<NEW_LINE>endY = height;<NEW_LINE>for (int i = startY; i < endY; i++) {<NEW_LINE>int v = kernel.get(i - y + offset);<NEW_LINE>input.get(x, i, pixel);<NEW_LINE>for (int band = 0; band < numBands; band++) {<NEW_LINE>total[band] += pixel[band] * v;<NEW_LINE>}<NEW_LINE>weight += v;<NEW_LINE>}<NEW_LINE>for (int band = 0; band < numBands; band++) {<NEW_LINE>total[band] = (total[band] + weight / 2) / weight;<NEW_LINE>}<NEW_LINE>output.set(x, y, total);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}
int offset = kernel.getOffset();
1,196,235
private void drawPlaceholder(Canvas canvas) {<NEW_LINE>if (!isInEditMode())<NEW_LINE>return;<NEW_LINE>canvas.getClipBounds(rect);<NEW_LINE>int width = rect.width();<NEW_LINE>int verticalBlockNumber = 7;<NEW_LINE>int horizontalBlockNumber = getHorizontalBlockNumber(lastWeeks * 7, verticalBlockNumber);<NEW_LINE><MASK><NEW_LINE>float blockWidth = width / (float) horizontalBlockNumber * marginBlock;<NEW_LINE>float spaceWidth = width / (float) horizontalBlockNumber - blockWidth;<NEW_LINE>float monthTextHeight = (displayMonth) ? blockWidth * 1.5F : 0;<NEW_LINE>float topMargin = (displayMonth) ? 7f : 0;<NEW_LINE>monthTextPaint.setTextSize(monthTextHeight);<NEW_LINE>int height = (int) ((blockWidth + spaceWidth) * 7 + topMargin + monthTextHeight);<NEW_LINE>// Background<NEW_LINE>blockPaint.setColor(backgroundBaseColor);<NEW_LINE>canvas.drawRect(0, (topMargin + monthTextHeight), width, height + monthTextHeight, blockPaint);<NEW_LINE>float x = 0;<NEW_LINE>float y = 0 * (blockWidth + spaceWidth) + (topMargin + monthTextHeight);<NEW_LINE>for (int i = 1; i < (lastWeeks * 7) + 1; i++) {<NEW_LINE>blockPaint.setColor(ColorsUtils.calculateLevelColor(baseColor, baseEmptyColor, 0));<NEW_LINE>canvas.drawRect(x, y, x + blockWidth, y + blockWidth, blockPaint);<NEW_LINE>if (i % 7 == 0) {<NEW_LINE>// another column<NEW_LINE>x += blockWidth + spaceWidth;<NEW_LINE>y = topMargin + monthTextHeight;<NEW_LINE>} else {<NEW_LINE>y += blockWidth + spaceWidth;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>// Resize component<NEW_LINE>ViewGroup.LayoutParams ll = getLayoutParams();<NEW_LINE>ll.height = height;<NEW_LINE>setLayoutParams(ll);<NEW_LINE>}
float marginBlock = (1.0F - 0.1F);
1,476,536
public void deserialize(ByteBuffer byteBuffer) throws IOException {<NEW_LINE><MASK><NEW_LINE>ArrayList<Container[]> containersArray = new ArrayList<>(firstLevelSize);<NEW_LINE>for (int i = 0; i < firstLevelSize; i++) {<NEW_LINE>// TODO:deserialize the trimmed related data<NEW_LINE>byte trimTag = byteBuffer.get();<NEW_LINE>int secondLevelSize = byteBuffer.getInt();<NEW_LINE>Container[] containers = new Container[secondLevelSize];<NEW_LINE>for (int j = 0; j < secondLevelSize; j++) {<NEW_LINE>byte nullTag = byteBuffer.get();<NEW_LINE>if (nullTag == NULL_MARK) {<NEW_LINE>containers[j] = null;<NEW_LINE>} else if (nullTag == NOT_NULL_MARK) {<NEW_LINE>byte containerType = byteBuffer.get();<NEW_LINE>int cardinality = byteBuffer.getInt();<NEW_LINE>Container container = instanceContainer(containerType, cardinality, byteBuffer);<NEW_LINE>containers[j] = container;<NEW_LINE>} else {<NEW_LINE>throw new RuntimeException("the null tag byte value:" + nullTag + " is not right!");<NEW_LINE>}<NEW_LINE>}<NEW_LINE>containersArray.add(containers);<NEW_LINE>}<NEW_LINE>this.containerArrays = containersArray;<NEW_LINE>this.containerSize = byteBuffer.getLong();<NEW_LINE>this.firstLevelIdx = byteBuffer.getInt();<NEW_LINE>this.secondLevelIdx = byteBuffer.getInt();<NEW_LINE>}
int firstLevelSize = byteBuffer.getInt();
597,722
public void onPutAssignees(@NonNull ArrayList<User> users, boolean isAssignees) {<NEW_LINE>AssigneesRequestModel assigneesRequestModel = new AssigneesRequestModel();<NEW_LINE>ArrayList<String> assignees = Stream.of(users).map(User::getLogin).collect(Collectors<MASK><NEW_LINE>if (isAssignees) {<NEW_LINE>assigneesRequestModel.setAssignees(assignees.isEmpty() ? Stream.of(pullRequest.getAssignees()).map(User::getLogin).toList() : assignees);<NEW_LINE>makeRestCall(!assignees.isEmpty() ? RestProvider.getIssueService(isEnterprise()).putAssignees(login, repoId, issueNumber, assigneesRequestModel) : RestProvider.getIssueService(isEnterprise()).deleteAssignees(login, repoId, issueNumber, assigneesRequestModel), pullRequestResponse -> {<NEW_LINE>UsersListModel usersListModel = new UsersListModel();<NEW_LINE>usersListModel.addAll(users);<NEW_LINE>this.pullRequest.setAssignees(usersListModel);<NEW_LINE>manageObservable(pullRequest.save(pullRequest).toObservable());<NEW_LINE>sendToView(view -> updateTimeline(view, R.string.assignee_added));<NEW_LINE>});<NEW_LINE>} else {<NEW_LINE>assigneesRequestModel.setReviewers(assignees);<NEW_LINE>makeRestCall(RestProvider.getPullRequestService(isEnterprise()).putReviewers(login, repoId, issueNumber, assigneesRequestModel), pullRequestResponse -> sendToView(view -> updateTimeline(view, R.string.reviewer_added)));<NEW_LINE>}<NEW_LINE>}
.toCollection(ArrayList::new));
898,553
public static GetDownloadUrlsResponse unmarshall(GetDownloadUrlsResponse getDownloadUrlsResponse, UnmarshallerContext context) {<NEW_LINE>getDownloadUrlsResponse.setRequestId(context.stringValue("GetDownloadUrlsResponse.RequestId"));<NEW_LINE>getDownloadUrlsResponse.setCode<MASK><NEW_LINE>getDownloadUrlsResponse.setMessage(context.stringValue("GetDownloadUrlsResponse.Message"));<NEW_LINE>getDownloadUrlsResponse.setAction(context.stringValue("GetDownloadUrlsResponse.Action"));<NEW_LINE>List<Result> results = new ArrayList<Result>();<NEW_LINE>for (int i = 0; i < context.lengthValue("GetDownloadUrlsResponse.Results.Length"); i++) {<NEW_LINE>Result result = new Result();<NEW_LINE>result.setCode(context.stringValue("GetDownloadUrlsResponse.Results[" + i + "].Code"));<NEW_LINE>result.setMessage(context.stringValue("GetDownloadUrlsResponse.Results[" + i + "].Message"));<NEW_LINE>result.setPhotoId(context.longValue("GetDownloadUrlsResponse.Results[" + i + "].PhotoId"));<NEW_LINE>result.setPhotoIdStr(context.stringValue("GetDownloadUrlsResponse.Results[" + i + "].PhotoIdStr"));<NEW_LINE>result.setDownloadUrl(context.stringValue("GetDownloadUrlsResponse.Results[" + i + "].DownloadUrl"));<NEW_LINE>results.add(result);<NEW_LINE>}<NEW_LINE>getDownloadUrlsResponse.setResults(results);<NEW_LINE>return getDownloadUrlsResponse;<NEW_LINE>}
(context.stringValue("GetDownloadUrlsResponse.Code"));
748,960
private void createCombinedContext(final Image loadedImage, final int major, final int minor, final ImageAddressSpace space, final ImageProcess proc, final JavaRuntime rt, String coreFilePath) {<NEW_LINE>// take the DTFJ context and attempt to combine it with a DDR interactive one<NEW_LINE>Object obj = ctx.getProperties(<MASK><NEW_LINE>if (obj == null) {<NEW_LINE>logger.fine("Could not create a new context as the session property has not been set");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!(obj instanceof ISession)) {<NEW_LINE>logger.fine("Could not create a new context as the session type was not recognised [" + obj.getClass().getName() + "]");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>JdmpviewContextManager mgr = (JdmpviewContextManager) ((ISession) obj).getContextManager();<NEW_LINE>CombinedContext cc = (CombinedContext) mgr.createContext(loadedImage, major, minor, space, proc, rt);<NEW_LINE>cc.startDDRInteractiveSession(loadedImage, out);<NEW_LINE>cc.getProperties().put(CORE_FILE_PATH_PROPERTY, coreFilePath);<NEW_LINE>cc.getProperties().put(IMAGE_FACTORY_PROPERTY, getFactory());<NEW_LINE>if (ctx.hasPropertyBeenSet(VERBOSE_MODE_PROPERTY)) {<NEW_LINE>cc.getProperties().put(VERBOSE_MODE_PROPERTY, "true");<NEW_LINE>}<NEW_LINE>if (rt != null && cc.isDDRAvailable()) {<NEW_LINE>// attempt to retrieve the system property "java.vm.name"<NEW_LINE>// from the VM that produced the core file<NEW_LINE>try {<NEW_LINE>String vmName = rt.getSystemProperty("java.vm.name");<NEW_LINE>if (vmName != null) {<NEW_LINE>ctx.getProperties().put("java.vm.name", vmName);<NEW_LINE>}<NEW_LINE>} catch (CorruptDataException | DataUnavailable e) {<NEW_LINE>// ignore<NEW_LINE>}<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>// flag to indicate if native libs are required but not present<NEW_LINE>boolean hasLibError = true;<NEW_LINE>String os = cc.getImage().getSystemType().toLowerCase();<NEW_LINE>if (os.contains("linux") || os.contains("aix")) {<NEW_LINE>if (cc.getProcess() != null) {<NEW_LINE>Iterator<?> modules = cc.getProcess().getLibraries();<NEW_LINE>if (modules.hasNext()) {<NEW_LINE>obj = modules.next();<NEW_LINE>if (obj instanceof ImageModule) {<NEW_LINE>// there is at least one native lib available<NEW_LINE>hasLibError = false;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>hasLibError = false;<NEW_LINE>}<NEW_LINE>if (hasLibError) {<NEW_LINE>out.println("Warning: native libraries are not available for " + coreFilePath);<NEW_LINE>}<NEW_LINE>} catch (DataUnavailable e) {<NEW_LINE>logger.log(Level.FINE, "Warning: native libraries are not available for " + coreFilePath);<NEW_LINE>} catch (Exception e) {<NEW_LINE>logger.log(Level.FINE, "Error determining if native libraries are required for " + coreFilePath, e);<NEW_LINE>}<NEW_LINE>}
).get(SessionProperties.SESSION_PROPERTY);
198,661
private SMessage processFinishedState(Message request, SMessage response) {<NEW_LINE>// If the response message validated, set the AD bit.<NEW_LINE>SecurityStatus status = response.getStatus();<NEW_LINE>String reason = response.getBogusReason();<NEW_LINE>int edeReason = response.getEdeReason();<NEW_LINE>switch(status) {<NEW_LINE>case BOGUS:<NEW_LINE>// For now, in the absence of any other API information, we<NEW_LINE>// return SERVFAIL.<NEW_LINE>int code = response.getHeader().getRcode();<NEW_LINE>if (code == Rcode.NOERROR || code == Rcode.NXDOMAIN) {<NEW_LINE>code = Rcode.SERVFAIL;<NEW_LINE>}<NEW_LINE>response = ValidatingResolver.errorMessage(request, code);<NEW_LINE>break;<NEW_LINE>case SECURE:<NEW_LINE>response.getHeader().setFlag(Flags.AD);<NEW_LINE>break;<NEW_LINE>case UNCHECKED:<NEW_LINE>case INSECURE:<NEW_LINE>break;<NEW_LINE>default:<NEW_LINE>throw new IllegalArgumentException("unexpected security status");<NEW_LINE>}<NEW_LINE>response.<MASK><NEW_LINE>return response;<NEW_LINE>}
setStatus(status, edeReason, reason);
1,167,571
final UpdateUserHierarchyResult executeUpdateUserHierarchy(UpdateUserHierarchyRequest updateUserHierarchyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateUserHierarchyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<UpdateUserHierarchyRequest> request = null;<NEW_LINE>Response<UpdateUserHierarchyResult> response = null;<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>request = new UpdateUserHierarchyRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateUserHierarchyRequest));<NEW_LINE>// Binds the request metrics to the current request.<NEW_LINE>request.setAWSRequestMetrics(awsRequestMetrics);<NEW_LINE>request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);<NEW_LINE>request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Connect");<NEW_LINE>request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateUserHierarchy");<NEW_LINE>request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);<NEW_LINE>} finally {<NEW_LINE>awsRequestMetrics.endEvent(Field.RequestMarshallTime);<NEW_LINE>}<NEW_LINE>HttpResponseHandler<AmazonWebServiceResponse<UpdateUserHierarchyResult>> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateUserHierarchyResultJsonUnmarshaller());<NEW_LINE>response = invoke(request, responseHandler, executionContext);<NEW_LINE>return response.getAwsResponse();<NEW_LINE>} finally {<NEW_LINE>endClientExecution(awsRequestMetrics, request, response);<NEW_LINE>}<NEW_LINE>}
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
397,516
public void bind(final ShaderProgram shader, final int[] locations) {<NEW_LINE>final GL20 gl = Gdx.gl20;<NEW_LINE>gl.glBindBuffer(GL20.GL_ARRAY_BUFFER, bufferHandle);<NEW_LINE>if (isDirty) {<NEW_LINE>((Buffer) byteBuffer).limit(buffer.limit() * 4);<NEW_LINE>gl.glBufferData(GL20.GL_ARRAY_BUFFER, byteBuffer.limit(), byteBuffer, usage);<NEW_LINE>isDirty = false;<NEW_LINE>}<NEW_LINE>final int numAttributes = attributes.size();<NEW_LINE>if (locations == null) {<NEW_LINE>for (int i = 0; i < numAttributes; i++) {<NEW_LINE>final VertexAttribute attribute = attributes.get(i);<NEW_LINE>final int location = shader.getAttributeLocation(attribute.alias);<NEW_LINE>if (location < 0)<NEW_LINE>continue;<NEW_LINE>shader.enableVertexAttribute(location);<NEW_LINE>shader.setVertexAttribute(location, attribute.numComponents, attribute.type, attribute.normalized, attributes.vertexSize, attribute.offset);<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>for (int i = 0; i < numAttributes; i++) {<NEW_LINE>final VertexAttribute attribute = attributes.get(i);<NEW_LINE>final int location = locations[i];<NEW_LINE>if (location < 0)<NEW_LINE>continue;<NEW_LINE>shader.enableVertexAttribute(location);<NEW_LINE>shader.setVertexAttribute(location, attribute.numComponents, attribute.type, attribute.normalized, <MASK><NEW_LINE>}<NEW_LINE>}<NEW_LINE>isBound = true;<NEW_LINE>}
attributes.vertexSize, attribute.offset);
1,015,091
private void findTokensToWrap(InfixExpression node, int depth) {<NEW_LINE>Expression left = node.getLeftOperand();<NEW_LINE>if (left instanceof InfixExpression && samePrecedence(node, (InfixExpression) left)) {<NEW_LINE>findTokensToWrap((InfixExpression) left, depth + 1);<NEW_LINE>} else if (// always add first operand, it will be taken as wrap parent<NEW_LINE>this.wrapIndexes.isEmpty() || !this.options.wrap_before_binary_operator) {<NEW_LINE>this.wrapIndexes.add(this.tm.firstIndexIn(left, -1));<NEW_LINE>}<NEW_LINE>Expression right = node.getRightOperand();<NEW_LINE>List<Expression<MASK><NEW_LINE>for (int i = -1; i < extended.size(); i++) {<NEW_LINE>Expression operand = (i == -1) ? right : extended.get(i);<NEW_LINE>if (operand instanceof InfixExpression && samePrecedence(node, (InfixExpression) operand)) {<NEW_LINE>findTokensToWrap((InfixExpression) operand, depth + 1);<NEW_LINE>}<NEW_LINE>int indexBefore = this.tm.firstIndexBefore(operand, -1);<NEW_LINE>while (this.tm.get(indexBefore).isComment()) indexBefore--;<NEW_LINE>assert node.getOperator().toString().equals(this.tm.toString(indexBefore));<NEW_LINE>int indexAfter = this.tm.firstIndexIn(operand, -1);<NEW_LINE>this.wrapIndexes.add(this.options.wrap_before_binary_operator ? indexBefore : indexAfter);<NEW_LINE>this.secondaryWrapIndexes.add(this.options.wrap_before_binary_operator ? indexAfter : indexBefore);<NEW_LINE>if (!this.options.join_wrapped_lines) {<NEW_LINE>// TODO there should be an option for never joining wraps on opposite side of the operator<NEW_LINE>if (this.options.wrap_before_binary_operator) {<NEW_LINE>if (this.tm.countLineBreaksBetween(this.tm.get(indexAfter - 1), this.tm.get(indexAfter)) > 0)<NEW_LINE>this.wrapIndexes.add(indexAfter);<NEW_LINE>} else {<NEW_LINE>if (this.tm.countLineBreaksBetween(this.tm.get(indexBefore), this.tm.get(indexBefore - 1)) > 0)<NEW_LINE>this.wrapIndexes.add(indexBefore);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}
> extended = node.extendedOperands();
1,806,628
public void onResume() {<NEW_LINE>super.onResume();<NEW_LINE>tileFileSystemMaxQueueSize.setText(Configuration.getInstance().getTileFileSystemMaxQueueSize() + "");<NEW_LINE>tileFileSystemThreads.setText(Configuration.getInstance().getTileFileSystemThreads() + "");<NEW_LINE>tileDownloadMaxQueueSize.setText(Configuration.getInstance().getTileDownloadMaxQueueSize() + "");<NEW_LINE>tileDownloadThreads.setText(Configuration.getInstance().getTileDownloadThreads() + "");<NEW_LINE>gpsWaitTime.setText(Configuration.getInstance().getGpsWaitTime() + "");<NEW_LINE>additionalExpirationTime.setText(Configuration.getInstance().getExpirationExtendedDuration() + "");<NEW_LINE>cacheMapTileCount.setText(Configuration.getInstance().getCacheMapTileCount() + "");<NEW_LINE>if (Configuration.getInstance().getExpirationOverrideDuration() != null)<NEW_LINE>overrideExpirationTime.setText(Configuration.getInstance().getExpirationOverrideDuration() + "");<NEW_LINE>httpUserAgent.setText(Configuration.getInstance().getUserAgentValue());<NEW_LINE>checkBoxMapViewDebug.setChecked(Configuration.getInstance().isDebugMapView());<NEW_LINE>checkBoxDebugMode.setChecked(Configuration.getInstance().isDebugMode());<NEW_LINE>checkBoxDebugTileProvider.setChecked(Configuration.getInstance().isDebugTileProviders());<NEW_LINE>checkBoxHardwareAcceleration.setChecked(Configuration.getInstance().isMapViewHardwareAccelerated());<NEW_LINE>checkBoxDebugDownloading.setChecked(Configuration.getInstance().isDebugMapTileDownloader());<NEW_LINE>textViewCacheDirectory.setText(Configuration.getInstance().getOsmdroidTileCache().getAbsolutePath());<NEW_LINE>textViewBaseDirectory.setText(Configuration.getInstance().getOsmdroidBasePath().getAbsolutePath());<NEW_LINE>cacheMaxSize.setText(Configuration.getInstance().getTileFileSystemCacheMaxBytes() + "");<NEW_LINE>cacheTrimSize.setText(Configuration.getInstance(<MASK><NEW_LINE>zoomSpeedDefault.setText(Configuration.getInstance().getAnimationSpeedDefault() + "");<NEW_LINE>zoomSpeedShort.setText(Configuration.getInstance().getAnimationSpeedShort() + "");<NEW_LINE>}
).getTileFileSystemCacheTrimBytes() + "");
492,013
protected Alarm toAlarm() {<NEW_LINE>Alarm alarm = new Alarm(new AlarmId(id));<NEW_LINE>alarm.setCreatedTime(createdTime);<NEW_LINE>if (tenantId != null) {<NEW_LINE>alarm.setTenantId(TenantId.fromUUID(tenantId));<NEW_LINE>}<NEW_LINE>if (customerId != null) {<NEW_LINE>alarm.<MASK><NEW_LINE>}<NEW_LINE>alarm.setOriginator(EntityIdFactory.getByTypeAndUuid(originatorType, originatorId));<NEW_LINE>alarm.setType(type);<NEW_LINE>alarm.setSeverity(severity);<NEW_LINE>alarm.setStatus(status);<NEW_LINE>alarm.setPropagate(propagate);<NEW_LINE>alarm.setPropagateToOwner(propagateToOwner);<NEW_LINE>alarm.setPropagateToTenant(propagateToTenant);<NEW_LINE>alarm.setStartTs(startTs);<NEW_LINE>alarm.setEndTs(endTs);<NEW_LINE>alarm.setAckTs(ackTs);<NEW_LINE>alarm.setClearTs(clearTs);<NEW_LINE>alarm.setDetails(details);<NEW_LINE>if (!StringUtils.isEmpty(propagateRelationTypes)) {<NEW_LINE>alarm.setPropagateRelationTypes(Arrays.asList(propagateRelationTypes.split(",")));<NEW_LINE>} else {<NEW_LINE>alarm.setPropagateRelationTypes(Collections.emptyList());<NEW_LINE>}<NEW_LINE>return alarm;<NEW_LINE>}
setCustomerId(new CustomerId(customerId));
731,360
/* Sample generated code:<NEW_LINE>*<NEW_LINE>* @com.ibm.j9ddr.GeneratedFieldAccessor(offsetFieldName="_refOffset_", declaredType="fj9object_t")<NEW_LINE>* public J9ObjectPointer ref() throws CorruptDataException {<NEW_LINE>* return getObjectReferenceAtOffset(Example._refOffset_);<NEW_LINE>* }<NEW_LINE>*/<NEW_LINE>private void doFJ9ObjectMethod(FieldDescriptor field) {<NEW_LINE>Type objectType = Type.getObjectType(qualifyPointerType("J9Object"));<NEW_LINE>String returnDesc = Type.getMethodDescriptor(objectType);<NEW_LINE>String accessorDesc = Type.<MASK><NEW_LINE>MethodVisitor method = beginAnnotatedMethod(field, field.getName(), returnDesc);<NEW_LINE>method.visitCode();<NEW_LINE>if (checkPresent(field, method)) {<NEW_LINE>method.visitVarInsn(ALOAD, 0);<NEW_LINE>loadLong(method, field.getOffset());<NEW_LINE>method.visitMethodInsn(INVOKEVIRTUAL, className, "getObjectReferenceAtOffset", accessorDesc, false);<NEW_LINE>method.visitInsn(ARETURN);<NEW_LINE>}<NEW_LINE>method.visitMaxs(3, 1);<NEW_LINE>method.visitEnd();<NEW_LINE>doEAMethod("ObjectReference", field);<NEW_LINE>}
getMethodDescriptor(objectType, Type.LONG_TYPE);
357,798
public RunnerAndConfigurationSettings findExisting() {<NEW_LINE>if (myExistingConfiguration != null)<NEW_LINE>return myExistingConfiguration.get();<NEW_LINE>myExistingConfiguration = new Ref<>();<NEW_LINE>if (myLocation == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final PsiElement psiElement = myLocation.getPsiElement();<NEW_LINE>if (!psiElement.isValid()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final List<com.intellij.execution.junit.RuntimeConfigurationProducer> producers = findPreferredProducers();<NEW_LINE>if (myRuntimeConfiguration != null) {<NEW_LINE>if (producers != null) {<NEW_LINE>for (com.intellij.execution.junit.RuntimeConfigurationProducer producer : producers) {<NEW_LINE>final RunnerAndConfigurationSettings configuration = producer.findExistingConfiguration(myLocation, this);<NEW_LINE>if (configuration != null && configuration.getConfiguration() == myRuntimeConfiguration) {<NEW_LINE>myExistingConfiguration.set(configuration);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>for (RunConfigurationProducer producer : RunConfigurationProducer.getProducers(getProject())) {<NEW_LINE>RunnerAndConfigurationSettings configuration = producer.findExistingConfiguration(this);<NEW_LINE>if (configuration != null && configuration.getConfiguration() == myRuntimeConfiguration) {<NEW_LINE>myExistingConfiguration.set(configuration);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (producers != null) {<NEW_LINE>for (com.intellij.execution.junit.RuntimeConfigurationProducer producer : producers) {<NEW_LINE>final RunnerAndConfigurationSettings configuration = <MASK><NEW_LINE>if (configuration != null) {<NEW_LINE>myExistingConfiguration.set(configuration);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>for (RunConfigurationProducer producer : RunConfigurationProducer.getProducers(getProject())) {<NEW_LINE>RunnerAndConfigurationSettings configuration = producer.findExistingConfiguration(this);<NEW_LINE>if (configuration != null) {<NEW_LINE>myExistingConfiguration.set(configuration);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>return myExistingConfiguration.get();<NEW_LINE>}
producer.findExistingConfiguration(myLocation, this);
1,114,520
public Example build() {<NEW_LINE>this.exampleCriterias = new ArrayList<Criteria>();<NEW_LINE>for (Sqls.Criteria criteria : sqlsCriteria) {<NEW_LINE>Example.Criteria exampleCriteria = new Example.Criteria(this.propertyMap, <MASK><NEW_LINE>exampleCriteria.setAndOr(criteria.getAndOr());<NEW_LINE>for (Sqls.Criterion criterion : criteria.getCriterions()) {<NEW_LINE>String condition = criterion.getCondition();<NEW_LINE>String andOr = criterion.getAndOr();<NEW_LINE>String property = criterion.getProperty();<NEW_LINE>Object[] values = criterion.getValues();<NEW_LINE>transformCriterion(exampleCriteria, condition, property, values, andOr);<NEW_LINE>}<NEW_LINE>exampleCriterias.add(exampleCriteria);<NEW_LINE>}<NEW_LINE>if (this.orderByClause.length() > 0) {<NEW_LINE>this.orderByClause = new StringBuilder(this.orderByClause.substring(1, this.orderByClause.length()));<NEW_LINE>}<NEW_LINE>return new Example(this);<NEW_LINE>}
this.exists, this.notNull);
942,164
public void marshall(ListReservationsRequest listReservationsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (listReservationsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(listReservationsRequest.getChannelClass(), CHANNELCLASS_BINDING);<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarshaller.marshall(listReservationsRequest.getMaxResults(), MAXRESULTS_BINDING);<NEW_LINE>protocolMarshaller.marshall(listReservationsRequest.getMaximumBitrate(), MAXIMUMBITRATE_BINDING);<NEW_LINE>protocolMarshaller.marshall(listReservationsRequest.getMaximumFramerate(), MAXIMUMFRAMERATE_BINDING);<NEW_LINE>protocolMarshaller.marshall(listReservationsRequest.getNextToken(), NEXTTOKEN_BINDING);<NEW_LINE>protocolMarshaller.marshall(listReservationsRequest.getResolution(), RESOLUTION_BINDING);<NEW_LINE>protocolMarshaller.marshall(listReservationsRequest.getResourceType(), RESOURCETYPE_BINDING);<NEW_LINE>protocolMarshaller.marshall(listReservationsRequest.getSpecialFeature(), SPECIALFEATURE_BINDING);<NEW_LINE>protocolMarshaller.marshall(listReservationsRequest.getVideoQuality(), VIDEOQUALITY_BINDING);<NEW_LINE>} catch (Exception e) {<NEW_LINE>throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);<NEW_LINE>}<NEW_LINE>}
listReservationsRequest.getCodec(), CODEC_BINDING);
1,852,971
public void run() {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>final List<Long> timeList = new ArrayList<Long>();<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE><MASK><NEW_LINE>long from = DateUtil.yyyymmdd(date);<NEW_LINE>param.put("from", from);<NEW_LINE>param.put("to", from + DateUtil.MILLIS_PER_DAY - 1);<NEW_LINE>tcp.process(RequestCmd.GET_STACK_INDEX, param, new INetReader() {<NEW_LINE><NEW_LINE>public void process(DataInputX in) throws IOException {<NEW_LINE>long time = in.readLong();<NEW_LINE>timeList.add(new Long(time));<NEW_LINE>}<NEW_LINE>});<NEW_LINE>} catch (Exception e) {<NEW_LINE>e.printStackTrace();<NEW_LINE>} finally {<NEW_LINE>TcpProxy.putTcpProxy(tcp);<NEW_LINE>}<NEW_LINE>Collections.sort(timeList);<NEW_LINE>ExUtil.exec(table, new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>for (int i = 0; i < timeList.size(); i++) {<NEW_LINE>TableItem item = new TableItem(table, SWT.NONE);<NEW_LINE>item.setText(0, String.valueOf(i + 1));<NEW_LINE>long time = timeList.get(i).longValue();<NEW_LINE>item.setText(1, DateUtil.format(time, "yyyy-MM-dd HH:mm:ss"));<NEW_LINE>item.setData(time);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>});<NEW_LINE>}
param.put("objName", objName);
1,337,523
public static int createTypeMember(final Connection connection, final int containingTypeId, final Optional<Integer> offset, final String name, final int baseTypeId, final Optional<Integer> numberOfElements, final INaviModule module) throws CouldntSaveDataException {<NEW_LINE>try {<NEW_LINE>final String query = String.format("INSERT INTO %s (module_id, id, name, base_type, parent_id, \"offset\", argument," + " number_of_elements) VALUES (?, nextval('bn_types_id_seq'), " + "?, ?, ?, ?, NULL, ?) returning id", CTableNames.TYPE_MEMBERS_TABLE);<NEW_LINE>final PreparedStatement statement = connection.prepareStatement(query);<NEW_LINE>try {<NEW_LINE>statement.setInt(1, module.getConfiguration().getId());<NEW_LINE>statement.setString(2, name);<NEW_LINE>statement.setInt(3, baseTypeId);<NEW_LINE><MASK><NEW_LINE>if (offset.isPresent()) {<NEW_LINE>statement.setInt(5, offset.get());<NEW_LINE>} else {<NEW_LINE>statement.setNull(5, Types.INTEGER);<NEW_LINE>}<NEW_LINE>if (numberOfElements.isPresent()) {<NEW_LINE>statement.setInt(6, numberOfElements.get());<NEW_LINE>} else {<NEW_LINE>statement.setNull(6, Types.INTEGER);<NEW_LINE>}<NEW_LINE>final ResultSet resultSet = statement.executeQuery();<NEW_LINE>if (resultSet.next()) {<NEW_LINE>return resultSet.getInt(1);<NEW_LINE>} else {<NEW_LINE>throw new CouldntSaveDataException("Empty result set while inserting type member.");<NEW_LINE>}<NEW_LINE>} finally {<NEW_LINE>statement.close();<NEW_LINE>}<NEW_LINE>} catch (final SQLException exception) {<NEW_LINE>throw new CouldntSaveDataException(exception);<NEW_LINE>}<NEW_LINE>}
statement.setInt(4, containingTypeId);
822,059
public AuthenticationProfile unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>AuthenticationProfile authenticationProfile = new AuthenticationProfile();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_LINE>while (true) {<NEW_LINE>XMLEvent xmlEvent = context.nextEvent();<NEW_LINE>if (xmlEvent.isEndDocument())<NEW_LINE>return authenticationProfile;<NEW_LINE>if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) {<NEW_LINE>if (context.testExpression("AuthenticationProfileName", targetDepth)) {<NEW_LINE>authenticationProfile.setAuthenticationProfileName(StringStaxUnmarshaller.getInstance<MASK><NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>if (context.testExpression("AuthenticationProfileContent", targetDepth)) {<NEW_LINE>authenticationProfile.setAuthenticationProfileContent(StringStaxUnmarshaller.getInstance().unmarshall(context));<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>} else if (xmlEvent.isEndElement()) {<NEW_LINE>if (context.getCurrentDepth() < originalDepth) {<NEW_LINE>return authenticationProfile;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}
().unmarshall(context));
1,788,071
private static Map<Class<? extends Annotation>, Annotation> buildAnnotations(NamespaceConfig namespace) {<NEW_LINE>Map<Class<? extends Annotation>, Annotation> <MASK><NEW_LINE>annotations.put(ReadPermission.class, new ReadPermission() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Class<? extends Annotation> annotationType() {<NEW_LINE>return ReadPermission.class;<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String expression() {<NEW_LINE>return namespace.getReadAccess();<NEW_LINE>}<NEW_LINE>});<NEW_LINE>annotations.put(Include.class, new Include() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Class<? extends Annotation> annotationType() {<NEW_LINE>return Include.class;<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean rootLevel() {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String description() {<NEW_LINE>return namespace.getDescription();<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String friendlyName() {<NEW_LINE>return namespace.getFriendlyName();<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String name() {<NEW_LINE>return namespace.getName();<NEW_LINE>}<NEW_LINE>});<NEW_LINE>annotations.put(ApiVersion.class, new ApiVersion() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String version() {<NEW_LINE>return namespace.getApiVersion();<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Class<? extends Annotation> annotationType() {<NEW_LINE>return ApiVersion.class;<NEW_LINE>}<NEW_LINE>});<NEW_LINE>return annotations;<NEW_LINE>}
annotations = new HashMap<>();
953,151
private BindableValue bindableValueFor(JsonToken token) {<NEW_LINE>if (!JsonTokenType.STRING.equals(token.getType()) && !JsonTokenType.UNQUOTED_STRING.equals(token.getType()) && !JsonTokenType.REGULAR_EXPRESSION.equals(token.getType())) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>boolean isRegularExpression = token.getType().equals(JsonTokenType.REGULAR_EXPRESSION);<NEW_LINE>BindableValue bindableValue = new BindableValue();<NEW_LINE>String tokenValue = isRegularExpression ? token.getValue(BsonRegularExpression.class).getPattern() : String.class.cast(token.getValue());<NEW_LINE>Matcher matcher = PARAMETER_BINDING_PATTERN.matcher(tokenValue);<NEW_LINE>if (token.getType().equals(JsonTokenType.UNQUOTED_STRING)) {<NEW_LINE>Matcher regexMatcher = EXPRESSION_BINDING_PATTERN.matcher(tokenValue);<NEW_LINE>if (regexMatcher.find()) {<NEW_LINE>String binding = regexMatcher.group();<NEW_LINE>String expression = binding.substring(3, binding.length() - 1);<NEW_LINE>Matcher inSpelMatcher = PARAMETER_BINDING_PATTERN.matcher(expression);<NEW_LINE>while (inSpelMatcher.find()) {<NEW_LINE>int index = computeParameterIndex(inSpelMatcher.group());<NEW_LINE>expression = expression.replace(inSpelMatcher.group(), getBindableValueForIndex<MASK><NEW_LINE>}<NEW_LINE>Object value = evaluateExpression(expression);<NEW_LINE>bindableValue.setValue(value);<NEW_LINE>bindableValue.setType(bsonTypeForValue(value));<NEW_LINE>return bindableValue;<NEW_LINE>}<NEW_LINE>if (matcher.find()) {<NEW_LINE>int index = computeParameterIndex(matcher.group());<NEW_LINE>bindableValue.setValue(getBindableValueForIndex(index));<NEW_LINE>bindableValue.setType(bsonTypeForValue(getBindableValueForIndex(index)));<NEW_LINE>return bindableValue;<NEW_LINE>}<NEW_LINE>bindableValue.setValue(tokenValue);<NEW_LINE>bindableValue.setType(BsonType.STRING);<NEW_LINE>return bindableValue;<NEW_LINE>}<NEW_LINE>String computedValue = tokenValue;<NEW_LINE>Matcher regexMatcher = EXPRESSION_BINDING_PATTERN.matcher(computedValue);<NEW_LINE>while (regexMatcher.find()) {<NEW_LINE>String binding = regexMatcher.group();<NEW_LINE>String expression = binding.substring(3, binding.length() - 1);<NEW_LINE>Matcher inSpelMatcher = PARAMETER_BINDING_PATTERN.matcher(expression);<NEW_LINE>while (inSpelMatcher.find()) {<NEW_LINE>int index = computeParameterIndex(inSpelMatcher.group());<NEW_LINE>expression = expression.replace(inSpelMatcher.group(), getBindableValueForIndex(index).toString());<NEW_LINE>}<NEW_LINE>computedValue = computedValue.replace(binding, nullSafeToString(evaluateExpression(expression)));<NEW_LINE>bindableValue.setValue(computedValue);<NEW_LINE>bindableValue.setType(BsonType.STRING);<NEW_LINE>return bindableValue;<NEW_LINE>}<NEW_LINE>while (matcher.find()) {<NEW_LINE>String group = matcher.group();<NEW_LINE>int index = computeParameterIndex(group);<NEW_LINE>computedValue = computedValue.replace(group, nullSafeToString(getBindableValueForIndex(index)));<NEW_LINE>}<NEW_LINE>if (isRegularExpression) {<NEW_LINE>bindableValue.setValue(new BsonRegularExpression(computedValue));<NEW_LINE>bindableValue.setType(BsonType.REGULAR_EXPRESSION);<NEW_LINE>} else {<NEW_LINE>bindableValue.setValue(computedValue);<NEW_LINE>bindableValue.setType(BsonType.STRING);<NEW_LINE>}<NEW_LINE>return bindableValue;<NEW_LINE>}
(index).toString());
107,131
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("attach" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>String tableName = param.getLeafExpression().getIdentifierName();<NEW_LINE>ITableMetaData table = this.table;<NEW_LINE>table = table.getAnnexTable(tableName);<NEW_LINE>if (table == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException(tableName + mm.getMessage("dw.tableNotExist"));<NEW_LINE>}<NEW_LINE>return table;<NEW_LINE>}<NEW_LINE>IParam sub0 = param.getSub(0);<NEW_LINE>if (sub0 == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("attach" + mm.getMessage("function.invalidParam"));<NEW_LINE>}<NEW_LINE>String tableName = sub0.getLeafExpression().getIdentifierName();<NEW_LINE>int size = param.getSubSize();<NEW_LINE>String[] fields = new String[size - 1];<NEW_LINE>int[] serialBytesLen = new int[size - 1];<NEW_LINE>for (int i = 1; i < size; ++i) {<NEW_LINE>IParam sub = param.getSub(i);<NEW_LINE>if (sub == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("attach" + mm.getMessage("function.invalidParam"));<NEW_LINE>} else if (sub.isLeaf()) {<NEW_LINE>fields[i - 1] = sub.getLeafExpression().getIdentifierName();<NEW_LINE>} else {<NEW_LINE>IParam <MASK><NEW_LINE>IParam p1 = sub.getSub(1);<NEW_LINE>if (p0 == null || p1 == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("attach" + mm.getMessage("function.invalidParam"));<NEW_LINE>}<NEW_LINE>fields[i - 1] = p0.getLeafExpression().getIdentifierName();<NEW_LINE>Object obj = p1.getLeafExpression().calculate(ctx);<NEW_LINE>if (!(obj instanceof Number)) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("attach" + mm.getMessage("function.paramTypeError"));<NEW_LINE>}<NEW_LINE>serialBytesLen[i - 1] = ((Number) obj).intValue();<NEW_LINE>}<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>return table.createAnnexTable(fields, serialBytesLen, tableName);<NEW_LINE>} catch (IOException e) {<NEW_LINE>throw new RQException(e.getMessage(), e);<NEW_LINE>}<NEW_LINE>}
p0 = sub.getSub(0);
746,268
public final AltererResult<G, C> alter(final Seq<Phenotype<G, C>> population, final long generation) {<NEW_LINE><MASK><NEW_LINE>if (population.size() >= 2) {<NEW_LINE>final var random = RandomRegistry.random();<NEW_LINE>final int order = Math.min(_order, population.size());<NEW_LINE>final MSeq<Phenotype<G, C>> pop = MSeq.of(population);<NEW_LINE>final int count = indexes(random, population.size(), _probability).mapToObj(i -> individuals(i, population.size(), order, random)).mapToInt(ind -> recombine(pop, ind, generation)).sum();<NEW_LINE>result = new AltererResult<>(pop.toISeq(), count);<NEW_LINE>} else {<NEW_LINE>result = new AltererResult<>(population.asISeq(), 0);<NEW_LINE>}<NEW_LINE>return result;<NEW_LINE>}
final AltererResult<G, C> result;
1,237,677
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create context MyContext initiated by SupportBean_S0 as s0 terminated by SupportBean_S1(id=s0.id)", path);<NEW_LINE>String eplOnInit = "@name('s0') context MyContext select context.s0 as ctxs0";<NEW_LINE>env.compileDeploy(soda, eplOnInit, path).addListener("s0");<NEW_LINE>String eplOnTerm = "@name('s1') context MyContext select context.s0 as ctxs0 output when terminated";<NEW_LINE>env.compileDeploy(soda, eplOnTerm, path).addListener("s1");<NEW_LINE>SupportBean_S0 s0A = new SupportBean_S0(10, "A");<NEW_LINE>env.sendEventBean(s0A);<NEW_LINE>env.assertEqualsNew("s0", "ctxs0", s0A);<NEW_LINE>env.assertIterator("s0", iterator -> assertEquals(s0A, iterator.next().get("ctxs0")));<NEW_LINE>env.milestone(0);<NEW_LINE>SupportBean_S0 s0B = new SupportBean_S0(20, "B");<NEW_LINE>env.sendEventBean(s0B);<NEW_LINE>env.<MASK><NEW_LINE>assertIterator(env, "s0", s0A, s0B);<NEW_LINE>assertIterator(env, "s1", s0A, s0B);<NEW_LINE>env.milestone(1);<NEW_LINE>env.sendEventBean(new SupportBean_S1(10, "A"));<NEW_LINE>env.assertEqualsNew("s1", "ctxs0", s0A);<NEW_LINE>assertIterator(env, "s0", s0B);<NEW_LINE>assertIterator(env, "s1", s0B);<NEW_LINE>env.milestone(2);<NEW_LINE>env.sendEventBean(new SupportBean_S1(20, "A"));<NEW_LINE>env.assertEqualsNew("s1", "ctxs0", s0B);<NEW_LINE>assertIterator(env, "s0");<NEW_LINE>assertIterator(env, "s1");<NEW_LINE>env.undeployAll();<NEW_LINE>}
assertEqualsNew("s0", "ctxs0", s0B);
290,047
private void findSubMemberTypes(char[] typeName, ReferenceBinding receiverType, Scope scope, SourceTypeBinding typeInvocation, boolean staticOnly, boolean staticFieldsAndMethodOnly, boolean fromStaticImport, ObjectVector typesFound) {<NEW_LINE>ReferenceBinding currentType = receiverType;<NEW_LINE>if (typeName == null)<NEW_LINE>return;<NEW_LINE>// we're trying to find a supertype<NEW_LINE>if (this.assistNodeIsSuperType && !this.insideQualifiedReference && isForbidden(currentType))<NEW_LINE>return;<NEW_LINE>findMemberTypes(typeName, currentType.memberTypes(), typesFound, receiverType, typeInvocation, staticOnly, staticFieldsAndMethodOnly, fromStaticImport, true, scope, null, null, null, false);<NEW_LINE>ReferenceBinding[<MASK><NEW_LINE>next: for (int i = 0; i < memberTypes.length; i++) {<NEW_LINE>if (this.options.checkVisibility) {<NEW_LINE>if (typeInvocation != null && !memberTypes[i].canBeSeenBy(receiverType, typeInvocation)) {<NEW_LINE>continue next;<NEW_LINE>} else if (typeInvocation == null && !memberTypes[i].canBeSeenBy(this.unitScope.fPackage)) {<NEW_LINE>continue next;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>findSubMemberTypes(typeName, memberTypes[i], scope, typeInvocation, staticOnly, staticFieldsAndMethodOnly, fromStaticImport, typesFound);<NEW_LINE>}<NEW_LINE>}
] memberTypes = receiverType.memberTypes();
942,252
public static boolean canTune(TunerChannel channel, TunerController tunerController, SortedSet<TunerChannel> channels) {<NEW_LINE>// Make sure we're within the tunable frequency range of this tuner<NEW_LINE>if (tunerController.getMinFrequency() < channel.getMinFrequency() && tunerController.getMaxFrequency() > channel.getMaxFrequency()) {<NEW_LINE>// If this is the first lock, then we're good<NEW_LINE>if (channels.isEmpty()) {<NEW_LINE>return true;<NEW_LINE>} else {<NEW_LINE>SortedSet<TunerChannel> allChannels = new TreeSet<>(channels);<NEW_LINE>allChannels.add(channel);<NEW_LINE>// If the bandwidth of the channel set is less than or equal to the tuner's usable bandwidth, then<NEW_LINE>// check to see if we can find a valid center frequency<NEW_LINE>if (allChannels.last().getMaxFrequency() - allChannels.first().getMinFrequency() <= tunerController.getUsableBandwidth()) {<NEW_LINE>return <MASK><NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>return false;<NEW_LINE>}
getCenterFrequency(tunerController, allChannels) != INVALID_FREQUENCY;
1,772,086
private void createActions() {<NEW_LINE>tool.setMenuGroup(new String[] { "Convert" }, GROUP_NAME);<NEW_LINE>tool.addAction(new ConvertToUnsignedHexAction(this));<NEW_LINE>tool.addAction(new ConvertToUnsignedDecimalAction(this));<NEW_LINE>tool.addAction(new ConvertToOctalAction(this));<NEW_LINE>tool.addAction(new ConvertToSignedHexAction(this));<NEW_LINE>tool.addAction(new ConvertToSignedDecimalAction(this));<NEW_LINE>tool.addAction(new ConvertToCharAction(this));<NEW_LINE>tool.addAction(new ConvertToBinaryAction(this));<NEW_LINE>tool.addAction(new ConvertToFloatAction(this));<NEW_LINE>tool.addAction(new ConvertToDoubleAction(this));<NEW_LINE>setAction = new ListingContextAction("Set Equate", getName()) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void actionPerformed(ListingActionContext context) {<NEW_LINE>setEquate(context);<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected boolean isEnabledForContext(ListingActionContext context) {<NEW_LINE>return isEquatePermitted(context);<NEW_LINE>}<NEW_LINE>};<NEW_LINE>setAction.setPopupMenuData(new MenuData(SET_MENUPATH, null, GROUP_NAME));<NEW_LINE>setAction.setKeyBindingData(new KeyBindingData(KeyEvent.VK_E, 0));<NEW_LINE>renameAction = new ListingContextAction("Rename Equate", getName()) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void actionPerformed(ListingActionContext context) {<NEW_LINE>renameEquate(context);<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected boolean isEnabledForContext(ListingActionContext context) {<NEW_LINE>Scalar scalar = getScalar(context);<NEW_LINE>if (scalar == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Equate equate = getEquate(context);<NEW_LINE>if (equate == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>return isEquateEqualScalar(equate, scalar);<NEW_LINE>}<NEW_LINE>};<NEW_LINE>renameAction.setHelpLocation(new HelpLocation("EquatePlugin", "Set_Equate"));<NEW_LINE>renameAction.setPopupMenuData(new MenuData<MASK><NEW_LINE>renameAction.setKeyBindingData(new KeyBindingData(KeyEvent.VK_E, 0));<NEW_LINE>removeAction = new ListingContextAction("Remove Equate", getName()) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void actionPerformed(ListingActionContext context) {<NEW_LINE>removeSelectedEquates(context);<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected boolean isEnabledForContext(ListingActionContext context) {<NEW_LINE>return getEquate(context) != null;<NEW_LINE>}<NEW_LINE>};<NEW_LINE>removeAction.setPopupMenuData(new MenuData(REMOVE_MENUPATH, null, GROUP_NAME));<NEW_LINE>removeAction.setKeyBindingData(new KeyBindingData(KeyEvent.VK_DELETE, 0));<NEW_LINE>applyEnumAction = new ListingContextAction("Apply Enum", getName()) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void actionPerformed(ListingActionContext context) {<NEW_LINE>applyEnum(context);<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected boolean isEnabledForContext(ListingActionContext context) {<NEW_LINE>return context.hasSelection();<NEW_LINE>}<NEW_LINE>};<NEW_LINE>applyEnumAction.setHelpLocation(new HelpLocation("EquatePlugin", "Apply_Enum"));<NEW_LINE>applyEnumAction.setPopupMenuData(new MenuData(APPLYENUM_MENUPATH, null, GROUP_NAME));<NEW_LINE>tool.addAction(setAction);<NEW_LINE>tool.addAction(renameAction);<NEW_LINE>tool.addAction(removeAction);<NEW_LINE>tool.addAction(applyEnumAction);<NEW_LINE>}
(RENAME_MENUPATH, null, GROUP_NAME));
1,057,840
public org.python.Object __mul__(org.python.Object other) {<NEW_LINE>if (other instanceof org.python.types.Bool) {<NEW_LINE>boolean other_bool = ((org.python.types.Bool) other).value;<NEW_LINE>if (other_bool) {<NEW_LINE>return this;<NEW_LINE>} else {<NEW_LINE>return new Bytes(new byte[0]);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (other instanceof org.python.types.Int) {<NEW_LINE>int other_value = Math.max(0, (int) ((org.python.types.Int) other).value);<NEW_LINE>int len = this.value.length;<NEW_LINE>byte[] bytes <MASK><NEW_LINE>for (int i = 0; i < other_value; i++) {<NEW_LINE>System.arraycopy(this.value, 0, bytes, i * len, len);<NEW_LINE>}<NEW_LINE>return new Bytes(bytes);<NEW_LINE>} else {<NEW_LINE>throw new org.python.exceptions.TypeError("can't multiply sequence by non-int of type '" + other.typeName() + "'");<NEW_LINE>}<NEW_LINE>}
= new byte[other_value * len];
1,681,717
public MJournal reverseIt(boolean isAccrual) {<NEW_LINE>Timestamp currentDate = new Timestamp(System.currentTimeMillis());<NEW_LINE>Optional<Timestamp> loginDateOptional = Optional.of(Env.getContextAsDate(getCtx(), "#Date"));<NEW_LINE>Timestamp reversalDate = isAccrual ? loginDateOptional.orElseGet(() -> currentDate) : getDateAcct();<NEW_LINE>MPeriod.testPeriodOpen(getCtx(), reversalDate, getC_DocType_ID(), getAD_Org_ID());<NEW_LINE><MASK><NEW_LINE>// Journal<NEW_LINE>MJournal reverse = new MJournal(this);<NEW_LINE>reverse.setGL_JournalBatch_ID(getGL_JournalBatch_ID());<NEW_LINE>reverse.setDateDoc(reversalDate);<NEW_LINE>// reset<NEW_LINE>reverse.set_ValueNoCheck("C_Period_ID", null);<NEW_LINE>reverse.setDateAcct(reversalDate);<NEW_LINE>reverse.setControlAmt(getControlAmt().negate());<NEW_LINE>// Reverse indicator<NEW_LINE>reverse.addDescription("(->" + getDocumentNo() + ")");<NEW_LINE>// FR [ 1948157 ]<NEW_LINE>reverse.setReversal_ID(getGL_Journal_ID());<NEW_LINE>reverse.set_ValueNoCheck("DocumentNo", null);<NEW_LINE>MDocType docType = MDocType.get(getCtx(), getC_DocType_ID());<NEW_LINE>// Set Document No from flag<NEW_LINE>if (docType.isCopyDocNoOnReversal()) {<NEW_LINE>reverse.setDocumentNo(getDocumentNo() + Msg.getMsg(getCtx(), "^"));<NEW_LINE>}<NEW_LINE>reverse.saveEx();<NEW_LINE>addDescription("(" + reverse.getDocumentNo() + "<-)");<NEW_LINE>// Lines<NEW_LINE>reverse.copyLinesFrom(this, reversalDate, 'R');<NEW_LINE>// Add support for process journal to reverse<NEW_LINE>boolean sucess = reverse.processIt(DOCACTION_Complete);<NEW_LINE>if (!sucess) {<NEW_LINE>throw new AdempiereException(reverse.getProcessMsg());<NEW_LINE>}<NEW_LINE>reverse.closeIt();<NEW_LINE>reverse.setProcessing(false);<NEW_LINE>reverse.setDocStatus(DOCSTATUS_Reversed);<NEW_LINE>reverse.setDocAction(DOCACTION_None);<NEW_LINE>reverse.saveEx(get_TrxName());<NEW_LINE>//<NEW_LINE>setProcessed(true);<NEW_LINE>// FR [ 1948157 ]<NEW_LINE>setReversal_ID(reverse.getGL_Journal_ID());<NEW_LINE>setDocAction(DOCACTION_None);<NEW_LINE>setDocStatus(DOCSTATUS_Reversed);<NEW_LINE>return reverse;<NEW_LINE>}
log.info(toString());
26,928
public String execute(SampleResult previousResult, Sampler currentSampler) throws InvalidVariableException {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>String str = "";<NEW_LINE>CompoundVariable var = (CompoundVariable) values[0];<NEW_LINE>String exp = var.execute();<NEW_LINE>// $NON-NLS-1$<NEW_LINE>String varName = "";<NEW_LINE>if (values.length > 1) {<NEW_LINE>varName = ((CompoundVariable) values[1]).execute().trim();<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>JMeterVariables vars = jmctx.getVariables();<NEW_LINE>try {<NEW_LINE>JexlContext jc = new MapContext();<NEW_LINE>// $NON-NLS-1$<NEW_LINE>jc.set("log", log);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>jc.set("ctx", jmctx);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>jc.set("vars", vars);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>jc.set("props", JMeterUtils.getJMeterProperties());<NEW_LINE>// Previously mis-spelt as theadName<NEW_LINE>// $NON-NLS-1$<NEW_LINE>jc.set("threadName", Thread.currentThread().getName());<NEW_LINE>// $NON-NLS-1$ (may be null)<NEW_LINE>jc.set("sampler", currentSampler);<NEW_LINE>// $NON-NLS-1$ (may be null)<NEW_LINE>jc.set("sampleResult", previousResult);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>jc.set("OUT", System.out);<NEW_LINE>// Now evaluate the script, getting the result<NEW_LINE>Script e = getJexlEngine().createScript(exp);<NEW_LINE>Object o = e.execute(jc);<NEW_LINE>if (o != null) {<NEW_LINE>str = o.toString();<NEW_LINE>}<NEW_LINE>if (vars != null && varName.length() > 0) {<NEW_LINE>// vars will be null on TestPlan<NEW_LINE>vars.put(varName, str);<NEW_LINE>}<NEW_LINE>} catch (Exception e) {<NEW_LINE>log.error("An error occurred while evaluating the expression \"" + exp + "\"\n", e);<NEW_LINE>}<NEW_LINE>return str;<NEW_LINE>}
JMeterContext jmctx = JMeterContextService.getContext();
1,795,538
protected String handlePost(RedirectAttributes redirectAttributes, HttpServletRequest request) {<NEW_LINE>Map<String, Object> map = new HashMap<String, Object>();<NEW_LINE>try {<NEW_LINE>if (ServletFileUpload.isMultipartContent(request)) {<NEW_LINE>FileItemFactory factory = new DiskFileItemFactory();<NEW_LINE>ServletFileUpload upload = new ServletFileUpload(factory);<NEW_LINE>List<?> <MASK><NEW_LINE>for (Object o : items) {<NEW_LINE>FileItem item = (FileItem) o;<NEW_LINE>if ("file".equals(item.getFieldName()) && !StringUtils.isBlank(item.getName())) {<NEW_LINE>if (item.getSize() > MAX_PLAYLIST_SIZE_MB * 1024L * 1024L) {<NEW_LINE>throw new Exception("The playlist file is too large. Max file size is " + MAX_PLAYLIST_SIZE_MB + " MB.");<NEW_LINE>}<NEW_LINE>String playlistName = FilenameUtils.getBaseName(item.getName());<NEW_LINE>String fileName = FilenameUtils.getName(item.getName());<NEW_LINE>String username = securityService.getCurrentUsername(request);<NEW_LINE>Playlist playlist = playlistService.importPlaylist(username, playlistName, fileName, null, item.getInputStream(), null);<NEW_LINE>map.put("playlist", playlist);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>} catch (Exception e) {<NEW_LINE>map.put("error", e.getMessage());<NEW_LINE>}<NEW_LINE>redirectAttributes.addFlashAttribute("model", map);<NEW_LINE>return "redirect:importPlaylist";<NEW_LINE>}
items = upload.parseRequest(request);
1,444,213
final ListAppImageConfigsResult executeListAppImageConfigs(ListAppImageConfigsRequest listAppImageConfigsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAppImageConfigsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListAppImageConfigsRequest> request = null;<NEW_LINE>Response<ListAppImageConfigsResult> response = null;<NEW_LINE>try {<NEW_LINE>awsRequestMetrics.startEvent(Field.RequestMarshallTime);<NEW_LINE>try {<NEW_LINE>request = new ListAppImageConfigsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listAppImageConfigsRequest));<NEW_LINE>// Binds the request metrics to the current request.<NEW_LINE>request.setAWSRequestMetrics(awsRequestMetrics);<NEW_LINE>request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);<NEW_LINE>request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());<NEW_LINE>request.addHandlerContext(<MASK><NEW_LINE>request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker");<NEW_LINE>request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListAppImageConfigs");<NEW_LINE>request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);<NEW_LINE>} finally {<NEW_LINE>awsRequestMetrics.endEvent(Field.RequestMarshallTime);<NEW_LINE>}<NEW_LINE>HttpResponseHandler<AmazonWebServiceResponse<ListAppImageConfigsResult>> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListAppImageConfigsResultJsonUnmarshaller());<NEW_LINE>response = invoke(request, responseHandler, executionContext);<NEW_LINE>return response.getAwsResponse();<NEW_LINE>} finally {<NEW_LINE>endClientExecution(awsRequestMetrics, request, response);<NEW_LINE>}<NEW_LINE>}
HandlerContextKey.SIGNING_REGION, getSigningRegion());
158,492
// jacobian indirect, merging groups<NEW_LINE>private static DoubleMatrix jacobianIndirect(DoubleMatrix res, DoubleMatrix pDmCurrentMatrix, int nbTrades, int totalParamsGroup, int totalParamsPrevious, ImmutableList<CurveParameterSize> orderPrevious, ImmutableMap<CurveName, JacobianCalibrationMatrix> jacobiansPrevious) {<NEW_LINE>if (totalParamsPrevious == 0) {<NEW_LINE>return DoubleMatrix.EMPTY;<NEW_LINE>}<NEW_LINE>double[][] nonDirect = new double[totalParamsGroup][totalParamsPrevious];<NEW_LINE>for (int i = 0; i < nbTrades; i++) {<NEW_LINE>System.arraycopy(res.rowArray(i), 0, nonDirect[i], 0, totalParamsPrevious);<NEW_LINE>}<NEW_LINE>DoubleMatrix pDpPreviousMatrix = (DoubleMatrix) MATRIX_ALGEBRA.scale(MATRIX_ALGEBRA.multiply(pDmCurrentMatrix, DoubleMatrix.copyOf(nonDirect)), -1d);<NEW_LINE>// all curves: order and size<NEW_LINE>int[] startIndexBefore = new int[orderPrevious.size()];<NEW_LINE>for (int i = 1; i < orderPrevious.size(); i++) {<NEW_LINE>startIndexBefore[i] = startIndexBefore[i - 1] + orderPrevious.get(i - 1).getParameterCount();<NEW_LINE>}<NEW_LINE>// transition Matrix: all curves from previous groups<NEW_LINE>double[][] transition = new double[totalParamsPrevious][totalParamsPrevious];<NEW_LINE>for (int i = 0; i < orderPrevious.size(); i++) {<NEW_LINE>int paramCountOuter = orderPrevious.<MASK><NEW_LINE>JacobianCalibrationMatrix thisInfo = jacobiansPrevious.get(orderPrevious.get(i).getName());<NEW_LINE>DoubleMatrix thisMatrix = thisInfo.getJacobianMatrix();<NEW_LINE>int startIndexInner = 0;<NEW_LINE>for (int j = 0; j < orderPrevious.size(); j++) {<NEW_LINE>int paramCountInner = orderPrevious.get(j).getParameterCount();<NEW_LINE>if (thisInfo.containsCurve(orderPrevious.get(j).getName())) {<NEW_LINE>// If not, the matrix stays with 0<NEW_LINE>for (int k = 0; k < paramCountOuter; k++) {<NEW_LINE>System.arraycopy(thisMatrix.rowArray(k), startIndexInner, transition[startIndexBefore[i] + k], startIndexBefore[j], paramCountInner);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>startIndexInner += paramCountInner;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>DoubleMatrix transitionMatrix = DoubleMatrix.copyOf(transition);<NEW_LINE>return (DoubleMatrix) MATRIX_ALGEBRA.multiply(pDpPreviousMatrix, transitionMatrix);<NEW_LINE>}
get(i).getParameterCount();
524,050
public static File[] find(@NonNull URL root, boolean javadoc) {<NEW_LINE>String k = root.toString();<NEW_LINE>Preferences n = node(javadoc);<NEW_LINE>String v = n.get(k, null);<NEW_LINE>if (v == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String[] split = StringUtils.split(v, "||");<NEW_LINE>List<File> toRet = new ArrayList<File>();<NEW_LINE>for (String vv : split) {<NEW_LINE>File <MASK><NEW_LINE>if (f.isFile()) {<NEW_LINE>toRet.add(f);<NEW_LINE>} else {<NEW_LINE>// what do we do when one of the possibly more files is gone?<NEW_LINE>// in most cases we are dealing with exactly one file, so keep the<NEW_LINE>// previous behaviour of removing it.<NEW_LINE>n.remove(k);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>return toRet.toArray(new File[0]);<NEW_LINE>}
f = FileUtilities.convertStringToFile(vv);
546,562
public Response addLineage(AddLineage addLineage, IsExistsPredicate isExistsPredicate) throws ModelDBException {<NEW_LINE>try (var session = modelDBHibernateUtil.getSessionFactory().openSession()) {<NEW_LINE>validate(addLineage.getInputList(), addLineage.getOutputList());<NEW_LINE>validateExistence(addLineage.getInputList(), addLineage.<MASK><NEW_LINE>session.beginTransaction();<NEW_LINE>for (LineageEntry input : addLineage.getInputList()) {<NEW_LINE>for (LineageEntry output : addLineage.getOutputList()) {<NEW_LINE>addLineage(session, input, output);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>session.getTransaction().commit();<NEW_LINE>} catch (Exception ex) {<NEW_LINE>if (ModelDBUtils.needToRetry(ex)) {<NEW_LINE>return addLineage(addLineage, isExistsPredicate);<NEW_LINE>} else {<NEW_LINE>throw ex;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>return AddLineage.Response.newBuilder().setStatus(true).build();<NEW_LINE>}
getOutputList(), isExistsPredicate, session);
974,553
public static void main(String[] args) throws IOException, ParseException {<NEW_LINE>Config conf = new Config();<NEW_LINE>// loads the default configuration file<NEW_LINE>Map<String, Object> defaultSCConfig = Utils.findAndReadConfigFile("crawler-default.yaml", false);<NEW_LINE>conf.putAll(ConfUtils.extractConfigElement(defaultSCConfig));<NEW_LINE>Options options = new Options();<NEW_LINE>options.addOption("c", true, "stormcrawler configuration file");<NEW_LINE>CommandLineParser parser = new DefaultParser();<NEW_LINE>CommandLine cmd = parser.parse(options, args);<NEW_LINE>if (cmd.hasOption("c")) {<NEW_LINE>String confFile = cmd.getOptionValue("c");<NEW_LINE>ConfUtils.loadConf(confFile, conf);<NEW_LINE>}<NEW_LINE>ParseFilters filters = ParseFilters.fromConf(conf);<NEW_LINE>System.out.println(filters.filters.length + " filters found");<NEW_LINE>ParseResult parse = new ParseResult();<NEW_LINE>String url = <MASK><NEW_LINE>byte[] content = IOUtils.toByteArray((new URL(url)).openStream());<NEW_LINE>Document doc = Jsoup.parse(new String(content), url);<NEW_LINE>filters.filter(url, content, DocumentFragmentBuilder.fromJsoup(doc), parse);<NEW_LINE>System.out.println(parse.toString());<NEW_LINE>System.exit(0);<NEW_LINE>}
cmd.getArgs()[0];
289,833
public CodegenExpression codegen(EnumForgeCodegenParams premade, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope) {<NEW_LINE>CodegenExpressionField typeMember = codegenClassScope.addFieldUnshared(true, ObjectArrayEventType.EPTYPE, cast(ObjectArrayEventType.EPTYPE, EventTypeUtility.resolveTypeCodegen(eventType, EPStatementInitServices.REF)));<NEW_LINE>EPTypeClass initType = JavaClassHelper.getBoxedType((EPTypeClass) initialization.getEvaluationType());<NEW_LINE>EPType innerType = innerExpression.getEvaluationType();<NEW_LINE>ExprForgeCodegenSymbol scope = new ExprForgeCodegenSymbol(false, null);<NEW_LINE>CodegenMethod methodNode = codegenMethodScope.makeChildWithScope(initType, EnumAggregateEvent.class, scope, codegenClassScope).addParam(EnumForgeCodegenNames.PARAMSCOLLBEAN);<NEW_LINE>CodegenBlock block = methodNode.getBlock();<NEW_LINE>block.declareVar(initType, "value", initialization.evaluateCodegen(initType, methodNode, scope, codegenClassScope)).ifCondition(exprDotMethod(EnumForgeCodegenNames.REF_ENUMCOLL, "isEmpty"))<MASK><NEW_LINE>block.declareVar(ObjectArrayEventBean.EPTYPE, "resultEvent", newInstance(ObjectArrayEventBean.EPTYPE, newArrayByLength(EPTypePremade.OBJECT.getEPType(), constant(numParameters - 1)), typeMember)).assignArrayElement(EnumForgeCodegenNames.REF_EPS, constant(getStreamNumLambda()), ref("resultEvent")).declareVar(EPTypePremade.OBJECTARRAY.getEPType(), "props", exprDotMethod(ref("resultEvent"), "getProperties"));<NEW_LINE>if (numParameters > 3) {<NEW_LINE>block.assignArrayElement("props", constant(2), exprDotMethod(EnumForgeCodegenNames.REF_ENUMCOLL, "size"));<NEW_LINE>}<NEW_LINE>if (numParameters > 2) {<NEW_LINE>block.declareVar(EPTypePremade.INTEGERPRIMITIVE.getEPType(), "count", constant(-1));<NEW_LINE>}<NEW_LINE>CodegenBlock forEach = block.forEach(EventBean.EPTYPE, "next", EnumForgeCodegenNames.REF_ENUMCOLL).assignArrayElement("props", constant(0), ref("value"));<NEW_LINE>if (numParameters > 2) {<NEW_LINE>forEach.incrementRef("count").assignArrayElement("props", constant(1), ref("count"));<NEW_LINE>}<NEW_LINE>forEach.assignArrayElement(EnumForgeCodegenNames.REF_EPS, constant(getStreamNumLambda() + 1), ref("next"));<NEW_LINE>if (innerType == EPTypeNull.INSTANCE) {<NEW_LINE>forEach.assignRef("value", constantNull());<NEW_LINE>} else {<NEW_LINE>forEach.assignRef("value", innerExpression.evaluateCodegen((EPTypeClass) innerType, methodNode, scope, codegenClassScope));<NEW_LINE>}<NEW_LINE>forEach.blockEnd();<NEW_LINE>block.methodReturn(ref("value"));<NEW_LINE>return localMethod(methodNode, premade.getEps(), premade.getEnumcoll(), premade.getIsNewData(), premade.getExprCtx());<NEW_LINE>}
.blockReturn(ref("value"));
1,763,841
protected void onLayout(boolean changed, int l, int t, int r, int b) {<NEW_LINE>final int count = getChildCount();<NEW_LINE>final int left = l + getPaddingLeft();<NEW_LINE>final int right = r - getPaddingRight();<NEW_LINE>int currentTop = t + getPaddingTop();<NEW_LINE>final int actionsTop = t + getPaddingTop();<NEW_LINE>int actionRight = r - getPaddingRight();<NEW_LINE>for (int i = 0; i < count; i++) {<NEW_LINE>final View child = getChildAt(i);<NEW_LINE>if (child.getVisibility() == View.GONE)<NEW_LINE>continue;<NEW_LINE>if (child.getTag(PROVIDER_TAG_ID) == null) {<NEW_LINE>child.layout(left, currentTop, right, currentTop + child.getMeasuredHeight());<NEW_LINE>currentTop += child.getMeasuredHeight();<NEW_LINE>} else {<NEW_LINE>// this is an action. It lives on the candidates-view<NEW_LINE>child.layout(actionRight - child.getMeasuredWidth(), actionsTop, actionRight, <MASK><NEW_LINE>actionRight -= child.getMeasuredWidth();<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}
actionsTop + child.getMeasuredHeight());
856,842
public void startGPXMonitoring(final Activity map, final boolean showTrackSelection) {<NEW_LINE>final ValueHolder<Integer> vs = new ValueHolder<>();<NEW_LINE>final ValueHolder<Boolean> <MASK><NEW_LINE>vs.value = settings.SAVE_GLOBAL_TRACK_INTERVAL.get();<NEW_LINE>choice.value = settings.SAVE_GLOBAL_TRACK_REMEMBER.get();<NEW_LINE>final Runnable runnable = () -> {<NEW_LINE>app.getSavingTrackHelper().startNewSegment();<NEW_LINE>settings.SAVE_GLOBAL_TRACK_INTERVAL.set(vs.value);<NEW_LINE>settings.SAVE_GLOBAL_TRACK_TO_GPX.set(true);<NEW_LINE>settings.SAVE_GLOBAL_TRACK_REMEMBER.set(choice.value);<NEW_LINE>app.startNavigationService(NavigationService.USED_BY_GPX);<NEW_LINE>};<NEW_LINE>if (choice.value || map == null) {<NEW_LINE>runnable.run();<NEW_LINE>} else if (map instanceof FragmentActivity) {<NEW_LINE>FragmentActivity activity = (FragmentActivity) map;<NEW_LINE>TripRecordingStartingBottomSheet.showTripRecordingDialog(activity.getSupportFragmentManager(), app);<NEW_LINE>}<NEW_LINE>}
choice = new ValueHolder<>();
1,148,778
public static void vertical(Kernel1D_S32 kernel, GrayU16 src, GrayI8 dst, int divisor, @Nullable GrowArray<DogArray_I32> workspaces) {<NEW_LINE>workspaces = BoofMiscOps.checkDeclare(workspaces, DogArray_I32::new);<NEW_LINE>// CONCURRENT_REMOVE_LINE<NEW_LINE>final DogArray_I32 work = workspaces.grow();<NEW_LINE>final short[] dataSrc = src.data;<NEW_LINE>final byte[] dataDst = dst.data;<NEW_LINE>final <MASK><NEW_LINE>final int offset = kernel.getOffset();<NEW_LINE>final int kernelWidth = kernel.getWidth();<NEW_LINE>final int halfDivisor = divisor / 2;<NEW_LINE>// WTF integer division is slower than converting to a float??<NEW_LINE>final double divisionHack = 1.0 / divisor;<NEW_LINE>final int imgWidth = dst.getWidth();<NEW_LINE>final int imgHeight = dst.getHeight();<NEW_LINE>final int yEnd = imgHeight - (kernelWidth - offset - 1);<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopBlocks(offset, yEnd, workspaces, (work, y0, y1)->{<NEW_LINE>final int y0 = offset, y1 = yEnd;<NEW_LINE>int[] totalRow = BoofMiscOps.checkDeclare(work, imgWidth, true);<NEW_LINE>for (int y = y0; y < y1; y++) {<NEW_LINE>for (int k = 0; k < kernelWidth; k++) {<NEW_LINE>final int kernelValue = dataKer[k];<NEW_LINE>int indexSrc = src.startIndex + (y - offset + k) * src.stride;<NEW_LINE>for (int i = 0; i < imgWidth; i++) {<NEW_LINE>totalRow[i] += ((dataSrc[indexSrc++] & 0xFFFF) * kernelValue);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>int indexDst = dst.startIndex + y * dst.stride;<NEW_LINE>for (int i = 0; i < imgWidth; i++) {<NEW_LINE>dataDst[indexDst++] = (byte) ((totalRow[i] + halfDivisor) * divisionHack);<NEW_LINE>}<NEW_LINE>Arrays.fill(totalRow, 0, imgWidth, 0);<NEW_LINE>}<NEW_LINE>// CONCURRENT_INLINE });<NEW_LINE>}
int[] dataKer = kernel.data;
582,169
protected void prepare() {<NEW_LINE>ProcessInfoParameter[] para = getParameter();<NEW_LINE>for (int i = 0; i < para.length; i++) {<NEW_LINE>log.fine<MASK><NEW_LINE>String name = para[i].getParameterName();<NEW_LINE>if (para[i].getParameter() == null)<NEW_LINE>;<NEW_LINE>else if (name.equals("C_BP_Group_ID"))<NEW_LINE>p_C_BP_Group_ID = para[i].getParameterAsInt();<NEW_LINE>else if (name.equals("C_BPartner_ID"))<NEW_LINE>p_C_BPartner_ID = para[i].getParameterAsInt();<NEW_LINE>else if (name.equals("C_AllocationHdr_ID"))<NEW_LINE>p_C_AllocationHdr_ID = para[i].getParameterAsInt();<NEW_LINE>else if (name.equals("DateAcct")) {<NEW_LINE>p_DateAcct_From = (Timestamp) para[i].getParameter();<NEW_LINE>p_DateAcct_To = (Timestamp) para[i].getParameter_To();<NEW_LINE>} else if (name.equals("AllAllocations"))<NEW_LINE>p_AllAllocations = "Y".equals(para[i].getParameter());<NEW_LINE>else<NEW_LINE>log.log(Level.SEVERE, "Unknown Parameter: " + name);<NEW_LINE>}<NEW_LINE>if (!p_AllAllocations && getTable_ID() == MAllocationHdr.Table_ID && getRecord_ID() > 0) {<NEW_LINE>p_C_AllocationHdr_ID = getRecord_ID();<NEW_LINE>}<NEW_LINE>}
("prepare - " + para[i]);
1,359,994
private ProviderAuthenticationResult createResult(HttpServletRequest req, HttpServletResponse res, OAuthResult oResult, OAuth20Provider provider) {<NEW_LINE>Subject subject = new Subject();<NEW_LINE>WSOAuth20Token token = WSOAuth20TokenHelper.createToken(req, res, oResult, provider.getID());<NEW_LINE>if (tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "OAuth Token is " + token);<NEW_LINE>}<NEW_LINE>String cacheKey = token.getCacheKey();<NEW_LINE>// include access token in Subject<NEW_LINE>if (provider.isIncludeTokenInSubject()) {<NEW_LINE>addToSubjectAsPrivateCredential(subject, token);<NEW_LINE>}<NEW_LINE>// custom propagation attributes<NEW_LINE>Hashtable<String, Object> customProperties = new Hashtable<String, Object>();<NEW_LINE>customProperties.put(AttributeNameConstants.WSCREDENTIAL_CACHE_KEY, cacheKey);<NEW_LINE>customProperties.put(com.ibm.ws.security.oauth20.util.UtilConstants.OAUTH_PROVIDER_NAME, provider.getID());<NEW_LINE>String user_name = token.getUser();<NEW_LINE>UserClaimsRetrieverService ucrService = ConfigUtils.getUserClaimsRetrieverService();<NEW_LINE>if (ucrService != null) {<NEW_LINE>UserClaims userClaims = ucrService.getUserClaims(user_name, DEFAULT_GROUP_IDENTIFIER, cacheKey);<NEW_LINE>if (userClaims != null) {<NEW_LINE>Map<String, Object> claimsMap = userClaims.asMap();<NEW_LINE>List<String> groups = (List<String>) claimsMap.get(DEFAULT_GROUP_IDENTIFIER);<NEW_LINE>if (groups != null && groups.size() > 0) {<NEW_LINE>customProperties.<MASK><NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>return new ProviderAuthenticationResult(AuthResult.SUCCESS, HttpServletResponse.SC_OK, user_name, subject, customProperties, null);<NEW_LINE>}
put(AttributeNameConstants.WSCREDENTIAL_GROUPS, groups);
564,630
final AttachVolumeResult executeAttachVolume(AttachVolumeRequest attachVolumeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(attachVolumeRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<AttachVolumeRequest> request = null;<NEW_LINE>Response<AttachVolumeResult> response = null;<NEW_LINE>try {<NEW_LINE>awsRequestMetrics.startEvent(Field.RequestMarshallTime);<NEW_LINE>try {<NEW_LINE>request = new AttachVolumeRequestMarshaller().marshall(super.beforeMarshalling(attachVolumeRequest));<NEW_LINE>// Binds the request metrics to the current request.<NEW_LINE>request.setAWSRequestMetrics(awsRequestMetrics);<NEW_LINE>request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);<NEW_LINE>request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SERVICE_ID, "EC2");<NEW_LINE>request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "AttachVolume");<NEW_LINE>request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);<NEW_LINE>} finally {<NEW_LINE>awsRequestMetrics.endEvent(Field.RequestMarshallTime);<NEW_LINE>}<NEW_LINE>StaxResponseHandler<AttachVolumeResult> responseHandler = new StaxResponseHandler<AttachVolumeResult>(new AttachVolumeResultStaxUnmarshaller());<NEW_LINE>response = invoke(request, responseHandler, executionContext);<NEW_LINE>return response.getAwsResponse();<NEW_LINE>} finally {<NEW_LINE>endClientExecution(awsRequestMetrics, request, response);<NEW_LINE>}<NEW_LINE>}
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,697,611
public long read(ByteBuffer[] dsts, int offset, int length) throws IOException {<NEW_LINE>readLock.lock();<NEW_LINE>try {<NEW_LINE>boolean blocking = isBlocking();<NEW_LINE>long n = 0;<NEW_LINE>try {<NEW_LINE>beginRead(blocking);<NEW_LINE>// check if input is shutdown<NEW_LINE>if (isInputClosed)<NEW_LINE>return IOStatus.EOF;<NEW_LINE>n = IO_UTIL_ACCESS.read(fd, dsts, offset, length, nd);<NEW_LINE>if (n == IOStatus.UNAVAILABLE && blocking) {<NEW_LINE>do {<NEW_LINE>RdmaNet.poll(fd, Net.POLLIN, -1);<NEW_LINE>n = IO_UTIL_ACCESS.read(fd, dsts, offset, length, nd);<NEW_LINE>} while (n == IOStatus.UNAVAILABLE && isOpen());<NEW_LINE>}<NEW_LINE>} finally {<NEW_LINE><MASK><NEW_LINE>if (n <= 0 && isInputClosed)<NEW_LINE>return IOStatus.EOF;<NEW_LINE>}<NEW_LINE>return IOStatus.normalize(n);<NEW_LINE>} finally {<NEW_LINE>readLock.unlock();<NEW_LINE>}<NEW_LINE>}
endRead(blocking, n > 0);
1,235,368
public MaryData process(MaryData input) {<NEW_LINE>Document document = input.getDocument();<NEW_LINE>NodeIterator tokenIterator = MaryDomUtils.createNodeIterator(document, MaryXML.TOKEN);<NEW_LINE>Element token;<NEW_LINE>while ((token = (Element) tokenIterator.nextNode()) != null) {<NEW_LINE>String text = token.getTextContent().trim();<NEW_LINE>String pos;<NEW_LINE>if (text.equals(","))<NEW_LINE>pos = "$,";<NEW_LINE>else if (text.matches("[.?!;:]"))<NEW_LINE>pos = "$.";<NEW_LINE>else if (text.matches("^[A-Z].*"))<NEW_LINE>pos = "NN";<NEW_LINE>else<NEW_LINE>pos = "UNKN";<NEW_LINE>token.setAttribute("pos", pos);<NEW_LINE>logger.info("PARTOFSPEECH: " + pos);<NEW_LINE>}<NEW_LINE>MaryData output = new MaryData(getOutputType(<MASK><NEW_LINE>output.setDocument(document);<NEW_LINE>return output;<NEW_LINE>}
), input.getLocale());
1,577,746
private TreePath addSubResults(DefaultMutableTreeNode currNode, SampleResult res, List<TreeNode> path, Object selectedObject, Set<Object> oldExpandedObjects, Set<TreePath> newExpandedPaths) {<NEW_LINE>SampleResult[] subResults = res.getSubResults();<NEW_LINE>int leafIndex = 0;<NEW_LINE>TreePath result = null;<NEW_LINE>for (SampleResult child : subResults) {<NEW_LINE>log.debug("updateGui1 : child sample result - {}", child);<NEW_LINE>DefaultMutableTreeNode leafNode = new SearchableTreeNode(child, treeModel);<NEW_LINE>treeModel.insertNodeInto(leafNode, currNode, leafIndex++);<NEW_LINE>List<TreeNode> newPath = new ArrayList<>(path);<NEW_LINE>newPath.add(leafNode);<NEW_LINE>result = checkExpandedOrSelected(newPath, child, selectedObject, oldExpandedObjects, newExpandedPaths, result);<NEW_LINE>addSubResults(leafNode, child, <MASK><NEW_LINE>// Add any assertion that failed as children of the sample node<NEW_LINE>AssertionResult[] assertionResults = child.getAssertionResults();<NEW_LINE>int assertionIndex = leafNode.getChildCount();<NEW_LINE>for (AssertionResult item : assertionResults) {<NEW_LINE>if (item.isFailure() || item.isError()) {<NEW_LINE>DefaultMutableTreeNode assertionNode = new SearchableTreeNode(item, treeModel);<NEW_LINE>treeModel.insertNodeInto(assertionNode, leafNode, assertionIndex++);<NEW_LINE>result = checkExpandedOrSelected(path, item, selectedObject, oldExpandedObjects, newExpandedPaths, result, assertionNode);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>return result;<NEW_LINE>}
newPath, selectedObject, oldExpandedObjects, newExpandedPaths);
755,945
public void updateFromFormalParameterAssignment(LocalVariableNode lhs, Node rhs, VariableElement paramElt) {<NEW_LINE>// Don't infer types for code that isn't presented as source.<NEW_LINE>if (!ElementUtils.isElementFromSourceCode(lhs.getElement())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Tree rhsTree = rhs.getTree();<NEW_LINE>if (rhsTree == null) {<NEW_LINE>// TODO: Handle variable-length list as parameter.<NEW_LINE>// An ArrayCreationNode with a null tree is created when the<NEW_LINE>// parameter is a variable-length list. We are ignoring it for now.<NEW_LINE>// See Issue 682: https://github.com/typetools/checker-framework/issues/682<NEW_LINE>if (showWpiFailedInferences) {<NEW_LINE>printFailedInferenceDebugMessage("Could not update from formal parameter " + "assignment, because an ArrayCreationNode with a null tree is created when " + "the parameter is a variable-length list.\nParameter: " + paramElt);<NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ExecutableElement methodElt = (ExecutableElement) paramElt.getEnclosingElement();<NEW_LINE>int i = methodElt.getParameters().indexOf(paramElt);<NEW_LINE>if (i == -1) {<NEW_LINE>// When paramElt is the parameter of a lambda contained in another<NEW_LINE>// method body, the enclosing element is the outer method body<NEW_LINE>// rather than the lambda itself (which has no element). WPI<NEW_LINE>// does not support inferring types for lambda parameters, so<NEW_LINE>// ignore it.<NEW_LINE>if (showWpiFailedInferences) {<NEW_LINE>printFailedInferenceDebugMessage("Could not update from formal " + "parameter assignment inside a lambda expression, because lambda parameters " + "cannot be annotated.\nParameter: " + paramElt);<NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AnnotatedTypeMirror paramATM = atypeFactory.getAnnotatedType(paramElt);<NEW_LINE>AnnotatedTypeMirror argATM = atypeFactory.getAnnotatedType(rhsTree);<NEW_LINE>atypeFactory.wpiAdjustForUpdateNonField(argATM);<NEW_LINE>T paramAnnotations = storage.getParameterAnnotations(methodElt, <MASK><NEW_LINE>String file = storage.getFileForElement(methodElt);<NEW_LINE>updateAnnotationSet(paramAnnotations, TypeUseLocation.PARAMETER, argATM, paramATM, file);<NEW_LINE>}
i, paramATM, paramElt, atypeFactory);
1,424,196
// https://stackoverflow.com/a/48448901<NEW_LINE>@Override<NEW_LINE>protected void configure(HttpSecurity http) throws Exception {<NEW_LINE>APIKeyAuthFilter filter = new APIKeyAuthFilter();<NEW_LINE>filter.setAuthenticationManager(authentication -> {<NEW_LINE>//<NEW_LINE>String apiKey = (String) authentication.getPrincipal();<NEW_LINE>// check if user type -><NEW_LINE>User user = userRepository.findByUsername(apiKey).orElseThrow(() -> new BadCredentialsException(API_KEY + apiKey + " don't exists"));<NEW_LINE>if (!user.isEnabled()) {<NEW_LINE>throw new DisabledException(API_KEY + apiKey + " is disabled");<NEW_LINE>}<NEW_LINE>if (User.Type.API_KEY != user.getType()) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (!user.isCurrentlyValid(ZonedDateTime.now(ClockProvider.clock()))) {<NEW_LINE>throw new DisabledException(API_KEY + apiKey + " is expired");<NEW_LINE>}<NEW_LINE>return new APITokenAuthentication(authentication.getPrincipal(), authentication.getCredentials(), authorityRepository.findRoles(apiKey).stream().map(SimpleGrantedAuthority::new).collect(Collectors.toList()));<NEW_LINE>});<NEW_LINE>http.requestMatcher(RequestTypeMatchers::isTokenAuthentication).sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and().csrf().disable().authorizeRequests().antMatchers(ADMIN_PUBLIC_API + "/**").hasRole(API_CLIENT).antMatchers(ADMIN_API + "/check-in/**").hasAnyRole(OPERATOR, SUPERVISOR).antMatchers(HttpMethod.GET, ADMIN_API + "/events").hasAnyRole(OPERATOR, SUPERVISOR, AuthenticationConstants.SPONSOR).antMatchers(HttpMethod.GET, ADMIN_API + "/user-type", ADMIN_API + "/user/details").hasAnyRole(OPERATOR, SUPERVISOR, AuthenticationConstants.SPONSOR).antMatchers(ADMIN_API + "/**").denyAll().antMatchers(HttpMethod.POST, "/api/attendees/sponsor-scan").hasRole(AuthenticationConstants.SPONSOR).antMatchers(HttpMethod.GET, "/api/attendees/*/ticket/*").hasAnyRole(OPERATOR, SUPERVISOR, API_CLIENT).antMatchers("/**").authenticated().and().addFilter(filter);<NEW_LINE>}
throw new WrongAccountTypeException("Wrong account type for username " + apiKey);
1,715,895
public void importFiles(FileObject[] fileObjects) {<NEW_LINE>MostRecentFiles mostRecentFiles = Lookup.getDefault().lookup(MostRecentFiles.class);<NEW_LINE>fileObjects = Arrays.copyOf(fileObjects, fileObjects.length);<NEW_LINE>// Extract files if they are zipped:<NEW_LINE>for (int i = 0; i < fileObjects.length; i++) {<NEW_LINE>fileObjects[i] = ImportUtils.getArchivedFile(fileObjects[i]);<NEW_LINE>if (FileUtil.isArchiveArtifact(fileObjects[i])) {<NEW_LINE>try {<NEW_LINE>// Copy the archived file so we never have problems converting it to a simple File during import:<NEW_LINE><MASK><NEW_LINE>fileObjects[i] = FileUtil.copyFile(fileObjects[i], FileUtil.toFileObject(tempDir), fileObjects[i].getName());<NEW_LINE>} catch (IOException ex) {<NEW_LINE>Exceptions.printStackTrace(ex);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>Reader[] readers = new Reader[fileObjects.length];<NEW_LINE>FileImporter[] importers = new FileImporter[fileObjects.length];<NEW_LINE>try {<NEW_LINE>for (int i = 0; i < fileObjects.length; i++) {<NEW_LINE>FileObject fileObject = fileObjects[i];<NEW_LINE>importers[i] = controller.getFileImporter(fileObject);<NEW_LINE>if (importers[i] == null) {<NEW_LINE>NotifyDescriptor.Message msg = new NotifyDescriptor.Message(NbBundle.getMessage(getClass(), "DesktopImportControllerUI.error_no_matching_file_importer"), NotifyDescriptor.WARNING_MESSAGE);<NEW_LINE>DialogDisplayer.getDefault().notify(msg);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>readers[i] = ImportUtils.getTextReader(fileObject);<NEW_LINE>// MRU<NEW_LINE>mostRecentFiles.addFile(fileObject.getPath());<NEW_LINE>}<NEW_LINE>importFiles(readers, importers, fileObjects);<NEW_LINE>} catch (IOException ex) {<NEW_LINE>throw new RuntimeException(ex);<NEW_LINE>}<NEW_LINE>}
File tempDir = TempDirUtils.createTempDirectory();
1,125,398
public void parse() {<NEW_LINE>if (isImplicitCollection()) {<NEW_LINE>field.setAccessible(true);<NEW_LINE>Object val = GoConfigClassLoader.classParser(e, field.getType(), configCache, new GoCipher(), registry, configReferenceElements).parseImplicitCollection();<NEW_LINE>setValue(val);<NEW_LINE>} else if (isSubtag(field)) {<NEW_LINE>field.setAccessible(true);<NEW_LINE>Object val = subtagParser(e, field, configCache, registry, configReferenceElements).parse();<NEW_LINE>setValue(val);<NEW_LINE>} else if (isAttribute(field)) {<NEW_LINE>field.setAccessible(true);<NEW_LINE>Object val = attributeParser(e, field).parse(defaultValue());<NEW_LINE>setValue(val);<NEW_LINE>} else if (isConfigValue()) {<NEW_LINE>field.setAccessible(true);<NEW_LINE>Object val = e.getText();<NEW_LINE>setValue(val);<NEW_LINE>} else if (isAnnotationPresent(field, ConfigReferenceElement.class)) {<NEW_LINE>field.setAccessible(true);<NEW_LINE>ConfigReferenceElement referenceField = <MASK><NEW_LINE>Attribute attribute = e.getAttribute(referenceField.referenceAttribute());<NEW_LINE>if (attribute == null) {<NEW_LINE>bomb(String.format("Expected attribute `%s` to be present for %s.", referenceField.referenceAttribute(), e.getName()));<NEW_LINE>}<NEW_LINE>String refId = attribute.getValue();<NEW_LINE>Object referredObject = configReferenceElements.get(referenceField.referenceCollection(), refId);<NEW_LINE>setValue(referredObject);<NEW_LINE>}<NEW_LINE>}
field.getAnnotation(ConfigReferenceElement.class);
627,765
// Delete Statement<NEW_LINE>@Override<NEW_LINE>public Operator visitDeleteStatement(IoTDBSqlParser.DeleteStatementContext ctx) {<NEW_LINE>DeleteDataOperator deleteDataOp <MASK><NEW_LINE>List<IoTDBSqlParser.PrefixPathContext> prefixPaths = ctx.prefixPath();<NEW_LINE>for (IoTDBSqlParser.PrefixPathContext prefixPath : prefixPaths) {<NEW_LINE>deleteDataOp.addPath(parsePrefixPath(prefixPath));<NEW_LINE>}<NEW_LINE>if (ctx.whereClause() != null) {<NEW_LINE>WhereComponent whereComponent = parseWhereClause(ctx.whereClause());<NEW_LINE>Pair<Long, Long> timeInterval = parseDeleteTimeInterval(whereComponent.getFilterOperator());<NEW_LINE>deleteDataOp.setStartTime(timeInterval.left);<NEW_LINE>deleteDataOp.setEndTime(timeInterval.right);<NEW_LINE>} else {<NEW_LINE>deleteDataOp.setStartTime(Long.MIN_VALUE);<NEW_LINE>deleteDataOp.setEndTime(Long.MAX_VALUE);<NEW_LINE>}<NEW_LINE>return deleteDataOp;<NEW_LINE>}
= new DeleteDataOperator(SQLConstant.TOK_DELETE);
301,781
private VName defineTypeParameters(TreeContext ownerContext, VName owner, List<JCTypeParameter> params, List<VName> wildcards, MarkedSource markedSource) {<NEW_LINE>if (params.isEmpty() && wildcards.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<VName> typeParams = new ArrayList<>();<NEW_LINE>for (JCTypeParameter tParam : params) {<NEW_LINE>TreeContext ctx = ownerContext.down(tParam);<NEW_LINE>Symbol sym = tParam.type.asElement();<NEW_LINE>VName node = signatureGenerator.getSignature(sym).map(sig -> entrySets.getNode(signatureGenerator, sym, sig, null, null)).orElse(null);<NEW_LINE>if (node == null) {<NEW_LINE>logger.atWarning().log("Could not get type parameter VName: %s", tParam);<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>emitDefinesBindingAnchorEdge(ctx, tParam.name, tParam.getStartPosition(), node);<NEW_LINE>visitAnnotations(node, tParam.getAnnotations(), ctx);<NEW_LINE>typeParams.add(node);<NEW_LINE>List<JCExpression> bounds = tParam.getBounds();<NEW_LINE>List<JavaNode> boundNodes = bounds.stream().map(expr -> scan(expr, ctx)).collect(Collectors.toList());<NEW_LINE>if (boundNodes.isEmpty()) {<NEW_LINE>boundNodes.add(getJavaLangObjectNode());<NEW_LINE>}<NEW_LINE>emitOrdinalEdges(node, EdgeKind.BOUNDED_UPPER, boundNodes);<NEW_LINE>}<NEW_LINE>// Add all of the wildcards that roll up to this node. For example:<NEW_LINE>// public static <T> void foo(Ty<?> a, Obj<?, ?> b, Obj<Ty<?>, Ty<?>> c) should declare an abs<NEW_LINE>// node that has 1 named absvar (T) and 5 unnamed absvars.<NEW_LINE>typeParams.addAll(wildcards);<NEW_LINE>if (!config.getGenericsStructure().equals(JavaIndexerConfig.GenericsStructure.TPARAM)) {<NEW_LINE>return entrySets.newAbstractAndEmit(owner, typeParams, markedSource).getVName();<NEW_LINE>}<NEW_LINE>entrySets.emitOrdinalEdges(<MASK><NEW_LINE>return owner;<NEW_LINE>}
owner, EdgeKind.TPARAM, typeParams);
305,132
public void drawSolidCircle(Vec2 center, float radius, Vec2 axis, Color3f color) {<NEW_LINE>GraphicsContext g = getGraphics();<NEW_LINE>Color f = cpool.getColor(color.x, color.y, color.z, .4f);<NEW_LINE>Color s = cpool.getColor(color.x, color.y, color.z, 1f);<NEW_LINE>saveState(g);<NEW_LINE>double scaling = transformGraphics(g, center) * radius;<NEW_LINE>g.setLineWidth(stroke / scaling);<NEW_LINE>g.scale(radius, radius);<NEW_LINE>g.setFill(f);<NEW_LINE>g.fillOval(circle.getMinX(), circle.getMinX(), circle.getWidth(), circle.getHeight());<NEW_LINE>g.setStroke(s);<NEW_LINE>g.strokeOval(circle.getMinX(), circle.getMinX(), circle.getWidth(<MASK><NEW_LINE>if (axis != null) {<NEW_LINE>g.rotate(MathUtils.atan2(axis.y, axis.x));<NEW_LINE>g.strokeLine(0, 0, 1, 0);<NEW_LINE>}<NEW_LINE>restoreState(g);<NEW_LINE>}
), circle.getHeight());
198,579
public static void validateRelationship(Relationship relationship) throws SubjectAreaFVTCheckedException {<NEW_LINE>if (relationship == null) {<NEW_LINE>// error<NEW_LINE>throw new SubjectAreaFVTCheckedException("ERROR: Expected relationship to exist, ");<NEW_LINE>}<NEW_LINE>if (relationship.getName() == null) {<NEW_LINE>// error<NEW_LINE>throw new SubjectAreaFVTCheckedException("ERROR: Expected relationship to have a name, ");<NEW_LINE>}<NEW_LINE>// Unknown<NEW_LINE>if (relationship.getName().equals("Unknown")) {<NEW_LINE>// error<NEW_LINE>throw new SubjectAreaFVTCheckedException("ERROR: Expected relationship to have a known name, ");<NEW_LINE>}<NEW_LINE>if (relationship.getSystemAttributes() == null) {<NEW_LINE>// error<NEW_LINE>throw new SubjectAreaFVTCheckedException("ERROR: Expected " + relationship.getName() + "'s system attributes to exist, ");<NEW_LINE>}<NEW_LINE>if (relationship.getSystemAttributes().getGUID() == null) {<NEW_LINE>// error<NEW_LINE>throw new SubjectAreaFVTCheckedException("ERROR: Expected " + relationship.getName() + "'s userId to exist, ");<NEW_LINE>}<NEW_LINE>if (relationship.isReadOnly()) {<NEW_LINE>// error<NEW_LINE>throw new SubjectAreaFVTCheckedException("ERROR: Expected " + relationship.getName() + " not to be readonly");<NEW_LINE>}<NEW_LINE>if (relationship.getEnd1() == null) {<NEW_LINE>// error<NEW_LINE>throw new SubjectAreaFVTCheckedException("ERROR: Expected " + relationship.getName() + " end1 to have a value");<NEW_LINE>}<NEW_LINE>if (relationship.getEnd1().getNodeQualifiedName() == null) {<NEW_LINE>// error<NEW_LINE>throw new SubjectAreaFVTCheckedException("ERROR: Expected " + relationship.getName() + " end1 qualified name to have a value");<NEW_LINE>}<NEW_LINE>if (relationship.getEnd1().getNodeGuid() == null) {<NEW_LINE>// error<NEW_LINE>throw new SubjectAreaFVTCheckedException("ERROR: Expected " + relationship.getName() + " end1 guid to have a value");<NEW_LINE>}<NEW_LINE>if (relationship.getEnd2() == null) {<NEW_LINE>// error<NEW_LINE>throw new SubjectAreaFVTCheckedException("ERROR: Expected " + relationship.getName() + " end2 to have a value");<NEW_LINE>}<NEW_LINE>if (relationship.getEnd2().getNodeQualifiedName() == null) {<NEW_LINE>// error<NEW_LINE>throw new SubjectAreaFVTCheckedException("ERROR: Expected " + relationship.getName() + " end2 qualified name to have a value");<NEW_LINE>}<NEW_LINE>if (relationship.getEnd2().getNodeGuid() == null) {<NEW_LINE>// error<NEW_LINE>throw new SubjectAreaFVTCheckedException("ERROR: Expected " + <MASK><NEW_LINE>}<NEW_LINE>}
relationship.getName() + " end2 guid to have a value");
422,637
private void captureJavadoc(TypeElement elem) {<NEW_LINE>List<String> imports = new ArrayList<>();<NEW_LINE>try {<NEW_LINE>List<? extends ImportTree> importLines = Trees.instance(env).getPath(elem).getCompilationUnit().getImports();<NEW_LINE>for (ImportTree importLine : importLines) {<NEW_LINE>imports.add(importLine.getQualifiedIdentifier().toString());<NEW_LINE>}<NEW_LINE>} catch (IllegalArgumentException e) {<NEW_LINE>// Trees relies on javac APIs and is not available in all annotation processing<NEW_LINE>// implementations<NEW_LINE>}<NEW_LINE>List<TypeElement> enclosedTypes = ElementFilter.typesIn(elem.getEnclosedElements());<NEW_LINE>for (TypeElement enclosedType : enclosedTypes) {<NEW_LINE>imports.add(enclosedType.getQualifiedName().toString());<NEW_LINE>}<NEW_LINE>Elements elementUtils = env.getElementUtils();<NEW_LINE>modelBuilder.documentType(elem, elementUtils.getDocComment(elem), imports);<NEW_LINE>for (Element memberElement : ElementFilter.methodsIn(elem.getEnclosedElements())) {<NEW_LINE>try {<NEW_LINE>ExecutableElement methodElement = (ExecutableElement) memberElement;<NEW_LINE>Implementation implementation = memberElement.getAnnotation(Implementation.class);<NEW_LINE>DocumentedMethod documentedMethod = new DocumentedMethod(memberElement.toString());<NEW_LINE>for (Modifier modifier : memberElement.getModifiers()) {<NEW_LINE>documentedMethod.modifiers.add(modifier.toString());<NEW_LINE>}<NEW_LINE>documentedMethod.isImplementation = implementation != null;<NEW_LINE>if (implementation != null) {<NEW_LINE>documentedMethod.minSdk = sdkOrNull(implementation.minSdk());<NEW_LINE>documentedMethod.maxSdk = sdkOrNull(implementation.maxSdk());<NEW_LINE>}<NEW_LINE>for (VariableElement variableElement : methodElement.getParameters()) {<NEW_LINE>documentedMethod.params.add(variableElement.toString());<NEW_LINE>}<NEW_LINE>documentedMethod.returnType = methodElement.getReturnType().toString();<NEW_LINE>for (TypeMirror typeMirror : methodElement.getThrownTypes()) {<NEW_LINE>documentedMethod.exceptions.add(typeMirror.toString());<NEW_LINE>}<NEW_LINE>String <MASK><NEW_LINE>if (docMd != null) {<NEW_LINE>documentedMethod.setDocumentation(docMd);<NEW_LINE>}<NEW_LINE>modelBuilder.documentMethod(elem, documentedMethod);<NEW_LINE>} catch (Exception e) {<NEW_LINE>throw new RuntimeException("failed to capture javadoc for " + elem + "." + memberElement, e);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}
docMd = elementUtils.getDocComment(methodElement);
513,367
public static QueryAliyunCorpNumberResponse unmarshall(QueryAliyunCorpNumberResponse queryAliyunCorpNumberResponse, UnmarshallerContext context) {<NEW_LINE>queryAliyunCorpNumberResponse.setRequestId(context.stringValue("QueryAliyunCorpNumberResponse.RequestId"));<NEW_LINE>queryAliyunCorpNumberResponse.setSuccess(context.booleanValue("QueryAliyunCorpNumberResponse.Success"));<NEW_LINE>queryAliyunCorpNumberResponse.setCode(context.stringValue("QueryAliyunCorpNumberResponse.Code"));<NEW_LINE>queryAliyunCorpNumberResponse.setMessage(context.stringValue("QueryAliyunCorpNumberResponse.Message"));<NEW_LINE>queryAliyunCorpNumberResponse.setHttpStatusCode(context.integerValue("QueryAliyunCorpNumberResponse.HttpStatusCode"));<NEW_LINE>List<Number> numbers = new ArrayList<Number>();<NEW_LINE>for (int i = 0; i < context.lengthValue("QueryAliyunCorpNumberResponse.Numbers.Length"); i++) {<NEW_LINE>Number number = new Number();<NEW_LINE>number.setTaobaoUid(context.longValue("QueryAliyunCorpNumberResponse.Numbers[" + i + "].taobaoUid"));<NEW_LINE>number.setRamId(context.longValue<MASK><NEW_LINE>number.setRealNameInsId(context.longValue("QueryAliyunCorpNumberResponse.Numbers[" + i + "].RealNameInsId"));<NEW_LINE>number.setNumber(context.stringValue("QueryAliyunCorpNumberResponse.Numbers[" + i + "].Number"));<NEW_LINE>number.setRegionNameProvince(context.stringValue("QueryAliyunCorpNumberResponse.Numbers[" + i + "].RegionNameProvince"));<NEW_LINE>number.setRegionNameCity(context.stringValue("QueryAliyunCorpNumberResponse.Numbers[" + i + "].RegionNameCity"));<NEW_LINE>number.setCorpName(context.stringValue("QueryAliyunCorpNumberResponse.Numbers[" + i + "].CorpName"));<NEW_LINE>number.setMonthlyPrice(context.stringValue("QueryAliyunCorpNumberResponse.Numbers[" + i + "].MonthlyPrice"));<NEW_LINE>number.setSpecName(context.stringValue("QueryAliyunCorpNumberResponse.Numbers[" + i + "].SpecName"));<NEW_LINE>number.setCommodityInstanceId(context.stringValue("QueryAliyunCorpNumberResponse.Numbers[" + i + "].CommodityInstanceId"));<NEW_LINE>number.setNumberCommodityStatus(context.integerValue("QueryAliyunCorpNumberResponse.Numbers[" + i + "].NumberCommodityStatus"));<NEW_LINE>number.setGmtCreate(context.stringValue("QueryAliyunCorpNumberResponse.Numbers[" + i + "].GmtCreate"));<NEW_LINE>PrivacyNumber privacyNumber = new PrivacyNumber();<NEW_LINE>privacyNumber.setPoolId(context.stringValue("QueryAliyunCorpNumberResponse.Numbers[" + i + "].PrivacyNumber.PoolId"));<NEW_LINE>privacyNumber.setType(context.stringValue("QueryAliyunCorpNumberResponse.Numbers[" + i + "].PrivacyNumber.Type"));<NEW_LINE>privacyNumber.setTelX(context.stringValue("QueryAliyunCorpNumberResponse.Numbers[" + i + "].PrivacyNumber.TelX"));<NEW_LINE>privacyNumber.setPoolName(context.stringValue("QueryAliyunCorpNumberResponse.Numbers[" + i + "].PrivacyNumber.PoolName"));<NEW_LINE>privacyNumber.setExtra(context.stringValue("QueryAliyunCorpNumberResponse.Numbers[" + i + "].PrivacyNumber.Extra"));<NEW_LINE>privacyNumber.setBizId(context.stringValue("QueryAliyunCorpNumberResponse.Numbers[" + i + "].PrivacyNumber.BizId"));<NEW_LINE>privacyNumber.setSubId(context.stringValue("QueryAliyunCorpNumberResponse.Numbers[" + i + "].PrivacyNumber.SubId"));<NEW_LINE>privacyNumber.setProviderId(context.stringValue("QueryAliyunCorpNumberResponse.Numbers[" + i + "].PrivacyNumber.ProviderId"));<NEW_LINE>privacyNumber.setRegionNameCity(context.stringValue("QueryAliyunCorpNumberResponse.Numbers[" + i + "].PrivacyNumber.RegionNameCity"));<NEW_LINE>number.setPrivacyNumber(privacyNumber);<NEW_LINE>numbers.add(number);<NEW_LINE>}<NEW_LINE>queryAliyunCorpNumberResponse.setNumbers(numbers);<NEW_LINE>return queryAliyunCorpNumberResponse;<NEW_LINE>}
("QueryAliyunCorpNumberResponse.Numbers[" + i + "].RamId"));
1,210,566
private Menu createMenu() {<NEW_LINE>if (!isMenuEnabled()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final Menu menu = new Menu(shell, SWT.POP_UP);<NEW_LINE>cTable.addListener(SWT.MenuDetect, new Listener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void handleEvent(Event event) {<NEW_LINE>Composite cHeaderArea = header == null ? null : header.getHeaderArea();<NEW_LINE>if (event.widget == cHeaderArea) {<NEW_LINE><MASK><NEW_LINE>menu.setData(MENUKEY_IS_HEADER, true);<NEW_LINE>} else {<NEW_LINE>boolean noRow;<NEW_LINE>if (event.detail == SWT.MENU_KEYBOARD) {<NEW_LINE>noRow = getFocusedRow() == null;<NEW_LINE>} else {<NEW_LINE>TableRowCore row = getTableRowWithCursor();<NEW_LINE>noRow = row == null;<NEW_LINE>// If shell is not active, right clicking on a row will<NEW_LINE>// result in a MenuDetect, but not a MouseDown or MouseUp<NEW_LINE>if (!isSelected(row)) {<NEW_LINE>setSelectedRows(new TableRowCore[] { row });<NEW_LINE>}<NEW_LINE>}<NEW_LINE>menu.setData(MENUKEY_IN_BLANK_AREA, noRow);<NEW_LINE>menu.setData(MENUKEY_IS_HEADER, false);<NEW_LINE>}<NEW_LINE>Point pt = cHeaderArea.toControl(event.x, event.y);<NEW_LINE>menu.setData(MENUKEY_COLUMN, getTableColumnByOffset(pt.x));<NEW_LINE>}<NEW_LINE>});<NEW_LINE>if (header != null) {<NEW_LINE>header.createMenu(menu);<NEW_LINE>}<NEW_LINE>MenuBuildUtils.addMaintenanceListenerForMenu(menu, new MenuBuildUtils.MenuBuilder() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void buildMenu(Menu menu, MenuEvent menuEvent) {<NEW_LINE>Object oIsHeader = menu.getData(MENUKEY_IS_HEADER);<NEW_LINE>boolean isHeader = (oIsHeader instanceof Boolean) ? ((Boolean) oIsHeader).booleanValue() : false;<NEW_LINE>Object oInBlankArea = menu.getData(MENUKEY_IN_BLANK_AREA);<NEW_LINE>boolean inBlankArea = (oInBlankArea instanceof Boolean) ? ((Boolean) oInBlankArea).booleanValue() : false;<NEW_LINE>TableColumnCore column = (TableColumnCore) menu.getData(MENUKEY_COLUMN);<NEW_LINE>if (isHeader) {<NEW_LINE>tvSWTCommon.fillColumnMenu(menu, column, false);<NEW_LINE>} else if (inBlankArea) {<NEW_LINE>tvSWTCommon.fillColumnMenu(menu, column, true);<NEW_LINE>} else {<NEW_LINE>tvSWTCommon.fillMenu(menu, column);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>});<NEW_LINE>return menu;<NEW_LINE>}
menu.setData(MENUKEY_IN_BLANK_AREA, false);
1,686,912
public void aroundProcess(final Request request, final Response response, final InterceptorChain chain) throws RpcException {<NEW_LINE>final HmilyTransactionContext context = HmilyContextHolder.get();<NEW_LINE>if (Objects.isNull(context)) {<NEW_LINE><MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Method method = request.getRpcMethodInfo().getMethod();<NEW_LINE>try {<NEW_LINE>Hmily hmily = method.getAnnotation(Hmily.class);<NEW_LINE>if (Objects.isNull(hmily)) {<NEW_LINE>chain.intercept(request, response);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>} catch (Exception ex) {<NEW_LINE>LogUtil.error(LOGGER, "hmily find method error {} ", ex::getMessage);<NEW_LINE>chain.intercept(request, response);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Long participantId = context.getParticipantId();<NEW_LINE>HmilyParticipant hmilyParticipant = buildParticipant(context, request);<NEW_LINE>Optional.ofNullable(hmilyParticipant).ifPresent(participant -> context.setParticipantId(participant.getParticipantId()));<NEW_LINE>if (context.getRole() == HmilyRoleEnum.PARTICIPANT.getCode()) {<NEW_LINE>context.setParticipantRefId(participantId);<NEW_LINE>}<NEW_LINE>RpcMediator.getInstance().transmit(RpcContext.getContext()::setRequestKvAttachment, context);<NEW_LINE>if (request.getKvAttachment() == null) {<NEW_LINE>request.setKvAttachment(RpcContext.getContext().getRequestKvAttachment());<NEW_LINE>} else {<NEW_LINE>request.getKvAttachment().putAll(RpcContext.getContext().getRequestKvAttachment());<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>chain.intercept(request, response);<NEW_LINE>if (context.getRole() == HmilyRoleEnum.PARTICIPANT.getCode()) {<NEW_LINE>HmilyTransactionHolder.getInstance().registerParticipantByNested(participantId, hmilyParticipant);<NEW_LINE>} else {<NEW_LINE>HmilyTransactionHolder.getInstance().registerStarterParticipant(hmilyParticipant);<NEW_LINE>}<NEW_LINE>} catch (Exception e) {<NEW_LINE>throw new HmilyRuntimeException("rpc invoke exception{}", e);<NEW_LINE>}<NEW_LINE>}
chain.intercept(request, response);