idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
553,532
private AttributeName storeAttribute(final char[] text, final int offset, final int len) {<NEW_LINE>int index = binarySearch(this.templateMode.isCaseSensitive(), this.repositoryNames, text, offset, len);<NEW_LINE>if (index >= 0) {<NEW_LINE>// It was already added while we were waiting for the lock!<NEW_LINE>return <MASK><NEW_LINE>}<NEW_LINE>final AttributeName name;<NEW_LINE>if (this.templateMode == TemplateMode.HTML) {<NEW_LINE>name = buildHTMLAttributeName(text, offset, len);<NEW_LINE>} else if (this.templateMode == TemplateMode.XML) {<NEW_LINE>name = buildXMLAttributeName(text, offset, len);<NEW_LINE>} else {<NEW_LINE>// this.templateMode.isText()<NEW_LINE>name = buildTextAttributeName(text, offset, len);<NEW_LINE>}<NEW_LINE>final String[] completeAttributeNames = name.completeAttributeNames;<NEW_LINE>for (final String completeAttributeName : completeAttributeNames) {<NEW_LINE>index = binarySearch(this.templateMode.isCaseSensitive(), this.repositoryNames, completeAttributeName);<NEW_LINE>// binary Search returned (-(insertion point) - 1)<NEW_LINE>this.repositoryNames.add(((index + 1) * -1), completeAttributeName);<NEW_LINE>this.repository.add(((index + 1) * -1), name);<NEW_LINE>}<NEW_LINE>return name;<NEW_LINE>}
this.repository.get(index);
498,129
private void addDirtyData(DatabaseVersion newDatabaseVersion) {<NEW_LINE>Iterator<DatabaseVersion> dirtyDatabaseVersions = localDatabase.getDirtyDatabaseVersions();<NEW_LINE>if (!dirtyDatabaseVersions.hasNext()) {<NEW_LINE>logger.<MASK><NEW_LINE>} else {<NEW_LINE>logger.log(Level.INFO, "Adding DIRTY data to new database version: ");<NEW_LINE>while (dirtyDatabaseVersions.hasNext()) {<NEW_LINE>DatabaseVersion dirtyDatabaseVersion = dirtyDatabaseVersions.next();<NEW_LINE>logger.log(Level.INFO, "- Adding chunks/multichunks/filecontents from database version " + dirtyDatabaseVersion.getHeader());<NEW_LINE>for (ChunkEntry chunkEntry : dirtyDatabaseVersion.getChunks()) {<NEW_LINE>newDatabaseVersion.addChunk(chunkEntry);<NEW_LINE>}<NEW_LINE>for (MultiChunkEntry multiChunkEntry : dirtyDatabaseVersion.getMultiChunks()) {<NEW_LINE>newDatabaseVersion.addMultiChunk(multiChunkEntry);<NEW_LINE>}<NEW_LINE>for (FileContent fileContent : dirtyDatabaseVersion.getFileContents()) {<NEW_LINE>newDatabaseVersion.addFileContent(fileContent);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}
log(Level.INFO, "No DIRTY data found in database (no dirty databases); Nothing to do here.");
1,789,483
// API level 31 requires building a NetworkRequest, which in turn requires an asynchronous callback.<NEW_LINE>// Using the deprecated API instead to keep things simple.<NEW_LINE>// https://developer.android.com/reference/android/net/ConnectivityManager#getAllNetworks()<NEW_LINE>@SuppressWarnings("deprecation")<NEW_LINE>public static boolean hasVPNRunning(Context context) {<NEW_LINE>ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);<NEW_LINE>if (cm != null) {<NEW_LINE>Network[] networks = cm.getAllNetworks();<NEW_LINE>for (Network net : networks) {<NEW_LINE>NetworkCapabilities cap = cm.getNetworkCapabilities(net);<NEW_LINE>if ((cap != null) && cap.hasTransport(NetworkCapabilities.TRANSPORT_VPN)) {<NEW_LINE>Log.d("hasVPNRunning", <MASK><NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>return false;<NEW_LINE>}
"detected VPN connection: " + net.toString());
1,447,191
public void run() throws Failure {<NEW_LINE>IGitblit gitblit = getContext().getGitblit();<NEW_LINE>try {<NEW_LINE>String ulc = urlOrId.toLowerCase();<NEW_LINE>if (ulc.startsWith("http://") || ulc.startsWith("https://")) {<NEW_LINE>if (gitblit.installPlugin(urlOrId, !disableChecksum)) {<NEW_LINE>stdout.println(String.format("Installed %s", urlOrId));<NEW_LINE>} else {<NEW_LINE>throw new UnloggedFailure(1, String.format("Failed to install %s", urlOrId));<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>PluginRelease pr = gitblit.lookupRelease(urlOrId, version);<NEW_LINE>if (pr == null) {<NEW_LINE>throw new UnloggedFailure(1, String.format("Plugin \"%s\" is not in the registry!", urlOrId));<NEW_LINE>}<NEW_LINE>// enforce minimum system requirement<NEW_LINE>if (!StringUtils.isEmpty(pr.requires)) {<NEW_LINE>Version requires = Version.createVersion(pr.requires);<NEW_LINE><MASK><NEW_LINE>boolean isValid = system.isZero() || system.atLeast(requires);<NEW_LINE>if (!isValid) {<NEW_LINE>String msg = String.format("Plugin \"%s:%s\" requires Gitblit %s", urlOrId, pr.version, pr.requires);<NEW_LINE>throw new UnloggedFailure(1, msg);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (gitblit.installPlugin(pr.url, !disableChecksum)) {<NEW_LINE>stdout.println(String.format("Installed %s", urlOrId));<NEW_LINE>} else {<NEW_LINE>throw new UnloggedFailure(1, String.format("Failed to install %s", urlOrId));<NEW_LINE>}<NEW_LINE>}<NEW_LINE>} catch (IOException e) {<NEW_LINE>log.error("Failed to install " + urlOrId, e);<NEW_LINE>throw new UnloggedFailure(1, String.format("Failed to install %s", urlOrId), e);<NEW_LINE>}<NEW_LINE>}
Version system = gitblit.getSystemVersion();
1,119,705
private static List<String> flattenProperties(final Object target, final Class<?> clazz, final ImmutableSet<String> excludedProperties) {<NEW_LINE>assert clazz != null;<NEW_LINE>if (target == null) {<NEW_LINE>return emptyList();<NEW_LINE>}<NEW_LINE>assert clazz.isAssignableFrom(target.getClass());<NEW_LINE>try {<NEW_LINE>final BeanInfo beanInfo = getBeanInfo(clazz);<NEW_LINE>final PropertyDescriptor[] descriptors = beanInfo.getPropertyDescriptors();<NEW_LINE>final List<String> serializedProperties = new ArrayList<String>();<NEW_LINE>for (final PropertyDescriptor descriptor : descriptors) {<NEW_LINE>if (excludedProperties.contains(descriptor.getName())) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>serializedProperties.add(descriptor.getName());<NEW_LINE>final Object value = descriptor.getReadMethod().invoke(target);<NEW_LINE>serializedProperties.add(value != null ? value.toString() : "null");<NEW_LINE>}<NEW_LINE>return unmodifiableList(serializedProperties);<NEW_LINE>} catch (IntrospectionException e) {<NEW_LINE>s_logger.warn("Ignored IntrospectionException when serializing class " + target.getClass().getCanonicalName(), e);<NEW_LINE>} catch (IllegalArgumentException e) {<NEW_LINE>s_logger.warn("Ignored IllegalArgumentException when serializing class " + target.getClass().getCanonicalName(), e);<NEW_LINE>} catch (IllegalAccessException e) {<NEW_LINE>s_logger.warn("Ignored IllegalAccessException when serializing class " + target.getClass(<MASK><NEW_LINE>} catch (InvocationTargetException e) {<NEW_LINE>s_logger.warn("Ignored InvocationTargetException when serializing class " + target.getClass().getCanonicalName(), e);<NEW_LINE>}<NEW_LINE>return emptyList();<NEW_LINE>}
).getCanonicalName(), e);
1,449,545
/* private-testing */<NEW_LINE>static boolean safeForPrefixLocalname(String str) {<NEW_LINE>// PN_LOCAL ::= (PN_CHARS_U | ':' | [0-9] | PLX) ((PN_CHARS | '.' | ':' | PLX)* (PN_CHARS | ':' | PLX))?<NEW_LINE>// This code does not consider PLX (which is more than one character).<NEW_LINE>int N = str.length();<NEW_LINE>if (N == 0)<NEW_LINE>return true;<NEW_LINE>int idx = 0;<NEW_LINE><MASK><NEW_LINE>if (idx == -1)<NEW_LINE>return false;<NEW_LINE>idx = skipAny_PN_CHARS_or_DOT_or_COLON(str, idx, N - 1);<NEW_LINE>if (idx == -1)<NEW_LINE>return false;<NEW_LINE>// Final char<NEW_LINE>idx = skip1_PN_CHARS_or_COLON(str, idx);<NEW_LINE>if (idx == -1)<NEW_LINE>return false;<NEW_LINE>// We got to the end.<NEW_LINE>return (idx == N);<NEW_LINE>}
idx = skip1_PN_CHARS_U_or_digit_or_COLON(str, idx);
156,985
private void add(StreamEvent streamEvent) {<NEW_LINE>StreamEvent existingValue = null;<NEW_LINE>if (primaryKeyData != null) {<NEW_LINE>Object primaryKey = constructPrimaryKey(streamEvent, primaryKeyReferenceHolders);<NEW_LINE>existingValue = primaryKeyData.putIfAbsent(primaryKey, streamEvent);<NEW_LINE>if (existingValue != null) {<NEW_LINE>Exception e = new SiddhiAppRuntimeException("Siddhi App '" + siddhiAppName + "' table '" + tableName + "' dropping event : " + streamEvent + ", as there is already an event stored " + "with primary key '" + primaryKey + "'");<NEW_LINE>if (siddhiAppContext.getRuntimeExceptionListener() != null) {<NEW_LINE>siddhiAppContext.getRuntimeExceptionListener().exceptionThrown(e);<NEW_LINE>}<NEW_LINE>log.error(e.getMessage(), e);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (indexData != null) {<NEW_LINE>for (Map.Entry<String, Integer> indexEntry : indexMetaData.entrySet()) {<NEW_LINE>TreeMap<Object, Set<StreamEvent>> indexMap = indexData.get(indexEntry.getKey());<NEW_LINE>Object key = streamEvent.getOutputData()[indexEntry.getValue()];<NEW_LINE>Set<StreamEvent> values = indexMap.get(key);<NEW_LINE>if (values == null) {<NEW_LINE>values = new HashSet<StreamEvent>();<NEW_LINE>values.add(streamEvent);<NEW_LINE>indexMap.put(streamEvent.getOutputData()[indexEntry<MASK><NEW_LINE>} else {<NEW_LINE>values.add(streamEvent);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}
.getValue()], values);
1,157,167
public TypeDefinition build(Type type, Class<?> clazz, Map<String, TypeDefinition> typeCache) {<NEW_LINE>if (!(type instanceof ParameterizedType)) {<NEW_LINE>return new TypeDefinition(clazz.getCanonicalName());<NEW_LINE>}<NEW_LINE>ParameterizedType parameterizedType = (ParameterizedType) type;<NEW_LINE>Type[] actualTypeArgs = parameterizedType.getActualTypeArguments();<NEW_LINE>int actualTypeArgsLength = actualTypeArgs == null ? 0 : actualTypeArgs.length;<NEW_LINE>String mapType = ClassUtils.getCanonicalNameForParameterizedType(parameterizedType);<NEW_LINE>TypeDefinition td = typeCache.get(mapType);<NEW_LINE>if (td != null) {<NEW_LINE>return td;<NEW_LINE>}<NEW_LINE>td = new TypeDefinition(mapType);<NEW_LINE>typeCache.put(mapType, td);<NEW_LINE>for (int i = 0; i < actualTypeArgsLength; i++) {<NEW_LINE>Type actualType = actualTypeArgs[i];<NEW_LINE>TypeDefinition item = null;<NEW_LINE>Class<?> rawType = getRawClass(actualType);<NEW_LINE>if (isParameterizedType(actualType)) {<NEW_LINE>// Nested collection or map.<NEW_LINE>item = TypeDefinitionBuilder.<MASK><NEW_LINE>} else if (isClass(actualType)) {<NEW_LINE>item = TypeDefinitionBuilder.build(null, rawType, typeCache);<NEW_LINE>}<NEW_LINE>if (item != null) {<NEW_LINE>td.getItems().add(item.getType());<NEW_LINE>}<NEW_LINE>}<NEW_LINE>return td;<NEW_LINE>}
build(actualType, rawType, typeCache);
169,639
private org.apache.rocketmq.client.producer.SendCallback sendCallbackConvert(final Message message, final SendCallback sendCallback) {<NEW_LINE>org.apache.rocketmq.client.producer.SendCallback rmqSendCallback = new org.apache.rocketmq.client.producer.SendCallback() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onSuccess(org.apache.rocketmq.client.producer.SendResult sendResult) {<NEW_LINE>sendCallback.onSuccess<MASK><NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onException(Throwable e) {<NEW_LINE>String topic = message.getTopic();<NEW_LINE>ConnectorRuntimeException onsEx = ProducerImpl.this.checkProducerException(topic, null, e);<NEW_LINE>OnExceptionContext context = new OnExceptionContext();<NEW_LINE>context.setTopic(topic);<NEW_LINE>context.setException(onsEx);<NEW_LINE>sendCallback.onException(context);<NEW_LINE>}<NEW_LINE>};<NEW_LINE>return rmqSendCallback;<NEW_LINE>}
(CloudEventUtils.convertSendResult(sendResult));
185,915
public DataLakePathClientBuilder endpoint(String endpoint) {<NEW_LINE>// Ensure endpoint provided is dfs endpoint<NEW_LINE>endpoint = DataLakeImplUtils.endpointToDesiredEndpoint(endpoint, "dfs", "blob");<NEW_LINE>blobClientBuilder.endpoint(DataLakeImplUtils.endpointToDesiredEndpoint(endpoint, "blob", "dfs"));<NEW_LINE>try {<NEW_LINE>URL url = new URL(endpoint);<NEW_LINE>BlobUrlParts <MASK><NEW_LINE>this.accountName = parts.getAccountName();<NEW_LINE>this.endpoint = BuilderHelper.getEndpoint(parts);<NEW_LINE>this.fileSystemName = parts.getBlobContainerName() == null ? this.fileSystemName : parts.getBlobContainerName();<NEW_LINE>this.pathName = parts.getBlobName() == null ? this.pathName : Utility.urlEncode(parts.getBlobName());<NEW_LINE>String sasToken = parts.getCommonSasQueryParameters().encode();<NEW_LINE>if (!CoreUtils.isNullOrEmpty(sasToken)) {<NEW_LINE>this.sasToken(sasToken);<NEW_LINE>}<NEW_LINE>} catch (MalformedURLException ex) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException("The Azure Storage DataLake endpoint url is malformed.", ex));<NEW_LINE>}<NEW_LINE>return this;<NEW_LINE>}
parts = BlobUrlParts.parse(url);
564,048
private void startPreview() {<NEW_LINE>// Sanity check. Parts of this code assume it's on this thread. If it has been put into a handle<NEW_LINE>// that's fine just be careful nothing assumes it's on the main looper<NEW_LINE>if (Looper.getMainLooper().getThread() != Thread.currentThread()) {<NEW_LINE>throw new RuntimeException("Not on main looper! Modify code to remove assumptions");<NEW_LINE>}<NEW_LINE>if (verbose) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>open.mLock.lock();<NEW_LINE>try {<NEW_LINE>if (null == open.mCameraDevice || null == open.mCameraSize) {<NEW_LINE>Log.i(TAG, " aborting startPreview. Camera not open yet.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>closePreviewSession();<NEW_LINE>open.surfaces = new ArrayList<>();<NEW_LINE>open.mPreviewRequestBuilder = open.mCameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW);<NEW_LINE>if (mTextureView != null && mTextureView.isAvailable()) {<NEW_LINE>SurfaceTexture texture = mTextureView.getSurfaceTexture();<NEW_LINE>assert texture != null;<NEW_LINE>texture.setDefaultBufferSize(open.mCameraSize.getWidth(), open.mCameraSize.getHeight());<NEW_LINE>// Display the camera preview into this texture<NEW_LINE>Surface previewSurface = new Surface(texture);<NEW_LINE>open.surfaces.add(previewSurface);<NEW_LINE>open.mPreviewRequestBuilder.addTarget(previewSurface);<NEW_LINE>}<NEW_LINE>// This is where the image for processing is extracted from<NEW_LINE>Surface readerSurface = open.mPreviewReader.getSurface();<NEW_LINE>open.surfaces.add(readerSurface);<NEW_LINE>open.mPreviewRequestBuilder.addTarget(readerSurface);<NEW_LINE>createCaptureSession();<NEW_LINE>} catch (CameraAccessException e) {<NEW_LINE>e.printStackTrace();<NEW_LINE>} finally {<NEW_LINE>open.mLock.unlock();<NEW_LINE>}<NEW_LINE>}
Log.i(TAG, "startPreview()");
1,825,130
public static boolean addNode(Properties ctx, String treeType, int Record_ID, String trxName) {<NEW_LINE>// TODO: Check & refactor this<NEW_LINE>// Get Tree<NEW_LINE>int AD_Tree_ID = 0;<NEW_LINE>MClient client = MClient.get(ctx);<NEW_LINE>I_AD_ClientInfo ci = client.getInfo();<NEW_LINE>if (TREETYPE_Activity.equals(treeType))<NEW_LINE>AD_Tree_ID = ci.getAD_Tree_Activity_ID();<NEW_LINE>else if (TREETYPE_BoM.equals(treeType))<NEW_LINE>throw new IllegalArgumentException("BoM Trees not supported");<NEW_LINE>else if (TREETYPE_BPartner.equals(treeType))<NEW_LINE>AD_Tree_ID = ci.getAD_Tree_BPartner_ID();<NEW_LINE>else if (TREETYPE_Campaign.equals(treeType))<NEW_LINE>AD_Tree_ID = ci.getAD_Tree_Campaign_ID();<NEW_LINE>else if (TREETYPE_ElementValue.equals(treeType))<NEW_LINE>throw new IllegalArgumentException("ElementValue cannot use this API");<NEW_LINE>else if (TREETYPE_Menu.equals(treeType))<NEW_LINE>AD_Tree_ID = ci.getAD_Tree_Menu_ID();<NEW_LINE>else if (TREETYPE_Organization.equals(treeType))<NEW_LINE>AD_Tree_ID = ci.getAD_Tree_Org_ID();<NEW_LINE>else if (TREETYPE_Product.equals(treeType))<NEW_LINE>AD_Tree_ID = ci.getAD_Tree_Product_ID();<NEW_LINE>else if (TREETYPE_ProductCategory.equals(treeType))<NEW_LINE>throw new IllegalArgumentException("Product Category Trees not supported");<NEW_LINE>else if (TREETYPE_Project.equals(treeType))<NEW_LINE>AD_Tree_ID = ci.getAD_Tree_Project_ID();<NEW_LINE>else if (TREETYPE_SalesRegion.equals(treeType))<NEW_LINE>AD_Tree_ID = ci.getAD_Tree_SalesRegion_ID();<NEW_LINE>if (AD_Tree_ID == 0)<NEW_LINE>throw new IllegalArgumentException("No Tree found");<NEW_LINE>MTree_Base tree = MTree_Base.get(ctx, AD_Tree_ID, trxName);<NEW_LINE>if (tree.get_ID() != AD_Tree_ID)<NEW_LINE>throw new IllegalArgumentException("Tree found AD_Tree_ID=" + AD_Tree_ID);<NEW_LINE>// Insert Tree in correct tree<NEW_LINE>boolean saved = false;<NEW_LINE>if (TREETYPE_Menu.equals(treeType)) {<NEW_LINE>MTree_NodeMM node <MASK><NEW_LINE>saved = node.save();<NEW_LINE>} else if (TREETYPE_BPartner.equals(treeType)) {<NEW_LINE>MTree_NodeBP node = new MTree_NodeBP(tree, Record_ID);<NEW_LINE>saved = node.save();<NEW_LINE>} else if (TREETYPE_Product.equals(treeType)) {<NEW_LINE>MTree_NodePR node = new MTree_NodePR(tree, Record_ID);<NEW_LINE>saved = node.save();<NEW_LINE>} else {<NEW_LINE>MTree_Node node = new MTree_Node(tree, Record_ID);<NEW_LINE>saved = node.save();<NEW_LINE>}<NEW_LINE>return saved;<NEW_LINE>}
= new MTree_NodeMM(tree, Record_ID);
957,550
public void marshall(CsvClassifier csvClassifier, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (csvClassifier == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(csvClassifier.getName(), NAME_BINDING);<NEW_LINE>protocolMarshaller.marshall(csvClassifier.getCreationTime(), CREATIONTIME_BINDING);<NEW_LINE>protocolMarshaller.marshall(csvClassifier.getLastUpdated(), LASTUPDATED_BINDING);<NEW_LINE>protocolMarshaller.marshall(csvClassifier.getVersion(), VERSION_BINDING);<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarshaller.marshall(csvClassifier.getQuoteSymbol(), QUOTESYMBOL_BINDING);<NEW_LINE>protocolMarshaller.marshall(csvClassifier.getContainsHeader(), CONTAINSHEADER_BINDING);<NEW_LINE>protocolMarshaller.marshall(csvClassifier.getHeader(), HEADER_BINDING);<NEW_LINE>protocolMarshaller.marshall(csvClassifier.getDisableValueTrimming(), DISABLEVALUETRIMMING_BINDING);<NEW_LINE>protocolMarshaller.marshall(csvClassifier.getAllowSingleColumn(), ALLOWSINGLECOLUMN_BINDING);<NEW_LINE>} catch (Exception e) {<NEW_LINE>throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);<NEW_LINE>}<NEW_LINE>}
csvClassifier.getDelimiter(), DELIMITER_BINDING);
1,240,114
SQLServerEncryptionAlgorithm create(SQLServerSymmetricKey columnEncryptionKey, SQLServerEncryptionType encryptionType, String encryptionAlgorithm) throws SQLServerException {<NEW_LINE>assert (columnEncryptionKey != null);<NEW_LINE>if (encryptionType != SQLServerEncryptionType.Deterministic && encryptionType != SQLServerEncryptionType.Randomized) {<NEW_LINE>MessageFormat form = new MessageFormat(SQLServerException.getErrString("R_InvalidEncryptionType"));<NEW_LINE>Object[] msgArgs = { encryptionType, encryptionAlgorithm, "'" + SQLServerEncryptionType.Deterministic + <MASK><NEW_LINE>throw new SQLServerException(this, form.format(msgArgs), null, 0, false);<NEW_LINE>}<NEW_LINE>StringBuilder factoryKeyBuilder = new StringBuilder();<NEW_LINE>factoryKeyBuilder.append(Base64.getEncoder().encodeToString(new String(columnEncryptionKey.getRootKey(), UTF_8).getBytes()));<NEW_LINE>factoryKeyBuilder.append(":");<NEW_LINE>factoryKeyBuilder.append(encryptionType);<NEW_LINE>factoryKeyBuilder.append(":");<NEW_LINE>factoryKeyBuilder.append(algorithmVersion);<NEW_LINE>String factoryKey = factoryKeyBuilder.toString();<NEW_LINE>SQLServerAeadAes256CbcHmac256Algorithm aesAlgorithm;<NEW_LINE>if (!encryptionAlgorithms.containsKey(factoryKey)) {<NEW_LINE>SQLServerAeadAes256CbcHmac256EncryptionKey encryptedKey = new SQLServerAeadAes256CbcHmac256EncryptionKey(columnEncryptionKey.getRootKey(), SQLServerAeadAes256CbcHmac256Algorithm.algorithmName);<NEW_LINE>aesAlgorithm = new SQLServerAeadAes256CbcHmac256Algorithm(encryptedKey, encryptionType, algorithmVersion);<NEW_LINE>encryptionAlgorithms.putIfAbsent(factoryKey, aesAlgorithm);<NEW_LINE>}<NEW_LINE>return encryptionAlgorithms.get(factoryKey);<NEW_LINE>}
"," + SQLServerEncryptionType.Randomized + "'" };
432,016
public void method(@ParameterAnnotation(position = 0) int p, Library.Class2 p2) throws LibraryException {<NEW_LINE>// javac9 silently uses Objects.<NEW_LINE>boolean unused = Objects.nonNull(p2);<NEW_LINE>Class3 c3 = new Class3();<NEW_LINE>Class4 c4 = c3.field;<NEW_LINE>c3.field = c4;<NEW_LINE>Func<Class5> func = c4::createClass5;<NEW_LINE>Class5 class5 = func.get();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>Class6 class6 = class5.create(new Class7());<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>Class8[][] array = new Class8[10][10];<NEW_LINE>Class9[] array2 = new Class9[10];<NEW_LINE>array2<MASK><NEW_LINE>Object[] copy = array.clone();<NEW_LINE>array = (Class8[][]) copy;<NEW_LINE>System.out.println(array.clone().length);<NEW_LINE>Integer b = Integer.valueOf(0);<NEW_LINE>System.out.println(b);<NEW_LINE>Class11 eleven = new Class11();<NEW_LINE>eleven.foo();<NEW_LINE>eleven.bar();<NEW_LINE>// Regression test for b/123020654: check class literals<NEW_LINE>Class<?> class12 = Class12.class;<NEW_LINE>}
[0] = new Class10();
1,569,313
// rb_execarg_init<NEW_LINE>private static RubyString execargInit(ThreadContext context, IRubyObject[] argv, boolean accept_shell, ExecArg eargp, boolean allow_exc_opt) {<NEW_LINE>RubyString prog, ret;<NEW_LINE>IRubyObject[] env_opt = { context.nil, context.nil };<NEW_LINE>IRubyObject[][] argv_p = { argv };<NEW_LINE>IRubyObject exception = context.nil;<NEW_LINE>prog = execGetargs(context, argv_p, accept_shell, env_opt);<NEW_LINE>IRubyObject opt = env_opt[1];<NEW_LINE>RubyHash optHash;<NEW_LINE>RubySymbol exceptionSym = <MASK><NEW_LINE>if (allow_exc_opt && !opt.isNil() && (optHash = ((RubyHash) opt)).has_key_p(context, exceptionSym).isTrue()) {<NEW_LINE>optHash = optHash.dupFast(context);<NEW_LINE>exception = optHash.delete(context, exceptionSym);<NEW_LINE>}<NEW_LINE>execFillarg(context, prog, argv_p[0], env_opt[0], env_opt[1], eargp);<NEW_LINE>if (exception.isTrue()) {<NEW_LINE>eargp.exception = true;<NEW_LINE>}<NEW_LINE>ret = eargp.use_shell ? eargp.command_name : eargp.command_name;<NEW_LINE>return ret;<NEW_LINE>}
context.runtime.newSymbol("exception");
1,209,048
private boolean processUnrecoverableException(final HttpServletRequest req, final HttpServletResponse resp, final PwmDomain pwmDomain, final PwmRequest pwmRequest, final PwmUnrecoverableException e) throws IOException {<NEW_LINE>switch(e.getError()) {<NEW_LINE>case ERROR_DIRECTORY_UNAVAILABLE:<NEW_LINE>LOGGER.fatal(pwmRequest.getLabel(), () -> e.getErrorInformation().toDebugStr());<NEW_LINE>StatisticsClient.incrementStat(pwmRequest, Statistic.LDAP_UNAVAILABLE_COUNT);<NEW_LINE>break;<NEW_LINE>case ERROR_PASSWORD_REQUIRED:<NEW_LINE>LOGGER.warn(() -> "attempt to access functionality requiring password authentication, but password not yet supplied by actor, forwarding to password Login page");<NEW_LINE>// store the original requested url<NEW_LINE>try {<NEW_LINE>LOGGER.debug(pwmRequest, () -> "user is authenticated without a password, redirecting to login page");<NEW_LINE>LoginServlet.redirectToLoginServlet(PwmRequest.forRequest(req, resp));<NEW_LINE>return true;<NEW_LINE>} catch (final Throwable e1) {<NEW_LINE>LOGGER.error(() -> <MASK><NEW_LINE>}<NEW_LINE>break;<NEW_LINE>case ERROR_INTERNAL:<NEW_LINE>default:<NEW_LINE>final Supplier<CharSequence> msg = () -> "unexpected error: " + e.getErrorInformation().toDebugStr();<NEW_LINE>final PwmLogLevel level = e.getError().isTrivial() ? PwmLogLevel.TRACE : PwmLogLevel.ERROR;<NEW_LINE>LOGGER.log(level, pwmRequest.getLabel(), msg);<NEW_LINE>StatisticsClient.incrementStat(pwmRequest, Statistic.PWM_UNKNOWN_ERRORS);<NEW_LINE>}<NEW_LINE>return false;<NEW_LINE>}
"error while marking pre-login url:" + e1.getMessage());
109,716
private static Difference[] parseContextDiff(Reader in) throws IOException {<NEW_LINE>BufferedReader br = new BufferedReader(in);<NEW_LINE>ArrayList<Difference> diffs = new ArrayList<Difference>();<NEW_LINE>String line = null;<NEW_LINE>do {<NEW_LINE>if (line == null || !DIFFERENCE_DELIMETER.equals(line)) {<NEW_LINE>do {<NEW_LINE>line = br.readLine();<NEW_LINE>} while (line != null && !DIFFERENCE_DELIMETER.equals(line));<NEW_LINE>}<NEW_LINE>int[] firstInterval = new int[2];<NEW_LINE>line = br.readLine();<NEW_LINE>if (line != null && line.startsWith(CONTEXT_MARK1B)) {<NEW_LINE>try {<NEW_LINE>readNums(line, <MASK><NEW_LINE>} catch (NumberFormatException nfex) {<NEW_LINE>throw new IOException(nfex.getLocalizedMessage());<NEW_LINE>}<NEW_LINE>} else<NEW_LINE>continue;<NEW_LINE>// List of intervals and texts<NEW_LINE>ArrayList<Object> firstChanges = new ArrayList<Object>();<NEW_LINE>line = fillChanges(firstInterval, br, CONTEXT_MARK2B, firstChanges);<NEW_LINE>int[] secondInterval = new int[2];<NEW_LINE>if (line != null && line.startsWith(CONTEXT_MARK2B)) {<NEW_LINE>try {<NEW_LINE>readNums(line, CONTEXT_MARK2B.length(), secondInterval);<NEW_LINE>} catch (NumberFormatException nfex) {<NEW_LINE>throw new IOException(nfex.getLocalizedMessage());<NEW_LINE>}<NEW_LINE>} else<NEW_LINE>continue;<NEW_LINE>// List of intervals and texts<NEW_LINE>ArrayList<Object> secondChanges = new ArrayList<Object>();<NEW_LINE>line = fillChanges(secondInterval, br, DIFFERENCE_DELIMETER, secondChanges);<NEW_LINE>if (changesCountInvariant(firstChanges, secondChanges) == false) {<NEW_LINE>// NOI18N<NEW_LINE>throw new IOException("Diff file format error. Number of new and old file changes in one hunk must be same!");<NEW_LINE>}<NEW_LINE>mergeChanges(firstInterval, secondInterval, firstChanges, secondChanges, diffs);<NEW_LINE>} while (line != null);<NEW_LINE>return diffs.toArray(new Difference[diffs.size()]);<NEW_LINE>}
CONTEXT_MARK1B.length(), firstInterval);
1,063,565
private Optional<BucketSearchResult> firstItem(final OAtomicOperation atomicOperation) throws IOException {<NEW_LINE>final LinkedList<PagePathItemUnit> path = new LinkedList<>();<NEW_LINE>long bucketIndex = ROOT_INDEX;<NEW_LINE>OCacheEntry cacheEntry = loadPageForRead(atomicOperation, fileId, bucketIndex, false);<NEW_LINE>int itemIndex = 0;<NEW_LINE>try {<NEW_LINE>Bucket bucket = new Bucket(cacheEntry);<NEW_LINE>while (true) {<NEW_LINE>if (!bucket.isLeaf()) {<NEW_LINE>if (bucket.isEmpty() || itemIndex > bucket.size()) {<NEW_LINE>if (!path.isEmpty()) {<NEW_LINE>final <MASK><NEW_LINE>bucketIndex = pagePathItemUnit.pageIndex;<NEW_LINE>itemIndex = pagePathItemUnit.itemIndex + 1;<NEW_LINE>} else {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>// noinspection ObjectAllocationInLoop<NEW_LINE>path.add(new PagePathItemUnit(bucketIndex, itemIndex));<NEW_LINE>if (itemIndex < bucket.size()) {<NEW_LINE>bucketIndex = bucket.getLeft(itemIndex);<NEW_LINE>} else {<NEW_LINE>bucketIndex = bucket.getRight(itemIndex - 1);<NEW_LINE>}<NEW_LINE>itemIndex = 0;<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>if (bucket.isEmpty()) {<NEW_LINE>if (!path.isEmpty()) {<NEW_LINE>final PagePathItemUnit pagePathItemUnit = path.removeLast();<NEW_LINE>bucketIndex = pagePathItemUnit.pageIndex;<NEW_LINE>itemIndex = pagePathItemUnit.itemIndex + 1;<NEW_LINE>} else {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>return Optional.of(new BucketSearchResult(0, bucketIndex));<NEW_LINE>}<NEW_LINE>}<NEW_LINE>releasePageFromRead(atomicOperation, cacheEntry);<NEW_LINE>cacheEntry = loadPageForRead(atomicOperation, fileId, bucketIndex, false);<NEW_LINE>// noinspection ObjectAllocationInLoop<NEW_LINE>bucket = new Bucket(cacheEntry);<NEW_LINE>}<NEW_LINE>} finally {<NEW_LINE>releasePageFromRead(atomicOperation, cacheEntry);<NEW_LINE>}<NEW_LINE>}
PagePathItemUnit pagePathItemUnit = path.removeLast();
729,911
private void visitClassesAndCollectReferences(Collection<String> startingClasses, boolean startsFromAdviceClass) {<NEW_LINE>Queue<String> instrumentationQueue = new ArrayDeque<>(startingClasses);<NEW_LINE>boolean isAdviceClass = startsFromAdviceClass;<NEW_LINE>while (!instrumentationQueue.isEmpty()) {<NEW_LINE>String visitedClassName = instrumentationQueue.remove();<NEW_LINE>visitedClasses.add(visitedClassName);<NEW_LINE>try (InputStream in = getClassFileStream(visitedClassName)) {<NEW_LINE>// only start from method bodies for the advice class (skips class/method references)<NEW_LINE>ReferenceCollectingClassVisitor cv = new ReferenceCollectingClassVisitor(helperClassPredicate, isAdviceClass);<NEW_LINE><MASK><NEW_LINE>reader.accept(cv, ClassReader.SKIP_FRAMES);<NEW_LINE>for (Map.Entry<String, ClassRef> entry : cv.getReferences().entrySet()) {<NEW_LINE>String refClassName = entry.getKey();<NEW_LINE>ClassRef reference = entry.getValue();<NEW_LINE>// Don't generate references created outside of the instrumentation package.<NEW_LINE>if (!visitedClasses.contains(refClassName) && helperClassPredicate.isHelperClass(refClassName)) {<NEW_LINE>instrumentationQueue.add(refClassName);<NEW_LINE>}<NEW_LINE>addReference(refClassName, reference);<NEW_LINE>}<NEW_LINE>collectHelperClasses(isAdviceClass, visitedClassName, cv.getHelperClasses(), cv.getHelperSuperClasses());<NEW_LINE>virtualFieldMappingsBuilder.registerAll(cv.getVirtualFieldMappings());<NEW_LINE>} catch (IOException e) {<NEW_LINE>throw new IllegalStateException("Error reading class " + visitedClassName, e);<NEW_LINE>}<NEW_LINE>if (isAdviceClass) {<NEW_LINE>isAdviceClass = false;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}
ClassReader reader = new ClassReader(in);
1,716,749
private Map<String, HtmlCounterReport> writeCounters(List<Counter> counters) throws IOException {<NEW_LINE>final Map<String, HtmlCounterReport> counterReportsByCounterName = new HashMap<>();<NEW_LINE>for (final Counter counter : counters) {<NEW_LINE>final HtmlCounterReport htmlCounterReport = writeCounter(counter);<NEW_LINE>counterReportsByCounterName.put(counter.getName(), htmlCounterReport);<NEW_LINE>}<NEW_LINE>if (range.getPeriod() == Period.TOUT && counterReportsByCounterName.size() > 1) {<NEW_LINE>writeln("<div align='right'>");<NEW_LINE>writeln("<a href='?action=clear_counter&amp;counter=all" + getCsrfTokenUrlPart() + "' title='#Vider_toutes_stats#'");<NEW_LINE>writeln("class='confirm noPrint' data-confirm='" + htmlEncodeButNotSpaceAndNewLine(<MASK><NEW_LINE>writeln(END_DIV);<NEW_LINE>}<NEW_LINE>return counterReportsByCounterName;<NEW_LINE>}
getString("confirm_vider_toutes_stats")) + "'>#Reinitialiser_toutes_stats#</a>");
467,341
public void marshall(CopyJob copyJob, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (copyJob == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(copyJob.getAccountId(), ACCOUNTID_BINDING);<NEW_LINE>protocolMarshaller.marshall(copyJob.getCopyJobId(), COPYJOBID_BINDING);<NEW_LINE>protocolMarshaller.marshall(copyJob.getSourceBackupVaultArn(), SOURCEBACKUPVAULTARN_BINDING);<NEW_LINE>protocolMarshaller.marshall(copyJob.getSourceRecoveryPointArn(), SOURCERECOVERYPOINTARN_BINDING);<NEW_LINE>protocolMarshaller.marshall(copyJob.getDestinationBackupVaultArn(), DESTINATIONBACKUPVAULTARN_BINDING);<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarshaller.marshall(copyJob.getResourceArn(), RESOURCEARN_BINDING);<NEW_LINE>protocolMarshaller.marshall(copyJob.getCreationDate(), CREATIONDATE_BINDING);<NEW_LINE>protocolMarshaller.marshall(copyJob.getCompletionDate(), COMPLETIONDATE_BINDING);<NEW_LINE>protocolMarshaller.marshall(copyJob.getState(), STATE_BINDING);<NEW_LINE>protocolMarshaller.marshall(copyJob.getStatusMessage(), STATUSMESSAGE_BINDING);<NEW_LINE>protocolMarshaller.marshall(copyJob.getBackupSizeInBytes(), BACKUPSIZEINBYTES_BINDING);<NEW_LINE>protocolMarshaller.marshall(copyJob.getIamRoleArn(), IAMROLEARN_BINDING);<NEW_LINE>protocolMarshaller.marshall(copyJob.getCreatedBy(), CREATEDBY_BINDING);<NEW_LINE>protocolMarshaller.marshall(copyJob.getResourceType(), RESOURCETYPE_BINDING);<NEW_LINE>} catch (Exception e) {<NEW_LINE>throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);<NEW_LINE>}<NEW_LINE>}
copyJob.getDestinationRecoveryPointArn(), DESTINATIONRECOVERYPOINTARN_BINDING);
574,487
public void onRestoreRequested(@BookmarkManager.RestoringRequestResult int result, @NonNull String deviceName, long backupTimestampInMs) {<NEW_LINE>LOGGER.d(TAG, "onRestoreRequested, result: " + result + ", deviceName = " + deviceName + ", backupTimestampInMs = " + backupTimestampInMs);<NEW_LINE>Statistics.INSTANCE.trackBmRestoringRequestResult(result);<NEW_LINE>hideRestoringProgressDialog();<NEW_LINE>switch(result) {<NEW_LINE>case CLOUD_BACKUP_EXISTS:<NEW_LINE>String backupDate = DateUtils.getShortDateFormatter().format(new Date(backupTimestampInMs));<NEW_LINE>DialogInterface.OnClickListener clickListener = (dialog, which) -> {<NEW_LINE>showRestoringProgressDialog();<NEW_LINE>BookmarkManager.INSTANCE.applyRestoring();<NEW_LINE>};<NEW_LINE>String msg = mContext.getString(R.string.bookmarks_restore_message, backupDate, deviceName);<NEW_LINE>DialogUtils.showAlertDialog(mContext, R.string.bookmarks_restore_title, msg, R.string.restore, clickListener, <MASK><NEW_LINE>break;<NEW_LINE>case CLOUD_NO_BACKUP:<NEW_LINE>DialogUtils.showAlertDialog(mContext, R.string.bookmarks_restore_empty_title, R.string.bookmarks_restore_empty_message, R.string.ok, mRestoreCancelListener);<NEW_LINE>break;<NEW_LINE>case CLOUD_NOT_ENOUGH_DISK_SPACE:<NEW_LINE>DialogInterface.OnClickListener tryAgainListener = (dialog, which) -> BookmarkManager.INSTANCE.requestRestoring();<NEW_LINE>DialogUtils.showAlertDialog(mContext, R.string.routing_not_enough_space, R.string.not_enough_free_space_on_sdcard, R.string.try_again, tryAgainListener, R.string.cancel, mRestoreCancelListener);<NEW_LINE>break;<NEW_LINE>default:<NEW_LINE>throw new AssertionError("Unsupported restoring request result: " + result);<NEW_LINE>}<NEW_LINE>}
R.string.cancel, mRestoreCancelListener);
1,292,255
// Creates new user index on a geometry. The geometry index allows to store<NEW_LINE>// an integer user value on the geometry.<NEW_LINE>// Until set_geometry_user_index is called for a given geometry, the index<NEW_LINE>// stores -1 for that geometry.<NEW_LINE>int createGeometryUserIndex() {<NEW_LINE>if (m_geometry_indices == null)<NEW_LINE>m_geometry_indices = new ArrayList<AttributeStreamOfInt32>(4);<NEW_LINE>// Try getting existing index. Use linear search. We do not expect many<NEW_LINE>// indices to be created.<NEW_LINE>for (int i = 0; i < m_geometry_indices.size(); i++) {<NEW_LINE>if (m_geometry_indices.get(i) == null) {<NEW_LINE>m_geometry_indices.set(i, (AttributeStreamOfInt32<MASK><NEW_LINE>return i;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>m_geometry_indices.add((AttributeStreamOfInt32) AttributeStreamBase.createIndexStream(0));<NEW_LINE>return m_geometry_indices.size() - 1;<NEW_LINE>}
) AttributeStreamBase.createIndexStream(0));
1,737,384
private void showUploadConfirmationDialog(@NonNull FragmentActivity activity, @NonNull String actionButton, @Nullable SelectionModeListener listener) {<NEW_LINE>long[] size = new long[1];<NEW_LINE>List<SelectableItem<GpxInfo>> <MASK><NEW_LINE>for (GpxInfo gpxInfo : selectedItems) {<NEW_LINE>SelectableItem<GpxInfo> item = new SelectableItem<>();<NEW_LINE>item.setObject(gpxInfo);<NEW_LINE>item.setTitle(gpxInfo.getName());<NEW_LINE>item.setIconId(R.drawable.ic_notification_track);<NEW_LINE>items.add(item);<NEW_LINE>size[0] += gpxInfo.getSize();<NEW_LINE>}<NEW_LINE>List<SelectableItem<GpxInfo>> selectedItems = new ArrayList<>(items);<NEW_LINE>FragmentManager manager = activity.getSupportFragmentManager();<NEW_LINE>UploadMultipleGPXBottomSheet dialog = UploadMultipleGPXBottomSheet.showInstance(manager, items, selectedItems);<NEW_LINE>if (dialog != null) {<NEW_LINE>dialog.setDialogStateListener(new DialogStateListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onDialogCreated() {<NEW_LINE>dialog.setTitle(actionButton);<NEW_LINE>dialog.setApplyButtonTitle(getString(R.string.shared_string_continue));<NEW_LINE>String total = getString(R.string.shared_string_total);<NEW_LINE>dialog.setTitleDescription(getString(R.string.ltr_or_rtl_combine_via_colon, total, AndroidUtils.formatSize(app, size[0])));<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onCloseDialog() {<NEW_LINE>}<NEW_LINE>});<NEW_LINE>dialog.setOnApplySelectionListener(selItems -> {<NEW_LINE>List<GpxInfo> gpxInfos = new ArrayList<>();<NEW_LINE>for (SelectableItem<GpxInfo> item : selItems) {<NEW_LINE>gpxInfos.add(item.getObject());<NEW_LINE>}<NEW_LINE>if (listener != null) {<NEW_LINE>listener.onItemsSelected(gpxInfos);<NEW_LINE>}<NEW_LINE>});<NEW_LINE>}<NEW_LINE>}
items = new ArrayList<>();
899,568
public boolean fileExists(String fileFullPath) throws Exception {<NEW_LINE>DatastoreFile file = new DatastoreFile(fileFullPath);<NEW_LINE>DatastoreFile dirFile = new DatastoreFile(file.getDatastoreName(), file.getDir());<NEW_LINE>HostDatastoreBrowserMO browserMo = getHostDatastoreBrowserMO();<NEW_LINE>s_logger.info("Search file " + file.getFileName() + " on " + dirFile.getPath());<NEW_LINE>HostDatastoreBrowserSearchResults results = browserMo.searchDatastore(dirFile.getPath(), file.getFileName(), true);<NEW_LINE>if (results != null) {<NEW_LINE>List<FileInfo<MASK><NEW_LINE>if (info != null && info.size() > 0) {<NEW_LINE>s_logger.info("File " + fileFullPath + " exists on datastore");<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>s_logger.info("File " + fileFullPath + " does not exist on datastore");<NEW_LINE>return false;<NEW_LINE>}
> info = results.getFile();
1,258,766
public void testContextInfoExactMatchDisableDefault() throws Exception {<NEW_LINE>CommonTasks.writeLogMsg(Level.INFO, "**** >>>>> server configuration thresholds for - <global - slow : 5s , hung : 10s> <timing - Slow : 120s , hung : 120s>");<NEW_LINE>server.setServerConfigurationFile("contextInfoPattern/server_timing_7.xml");<NEW_LINE>server.waitForStringInLog("CWWKG0017I", 30000);<NEW_LINE>server.setMarkToEndOfLog();<NEW_LINE>// Should sleep and not hit hung request threshold since the context info specific settings<NEW_LINE>// are longer than the global defaults.<NEW_LINE>long startTime = System.nanoTime();<NEW_LINE>createRequests(12000, 1);<NEW_LINE>long elapsedSeconds = TimeUnit.SECONDS.convert(System.nanoTime() - startTime, TimeUnit.NANOSECONDS);<NEW_LINE>assertTrue("Test did not run long enough (elapsedSeconds)", elapsedSeconds >= 12);<NEW_LINE>// Make sure we didn't get any hung request messages<NEW_LINE>assertTrue("Test should not have found any slow request messages", fetchSlowRequestWarningsCount() == 0);<NEW_LINE>assertTrue("Test should not have found any hung request messages", fetchHungRequestWarningsCount() == 0);<NEW_LINE>// OK now test the opposite - that we do timeout because we matched the context info specific<NEW_LINE>// settings.<NEW_LINE>CommonTasks.writeLogMsg(Level.INFO, "**** >>>>> server configuration thresholds for - <global - slow : 120s , hung : 120s> <timing - Slow : 5s , hung : 10s>");<NEW_LINE>server.setServerConfigurationFile("contextInfoPattern/server_timing_8.xml");<NEW_LINE>server.waitForStringInLog("CWWKG0017I", 30000);<NEW_LINE>server.setMarkToEndOfLog();<NEW_LINE>// Should sleep and not hit hung request threshold since the context info specific settings<NEW_LINE>// are longer than the global defaults.<NEW_LINE>startTime = System.nanoTime();<NEW_LINE>createRequests(12000, 1);<NEW_LINE>elapsedSeconds = TimeUnit.SECONDS.convert(System.nanoTime() - startTime, TimeUnit.NANOSECONDS);<NEW_LINE>assertTrue("Test did not run long enough (elapsedSeconds)", elapsedSeconds >= 12);<NEW_LINE>// Make sure we had some hung request messages<NEW_LINE>assertTrue(<MASK><NEW_LINE>assertTrue("Test should have found hung request messages", fetchHungRequestWarningsCount() > 0);<NEW_LINE>CommonTasks.writeLogMsg(Level.INFO, "***** Testcase testContextInfoExactMatchDisableDefault pass *****");<NEW_LINE>}
"Test should have found slow request messages", fetchSlowRequestWarningsCount() > 0);
305,449
@GET<NEW_LINE>public String request(@QueryParam("finalizeResponses") List<String> finalizeResponses, @QueryParam("change") boolean change, @QueryParam("index") int index) throws InvalidProtocolBufferException {<NEW_LINE>if (finalizeResponses.size() != Constants.MULTISIG_PARTICIPANTS) {<NEW_LINE>throw new IllegalArgumentException(format("Expecting %d finalizeResponses, got %d", Constants.MULTISIG_PARTICIPANTS, finalizeResponses.size()));<NEW_LINE>}<NEW_LINE>List<String> addresses = SubzeroUtils.finalizeResponsesToAddresses(finalizeResponses);<NEW_LINE>NetworkParameters network = SubzeroUtils.inferNetworkParameters<MASK><NEW_LINE>ColdWallet coldWallet = new ColdWallet(network, 0, addresses, addresses.get(0));<NEW_LINE>Common.Path p = Common.Path.newBuilder().setIsChange(change).setIndex(index).build();<NEW_LINE>return coldWallet.address(p).toString();<NEW_LINE>}
(addresses.get(0));
341,371
public AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails awsAutoScalingLaunchConfigurationInstanceMonitoringDetails = new AwsAutoScalingLaunchConfigurationInstanceMonitoringDetails();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (token == null)<NEW_LINE>token = context.nextToken();<NEW_LINE>if (token == VALUE_NULL) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>while (true) {<NEW_LINE>if (token == null)<NEW_LINE>break;<NEW_LINE>if (token == FIELD_NAME || token == START_OBJECT) {<NEW_LINE>if (context.testExpression("Enabled", targetDepth)) {<NEW_LINE>context.nextToken();<NEW_LINE>awsAutoScalingLaunchConfigurationInstanceMonitoringDetails.setEnabled(context.getUnmarshaller(Boolean.class).unmarshall(context));<NEW_LINE>}<NEW_LINE>} else if (token == END_ARRAY || token == END_OBJECT) {<NEW_LINE>if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) {<NEW_LINE>if (context.getCurrentDepth() <= originalDepth)<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>token = context.nextToken();<NEW_LINE>}<NEW_LINE>return awsAutoScalingLaunchConfigurationInstanceMonitoringDetails;<NEW_LINE>}
String currentParentElement = context.getCurrentParentElement();
736,302
public static void main(String[] args) {<NEW_LINE>mLog.debug("Starting");<NEW_LINE>String silence = "BEDDEA821EFD660C08";<NEW_LINE>String[] frames = { "0E46122323067C60F8", "0E469433C1067CF1BC", "0E46122B23067C60F8", "0E67162BE08874E2B4", "0E46163BE1067CF1BC", "0E46122B23067C60F8", "0A06163BE00A5C303E", "0E46122B23067C60F8", "0E46163BE1847CE1FC", "0E46122B23067C60F8" };<NEW_LINE>List<byte[]> frameData = new ArrayList<>();<NEW_LINE>for (String frame : frames) {<NEW_LINE>byte[] bytes = new byte[frame.length() / 2];<NEW_LINE>for (int x = 0; x < frame.length(); x += 2) {<NEW_LINE>String hex = frame.substring(x, x + 2);<NEW_LINE>bytes[x / 2] = (byte) (0xFF & Integer.parseInt(hex, 16));<NEW_LINE>}<NEW_LINE>frameData.add(bytes);<NEW_LINE>}<NEW_LINE>mLog.debug("Starting thumb dv thread(s)");<NEW_LINE>final Listener<float[]> listener = packet -> {<NEW_LINE>mLog.info("Got an audio packet!");<NEW_LINE>};<NEW_LINE>try (ThumbDv thumbDv = new ThumbDv(AudioProtocol.P25_PHASE2, listener)) {<NEW_LINE>thumbDv.start();<NEW_LINE>Thread.sleep(6000);<NEW_LINE>for (int x = 0; x < 20; x++) {<NEW_LINE>thumbDv.send(new EncodeSpeechRequest<MASK><NEW_LINE>Thread.sleep(20);<NEW_LINE>}<NEW_LINE>// for(byte[] frame : frameData)<NEW_LINE>// {<NEW_LINE>// thumbDv.decode(frame);<NEW_LINE>// }<NEW_LINE>while (true) ;<NEW_LINE>} catch (IOException ioe) {<NEW_LINE>mLog.error("Error", ioe);<NEW_LINE>} catch (InterruptedException e) {<NEW_LINE>e.printStackTrace();<NEW_LINE>}<NEW_LINE>}
(new short[160]));
1,043,274
public void updateValues() {<NEW_LINE>Port port = getPort();<NEW_LINE>nameField.setText(port.getName());<NEW_LINE>labelField.setText(port.getDisplayLabel());<NEW_LINE>typeField.setText(port.getType());<NEW_LINE>descriptionField.setText(port.getDescription());<NEW_LINE>rangeBox.setSelectedItem(getHumanizedRange<MASK><NEW_LINE>if (port.isStandardType()) {<NEW_LINE>widgetBox.setSelectedItem(getHumanizedWidget(port.getWidget()));<NEW_LINE>valueField.setText(port.getValue().toString());<NEW_LINE>} else<NEW_LINE>valueField.setEnabled(false);<NEW_LINE>Object minimumValue = port.getMinimumValue();<NEW_LINE>String minimumValueString = minimumValue == null ? "" : minimumValue.toString();<NEW_LINE>minimumValueCheck.setSelected(minimumValue != null);<NEW_LINE>minimumValueField.setText(minimumValueString);<NEW_LINE>minimumValueField.setEnabled(minimumValue != null);<NEW_LINE>Object maximumValue = port.getMaximumValue();<NEW_LINE>String maximumValueString = maximumValue == null ? "" : maximumValue.toString();<NEW_LINE>maximumValueCheck.setSelected(maximumValue != null);<NEW_LINE>maximumValueField.setText(maximumValueString);<NEW_LINE>maximumValueField.setEnabled(maximumValue != null);<NEW_LINE>menuItemsTable.tableChanged(new TableModelEvent(menuItemsTable.getModel()));<NEW_LINE>revalidate();<NEW_LINE>}
(port.getRange()));
629,985
public char[][][] findTypeNames(final String qualifiedPackageName, String moduleName) {<NEW_LINE>if (!isPackage(qualifiedPackageName, moduleName))<NEW_LINE>// most common case<NEW_LINE>return null;<NEW_LINE>final char[] packageArray = qualifiedPackageName.toCharArray();<NEW_LINE>final ArrayList answers = new ArrayList();<NEW_LINE>nextEntry: for (Enumeration e = this.zipFile.entries(); e.hasMoreElements(); ) {<NEW_LINE>String fileName = ((ZipEntry) e.<MASK><NEW_LINE>// add the package name & all of its parent packages<NEW_LINE>int last = fileName.lastIndexOf('/');<NEW_LINE>if (last > 0) {<NEW_LINE>// extract the package name<NEW_LINE>String packageName = fileName.substring(0, last);<NEW_LINE>if (!qualifiedPackageName.equals(packageName))<NEW_LINE>continue nextEntry;<NEW_LINE>int indexOfDot = fileName.lastIndexOf('.');<NEW_LINE>if (indexOfDot != -1) {<NEW_LINE>String typeName = fileName.substring(last + 1, indexOfDot);<NEW_LINE>answers.add(CharOperation.arrayConcat(CharOperation.splitOn('/', packageArray), typeName.toCharArray()));<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>int size = answers.size();<NEW_LINE>if (size != 0) {<NEW_LINE>char[][][] result = new char[size][][];<NEW_LINE>answers.toArray(result);<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>return null;<NEW_LINE>}
nextElement()).getName();
30,061
public static void startFragmentInternal(FragmentActivity activity, Fragment fragment, String tag, @Nullable View sharedElement, @Nullable String sharedElementName) {<NEW_LINE>FragmentTransaction transaction = activity.getSupportFragmentManager().beginTransaction();<NEW_LINE>if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP && sharedElement != null && sharedElementName != null) {<NEW_LINE>Fragment currentFragment = getCurrentFragment(activity);<NEW_LINE><MASK><NEW_LINE>MaterialContainerTransform transform = new MaterialContainerTransform(context, /* entering= */<NEW_LINE>true);<NEW_LINE>transform.setContainerColor(MaterialColors.getColor(sharedElement, R.attr.colorSurface));<NEW_LINE>transform.setFadeMode(MaterialContainerTransform.FADE_MODE_THROUGH);<NEW_LINE>fragment.setSharedElementEnterTransition(transform);<NEW_LINE>transaction.addSharedElement(sharedElement, sharedElementName);<NEW_LINE>Hold hold = new Hold();<NEW_LINE>// Add root view as target for the Hold so that the entire view hierarchy is held in place as<NEW_LINE>// one instead of each child view individually. Helps keep shadows during the transition.<NEW_LINE>hold.addTarget(currentFragment.getView());<NEW_LINE>hold.setDuration(transform.getDuration());<NEW_LINE>currentFragment.setExitTransition(hold);<NEW_LINE>if (fragment.getArguments() == null) {<NEW_LINE>Bundle args = new Bundle();<NEW_LINE>args.putString(ARG_TRANSITION_NAME, sharedElementName);<NEW_LINE>fragment.setArguments(args);<NEW_LINE>} else {<NEW_LINE>fragment.getArguments().putString(ARG_TRANSITION_NAME, sharedElementName);<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>transaction.setCustomAnimations(R.anim.abc_grow_fade_in_from_bottom, R.anim.abc_fade_out, R.anim.abc_fade_in, R.anim.abc_shrink_fade_out_from_bottom);<NEW_LINE>}<NEW_LINE>transaction.replace(MAIN_ACTIVITY_FRAGMENT_CONTAINER_ID, fragment, tag).addToBackStack(null).commit();<NEW_LINE>}
Context context = currentFragment.requireContext();
976,421
private static void tok(List<String> inputFileList, List<String> outputFileList, String charset, Pattern parseInsidePattern, Pattern filterPattern, String options, boolean preserveLines, boolean oneLinePerElement, boolean dump, boolean lowerCase, boolean blankLineAfterFiles) throws IOException {<NEW_LINE>final long start = System.nanoTime();<NEW_LINE>long numTokens = 0;<NEW_LINE>int numFiles = inputFileList.size();<NEW_LINE>if (numFiles == 0) {<NEW_LINE>Reader stdin = IOUtils.readerFromStdin(charset);<NEW_LINE>BufferedWriter writer = new BufferedWriter(new OutputStreamWriter<MASK><NEW_LINE>numTokens += tokReader(stdin, writer, parseInsidePattern, filterPattern, options, preserveLines, oneLinePerElement, dump, lowerCase);<NEW_LINE>IOUtils.closeIgnoringExceptions(writer);<NEW_LINE>} else {<NEW_LINE>BufferedWriter out = null;<NEW_LINE>if (outputFileList == null) {<NEW_LINE>out = new BufferedWriter(new OutputStreamWriter(System.out, charset));<NEW_LINE>}<NEW_LINE>for (int j = 0; j < numFiles; j++) {<NEW_LINE>try (Reader r = IOUtils.readerFromString(inputFileList.get(j), charset)) {<NEW_LINE>if (outputFileList != null) {<NEW_LINE>out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(outputFileList.get(j)), charset));<NEW_LINE>}<NEW_LINE>numTokens += tokReader(r, out, parseInsidePattern, filterPattern, options, preserveLines, oneLinePerElement, dump, lowerCase);<NEW_LINE>}<NEW_LINE>if (blankLineAfterFiles) {<NEW_LINE>out.newLine();<NEW_LINE>}<NEW_LINE>if (outputFileList != null) {<NEW_LINE>IOUtils.closeIgnoringExceptions(out);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>// end for j going through inputFileList<NEW_LINE>if (outputFileList == null) {<NEW_LINE>IOUtils.closeIgnoringExceptions(out);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>final long duration = System.nanoTime() - start;<NEW_LINE>final double wordsPerSec = (double) numTokens / ((double) duration / 1000000000.0);<NEW_LINE>System.err.printf("PTBTokenizer tokenized %d tokens at %.2f tokens per second.%n", numTokens, wordsPerSec);<NEW_LINE>}
(System.out, charset));
851,929
static Component onCreateLayout(ComponentContext c, @State boolean shouldShowItem) {<NEW_LINE>return Row.create(c).paddingDip(YogaEdge.ALL, 20).child(Row.create(c).heightDip(SIZE_DP).widthDip(SIZE_DP).backgroundColor(Color.RED)).child(shouldShowItem ? // Disappearing items require a transition key and a key<NEW_LINE>Row.create(c).heightDip(SIZE_DP).widthDip(SIZE_DP).backgroundColor(Color.BLUE).transitionKey(BLUE_BOX_TRANSITION_KEY).key(BLUE_BOX_TRANSITION_KEY) : null).child(Row.create(c).heightDip(SIZE_DP).widthDip(SIZE_DP).backgroundColor(Color.RED)).clickHandler(AppearDisappearTransition.onClick<MASK><NEW_LINE>}
(c)).build();
372,463
public DoubleMatrix differentiateX0(PiecewisePolynomialResult2D pp, double[] x0Keys, double[] x1Keys) {<NEW_LINE>ArgChecker.notNull(pp, "pp");<NEW_LINE>int order0 = pp.getOrder()[0];<NEW_LINE>int order1 = pp.getOrder()[1];<NEW_LINE>ArgChecker.isFalse(order0 < 2, "polynomial degree of x0 < 1");<NEW_LINE>DoubleArray knots0 = pp.getKnots0();<NEW_LINE>DoubleArray knots1 = pp.getKnots1();<NEW_LINE>int nKnots0 = knots0.size();<NEW_LINE>int nKnots1 = knots1.size();<NEW_LINE>DoubleMatrix[][] coefs = pp.getCoefs();<NEW_LINE>DoubleMatrix[][] res = <MASK><NEW_LINE>for (int i = 0; i < nKnots0 - 1; ++i) {<NEW_LINE>for (int j = 0; j < nKnots1 - 1; ++j) {<NEW_LINE>DoubleMatrix coef = coefs[i][j];<NEW_LINE>res[i][j] = DoubleMatrix.of(order0 - 1, order1, (k, l) -> coef.get(k, l) * (order0 - k - 1));<NEW_LINE>}<NEW_LINE>}<NEW_LINE>PiecewisePolynomialResult2D ppDiff = new PiecewisePolynomialResult2D(knots0, knots1, res, new int[] { order0 - 1, order1 });<NEW_LINE>return evaluate(ppDiff, x0Keys, x1Keys);<NEW_LINE>}
new DoubleMatrix[nKnots0][nKnots1];
904,135
final ListOpsMetadataResult executeListOpsMetadata(ListOpsMetadataRequest listOpsMetadataRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listOpsMetadataRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListOpsMetadataRequest> request = null;<NEW_LINE>Response<ListOpsMetadataResult> response = null;<NEW_LINE>try {<NEW_LINE>awsRequestMetrics.startEvent(Field.RequestMarshallTime);<NEW_LINE>try {<NEW_LINE>request = new ListOpsMetadataRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listOpsMetadataRequest));<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, "SSM");<NEW_LINE>request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListOpsMetadata");<NEW_LINE>request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);<NEW_LINE>} finally {<NEW_LINE>awsRequestMetrics.endEvent(Field.RequestMarshallTime);<NEW_LINE>}<NEW_LINE>HttpResponseHandler<AmazonWebServiceResponse<ListOpsMetadataResult>> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListOpsMetadataResultJsonUnmarshaller());<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());
654,691
private void handleDeleteSelectedClaims(List<Claim> selectedClaims) {<NEW_LINE>List<String> claimIds = new ArrayList<>();<NEW_LINE>for (Claim claim : selectedClaims) {<NEW_LINE>claimIds.add(claim.getClaimId());<NEW_LINE>}<NEW_LINE>if (actionMode != null) {<NEW_LINE>actionMode.finish();<NEW_LINE>}<NEW_LINE>Helper.setViewVisibility(channelList, View.INVISIBLE);<NEW_LINE>Helper.setViewVisibility(fabNewChannel, View.INVISIBLE);<NEW_LINE>AbandonChannelTask task = new AbandonChannelTask(claimIds, bigLoading, new AbandonHandler() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onComplete(List<String> successfulClaimIds, List<String> failedClaimIds, List<Exception> errors) {<NEW_LINE>View root = getView();<NEW_LINE>if (root != null) {<NEW_LINE>if (failedClaimIds.size() > 0) {<NEW_LINE>Snackbar.make(root, R.string.one_or_more_channels_failed_abandon, Snackbar.LENGTH_LONG).setBackgroundTint(Color.RED).setTextColor(Color.WHITE).show();<NEW_LINE>} else if (successfulClaimIds.size() == claimIds.size()) {<NEW_LINE>try {<NEW_LINE>String message = getResources().getQuantityString(R.plurals.<MASK><NEW_LINE>Snackbar.make(root, message, Snackbar.LENGTH_LONG).show();<NEW_LINE>} catch (IllegalStateException ex) {<NEW_LINE>// pass<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>Lbry.abandonedClaimIds.addAll(successfulClaimIds);<NEW_LINE>if (adapter != null) {<NEW_LINE>adapter.setItems(Helper.filterDeletedClaims(adapter.getItems()));<NEW_LINE>}<NEW_LINE>Helper.setViewVisibility(channelList, View.VISIBLE);<NEW_LINE>Helper.setViewVisibility(fabNewChannel, View.VISIBLE);<NEW_LINE>checkNoChannels();<NEW_LINE>}<NEW_LINE>});<NEW_LINE>task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);<NEW_LINE>}
channels_deleted, successfulClaimIds.size());
478,740
public void beforeConnect(DatabaseConnection dbconn) {<NEW_LINE>if (!dbconn.getDriver().equals("org.apache.derby.jdbc.EmbeddedDriver")) {<NEW_LINE>// NOI18N<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// force the database lock -- useful on Linux, see issue 63957<NEW_LINE>if (System.getProperty(DERBY_DATABASE_FORCE_LOCK) == null) {<NEW_LINE>// NOI18N<NEW_LINE>System.setProperty(DERBY_DATABASE_FORCE_LOCK, "true");<NEW_LINE>}<NEW_LINE>// set the system directory, see issue 64316<NEW_LINE>if (System.getProperty(DERBY_SYSTEM_HOME) == null) {<NEW_LINE>// NOI18N<NEW_LINE>// NOI18N<NEW_LINE>File derbySystemHome = new File(System.getProperty("netbeans.user"), "derby");<NEW_LINE>derbySystemHome.mkdirs();<NEW_LINE>// NOI18N<NEW_LINE>System.setProperty(<MASK><NEW_LINE>}<NEW_LINE>}
DERBY_SYSTEM_HOME, derbySystemHome.getAbsolutePath());
1,150,050
public MLDataSet loadCSV(File file) {<NEW_LINE>if (this.analyst == null) {<NEW_LINE>throw new EncogError("Can't normalize yet, file has not been analyzed.");<NEW_LINE>}<NEW_LINE>MLDataSet result = new BasicMLDataSet();<NEW_LINE>int inputCount = this.analyst.determineInputCount();<NEW_LINE>int outputCount = this.analyst.determineOutputCount();<NEW_LINE>int totalCount = inputCount + outputCount;<NEW_LINE>boolean headers = this.analyst.getScript().getProperties().getPropertyBoolean(ScriptProperties.SETUP_CONFIG_INPUT_HEADERS);<NEW_LINE>final CSVFormat format = this.analyst.getScript().determineFormat();<NEW_LINE>CSVHeaders analystHeaders = new CSVHeaders(file, headers, format);<NEW_LINE>ReadCSV csv = new ReadCSV(file.toString(), headers, format);<NEW_LINE>for (final AnalystField field : analyst.getScript().getNormalize().getNormalizedFields()) {<NEW_LINE>field.init();<NEW_LINE>}<NEW_LINE>TimeSeriesUtil series = new TimeSeriesUtil(analyst, true, analystHeaders.getHeaders());<NEW_LINE>try {<NEW_LINE>// write file contents<NEW_LINE>while (csv.next()) {<NEW_LINE>double[] output = AnalystNormalizeCSV.extractFields(this.analyst, analystHeaders, csv, totalCount, false);<NEW_LINE>if (series.getTotalDepth() > 1) {<NEW_LINE>output = series.process(output);<NEW_LINE>}<NEW_LINE>MLDataPair pair = <MASK><NEW_LINE>for (int i = 0; i < inputCount; i++) {<NEW_LINE>pair.getInput().setData(i, output[i]);<NEW_LINE>}<NEW_LINE>for (int i = 0; i < outputCount; i++) {<NEW_LINE>pair.getIdeal().setData(i, output[i + inputCount]);<NEW_LINE>}<NEW_LINE>result.add(pair);<NEW_LINE>}<NEW_LINE>return result;<NEW_LINE>} finally {<NEW_LINE>if (csv != null) {<NEW_LINE>try {<NEW_LINE>csv.close();<NEW_LINE>} catch (final Exception ex) {<NEW_LINE>EncogLogging.log(ex);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}
BasicMLDataPair.createPair(inputCount, outputCount);
933,008
private ProductLookupDescriptor createProductLookupDescriptor(@NonNull final Optional<SOTrx> soTrx) {<NEW_LINE>if (soTrx.orElse(SOTrx.PURCHASE).isSales()) {<NEW_LINE>return ProductLookupDescriptor.builderWithStockInfo().bpartnerParamName(I_C_Order.COLUMNNAME_C_BPartner_ID).pricingDateParamName(I_C_Order.COLUMNNAME_DatePromised).hideDiscontinued(true).availableStockDateParamName(I_C_Order.COLUMNNAME_PreparationDate).availableToPromiseAdapter(availableToPromiseAdapter).availableForSaleAdapter(availableForSaleAdapter).availableForSalesConfigRepo(availableForSalesConfigRepo).build();<NEW_LINE>} else {<NEW_LINE>return ProductLookupDescriptor.builderWithStockInfo().bpartnerParamName(I_C_Order.COLUMNNAME_C_BPartner_ID).pricingDateParamName(I_C_Order.COLUMNNAME_DatePromised).hideDiscontinued(true).availableStockDateParamName(I_C_Order.COLUMNNAME_DatePromised).availableToPromiseAdapter(availableToPromiseAdapter).availableForSaleAdapter(availableForSaleAdapter).<MASK><NEW_LINE>}<NEW_LINE>}
availableForSalesConfigRepo(availableForSalesConfigRepo).build();
618,735
public void encodeTbody(FacesContext context, TreeTable tt, TreeNode root, boolean dataOnly) throws IOException {<NEW_LINE><MASK><NEW_LINE>String clientId = tt.getClientId(context);<NEW_LINE>boolean empty = (root == null || root.getChildCount() == 0);<NEW_LINE>UIComponent emptyFacet = tt.getFacet("emptyMessage");<NEW_LINE>if (!dataOnly) {<NEW_LINE>writer.startElement("tbody", null);<NEW_LINE>writer.writeAttribute("id", clientId + "_data", null);<NEW_LINE>writer.writeAttribute("class", TreeTable.DATA_CLASS, null);<NEW_LINE>}<NEW_LINE>if (empty) {<NEW_LINE>writer.startElement("tr", null);<NEW_LINE>writer.writeAttribute("class", TreeTable.EMPTY_MESSAGE_ROW_CLASS, null);<NEW_LINE>writer.startElement("td", null);<NEW_LINE>writer.writeAttribute("colspan", tt.getColumnsCount(), null);<NEW_LINE>if (ComponentUtils.shouldRenderFacet(emptyFacet)) {<NEW_LINE>emptyFacet.encodeAll(context);<NEW_LINE>} else {<NEW_LINE>writer.writeText(tt.getEmptyMessage(), "emptyMessage");<NEW_LINE>}<NEW_LINE>writer.endElement("td");<NEW_LINE>writer.endElement("tr");<NEW_LINE>}<NEW_LINE>if (root != null) {<NEW_LINE>if (tt.isPaginator()) {<NEW_LINE>int first = tt.getFirst();<NEW_LINE>int rows = tt.getRows() == 0 ? tt.getRowCount() : tt.getRows();<NEW_LINE>encodeNodeChildren(context, tt, root, root, first, rows);<NEW_LINE>} else {<NEW_LINE>encodeNodeChildren(context, tt, root, root);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>tt.setRowKey(root, null);<NEW_LINE>if (!dataOnly) {<NEW_LINE>writer.endElement("tbody");<NEW_LINE>}<NEW_LINE>}
ResponseWriter writer = context.getResponseWriter();
588,923
protected void resolveAnnotations(Scope scope, int location) {<NEW_LINE>Annotation[][] annotationsOnDimensions = getAnnotationsOnDimensions();<NEW_LINE>if (this.annotations != null || annotationsOnDimensions != null) {<NEW_LINE>BlockScope resolutionScope = Scope.typeAnnotationsResolutionScope(scope);<NEW_LINE>if (resolutionScope != null) {<NEW_LINE>int dimensions = this.dimensions();<NEW_LINE>if (this.annotations != null) {<NEW_LINE>TypeBinding leafComponentType = this.resolvedType.leafComponentType();<NEW_LINE>leafComponentType = resolveAnnotations(resolutionScope, this.annotations, leafComponentType);<NEW_LINE>this.resolvedType = dimensions > 0 ? scope.environment().createArrayType(leafComponentType, dimensions) : leafComponentType;<NEW_LINE>// contradictory null annotations on the type are already detected in Annotation.resolveType() (SE7 treatment)<NEW_LINE>}<NEW_LINE>if (annotationsOnDimensions != null) {<NEW_LINE>this.resolvedType = resolveAnnotations(<MASK><NEW_LINE>if (this.resolvedType instanceof ArrayBinding) {<NEW_LINE>long[] nullTagBitsPerDimension = ((ArrayBinding) this.resolvedType).nullTagBitsPerDimension;<NEW_LINE>if (nullTagBitsPerDimension != null) {<NEW_LINE>for (int i = 0; i < dimensions; i++) {<NEW_LINE>// skip last annotations at [dimensions] (concerns the leaf type)<NEW_LINE>if ((nullTagBitsPerDimension[i] & TagBits.AnnotationNullMASK) == TagBits.AnnotationNullMASK) {<NEW_LINE>scope.problemReporter().contradictoryNullAnnotations(annotationsOnDimensions[i]);<NEW_LINE>nullTagBitsPerDimension[i] = 0;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (scope.compilerOptions().isAnnotationBasedNullAnalysisEnabled && this.resolvedType != null && (this.resolvedType.tagBits & TagBits.AnnotationNullMASK) == 0 && !this.resolvedType.isTypeVariable() && !this.resolvedType.isWildcard() && location != 0 && scope.hasDefaultNullnessFor(location, this.sourceStart)) {<NEW_LINE>if (location == Binding.DefaultLocationTypeBound && this.resolvedType.id == TypeIds.T_JavaLangObject) {<NEW_LINE>scope.problemReporter().implicitObjectBoundNoNullDefault(this);<NEW_LINE>} else {<NEW_LINE>LookupEnvironment environment = scope.environment();<NEW_LINE>AnnotationBinding[] annots = new AnnotationBinding[] { environment.getNonNullAnnotation() };<NEW_LINE>this.resolvedType = environment.createAnnotatedType(this.resolvedType, annots);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}
resolutionScope, annotationsOnDimensions, this.resolvedType);
1,179,985
final DeleteChannelResult executeDeleteChannel(DeleteChannelRequest deleteChannelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteChannelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteChannelRequest> request = null;<NEW_LINE>Response<DeleteChannelResult> response = null;<NEW_LINE>try {<NEW_LINE>awsRequestMetrics.startEvent(Field.RequestMarshallTime);<NEW_LINE>try {<NEW_LINE>request = new DeleteChannelRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteChannelRequest));<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, "MediaPackage");<NEW_LINE>request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteChannel");<NEW_LINE>request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);<NEW_LINE>} finally {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>HttpResponseHandler<AmazonWebServiceResponse<DeleteChannelResult>> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteChannelResultJsonUnmarshaller());<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);
429,159
private static void runAssertionDynamicProps(RegressionEnvironment env) {<NEW_LINE>String jsonOne = "{\"value\":10}";<NEW_LINE>Object expectedOne = 10;<NEW_LINE>sendAssertDynamicProp(env, jsonOne, "ChildEvent", expectedOne);<NEW_LINE>String jsonTwo = "{\"value\":\"abc\"}";<NEW_LINE>Object expectedTwo = "abc";<NEW_LINE>sendAssertDynamicProp(env, jsonTwo, "ChildEvent", expectedTwo);<NEW_LINE>env.milestone(0);<NEW_LINE>env.assertIterator("s0", itS0 -> {<NEW_LINE>assertEquals(10, itS0.next().get("c0"));<NEW_LINE>assertEquals("abc", itS0.next().get("c0"));<NEW_LINE>});<NEW_LINE>env.assertIterator("s1", itS1 -> {<NEW_LINE>assertEventJson(itS1.<MASK><NEW_LINE>assertEventJson(itS1.next(), jsonTwo, expectedTwo);<NEW_LINE>});<NEW_LINE>}
next(), jsonOne, expectedOne);
252,670
private int findToken(int offset, JsTokenId tokenId) {<NEW_LINE>int fileOffset = context.parserResult.getSnapshot().getOriginalOffset(offset);<NEW_LINE>if (fileOffset >= 0) {<NEW_LINE>TokenSequence<? extends JsTokenId> ts = LexUtilities.getPositionedSequence(context.parserResult.getSnapshot(), <MASK><NEW_LINE>if (ts != null) {<NEW_LINE>while (ts.moveNext()) {<NEW_LINE>org.netbeans.api.lexer.Token<? extends JsTokenId> next = LexUtilities.findNextNonWsNonComment(ts);<NEW_LINE>if (next != null && next.id() == tokenId) {<NEW_LINE>org.netbeans.api.lexer.Token<? extends JsTokenId> prev = LexUtilities.findPrevious(ts, Arrays.asList(JsTokenId.WHITESPACE, JsTokenId.EOL, JsTokenId.LINE_COMMENT, JsTokenId.BLOCK_COMMENT, JsTokenId.DOC_COMMENT, tokenId));<NEW_LINE>if (prev != null) {<NEW_LINE>return ts.offset() + prev.length();<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>return -1;<NEW_LINE>}
offset, JsTokenId.javascriptLanguage());
1,270,345
private static ArrayList<ArrayList<String>> findCliqueCover(Graph graph, int bestSize, String tabs) {<NEW_LINE>verboseLog(tabs + "findCliqueCover up to " + bestSize + ", " + graph.toString());<NEW_LINE>for (int i = 0; i < graph.size(); i++) {<NEW_LINE>if (i >= bestSize - 1) {<NEW_LINE>verboseLog(tabs + "giving up");<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String v0 = graph.getVert(i);<NEW_LINE>if (!graph.getEdges(v0).isEmpty()) {<NEW_LINE>verboseLog(tabs + "Selected vertex " + v0);<NEW_LINE>String v1 = graph.getEdges(v0).iterator().next();<NEW_LINE>ArrayList<ArrayList<String>> bestCover0 = findCliqueCover(graph.ntract(v0, v1), bestSize, tabs + "----");<NEW_LINE>int bestSize0 = bestCover0 == null ? bestSize : bestCover0.size();<NEW_LINE>graph.removeEdge(v0, v1);<NEW_LINE>ArrayList<ArrayList<String>> bestCover1 = findCliqueCover(graph, bestSize0, tabs + " ");<NEW_LINE>graph.addEdge(v0, v1);<NEW_LINE>if (bestCover1 != null) {<NEW_LINE>return bestCover1;<NEW_LINE>} else {<NEW_LINE>if (bestCover0 != null) {<NEW_LINE>bestCover0.get(i).add(v1);<NEW_LINE>}<NEW_LINE>return bestCover0;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>verboseLog(tabs + "done, " + graph.size());<NEW_LINE>ArrayList<ArrayList<String>> bestCover = new ArrayList<>();<NEW_LINE>for (int i = 0; i < graph.size(); i++) {<NEW_LINE>ArrayList<String> <MASK><NEW_LINE>singleton.add(graph.getVert(i));<NEW_LINE>bestCover.add(singleton);<NEW_LINE>}<NEW_LINE>return bestCover;<NEW_LINE>}
singleton = new ArrayList<>();
1,419,726
public Mono<Resource> apply(ServerRequest request) {<NEW_LINE>PathContainer pathContainer = request.requestPath().pathWithinApplication();<NEW_LINE>if (!this.pattern.matches(pathContainer)) {<NEW_LINE>return Mono.empty();<NEW_LINE>}<NEW_LINE>pathContainer = this.pattern.extractPathWithinPattern(pathContainer);<NEW_LINE>String path = <MASK><NEW_LINE>if (path.contains("%")) {<NEW_LINE>path = StringUtils.uriDecode(path, StandardCharsets.UTF_8);<NEW_LINE>}<NEW_LINE>if (!StringUtils.hasLength(path) || isInvalidPath(path)) {<NEW_LINE>return Mono.empty();<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>Resource resource = this.location.createRelative(path);<NEW_LINE>if (resource.isReadable() && isResourceUnderLocation(resource)) {<NEW_LINE>return Mono.just(resource);<NEW_LINE>} else {<NEW_LINE>return Mono.empty();<NEW_LINE>}<NEW_LINE>} catch (IOException ex) {<NEW_LINE>throw new UncheckedIOException(ex);<NEW_LINE>}<NEW_LINE>}
processPath(pathContainer.value());
1,534,051
private OspfRedistributionPolicy initOspfRedistributionPolicy(Rorri_protocolContext ctx) {<NEW_LINE>if (ctx.BGP() != null) {<NEW_LINE>OspfRedistributionPolicy r = new OspfRedistributionPolicy(RoutingProtocol.BGP);<NEW_LINE>assert ctx.bgp_asn() != null;<NEW_LINE>long as = toAsNum(ctx.bgp_asn());<NEW_LINE>r.getSpecialAttributes().put(OspfRedistributionPolicy.BGP_AS, as);<NEW_LINE>return r;<NEW_LINE>} else if (ctx.CONNECTED() != null) {<NEW_LINE>return new OspfRedistributionPolicy(RoutingProtocol.CONNECTED);<NEW_LINE>} else if (ctx.EIGRP() != null) {<NEW_LINE>OspfRedistributionPolicy r = new OspfRedistributionPolicy(RoutingProtocol.EIGRP);<NEW_LINE>Optional<Integer> asn = toInteger(<MASK><NEW_LINE>assert asn.isPresent();<NEW_LINE>r.getSpecialAttributes().put(OspfRedistributionPolicy.EIGRP_AS_NUMBER, asn.get());<NEW_LINE>return r;<NEW_LINE>} else {<NEW_LINE>assert ctx.STATIC() != null;<NEW_LINE>return new OspfRedistributionPolicy(RoutingProtocol.STATIC);<NEW_LINE>}<NEW_LINE>}
ctx, ctx.eigrp_asn());
1,381,703
public ResultStatus addApp(AppDO appDO, String operator) {<NEW_LINE>try {<NEW_LINE>if (appDao.insert(appDO) < 1) {<NEW_LINE>LOGGER.warn("class=AppServiceImpl||method=addApp||AppDO={}||msg=add fail,{}", appDO, ResultStatus.MYSQL_ERROR.getMessage());<NEW_LINE>return ResultStatus.MYSQL_ERROR;<NEW_LINE>}<NEW_LINE>KafkaUserDO kafkaUserDO = new KafkaUserDO();<NEW_LINE>kafkaUserDO.setAppId(appDO.getAppId());<NEW_LINE>kafkaUserDO.setPassword(appDO.getPassword());<NEW_LINE>kafkaUserDO.setOperation(OperationStatusEnum.CREATE.getCode());<NEW_LINE>kafkaUserDO.setUserType(0);<NEW_LINE>kafkaUserDao.insert(kafkaUserDO);<NEW_LINE>Map<String, String> content = new HashMap<>();<NEW_LINE>content.put("appId", appDO.getAppId());<NEW_LINE>content.put("name", appDO.getName());<NEW_LINE>content.put("applicant", appDO.getApplicant());<NEW_LINE>content.put("password", appDO.getPassword());<NEW_LINE>content.put("principals", appDO.getPrincipals());<NEW_LINE>content.put("description", appDO.getDescription());<NEW_LINE>operateRecordService.insert(operator, ModuleEnum.APP, appDO.getName(<MASK><NEW_LINE>} catch (DuplicateKeyException e) {<NEW_LINE>LOGGER.error("class=AppServiceImpl||method=addApp||errMsg={}||appDO={}|", e.getMessage(), appDO, e);<NEW_LINE>return ResultStatus.RESOURCE_ALREADY_EXISTED;<NEW_LINE>} catch (Exception e) {<NEW_LINE>LOGGER.error("add app failed, appDO:{}.", appDO, e);<NEW_LINE>return ResultStatus.MYSQL_ERROR;<NEW_LINE>}<NEW_LINE>return ResultStatus.SUCCESS;<NEW_LINE>}
), OperateEnum.ADD, content);
349,608
public Config createConfig() {<NEW_LINE>Config config = super.createConfig();<NEW_LINE>List<CipherSuite> cipherSuites = new LinkedList<>();<NEW_LINE>if (ephemeral) {<NEW_LINE>cipherSuites.add(CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA);<NEW_LINE>cipherSuites.add(CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256);<NEW_LINE>cipherSuites.add(CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA);<NEW_LINE>cipherSuites.add(CipherSuite.TLS_ECDHE_ECDSA_WITH_RC4_128_SHA);<NEW_LINE>cipherSuites.add(CipherSuite.TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA);<NEW_LINE>cipherSuites.add(CipherSuite.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA);<NEW_LINE>cipherSuites.add(CipherSuite.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256);<NEW_LINE>cipherSuites.add(CipherSuite.TLS_ECDHE_RSA_WITH_RC4_128_SHA);<NEW_LINE><MASK><NEW_LINE>cipherSuites.add(CipherSuite.TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256);<NEW_LINE>cipherSuites.add(CipherSuite.TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA);<NEW_LINE>config.setDefaultSelectedCipherSuite(CipherSuite.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA);<NEW_LINE>} else {<NEW_LINE>cipherSuites.add(CipherSuite.TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA);<NEW_LINE>cipherSuites.add(CipherSuite.TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256);<NEW_LINE>cipherSuites.add(CipherSuite.TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA);<NEW_LINE>cipherSuites.add(CipherSuite.TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384);<NEW_LINE>cipherSuites.add(CipherSuite.TLS_ECDH_RSA_WITH_AES_128_CBC_SHA);<NEW_LINE>cipherSuites.add(CipherSuite.TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256);<NEW_LINE>cipherSuites.add(CipherSuite.TLS_ECDH_RSA_WITH_AES_256_CBC_SHA);<NEW_LINE>cipherSuites.add(CipherSuite.TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384);<NEW_LINE>config.setDefaultSelectedCipherSuite(CipherSuite.TLS_ECDH_RSA_WITH_AES_128_CBC_SHA);<NEW_LINE>}<NEW_LINE>config.setQuickReceive(true);<NEW_LINE>config.setStopActionsAfterFatal(true);<NEW_LINE>config.setStopReceivingAfterFatal(true);<NEW_LINE>config.setEarlyStop(true);<NEW_LINE>config.setStopActionsAfterIOException(true);<NEW_LINE>config.setStopTraceAfterUnexpected(true);<NEW_LINE>config.setAddECPointFormatExtension(true);<NEW_LINE>config.setAddEllipticCurveExtension(true);<NEW_LINE>config.setAddServerNameIndicationExtension(true);<NEW_LINE>config.setAddRenegotiationInfoExtension(true);<NEW_LINE>config.setDefaultClientSupportedCipherSuites(cipherSuites);<NEW_LINE>List<NamedGroup> namedCurves = new LinkedList<>();<NEW_LINE>namedCurves.add(namedGroup);<NEW_LINE>config.setDefaultClientNamedGroups(namedCurves);<NEW_LINE>config.setWorkflowTraceType(WorkflowTraceType.HANDSHAKE);<NEW_LINE>return config;<NEW_LINE>}
cipherSuites.add(CipherSuite.TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA);
304,709
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "sym,avgp".split(",");<NEW_LINE>String epl = "@name('s0') select irstream avg(price) as avgp, sym " + "from SupportPriceEvent#groupwin(sym)#length(2)";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>env.sendEventBean(new SupportPriceEvent(1, "A"));<NEW_LINE>env.assertPropsNew("s0", fields, new Object[] { "A", 1.0 });<NEW_LINE>env.sendEventBean(<MASK><NEW_LINE>env.assertPropsNew("s0", fields, new Object[] { "B", 1.5 });<NEW_LINE>env.milestone(0);<NEW_LINE>env.sendEventBean(new SupportPriceEvent(9, "A"));<NEW_LINE>env.assertPropsNew("s0", fields, new Object[] { "A", (1 + 2 + 9) / 3.0 });<NEW_LINE>env.sendEventBean(new SupportPriceEvent(18, "B"));<NEW_LINE>env.assertPropsNew("s0", fields, new Object[] { "B", (1 + 2 + 9 + 18) / 4.0 });<NEW_LINE>env.sendEventBean(new SupportPriceEvent(5, "A"));<NEW_LINE>env.assertPropsIRPair("s0", fields, new Object[] { "A", (2 + 9 + 18 + 5) / 4.0 }, new Object[] { "A", (5 + 2 + 9 + 18) / 4.0 });<NEW_LINE>env.undeployAll();<NEW_LINE>}
new SupportPriceEvent(2, "B"));
1,071,167
public ActionResult<WrapBoolean> execute(EffectivePerson effectivePerson, String dateFrom, String dateTo) throws Exception {<NEW_LINE>ActionResult<WrapBoolean> result = new ActionResult<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>if (null == dateFrom || null == dateTo) {<NEW_LINE>throw new SyncWayException();<NEW_LINE>}<NEW_LINE>Date from = DateTools.parse(dateFrom);<NEW_LINE>Date to = DateTools.parse(dateTo);<NEW_LINE>long gap = to.getTime() - from.getTime();<NEW_LINE>if (gap < 0) {<NEW_LINE>throw new SyncWayException();<NEW_LINE>}<NEW_LINE>if ((gap / (1000 * 60 * 60 * 24)) > 6) {<NEW_LINE>throw new MoreThanSevenDayException();<NEW_LINE>}<NEW_LINE>// Business business = new Business(emc);<NEW_LINE>// List<DingdingQywxSyncRecord> conflictList = business.dingdingAttendanceFactory().findConflictSyncRecord(from.getTime(), to.getTime());<NEW_LINE>// if (conflictList != null && !conflictList.isEmpty()) {<NEW_LINE>// throw new ConflictSyncRecordException();<NEW_LINE>// }<NEW_LINE>DingdingQywxSyncRecord record = new DingdingQywxSyncRecord();<NEW_LINE>record.setDateFrom(from.getTime());<NEW_LINE>record.setDateTo(to.getTime());<NEW_LINE>record.setStartTime(new Date());<NEW_LINE><MASK><NEW_LINE>record.setStatus(DingdingQywxSyncRecord.status_loading);<NEW_LINE>emc.beginTransaction(DingdingQywxSyncRecord.class);<NEW_LINE>emc.persist(record);<NEW_LINE>emc.commit();<NEW_LINE>ThisApplication.dingdingQueue.send(record);<NEW_LINE>result.setData(new WrapBoolean(true));<NEW_LINE>}<NEW_LINE>return result;<NEW_LINE>}
record.setType(DingdingQywxSyncRecord.syncType_dingding);
1,557,512
private static short[] encFF1(BlockCipher cipher, int radix, byte[] T, int n, int u, int v, short[] A, short[] B) {<NEW_LINE>int t = T.length;<NEW_LINE>int b = ((int) Math.ceil(Math.log((double) radix) * (double) v / LOG2) + 7) / 8;<NEW_LINE>int d = (((b + 3) / 4) * 4) + 4;<NEW_LINE>byte[] P = calculateP_FF1(radix, (byte) u, n, t);<NEW_LINE>BigInteger bigRadix = BigInteger.valueOf(radix);<NEW_LINE>BigInteger[] modUV = <MASK><NEW_LINE>int m = v;<NEW_LINE>for (int i = 0; i < 10; ++i) {<NEW_LINE>// i. - iv.<NEW_LINE>BigInteger y = calculateY_FF1(cipher, bigRadix, T, b, d, i, P, B);<NEW_LINE>// v.<NEW_LINE>m = n - m;<NEW_LINE>BigInteger modulus = modUV[i & 1];<NEW_LINE>// vi.<NEW_LINE>BigInteger c = num(bigRadix, A).add(y).mod(modulus);<NEW_LINE>// vii. - ix.<NEW_LINE>short[] C = A;<NEW_LINE>A = B;<NEW_LINE>B = C;<NEW_LINE>str(bigRadix, c, m, C, 0);<NEW_LINE>}<NEW_LINE>return Arrays.concatenate(A, B);<NEW_LINE>}
calculateModUV(bigRadix, u, v);
286,946
public void onNext(T t) {<NEW_LINE>if (terminated) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (WIP.get(this) == 0 && WIP.compareAndSet(this, 0, 1)) {<NEW_LINE>Sinks.Many<T> w = window;<NEW_LINE>w.emitNext(t, Sinks.EmitFailureHandler.FAIL_FAST);<NEW_LINE>int c = count + 1;<NEW_LINE>if (c >= maxSize) {<NEW_LINE>producerIndex++;<NEW_LINE>count = 0;<NEW_LINE>w.emitComplete(Sinks.EmitFailureHandler.FAIL_FAST);<NEW_LINE>long r = requested;<NEW_LINE>if (r != 0L) {<NEW_LINE>w = Sinks.unsafe().many().unicast().onBackpressureBuffer();<NEW_LINE>window = w;<NEW_LINE>actual.onNext(w.asFlux());<NEW_LINE>if (r != Long.MAX_VALUE) {<NEW_LINE>REQUESTED.decrementAndGet(this);<NEW_LINE>}<NEW_LINE>Disposable tm = timer;<NEW_LINE>tm.dispose();<NEW_LINE>Disposable task = newPeriod();<NEW_LINE>if (!TIMER.compareAndSet(this, tm, task)) {<NEW_LINE>task.dispose();<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>window = null;<NEW_LINE>actual.onError(Operators.onOperatorError(s, Exceptions.failWithOverflow(), t<MASK><NEW_LINE>timer.dispose();<NEW_LINE>worker.dispose();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>count = c;<NEW_LINE>}<NEW_LINE>if (WIP.decrementAndGet(this) == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>queue.offer(t);<NEW_LINE>if (!enter()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>drainLoop();<NEW_LINE>}
, actual.currentContext()));
1,824,695
public void generateEnd(OptimizedTagContext context) {<NEW_LINE>// PK65013 - start<NEW_LINE>String pageContextVar = Constants.JSP_PAGE_CONTEXT_ORIG;<NEW_LINE>JspOptions jspOptions = context.getJspOptions();<NEW_LINE>if (jspOptions != null) {<NEW_LINE>if (context.isTagFile() && jspOptions.isModifyPageContextVariable()) {<NEW_LINE>pageContextVar = Constants.JSP_PAGE_CONTEXT_NEW;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>// PK65013 - end<NEW_LINE>String bufferName = context.createTemporaryVariable();<NEW_LINE>// PK65013 change pageContext variable to customizable one.<NEW_LINE>context.writeSource(" if (" + pageContextVar + ".findAttribute(\"TSXBreakRepeat\") != null){");<NEW_LINE>// begin 221381: need to remove the request scope attr for break repeat to allow multiple tsx:repeat tags.<NEW_LINE>// 221381: pop current out object when breaking out of loop.<NEW_LINE>context.writeSource(" out = " + pageContextVar + ".popBody();");<NEW_LINE>context.writeSource(" " + pageContextVar + ".removeAttribute(\"TSXBreakRepeat\", PageContext.REQUEST_SCOPE); // prepare for next repeat tag.");<NEW_LINE>// end 22381<NEW_LINE>context.writeSource(" break;");<NEW_LINE>context.writeSource(" }");<NEW_LINE>context.writeSource(" String " + bufferName + " = ((javax.servlet.jsp.tagext.BodyContent)out).getString();");<NEW_LINE>context.writeSource(" out = " + pageContextVar + ".popBody();");<NEW_LINE>context.<MASK><NEW_LINE>context.writeSource(" }");<NEW_LINE>context.writeSource(" catch(ArrayIndexOutOfBoundsException ae) {");<NEW_LINE>context.writeSource(" out = " + pageContextVar + ".popBody();");<NEW_LINE>context.writeSource(" break;");<NEW_LINE>context.writeSource(" }");<NEW_LINE>context.writeSource(" catch(Exception e) {");<NEW_LINE>context.writeSource(" out = " + pageContextVar + ".popBody();");<NEW_LINE>context.writeSource(" if (throwException()){");<NEW_LINE>context.writeSource(" throw e;");<NEW_LINE>context.writeSource(" } else {");<NEW_LINE>context.writeSource(" out.println(\"Exception: \" + e);");<NEW_LINE>context.writeSource(" }");<NEW_LINE>context.writeSource(" }");<NEW_LINE>context.writeSource("}");<NEW_LINE>context.writeSource("((java.util.Stack)" + pageContextVar + ".getAttribute(\"TSXRepeatStack\", PageContext.PAGE_SCOPE)).pop();");<NEW_LINE>context.writeSource("((com.ibm.ws.jsp.tsx.tag.DefinedIndexManager) " + pageContextVar + ".getAttribute(\"TSXDefinedIndexManager\", PageContext.PAGE_SCOPE)).removeIndex(\"" + index + "\");");<NEW_LINE>}
writeSource(" out.write(" + bufferName + ");");
111,351
public void start() {<NEW_LINE>if (current != null) {<NEW_LINE>current.show();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Form hi = new Form("Hi World", BoxLayout.y());<NEW_LINE>hi.add(new Label("Hi World"));<NEW_LINE>Button btn = new Button("Show Dialog");<NEW_LINE>btn.addActionListener(e -> {<NEW_LINE>Dialog dlg = new Dialog("Hello Dialog", new BorderLayout());<NEW_LINE>dlg.add(BorderLayout.CENTER, BoxLayout.encloseY(new Label("Here is some text"), new Label("And Some More"), new Button("Cancel")));<NEW_LINE>int padding = 0;<NEW_LINE>if (!CN.isTablet()) {<NEW_LINE>// If it is a tablet, we just let the dialog keep its preferred size.<NEW_LINE>// If it is a phone then we want the dialog to stretch to the edge of the screen.<NEW_LINE>dlg.getContentPane().setPreferredW(hi.getWidth() - dlg.getStyle().getHorizontalPadding() - dlg.getContentPane().getStyle().getHorizontalMargins());<NEW_LINE>}<NEW_LINE>int w = dlg.getDialogPreferredSize().getWidth();<NEW_LINE>int h = dlg.getDialogPreferredSize().getHeight();<NEW_LINE>// Position the top so that it is just underneath the form's title area.<NEW_LINE>int top = hi.getTitleArea().getAbsoluteY() + hi.getTitleArea().getHeight() + hi.getTitleArea().getStyle().getMarginBottom() + padding;<NEW_LINE>int left = (hi.getWidth() - w) / 2;<NEW_LINE>int right = left;<NEW_LINE>int bottom = hi.getHeight() - top - h;<NEW_LINE>System.out.println("bottom=" + bottom);<NEW_LINE>bottom = Math.max(0, bottom);<NEW_LINE>top = <MASK><NEW_LINE>dlg.show(top, bottom, left, right);<NEW_LINE>});<NEW_LINE>hi.add(btn);<NEW_LINE>hi.show();<NEW_LINE>}
Math.max(0, top);
480,764
public int merge(MergeState mergeState) throws IOException {<NEW_LINE>final MatchingReaders matchingReaders = new MatchingReaders(mergeState);<NEW_LINE>final MergeVisitor[] visitors = new MergeVisitor[mergeState.storedFieldsReaders.length];<NEW_LINE>final List<CompressingStoredFieldsMergeSub> subs = new ArrayList<>(mergeState.storedFieldsReaders.length);<NEW_LINE>for (int i = 0; i < mergeState.storedFieldsReaders.length; i++) {<NEW_LINE>final StoredFieldsReader reader = mergeState.storedFieldsReaders[i];<NEW_LINE>reader.checkIntegrity();<NEW_LINE>MergeStrategy mergeStrategy = getMergeStrategy(mergeState, matchingReaders, i);<NEW_LINE>if (mergeStrategy == MergeStrategy.VISITOR) {<NEW_LINE>visitors[i] = new MergeVisitor(mergeState, i);<NEW_LINE>}<NEW_LINE>subs.add(new CompressingStoredFieldsMergeSub(mergeState, mergeStrategy, i));<NEW_LINE>}<NEW_LINE>int docCount = 0;<NEW_LINE>final DocIDMerger<CompressingStoredFieldsMergeSub> docIDMerger = DocIDMerger.of(subs, mergeState.needsIndexSort);<NEW_LINE>CompressingStoredFieldsMergeSub sub = docIDMerger.next();<NEW_LINE>while (sub != null) {<NEW_LINE>assert sub.mappedDocID == docCount : sub.mappedDocID + " != " + docCount;<NEW_LINE>final StoredFieldsReader reader = mergeState.storedFieldsReaders[sub.readerIndex];<NEW_LINE>if (sub.mergeStrategy == MergeStrategy.BULK) {<NEW_LINE>final int fromDocID = sub.docID;<NEW_LINE>int toDocID = fromDocID;<NEW_LINE>final CompressingStoredFieldsMergeSub current = sub;<NEW_LINE>while ((sub = docIDMerger.next()) == current) {<NEW_LINE>++toDocID;<NEW_LINE>assert sub.docID == toDocID;<NEW_LINE>}<NEW_LINE>// exclusive bound<NEW_LINE>++toDocID;<NEW_LINE>copyChunks(<MASK><NEW_LINE>docCount += (toDocID - fromDocID);<NEW_LINE>} else if (sub.mergeStrategy == MergeStrategy.DOC) {<NEW_LINE>copyOneDoc((Lucene90CompressingStoredFieldsReader) reader, sub.docID);<NEW_LINE>++docCount;<NEW_LINE>sub = docIDMerger.next();<NEW_LINE>} else if (sub.mergeStrategy == MergeStrategy.VISITOR) {<NEW_LINE>assert visitors[sub.readerIndex] != null;<NEW_LINE>startDocument();<NEW_LINE>reader.visitDocument(sub.docID, visitors[sub.readerIndex]);<NEW_LINE>finishDocument();<NEW_LINE>++docCount;<NEW_LINE>sub = docIDMerger.next();<NEW_LINE>} else {<NEW_LINE>throw new AssertionError("Unknown merge strategy [" + sub.mergeStrategy + "]");<NEW_LINE>}<NEW_LINE>}<NEW_LINE>finish(docCount);<NEW_LINE>return docCount;<NEW_LINE>}
mergeState, current, fromDocID, toDocID);
388,823
public boolean handleHTTP2UpgradeRequest(Map<String, String> http2Settings) {<NEW_LINE>HttpInboundLink link = isc.getLink();<NEW_LINE>HttpInboundChannel channel = link.getChannel();<NEW_LINE>VirtualConnection vc = link.getVirtualConnection();<NEW_LINE>H2InboundLink h2Link = new H2InboundLink(<MASK><NEW_LINE>boolean upgraded = h2Link.handleHTTP2UpgradeRequest(http2Settings, link);<NEW_LINE>if (upgraded) {<NEW_LINE>h2Link.startAsyncRead(true);<NEW_LINE>} else {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// wait for protocol init on stream 1, where the initial upgrade request is serviced<NEW_LINE>boolean rc = h2Link.getStream(1).waitForConnectionInit();<NEW_LINE>if (!rc) {<NEW_LINE>// A problem occurred with the connection start up, a trace message will be issued from waitForConnectionInit()<NEW_LINE>vc.getStateMap().put(h2InitError, true);<NEW_LINE>}<NEW_LINE>return rc;<NEW_LINE>}
channel, vc, getTCPConnectionContext());
1,295,020
public void requestLocation(Context context, @NonNull LocationCallback callback) {<NEW_LINE>mLocationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);<NEW_LINE>mGMSClient = gmsEnabled(context) ? LocationServices.getFusedLocationProviderClient(context) : null;<NEW_LINE>if (mLocationManager == null || !locationEnabled(context, mLocationManager) || !hasPermissions(context)) {<NEW_LINE>callback.onCompleted(null);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>mNetworkListener = new LocationListener();<NEW_LINE>mGPSListener = new LocationListener();<NEW_LINE>mGMSListener = new GMSLocationListener();<NEW_LINE>mLocationCallback = callback;<NEW_LINE>mLastKnownLocation = getLastKnownLocation();<NEW_LINE>if (mLastKnownLocation == null && mGMSClient != null) {<NEW_LINE>mGMSClient.getLastLocation().addOnSuccessListener(location -> mLastKnownLocation = location);<NEW_LINE>}<NEW_LINE>if (mLocationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER)) {<NEW_LINE>mLocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, mNetworkListener, Looper.getMainLooper());<NEW_LINE>}<NEW_LINE>if (mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {<NEW_LINE>mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, mGPSListener, Looper.getMainLooper());<NEW_LINE>}<NEW_LINE>if (mGMSClient != null) {<NEW_LINE>mGMSClient.requestLocationUpdates(LocationRequest.create().setPriority(LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY).setNumUpdates(1), <MASK><NEW_LINE>}<NEW_LINE>mTimer.postDelayed(() -> {<NEW_LINE>stopLocationUpdates();<NEW_LINE>handleLocation(mLastKnownLocation);<NEW_LINE>}, TIMEOUT_MILLIS);<NEW_LINE>}
mGMSListener, Looper.getMainLooper());
728,416
public char[] readableName() /*java.lang.Object, p.X<T> */<NEW_LINE>{<NEW_LINE>char[] readableName;<NEW_LINE>if (isAnonymousType()) {<NEW_LINE>readableName = CharOperation.concat(TypeConstants.ANONYM_PREFIX, anonymousOriginalSuperType().readableName(), TypeConstants.ANONYM_SUFFIX);<NEW_LINE>} else if (isMemberType()) {<NEW_LINE>readableName = CharOperation.concat(enclosingType().readableName(), this.sourceName, '.');<NEW_LINE>} else {<NEW_LINE>readableName = this.sourceName;<NEW_LINE>}<NEW_LINE>TypeVariableBinding[] typeVars;<NEW_LINE>if ((typeVars = typeVariables()) != Binding.NO_TYPE_VARIABLES) {<NEW_LINE>StringBuffer nameBuffer = new StringBuffer(10);<NEW_LINE>nameBuffer.append<MASK><NEW_LINE>for (int i = 0, length = typeVars.length; i < length; i++) {<NEW_LINE>if (i > 0)<NEW_LINE>nameBuffer.append(',');<NEW_LINE>nameBuffer.append(typeVars[i].readableName());<NEW_LINE>}<NEW_LINE>nameBuffer.append('>');<NEW_LINE>int nameLength = nameBuffer.length();<NEW_LINE>readableName = new char[nameLength];<NEW_LINE>nameBuffer.getChars(0, nameLength, readableName, 0);<NEW_LINE>}<NEW_LINE>return readableName;<NEW_LINE>}
(readableName).append('<');
1,399,839
public void run() {<NEW_LINE>long elapsedTimeMillis = System.currentTimeMillis() - timeMillis;<NEW_LINE>long currentNrQueries = nrQueries.get();<NEW_LINE>long nrCurrentQueries = currentNrQueries - lastNrQueries;<NEW_LINE>double throughput = nrCurrentQueries / (elapsedTimeMillis / 1000d);<NEW_LINE>long currentNrDbs = nrDatabases.get();<NEW_LINE>long nrCurrentDbs = currentNrDbs - lastNrDbs;<NEW_LINE>double throughputDbs = nrCurrentDbs / (elapsedTimeMillis / 1000d);<NEW_LINE>long successfulStatementsRatio = (long) (100.0 * nrSuccessfulActions.get() / (nrSuccessfulActions.get() <MASK><NEW_LINE>DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");<NEW_LINE>Date date = new Date();<NEW_LINE>System.out.println(String.format("[%s] Executed %d queries (%d queries/s; %.2f/s dbs, successful statements: %2d%%). Threads shut down: %d.", dateFormat.format(date), currentNrQueries, (int) throughput, throughputDbs, successfulStatementsRatio, threadsShutdown.get()));<NEW_LINE>timeMillis = System.currentTimeMillis();<NEW_LINE>lastNrQueries = currentNrQueries;<NEW_LINE>lastNrDbs = currentNrDbs;<NEW_LINE>}
+ nrUnsuccessfulActions.get()));
1,235,482
public com.amazonaws.services.simplesystemsmanagement.model.AutomationDefinitionVersionNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.simplesystemsmanagement.model.AutomationDefinitionVersionNotFoundException automationDefinitionVersionNotFoundException = new com.amazonaws.services.simplesystemsmanagement.model.AutomationDefinitionVersionNotFoundException(null);<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (token == null)<NEW_LINE>token = context.nextToken();<NEW_LINE>if (token == VALUE_NULL) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>while (true) {<NEW_LINE>if (token == null)<NEW_LINE>break;<NEW_LINE>if (token == FIELD_NAME || token == START_OBJECT) {<NEW_LINE>} else if (token == END_ARRAY || token == END_OBJECT) {<NEW_LINE>if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) {<NEW_LINE>if (context.getCurrentDepth() <= originalDepth)<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>token = context.nextToken();<NEW_LINE>}<NEW_LINE>return automationDefinitionVersionNotFoundException;<NEW_LINE>}
String currentParentElement = context.getCurrentParentElement();
1,165,180
public RankProfile clone() {<NEW_LINE>try {<NEW_LINE>RankProfile clone = (RankProfile) super.clone();<NEW_LINE>clone.rankSettings = new LinkedHashSet<>(this.rankSettings);<NEW_LINE>// hmm?<NEW_LINE>clone.matchPhaseSettings = this.matchPhaseSettings;<NEW_LINE>clone.summaryFeatures = summaryFeatures != null ? new LinkedHashSet<<MASK><NEW_LINE>clone.matchFeatures = matchFeatures != null ? new LinkedHashSet<>(this.matchFeatures) : null;<NEW_LINE>clone.rankFeatures = rankFeatures != null ? new LinkedHashSet<>(this.rankFeatures) : null;<NEW_LINE>clone.rankProperties = new LinkedHashMap<>(this.rankProperties);<NEW_LINE>clone.inputFeatures = new LinkedHashMap<>(this.inputFeatures);<NEW_LINE>clone.functions = new LinkedHashMap<>(this.functions);<NEW_LINE>clone.allFunctionsCached = null;<NEW_LINE>clone.filterFields = new HashSet<>(this.filterFields);<NEW_LINE>clone.constants = new HashMap<>(this.constants);<NEW_LINE>return clone;<NEW_LINE>} catch (CloneNotSupportedException e) {<NEW_LINE>throw new RuntimeException("Won't happen", e);<NEW_LINE>}<NEW_LINE>}
>(this.summaryFeatures) : null;
26,719
public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult other) {<NEW_LINE>if (other == cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (memberBuilder_ == null) {<NEW_LINE>if (!other.member_.isEmpty()) {<NEW_LINE>if (member_.isEmpty()) {<NEW_LINE>member_ = other.member_;<NEW_LINE><MASK><NEW_LINE>} else {<NEW_LINE>ensureMemberIsMutable();<NEW_LINE>member_.addAll(other.member_);<NEW_LINE>}<NEW_LINE>onChanged();<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>if (!other.member_.isEmpty()) {<NEW_LINE>if (memberBuilder_.isEmpty()) {<NEW_LINE>memberBuilder_.dispose();<NEW_LINE>memberBuilder_ = null;<NEW_LINE>member_ = other.member_;<NEW_LINE>bitField0_ = (bitField0_ & ~0x00000001);<NEW_LINE>memberBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getMemberFieldBuilder() : null;<NEW_LINE>} else {<NEW_LINE>memberBuilder_.addAllMessages(other.member_);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>this.mergeUnknownFields(other.getUnknownFields());<NEW_LINE>return this;<NEW_LINE>}
bitField0_ = (bitField0_ & ~0x00000001);
927,734
public static QueryDomainByInstanceIdResponse unmarshall(QueryDomainByInstanceIdResponse queryDomainByInstanceIdResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryDomainByInstanceIdResponse.setRequestId(_ctx.stringValue("QueryDomainByInstanceIdResponse.RequestId"));<NEW_LINE>queryDomainByInstanceIdResponse.setUserId(_ctx.stringValue("QueryDomainByInstanceIdResponse.UserId"));<NEW_LINE>queryDomainByInstanceIdResponse.setDomainName(_ctx.stringValue("QueryDomainByInstanceIdResponse.DomainName"));<NEW_LINE>queryDomainByInstanceIdResponse.setInstanceId(_ctx.stringValue("QueryDomainByInstanceIdResponse.InstanceId"));<NEW_LINE>queryDomainByInstanceIdResponse.setRegistrationDate<MASK><NEW_LINE>queryDomainByInstanceIdResponse.setExpirationDate(_ctx.stringValue("QueryDomainByInstanceIdResponse.ExpirationDate"));<NEW_LINE>queryDomainByInstanceIdResponse.setRegistrantOrganization(_ctx.stringValue("QueryDomainByInstanceIdResponse.RegistrantOrganization"));<NEW_LINE>queryDomainByInstanceIdResponse.setRegistrantName(_ctx.stringValue("QueryDomainByInstanceIdResponse.RegistrantName"));<NEW_LINE>queryDomainByInstanceIdResponse.setEmail(_ctx.stringValue("QueryDomainByInstanceIdResponse.Email"));<NEW_LINE>queryDomainByInstanceIdResponse.setUpdateProhibitionLock(_ctx.stringValue("QueryDomainByInstanceIdResponse.UpdateProhibitionLock"));<NEW_LINE>queryDomainByInstanceIdResponse.setTransferProhibitionLock(_ctx.stringValue("QueryDomainByInstanceIdResponse.TransferProhibitionLock"));<NEW_LINE>queryDomainByInstanceIdResponse.setDomainNameProxyService(_ctx.booleanValue("QueryDomainByInstanceIdResponse.DomainNameProxyService"));<NEW_LINE>queryDomainByInstanceIdResponse.setPremium(_ctx.booleanValue("QueryDomainByInstanceIdResponse.Premium"));<NEW_LINE>queryDomainByInstanceIdResponse.setEmailVerificationStatus(_ctx.integerValue("QueryDomainByInstanceIdResponse.EmailVerificationStatus"));<NEW_LINE>queryDomainByInstanceIdResponse.setEmailVerificationClientHold(_ctx.booleanValue("QueryDomainByInstanceIdResponse.EmailVerificationClientHold"));<NEW_LINE>queryDomainByInstanceIdResponse.setRealNameStatus(_ctx.stringValue("QueryDomainByInstanceIdResponse.RealNameStatus"));<NEW_LINE>queryDomainByInstanceIdResponse.setRegistrantUpdatingStatus(_ctx.stringValue("QueryDomainByInstanceIdResponse.RegistrantUpdatingStatus"));<NEW_LINE>queryDomainByInstanceIdResponse.setTransferOutStatus(_ctx.stringValue("QueryDomainByInstanceIdResponse.TransferOutStatus"));<NEW_LINE>queryDomainByInstanceIdResponse.setRegistrantType(_ctx.stringValue("QueryDomainByInstanceIdResponse.RegistrantType"));<NEW_LINE>queryDomainByInstanceIdResponse.setDomainNameVerificationStatus(_ctx.stringValue("QueryDomainByInstanceIdResponse.DomainNameVerificationStatus"));<NEW_LINE>queryDomainByInstanceIdResponse.setZhRegistrantOrganization(_ctx.stringValue("QueryDomainByInstanceIdResponse.ZhRegistrantOrganization"));<NEW_LINE>queryDomainByInstanceIdResponse.setZhRegistrantName(_ctx.stringValue("QueryDomainByInstanceIdResponse.ZhRegistrantName"));<NEW_LINE>queryDomainByInstanceIdResponse.setRegistrationDateLong(_ctx.longValue("QueryDomainByInstanceIdResponse.RegistrationDateLong"));<NEW_LINE>queryDomainByInstanceIdResponse.setExpirationDateLong(_ctx.longValue("QueryDomainByInstanceIdResponse.ExpirationDateLong"));<NEW_LINE>List<String> dnsList = new ArrayList<String>();<NEW_LINE>for (int i = 0; i < _ctx.lengthValue("QueryDomainByInstanceIdResponse.DnsList.Length"); i++) {<NEW_LINE>dnsList.add(_ctx.stringValue("QueryDomainByInstanceIdResponse.DnsList[" + i + "]"));<NEW_LINE>}<NEW_LINE>queryDomainByInstanceIdResponse.setDnsList(dnsList);<NEW_LINE>return queryDomainByInstanceIdResponse;<NEW_LINE>}
(_ctx.stringValue("QueryDomainByInstanceIdResponse.RegistrationDate"));
631,969
public void marshal(Object obj, HierarchicalStreamWriter writer, MarshallingContext context) {<NEW_LINE>Media media = (Media) obj;<NEW_LINE>writer.addAttribute("pl", String.valueOf(media.player.ordinal()));<NEW_LINE>writer.addAttribute("ul", media.uri);<NEW_LINE>if (media.title != null)<NEW_LINE>writer.addAttribute("tl", media.title);<NEW_LINE>writer.addAttribute("wd", String<MASK><NEW_LINE>writer.addAttribute("hg", String.valueOf(media.height));<NEW_LINE>writer.addAttribute("fr", media.format);<NEW_LINE>writer.addAttribute("dr", String.valueOf(media.duration));<NEW_LINE>writer.addAttribute("sz", String.valueOf(media.size));<NEW_LINE>if (media.hasBitrate)<NEW_LINE>writer.addAttribute("br", String.valueOf(media.bitrate));<NEW_LINE>if (media.copyright != null)<NEW_LINE>writer.addAttribute("cp", media.copyright);<NEW_LINE>for (String p : media.persons) {<NEW_LINE>writer.startNode("pr");<NEW_LINE>writer.setValue(p);<NEW_LINE>writer.endNode();<NEW_LINE>}<NEW_LINE>}
.valueOf(media.width));
1,445,285
private void processEnumMapTiles(DynmapWorld world, MapType map, ImageVariant var, MapStorageTileEnumCB cb, MapStorageBaseTileEnumCB cbBase, MapStorageTileSearchEndCB cbEnd) {<NEW_LINE>Connection c = null;<NEW_LINE>boolean err = false;<NEW_LINE>Integer mapkey = getMapKey(world, map, var);<NEW_LINE>if (mapkey == null) {<NEW_LINE>if (cbEnd != null)<NEW_LINE>cbEnd.searchEnded();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>c = getConnection();<NEW_LINE>// Query tiles for given mapkey<NEW_LINE>Statement stmt = c.createStatement();<NEW_LINE>// ResultSet rs = stmt.executeQuery("SELECT x,y,zoom,Format FROM Tiles WHERE MapID=" + mapkey + ";");<NEW_LINE>ResultSet rs = doExecuteQuery(stmt, "SELECT x,y,zoom,Format FROM Tiles WHERE MapID=" + mapkey + ";");<NEW_LINE>while (rs.next()) {<NEW_LINE>StorageTile st = new StorageTile(world, map, rs.getInt("x"), rs.getInt("y"), rs.getInt("zoom"), var);<NEW_LINE>final MapType.ImageEncoding encoding = MapType.ImageEncoding.fromOrd(rs.getInt("Format"));<NEW_LINE>if (cb != null)<NEW_LINE>cb.tileFound(st, encoding);<NEW_LINE>if (cbBase != null && st.zoom == 0)<NEW_LINE><MASK><NEW_LINE>st.cleanup();<NEW_LINE>}<NEW_LINE>if (cbEnd != null)<NEW_LINE>cbEnd.searchEnded();<NEW_LINE>rs.close();<NEW_LINE>stmt.close();<NEW_LINE>} catch (SQLException x) {<NEW_LINE>logSQLException("Tile enum error", x);<NEW_LINE>err = true;<NEW_LINE>} finally {<NEW_LINE>releaseConnection(c, err);<NEW_LINE>}<NEW_LINE>}
cbBase.tileFound(st, encoding);
1,674,588
protected void run(CompilationContext info, RuleContext context, List<Hint> result) {<NEW_LINE>ELParserResult elResult = (ELParserResult) context.parserResult;<NEW_LINE>for (ELElement each : elResult.getElements()) {<NEW_LINE>if (!each.isValid()) {<NEW_LINE>// broken AST, skip (perhaps could try just plain string search)<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>for (Pair<AstIdentifier, Node> pair : resourceBundles.collectKeys(each.getNode(), info.context())) {<NEW_LINE>String clearedKey = pair.second().getImage().replace("'", "").replace("\"", "");<NEW_LINE>if (!resourceBundles.isValidKey(pair.first().getImage(), clearedKey)) {<NEW_LINE>Hint hint = new Hint(this, NbBundle.getMessage(ResourceBundleKeys.class, "ResourceBundleKeys_Unknown", clearedKey), elResult.getFileObject(), each.getOriginalOffset(pair.second()), Collections.<<MASK><NEW_LINE>result.add(hint);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}
HintFix>emptyList(), 200);
70,973
public String computeSignature(String requestMethod, String targetUrl, Map<String, String> params, @Sensitive String consumerSecret, @Sensitive String tokenSecret) {<NEW_LINE>String signatureBaseString = createSignatureBaseString(requestMethod, targetUrl, params);<NEW_LINE>// Hash the base string using the consumer secret (and request token secret, if known) as a key<NEW_LINE>String signature = "";<NEW_LINE>try {<NEW_LINE>String secretToEncode = null;<NEW_LINE>if (consumerSecret != null) {<NEW_LINE>secretToEncode = consumerSecret;<NEW_LINE>}<NEW_LINE>StringBuilder keyString = new StringBuilder(Utils.percentEncodeSensitive(secretToEncode)).append("&");<NEW_LINE>if (tokenSecret != null) {<NEW_LINE>keyString.append(Utils.percentEncodeSensitive(tokenSecret));<NEW_LINE>}<NEW_LINE>signature = computeSha1Signature(<MASK><NEW_LINE>} catch (GeneralSecurityException e) {<NEW_LINE>Tr.warning(tc, "TWITTER_ERROR_CREATING_SIGNATURE", new Object[] { e.getLocalizedMessage() });<NEW_LINE>} catch (UnsupportedEncodingException e) {<NEW_LINE>// Should be using UTF-8 encoding, so this should be highly unlikely<NEW_LINE>if (tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "Caught unexpected exception: " + e.getLocalizedMessage(), e);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>return signature;<NEW_LINE>}
signatureBaseString, keyString.toString());
455,463
protected boolean addToHorizontalGroup(final Actor actor, final DragPane dragPane, final Actor directPaneChild) {<NEW_LINE>final Array<Actor<MASK><NEW_LINE>final int indexOfDraggedActor = children.indexOf(actor, true);<NEW_LINE>actor.remove();<NEW_LINE>if (indexOfDraggedActor >= 0) {<NEW_LINE>final int indexOfDirectChild = children.indexOf(directPaneChild, true);<NEW_LINE>if (indexOfDirectChild > indexOfDraggedActor) {<NEW_LINE>dragPane.addActorAfter(directPaneChild, actor);<NEW_LINE>} else {<NEW_LINE>dragPane.addActorBefore(directPaneChild, actor);<NEW_LINE>}<NEW_LINE>} else if (DRAG_POSITION.x > directPaneChild.getWidth() / 2f) {<NEW_LINE>dragPane.addActorAfter(directPaneChild, actor);<NEW_LINE>} else {<NEW_LINE>dragPane.addActorBefore(directPaneChild, actor);<NEW_LINE>}<NEW_LINE>return APPROVE;<NEW_LINE>}
> children = dragPane.getChildren();
1,052,048
public void initialize(AssetManager assetManager, Camera camera) {<NEW_LINE>armatureNode.setCamera(camera);<NEW_LINE>Material matJoints = new Material(assetManager, "Common/MatDefs/Misc/Billboard.j3md");<NEW_LINE>Texture t = assetManager.loadTexture("Common/Textures/dot.png");<NEW_LINE>matJoints.setTexture("Texture", t);<NEW_LINE>matJoints.getAdditionalRenderState().setDepthTest(false);<NEW_LINE>matJoints.getAdditionalRenderState().setBlendMode(RenderState.BlendMode.Alpha);<NEW_LINE>joints.setQueueBucket(RenderQueue.Bucket.Translucent);<NEW_LINE>joints.setMaterial(matJoints);<NEW_LINE>Material matWires = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");<NEW_LINE><MASK><NEW_LINE>matWires.getAdditionalRenderState().setLineWidth(1f);<NEW_LINE>wires.setMaterial(matWires);<NEW_LINE>Material matOutline = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");<NEW_LINE>matOutline.setBoolean("VertexColor", true);<NEW_LINE>matOutline.getAdditionalRenderState().setLineWidth(1f);<NEW_LINE>outlines.setMaterial(matOutline);<NEW_LINE>Material matOutline2 = new Material(assetManager, "Common/MatDefs/Misc/DashedLine.j3md");<NEW_LINE>matOutline2.getAdditionalRenderState().setLineWidth(1);<NEW_LINE>outlines.getChild(1).setMaterial(matOutline2);<NEW_LINE>Material matWires2 = new Material(assetManager, "Common/MatDefs/Misc/DashedLine.j3md");<NEW_LINE>matWires2.getAdditionalRenderState().setLineWidth(1);<NEW_LINE>wires.getChild(1).setMaterial(matWires2);<NEW_LINE>}
matWires.setBoolean("VertexColor", true);
126,061
public void predictions(PredictionsRequest request, StreamObserver<PredictionResponse> responseObserver) {<NEW_LINE>String modelName = request.getModelName();<NEW_LINE>String modelVersion = request.getModelVersion();<NEW_LINE>if (modelName == null || "".equals(modelName)) {<NEW_LINE>BadRequestException e = new BadRequestException("Parameter model_name is required.");<NEW_LINE>sendErrorResponse(responseObserver, Status.INTERNAL, e, "BadRequestException.()");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (modelVersion == null || "".equals(modelVersion)) {<NEW_LINE>modelVersion = null;<NEW_LINE>}<NEW_LINE>String requestId = UUID.randomUUID().toString();<NEW_LINE>RequestInput inputData = new RequestInput(requestId);<NEW_LINE>for (Map.Entry<String, ByteString> entry : request.getInputMap().entrySet()) {<NEW_LINE>inputData.addParameter(new InputParameter(entry.getKey(), entry.getValue().toByteArray()));<NEW_LINE>}<NEW_LINE>MetricAggregator.handleInferenceMetric(modelName, modelVersion);<NEW_LINE>Job job = new GRPCJob(responseObserver, modelName, modelVersion, WorkerCommands.PREDICT, inputData);<NEW_LINE>try {<NEW_LINE>if (!ModelManager.getInstance().addJob(job)) {<NEW_LINE>String responseMessage = ApiUtils.getInferenceErrorResponseMessage(modelName, modelVersion);<NEW_LINE><MASK><NEW_LINE>sendErrorResponse(responseObserver, Status.INTERNAL, e, "InternalServerException.()");<NEW_LINE>}<NEW_LINE>} catch (ModelNotFoundException | ModelVersionNotFoundException e) {<NEW_LINE>sendErrorResponse(responseObserver, Status.INTERNAL, e, null);<NEW_LINE>}<NEW_LINE>}
InternalServerException e = new InternalServerException(responseMessage);
199,026
private RoutingAlgorithm createAlgo(GraphHopper hopper) {<NEW_LINE>Profile profile = hopper.getProfiles().iterator().next();<NEW_LINE>if (useCH) {<NEW_LINE>RoutingCHGraph chGraph = hopper.getCHGraphs().get(profile.getName());<NEW_LINE>logger.info("CH algo, profile: " + profile.getName());<NEW_LINE>QueryGraph qGraph = QueryGraph.create(hopper.getGraphHopperStorage(), fromRes, toRes);<NEW_LINE>QueryRoutingCHGraph queryRoutingCHGraph = new QueryRoutingCHGraph(chGraph, qGraph);<NEW_LINE>return new CHDebugAlgo(queryRoutingCHGraph, mg);<NEW_LINE>} else {<NEW_LINE>LandmarkStorage landmarks = hopper.getLandmarks().get(profile.getName());<NEW_LINE>RoutingAlgorithmFactory algoFactory = (g, w, opts) -> {<NEW_LINE>RoutingAlgorithm algo = new LMRoutingAlgorithmFactory(landmarks).createAlgo(g, w, opts);<NEW_LINE>if (algo instanceof AStarBidirection) {<NEW_LINE>return new DebugAStarBi(g, w, opts.getTraversalMode(), mg).setApproximation(((AStarBidirection) algo).getApproximation());<NEW_LINE>} else if (algo instanceof AStar) {<NEW_LINE>return new DebugAStar(g, w, opts.getTraversalMode(), mg);<NEW_LINE>} else if (algo instanceof DijkstraBidirectionRef) {<NEW_LINE>return new DebugDijkstraBidirection(g, w, opts.getTraversalMode(), mg);<NEW_LINE>} else if (algo instanceof Dijkstra) {<NEW_LINE>return new DebugDijkstraSimple(g, w, opts.getTraversalMode(), mg);<NEW_LINE>}<NEW_LINE>return algo;<NEW_LINE>};<NEW_LINE>AlgorithmOptions algoOpts = new AlgorithmOptions(<MASK><NEW_LINE>logger.info("algoOpts:" + algoOpts + ", weighting: " + landmarks.getWeighting() + ", profile: " + profile.getName());<NEW_LINE>QueryGraph qGraph = QueryGraph.create(graph, fromRes, toRes);<NEW_LINE>return algoFactory.createAlgo(qGraph, landmarks.getWeighting(), algoOpts);<NEW_LINE>}<NEW_LINE>}
).setAlgorithm(Algorithms.ASTAR_BI);
1,147,904
public void paint(Graphics2D g, Rectangle dirtyArea, ChartContext context) {<NEW_LINE>if (gradient || selection) {<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < rowsCount; i++) {<NEW_LINE>TimelineChart.Row row = chart.getRow(i);<NEW_LINE>ChartContext rowContext = row.getContext();<NEW_LINE>int y = Utils.checkedInt(rowContext.getViewportOffsetY());<NEW_LINE>int h = Utils.checkedInt(rowContext.getViewportHeight() - 1);<NEW_LINE>if (gradient) {<NEW_LINE>g.setPaint(new LinearGradientPaint(0, y, 0, y + h, FRACTIONS, COLORS));<NEW_LINE>g.fillRect(0, y, chart.getWidth(), h);<NEW_LINE>}<NEW_LINE>if (selection && chart.isRowSelected(row)) {<NEW_LINE>g.setColor(SELECTED_FILTER);<NEW_LINE>g.fillRect(0, y, chart.getWidth(), h);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}
int rowsCount = chart.getRowsCount();
1,462,807
public static Bitmap createResizedImage(Context context, Uri imageUri, int newWidth, int newHeight, int quality, int rotation, String mode, boolean onlyScaleDown) throws IOException {<NEW_LINE>Bitmap sourceImage = null;<NEW_LINE>String imageUriScheme = imageUri.getScheme();<NEW_LINE>if (imageUriScheme == null || imageUriScheme.equalsIgnoreCase(SCHEME_FILE) || imageUriScheme.equalsIgnoreCase(SCHEME_CONTENT)) {<NEW_LINE>sourceImage = ImageResizer.loadBitmapFromFile(<MASK><NEW_LINE>} else if (imageUriScheme.equalsIgnoreCase(SCHEME_HTTP) || imageUriScheme.equalsIgnoreCase(SCHEME_HTTPS)) {<NEW_LINE>sourceImage = ImageResizer.loadBitmapFromURL(imageUri, newWidth, newHeight);<NEW_LINE>} else if (imageUriScheme.equalsIgnoreCase(SCHEME_DATA)) {<NEW_LINE>sourceImage = ImageResizer.loadBitmapFromBase64(imageUri);<NEW_LINE>}<NEW_LINE>if (sourceImage == null) {<NEW_LINE>throw new IOException("Unable to load source image from path");<NEW_LINE>}<NEW_LINE>// Rotate if necessary. Rotate first because we will otherwise<NEW_LINE>// get wrong dimensions if we want the new dimensions to be after rotation.<NEW_LINE>// NOTE: This will "fix" the image using it's exif info if it is rotated as well.<NEW_LINE>Bitmap rotatedImage = sourceImage;<NEW_LINE>int orientation = getOrientation(context, imageUri);<NEW_LINE>rotation = orientation + rotation;<NEW_LINE>rotatedImage = ImageResizer.rotateImage(sourceImage, rotation);<NEW_LINE>if (rotatedImage == null) {<NEW_LINE>throw new IOException("Unable to rotate image. Most likely due to not enough memory.");<NEW_LINE>}<NEW_LINE>if (rotatedImage != rotatedImage) {<NEW_LINE>sourceImage.recycle();<NEW_LINE>}<NEW_LINE>// Scale image<NEW_LINE>Bitmap scaledImage = ImageResizer.resizeImage(rotatedImage, newWidth, newHeight, mode, onlyScaleDown);<NEW_LINE>if (scaledImage == null) {<NEW_LINE>throw new IOException("Unable to resize image. Most likely due to not enough memory.");<NEW_LINE>}<NEW_LINE>if (scaledImage != rotatedImage) {<NEW_LINE>rotatedImage.recycle();<NEW_LINE>}<NEW_LINE>return scaledImage;<NEW_LINE>}
context, imageUri, newWidth, newHeight);
633,891
public CreateBucketResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>CreateBucketResult createBucketResult = new CreateBucketResult();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_LINE>if (context.isStartOfDocument()) {<NEW_LINE>context.setCurrentHeader("Location");<NEW_LINE>createBucketResult.setLocation(StringStaxUnmarshaller.getInstance().unmarshall(context));<NEW_LINE>}<NEW_LINE>while (true) {<NEW_LINE>XMLEvent xmlEvent = context.nextEvent();<NEW_LINE>if (xmlEvent.isEndDocument())<NEW_LINE>return createBucketResult;<NEW_LINE>if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) {<NEW_LINE>if (context.testExpression("BucketArn", targetDepth)) {<NEW_LINE>createBucketResult.setBucketArn(StringStaxUnmarshaller.getInstance().unmarshall(context));<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>} else if (xmlEvent.isEndElement()) {<NEW_LINE>if (context.getCurrentDepth() < originalDepth) {<NEW_LINE>return createBucketResult;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}
int originalDepth = context.getCurrentDepth();
303,208
public static <V, P extends CalculatorParser<V>> void main(Class<P> parserClass) {<NEW_LINE>CalculatorParser<V> parser = Parboiled.createParser(parserClass);<NEW_LINE>while (true) {<NEW_LINE>System.out.print("Enter a calculators expression (single RETURN to exit)!\n");<NEW_LINE>String input = new Scanner(System.in).nextLine();<NEW_LINE>if (StringUtils.isEmpty(input))<NEW_LINE>break;<NEW_LINE>ParsingResult<?> result = new RecoveringParseRunner(parser.InputLine()).run(input);<NEW_LINE>if (result.hasErrors()) {<NEW_LINE>System.out.println("\nParse Errors:\n" + printParseErrors(result));<NEW_LINE>}<NEW_LINE>Object value = result.parseTreeRoot.getValue();<NEW_LINE>if (value != null) {<NEW_LINE>String str = value.toString();<NEW_LINE>int <MASK><NEW_LINE>// extract value part of AST node toString()<NEW_LINE>if (ix >= 0)<NEW_LINE>str = str.substring(ix + 2);<NEW_LINE>System.out.println(input + " = " + str + '\n');<NEW_LINE>}<NEW_LINE>if (value instanceof GraphNode) {<NEW_LINE>System.out.println("\nAbstract Syntax Tree:\n" + printTree((GraphNode) value, new ToStringFormatter(null)) + '\n');<NEW_LINE>} else {<NEW_LINE>System.out.println("\nParse Tree:\n" + printNodeTree(result) + '\n');<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}
ix = str.indexOf('|');
423,960
protected void configure() {<NEW_LINE>try {<NEW_LINE>ConfigurationManager.loadCascadedPropertiesFromResources("application");<NEW_LINE>} catch (Exception ex) {<NEW_LINE>throw new RuntimeException("Error loading configuration: " + ex.getMessage(), ex);<NEW_LINE>}<NEW_LINE>bind(AbstractConfiguration.class).toInstance(ConfigurationManager.getConfigInstance());<NEW_LINE>bind(DynamicCodeCompiler.class).to(GroovyCompiler.class);<NEW_LINE>bind(FilenameFilter.class).to(GroovyFileFilter.class);<NEW_LINE>install(new EurekaModule());<NEW_LINE>// sample specific bindings<NEW_LINE>bind(BaseServerStartup.class).to(SampleServerStartup.class);<NEW_LINE>// use provided basic netty origin manager<NEW_LINE>bind(OriginManager.class).to(BasicNettyOriginManager.class);<NEW_LINE>// zuul filter loading<NEW_LINE>install(new ZuulFiltersModule());<NEW_LINE>bind(FilterLoader.class).to(DynamicFilterLoader.class);<NEW_LINE>bind(FilterRegistry.class).to(MutableFilterRegistry.class);<NEW_LINE>bind(FilterFileManager.class).asEagerSingleton();<NEW_LINE>// general server bindings<NEW_LINE>// health/discovery status<NEW_LINE>bind(ServerStatusManager.class);<NEW_LINE>// decorate new sessions when requests come in<NEW_LINE>bind(SessionContextDecorator.class<MASK><NEW_LINE>// atlas metrics registry<NEW_LINE>bind(Registry.class).to(DefaultRegistry.class);<NEW_LINE>// metrics post-request completion<NEW_LINE>bind(RequestCompleteHandler.class).to(BasicRequestCompleteHandler.class);<NEW_LINE>// timings publisher<NEW_LINE>bind(RequestMetricsPublisher.class).to(BasicRequestMetricsPublisher.class);<NEW_LINE>// access logger, including request ID generator<NEW_LINE>bind(AccessLogPublisher.class).toInstance(new AccessLogPublisher("ACCESS", (channel, httpRequest) -> ClientRequestReceiver.getRequestFromChannel(channel).getContext().getUUID()));<NEW_LINE>}
).to(ZuulSessionContextDecorator.class);
1,406,613
private Map<String, String> discover() throws Exception {<NEW_LINE>if (SystemEnvProperties.VIP_SATURN_CONSOLE_URI_LIST.isEmpty()) {<NEW_LINE>throw new Exception("Please configure the parameter " + SystemEnvProperties.NAME_VIP_SATURN_CONSOLE_URI + " with env or -D");<NEW_LINE>}<NEW_LINE>int size = SystemEnvProperties.VIP_SATURN_CONSOLE_URI_LIST.size();<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>String consoleUri = SystemEnvProperties.VIP_SATURN_CONSOLE_URI_LIST.get(i);<NEW_LINE>String url = consoleUri + "/rest/v1/discovery?namespace=" + namespace;<NEW_LINE>CloseableHttpClient httpClient = null;<NEW_LINE>try {<NEW_LINE>httpClient = HttpClientBuilder.create().build();<NEW_LINE>HttpGet httpGet = new HttpGet(url);<NEW_LINE>RequestConfig requestConfig = RequestConfig.custom().setConnectTimeout(5000).setSocketTimeout(10000).build();<NEW_LINE>httpGet.setConfig(requestConfig);<NEW_LINE>CloseableHttpResponse httpResponse = httpClient.execute(httpGet);<NEW_LINE>StatusLine statusLine = httpResponse.getStatusLine();<NEW_LINE>String responseBody = EntityUtils.toString(httpResponse.getEntity());<NEW_LINE>Integer statusCode = statusLine != null ? statusLine.getStatusCode() : null;<NEW_LINE>if (statusLine != null && statusCode.intValue() == HttpStatus.SC_OK) {<NEW_LINE>Map<String, String> discoveryInfo = JsonUtils.getGson().fromJson(responseBody, new TypeToken<Map<String, String>>() {<NEW_LINE>}.getType());<NEW_LINE>String connectionString = discoveryInfo.get(DISCOVER_INFO_ZK_CONN_STR);<NEW_LINE>if (StringUtils.isBlank(connectionString)) {<NEW_LINE>LogUtils.warn(log, LogEvents.ExecutorEvent.INIT, "ZK connection string is blank!");<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>LogUtils.info(log, LogEvents.ExecutorEvent.INIT, "Discover successfully. Url: {}, discovery info: {}", url, discoveryInfo);<NEW_LINE>return discoveryInfo;<NEW_LINE>} else {<NEW_LINE>handleDiscoverException(responseBody, statusCode);<NEW_LINE>}<NEW_LINE>} catch (SaturnExecutorException e) {<NEW_LINE>LogUtils.error(log, LogEvents.ExecutorEvent.INIT, e.getMessage(), e);<NEW_LINE>if (e.getCode() != SaturnExecutorExceptionCode.UNEXPECTED_EXCEPTION) {<NEW_LINE>throw e;<NEW_LINE>}<NEW_LINE>} catch (Throwable t) {<NEW_LINE>LogUtils.error(log, LogEvents.ExecutorEvent.INIT, "Fail to discover from Saturn Console. Url: {}", url, t);<NEW_LINE>} finally {<NEW_LINE>if (httpClient != null) {<NEW_LINE>try {<NEW_LINE>httpClient.close();<NEW_LINE>} catch (IOException e) {<NEW_LINE>LogUtils.error(log, LogEvents.<MASK><NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>List<String> context = buildContext();<NEW_LINE>String msg = "Fail to discover from Saturn Console! Please make sure that you have added the target namespace on Saturn Console, namespace:%s, context:%s";<NEW_LINE>throw new Exception(String.format(msg, namespace, context));<NEW_LINE>}
ExecutorEvent.INIT, "Fail to close httpclient", e);
914,739
public void onRefresh() {<NEW_LINE>if (this.swipeRefreshBlocker > System.currentTimeMillis() || this.initMode || this.progressIndicator == null || this.progressIndicator.getVisibility() == View.VISIBLE) {<NEW_LINE>this.swipeRefreshLayout.setRefreshing(false);<NEW_LINE>// Do not double scan<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>this.progressIndicator.setVisibility(View.VISIBLE);<NEW_LINE>this.progressIndicator.setProgressCompat(0, false);<NEW_LINE>this.swipeRefreshBlocker = System.currentTimeMillis() + 5_000L;<NEW_LINE>// this.swipeRefreshLayout.setRefreshing(true); ??<NEW_LINE>new Thread(() -> {<NEW_LINE>// Allow DNS reload from network<NEW_LINE>Http.cleanDnsCache();<NEW_LINE>RepoManager.getINSTANCE().update(value -> runOnUiThread(() -> this.progressIndicator.setProgressCompat((int) (value * PRECISION), true)));<NEW_LINE>if (!NotificationType.NO_INTERNET.shouldRemove())<NEW_LINE>moduleViewListBuilder.addNotification(NotificationType.NO_INTERNET);<NEW_LINE>else if (AppUpdateManager.getAppUpdateManager().checkUpdate(true))<NEW_LINE>moduleViewListBuilder.addNotification(NotificationType.UPDATE_AVAILABLE);<NEW_LINE>runOnUiThread(() -> {<NEW_LINE>this.progressIndicator.setVisibility(View.GONE);<NEW_LINE>this.swipeRefreshLayout.setRefreshing(false);<NEW_LINE>});<NEW_LINE>if (!NotificationType.NO_INTERNET.shouldRemove()) {<NEW_LINE>this.moduleViewListBuilder.addNotification(NotificationType.NO_INTERNET);<NEW_LINE>}<NEW_LINE>RepoManager.getINSTANCE().updateEnabledStates();<NEW_LINE>this.moduleViewListBuilder.appendRemoteModules();<NEW_LINE>this.moduleViewListBuilder.applyTo(moduleList, moduleViewAdapter);<NEW_LINE><MASK><NEW_LINE>}
}, "Repo update thread").start();
357,875
public WhileStatementNode transform(WhileStatementNode whileStatementNode) {<NEW_LINE>boolean hasOnFailClause = whileStatementNode.onFailClause().isPresent();<NEW_LINE>Token whileKeyword = formatToken(whileStatementNode.whileKeyword(), 1, 0);<NEW_LINE>ExpressionNode condition = formatNode(whileStatementNode.condition(), 1, 0);<NEW_LINE>BlockStatementNode whileBody;<NEW_LINE>OnFailClauseNode onFailClause = null;<NEW_LINE>if (hasOnFailClause) {<NEW_LINE>whileBody = formatNode(whileStatementNode.whileBody(), 1, 0);<NEW_LINE>onFailClause = formatNode(whileStatementNode.onFailClause().orElse(null), <MASK><NEW_LINE>} else {<NEW_LINE>whileBody = formatNode(whileStatementNode.whileBody(), env.trailingWS, env.trailingNL);<NEW_LINE>}<NEW_LINE>return whileStatementNode.modify().withWhileKeyword(whileKeyword).withCondition(condition).withWhileBody(whileBody).withOnFailClause(onFailClause).apply();<NEW_LINE>}
env.trailingWS, env.trailingNL);
1,793,236
public static void fuzzerInitialize() {<NEW_LINE>// Install a logger that constructs the log message, but never prints it.<NEW_LINE>// This noticeably increases the fuzzing performance<NEW_LINE>DefaultConfigurationBuilder configBuilder = new DefaultConfigurationBuilder();<NEW_LINE>configBuilder.setPackages(FuzzingAppender.class.getPackage().getName());<NEW_LINE>AppenderComponentBuilder fuzzingAppender = configBuilder.newAppender("nullAppender", "FuzzingAppender");<NEW_LINE>configBuilder.add(fuzzingAppender);<NEW_LINE>RootLoggerComponentBuilder rootLogger = configBuilder.newRootLogger();<NEW_LINE>rootLogger.add(configBuilder.newAppenderRef("nullAppender"));<NEW_LINE>configBuilder.add(rootLogger);<NEW_LINE>Configurator.reconfigure(configBuilder.build());<NEW_LINE>// Disable logging of exceptions caught in log4j itself.<NEW_LINE>StatusLogger.getLogger().reset();<NEW_LINE>StatusLogger.getLogger(<MASK><NEW_LINE>}
).setLevel(Level.OFF);
263,835
// / Extract unsatisfiable core example<NEW_LINE>public void unsatCoreAndProofExample(Context ctx) {<NEW_LINE>System.out.println("UnsatCoreAndProofExample");<NEW_LINE>Log.append("UnsatCoreAndProofExample");<NEW_LINE>Solver solver = ctx.mkSolver();<NEW_LINE>BoolExpr pa = ctx.mkBoolConst("PredA");<NEW_LINE>BoolExpr <MASK><NEW_LINE>BoolExpr pc = ctx.mkBoolConst("PredC");<NEW_LINE>BoolExpr pd = ctx.mkBoolConst("PredD");<NEW_LINE>BoolExpr p1 = ctx.mkBoolConst("P1");<NEW_LINE>BoolExpr p2 = ctx.mkBoolConst("P2");<NEW_LINE>BoolExpr p3 = ctx.mkBoolConst("P3");<NEW_LINE>BoolExpr p4 = ctx.mkBoolConst("P4");<NEW_LINE>BoolExpr[] assumptions = new BoolExpr[] { ctx.mkNot(p1), ctx.mkNot(p2), ctx.mkNot(p3), ctx.mkNot(p4) };<NEW_LINE>BoolExpr f1 = ctx.mkAnd(pa, pb, pc);<NEW_LINE>BoolExpr f2 = ctx.mkAnd(pa, ctx.mkNot(pb), pc);<NEW_LINE>BoolExpr f3 = ctx.mkOr(ctx.mkNot(pa), ctx.mkNot(pc));<NEW_LINE>BoolExpr f4 = pd;<NEW_LINE>solver.add(ctx.mkOr(f1, p1));<NEW_LINE>solver.add(ctx.mkOr(f2, p2));<NEW_LINE>solver.add(ctx.mkOr(f3, p3));<NEW_LINE>solver.add(ctx.mkOr(f4, p4));<NEW_LINE>Status result = solver.check(assumptions);<NEW_LINE>if (result == Status.UNSATISFIABLE) {<NEW_LINE>System.out.println("unsat");<NEW_LINE>System.out.printf("proof: %s%n", solver.getProof());<NEW_LINE>System.out.println("core: ");<NEW_LINE>for (Expr<?> c : solver.getUnsatCore()) {<NEW_LINE>System.out.println(c);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}
pb = ctx.mkBoolConst("PredB");
1,048,672
private static void logMessageReceived(List<String> headerLines, String content, SocketAddress remote, RendererConfiguration renderer) {<NEW_LINE>StringBuilder header = new StringBuilder();<NEW_LINE>String soapAction = null;<NEW_LINE>if (headerLines != null) {<NEW_LINE>if (!headerLines.isEmpty()) {<NEW_LINE>header.append(headerLines.get(0)).append("\n\n");<NEW_LINE>}<NEW_LINE>if (headerLines.size() > 1) {<NEW_LINE>header.append("HEADER:\n");<NEW_LINE>for (int i = 1; i < headerLines.size(); i++) {<NEW_LINE>if (isNotBlank(headerLines.get(i))) {<NEW_LINE>header.append(" ").append(headerLines.get(i)).append("\n");<NEW_LINE>if (headerLines.get(i).toUpperCase(Locale.ROOT).contains("SOAPACTION")) {<NEW_LINE>soapAction = headerLines.get(i).toUpperCase(Locale.ROOT).replaceFirst("\\s*SOAPACTION:\\s*", "");<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>header.append("No header information available\n");<NEW_LINE>}<NEW_LINE>String formattedContent = null;<NEW_LINE>if (StringUtils.isNotBlank(content)) {<NEW_LINE>try {<NEW_LINE>formattedContent = StringUtil.prettifyXML(content, StandardCharsets.UTF_8, 2);<NEW_LINE>} catch (XPathExpressionException | SAXException | ParserConfigurationException | TransformerException e) {<NEW_LINE>LOGGER.trace("XML parsing failed with:\n{}", e);<NEW_LINE>formattedContent = " Content isn't valid XML, using text formatting: " + e.getMessage() + "\n";<NEW_LINE>formattedContent += " " + content.<MASK><NEW_LINE>}<NEW_LINE>}<NEW_LINE>String requestType = "";<NEW_LINE>// Map known requests to request type<NEW_LINE>if (soapAction != null) {<NEW_LINE>if (soapAction.contains("CONTENTDIRECTORY:1#BROWSE")) {<NEW_LINE>requestType = "browse ";<NEW_LINE>} else if (soapAction.contains("CONTENTDIRECTORY:1#SEARCH")) {<NEW_LINE>requestType = "search ";<NEW_LINE>}<NEW_LINE>}<NEW_LINE>String rendererName;<NEW_LINE>if (renderer != null) {<NEW_LINE>if (isNotBlank(renderer.getRendererName())) {<NEW_LINE>if (isBlank(renderer.getConfName()) || renderer.getRendererName().equals(renderer.getConfName())) {<NEW_LINE>rendererName = renderer.getRendererName();<NEW_LINE>} else {<NEW_LINE>rendererName = renderer.getRendererName() + " [" + renderer.getConfName() + "]";<NEW_LINE>}<NEW_LINE>} else if (isNotBlank(renderer.getConfName())) {<NEW_LINE>rendererName = renderer.getConfName();<NEW_LINE>} else {<NEW_LINE>rendererName = "Unnamed";<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>rendererName = "Unknown";<NEW_LINE>}<NEW_LINE>if (remote instanceof InetSocketAddress) {<NEW_LINE>rendererName += " (" + ((InetSocketAddress) remote).getAddress().getHostAddress() + ":" + ((InetSocketAddress) remote).getPort() + ")";<NEW_LINE>}<NEW_LINE>LOGGER.trace("Received a {}request from {}:\n\n{}{}", requestType, rendererName, header, StringUtils.isNotBlank(formattedContent) ? "\nCONTENT:\n" + formattedContent : "");<NEW_LINE>}
replace("\n", "\n ") + "\n";
1,636,261
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>binding = DataBindingUtil.setContentView(<MASK><NEW_LINE>prefs = Prefs.get(this);<NEW_LINE>gray = ContextCompat.getColor(this, R.color.background);<NEW_LINE>betweenPadding = getResources().getDimensionPixelSize(R.dimen.padding_small);<NEW_LINE>rainbow200 = getResources().getIntArray(R.array.rainbow_200);<NEW_LINE>rainbow500 = getResources().getIntArray(R.array.rainbow_500);<NEW_LINE>groupAdapter = new GroupieAdapter();<NEW_LINE>groupAdapter.setOnItemClickListener(onItemClickListener);<NEW_LINE>groupAdapter.setOnItemLongClickListener(onItemLongClickListener);<NEW_LINE>groupAdapter.setSpanCount(12);<NEW_LINE>populateAdapter();<NEW_LINE>layoutManager = new GridLayoutManager(this, groupAdapter.getSpanCount());<NEW_LINE>layoutManager.setSpanSizeLookup(groupAdapter.getSpanSizeLookup());<NEW_LINE>final RecyclerView recyclerView = binding.recyclerView;<NEW_LINE>recyclerView.setLayoutManager(layoutManager);<NEW_LINE>recyclerView.addItemDecoration(new HeaderItemDecoration(gray, betweenPadding));<NEW_LINE>recyclerView.addItemDecoration(new InsetItemDecoration(gray, betweenPadding));<NEW_LINE>recyclerView.addItemDecoration(new DebugItemDecoration(this));<NEW_LINE>recyclerView.setAdapter(groupAdapter);<NEW_LINE>recyclerView.addOnScrollListener(new InfiniteScrollListener(layoutManager) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onLoadMore(int currentPage) {<NEW_LINE>for (int i = 0; i < 5; i++) {<NEW_LINE>infiniteLoadingSection.add(new CardItem());<NEW_LINE>}<NEW_LINE>}<NEW_LINE>});<NEW_LINE>ItemTouchHelper itemTouchHelper = new ItemTouchHelper(touchCallback);<NEW_LINE>itemTouchHelper.attachToRecyclerView(recyclerView);<NEW_LINE>binding.fab.setOnClickListener(new View.OnClickListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onClick(View view) {<NEW_LINE>startActivity(new Intent(MainActivity.this, SettingsActivity.class));<NEW_LINE>}<NEW_LINE>});<NEW_LINE>prefs.registerListener(onSharedPrefChangeListener);<NEW_LINE>}
this, R.layout.activity_main);
218,436
public void mapPartition(Iterable<Row> values, Collector<Row> out) {<NEW_LINE>Params meta = null;<NEW_LINE>BaseLSH lsh = (BaseLSH) getRuntimeContext().getBroadcastVariable("lsh").get(0);<NEW_LINE>if (getRuntimeContext().getIndexOfThisSubtask() == 0) {<NEW_LINE>meta = params;<NEW_LINE>if (lsh instanceof BucketRandomProjectionLSH) {<NEW_LINE>BucketRandomProjectionLSH brpLsh = (BucketRandomProjectionLSH) lsh;<NEW_LINE>meta.set(BucketRandomProjectionLSH.RAND_VECTORS, brpLsh.getRandVectors()).set(BucketRandomProjectionLSH.RAND_NUMBER, brpLsh.getRandNumber()).set(BucketRandomProjectionLSH.<MASK><NEW_LINE>} else {<NEW_LINE>MinHashLSH minHashLSH = (MinHashLSH) lsh;<NEW_LINE>meta.set(MinHashLSH.RAND_COEFFICIENTS_A, minHashLSH.getRandCoefficientsA()).set(MinHashLSH.RAND_COEFFICIENTS_B, minHashLSH.getRandCoefficientsB());<NEW_LINE>}<NEW_LINE>}<NEW_LINE>new LSHModelDataConverter().save(Tuple2.of(meta, values), out);<NEW_LINE>}
PROJECTION_WIDTH, brpLsh.getProjectionWidth());
713,629
// findBPartner<NEW_LINE>@Override<NEW_LINE>public void refreshPanel() {<NEW_LINE>logger.fine("RefreshPanel");<NEW_LINE>if (!posPanel.hasOrder()) {<NEW_LINE>// Document Info<NEW_LINE>totalTitle.setTitle(Msg.getMsg(Env.getCtx(), "Totals"));<NEW_LINE>fieldSalesRep.setText(posPanel.getSalesRepName());<NEW_LINE>fieldDocumentType.setText(Msg.getMsg(posPanel<MASK><NEW_LINE>fieldDocumentNo.setText(Msg.getMsg(posPanel.getCtx(), "New"));<NEW_LINE>fieldDocumentStatus.setText("");<NEW_LINE>fieldDocumentDate.setText("");<NEW_LINE>fieldTotalLines.setText(posPanel.getNumberFormat().format(Env.ZERO));<NEW_LINE>fieldGrandTotal.setText(posPanel.getNumberFormat().format(Env.ZERO));<NEW_LINE>fieldTaxAmount.setText(posPanel.getNumberFormat().format(Env.ZERO));<NEW_LINE>fieldPartnerName.setText(null);<NEW_LINE>} else {<NEW_LINE>// Set Values<NEW_LINE>// Document Info<NEW_LINE>String currencyISOCode = posPanel.getCurSymbol();<NEW_LINE>totalTitle.setTitle(Msg.getMsg(Env.getCtx(), "Totals") + " (" + currencyISOCode + ")");<NEW_LINE>fieldSalesRep.setText(posPanel.getOrder().getSalesRep().getName());<NEW_LINE>fieldDocumentType.setText(posPanel.getDocumentTypeName());<NEW_LINE>fieldDocumentNo.setText(posPanel.getDocumentNo());<NEW_LINE>fieldDocumentStatus.setText(posPanel.getOrder().getDocStatusName());<NEW_LINE>fieldDocumentDate.setText(posPanel.getDateOrderedForView());<NEW_LINE>fieldTotalLines.setText(posPanel.getTotaLinesForView());<NEW_LINE>fieldGrandTotal.setText(posPanel.getGrandTotalForView());<NEW_LINE>fieldTaxAmount.setText(posPanel.getTaxAmtForView());<NEW_LINE>fieldPartnerName.setText(posPanel.getBPName());<NEW_LINE>}<NEW_LINE>// Repaint<NEW_LINE>totalPanel.invalidate();<NEW_LINE>totalPanel.repaint();<NEW_LINE>}
.getCtx(), "Order"));
1,074,107
private <R> R request(String urlSuffix, Http method, Format format, Object jsonValue) {<NEW_LINE>jsonValue = Json.toBindings(jsonValue);<NEW_LINE>urlSuffix = appendParams(urlSuffix);<NEW_LINE>Endpoint endpoint = urlSuffix != null ? _endpoint.withUrlSuffix(urlSuffix) : _endpoint;<NEW_LINE>Object result = null;<NEW_LINE>switch(format) {<NEW_LINE>case Json:<NEW_LINE>_headers.put("Accept", "application/json");<NEW_LINE>result = endpoint.sendJsonRequest(method.name(<MASK><NEW_LINE>break;<NEW_LINE>case Yaml:<NEW_LINE>_headers.put("Accept", "application/x-yaml, application/yaml, text/yaml;q=0.9");<NEW_LINE>result = endpoint.sendYamlRequest(method.name(), jsonValue, _headers, _timeout);<NEW_LINE>break;<NEW_LINE>case Xml:<NEW_LINE>_headers.put("Accept", "application/xml");<NEW_LINE>result = endpoint.sendXmlRequest(method.name(), jsonValue, _headers, _timeout);<NEW_LINE>break;<NEW_LINE>case Csv:<NEW_LINE>_headers.put("Accept", "text/csv");<NEW_LINE>result = endpoint.sendCsvRequest(method.name(), jsonValue, _headers, _timeout);<NEW_LINE>break;<NEW_LINE>case Text:<NEW_LINE>result = endpoint.sendPlainTextRequest(method.name(), jsonValue, _headers, _timeout);<NEW_LINE>break;<NEW_LINE>default:<NEW_LINE>throw new IllegalArgumentException("format: " + format);<NEW_LINE>}<NEW_LINE>// noinspection unchecked<NEW_LINE>result = _resultCoercer.apply(result);<NEW_LINE>return (R) result;<NEW_LINE>}
), jsonValue, _headers, _timeout);
945,496
public ResponseEntity<Void> deleteUserWithHttpInfo(String username) throws RestClientException {<NEW_LINE>Object postBody = null;<NEW_LINE>// verify the required parameter 'username' is set<NEW_LINE>if (username == null) {<NEW_LINE>throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'username' when calling deleteUser");<NEW_LINE>}<NEW_LINE>// create path and map variables<NEW_LINE>final Map<String, Object> uriVariables = new HashMap<String, Object>();<NEW_LINE>uriVariables.put("username", username);<NEW_LINE>String path = apiClient.expandPath("/user/{username}", uriVariables);<NEW_LINE>final MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>();<NEW_LINE>final HttpHeaders headerParams = new HttpHeaders();<NEW_LINE>final MultiValueMap<String, String> cookieParams = new LinkedMultiValueMap<String, String>();<NEW_LINE>final MultiValueMap formParams = new LinkedMultiValueMap();<NEW_LINE>final String[] accepts = {};<NEW_LINE>final List<MediaType> accept = apiClient.selectHeaderAccept(accepts);<NEW_LINE>final String[] contentTypes = {};<NEW_LINE>final MediaType contentType = apiClient.selectHeaderContentType(contentTypes);<NEW_LINE>String[] authNames = new String[] {};<NEW_LINE>ParameterizedTypeReference<Void> returnType = new ParameterizedTypeReference<Void>() {<NEW_LINE>};<NEW_LINE>return apiClient.invokeAPI(path, HttpMethod.DELETE, queryParams, postBody, headerParams, cookieParams, formParams, <MASK><NEW_LINE>}
accept, contentType, authNames, returnType);
1,771,562
private void parseScenes(final Element e, final Metadata md) {<NEW_LINE>final Element scenesElement = e.getChild("scenes", getNS());<NEW_LINE>if (scenesElement != null) {<NEW_LINE>final List<Element> sceneElements = scenesElement.getChildren("scene", getNS());<NEW_LINE>final Scene[] scenes = new Scene[sceneElements.size()];<NEW_LINE>for (int i = 0; i < sceneElements.size(); i++) {<NEW_LINE>scenes[i] = new Scene();<NEW_LINE>scenes[i].setTitle(sceneElements.get(i).getChildText("sceneTitle", getNS()));<NEW_LINE>scenes[i].setDescription(sceneElements.get(i).getChildText("sceneDescription", getNS()));<NEW_LINE>final String sceneStartTime = sceneElements.get(i).getChildText("sceneStartTime", getNS());<NEW_LINE>if (sceneStartTime != null) {<NEW_LINE>scenes[i].<MASK><NEW_LINE>}<NEW_LINE>final String sceneEndTime = sceneElements.get(i).getChildText("sceneEndTime", getNS());<NEW_LINE>if (sceneEndTime != null) {<NEW_LINE>scenes[i].setEndTime(new Time(sceneEndTime));<NEW_LINE>}<NEW_LINE>}<NEW_LINE>md.setScenes(scenes);<NEW_LINE>}<NEW_LINE>}
setStartTime(new Time(sceneStartTime));
906,525
final DescribeEndpointsResult executeDescribeEndpoints(DescribeEndpointsRequest describeEndpointsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEndpointsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DescribeEndpointsRequest> request = null;<NEW_LINE>Response<DescribeEndpointsResult> response = null;<NEW_LINE>try {<NEW_LINE>awsRequestMetrics.startEvent(Field.RequestMarshallTime);<NEW_LINE>try {<NEW_LINE>request = new DescribeEndpointsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeEndpointsRequest));<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, "DynamoDB");<NEW_LINE>request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeEndpoints");<NEW_LINE>request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);<NEW_LINE>} finally {<NEW_LINE>awsRequestMetrics.endEvent(Field.RequestMarshallTime);<NEW_LINE>}<NEW_LINE>HttpResponseHandler<AmazonWebServiceResponse<DescribeEndpointsResult>> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeEndpointsResultJsonUnmarshaller());<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,457,474
public void run(RegressionEnvironment env) {<NEW_LINE>String startTime = "2002-05-30T09:00:00.000";<NEW_LINE>env.advanceTime(DateTime.parseDefaultMSec(startTime));<NEW_LINE>String[] fields = "val0,val1,val2,val3,val4,val5,val6,val7,val8,val9,val10,val11".split(",");<NEW_LINE>String eplFragment = "@name('s0') select " + "current_timestamp.plus(1 hour 10 sec 20 msec) as val0," + "utildate.plus(1 hour 10 sec 20 msec) as val1," + "longdate.plus(1 hour 10 sec 20 msec) as val2," + "caldate.plus(1 hour 10 sec 20 msec) as val3," + "localdate.plus(1 hour 10 sec 20 msec) as val4," + "zoneddate.plus(1 hour 10 sec 20 msec) as val5," + "current_timestamp.minus(1 hour 10 sec 20 msec) as val6," + "utildate.minus(1 hour 10 sec 20 msec) as val7," + "longdate.minus(1 hour 10 sec 20 msec) as val8," + "caldate.minus(1 hour 10 sec 20 msec) as val9," + "localdate.minus(1 hour 10 sec 20 msec) as val10," + "zoneddate.minus(1 hour 10 sec 20 msec) as val11" + " from SupportDateTime";<NEW_LINE>env.compileDeploy(eplFragment).addListener("s0");<NEW_LINE>env.assertStmtTypes("s0", fields, new EPTypeClass[] { LONGBOXED.getEPType(), DATE.getEPType(), LONGBOXED.getEPType(), CALENDAR.getEPType(), LOCALDATETIME.getEPType(), ZONEDDATETIME.getEPType(), LONGBOXED.getEPType(), DATE.getEPType(), LONGBOXED.getEPType(), CALENDAR.getEPType(), LOCALDATETIME.getEPType(), ZONEDDATETIME.getEPType() });<NEW_LINE>env.sendEventBean(SupportDateTime.make(startTime));<NEW_LINE>Object[] expectedPlus = SupportDateTime.getArrayCoerced("2002-05-30T010:00:10.020", "long", "util", "long", "cal", "ldt", "zdt");<NEW_LINE>Object[] expectedMinus = SupportDateTime.getArrayCoerced("2002-05-30T07:59:49.980", "long", "util", "long", "cal", "ldt", "zdt");<NEW_LINE>env.assertPropsNew("s0", fields, EPAssertionUtil.concatenateArray(expectedPlus, expectedMinus));<NEW_LINE>env.sendEventBean(SupportDateTime.make(null));<NEW_LINE>expectedPlus = SupportDateTime.getArrayCoerced("2002-05-30T010:00:10.020", "long", "null", "null", "null", "null", "null");<NEW_LINE>expectedMinus = SupportDateTime.getArrayCoerced("2002-05-30T07:59:49.980", "long", "null", "null", "null", "null", "null");<NEW_LINE>env.assertPropsNew("s0", fields, EPAssertionUtil<MASK><NEW_LINE>env.undeployAll();<NEW_LINE>}
.concatenateArray(expectedPlus, expectedMinus));
503,119
protected void sendContextClickEvent(MouseEventDetails details, EventTarget eventTarget) {<NEW_LINE>if (!Element.is(eventTarget)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Element <MASK><NEW_LINE>Section section;<NEW_LINE>String colKey = null;<NEW_LINE>String rowKey = null;<NEW_LINE>if (getWidget().tFoot.getElement().isOrHasChild(e)) {<NEW_LINE>section = Section.FOOTER;<NEW_LINE>FooterCell w = WidgetUtil.findWidget(e, FooterCell.class);<NEW_LINE>colKey = w.getColKey();<NEW_LINE>} else if (getWidget().tHead.getElement().isOrHasChild(e)) {<NEW_LINE>section = Section.HEADER;<NEW_LINE>HeaderCell w = WidgetUtil.findWidget(e, HeaderCell.class);<NEW_LINE>colKey = w.getColKey();<NEW_LINE>} else {<NEW_LINE>section = Section.BODY;<NEW_LINE>if (getWidget().scrollBody.getElement().isOrHasChild(e)) {<NEW_LINE>VScrollTableRow w = getScrollTableRow(e);<NEW_LINE>if (w != null) {<NEW_LINE>rowKey = w.getKey();<NEW_LINE>colKey = getWidget().tHead.getHeaderCell(getElementIndex(e, w.getElement())).getColKey();<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>getRpcProxy(TableServerRpc.class).contextClick(rowKey, colKey, section, details);<NEW_LINE>WidgetUtil.clearTextSelection();<NEW_LINE>}
e = Element.as(eventTarget);
495,428
public void process(I image, @Nullable D derivX, @Nullable D derivY, @Nullable D derivXX, @Nullable D derivYY, @Nullable D derivXY) {<NEW_LINE>minimums.reset();<NEW_LINE>maximums.reset();<NEW_LINE>intensity.process(image, derivX, derivY, derivXX, derivYY, derivXY);<NEW_LINE>GrayF32 intensityImage = intensity.getIntensity();<NEW_LINE>// If there is a limit on the number of detections split it evenly between maximums and minimums<NEW_LINE>int limitPerSetMin = -1;<NEW_LINE>int limitPerSetMax = -1;<NEW_LINE>if (featureLimit > 0) {<NEW_LINE>if (intensity.localMaximums() && intensity.localMinimums()) {<NEW_LINE>limitPerSetMin = featureLimit / 2;<NEW_LINE>limitPerSetMax = featureLimit - limitPerSetMin;<NEW_LINE>} else if (intensity.localMinimums()) {<NEW_LINE>limitPerSetMin = featureLimit;<NEW_LINE>} else if (intensity.localMaximums()) {<NEW_LINE>limitPerSetMax = featureLimit;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>// Detect local minimums and maximums separately while excluding points in the exclude list<NEW_LINE>if (intensity.localMinimums()) {<NEW_LINE>Objects.requireNonNull(extractorMin);<NEW_LINE>markExcludedPixels(intensityImage, -Float.MAX_VALUE);<NEW_LINE>if (intensity.hasCandidates()) {<NEW_LINE>extractorMin.process(intensityImage, intensity.getCandidatesMin(), null, found, null);<NEW_LINE>} else {<NEW_LINE>extractorMin.process(intensityImage, null, null, found, null);<NEW_LINE>}<NEW_LINE>resolveSelectAmbiguity(intensityImage, exclude, found, minimums, limitPerSetMin, false);<NEW_LINE>}<NEW_LINE>if (intensity.localMaximums()) {<NEW_LINE>Objects.requireNonNull(extractorMax);<NEW_LINE>markExcludedPixels(intensityImage, Float.MAX_VALUE);<NEW_LINE>if (intensity.hasCandidates()) {<NEW_LINE>extractorMax.process(intensityImage, null, intensity.getCandidatesMax(), null, found);<NEW_LINE>} else {<NEW_LINE>extractorMax.process(intensityImage, <MASK><NEW_LINE>}<NEW_LINE>resolveSelectAmbiguity(intensityImage, exclude, found, maximums, limitPerSetMax, true);<NEW_LINE>}<NEW_LINE>}
null, null, null, found);
1,093,126
public void asyncTriggerOperation(final UUID jobId, final String skillId, final RemoteOperationData data, SkillHelper.OperationHelper.OnOperationLoadResultCallback callback) {<NEW_LINE>final <MASK><NEW_LINE>onOperationLoadResultCallbackCallbackStore.putCallback(parcelUuid, callback);<NEW_LINE>doAfterConnect(new Callable<Void>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Void call() throws Exception {<NEW_LINE>Message message = Message.obtain();<NEW_LINE>message.what = C.MSG_TRIGGER_OPERATION;<NEW_LINE>message.replyTo = inMessenger;<NEW_LINE>message.getData().putParcelable(C.EXTRA_MESSAGE_ID, parcelUuid);<NEW_LINE>message.getData().putString(C.EXTRA_PLUGIN_ID, skillId);<NEW_LINE>message.getData().putParcelable(C.EXTRA_PLUGIN_DATA, data);<NEW_LINE>try {<NEW_LINE>outMessenger.send(message);<NEW_LINE>// TODO: listen remote result<NEW_LINE>callback.onResult(jobId, true);<NEW_LINE>} catch (RemoteException e) {<NEW_LINE>e.printStackTrace();<NEW_LINE>callback.onResult(jobId, false);<NEW_LINE>}<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>});<NEW_LINE>}
ParcelUuid parcelUuid = new ParcelUuid(jobId);
663,052
private Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String cloudName, CloudInner body, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (cloudName == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter cloudName is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (body == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));<NEW_LINE>} else {<NEW_LINE>body.validate();<NEW_LINE>}<NEW_LINE>final String accept = "application/json";<NEW_LINE>context = this.client.mergeContext(context);<NEW_LINE>return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, cloudName, this.client.getApiVersion(), body, accept, context);<NEW_LINE>}
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
31,685
public int compareTo(dropLocalUser_args other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetTinfo(), other.isSetTinfo());<NEW_LINE>if (lastComparison != 0) {<NEW_LINE>return lastComparison;<NEW_LINE>}<NEW_LINE>if (isSetTinfo()) {<NEW_LINE>lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tinfo, other.tinfo);<NEW_LINE>if (lastComparison != 0) {<NEW_LINE>return lastComparison;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetCredentials(), other.isSetCredentials());<NEW_LINE>if (lastComparison != 0) {<NEW_LINE>return lastComparison;<NEW_LINE>}<NEW_LINE>if (isSetCredentials()) {<NEW_LINE>lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.credentials, other.credentials);<NEW_LINE>if (lastComparison != 0) {<NEW_LINE>return lastComparison;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetPrincipal(<MASK><NEW_LINE>if (lastComparison != 0) {<NEW_LINE>return lastComparison;<NEW_LINE>}<NEW_LINE>if (isSetPrincipal()) {<NEW_LINE>lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal, other.principal);<NEW_LINE>if (lastComparison != 0) {<NEW_LINE>return lastComparison;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>return 0;<NEW_LINE>}
), other.isSetPrincipal());
1,037,049
public void listHooksWithOptions() {<NEW_LINE>// BEGIN: com.azure.ai.metricsadvisor.administration.MetricsAdvisorAdministrationClient.listHooks#ListHookOptions-Context<NEW_LINE>ListHookOptions options = new ListHookOptions().setSkip<MASK><NEW_LINE>PagedIterable<NotificationHook> hooks = metricsAdvisorAdminClient.listHooks(options, Context.NONE);<NEW_LINE>Stream<PagedResponse<NotificationHook>> hooksPageStream = hooks.streamByPage();<NEW_LINE>int[] pageCount = new int[1];<NEW_LINE>hooksPageStream.forEach(hookPage -> {<NEW_LINE>System.out.printf("Page: %d%n", pageCount[0]++);<NEW_LINE>for (NotificationHook notificationHook : hookPage.getElements()) {<NEW_LINE>if (notificationHook instanceof EmailNotificationHook) {<NEW_LINE>EmailNotificationHook emailHook = (EmailNotificationHook) notificationHook;<NEW_LINE>System.out.printf("Email Hook Id: %s%n", emailHook.getId());<NEW_LINE>System.out.printf("Email Hook Name: %s%n", emailHook.getName());<NEW_LINE>System.out.printf("Email Hook Description: %s%n", emailHook.getDescription());<NEW_LINE>System.out.printf("Email Hook External Link: %s%n", emailHook.getExternalLink());<NEW_LINE>System.out.printf("Email Hook Emails: %s%n", String.join(",", emailHook.getEmailsToAlert()));<NEW_LINE>System.out.printf("Email Hook Admins: %s%n", String.join(",", emailHook.getAdmins()));<NEW_LINE>} else if (notificationHook instanceof WebNotificationHook) {<NEW_LINE>WebNotificationHook webHook = (WebNotificationHook) notificationHook;<NEW_LINE>System.out.printf("Web Hook Id: %s%n", webHook.getId());<NEW_LINE>System.out.printf("Web Hook Name: %s%n", webHook.getName());<NEW_LINE>System.out.printf("Web Hook Description: %s%n", webHook.getDescription());<NEW_LINE>System.out.printf("Web Hook External Link: %s%n", webHook.getExternalLink());<NEW_LINE>System.out.printf("Web Hook Endpoint: %s%n", webHook.getEndpoint());<NEW_LINE>System.out.printf("Web Hook Headers: %s%n", webHook.getHttpHeaders());<NEW_LINE>System.out.printf("Web Hook Admins: %s%n", String.join(",", webHook.getAdmins()));<NEW_LINE>}<NEW_LINE>}<NEW_LINE>});<NEW_LINE>// END: com.azure.ai.metricsadvisor.administration.MetricsAdvisorAdministrationClient.listHooks#ListHookOptions-Context<NEW_LINE>}
(100).setMaxPageSize(20);
1,248,241
final PutOptedOutNumberResult executePutOptedOutNumber(PutOptedOutNumberRequest putOptedOutNumberRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putOptedOutNumberRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<PutOptedOutNumberRequest> request = null;<NEW_LINE>Response<PutOptedOutNumberResult> response = null;<NEW_LINE>try {<NEW_LINE>awsRequestMetrics.startEvent(Field.RequestMarshallTime);<NEW_LINE>try {<NEW_LINE>request = new PutOptedOutNumberRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(putOptedOutNumberRequest));<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(<MASK><NEW_LINE>request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint SMS Voice V2");<NEW_LINE>request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "PutOptedOutNumber");<NEW_LINE>request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);<NEW_LINE>} finally {<NEW_LINE>awsRequestMetrics.endEvent(Field.RequestMarshallTime);<NEW_LINE>}<NEW_LINE>HttpResponseHandler<AmazonWebServiceResponse<PutOptedOutNumberResult>> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new PutOptedOutNumberResultJsonUnmarshaller());<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.ENDPOINT_OVERRIDDEN, isEndpointOverridden());