c3d(0.0, 24.0, 12.0) * PIXEL to Vec3d(3.0, 42.0, 13.0) * PIXEL,
            Vec3d(2.0, 24.0, 13.0) * PIXEL to Vec3d(14.0, 42.0, 14.0) * PIXEL,
            Vec3d(-7.0, 25.0, 0.9000000953674316) * PIXEL to Vec3d(23.0, 28.0, 3.9000000953674316) * PIXEL,
            Vec3d(-6.0, 24.0, 0.0) * PIXEL to Vec3d(-3.0, 29.0, 4.0) * PIXEL,
            Vec3d(-11.0, 1.0, 3.0) * PIXEL to Vec3d(-1.0, 32.0, 13.0) * PIXEL,
            Vec3d(15.0, 26.0, 4.0) * PIXEL to Vec3d(25.0, 54.0, 12.0) * PIXEL,
            Vec3d(19.0, 24.0, 0.0) * PIXEL to Vec3d(22.0, 29.0, 4.0) * PIXEL,
            Vec3d(19.0, 4.0, 1.0) * PIXEL to Vec3d(30.0, 20.0, 15.0) * PIXEL,
            Vec3d(17.0, 1.0, 3.0) * PIXEL to Vec3d(27.0, 32.0, 13.0) * PIXEL,
            Vec3d(-11.0, 54.0, 2.0) * PIXEL to Vec3d(27.0, 62.0, 14.0) * PIXEL,
            Vec3d(-9.0, 26.0, 4.0) * PIXEL to Vec3d(1.0, 54.0, 12.0) * PIXEL,
            Vec3d(-16.0, 0.0, 0.0) * PIXEL to Vec3d(-2.0, 4.0, 16.0) * PIXEL,
            Vec3d(18.0, 0.0, 0.0) * PIXEL to Vec3d(32.0, 4.0, 16.0) * PIXEL,
            Vec3d(-7.0, 25.0, 12.099999904632568) * PIXEL to Vec3d(23.0, 28.0, 15.099999904632568) * PIXEL,
            Vec3d(19.0, 24.0, 12.0) * PIXEL to Vec3d(22.0, 29.0, 16.0) * PIXEL,
            Vec3d(-6.0, 24.0, 12.0) * PIXEL to Vec3d(-3.0, 29.0, 16.0) * PIXEL,
            Vec3d(13.0, 24.0, 12.0) * PIXEL to Vec3d(16.0, 42.0, 13.0) * PIXEL,
            Vec3d(13.0, 24.0, 3.0) * PIXEL to Vec3d(16.0, 42.0, 4.0) * PIXEL,
            Vec3d(-2.0, 0.0, 3.0) * PIXEL to Vec3d(-1.0, 1.0, 13.0) * PIXEL,
            Vec3d(17.0, 0.0, 3.0) * PIXEL to Vec3d(18.0, 1.0, 13.0) * PIXEL,
            Vec3d(27.0, 18.0, 4.0) * PIXEL to Vec3d(31.0, 30.0, 12.0) * PIXEL,
            Vec3d(31.0, 22.0, 6.0) * PIXEL to Vec3d(32.0, 26.0, 10.0) * PIXEL,
            Vec3d(3.0, 22.0, 3.0) * PIXEL to Vec3d(13.0, 36.0, 13.0) * PIXEL,
            Vec3d(6.5, 36.0, 6.5) * PIXEL to Vec3d(9.5, 64.0, 9.5) * PIXEL
    )
    //@formatter:on

    override fun checkExtraRequirements(data: MutableList<BlockData>,
                                        context: MultiblockContext): List<ITextComponent> = listOf()
}package integration.jei.grinder

import com.cout970.magneticraft.api.registries.machines.grinder.IGrinderRecipe
import mezz.jei.api.ingredients.IIngredients
import mezz.jei.api.recipe.IRecipeWrapper
import net.minecraft.client.Minecraft
import net.minecraftforge.fluids.FluidStack

/**
 * Created by cout970 on 23/07/2016.
 */
class GrinderRecipeWrapper(val recipe: IGrinderRecipe) : IRecipeWrapper {

    override fun


xvbmc= 74804
qOyWtA== 74805
Lm1z 74806
aWxlcmlu 74807
4YOQ4YOc4YOi 74808
IHd1eHV1 74809
INC40YLTmQ== 74810
IGVyc2NoZQ== 74811
LWRlc3N1cw== 74812
IFVMT05H 74813
2LPYsdin2KbZitmE 74814
2KfZhdin 74815
6aKc 74816
dGll 74817
IHJvemg= 74818
0LDRgNCw0YLTmQ== 74819
INGa 74820
amFsYW4= 74821
15XXnNeV15I= 74822
INCo0YM= 74823
4LWN4LS44LWN 74824
IHN0YXBwZW4= 74825
2KfZhduM 74826
IGludmU= 74827
IC8vCi8v 74828
IGfDpg== 74829
w7Nrbg== 74830
4YCc4YCt4YCv 74831
bmlvcw== 74832
INCQ0LzQtdGA 74833
zrrOrg== 74834
IFNhY2g= 74835
IGRpc2NvdXI= 74836
IHNhbGRv 74837
INep15s= 74838
b3Nhbg== 74839
CXJlc3A= 74840
W0Ai 74841
4K6k4K6+4K6V 74842
0YDQsNGG 74843
0LLQsNGC0pvQsNC9 74844
LHJl 74845
IERvbmc= 74846
ZWxhaWRl 74847
IGluZmxhbW1hdG9yeQ== 74848
c2dlcw== 74849
IGd1ZXNzaW5n 74850
IOG6uXLhu40= 74851
IOS4sA== 74852
INC40rc= 74853
ZW5za2U= 74854
IENFTlQ= 74855
LXlvdQ== 74856
IGFkdmFuY2luZw== 74857
TG9naWNhbA== 74858
UHJvZmlsZXI= 74859
IGhlbm5l 74860
06nQvNC2 74861
IGFyZ3Vpbmc= 74862
aWF6 74863
IG5haGU= 74864
IGdlbmVyYQ== 74865
X0FkanVzdG9y 74866
IEJlYXJz 74867
dmlzZQ== 74868
IGVpbnplbG5lbg== 74869
IMSR4buVaQ== 74870
IHBvcnR1Z3Vlcw== 74871
cHRv 74872
bMO2cw== 74873
IFNpZGViYXI= 74874
YWx0bw== 74875
IOWA 74876
IHdydGg= 74877
QUxJ 74878
IHplZQ== 74879
VG9waWNz 74880
IERlcHRo 74881
IGRhZHVyY2g= 74882
IGNvYmVydHVyYQ== 74883
IHBhaW5z 74884
44Oq44Oz44Kv 74885
2LTYp9ix2YPYqQ== 74886
0LDQvdC00LjQtA== 74887
ZWdlcg== 74888
IGVzZnVlcnpv 74889
IHByZW1hdHVyZQ== 74890
IGh1cnRz 74891
4Z624Z6E 74892
0YHRjNC60L7Rlw== 74893
IHlhdw== 74894
cm9wb2xpcw== 74895
4LGB4LCy4LCV4LGB 74896


1]
						local xmax = xml.find(xml.find(anno_xml[i], 'bndbox'), 'xmax')[1]
						local ymin = xml.find(xml.find(anno_xml[i], 'bndbox'), 'ymin')[1]
						local ymax = xml.find(xml.find(anno_xml[i], 'bndbox'), 'ymax')[1]

						for classLabelInd = 1, #classLabels do
							if classLabels[classLabelInd] == classLabel then
								assert(objectBoxIdx <= voc[subset].objectBoxes:size(1))

								voc[subset].objectBoxes[objectBoxIdx] = torch.FloatTensor({classLabelInd, xmin, ymin, xmax, ymax})
								objectBoxIdx = objectBoxIdx + 1
							end
						end
					end
				end

				voc[subset].objectBoxesInds[exampleIdx] = torch.IntTensor({firstObjectBoxIdx, objectBoxIdx - 1})
				exampleIdx = exampleIdx + 1
			end
		end

		if not testHasAnnotation then
			voc['test'].objectBoxesInds = nil
			voc['test'].objectBoxes = nil
		end

		for _, subset in ipairs{'train', 'val', 'test'} do
			voc[subset].filenames = voc[subset].filenames:sub(1, voc[subset].numExamples):clone()
			voc[subset].labels = voc[subset].labels:sub(1, voc[subset].numExamples):clone()
			voc[subset].jpegsInds = voc[subset].jpegsInds:sub(1, voc[subset].numExamples):clone()
			voc[subset].jpegs = voc[subset].jpegs:sub(1, voc[subset].jpegsInds[voc[subset].numExamples][2]):clone()

			if voc[subset].objectBoxes and voc[subset].objectBoxesInds then
				voc[subset].objectBoxesInds =  voc[subset].objectBoxesInds:sub(1, voc[subset].numExamples):clone()
				voc[subset].objectBoxes = voc[subset].objectBoxes:sub(1, voc[subset].objectBoxesInds[voc[subset].numExamples][2]):clone()
			end
		end

		voc['trainval'] = {
			train = voc['train'],
			val = voc['val'],
			getNumExamples = function(self)
				return self.train:getNumExamples() + self.val:getNumExamples()
			end,

			getImageFileName = function(self, exampleIdx)
				return exampleIdx <= self.train:getNumExamples() and self.train:getImageFileName(exampleIdx) or self.val:getImageFileName(exampleIdx - self.train:getNumExamples())
			end,

			getGroundTruthBoxes = function(self, exampleIdx)
				return exampleIdx <= self.train:getNumExamples() and self.train:getGroundTruthBoxes(exampleIdx) or self.val:getGroundTruthBoxes(exampleIdx - self.train:getNumExamples())
			end,

			getJpegBytes = function(self, exampleIdx)
				return exampleIdx <= self.train:getNumExamples() and self.train:getJpegBytes(exampleIdx) or self.val:getJpegBytes(exampleIdx - self.train:getNumExamples())
			end,

			getLabels = function(self, exampleIdx)
				return exampleIdx <= self.train:getNumExamples() and self.train:getLabels(exampleIdx) or self.val:getLabels(exampleIdx - self.train:getNumExamples())
			end
		}

		return voc
	end,

	package_submission = function(OUT, voc, VOCYEAR, subset, task, ...)
		local task_a, task_b  = task:match('(.+)_(.+)'


ket = _marshaller.Marshall(segment);
                var data = Encoding.ASCII.GetBytes(packet);
                var ip = EndPoint; //Need local var to ensure ip do not updates
                _logger.DebugFormat("UDP Segment emitter endpoint: {0}.", ip);
                _udpClient.Send(data, data.Length, ip);
            }
            catch (SocketException e)
            {
                _logger.Error(e, "Failed to send package through socket.");
            }
            catch (ArgumentNullException e)
            {
                _logger.Error(e, "The udp data gram is null.");
            }
            catch (ObjectDisposedException e)
            {
                _logger.Error(e, "The udp client is already closed.");
            }
            catch (InvalidOperationException e)
            {
                _logger.Error(e, "The udp client connection is invalid.");
            }
        }

        /// <summary>
        /// Sets the daemon address.
        /// The daemon address should be in format "IPAddress:Port", i.e. "127.0.0.1:2000"
        /// </summary>
        /// <param name="daemonAddress">The daemon address.</param>
        public void SetDaemonAddress(string daemonAddress)
        {
            if (Environment.GetEnvironmentVariable(DaemonConfig.EnvironmentVariableDaemonAddress) == null)
            {
                SetEndPointOrDefault(daemonAddress);
            }
            else
            {
                _logger.InfoFormat("Ignoring call to SetDaemonAddress as " + DaemonConfig.EnvironmentVariableDaemonAddress + " is set.");
            }
        }

        /// <summary>
        /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
        /// </summary>
        public void Dispose()
        {
            Dispose(true);

            GC.SuppressFinalize(this);
        }

        /// <summary>
        /// Releases unmanaged and - optionally - managed resources.
        /// </summary>
        /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param>
        protected virtual void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                if (_udpClient != null)
                {
#if NET45
                    _udpClient.Close();
#else
                    _udpClient.Dispose();
#endif
                }

                _disposed = true;
            }
        }

        private void SetEndPointOrDefault(string daemonAddress)
        {
            _daemonConfig = DaemonConfig.GetEndPoint(daemonAddress);
        }
    }
}


ar UTC_29_FEB_2000 = TIME_2000 + 31*msPerDay + 28*msPerDay;
    testcases[tc++] = new TestCase( SECTION,
                                    "Date.parse( (new Date("+UTC_29_FEB_2000+")).toString() )",
                                    UTC_29_FEB_2000,
                                    Date.parse( (new Date(UTC_29_FEB_2000)).toString() ) )

    testcases[tc++] = new TestCase( SECTION,
                                    "Date.parse( (new Date("+(UTC_29_FEB_2000-1000)+")).toString() )",
                                    UTC_29_FEB_2000-1000,
                                    Date.parse( (new Date(UTC_29_FEB_2000-1000)).toString() ) )

    testcases[tc++] = new TestCase( SECTION,
                                    "Date.parse( (new Date("+(UTC_29_FEB_2000-TZ_ADJUST)+")).toString() )",
                                    UTC_29_FEB_2000-TZ_ADJUST,
                                    Date.parse( (new Date(UTC_29_FEB_2000-TZ_ADJUST)).toString() ) )
    // 2O05

    var UTC_1_JAN_2005 = TIME_2000 + TimeInYear(2000) + TimeInYear(2001) +
    TimeInYear(2002) + TimeInYear(2003) + TimeInYear(2004);
    testcases[tc++] = new TestCase( SECTION,
                                    "Date.parse( (new Date("+UTC_1_JAN_2005+")).toString() )",
                                    UTC_1_JAN_2005,
                                    Date.parse( (new Date(UTC_1_JAN_2005)).toString() ) )

    testcases[tc++] = new TestCase( SECTION,
                                    "Date.parse( (new Date("+(UTC_1_JAN_2005-1000)+")).toString() )",
                                    UTC_1_JAN_2005-1000,
                                    Date.parse( (new Date(UTC_1_JAN_2005-1000)).toString() ) )

    testcases[tc++] = new TestCase( SECTION,
                                    "Date.parse( (new Date("+(UTC_1_JAN_2005-TZ_ADJUST)+")).toString() )",
                                    UTC_1_JAN_2005-TZ_ADJUST,
                                    Date.parse( (new Date(UTC_1_JAN_2005-TZ_ADJUST)).toString() ) )

    test();
function test() {
    for ( tc=0; tc < testcases.length; tc++ ) {
        testcases[tc].passed = writeTestCaseResult(
                            testcases[tc].expect,
                            testcases[tc].actual,
                            testcases[tc].description +" = "+
                            testcases[tc].actual );

        testcases[tc].reason += ( testcases[tc].passed ) ? "" : "wrong value ";
    }
    stopTest();
    return ( testcases );
}
/* The contents of this file are subject to the Netscape Public
 * License Version 1.1 (the "License"); you may not use this file
 * except in compliance with the License. You may obtain a copy of
 * the License at http://www.mozilla.org/NPL/
 *
 * Software distributed under the License is distributed on an "AS
 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
 * implied. See the License for the specific language governing
 * rights and limitations under the License.
 *
 * The Original Code is Mozilla Communicator client code, released March
 * 31, 1998.
 *
 * The Initial Developer of the Original Code is Netscape Communications
 * Corporation. Portions created by Netscape are
 * Copyright (C) 1998 Netscape Communications Corporation. All
 * Rights Reserved.
 *
 * Contributor(s):
 *
 */
/**
    File Name:          15.9.2.2.js
    ECMA Section:       15.9.2.2 Date constructor used as a function
                        Date( year, month, date, hours, minutes, seconds )
    Description:        The arguments are accepted, but are completely ignored.
                        A string is created and returned as if by the
                        expression (new Date()).toString().

    Author:             christine@netscape.com
    Date:               28 october 1997
    Version:            9706

*/
    var VERSION = 9706


OV_B32(MachInst iFmt)
    {
        return new Inst_VOP1__V_MOV_B32(&iFmt->iFmt_VOP1);
    } // decode_OP_VOP1__V_MOV_B32

    GPUStaticInst*
    Decoder::decode_OP_VOP1__V_READFIRSTLANE_B32(MachInst iFmt)
    {
        return new Inst_VOP1__V_READFIRSTLANE_B32(&iFmt->iFmt_VOP1);
    } // decode_OP_VOP1__V_READFIRSTLANE_B32

    GPUStaticInst*
    Decoder::decode_OP_VOP1__V_CVT_I32_F64(MachInst iFmt)
    {
        return new Inst_VOP1__V_CVT_I32_F64(&iFmt->iFmt_VOP1);
    } // decode_OP_VOP1__V_CVT_I32_F64

    GPUStaticInst*
    Decoder::decode_OP_VOP1__V_CVT_F64_I32(MachInst iFmt)
    {
        return new Inst_VOP1__V_CVT_F64_I32(&iFmt->iFmt_VOP1);
    } // decode_OP_VOP1__V_CVT_F64_I32

    GPUStaticInst*
    Decoder::decode_OP_VOP1__V_CVT_F32_I32(MachInst iFmt)
    {
        return new Inst_VOP1__V_CVT_F32_I32(&iFmt->iFmt_VOP1);
    } // decode_OP_VOP1__V_CVT_F32_I32

    GPUStaticInst*
    Decoder::decode_OP_VOP1__V_CVT_F32_U32(MachInst iFmt)
    {
        return new Inst_VOP1__V_CVT_F32_U32(&iFmt->iFmt_VOP1);
    } // decode_OP_VOP1__V_CVT_F32_U32

    GPUStaticInst*
    Decoder::decode_OP_VOP1__V_CVT_U32_F32(MachInst iFmt)
    {
        return new Inst_VOP1__V_CVT_U32_F32(&iFmt->iFmt_VOP1);
    } // decode_OP_VOP1__V_CVT_U32_F32

    GPUStaticInst*
    Decoder::decode_OP_VOP1__V_CVT_I32_F32(MachInst iFmt)
    {
        return new Inst_VOP1__V_CVT_I32_F32(&iFmt->iFmt_VOP1);
    } // decode_OP_VOP1__V_CVT_I32_F32

    GPUStaticInst*
    Decoder::decode_OP_VOP1__V_CVT_F16_F32(MachInst iFmt)
    {
        return new Inst_VOP1__V_CVT_F16_F32(&iFmt->iFmt_VOP1);
    } // decode_OP_VOP1__V_CVT_F16_F32

    GPUStaticInst*
    Decoder::decode_OP_VOP1__V_CVT_F32_F16(MachInst iFmt)
    {
        return new Inst_VOP1__V_CVT_F32_F16(&iFmt->iFmt_VOP1);
    } // decode_OP_VOP1__V_CVT_F32_F16

    GPUStaticInst*
    Decoder::decode_OP_VOP1__V_CVT_RPI_I32_F32(MachInst iFmt)
    {
        return new Inst_VOP1__V_CVT_RPI_I32_F32(&iFmt->iFmt_VOP1);
    } // decode_OP_VOP1__V_CVT_RPI_I32_F32

    GPUStaticInst*
    Decoder::decode_OP_VOP1__V_CV


部插入
    //这种操作将于输入的顺序相反，逆序
    fun insertToHead(value: Int) {
        val newNode = Node(value, null)
        insertToHead(newNode)
    }

    fun insertToHead(newNode: Node) {
        if (head == null) {
            head = newNode
        } else {
            newNode.next = head
            head = newNode
        }
    }

    //顺序插入
    //链表尾部插入
    fun insertTail(value: Int) {

        val newNode = Node(value, null)
        //空链表，可以插入新节点作为head，也可以不操作
        if (head == null) {
            head = newNode

        } else {
            var q = head
            while (q?.next != null) {
                q = q.next
            }
            newNode.next = q?.next
            q?.next = newNode
        }
    }

    fun insertAfter(p: Node?, value: Int) {
        val newNode = Node(value, null)
        insertAfter(p, newNode)
    }

    fun insertAfter(p: Node?, newNode: Node) {
        if (p == null) return

        newNode.next = p.next
        p.next = newNode
    }

    fun insertBefore(p: Node?, value: Int) {
        val newNode = Node(value, null)
        insertBefore(p, newNode)
    }

    fun insertBefore(p: Node?, newNode: Node) {
        if (p == null) return
        if (head === p) {
            insertToHead(newNode)
            return
        }

        var q = head
        while (q != null && q.next !== p) {
            q = q.next
        }

        if (q == null) {
            return
        }

        newNode.next = p
        q.next = newNode

    }

    fun deleteByNode(p: Node?) {
        if (p == null || head == null) return

        if (p === head) {
            head = head?.next
            return
        }

        var q = head
        while (q != null && q.next !== p) {
            q = q.next
        }

        if (q == null) {
            return
        }

        q.next = q.next?.next
    }

    fun deleteByValue(value: Int) {
        if (head == null) return

        var p = head
        var q: Node? = null
        while (p != null && p.data != value) {
            q = p
            p = p.next
        }

        if (p == null) return

        if (q == null) {
            head = head?.next
        } else {
            q.next = q.next?.next
        }
    }

    fun printAll() {
        var p = head
        while (p != null) {
            print("${p.data} ")
            p = p.next
        }
        println()
    }

    //判断true or false
    fun TFResult(left: Node?, right: Node?): Boolean {
        var l: Node? = left
        var r: Node? = right

        println("left_:${l?.data}")
        println("right_:${r?.data}")
        while (l != null && r != null) {
            if (l.data == r.data) {
                l = l.next
                r = r.next
                continue
            } else {
                break
            }

        }

        println("什么结果")
        return l == null && r == nu


                Ix = psDec.indices.LTPIndex[k];
                for (i = 0; i < SilkConstants.LTP_ORDER; i++) {
                    psDecCtrl.LTPCoef_Q14[k * SilkConstants.LTP_ORDER + i] = (short) (Inlines.silk_LSHIFT(cbk_ptr_Q7[Ix][i], 7));
                }
            }

            /**
             * *******************
             */
            /* Decode LTP scaling */
            /**
             * *******************
             */
            Ix = psDec.indices.LTP_scaleIndex;
            psDecCtrl.LTP_scale_Q14 = SilkTables.silk_LTPScales_table_Q14[Ix];
        } else {
            Arrays.MemSet(psDecCtrl.pitchL, 0, psDec.nb_subfr);
            Arrays.MemSet(psDecCtrl.LTPCoef_Q14, (short) 0, SilkConstants.LTP_ORDER * psDec.nb_subfr);
            psDec.indices.PERIndex = 0;
            psDecCtrl.LTP_scale_Q14 = 0;
        }
    }
}
/* Copyright (c) 2007-2008 CSIRO
   Copyright (c) 2007-2011 Xiph.Org Foundation
   Originally written by Jean-Marc Valin, Gregory Maxwell, Koen Vos,
   Timothy B. Terriberry, and the Opus open-source contributors
   Ported to Java by Logan Stromberg

   Redistribution and use in source and binary forms, with or without
   modification, are permitted provided that the following conditions
   are met:

   - Redistributions of source code must retain the above copyright
   notice, this list of conditions and the following disclaimer.

   - 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.

   - Neither the name of Internet Society, IETF or IETF Trust, nor the
   names of specific contributors, may be used to endorse or promote
   products derived from this software without specific prior written
   permission.

   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
   ``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 THE COPYRIGHT OWNER
   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.
 */
package org.concentus;

class VorbisLayout {

    VorbisLayout(int streams, int coupled_streams, short[] map) {
        nb_streams = streams;
        nb_coupled_streams = coupled_streams;
        mapping = map;
    }

    int nb_streams;
    int nb_coupled_streams;
    short[] mapping;

    /* Index is nb_channel-1*/
    static final VorbisLayout[] vorbis_mappings = {
        new VorbisLayout(1, 0, new short[]{0}), /* 1: mono */
        new VorbisLayout(1, 1, new short[]{0, 1}), /* 2: stereo */
        new VorbisLayout(2, 1, new short[]{0, 2, 1}), /* 3: 1-d surround */
        new VorbisLayout(2, 2, new short[]{0, 1, 2, 3}), /* 4: quadraphonic surround */
        new VorbisLayout(3, 2, new short[]{0, 4, 1, 2, 3}), /* 5: 5-channel surround */
        new VorbisLayout(4, 2, new short[]{0, 4, 1, 2, 3, 5}), /* 6: 5.1 surround */
        new VorbisLa


sing was-symlink2")
        assert.is_true(utils.included_in_table(files, "new-symlink"), "missing new-symlink")
        assert.are.equal(#files, 4)
      end)

      it("creates a correct had-content change", function()
        local change = changeset["had-content"]
        assert.are.equal(nil, change.left_file.symlink)
        assert.are.equal("some-target", change.right_file.symlink)
        assert.are.equal("modified", change.type)
        assert.are.same({}, change.hunks)
      end)

      it("creates a correct was-symlink change", function()
        local change = changeset["was-symlink1"]
        assert.are.equal("some-target", change.left_file.symlink)
        assert.are.equal(nil, change.right_file.symlink)
        assert.are.equal("modified", change.type)
        assert.are.same({}, change.hunks)
      end)

      it("creates a correct was-symlink change", function()
        local change = changeset["was-symlink2"]
        assert.are.equal("some-target", change.left_file.symlink)
        assert.are.equal(nil, change.right_file.symlink)
        assert.are.equal("deleted", change.type)
        assert.are.same({}, change.hunks)
      end)

      it("creates a correct was-symlink change", function()
        local change = changeset["new-symlink"]
        assert.are.equal(nil, change.left_file.symlink)
        assert.are.equal("some-target2", change.right_file.symlink)
        assert.are.equal("added", change.type)
        assert.are.same({}, change.hunks)
      end)
    end)
  end)
end)


SOFTWARE.
 */
package com.mallowigi.idea.themes

/** Solarized Dark. */
class MTSolarizedDarkThemeAction : MTAbstractThemeAction() {
  override val theme: MTThemes
    get() = MTThemes.SOLARIZED_DARK
}
/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2021 Elior "Mallowigi" Boukhobza
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
package com.mallowigi.idea.themes

/** SynthWave 84. */
class MTSynthwaveThemeAction : MTAbstractThemeAction() {
  override val theme: MTThemes
    get() = MTThemes.SYNTHWAVE
}
/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2015-2023 Elior "Mallowigi" Boukhobza
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 *
 */
package com.mallowigi.tree

import com.intellij.ide.projectView.PresentationData
import com.intellij.openapi.project.Project
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.util.ui.EmptyIcon
import com.jetbrains.rider.projectView.views.solutionExplorer.SolutionExplorerCustomization
import com.jetbrains.rider.projectView.workspace.ProjectModelEntity
import com.jetbrains.rider.projectView.workspace.getVirtualFileAsParent
import com.jetbrains.rider.projectView.workspace.isDirectory
import com.mallowigi.config.AtomSettingsConfig
import com.mallowigi.config.select.AtomSelectConfig
import com.mallowigi.models.VirtualFileInfo
import icons.At


xHeight, pixelSize, style);
        break;
      case "road_crossroad":
        this.drawCrossroad(graphics, pxWidth, pxHeight, pixelSize, style);
        break;
      default:
        // 默认为垂直道路
        this.drawVerticalRoad(graphics, pxWidth, pxHeight, pixelSize, style);
    }
  }

  /**
   * 绘制像素背景（草地/绿化带）
   * @param {PIXI.Graphics} graphics 图形对象
   * @param {number} pxWidth 像素宽度
   * @param {number} pxHeight 像素高度
   * @param {number} pixelSize 像素尺寸
   * @param {Object} style 道路样式
   */
  drawPixelBackground(graphics, pxWidth, pxHeight, pixelSize, style) {
    // 绘制背景
    graphics.fill({ color: style.grassColor });
    graphics.rect(0, 0, pxWidth * pixelSize, pxHeight * pixelSize);

    // 随机添加一些深浅不一的草丛，增加像素风格的纹理感
    const darkGrass = 0x2E8B57; // 深绿色
    const lightGrass = 0x66CDAA; // 浅绿色

    // 添加随机深色草丛
    for (let i = 0; i < pxWidth * pxHeight / 10; i++) {
      const x = Math.floor(Math.random() * pxWidth);
      const y = Math.floor(Math.random() * pxHeight);
      graphics.fill({ color: darkGrass });
      graphics.rect(x * pixelSize, y * pixelSize, pixelSize, pixelSize);
    }

    // 添加随机浅色草丛
    for (let i = 0; i < pxWidth * pxHeight / 15; i++) {
      const x = Math.floor(Math.random() * pxWidth);
      const y = Math.floor(Math.random() * pxHeight);
      graphics.fill({ color: lightGrass });
      graphics.rect(x * pixelSize, y * pixelSize, pixelSize, pixelSize);
    }
  }

  /**
   * 绘制水平方向的像素道路
   * @param {PIXI.Graphics} graphics 图形对象
   * @param {number} pxWidth 像素宽度
   * @param {number} pxHeight 像素高度
   * @param {number} pixelSize 像素尺寸
   * @param {Object} style 道路样式
   */
  drawHorizontalRoad(graphics, pxWidth, pxHeight, pixelSize, style) {
    const roadHeight = Math.floor(pxHeight / 2); // 道路占据中间一半高度
    const startY = Math.floor(pxHeight / 4); // 从1/4处开始

    // 绘制道路主体
    graphics.fill({ color: style.roadColor });
    graphics.rect(0, startY * pixelSize, pxWidth * pixelSize, roadHeight * pixelSize);

    // 绘制道路边缘
    graphics.fill({ color: style.edgeColor });
    graphics.rect(0, startY * pixelSize, pxWidth * pixelSize, pixelSize);
    graphics.rect(0, (startY + roadHeight - 1) * pixelSize, pxWidth * pixelSize, pixelSize);

    // 绘制中心虚线
    const centerY = startY + Math.floor(roadHeight / 2);
    for (let x = 1; x < pxWidth; x += 3) {
      graphics.fill({ color: style.linesColor });
      graphics.rect(x * pixelSize, centerY * pixelSize, 2 * pixelSi


Şaquli boşluq","validateHSpace":"Üfüqi boşluq rəqəm olmalıdır.","validateSrc":"Link boş ola bilməz","validateVSpace":"Şaquli boşluq rəqəm olmalıdır.","windowMode":"Pəncərənin rejimi","windowModeOpaque":"Görünən","windowModeTransparent":"Şəffaf","windowModeWindow":"Pəncərə"},"font":{"fontSize":{"label":"Şrift ölçüsü","voiceLabel":"Şrift ölçüsü","panelTitle":"Şrift ölçüsü"},"label":"Şrift","panelTitle":"Şrift","voiceLabel":"Şrift"},"forms":{"button":{"title":"Düymənin xüsusiyyətləri","text":"Mətn (kəmiyyət)","type":"Növ","typeBtn":"Düymə","typeSbm":"Təsdiq et","typeRst":"Dəyişiklikləri imtina et"},"checkboxAndRadio":{"checkboxTitle":"Qutucuqun xüsusiyyətləri","radioTitle":"Radio düyməsinin xüsusiyyətləri","value":"Kəmiyyət","selected":"Seçilmiş","required":"Tələb olunur"},"form":{"title":"Formanın xüsusiyyətləri","menu":"Formanın xüsusiyyətləri","action":"Emal edən ünvan","method":"Göndərilmə üsulu","encoding":"Kodlaşdırma"},"hidden":{"title":"Gizli xanasının xüsusiyyətləri","name":"Ad","value":"Kəmiyyət"},"select":{"title":"SELECT elementinin xüsusiyyətləri","selectInfo":"SELECT elementinin haqqında məlumat","opAvail":"Mövcud olan seçimləri","value":"Kəmiyyət","size":"Ölçülər","lines":"xəttlər","chkMulti":"Çox kəmiyyətli xana","required":"Tələb olunur","opText":"Mətn","opValue":"Kəmiyyət","btnAdd":"Əıavə et","btnModify":"Redaktə et","btnUp":"Yuxarı","btnDown":"Aşağı","btnSetValue":"Susmaya görə kəmiyyəti kimi seç","btnDelete":"Sil"},"textarea":{"title":"Mətn xanasının xüsusiyyətləri","cols":"Sütunlar","rows":"Sətirlər"},"textfield":{"title":"Mətn xanasının xüsusiyyətləri","name":"Ad","value":"Kəmiyyət","charWidth":"İşarənin eni","maxChars":"İşarələrin hüdudu","required":"Tələb olunur","type":"Növ","typeText":"Mətn","typePass":"Şifrə","typeEmail":"E-poçt","typeSearch":"Axtarış","typeTel":"Telefon nömrəsi","typeUrl":"Link"}},"format":{"label":"Format","panelTitle":"Abzasın formatı","tag_address":"Ünvan","tag_div":"Normal (DIV)","tag_h1":"Başlıq 1","tag_h2":"Başlıq 2","tag_h3":"Başlıq 3","tag_h4":"Başlıq 4","tag_h5":"Başlıq 5","tag_h6":"Başlıq 6","tag_p":"Normal","tag_pre":"Formatı saxla"},"horizontalrule":{"toolbar":"Sərhəd xətti yarat"},"iframe":{"border":"Çərçivə sərhədlərini göstər","noUrl":"Çərçivənin ünvanı daxil edin","scrolling":"Şürüşdürmələri əlavə et","title":"İFRAME elementinin alətləri",


getSelectedIndex();
      else if (sourceIsErrorsWindow) idx = errorsWindow.getListObject().getSelectedIndex();
      if (idx >= 0) {
        if (errorsList.getElementAt(idx) instanceof SimpleDrcContainer) {
          generateDrcTrace((SimpleDrcContainer) errorsList.getElementAt(idx));
        }
      }
    } else if (e.getSource().equals(warnings) || sourceIsWarningsWindow) {
      clearDrcTrace();
      var idx = -1;
      if (e.getSource().equals(warnings)) idx = warnings.getSelectedIndex();
      else if (sourceIsWarningsWindow) idx = warningsWindow.getListObject().getSelectedIndex();
      if (idx >= 0)
        if (warningsList.getElementAt(idx) instanceof SimpleDrcContainer)
          generateDrcTrace((SimpleDrcContainer) warningsList.getElementAt(idx));
    }
  }

  @Override
  public void windowClosing(WindowEvent e) {
    if (e.getSource().equals(infoWindow)) {
      add(panelInfos, infoTabIndex);
      updateInfoTab();
    }
    if (e.getSource().equals(consoleWindow)) {
      add(panelConsole, getComponentCount());
      updateConsoleTab();
    }
    if (e.getSource().equals(warningsWindow)) {
      var idx = getComponentCount();
      HashSet<Component> comps = new HashSet<>(Arrays.asList(getComponents()));
      if (comps.contains(panelConsole)) idx = indexOfComponent(panelConsole);
      if (comps.contains(panelErrors)) idx = indexOfComponent(panelErrors);
      add(panelWarnings, idx);
      setTitleAt(idx, "Warnings (" + warningsList.getCountNr() + ")");
      setSelectedIndex(idx);
      clearDrcTrace();
    }
    if (e.getSource().equals(errorsWindow)) {
      var idx = getComponentCount();
      final var comps = new HashSet<>(Arrays.asList(getComponents()));
      if (comps.contains(panelConsole)) idx = indexOfComponent(panelConsole);
      add(panelErrors, idx);
      setTitleAt(idx, "Errors (" + errorsList.getCountNr() + ")");
      setSelectedIndex(idx);
      clearDrcTrace();
    }
  }
}
/*
 * Logisim-evolution - digital logic design tool and simulator
 * Copyright by the Logisim-evolution developers
 *
 * https://github.com/logisim-evolution/
 *
 * This is free software released under GNU GPLv3 license
 */

package com.cburch.draw.shapes;

import com.cburch.logisim.data.Location;

public final class LineUtil {
  // a value we consider "small enough" to equal it to zero:
  // (this is used for double solutions in 2nd or 3d degree equation)
  private static final double zeroMax = 0.0000001;

  private LineUtil() {
    // dummy
  }

  public static double distance(double x0, double y0, double x1, double y1) {
    return Math.sqrt(distanceSquared(x0, y0, x1, y1));
  }

  public static double distanceSquared(double x0, double y0, double x1, double y1) {
    final var dx = x1 - x0;
    final var dy = y1 - y0;
    return dx * dx + dy * dy;
  }

  private static double[] nearestPoint(
      double xq, double yq, double x0, double y0, double x1, double y1, boolean isSegment) {
    final var dx = x1 - x0;
    final var dy = y1 - y0;
    final var len2 = dx * dx + dy * dy;
    if (


src/errors/OperationError'>;
}
declare module '@trust/webcrypto/src/errors/QuotaExceededError.js' {
  declare module.exports: $Exports<'@trust/webcrypto/src/errors/QuotaExceededError'>;
}
declare module '@trust/webcrypto/src/errors/TypeMismatchError.js' {
  declare module.exports: $Exports<'@trust/webcrypto/src/errors/TypeMismatchError'>;
}
declare module '@trust/webcrypto/src/index.js' {
  declare module.exports: $Exports<'@trust/webcrypto/src/index'>;
}
declare module '@trust/webcrypto/src/keys/CryptoKey.js' {
  declare module.exports: $Exports<'@trust/webcrypto/src/keys/CryptoKey'>;
}
declare module '@trust/webcrypto/src/keys/CryptoKeyPair.js' {
  declare module.exports: $Exports<'@trust/webcrypto/src/keys/CryptoKeyPair'>;
}
declare module '@trust/webcrypto/src/keys/JsonWebKey.js' {
  declare module.exports: $Exports<'@trust/webcrypto/src/keys/JsonWebKey'>;
}
declare module '@trust/webcrypto/src/keys/recognizedKeyUsages.js' {
  declare module.exports: $Exports<'@trust/webcrypto/src/keys/recognizedKeyUsages'>;
}
declare module '@trust/webcrypto/src/SubtleCrypto.js' {
  declare module.exports: $Exports<'@trust/webcrypto/src/SubtleCrypto'>;
}
declare module '@trust/webcrypto/test/algorithms/AES-CBCSpec.js' {
  declare module.exports: $Exports<'@trust/webcrypto/test/algorithms/AES-CBCSpec'>;
}
declare module '@trust/webcrypto/test/algorithms/AES-CTRSpec.js' {
  declare module.exports: $Exports<'@trust/webcrypto/test/algorithms/AES-CTRSpec'>;
}
declare module '@trust/webcrypto/test/algorithms/AES-GCMSpec.js' {
  declare module.exports: $Exports<'@trust/webcrypto/test/algorithms/AES-GCMSpec'>;
}
declare module '@trust/webcrypto/test/algorithms/AES-KWSpec.js' {
  declare module.exports: $Exports<'@trust/webcrypto/test/algorithms/AES-KWSpec'>;
}
declare module '@trust/webcrypto/test/algorithms/ECDSASpec.js' {
  declare module.exports: $Exports<'@trust/webcrypto/test/algorithms/ECDSASpec'>;
}
declare module '@trust/webcrypto/test/algorithms/EDDSASpec.js' {
  declare module.exports: $Exports<'@trust/webcrypto/test/algorithms/EDDSASpec'>;
}
declare module '@trust/webcrypto/test/algorithms/HMACSpec.js' {
  declare module.exports: $Exports<'@trust/webcrypto/test/algorithms/HMACSpec'>;
}
declare module '@trust/webcrypto/test/algorithms/RegisteredAlgorithmsSpec.js' {
  declare module.exports: $Exports<'@trust/webcrypto/test/algorithms/RegisteredAlgorithmsSpec'>;
}
declare module '@trust/webcrypto/test/algorithms/RSA-OAEPspec.js' {
  declare module.exports: $Exports<'@trust/webcrypto/test/algorithms/RSA-OAEPspec'>;
}
declare module '@trust/webcrypto/test/algorithms/RSA-PSSSpec.js' {
  declare module.exports: $Exports<'@trust/webcrypto/test/algorithms/RSA-PSSSpec'>;
}
declare module '@trust/webcrypto/test/algorithms/RSASSA-PKCS1-v1_5_Spec.js' {
  declare module.exports: $Exports<'@trust/webcrypto/test/algorithms/RSASSA-PKCS1-v1_5_Spec'>;
}
declare module '@trust/webcrypto/test/algorithms/SHASpec.js' {


using LLama.Abstractions;
using LLamaStack.Core.Common;
using System.Text;

namespace LLamaStack.Core.Inference
{
    public sealed class InstructInferenceHandler<T> : InferenceHandlerBase<T>
    {
        private readonly string _instructionPrefix;
        private readonly string _instructionSuffix;

        private bool _isPromptRun = true;
        private TokenData[] _instructionPrefixTokens;
        private TokenData[] _instructionSuffixTokens;

        /// <summary>
        /// Initializes a new instance of the <see cref="InstructInferenceHandler{T}"/> class.
        /// </summary>
        /// <param name="model">The model.</param>
        /// <param name="context">The context.</param>
        /// <param name="instructionPrefix">The instruction prefix.</param>
        /// <param name="instructionSuffix">The instruction suffix.</param>
        public InstructInferenceHandler(LLamaStackModel<T> model, LLamaStackContext context, string instructionPrefix = "\n\n### Instruction:\n\n", string instructionSuffix = "\n\n### Response:\n\n") : base(model, context)
        {
            _instructionPrefix = instructionPrefix;
            _instructionSuffix = instructionSuffix;
            _instructionPrefixTokens = _context.TokenizeTextToArray(_instructionPrefix, true);
            _instructionSuffixTokens = _context.TokenizeTextToArray(_instructionSuffix, false);
        }

        /// <summary>
        /// Gets the InferenceType.
        /// </summary>
        public override InferenceType Type => InferenceType.Instruct;

        /// <summary>
        /// Decide whether to continue the loop.
        /// </summary>
        /// <param name="args">The state args</param>
        protected override Task<bool> GetLoopCondition(InferStateArgs args)
        {
            return Task.FromResult(args.RemainedTokens != 0 || _isPromptRun);
        }

        /// <summary>
        /// Preprocess the inputs before the inference.
        /// </summary>
        /// <param name="text">The input text</param>
        /// <param name="args">The state args</param>
        protected override Task PreprocessInputs(string text, InferStateArgs args)
        {
            args.Antiprompts ??= new List<string>();
            args.Antiprompts.Add(_instructionPrefix);
            if (_isPromptRun)
            {
                // When running the first input (prompt) in inteactive mode, we should specially process it.
                _promptTokens = _context.TokenizeTextToList(text, true);
            }
            else
            {
                if (!text.EndsWith("\n"))
                {
                    text += "\n";
                }
                _consumedTokensCount = _promptTokens.Count;
                _promptTokens.AddRange(_instructionPrefixTokens);

                var line_inp = _context.TokenizeTextToList(text, false);
                _promptTokens.AddRange(line_inp);

                _promptTokens.AddRange(_instructionSuffixTokens);

                args.RemainedTokens -= line_inp.Count;
            }
            return Task.CompletedTask;
        }

        /// <summary>
        /// Do some post processing after the inference.
        /// </summary>
        /// <param name="inferenceParams">The inferenceParams</param>
        /// <param name="args">The state args</param>
        protected override Task<bool> PostProcess(IInferenceParams inferenceParams, I


ort com.dpm.presentation.extension.loadAndCircleProfile
//import com.dpm.presentation.extension.setOnSingleClickListener
//import com.dpm.presentation.home.ProfileEditActivity
//import com.dpm.presentation.seatrecord.adapter.RecordListItem
//import com.dpm.presentation.seatrecord.adapter.SeatRecordAdapter
//import com.dpm.presentation.seatrecord.dialog.ConfirmDeleteDialog
//import com.dpm.presentation.seatrecord.dialog.RecordEditDialog
//import com.dpm.presentation.seatrecord.viewmodel.EditUi
//import com.dpm.presentation.seatrecord.viewmodel.SeatRecordViewModel
//import com.dpm.presentation.seatreview.ReviewActivity
//import com.dpm.presentation.util.CalendarUtil
//import com.dpm.presentation.util.Utils
//import com.facebook.shimmer.ShimmerFrameLayout
//import dagger.hilt.android.AndroidEntryPoint
//
//@AndroidEntryPoint
//class TestSeatRecordActivity : BaseActivity<ActivityTestSeatRecordBinding>(
//    ActivityTestSeatRecordBinding::inflate
//) {
//    companion object {
//        const val SEAT_RECORD_TAG = "seatRecord"
//        const val PROFILE_NAME = "profile_name"
//        const val PROFILE_IMAGE = "profile_image"
//        const val PROFILE_CHEER_TEAM = "profile_cheer_team"
//    }
//
//    private lateinit var adapter: SeatRecordAdapter
//    private val viewModel: SeatRecordViewModel by viewModels()
//    private var isLoading: Boolean = false
//
//
//    private val editProfileLauncher =
//        registerForActivityResult(ActivityResultContracts.StartActivityForResult()) { result ->
//            if (result.resultCode == Activity.RESULT_OK) {
//                val data = result.data
//                val nickname = data?.getStringExtra(ProfileEditActivity.PROFILE_NAME) ?: ""
//                val profileImage = data?.getStringExtra(ProfileEditActivity.PROFILE_IMAGE) ?: ""
//                val teamId = data?.getIntExtra(ProfileEditActivity.PROFILE_CHEER_TEAM_ID, 0) ?: 0
//                val teamName =
//                    data?.getStringExtra(ProfileEditActivity.PROFILE_CHEER_TEAM_NAME) ?: ""
//
//                viewModel.updateProfile(nickname, profileImage, teamId, teamName)
//            }
//        }
//
//    override fun onCreate(savedInstanceState: Bundle?) {
//        super.onCreate(savedInstanceState)
//
//        initView()
//        initEvent()
//        initObserver()
//    }
//
//    private fun initView() {
//        initViewStatusBar()
//        viewModel.getSeatReviewDate()
////        viewModel.getLocalProfile()
//        initRecordAdapter()
//    }
//
//    private fun initEvent() {
//        with(binding) {
//            ivBack.setOnClickListener {
//                finish()
//            }
////            recordSpotAppbar.setNavigationOnClickListener {
////                finish()
////            }
//            fabRecordUp.setOnClickListener {
//                rvSeatRecord.smoothScrollToPosition(0)
//            }
//            fabRecordPlus.setOnClickListener {
//                navigateToReviewActivity()
//            }
//
//            /** 게시물 없을 때 **/
//            ivRecordProfile.setOnSingleClickListener { navigateToProfileEditActivity() }
//            ivRecordEdit.setOnSingleClickListener { navigateToProfileEditActivity() }
//            btRecordWriteRecord.setOnSingleClickListener { navigateToReviewActivity() }
//
//            /** 로딩 실패 **/
//            btRecordFailRefresh.setOnSingleClickListener {
//                if (viewModel.seatReviews.value is UiState.Failure || viewModel.seatDate.value is UiState.Failure) {
//                    makeSpotImageAppbar("리뷰를 불러오는데 실패하였습니다.")
//                }
//                viewModel.get


id,
                    'knowledge_id': knowledge_id,
                    'document_id': document_id
                }
            )
            return result.success(d.page(current_page, page_size))

    class AdjustPosition(APIView):
        authentication_classes = [TokenAuth]

        @extend_schema(
            methods=['PUT'],
            summary=_('Adjust paragraph position'),
            description=_('Adjust paragraph position'),
            operation_id=_('Adjust paragraph position'),  # type: ignore
            parameters=ParagraphAdjustOrderAPI.get_parameters(),
            request=ParagraphAdjustOrderAPI.get_request(),
            responses=ParagraphAdjustOrderAPI.get_response(),
            tags=[_('Knowledge Base/Documentation/Paragraph')]  # type: ignore
        )
        @has_permissions(
            PermissionConstants.KNOWLEDGE_DOCUMENT_EDIT.get_workspace_knowledge_permission(),
            PermissionConstants.KNOWLEDGE_DOCUMENT_EDIT.get_workspace_permission_workspace_manage_role(),
            RoleConstants.WORKSPACE_MANAGE.get_workspace_role(),
            ViewPermission([RoleConstants.USER.get_workspace_role()],
                           [PermissionConstants.KNOWLEDGE.get_workspace_knowledge_permission()], CompareConstants.AND),
        )
        def put(self, request: Request, workspace_id: str, knowledge_id: str, document_id: str):
            return result.success(ParagraphSerializers.AdjustPosition(
                data={
                    'workspace_id': workspace_id,
                    'knowledge_id': knowledge_id,
                    'document_id': document_id,
                    'paragraph_id': request.query_params.get('paragraph_id'),
                }
            ).adjust_position(request.query_params.get('new_position')))


resultText && (
                <>

                        <textarea
                            className="globalsub"
                            style={{ border: '1px rgba(0, 0, 0, 0.59) solid' }}
                            value={resultText}
                            placeholder="Your PDF text will appear here..."
                            readOnly
                        />

                    <textarea
                        style={{
                            width: 254,
                            height: 682,
                            left: 1280,
                            top: 426,
                            position: 'absolute',
                            background: 'white',
                            border: '1px rgba(0, 0, 0, 0.59) solid',
                            borderRadius: 5
                        }}
                        value={stack.join("\n\n")}
                        placeholder="Neil tells ..."
                        readOnly
                    />
                    <input
                        type="text"
                        style={{
                            width: 239,
                            height: 104,
                            left: 1290,
                            top: 990,
                            position: 'absolute',
                            background: 'white',
                            borderRadius: 2,
                            border: '1px rgba(0, 0, 0, 0.59) solid'
                        }}
                        onChange={handleUpdateData}
                    />
                    <button
                        onClick={handleResponse}
                        style={{
                            width: 213,
                            height: 29,
                            left: 1300,
                            top: 1060,
                            position: 'absolute',
                            background: 'rgba(188, 19, 254, 0.68)',
                            borderRadius: 22
                        }}
                    >
                        Clarify!
                    </button>
                    {/*

                        <GenVid data={resultText} />
                        <QuizApp data={resultText} />
                        <DsaCompiler data={resultText} />

 */}
                </>
            )}

    );
};

export default Pdfreader;
let loginDiv = document.querySelector("#logindiv")
let signupDiv = document.querySelector("#sigupdiv")

let loginBtn = document.querySelector("#loginBtn")
let signupBtn = document.querySelector("#signupBtn")

let cancelBtn = document.querySelectorAll(".cancelBtn")

function loginFun() {
    loginDiv.style.display = "flex"
}

function signupFun(){
    console.log("Nnn")
    signupDiv.style.display = "flex"
}

cancelBtn[0].addEventListener("click", () => {
    loginDiv.style.display = "none"
})

cancelBtn[1].addEventListener("click", () => {
    signupDiv.style.display = "none"
})

function login(event) {
    event.preventDefault();
    const formData = new FormData(document.getElementById('loginForm'));
    const data = {};
    formData.forEach((value, key) => {
        data[key] = value;
    });

    fetch('/login', {
        method: 'POST',
        headers: {
            'Content-Type': 'application/json'
        },
        body: JSON.stringify(data)
    })
    .then(response => {
        if (!response.ok) {
            throw new Error('Network response was not ok');
        }
        return response.json();
    })
    .then(data => {
        if(data.message != ''){
            localStorage.setItem("user", data.message)
            window


if SERVER then return end
local tips = {}
local localAng = Angle(0, -90, 90)
local AddWorldTip_orig
timer.Simple(0, function() AddWorldTip_orig = AddWorldTip end)
hook.Add("VRMod_Start", "worldtips", function(ply)
	if ply ~= LocalPlayer() then return end
	AddWorldTip = function(entindex, text, dietime, pos, ent)
		if #tips == 0 then
			hook.Add("PostDrawTranslucentRenderables", "vrmod_worldtips", function(depth, sky)
				if depth or sky or EyePos() ~= g_VR.view.origin then return end
				local curtime = SysTime()
				surface.SetDrawColor(255, 255, 255, 255)
				cam.IgnoreZ(true) --$ignorez in material didn't seem to work
				local tms = render.GetToneMappingScaleLinear()
				render.SetToneMappingScaleLinear(Vector(0.75, 0.75, 0.75))
				local i = 1
				while tips[i] do
					local v = tips[i]
					if curtime > v.dietime or not IsValid(v.ent) then
						table.remove(tips, i)
						continue
					end

					local pos = v.ent and v.ent:GetPos() or v.pos
					local scale = (g_VR.tracking.hmd.pos - pos):Length() * math.tan(0.0014)
					local pos, ang = LocalToWorld(Vector(0, scale * 512, scale * 512), localAng, pos, (pos - g_VR.tracking.hmd.pos):Angle())
					cam.Start3D2D(pos, ang, scale)
					surface.SetMaterial(v.mat)
					surface.DrawTexturedRect(0, 0, 512, 512)
					cam.End3D2D()
					i = i + 1
				end

				cam.IgnoreZ(false)
				render.SetToneMappingScaleLinear(tms)
				if #tips == 0 then hook.Remove("PostDrawTranslucentRenderables", "vrmod_worldtips") end
			end)
		end

		local index = #tips + 1
		for i = 1, #tips do
			if tips[i].ent == ent or tips[i].pos == pos then
				index = i
				break
			end
		end

		if not tips[index] or tips[index].text ~= text then
			local rt = GetRenderTarget("worldtip" .. index, 512, 512, false)
			local mat = CreateMaterial("worldtip" .. index, "UnlitGeneric", {


.device-sm .before-heading.opm-medium { font-size: 22px; }

.device-xs .before-heading.opm-medium { font-size: 18px; }

.device-xxs .before-heading.opm-medium { font-size: 14px; }

/* Large Counter in Slider
---------------------------------------------------------------------------- */

.opm-large-counter {
	font-size: 480px;
	color: #F2F2F2;
	line-height: 1;
}

.device-sm .opm-large-counter { font-size: 360px; }

.device-xs .opm-large-counter { font-size: 220px; }

.device-xxs .opm-large-counter { font-size: 150px; }

/* Slider Grid Blocks
---------------------------------------------------------------------------- */

.half-screen {
	position: relative;
	height: 50%;
}

.videoplay-on-hover .vertical-middle { z-index: 2; }

.videoplay-on-hover .video-wrap { z-index: 1; }

.videoplay-on-hover .vertical-middle h2 {
	font-size: 40px;
	font-weight: bold;
}

.device-xs .videoplay-on-hover .vertical-middle h2 { font-size: 32px; }

.device-xxs .videoplay-on-hover .vertical-middle h2 { font-size: 26px; }

/* Hero Video Play Event
---------------------------------------------------------------------------- */

.big-video-button {
	display: inline-block;
	width: 64px;
	height: 64px;
	line-height: 64px;
	border-radius: 50%;
	background-color: #333;
	color: #F5F5F5 !important;
	font-size: 24px;
	text-align: center;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
	opacity: 1;
	-webkit-transition: opacity .3s ease;
	-o-transition: opacity .3s ease;
	transition: opacity .3s ease;
}

.big-video-button:hover { opacity: 0.9; }

.dark .big-video-button,
.big-video-button.dark {
	background-color: #F5F5F5;
	color: #333 !important;
	text-shadow: none;
}

.big-video-button i:nth-of-type(1) {
	position: relative;
	left: 3px;
}

.big-video-button i:nth-of-type(2),
.big-video-button.video-played i:nth-of-type(1) { display: none; }

.big-video-button.video-played i:nth-of-type(2) { display: block; }

.big-video-button.video-played { opacity: 0.1; }

#slider:hover .big-video-button.video-played { opacity: 1; }

.slider-caption h2 {
	font-size: 78px;
	letter-spacing: 3px;
	text-transform: lowercase;
	margin-bottom: 50px;
}

.slider-caption p {
	font-weight: 300;
	text-transform: lowercase;
	font-size: 26px;
	line-height: 1.8;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.testimonials-lg { overflow: visible; }

.testimonials-lg:before {
	position: absolute;
	top: -20px;
	left: -30px;
	content: "“";
	color: rgba(0,0,0,0.07);
	font-size: 144px;
	line-height: 1;
	font-family: 'Passion One';
}

.testimonials-lg .testi-content p {
	font-size: 26px;
	line-height: 1.6;
	font-style: normal;
	font-weight: 300;
	font-family: 'Roboto', sans-serif;
	color: #111;
}

.testimonials-lg


:TxIn" title="Ledger">TxIn

pubKeyTxIns :: Fold [TxIn] TxIn

adjustTxOut :: PParams (BabbageEra StandardCrypto) -> TxOut -> Either ToCardanoError ([Ada], TxOut)

minAdaTxOut :: PParams (BabbageEra <a hr


 scroll center top; }

.flora .ui-dialog .ui-resizable-s,
.flora.ui-dialog .ui-resizable-s { cursor: s-resize; height: 8px; width: 100%; bottom: 0px; left: 0px; background: transparent url(i/dialog-s.gif) repeat scroll center top; }

.flora .ui-dialog .ui-resizable-e,
.flora.ui-dialog .ui-resizable-e { cursor: e-resize; width: 7px; right: 0px; top: 0px; height: 100%; background: transparent url(i/dialog-e.gif) repeat scroll right center; }

.flora .ui-dialog .ui-resizable-w,
.flora.ui-dialog .ui-resizable-w { cursor: w-resize; width: 7px; left: 0px; top: 0px; height: 100%; background: transparent url(i/dialog-w.gif) repeat scroll right center; }

.flora .ui-dialog .ui-resizable-se,
.flora.ui-dialog .ui-resizable-se { cursor: se-resize; width: 9px; height: 9px; right: 0px; bottom: 0px; background: transparent url(i/dialog-se.gif); }

.flora .ui-dialog .ui-resizable-sw,
.flora.ui-dialog .ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: 0px; bottom: 0px; background: transparent url(i/dialog-sw.gif); }

.flora .ui-dialog .ui-resizable-nw,
.flora.ui-dialog .ui-resizable-nw { cursor: nw-resize; width: 9px; height: 29px; left: 0px; top: 0px; background: transparent url(i/dialog-nw.gif); }

.flora .ui-dialog .ui-resizable-ne,
.flora.ui-dialog .ui-resizable-ne { cursor: ne-resize; width: 9px; height: 29px; right: 0px; top: 0px; background: transparent url(i/dialog-ne.gif); }
/**
 * Copyright (c) Tiny Technologies, Inc. All rights reserved.
 * Licensed under the LGPL or a commercial license.
 * For LGPL see License.txt in the project root for license information.
 * For commercial licenses see https://www.tiny.cloud/
 */
.mce-content-body .mce-item-anchor{background:transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'8'%20height%3D'12'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M0%200L8%200%208%2012%204.09117821%209%200%2012z'%2F%3E%3C%2Fsvg%3E%0A") no-repeat center;cursor:default;display:inline-block;height:12px!important;padding:0 2px;-webkit-user-modify:read-only;-moz-user-modify:read-only;-webkit-user-select:all;-moz-user-select:all;-ms-user-select:all;user-select:all;width:8px!important}.mce-content-body .mce-item-anchor[data-mce-selected]{ou


vg"%3E%3Cpath d="m18 15h.5c.2761 0 .5.2239.5.5v5c0 .2761-.2239.5-.5.5h-6c-.2761 0-.5-.2239-.5-.5v-5c0-.2761.2239-.5.5-.5h4.5v-2.5c0-1.3807 1.1193-2.5 2.5-2.5s2.5 1.1193 2.5 2.5v1.5h-1v-1.5c0-.8284-.6716-1.5-1.5-1.5s-1.5.6716-1.5 1.5z" fill="%23000" fill-opacity=".8"/%3E%3Cpath d="m18 47h.5c.2761 0 .5.2239.5.5v5c0 .2761-.2239.5-.5.5h-6c-.2761 0-.5-.2239-.5-.5v-5c0-.2761.2239-.5.5-.5h4.5v-2.5c0-1.3807 1.1193-2.5 2.5-2.5s2.5 1.1193 2.5 2.5v1.5h-1v-1.5c0-.8284-.6716-1.5-1.5-1.5s-1.5.6716-1.5 1.5z" fill="%23000" fill-opacity=".3"/%3E%3Cpath d="m18 79h.5c.2761 0 .5.2239.5.5v5c0 .2761-.2239.5-.5.5h-6c-.2761 0-.5-.2239-.5-.5v-5c0-.2761.2239-.5.5-.5h4.5v-2.5c0-1.3807 1.1193-2.5 2.5-2.5s2.5 1.1193 2.5 2.5v1.5h-1v-1.5c0-.8284-.6716-1.5-1.5-1.5s-1.5.6716-1.5 1.5z" fill="%2318a0fb"/%3E%3Cpath d="m18 111h.5c.2761 0 .5.224.5.5v5c0 .276-.2239.5-.5.5h-6c-.2761 0-.5-.224-.5-.5v-5c0-.276.2239-.5.5-.5h4.5v-2.5c0-1.381 1.1193-2.5 2.5-2.5s2.5 1.119 2.5 2.5v1.5h-1v-1.5c0-.828-.6716-1.5-1.5-1.5s-1.5.672-1.5 1.5z" fill="%23fff"/%3E%3C/svg%3E');
}

.icon--lock {
  background-image: url('data:image/svg+xml,%3Csvg fill="none" height="128" viewBox="0 0 32 128" width="32" xmlns="http://www.w3.org/2000/svg"%3E%3Cg clip-rule="evenodd" fill-rule="evenodd"%3E%3Cpath d="m13.5 15v-1.5c0-1.3807 1.1193-2.5 2.5-2.5s2.5 1.1193 2.5 2.5v1.5h.5c.2761 0 .5.2239.5.5v5c0 .2761-.2239.5-.5.5h-6c-.2761 0-.5-.2239-.5-.5v-5c0-.2761.2239-.5.5-.5zm4-1.5v1.5h-3v-1.5c0-.8284.6716-1.5 1.5-1.5s1.5.6716 1.5 1.5z" fill="%23000" fill-opacity=".8"/%3E%3Cpath d="m13.5 47v-1.5c0-1.3807 1.1193-2.5 2.5-2.5s2.5 1.1193 2.5 2.5v1.5h.5c.2761 0 .5.2239.5.5v5c0


.push(
                      context,
                      MaterialPageRoute(
                        builder: (context) => PokemonOpponentPage(
                          pokemonName: pokemon.name,
                          isUp: false,
                        ),
                      ),
                    );
                  },
                  child: const Text('Pokémon Disadvantage'),
                ),
                FilledButton(
                  style: FilledButton.styleFrom(
                    minimumSize: const Size.fromHeight(56),
                  ),
                  onPressed: () {
                    Navigator.push(
                      context,
                      MaterialPageRoute(
                        builder: (context) => PokemonTeamPage(
                          pokemonName: pokemon.name,
                        ),
                      ),
                    );
                  },
                  child: const Text('Team'),
                ),
              ],
            ),
          ),
        ),
      ];
    },
    modalTypeBuilder: (_) => WoltModalType.bottomSheet(),
    barrierDismissible: true,
  );
}
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark

part of 'password_provider.dart';

// **************************************************************************
// FreezedGenerator
// **************************************************************************

T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
    'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

/// @nodoc
mixin _$MyPassword {
  bool get withLowercase => throw _privateConstructorUsedError;
  bool get withUppercase => throw _privateConstructorUsedError;
  bool get withNumbers => throw _privateConstructorUsedError;
  bool get withSpecial => throw _privateConstructorUsedError;
  int get length => throw _privateConstructorUsedError;
  String get password => throw _privateConstructorUsedError;

  /// Create a copy of MyPassword
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  $MyPasswordCopyWith<MyPassword> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $MyPasswordCopyWith<$Res> {
  factory $MyPasswordCopyWith(
          MyPassword value, $Res Function(MyPassword) then) =
      _$MyPasswordCopyWithImpl<$Res, MyPassword>;
  @useResult
  $Res call(
      {bool withLowercase,
      bool withUppercase,
      bool withNumbers,
      bool withSpecial,
      int length,
      String password});
}

/// @nodoc
class _$MyPasswordCopyWithImpl<$Res, $Val extends MyPassword>
    implements $MyPasswordCopyWith<$Res> {
  _$MyPasswordCopyWithImpl(this._value, this._then);

  // ignore: unused_field
  final $Val _value;
  // ignore: unused_field
  final $Res Function($Val) _then;

  /// Create a copy of MyPassword
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? withLowercase = null,
    Object? withUp


 useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
 */
package com.watabou.pixeldungeon.windows;

import com.watabou.noosa.BitmapText;
import com.watabou.noosa.BitmapTextMultiline;
import com.watabou.noosa.Image;
import com.watabou.pixeldungeon.Badges;
import com.watabou.pixeldungeon.effects.BadgeBanner;
import com.watabou.pixeldungeon.scenes.PixelScene;
import com.watabou.pixeldungeon.ui.Window;

public class WndBadge extends Window {

	private static final int WIDTH = 120;
	private static final int MARGIN = 4;

	public WndBadge( Badges.Badge badge ) {

		super();

		Image icon = BadgeBanner.image( badge.image );
		icon.scale.set( 2 );
		add( icon );

		BitmapTextMultiline info = PixelScene.createMultiline( badge.description, 8 );
		info.maxWidth = WIDTH - MARGIN * 2;
		info.measure();

		float w = Math.max( icon.width(), info.width() ) + MARGIN * 2;

		icon.x = (w - icon.width()) / 2;
		icon.y = MARGIN;

		float pos = icon.y + icon.height() + MARGIN;
		for (BitmapText line : info.new LineSplitter().split()) {
			line.measure();
			line.x = PixelScene.align( (w - line.width()) / 2 );
			line.y = PixelScene.align( pos );
			add( line );

			pos += line.height();
		}

		resize( (int)w, (int)(pos + MARGIN) );

		BadgeBanner.highlight( icon, badge.image );
	}
}
package com.watabou.pixeldungeon.windows;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.watabou.input.NoosaInputProcessor;
import com.watabou.noosa.BitmapText;
import com.watabou.noosa.Camera;
import com.watabou.noosa.Game;
import com.watabou.noosa.ui.Component;
import com.watabou.pixeldungeon.input.GameAction;
import com.watabou.pixeldungeon.input.PDInputProcessor;
import com.watabou.pixeldungeon.scenes.PixelScene;
import com.watabou.pixeldungeon.ui.RedButton;
import com.watabou.pixeldungeon.ui.ScrollPane;
import com.watabou.pixeldungeon.ui.Window;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;

public class WndKeymap extends Window {
	private static final int MARGIN = 0;
	private static final float ITEM_HEIGHT = 12;
	private static final int BTN_HEIGHT	= 20;

	public static final String TXT_UNASSIGNED = "<None>";

	private Component listContent;

	private int tempPos = 0;

	private final Map<GameAction, ListItem> items = new HashMap<>(32);

	private static class KeyPair {
		public int key1, key2;
	}

	public WndKeymap() {

		int ww = Math.min( 160, PixelScene.uiCamera.width - 16 );
		int wh = PixelScene.uiCamera.height - 24;

		resize( ww, wh );

		RedButton btnReset = new RedButton( "Reset To Defaults" ) {
			@Override
			protected void onClick() {
				resetToDefaults();
				populateList();
			}
		};
		btnReset.setRect( 0, height - BTN_HEI


F0ssgEBQystsF4ssgAAPystsF8ssgABPystsGAssgEAPystsGEssgEBPystsGIssDcrLrErARQrLbBjLLA3K7A7Ky2wZCywNyuwPCstsGUssAAWsDcrsD0rLbBmLLA4Ky6xKwEUKy2wZyywOCuwOystsGgssDgrsDwrLbBpLLA4K7A9Ky2waiywOSsusSsBFCstsGsssDkrsDsrLbBsLLA5K7A8Ky2wbSywOSuwPSstsG4ssDorLrErARQrLbBvLLA6K7A7Ky2wcCywOiuwPCstsHEssDorsD0rLbByLLMJBAIDRVghGyMhWUIrsAhlsAMkUHiwARUwLQBLuADIUlixAQGOWbABuQgACABjcLEABUKxAAAqsQAFQrEACCqxAAVCsQAIKrEABUK5AAAACSqxAAVCuQAAAAkqsQMARLEkAYhRWLBAiFixA2REsSYBiFFYugiAAAEEQIhjVFixAwBEWVlZWbEADCq4Af+FsASNsQIARAA=') format('truetype');
}

 [class^="icon-"]:before, [class*=" icon-"]:before {
  font-family: "tsumego_icons";
  font-style: normal;
  font-weight: normal;
  speak: none;

  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: .2em;
  text-align: center;
  /* opacity: .8; */

  /* For safety - reset parent styles, that can break glyph codes*/
  font-variant: normal;
  text-transform: none;

  /* fix buttons height, for twitter bootstrap */
  line-height: 1em;

  /* Animation center compensation - margins should be symmetric */
  /* remove if not needed */
  margin-left: .2em;

  /* you can be more comfortable with increased icons size */
  /* font-size: 120%; */

  /* Uncomment for 3D effect */
  /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}

.wgo-tsumego {
	font-family: Calibri, Tahoma, Arial;
}

.wgo-tsumego-control {
	display: table;
	width: 100%;
	table-layout: fixed;
	border-collapse: separate;
	margin-top: 10px;
}

.wgo-tsumego-btnwrapper {
	float: none;
	display: table-cell;
	padding: 0 1%;
}

.wgo-tsumego-btnwrapper:first-child {
	padding: 0 2% 0 0;
}

.wgo-tsumego-btnwrapper:last-child {
	padding: 0 0 0 2%;
}

.wgo-tsumego-comment {
	vertical-align: middle;
	border: 1px solid #cccccc;
	padding: 6px 12px;
	font-size: 18px;
	border-radius: 4px;
	color: #333333;
	background-color: #ffffff;
	margin-bottom: 10px;
	font-weight: bold;
}

.wgo-tsumego.wgo-tsumego-correct .wgo-tsumego-comment::after,
.wgo-tsumego.wgo-tsumego-interesting .wgo-tsumego-comment::after,
.wgo-tsumego.wgo-tsumego-doubtful .wgo-tsumego-comment::after,
.wgo-tsumego.wgo-tsumego-incorrect .wgo-tsumego-comment::after,
.wgo-tsumego.wgo-tsumego-unknown .wgo-tsumego-comment::after {
	font-family: "tsumego_icons";
	fl


at, optional): ignore the pixels further than this value.
            transposed (bool): if True, the resulting point matrix is in the shape of (B, H, W, 3).
            return_mask (bool): if True, return a mask matrix where 0-depth points are False. Default: False.

        Returns:
            A Tensor of the point image in the shape of (B, 3, H, W).
            A Tensor of the mask image in the shape of (B, H, W).
        """
        focal_x = intrinsics[..., 0:1, 0:1]
        focal_y = intrinsics[..., 1:2, 1:2]
        center_x = intrinsics[..., 0:1, 2:3]
        center_y = intrinsics[..., 1:2, 2:3]

        batch_size, height, width = depth_mat.shape
        coords = torch.arange(height * width).view(height, width).to(depth_mat.device).unsqueeze(0).expand_as(depth_mat)
        u = coords % width  # (B, H, W)
        v = torch.div(coords, width, rounding_mode="floor")  # (B, H, W)

        z = depth_mat * scaling_factor_a + scaling_factor_b  # (B, H, W)
        if depth_limit is not None:
            z.masked_fill_(torch.gt(z, depth_limit), 0.0)
        x = (u - center_x) * z / focal_x  # (B, H, W)
        y = (v - center_y) * z / focal_y  # (B, H, W)

        if transposed:
            points = torch.stack([x, y, z], dim=-1)  # (B, H, W, 3)
        else:
            points = torch.stack([x, y, z], dim=1)  # (B, 3, H, W)

        if not return_mask:
            return points

        masks = torch.gt(z, 0.0)

        return points, masks

    import math
    @torch.no_grad()
    def cosine_beta_schedule(timesteps, s=0.008):
        """
        cosine schedule
        as proposed in https://openreview.net/forum?id=-NEXDKk8gZ
        """
        steps = timesteps + 1
        x = torch.linspace(0, timesteps, steps, dtype=torch.float64)
        alphas_cumprod = torch.cos(((x / timesteps) + s) / (1 + s) * math.pi * 0.5) ** 2
        alphas_cumprod = alphas_cumprod / alphas_cumprod[0]
        betas = 1 - (alphas_cumprod[1:] / alphas_cumprod[:-1])
        return torch.clip(betas, 0, 0.999)

    @torch.no_grad()
    # forward diffusion
    def q_sample(x_start, t, noise=None, timesteps=1000):
        if noise is None:
            noise = torch.randn_like(x_start)

        betas = cosine_beta_schedule(timesteps).to(x_start.device)
        alphas = 1. - betas

        alphas_cumprod = torch.cumprod(alphas, dim=0)

        sqrt_alphas_cumprod =  torch.sqrt(alphas_cumprod)
        sqrt_one_minus_alphas_cumprod = torch.sqrt(1. - alphas_cumprod)

        sqrt_alphas_cumprod_t = extract(sqrt_alphas_cumprod, t, x_start.shape)
        sqrt_one_minus_alphas_cumprod_t = extract(sqrt_one_minus_alphas_cumprod, t, x_start.shape)

        return sqrt_alphas_cumprod_t * x_start + sqrt_one_minus_alphas_cumprod_t * noise

    def match_2_conf_matrix(self, matches_gt, matrix_pred):
        matrix_gt = torch.zeros_like(matrix_pred)
        for b, match in enumerate (matches_gt) :
            matrix_gt [ b][ match[0],  match[1] ] = 1
        return matrix_gt

def create_model(cfg):
    model = MATR2D3D(cfg)
    return model

def main():
    from config import make_cfg

    cfg = make_cfg()
    model = create_model(cfg)
    print(model.state_dict().keys())
    print(model)

if __name__ == "__main__":
    main()


    'loc': [-122.099175, 40.049735],
    'pop': 3363,
    'state': 'CA'
  },
  {
    '_id': '96056',
    'city': 'MCARTHUR',
    'loc': [-121.214896, 41.111407],
    'pop': 2797,
    'state': 'CA'
  },
  {
    '_id': '96057',
    'city': 'MCCLOUD',
    'loc': [-122.13562, 41.252108],
    'pop': 1743,
    'state': 'CA'
  },
  {
    '_id': '96058',
    'city': 'MACDOEL',
    'loc': [-121.944472, 41.883028],
    'pop': 1945,
    'state': 'CA'
  },
  {
    '_id': '96059',
    'city': 'MANTON',
    'loc': [-121.836521, 40.433125],
    'pop': 344,
    'state': 'CA'
  },
  {
    '_id': '96062',
    'city': 'MILLVILLE',
    'loc': [-122.111088, 40.565316],
    'pop': 1281,
    'state': 'CA'
  },
  {
    '_id': '96063',
    'city': 'MINERAL',
    'loc': [-121.524807, 40.328826],
    'pop': 172,
    'state': 'CA'
  },
  {
    '_id': '96064',
    'city': 'MONTAGUE',
    'loc': [-122.463799, 41.724294],
    'pop': 4246,
    'state': 'CA'
  },
  {
    '_id': '96065',
    'city': 'MONTGOMERY CREEK',
    'loc': [-121.923313, 40.912378],
    'pop': 823,
    'state': 'CA'
  },
  {
    '_id': '96067',
    'city': 'MOUNT SHASTA',
    'loc': [-122.324017, 41.317435],
    'pop': 6719,
    'state': 'CA'
  },
  {
    '_id': '96069',
    'city': 'OAK RUN',
    'loc': [-122.040932, 40.68631],
    'pop': 1160,
    'state': 'CA'
  },
  {
    '_id': '96071',
    'city': 'OLD STATION',
    'loc': [-121.458476, 40.62557],
    'pop': 213,
    'state': 'CA'
  },
  {
    '_id': '96073',
    'city': 'PALO CEDRO',
    'loc': [-122.239805, 40.576661],
    'pop': 3905,
    'state': 'CA'
  },
  {
    '_id': '96075',
    'city': 'PAYNES CREEK',
    'loc': [-121.764952, 40.351415],
    'pop': 773,
    'state': 'CA'
  },
  {
    '_id': '96076',
    'city': 'WILDWOOD',
    'loc': [-122.918013, 40.316528],
    'pop': 119,
    'state': 'CA'
  },
  {
    '_id': '96080',
    'city': 'RED BLUFF',
    'loc': [-122.238281, 40.179535],
    'pop': 25180,
    'state': 'CA'
  },
  {
    '_id': '96085',
    'city': 'SCOTT BAR',
    'loc': [-122.988183, 41.77364],
    'pop': 21,
    'state': 'CA'
  },
  {
    '_


is,dark,popUpWidth,popUpHeight,effectType,isAlert);
    }

	/**
	 * 面板弹出之前处理
	 */
    public beforShow(): void {

    }

	/**
	 * 初始化面板ui
	 */
    public initUI(): void {

    }

	/**
	 * 初始化面板数据
	 */
    public initData(): void {

    }

    /**
    * 移除面板方法
    * panel       		面板
    * effectType        0：没有动画 1:从中间缩小消失 2：  3：从左向右 4：从右向左 5、从上到下 6、从下到上
    */
    public hide(effectType:number = 1): void
    {
        PopUpManager.removePopUp(this,effectType);
        this.destroy();
    }

	/**
	 * 面板关闭后需要销毁的对象
	 */
    public destroy(): void {

    }

	/**
	 * 面板是否弹出状态
	 */
    public getIsPopUp(): Boolean {
        return this.showing;
    }

	/**
	 * 面板是否初始化完毕
	 */
    public getIsInit(): Boolean {
        return this.init;
    }

    // 获取面板宽度
    public getWidth(): number {
        return this.width;
    }

    // 获取面板高度
    public getHeight(): number {
        return this.height;
    }

}
import { fromBech32Address } from "@zilliqa-js/crypto";
import { Network } from "zilswap-sdk/lib/constants";

import { TokenInfo } from "app/store/types";
import { HTTP } from "core/utilities";

export enum BatchRequestType {
  Balance = "balance",
  TokenBalance = "tokenBalance",
  TokenAllowance = "tokenAllowance"
};

interface BatchRequestItem {
  id: string;
  jsonrpc: string;
  method: string;
  params: any[];
}

interface BatchRequest {
  type: string
  token: TokenInfo
  item: BatchRequestItem
}

interface BatchResponse {
  request: BatchRequest;
  result: any;
}

/**
 * Create a `GetBalance` request.
 *
 * @param TokenInfo The token for which it's requested.
 * @param string The wallet address.
 * @returns BatchRequest
 */
export const balanceBatchRequest = (token: TokenInfo, address: string): BatchRequest => {
  return {
    type: BatchRequestType.Balance,
    token: token,
    item: {
      id: "1",
      jsonrpc: "2.0",
      method: "GetBalance",
      params: [address],
    },
  };
}

/**
 * Create a `GetSmartContractSubState` request for the balances variable.
 *
 * @param TokenInfo The token for which it's requested.
 * @param string The wallet address.
 * @returns BatchRequest
 */
export const tokenBalanceBatchRequest = (token: TokenInfo, walletAddress: string): BatchRequest => {
  return {
    type: BatchRequestType.TokenBalance,
    token: token,
    item: {
      id: "1",
      jsonrpc: "2.0",
      method: "GetSmartContractSubState",
      params: [
        fromBech32Address(token.address).replace("0x", "").toLowerCase(),
        "balances",
        [walletAddress],
      ],
    },
  };
}

/**
 * Create a `GetSmartContractSubState` request for the allowances variable.
 *
 * @param TokenInfo The token for which it's requested.
 *


attributeData.position(enemyIndex * 94);
		ByteBuffer attributes = attributeData.slice().order(ByteOrder.LITTLE_ENDIAN);

		// load name

		attributes.position(1);
		int maxStringLen = 25;

		StringBuilder sb = new StringBuilder(maxStringLen);

		for(int i = 0; i < maxStringLen; i++)
		{
			short character = RomUtil.unsigned(attributes.get());

			if(character == 0x00) break;

			if(character < 0x30) {
				character = '?';
			} else {
				character -= 0x30;
			}

			if(character == 0x7C)  {
				// pipe character is interpreted as the main character's name
				sb.append("Ness");
			} else {
				sb.append((char)(character));
			}
		}

		return sb.toString();
	}

	public int getRow()
	{
		return row;
	}

	private void loadBattleSprite(int spriteIndex)
	{
		String cacheFileName = mName + ".png";
		File cacheDir = new File(context.getCacheDir(), "sprites");

		File cacheFile = new File(cacheDir, cacheFileName);

		spriteData.position(GRAPHICS - GRAPHICS_CHUNK_OFFSET);
		ByteBuffer graphics = spriteData.slice().order(ByteOrder.LITTLE_ENDIAN);

		spriteData.position(POINTER_TABLE - GRAPHICS_CHUNK_OFFSET);
		ByteBuffer pointerTable = spriteData.slice().order(ByteOrder.LITTLE_ENDIAN);

		pointerTable.position(spriteIndex * 5);
		int pSpriteData = RomUtil.toHex(pointerTable.getInt()) - GRAPHICS_CHUNK_OFFSET;
		dimensions = DIMENSIONS[pointerTable.get()];

		if(cacheFile.exists())
		{
			Log.i(TAG, "Loading existing sprite: " + cacheFileName);
			// TODO: integrate the nitty-gritty into the Cache class

			ByteBuffer bitmapBuffer = ByteBuffer.allocate(dimensions.width * dimensions.height * 4);

			// can cause a crash on rare occasions ... mainly when adding new features ;)
			// SO, just trapping any potential problems here so I don't get slowed down
			try {
				BitmapFactory.decodeFile(cacheFile.getPath()).copyPixelsToBuffer(bitmapBuffer);
			}
			catch(Exception e) {
				Log.e("AbstractArt", "Couldn't open " + cacheFile.getPath() + " ... " + e.getMessage());
			}

			battleSprite = bitmapBuffer;
		}
		else
		{
			// build sprite image from ROM data

			int decompLen = RomUtil.decompress(pSpriteData, buffer, buffer.length, graphics);

			Arrays.fill(spriteIndexedBuffer, (byte) 0);

			int offset = 0;
			for(int q = 0; q < (dimensions.height / 32); q++)
	        {
	            for(int r = 0; r < (dimensions.width / 32); r++)
	            {
	                for(int a = 0; a < 4; a++)
	                {
	                    for(int j = 0; j < 4; j++)
	                    {
	                        HackModule.read4BPPArea(spriteIndexedBuffer, buffer, offset, (j + r * 4) * 8, (a + q * 4) * 8, dimensions.width, 0);
	                        offset += 32;
	                    }
	                }
	            }
	        }

			// colorize the indexed image giving us an array of RGBA values

			battleSprite = ByteBuffer.wrap(spriteRgbaBuffer, 0, dimensions.width * dimensions.height * 4);
			IntBuffer rgba = battleSprite.asIntBuffer();

			for(int i = 0; i < dimensions.width * dimensions.height; i++)
			{
				rgba.put(palette[spriteIndexedBuffer[i]]);
			}

			// save the image to cache
			Log.i(TAG, "


rain.colorFont;
            coord = "y="+brain.coordinatesSlice.Y;
            coordWidth = brain.context.measureText(coord).width;
            brain.context.fillText(coord,brain.widthCanvas.X+(brain.widthCanvas.Y/2)-coordWidth/2,Math.round(brain.canvas.height-(brain.sizeFontPixels/2)));
        }

        case 'Z':
        // Draw a single axial slice at native resolution
        brain.context.fillStyle=brain.colorBackground;
        brain.context.fillRect(brain.widthCanvas.X+brain.widthCanvas.Y, 0, brain.widthCanvas.Z, brain.canvas.height);

        if (brain.fastDraw) {
            pos.ZW = (brain.numSlice.Z%brain.nbCol);
            pos.ZH = (brain.numSlice.Z-pos.ZW)/brain.nbCol;
            brain.context.drawImage(brain.planes.canvasZ,
                pos.ZW*brain.nbSlice.X, pos.ZH*brain.nbSlice.Y, brain.nbSlice.X, brain.nbSlice.Y, brain.widthCanvas.X+brain.widthCanvas.Y, (brain.heightCanvas.max-brain.heightCanvas.Z)/2, brain.widthCanvas.Z, brain.heightCanvas.Z );
        } else {
            for (xx=0; xx<brain.nbSlice.X; xx++) {
            posW = (xx%brain.nbCol);
            posH = (xx-posW)/brain.nbCol;
            brain.planes.contextZ.drawImage(brain.planes.canvasX,
                posW*brain.nbSlice.Y , posH*brain.nbSlice.Z + brain.numSlice.Z, brain.nbSlice.Y, 1, 0, xx, brain.nbSlice.Y, 1 );

            }
            // Redraw the axial slice in the canvas at screen resolution
            brain.context.drawImage(brain.planes.canvasZ,
            0, 0, brain.nbSlice.X, brain.nbSlice.Y, brain.widthCanvas.X+brain.widthCanvas.Y, (brain.heightCanvas.max-brain.heightCanvas.Z)/2, brain.widthCanvas.Z, brain.heightCanvas.Z );
        }
        // Add Z coordinates on the slice
        if (brain.flagCoordinates) {
            coord = "z="+brain.coordinatesSlice.Z;
            coordWidth = brain.context.measureText(coord).width;
            brain.context.fillStyle = brain.colorFont;
            brain.context.fillText(coord,brain.widthCanvas.X+brain.widthCanvas.Y+(brain.widthCanvas.Z/2)-coordWidth/2,Math.round(brain.canvas.height-(brain.sizeFontPixels/2)));
        }
    }
    };

    // In case of click, update brain slices
    brain.clickBrain = function(e){
    var rect = brain.canvas.getBoundingClientRect();
    var xx = e.clientX - rect.left;
    var yy = e.clientY - rect.top;
    var sy, sz;

    if (xx<brain.widthCanvas.X){
        sy = Math.round(brain.nbSlice.Y*(xx/brain.widthCanvas.X));
        sz = Math.round(brain.nbSlice.Z*(yy-((brain.heightCanvas.max-brain.heightCanvas.X)/2))/brain.heightCanvas.X);
        brain.draw(Math.max(Math.min(sy,brain.nbSlice.Y-1),0),'Y');
        brain.draw(Math.max(Math.min(sz,brain.nbSlice.Z-1),0),'Z');
    } else if (xx<(brain.widthCanvas.X+brain.widthCanvas.Y)) {
        xx = xx-brain.widthCanvas.X;
        sx = Math.round(brain.nbSlice.X*(xx/brain.widthCanvas.Y));
        sz = Math.round(brain.nbSlice.Z*(yy-((brain.heightCanvas.max-brain.heightCanvas.Y)/2))/brain.heightCanvas.Y);
        brain.draw(Math.max(Math.min(sx,brain.nbSlice.X-1),0),'X');
        brain.draw


'Nepal', 'capital': 'Kathmandu' },
  { 'country': 'Netherlands', 'capital': 'Amsterdam' },
  { 'country': 'Netherlands Antilles', 'capital': 'Willemstad' },
  { 'country': 'New Caledonia', 'capital': 'Noum' },
  { 'country': 'New Zealand', 'capital': 'Wellington' },
  { 'country': 'Nicaragua', 'capital': 'Managua' },
  { 'country': 'Niger', 'capital': 'Niamey' },
  { 'country': 'Nigeria', 'capital': 'Abuja' },
  { 'country': 'Niue', 'capital': 'Alofi' },
  { 'country': 'Norfolk Island', 'capital': 'Kingston' },
  { 'country': 'North Korea', 'capital': 'Pyongyang' },
  { 'country': 'Northern Ireland', 'capital': 'Belfast' },
  { 'country': 'Northern Mariana Islands', 'capital': 'Garapan' },
  { 'country': 'Norway', 'capital': 'Oslo' },
  { 'country': 'Oman', 'capital': 'Masqat' },
  { 'country': 'Pakistan', 'capital': 'Islamabad' },
  { 'country': 'Palau', 'capital': 'Koror' },
  { 'country': 'Palestine', 'capital': 'Gaza' },
  { 'country': 'Panama', 'capital': 'Ciudad de Panam' },
  { 'country': 'Papua New Guinea', 'capital': 'Port Moresby' },
  { 'country': 'Paraguay', 'capital': 'Asunci' },
  { 'country': 'Peru', 'capital': 'Lima' },
  { 'country': 'Philippines', 'capital': 'Manila' },
  { 'country': 'Pitcairn', 'capital': 'Adamstown' },
  { 'country': 'Poland', 'capital': 'Warszawa' },
  { 'country': 'Portugal', 'capital': 'Lisboa' },
  { 'country': 'Puerto Rico', 'capital': 'San Juan' },
  { 'country': 'Qatar', 'capital': 'Doha' },
  { 'country': 'Reunion', 'capital': 'Saint-Denis' },
  { 'country': 'Romania', 'capital': 'Bucuresti' },
  { 'country': 'Russian Federation', 'capital': 'Moscow' },
  { 'country': 'Rwanda', 'capital': 'Kigali' },
  { 'country': 'Saint Helena', 'capital': 'Jamestown' },
  { 'country': 'Saint Kitts and Nevis', 'capital': 'Basseterre' },
  { 'country': 'Saint Lucia', 'capital': 'Castries' },
  { 'country': 'Saint Pierre and Miquelon', 'capital': 'Saint-Pierre' },
  { 'country': 'Saint Vincent and the Grenadines', 'capital': 'Kingstown' },
  { 'country': 'Samoa', 'capital': 'Apia' },
  { 'country': 'San Marino', 'capital': 'San Marino' },
  { 'country': 'Sao Tome and Principe', 'capital': 'S' },
  { 'country': 'Saudi Arabia', 'capital': 'Riyadh' },
  { 'country': 'Scotland', 'capital': 'Edinburgh' },
  { 'country': 'Senegal', 'capital': 'Dakar' },
  { 'country': 'Seychelles', 'capital': 'Victoria' },
  { 'country': 'Sierra Leone', 'capital': 'Freetown' },
  { 'country': 'Singapore', 'capital': 'Singapore' },
  { 'country': 'Slovakia', 'capital': 'Bratislava' },
  { 'country': 'Slovenia', 'capital': 'Ljubljana' },
  { 'country': 'Solomon Islands', 'capital': 'Honiara' },
  { 'country':


3.4128 9.14744 12.701 8.51312 12.0004 7.92202C11.2997 8.51312 10.588 9.14744 9.86821 9.86621C9.16653 10.5689 8.51311 11.2856 7.90794 12.0024C8.48999 12.689 9.13637 13.3987 9.86821 14.1316C10.588 14.8513 11.2997 15.4856 12.0004 16.0747C12.701 15.4856 13.4128 14.8513 14.1325 14.1316ZM4.80569 4.01053C4.5986 4.01053 4.32115 4.03969 4.18142 4.18042C3.64661 4.71422 4.24977 7.13088 6.63628 10.394C7.83556 9.00469 9.05696 7.79435 10.3799 6.64735C8.00645 4.9203 5.95269 4.01053 4.80569 4.01053ZM4.18041 19.8183C4.32014 19.9581 4.5976 19.9872 4.80569 19.9872C5.95269 19.9872 8.00746 19.0785 10.3799 17.3514C8.98357 16.1421 7.7873 14.9348 6.6413 13.6078C5.92053 14.593 5.31133 15.56 4.85695 16.4688C3.79539 18.5909 3.9502 19.5881 4.18041 19.8183ZM19.1941 19.9872C19.4021 19.9872 19.6796 19.9581 19.8193 19.8183C20.0495 19.5881 20.2044 18.5919 19.1428 16.4688C18.6884 15.559 18.0792 14.592 17.3584 13.6078C16.2114 14.9358 15.0152 16.1431 13.6199 17.3514C15.9933 19.0785 18.0471 19.9872 19.1941 19.9872ZM14.0109 11.9984C14.0109 13.1088 13.1108 14.0089 12.0004 14.0089C10.89 14.0089 9.98984 13.1088 9.98984 11.9984C9.98984 10.888 10.89 9.98784 12.0004 9.98784C13.1108 9.98784 14.0109 10.888 14.0109 11.9984Z"] {
    d: path(var(--science));
}

[d="M16.781 2.27293L14.081 5.7126H9.919L7.219 2.27293L8.781 1L12 5.10008L15.219 1L16.781 2.27293ZM4 6.73175H20C21.1 6.73175 22 7.649 22 8.77007V18.9617C22 20.0828 21.1 21 20 21H4C2.9 21 2 20.0828 2 18.9617V8.77007C2 7.649 2.9 6.73175 4 6.73175ZM4 18.9617H16V8.77007H4V18.9617ZM18 16.4138C18 16.9764 18.448 17.4329 19 17.4329C19.552 17.4329 20 16.9764 20 16.4138C20 15.8512 19.552 15.3946 19 15.3946C18.448 15.3946 18 15.8512 18 16.4138ZM18 11.318C18 11.8806 18.448 12.3371 19 12.3371C19.552 12.3371 20 11.8806 20 11.318C20 10.7554 19.552 10.2988 19 10.2988C18.448 10.2988 18 10.7554 18 11.318Z"] {
    d: path(var(--entertainment));
}

[d="M12.5 22C11.1193 22


span.cm-keyword    { color: #ffee80; }
.cm-s-erlang-dark span.cm-meta       { color: #50fefe; }
.cm-s-erlang-dark span.cm-number     { color: #ffd0d0; }
.cm-s-erlang-dark span.cm-operator   { color: #d55; }
.cm-s-erlang-dark span.cm-property   { color: #ccc; }
.cm-s-erlang-dark span.cm-qualifier  { color: #ccc; }
.cm-s-erlang-dark span.cm-special    { color: #ffbbbb; }
.cm-s-erlang-dark span.cm-string     { color: #3ad900; }
.cm-s-erlang-dark span.cm-string-2   { color: #ccc; }
.cm-s-erlang-dark span.cm-tag        { color: #9effff; }
.cm-s-erlang-dark span.cm-variable   { color: #50fe50; }
.cm-s-erlang-dark span.cm-variable-2 { color: #e0e; }
.cm-s-erlang-dark span.cm-variable-3 { color: #ccc; }
.cm-s-erlang-dark span.cm-error      { color: #9d1e15; }

.cm-s-erlang-dark .CodeMirror-activeline-background { background: #013461; }
.cm-s-erlang-dark .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; }
/* Based on Sublime Text's Monokai theme */

.cm-s-monokai.CodeMirror { background: #272822; color: #f8f8f2; }
.cm-s-monokai div.CodeMirror-selected { background: #49483E; }
.cm-s-monokai .CodeMirror-line::selection, .cm-s-monokai .CodeMirror-line > span::selection, .cm-s-monokai .CodeMirror-line > span > span::selection { background: rgba(73, 72, 62, .99); }
.cm-s-monokai .CodeMirror-line::-moz-selection, .cm-s-monokai .CodeMirror-line > span::-moz-selection, .cm-s-monokai .CodeMirror-line > span > span::-moz-selection { background: rgba(73, 72, 62, .99); }
.cm-s-monokai .CodeMirror-gutters { background: #272822; border-right: 0px; }
.cm-s-monokai .CodeMirror-guttermarker { color: white; }
.cm-s-monokai .CodeMirror-guttermarker-subtle { color: #d0d0d0; }
.cm-s-monokai .CodeMirror-linenumber { color: #d0d0d0; }
.cm-s-monokai .CodeMirror-cursor { border-left: 1px solid #f8f8f0; }

.cm-s-monokai span.cm-comment { color: #75715e; }
.cm-s-monokai span.cm-atom { color: #ae81ff; }
.cm-s-monokai span.cm-number { color: #ae81ff; }

.cm-s-monokai span.cm-property, .cm-s-monokai span.cm-attribute { color: #a6e22e; }
.cm-s-monokai span.cm-keyword { color: #f92672; }
.cm-s-monokai span.cm-string { color: #e6db74; }

.cm-s-monokai span.cm-variable { color: #f8f8f2; }
.cm-s-monokai span.cm-variable-2 { color: #9effff; }
.cm-s-monokai span.cm-variable-3 { color: #66d9ef; }
.cm-s-monokai span.cm-def { color: #fd971f; }
.cm


.before then
            for k, v in pairs(context.scoring_hand) do
                if v.seal and v.seal ~= 'mxms_black' then
                    v:set_seal('mxms_black')
                    G.E_MANAGER:add_event(Event({
                        trigger = 'before',
                        delay = 0.50,
                        func = function()
                            play_sound('card1')
                            card:juice_up(0.3, 0.3)
                            v:juice_up(0.3, 0.3)
                            return true
                        end
                    }))
                end
            end
        end
    end
}


)
addl $8, %eax
blake2b_blocks_avx_L12:
testl $4, %esi
je blake2b_blocks_avx_L14
blake2b_blocks_avx_L13:
movl (%edx), %ebx
addl $4, %edx
movl %ebx, (%eax)
addl $4, %eax
blake2b_blocks_avx_L14:
testl $2, %esi
je blake2b_blocks_avx_L16
blake2b_blocks_avx_L15:
movzwl (%edx), %ebx
addl $2, %edx
movw %bx, (%eax)
addl $2, %eax
blake2b_blocks_avx_L16:
testl $1, %esi
je blake2b_blocks_avx_L18
blake2b_blocks_avx_L17:
movzbl (%edx), %edx
movb %dl, (%eax)
blake2b_blocks_avx_L18:
cmpl $128, %esi
lea (%esp), %edx
blake2b_blocks_avx_L21:
movl 8(%ebp), %eax
movl $128, %ebx
vmovdqu 32(%ecx), %xmm7
cmovbe %esi, %ebx
vmovdqu 0(%ecx), %xmm6
vmovdqu (%eax), %xmm0
vmovdqu %xmm0, 192(%esp)
vmovdqu 16(%eax), %xmm0
vmovdqu 32(%eax), %xmm1
vmovdqu 48(%eax), %xmm2
vmovdqu 16(%ecx), %xmm5
lea 64+64(%ecx), %ecx
movl 64(%eax), %edi
movl 68(%eax), %eax
vmovdqu %xmm5, 240(%esp)
vmovdqu %xmm6, 128(%esp)
vmovdqu %xmm7, 144(%esp)
vmovdqu %xmm2, 208(%esp)
vmovdqu %xmm1, 224(%esp)
vmovdqu %xmm0, 176(%esp)
vmovdqu %xmm3, 160(%esp)
vmovdqu %xmm4, 1056(%esp)
movl %ecx, 1032(%esp)
movl %ebx, 1036(%esp)
jmp blake2b_blocks_avx_L22
# align to 5 mod 64
.p2align 6
nop
nop
nop
nop
nop
blake2b_blocks_avx_L27:
addl 20(%ebp), %edx
addl $-128, %esi
blake2b_blocks_avx_L22:
movl 8(%ebp), %ebx
movl 1036(%esp), %ecx
addl %ecx, %edi
adcl $0, %eax
movl %edi, 64(%ebx)
movl %eax, 68(%ebx)
movl %edi, %ebx
subl %ecx, %ebx
movl $0, %ecx
movl %eax, %ebx
sbbl %ecx, %ebx
jae blake2b_blocks_avx_L24
blake2b_blocks_avx_L23:
movl 8(%ebp), %ecx
addl $1, 72(%ecx)
adcl $0, 76(%ecx)
blake2b_blocks_avx_L24:
movl 8(%ebp), %ecx
vmovdqu 144(%esp), %xmm3
vmovdqu 16(%edx), %xmm6
vmovdqu 32(%edx), %xmm1
vpxor 64(%ecx), %xmm3, %xmm4
vmovdqu (%edx), %xmm3
vpunpcklqdq %xmm6, %xmm3, %xmm5
vmovhpd 48(%edx), %xmm1, %xmm0
vpaddq 192(%esp), %xmm5, %xmm7
vpaddq 176(%esp), %xmm0, %xmm5
vmov


"""
04. mix_up

Dadas as strings a e b, retorne uma string com a e b separados
por um espaço '<a> <b>', além disso, troque os 2 primeiros caracteres
das duas strings.

Exemplo:
    'mix', 'pod' -> 'pox mid'
    'dog, 'dinner' -> 'dig donner'

Assuma que a e b tem tamanho 2 ou maior.
"""

def mix_up(a, b):
    # +++ SUA SOLUÇÃO +++
    return

# --- Daqui para baixo são apenas códigos auxiliáries de teste. ---

def test(f, in_, expected):
    """
    Executa a função f com o parâmetro in_ e compara o resultado com expected.
    :return: Exibe uma mensagem indicando se a função f está correta ou não.
    """
    out = f(*in_)

    if out == expected:
        sign = '✅'
        info = ''
    else:
        sign = '❌'
        info = f'e o correto é {expected!r}'

    print(f'{sign} {f.__name__}{in_!r} retornou {out!r} {info}')

if __name__ == '__main__':
    # Testes que verificam o resultado do seu código em alguns cenários.
    test(mix_up, ('mix', 'pod'), 'pox mid')
    test(mix_up, ('dog', 'dinner'), 'dig donner')
    test(mix_up, ('gnash', 'sport'), 'spash gnort')
    test(mix_up, ('pezzy', 'firm'), 'fizzy perm')


t() : void
  {

    let pair = this.disques % 2 == 0 ;
    // sortir le petit disque de son tableau et le déplacer :
    // déplacement du petit un coup sur 2 dans le sens TourA -> TourB -> TourC -> TourA ...
    // déplacement du petit un coup sur 2 dans le sens TourA -> TourC -> TourB -> TourA ...

    let petit : any ;

    if (this.tour_petit == 0) // petit ds tourA ?
    {
      petit = this.tourA.pop() ;
      if (pair) {this.tourB.push(petit) ;this.tour_petit=1}
      else { this.tourC.push(petit);this.tour_petit=2 }
    }
    else if (this.tour_petit == 1) // petit ds tourB ?
    {
      petit = this.tourB.pop() ;
      if (pair) {this.tourC.push(petit) ;this.tour_petit=2}
      else {this.tourA.push(petit);this.tour_petit=0}
    }
    else
    {
      petit = this.tourC.pop() ; // petit dans tourC
      if (pair) {this.tourA.push(petit) ;this.tour_petit=0}
      else { this.tourB.push(petit);this.tour_petit=1}
    }

  }

  //
  // Déplacer un disque qui n'est pas le petit disque
  //
  deplacer_autre() : void
    {
      //console.log(`deplacer_autre ...petit dans tour indice ${this.tour_petit}`)
      // on cherche le disque le plus petit parmi les autres disques
      let disque_a_deplacer : any ;

      // on récupère les 3 disques du haut (ou disque_vide si tour vide)
      let disque_vide : Cdisque = new Cdisque(this.max_disque+1,"black","0px",false) ; // pour ne pas mettre null ds a,b,c
      let a : Cdisque = this.tourA.length != 0 ? this.tourA[this.tourA.length-1] : disque_vide;
      let b : Cdisque = this.tourB.length != 0 ? this.tourB[this.tourB.length-1] : disque_vide ;
      let c : Cdisque = this.tourC.length != 0 ? this.tourC[this.tourC.length-1] : disque_vide ;

      if (this.tour_petit == 0) // petit ds tourA ?
      {
          if ( b.valeur > c.valeur)
          {
            this.tourC.pop();
            this.tourB.push(c) ;
            //console.log("deplacer c vers b") ;
          }
          else
          {
            this.tourB.pop() ;
            this.tourC.push(b);
            //console.log("deplacer b vers c") ;
          }
      }
      else if (this.tour_petit == 1) // petit ds tourB ?
      {
        if (a.valeur > c.valeur)
        {
          this.tourC.pop();
          this.tourA.push(c) ;
          //console.log("deplacer c vers a") ;
        }
        else
        {
          this.tourA.pop() ;
          this.tourC.push(a);
          //console.log("deplacer a vers c") ;
         }
      }
      else  // petit dans tourC
      {
        if (a.valeur > b.valeur )
        {
          this.tourB.pop();
          this.tourA.push(b) ;
          //console.log("deplacer b vers a") ;


/*
 * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The OpenAirInterface Software Alliance licenses this file to You under
 * the OAI Public License, Version 1.1  (the "License"); you may not use this file
 * except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.openairinterface.org/?page_id=698
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License 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.
 *-------------------------------------------------------------------------------
 * For more information about the OpenAirInterface (OAI) Software Alliance:
 *      contact@openairinterface.org
 */

/*****************************************************************************
      Eurecom OpenAirInterface 3
      Copyright(c) 2012 Eurecom

Source    as_data.h

Version   0.1

Date    2013/04/11

Product   Access-Stratum sublayer simulator

Subsystem Access-Stratum data

Author    Frederic Maurel

Description Defines constants and functions used by the AS simulator
    process.

*****************************************************************************/

#ifndef __AS_DATA_H__
#define __AS_DATA_H__

/****************************************************************************/
/*********************  G L O B A L    C O N S T A N T S  *******************/
/****************************************************************************/

/****************************************************************************/
/************************  G L O B A L    T Y P E S  ************************/
/****************************************************************************/

/****************************************************************************/
/********************  G L O B A L    V A R I A B L E S  ********************/
/****************************************************************************/

/****************************************************************************/
/******************  E X P O R T E D    F U N C T I O N S  ******************/
/****************************************************************************/

const char* getTime(void);

const char* rrcCause(char cause);
const char* rrcType(char type);
const char* rrcErrCode(char code);
const char* rrcReleaseCause(char cause);

#endif // __AS_DATA_H__