tinationFound && _sourceFound) {

				if (_destinationScene.Equals(_sourceScene))
				{
					LogError("Source and Destination scenes can not be the same");
				}else{
		    UnityEngine.SceneManagement.SceneManager.MergeScenes (_sourceScene, _destinationScene);
				}
				success.Value = true;
				Fsm.Event(successEvent);
			} else {
				success.Value = false;

				Fsm.Event(failureEvent);
			}

			Finish();
		}

		void GetSourceScene()
		{
			try{
				switch (sourceReference) {
				case GetSceneActionBase.SceneAllReferenceOptions.ActiveScene:
					_sourceScene = UnityEngine.SceneManagement.SceneManager.GetActiveScene ();
					break;
				case GetSceneActionBase.SceneAllReferenceOptions.SceneAtIndex:
					_sourceScene = UnityEngine.SceneManagement.SceneManager.GetSceneAt (sourceAtIndex.Value);
					break;
				case GetSceneActionBase.SceneAllReferenceOptions.SceneByName:
					_sourceScene = UnityEngine.SceneManagement.SceneManager.GetSceneByName (sourceByName.Value);
					break;
				case GetSceneActionBase.SceneAllReferenceOptions.SceneByPath:
					_sourceScene = UnityEngine.SceneManagement.SceneManager.GetSceneByPath (sourceByPath.Value);
					break;
				}
			}catch(Exception e) {
				LogError (e.Message);
			}

			if (_sourceScene == new Scene()) {
				_sourceFound = false;
			} else {
				_sourceFound = true;
			}
		}

		void GetDestinationScene()
		{
			try{
				switch (sourceReference) {
				case GetSceneActionBase.SceneAllReferenceOptions.ActiveScene:
					_destinationScene = UnityEngine.SceneManagement.SceneManager.GetActiveScene ();
					break;
				case GetSceneActionBase.SceneAllReferenceOptions.SceneAtIndex:
					_destinationScene = UnityEngine.SceneManagement.SceneManager.GetSceneAt (destinationAtIndex.Value);
					break;
				case GetSceneActionBase.SceneAllReferenceOptions.SceneByName:
					_destinationScene = UnityEngine.SceneManagement.SceneManager.GetSceneByName (destinationByName.Value);
					break;
				case GetSceneActionBase.SceneAllReferenceOptions.SceneByPath:
					_destinationScene = UnityEngine.SceneManagement.SceneManager.GetSceneByPath (destinationByPath.Value);
					break;
				}
			}catch(Exception e) {
				LogError (e.Message);
			}

			if (_destinationScene == new Scene()) {
				_destinationFound = false;
			} else {
				_destinationFound = true;
			}
		}

		public override string ErrorCheck()
		{
			if (sourceReference == GetSceneActionBase.SceneAllReferenceOptions.ActiveScene && destinationReference == GetSceneActionBase.SceneAllReferenceOptions.ActiveScene) {
				return "Source and Destination scenes can not be the same";
			}

			return string.Empty;
		}
	}
}

#endif


 };
  final url = Uri.https("api.met.no", 'weatherapi/locationforecast/2.0/compact', params);

  print(url);

  final response = (await http.get(url, headers: headers)).body;

  return jsonDecode(response);
}

Future<LightCurrentWeatherData> metNGetLightCurrentData(placeName, lat, lon, SharedPreferences prefs) async {
  final item = await metNGetLightResponse(lat, lon);

  DateTime now = DateTime.now();

  return LightCurrentWeatherData(
    condition: metNTextCorrection(item["properties"]["timeseries"][0]["data"]["next_1_hours"]["summary"]["symbol_code"]),
    place: placeName,
    temp: unitConversion(
        item["properties"]["timeseries"][0]["data"]["instant"]["details"]["air_temperature"],
        prefs.getString("Temperature") ?? "˚C").round(),
    updatedTime: "${now.hour}:${now.minute.toString().padLeft(2, "0")}",
    dateString: getDateStringFromLocalTime(now),
  );
}

Future<LightWindData> metNGetLightWindData(lat, lon, SharedPreferences prefs) async {
  final item = await metNGetLightResponse(lat, lon);

  return LightWindData(
    windDirAngle: item["properties"]["timeseries"][0]["data"]["instant"]["details"]["wind_from_direction"].round(),
    windSpeed: unitConversion(item["properties"]["timeseries"][0]["data"]["instant"]["details"]["wind_speed"] * 3.6, prefs.getString("Wind") ?? "m/s").round(),
    windUnit: prefs.getString("Wind") ?? "m/s",
  );
}

Future<LightHourlyForecastData> metNGetLightHourlyData(placeName, lat, lon, SharedPreferences prefs) async {
  final item = await metNGetLightResponse(lat, lon);

  List<String> hourly6Conditions = [];
  List<int> hourly6Temps = [];
  List<String> hourly6Names = [];

  List<String> hourly1Conditions = [];
  List<int> hourly1Temps = [];
  List<String> hourly1Names = [];

  DateTime now = DateTime.now();

  final String tempUnit = prefs.getString("Temperature") ?? "˚C";

  for (int i = 0; i < min(item["properties"]["timeseries"].length, 23); i++) {
    final hour = item["properties"]["timeseries"][i];

    DateTime d = DateTime.parse(hour["time"]).toLocal();

    if (d.hour % 6 == 0) {
      hourly6Conditions.add(metNTextCorrection(
          hour["data"]["next_1_hours"]["summary"]["symbol_code"]));
      hourly6Temps.add(unitConversion(
          hour["data"]["instant"]["details"]["air_temperature"],tempUnit).round(),);
      hourly6Names.add("${d.hour}h");
    }

    if (i < 4) {
      hourly1Conditions.add(metNTextCorrection(
          hour["data"]["next_1_hours"]["summary"]["symbol_code"]));
      hourly1Temps.add(unitConversion(
          hour["data"]["instant"]["details"]["air_temperature"],tempUnit).round(),);
      hourly1Names.add("${d.hour}h");
    }
  }

  return LightHourlyForecastData(
    place: placeName,
    currentCondition: metNTextCorrection(item["properties"]["timeseries"][0]["data"]["next_1_hours"]["summary"]["symbol_code"]),
    currentTemp: unitConversion(
        item["properties"]["timeseries"][0]["data"]["instant"]["details"]["air_temperature"],
       tempUnit


/*
 * Copyright (C) 2016 Apple Inc. All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#pragma once

#include "JSGlobalObject.h"

#include "ArrayPrototype.h"
#include "ObjectPrototype.h"

namespace JSC {

ALWAYS_INLINE bool JSGlobalObject::objectPrototypeIsSane()
{
    return !hasIndexedProperties(m_objectPrototype->indexingType())
        && m_objectPrototype->getPrototypeDirect().isNull();
}

ALWAYS_INLINE bool JSGlobalObject::arrayPrototypeChainIsSane()
{
    return !hasIndexedProperties(m_arrayPrototype->indexingType())
        && m_arrayPrototype->getPrototypeDirect() == m_objectPrototype.get()
        && objectPrototypeIsSane();
}

ALWAYS_INLINE bool JSGlobalObject::stringPrototypeChainIsSane()
{
    return !hasIndexedProperties(m_stringPrototype->indexingType())
        && m_stringPrototype->getPrototypeDirect() == m_objectPrototype.get()
        && objectPrototypeIsSane();
}

ALWAYS_INLINE bool JSGlobalObject::isArrayIteratorProtocolFastAndNonObservable()
{
    // We're fast if we don't have any indexed properties on the prototype.
    // We're non-observable if the iteration protocol hasn't changed.
    //
    // Note: it only makes sense to call this from the main thread. If you're
    // trying to prove this behavior on the compiler thread, you'll want to
    // carefully set up watchpoints to have correct ordering while JS code is
    // executing concurrently.

    return arrayIteratorProtocolWatchpoint().isStillValid() && !isHavingABadTime() && arrayPrototypeChainIsSane();
}

} // namespace JSC


btn.x-btn-disabled .x-btn-plain-toolbar-large-tl,
.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-bl,
.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-tr,
.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-br,
.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-tc,
.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-bc {
    background-image: url(images/btn/btn-plain-toolbar-large-disabled-corners.gif);
}

.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-ml,
.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-mr {
    background-image: url(images/btn/btn-plain-toolbar-large-disabled-sides.gif);
}

.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-mc {
    background-color: transparent;
    background-image: url(images/btn/btn-plain-toolbar-large-disabled-fbg.gif);
}

.x-nbr .x-btn-plain-toolbar-large {
    background-image: none;
}

.x-btn-disabled.x-btn-plain-toolbar-large {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=65)";
    opacity: 0.65;
}

.x-nbr .x-segmented-button-item-horizontal.x-btn-plain-toolbar-large.x-segmented-button-first {
    border-right-width: 1px !important;
}

.x-nbr .x-segmented-button-item-horizontal.x-btn-plain-toolbar-large.x-segmented-button-first .x-btn-plain-toolbar-large-mc {
    padding-right: 3px !important;
}

.x-nbr .x-segmented-button-item-horizontal.x-btn-plain-toolbar-large.x-segmented-button-middle {
    border-right-width: 1px !important;
}

.x-nbr .x-segmented-button-item-horizontal.x-btn-plain-toolbar-large.x-segmented-button-middle .x-btn-plain-toolbar-large-mc {
    padding-right: 3px !important;
    padding-left: 3px !important;
}

.x-nbr .x-segmented-button-item-horizontal.x-btn-plain-toolbar-large.x-segmented-button-last .x-btn-plain-toolbar-large-mc {
    padding-left: 3px !important;
}

.x-nbr .x-segmented-button-item-vertical.x-btn-plain-toolbar-large.x-segmented-button-first {
    border-bottom-width: 1px !important;
}

.x-nbr .x-segmented-button-item-vertical.x-btn-plain-toolbar-large.x-segmented-button-first .x-btn-plain-toolbar-large-mc {
    padding-bottom: 3px !important;
}

.x-nbr .x-segmented-button-item-vertical.x-btn-plain-toolbar-large.x-segmented-button-middle {
    border-bottom-width: 1px !important;
}

.x-nbr .x-segmented-button-item-vertical.x-btn-plain-toolbar-large.x-segmented-button-middle .x-btn-plain-toolbar-large-mc {
    padding-top: 3px !important;
    padding-bottom: 3px !important;
}

.x-nbr .x-segmented-button-item-vertical.x-btn-plain-too


,
    ".mailmap" to PathExcludeReason.OTHER,
    ORT_REPO_CONFIG_FILENAME to BUILD_TOOL_OF,
    ".travis.yml" to BUILD_TOOL_OF,
    ".zuul.yml" to BUILD_TOOL_OF,
    "BUILD" to BUILD_TOOL_OF, // Bazel
    "Build.PL" to BUILD_TOOL_OF,
    "CHANGELOG*" to DOCUMENTATION_OF,
    "CHANGES" to DOCUMENTATION_OF,
    "CHANGES.md" to DOCUMENTATION_OF,
    "CHANGES.txt" to DOCUMENTATION_OF,
    "CMakeLists.txt" to BUILD_TOOL_OF,
    "CODE_OF_CONDUCT" to DOCUMENTATION_OF,
    "CODE_OF_CONDUCT.md" to DOCUMENTATION_OF,
    "CONTRIBUTING" to DOCUMENTATION_OF,
    "CONTRIBUTING.md" to DOCUMENTATION_OF,
    "CONTRIBUTING.rst" to DOCUMENTATION_OF,
    "CONTRIBUTING.txt" to DOCUMENTATION_OF,
    "Cakefile" to BUILD_TOOL_OF,
    "Cargo.toml" to BUILD_TOOL_OF,
    "ChangeLog*" to DOCUMENTATION_OF,
    "Configure" to BUILD_TOOL_OF,
    "DOCS.md" to DOCUMENTATION_OF,
    "Dockerfile" to BUILD_TOOL_OF,
    "FAQ" to DOCUMENTATION_OF,
    "HISTORY.md" to DOCUMENTATION_OF,
    "History.md" to DOCUMENTATION_OF,
    "INSTALL" to DOCUMENTATION_OF,
    "Makefile*" to BUILD_TOOL_OF,
    "Makefile.*" to BUILD_TOOL_OF,
    "NEWS.md" to DOCUMENTATION_OF,
    "Package.swift" to BUILD_TOOL_OF,
    "RELEASE-NOTES*" to DOCUMENTATION_OF,
    "Rakefile*" to BUILD_TOOL_OF,
    "SECURITY.md" to DOCUMENTATION_OF,
    "azure-pipelines.yml" to BUILD_TOOL_OF,
    "bitbucket-pipelines.yml" to BUILD_TOOL_OF,
    "build" to BUILD_TOOL_OF,
    "build*.sh" to BUILD_TOOL_OF,
    "build.bat" to BUILD_TOOL_OF,
    "build.gradle" to BUILD_TOOL_OF,
    "build.proj" to BUILD_TOOL_OF,
    "build.rs" to BUILD_TOOL_OF, // Rust build script.
    "build.sbt" to BUILD_TOOL_OF,
    "changelog*" to DOCUMENTATION_OF,
    "checksrc.bat" to BUILD_TOOL_OF,
    "codecov.yml" to BUILD_TOOL_OF,
    "codenarc.groovy" to BUILD_TOOL_OF,
    "codeship-services.yml" to BUILD_TOOL_OF,
    "codeship-steps.yml" to BUILD_TOOL_OF,
    "compile" to BUILD_TOOL_OF,
    "conanfile.py" to BUILD_TOOL_OF,
    "config.guess" to BUILD_TOOL_OF,
    "config.sub" to BUILD_TOOL_OF,
    "configure" to BUILD_TOOL_OF,
    "configure.ac" to BUILD_TOOL_OF,
    "depcomp" to BUILD_TOOL_OF,
    "generate*.sh" to BUILD_TOOL_OF,
    "gradlew.bat" to BUILD_TOOL_OF,
    "install-sh" to BUILD_TOOL_OF,
    "jitpack.yml" to BUILD_TOOL_OF,
    "libtool-ldflags" to BUILD_TOOL_OF, // GNU Libtool script, see https://www.gnu.org/software/libtool/.
    "ltmain.sh" to BUILD_TOOL_


   /// Parses a given XmlTextReader.
        /// </summary>
        /// <param name="document"></param>
        /// <param name="reader"></param>
        /// <param name="tagmap"></param>
        public new static void Parse(IDocListener document, XmlTextReader reader, String tagmap) {
            HtmlParser p = new HtmlParser();
            p.Go(document, reader, tagmap);
        }

        /// <summary>
        /// Parses a given XmlTextReader.
        /// </summary>
        /// <param name="document"></param>
        /// <param name="reader"></param>
        /// <param name="tagmap"></param>
        public new static void Parse(IDocListener document, XmlTextReader reader, Hashtable tagmap) {
            HtmlParser p = new HtmlParser();
            p.Go(document, reader, tagmap);
        }
    }
}


stant is consensus
 * critical; in unusual circumstances like a(nother) overflow bug that allowed
 * for the creation of coins out of thin air modification could lead to a fork.
 */
static const Amount MAX_MONEY = 21000000 * COIN; // NOLINT(cert-err58-cpp)
inline bool MoneyRange(const Amount nValue) {
    return (nValue >= Amount(0) && nValue <= MAX_MONEY);
}

/**
 * Fee rate in satoshis per kilobyte: Amount / kB
 */
class CFeeRate {
private:
    // unit is satoshis-per-1,000-bytes
    Amount nSatoshisPerK {0};

public:
    CFeeRate () = default;
    explicit CFeeRate(const Amount _nSatoshisPerK)
        : nSatoshisPerK(_nSatoshisPerK) {}
    /**
     * Constructor for a fee rate in satoshis per kB. The size in bytes must not
     * exceed (2^63 - 1)
     */
    CFeeRate(const Amount nFeePaid, size_t nBytes);
    /**
     * Return the fee in satoshis for the given size in bytes.
     */
    Amount GetFee(size_t nBytes) const;
    /**
     * Return the fee in satoshis for a size of 1000 bytes
     */
    Amount GetFeePerK() const { return nSatoshisPerK; }
    friend bool operator<(const CFeeRate &a, const CFeeRate &b) {
        return a.nSatoshisPerK < b.nSatoshisPerK;
    }
    friend bool operator>(const CFeeRate &a, const CFeeRate &b) {
        return a.nSatoshisPerK > b.nSatoshisPerK;
    }
    friend bool operator==(const CFeeRate &a, const CFeeRate &b) {
        return a.nSatoshisPerK == b.nSatoshisPerK;
    }
    friend bool operator<=(const CFeeRate &a, const CFeeRate &b) {
        return a.nSatoshisPerK <= b.nSatoshisPerK;
    }
    friend bool operator>=(const CFeeRate &a, const CFeeRate &b) {
        return a.nSatoshisPerK >= b.nSatoshisPerK;
    }
    CFeeRate &operator+=(const CFeeRate &a) {
        nSatoshisPerK += a.nSatoshisPerK;
        return *this;
    }
    std::string ToString() const;

    ADD_SERIALIZE_METHODS

    template <typename Stream, typename Operation>
    inline void SerializationOp(Stream &s, Operation ser_action) {
        READWRITE(nSatoshisPerK);
    }
};
// NOLINTEND(performance-unnecessary-value-param)

#endif //  BITCOIN_AMOUNT_H


dText('Flutter is the best!');
    final Paragraph paragraph = paragraphBuilder.build()
      ..layout(const ParagraphConstraints(width: 400));
    canvas.drawParagraph(paragraph, const Offset(20, 20));

    builder.addPicture(Offset.zero, baseRecorder.endRecording());
    builder.pop();
    PlatformDispatcher.instance.views.first.render(builder.build());
  };
  PlatformDispatcher.instance.scheduleFrame();
}

@pragma('vm:entry-point')
// ignore: non_constant_identifier_names
Future<void> render_impeller_image_snapshot_test() async {
  final PictureRecorder recorder = PictureRecorder();
  final Canvas canvas = Canvas(recorder);
  const Color color = Color.fromARGB(255, 0, 0, 123);
  canvas.drawPaint(Paint()..color = color);
  final Picture picture = recorder.endRecording();

  final Image image = await picture.toImage(100, 100);
  final ByteData? imageData = await image.toByteData();
  final int pixel = imageData!.getInt32(0);

  final bool result = (pixel & 0xFF) == color.alpha && ((pixel >> 8) & 0xFF) == color.blue;
  notifyBoolValue(result);
}

@pragma('vm:entry-point')
void testSendViewFocusEvent() {
  PlatformDispatcher.instance.onViewFocusChange = (ViewFocusEvent event) {
    notifyStringValue('${event.viewId} ${event.state} ${event.direction}');
  };
  signalNativeTest();
}

@pragma('vm:entry-point')
void testSendViewFocusChangeRequest() {
  PlatformDispatcher.instance.requestViewFocusChange(
    viewId: 1,
    state: ViewFocusState.unfocused,
    direction: ViewFocusDirection.undefined,
  );
  PlatformDispatcher.instance.requestViewFocusChange(
    viewId: 2,
    state: ViewFocusState.focused,
    direction: ViewFocusDirection.forward,
  );
  PlatformDispatcher.instance.requestViewFocusChange(
    viewId: 3,
    state: ViewFocusState.focused,
    direction: ViewFocusDirection.backward,
  );
}

@pragma('vm:entry-point')
// ignore: non_constant_identifier_names
Future<void> a11y_main_multi_view() async {
  // 1: Return initial state (semantics disabled).
  notifySemanticsEnabled(PlatformDispatcher.instance.semanticsEnabled);

  // 2: Add the first view (implicitly handled by PlatformDispatcher).
  // 3: Add the second view (implicitly handled by PlatformDispatcher).

  // 4: Await semantics enabled from embedder.
  await semanticsChanged;
  notifySemanticsEnabled(PlatformDispatcher.instance.semanticsEnabled);

  // 5: Return initial state of accessibility features.
  notifyAccessibilityFeatures(PlatformDispatcher.instance.accessibilityFeatures.reduceMotion);

  // 6: Fire semantics updates.
  SemanticsUpdateBuilder createForView(FlutterView view) {
    return SemanticsUpdateBuilder()..updateNode(
      id: view.viewId + 1, // For simplicity, give each node an id of viewId + 1
      identifier: '',
      label: 'A: root',
      labelAttributes: <StringAttribute>[],
      rect: const Rect.fromLTRB(0.0, 0.0, 10.0, 10.0),
      transform: kTestTransform,
      childrenInTraversalOrder: Int32List.fromList(<int>[84, 96]),
      childrenInHitTestOrder: Int32List.fromList(<int>[96, 84]),
      actions: 0,
      flags: SemanticsFlags.none,
      maxValueLength: 0,
      currentValueLength: 0,
      textSelectionBase: 0,
      textSelectionExtent: 0,
      platformViewId: 0,
      scrollChildren: 0,
      scrollIndex: 0,
      scrollPosition: 0.0,
      scrollExtentMax: 0.0,
      scrollExtentMin: 0.0,
      hint: '',
      hint


byte[] data, int offset, int size, IPEndPoint remoteEndPoint, ref SocketError errorCode)
        {
            try
            {
                var socket = _udpSocketv4;
                if (remoteEndPoint.AddressFamily == AddressFamily.InterNetworkV6 && IPv6Support)
                    socket = _udpSocketv6;
                int result = socket.SendTo(data, offset, size, SocketFlags.None, remoteEndPoint);
                NetDebug.Write(NetLogLevel.Trace, "[S]Send packet to {0}, result: {1}", remoteEndPoint, result);
                return result;
            }
            catch (SocketException ex)
            {
                switch (ex.SocketErrorCode)
                {
                    case SocketError.NoBufferSpaceAvailable:
                    case SocketError.Interrupted:
                        return 0;
                    case SocketError.MessageSize: //do nothing
                        break;
                    default:
                        NetDebug.WriteError("[S]" + ex);
                        break;
                }
                errorCode = ex.SocketErrorCode;
                return -1;
            }
            catch (Exception ex)
            {
                NetDebug.WriteError("[S]" + ex);
                return -1;
            }
        }

        public void Close()
        {
            _running = false;
            // first close sockets
            if (_udpSocketv4 != null)
            {
                _udpSocketv4.Close();
                _udpSocketv4 = null;
            }
            if (_udpSocketv6 != null)
            {
                _udpSocketv6.Close();
                _udpSocketv6 = null;
            }
            // then join threads
            if (_threadv4 != null)
            {
                if (_threadv4 != Thread.CurrentThread)
                    _threadv4.Join();
                _threadv4 = null;
            }
            if (_threadv6 != null)
            {
                if (_threadv6 != Thread.CurrentThread)
                    _threadv6.Join();
                _threadv6 = null;
            }
        }
    }
}


from sensors.sensors import MultiSensors
from sensors.storage.Storage import createStorage
import copy
from sensors.app.AppContext import AppContext
from sensors.common.dataset_tools import *
import numpy as np
from PIL import Image
from time import time, sleep

def main(
        max_frame = 100,
        foldername = 'walking_data/name',
        filename = 'test',
        normalize = False,
        counter = 0,
        norm_img_list = []
    ):

    sensor = MultiSensors(['/dev/tty.SLAB_USBtoUART'])
    print("initializing sensors...")
    sensor.init_sensors()
    print("initializing sensors...Done")
    storage = createStorage('hdf5', foldername, filename, AppContext.create(), {'blockSize': 90})
    base_images = []
    start_signal = 1
    base_time = time()
    print('calibration done! collection strat at ', base_time)

    while storage.frameCount < max_frame:

        if start_signal == 1:
            start_signal = 0
            for i in range(20):
                total_image = sensor.get()
                base_images.append(total_image)
            base_images = np.array(base_images)
            base_image = np.mean(base_images, axis=0)
            print(total_image.shape)

        if int(time() - base_time) % 10 <= 1:
            total_image = sensor.get()
            total_image = total_image - base_image

            #visualize
            visual_image = copy.deepcopy(total_image)
            visual_image *= 255
            visual_image = visual_image.astype(np.uint8)
            visual_image = cv2.resize(visual_image, (500, 500))
            total_image2 = copy.deepcopy(total_image)

            total_image2 /= 1000
            total_image2 = total_image2 * 255
            total_image2 = np.clip(total_image2, 0 ,255)
            # print(total_image2)

            total_image2 = cv2.resize(total_image2.astype(np.uint8), (500, 500))

            cv2.imshow("Pressure", total_image2)
            if cv2.waitKey(1) & 0xff == 27:
                break

            #fps
            fps = sensor.getFps()

            #unix timestep
            ts = getUnixTimestamp()

            #store data
            storage.addFrame(ts, {'pressure': total_image})

            #verbose
            print(f"FPS : {fps}, time: {time()}, Frames : {storage.frameCount}, Storage : {foldername}/{storage.getName()}")
            sleep(2)

    sensor.close()

if __name__ == "__main__":
    print("data collection start")
    name = input("Enter your name :").strip()
    label = input("Enter label :").strip()
    max_frame = int(input("Enter max frame :").strip())

    main(
        max_frame = max_frame,
        foldername = f'walking_data/{name}',
        filename = label,
        normalize = False
    )


:0}]},s=[{className:"params",begin:/\(/,
end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{
className:"literal",begin:/\.\.\./},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,a,n]
}],o={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},d=(t,r,n)=>{
const d=e.inherit({className:"function",beginKeywords:t,end:r,excludeEnd:!0,
contains:[].concat(s)},n||{})
;return d.contains.push(o),d.contains.push(e.C_NUMBER_MODE),
d.contains.push(e.C_BLOCK_COMMENT_MODE),d.contains.push(a),d},l={
className:"built_in",begin:"\\b("+t.built_in.split(" ").join("|")+")\\b"},i={
className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0
},c={begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:t,
relevance:0,contains:[{beginKeywords:t.keyword},l,{className:"built_in",
begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},p={begin:/\(/,end:/\)/,relevance:0,
keywords:{built_in:t.built_in,literal:t.literal},
contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,a,l,c,i,"self"]}
;return c.contains.push(p),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,
keywords:t,illegal:/(\{[%#]|[%#]\}| <- )/,
contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,i,r,{
className:"keyword",
begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/
},d("proc keyword",";"),d("fn","="),{beginKeywords:"for threadfor",end:/;/,
relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,a,p]},{variants:[{
begin:e.UNDERSCORE_IDENT_RE+"\\."+e.UNDERSCORE_IDENT_RE},{
begin:e.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},c,n]}}})()
;export default hljsGrammar;import notes from "./notes.js";
import supportedSoftware from "./supportedSoftware.js";

export default (shareBtn) => {
  const supportNote =
    shareBtn.parentElement.parentElement.getElementsByClassName(
      "fsb-support-note"
    )[0];

  const domainInput =
    shareBtn.parentElement.parentElement.getElementsByClassName(
      "fsb-domain"
    )[0];

  supportNote.classList.add("fsb-d-none");

  let note =
    shareBtn.parentElement.parentElement.getElementsByClassName(
      "fsb-note"
    )[0];

  if (!note) {
    note = document.createElement("p");
    note.classList.add("fsb-note");
    note.classList.add("fsb-d-none");
    supportNote.parentNode.insertBefore(note, supportNote.nextSibling);
  }

  const supportNoteLink =
    shareBtn.parentElement.parentElement.getElementsByClassName(
      "fsb-support-note-link"
    )[0];

  if (note) {
    note.classList.add("fsb-d-none");
  }

  if (!supportedSoftware.includes(window.fsbGlobalSoftware)) {
    supportNoteLink.href = `https://${domainInput.value}`;
    supportNoteLink.innerHTML = domainInput.value;
    supportNote.classList.remove("fsb-d-none");
  }

  if (note && notes[window.fsbGlobalSoftware]) {
    note.innerHTML = notes[window.fsbGlobalSoftware];
    note.classList.remove("fsb-d-none");
  }
};/*!
  * Bootstrap v5.3.3 (https://getbootstrap.com/)
  * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstr


e = Mode;
});

define('ace/mode/javascript_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/lib/lang', 'ace/unicode', 'ace/mode/doc_comment_highlight_rules', 'ace/mode/text_highlight_rules'], function(require, exports, module) {

var oop = require("../lib/oop");
var lang = require("../lib/lang");
var unicode = require("../unicode");
var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;

var JavaScriptHighlightRules = function() {

    // see: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects
    var globals = lang.arrayToMap(
      // Constructors
        ("Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|" +
      // E4X
         "Namespace|QName|XML|XMLList|" +
         "ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" +
         "Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|" +
      // Errors
        "Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" +
        "SyntaxError|TypeError|URIError|" +
      //  Non-constructor functions
        "decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|" +
        "isNaN|parseFloat|parseInt|" +
      // Other
        "JSON|Math|" +
      // Pseudo
        "this|arguments|prototype|window|document"
      ).split("|")
    );

    var keywords = lang.arrayToMap(
        ("break|case|catch|continue|default|delete|do|else|finally|for|function|" +
        "if|in|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|" +
        "const|yield|import|get|set").split("|")
    );

    // keywords which can be followed by regular expressions
    var kwBeforeRe = "case|do|else|finally|in|instanceof|return|throw|try|typeof|yield";

    var deprecated = lang.arrayToMap(
        ("__parent__|__count__|escape|unescape|with|__proto__").split("|")
    );

    var definitions = lang.arrayToMap(("const|let|var|function").split("|"));

    var buildinConstants = lang.arrayToMap(
        ("null|Infinity|NaN|undefined").split("|")
    );

    var futureReserved = lang.arrayToMap(
        ("class|enum|extends|super|export|implements|private|" +
        "public|interface|package|protected|static").split("|")
    );

    // TODO: Unicode escape sequences
    var identifierRe = "[" + unicode.packages.L + "\\$_]["
        + unicode.packages.L
        + unicode.packages.Mn + unicode.packages.Mc
        + unicode.packages.Nd
        + unicode.packages.Pc + "\\$_]*\\b";

    var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex
        "u[0-9a-fA-F]{4}|" + // unicode
        "[0-2][0-7]{0,2}|" + // oct
        "3[0-6][0-7]?|" + // oct
        "37[0-7]?|" + // oct
        "[4-7][0-7]?|" + //oct
        ".)";

    // regexp must not have capturing parentheses. Use (?:) instead.
    // regexps are ordered -> the first match is used

    this.$rules = {
        "start" : [
            {
                token : "comment",
                regex : /\/\/.*$/
            },
            DocCommentHighlightRules.getStartRule("doc-start"),
            {
                token : "comment", // multi line comment
                merge : true,
                regex : /\/\*/,
                next : "comment"
            }, {
                token : "string",
                regex : "'(?=.)


CaptchaField.getCPtr(pRspGenUserCaptcha), pRspGenUserCaptcha, CThostFtdcRspInfoField.getCPtr(pRspInfo), pRspInfo, nRequestID, bIsLast);
  }

  public void OnRspGenUserText(CThostFtdcRspGenUserTextField pRspGenUserText, CThostFtdcRspInfoField pRspInfo, int nRequestID, boolean bIsLast) {
    if (getClass() == CThostFtdcTraderSpi.class) jctpv6v3v19p1x64apiJNI.CThostFtdcTraderSpi_OnRspGenUserText(swigCPtr, this, CThostFtdcRspGenUserTextField.getCPtr(pRspGenUserText), pRspGenUserText, CThostFtdcRspInfoField.getCPtr(pRspInfo), pRspInfo, nRequestID, bIsLast); else jctpv6v3v19p1x64apiJNI.CThostFtdcTraderSpi_OnRspGenUserTextSwigExplicitCThostFtdcTraderSpi(swigCPtr, this, CThostFtdcRspGenUserTextField.getCPtr(pRspGenUserText), pRspGenUserText, CThostFtdcRspInfoField.getCPtr(pRspInfo), pRspInfo, nRequestID, bIsLast);
  }

  public void OnRspOrderInsert(CThostFtdcInputOrderField pInputOrder, CThostFtdcRspInfoField pRspInfo, int nRequestID, boolean bIsLast) {
    if (getClass() == CThostFtdcTraderSpi.class) jctpv6v3v19p1x64apiJNI.CThostFtdcTraderSpi_OnRspOrderInsert(swigCPtr, this, CThostFtdcInputOrderField.getCPtr(pInputOrder), pInputOrder, CThostFtdcRspInfoField.getCPtr(pRspInfo), pRspInfo, nRequestID, bIsLast); else jctpv6v3v19p1x64apiJNI.CThostFtdcTraderSpi_OnRspOrderInsertSwigExplicitCThostFtdcTraderSpi(swigCPtr, this, CThostFtdcInputOrderField.getCPtr(pInputOrder), pInputOrder, CThostFtdcRspInfoField.getCPtr(pRspInfo), pRspInfo, nRequestID, bIsLast);
  }

  public void OnRspParkedOrderInsert(CThostFtdcParkedOrderField pParkedOrder, CThostFtdcRspInfoField pRspInfo, int nRequestID, boolean bIsLast) {
    if (getClass() == CThostFtdcTraderSpi.class) jctpv6v3v19p1x64apiJNI.CThostFtdcTraderSpi_OnRspParkedOrderInsert(swigCPtr, this, CThostFtdcParkedOrderField.getCPtr(pParkedOrder), pParkedOrder, CThostFtdcRspInfoField.getCPtr(pRspInfo), pRspInfo, nRequestID, bIsLast); else jctpv6v3v19p1x64apiJNI.CThostFtdcTraderSpi_OnRspParkedOrderInsertSwigExplicitCThostFtdcTraderSpi(swigCPtr, this, CThostFtdcParkedOrderField.getCPtr(pParkedOrder), pParkedOrder, CThostFtdcRspInfoField.getCPtr(pRspInfo), pRspInfo, nRequestID, bIsLast);
  }

  public void OnRspParkedOrderAction(CThostFtdcParkedOrderActionField pParkedOrderAction, CThostFtdcRspInfoField pRspInfo, int nRequestID, boolean bIsLast) {
    if (getClass() == CThostFtdcTraderSpi.class) jctpv6v3v19p1x64apiJNI.CThostFtd


IPHER_PARAM_TLS_MAC-octet-ptr">"tls-mac" (OSSL_CIPHER_PARAM_TLS_MAC) <octet ptr>

See "PARAMETERS" in EVP_EncryptInit(3) for further information.

Settable EVP_CIPHER_CTX parameters

"tls-mac-size" (OSSL_CIPHER_PARAM_TLS_MAC_SIZE) <unsigned integer>

See "PARAMETERS" in EVP_EncryptInit(3) for further information.

CONFORMING TO

RFC 5246 section-6.2.3.1

SEE ALSO

provider-cipher(7), OSSL_PROVIDER-default(7)

COPYRIGHT

Copyright 2023 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at https://www.openssl.org/source/license.html.

<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<title>ct</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:" />

NAME

SYNOPSIS

DESCRIPTION

SEE ALSO

HISTORY

COPYRIGHT

NAME

ct - Certificate Transparency

SYNOPSIS

#include <openssl/ct.h>

DESCRIPTION

This library implements Certificate Transparency (CT) verification for TLS clients, as defined in RFC 6962. This verification can provide some confidence that a certificate has been publicly logged in a set of CT logs.

By default, these checks are disabled. They can be enabled using SSL_CTX_enable_ct(3) or


 + v,
            SOI => 0xD8,
            EOI => 0xD9,
            SOS => 0xDA,
            DQT => 0xDB,
            DNL => 0xDC,
            DRI => 0xDD,
            DHP => 0xDE,
            EXP => 0xDF,
            APP(v) => 0xE0 + v,
            JPGn(v) => 0xF0 + v,
            COM => 0xFE,
            FILL => 0xFF,
        }
    }
}
use super::base::FaceDetectorTrait;
use super::location::FaceLocations;
use crate::matrix::ImageMatrix;

#[derive(Clone)]
/// A Face detector that uses a HOG feature descriptor.
///
/// Pretty fast (~100ms for test images on my machine), but not as accurate (misses more faces)
/// as the neural network face detector.
pub struct FaceDetector {
    inner: FaceDetectorInner,
}

cpp_class!(unsafe struct FaceDetectorInner as "dlib::frontal_face_detector");

impl FaceDetector {
    /// Create a new face detector.
    ///
    /// This is handles by dlib internally, so you do not need to worry about file paths.
    pub fn new() -> Self {
        let inner = unsafe {
            cpp!([] -> FaceDetectorInner as "dlib::frontal_face_detector" {
                return dlib::get_frontal_face_detector();
            })
        };

        Self { inner }
    }
}

impl Default for FaceDetector {
    fn default() -> Self {
        Self::new()
    }
}

impl FaceDetectorTrait for FaceDetector {
    fn face_locations(&self, image: &ImageMatrix) -> FaceLocations {
        let detector = &self.inner;

        unsafe {
            cpp!([detector as "dlib::frontal_face_detector*", image as "dlib::matrix<dlib::rgb_pixel>*"] -> FaceLocations as "std::vector<dlib::rectangle>"  {
                return (*detector)(*image);
            })
        }
    }
}
use tauri::command;
use types::{AppState, CommandError, FileInfo, ModData, Response};

use crate::utils::mutex::use_mutex_ret;
use crate::utils::{mocks, types};

#[command]
pub fn get_mod_list(state: AppState<'_>) -> Response<Vec<ModData>> {
  let location = use_mutex_ret(&(state.mods_location), |lock| lock.clone());

  if location.current.is_empty() {
    return Ok(mocks::mod_list());
  }

  let mod_list = state.mod_list.clone();
  if mod_list.is_empty() {
    let err_msg = format!("No mods found in {}", location.current.clone().as_str());
    return Err(CommandError::new(err_msg.clone()));
  }

  Ok(mod_list)
}

#[command]
pub async fn get_file_list(id: String) -> Response<Vec<FileInfo>> {
  // Until the actual filesystem code is integrated, this will always return mock data
  Ok(mocks::file_info(id.as_str()))
}
<reponame>tcr/edit-text
/// Copied from https://raw.githubusercontent.com/rust-lang-nursery/mdBook/3688f73052454bf510a5acc85cf55aae450c6e46/src/cmd/watch.rs
/// from commit 3688f73 on https://github.com/rust-lang-nursery/mdBook/
extern crate notify;

use self::notify::Watcher;
use clap::{
    App,
    ArgMatches,
    SubCommand,
};
use mdbook::errors::Result;
use mdbook::utils;
use mdbook::MDBook;
use std::path::Path;
use std::sync::mpsc::channel;
use std::time::Duration;

// Create clap subcommand arguments
pub fn make_subcommand<'a, 'b>() -> App<'a, 'b> {
    SubCommand::with_name("watch")
        .


 = 'aahi',
    mitra = 'mitra',
    pitr = 'pitr',
    vasu = 'vasu',
    vaaraaha = 'vaaraaha',
    visvedeva = 'visvedeva',
    vidhi = 'vidhi',
    sutamukhī = 'sutamukhī',
    puruhuta = 'puruhuta',
    vaahini = 'vaahini',
    naktanakara = 'naktanakara',
    varuna = 'varuna',
    aryaman = 'aryaman',
    bhaga = 'bhaga',
    girisa = 'girisa',
    ajapaada = 'ajapaada',
    ahirBudhnya = 'ahirBudhnya',
    pusya = 'pusya',
    asvini = 'asvini',
    yama = 'yama',
    agni = 'agni',
    vidhaatr = 'vidhaatr',
    kanda = 'kanda',
    aditi = 'aditi',
    amrta = 'amrta',
    vishnu = 'vishnu',
    dyumadgadyuti = 'dyumadgadyuti',
    brahma = 'brahma',
    samudra = 'samudra'
}

export enum CalendarType {
    saka = 'saka',
    vikrama = 'vikrama',
    vikramaKaartika = 'vikramaKaartika',
    default = 'default',
    defaultNorth = 'defaultNorth'
}

//#endregion

//#region Types

type DecimalDegree = { from: { degree: string, decimal: number }, to: { degree: string, decimal: number } };

type PanchangaType = {
    akshamsha?: number,
    rekamsha?: number,
    /**
     * @type default: true
     * @type true: month starts with amaavasya
     * @type false: month starts with paurnami
     */
    maasaarambhaAmaavasya?: boolean,
    /**
     * @type default: sanskrit
     */
    language?: keyof Name['name'],
    /**
     * @type default: true
     * @type true: displays language equivalent transliteration script
     * @type false: displays selected language script
     */
    transliterate?: boolean,
    /**
     * @type default: current date and time
     * @type Date: if provide result is based on provided date
     */
    date?: Date,
    calendarType?: CalendarType
};

type Properties = {
    rasi?: { name: string[], graha: string[] },
    yuga?: { name: string[], currentYear: number, startsOn: Date, endsOn: Date },
    samvatsara?: { name: string[], year: number },
    yoga?: DecimalDegree & { name: string[] },
    karana?: Array<DecimalDegree & { name: string[] }>,
    rtu?: string[],
    aayana?: string[][],
    vaara?: string[],
    maasa?: string[],
    suryaMaasa?: string[],
    tithi?: DecimalDegree & { name: string[], paksha?: keyof PakshaType },
    nakshatra?: DecimalDegree & { name: string[], paada: number },
    rahuKaala?: DecimalDegree,
    yamaGanda?: DecimalDegree,
    guliKaala?: DecimalDegree,
    abhijit?: DecimalDegree & { bad: boolean },
    muhurta?: DecimalDegree & { name: string[], bad: boolean },
    vyavadhi?: { dina: DecimalDegree['from'], raatri: DecimalDegree['from'] },
    suryodhaya?: Date,
    suryaasthama?: Date,
    chandrodhaya?: Date,
    chandraasthama?: Date,
    ayanamsa?: {
        lahiri: DecimalDegree['from'],
        raman: DecimalDegree['from'],
        kpOld: DecimalDegree['from'],


elID = pixelCoords.x + pixelCoords.y * imgSize.x;

	int pointer = headPointers[pixelID];
	headPointers[pixelID] = -1;

	vec4 col = vec4(0.0, 0.0, 0.0, 0.0);

	uint idepth = ssDepth[pixelID];
	int i = 0;
	//while(pointer >= 0 && i < 16384){
	while(pointer >= 0 && i < 10){
		Node node = nodes[pointer];
		//Vertex vertex = vertices[node.pointID];

		if(node.depth <= (float(idepth) * 1.005)){
			col = col + vec4(unpackUnorm4x8(node.colors).rgb, 1.0);
		}

		pointer = node.next;
		i++;
	}

	col.rgb = col.rgb / col.w;
	//col = col + 0.3;

	if(i == 0){
		col = vec4(0, 0, 0, 0);
	}

	//col.rgb = col.rgb / col.w;
	ivec4 icol = ivec4((col.rgb * 255.0), 255);

	//------------
	// colorize by fragment count
	//------------
	//if(i > 0){
	//	float u = float(i);
	//	u = log2(u) / 14.0;

	//	vec4 grad = texture(uGradient, u);
	//	icol.rgb = ivec3(grad.rgb * 255.0);
	//}else{
	//	icol = ivec4(255, 255, 255, 255);
	//}

	//icol.rgb = ivec3(idepth / 30, 0, 0);

	//ssDepth[pixelID] = 0xFFFFFF;
	ssDepth[pixelID] = 0xEFFFFFFF; // ???

	imageStore(uOutput, pixelCoords, icol);

	counter = 0;

}


ESS => Some(Ok((device_name.monitorDevicePath.clone(), device_name))),
                // This error occurs if the calling process does not have access to the current desktop or is running on a remote session.
                ERROR_ACCESS_DENIED => None,
                _ => Some(Err(SysError::DisplayConfigGetDeviceInfoFailed(
                    WinError::from_win32(),
                ))),
            }
        })
        .collect()
}

/// Calls `EnumDisplayMonitors` and returns a list of `HMONITOR` handles.\
/// Note that a `HMONITOR` is a logical construct that may correspond to multiple physical monitors.\
/// e.g. when in "Duplicate" mode two physical monitors will belong to the same `HMONITOR`
unsafe fn enum_display_monitors() -> Result<Vec<HMONITOR>, SysError> {
    unsafe extern "system" fn enum_monitors(
        handle: HMONITOR,
        _: HDC,
        _: *mut RECT,
        data: LPARAM,
    ) -> BOOL {
        let monitors = &mut *(data as *mut Vec<HMONITOR>);
        monitors.push(handle);
        true.into()
    }
    let mut hmonitors = Vec::<HMONITOR>::new();
    EnumDisplayMonitors(
        HDC::default(),
        ptr::null_mut(),
        Some(enum_monitors),
        &mut hmonitors as *mut _ as LPARAM,
    )
    .ok()
    .map_err(|e| SysError::EnumDisplayMonitorsFailed(e))?;
    Ok(hmonitors)
}

/// Gets the list of `PHYSICAL_MONITOR` handles that belong to a `HMONITOR`.\
/// These handles are required for use with the DDC/CI functions, however a valid handle will still
/// be returned for non DDC/CI monitors and also Remote Desktop Session displays.\
/// Also note that physically connected but disabled (inactive) monitors are not returned from this API.
unsafe fn get_physical_monitors_from_hmonitor(
    hmonitor: HMONITOR,
) -> Result<Vec<WrappedPhysicalMonitor>, SysError> {
    let mut physical_number: u32 = 0;
    BOOL(GetNumberOfPhysicalMonitorsFromHMONITOR(
        hmonitor,
        &mut physical_number,
    ))
    .ok()
    .map_err(|e| SysError::GetPhysicalMonitorsFailed(e))?;
    let mut raw_physical_monitors = vec![PHYSICAL_MONITOR::default(); physical_number as usize];
    // Allocate first so that pushing the wrapped handles always succeeds.
    let mut physical_monitors = Vec::with_capacity(raw_physical_monitors.len());
    BOOL(GetPhysicalMonitorsFromHMONITOR(
        &hmonitor,
        raw_physical_monitors.len() as u32,
        raw_physical_monitors.as_mut_ptr(),
    ))
    .ok()
    .map_err(|e| SysError::GetPhysicalMonitorsFailed(e))?;
    // Transform immediately into WrappedPhysicalMonitor so the handles don't leak
    raw_physical_monitors
        .into_iter()
        .for_each(|pm| physical_monitors.push(WrappedPhysicalMonitor(pm.hPhysicalMonitor)));
    Ok(physical_monitors)
}

/// Gets the list of display devices that belong to a `HMONITOR`.\
/// Due to the `EDD_GET_DEVICE_INTERFACE_NAME` flag, the `DISPLAY_DEVICEW` will contain the DOS
/// device path for each monitor in the `DeviceID` field.\
/// Note: Connected but inactive displays have been filtered out.
unsafe fn get_display_devices_from_hmonitor(
    hmonitor: HMONITOR,
) -> Result<Vec<DISPLAY_DEVICEW>, SysError> {
    let mut info = MONITORINFOEXW::default();
    info.monitorInfo.cbSize = size_of::<MONITORINFOEXW>() as u32;
    let info_ptr = &mut info as *mut _ as *mut MONITORINFO;
    GetMonitorInfoW(hmonitor, info_ptr)
        .ok()
        .map_err(|e| SysError::GetMonitorInfoFailed(e))?;
    Ok((0..)
        .map_while(|device_number| {
            let mut device = DISPLAY_DEVICEW::default();


) over ( order by noxn3.id asc):0!null->Y3IOU:0, noxn3.id:1!null->XLFIA:0]\n" +
			"                         └─ Window\n" +
			"                             ├─ row_number() over ( order by noxn3.id ASC)\n" +
			"                             ├─ noxn3.id:0!null\n" +
			"                             └─ Table\n" +
			"                                 ├─ name: NOXN3\n" +
			"                                 ├─ columns: [id]\n" +
			"                                 ├─ colSet: (13-22)\n" +
			"                                 └─ tableId: 3\n" +
			"",
		ExpectedEstimates: "Project\n" +
			" ├─ columns: [tusay.Y3IOU as Q7H3X]\n" +
			" └─ Sort(xj2rd.Y46B2 ASC)\n" +
			"     └─ HashJoin\n" +
			"         ├─ (xj2rd.HHVLX = tusay.XLFIA)\n" +
			"         ├─ SubqueryAlias\n" +
			"         │   ├─ name: xj2rd\n" +
			"         │   ├─ outerVisibility: false\n" +
			"         │   ├─ isLateral: false\n" +
			"         │   ├─ cacheable: true\n" +
			"         │   └─ Project\n" +
			"         │       ├─ columns: [qywqd.id as Y46B2, qywqd.HHVLX as HHVLX, qywqd.HVHRZ as HVHRZ]\n" +
			"         │       └─ Table\n" +
			"         │           ├─ name: QYWQD\n" +
			"         │           └─ columns: [id hhvlx hvhrz]\n" +
			"         └─ HashLookup\n" +
			"             ├─ left-key: (xj2rd.HHVLX)\n" +
			"             ├─ right-key: (tusay.XLFIA)\n" +
			"             └─ CachedResults\n" +
			"                 └─ SubqueryAlias\n" +
			"                     ├─ name: tusay\n" +
			"                     ├─ outerVisibility: false\n" +
			"                     ├─ isLateral: false\n" +
			"                     ├─ cacheable: true\n" +
			"                     └─ Project\n" +
			"                         ├─ columns: [row_number() over ( order by noxn3.id asc) as Y3IOU, noxn3.id as XLFIA]\n" +
			"                         └─ Window(row_number() over ( order by noxn3.id ASC), noxn3.id)\n" +
			"                             └─ Table\n" +
			"                                 ├─ name: NOXN3\n" +
			"                                 └─ columns: [id]\n" +
			"",
		ExpectedAnalysis: "Project\n" +
			" ├─ columns: [tusay.Y3IOU as Q7H3X]\n" +
			" └─ Sort(xj2rd.Y46B2 ASC)\n" +
			"     └─ HashJoin\n" +
			"         ├─ (xj2rd.HHVLX = tusay.XLFIA)\n" +
			"         ├─ SubqueryAlias\n" +
			"         │   ├─ name: xj2rd\n" +


e I/O
is sent down each path in a round-robin fashion.   On RHEL 7.3 and SLES 12
SP2, one path may get >1000 I/Os before then next path is tried.   The
number of I/Os sent down each path seems rather arbitrary.

The end result is that performance to storage arrays with
multipath paths can be degraded severely and be 2 or 3 times worse than the
expected performance depending on the workload.

LinuxKI data will show
the IOs will stay on the same physical path for a specific multipath device
before switching to the next physical path:

> kiinfo -kitrace -ts 0207_2220 | grep
"block_rq_insert" | egrep
"0x043000f0|0x047000f0|0x082000e0" | more

    0.016617 cpu=33 pid=2542 tgid=2542
block_rq_insert dev_t=0x047000f0 wr=write flags=NOMERGE|SYNC|FAILFAST_TRANSPORT
sector=0x1d18000 len=238592 async=0 sync=0 bytes=238592

    0.025835 cpu=33 pid=2542 tgid=2542
block_rq_insert dev_t=0x047000f0 wr=write flags=NOMERGE|SYNC|FAILFAST_TRANSPORT
sector=0x1d181d2 len=1616384 async=0 sync=0 bytes=1616384


 com.intellij.openapi.editor.Editor
import com.intellij.openapi.editor.colors.EditorFontType
import com.werfad.UserConfig.DataBean
import com.werfad.utils.offsetToXYCompat
import java.awt.*
import javax.swing.JComponent

class MarksCanvas : JComponent() {
    private val config: DataBean = UserConfig.getDataBean()
    private var mMarks: List<Mark> = emptyList()
    private lateinit var mEditor: Editor
    private lateinit var mFont: Font
    private lateinit var mFontMetrics: FontMetrics

    fun sync(e: Editor) {
        val visibleArea = e.scrollingModel.visibleArea
        setBounds(visibleArea.x, visibleArea.y, visibleArea.width, visibleArea.height)
        mEditor = e
        mFont = e.colorsScheme.getFont(EditorFontType.BOLD)
        mFontMetrics = e.contentComponent.getFontMetrics(mFont)
    }

    fun setData(marks: List<Mark>) {
        mMarks = marks
        repaint()
    }

    override fun paint(g: Graphics) {
        val g2d = g as Graphics2D
        g2d.setRenderingHint(
            RenderingHints.KEY_TEXT_ANTIALIASING,
            RenderingHints.VALUE_TEXT_ANTIALIAS_ON
        )

        val coordinates = mMarks
            .map { mEditor.offsetToXYCompat(it.offset) }
            .toList()

        g2d.composite = AlphaComposite.getInstance(AlphaComposite.SRC_OVER)
        mMarks.zip(coordinates)
            .sortedBy { it.second.x }
            .forEach {
                g2d.color = Color(config.backgroundColor, true)
                val keyTag = it.first.keyTag
                val bounds = mFontMetrics.getStringBounds(keyTag.substring(it.first.advanceIndex), g).bounds

                g2d.fillRect(it.second.x - x, it.second.y - y, bounds.width, bounds.height)
                g2d.font = mFont

                val xInCanvas = it.second.x - x
                val yInCanvas = it.second.y - y + bounds.height - mFontMetrics.descent
                if (keyTag.length == 2) {
                    if (it.first.advanceIndex == 0) {
                        val midX = xInCanvas + bounds.width / 2

                        // first char
                        g2d.color = Color(config.hit2Color0, true)
                        g2d.drawString(keyTag[0].toString(), xInCanvas, yInCanvas)

                        // second char
                        g2d.color = Color(config.hit2Color1, true)
                        g2d.drawString(keyTag[1].toString(), midX, yInCanvas)
                    } else {
                        g2d.color = Color(config.hit2Color1, true)
                        g2d.drawString(keyTag[1].toString(), xInCanvas, yInCanvas)
                    }
                } else {
                    g2d.color = Color(config.hit1Color, true)
                    g2d.drawString(keyTag[0].toString(), xInCanvas, yInCanvas)
                }
            }
        super.paint(g)
    }

    class Mark(val keyTag: String, val offset: Int, val advanceIndex: Int = 0, val editor: Editor? = null)
}package com.werfad.finder

import com.intellij.openapi.editor.Editor
import com.intellij.openapi.util.TextRange
import com.werfad.KeyTagsGenerator
import com.werfad.MarksCanvas
import com.werfad.UserConfig
import com.werfad.utils.findAll
import kotlin.math.abs

private const val STATE_WAIT_SEARCH_CHAR = 0
private const val STATE_WAIT_KEY = 1

class Char1Finder : Finder {
    private var


 null)

    actual constructor(cause: Throwable?) : this(null, cause)
}/*
 * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
 * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
 */

package kotlin.text

//
// NOTE: THIS FILE IS AUTO-GENERATED by the GenerateUnicodeData.kt
// See: https://github.com/JetBrains/kotlin/tree/master/libraries/stdlib
//

// 1343 ranges totally
@SharedImmutable
private val rangeStart = intArrayOf(
    0x0000, 0x0020, 0x0022, 0x0027, 0x002b, 0x002e, 0x0030, 0x003a, 0x003c, 0x003f, 0x0041, 0x005b, 0x005e, 0x0061, 0x007b, 0x007e, 0x007f, 0x00a0, 0x00a2, 0x00a6,
    0x00aa, 0x00ad, 0x00b0, 0x00b3, 0x00b6, 0x00b9, 0x00bd, 0x00c0, 0x00d7, 0x00d8, 0x00df, 0x00f7, 0x00f8, 0x00ff, 0x0138, 0x0149, 0x0179, 0x017f, 0x0182, 0x0184,
    0x018b, 0x018e, 0x0190, 0x0198, 0x019b, 0x01a0, 0x01a7, 0x01aa, 0x01ac, 0x01b3, 0x01b8, 0x01bb, 0x01bd, 0x01c0, 0x01c4, 0x01cc, 0x01dd, 0x01f0, 0x01f4, 0x01f8,
    0x0233, 0x0239, 0x0240, 0x0243, 0x0246, 0x024f, 0x0294, 0x0295, 0x02b0, 0x02c2, 0x02c6, 0x02d2, 0x02e0, 0x02e5, 0x02eb, 0x02ef, 0x0300, 0x0370, 0x0374, 0x0377,
    0x037a, 0x037d, 0x0380, 0x0384, 0x0386, 0x038a, 0x038f, 0x0391, 0x03a2, 0x03a3, 0x03ac, 0x03cd, 0x03d2, 0x03d5, 0x03d7, 0x03ef, 0x03f4, 0x03f9, 0x03fb, 0x03fd,
    0x0430, 0x045f, 0x0482, 0x0483, 0x0488, 0x048a, 0x04c1, 0x04cf, 0x0530, 0x0531, 0x0557, 0x055a, 0x0560, 0x0589, 0x058c, 0x058f, 0x0591, 0x05be, 0x05bf, 0x05c8,
    0x05d0, 0x05eb, 0x05ef, 0x05f3, 0x05f5, 0x0600, 0x0606, 0x0609, 0x060e, 0x0610, 0x061b,


Policy4CCCmd ->SetCandidates("keepIfMultipleVolumeIDsInvolved keepIfMultipleVolumeNamesInvolved keepAll");

  cmdName = GetDirectoryName()+"setEventIDCoinc";
  SetEventIDCoincCmd = new G4UIcmdWithABool(cmdName,this);
  SetEventIDCoincCmd->SetGuidance("Set to one for event identification coincidencences");

}

GateCoincidenceSorterMessenger::~GateCoincidenceSorterMessenger()
{
    delete windowCmd;
    delete offsetCmd;
    delete windowJitterCmd;
    delete offsetJitterCmd;
    delete minSectorDiffCmd;
    delete SetInputNameCmd;
    delete MultiplePolicyCmd;
    delete setPresortBufferSizeCmd;
    delete AllDigiOpenCoincGateCmd;
    delete SetTriggerOnlyByAbsorberCmd;
    delete SetAcceptancePolicy4CCCmd;
    delete SetEventIDCoincCmd;
    delete forceMinSectorDiffCmd;
    delete minSCmd;
    delete maxDeltaZCmd;
}

void GateCoincidenceSorterMessenger::SetNewValue(G4UIcommand* aCommand, G4String newValue)
{
  if ( aCommand==windowCmd )
    { m_CoincidenceSorter->SetWindow(windowCmd->GetNewDoubleValue(newValue)); }
  else if( aCommand == windowJitterCmd )
    { m_CoincidenceSorter->SetWindowJitter(windowJitterCmd->GetNewDoubleValue(newValue)); }
  else if( aCommand == offsetCmd )
    { m_CoincidenceSorter->SetOffset(offsetCmd->GetNewDoubleValue(newValue)); }
  else if( aCommand == offsetJitterCmd )
    { m_CoincidenceSorter->SetOffsetJitter(offsetJitterCmd->GetNewDoubleValue(newValue)); }
  else if( aCommand == forceMinSectorDiffCmd )
    { m_CoincidenceSorter->SetForcedTo0MinSectorDifference(forceMinSectorDiffCmd->GetNewBoolValue(newValue)); }
  else if( aCommand == minSectorDiffCmd )
    { m_CoincidenceSorter->SetMinSectorDifference(minSectorDiffCmd->GetNewIntValue(newValue)); }
  else if (aCommand==minSCmd)
	  m_CoincidenceSorter->SetMinS(minSCmd->GetNewDoubleValue(newValue));
  else if (aCommand==maxDeltaZCmd)
	  m_CoincidenceSorter->SetMaxDeltaZ(maxDeltaZCmd->GetNewDoubleValue(newValue));
  else if( aCommand == setDepthCmd )
    { m_CoincidenceSorter->SetDepth(setDepthCmd->GetNewIntValue(newValue)); }
  else if( aCommand == setPresortBufferSizeCmd )
    { m_CoincidenceSorter->SetPresortBufferSize(setPresortBufferSizeCmd->GetNewIntValue(newValue)); }
  else if (aCommand == SetInputNameCmd)
    {
	  GateDigitizerMgr* digitizerMgr = GateDigitizerMgr::GetInstance();

	  GateSinglesDigitizer* inputDigitizer;
	    inputDigitizer = digitizerMgr->FindSinglesDigitizer(newValue);//m_collectionName);
	    if (!inputDigitizer)
	  	  if (digitizerMgr->m_SDlist.size()==1)
	    	  {
	  		  G4String new_name= newValue+"_"+digitizerMgr->m_SDlist[0]->GetName();
	  		  //G4cout<<" new_name "<< new_name<<G4endl;
	  		  if (!(digitizerMgr->FindSinglesDigitizer(new_name)))
	  			  GateError("ERROR: The name used in coincidence sorter has to be the SD name;_"+ newValue+"_ is unknown for input singles digicollection! \n");
	  		  inputDigitizer = digitizerMgr->FindSinglesDigitizer(new_name);
	  		  m_CoincidenceSorter->SetInputName(new_name);
	  		  m_CoincidenceSorter->SetSystem(new_name); //! A
	    	  }
	  	  else
	  		  GateError("ERROR: The name _"+ newValue+"_ is unknown for input singles digicollection! \n");
	    el


  {
        services.AddScoped<IOrderStructProcessor, OrderProcessor>()
            .Decorate<IOrderStructProcessor, StockProcessor>()
            .Decorate<IOrderStructProcessor, BankAccountProcessor>();

        services.AddScoped<IStockRepository, InventoryStreamProcessor>();
        services.AddScoped<IOrderProcessorEvents, OrderStreamProcessor>();

        services.AddBus(configuration);

        return services;
    }
}


     debugError("DeleteDataStores.handleRequest", e);
            writeLog(LogWriter.LOG_ERROR, Level.INFO,
                "FAILED_DELETE_DATASTORES", params);
            throw new CLIException(e, ExitCodes.REQUEST_CANNOT_BE_PROCESSED);
        }

    }
}
/**
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 *
 * Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
 *
 * The contents of this file are subject to the terms
 * of the Common Development and Distribution License
 * (the License). You may not use this file except in
 * compliance with the License.
 *
 * You can obtain a copy of the License at
 * https://opensso.dev.java.net/public/CDDLv1.0.html or
 * opensso/legal/CDDLv1.0.txt
 * See the License for the specific language governing
 * permission and limitations under the License.
 *
 * When distributing Covered Code, include this CDDL
 * Header Notice in each file and include the License file
 * at opensso/legal/CDDLv1.0.txt.
 * If applicable, add the following below the CDDL Header,
 * with the fields enclosed by brackets [] replaced by
 * your own identifying information:
 * "Portions Copyrighted [year] [name of copyright owner]"
 *
 * $Id: ListCircleOfTrustMembers.java,v 1.8 2009/10/29 00:03:50 exu Exp $
 *
 */

package com.sun.identity.federation.cli;

import com.sun.identity.cli.AuthenticatedCommand;
import com.sun.identity.cli.CLIException;
import com.sun.identity.cli.ExitCodes;
import com.sun.identity.cli.IOutput;
import com.sun.identity.cli.LogWriter;
import com.sun.identity.cli.RequestContext;
import com.sun.identity.cot.CircleOfTrustManager;
import com.sun.identity.cot.COTException;
import java.text.MessageFormat;
import java.util.Iterator;
import java.util.Set;
import java.util.logging.Level;

/**
 * List members in a Circle of Trust.
 */
public class ListCircleOfTrustMembers extends AuthenticatedCommand {
    private String realm;
    private String cot;
    private String spec;

    /**
     * List members in a circle of trust.
     *
     * @param rc Request Context.
     * @throws CLIException if unable to process this request.
     */
    @Override
    public void handleRequest(RequestContext rc)
        throws CLIException {
        super.handleRequest(rc);
        ldapLogin();

        realm = getStringOptionValue(FedCLIConstants.ARGUMENT_REALM, "/");
        cot = getStringOptionValue(FedCLIConstants.ARGUMENT_COT);
        IOutput outputWriter = getOutputWriter();
        spec=FederationManager.getIDFFSubCommandSpecification(rc);

        String[] params = {realm, cot, spec};
        writeLog(LogWriter.LOG_ACCESS, Level.INFO,
            "ATTEMPT_LIST_COT_MEMBERS", params);

        try {
            CircleOfTrustManager cotManager = new CircleOfTrustManager(
                ssoToken);
            Set circleOfTrusts = cotManager.getAllCirclesOfTrust(realm);
            if (!circleOfTrusts.contains(cot)){
                Object[] obj = {cot};
                String[] args = {realm, cot, spec, MessageFormat.format(
                    getResourceString(
                    "list-circle-of-trust-members-cot-does-not-exists"), obj)};
                writeLog(LogWriter.LOG_ERROR, Level.INFO,
                    "FAILED_LIST_COT_MEMBERS", args);
                throw new CLIException(MessageFormat.format(
                    getResourceString(
                    "list-circle-of-trust-members-cot-does-not-exists"), obj),
                    ExitCodes.REQUEST_CANNOT_BE_PROCESSED);
            }

            Set members = cotManager.listCircleOfTrustMember(realm, cot,


YALIGN)) = pat;
		*(UINT32 *)(lpBuffer + 1 + (10 * DCLOCK_YALIGN)) = pat;
	}
}

/**
 * 初期化-4
 * @param[out] lpBuffer バッファ
 * @param[in] nDegits 桁数
 */
static void InitializeFont4(UINT8* lpBuffer, UINT8 nDegits)
{
	if (nDegits)
	{
		const UINT32 pat = (nDegits <= 4) ? 0x00000004 : 0x00040004;
		*(UINT32 *)(lpBuffer + 1 + ( 5 * DCLOCK_YALIGN)) = pat;
		*(UINT32 *)(lpBuffer + 1 + ( 6 * DCLOCK_YALIGN)) = pat;
		*(UINT32 *)(lpBuffer + 1 + ( 9 * DCLOCK_YALIGN)) = pat;
		*(UINT32 *)(lpBuffer + 1 + (10 * DCLOCK_YALIGN)) = pat;
	}
}

/**
 * 初期化-5
 * @param[out] lpBuffer バッファ
 * @param[in] nDegits 桁数
 */
static void InitializeFont5(UINT8* lpBuffer, UINT8 nDegits)
{
	if (nDegits)
	{
		const UINT32 pat = (nDegits <= 4) ? 0x00000006 : 0x00030006;
		*(UINT32 *)(lpBuffer + 1 + ( 6 * DCLOCK_YALIGN)) = pat;
		*(UINT32 *)(lpBuffer + 1 + ( 7 * DCLOCK_YALIGN)) = pat;
		*(UINT32 *)(lpBuffer + 1 + ( 9 * DCLOCK_YALIGN)) = pat;
		*(UINT32 *)(lpBuffer + 1 + (10 * DCLOCK_YALIGN)) = pat;
	}
}

/**
 * 初期化-6
 * @param[out] lpBuffer バッファ
 * @param[in] nDegits 桁数
 */
static void InitializeFont6(UINT8* lpBuffer, UINT8 nDegits)
{
	if (nDegits)
	{
		const UINT32 pat = (nDegits <= 4) ? 0x00000020 : 0x00000220;
		*(UINT32 *)(lpBuffer + 1 + ( 8 * DCLOCK_YALIGN)) = pat;
		*(UINT32 *)(lpBuffer + 1 + (10 * DCLOCK_YALIGN)) = pat;
	}
}

/**
 * パターン
 */
static const DispClockPattern s_pattern[6] =
{
	// FONT-1
	{
		6, 0xfc,
		{0, 7, 19, 26, 38, 45},
		InitializeFont1,
		{
			{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,},
			{0x78, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0x78,},
			{0x30, 0x70, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30,},
			{0x78, 0xcc, 0xcc, 0x0c, 0x18, 0x30, 0x60, 0xc0, 0xfc,},
			{0xfc, 0x18, 0x30, 0x70, 0x18


/aws-properties-quicksight-dashboard-geospatialmapstate.html#cfn-quicksight-dashboard-geospatialmapstate-mapnavigation
	//
	MapNavigation *string `field:"optional" json:"mapNavigation" yaml:"mapNavigation"`
}

package awsquicksight

// The gradient step color for a single step.
//
// Example:
//   // The code below shows an example of how to instantiate this type.
//   // The values are placeholders you should change.
//   import "github.com/aws/aws-cdk-go/awscdk"
//
//   geospatialGradientStepColorProperty := &GeospatialGradientStepColorProperty{
//   	Color: jsii.String("color"),
//   	DataValue: jsii.Number(123),
//   }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-geospatialgradientstepcolor.html
//
type CfnAnalysis_GeospatialGradientStepColorProperty struct {
	// The color and opacity values for the gradient step color.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-geospatialgradientstepcolor.html#cfn-quicksight-analysis-geospatialgradientstepcolor-color
	//
	Color *string `field:"required" json:"color" yaml:"color"`
	// The data value for the gradient step color.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-geospatialgradientstepcolor.html#cfn-quicksight-analysis-geospatialgradientstepcolor-datavalue
	//
	// Default: - 0.
	//
	DataValue *float64 `field:"required" json:"dataValue" yaml:"dataValue"`
}

package awsquicksight

// The collapse state options for the pivot table field options.
//
// Example:
//   // The code below shows an example of how to instantiate this type.
//   // The values are placeholders you should change.
//   import "github.com/aws/aws-cdk-go/awscdk"
//
//   pivotTableFieldCollapseStateOptionProperty := &PivotTableFieldCollapseStateOptionProperty{
//   	Target: &PivotTableFieldCollapseStateTargetProperty{
//   		FieldDataPathValues: []interface{}{
//   			&DataPathValueProperty{
//   				DataPathType: &DataPathTypeProperty{
//   					PivotTableDataPathType: jsii.String("pivotTableDataPathType"),
//   				},
//   				FieldId: jsii.String("fieldId"),
//   				FieldValue: jsii.String("fieldValue"),
//   			},
//   		},
//   		FieldId: jsii.String("fieldId"),
//   	},
//
//   	// the properties below are optional
//   	State: jsii.String("state"),
//   }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-pivottablefieldcollapsestateoption.html
//
type CfnDashboard_PivotTableFieldCollapseStateOptionProperty struct {
	// A tagged-union object that sets the collapse state.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-pivottablefieldcollapsestateoption.html#cfn-quicksight-dashboard-pivottablefieldcollapsestateoption-target
	//
	Target interface{} `field:"required" json:"target" yaml:"target"`
	// The state of the field target of a pivot table. Choose one of the following options:.
	//
	// - `COLLAPSED`
	// - `EXPANDED`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-pivottablefieldcollapse


 params *kendra.QueryInput, optFns ...func(*kendra.Options)) (*kendra.QueryOutput, error) {
	return m.QueryOutput, m.QueryError
}
package prompt

import (
	"github.com/hupe1980/golc/schema"
)

// PromptSelector is an interface for selecting prompts based on a model.
type PromptSelector interface {
	GetPrompt(model schema.Model) schema.PromptTemplate
}

// Compile time check to ensure ConditionalPromptSelector satisfies the PromptSelector interface.
var _ PromptSelector = (*ConditionalPromptSelector)(nil)

// ConditionalFunc represents a function that evaluates a condition based on a model.
type ConditionalFunc func(model schema.Model) bool

// Conditional represents a conditional prompt configuration.
type Conditional struct {
	Condition ConditionalFunc
	Prompt    schema.PromptTemplate
}

// ConditionalPromptSelector is a prompt selector that selects prompts based on conditions.
type ConditionalPromptSelector struct {
	DefaultPrompt schema.PromptTemplate
	Conditionals  []Conditional
}

// GetPrompt selects a prompt template based on the provided model.
// It evaluates the conditions in order and returns the prompt associated with the first matching condition,
// or returns the default prompt if no condition is met.
func (cps *ConditionalPromptSelector) GetPrompt(model schema.Model) schema.PromptTemplate {
	for _, conditional := range cps.Conditionals {
		if conditional.Condition(model) {
			return conditional.Prompt
		}
	}

	return cps.DefaultPrompt
}

// IsLLM checks if the given model is of type schema.LLM.
func IsLLM(model schema.Model) bool {
	_, ok := model.(schema.LLM)
	return ok
}

// IsChatModel checks if the given model is of type schema.ChatModel.
func IsChatModel(model schema.Model) bool {
	_, ok := model.(schema.ChatModel)
	return ok
}
package rag

import (
	"github.com/hupe1980/golc"
	"github.com/hupe1980/golc/chain"
	"github.com/hupe1980/golc/prompt"
	"github.com/hupe1980/golc/schema"
)

const defaultStuffSummarizationTemplate = `Write a concise summary of the following:

"{{.text}}"

CONCISE SUMMARY:`

type StuffSummarizationOptions struct {
	*schema.CallbackOptions
	StuffSummarizationPrompt schema.PromptTemplate
}

func NewStuffSummarization(model schema.Model, optFns ...func(o *StuffSummarizationOptions)) (*StuffDocuments, error) {
	opts := StuffSummarizationOptions{
		CallbackOptions: &schema.CallbackOptions{
			Verbose: golc.Verbose,
		},
	}

	for _, fn := range optFns {
		fn(&opts)
	}

	if opts.StuffSummarizationPrompt == nil {
		opts.StuffSummarizationPrompt = prompt.NewTemplate(defaultStuffSummarizationTemplate)
	}

	llmChain, err := chain.NewLLM(model, opts.StuffSummarizationPrompt, func(o *chain.LLMOptions) {
		o.CallbackOptions = opts.CallbackOptions
		o.OutputKey = "outputText"
	})
	if err != nil {
		return nil, err
	}

	return NewStuffDocuments(llmChain, func(o *StuffDocumentsOptions) {
		o.CallbackOptions = opts.CallbackOptions
	})
}

const defaultRefineSummarizationTemplate = `Your job is to produce a final summary
We have provided an existing summary up to a certain point: "{{.existingAnswer}}"
We have the opportunity to refine the existing summary (only if needed) with some more context below.
------------
{{.text}}
------------
Given the new context, refine the original summary
If the context isn't


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Concurrency.TestTools.UnitTesting;
using System.Threading;
using Microsoft.Concurrency.TestTools.UnitTesting.Chess;

namespace Microsoft.Concurrency.MChess.RegressionTests
{
    public class BoundedQueueTests : MChessRegressionTestBase
    {
        // ORIG: boundedqueue.cs
        [ChessTestMethod]
        [ExpectedChessResult("csb1", ChessExitCode.ChessDeadlock, SchedulesRan = 1, LastThreadCount = 4, LastExecSteps = 21, LastHBExecSteps = 1)]
        [ExpectedChessResult("csb2", ChessExitCode.ChessDeadlock, SchedulesRan = 1, LastThreadCount = 4, LastExecSteps = 21, LastHBExecSteps = 1)]
        [ExpectedChessResult("csb3", ChessExitCode.ChessDeadlock, SchedulesRan = 1, LastThreadCount = 4, LastExecSteps = 21, LastHBExecSteps = 1)]
        public void BoundedQueueTest()
        {
            BoundedQueue<int> queue = new BoundedQueue<int>(2);

            ParallelTasks ptasks = new ParallelTasks();

            // PRODUCER thread 1 inserts 3 elements
            ptasks.Add("Producer1", () => {
                for (int i = 0; i < 3; i++)
                    queue.Enqueue(i);
            });

            // PRODUCER thread 2 inserts 3 elements
            ptasks.Add("Producer2", () => {
                for (int i = 0; i < 3; i++)
                    queue.Enqueue(i);
            });

            // CONSUMER thread removes 4 elements
            ptasks.Add("Consumer", () => {
                for (int i = 0; i < 4; i++)
                {
                    System.Diagnostics.Debug.Assert(i >= queue.Dequeue());
                }
            });

            ptasks.Execute();

            // check size: should be two
            Assert.AreEqual(2, queue.Size(), "The final size of the queue.");
        }

        // ORIG: boundedqueue2.cs
        [ChessTestMethod]
        [ExpectedChessResult("csb1", ChessExitCode.ChessDeadlock, SchedulesRan = 1, LastThreadCount = 4, LastExecSteps = 48, LastHBExecSteps = 1)]
        [ExpectedChessResult("csb2", ChessExitCode.ChessDeadlock, SchedulesRan = 1, LastThreadCount = 4, LastExecSteps = 48, LastHBExecSteps = 1)]
        [ExpectedChessResult("csb3", ChessExitCode.ChessDeadlock, SchedulesRan = 1, LastThreadCount = 4, LastExecSteps = 48, LastHBExecSteps = 1)]
        public void BoundedQueueTest2()
        {
            BoundedQueue<int> queue = new BoundedQueue<int>(2);

            ParallelTasks ptasks = new ParallelTasks();

            // PRODUCER thread inserts 6 elements
            ptasks.Add("Producer", () => {
                for (int i = 0; i < 6; i++)
                    queue.Enqueue(i);
            });

            // CONSUMER thread 1 removes 3 elements
            ptasks.Add("Consumer1", () => {
                for (int i = 0; i < 3; i++)
                {
                    int r = queue.Dequeue();
                    System.Diagnostics.Debug.Assert(i <= r);
                }
            });

            // CONSUMER threa


/**
 * @file llscopedvolatileaprpool.h
 * @brief Implementation of LLScopedVolatileAPRPool
 *
 * $LicenseInfo:firstyear=2010&license=viewergpl$
 *
 * Copyright (c) 2010, Linden Research, Inc.
 *
 * Second Life Viewer Source Code
 * The source code in this file ("Source Code") is provided by Linden Lab
 * to you under the terms of the GNU General Public License, version 2.0
 * ("GPL"), unless you have obtained a separate licensing agreement
 * ("Other License"), formally executed by you and Linden Lab.  Terms of
 * the GPL can be found in doc/GPL-license.txt in this distribution, or
 * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
 *
 * There are special exceptions to the terms and conditions of the GPL as
 * it is applied to this Source Code. View the full text of the exception
 * in the file doc/FLOSS-exception.txt in this software distribution, or
 * online at
 * http://secondlifegrid.net/programs/open_source/licensing/flossexception
 *
 * By copying, modifying or distributing this software, you acknowledge
 * that you have read and understood your obligations described above,
 * and agree to abide by those obligations.
 *
 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
 * COMPLETENESS OR PERFORMANCE.
 * $/LicenseInfo$
 */

#ifndef LL_LLSCOPEDVOLATILEAPRPOOL_H
#define LL_LLSCOPEDVOLATILEAPRPOOL_H

#include "llthread.h"

//! Scoped volatile memory pool.
//
// As the AIVolatileAPRPool should never keep allocations very
// long, it's most common use is for allocations with a lifetime
// equal to it's scope.
//
// This is a convenience class that makes just a little easier to type.
//
class LLScopedVolatileAPRPool
{
private:
	AIVolatileAPRPool& mPool;
	apr_pool_t* mScopedAPRpool;
public:
	LLScopedVolatileAPRPool() : mPool(AIThreadLocalData::tldata().mVolatileAPRPool), mScopedAPRpool(mPool.getVolatileAPRPool()) { }
	~LLScopedVolatileAPRPool() { mPool.clearVolatileAPRPool(); }
	// Only use this to pass the pointer to a libapr-1 function that requires it.
	operator apr_pool_t*() const { return mScopedAPRpool; }
};

#endif


)
          stereoMode = 4;
        else
          stereoMode = 3;
        break;
      case NOT_SET:
        //$FALL-THROUGH$
      default:
        stereoMode = 7;
        break;
    }

    if (gfp.getInSampleRate() <= 32000)
      sourceFreq = 0x00;
    else if (gfp.getInSampleRate() == 48000)
      sourceFreq = 0x02;
    else if (gfp.getInSampleRate() > 48000)
      sourceFreq = 0x03;
    else {
      // default is 44100Hz
      sourceFreq = 0x01;
    }

    // Check if the user overrided the default LAME behavior with some
    // nasty options
    if (gfp.short_blocks == ShortBlock.short_block_forced
        || gfp.short_blocks == ShortBlock.short_block_dispensed
        || ((gfp.lowpassfreq == -1) && (gfp.highpassfreq == -1)) || /* "-k" */
        (gfp.scale_left < gfp.scale_right)
        || (gfp.scale_left > gfp.scale_right)
        || (gfp.disable_reservoir && gfp.getBitRate() < 320) || gfp.noATH
        || gfp.ATHonly || (athType == 0) || gfp.getInSampleRate() <= 32000)
      nonOptimal = 1;

    misc = noiseShaping + (stereoMode << 2) + (nonOptimal << 5)
        + (sourceFreq << 6);

    musicCRC = gfc.nMusicCRC;

    // Write all this information into the stream

    createInteger(streamBuffer, streamBufferPos + bytesWritten, quality);
    bytesWritten += 4;

    for (int j = 0; j < 9; j++) {
      streamBuffer[streamBufferPos + bytesWritten + j] = (byte) versionStr
          .charAt(j);
    }
    bytesWritten += 9;

    streamBuffer[streamBufferPos + bytesWritten] = (byte) revMethod;
    bytesWritten++;

    streamBuffer[streamBufferPos + bytesWritten] = (byte) lowpass;
    bytesWritten++;

    createInteger(streamBuffer, streamBufferPos + bytesWritten,
        peakSignalAmplitude);
    bytesWritten += 4;

    createShort(streamBuffer, streamBufferPos + bytesWritten,
        radioReplayGain);
    bytesWritten += 2;

    createShort(streamBuffer, streamBufferPos + bytesWritten,
        audiophileReplayGain);
    bytesWritten += 2;

    streamBuffer[streamBufferPos + bytesWritten] = (byte) flags;
    bytesWritten++;

    if (abrBitrate >= 255)
      streamBuffer[streamBufferPos + bytesWritten] = (byte) 0xFF;
    else
      streamBuffer[streamBufferPos + bytesWritten] = (byte) abrBitrate;
    bytesWritten++;

    streamBuffer[streamBufferPos + bytesWritten] = (byte) (encDelay >> 4);
    streamBuffer[streamBufferPos + bytesWritten + 1] = (byte) ((encDelay << 4) + (encPadding >> 8));
    streamBuffer[streamBufferPos + bytesWritten + 2] = (byte) encPadding;

    bytesWritten += 3;

    streamBuffer[streamBufferPos + bytesWritten] = (byte) misc;
    bytesWritten++;

    // unused in rev0
    streamBuffer[streamBufferPos + bytesWritten++] = 0;

    createShort(streamBuffer, streamBufferPos + bytesWritten, gfp.preset);
    bytesWritten += 2;

    createInteger(streamBuffer, streamBufferPos + bytesWritten, musicLength);
    bytesWritten += 4;

    createShort(streamBuffer, streamBufferPos + bytesWritten, musicCRC);
    bytesWritten += 2;

    // Calculate tag CRC.... must be done here, since it includes previous
    // informati


��상강도",nil},
[2241] = {"비밀결사대 도둑",nil},
[2242] = {"비밀결사대 염탐꾼",nil},
[2243] = {"비밀결사대 보초병",nil},
[2244] = {"비밀결사대 어둠마법사",nil},
[2245] = {"비밀결사대 정찰병",nil},
[2246] = {"비밀결사대 암살자",nil},
[2247] = {"비밀결사대 집행자",nil},
[2248] = {"동굴 설인",nil},
[2249] = {"사나운 설인",nil},
[2250] = {"산악 설인",nil},
[2251] = {"거대한 설인",nil},
[2252] = {"산사태 오우거",nil},
[2253] = {"산사태일족 투사",nil},
[2254] = {"산사태일족 싸움꾼",nil},
[2255] = {"산사태일족 마법사",nil},
[2256] = {"산사태일족 집행자",nil},
[2257] = {"무그톨",nil},
[2258] = {"분노한 바위 정령",nil},
[2260] = {"비밀결사대 도적",nil},
[2261] = {"비밀결사대 경비병",nil},
[2263] = {"치안대장 레드패스",nil},
[2264] = {"힐스브래드 재봉사",nil},
[2265] = {"힐스브래드 수습대장장이",nil},
[2266] = {"힐스브래드 농부",nil},
[2267] = {"힐스브래드 소작농",nil},
[2268] = {"힐스브래드 보병",nil},
[2269] = {"힐스브래드 광부",nil},
[2270] = {"힐스브래드 보초",nil},
[2271] = {"달라란 수호기사",nil},
[2272] = {"달라란 사술사",nil},
[2274] = {"스탠리",nil},
[2275] = {"광포해진 스탠리",nil},
[2276] = {"집정관 헨리 말레브",nil},
[2277] = {"현자 딥스",nil},
[2278] = {"멜리사라",nil},
[2279] = {"얼라이언스 전투호위병"


/LICENSE-2.0
 *
 *   or in the "license" file accompanying this file. This file is distributed
 *   on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 *   express or implied. See the License for the specific language governing
 *   permissions and limitations under the License.
 */

package com.amazon.opendistroforelasticsearch.alerting.util

import com.amazon.opendistroforelasticsearch.alerting.AlertingPlugin
import org.elasticsearch.common.Strings
import org.elasticsearch.rest.RestRequest
import org.elasticsearch.search.fetch.subphase.FetchSourceContext

/**
 * Checks to see if the request came from Kibana, if so we want to return the UI Metadata from the document.
 * If the request came from the client then we exclude the UI Metadata from the search result.
 *
 * @param request
 * @return FetchSourceContext
 */
fun context(request: RestRequest): FetchSourceContext? {
    val userAgent = Strings.coalesceToEmpty(request.header("User-Agent"))
    return if (!userAgent.contains(AlertingPlugin.KIBANA_USER_AGENT)) {
        FetchSourceContext(true, Strings.EMPTY_ARRAY, AlertingPlugin.UI_METADATA_EXCLUDE)
    } else null
}

const val _ID = "_id"
const val _VERSION = "_version"
const val _SEQ_NO = "_seq_no"
const val IF_SEQ_NO = "if_seq_no"
const val _PRIMARY_TERM = "_primary_term"
const val IF_PRIMARY_TERM = "if_primary_term"
const val REFRESH = "refresh"
/*
 *   Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 *
 *   Licensed under the Apache License, Version 2.0 (the "License").
 *   You may not use this file except in compliance with the License.
 *   A copy of the License is located at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *   or in the "license" file accompanying this file. This file is distributed
 *   on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 *   express or implied. See the License for the specific language governing
 *   permissions and limitations under the License.
 */

package com.amazon.opendistroforelasticsearch.alerting.script

import org.elasticsearch.script.Script
import org.elasticsearch.script.ScriptContext

abstract class TriggerScript(_scriptParams: Map<String, Any>) {

    /**
     * [scriptParams] are the [user-defined parameters][Script.getParams] specified in the script definition.
     * The [scriptParams] are defined when the script is compiled and DON'T change every time the script executes. This field
     * is named **script**Params to avoid confusion with the [PARAMETERS] field. However to remain consistent with every other
     * painless script context we surface it to the painless script as just `params` using a custom getter name.
     */
    val scriptParams: Map<String, Any> = _scriptParams
        @JvmName("getParams") get

    companion object {
        /**
         * [PARAMETERS] contains the names of the formal arguments to the [execute] method which define the
         * script's execution context. These argument names (`_results` etc.)  are available as named parameters
         * in the painless script. These arguments passed to the [execute] method change every time the trigger is executed.
         * In a sane world this would have been named `ARGUMENTS` to avoid confusing the hell out of everyone who has to
         * work with this code.
         */
        @JvmField val PARAMETERS = arrayOf("ctx")

        val CONTEXT = ScriptContext("trigger", Factory::class.java)
    }

    /**
     * Run a trigger script with the given context.
     *
     * @param ctx - the trigger execution context
     */
    abstract fun execute(ctx: TriggerExecutionContext): Boolean

    interface Factory {
        fun newInstance(scriptParams: Map<String,


Bitmap = Bitmap.createBitmap(bitmap, 0, 0, width, height,
                matrix, true);
        return resizedBitmap;
    }

    /**
     * (缩放)重绘图片
     *
     * @param context Activity
     * @param bitmap
     * @return
     */
    public static Bitmap reDrawBitMap(Activity context, Bitmap bitmap) {
        DisplayMetrics dm = new DisplayMetrics();
        context.getWindowManager().getDefaultDisplay().getMetrics(dm);
        int rHeight = dm.heightPixels;
        int rWidth = dm.widthPixels;
        // float rHeight=dm.heightPixels/dm.density+0.5f;
        // float rWidth=dm.widthPixels/dm.density+0.5f;
        // int height=bitmap.getScaledHeight(dm);
        // int width = bitmap.getScaledWidth(dm);
        int height = bitmap.getHeight();
        int width = bitmap.getWidth();
        float zoomScale;

        /** 方式3 **/
        if (width >= rWidth)
            zoomScale = ((float) rWidth) / width;
        else
            zoomScale = 1.0f;
        // 创建操作图片用的matrix对象
        Matrix matrix = new Matrix();
        // 缩放图片动作
        matrix.postScale(zoomScale, zoomScale);
        Bitmap resizedBitmap = Bitmap.createBitmap(bitmap, 0, 0,
                bitmap.getWidth(), bitmap.getHeight(), matrix, true);
        return resizedBitmap;
    }

    /**
     * 将Drawable转化为Bitmap
     *
     * @param drawable
     * @return
     */
    public static Bitmap drawableToBitmap(Drawable drawable) {
        int width = drawable.getIntrinsicWidth();
        int height = drawable.getIntrinsicHeight();
        Bitmap bitmap = Bitmap.createBitmap(width, height, drawable
                .getOpacity() != PixelFormat.OPAQUE ? Config.ARGB_8888
                : Config.RGB_565);
        Canvas canvas = new Canvas(bitmap);
        drawable.setBounds(0, 0, width, height);
        drawable.draw(canvas);
        return bitmap;

    }

    /**
     * 获得圆角图片的方�?
     *
     * @param bitmap
     * @param roundPx �?般设�?14
     * @return
     */
    public static Bitmap getRoundedCornerBitmap(Bitmap bitmap, float roundPx) {

        Bitmap output = Bitmap.createBitmap(bitmap.getWidth(),
                bitmap.getHeight(), Config.ARGB_8888);
        Canvas canvas = new Canvas(output);

        final int color = 0xff424242;
        final Paint paint = new Paint();
        final Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight());
        final RectF rectF = new RectF(rect);

        paint.setAntiAlias(true);
        canvas.drawARGB(0, 0, 0, 0);
        paint.setColor(color);
        canvas.drawRoundRect(rectF, roundPx, roundPx, paint);

        paint.setXfermode(new PorterDuffXfermode(Mode.SRC_IN));
        canvas.drawBitmap(bitmap, rect, rect, paint);

        return output;
    }

    /**
     * 获得带�?�影的图片方�?
     *
     * @param bitmap
     * @return
     */
    public static Bitmap createReflectionImageWithOrigin(Bitmap bitmap) {
        final int reflectionGap = 4;
        int width = bitmap.getWidth();
        int height = bitmap.getHeight();

        Matrix matrix = new Matrix();
        matrix.preScale(1, -1);

        Bitmap reflectionImage = Bitmap.createBitmap(bitmap, 0, height / 2,
                width, height / 2, matrix, false);

        Bitmap bitmapWithReflection = Bitmap.createBitmap(width,
                (height + height / 2), Config.ARGB_88


odel(): Boolean {
        val modelManager = RemoteModelManager.getInstance()
        val sourceLocaleModelDownloaded =
            modelManager.isModelDownloaded(getRemoteModel(sourceLocale)).await()
        val targetLocaleModelDownloaded =
            modelManager.isModelDownloaded(getRemoteModel(targetLocale)).await()
        return !sourceLocaleModelDownloaded || !targetLocaleModelDownloaded
    }

    override fun release() {
        synchronized(lockObject) {
            super.release()
            mlKitTranslator?.close()
            mlKitTranslator = null
        }
    }

    private fun buildMlkitTranslator(): Translator? {
        mlKitTranslator?.close()

        val sourceLang = TranslateLanguage.fromLanguageTag(sourceLocale)
        val targetLang = TranslateLanguage.fromLanguageTag(targetLocale)

        if (sourceLang != null && targetLang != null) {

            val options = TranslatorOptions.Builder()
                .setSourceLanguage(sourceLang)
                .setTargetLanguage(targetLang)
                .build()

            return Translation.getClient(options)
        }

        return null
    }

    private fun buildConditions(): DownloadConditions {
        return if (super.allowDownloadingOveMobile)
            DownloadConditions.Builder().build()
        else
            DownloadConditions.Builder().requireWifi().build()
    }

    private fun getRemoteModel(langCode: String): TranslateRemoteModel {
        return modelCache.getOrPut(langCode) {
            TranslateRemoteModel.Builder(langCode).build()
        }
    }
}package com.mobilerpgpack.phone.ui.items

import android.util.Log
import android.view.KeyEvent
import androidx.compose.animation.animateColorAsState
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.gestures.detectTapGestures
import androidx.compose.foundation.layout.*
import androidx.compose.material3.Text
import androidx.compose.material3.minimumInteractiveComponentSize
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.lerp
import androidx.compose.ui.input.pointer.pointerInput
import androidx.compose.ui.unit.dp
import kotlinx.coroutines.delay
import org.libsdl.app.SDLActivity
import kotlin.random.Random
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.sp

private data class Key(val label: String, val keyCode: Int)

private val keyCodeToNameMap = mapOf(
    4 to "A", 5 to "B", 6 to "C", 7 to "D", 8 to "E", 9 to "F", 10 to "G", 11 to "H", 12 to "I", 13 to "J",
    14 to "K", 15 to "L", 16 to "M", 17 to "N", 18 to "O", 19 to "P", 20 to "Q", 21 to "R", 22 to "S", 23 to "T",
    24 to "U", 25 to "V", 26 to "W", 27 to "X", 28 to "Y", 29 to "Z",
    30 to "1", 31 to "2", 32 to "3", 33 to "4", 34 to "5", 35 to "6", 36 to "7", 37 to "8", 38 to "9", 39 to "0",
    40 to "ENTER", 41 to "ESCAPE", 42 to "BACKSPACE", 43 to "TAB", 44 to "SPACE",
    45 to "MINUS", 46 to "EQUALS", 47 to "LEFTBRACKET", 48 to "RIGHTBRACKET", 49 to "BACKSLASH",
    50 to "NONUSHASH", 51 to "SEMICOLON", 52 to "APOSTROPHE", 53 to "GRAVE", 54 to "COMMA", 55 to "PERIOD",
    56 to "SLASH", 57 to "CAPSLOCK",
    58 to "F1", 59 to "F2", 60 to "F


od": "1day",
   "total": "64982920.098184146"
 }
}
```

## Get XRP Distribution
[[ソース]](https://github.com/ripple/rippled-historical-database/blob/master/api/routes/network/xrpDistribution.js "Source")

現存し、流通しているXRPの合計額に関する情報を週単位で取得します。_（新規: [v2.2.0][]）_

#### 要求フォーマット

<!-- MULTICODE_BLOCK_START -->

*REST*

```
GET /v2/network/xrp_distribution
```

<!-- MULTICODE_BLOCK_END -->

[試してみる>](https://xrpl.org/ja/data-api-v2-tool.html#get-xrp-distribution)

オプションで、以下のクエリーパラメーターを指定できます。

| フィールド        | 値                  | 説明                          |
|:-------------|:-----------------------|:-------------------------------------|
| `start`      | 文字列 - [タイムスタンプ][] | 照会範囲の開始時刻。デフォルトは、最新間隔の開始時刻です。 |
| `end`        | 文字列 - [タイムスタンプ][] | 照会範囲の終了時刻。デフォルトは、最新間隔の終了時刻です。 |
| `limit`      | 整数                | ページあたりの最大結果件数。デフォルトは200です。1000を超える値は指定できません。 |
| `marker`     | 文字列                 | 前に返された応答の[ページネーション](#ページネーション)キー。 |
| `descending` | ブール値                | `true`の場合、結果が逆時系列で返されます。デフォルトは`false`です。 |
| `format`     | 文字列                 | 返される結果のフォーマットは`csv`または`json`です。デフォルトは`json`です。 |

#### 応答フォーマット

成功した場合の応答では、HTTPコード**200 OK**と以下の内容のJSON本文が返されます。

| フィールド    | 値                         | 説明                       |
|:---------|:------------------------------|:----------------------------------|
| `result` | 文字列                        | 値が`success`の場合、本文は成功した場合の応答を表しています。 |
| `count`  | 整数                       | 返された行の数。          |
| `rows`   | 流通量オブジェクトの配列 | XRP流通量の週次スナップショット。 |

各流通量オブジェクトのフィールドを次に示します。

| フィールド           | 値                  | 説明                       |
|:----------------|:-----------------------|:----------------------------------|
| `date`          | 文字列 - [タイムスタンプ][] | このスナップショットの時刻。        |
| `total`         | 文字列                 | 現存するXRPの合計。           |
| `undistributed` | 文字列                 | Ripple（企業）が保有するXRPの総額。 |
| `distributed`   | 文字列                 | Ripple以外が保有するXRPの総額。 |

#### 例

要求:

```
GET /v2/network/xrp_distribution
```

応答:

```
200 OK
{
 "result": "success",
 "count": 171,
 "rows": [
   {
     "date": "2016-04-10T00:00:00Z",
     "distributed": "349


�？ |
| 生成 | 写一篇介绍中国传统文化的文章。 |
| 编辑 | 请修改这篇文章中的语法错误。 |
| 推荐 | 我应该看哪一部科幻电影？ |
| 解释 | 为什么这个公式得出了这个结果？ |
| 预测 | 明天的天气怎么样？ |
| 解决方案 | 如何处理这个问题？ |
|自然语言生成|请用GPT-3.5生成一句至少包含20个字的中文新闻标题|
|文章摘要生成|请用GPT-3.5生成一段不超过100个字的英文文章摘要，摘要要涵盖原文的主要内容|
|文本分类|将以下四段短文分别归入以下四类：1.科技 2.体育 3.文艺 4.财经
1.人工智能是未来最重要的发展方向之一。
2.昨天的比赛中，中国足球队以2:0战胜了日本队。
3.村上春树的小说总是让人回味无穷。
4.苹果公司发布了今年第三季度的财务报告，净利润同比增长了30%。|
|文本配对|给出两篇中英文文章，请问它们是否在描述同一个事件或话题？|
|翻译|请将以下一段英文翻译成中文：“The quick brown fox jumped over the lazy dog.”|
|情感分析|请对下面这条微博进行情感分析，并给出该微博所表达的情感极性（正面/中性/负面）：
【#加油武汉#】这个春节注定是与众不同的春节，但我相信，在全国人民和世界人民的共同努力下，我们一定会打赢这场疫情防控的攻坚战！|
|文本编辑|请将以下一段描述美国历史上重要女性人物之一Helen Keller的文字进行修改和润色：
Helen Keller was a woman who was deaf and blind, but she became an author, political activist, and lecturer. She was the first deaf-blind person to earn a Bachelor of Arts degree, and her advocacy for people with disabilities helped to change perceptions and improve opportunities for millions of people around the world.|
|逻辑推理|某家电商公司在进行促销活动时，购买金额满200元可以减50元，购买金额满500元可以减150元，请问如果小明购


4)}

Signature:
${bin2hex(signature.bytes, wrap: 64)}
Verifies: $sigOk
''');
}

//----------------------------------------------------------------

final _data = utf8.encode('Hello world!');

final _secret = utf8.encode('p@ssw0rd');

//----------------------------------------------------------------
/// Represent bytes in hexadecimal
///
/// If a [separator] is provided, it is placed the hexadecimal characters
/// representing each byte. Otherwise, all the hexadecimal characters are
/// simply concatenated together.

String bin2hex(Uint8List bytes, {String? separator, int? wrap}) {
  var len = 0;
  final buf = StringBuffer();
  for (final b in bytes) {
    final s = b.toRadixString(16);
    if (buf.isNotEmpty && separator != null) {
      buf.write(separator);
      len += separator.length;
    }

    if (wrap != null && wrap < len + 2) {
      buf.write('\n');
      len = 0;
    }

    buf.write('${(s.length == 1) ? '0' : ''}$s');
    len += 2;
  }
  return buf.toString();
}
import 'dart:math';

import 'package:vector_math/vector_math.dart';

extension Vector3Lerp on Vector3 {
  Vector3 lerp(Vector3 to, double weight) {
    return Vector3(
      x + (to.x - x) * weight,
      y + (to.y - y) * weight,
      z + (to.z - z) * weight,
    );
  }

  Vector3 divided(Vector3 other) {
    return Vector3(x / other.x, y / other.y, z / other.z);
  }
}

extension QuaternionSlerp on Quaternion {
  double dot(Quaternion other) {
    return x * other.x + y * other.y + z * other.z + w * other.w;
  }

  Quaternion slerp(Quaternion to, double weight) {
    double cosine = dot(to);
    if (cosine.abs() < 1.0 - 1e-3 /* epsilon */ ) {
      // Spherical interpolation.
      double sine = sqrt(1.0 - cosine * cosine);
      double angle = atan2(sine, cosine);
      double sineInverse = 1.0 / sine;
      double c0 = sin((1.0 - weight) * angle) * sineInverse;
      double c1 = sin(weight * angle) * sineInverse;
      return scaled(c0) + to.scaled(c1);
    } else {
      // Linear interpolation.
      return (scaled(1.0 - weight) + to.scaled(weight)).normalized();
    }
  }
}
import 'package:flutter_gpu/gpu.dart' as gpu;
import 'package:flutter_scene/src/geometry/geometry.dart';
import 'package:flutter_scene/src/material/material.dart';
import 'package:flutter_scene/src/scene_encoder.dart';
import 'package:vector_math/vector_math.dart';

/// Represents a single part of a [Mesh], containing both [Geometry] and [Material] properties.
///
/// A `MeshPrimitive` defines the [Geometry] and [Material] of one specific part of the model.
/// By combining multiple `MeshPrimitive` objects, a full 3D model can be created, with different
/// parts of the model having different [Geometry] and [Material].
///
/// For example, imagine a 3D model of a car. The body of the car, the windows, and the wheels
/// could each be represented by different `MeshPrimitive` objects. The body might have a red
/// paint [Material], the windows a transparent glass [


buffer b load
    v_xor_b32 v[v_sld_a_os], 0x4000, v[v_sld_a_os] ; switch double buffer a load
    s_waitcnt vmcnt(4)
    ds_write_b64 v[v_sst_a_os], v[v_gld_a+0:v_gld_a+0+1]
    ds_write_b64 v[v_sst_a_os], v[v_gld_a+2:v_gld_a+2+1] offset:256
    s_waitcnt vmcnt(0)
    ds_write_b64 v[v_sst_b_os], v[v_gld_b+0:v_gld_b+0+1]
    ds_write_b64 v[v_sst_b_os], v[v_gld_b+2:v_gld_b+2+1] offset:256
    ds_write_b64 v[v_sst_b_os], v[v_gld_b+4:v_gld_b+4+1] offset:512
    ds_write_b64 v[v_sst_b_os], v[v_gld_b+6:v_gld_b+6+1] offset:768
    s_sub_i32 s[s_kitr], s[s_kitr], 8
    s_cmp_gt_i32 s[s_kitr], 0
    s_cbranch_scc0 L_igemm_fwd_gtcn2_nchwc_kcyxc_fp16x4_bx0_ex0_bt64x128x32_lt8x8_lw2x4_lr2x2_ta1x1x1x8_1x8x1x32_tb1x1x4x4_1x8x1x32_fma_finishing

    v_add_nc_u32 v[v_gtc_ic], s[s_move_slice_k_acc_c], v[v_gtc_ic]
    s_add_u32 s[s_in_offset],  s[s_move_slice_k_stride_c], s[s_in_offset]
    v_add_nc_u32 v[v_wei_os], s[s_move_slice_k_stride_gemm_k], v[v_wei_os]
    v_cmp_gt_u32 s[s_c], v[v_gtc_ic]
    v_cndmask_b32 v[v_tmp], 0, 1
    v_and_b32 v[v_in_flag], v[v_in_flag], v[v_tmp]
    v_and_b32 v[v_in_flag+1], v[v_in_flag+1], v[v_tmp]
    v_and_b32 v[v_in_flag+2], v[v_in_flag+2], v[v_tmp]
    v_and_b32 v[v_in_flag+3], v[v_in_flag+3], v[v_tmp]

    s_waitcnt lgkmcnt(6)
    .v_lanegroup_dotx_fp16_8x8x4 v_c+8,v_a,v_b+2
    v_xor_b32 v[v_sst_b_os], 0x4000, v[v_sst_b_os] ; switch double buffer b store
    v_xor_b32 v[v_sst_a_os], 0x4000, v[v_sst_a_os] ; switch double buffer a store
    s_waitcnt lgkmcnt(0)
    s_barrier
    ; load weight
    buffer_load_dwordx2 v[v_gld_a+0:v_gld_a+0+1], v[v_wei_os], s[


keymapAndroid[KeyEvent.KEYCODE_AT] = (KEY_FLAG_UNICODE | 64);
		//		keymapAndroid[KeyEvent.KEYCODE_APOSTROPHE] = (KEY_FLAG_UNICODE | 39);
		//		keymapAndroid[KeyEvent.KEYCODE_BACKSLASH] = (KEY_FLAG_UNICODE | 92);
		//		keymapAndroid[KeyEvent.KEYCODE_COMMA] = (KEY_FLAG_UNICODE | 44);
		//		keymapAndroid[KeyEvent.KEYCODE_EQUALS] = (KEY_FLAG_UNICODE | 61);
		//		keymapAndroid[KeyEvent.KEYCODE_GRAVE] = (KEY_FLAG_UNICODE | 96);
		//		keymapAndroid[KeyEvent.KEYCODE_LEFT_BRACKET] = (KEY_FLAG_UNICODE | 91);
		//		keymapAndroid[KeyEvent.KEYCODE_RIGHT_BRACKET] = (KEY_FLAG_UNICODE | 93);
		//		keymapAndroid[KeyEvent.KEYCODE_MINUS] = (KEY_FLAG_UNICODE | 45);
		//		keymapAndroid[KeyEvent.KEYCODE_PERIOD] = (KEY_FLAG_UNICODE | 46);
		//		keymapAndroid[KeyEvent.KEYCODE_PLUS] = (KEY_FLAG_UNICODE | 43);
		//		keymapAndroid[KeyEvent.KEYCODE_POUND] = (KEY_FLAG_UNICODE | 35);
		//		keymapAndroid[KeyEvent.KEYCODE_SEMICOLON] = (KEY_FLAG_UNICODE | 59);
		//		keymapAndroid[KeyEvent.KEYCODE_SLASH] = (KEY_FLAG_UNICODE | 47);
		//		keymapAndroid[KeyEvent.KEYCODE_STAR] = (KEY_FLAG_UNICODE | 42);

		// special keys mapping
		keymapExt = new int[256];
		keymapExt[context.getResources().getInteger(R.integer.keycode_F1)] = VK_F1;
		keymapExt[context.getResources().getInteger(R.integer.keycode_F2)] = VK_F2;
		keymapExt[context.getResources().getInteger(R.integer.keycode_F3)] = VK_F3;
		keymapExt[context.getResources().getInteger(R.integer.keycode_F4)] = VK_F4;
		keymapExt[context.getResources().getInteger(R.integer.keycode_F5)] = VK_F5;
		keymapExt[context.getResources().getInteger(R.integer.keycode_F6)] = VK_F6;
		keymapExt[context.getResources().getInteger(R.integer.keycode_F7)] = VK_F7;
		keymapExt[context.getResources().getInteger(R.integer.keycode_F8)] = VK_F8;
		keymapExt[context.getResources().getInteger(R.integer.keycode_F9)] = VK_F9;
		keymapExt[context.getResources().getInteger(R.integer.keycode_F10)] = VK_F10;
		keymapExt[context.getResources().getInteger(R.integer.keycode_F11)] = VK_F11;
		keymapExt[context.getResources().getInteger(R.integer.keycode_F12)] = VK_F12;
		keymapExt[context.getResources().getInteger(R.integer.keycode_tab)] = VK_TAB;
		keymapExt[context.getResources().getInteger(R.integer.keycode_print)] = VK_PRINT;
		keym