path
stringlengths 4
280
| owner
stringlengths 2
39
| repo_id
int64 21.1k
879M
| is_fork
bool 2
classes | languages_distribution
stringlengths 13
1.95k
⌀ | content
stringlengths 7
482k
| issues
int64 0
13.9k
| main_language
stringclasses 121
values | forks
stringlengths 1
5
| stars
int64 0
111k
| commit_sha
stringlengths 40
40
| size
int64 7
482k
| name
stringlengths 1
100
| license
stringclasses 93
values |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
meistercharts-canvas/src/commonMain/kotlin/com/meistercharts/design/neckarit/NeckarItFlowPaintable.kt | Neckar-IT | 599,079,962 | false | {"Kotlin": 5819931, "HTML": 87784, "JavaScript": 1378, "CSS": 1114} | /**
* Copyright 2023 Neckar IT GmbH, Mössingen, Germany
*
* Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package com.meistercharts.design.neckarit
import com.meistercharts.algorithms.layers.LayerPaintingContext
import com.meistercharts.annotations.DomainRelative
import com.meistercharts.annotations.Window
import com.meistercharts.canvas.CanvasRenderingContext
import com.meistercharts.canvas.geometry.BezierCurveRect
import com.meistercharts.canvas.paintable.Paintable
import com.meistercharts.canvas.path
import com.meistercharts.geometry.Coordinates
import com.meistercharts.geometry.Rectangle
import com.meistercharts.model.Size
import it.neckar.open.unit.other.px
/**
* A paintable that paints the NECKAR.IT flow
*/
class NeckarItFlowPaintable(
/**
* The size of the flow
*/
val size: @px Size
) : Paintable {
val boundingBox: Rectangle = Rectangle(Coordinates.none, size)
override fun boundingBox(paintingContext: LayerPaintingContext): Rectangle {
return boundingBox
}
override fun paint(paintingContext: LayerPaintingContext, x: Double, y: Double) {
val gc = paintingContext.gc
gc.translate(x, y)
val chartCalculator = paintingContext.chartCalculator
gc.stroke(NeckarItFlow.colorShape0)
gc.fill(NeckarItFlow.colorShape0)
@DomainRelative val segment0 = NeckarItFlow.shape0(paintingContext.frameTimestamp)
gc.paintBezierCurveRect(segment0)
gc.stroke(NeckarItFlow.colorShape1)
gc.fill(NeckarItFlow.colorShape1)
@DomainRelative val segment1 = NeckarItFlow.shape1(paintingContext.frameTimestamp)
gc.paintBezierCurveRect(segment1)
gc.stroke(NeckarItFlow.colorShape2)
gc.fill(NeckarItFlow.colorShape2)
@DomainRelative val segment2 = NeckarItFlow.shape2(paintingContext.frameTimestamp)
gc.paintBezierCurveRect(segment2)
gc.stroke(NeckarItFlow.colorShape3)
gc.fill(NeckarItFlow.colorShape3)
@DomainRelative val segment3 = NeckarItFlow.shape3(paintingContext.frameTimestamp)
gc.paintBezierCurveRect(segment3)
//if (showControlPoints) {
// debugSegment(gc, chartCalculator, segment0, Color.pink, "0")
// debugSegment(gc, chartCalculator, segment1, Color.blue, "1")
// debugSegment(gc, chartCalculator, segment2, Color.green, "2")
// debugSegment(gc, chartCalculator, segment3, Color.red, "3")
//}
}
/**
* Paints the bezier curve rect
*/
private fun CanvasRenderingContext.paintBezierCurveRect(bezierCurveRect: @DomainRelative BezierCurveRect) {
@Window val scaled = bezierCurveRect.scale(size.width, size.height)
beginPath()
path(scaled)
fill()
stroke()
}
companion object {
/**
* Ratio between width and height
*/
const val ratio: Double = 0.21
/**
* Returns the optimal size for a given width
*/
fun calculateSizeForWidth(width: Double): Size {
return Size(width, optimalHeight(width))
}
/**
* Returns the optimal height for a given width
*/
fun optimalHeight(width: Double): Double = width * ratio
/**
* Returns the paintable for a given width
*/
fun forWidth(width: Double): NeckarItFlowPaintable {
return NeckarItFlowPaintable(calculateSizeForWidth(width))
}
}
}
| 3 | Kotlin | 3 | 5 | ed849503e845b9d603598e8d379f6525a7a92ee2 | 3,754 | meistercharts | Apache License 2.0 |
app/src/main/java/id/arvigo/arvigobasecore/ui/feature/splash/uistate/InitialAuthState.kt | C23-PS191-Arvigo | 636,134,744 | false | {"Kotlin": 462174} | package id.arvigo.arvigobasecore.ui.feature.splash.uistate
sealed class InitialAuthState {
object Authenticated : InitialAuthState()
object NotAuthenticated : InitialAuthState()
object Loading : InitialAuthState()
}
| 1 | Kotlin | 0 | 0 | 71a2a5b7071d877970e74dfe2eb5f9368873f0bd | 229 | arvigo-mobile-app | MIT License |
android/library/presentation/src/main/kotlin/com/bael/dads/library/presentation/sheet/BaseSheet.kt | ErickSumargo | 325,042,307 | false | null | @file:Suppress("UNCHECKED_CAST")
package com.bael.dads.library.presentation.sheet
import android.app.Dialog
import android.content.DialogInterface
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.ViewGroup.LayoutParams.MATCH_PARENT
import android.view.ViewGroup.LayoutParams.WRAP_CONTENT
import android.widget.FrameLayout
import androidx.fragment.app.FragmentManager
import androidx.lifecycle.Lifecycle.State.RESUMED
import androidx.lifecycle.flowWithLifecycle
import androidx.lifecycle.lifecycleScope
import androidx.viewbinding.ViewBinding
import com.bael.dads.library.presentation.ext.screenHeight
import com.bael.dads.library.presentation.renderer.RendererInitializer
import com.bael.dads.library.presentation.viewmodel.BaseViewModel
import com.bael.dads.library.threading.Thread
import com.google.android.material.bottomsheet.BottomSheetBehavior.from
import com.google.android.material.bottomsheet.BottomSheetDialog
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach
import javax.inject.Inject
import com.bael.dads.library.presentation.R as RPresentation
import com.google.android.material.R as RMaterial
/**
* Created by ErickSumargo on 01/01/21.
*/
abstract class BaseSheet<VB : ViewBinding, R, E, VM : BaseViewModel<*, E>> :
BottomSheetDialogFragment() {
@Inject
internal lateinit var rendererInitializer: RendererInitializer<R, VM>
@Inject
protected lateinit var thread: Thread
abstract val fullHeight: Boolean
protected abstract val viewModel: VM
private val key: String
get() = javaClass.name
private var _viewBinding: VB? = null
protected val viewBinding: VB
get() = _viewBinding!!
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
_viewBinding = createView(inflater, container)
return _viewBinding?.root
}
abstract fun createView(inflater: LayoutInflater, container: ViewGroup?): VB
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
val dialog = super.onCreateDialog(savedInstanceState)
dialog.setOnShowListener(::adjustSheetHeight)
return dialog
}
private fun adjustSheetHeight(dialog: DialogInterface) {
val sheetLayout = (dialog as BottomSheetDialog)
.findViewById<FrameLayout>(RMaterial.id.design_bottom_sheet)
val sheetBehavior = from(sheetLayout!!)
if (!fullHeight) {
sheetLayout.also { layout ->
layout.layoutParams.height = WRAP_CONTENT
}
} else {
sheetLayout.also { layout ->
layout.layoutParams.height = MATCH_PARENT
}
sheetBehavior.also { behavior ->
behavior.peekHeight = screenHeight
}
}
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
initRenderer()
observeEvent()
viewLifecycleOwner.lifecycleScope.launchWhenResumed {
onViewLoaded(savedInstanceState)
}
}
private fun initRenderer() {
rendererInitializer.init(
renderer = this as R,
viewModel = viewModel
)
}
private fun observeEvent() {
viewModel.eventFlow
.flowWithLifecycle(
lifecycle = viewLifecycleOwner.lifecycle,
minActiveState = RESUMED
)
.onEach(::action)
.launchIn(scope = viewLifecycleOwner.lifecycleScope)
}
abstract suspend fun onViewLoaded(savedInstanceState: Bundle?)
abstract suspend fun action(event: E)
fun show(fragmentManager: FragmentManager?) {
fragmentManager ?: return
show(fragmentManager, key)
}
override fun getTheme(): Int {
return RPresentation.style.BottomSheetDialogTheme
}
override fun onDestroyView() {
_viewBinding = null
super.onDestroyView()
}
}
| 1 | null | 21 | 242 | 8eb44894518e23f535a69cbe0207ad034f6a282f | 4,225 | Dads | MIT License |
paging/runtime/src/androidTest/java/androidx/paging/AsyncPagingDataDifferTest.kt | tikurahul | 286,529,729 | false | null | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package androidx.paging
import androidx.lifecycle.testing.TestLifecycleOwner
import androidx.paging.ListUpdateEvent.Changed
import androidx.paging.ListUpdateEvent.Inserted
import androidx.paging.ListUpdateEvent.Moved
import androidx.paging.ListUpdateEvent.Removed
import androidx.paging.LoadState.Loading
import androidx.paging.LoadState.NotLoading
import androidx.paging.LoadType.REFRESH
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListUpdateCallback
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.filters.MediumTest
import androidx.testutils.MainDispatcherRule
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.Runnable
import kotlinx.coroutines.cancelAndJoin
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.flow.collectLatest
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.launch
import kotlinx.coroutines.test.TestCoroutineScope
import kotlinx.coroutines.test.runBlockingTest
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
import kotlin.coroutines.ContinuationInterceptor
import kotlin.coroutines.CoroutineContext
import kotlin.test.assertEquals
import kotlin.test.assertTrue
private class ListUpdateCapture : ListUpdateCallback {
val events = mutableListOf<ListUpdateEvent>()
override fun onChanged(position: Int, count: Int, payload: Any?) {
events.add(Changed(position, count, payload))
}
override fun onMoved(fromPosition: Int, toPosition: Int) {
events.add(Moved(fromPosition, toPosition))
}
override fun onInserted(position: Int, count: Int) {
events.add(Inserted(position, count))
}
override fun onRemoved(position: Int, count: Int) {
events.add(Removed(position, count))
}
}
private sealed class ListUpdateEvent {
data class Changed(val position: Int, val count: Int, val payload: Any?) : ListUpdateEvent()
data class Moved(val fromPosition: Int, val toPosition: Int) : ListUpdateEvent()
data class Inserted(val position: Int, val count: Int) : ListUpdateEvent()
data class Removed(val position: Int, val count: Int) : ListUpdateEvent()
}
@OptIn(ExperimentalCoroutinesApi::class)
@MediumTest
@RunWith(AndroidJUnit4::class)
class AsyncPagingDataDifferTest {
private val testScope = TestCoroutineScope()
@get:Rule
val dispatcherRule = MainDispatcherRule(
testScope.coroutineContext[ContinuationInterceptor] as CoroutineDispatcher
)
private val listUpdateCapture = ListUpdateCapture()
private val differ = AsyncPagingDataDiffer(
diffCallback = object : DiffUtil.ItemCallback<Int>() {
override fun areContentsTheSame(oldItem: Int, newItem: Int): Boolean {
return oldItem == newItem
}
override fun areItemsTheSame(oldItem: Int, newItem: Int): Boolean {
return oldItem == newItem
}
},
updateCallback = listUpdateCapture,
workerDispatcher = Dispatchers.Main
)
@Test
fun performDiff_fastPathLoadStates() = testScope.runBlockingTest {
val loadEvents = mutableListOf<CombinedLoadStates>()
differ.addLoadStateListener { loadEvents.add(it) }
val pager = Pager(
config = PagingConfig(
pageSize = 2,
prefetchDistance = 1,
enablePlaceholders = true,
initialLoadSize = 2
),
initialKey = 50
) {
TestPagingSource()
}
val job = launch {
pager.flow.collect {
differ.submitData(it)
}
}
advanceUntilIdle()
// Assert that all load state updates are sent, even when differ enters fast path for
// empty previous list.
assertEvents(
listOf(
REFRESH to Loading,
REFRESH to NotLoading(endOfPaginationReached = false)
).toCombinedLoadStatesLocal(),
loadEvents
)
loadEvents.clear()
job.cancel()
differ.submitData(TestLifecycleOwner().lifecycle, PagingData.empty())
advanceUntilIdle()
// Assert that all load state updates are sent, even when differ enters fast path for
// empty next list.
assertEvents(
expected = listOf(
localLoadStatesOf(
refreshLocal = NotLoading(endOfPaginationReached = false),
prependLocal = NotLoading(endOfPaginationReached = true),
appendLocal = NotLoading(endOfPaginationReached = true)
)
),
actual = loadEvents
)
}
@Test
fun performDiff_fastPathLoadStatesFlow() = testScope.runBlockingTest {
val loadEvents = mutableListOf<CombinedLoadStates>()
val loadEventJob = launch {
differ.loadStateFlow.collect { loadEvents.add(it) }
}
val pager = Pager(
config = PagingConfig(
pageSize = 2,
prefetchDistance = 1,
enablePlaceholders = true,
initialLoadSize = 2
),
initialKey = 50
) {
TestPagingSource()
}
val job = launch {
pager.flow.collect {
differ.submitData(it)
}
}
advanceUntilIdle()
// Assert that all load state updates are sent, even when differ enters fast path for
// empty previous list.
assertEvents(
listOf(
REFRESH to Loading,
REFRESH to NotLoading(endOfPaginationReached = false)
).toCombinedLoadStatesLocal(),
loadEvents
)
loadEvents.clear()
job.cancel()
differ.submitData(TestLifecycleOwner().lifecycle, PagingData.empty())
advanceUntilIdle()
// Assert that all load state updates are sent, even when differ enters fast path for
// empty next list.
assertEvents(
expected = listOf(
localLoadStatesOf(
refreshLocal = NotLoading(endOfPaginationReached = false),
prependLocal = NotLoading(endOfPaginationReached = true),
appendLocal = NotLoading(endOfPaginationReached = true)
)
),
actual = loadEvents
)
loadEventJob.cancel()
}
@Test
fun lastAccessedIndex() = testScope.runBlockingTest {
pauseDispatcher {
var currentPagedSource: TestPagingSource? = null
val pager = Pager(
config = PagingConfig(
pageSize = 1,
prefetchDistance = 1,
enablePlaceholders = true,
initialLoadSize = 2
),
initialKey = 50
) {
currentPagedSource = TestPagingSource()
currentPagedSource!!
}
val job = launch { pager.flow.collectLatest { differ.submitData(it) } }
// Load REFRESH [50, 51]
advanceUntilIdle()
// Load END [52] to fulfill prefetch distance
differ.getItem(51)
advanceUntilIdle()
// Load REFRESH [51, 52]
// Load START [50] to fulfill prefetch distance of transformed index
currentPagedSource!!.invalidate()
advanceUntilIdle()
val expected = listOf(
Inserted(0, 100), // [(50 placeholders), 50, 51, (48 placeholders)]
Changed(52, 1, null), // [(50 placeholders), 50, 51, 52, (47 placeholders)]
Inserted(53, 0), // ignored
Inserted(0, 1), // [(51 placeholders), 50, 51, 52, (47 placeholders)]
Removed(51, 1), // [(51 placeholders), 51, 52, (47 placeholders)]
Changed(50, 1, null), // [(50 placeholders), 50, 51, 52, (47 placeholders)]
Inserted(0, 0) // ignored
)
assertEvents(expected, listUpdateCapture.events)
job.cancel()
}
}
@Test
fun presentData_cancelsLastSubmit() = testScope.runBlockingTest {
pauseDispatcher {
val pager = Pager(
config = PagingConfig(2),
initialKey = 50
) { TestPagingSource() }
val pager2 = Pager(
config = PagingConfig(2),
initialKey = 50
) { TestPagingSource() }
val lifecycle = TestLifecycleOwner()
var jobSubmitted = false
val job = launch {
pager.flow.collectLatest {
differ.submitData(lifecycle.lifecycle, it)
jobSubmitted = true
}
}
advanceUntilIdle()
val job2 = launch {
pager2.flow.collectLatest {
differ.submitData(it)
}
}
advanceUntilIdle()
assertTrue(jobSubmitted)
job.cancel()
job2.cancel()
}
}
@Test
fun submitData_cancelsLast() = testScope.runBlockingTest {
pauseDispatcher {
val pager = Pager(
config = PagingConfig(2),
initialKey = 50
) { TestPagingSource() }
val pager2 = Pager(
config = PagingConfig(2),
initialKey = 50
) { TestPagingSource() }
val lifecycle = TestLifecycleOwner()
var jobSubmitted = false
val job = launch {
pager.flow.collectLatest {
differ.submitData(lifecycle.lifecycle, it)
jobSubmitted = true
}
}
advanceUntilIdle()
var job2Submitted = false
val job2 = launch {
pager2.flow.collectLatest {
differ.submitData(lifecycle.lifecycle, it)
job2Submitted = true
}
}
advanceUntilIdle()
assertTrue(jobSubmitted)
assertTrue(job2Submitted)
job.cancel()
job2.cancel()
}
}
@Test
fun submitData_guaranteesOrder() = testScope.runBlockingTest {
val pager = Pager(config = PagingConfig(2, enablePlaceholders = false), initialKey = 50) {
TestPagingSource()
}
val reversedDispatcher = object : CoroutineDispatcher() {
var lastBlock: Runnable? = null
override fun dispatch(context: CoroutineContext, block: Runnable) {
// Save the first block to be dispatched, then run second one first after receiving
// calls to dispatch both.
val lastBlock = lastBlock
if (lastBlock == null) {
this.lastBlock = block
} else {
block.run()
lastBlock.run()
}
}
}
val lifecycle = TestLifecycleOwner()
differ.submitData(lifecycle.lifecycle, PagingData.empty())
differ.submitData(lifecycle.lifecycle, pager.flow.first()) // Loads 6 items
// Ensure the second call wins when dispatched in order of execution.
advanceUntilIdle()
assertEquals(6, differ.itemCount)
val reversedLifecycle = TestLifecycleOwner(coroutineDispatcher = reversedDispatcher)
differ.submitData(reversedLifecycle.lifecycle, PagingData.empty())
differ.submitData(reversedLifecycle.lifecycle, pager.flow.first()) // Loads 6 items
// Ensure the second call wins when dispatched in reverse order of execution.
advanceUntilIdle()
assertEquals(6, differ.itemCount)
}
@Test
fun submitData_cancelsLastSuspendSubmit() = testScope.runBlockingTest {
pauseDispatcher {
val pager = Pager(
config = PagingConfig(2),
initialKey = 50
) { TestPagingSource() }
val pager2 = Pager(
config = PagingConfig(2),
initialKey = 50
) { TestPagingSource() }
val lifecycle = TestLifecycleOwner()
var jobSubmitted = false
val job = launch {
pager.flow.collectLatest {
jobSubmitted = true
differ.submitData(it)
}
}
advanceUntilIdle()
var job2Submitted = false
val job2 = launch {
pager2.flow.collectLatest {
job2Submitted = true
differ.submitData(lifecycle.lifecycle, it)
}
}
advanceUntilIdle()
assertTrue(jobSubmitted)
assertTrue(job2Submitted)
job.cancel()
job2.cancel()
}
}
@Test
fun submitData_doesNotCancelCollectionsCoroutine() = testScope.runBlockingTest {
lateinit var source1: TestPagingSource
lateinit var source2: TestPagingSource
val pager = Pager(
config = PagingConfig(
pageSize = 5, enablePlaceholders = false, prefetchDistance = 1,
initialLoadSize = 17
),
initialKey = 50
) {
TestPagingSource().also {
source1 = it
}
}
val pager2 = Pager(
config = PagingConfig(
pageSize = 7, enablePlaceholders = false, prefetchDistance = 1,
initialLoadSize = 19
),
initialKey = 50
) {
TestPagingSource().also {
source2 = it
}
}
val job1 = launch {
pager.flow.collectLatest(differ::submitData)
}
advanceUntilIdle()
assertEquals(17, differ.itemCount)
val job2 = launch {
pager2.flow.collectLatest(differ::submitData)
}
advanceUntilIdle()
assertEquals(26, differ.itemCount)
// now if pager1 gets an invalidation, it overrides pager2
source1.invalidate()
advanceUntilIdle()
assertEquals(22, differ.itemCount)
// now if we refresh via differ, it should go into source 1
differ.refresh()
advanceUntilIdle()
assertEquals(22, differ.itemCount)
// now manual set data that'll clear both
differ.submitData(PagingData.empty())
advanceUntilIdle()
assertEquals(0, differ.itemCount)
// if source2 has new value, we reconnect to that
source2.invalidate()
advanceUntilIdle()
assertEquals(19, differ.itemCount)
job1.cancelAndJoin()
job2.cancelAndJoin()
}
@Test
fun loadStateFlowSynchronouslyUpdates() = testScope.runBlockingTest {
var combinedLoadStates: CombinedLoadStates? = null
var itemCount = -1
val loadStateJob = launch {
differ.loadStateFlow.collect {
combinedLoadStates = it
itemCount = differ.itemCount
}
}
val pager = Pager(
config = PagingConfig(
pageSize = 10,
enablePlaceholders = false,
initialLoadSize = 10,
prefetchDistance = 1
),
initialKey = 50
) { TestPagingSource() }
val job = launch {
pager.flow.collectLatest { differ.submitData(it) }
}
// Initial refresh
advanceUntilIdle()
assertEquals(
CombinedLoadStates(
source = LoadStates(
refresh = NotLoading(endOfPaginationReached = false),
prepend = NotLoading(endOfPaginationReached = false),
append = NotLoading(endOfPaginationReached = false)
)
),
combinedLoadStates
)
assertEquals(10, itemCount)
assertEquals(10, differ.itemCount)
// Append
differ.getItem(9)
advanceUntilIdle()
assertEquals(
CombinedLoadStates(
source = LoadStates(
refresh = NotLoading(endOfPaginationReached = false),
prepend = NotLoading(endOfPaginationReached = false),
append = NotLoading(endOfPaginationReached = false)
)
),
combinedLoadStates
)
assertEquals(20, itemCount)
assertEquals(20, differ.itemCount)
// Prepend
differ.getItem(0)
advanceUntilIdle()
assertEquals(
CombinedLoadStates(
source = LoadStates(
refresh = NotLoading(endOfPaginationReached = false),
prepend = NotLoading(endOfPaginationReached = false),
append = NotLoading(endOfPaginationReached = false)
)
),
combinedLoadStates
)
assertEquals(30, itemCount)
assertEquals(30, differ.itemCount)
job.cancel()
loadStateJob.cancel()
}
@Test
fun loadStateListenerSynchronouslyUpdates() = testScope.runBlockingTest {
pauseDispatcher {
var combinedLoadStates: CombinedLoadStates? = null
var itemCount = -1
differ.addLoadStateListener {
combinedLoadStates = it
itemCount = differ.itemCount
}
val pager = Pager(
config = PagingConfig(
pageSize = 10,
enablePlaceholders = false,
initialLoadSize = 10,
prefetchDistance = 1
),
initialKey = 50
) { TestPagingSource() }
val job = launch {
pager.flow.collectLatest { differ.submitData(it) }
}
// Initial refresh
advanceUntilIdle()
assertEquals(
CombinedLoadStates(
source = LoadStates(
refresh = NotLoading(endOfPaginationReached = false),
prepend = NotLoading(endOfPaginationReached = false),
append = NotLoading(endOfPaginationReached = false)
)
),
combinedLoadStates
)
assertEquals(10, itemCount)
assertEquals(10, differ.itemCount)
// Append
differ.getItem(9)
advanceUntilIdle()
assertEquals(
CombinedLoadStates(
source = LoadStates(
refresh = NotLoading(endOfPaginationReached = false),
prepend = NotLoading(endOfPaginationReached = false),
append = NotLoading(endOfPaginationReached = false)
)
),
combinedLoadStates
)
assertEquals(20, itemCount)
assertEquals(20, differ.itemCount)
// Prepend
differ.getItem(0)
advanceUntilIdle()
assertEquals(
CombinedLoadStates(
source = LoadStates(
refresh = NotLoading(endOfPaginationReached = false),
prepend = NotLoading(endOfPaginationReached = false),
append = NotLoading(endOfPaginationReached = false)
)
),
combinedLoadStates
)
assertEquals(30, itemCount)
assertEquals(30, differ.itemCount)
job.cancel()
}
}
} | 0 | null | 0 | 1 | e4ce477393fc1026f45fe67b73d8400f19e83975 | 20,692 | androidx | Apache License 2.0 |
core/acp-message/src/main/kotlin/io/github/zhangbinhub/acp/core/message/email/EmailSender.kt | zhangbinhub | 279,298,314 | false | null | package io.github.zhangbinhub.acp.core.message.email
import io.github.zhangbinhub.acp.core.CommonTools
import io.github.zhangbinhub.acp.core.log.LogFactory
import io.github.zhangbinhub.acp.core.message.exceptions.EmailException
import java.util.*
import javax.activation.DataHandler
import javax.activation.FileDataSource
import javax.mail.Authenticator
import javax.mail.Message.RecipientType
import javax.mail.PasswordAuthentication
import javax.mail.Session
import javax.mail.Transport
import javax.mail.internet.*
/**
* @author zhang by 11/07/2019
* @since JDK 11
*/
class EmailSender(private val emailEntity: EmailEntity) {
private val log = LogFactory.getInstance(this.javaClass)
/**
* 邮件发送
*
* @param charset 内容字符集,默认系统字符集
* @return 成功或失败
*/
@JvmOverloads
fun doSend(charset: String = CommonTools.getDefaultCharset()): Boolean {
try {
val props = Properties()
if (emailEntity.ssl) {
val sslFactory = "javax.net.ssl.SSLSocketFactory"
props.setProperty("mail.smtp.socketFactory.class", sslFactory)
props.setProperty("mail.smtp.socketFactory.fallback", "false")
props.setProperty("mail.smtp.socketFactory.port", emailEntity.mailPort.toString())
props.setProperty("mail.smtp.starttls.enable", "true")
props.setProperty("mail.smtp.ssl.enable", "true")
}
props.setProperty("mail.smtp.host", emailEntity.mailHost)
props.setProperty("mail.smtp.port", emailEntity.mailPort.toString())
props.setProperty("mail.transport.protocol", emailEntity.mailTransportProtocol)
props.setProperty("mail.smtp.auth", emailEntity.mailSmtpAuth.toString())
val session = Session.getDefaultInstance(props, object : Authenticator() {
override fun getPasswordAuthentication(): PasswordAuthentication {
return PasswordAuthentication(emailEntity.userName, emailEntity.password)
}
})
session.debug = emailEntity.deBug
/* 创建邮件 */
val message = createMail(session, charset)
/* 发送邮件 */
Transport.send(message, message.allRecipients)
return true
} catch (e: Exception) {
log.error(e.message, e)
return false
}
}
/**
* 创建邮件
*
* @param session 回话
* @return 邮件实例
*/
@Throws(Exception::class)
private fun createMail(session: Session, charset: String): MimeMessage {
val message = MimeMessage(session)
if (CommonTools.isNullStr(emailEntity.senderAddress)) {
throw EmailException("senderAddress is null or empty")
}
message.setFrom(InternetAddress(emailEntity.senderAddress!!))
if (emailEntity.recipientAddresses == null || emailEntity.recipientAddresses!!.isEmpty()) {
throw EmailException("recipientAddresses is null or empty")
}
val addresses = ArrayList<InternetAddress>()
for (recipientAddress in emailEntity.recipientAddresses!!) {
if (!CommonTools.isNullStr(recipientAddress)) {
addresses.add(InternetAddress(recipientAddress))
}
}
message.addRecipients(RecipientType.TO, addresses.toTypedArray())
if (emailEntity.recipientCCAddresses != null && emailEntity.recipientCCAddresses!!.isNotEmpty()) {
val addressesCC = ArrayList<InternetAddress>()
for (recipientAddress in emailEntity.recipientCCAddresses!!) {
if (!CommonTools.isNullStr(recipientAddress)) {
addressesCC.add(InternetAddress(recipientAddress))
}
}
message.addRecipients(RecipientType.CC, addressesCC.toTypedArray())
}
if (emailEntity.recipientBCCAddresses != null && emailEntity.recipientBCCAddresses!!.isNotEmpty()) {
val addressesBCC = ArrayList<InternetAddress>()
for (recipientAddress in emailEntity.recipientBCCAddresses!!) {
if (!CommonTools.isNullStr(recipientAddress)) {
addressesBCC.add(InternetAddress(recipientAddress))
}
}
message.addRecipients(RecipientType.BCC, addressesBCC.toTypedArray())
}
message.subject = emailEntity.mailSubject
message.sentDate = CommonTools.getNowDateTime().toDate()
/* 正文主体 */
val content = MimeBodyPart()
/* 正文文本 */
val text = MimeBodyPart()
text.setContent(emailEntity.content, "text/html;charset=$charset")
val mmImage = MimeMultipart()
mmImage.addBodyPart(text)
/* 图片 */
if (emailEntity.images != null && emailEntity.images!!.isNotEmpty()) {
/* 图片内容 */
for ((cid, value) in emailEntity.images!!) {
val imagePath = CommonTools.getAbsPath(value)
val image = MimeBodyPart()
val dh = DataHandler(FileDataSource(imagePath))
image.dataHandler = dh
image.contentID = cid
mmImage.addBodyPart(image)
}
mmImage.setSubType("related")
}
content.setContent(mmImage)
/* 附件 */
if (emailEntity.attaches != null && emailEntity.attaches!!.isNotEmpty()) {
val mmAttache = MimeMultipart()
/* 附件内容 */
for (attachePath in emailEntity.attaches!!) {
val attach = MimeBodyPart()
val dh = DataHandler(FileDataSource(attachePath))
attach.dataHandler = dh
attach.fileName = MimeUtility.encodeText(dh.name, charset, null)
mmAttache.addBodyPart(attach)
}
mmAttache.setSubType("mixed")
mmAttache.addBodyPart(content)
message.setContent(mmAttache)
message.saveChanges()
} else {
message.setContent(mmImage)
message.saveChanges()
}
return message
}
} | 0 | null | 4 | 8 | 3d63305f56fed8302fc63fa45d6ebd30cbbd8c3e | 6,132 | acp | Apache License 2.0 |
app/src/main/java/com/example/weather/logic/network/WeatherService.kt | llgneu | 354,429,039 | false | null | package com.example.weather.logic.network
import com.example.weather.WeatherApplication
import com.example.weather.logic.model.DailyResponse
import com.example.weather.logic.model.RealtimeResponse
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Path
interface WeatherService {
@GET("v2.5/${WeatherApplication.TOKEN}/{lng},{lat}/realtime.json")
fun getRealtimeWeather(@Path("lng")lng:String, @Path("lat")lat:String):Call<RealtimeResponse>
@GET("v2.5/${WeatherApplication.TOKEN}/{lng},{lat}/daily.json")
fun getDailyWeather(@Path("lng")lng:String, @Path("lat")lat: String):Call<DailyResponse>
} | 0 | Kotlin | 0 | 1 | b35406b44d820d801e7814a56cc2b386db776d4b | 634 | Weather | Apache License 2.0 |
app/src/main/java/org/p2p/wallet/jupiter/ui/settings/presenter/SwapContentSettingsMapper.kt | p2p-org | 306,035,988 | false | {"Kotlin": 4517101, "HTML": 3064848, "Java": 296567, "Groovy": 1601, "Shell": 1252} | package org.p2p.wallet.jupiter.ui.settings.presenter
import timber.log.Timber
import java.math.BigDecimal
import org.p2p.core.common.DrawableContainer
import org.p2p.core.common.TextContainer
import org.p2p.core.utils.asUsdSwap
import org.p2p.core.utils.formatToken
import org.p2p.core.utils.fromLamports
import org.p2p.core.utils.orZero
import org.p2p.uikit.components.finance_block.MainCellModel
import org.p2p.uikit.components.finance_block.MainCellStyle
import org.p2p.uikit.components.left_side.LeftSideCellModel
import org.p2p.uikit.components.right_side.RightSideCellModel
import org.p2p.uikit.model.AnyCellItem
import org.p2p.uikit.utils.image.ImageViewCellModel
import org.p2p.uikit.utils.skeleton.SkeletonCellModel
import org.p2p.uikit.utils.text.TextViewCellModel
import org.p2p.uikit.utils.toPx
import org.p2p.wallet.R
import org.p2p.wallet.jupiter.interactor.model.SwapTokenModel
import org.p2p.wallet.jupiter.repository.model.JupiterSwapRoute
import org.p2p.wallet.jupiter.repository.model.JupiterSwapToken
import org.p2p.wallet.jupiter.repository.model.findTokenByMint
import org.p2p.wallet.jupiter.statemanager.SwapState
import org.p2p.wallet.jupiter.statemanager.SwapStateManager
import org.p2p.wallet.swap.model.Slippage
import org.p2p.wallet.utils.Base58String
import org.p2p.wallet.utils.emptyString
class SwapContentSettingsMapper(
private val commonMapper: SwapCommonSettingsMapper,
private val swapFeeBuilder: JupiterSwapFeeBuilder,
) {
suspend fun mapForLoadingTransactionState(
slippage: Slippage,
routes: List<JupiterSwapRoute>,
activeRoute: Int,
jupiterTokens: List<JupiterSwapToken>,
tokenB: SwapTokenModel,
solTokenForFee: JupiterSwapToken?,
): List<AnyCellItem> = mapList(
slippage = slippage,
routes = routes,
activeRouteIndex = activeRoute,
jupiterTokens = jupiterTokens,
tokenBAmount = null,
tokenB = tokenB,
solTokenForFee = solTokenForFee,
)
suspend fun mapForRoutesLoadedState(
state: SwapState.RoutesLoaded,
jupiterTokens: List<JupiterSwapToken>,
solTokenForFee: JupiterSwapToken?,
): List<AnyCellItem> = mapList(
slippage = state.slippage,
routes = state.routes,
activeRouteIndex = state.activeRoute,
jupiterTokens = jupiterTokens,
tokenBAmount = null,
tokenB = state.tokenB,
solTokenForFee = solTokenForFee,
showMinimumReceivedAmount = false,
)
suspend fun mapForSwapLoadedState(
slippage: Slippage,
routes: List<JupiterSwapRoute>,
activeRoute: Int,
jupiterTokens: List<JupiterSwapToken>,
tokenBAmount: BigDecimal?,
tokenB: SwapTokenModel,
solTokenForFee: JupiterSwapToken?,
): List<AnyCellItem> = mapList(
slippage = slippage,
routes = routes,
activeRouteIndex = activeRoute,
jupiterTokens = jupiterTokens,
tokenBAmount = tokenBAmount,
tokenB = tokenB,
solTokenForFee = solTokenForFee,
)
private suspend fun mapList(
slippage: Slippage,
routes: List<JupiterSwapRoute>,
activeRouteIndex: Int,
jupiterTokens: List<JupiterSwapToken>,
tokenBAmount: BigDecimal?,
tokenB: SwapTokenModel,
solTokenForFee: JupiterSwapToken?,
showMinimumReceivedAmount: Boolean = true,
): List<AnyCellItem> = buildList {
addRouteCell(routes, activeRouteIndex, jupiterTokens)
this += commonMapper.getNetworkFeeCell()
val route: JupiterSwapRoute? = routes.getOrNull(activeRouteIndex)
val accountFee: SwapSettingFeeBox? = swapFeeBuilder.buildAccountFeeBox(route, solTokenForFee)
val liquidityFeeList: List<SwapSettingFeeBox>? = swapFeeBuilder.buildLiquidityFeeListBox(route, jupiterTokens)
Timber.i("SwapContentSettingsMapper: accountFee=$accountFee; liquidityFeeList=${liquidityFeeList?.size}")
if (accountFee != null) {
addAccountFeeCell(accountFee)
}
if (liquidityFeeList != null) {
addLiquidityFeeCell(routes, activeRouteIndex, jupiterTokens, liquidityFeeList)
}
if (accountFee != null && liquidityFeeList != null) {
addEstimatedFeeCell(accountFee, liquidityFeeList)
}
addMinimumReceivedCell(slippage, tokenBAmount, tokenB, showMinimumReceivedAmount)
}
private fun MutableList<AnyCellItem>.addRouteCell(
routes: List<JupiterSwapRoute>,
activeRouteIndex: Int,
jupiterTokens: List<JupiterSwapToken>,
) {
val isBestRoute = activeRouteIndex == SwapStateManager.DEFAULT_ACTIVE_ROUTE_ORDINAL
val activeRoute = routes.getOrNull(activeRouteIndex)
this += MainCellModel(
leftSideCellModel = LeftSideCellModel.IconWithText(
firstLineText = TextViewCellModel.Raw(
text = TextContainer(R.string.swap_settings_route_title),
),
secondLineText = TextViewCellModel.Raw(
text = TextContainer(formatRouteString(activeRoute, jupiterTokens))
),
),
rightSideCellModel = RightSideCellModel.SingleTextTwoIcon(
text = if (isBestRoute) {
TextViewCellModel.Raw(text = TextContainer(R.string.swap_settings_route_best))
} else {
null
},
firstIcon = ImageViewCellModel(
icon = DrawableContainer(R.drawable.ic_chevron_right),
iconTint = R.color.icons_mountain,
)
),
payload = SwapSettingsPayload.ROUTE,
styleType = MainCellStyle.BASE_CELL,
)
}
private fun formatRouteString(activeRoute: JupiterSwapRoute?, jupiterTokens: List<JupiterSwapToken>): String {
if (activeRoute == null) return emptyString()
val marketInfos = activeRoute.marketInfos
return buildString {
marketInfos.forEachIndexed { index, marketInfo ->
append(jupiterTokens.findTokenSymbolByMint(marketInfo.inputMint))
append(" → ")
if (index == marketInfos.lastIndex) {
append(jupiterTokens.findTokenSymbolByMint(marketInfo.outputMint))
}
}
}
}
private fun MutableList<AnyCellItem>.addMinimumReceivedCell(
slippage: Slippage,
tokenBAmount: BigDecimal?,
tokenB: SwapTokenModel,
showMinimumReceivedAmount: Boolean
) {
if (!showMinimumReceivedAmount) return
val secondLineText = if (tokenBAmount == null) {
TextViewCellModel.Skeleton(skeleton = leftSubtitleSkeleton())
} else {
val amountWithSlippage = tokenBAmount.multiply(slippage.doubleValue.toBigDecimal())
val minimumReceivedText = tokenBAmount.minus(amountWithSlippage)
.formatToken(tokenB.decimals)
.plus(" ${tokenB.tokenSymbol}")
TextViewCellModel.Raw(text = TextContainer(minimumReceivedText))
}
this += MainCellModel(
leftSideCellModel = LeftSideCellModel.IconWithText(
firstLineText = TextViewCellModel.Raw(
text = TextContainer(R.string.swap_settings_minimum_received_title),
),
secondLineText = secondLineText,
),
rightSideCellModel = RightSideCellModel.SingleTextTwoIcon(
firstIcon = ImageViewCellModel(
icon = DrawableContainer(R.drawable.ic_info_outline),
iconTint = R.color.icons_mountain,
)
),
payload = SwapSettingsPayload.MINIMUM_RECEIVED,
styleType = MainCellStyle.BASE_CELL,
)
}
private fun MutableList<AnyCellItem>.addAccountFeeCell(
accountFee: SwapSettingFeeBox
) {
val solToken = accountFee.token
val feeInTokenText: TextViewCellModel.Raw =
accountFee.amountLamports.formatToken(accountFee.token.decimals)
.plus(" ${solToken.tokenSymbol}")
.let { TextViewCellModel.Raw(text = TextContainer(it)) }
val feeUsd = accountFee.amountUsd?.asUsdSwap()
this += MainCellModel(
leftSideCellModel = LeftSideCellModel.IconWithText(
firstLineText = TextViewCellModel.Raw(
text = TextContainer(R.string.swap_settings_creation_fee_title),
),
secondLineText = feeInTokenText
),
rightSideCellModel = RightSideCellModel.SingleTextTwoIcon(
text = feeUsd?.let {
TextViewCellModel.Raw(text = TextContainer(it))
},
firstIcon = ImageViewCellModel(
icon = DrawableContainer(R.drawable.ic_info_outline),
iconTint = R.color.icons_mountain,
)
),
payload = SwapSettingsPayload.CREATION_FEE,
styleType = MainCellStyle.BASE_CELL,
)
}
private fun MutableList<AnyCellItem>.addLiquidityFeeCell(
routes: List<JupiterSwapRoute>,
activeRouteIndex: Int,
jupiterTokens: List<JupiterSwapToken>,
liquidityFeeList: List<SwapSettingFeeBox>
) {
val activeRoute = routes.getOrNull(activeRouteIndex)
val liquidityFeeInTokens = formatLiquidityFeeString(activeRoute, jupiterTokens)
val someAmountsUsdNotLoaded = liquidityFeeList.any { it.amountUsd == null }
val liquidityFeeInUsd: String? = if (someAmountsUsdNotLoaded) {
null
} else {
liquidityFeeList
.sumOf { it.amountUsd.orZero() }
.asUsdSwap()
}
this += MainCellModel(
leftSideCellModel = LeftSideCellModel.IconWithText(
firstLineText = TextViewCellModel.Raw(
text = TextContainer(R.string.swap_settings_liquidity_fee_title),
),
secondLineText = TextViewCellModel.Raw(
text = TextContainer(liquidityFeeInTokens)
),
),
rightSideCellModel = RightSideCellModel.SingleTextTwoIcon(
text = liquidityFeeInUsd?.let {
TextViewCellModel.Raw(text = TextContainer(it))
},
firstIcon = ImageViewCellModel(
icon = DrawableContainer(R.drawable.ic_info_outline),
iconTint = R.color.icons_mountain,
)
),
payload = SwapSettingsPayload.LIQUIDITY_FEE,
styleType = MainCellStyle.BASE_CELL,
)
}
private fun formatLiquidityFeeString(
route: JupiterSwapRoute?,
jupiterTokens: List<JupiterSwapToken>
): String {
if (route == null) return emptyString()
return buildString {
route.marketInfos.forEachIndexed { index, marketInfo ->
val lpFee = marketInfo.liquidityFee
val lpToken = jupiterTokens.findTokenByMint(lpFee.mint) ?: return@forEachIndexed
val feeAmount = lpFee.amountInLamports
.fromLamports(lpToken.decimals)
.formatToken(lpToken.decimals)
val fee = "$feeAmount ${lpToken.tokenSymbol}"
append(fee)
if (index != route.marketInfos.lastIndex) {
append(", ")
}
}
}
}
private fun MutableList<AnyCellItem>.addEstimatedFeeCell(
accountFee: SwapSettingFeeBox,
liquidityFeeList: List<SwapSettingFeeBox>,
) {
if (liquidityFeeList.any { it.amountUsd == null } || accountFee.amountUsd == null) {
return
}
val totalFee: String = liquidityFeeList
.sumOf { it.amountUsd.orZero() }
.plus(accountFee.amountUsd)
.asUsdSwap()
this += MainCellModel(
leftSideCellModel = LeftSideCellModel.IconWithText(
firstLineText = TextViewCellModel.Raw(
text = TextContainer(R.string.swap_settings_estimated_fee_title),
textAppearance = R.style.UiKit_TextAppearance_SemiBold_Text3,
),
),
rightSideCellModel = RightSideCellModel.SingleTextTwoIcon(
text = totalFee.let {
TextViewCellModel.Raw(text = TextContainer(it))
},
),
payload = SwapSettingsPayload.ESTIMATED_FEE,
styleType = MainCellStyle.BASE_CELL,
)
}
private fun leftSubtitleSkeleton(): SkeletonCellModel {
return SkeletonCellModel(
height = 12.toPx(),
width = 100.toPx(),
radius = 4f.toPx(),
)
}
private fun rightSideSkeleton(): SkeletonCellModel {
return SkeletonCellModel(
height = 16.toPx(),
width = 52.toPx(),
radius = 4f.toPx(),
)
}
private fun List<JupiterSwapToken>.findTokenSymbolByMint(mint: Base58String): String {
return findTokenByMint(mint)?.tokenSymbol ?: emptyString()
}
}
| 9 | Kotlin | 18 | 33 | 509f73eb690114a77d24d1e44298819b20351b0e | 13,380 | key-app-android | MIT License |
klue-runtime-js/src/jsMain/kotlin/com/bennyhuo/klue/js/KlueJsBridge.kt | bennyhuo | 510,040,663 | false | null | package com.bennyhuo.klue.js
import kotlin.js.Promise
/**
* Created by benny.
*/
interface KlueJsBridge {
fun <T> callNative(className: String, functionName: String, args: String): Promise<T>
}
| 0 | null | 0 | 46 | 025390fa1b0a861240cc4cd82b0a84db013ff75f | 203 | Klue | MIT License |
common/src/main/java/com/ishow/common/utils/WebViewUtils.kt | i-show | 62,766,394 | false | null | /*
* Copyright (C) 2016 The yuhaiyang Android Source Project
*
* Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package com.ishow.common.utils
import android.annotation.SuppressLint
import android.webkit.WebSettings
object WebViewUtils {
@JvmStatic
@JvmOverloads
@SuppressLint("SetJavaScriptEnabled")
fun init(webView: android.webkit.WebView?, fitWindow: Boolean = true) {
if (webView == null) {
return
}
val settings = webView.settings
// 自适应屏幕大小
settings.useWideViewPort = fitWindow
settings.loadWithOverviewMode = fitWindow
// WebView 可以加载JavaScript
settings.javaScriptEnabled = true
//支持js
// settings.javaScriptCanOpenWindowsAutomatically = true
//设置编码
settings.defaultTextEncodingName = "utf-8"
// 放大缩小
// settings.domStorageEnabled = fitWindow
// WebView 可以使用数据库
// settings.databaseEnabled = true
// settings.databasePath = databasePath
// 应用可以有缓存
// settings.setAppCacheEnabled(true);
// settings.setAppCachePath(cachePath);
// 设置可以支持缩放
// settings.setSupportZoom(fitWindow)
// 设置出现缩放工具
// settings.builtInZoomControls = fitWindow
// 为图片添加放大缩小功能
// settings.useWideViewPort = fitWindow
settings.setAppCacheEnabled(false)
settings.cacheMode = WebSettings.LOAD_NO_CACHE
settings.mixedContentMode = WebSettings.MIXED_CONTENT_ALWAYS_ALLOW
}
}
| 1 | null | 1 | 1 | 0b823a69256345078a0c110798c8e9ac4ae2b565 | 2,035 | android-Common | Apache License 2.0 |
boj/a1978.kt | kylelab | 811,401,558 | false | {"Kotlin": 29082} | import java.util.Scanner
fun main(args: Array<String>) {
val sc: Scanner = Scanner(System.`in`)
val n = sc.nextInt()
var primeCount = 0
for(i in 1 .. n){
val x = sc.nextInt()
if(isPrime(x)) {
primeCount++
}
}
sc.close()
println(primeCount)
}
fun isPrime(x: Int): Boolean {
// 소수는 1과 자기자신만 약수인 수이다.
// 약수는 루트 n을 기점으로 대칭을 이루기 때문에, 제일 작은 소수인 2부터 루트 n까지만 검사하면 된다.
// 2부터 루트n은 i*i<=n과 같다.
if(x <= 1) {
return false
} else if(x == 2) {
return true
}
var i = 2
do {
if(x%i == 0) return false // 2부터 루트n까지 i로 나눠서 나머지가 한번이라도 0이 나오면 1외의 다른 약수가 있기 때문에 소수가 아니다.
i++
} while(i * i <= x)
return true
}
| 0 | Kotlin | 0 | 0 | e0e96406bf8ce1a77d41fc60841d5aeb4a5efeee | 735 | algorithms | MIT License |
app/src/main/java/com/fsh/android/wanandroidmvvm/module/search/model/HotKeyResponse.kt | fshsoft | 506,052,730 | false | {"Kotlin": 370644} | package com.fsh.android.wanandroidmvvm.module.search.model
/**
* Created with Android Studio.
* Description:
*/
data class HotKeyResponse(
var name: String
) | 0 | Kotlin | 0 | 1 | 820418b44745e38e422f35d290754d2d330e24a1 | 165 | WanAndroidMVVM | Apache License 2.0 |
viewcontract/src/jvmTest/kotlin/tech/skot/core/view/TestSKSpannedStringBuilder.kt | MathieuScotet | 235,318,194 | false | null | package tech.skot.core.view
import org.junit.Test
import kotlin.test.assertEquals
class TestSKSpannedStringBuilder {
@Test
fun testSimple() {
val res = skSpannedString {
colored(Color(1)) {
append("coucou")
underline {
colored(Color(2)) {
append("jaune")
}
striked {
append("rouge encore")
}
}
}
}
println(res)
}
@Test
fun testUnderline() {
assertEquals(
expected = listOf(SKSpan(text = "test1", underline = true)),
actual = skSpannedString {
underline {
append("test1")
}
}
)
}
@Test
fun testStriked() {
assertEquals(
expected = listOf(SKSpan(text = "test1", striked = true)),
actual = skSpannedString {
striked {
append("test1")
}
}
)
}
} | 0 | Kotlin | 3 | 2 | bf0e13bb4be2d94b4774791ddf55046668b06dd1 | 1,120 | skot | Apache License 2.0 |
common/src/commonMain/kotlin/dev/zwander/common/util/Storage.kt | zacharee | 641,202,797 | false | {"Kotlin": 368778, "Swift": 11028, "Ruby": 2834, "Objective-C": 1853, "Shell": 566} | @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE", "EXPOSED_PARAMETER_TYPE")
package dev.zwander.common.util
import dev.zwander.common.data.HistoricalSnapshot
import dev.zwander.common.model.MainModel
import dev.zwander.common.model.adapters.CellDataRoot
import dev.zwander.common.model.adapters.ClientDeviceData
import dev.zwander.common.model.adapters.MainData
import dev.zwander.common.model.adapters.SimDataRoot
import io.github.xxfast.kstore.Codec
import io.github.xxfast.kstore.file.FileCodec
import io.github.xxfast.kstore.utils.StoreDispatcher
import kotlinx.atomicfu.atomic
import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.Job
import kotlinx.coroutines.flow.*
import kotlinx.coroutines.launch
import kotlinx.coroutines.sync.Mutex
import kotlinx.coroutines.sync.withLock
import kotlinx.coroutines.withContext
import kotlinx.io.files.Path
import kotlinx.io.files.SystemFileSystem
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.KSerializer
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.Json
import kotlinx.serialization.serializer
expect fun pathTo(subPath: String, startingTag: String): String
class CreatingCodec<T : @Serializable Any>(
private val file: Path,
private val json: Json,
private val serializer: KSerializer<T>,
private val wrappedCodec: FileCodec<T> = FileCodec(file, json, serializer),
) : Codec<T> by wrappedCodec {
companion object {
inline operator fun <reified T: @Serializable Any> invoke(
file: Path,
json: Json,
) = CreatingCodec<T>(
file = file,
json = json,
serializer = json.serializersModule.serializer(),
)
}
init {
ensureCreated()
}
override suspend fun decode(): T? {
return try {
wrappedCodec.decode()
} catch (e: Throwable) {
val retries = 3
CrossPlatformBugsnag.notify(IllegalStateException("Unable to decode JSON from file, retrying $retries times.", e))
for (i in 0 until retries) {
try {
return wrappedCodec.decode()
} catch (_: Throwable) {}
}
CrossPlatformBugsnag.notify(IllegalStateException("Unable to decode JSON after $retries tries. Attempting to delete stored JSON file."))
try {
encode(null)
} catch (e2: Throwable) {
CrossPlatformBugsnag.notify(IllegalStateException("Unable to delete stored data after failure to read data.", e2))
}
null
}
}
override suspend fun encode(value: T?) {
wrappedCodec.encode(value)
}
private fun ensureCreated() {
file.parent?.let {
if (!SystemFileSystem.exists(it)) {
SystemFileSystem.createDirectories(it)
}
}
}
}
class KStore<T : @Serializable Any>(
private val default: T? = null,
private val enableCache: Boolean = true,
private val codec: Codec<T>,
private val lock: Mutex = Mutex(),
) {
private val cache: MutableStateFlow<T?> = MutableStateFlow(default)
/** Observe store for updates */
val updates: Flow<T?>
get() = this.cache
.onStart {
lock.withLock {
read(fromCache = false)
}
} // updates will always start with a fresh read
private suspend fun write(value: T?): Unit = withContext(StoreDispatcher) {
codec.encode(value)
cache.emit(value)
}
private suspend fun read(fromCache: Boolean): T? = withContext(StoreDispatcher) {
if (fromCache && cache.value != default) return@withContext cache.value
val decoded: T? = codec.decode()
val emitted: T? = decoded ?: default
cache.emit(emitted)
return@withContext emitted
}
/**
* Set a value to the store
*
* @param value to set
*/
suspend fun set(value: T?): Unit = lock.withLock { write(value) }
/**
* Get a value from the store
*
* @return value stored/cached (if enabled)
*/
suspend fun get(): T? = lock.withLock { read(enableCache) }
/**
* Update a value in a store.
* Note: This maintains a single mutex lock for both get and set
*
* @param operation lambda to update a given value of type [T]
*/
suspend fun update(operation: (T?) -> T?): Unit = lock.withLock {
val previous: T? = read(enableCache)
val updated: T? = operation(previous)
write(updated)
}
/**
* Set the value of the store to null
*/
suspend fun delete() {
set(null)
cache.emit(null)
}
/**
* Set the value of the store to the default
*/
suspend fun reset() {
set(default)
cache.emit(default)
}
}
object Storage {
const val NAME = "snapshots.json"
val path = pathTo(NAME, "[]")
@OptIn(ExperimentalSerializationApi::class)
val json = Json {
ignoreUnknownKeys = true
isLenient = true
encodeDefaults = true
coerceInputValues = true
allowTrailingComma = true
}
val snapshots: KStore<List<HistoricalSnapshot>> = KStore(
default = listOf(),
enableCache = false,
codec = CreatingCodec(
Path(path),
json,
),
)
private val listenJob = atomic<Job?>(initial = null)
@OptIn(DelicateCoroutinesApi::class)
fun startListening() {
if (listenJob.value != null) {
return
}
listenJob.value = GlobalScope.launch {
launch {
MainModel.currentMainData.wrapped.collect { (time, data) ->
makeSnapshot(
snapshotTime = time,
mainData = data,
)
}
}
launch {
MainModel.currentClientData.wrapped.collect { (time, data) ->
makeSnapshot(
snapshotTime = time,
clientData = data,
)
}
}
launch {
MainModel.currentCellData.wrapped.collect { (time, data) ->
makeSnapshot(
snapshotTime = time,
cellData = data,
)
}
}
launch {
MainModel.currentSimData.wrapped.collect { (time, data) ->
makeSnapshot(
snapshotTime = time,
simData = data,
)
}
}
}
}
fun stopListening() {
listenJob.value?.cancel()
listenJob.value = null
}
private suspend fun makeSnapshot(
snapshotTime: Long,
mainData: MainData? = null,
clientData: ClientDeviceData? = null,
cellData: CellDataRoot? = null,
simData: SimDataRoot? = null,
) {
snapshots.update {
val currentSnapshots = it?.toMutableList() ?: mutableListOf()
if (snapshotTime == 0L) {
return@update currentSnapshots
}
val snapshot = HistoricalSnapshot(
timeMillis = snapshotTime,
cellData = cellData,
clientData = clientData,
mainData = mainData,
simData = simData,
)
currentSnapshots.add(snapshot)
currentSnapshots.sortBy { snap -> snap.timeMillis }
currentSnapshots
}
}
}
| 4 | Kotlin | 7 | 144 | e9a111510b0ae2e9022390047569952df25bff8a | 7,803 | HINTControl | MIT License |
dialog/src/main/java/com/angcyo/dialog/BaseDialogConfig.kt | angcyo | 229,037,615 | false | null | package com.angcyo.dialog
import android.app.Dialog
import android.content.Context
import android.view.View
import com.angcyo.library.L
import com.angcyo.widget.DslViewHolder
import com.angcyo.widget.base.clickIt
/**
*
* Email:<EMAIL>
* @author angcyo
* @date 2019/05/11
* Copyright (c) 2019 ShenZhen O&M Cloud Co., Ltd. All rights reserved.
*/
abstract class BaseDialogConfig(context: Context? = null) : DslDialogConfig(context) {
/**隐藏标题栏下面的线*/
var hideDialogTitleLine: Boolean = false
init {
positiveButtonText = "确定"
negativeButtonText = "取消"
onCancelListener = {
L.i("$it is Cancel!")
}
onDismissListener = {
L.i("$it is Dismiss!")
}
}
/**
* 对话框初始化方法
* */
override fun initDialogView(dialog: Dialog, dialogViewHolder: DslViewHolder) {
super.initDialogView(dialog, dialogViewHolder)
//标题
dialogViewHolder.tv(R.id.title_view)?.apply {
visibility = if (dialogTitle == null) View.GONE else View.VISIBLE
text = dialogTitle
}
//消息体
dialogViewHolder.tv(R.id.message_view)?.apply {
visibility = if (dialogMessage == null) View.GONE else View.VISIBLE
text = dialogMessage
}
//标题栏控制
dialogViewHolder.visible(R.id.title_layout, dialogTitle != null)
dialogViewHolder.visible(R.id.title_line_view, dialogTitle != null && !hideDialogTitleLine)
initControlLayout(dialog, dialogViewHolder)
}
open fun initControlLayout(dialog: Dialog, dialogViewHolder: DslViewHolder) {
//确定按钮
dialogViewHolder.tv(R.id.positive_button)?.apply {
visibility = if (positiveButtonText == null) View.GONE else View.VISIBLE
text = positiveButtonText
clickIt {
positiveButtonListener?.invoke(dialog, dialogViewHolder)
}
}
//取消按钮
dialogViewHolder.tv(R.id.negative_button)?.apply {
visibility = if (negativeButtonText == null) View.GONE else View.VISIBLE
text = negativeButtonText
clickIt {
negativeButtonListener?.invoke(dialog, dialogViewHolder)
}
}
//中立按钮
dialogViewHolder.tv(R.id.dialog_neutral_button)?.apply {
visibility = if (neutralButtonText == null) View.GONE else View.VISIBLE
text = neutralButtonText
clickIt {
neutralButtonListener?.invoke(dialog, dialogViewHolder)
}
}
//3个按钮都没有文本, 隐藏底部控制栏
if (positiveButtonText == null &&
negativeButtonText == null &&
neutralButtonText == null
) {
dialogViewHolder.view(R.id.dialog_control_layout)?.visibility = View.GONE
}
}
} | 0 | null | 3 | 1 | c9bb77f3c60ca658711c0c6f4a02dfdec354698b | 2,850 | UICore | MIT License |
Jetsnack/app/src/main/java/com/example/jetsnack/model/Filter.kt | markgray | 872,334,021 | false | {"Kotlin": 1285123} | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package com.example.jetsnack.model
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Android
import androidx.compose.material.icons.filled.SortByAlpha
import androidx.compose.material.icons.filled.Star
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.Stable
import androidx.compose.runtime.mutableStateOf
import androidx.compose.ui.graphics.vector.ImageVector
import com.example.jetsnack.ui.components.FilterBar
import com.example.jetsnack.ui.components.FilterChip
import com.example.jetsnack.ui.home.FilterChipSection
import com.example.jetsnack.ui.home.FilterScreen
import com.example.jetsnack.ui.home.SortFilters
import com.example.jetsnack.ui.home.SortFiltersSection
import com.example.jetsnack.ui.home.SortOption
/**
* This class holds the state of the various [FilterChip] that are at the top of the home screen in
* a [FilterBar] (our [List] of [Filter] property [filters]), in a [FilterChipSection] (our [List]
* of [Filter] property [priceFilters]), in a [SortOption] displayed in a [SortFilters] (our our
* [List] of [Filter] property [sortFilters]), in a [FilterChipSection] (our [List] of [Filter]
* property [categoryFilters]), and in a [FilterChipSection] (our [List] of [Filter] property
* [lifeStyleFilters])
*
* @param name [String] describing the type of filtering that ths [FilterChip] will perform if it is
* in a selected state.
* @param enabled the initial state of the [MutableState] wrapped [Boolean] that is accessed via the
* [Filter.enabled] property.
* @param icon an [ImageVector] that will be displayed by the [SortFilters] in the [SortFiltersSection]
* of the home screen (which is opened by clicking on the icon at the far left oa the [FilterScreen]
*/
@Stable
class Filter(
val name: String,
enabled: Boolean = false,
val icon: ImageVector? = null
) {
/**
* This is used to hold and set the selected state of the [FilterChip] using this [Filter]
*/
val enabled: MutableState<Boolean> = mutableStateOf(value = enabled)
}
/**
* These [Filter] are used for the state of the various [FilterChip] that are at the top of the home
* screen in a [FilterBar].
*/
val filters: List<Filter> = listOf(
Filter(name = "Organic"),
Filter(name = "Gluten-free"),
Filter(name = "Dairy-free"),
Filter(name = "Sweet"),
Filter(name = "Savory")
)
/**
* These [Filter] are used for the state of the various [FilterChip] in the [FilterChipSection]
* whose title is "Price".
*/
val priceFilters: List<Filter> = listOf(
Filter(name = "$"),
Filter(name = "$$"),
Filter(name = "$$$"),
Filter(name = "$$$$")
)
/**
* These [Filter] are used for the state of the various [SortOption] in the [SortFilters]
* Composable.
*/
val sortFilters: List<Filter> = listOf(
Filter(name = "Android's favorite (default)", icon = Icons.Filled.Android),
Filter(name = "Rating", icon = Icons.Filled.Star),
Filter(name = "Alphabetical", icon = Icons.Filled.SortByAlpha)
)
/**
* These [Filter] are used for the state of the various [FilterChip] in the [FilterChipSection]
* whose title is "Category".
*/
val categoryFilters: List<Filter> = listOf(
Filter(name = "Chips & crackers"),
Filter(name = "Fruit snacks"),
Filter(name = "Desserts"),
Filter(name = "Nuts")
)
/**
* These [Filter] are used for the state of the various [FilterChip] in the [FilterChipSection]
* whose title is "LifeStyle".
*/
val lifeStyleFilters: List<Filter> = listOf(
Filter(name = "Organic"),
Filter(name = "Gluten-free"),
Filter(name = "Dairy-free"),
Filter(name = "Sweet"),
Filter(name = "Savory")
)
/**
* This is used as the initial value of the [Filter.name] used by [SortFiltersSection].
*/
var sortDefault: String = sortFilters[0].name
| 0 | Kotlin | 0 | 0 | afe5528c451adf978eebb78e1fe09150c7e2f6e5 | 4,439 | Compose-Overflow | Apache License 2.0 |
app/src/main/java/dev/maxsiomin/testdoorscameras/presentation/door_screen/DoorCard.kt | MaxSiominDev | 750,879,634 | false | {"Kotlin": 64737} | package dev.maxsiomin.testdoorscameras.presentation.door_screen
import android.annotation.SuppressLint
import androidx.compose.animation.core.MutableTransitionState
import androidx.compose.animation.core.animateFloat
import androidx.compose.animation.core.tween
import androidx.compose.animation.core.updateTransition
import androidx.compose.foundation.gestures.detectHorizontalDragGestures
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.offset
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Card
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.input.pointer.pointerInput
import androidx.compose.ui.unit.IntOffset
import androidx.compose.ui.unit.dp
import dev.maxsiomin.testdoorscameras.domain.DoorModel
import kotlin.math.roundToInt
private const val ANIMATION_DURATION = 500
private const val MIN_DRAG_AMOUNT = -18
@SuppressLint("UnusedTransitionTargetStateParameter")
@Composable
fun DoorCard(
door: DoorModel,
isRevealed: Boolean,
cardOffset: Float,
onExpand: () -> Unit,
onCollapse: () -> Unit,
) {
val transitionState = remember {
MutableTransitionState(isRevealed).apply {
targetState = !isRevealed
}
}
val transition = updateTransition(transitionState, "cardTransition")
val offsetTransition by transition.animateFloat(
label = "cardOffsetTransition",
transitionSpec = { tween(durationMillis = ANIMATION_DURATION) },
targetValueByState = { if (isRevealed) cardOffset else 0f }
)
Card(
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 16.dp, vertical = 8.dp)
.offset { IntOffset(offsetTransition.roundToInt(), 0) }
.pointerInput(Unit) {
detectHorizontalDragGestures { _, dragAmount ->
when {
dragAmount <= MIN_DRAG_AMOUNT -> onExpand()
dragAmount > -MIN_DRAG_AMOUNT -> onCollapse()
}
}
},
backgroundColor = Color.White,
shape = remember {
RoundedCornerShape(19.dp)
},
content = { DoorItemContent(door) }
)
}
| 0 | Kotlin | 0 | 0 | 9729d6e686a193461d88140d0a55bc9566f97874 | 2,489 | rikmasters | MIT License |
examples/kotlin/hello_world/MainActivity.kt | stedsome | 270,751,278 | false | {"Git Config": 1, "Ruby": 1, "Markdown": 11, "YAML": 14, "Starlark": 44, "Text": 3, "Ignore List": 1, "Git Attributes": 1, "C++": 29, "Python": 2, "Kotlin": 56, "Java": 13, "XML": 13, "Swift": 54, "Objective-C": 13, "C": 2, "OpenStep Property List": 2, "Shell": 7, "reStructuredText": 25, "CSS": 1, "Diff": 3} | package io.envoyproxy.envoymobile.helloenvoykotlin
import android.app.Activity
import android.os.Bundle
import android.os.Handler
import android.os.HandlerThread
import android.support.v7.widget.DividerItemDecoration
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.util.Log
import io.envoyproxy.envoymobile.AndroidEnvoyClientBuilder
import io.envoyproxy.envoymobile.Domain
import io.envoyproxy.envoymobile.Envoy
import io.envoyproxy.envoymobile.RequestBuilder
import io.envoyproxy.envoymobile.RequestMethod
import io.envoyproxy.envoymobile.ResponseHandler
import io.envoyproxy.envoymobile.shared.Failure
import io.envoyproxy.envoymobile.shared.ResponseRecyclerViewAdapter
import io.envoyproxy.envoymobile.shared.Success
import java.io.IOException
import java.util.HashMap
import java.util.concurrent.Executor
import java.util.concurrent.TimeUnit
import java.util.concurrent.atomic.AtomicInteger
private const val REQUEST_HANDLER_THREAD_NAME = "hello_envoy_kt"
private const val ENVOY_SERVER_HEADER = "server"
private const val REQUEST_AUTHORITY = "api.lyft.com"
private const val REQUEST_PATH = "/ping"
private const val REQUEST_SCHEME = "https"
class MainActivity : Activity() {
private val thread = HandlerThread(REQUEST_HANDLER_THREAD_NAME)
private lateinit var recyclerView: RecyclerView
private lateinit var viewAdapter: ResponseRecyclerViewAdapter
private lateinit var envoy: Envoy
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
envoy = AndroidEnvoyClientBuilder(baseContext, Domain(REQUEST_AUTHORITY)).build()
recyclerView = findViewById(R.id.recycler_view) as RecyclerView
recyclerView.layoutManager = LinearLayoutManager(this)
viewAdapter = ResponseRecyclerViewAdapter()
recyclerView.adapter = viewAdapter
val dividerItemDecoration = DividerItemDecoration(recyclerView.context, DividerItemDecoration.VERTICAL)
recyclerView.addItemDecoration(dividerItemDecoration)
thread.start()
val handler = Handler(thread.looper)
// Run a request loop until the application exits.
handler.postDelayed(object : Runnable {
override fun run() {
try {
makeRequest()
} catch (e: IOException) {
Log.d("MainActivity", "exception making request.", e)
}
// Make a call again
handler.postDelayed(this, TimeUnit.SECONDS.toMillis(1))
}
}, TimeUnit.SECONDS.toMillis(1))
}
override fun onDestroy() {
super.onDestroy()
thread.quit()
}
private fun makeRequest() {
val request = RequestBuilder(RequestMethod.GET, REQUEST_SCHEME, REQUEST_AUTHORITY, REQUEST_PATH)
.build()
val responseHeaders = HashMap<String, List<String>>()
val responseStatus = AtomicInteger()
val handler = ResponseHandler(Executor { it.run() })
.onHeaders { headers, status, _ ->
responseHeaders.putAll(headers)
responseStatus.set(status)
Unit
}
.onData { buffer, _ ->
if (responseStatus.get() == 200 && buffer.hasArray()) {
val serverHeaderField = responseHeaders[ENVOY_SERVER_HEADER]!![0]
val body = String(buffer.array())
Log.d("MainActivity", "successful response!")
recyclerView.post { viewAdapter.add(Success(body, serverHeaderField)) }
} else {
recyclerView.post { viewAdapter.add(Failure("failed with status " + responseStatus.get())) }
}
Unit
}
.onError { error ->
recyclerView.post { viewAdapter.add(Failure("failed with error " + error.message)) }
Unit
}
envoy.send(request, null, emptyMap(), handler)
}
}
| 1 | null | 1 | 1 | 9c7a1839f8196211af20f7f86cdb80872f719856 | 3,807 | envoy-mobile | Apache License 2.0 |
app/src/main/java/com/wisal/android/todocompose/di/DatabaseModule.kt | wisalmuhammad | 728,771,214 | false | {"Kotlin": 43071} | package com.wisal.android.todocompose.di
import android.content.Context
import androidx.compose.runtime.remember
import androidx.room.Room
import com.wisal.android.todocompose.data.source.TasksDao
import com.wisal.android.todocompose.data.source.ToDoDatabase
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton
@InstallIn(SingletonComponent::class)
@Module
class DatabaseModule {
@Singleton
@Provides
fun provideTasksDatabase(@ApplicationContext context: Context): ToDoDatabase {
return Room
.databaseBuilder(
context.applicationContext,
ToDoDatabase::class.java,
"ToDoTasks.db"
).build()
}
@Provides
@Singleton
fun provideTasksDao(database: ToDoDatabase): TasksDao {
return database.tasksDao()
}
} | 0 | Kotlin | 0 | 0 | e078f16abac2c3ded7c4053b5ece6bf246976a0d | 981 | ToDoCompose | MIT License |
src/main/java/io/luxus/adofai/converter/i18n/I18n.kt | Luxusio | 330,425,345 | false | null | package io.luxus.adofai.converter.i18n
import io.luxus.adofai.converter.i18n.I18nCode.*
import java.util.Locale
class I18n {
private val allCodeMap: Map<String, Map<I18nCode, String>>
private var codeMap: Map<I18nCode, String>
init {
allCodeMap = mapOf(
Locale.ENGLISH.language to englishCodeMap(),
Locale.KOREAN.language to koreanCodeMap(),
Locale.CHINESE.language to chineseCodeMap(),
)
codeMap = allCodeMap[Locale.getDefault().language] ?: allCodeMap[Locale.ENGLISH.language]!!
}
fun getSupportedLanguage(): String =
allCodeMap.keys.joinToString(separator = ", ")
fun isSupportedLanguage(languageTag: String): Boolean {
val locale = Locale.forLanguageTag(languageTag)
if (locale.language.isEmpty()) {
return false
}
return allCodeMap[locale.language] != null
}
fun println(i18NCode: I18nCode, vararg params: String) {
println(getText(i18NCode, *params))
}
fun println() {
println("")
}
fun println(text: String) {
kotlin.io.println(text)
}
fun print(i18NCode: I18nCode, vararg params: String) {
print(getText(i18NCode, *params))
}
fun printlnErr(i18NCode: I18nCode, vararg params: String) {
System.err.println(getText(i18NCode, *params))
}
fun getText(i18NCode: I18nCode, vararg params: String): String {
var text = codeMap[i18NCode]!!
for (i in params.indices) {
text = text.replaceFirst("{${i}}", params[i])
}
return text
}
fun setLanguage(languageTag: String) {
codeMap = allCodeMap[Locale.forLanguageTag(languageTag).language]!!
}
private fun englishCodeMap(): Map<I18nCode, String> =
mapOf(
PROGRAM_PRESS_ENTER_TO_CONTINUE to "Press Enter to continue.",
PROGRAM_OPTION_1 to "1. outer angle convert",
PROGRAM_OPTION_2 to "2. linear convert",
PROGRAM_OPTION_3 to "3. pattern convert",
PROGRAM_OPTION_4 to "4. All tile twirl add/remove rate convert",
PROGRAM_OPTION_5 to "5. Effect remove",
PROGRAM_OPTION_6 to "6. Transparency convert",
PROGRAM_OPTION_7 to "7. Bpm multiplier->Bpm convert",
PROGRAM_OPTION_8 to "8. No speed change convert",
PROGRAM_OPTION_9 to "9. All tile bpm multiplier convert",
PROGRAM_OPTION_10 to "10. All tile random bpm convert",
PROGRAM_OPTION_11 to "11. Midspin convert",
PROGRAM_OPTION_12 to "12. Pseudo convert",
PROGRAM_OPTION_13 to "13. Planet amount convert",
PROGRAM_OPTION_14 to "14. Exit",
INPUT to "Input : ",
PROGRAM_EXIT to "Terminates the program.",
PROGRAM_CONVERT_MESSAGE_1 to "*\"all\" will convert files in all subfolders except backup.adofai*",
PROGRAM_CONVERT_MESSAGE_2 to "path(includes .adofai) : ",
ERROR_FILE_NOT_EXIST to "File does not exists ({1})",
ERROR_CANNOT_LOAD_FILE to "Failed to load file.",
ERROR_CANNOT_LOAD_PATTERN to "Failed to read pattern.",
PROGRAM_INPUT_LANGUAGE to "Input language({0}) : ",
PROGRAM_INPUT_LANGUAGE_ERROR to "Unsupported language.",
TWIRL_CONVERTER_ROTATION_RATE to "Twirl add/remove rate(0.0~1.0):",
TWIRL_CONVERTER_ROTATION_RATE_ERROR to "Twirl ratio must be greater than or equal to 0 and less than or equal to 1.0.",
SHAPED_MAP_CONVERTER_INPUT_FILE_OR_PATTERN_1 to "*It must be entered in the format of pathData or angleData in the .adofai file*",
SHAPED_MAP_CONVERTER_INPUT_FILE_OR_PATTERN_2 to "pattern (or .adofai file path) : ",
SHAPED_MAP_CONVERTER_ERROR_PATTERN_TILE_TOO_SHORT to "There are too few tiles in the pattern.",
SHAPED_MAP_CONVERTER_ERROR_SHAPE_ANGLES_NULL to "shapeAngles is null.",
SHAPED_MAP_CONVERTER_ERROR_PATTERN_ANGLE_TOO_SHORT to "The number of angles in the pattern is too small.",
PSEUDO_MAP_CONVERTER_PSEUDO_AMOUNT to "Number of pseudo : ",
PSEUDO_MAP_CONVERTER_PSEUDO_MAX_ANGLE to "Pseudo max angle : ",
PSEUDO_MAP_CONVERTER_REMOVE_COLOR_TRACK_QUESTION to "Are you sure you want to remove colorTrack? (y/n) (If there are too many ColorTracks, the game may stop.) : ",
PSEUDO_MAP_CONVERTER_PSEUDO_AMOUNT_ERROR to "Pseudo value too low! Please set it to 1 or higher!",
PSEUDO_MAP_CONVERTER_PSEUDO_MAX_ANGLE_ERROR to "Pseudo max angle must be greater than 0 degrees.",
PLANET_NUMBER_MAP_CONVERTER_PLANET_NUMBER to "Number of planets : ",
PLANET_NUMBER_MAP_CONVERTER_KEEP_ORIGINAL_SHAPE to "Whether to keep the original map shape (true, false) : ",
PLANET_NUMBER_MAP_CONVERTER_PLANET_NUMBER_ERROR to "The number of planets is too low! Please use a value of 2 or higher!",
NO_SPEED_CHANGE_MAP_CONVERTER_DEST_BPM to "Destination bpm:",
NO_SPEED_CHANGE_MAP_CONVERTER_DEST_BPM_ERROR to "The target BPM must be greater than zero.",
CHAOS_BPM_MAP_CONVERTER_VIBRATE_RATE to "Percent of angles to oscillate (0 to 1):",
BPM_MULTIPLY_MAP_CONVERTER_MULTIPLY_VALUE to "Multiplier value:",
BPM_MULTIPLY_MAP_CONVERTER_MULTIPLY_VALUE_ERROR to "Multiplier value is too high. Please make it less than {0} times",
ALL_MIDSPIN_MAP_CONVERTER_MIDSPIN_AMOUNT to "Midspin amount:",
ALL_MIDSPIN_MAP_CONVERTER_MIDSPIN_AMOUNT_ERROR to "Midspin amount is too small! Please enter a value greater than 0!",
TRANSPARENT_MAP_CONVERTER_TRANSPARENCY_VALUE to "Transparency(0~100):",
TRANSPARENT_MAP_CONVERTER_TRANSPARENCY_VALUE_ERROR to "Transparency must be between 0 and 100.",
NON_EFFECT_MAP_CONVERTER_LIST to "effect list : {0}",
NON_EFFECT_MAP_CONVERTER_LIST_INPUT_MESSAGE to "Enter the effects you want to remove, separated by commas (,) : ",
NON_EFFECT_MAP_CONVERTER_ERROR_UNKNOWN_EVENT_TYPE to "Unknown event type!({0})",
NON_EFFECT_MAP_CONVERTER_LIST_ERROR_EMPTY to "There's no effect to remove.",
)
private fun koreanCodeMap(): Map<I18nCode, String> =
mapOf(
PROGRAM_PRESS_ENTER_TO_CONTINUE to "계속하시려면 엔터키를 눌러주세요.",
PROGRAM_OPTION_1 to "1. 외각 변환",
PROGRAM_OPTION_2 to "2. 선형 변환",
PROGRAM_OPTION_3 to "3. 패턴 변환",
PROGRAM_OPTION_4 to "4. 모든타일 회전 넣고 빼기 비율",
PROGRAM_OPTION_5 to "5. 이펙트 제거",
PROGRAM_OPTION_6 to "6. 투명도 변환",
PROGRAM_OPTION_7 to "7. Bpm 승수->Bpm 변환",
PROGRAM_OPTION_8 to "8. 무변속 맵 변환",
PROGRAM_OPTION_9 to "9. 맵 전체 bpm *배수 변환",
PROGRAM_OPTION_10 to "10. 모든 타일 무작위 bpm 변환",
PROGRAM_OPTION_11 to "11. 미드스핀 변환",
PROGRAM_OPTION_12 to "12. 동타 변환",
PROGRAM_OPTION_13 to "13. 행성 수 변환",
PROGRAM_OPTION_14 to "14. 종료",
INPUT to "입력 : ",
PROGRAM_EXIT to "프로그램을 종료합니다.",
PROGRAM_CONVERT_MESSAGE_1 to "*all 시 backup.adofai 를 제외한 모든 하위 폴더의 파일을 변환합니다*",
PROGRAM_CONVERT_MESSAGE_2 to "경로(.adofai 포함) : ",
ERROR_FILE_NOT_EXIST to "파일이 존재하지 않습니다({1})",
ERROR_CANNOT_LOAD_FILE to "파일 불러오기에 실패했습니다",
ERROR_CANNOT_LOAD_PATTERN to "패턴 읽어오기에 실패했습니다.",
PROGRAM_INPUT_LANGUAGE to "언어 입력({0}) : ",
PROGRAM_INPUT_LANGUAGE_ERROR to "지원되지 않는 언어입니다.",
TWIRL_CONVERTER_ROTATION_RATE to "회전 넣을 비율(0.0~1.0):",
TWIRL_CONVERTER_ROTATION_RATE_ERROR to "회전 비율은 0 이상 1.0 이하여야 합니다.",
SHAPED_MAP_CONVERTER_INPUT_FILE_OR_PATTERN_1 to "*.adofai 파일 내의 pathData 혹은 angleData 형식으로 입력하여야 합니다*",
SHAPED_MAP_CONVERTER_INPUT_FILE_OR_PATTERN_2 to "패턴(혹은 .adofai 파일) : ",
SHAPED_MAP_CONVERTER_ERROR_PATTERN_TILE_TOO_SHORT to "패턴의 타일 수가 너무 적습니다.",
SHAPED_MAP_CONVERTER_ERROR_SHAPE_ANGLES_NULL to "shapeAngles가 null입니다.",
SHAPED_MAP_CONVERTER_ERROR_PATTERN_ANGLE_TOO_SHORT to "패턴의 각도 수가 너무 적습니다.",
PSEUDO_MAP_CONVERTER_PSEUDO_AMOUNT to "동타 수 : ",
PSEUDO_MAP_CONVERTER_PSEUDO_MAX_ANGLE to "동타 최대 각도 : ",
PSEUDO_MAP_CONVERTER_REMOVE_COLOR_TRACK_QUESTION to "colorTrack을 제거하시겠습니까? (y/n) (ColorTrack이 많을 시 게임이 멈출 수 있습니다.) : ",
PSEUDO_MAP_CONVERTER_PSEUDO_AMOUNT_ERROR to "Pseudo 값이 너무 낮습니다! 1 이상으로 해주세요!",
PSEUDO_MAP_CONVERTER_PSEUDO_MAX_ANGLE_ERROR to "동타 최대 각도는 0도보다 커야합니다.",
PLANET_NUMBER_MAP_CONVERTER_PLANET_NUMBER to "행성 수 : ",
PLANET_NUMBER_MAP_CONVERTER_KEEP_ORIGINAL_SHAPE to "원본 맵 형태 유지 여부(true, false) : ",
PLANET_NUMBER_MAP_CONVERTER_PLANET_NUMBER_ERROR to "행성 수 값이 너무 낮습니다! 2와 같거나 큰 값으로 해주세요!",
NO_SPEED_CHANGE_MAP_CONVERTER_DEST_BPM to "목표 BPM:",
NO_SPEED_CHANGE_MAP_CONVERTER_DEST_BPM_ERROR to "목표 BPM은 0보다 커야합니다.",
CHAOS_BPM_MAP_CONVERTER_VIBRATE_RATE to "진동할 각도 비율(0~1):",
BPM_MULTIPLY_MAP_CONVERTER_MULTIPLY_VALUE to "배수:",
BPM_MULTIPLY_MAP_CONVERTER_MULTIPLY_VALUE_ERROR to "배수가 너무 높습니다. {0}배 이하로 해주세요",
ALL_MIDSPIN_MAP_CONVERTER_MIDSPIN_AMOUNT to "미드스핀 개수:",
ALL_MIDSPIN_MAP_CONVERTER_MIDSPIN_AMOUNT_ERROR to "midspinAmount 가 너무 작습니다! 0 이상의 값을 입력해주세요!",
TRANSPARENT_MAP_CONVERTER_TRANSPARENCY_VALUE to "투명도(0~100):",
TRANSPARENT_MAP_CONVERTER_TRANSPARENCY_VALUE_ERROR to "투명도는 0이상 100이하여야합니다.",
NON_EFFECT_MAP_CONVERTER_LIST to "목록 : {0}",
NON_EFFECT_MAP_CONVERTER_LIST_INPUT_MESSAGE to "제거하고 싶은 effect를 콤마(,)를 통해 구분해서 입력해주세요 : ",
NON_EFFECT_MAP_CONVERTER_ERROR_UNKNOWN_EVENT_TYPE to "알 수 없는 event type 입니다!({0})",
NON_EFFECT_MAP_CONVERTER_LIST_ERROR_EMPTY to "제거할 effect가 없습니다.",
)
private fun chineseCodeMap(): Map<I18nCode, String> =
mapOf(
PROGRAM_PRESS_ENTER_TO_CONTINUE to "按Enter键继续",
PROGRAM_OPTION_1 to "1. 外圈转换",
PROGRAM_OPTION_2 to "2. 直线转换",
PROGRAM_OPTION_3 to "3. 模式转换",
PROGRAM_OPTION_4 to "4. 所有轨道添加旋转/删除率转换",
PROGRAM_OPTION_5 to "5. 去掉特效",
PROGRAM_OPTION_6 to "6. 透明度转换",
PROGRAM_OPTION_7 to "7. Bpm乘数- > Bpm转换",
PROGRAM_OPTION_8 to "8. 无变速转换",
PROGRAM_OPTION_9 to "9. 全部轨道变成bpm乘数",
PROGRAM_OPTION_10 to "10. 所有轨道变成随机bpm",
PROGRAM_OPTION_11 to "11. 中旋转换",
PROGRAM_OPTION_12 to "12. 多押转换",
PROGRAM_OPTION_13 to "13. 行星数量转换",
PROGRAM_OPTION_14 to "14. 退出",
INPUT to "Input : ",
PROGRAM_EXIT to "终止程序",
PROGRAM_CONVERT_MESSAGE_1 to "*\"all\" 将转换除 backup.adofai 之外的所有子文件夹中的文件",
PROGRAM_CONVERT_MESSAGE_2 to "路径(包括.adofai):",
ERROR_FILE_NOT_EXIST to "文件不存在 ({1})",
ERROR_CANNOT_LOAD_FILE to "加载文件失败",
ERROR_CANNOT_LOAD_PATTERN to "读取模式失败",
PROGRAM_INPUT_LANGUAGE to "输入语言({0}) : ",
PROGRAM_INPUT_LANGUAGE_ERROR to "不支持的语言",
TWIRL_CONVERTER_ROTATION_RATE to "旋转添加/删除率(0.0~1.0):",
TWIRL_CONVERTER_ROTATION_RATE_ERROR to "旋转必须大于或等于 0 且小于或等于 1.0。",
SHAPED_MAP_CONVERTER_INPUT_FILE_OR_PATTERN_1 to "*必须在.adofai文件中以路径数据或角度数据的格式输入*",
SHAPED_MAP_CONVERTER_INPUT_FILE_OR_PATTERN_2 to "模式(或 .adofai 文件路径):",
SHAPED_MAP_CONVERTER_ERROR_PATTERN_TILE_TOO_SHORT to "图案中的轨道太少。",
SHAPED_MAP_CONVERTER_ERROR_SHAPE_ANGLES_NULL to "形状角度为空",
SHAPED_MAP_CONVERTER_ERROR_PATTERN_ANGLE_TOO_SHORT to "图案中的角度数太少。",
PSEUDO_MAP_CONVERTER_PSEUDO_AMOUNT to "伪押数量:",
PSEUDO_MAP_CONVERTER_PSEUDO_MAX_ANGLE to "伪押最大度数:",
PSEUDO_MAP_CONVERTER_REMOVE_COLOR_TRACK_QUESTION to "您确定要删除颜色轨道吗? (y/n) (如果颜色轨道过多,游戏可能会停止。): ",
PSEUDO_MAP_CONVERTER_PSEUDO_AMOUNT_ERROR to "伪押值太低! 请设置为1或更高!",
PSEUDO_MAP_CONVERTER_PSEUDO_MAX_ANGLE_ERROR to "伪押值太低! 请设置为1或更高!",
PLANET_NUMBER_MAP_CONVERTER_PLANET_NUMBER to "行星数量 ",
PLANET_NUMBER_MAP_CONVERTER_KEEP_ORIGINAL_SHAPE to "是否保持原图形状(确定,否)(确定输入true,否输入false):",
PLANET_NUMBER_MAP_CONVERTER_PLANET_NUMBER_ERROR to "行星数量太少了! 请使用 2 或更高的值!",
NO_SPEED_CHANGE_MAP_CONVERTER_DEST_BPM to "目标BPM:",
NO_SPEED_CHANGE_MAP_CONVERTER_DEST_BPM_ERROR to "目标 BPM 必须大于零。",
CHAOS_BPM_MAP_CONVERTER_VIBRATE_RATE to "摆动角度的百分比(0 到 1):",
BPM_MULTIPLY_MAP_CONVERTER_MULTIPLY_VALUE to "乘数值:",
BPM_MULTIPLY_MAP_CONVERTER_MULTIPLY_VALUE_ERROR to "乘数值太高。 请使其少于 {0} 次",
ALL_MIDSPIN_MAP_CONVERTER_MIDSPIN_AMOUNT to "中旋量:",
ALL_MIDSPIN_MAP_CONVERTER_MIDSPIN_AMOUNT_ERROR to "中旋量太小! 请输入一个大于 0 的值!",
TRANSPARENT_MAP_CONVERTER_TRANSPARENCY_VALUE to "透明度(0~100):",
TRANSPARENT_MAP_CONVERTER_TRANSPARENCY_VALUE_ERROR to "透明度必须在0和100之间",
NON_EFFECT_MAP_CONVERTER_LIST to "效果列表 : {0}",
NON_EFFECT_MAP_CONVERTER_LIST_INPUT_MESSAGE to "输入要删除的效果,用逗号 (,) 分隔: ",
NON_EFFECT_MAP_CONVERTER_ERROR_UNKNOWN_EVENT_TYPE to "未知事件类型!({0})",
NON_EFFECT_MAP_CONVERTER_LIST_ERROR_EMPTY to "没有这种效果去删除",
)
}
| 1 | null | 1 | 12 | 145166df83045a3915629239a7c2ce6f3d7c461c | 13,409 | ADOFAI-Map-Converter | Apache License 2.0 |
src/main/kotlin/io/github/ydwk/yde/rest/methods/MessageRestAPIMethods.kt | YDWK | 609,956,533 | false | null | /*
* Copyright 2022 YDWK inc.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
*
* you may not use this file except in compliance with the License.
*
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package io.github.ydwk.yde.rest.methods
import io.github.ydwk.yde.rest.action.NoResultExecutableRestAction
interface MessageRestAPIMethods {
/**
* Delete a message.
*
* @param messageId The id of the message to delete.
* @param channelId The id of the channel the message is in.
* @return A [NoResultExecutableRestAction] that will delete the message.
*/
fun deleteMessage(messageId: Long, channelId: Long): NoResultExecutableRestAction
}
| 7 | Kotlin | 0 | 0 | 9c87ae75c012bd77a605b156e599c2e7e61dbc58 | 1,080 | YDE | Apache License 2.0 |
plugin-build/src/main/kotlin/io/sentry/android/gradle/instrumentation/okhttp/OkHttpEventListener.kt | getsentry | 241,145,606 | false | null | package io.sentry.android.gradle.instrumentation.okhttp
import com.android.build.api.instrumentation.ClassContext
import io.sentry.android.gradle.instrumentation.ClassInstrumentable
import io.sentry.android.gradle.instrumentation.CommonClassVisitor
import io.sentry.android.gradle.instrumentation.MethodContext
import io.sentry.android.gradle.instrumentation.MethodInstrumentable
import io.sentry.android.gradle.instrumentation.SpanAddingClassVisitorFactory
import io.sentry.android.gradle.instrumentation.okhttp.visitor.OkHttpEventListenerMethodVisitor
import org.objectweb.asm.ClassVisitor
import org.objectweb.asm.MethodVisitor
class OkHttpEventListener : ClassInstrumentable {
override val fqName: String get() = "okhttp3.OkHttpClient"
override fun getVisitor(
instrumentableContext: ClassContext,
apiVersion: Int,
originalVisitor: ClassVisitor,
parameters: SpanAddingClassVisitorFactory.SpanAddingParameters
): ClassVisitor = CommonClassVisitor(
apiVersion = apiVersion,
classVisitor = originalVisitor,
className = fqName.substringAfterLast('.'),
methodInstrumentables = listOf(OkHttpEventListenerMethodInstrumentable()),
parameters = parameters
)
}
class OkHttpEventListenerMethodInstrumentable : MethodInstrumentable {
override val fqName: String get() = "<init>"
override fun getVisitor(
instrumentableContext: MethodContext,
apiVersion: Int,
originalVisitor: MethodVisitor,
parameters: SpanAddingClassVisitorFactory.SpanAddingParameters
): MethodVisitor = OkHttpEventListenerMethodVisitor(
apiVersion = apiVersion,
originalVisitor = originalVisitor,
instrumentableContext = instrumentableContext
)
override fun isInstrumentable(data: MethodContext): Boolean {
return data.name == fqName && data.descriptor == "(Lokhttp3/OkHttpClient\$Builder;)V"
}
}
| 39 | null | 32 | 143 | 9c11c5e637e0900f35a66a95c7553d0616f0c15c | 1,941 | sentry-android-gradle-plugin | MIT License |
core/core/src/commonMain/kotlin/zakadabar/core/route/EmptyRouter.kt | spxbhuhb | 290,390,793 | false | null | /*
* Copyright © 2020-2021, Simplexion, Hungary and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package zakadabar.core.route
import zakadabar.core.authorize.Executor
import zakadabar.core.data.ActionBo
import zakadabar.core.data.BaseBo
import zakadabar.core.data.EntityBo
import zakadabar.core.data.QueryBo
import kotlin.reflect.KClass
/**
* Does not add any endpoints.
*/
class EmptyRouter<T : EntityBo<T>> : BusinessLogicRouter<T> {
override var qualifier = "empty"
override fun installRoutes(context: Any) {
}
override fun <RQ : ActionBo<RS>, RS : Any?> action(actionClass: KClass<RQ>, actionFunc: (Executor, RQ) -> RS) {
throw IllegalArgumentException("EmptyRouter cannot route actions")
}
override fun prepareAction(
actionType : String,
actionData : String
) : Pair<(Executor, BaseBo) -> Any?, BaseBo> {
throw IllegalArgumentException("EmptyRouter cannot route actions")
}
override fun <RQ : QueryBo<RS>, RS : Any?> query(queryClass: KClass<RQ>, queryFunc: (Executor, RQ) -> RS) {
throw IllegalArgumentException("EmptyRouter cannot route queries")
}
override fun funcForAction(
actionBo : BaseBo
) : (Executor, BaseBo) -> Any? {
throw IllegalArgumentException("EmptyRouter cannot route actions")
}
override fun funcForQuery(
queryBo : BaseBo
) : (Executor, BaseBo) -> Any? {
throw IllegalArgumentException("EmptyRouter cannot route queries")
}
} | 6 | null | 3 | 24 | 61ac92ff04eb53bff5b9a9b2649bd4866f469942 | 1,537 | zakadabar-stack | Apache License 2.0 |
browser-kotlin/src/jsMain/kotlin/web/file/File.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6272741} | // Automatically generated - do not modify!
package web.file
import js.array.ReadonlyArray
import web.blob.Blob
import web.blob.BlobPart
import web.time.EpochTimeStamp
/**
* Provides information about files and allows JavaScript in a web page to access their content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/File)
*/
external class File(
fileBits: ReadonlyArray<BlobPart>,
fileName: String,
options: FilePropertyBag = definedExternally,
) : Blob {
/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified)
*/
val lastModified: EpochTimeStamp
/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name)
*/
val name: String
/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath)
*/
val webkitRelativePath: String
}
| 33 | Kotlin | 8 | 36 | 95b065622a9445caf058ad2581f4c91f9e2b0d91 | 888 | types-kotlin | Apache License 2.0 |
modules/network/fixture/src/commonMain/kotlin/com/hadilq/mastan/network/FakeNetworkLogicIo.kt | hadilq | 715,823,678 | false | {"Kotlin": 689784, "Nix": 4671} | /**
* Copyright 2023 Hadi Lashkari Ghouchani
*
* Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package com.hadilq.mastan.network
import com.hadilq.mastan.auth.AccessTokenRequest
class FakeNetworkLogicIo(
override val api: Api = FakeApi(),
override val authRepository: AuthRepository = FakeAuthRepository(),
private val userApiResponse: UserApi = FakeUserApi(),
) : NetworkLogicIo {
override fun userApi(accessTokenRequest: AccessTokenRequest): UserApi {
return userApiResponse
}
} | 0 | Kotlin | 0 | 3 | f17caa73c487d927d651e788215aa30b8b9cf842 | 1,020 | Mastan | Apache License 2.0 |
app/src/main/java/com/zj/play/profile/share/ShareRepository.kt | zhujiang521 | 265,420,729 | false | null | package com.zj.play.profile.share
import com.zj.network.base.PlayAndroidNetwork
import com.zj.play.main.login.fires
import dagger.hilt.android.scopes.ActivityScoped
import javax.inject.Inject
/**
* 版权:Zhujiang 个人版权
*
* @author zhujiang
* 创建日期:2020/9/23
* 描述:PlayAndroid
*
*/
@ActivityScoped
class ShareRepository @Inject constructor() {
fun getMyShareList(page: Int) = fires { PlayAndroidNetwork.getMyShareList(page) }
fun getShareList(cid: Int, page: Int) = fires { PlayAndroidNetwork.getShareList(cid, page) }
fun deleteMyArticle(cid: Int) = fires { PlayAndroidNetwork.deleteMyArticle(cid) }
fun shareArticle(title: String, link: String) =
fires { PlayAndroidNetwork.shareArticle(title, link) }
} | 6 | Kotlin | 151 | 977 | 11111a15f4fa9f43668b4f6356074b531f134baf | 736 | PlayAndroid | MIT License |
app/src/main/java/com/liuxing/daily/adapter/DailySearchAdapter.kt | LiuXing0327 | 866,029,430 | false | null | package com.liuxing.daily.adapter
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.preference.PreferenceManager
import androidx.recyclerview.widget.RecyclerView
import com.google.android.material.card.MaterialCardView
import com.google.android.material.textview.MaterialTextView
import com.liuxing.daily.R
import com.liuxing.daily.entity.DailyEntity
import com.liuxing.daily.listener.OnItemClickListener
import com.liuxing.daily.listener.OnItemLongClickListener
import com.liuxing.daily.util.ConstUtil.VIEW_TYPE_DAILY
import com.liuxing.daily.util.ConstUtil.VIEW_TYPE_HEADER
import com.liuxing.daily.util.DateUtil
import java.util.Date
import java.util.Objects
class DailyAdapter : RecyclerView.Adapter<RecyclerView.ViewHolder>() {
private var categorizedList: List<Any> = ArrayList()
var headerYearMonth: Boolean = true
fun setDailyList(context: Context, dailyList: List<DailyEntity>) {
val sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context)
val groupedMap = dailyList.withIndex()
.groupBy { DateUtil.getDateString(2, Date(it.value.dateTime!!)).substring(0, 7) }
val toSortedMap = groupedMap.mapKeys { dailyEntity ->
dailyEntity.key to DateUtil.getDateString(
2,
Date(dailyEntity.value.first().value.dateTime!!)
)
}.mapKeys { it.key.first }
val resultList = mutableListOf<Any>()
toSortedMap.forEach { (yearMonth, list) ->
val headerBoolean = sharedPreferences.getBoolean(
"switch_preference_header_display",
true
)
headerYearMonth = headerBoolean
// 判断设置开关添加 -> 年月 ?: 月
when {
headerBoolean -> {
resultList.add(yearMonth)
}
else -> {
when {
Objects.equals(yearMonth.substring(5, 6), "0") -> {
resultList.add(yearMonth.substring(6, 7))
}
else -> {
resultList.add(yearMonth.substring(5, 7))
}
}
}
}
// 添加当天的 DailyEntity 及其索引
resultList.addAll(list.sortedByDescending { it.value.dateTime }
.map { Pair(it.value, it.index) })
}
categorizedList = resultList
notifyDataSetChanged()
}
override fun getItemViewType(position: Int): Int {
return if (categorizedList[position] is String) VIEW_TYPE_HEADER else VIEW_TYPE_DAILY
}
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): RecyclerView.ViewHolder {
return if (viewType == VIEW_TYPE_HEADER) {
val view = LayoutInflater.from(parent.context)
.inflate(R.layout.item_daily_header, parent, false)
DateViewHolder(view)
} else {
val view = LayoutInflater.from(parent.context)
.inflate(R.layout.item_daily_list, parent, false)
DailyViewHolder(view)
}
}
override fun onBindViewHolder(holder: RecyclerView.ViewHolder, position: Int) {
if (holder is DateViewHolder) {
holder.tvDateHeader.text = categorizedList[position] as String
} else if (holder is DailyViewHolder) {
val (dailyEntity, originalIndex) = categorizedList[position] as Pair<DailyEntity, Int>
if (dailyEntity.title.equals("")) {
holder.tvTitle.visibility = View.GONE
} else {
holder.tvTitle.visibility = View.VISIBLE
}
if (dailyEntity.content.equals("")) {
holder.tvContent.visibility = View.GONE
} else {
holder.tvContent.visibility = View.VISIBLE
}
holder.tvTitle.text = dailyEntity.title
holder.tvContent.text = dailyEntity.content
holder.tvDateTime.text = DateUtil.getDateString(2, Date(dailyEntity.dateTime!!))
setBackgroundColor(dailyEntity, holder)
// 将原始索引传递给点击事件处理
holder.itemView.setOnClickListener {
onItemClickListener?.onItemClick(originalIndex)
}
holder.itemView.setOnLongClickListener {
onItemLongClickListener?.onItemLongOnClick(originalIndex)
true
}
}
}
override fun getItemCount(): Int = categorizedList.size
class DateViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
val tvDateHeader: MaterialTextView = itemView.findViewById(R.id.tv_year_date)
}
class DailyViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
val tvTitle: MaterialTextView = itemView.findViewById(R.id.tv_title)
val tvContent: MaterialTextView = itemView.findViewById(R.id.tv_content)
val tvDateTime: MaterialTextView = itemView.findViewById(R.id.tv_date_time)
val cardView: MaterialCardView = itemView.findViewById(R.id.main_layout)
}
companion object {
private var onItemClickListener: OnItemClickListener? = null
private var onItemLongClickListener: OnItemLongClickListener? = null
}
fun setOnItemClickListener(listener: OnItemClickListener) {
onItemClickListener = listener
}
fun setOnItemLongClickListener(listener: OnItemLongClickListener) {
onItemLongClickListener = listener
}
/**
* 设置背景颜色
*
* @param dailyEntity 日记 Entity
* @param holder 日记 Holder
*/
private fun setBackgroundColor(dailyEntity: DailyEntity, holder: DailyViewHolder) {
val backgroundColorIndex = dailyEntity.backgroundColorIndex
when (backgroundColorIndex) {
1 -> holder.cardView.setCardBackgroundColor(
ContextCompat.getColor(holder.cardView.context, R.color.color_2)
)
2 -> holder.cardView.setCardBackgroundColor(
ContextCompat.getColor(holder.cardView.context, R.color.color_3)
)
3 -> holder.cardView.setCardBackgroundColor(
ContextCompat.getColor(holder.cardView.context, R.color.color_4)
)
else -> holder.cardView.setCardBackgroundColor(
ContextCompat.getColor(holder.cardView.context, android.R.color.transparent)
)
}
}
} | 0 | null | 0 | 8 | 21f1d6af69d0fa79f729b3b08f09146cbc4b6a6a | 6,595 | LiuXingDaily | Apache License 2.0 |
compose/ui/ui-graphics-lint/src/main/java/androidx/compose/ui/graphics/lint/UiGraphicsIssueRegistry.kt | RikkaW | 389,105,112 | false | null | /*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package androidx.compose.material3.lint
import com.android.tools.lint.client.api.IssueRegistry
import com.android.tools.lint.client.api.Vendor
import com.android.tools.lint.detector.api.CURRENT_API
/** [IssueRegistry] containing Material3 specific lint issues. */
class Material3IssueRegistry : IssueRegistry() {
// Tests are run with this version. We ensure that with ApiLintVersionsTest
override val api = 16
override val minApi = CURRENT_API
override val issues
get() =
listOf(
MaterialImportDetector.UsingMaterialAndMaterial3Libraries,
ScaffoldPaddingDetector.UnusedMaterial3ScaffoldPaddingParameter
)
override val vendor =
Vendor(
vendorName = "Jetpack Compose",
identifier = "androidx.compose.material3",
feedbackUrl = "https://issuetracker.google.com/issues/new?component=612128"
)
}
| 29 | null | 937 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 1,547 | androidx | Apache License 2.0 |
app/src/main/kotlin/org/jdc/template/ui/navigation/MainNav.kt | jeffdcamp | 12,853,600 | false | null | package org.jdc.template.ui.navigation
import android.content.Context
import androidx.navigation.NavGraph
import androidx.navigation.createGraph
import androidx.navigation.fragment.NavHostFragment
import org.jdc.template.ux.about.AboutFragment
import org.jdc.template.ux.about.AboutRoute
import org.jdc.template.ux.acknowledgement.AcknowledgmentsFragment
import org.jdc.template.ux.acknowledgement.AcknowledgmentsRoute
import org.jdc.template.ux.directory.DirectoryFragment
import org.jdc.template.ux.directory.DirectoryRoute
import org.jdc.template.ux.individual.IndividualFragment
import org.jdc.template.ux.individual.IndividualRoute
import org.jdc.template.ux.individualedit.IndividualEditFragment
import org.jdc.template.ux.individualedit.IndividualEditRoute
import org.jdc.template.ux.main.TestActivity
import org.jdc.template.ux.main.TestRoute
import org.jdc.template.ux.settings.SettingsFragment
import org.jdc.template.ux.settings.SettingsRoute
import org.jdc.template.ux.settings.WorkManagerMonitorFragment
object MainNav {
fun createNavGraph(context: Context, navHostFragment: NavHostFragment): NavGraph {
return navHostFragment.createGraph(startDestination = DirectoryRoute.routeDefinition) {
// App routes
DirectoryRoute.addNavigationRoute<DirectoryFragment>(this, context)
IndividualRoute.addNavigationRoute<IndividualFragment>(this, context)
IndividualEditRoute.addNavigationRoute<IndividualEditFragment>(this, context)
SettingsRoute.addNavigationRoute<SettingsFragment>(this, context)
AboutRoute.addNavigationRoute<AboutFragment>(this, context)
AcknowledgmentsRoute.addNavigationRoute<AcknowledgmentsFragment>(this, context)
TestRoute.addNavigationRoute<TestActivity>(this, context)
// Library routes
WorkManagerStatusRoute.addNavigationRoute<WorkManagerMonitorFragment>(this, context)
}
}
} | 0 | null | 33 | 86 | 4bc4b5426f372a13a1ae8ae61f1cdfb8992582e4 | 1,955 | android-template | Apache License 2.0 |
module/nms-util/src/main/kotlin/taboolib/module/nms/DataSerializerFactory.kt | TabooLib | 120,413,612 | false | null | package taboolib.module.nms
import taboolib.common.util.unsafeLazy
/**
* Adyeshach
* taboolib.module.nms.DataSerializerFactory
*
* @author 坏黑
* @since 2022/12/12 23:04
*/
interface DataSerializerFactory {
fun newSerializer(): DataSerializer
}
/**
* 创建一个 [DataSerializer]
*/
fun dataSerializerBuilder(builder: DataSerializer.() -> Unit = {}): DataSerializer {
return nmsProxy<DataSerializerFactory>().newSerializer().also(builder)
} | 9 | null | 96 | 294 | 0a54860dc621969d99d546f34585cfa5519fe98a | 451 | taboolib | MIT License |
kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/FloatingPointParser.kt | JetBrains | 3,432,266 | false | null | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (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.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package kotlin.native.internal
import kotlin.comparisons.*
/**
* Takes a String and an integer exponent. The String should hold a positive
* integer value (or zero). The exponent will be used to calculate the
* floating point number by taking the positive integer the String
* represents and multiplying by 10 raised to the power of the
* exponent. Returns the closest double value to the real number.
* @param s the String that will be parsed to a floating point
* @param e an int represent the 10 to part
* @return the double closest to the real number
* @exception NumberFormatException if the String doesn't represent a positive integer value
*/
@GCUnsafeCall("Kotlin_native_FloatingPointParser_parseDoubleImpl")
private external fun parseDoubleImpl(s: String, e: Int): Double
/**
* Takes a String and an integer exponent. The String should hold a positive
* integer value (or zero). The exponent will be used to calculate the
* floating point number by taking the positive integer the String
* represents and multiplying by 10 raised to the power of the
* exponent. Returns the closest float value to the real number.
* @param s the String that will be parsed to a floating point
* @param e an int represent the 10 to part
* @return the float closest to the real number
* @exception NumberFormatException if the String doesn't represent a positive integer value
*/
@GCUnsafeCall("Kotlin_native_FloatingPointParser_parseFloatImpl")
private external fun parseFloatImpl(s: String, e: Int): Float
/**
* Used to parse a string and return either a single or double precision
* floating point number.
*/
internal object FloatingPointParser {
/*
* All number with exponent larger than MAX_EXP can be treated as infinity.
* All number with exponent smaller than MIN_EXP can be treated as zero.
* Exponent is 10 based.
* Eg. double's min value is 5e-324, so double "1e-325" should be parsed as 0.0
*/
private const val FLOAT_MIN_EXP = -46
private const val FLOAT_MAX_EXP = 38
private const val DOUBLE_MIN_EXP = -324
private const val DOUBLE_MAX_EXP = 308
private data class StringExponentPair(val s: String, val e: Int, val negative: Boolean)
/**
* Adaptor for parsing string and returning the closest Double value to the real number in the string.
*
* @param string the String that will be parsed to Double
* @return the Double number closest to the real number
* @exception NumberFormatException if the String doesn't represent a number of type Double
*/
fun parseDouble(string: String): Double =
parse(string, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, Double.NaN,
0.0, DOUBLE_MAX_EXP, DOUBLE_MIN_EXP, ::parseDoubleImpl, HexStringParser::parseDouble)
/**
* Adaptor for parsing string and returning the closest Float value to the real number in the string.
*
* @param string the String that will be parsed to a Float
* @return the Float number closest to the real number
* @exception NumberFormatException if the String doesn't represent a number of type Float
*/
fun parseFloat(string: String): Float =
parse(string, Float.NEGATIVE_INFINITY, Float.POSITIVE_INFINITY, Float.NaN,
0.0f, FLOAT_MAX_EXP, FLOAT_MIN_EXP, ::parseFloatImpl, HexStringParser::parseFloat)
/**
* Common method for parsing floating point number, unified for Double and Float.
* Returns the closest Float or Double value to the real number in the string.
*
* @param string that will be parsed to a Float or a Double
* @param negativeInf will be returned if the value is infinitesimal
* @param positiveInf will be returned if the value is infinitely large
* @param nan will be returned if the value is NaN
* @param zero will be returned if the input value is 0.0
* @param maxExp maximum exponent size that can be processed, in case the input string has bigger number
* will return Infinity
* @param minExp minimum exponent size that can be processed, in case the input string has bigger number
* will return Minus Infinity
* @param parserImpl - native method that implements parsing and processing of a float/double value
* @param hexParserImpl - a method for parsing of the number in hex format
* @return the Float or Double number closest to the real number
* @exception NumberFormatException if the String doesn't represent a number of type T (Double or Float)
*/
private inline fun <reified T : Number> parse(string: String, negativeInf: T, positiveInf: T, nan: T, zero: T,
maxExp: Int, minExp: Int, parserImpl: (String, Int) -> T,
hexParserImpl: (String) -> T): T {
// Trim useless whitespaces.
val s = string.trim { it <= ' ' }
val length = s.length
// We should not process empty string values. Such check should not be duplicated in other methods below.
if (length == 0) {
throw NumberFormatException(s)
}
// Processing for a named number ("Infinity" or "NaN").
val last = s[length - 1]
if (last == 'y' || last == 'N') {
return parseNamed(s, length, negativeInf, positiveInf, nan)
}
// Check if the value could be a hexadecimal representation and parse it properly.
if (parseAsHex(s)) {
return hexParserImpl(s)
}
val info = initialParse(s)
// Two kinds of situation will directly return 0.0/0.0f:
// 1. info.s is 0;
// 2. actual exponent is less than double or float minimum exponent .
if ("0" == info.s || info.e + info.s.length - 1 < minExp) {
return if (info.negative) unaryMinus(zero) else zero
}
// If actual exponent is larger than maximum exponent then will return infinity.
// To prevent overflow checking twice.
if (info.e > maxExp || info.e + info.s.length - 1 > maxExp) {
return if (info.negative) negativeInf else positiveInf
}
val result = parserImpl(info.s, info.e)
return if (info.negative) unaryMinus(result) else result
}
/**
* To unify the logic of Double and Float parsing we need a common method to calculate a negative value.
* Unfortunately in this case we need to make uncheck cast to generic type T to have a proper return type.
*/
@Suppress("UNCHECKED_CAST")
private inline fun <reified T> unaryMinus(value: T): T {
return when (value) {
is Float -> -value as T
is Double -> -value as T
else -> throw NumberFormatException()
}
}
/**
* Takes a String and does some initial parsing. Should return a
* StringExponentPair containing a String with no leading or trailing white
* space and trailing zeroes eliminated. The exponent of the
* StringExponentPair will be used to calculate the floating point number by
* taking the positive integer the String represents and multiplying by 10
* raised to the power of the exponent.
*
* This method is not optimal, can cause performance issues. This logic can be done in one single run.
* It also violates Kotlin coding practices and should be refactored in the future after stabilizing the logic.
*
* @param string the String that will be parsed to a floating point
* @return a StringExponentPair with necessary values
* @exception NumberFormatException if the String doesn't pass basic tests
*/
private fun initialParse(string: String): StringExponentPair {
var s = string
var length = s.length
var negative = false
val decimal: Int
var shift: Int
var e = 0
var start = 0
var c: Char = s[length - 1]
// Checking that the initial string ends with one of valid prefixes(D/d/F/f) and skipping it.
if (c == 'D' || c == 'd' || c == 'F' || c == 'f') {
length--
if (length == 0)
throw NumberFormatException(s)
}
// Getting exponent separator from the string (E/e)
var end = maxOf(s.indexOf('E'), s.indexOf('e'))
if (end > -1) {
if (end + 1 == length)
throw NumberFormatException(s)
var exponentOffset = end + 1
if (s[exponentOffset] == '+') {
if (s[exponentOffset + 1] == '-') {
throw NumberFormatException(s)
}
exponentOffset++ // skip the plus sign
if (exponentOffset == length)
throw NumberFormatException(s)
}
val strExp = s.substring(exponentOffset, length)
try {
e = strExp.toInt()
} catch (ex: NumberFormatException) {
// strExp is not empty, so there are 2 situations the exception be thrown
// if the string is invalid we should throw exception, if the actual number
// is out of the range of Integer, we can still parse the original number to
// double or float.
var ch: Char
for (i in strExp.indices) {
ch = strExp[i]
if (ch < '0' || ch > '9') {
if (i == 0 && ch == '-')
continue
// ex contains the exponent substring only so throw
// a new exception with the correct string.
throw NumberFormatException(s)
}
}
e = if (strExp[0] == '-') Int.MIN_VALUE else Int.MAX_VALUE
}
} else {
end = length
}
if (length == 0)
throw NumberFormatException(s)
// skipping a sign at the beginning of the string
c = s[start]
if (c == '-') {
++start
--length
negative = true
} else if (c == '+') {
++start
--length
}
if (length == 0)
throw NumberFormatException(s)
// Getting dot separator from the string (E/e)
decimal = s.indexOf('.')
s = if (decimal > -1) {
shift = end - decimal - 1
// Prevent e overflow, shift >= 0.
if (e >= 0 || e - Int.MIN_VALUE > shift) {
e -= shift
}
s.substring(start, decimal) + s.substring(decimal + 1, end)
} else {
s.substring(start, end)
}
// Optimal validation of characters in the string to prevent incorrect parsing.
// Number after an exponent were validated already.
s.forEach {
if (it < '0' || it > '9') {
throw NumberFormatException()
}
}
length = s.length
if (length == 0)
throw NumberFormatException()
end = length
while (end > 1 && s[end - 1] == '0')
--end
start = 0
while (start < end - 1 && s[start] == '0')
start++
if (end != length || start != 0) {
shift = length - end
if (e <= 0 || Int.MAX_VALUE - e > shift) {
e += shift
}
s = s.substring(start, end)
}
// Trim the length of very small numbers, natives can only handle down to E-309.
val APPROX_MIN_MAGNITUDE = -359
val MAX_DIGITS = 52
length = s.length
if (length > MAX_DIGITS && e < APPROX_MIN_MAGNITUDE) {
val d = minOf(APPROX_MIN_MAGNITUDE - e, length - 1)
s = s.substring(0, length - d)
e += d
}
return StringExponentPair(s, e, negative)
}
/*
* Assumes the string is trimmed. This method is used for both Double and Float "named" numbers.
* This method was needed to unify the common logic for Double and Float processing.
* "Inifinity" and "NaN" string values will be covered by this method.
*/
private fun <T> parseNamed(namedFloat: String, length: Int,
negativeInf: T, positiveInf: T, nan: T): T {
// Valid strings are only +Nan, NaN, -Nan, +Infinity, Infinity, -Infinity.
if (length != 3 && length != 4 && length != 8 && length != 9) {
throw NumberFormatException()
}
var negative = false
val cmpstart = when (namedFloat[0]) {
'-' -> {
negative = true
1
}
'+' -> 1
else -> 0
}
return when (namedFloat.subSequence(cmpstart, length)) {
"Infinity" -> if (negative) negativeInf else positiveInf
"NaN" -> nan
else -> throw NumberFormatException()
}
}
/*
* Answers true if the string should be parsed as a hex encoding.
* Assumes the string is trimmed.
*/
private fun parseAsHex(s: String): Boolean {
val length = s.length
if (length < 2) {
return false
}
var first = s[0]
var second = s[1]
if (first == '+' || first == '-') {
// Move along.
if (length < 3) {
return false
}
first = second
second = s[2]
}
return first == '0' && (second == 'x' || second == 'X')
}
} | 184 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 14,440 | kotlin | Apache License 2.0 |
src/test/kotlin/io/kotlintest/specs/FeatureSpecLambdaTest.kt | ruslanas | 125,570,929 | false | {"Markdown": 4, "Java Properties": 1, "Gradle": 1, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "YAML": 1, "SVG": 1, "INI": 1, "Kotlin": 86, "Java": 2} | package io.kotlintest.specs
import io.kotlintest.shouldBe
class FeatureSpecLambdaTest : FeatureSpec({
feature("string.length") {
scenario("I call \"foobar.length\"") {
"foobar".length shouldBe 6
}
}
}) | 1 | null | 1 | 1 | e0f8062f9bed2568601cf52d959ece5baa645b7f | 221 | kotlintest | Apache License 2.0 |
src/main/kotlin/ui/editor/EditorVisualTransformation.kt | Daniel0110000 | 702,220,698 | false | {"Kotlin": 240986} | package ui.editor
import androidx.compose.ui.text.AnnotatedString
import androidx.compose.ui.text.input.OffsetMapping
import androidx.compose.ui.text.input.TransformedText
import androidx.compose.ui.text.input.VisualTransformation
import domain.model.SyntaxHighlightConfigModel
import domain.model.SyntaxHighlightRegexModel
class EditorVisualTransformation(
private val colors: SyntaxHighlightConfigModel,
private val model: SyntaxHighlightRegexModel
): VisualTransformation {
/**
* Apply the syntax keyword highlighting to the input text
*
* @param text The input to be transformed
* @return TransformedText containing the modified text and offset mapping
*/
override fun filter(text: AnnotatedString): TransformedText = TransformedText(
text = SyntaxKeywordHighlighter.codeString(text.text, colors, model),
offsetMapping = OffsetMapping.Identity
)
} | 0 | Kotlin | 1 | 20 | e5b9d841990872c40a971f94895a469b59b59866 | 914 | DeepCodeStudio | Apache License 2.0 |
src/com/azoft/json2dart/delegates/generator/GeneratorDelegate.kt | Azoft | 162,413,496 | false | null | package com.azoft.json2dart.delegates.generator
import com.azoft.json2dart.delegates.MessageDelegate
import com.intellij.ide.projectView.ProjectView
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.CommonDataKeys
import com.intellij.openapi.actionSystem.LangDataKeys
import com.intellij.openapi.progress.ProgressIndicator
import com.intellij.openapi.progress.ProgressManager
import com.intellij.openapi.progress.Task
import java.io.File
import java.io.IOException
class GeneratorDelegate(
private val messageDelegate: MessageDelegate = MessageDelegate()
) {
fun runGeneration(event: AnActionEvent, fileName: String, json: String, finalFields: Boolean) {
ProgressManager.getInstance().run(
object : Task.Backgroundable(
event.project, "Dart file generating", false
) {
override fun run(indicator: ProgressIndicator) {
try {
DartClassGenerator().generateFromJson(
json,
File(event.getData(CommonDataKeys.VIRTUAL_FILE)?.path),
fileName.takeIf { it.isNotBlank() } ?: "response",
finalFields
)
messageDelegate.showMessage("Dart class has been generated")
} catch (e: Throwable) {
when(e) {
is IOException -> messageDelegate.onException(FileIOException())
else -> messageDelegate.onException(e)
}
} finally {
indicator.stop()
ProjectView.getInstance(event.project).refresh()
event.getData(LangDataKeys.VIRTUAL_FILE)?.refresh(false, true)
}
}
}
)
}
} | 4 | Kotlin | 8 | 36 | 8c1692b85b384717b875d99481cd8285d0f3f8c0 | 1,945 | json2dart-converter | Apache License 2.0 |
app/src/main/java/ch/admin/foitt/pilotwallet/feature/onboarding/presentation/RegisterBiometricsScreenState.kt | e-id-admin | 775,912,525 | false | {"Kotlin": 1521284} | package ch.admin.foitt.pilotwallet.feature.onboarding.presentation
sealed interface RegisterBiometricsScreenState {
data object Initial : RegisterBiometricsScreenState
data object Available : RegisterBiometricsScreenState
data object Lockout : RegisterBiometricsScreenState
data object Error : RegisterBiometricsScreenState
data object Disabled : RegisterBiometricsScreenState
}
| 1 | Kotlin | 1 | 4 | 6572b418ec5abc5d94b18510ffa87a1e433a5c82 | 400 | eidch-pilot-android-wallet | MIT License |
graphql-kotlin-federation/src/main/kotlin/com/expediagroup/graphql/federation/FederatedSchemaValidator.kt | tobias-f | 207,923,482 | true | {"Kotlin": 401091, "HTML": 20063, "Shell": 2887} | package com.expedia.graphql.federation
import com.expedia.graphql.federation.directives.FieldSet
import com.expedia.graphql.federation.exception.InvalidFederatedSchema
import graphql.schema.GraphQLDirective
import graphql.schema.GraphQLDirectiveContainer
import graphql.schema.GraphQLFieldDefinition
import graphql.schema.GraphQLInterfaceType
import graphql.schema.GraphQLList
import graphql.schema.GraphQLObjectType
import graphql.schema.GraphQLType
import graphql.schema.GraphQLTypeUtil
import graphql.schema.GraphQLUnionType
/**
* Validates generated federated objects.
*/
class FederatedSchemaValidator {
/**
* Validates target GraphQLType whether it is a valid federated object.
*
* Verifies:
* - base type doesn't declare any @external fields
* - @key directive references existing fields
* - @key directive on extended types references @external fields
* - @requires directive is only applicable on extended types and references @external fields
* - @provides directive references valid @external fields
*/
fun validateGraphQLType(type: GraphQLType) {
val unwrappedType = GraphQLTypeUtil.unwrapAll(type)
if (unwrappedType is GraphQLObjectType && unwrappedType.isFederatedType()) {
validate(unwrappedType.name, unwrappedType.fieldDefinitions, unwrappedType.directivesByName)
} else if (unwrappedType is GraphQLInterfaceType && unwrappedType.isFederatedType()) {
validate(unwrappedType.name, unwrappedType.fieldDefinitions, unwrappedType.directivesByName)
}
}
private fun validate(federatedType: String, fields: List<GraphQLFieldDefinition>, directives: Map<String, GraphQLDirective>) {
val errors = mutableListOf<String>()
val fieldMap = fields.associateBy { it.name }
val extendedType = directives.containsKey("extends")
// [OK] @key directive is specified
// [OK] @key references valid existing fields
// [OK] @key on @extended type references @external fields
// [ERROR] @key references fields resulting in list
// [ERROR] @key references fields resulting in union
// [ERROR] @key references fields resulting in interface
errors.addAll(validateDirective(federatedType, "key", directives, fieldMap, extendedType))
for (field in fields) {
if (field.getDirective("requires") != null) {
errors.addAll(validateRequiresDirective(federatedType, field, fieldMap, extendedType))
}
if (field.getDirective("provides") != null) {
errors.addAll(validateProvidesDirective(federatedType, field))
}
}
// [ERROR] federated base type references @external fields
if (!extendedType) {
val externalFields = fields.filter { it.getDirective("external") != null }.map { it.name }
if (externalFields.isNotEmpty()) {
errors.add("base $federatedType type has fields marked with @external directive, fields=$externalFields")
}
}
if (errors.isNotEmpty()) {
throw InvalidFederatedSchema(errors)
}
}
// [OK] @requires references valid fields marked @external
// [ERROR] @requires specified on base type
// [ERROR] @requires specifies non-existent fields
private fun validateRequiresDirective(validatedType: String, validatedField: GraphQLFieldDefinition, fieldMap: Map<String, GraphQLFieldDefinition>, extendedType: Boolean): List<String> {
val errors = mutableListOf<String>()
if (extendedType) {
errors.addAll(validateDirective("$validatedType.${validatedField.name}", "requires", validatedField.directivesByName, fieldMap, extendedType))
} else {
errors.add("base $validatedType type has fields marked with @requires directive, validatedField=${validatedField.name}")
}
return errors
}
// [OK] @provides on base type references valid @external fields on @extend object
// [ERROR] @provides on base type references local object fields
// [ERROR] @provides on base type references local fields on @extends object
// [ERROR] @provides references interface type
// [OK] @provides references list of valid @extend objects
// [ERROR] @provides references @external list field
// [ERROR] @provides references @external interface field
private fun validateProvidesDirective(federatedType: String, field: GraphQLFieldDefinition): List<String> {
val errors = mutableListOf<String>()
val returnType = GraphQLTypeUtil.unwrapAll(field.type)
if (returnType is GraphQLObjectType) {
if (!returnType.isExtendedType()) {
errors.add("@provides directive is specified on a $federatedType.${field.name} field references local object")
} else {
val returnTypeFields = returnType.fieldDefinitions.associateBy { it.name }
// @provides is applicable on both base and federated types and always references @external fields
errors.addAll(
validateDirective(
"$federatedType.${field.name}",
"provides",
field.directivesByName,
returnTypeFields,
true))
}
} else {
errors.add("@provides directive is specified on a $federatedType.${field.name} field but it does not return an object type")
}
return errors
}
private fun validateDirective(
validatedType: String,
targetDirective: String,
directives: Map<String, GraphQLDirective>,
fieldMap: Map<String, GraphQLFieldDefinition>,
extendedType: Boolean
): List<String> {
val validationErrors = mutableListOf<String>()
val directive = directives[targetDirective]
if (directive == null) {
validationErrors.add("@$targetDirective directive is missing on federated $validatedType type")
} else {
val fieldSetValue = (directive.getArgument("fields")?.value as? FieldSet)?.value
val fieldSet = fieldSetValue?.split(" ")?.filter { it.isNotEmpty() }.orEmpty()
if (fieldSet.isEmpty()) {
validationErrors.add("@$targetDirective directive on $validatedType is missing field information")
} else {
// validate key field set
val validatedDirectiveInfo = "@$targetDirective(fields = $fieldSetValue) directive on $validatedType"
validateFieldSelection(validatedDirectiveInfo, fieldSet.iterator(), fieldMap, extendedType, validationErrors)
}
}
return validationErrors
}
private fun validateFieldSelection(
validatedDirective: String,
iterator: Iterator<String>,
fields: Map<String, GraphQLFieldDefinition>,
extendedType: Boolean,
errors: MutableList<String>
) {
var previousField: String? = null
while (iterator.hasNext()) {
val currentField = iterator.next()
when (currentField) {
"{" -> {
val targetField = fields[previousField]?.type
when (val unwrappedType = GraphQLTypeUtil.unwrapAll(targetField)) {
is GraphQLInterfaceType -> validateFieldSelection(validatedDirective, iterator, unwrappedType.fieldDefinitions.associateBy { it.name }, extendedType, errors)
is GraphQLObjectType -> validateFieldSelection(validatedDirective, iterator, unwrappedType.fieldDefinitions.associateBy { it.name }, extendedType, errors)
else -> errors.add("$validatedDirective specifies invalid field set - field set defines nested selection set on unsupported type")
}
}
"}" -> return
else -> validateKeySetField(fields[currentField], extendedType, errors, validatedDirective)
}
previousField = currentField
}
}
private fun validateKeySetField(targetField: GraphQLFieldDefinition?, extendedType: Boolean, errors: MutableList<String>, validatedDirective: String) {
if (null != targetField) {
val externalField = targetField.getDirective("external") != null
if (extendedType && !externalField) {
errors.add("$validatedDirective specifies invalid field set - extended type incorrectly references local field=${targetField.name}")
} else if (!extendedType && externalField) {
errors.add("$validatedDirective specifies invalid field set - type incorrectly references external field=${targetField.name}")
}
when (GraphQLTypeUtil.unwrapNonNull(targetField.type)) {
is GraphQLList -> errors.add("$validatedDirective specifies invalid field set - field set references GraphQLList, field=${targetField.name}")
is GraphQLInterfaceType -> errors.add("$validatedDirective specifies invalid field set - field set references GraphQLInterfaceType, field=${targetField.name}")
is GraphQLUnionType -> errors.add("$validatedDirective specifies invalid field set - field set references GraphQLUnionType, field=${targetField.name}")
}
} else {
errors.add("$validatedDirective specifies invalid field set - field set specifies fields that do not exist")
}
}
private fun GraphQLDirectiveContainer.isFederatedType() = this.getDirective("key") != null || isExtendedType()
private fun GraphQLDirectiveContainer.isExtendedType() = this.getDirective("extends") != null
}
| 0 | Kotlin | 0 | 0 | 771b92a646c31a490b4ef521db50d505e4c585a3 | 9,825 | graphql-kotlin | Apache License 2.0 |
compiler/testData/diagnostics/tests/contracts/nonKotlinContractCall2.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML": 2699, "Puppet": 1698, "FreeMarker": 1393, "Roff": 725, "Scala": 80} | // FIR_IDENTICAL
// ISSUE: KT-71732
class Test
fun testBuilder(id: String = "", lambda: Test.() -> Unit) = Test()
fun test() {
contract(testBuilder {})
}
fun contract(test: Test) {}
| 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 190 | kotlin | Apache License 2.0 |
app/src/main/java/com/peripheral/bledevice/ui/main/MainActivityViewModel.kt | mnhmasum | 788,996,547 | false | {"Kotlin": 68870} | package com.peripheral.bledevice.ui.main
import android.bluetooth.BluetoothDevice
import android.bluetooth.le.ScanResult
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.lightnotebook.data.database.entity.DeviceEntity
import com.lightnotebook.data.usecase.DeviceLocalDataUseCase
import com.mnh.ble.model.DeviceInfo
import com.mnh.ble.usecase.BleUseCase
import com.napco.utils.DataState
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.launch
import javax.inject.Inject
@HiltViewModel
class MainActivityViewModel @Inject constructor(
private val deviceLocalDataUseCase: DeviceLocalDataUseCase,
private val bleUseCase: BleUseCase
) :
ViewModel() {
val locks: Flow<List<DeviceEntity>> = deviceLocalDataUseCase.getDeviceList()
val bleDeviceList: Flow<List<ScanResult>> = bleUseCase.getBleDeviceList()
val bleGattState: Flow<DataState<DeviceInfo>> = bleUseCase.bleGattConnectionResult()
var deviceName by mutableStateOf("C845FF")
private set
fun connect(device: BluetoothDevice) {
bleUseCase.connect(device)
}
fun updateLockBroadcastId(input: String) {
deviceName = input
}
fun insert(name: String) {
val lock = DeviceEntity(1, name)
viewModelScope.launch(Dispatchers.IO) {
deviceLocalDataUseCase.insert(lock)
}
}
} | 0 | Kotlin | 1 | 0 | 6bc769188450ab30a6425c69262e47f7796cf430 | 1,601 | ble-device-scanner | Apache License 2.0 |
retrocache/src/main/java/io/github/hylkeb/retrocache/state/internal/ErrorWithExceptionImpl.kt | HylkeB | 800,921,184 | false | {"Kotlin": 34183} | package io.github.hylkeb.retrocache.state.internal
import io.github.hylkeb.retrocache.CacheableRequest
import io.github.hylkeb.susstatemachine.StateImpl
import io.github.hylkeb.susstatemachine.Transition
import kotlinx.coroutines.CompletableJob
import kotlinx.coroutines.Job
internal class ErrorWithExceptionImpl<T>(
override val exception: Throwable,
private val cacheableRequest: CacheableRequest<T>,
) : StateImpl<InternalRequestState<T>>(), InternalRequestState.Error.WithException<T> {
private val retryRequested: CompletableJob = Job()
override suspend fun enter(): Transition<InternalRequestState<T>> {
retryRequested.join()
return Transition(FetchingImpl(true, cacheableRequest))
}
override suspend fun retry() {
retryRequested.complete()
awaitTransition()
}
} | 0 | Kotlin | 0 | 1 | 0d2bb77cfa5eb07735680a8a4d1055ca4a114eb7 | 833 | RetroCache | Apache License 2.0 |
src/main/kotlin/no/skatteetaten/aurora/boober/feature/S3Feature.kt | Skatteetaten | 84,482,382 | false | null | package no.skatteetaten.aurora.boober.feature
import java.util.UUID
import org.apache.commons.codec.binary.Base64
import org.springframework.beans.factory.annotation.Value
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
import org.springframework.stereotype.Service
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.module.kotlin.convertValue
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.fkorotkov.kubernetes.metadata
import com.fkorotkov.kubernetes.newSecret
import io.fabric8.kubernetes.api.model.EnvVar
import io.fabric8.kubernetes.api.model.Secret
import mu.KotlinLogging
import no.skatteetaten.aurora.boober.model.AuroraConfigFieldHandler
import no.skatteetaten.aurora.boober.model.AuroraConfigFile
import no.skatteetaten.aurora.boober.model.AuroraContextCommand
import no.skatteetaten.aurora.boober.model.AuroraDeploymentSpec
import no.skatteetaten.aurora.boober.model.AuroraResource
import no.skatteetaten.aurora.boober.model.addEnvVarsToMainContainers
import no.skatteetaten.aurora.boober.model.findSubKeys
import no.skatteetaten.aurora.boober.service.HerkimerService
import no.skatteetaten.aurora.boober.service.ResourceHerkimer
import no.skatteetaten.aurora.boober.service.ResourceKind
import no.skatteetaten.aurora.boober.service.resourceprovisioning.S3Access
import no.skatteetaten.aurora.boober.service.resourceprovisioning.S3Provisioner
import no.skatteetaten.aurora.boober.service.resourceprovisioning.S3ProvisioningRequest
import no.skatteetaten.aurora.boober.service.resourceprovisioning.S3ProvisioningResult
import no.skatteetaten.aurora.boober.utils.ConditionalOnPropertyMissingOrEmpty
import no.skatteetaten.aurora.boober.utils.boolean
import no.skatteetaten.aurora.boober.utils.createEnvVarRefs
import no.skatteetaten.aurora.boober.utils.findResourcesByType
import no.skatteetaten.aurora.boober.utils.pattern
private val logger = KotlinLogging.logger {}
private const val BUCKET_OBJECT_AREA_CONTEXT_KEY = "bucketObjectAreas"
private val FeatureContext.bucketObjectArea: List<S3BucketObjectArea>
get() = this.getContextKey(
BUCKET_OBJECT_AREA_CONTEXT_KEY
)
@ConditionalOnPropertyMissingOrEmpty("integrations.fiona.url", "integrations.herkimer.url")
@Service
class S3DisabledFeature : S3FeatureTemplate() {
override fun validate(
adc: AuroraDeploymentSpec,
fullValidation: Boolean,
context: FeatureContext
): List<Exception> {
val isS3Enabled = adc.isSimplifiedAndEnabled(FEATURE_FIELD_NAME) ||
adc.getSubKeys(FEATURE_FIELD_NAME).isNotEmpty()
return if (isS3Enabled) {
listOf(IllegalArgumentException("S3 storage is not available in this cluster=${adc.cluster}"))
} else {
emptyList()
}
}
}
@ConditionalOnProperty(value = ["integrations.fiona.url", "integrations.herkimer.url"])
@Service
class S3Feature(
val s3Provisioner: S3Provisioner,
val herkimerService: HerkimerService,
@Value("\${application.deployment.id}") val booberApplicationdeploymentId: String,
@Value("\${openshift.cluster}") val cluster: String,
@Value("\${minio.bucket.region:us-east-1}") val defaultBucketRegion: String
) : S3FeatureTemplate() {
override fun enable(header: AuroraDeploymentSpec): Boolean {
return !header.isJob
}
override fun createContext(
spec: AuroraDeploymentSpec,
cmd: AuroraContextCommand,
validationContext: Boolean
): Map<String, Any> {
val s3BucketObjectAreas = findS3Buckets(spec)
return mapOf(
BUCKET_OBJECT_AREA_CONTEXT_KEY to s3BucketObjectAreas
)
}
override fun validate(
adc: AuroraDeploymentSpec,
fullValidation: Boolean,
context: FeatureContext
): List<Exception> {
val s3BucketObjectAreas = context.bucketObjectArea
val requiredFieldsExceptions = s3BucketObjectAreas.validateRequiredFieldsArePresent()
val duplicateObjectAreaInSameBucketExceptions = s3BucketObjectAreas.verifyObjectAreaAndBucketAreUnique()
val notCurrentAffilationException =
s3BucketObjectAreas.validateTenantContainsCurrentAffiliationPrefix(adc.affiliation)
val validationConfigExceptions =
requiredFieldsExceptions + duplicateObjectAreaInSameBucketExceptions + notCurrentAffilationException
if (validationConfigExceptions.isNotEmpty()) {
return validationConfigExceptions
}
if (!fullValidation || adc.cluster != cluster || s3BucketObjectAreas.isEmpty()) return emptyList()
return s3BucketObjectAreas.verifyBucketCredentialsExistOrElseException()
}
override fun generate(adc: AuroraDeploymentSpec, context: FeatureContext): Set<AuroraResource> {
val s3BucketObjectAreas = context.bucketObjectArea
if (s3BucketObjectAreas.isEmpty()) return emptySet()
val s3Credentials = s3BucketObjectAreas.getOrProvisionCredentials(adc)
val s3Secret = s3Credentials.createS3Secrets(adc.namespace, adc.name)
return s3Secret.map { it.generateAuroraResource() }.toSet()
}
override fun modify(adc: AuroraDeploymentSpec, resources: Set<AuroraResource>, context: FeatureContext) {
val envVars = resources.extractS3EnvVarsFromSecrets()
resources.addEnvVarsToMainContainers(envVars, javaClass)
}
private fun List<S3BucketObjectArea>.verifyBucketCredentialsExistOrElseException(): List<IllegalArgumentException> {
val nameAndCredentials = getBucketCredentials()
return this.mapNotNull {
val credentials = nameAndCredentials[it.bucketName.trim()]
if (credentials == null) IllegalArgumentException("Could not find credentials for bucket with name=${it.bucketName}, please register the credentials")
else null
}
}
private fun Set<AuroraResource>.extractS3EnvVarsFromSecrets(): List<EnvVar> =
findResourcesByType<Secret>("-s3")
.map { secret ->
val objectArea = secret.metadata.annotations[ANNOTATION_OBJECT_AREA]
secret.createEnvVarRefs(prefix = "S3_BUCKETS_${objectArea}_")
}.flatten()
private fun getBucketCredentials(): Map<String, JsonNode?> =
herkimerService.getClaimedResources(
claimOwnerId = booberApplicationdeploymentId,
resourceKind = ResourceKind.MinioPolicy
).associate {
it.name to it.claims.singleOrNull()?.credentials
}
private fun provisionAndStoreS3Credentials(
s3BucketObjectArea: S3BucketObjectArea,
adc: AuroraDeploymentSpec,
bucketAdmins: Map<String, ResourceHerkimer>,
objectAreaResourceName: String
): S3Credentials {
val request = S3ProvisioningRequest(
bucketName = s3BucketObjectArea.bucketName,
path = UUID.randomUUID().toString().replace("-", ""),
userName = UUID.randomUUID().toString().replace("-", ""),
access = listOf(S3Access.WRITE, S3Access.DELETE, S3Access.READ)
)
val s3Credentials =
s3Provisioner.provision(request)
.toS3Credentials(s3BucketObjectArea.bucketName, request.path, s3BucketObjectArea.area)
val bucketAdmin = bucketAdmins[s3BucketObjectArea.bucketName]
?: throw IllegalArgumentException("Could not find bucket credentials for bucket. This should not happen. It has been validated in validate step")
herkimerService.createResourceAndClaim(
ownerId = adc.applicationDeploymentId,
resourceKind = ResourceKind.MinioObjectArea,
resourceName = objectAreaResourceName,
credentials = s3Credentials,
parentId = bucketAdmin.id,
claimName = "ADMIN"
)
return s3Credentials
}
private fun List<S3BucketObjectArea>.getOrProvisionCredentials(adc: AuroraDeploymentSpec): List<BucketWithCredentials> {
val resourceWithClaims =
herkimerService.getClaimedResources(adc.applicationDeploymentId, ResourceKind.MinioObjectArea)
.associateBy { it.name }
val s3BucketAdmins =
herkimerService.getClaimedResources(booberApplicationdeploymentId, ResourceKind.MinioPolicy)
.associateBy { it.name }
return this.map { s3BucketObjectArea ->
val objectAreaResourceName = "${s3BucketObjectArea.bucketName}/${s3BucketObjectArea.area}"
val credentialsStoredInHerkimer = resourceWithClaims[objectAreaResourceName]
?.claims
?.map { it.credentials }
?.let { S3Credentials.fromJsonNodes(it) }
?.find { it.objectArea == s3BucketObjectArea.area }
val s3Credentials = credentialsStoredInHerkimer
?: provisionAndStoreS3Credentials(
s3BucketObjectArea = s3BucketObjectArea,
adc = adc,
bucketAdmins = s3BucketAdmins,
objectAreaResourceName = objectAreaResourceName
)
BucketWithCredentials(
s3BucketObjectArea,
s3Credentials
)
}
}
private fun S3ProvisioningResult.toS3Credentials(bucketName: String, objectPrefix: String, objectArea: String) =
S3Credentials(
objectArea = objectArea,
serviceEndpoint = serviceEndpoint,
accessKey = accessKey,
secretKey = secretKey,
bucketName = bucketName,
objectPrefix = objectPrefix,
bucketRegion = defaultBucketRegion
)
private fun findS3Buckets(adc: AuroraDeploymentSpec): List<S3BucketObjectArea> {
return if (adc.isSimplifiedAndEnabled(FEATURE_FIELD_NAME)) {
val defaultS3Bucket = S3BucketObjectArea(
bucketName = adc["$FEATURE_DEFAULTS_FIELD_NAME/bucketName"],
area = adc["$FEATURE_DEFAULTS_FIELD_NAME/objectArea"],
tenant = adc["$FEATURE_DEFAULTS_FIELD_NAME/tenant"]
)
listOf(defaultS3Bucket)
} else {
adc.getSubKeyValues(FEATURE_FIELD_NAME)
.mapNotNull { findS3Bucket(it, adc) }
}
}
private fun findS3Bucket(
s3ObjectAreaKey: String,
adc: AuroraDeploymentSpec
): S3BucketObjectArea? {
if (!adc.get<Boolean>("$FEATURE_FIELD_NAME/$s3ObjectAreaKey/enabled")) return null
return S3BucketObjectArea(
bucketName = adc.getOrNull("$FEATURE_FIELD_NAME/$s3ObjectAreaKey/bucketName")
?: adc["$FEATURE_DEFAULTS_FIELD_NAME/bucketName"],
area = adc["$FEATURE_FIELD_NAME/$s3ObjectAreaKey/objectArea"],
tenant = adc.getOrNull("$FEATURE_FIELD_NAME/$s3ObjectAreaKey/tenant")
?: adc["$FEATURE_DEFAULTS_FIELD_NAME/tenant"]
)
}
private fun List<S3BucketObjectArea>.validateRequiredFieldsArePresent(): List<IllegalArgumentException> {
return this.flatMap {
val bucketNameException =
if (it.bucketName.isEmpty()) IllegalArgumentException("Missing field: bucketName for s3") else null
val objectAreaException =
if (it.area.isEmpty()) IllegalArgumentException("Missing field: objectArea for s3") else null
listOf(
bucketNameException,
objectAreaException
)
}.filterNotNull()
}
}
private fun List<S3BucketObjectArea>.verifyObjectAreaAndBucketAreUnique(): List<IllegalArgumentException> {
val s3BucketObjectAreaGroupedByArea = this.groupBy { it }
return s3BucketObjectAreaGroupedByArea.filter { it.value.size > 1 }
.map { (s3BucketObjectArea, duplicatedEntries) ->
IllegalArgumentException("Duplicated objectArea=${s3BucketObjectArea.area} in same bucket=${s3BucketObjectArea.bucketName}")
}
}
private fun List<S3BucketObjectArea>.validateTenantContainsCurrentAffiliationPrefix(affiliation: String): List<IllegalArgumentException> {
return this.filterNot {
it.tenant.startsWith(affiliation)
}.map {
IllegalArgumentException("tenant must contain current affiliation=$affiliation as a prefix, specified value was: ${it.tenant}")
}
}
private data class BucketWithCredentials(
val s3BucketObjectArea: S3BucketObjectArea,
val s3Credentials: S3Credentials
)
private const val FEATURE_FIELD_NAME = "s3"
private const val FEATURE_DEFAULTS_FIELD_NAME = "s3Defaults"
private const val ANNOTATION_OBJECT_AREA = "minio.skatteetaten.no/objectArea"
private fun List<BucketWithCredentials>.createS3Secrets(nsName: String, appName: String) =
this.map { (s3BucketObjectArea, provisionResult) ->
newSecret {
metadata {
name = "$appName-${s3BucketObjectArea.area}-s3"
namespace = nsName
annotations = mapOf(
ANNOTATION_OBJECT_AREA to s3BucketObjectArea.area
)
}
data = provisionResult.run {
mapOf(
"serviceEndpoint" to serviceEndpoint,
"accessKey" to accessKey,
"secretKey" to secretKey,
"bucketRegion" to bucketRegion,
"bucketName" to bucketName,
"objectPrefix" to objectPrefix
).mapValues { Base64.encodeBase64String(it.value.toByteArray()) }
}
}
}
abstract class S3FeatureTemplate : Feature {
override fun handlers(header: AuroraDeploymentSpec, cmd: AuroraContextCommand): Set<AuroraConfigFieldHandler> {
val s3Handlers = findS3Handlers(cmd.applicationFiles)
val s3DefaultHandlers = findS3DefaultHandlers(header)
return setOf(
AuroraConfigFieldHandler(
FEATURE_FIELD_NAME,
validator = { it.boolean() },
defaultValue = false,
canBeSimplifiedConfig = true
)
) + s3Handlers + s3DefaultHandlers
}
private fun findS3Handlers(
applicationFiles: List<AuroraConfigFile>
): List<AuroraConfigFieldHandler> =
applicationFiles.findSubKeys(FEATURE_FIELD_NAME)
.flatMap { s3BucketObjectArea ->
if (s3BucketObjectArea.isEmpty()) emptyList()
else listOf(
AuroraConfigFieldHandler("$FEATURE_FIELD_NAME/$s3BucketObjectArea/bucketName"),
AuroraConfigFieldHandler(
"$FEATURE_FIELD_NAME/$s3BucketObjectArea/objectArea",
defaultValue = s3BucketObjectArea
),
AuroraConfigFieldHandler(
"$FEATURE_FIELD_NAME/$s3BucketObjectArea/enabled",
validator = { it.boolean() },
defaultValue = true
),
AuroraConfigFieldHandler(
"$FEATURE_FIELD_NAME/$s3BucketObjectArea/tenant",
{ tenantPatternValidation(it) }
)
)
}
private fun findS3DefaultHandlers(header: AuroraDeploymentSpec): List<AuroraConfigFieldHandler> =
listOf(
AuroraConfigFieldHandler("$FEATURE_DEFAULTS_FIELD_NAME/bucketName", defaultValue = ""),
AuroraConfigFieldHandler(
"$FEATURE_DEFAULTS_FIELD_NAME/objectArea",
{ objectAreaPatternValidation(it, allowEmpty = true) },
defaultValue = ""
),
AuroraConfigFieldHandler(
"$FEATURE_DEFAULTS_FIELD_NAME/tenant",
{ tenantPatternValidation(it) },
defaultValue = "${header.affiliation}-${header.cluster}"
)
)
private fun objectAreaPatternValidation(it: JsonNode?, allowEmpty: Boolean = false): Exception? {
val allowEmptyRegex = if (allowEmpty) "^$|" else ""
return it.pattern(
pattern = "$allowEmptyRegex[a-z0-9-.]+",
message = "s3 objectArea can only contain lower case characters, numbers, hyphen(-) or period(.), specified value was: ${it?.toPrettyString()}",
required = false
)
}
private fun tenantPatternValidation(it: JsonNode?): Exception? {
return it?.pattern(
pattern = "([a-z]+)-([a-zA-Z0-9-]+)",
message = "s3 tenant must be on the form affiliation-cluster, specified value was: ${it.toPrettyString()}"
)
}
}
private data class S3BucketObjectArea(
val bucketName: String,
val area: String,
val tenant: String
)
data class S3Credentials(
val objectArea: String,
val serviceEndpoint: String,
val accessKey: String,
val secretKey: String,
val bucketName: String,
val objectPrefix: String,
val bucketRegion: String
) {
companion object {
fun fromJsonNodes(jsonNode: List<JsonNode>): List<S3Credentials> = jacksonObjectMapper().convertValue(jsonNode)
}
}
| 6 | null | 5 | 18 | 5a9e91f6f52d959395af7314c2f592074010d635 | 17,173 | boober | Apache License 2.0 |
launcher/src/main/java/com/husker/minecraft/launcher/tools/fx/HiDpiUtils.kt | husker-dev | 389,795,806 | false | null | package com.husker.minecraft.launcher.tools.fx
import com.husker.minecraft.launcher.app.Launcher
import javafx.beans.value.ChangeListener
import javafx.stage.Screen
import java.util.function.Consumer
class HiDpiUtils {
companion object{
@JvmStatic
fun addDpiListener(listener: Consumer<Double>){
var oldDpi = getDpi()
val action = ChangeListener<Number> {_, _, _ ->
val currentDpi = getDpi()
if(oldDpi != currentDpi)
listener.accept(currentDpi)
oldDpi = currentDpi
}
Launcher.stage.xProperty().addListener(action)
Launcher.stage.yProperty().addListener(action)
Launcher.stage.widthProperty().addListener(action)
Launcher.stage.heightProperty().addListener(action)
}
@JvmStatic
fun getDpi() : Double {
val window = Launcher.stage
val screens = Screen.getScreensForRectangle(window.x, window.y, window.width / 2, window.height / 2)
if(screens.size > 0)
return screens[0].outputScaleX
return 1.0
}
}
} | 0 | Kotlin | 1 | 5 | 6915a23abe4e734bcaabc7120e576c14d89fc11a | 1,176 | minecraft-launcher | Apache License 2.0 |
build-logic/src/main/kotlin/ProductFlavorConfigurationAccessors.kt | ReactiveCircus | 513,535,591 | false | {"Kotlin": 504722} | package io.github.reactivecircus.kstreamlined.buildlogic
import org.gradle.api.artifacts.Dependency
import org.gradle.api.artifacts.dsl.DependencyHandler
/**
* Adds a dependency to the 'mockImplementation' configuration.
*
* @param dependencyNotation notation for the dependency to be added.
* @return The dependency.
*/
fun DependencyHandler.mockImplementation(dependencyNotation: Any): Dependency? =
add("mockImplementation", dependencyNotation)
/**
* Adds a dependency to the 'devImplementation' configuration.
*
* @param dependencyNotation notation for the dependency to be added.
* @return The dependency.
*/
fun DependencyHandler.devImplementation(dependencyNotation: Any): Dependency? =
add("devImplementation", dependencyNotation)
/**
* Adds a dependency to the 'demoImplementation' configuration.
*
* @param dependencyNotation notation for the dependency to be added.
* @return The dependency.
*/
fun DependencyHandler.demoImplementation(dependencyNotation: Any): Dependency? =
add("demoImplementation", dependencyNotation)
/**
* Adds a dependency to the 'prodImplementation' configuration.
*
* @param dependencyNotation notation for the dependency to be added.
* @return The dependency.
*/
fun DependencyHandler.prodImplementation(dependencyNotation: Any): Dependency? =
add("prodImplementation", dependencyNotation)
| 4 | Kotlin | 0 | 4 | b74d3288ff71e5ca16eeb24846c9eb9261d43ff5 | 1,368 | kstreamlined-mobile | Apache License 2.0 |
ui/ui-text-core/src/commonMain/kotlin/androidx/compose/ui/text/input/InputEventListener.kt | tikurahul | 282,379,594 | true | {"Java": 44745786, "Kotlin": 26374522, "Python": 285088, "Shell": 112015, "C++": 25110, "ANTLR": 19795, "HTML": 10802, "TypeScript": 6933, "CMake": 1901, "JavaScript": 1343} | /*
* Copyright 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package androidx.compose.ui.text.input
/**
* An interface of listening IME events.
*/
interface InputEventListener {
/**
* Called when IME sends some input events.
*
* @param editOps The list of edit operations.
*/
fun onEditOperations(editOps: List<EditOperation>)
/**
* Called when IME triggered IME action.
*
* @param imeAction An IME action.
*/
fun onImeAction(imeAction: ImeAction)
} | 0 | Java | 0 | 1 | ccac66729a5e461b3a05944014f42e2dc55337d6 | 1,065 | androidx | Apache License 2.0 |
app/src/main/java/com/linc/inphoto/ui/profilesettings/ProfileSettingsFragment.kt | lincollincol | 430,640,244 | false | {"Kotlin": 680332} | package com.linc.inphoto.ui.profilesettings
import android.os.Bundle
import android.view.Gravity
import android.view.View
import androidx.core.widget.doOnTextChanged
import androidx.fragment.app.activityViewModels
import androidx.fragment.app.viewModels
import androidx.transition.Fade
import androidx.transition.Slide
import by.kirich1409.viewbindingdelegate.viewBinding
import com.linc.inphoto.R
import com.linc.inphoto.databinding.FragmentProfileSettingsBinding
import com.linc.inphoto.entity.user.Gender
import com.linc.inphoto.ui.base.fragment.BaseFragment
import com.linc.inphoto.ui.main.BottomBarViewModel
import com.linc.inphoto.utils.extensions.hideKeyboard
import com.linc.inphoto.utils.extensions.view.loadImage
import com.linc.inphoto.utils.extensions.view.setError
import com.linc.inphoto.utils.extensions.view.setOnThrottledClickListener
import com.linc.inphoto.utils.extensions.view.update
import dagger.hilt.android.AndroidEntryPoint
import kotlinx.coroutines.flow.collect
@AndroidEntryPoint
class ProfileSettingsFragment : BaseFragment(R.layout.fragment_profile_settings) {
companion object {
@JvmStatic
fun newInstance() = ProfileSettingsFragment()
}
override val viewModel: ProfileSettingsViewModel by viewModels()
private val bottomBarViewModel: BottomBarViewModel by activityViewModels()
private val binding by viewBinding(FragmentProfileSettingsBinding::bind)
override suspend fun observeUiState() = with(binding) {
viewModel.uiState.collect { state ->
avatarImageView.loadImage(state.avatarUri)
headerImageView.loadImage(state.headerUri)
usernameEditText.update(state.username)
statusEditText.update(state.status)
usernameTextLayout.setError(
!state.isValidUsername,
R.string.settings_invalid_username_error
)
genderRadioGroup.check(
when (state.gender) {
Gender.MALE -> maleRadioButton.id
else -> femaleRadioButton.id
}
)
}
}
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
viewModel.loadProfileData()
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
with(binding) {
settingsToolbar.setOnDoneClickListener {
hideKeyboard()
viewModel.saveProfileData()
}
settingsToolbar.setOnCancelClickListener {
hideKeyboard()
viewModel.cancelProfileUpdate()
}
uploadAvatarButton.setOnThrottledClickListener {
viewModel.updateAvatar()
view.clearFocus()
}
uploadHeaderButton.setOnThrottledClickListener {
viewModel.updateHeader()
view.clearFocus()
}
randomAvatarButton.setOnThrottledClickListener {
viewModel.randomAvatar()
view.clearFocus()
}
randomHeaderButton.setOnThrottledClickListener {
viewModel.randomHeader()
view.clearFocus()
}
usernameEditText.doOnTextChanged { text, _, _, _ ->
viewModel.updateUsername(text.toString())
}
statusEditText.doOnTextChanged { text, _, _, _ ->
viewModel.updateStatus(text.toString())
}
genderRadioGroup.setOnCheckedChangeListener { _, checkedId ->
val gender = when (checkedId) {
maleRadioButton.id -> Gender.MALE
femaleRadioButton.id -> Gender.FEMALE
else -> Gender.UNKNOWN
}
viewModel.updateGender(gender)
}
enterTransition = Slide(Gravity.END)
exitTransition = Fade(Fade.OUT)
reenterTransition = Fade(Fade.IN)
}
bottomBarViewModel.hideBottomBar()
}
} | 0 | Kotlin | 1 | 1 | c14ff4f35e82fc94c351927713370abcd010c4aa | 4,125 | InPhotoAndroid | MIT License |
subprojects/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/Interpreter.kt | Verdinjoshua26 | 187,253,049 | true | {"Groovy": 27094164, "Java": 25949312, "Kotlin": 3116654, "C++": 1805886, "JavaScript": 208288, "CSS": 174613, "C": 98580, "HTML": 69941, "XSLT": 42845, "Perl": 37849, "Scala": 26844, "Shell": 6992, "Swift": 6972, "Objective-C": 840, "CoffeeScript": 620, "Objective-C++": 441, "GAP": 424, "Assembly": 277, "Gherkin": 191, "Python": 57, "Brainfuck": 54, "Ruby": 16} | /*
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package org.gradle.kotlin.dsl.execution
import com.google.common.annotations.VisibleForTesting
import org.gradle.api.GradleScriptException
import org.gradle.api.Project
import org.gradle.api.initialization.Settings
import org.gradle.api.initialization.dsl.ScriptHandler
import org.gradle.api.internal.file.temp.TemporaryFileProvider
import org.gradle.api.internal.initialization.ClassLoaderScope
import org.gradle.api.internal.project.ProjectInternal
import org.gradle.api.invocation.Gradle
import org.gradle.groovy.scripts.ScriptSource
import org.gradle.initialization.ClassLoaderScopeOrigin
import org.gradle.internal.classpath.ClassPath
import org.gradle.internal.exceptions.LocationAwareException
import org.gradle.internal.hash.HashCode
import org.gradle.internal.service.ServiceRegistry
import org.gradle.kotlin.dsl.support.KotlinCompilerOptions
import org.gradle.kotlin.dsl.support.KotlinScriptHost
import org.gradle.kotlin.dsl.support.ScriptCompilationException
import org.gradle.kotlin.dsl.support.loggerFor
import org.gradle.kotlin.dsl.support.serviceRegistryOf
import org.gradle.plugin.management.internal.PluginRequests
import java.io.File
import java.lang.reflect.InvocationTargetException
/**
* An optimised interpreter for the Kotlin DSL based on the idea of
* [partial evaluation](https://en.wikipedia.org/wiki/Partial_evaluation).
*
* Instead of interpreting a given Kotlin DSL script directly, the interpreter emits a
* specialized program that captures the optimal execution procedure for the particular
* combination of script structure (does it contain a `buildscript` block? a `plugins` block?
* a script body? etc), target object and context (top-level or not).
*
* The specialized program is then cached via a cheap cache key based on the original,
* unprocessed contents of the script, the target object type and parent `ClassLoader`.
*
* Because each program is specialized to a given script structure, a lot of work is
* avoided. For example, a top-level script containing a `plugins` block but no body
* can be compiled down to a specialized program that instantiates the compiled
* `plugins` block class directly - without reflection - and does nothing else. The
* same strategy can be used for a **script plugin** (a non top-level script) with a
* body but no `buildscript` block since the classpath is completely determined at
* the time the specialized program is emitted.
*
* @see Program
* @see PartialEvaluator
* @see ResidualProgram
* @see ResidualProgramCompiler
*/
internal
class Interpreter(val host: Host) {
interface Host {
fun cachedClassFor(
programId: ProgramId
): CompiledScript?
fun cache(
specializedProgram: CompiledScript,
programId: ProgramId
)
fun cachedDirFor(
scriptHost: KotlinScriptHost<*>,
programId: ProgramId,
compilationClassPath: ClassPath,
accessorsClassPath: ClassPath,
initializer: (File) -> Unit
): File
fun startCompilerOperation(
description: String
): AutoCloseable
fun compilationClassPathOf(
classLoaderScope: ClassLoaderScope
): ClassPath
/**
* Provides an additional [ClassPath] to be used in the compilation of a top-level [Project] script
* `buildscript` or `plugins` block.
*
* The [ClassPath] is assumed not to influence the cache key of the script by itself as it should
* already be implied by [ProgramId.parentClassLoader].
*/
fun stage1BlocksAccessorsFor(
scriptHost: KotlinScriptHost<*>
): ClassPath
fun accessorsClassPathFor(
scriptHost: KotlinScriptHost<*>
): ClassPath
fun loadClassInChildScopeOf(
classLoaderScope: ClassLoaderScope,
childScopeId: String,
origin: ClassLoaderScopeOrigin,
location: File,
className: String,
accessorsClassPath: ClassPath
): CompiledScript
fun applyPluginsTo(
scriptHost: KotlinScriptHost<*>,
pluginRequests: PluginRequests
)
fun applyBasePluginsTo(project: ProjectInternal)
fun setupEmbeddedKotlinFor(scriptHost: KotlinScriptHost<*>)
fun closeTargetScopeOf(scriptHost: KotlinScriptHost<*>)
fun hashOf(classPath: ClassPath): HashCode
fun runCompileBuildOperation(scriptPath: String, stage: String, action: () -> String): String
fun onScriptClassLoaded(scriptSource: ScriptSource, specializedProgram: Class<*>)
val implicitImports: List<String>
val compilerOptions: KotlinCompilerOptions
fun serviceRegistryFor(programTarget: ProgramTarget, target: Any): ServiceRegistry = when (programTarget) {
ProgramTarget.Project -> serviceRegistryOf(target as Project)
ProgramTarget.Settings -> serviceRegistryOf(target as Settings)
ProgramTarget.Gradle -> serviceRegistryOf(target as Gradle)
}
}
fun eval(
target: Any,
scriptSource: ScriptSource,
sourceHash: HashCode,
scriptHandler: ScriptHandler,
targetScope: ClassLoaderScope,
baseScope: ClassLoaderScope,
topLevelScript: Boolean,
options: EvalOptions = defaultEvalOptions
) {
val programKind =
if (topLevelScript) ProgramKind.TopLevel
else ProgramKind.ScriptPlugin
val programTarget =
programTargetFor(target)
val templateId =
templateIdFor(programTarget, programKind, "stage1")
val parentClassLoader =
baseScope.exportClassLoader
val programId =
ProgramId(
templateId,
sourceHash,
parentClassLoader,
compilerOptions = host.compilerOptions
)
val cachedProgram =
host.cachedClassFor(programId)
val scriptHost =
scriptHostFor(programTarget, target, scriptSource, scriptHandler, targetScope, baseScope)
val programHost =
programHostFor(options)
if (cachedProgram != null) {
programHost.eval(cachedProgram, scriptHost)
return
}
val specializedProgram =
emitSpecializedProgramFor(
scriptHost,
scriptSource,
programId,
targetScope,
baseScope,
programKind,
programTarget
)
host.cache(
specializedProgram,
programId
)
programHost.eval(specializedProgram, scriptHost)
}
private
fun programTargetFor(target: Any): ProgramTarget =
when (target) {
is Settings -> ProgramTarget.Settings
is Project -> ProgramTarget.Project
is Gradle -> ProgramTarget.Gradle
else -> throw IllegalArgumentException("Unsupported target: $target")
}
private
fun scriptHostFor(
programTarget: ProgramTarget,
target: Any,
scriptSource: ScriptSource,
scriptHandler: ScriptHandler,
targetScope: ClassLoaderScope,
baseScope: ClassLoaderScope
) =
KotlinScriptHost(
target,
scriptSource,
scriptHandler,
targetScope,
baseScope,
host.serviceRegistryFor(programTarget, target)
)
private
fun programHostFor(options: EvalOptions) =
if (EvalOption.SkipBody in options) FirstStageOnlyProgramHost() else defaultProgramHost
private
fun emitSpecializedProgramFor(
scriptHost: KotlinScriptHost<Any>,
scriptSource: ScriptSource,
programId: ProgramId,
targetScope: ClassLoaderScope,
baseScope: ClassLoaderScope,
programKind: ProgramKind,
programTarget: ProgramTarget
): CompiledScript {
// TODO: consider computing stage 1 accessors only when there's a buildscript or plugins block
// TODO: consider splitting buildscript/plugins block accessors
val stage1BlocksAccessorsClassPath = when (programTarget) {
ProgramTarget.Project -> host.stage1BlocksAccessorsFor(scriptHost)
else -> ClassPath.EMPTY
}
val scriptPath = scriptHost.fileName
val classesDir = compile(
scriptHost,
programId,
scriptPath,
scriptSource,
programKind,
programTarget,
host.compilationClassPathOf(targetScope.parent),
stage1BlocksAccessorsClassPath,
scriptHost.temporaryFileProvider
)
return loadClassInChildScopeOf(
baseScope,
scriptPath,
classesDir,
programId.templateId,
stage1BlocksAccessorsClassPath,
scriptSource
)
}
private
fun compile(
scriptHost: KotlinScriptHost<*>,
programId: ProgramId,
scriptPath: String,
scriptSource: ScriptSource,
programKind: ProgramKind,
programTarget: ProgramTarget,
compilationClassPath: ClassPath,
stage1BlocksAccessorsClassPath: ClassPath,
temporaryFileProvider: TemporaryFileProvider
): File = host.cachedDirFor(
scriptHost,
programId,
compilationClassPath,
ClassPath.EMPTY
) { cachedDir ->
startCompilerOperationFor(scriptSource, programId.templateId).use {
val sourceText =
scriptSource.resource!!.text
val programSource =
ProgramSource(scriptPath, sourceText)
val program =
ProgramParser.parse(programSource, programKind, programTarget)
val residualProgram = program.map(
PartialEvaluator(programKind, programTarget)::reduce
)
scriptSource.withLocationAwareExceptionHandling {
ResidualProgramCompiler(
outputDir = cachedDir,
compilerOptions = host.compilerOptions,
classPath = compilationClassPath,
originalSourceHash = programId.sourceHash,
programKind = programKind,
programTarget = programTarget,
implicitImports = host.implicitImports,
logger = interpreterLogger,
temporaryFileProvider = temporaryFileProvider,
compileBuildOperationRunner = host::runCompileBuildOperation,
stage1BlocksAccessorsClassPath = stage1BlocksAccessorsClassPath,
packageName = residualProgram.packageName,
).compile(residualProgram.document)
}
}
}
private
fun loadClassInChildScopeOf(
baseScope: ClassLoaderScope,
scriptPath: String,
classesDir: File,
scriptTemplateId: String,
accessorsClassPath: ClassPath,
scriptSource: ScriptSource
): CompiledScript {
logClassLoadingOf(scriptTemplateId, scriptSource)
return host.loadClassInChildScopeOf(
baseScope,
childScopeId = classLoaderScopeIdFor(scriptPath, scriptTemplateId),
origin = ClassLoaderScopeOrigin.Script(scriptSource.fileName, scriptSource.longDisplayName, scriptSource.shortDisplayName),
accessorsClassPath = accessorsClassPath,
location = classesDir,
className = "Program"
)
}
private
val defaultProgramHost = ProgramHost()
private
inner class FirstStageOnlyProgramHost : ProgramHost() {
override fun evaluateSecondStageOf(
program: ExecutableProgram.StagedProgram,
scriptHost: KotlinScriptHost<*>,
scriptTemplateId: String,
sourceHash: HashCode,
accessorsClassPath: ClassPath
) = Unit
}
private
open inner class ProgramHost : ExecutableProgram.Host {
override fun setupEmbeddedKotlinFor(scriptHost: KotlinScriptHost<*>) {
host.setupEmbeddedKotlinFor(scriptHost)
}
override fun applyPluginsTo(scriptHost: KotlinScriptHost<*>, pluginRequests: PluginRequests) {
host.applyPluginsTo(scriptHost, pluginRequests)
}
override fun applyBasePluginsTo(project: Project) {
host.applyBasePluginsTo(project as ProjectInternal)
}
override fun handleScriptException(
exception: Throwable,
scriptClass: Class<*>,
scriptHost: KotlinScriptHost<*>
) {
locationAwareExceptionHandlingFor(exception, scriptClass, scriptHost.scriptSource)
}
override fun closeTargetScopeOf(scriptHost: KotlinScriptHost<*>) {
host.closeTargetScopeOf(scriptHost)
}
override fun evaluateSecondStageOf(
program: ExecutableProgram.StagedProgram,
scriptHost: KotlinScriptHost<*>,
scriptTemplateId: String,
sourceHash: HashCode,
accessorsClassPath: ClassPath
) {
val targetScope = scriptHost.targetScope
val parentClassLoader = targetScope.exportClassLoader
val compileClassPath = host.compilationClassPathOf(targetScope.parent)
val programId = ProgramId(
scriptTemplateId,
sourceHash,
parentClassLoader,
host.hashOf(accessorsClassPath),
host.hashOf(compileClassPath),
host.compilerOptions
)
val cachedProgram = host.cachedClassFor(programId)
if (cachedProgram != null) {
eval(cachedProgram, scriptHost)
return
}
val specializedProgram =
program.loadSecondStageFor(
this,
scriptHost,
programId,
accessorsClassPath
)
host.cache(
specializedProgram,
programId
)
eval(specializedProgram, scriptHost)
}
override fun accessorsClassPathFor(scriptHost: KotlinScriptHost<*>): ClassPath =
host.accessorsClassPathFor(scriptHost)
override fun compileSecondStageOf(
program: ExecutableProgram.StagedProgram,
scriptHost: KotlinScriptHost<*>,
programId: ProgramId,
programKind: ProgramKind,
programTarget: ProgramTarget,
accessorsClassPath: ClassPath
): CompiledScript {
val originalScriptPath = scriptHost.fileName
val targetScope = scriptHost.targetScope
val scriptSource = scriptHost.scriptSource
val targetScopeClassPath = host.compilationClassPathOf(targetScope)
val compilationClassPath = targetScopeClassPath + accessorsClassPath
val scriptTemplateId = programId.templateId
val sourceHash = programId.sourceHash
val cacheDir =
host.cachedDirFor(
scriptHost,
programId,
compilationClassPath,
accessorsClassPath
) { outputDir ->
startCompilerOperationFor(scriptSource, scriptTemplateId).use {
scriptSource.withLocationAwareExceptionHandling {
scriptHost.temporaryFileProvider.withTemporaryScriptFileFor(originalScriptPath, program.secondStageScriptText) { scriptFile ->
ResidualProgramCompiler(
outputDir,
host.compilerOptions,
compilationClassPath,
sourceHash,
programKind,
programTarget,
host.implicitImports,
interpreterLogger,
scriptHost.temporaryFileProvider,
host::runCompileBuildOperation
).emitStage2ProgramFor(
scriptFile,
originalScriptPath
)
}
}
}
}
return loadClassInChildScopeOf(
targetScope,
originalScriptPath,
cacheDir,
scriptTemplateId,
accessorsClassPath,
scriptSource
)
}
fun eval(compiledScript: CompiledScript, scriptHost: KotlinScriptHost<*>) {
val program = load(compiledScript, scriptHost)
withContextClassLoader(program.classLoader) {
host.onScriptClassLoaded(scriptHost.scriptSource, program)
instantiate(program).execute(this, scriptHost)
}
}
private
fun load(compiledScript: CompiledScript, scriptHost: KotlinScriptHost<*>) =
try {
compiledScript.program
} catch (e: Exception) {
throw LocationAwareException(
GradleScriptException("Failed to load compiled script from classpath ${compiledScript.classPath}.", e),
scriptHost.scriptSource,
1
)
}
private
fun instantiate(specializedProgram: Class<*>) =
specializedProgram.getDeclaredConstructor().newInstance() as ExecutableProgram
}
private
fun startCompilerOperationFor(scriptSource: ScriptSource, scriptTemplateId: String): AutoCloseable {
logCompilationOf(scriptTemplateId, scriptSource)
return host.startCompilerOperation(scriptSource.shortDisplayName.displayName)
}
}
@VisibleForTesting
fun templateIdFor(programTarget: ProgramTarget, programKind: ProgramKind, stage: String): String =
programTarget.name + "/" + programKind.name + "/" + stage
private
fun classLoaderScopeIdFor(scriptPath: String, stage: String) =
"kotlin-dsl:$scriptPath:$stage"
private
fun locationAwareExceptionHandlingFor(e: Throwable, scriptClass: Class<*>, scriptSource: ScriptSource): Nothing {
val targetException = maybeUnwrapInvocationTargetException(e)
val locationAware = locationAwareExceptionFor(targetException, scriptClass, scriptSource)
throw locationAware ?: targetException
}
private
fun locationAwareExceptionFor(
original: Throwable,
scriptClass: Class<*>,
scriptSource: ScriptSource
): LocationAwareException? {
val scriptClassName = scriptClass.name
val scriptClassNameInnerPrefix = "$scriptClassName$"
fun scriptStackTraceElement(element: StackTraceElement) =
element.className?.run {
equals(scriptClassName) || startsWith(scriptClassNameInnerPrefix)
} == true
tailrec fun inferLocationFrom(exception: Throwable): LocationAwareException? {
if (exception is LocationAwareException) {
return exception
}
exception.stackTrace.find(::scriptStackTraceElement)?.run {
return LocationAwareException(original, scriptSource, lineNumber.takeIf { it >= 0 })
}
val cause = exception.cause ?: return null
return inferLocationFrom(cause)
}
return inferLocationFrom(original)
}
private
inline fun <T> ScriptSource.withLocationAwareExceptionHandling(action: () -> T): T =
try {
action()
} catch (e: ScriptCompilationException) {
throw LocationAwareException(e, this, e.firstErrorLine)
}
private
fun maybeUnwrapInvocationTargetException(e: Throwable) =
if (e is InvocationTargetException) e.targetException
else e
private
inline fun withContextClassLoader(classLoader: ClassLoader, block: () -> Unit) {
val currentThread = Thread.currentThread()
val previous = currentThread.contextClassLoader
try {
currentThread.contextClassLoader = classLoader
block()
} finally {
currentThread.contextClassLoader = previous
}
}
private
fun logCompilationOf(templateId: String, source: ScriptSource) {
interpreterLogger.debug("Compiling $templateId from ${source.displayName}")
}
private
fun logClassLoadingOf(templateId: String, source: ScriptSource) {
interpreterLogger.debug("Loading $templateId from ${source.displayName}")
}
internal
val interpreterLogger = loggerFor<Interpreter>()
| 2,663 | Groovy | 4552 | 2 | e089307757e7ee7e1a898e84841bd2100ff7ef27 | 21,574 | gradle | Apache License 2.0 |
app/src/main/java/com/fjjukic/furniture4you/ui/auth/ForgotPasswordScreen.kt | franjojosip | 678,130,646 | false | {"Kotlin": 378486} | package com.fjjukic.furniture4you.ui.auth
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.verticalScroll
import androidx.compose.material3.Button
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material3.Card
import androidx.compose.material3.CardDefaults
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.colorResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.fjjukic.furniture4you.ui.common.CombinedClickableText
import com.fjjukic.furniture4you.ui.common.fields.EmailInputField
import com.fjjukic.furniture4you.ui.common.showFeatureNotAvailable
import com.fjjukic.furniture4you.ui.components.Header
import com.fjjukic.furniture4you.ui.theme.gelatioFamily
import ht.ferit.fjjukic.foodlovers.R
@Preview
@Composable
fun ForgotPasswordScreenPreview() {
ForgotPasswordScreen(onLoginClick = {})
}
@Composable
fun ForgotPasswordScreen(
onLoginClick: () -> Unit,
modifier: Modifier = Modifier,
) {
Column(
modifier = modifier
.fillMaxSize()
.background(colorResource(id = R.color.color_white))
.verticalScroll(rememberScrollState())
) {
Header(subtitle = stringResource(R.string.title_reset_password))
ForgotPasswordForm(onLoginClick = onLoginClick)
}
}
@Composable
fun ForgotPasswordForm(
onLoginClick: () -> Unit,
modifier: Modifier = Modifier
) {
val context = LocalContext.current
var email by remember { mutableStateOf("") }
Card(
colors = CardDefaults.cardColors(
containerColor = colorResource(id = R.color.color_white),
),
elevation = CardDefaults.cardElevation(
defaultElevation = 12.dp
),
shape = RoundedCornerShape(8.dp),
modifier = modifier
.wrapContentSize()
.padding(24.dp)
) {
EmailInputField(
value = email,
onValueChange = { email = it },
modifier = Modifier.padding(top = 24.dp)
)
Button(
shape = RoundedCornerShape(8.dp),
colors = ButtonDefaults.buttonColors(colorResource(id = R.color.color_dark_gray)),
modifier = modifier
.padding(top = 40.dp)
.width(260.dp)
.align(Alignment.CenterHorizontally),
onClick = { showFeatureNotAvailable(context) }
) {
Text(
text = stringResource(R.string.btn_send_email),
fontSize = 18.sp,
fontFamily = gelatioFamily,
fontWeight = FontWeight.Medium,
color = colorResource(id = R.color.color_white),
modifier = Modifier.padding(6.dp)
)
}
CombinedClickableText(
startTextResId = R.string.btn_remember_your_password,
endTextResId = R.string.btn_login,
onClick = { onLoginClick() },
modifier = Modifier
.align(Alignment.CenterHorizontally)
.padding(vertical = 30.dp),
)
}
} | 0 | Kotlin | 0 | 0 | 548708706a707ecebcc77c00439dc4a6ab230c3a | 3,991 | Furniture4You | MIT License |
protocol/osrs-221-desktop/src/main/kotlin/net/rsprot/protocol/game/incoming/codec/misc/user/BugReportDecoder.kt | blurite | 771,753,685 | false | {"Kotlin": 1458066} | package net.rsprot.protocol.game.incoming.codec.misc.user
import net.rsprot.buffer.JagByteBuf
import net.rsprot.protocol.ClientProt
import net.rsprot.protocol.game.incoming.misc.user.BugReport
import net.rsprot.protocol.game.incoming.prot.GameClientProt
import net.rsprot.protocol.message.codec.MessageDecoder
import net.rsprot.protocol.metadata.Consistent
import net.rsprot.protocol.tools.MessageDecodingTools
@Consistent
public class BugReportDecoder : MessageDecoder<BugReport> {
override val prot: ClientProt = GameClientProt.BUG_REPORT
override fun decode(
buffer: JagByteBuf,
tools: MessageDecodingTools,
): BugReport {
val description = buffer.gjstr()
val type = buffer.g1Alt3()
val instructions = buffer.gjstr()
check(description.length <= 500) {
"Bug report description length cannot exceed 500 characters."
}
check(instructions.length <= 500) {
"Bug report instructions length cannot exceed 500 characters."
}
return BugReport(
type,
description,
instructions,
)
}
}
| 4 | Kotlin | 2 | 7 | b72a9ddbbf607e357b783c4c8a1f5dc91b5de4f0 | 1,144 | rsprot | MIT License |
app/src/main/java/eu/kanade/domain/source/interactor/GetLanguagesWithSources.kt | scb261 | 381,944,147 | false | null | package eu.kanade.domain.source.interactor
import eu.kanade.domain.source.service.SourcePreferences
import eu.kanade.tachiyomi.util.system.LocaleHelper
import exh.source.BlacklistedSources
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.combine
import tachiyomi.domain.source.model.Source
import tachiyomi.domain.source.repository.SourceRepository
class GetLanguagesWithSources(
private val repository: SourceRepository,
private val preferences: SourcePreferences,
) {
fun subscribe(): Flow<Map<String, List<Source>>> {
return combine(
preferences.enabledLanguages().changes(),
preferences.disabledSources().changes(),
repository.getOnlineSources(),
) { enabledLanguage, disabledSource, onlineSources ->
val sortedSources = onlineSources.filterNot { it.id in BlacklistedSources.HIDDEN_SOURCES }.sortedWith(
compareBy<Source> { it.id.toString() in disabledSource }
.thenBy(String.CASE_INSENSITIVE_ORDER) { it.name },
)
sortedSources.groupBy { it.lang }
.toSortedMap(
compareBy<String> { it !in enabledLanguage }.then(LocaleHelper.comparator),
)
}
}
}
| 480 | null | 2438 | 7 | 5a3a2084cbfff68c4187ea55ad6b8fd7be2796b7 | 1,273 | TachiyomiSY | Apache License 2.0 |
cache/src/main/java/com/lekaha/android/boilerplate/cache/db/Db.kt | lekaha | 118,922,178 | false | null | package org.buffer.android.boilerplate.cache.db
/**
* This class defines the tables found within the application Database. All table
* definitions should contain column names and a sequence for creating the table.
*/
object Db {
object BufferooTable {
const val TABLE_NAME = "bufferroos"
const val BUFFEROO_ID = "bufferoo_id"
const val NAME = "name"
const val TITLE = "title"
const val AVATAR = "avatar"
const val CREATE =
"CREATE TABLE " + TABLE_NAME + " (" +
BUFFEROO_ID + " INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL," +
NAME + " TEXT NOT NULL," +
TITLE + " TEXT," +
AVATAR + " TEXT" +
"); "
}
} | 9 | null | 528 | 7 | 370dbe4fbcd3c59b8d0f27d954ef0efcabb00fef | 798 | android-clean-architecture-component-boilerplate | MIT License |
cosec-core/src/main/kotlin/me/ahoo/cosec/context/SecurityContextParser.kt | Ahoo-Wang | 567,999,401 | false | null | /*
* Copyright [2021-present] [<NAME> <<EMAIL>> (https://github.com/Ahoo-Wang)].
* Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
* 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.
*/
package me.ahoo.cosec.context
import me.ahoo.cosec.api.context.SecurityContext
import org.slf4j.LoggerFactory
/**
* Security Context Parser .
*
* @author <NAME>
*/
private val LOG = LoggerFactory.getLogger(SecurityContextParser::class.java)
fun interface SecurityContextParser<R> {
fun parse(request: R): SecurityContext
fun ensureParse(request: R): SecurityContext {
return try {
parse(request)
} catch (ignored: Throwable) {
if (LOG.isDebugEnabled) {
LOG.debug(ignored.message, ignored)
}
SimpleSecurityContext.ANONYMOUS
}
}
}
| 1 | null | 4 | 32 | ea4af7a66c1ab4d6560d7f3ba5d7026cd6904c26 | 1,273 | CoSec | Apache License 2.0 |
sykepenger-model/src/main/kotlin/no/nav/helse/serde/api/v2/buildere/GenerasjonerBuilder.kt | navikt | 193,907,367 | false | null | package no.nav.helse.serde.api.v2.buildere
import no.nav.helse.Fødselsnummer
import no.nav.helse.hendelser.Periode
import no.nav.helse.person.*
import no.nav.helse.person.Dokumentsporing.Companion.ider
import no.nav.helse.serde.api.v2.*
import no.nav.helse.sykdomstidslinje.Sykdomshistorikk
import no.nav.helse.utbetalingslinjer.Utbetaling
import no.nav.helse.utbetalingslinjer.Utbetaling.Utbetalingtype
import java.time.LocalDate
import java.time.LocalDateTime
import java.util.*
internal data class GenerasjonIder(
val beregningId: BeregningId,
val sykdomshistorikkId: SykdomshistorikkId,
val vilkårsgrunnlagshistorikkId: VilkårsgrunnlagshistorikkId
)
internal typealias BeregningId = UUID
internal typealias SykdomshistorikkId = UUID
internal typealias VilkårsgrunnlagshistorikkId = UUID
internal typealias FagsystemId = String
internal typealias InntektsmeldingId = UUID
// Besøker hele arbeidsgiver-treet
internal class GenerasjonerBuilder(
private val hendelser: List<HendelseDTO>,
private val fødselsnummer: Fødselsnummer,
private val vilkårsgrunnlagHistorikk: IVilkårsgrunnlagHistorikk,
arbeidsgiver: Arbeidsgiver
) : ArbeidsgiverVisitor {
private val vedtaksperiodeAkkumulator = VedtaksperiodeAkkumulator()
private val forkastetVedtaksperiodeAkkumulator = ForkastetVedtaksperiodeAkkumulator()
private val generasjonIderAkkumulator = GenerasjonIderAkkumulator()
private val sykdomshistorikkAkkumulator = SykdomshistorikkAkkumulator()
private val annulleringer = AnnulleringerAkkumulator()
private val refusjonerAkkumulator = RefusjonerAkkumulator()
init {
arbeidsgiver.accept(this)
}
fun build(): List<Generasjon> {
vedtaksperiodeAkkumulator.supplerMedAnnulleringer(annulleringer)
val tidslinjeberegninger = Tidslinjeberegninger(generasjonIderAkkumulator.toList(), sykdomshistorikkAkkumulator)
val tidslinjeperioder = Tidslinjeperioder(
fødselsnummer = fødselsnummer,
forkastetVedtaksperiodeIder = forkastetVedtaksperiodeAkkumulator.toList(),
vilkårsgrunnlagHistorikk = vilkårsgrunnlagHistorikk,
refusjoner = refusjonerAkkumulator.getRefusjoner(),
vedtaksperioder = vedtaksperiodeAkkumulator.toList(),
tidslinjeberegninger = tidslinjeberegninger
)
return Generasjoner(tidslinjeperioder).build()
}
override fun preVisitForkastetPeriode(vedtaksperiode: Vedtaksperiode, forkastetÅrsak: ForkastetÅrsak) {
forkastetVedtaksperiodeAkkumulator.leggTil(vedtaksperiode)
}
override fun preVisitVedtaksperiode(
vedtaksperiode: Vedtaksperiode,
id: UUID,
tilstand: Vedtaksperiode.Vedtaksperiodetilstand,
opprettet: LocalDateTime,
oppdatert: LocalDateTime,
periode: Periode,
opprinneligPeriode: Periode,
periodetype: () -> Periodetype,
skjæringstidspunkt: () -> LocalDate,
skjæringstidspunktFraInfotrygd: LocalDate?,
forlengelseFraInfotrygd: ForlengelseFraInfotrygd,
hendelseIder: Set<Dokumentsporing>,
inntektsmeldingInfo: InntektsmeldingInfo?,
inntektskilde: Inntektskilde
) {
val sykdomstidslinje = VedtaksperiodeSykdomstidslinjeBuilder(vedtaksperiode).build()
val utbetalinger = UtbetalingerBuilder(vedtaksperiode).build()
val aktivetsloggForPeriode = Vedtaksperiode.aktivitetsloggMedForegåendeUtenUtbetaling(vedtaksperiode)
vedtaksperiodeAkkumulator.leggTil(
IVedtaksperiode(
id,
periode.start,
periode.endInclusive,
behandlingstype = Behandlingstype.BEHANDLET,
inntektskilde = inntektskilde,
hendelser = hendelser.filter { it.id in hendelseIder.ider().map(UUID::toString) },
utbetalinger = utbetalinger,
periodetype = periodetype(),
sykdomstidslinje = sykdomstidslinje,
tilstand = tilstand,
oppdatert = oppdatert,
skjæringstidspunkt = skjæringstidspunkt(),
aktivitetsloggForPeriode = aktivetsloggForPeriode
)
)
}
override fun preVisitUtbetaling(
utbetaling: Utbetaling,
id: UUID,
korrelasjonsId: UUID,
type: Utbetalingtype,
tilstand: Utbetaling.Tilstand,
periode: Periode,
tidsstempel: LocalDateTime,
oppdatert: LocalDateTime,
arbeidsgiverNettoBeløp: Int,
personNettoBeløp: Int,
maksdato: LocalDate,
forbrukteSykedager: Int?,
gjenståendeSykedager: Int?,
stønadsdager: Int,
beregningId: UUID,
overføringstidspunkt: LocalDateTime?,
avsluttet: LocalDateTime?,
avstemmingsnøkkel: Long?
) {
if (type != Utbetalingtype.ANNULLERING) return
annulleringer.leggTil(UtbetalingBuilder(utbetaling).build())
}
override fun preVisitUtbetalingstidslinjeberegning(
id: UUID,
tidsstempel: LocalDateTime,
organisasjonsnummer: String,
sykdomshistorikkElementId: UUID,
inntektshistorikkInnslagId: UUID,
vilkårsgrunnlagHistorikkInnslagId: UUID
) {
generasjonIderAkkumulator.leggTil(id, GenerasjonIder(id, sykdomshistorikkElementId, vilkårsgrunnlagHistorikkInnslagId))
}
override fun preVisitSykdomshistorikkElement(element: Sykdomshistorikk.Element, id: UUID, hendelseId: UUID?, tidsstempel: LocalDateTime) {
SykdomshistorikkBuilder(id, element).build().also { (id, tidslinje) ->
sykdomshistorikkAkkumulator.leggTil(id, tidslinje)
}
}
override fun preVisitRefusjonshistorikk(refusjonshistorikk: Refusjonshistorikk) {
RefusjonerBuilder(refusjonshistorikk).build().also {
refusjonerAkkumulator.leggTil(it)
}
}
}
| 0 | Kotlin | 2 | 4 | a3ba622f138449986fc9fd44e467104a61b95577 | 5,912 | helse-spleis | MIT License |
src/main/kotlin/com/wabradshaw/travelhistory/meta/VersionController.kt | wabradshaw | 143,281,874 | false | null | package com.wabradshaw.travelhistory.vcs.meta
import org.springframework.beans.factory.annotation.Value
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController
/**
* A simple REST controller for debugging purposes that returns the version of travel-history this is using from
* the application properties. The version is used in application properties to ensure that they are being loaded.
*/
@RestController
class VersionController {
@Value("\${version}")
lateinit var currentVersion: String
/**
* Gets the version of the system as defined in application properties. Used to check that the application is using
* the correct version of the application properties.
*/
@GetMapping("/version")
fun getVersion() = currentVersion
} | 0 | Kotlin | 0 | 0 | 9e0d18de79f1e98aebdc4364fe0d3a23879c23ac | 834 | travel-history | Apache License 2.0 |
collection/src/main/java/com/example/collection/ServiceProvider.kt | phan29 | 734,278,673 | false | {"Kotlin": 3183} | package com.example.collection
class ServiceProvider {
fun isActive() {
println("yes!! its active")
}
}
| 4 | Kotlin | 0 | 0 | e14030e28b127148cccdc877e6bd27d6d367a28a | 122 | MyApplication | MIT License |
kotest-framework/kotest-framework-engine/src/jvmTest/kotlin/com/sksamuel/kotest/engine/test/timeout/FunctionOverrideInvocationTimeoutTest.kt | kotest | 47,071,082 | false | null | package com.sksamuel.kotest.engine.test.timeout
import io.kotest.core.annotation.EnabledIf
import io.kotest.core.annotation.enabledif.LinuxCondition
import io.kotest.core.spec.style.FunSpec
import io.kotest.core.spec.style.funSpec
import kotlinx.coroutines.delay
import kotlin.time.Duration.Companion.hours
private val factory = funSpec {
test("long running test") {
delay(10.hours)
}
}
@EnabledIf(LinuxCondition::class)
class FunctionOverrideInvocationTimeoutTest : FunSpec() {
override fun invocationTimeout(): Long {
return 12
}
init {
extension(expectFailureExtension)
test("should take timeout from spec setting").config(invocations = 3) {
delay(10.hours)
}
// should apply to factories too
include(factory)
}
}
| 160 | null | 648 | 4,435 | 2ce83d0f79e189c90e2d7bb3d16bd4f75dec9c2f | 792 | kotest | Apache License 2.0 |
compiler/testData/diagnostics/tests/qualifiedExpression/calleeExpressionAsCallExpression.kt | android | 263,405,600 | false | null | // !WITH_NEW_INFERENCE
val unwrapped = <!UNRESOLVED_REFERENCE!>some<!><!NI;COMPARE_TO_TYPE_MISMATCH, DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!><<!><!DEBUG_INFO_MISSING_UNRESOLVED!>sdf<!>()()<out <!DEBUG_INFO_MISSING_UNRESOLVED!>Any<!>>::<!DEBUG_INFO_MISSING_UNRESOLVED!>unwrap<!> | 0 | null | 37 | 316 | 74126637a097f5e6b099a7b7a4263468ecfda144 | 273 | kotlin | Apache License 2.0 |
app/src/test-common/java/iyotetsuya/currencyconversion/util/TestUtil.kt | iyotetsuya | 205,386,102 | false | null | package iyotetsuya.currencyconversion.util
import iyotetsuya.currencyconversion.vo.CurrencyRate
import iyotetsuya.currencyconversion.vo.SupportedCurrency
object TestUtil {
fun createSupportedCurrencyList(
count: Int,
code: String,
name: String
): List<SupportedCurrency> {
return (0 until count).map {
createSupportedCurrency(
code = code + it,
name = name + it
)
}
}
private fun createSupportedCurrency(code: String, name: String) = SupportedCurrency(
code = code,
name = name
)
fun createCurrencyRateList(
source: String,
target: List<String>,
rate: Float
): List<CurrencyRate> {
return (target.indices).map {
createCurrencyRate(
source = source,
target = target[it],
rate = rate + it
)
}
}
private fun createCurrencyRate(source: String, target: String, rate: Float) = CurrencyRate(
source = source,
target = target,
rate = rate
)
}
| 0 | Kotlin | 0 | 0 | 31ce490d25a034143c068f6f3374cdc6609c39a7 | 1,131 | CurrencyDemo | Apache License 2.0 |
src/main/kotlin/io/sapientpants/structurizr/macros/examples/MicroservicesExample.kt | sapientpants | 200,369,045 | false | null | package io.sapientpants.structurizr.macros.examples
import com.structurizr.model.Container
import com.structurizr.model.InteractionStyle.Asynchronous
import com.structurizr.model.InteractionStyle.Synchronous
import com.structurizr.view.Routing
import com.structurizr.view.Shape
import com.structurizr.view.ViewSet
import io.github.sapientpants.structurizr.macros.Tags
import io.github.sapientpants.structurizr.macros.builder.StructurizrBuilder
import io.github.sapientpants.structurizr.macros.styles.Style
private const val MICROSERVICE_TAG = "Microservice"
private const val MESSAGE_BUS_TAG = "Message Bus"
private const val DATASTORE_TAG = "Database"
class MicroservicesExampleStyle : Style() {
override fun applyToViews(views: ViewSet) {
val styles = views.configuration.styles
styles.addElementStyle(Tags.ELEMENT).color("#000000")
styles.addElementStyle(Tags.PERSON).background("#ffbf00")
.shape(Shape.Person)
styles.addElementStyle(Tags.CONTAINER).background("#facc2E")
styles.addElementStyle(MESSAGE_BUS_TAG).width(1600).shape(Shape.Pipe)
styles.addElementStyle(MICROSERVICE_TAG).shape(Shape.Hexagon)
styles.addElementStyle(DATASTORE_TAG).background("#f5da81")
.shape(Shape.Cylinder)
styles.addRelationshipStyle(Tags.RELATIONSHIP)
.routing(Routing.Orthogonal)
styles.addRelationshipStyle(Tags.ASYNCHRONOUS).dashed(true)
styles.addRelationshipStyle(Tags.SYNCHRONOUS).dashed(false)
}
}
fun main() {
StructurizrBuilder(
"structurizr-macros-examples",
"Microservices example",
"""|An example of a microservices architecture, which includes asynchronous
|and parallel behaviour.""".trimMargin()
).style(MicroservicesExampleStyle())
.buildAndRender { model, views ->
val mySoftwareSystem = model.addSoftwareSystem(
"Customer Information System",
"Stores information "
)
val customer = model.addPerson("Customer", "A customer")
val customerApplication: Container = mySoftwareSystem.addContainer(
"Customer Application",
"Allows customers to manage their profile.",
"Angular"
)
val customerService: Container = mySoftwareSystem.addContainer(
"Customer Service",
"The point of access for customer information.",
"Java and Spring Boot"
)
customerService.addTags(MICROSERVICE_TAG)
val customerDatabase: Container = mySoftwareSystem.addContainer(
"Customer Database",
"Stores customer information.",
"Oracle 12c"
)
customerDatabase.addTags(DATASTORE_TAG)
val reportingService: Container = mySoftwareSystem.addContainer(
"Reporting Service",
"Creates normalised data for reporting purposes.",
"Ruby"
)
reportingService.addTags(MICROSERVICE_TAG)
val reportingDatabase: Container = mySoftwareSystem.addContainer(
"Reporting Database",
"Stores a normalised version of all business data for ad hoc reporting purposes.",
"MySQL"
)
reportingDatabase.addTags(DATASTORE_TAG)
val auditService: Container = mySoftwareSystem.addContainer(
"Audit Service",
"Provides organisation-wide auditing facilities.",
"C# .NET"
)
auditService.addTags(MICROSERVICE_TAG)
val auditStore: Container = mySoftwareSystem.addContainer(
"Audit Store",
"Stores information about events that have happened.",
"Event Store"
)
auditStore.addTags(DATASTORE_TAG)
val messageBus: Container = mySoftwareSystem.addContainer(
"Message Bus",
"Transport for business events.",
"RabbitMQ"
)
messageBus.addTags(MESSAGE_BUS_TAG)
customer.uses(customerApplication, "Uses")
customerApplication.uses(
customerService,
"Updates customer information using",
"JSON/HTTPS",
Synchronous
)
customerService.uses(
messageBus,
"Sends customer update events to",
"",
Asynchronous
)
customerService.uses(
customerDatabase,
"Stores data in",
"JDBC",
Synchronous
)
customerService.uses(
customerApplication,
"Sends events to",
"WebSocket",
Asynchronous
)
messageBus.uses(
reportingService,
"Sends customer update events to",
"",
Asynchronous
)
messageBus.uses(
auditService,
"Sends customer update events to",
"",
Asynchronous
)
reportingService.uses(
reportingDatabase,
"Stores data in",
"",
Synchronous
)
auditService.uses(
auditStore,
"Stores events in",
"",
Synchronous
)
val dynamicView = views.createDynamicView(
mySoftwareSystem,
"CustomerUpdateEvent",
"This diagram shows what happens when a customer updates their details."
)
dynamicView.add(customer, customerApplication)
dynamicView.add(customerApplication, customerService)
dynamicView.add(customerService, customerDatabase)
dynamicView.add(customerService, messageBus)
dynamicView.startParallelSequence()
dynamicView.add(messageBus, reportingService)
dynamicView.add(reportingService, reportingDatabase)
dynamicView.endParallelSequence()
dynamicView.startParallelSequence()
dynamicView.add(messageBus, auditService)
dynamicView.add(auditService, auditStore)
dynamicView.endParallelSequence()
dynamicView.startParallelSequence()
dynamicView.add(
customerService,
"Confirms update to",
customerApplication
)
dynamicView.endParallelSequence()
}
}
| 0 | Kotlin | 0 | 3 | 5949abeda8b97683a5c1ed5c514637f19d5f5603 | 6,790 | structurizr-macros-examples | MIT License |
platform/testFramework/src/com/intellij/testFramework/IndexingTestUtil.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.testFramework
import com.intellij.diagnostic.ThreadDumper
import com.intellij.openapi.Disposable
import com.intellij.openapi.application.ApplicationListener
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.diagnostic.thisLogger
import com.intellij.openapi.progress.runBlockingMaybeCancellable
import com.intellij.openapi.project.DumbServiceImpl
import com.intellij.openapi.project.Project
import com.intellij.openapi.project.ProjectManager
import com.intellij.openapi.project.UnindexedFilesScannerExecutor
import com.intellij.openapi.util.Disposer
import com.intellij.platform.util.coroutines.childScope
import com.intellij.util.indexing.UnindexedFilesScannerExecutorImpl
import kotlinx.coroutines.*
import org.junit.Assert
import kotlin.time.Duration.Companion.seconds
class IndexingTestUtil(private val project: Project) {
private fun waitAfterWriteAction() {
if (project.isDisposed) return
val listenerDisposable = Disposer.newDisposable()
val parentDisposable = UnindexedFilesScannerExecutor.getInstance(project) as Disposable
Disposer.register(parentDisposable, listenerDisposable)
ApplicationManager.getApplication().addApplicationListener(object : ApplicationListener {
/*
... DEADLOCK: there are two afterWriteActionFinished, but first one is not delivered yet :DEADLOCK ...
at com.intellij.testFramework.IndexingTestUtil$waitAfterWriteAction$1.afterWriteActionFinished(IndexingTestUtil.kt:30)
...
at jdk.proxy2.$Proxy45.afterWriteActionFinished(jdk.proxy2/Unknown Source)
at com.intellij.openapi.application.impl.ApplicationImpl.fireAfterWriteActionFinished(ApplicationImpl.java:1015)
at com.intellij.openapi.application.impl.ApplicationImpl.afterWriteActionFinished(ApplicationImpl.java:1170)
...
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:857)
at com.intellij.openapi.application.WriteAction.run(WriteAction.java:84)
at com.intellij.openapi.roots.impl.PushedFilePropertiesUpdaterImpl.lambda$reloadPsi$18(PushedFilePropertiesUpdaterImpl.java:454)
...
at com.intellij.openapi.project.MergingTaskQueue$QueuedTask.executeTask(MergingTaskQueue.java:329)
at com.intellij.openapi.project.DumbServiceSyncTaskQueue.doRunTaskSynchronously(DumbServiceSyncTaskQueue.java:86)
...
at com.intellij.openapi.project.DumbServiceSyncTaskQueue.processQueue(DumbServiceSyncTaskQueue.java:71)
at com.intellij.openapi.project.DumbServiceSyncTaskQueue$1.afterWriteActionFinished(DumbServiceSyncTaskQueue.java:100)
...
at jdk.proxy2.$Proxy45.afterWriteActionFinished(jdk.proxy2/Unknown Source)
...
at com.intellij.openapi.application.impl.ApplicationImpl.fireAfterWriteActionFinished(ApplicationImpl.java:1015)
...
at com.intellij.openapi.application.WriteAction.compute(WriteAction.java:95)
...
*/
// Volatile: any thread could be write thread
@Volatile
private var nested: Int = 1 // 1 because at least one write action is currently happenings
override fun beforeWriteActionStart(action: Any) {
nested++
}
// invoked after all the write actions are finished (write lock is released)
override fun afterWriteActionFinished(action: Any) {
nested--
assert(nested >= 0) { "We counted more finished write actions than started." }
if (nested <= 0) { // may not be negative, but let's stay on safe side
Disposer.dispose(listenerDisposable);
waitNow();
}
}
}, listenerDisposable);
}
@OptIn(DelicateCoroutinesApi::class)
private fun waitNow() {
thisLogger().debug("waitNow, thread=${Thread.currentThread()}")
Assert.assertFalse("Should not be invoked from write action", ApplicationManager.getApplication().isWriteAccessAllowed)
if (!shouldWait()) {
return // TODO: CodeInsightTestFixtureImpl.configureInner via GroovyHighlightUsagesTest
} else {
thisLogger().debug("waitNow will be waiting, thread=${Thread.currentThread()}")
}
if (ApplicationManager.getApplication().isDispatchThread) {
val scope = GlobalScope.childScope("Indexing waiter", Dispatchers.IO)
val waiting = scope.launch { suspendUntilIndexesAreReady() }
try {
PlatformTestUtil.waitWithEventsDispatching("Indexing timeout", { !waiting.isActive }, 600)
PlatformTestUtil.dispatchAllEventsInIdeEventQueue() // make sure that all the scheduled write actions are executed
}
finally {
waiting.cancel()
}
}
else {
runBlockingMaybeCancellable {
suspendUntilIndexesAreReady()
}
}
}
private fun shouldWait(): Boolean {
val dumbService = DumbServiceImpl.getInstance(project)
dumbService.ensureInitialDumbTaskRequiredForSmartModeSubmitted() // TODO IJPL-578: don't submit
val scannerExecutor = UnindexedFilesScannerExecutorImpl.getInstance(project)
// Scheduled tasks will become a running tasks soon. To avoid a race, we check scheduled tasks first
if (scannerExecutor.hasQueuedTasks) {
return if (scannerExecutor.scanningWaitsForNonDumbMode() && dumbService.isDumb) {
val isEternal = DumbModeTestUtils.isEternalDumbTaskRunning(project)
if (isEternal) {
thisLogger().debug("Do not wait for queued scanning task, because eternal dumb task is running in the project [$project]")
}
!isEternal;
}
else {
true // wait for queued scanning tasks to complete
}
}
// Scheduled tasks will become a running tasks soon. To avoid a race, we check scheduled tasks first
else if (dumbService.hasScheduledTasks()) {
return true
}
else if (scannerExecutor.isRunning.value || dumbService.isRunning()) {
return true
}
else if (dumbService.isDumb) {
// DUMB_FULL_INDEX should wait until all the scheduled tasks are finished, but should not wait for smart mode
val isEternal = DumbModeTestUtils.isEternalDumbTaskRunning(project)
if (isEternal) {
thisLogger().debug("Do not wait for smart mode, because eternal dumb task is running in the project [$project]")
}
return !isEternal
}
else {
return false
}
}
private suspend fun suspendUntilIndexesAreReady() {
if (shouldWait()) {
thisLogger().debug("suspendUntilIndexesAreReady will be waiting, thread=${Thread.currentThread()}")
}
try {
withTimeout(600.seconds) {
while (shouldWait()) {
delay(1)
}
}
}
catch (e: TimeoutCancellationException) {
thisLogger().warn(ThreadDumper.dumpThreadsToString(), e)
throw e
}
}
private fun waitUntilFinished() {
thisLogger().debug("waitUntilFinished, thread=${Thread.currentThread()}, WA=${ApplicationManager.getApplication().isWriteAccessAllowed}")
if (ApplicationManager.getApplication().isWriteAccessAllowed) {
waitAfterWriteAction()
}
else {
waitNow()
}
}
companion object {
@JvmStatic
fun waitUntilIndexesAreReadyInAllOpenedProjects() {
// FileBasedIndexTumbler currently does not work in tests, because it cannot wait for DumbServiceSyncTaskQueue.
// This method should probably be removed after DumbServiceSyncTaskQueue is dropped
for (project in ProjectManager.getInstance().openProjects) {
IndexingTestUtil(project).waitUntilFinished()
}
}
@JvmStatic
fun waitUntilIndexesAreReady(project: Project) {
IndexingTestUtil(project).waitUntilFinished()
}
@Suppress("unused") // invoked from prod code via reflection
@JvmStatic
fun workaroundForEverSmartIdeInUnitTestsIDEA347619(project: Project) {
// we don't need this workaround when SynchronousTaskQueue is not enabled
if (DumbServiceImpl.useSynchronousTaskQueue) {
IndexingTestUtil(project).waitUntilFinished()
}
}
suspend fun suspendUntilIndexesAreReady(project: Project) {
IndexingTestUtil(project).suspendUntilIndexesAreReady()
}
}
} | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 8,340 | intellij-community | Apache License 2.0 |
src/test/kotlin/io/github/michaelliv/lucene4k/IndexSearcherBuilderTest.kt | Michaelliv | 484,571,545 | false | {"Kotlin": 22378} | package io.github.michaelliv.lucene4k
import io.kotest.assertions.throwables.shouldThrow
import io.kotest.core.spec.style.ShouldSpec
import io.kotest.matchers.shouldBe
import io.kotest.matchers.types.shouldBeTypeOf
import org.apache.lucene.analysis.standard.StandardAnalyzer
import org.apache.lucene.index.DirectoryReader
import org.apache.lucene.index.IndexWriterConfig
import org.apache.lucene.store.ByteBuffersDirectory
class IndexSearcherBuilderTest : ShouldSpec({
should("buildIndexSearcher should create index searcher") {
val searcher = buildIndexSearcher {
withIndexWriter {
buildIndexWriter {
withDirectory { ByteBuffersDirectory() }
withIndexWriterConfig { IndexWriterConfig(StandardAnalyzer()) }
}.also { iw ->
iw.isOpen shouldBe true
iw.analyzer.shouldBeTypeOf<StandardAnalyzer>()
iw.addDocument {
storeFields {
textField("field", "this is a test")
stringField("id", "123")
}
}
iw.docStats.numDocs shouldBe 1
}
}
}
val results = searcher.search(termQuery("field", "this"), 3)
val doc = searcher.doc(results.scoreDocs.first().doc)
doc.get("id") shouldBe "123"
}
should("buildIndexSearcher should create index searcher withDirectory") {
val directory = ByteBuffersDirectory()
buildIndexWriter {
withDirectory { directory }
withIndexWriterConfig { IndexWriterConfig(StandardAnalyzer()) }
}.run {
addDocument(buildDocument { storeFields { stringField("id", "123") } })
docStats.numDocs shouldBe 1
commit()
}
buildIndexSearcher {
withDirectory { directory }
}.run {
search(termQuery("id", "123"), 1).totalHits.value shouldBe 1
}
}
should("buildIndexSearcher should create index searcher withIndexCommit") {
val directory = ByteBuffersDirectory()
buildIndexWriter {
withDirectory { directory }
withIndexWriterConfig { IndexWriterConfig(StandardAnalyzer()) }
}.run {
addDocument(buildDocument { storeFields { stringField("id", "123") } })
docStats.numDocs shouldBe 1
commit()
}
val reader = DirectoryReader.listCommits(directory)
buildIndexSearcher {
withIndexCommit { reader.last() }
}.run {
search(termQuery("id", "123"), 1).totalHits.value shouldBe 1
}
}
should("buildIndexSearcher should throw Exception when nothing is supplied") {
shouldThrow<Exception> { buildIndexSearcher { } }
}
})
| 0 | Kotlin | 0 | 0 | 6e4ec1edf1a096431a0af203d02f9d61b41b743c | 2,893 | lucene4k | MIT License |
compiler/testData/codegen/box/coroutines/featureIntersection/suspendFunction12.kt | arrow-kt | 109,678,056 | true | null | // !LANGUAGE: -ReleaseCoroutines
// IGNORE_BACKEND: JS_IR, JS
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
// WITH_COROUTINES
// some classes are moved from stdlib to compatibility package
// IGNORE_BACKEND: ANDROID
import helpers.*
import kotlin.coroutines.*
val lambda1 = { x: Any -> } as (Any) -> Unit
val suspendLambda0: suspend () -> Unit = {}
fun box(): String {
assert(lambda1 is SuspendFunction0<*>) { "Failed: lambda1 !is SuspendFunction0<*>" }
assert(suspendLambda0 is Function1<*, *>) { "Failed: suspendLambda0 is Function1<*, *>" }
assert(suspendLambda0 is SuspendFunction0<*>) { "Failed: suspendLambda0 is SuspendFunction0<*>" }
return "OK"
}
| 12 | Kotlin | 37 | 43 | d2a24985b602e5f708e199aa58ece652a4b0ea48 | 674 | kotlin | Apache License 2.0 |
modules/dsp/src/main/kotlin/com/bartlomiejpluta/smnp/ext/dsp/DspModule.kt | bartlomiej-pluta | 247,806,164 | false | null | package com.bartlomiejpluta.smnp.ext.dsp
import com.bartlomiejpluta.smnp.ext.dsp.function.FftFunction
import com.bartlomiejpluta.smnp.ext.dsp.function.PlotFunction
import com.bartlomiejpluta.smnp.ext.provider.NativeModuleProvider
import org.pf4j.Extension
@Extension
class DspModule : NativeModuleProvider("smnp.dsp") {
override fun functions() = listOf(PlotFunction(), FftFunction())
} | 0 | Kotlin | 0 | 0 | 88f2089310b2a23b2ce63fb6be23a96db156ea4a | 391 | smnp-kt | MIT License |
modules/dsp/src/main/kotlin/com/bartlomiejpluta/smnp/ext/dsp/DspModule.kt | bartlomiej-pluta | 247,806,164 | false | null | package com.bartlomiejpluta.smnp.ext.dsp
import com.bartlomiejpluta.smnp.ext.dsp.function.FftFunction
import com.bartlomiejpluta.smnp.ext.dsp.function.PlotFunction
import com.bartlomiejpluta.smnp.ext.provider.NativeModuleProvider
import org.pf4j.Extension
@Extension
class DspModule : NativeModuleProvider("smnp.dsp") {
override fun functions() = listOf(PlotFunction(), FftFunction())
} | 0 | Kotlin | 0 | 0 | 88f2089310b2a23b2ce63fb6be23a96db156ea4a | 391 | smnp-kt | MIT License |
compiler/src/main/kotlin/edu/cornell/cs/apl/viaduct/syntax/Variable.kt | apl-cornell | 169,159,978 | false | null | package edu.cornell.cs.apl.viaduct.syntax
import edu.cornell.cs.apl.prettyprinting.AnsiBaseColor
import edu.cornell.cs.apl.prettyprinting.AnsiColor
import edu.cornell.cs.apl.prettyprinting.Document
import edu.cornell.cs.apl.prettyprinting.NormalColor
import edu.cornell.cs.apl.prettyprinting.Style
import edu.cornell.cs.apl.prettyprinting.styled
/** A variable is a name that stands for a value or an object instance. */
sealed class Variable : Name {
override fun toDocument(): Document = Document(name).styled(VariableStyle)
}
/**
* A variable that binds base values.
*
* Temporaries are generated internally to name expression results.
*/
data class Temporary(override val name: String) : Variable() {
override val nameCategory: String
get() = "temporary"
}
/** A variable that binds an object. */
data class ObjectVariable(override val name: String) : Variable() {
override val nameCategory: String
get() = "variable"
}
/** The display style of [Variable]s. */
object VariableStyle : Style {
override val foregroundColor: AnsiColor
get() = NormalColor(AnsiBaseColor.MAGENTA)
}
| 20 | Kotlin | 4 | 11 | 2352c676305c595d235bc9024770fc622efb8aa2 | 1,130 | viaduct | MIT License |
dcache/src/main/java/dora/http/DoraHttp.kt | dora4 | 378,306,065 | false | null | package dora.http
import android.app.Activity
import androidx.fragment.app.Fragment
import dora.http.coroutine.ContextContinuation
import dora.http.coroutine.DoraCoroutineContext
import dora.http.exception.DoraHttpException
import dora.http.rx.RxTransformer
import io.reactivex.Observable
import io.reactivex.Observer
import io.reactivex.disposables.Disposable
import retrofit2.Call
import kotlin.coroutines.Continuation
import kotlin.coroutines.resume
import kotlin.coroutines.startCoroutine
import kotlin.coroutines.suspendCoroutine
object DoraHttp {
fun netScope(activity: Activity, block: suspend () -> Unit) {
block.startCoroutine(ContextContinuation(DoraCoroutineContext(activity)))
}
fun netScope(fragment: Fragment, block: suspend () -> Unit) {
block.startCoroutine(ContextContinuation(DoraCoroutineContext(fragment.requireActivity())))
}
fun Activity.net(block: suspend () -> Unit) {
block.startCoroutine(ContextContinuation(DoraCoroutineContext(this)))
}
fun Fragment.net(block: suspend () -> Unit) {
block.startCoroutine(ContextContinuation(DoraCoroutineContext(requireActivity())))
}
/**
* 在net作用域下使用,请求失败抛异常,出块则自动释放锁,和request不同的是,无需手动释放。
*/
suspend fun <T> api(apiMethod: ()-> Call<T>) = suspendCoroutine<T> {
val data = apiMethod()
data.enqueue(object : DoraCallback<T>() {
override fun onSuccess(data: T) {
it.resume(data)
}
override fun onFailure(msg: String) {
it.resumeWith(Result.failure(DoraHttpException(data.request(), msg)))
}
})
}
/**
* RxJava的写法,在net作用域下使用,请求失败抛异常,出块则自动释放锁,和request不同的是,无需手动释放。
*/
suspend fun <T> rxApi(apiMethod: ()-> Observable<T>) = suspendCoroutine<T> {
val data = apiMethod()
RxTransformer.doApi(data, object : Observer<T> {
override fun onSubscribe(d: Disposable?) {
}
override fun onNext(t: T) {
it.resume(t)
}
override fun onError(e: Throwable?) {
it.resumeWith(Result.failure(DoraHttpException(e.toString())))
}
override fun onComplete() {
}
})
}
/**
* 在net作用域下使用,请求失败返回空值,出块则自动释放锁,和request不同的是,无需手动释放。
*/
suspend fun <T> result(apiMethod: ()-> Call<T>) = suspendCoroutine<T?> {
val data = apiMethod()
data.enqueue(object : DoraCallback<T?>() {
override fun onSuccess(data: T?) {
it.resume(data)
}
override fun onFailure(msg: String) {
it.resumeWith(Result.success(null))
}
})
}
/**
* RxJava的写法,在net作用域下使用,请求失败返回空值,出块则自动释放锁,和request不同的是,无需手动释放。
*/
suspend fun <T> rxResult(apiMethod: ()-> Observable<T>) = suspendCoroutine<T?> {
val data = apiMethod()
RxTransformer.doApi(data, object : Observer<T> {
override fun onSubscribe(d: Disposable?) {
}
override fun onNext(t: T) {
it.resume(t)
}
override fun onError(e: Throwable?) {
it.resumeWith(Result.success(null))
}
override fun onComplete() {
}
})
}
/**
* DoraHttp协程中类似线程中锁的概念。
*/
interface Lock<T> {
fun releaseLock(returnVal : T)
}
/**
* net锁,用于解除net作用域下request函数的阻塞。
*/
class NetLock<T>(private val continuation: Continuation<T>) : Lock<T> {
override fun releaseLock(returnVal: T) {
continuation.resume(returnVal)
}
}
/**
* 自己执行网络请求代码,在net作用域下使用,执行完成(通常为onSuccess或onError的回调)后请调用
* lock.releaseLock(),让后面的代码得以执行,另外可以指定request高阶函数的返回结果,释放锁后
* 将可以作为request函数的执行结果赋值给变量。
*/
suspend fun <T> request(block: (lock: NetLock<T>) -> Unit) = suspendCoroutine<T> {
try {
val lock = NetLock(it)
block(lock)
} catch (e: Exception) {
it.resumeWith(Result.failure(e))
}
}
} | 0 | Kotlin | 1 | 9 | 40fc603de22c8bfd58cd1f923f8f6065e2bb085f | 4,120 | dcache-android | Apache License 2.0 |
app/src/main/java/com/rekyb/jyro/common/Resources.kt | rekyb | 421,738,590 | false | {"Kotlin": 77959} | package com.rekyb.jyro.common
sealed class Resources<out T> {
object Loading : Resources<Nothing>()
data class Success<out T>(val data: T) : Resources<T>()
data class Error<out T>(val message: String) : Resources<T>()
}
| 0 | Kotlin | 0 | 2 | 1e3ac8c8f3372275c25137ccd153d52688bad639 | 233 | github-app | MIT License |
tv/src/main/java/com/aastudio/sarollahi/moviebox/views/fragments/RootMovieViewModel.kt | sarollahi | 327,908,585 | false | {"Kotlin": 450483} | /*
* Copyright (C) 2021 <NAME>
* All rights reserved.
*/
package com.aastudio.sarollahi.moviebox.views.fragments
import android.app.Application
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.aastudio.sarollahi.api.model.Movie
import com.aastudio.sarollahi.api.repository.Repository
import com.aastudio.sarollahi.api.response.GetMoviesResponse
import retrofit2.Call
class RootMovieViewModel(private val application: Application) : ViewModel() {
val nowPlayingList = MutableLiveData<List<Movie>>()
fun getMovies() {
Repository.getNowPlayingMovies(
1,
"us",
::onNowPlayingMoviesFetched,
::onError
)
}
private fun onNowPlayingMoviesFetched(playingMovies: List<Movie>) {
nowPlayingList.value = playingMovies
}
private fun onError(call: Call<GetMoviesResponse>, error: String) {
}
}
| 0 | Kotlin | 0 | 0 | 17acb53f4ab51e40126fa3136f851eb8895074c2 | 929 | MovieBox-Kotlin | Apache License 2.0 |
apollo-compiler/src/main/kotlin/com/apollographql/apollo3/compiler/codegen/kotlin/file/ObjectBuilder.kt | wavemm | 111,576,468 | false | null | package com.apollographql.apollo3.compiler.codegen.kotlin.file
import com.apollographql.apollo3.compiler.codegen.Identifier
import com.apollographql.apollo3.compiler.codegen.kotlin.CgFile
import com.apollographql.apollo3.compiler.codegen.kotlin.CgFileBuilder
import com.apollographql.apollo3.compiler.codegen.kotlin.KotlinContext
import com.apollographql.apollo3.compiler.codegen.kotlin.KotlinSymbols
import com.apollographql.apollo3.compiler.codegen.kotlin.KotlinSymbols.MapOfStringToNullableAny
import com.apollographql.apollo3.compiler.codegen.kotlin.helpers.maybeAddDeprecation
import com.apollographql.apollo3.compiler.codegen.kotlin.helpers.maybeAddDescription
import com.apollographql.apollo3.compiler.ir.IrMapProperty
import com.apollographql.apollo3.compiler.ir.IrCompositeType2
import com.apollographql.apollo3.compiler.ir.IrNonNullType2
import com.apollographql.apollo3.compiler.ir.IrObject
import com.squareup.kotlinpoet.ClassName
import com.squareup.kotlinpoet.CodeBlock
import com.squareup.kotlinpoet.FunSpec
import com.squareup.kotlinpoet.LambdaTypeName
import com.squareup.kotlinpoet.MemberName
import com.squareup.kotlinpoet.ParameterSpec
import com.squareup.kotlinpoet.PropertySpec
import com.squareup.kotlinpoet.TypeName
import com.squareup.kotlinpoet.TypeSpec
internal class ObjectBuilder(
private val context: KotlinContext,
private val obj: IrObject,
private val generateDataBuilders: Boolean,
) : CgFileBuilder {
private val layout = context.layout
private val packageName = layout.typePackageName()
private val simpleName = layout.compiledTypeName(obj.name)
override fun prepare() {
context.resolver.registerSchemaType(obj.name, ClassName(packageName, simpleName))
context.resolver.registerMapType(obj.name, ClassName(packageName, layout.mapName(obj.name)))
context.resolver.registerBuilderType(obj.name, ClassName(packageName, layout.objectBuilderName(obj.name)))
context.resolver.registerBuilderFun(obj.name, MemberName(packageName, layout.builderFunName(obj.name)))
}
override fun build(): CgFile {
return CgFile(
packageName = packageName,
fileName = simpleName,
typeSpecs = mutableListOf<TypeSpec>().apply {
add(obj.typeSpec())
if (generateDataBuilders) {
add(obj.builderTypeSpec())
add(obj.mapTypeSpec())
}
},
funSpecs = mutableListOf<FunSpec>().apply {
if (generateDataBuilders) {
add(obj.builderFunSpec())
}
}
)
}
private fun IrObject.mapTypeSpec(): TypeSpec {
return TypeSpec
.classBuilder(layout.mapName(name))
.primaryConstructor(
FunSpec.constructorBuilder()
.addParameter(
ParameterSpec.builder(
Identifier.__fields,
MapOfStringToNullableAny
).build()
)
.build()
)
.addSuperinterfaces(superTypes.map { context.resolver.resolveIrType2(IrNonNullType2(IrCompositeType2(it))) })
.addSuperinterface(
superinterface = MapOfStringToNullableAny,
delegate = CodeBlock.of(Identifier.__fields)
)
.build()
}
private fun IrObject.builderTypeSpec(): TypeSpec {
return TypeSpec
.classBuilder(layout.objectBuilderName(name))
.superclass(KotlinSymbols.ObjectBuilder)
.addSuperclassConstructorParameter(CodeBlock.of(Identifier.customScalarAdapters))
.primaryConstructor(
FunSpec.constructorBuilder()
.addParameter(Identifier.customScalarAdapters, KotlinSymbols.CustomScalarAdapters)
.build()
)
.addProperties(mapProperties.map { it.toPropertySpec() })
.addFunction(buildFunSpec())
.build()
}
private fun IrMapProperty.toPropertySpec(): PropertySpec {
return PropertySpec.builder(layout.propertyName(name), context.resolver.resolveIrType2(type))
.mutable(true)
.apply {
val initializer = context.resolver.adapterInitializer2(type)
if (initializer == null) {
// Composite or no mapping registered (Int/Boolean/String/...)
delegate(CodeBlock.of(Identifier.__fields))
} else {
delegate(CodeBlock.of("%T(%L)", KotlinSymbols.BuilderProperty, initializer))
}
}
.build()
}
private fun IrObject.builderFunSpec(): FunSpec {
val builderClassName = ClassName(packageName, layout.objectBuilderName(name))
val mapClassName = ClassName(packageName, layout.mapName(obj.name))
return FunSpec.builder(layout.builderFunName(obj.name))
.returns(mapClassName)
.addParameter(
ParameterSpec.builder(
Identifier.block,
LambdaTypeName.get(
receiver = builderClassName,
parameters = emptyArray<TypeName>(),
returnType = KotlinSymbols.Unit
)
).build()
)
.receiver(KotlinSymbols.BuilderScope)
.addCode(
CodeBlock.builder()
.addStatement("val·builder·=·%T(${Identifier.customScalarAdapters})", builderClassName)
.addStatement("builder.__typename·=·%S", name)
.addStatement("builder.${Identifier.block}()")
.addStatement("return·builder.build()")
.build()
)
.build()
}
private fun IrObject.buildFunSpec(): FunSpec {
val mapClassName = ClassName(packageName, layout.mapName(obj.name))
return FunSpec.builder(Identifier.build)
.returns(mapClassName)
.addCode(
CodeBlock.builder()
.addStatement("return·%T(${Identifier.__fields})", mapClassName)
.build()
)
.build()
}
private fun IrObject.typeSpec(): TypeSpec {
return TypeSpec
.classBuilder(simpleName)
.maybeAddDescription(description)
.maybeAddDeprecation(deprecationReason)
.addType(companionTypeSpec())
.build()
}
private fun IrObject.companionTypeSpec(): TypeSpec {
return TypeSpec.companionObjectBuilder()
.addProperty(typePropertySpec(context.resolver))
.build()
}
}
| 1 | null | 1 | 1 | 95bf818206e70fbb6f84dff5b960b9c1cf18c7db | 6,331 | apollo-android | MIT License |
app/src/main/java/com/vicky7230/sunny/ui/weather/city/CityWeatherFragment.kt | vicky7230 | 188,676,424 | false | null | package com.sandoval.bogosunny.ui.weather.city
import android.annotation.SuppressLint
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.widget.AppCompatTextView
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.ViewModelProviders
import com.google.android.gms.ads.AdRequest
import com.mikepenz.iconics.view.IconicsTextView
import com.sandoval.bogosunny.BuildConfig
import com.sandoval.bogosunny.R
import com.sandoval.bogosunny.data.network.model.forecast.Forecast
import com.sandoval.bogosunny.data.network.model.weather.CurrentWeather
import com.sandoval.bogosunny.ui.base.BaseFragment
import com.sandoval.bogosunny.utils.AppConstants.CITY
import com.sandoval.bogosunny.utils.CommonUtils
import dagger.android.support.AndroidSupportInjection
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.disposables.CompositeDisposable
import io.reactivex.schedulers.Schedulers
import kotlinx.android.synthetic.main.fragment_city_weather.*
import timber.log.Timber
import java.text.ParseException
import java.text.SimpleDateFormat
import java.util.*
import javax.inject.Inject
class CityWeatherFragment : BaseFragment() {
private val DEGREE = "\u00b0"
@Inject
lateinit var compositeDisposable: CompositeDisposable
@Inject
lateinit var viewModelFactory: ViewModelProvider.Factory
private lateinit var cityWeatherViewModel: CityWeatherViewModel
private val sourceDateFormat = SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.ENGLISH)
private val destinationDateFormat = SimpleDateFormat("hh a\nEEE, d MMM", Locale.ENGLISH)
companion object {
fun newInstance(city: String): CityWeatherFragment {
val bundle = Bundle()
bundle.putString(CITY, city)
val cityWeatherFragment = CityWeatherFragment()
cityWeatherFragment.arguments = bundle
return cityWeatherFragment
}
}
override fun onAttach(context: Context) {
AndroidSupportInjection.inject(this)
super.onAttach(context)
}
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
val view = inflater.inflate(R.layout.fragment_city_weather, container, false)
cityWeatherViewModel = ViewModelProviders.of(
this,
viewModelFactory
)[CityWeatherViewModel::class.java]
return view
}
override fun setUp(view: View) {
val adRequest = if (BuildConfig.DEBUG)
AdRequest.Builder().addTestDevice("5DF72948CDD4E6C5F027EB25632285F4").build()
else
AdRequest.Builder().build()
adView.loadAd(adRequest)
val city = arguments?.getString(CITY)
city?.let {
compositeDisposable.add(
cityWeatherViewModel.getWeatherData(
city
)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe({
displayCurrentWeather(it)
}, {
Timber.e(it)
showError(it.localizedMessage)
})
)
compositeDisposable.add(
cityWeatherViewModel.getForecastData(
city
)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe({
displayForecast(it)
}, {
Timber.e(it)
showError(it.localizedMessage)
})
)
}
}
@SuppressLint("SetTextI18n")
private fun displayCurrentWeather(currentWeather: CurrentWeather) {
time_icon.text = "${currentWeather.dt?.let {
CommonUtils.getTimeFromUnixTimeStamp(
it
)
}}"
temp.text = "${currentWeather.main?.temp.toString()}${DEGREE}C"
location.text = "${currentWeather.name}, ${currentWeather.sys?.country}"
weather.text = currentWeather.weather?.get(0)?.description
temp_high.text = "H " + currentWeather.main?.tempMax.toString()
temp_low.text = " L " + currentWeather.main?.tempMin.toString()
wind.text = "Winds : ${currentWeather.wind?.speed.toString()} m/s"
if (currentWeather.weather?.get(0)?.icon.equals("01d"))
weather_icon.text = "{met_sun}"
else if (currentWeather.weather?.get(0)?.icon.equals("01n"))
weather_icon.text = "{met_moon_inv}"
else if (currentWeather.weather?.get(0)?.icon.equals("02d"))
weather_icon.text = "{met_cloud_sun}"
else if (currentWeather.weather?.get(0)?.icon.equals("02n"))
weather_icon.text = "{met_cloud_moon_inv}"
else if (currentWeather.weather?.get(0)?.icon.equals("03d"))
weather_icon.text = "{met_cloud}"
else if (currentWeather.weather?.get(0)?.icon.equals("03n"))
weather_icon.text = "{met_cloud_inv}"
else if (currentWeather.weather?.get(0)?.icon.equals("04d"))
weather_icon.text = "{met_clouds}"
else if (currentWeather.weather?.get(0)?.icon.equals("04n"))
weather_icon.text = "{met_clouds_inv}"
else if (currentWeather.weather?.get(0)?.icon.equals("09d"))
weather_icon.text = "{met_rain}"
else if (currentWeather.weather?.get(0)?.icon.equals("09n"))
weather_icon.text = "{met_rain_inv}"
else if (currentWeather.weather?.get(0)?.icon.equals("10d"))
weather_icon.text = "{met_windy_rain}"
else if (currentWeather.weather?.get(0)?.icon.equals("10n"))
weather_icon.text = "{met_windy_rain_inv}"
else if (currentWeather.weather?.get(0)?.icon.equals("11d"))
weather_icon.text = "{met_clouds_flash}"
else if (currentWeather.weather?.get(0)?.icon.equals("11n"))
weather_icon.text = "{met_clouds_flash_inv}"
else if (currentWeather.weather?.get(0)?.icon.equals("13d"))
weather_icon.text = "{met_snow}"
else if (currentWeather.weather?.get(0)?.icon.equals("13n"))
weather_icon.text = "{met_snow_inv}"
else if (currentWeather.weather?.get(0)?.icon.equals("50d") ||
currentWeather.weather?.get(0)?.icon.equals("50n")
)
weather_icon.text = "{met_fog}"
}
@SuppressLint("SetTextI18n")
private fun displayForecast(forecast: Forecast) {
var i = 1
for (item in forecast.list!!) {
val timeTextView = view?.findViewById<View>(
resources.getIdentifier(
"forecast_time_$i",
"id",
activity?.packageName
)
) as IconicsTextView
try {
timeTextView.text = "{ion_android_time} " + destinationDateFormat.format(
sourceDateFormat.parse(
item.dtTxt
)
)
} catch (e: ParseException) {
Timber.e("Error parsing date : $e")
}
val weatherIcon = view?.findViewById<View>(
resources.getIdentifier(
"forecast_icon_$i",
"id",
activity?.packageName
)
) as IconicsTextView
if (item.weather?.get(0)?.icon.equals("01d"))
weatherIcon.text = "{met_sun}"
else if (item.weather?.get(0)?.icon.equals("01n"))
weatherIcon.text = "{met_moon}"
else if (item.weather?.get(0)?.icon.equals("02d"))
weatherIcon.text = "{met_cloud_sun}"
else if (item.weather?.get(0)?.icon.equals("02n"))
weatherIcon.text = "{met_cloud_moon_inv}"
else if (item.weather?.get(0)?.icon.equals("03d"))
weatherIcon.text = "{met_cloud}"
else if (item.weather?.get(0)?.icon.equals("03n"))
weatherIcon.text = "{met_cloud_inv}"
else if (item.weather?.get(0)?.icon.equals("04d"))
weatherIcon.text = "{met_clouds}"
else if (item.weather?.get(0)?.icon.equals("04n"))
weatherIcon.text = "{met_clouds_inv}"
else if (item.weather?.get(0)?.icon.equals("09d"))
weatherIcon.text = "{met_rain}"
else if (item.weather?.get(0)?.icon.equals("09n"))
weatherIcon.text = "{met_rain_inv}"
else if (item.weather?.get(0)?.icon.equals("10d"))
weatherIcon.text = "{met_windy_rain}"
else if (item.weather?.get(0)?.icon.equals("10n"))
weatherIcon.text = "{met_windy_rain_inv}"
else if (item.weather?.get(0)?.icon.equals("11d"))
weatherIcon.text = "{met_clouds_flash}"
else if (item.weather?.get(0)?.icon.equals("11n"))
weatherIcon.text = "{met_clouds_flash_inv}"
else if (item.weather?.get(0)?.icon.equals("13d"))
weatherIcon.text = "{met_snow}"
else if (item.weather?.get(0)?.icon.equals("13n"))
weatherIcon.text = "{met_snow_inv}"
else if (item.weather?.get(0)?.icon.equals("50d") ||
item.weather?.get(0)?.icon.equals("50n")
)
weatherIcon.text = "{met_fog}"
val forecastWeatherTextView = view?.findViewById<View>(
resources.getIdentifier(
"forecast_weather_$i",
"id",
activity?.packageName
)
) as AppCompatTextView
forecastWeatherTextView.text =
"" + item.main?.temp.toString() + DEGREE + "C" + "\n" +
item.weather?.get(0)?.main
++i
}
}
override fun onDestroyView() {
compositeDisposable.dispose()
super.onDestroyView()
}
} | 0 | Kotlin | 5 | 6 | f46bf5ab713070e338618392780b9cbeca3bf1cf | 10,291 | Sunny | Apache License 2.0 |
app/src/main/java/com/mapbox/maps/testapp/examples/markersandcallouts/PolylineAnnotationActivity.kt | mapbox | 330,365,289 | false | null | package com.mapbox.maps.testapp.examples.markersandcallouts
import android.graphics.Color
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.lifecycleScope
import com.mapbox.geojson.FeatureCollection
import com.mapbox.geojson.Point
import com.mapbox.maps.CameraOptions
import com.mapbox.maps.extension.style.layers.getLayer
import com.mapbox.maps.plugin.annotation.AnnotationConfig
import com.mapbox.maps.plugin.annotation.AnnotationPlugin
import com.mapbox.maps.plugin.annotation.annotations
import com.mapbox.maps.plugin.annotation.generated.OnPolylineAnnotationClickListener
import com.mapbox.maps.plugin.annotation.generated.OnPolylineAnnotationInteractionListener
import com.mapbox.maps.plugin.annotation.generated.PolylineAnnotation
import com.mapbox.maps.plugin.annotation.generated.PolylineAnnotationManager
import com.mapbox.maps.plugin.annotation.generated.PolylineAnnotationOptions
import com.mapbox.maps.plugin.annotation.generated.createPolylineAnnotationManager
import com.mapbox.maps.testapp.databinding.ActivityAnnotationBinding
import com.mapbox.maps.testapp.examples.annotation.AnnotationUtils
import com.mapbox.maps.testapp.examples.annotation.AnnotationUtils.showShortToast
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import java.util.Random
/**
* Example showing how to add Line annotations
*/
class PolylineAnnotationActivity : AppCompatActivity() {
private val random = Random()
private var polylineAnnotationManager: PolylineAnnotationManager? = null
private var styleIndex: Int = 0
private var slotIndex: Int = 0
private val nextStyle: String
get() {
return AnnotationUtils.STYLES[styleIndex++ % AnnotationUtils.STYLES.size]
}
private val nextSlot: String
get() {
return AnnotationUtils.SLOTS[slotIndex++ % AnnotationUtils.SLOTS.size]
}
private lateinit var annotationPlugin: AnnotationPlugin
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
val binding = ActivityAnnotationBinding.inflate(layoutInflater)
setContentView(binding.root)
binding.mapView.mapboxMap.setCamera(
CameraOptions.Builder()
.center(Point.fromLngLat(24.945749, 60.171924))
.pitch(0.0)
.zoom(4.0)
.bearing(0.0)
.build()
)
binding.mapView.mapboxMap.loadStyle(nextStyle) {
annotationPlugin = binding.mapView.annotations
polylineAnnotationManager = annotationPlugin.createPolylineAnnotationManager(
annotationConfig = AnnotationConfig(PITCH_OUTLINE, LAYER_ID, SOURCE_ID)
).apply {
it.getLayer(LAYER_ID)?.let { layer ->
Toast.makeText(this@PolylineAnnotationActivity, layer.layerId, Toast.LENGTH_LONG).show()
}
addClickListener(
OnPolylineAnnotationClickListener {
Toast.makeText(this@PolylineAnnotationActivity, "click ${it.id}", Toast.LENGTH_SHORT)
.show()
false
}
)
addInteractionListener(object : OnPolylineAnnotationInteractionListener {
override fun onSelectAnnotation(annotation: PolylineAnnotation) {
Toast.makeText(
this@PolylineAnnotationActivity,
"onSelectAnnotation ${annotation.id}",
Toast.LENGTH_SHORT
).show()
}
override fun onDeselectAnnotation(annotation: PolylineAnnotation) {
Toast.makeText(
this@PolylineAnnotationActivity,
"onDeselectAnnotation ${annotation.id}",
Toast.LENGTH_SHORT
).show()
}
})
val points = listOf(
Point.fromLngLat(-4.375974, -2.178992),
Point.fromLngLat(-7.639772, -4.107888),
Point.fromLngLat(-11.439207, 2.798737),
)
val polylineAnnotationOptions: PolylineAnnotationOptions = PolylineAnnotationOptions()
.withPoints(points)
.withLineColor(Color.RED)
.withLineWidth(5.0)
create(polylineAnnotationOptions)
// random add lines across the globe
val lineOptionsList = List(100) {
val color = Color.argb(255, random.nextInt(256), random.nextInt(256), random.nextInt(256))
PolylineAnnotationOptions()
.withPoints(AnnotationUtils.createRandomPoints())
.withLineColor(color)
}
create(lineOptionsList)
lifecycleScope.launch {
val featureCollection = withContext(Dispatchers.Default) {
FeatureCollection.fromJson(
AnnotationUtils.loadStringFromAssets(
this@PolylineAnnotationActivity,
"annotations.json"
)
)
}
create(featureCollection)
}
}
}
binding.deleteAll.setOnClickListener {
polylineAnnotationManager?.let {
annotationPlugin.removeAnnotationManager(it)
}
}
binding.changeStyle.setOnClickListener {
binding.mapView.mapboxMap.loadStyle(nextStyle)
}
binding.changeSlot.setOnClickListener {
val slot = nextSlot
showShortToast("Switching to $slot slot")
polylineAnnotationManager?.slot = slot
}
}
companion object {
private const val LAYER_ID = "line_layer"
private const val SOURCE_ID = "line_source"
private const val PITCH_OUTLINE = "pitch-outline"
}
} | 232 | null | 131 | 472 | 2700dcaf18e70d23a19fc35b479bff6a2d490475 | 5,497 | mapbox-maps-android | Apache License 2.0 |
baselibrary/src/main/kotlin/com/huawen/baselibrary/views/bannerother/banner/ScrollState.kt | cc17236 | 297,074,446 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Kotlin": 412, "XML": 48, "Java": 91} | package com.huawen.baselibrary.views.bannerother.banner
import androidx.recyclerview.widget.RecyclerView
/**
* 滑动状态
* @author Lollipop
*/
enum class ScrollState(val value: Int) {
/**
* RecyclerView目前不在滚动。
* The RecyclerView is not currently scrolling.
*/
IDLE(RecyclerView.SCROLL_STATE_IDLE),
/**
* RecyclerView目前正在动画到最终位置,而不受外界控制。
* The RecyclerView is currently animating to a final position while not under
* outside control.
*/
SETTLING(RecyclerView.SCROLL_STATE_SETTLING),
/**
* RecyclerView目前正在被外部输入如用户触摸输入拖动。
* The RecyclerView is currently being dragged by outside input such as user touch input.
*/
DRAGGING(RecyclerView.SCROLL_STATE_DRAGGING),;
override fun toString(): String{
return when(this){
IDLE -> "IDLE"
SETTLING -> "SETTLING"
DRAGGING -> "DRAGGING"
}
}
} | 0 | Kotlin | 0 | 0 | 219c6d63fee41a9f28e9f935a3d222159d12d5e3 | 921 | AnroidKotlinSample | Apache License 2.0 |
net.akehurst.language/agl-processor/src/commonTest/kotlin/api/processor/test_LanguageProcessor_scan.kt | dhakehurst | 197,245,665 | false | {"Kotlin": 3541898, "ANTLR": 64742, "Rascal": 17698, "Java": 14313, "PEG.js": 6866, "JavaScript": 5287, "BASIC": 22} | /**
* Copyright (C) 2018 Dr. David H. Akehurst (http://dr.david.h.akehurst.net)
*
* Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package net.akehurst.language.api.processor
import net.akehurst.language.agl.processor.Agl
import net.akehurst.language.api.sppt.LeafData
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertNotNull
internal class test_LanguageProcessor_scan {
private companion object {
fun test(grammarStr: String, sentence: String, expectedNumTokens: Int): List<LeafData> {
val pr = Agl.processorFromString<Any, Any>(grammarStr)
val tokens = pr.processor!!.scan(sentence)
assertNotNull(tokens)
val tokenStr = tokens.joinToString("") { it.matchedText }
assertEquals(sentence, tokenStr)
assertEquals(expectedNumTokens, tokens.size)
return tokens
}
}
@Test
fun scan_literal_empty_a() {
val grammarStr = "namespace test grammar Test { a = 'x'; }"
val sentence = "ab"
val tokens = test(grammarStr, sentence, 1)
assertEquals(0, tokens[0].location.position)
assertEquals(2, tokens[0].matchedText.length)
}
@Test
fun scan_pattern_empty_a() {
val pr = Agl.processorFromString<Any, Any>("namespace test grammar Test { a = \"[x]*\"; }")
val tokens = pr.processor!!.scan("ab")
val tokenStr = tokens.map { it.toString() }.joinToString(", ")
println("tokens = ${tokenStr}")
assertNotNull(tokens)
assertEquals(1, tokens.size)
assertEquals("ab", tokens[0].matchedText)
//assertEquals(1, tokens[0].identity.runtimeRuleNumber)
assertEquals(0, tokens[0].location.position)
assertEquals(2, tokens[0].matchedText.length)
}
@Test
fun scan_a_a() {
val pr = Agl.processorFromStringDefault("namespace test grammar Test { a = 'a';}")
val tokens = pr.processor!!.scan("a")
val tokenStr = tokens.map { it.toString() }.joinToString(", ")
println("tokens = ${tokenStr}")
assertNotNull(tokens)
assertEquals(1, tokens.size)
assertEquals("a", tokens[0].matchedText)
//assertEquals(1, tokens[0].identity.runtimeRuleNumber)
assertEquals(0, tokens[0].location.position)
assertEquals(1, tokens[0].matchedText.length)
}
@Test
fun scan_a_aa() {
val pr = Agl.processorFromString<Any, Any>("namespace test grammar Test { a = 'a';}")
val tokens = pr.processor!!.scan("aa")
val tokenStr = tokens.map { it.toString() }.joinToString(", ")
println("tokens = ${tokenStr}")
assertNotNull(tokens)
assertEquals(2, tokens.size)
}
@Test
fun scan_a_aaa() {
val pr = Agl.processorFromString<Any, Any>("namespace test grammar Test { a = 'a';}")
val tokens = pr.processor!!.scan("aaa")
val tokenStr = tokens.map { it.toString() }.joinToString(", ")
println("tokens = ${tokenStr}")
assertNotNull(tokens)
assertEquals(3, tokens.size)
}
@Test
fun scan_ab_aba() {
val pr = Agl.processorFromString<Any, Any>("namespace test grammar Test { a = 'a'; b = 'b'; }")
val tokens = pr.processor!!.scan("aba")
val tokenStr = tokens.map { it.toString() }.joinToString(", ")
println("tokens = ${tokenStr}")
assertNotNull(tokens)
assertEquals(3, tokens.size)
assertEquals("a", tokens[0].matchedText)
assertEquals("b", tokens[1].matchedText)
assertEquals("a", tokens[2].matchedText)
}
@Test
fun scan_end_of_line() {
val pr = Agl.processorFromString<Any, Any>(
"""
namespace test
grammar Test {
skip WHITESPACE = "\s+" ;
chars = char+ ;
char = "[a-z]" ;
}
""".trimIndent()
)
var tokens = pr.processor!!.scan("a")
var tokenStr = tokens.map { it.toString() }.joinToString(", ")
println("tokens = ${tokenStr}")
assertEquals(1, tokens.size)
tokens = pr.processor!!.scan("a b")
tokenStr = tokens.map { it.toString() }.joinToString(", ")
println("tokens = ${tokenStr}")
assertEquals(3, tokens.size)
TODO("test eol")
}
@Test
fun scan_bug() {
val grammarStr = """
namespace test
grammar Test {
skip WHITESPACE = "\s+" ;
S = 'prefix' NAME;
NAME = "[a-z]+" ;
}
""".trimIndent()
//test(grammarStr, "prefix abc", 3)
//test(grammarStr, "prefixabc", 2)
test(grammarStr, "/prefix abc", 4)
}
} | 3 | Kotlin | 7 | 45 | 177abcb60c51efcfc2432174f5d6620a7db89928 | 5,278 | net.akehurst.language | Apache License 2.0 |
prime-router/src/main/kotlin/azure/SettingsFacade.kt | CDCgov | 304,423,150 | false | null | package gov.cdc.prime.router.azure
import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.databind.SerializationFeature
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import gov.cdc.prime.router.CustomerStatus
import gov.cdc.prime.router.Metadata
import gov.cdc.prime.router.Organization
import gov.cdc.prime.router.Receiver
import gov.cdc.prime.router.ReportStreamFilter
import gov.cdc.prime.router.ReportStreamFilters
import gov.cdc.prime.router.Sender
import gov.cdc.prime.router.SettingsProvider
import gov.cdc.prime.router.TranslatorConfiguration
import gov.cdc.prime.router.TransportType
import gov.cdc.prime.router.azure.db.enums.SettingType
import gov.cdc.prime.router.azure.db.tables.pojos.Setting
import org.jooq.JSONB
import java.time.OffsetDateTime
/**
* Settings for Organization, Receivers, and Senders from the Azure Database.
* Contains all business logic regarding settings as well as JSON serialization.
*/
class SettingsFacade(
private val metadata: Metadata,
private val db: DatabaseAccess = DatabaseAccess()
) : SettingsProvider {
enum class AccessResult {
SUCCESS,
CREATED,
NOT_FOUND,
BAD_REQUEST
}
private val mapper = jacksonObjectMapper()
init {
// Format OffsetDateTime as an ISO string
mapper.registerModule(JavaTimeModule())
mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS)
}
override val organizations: Collection<Organization>
get() = findSettings(OrganizationAPI::class.java)
override val senders: Collection<Sender>
get() = findSettings(SenderAPI::class.java)
override val receivers: Collection<Receiver>
get() = findSettings(ReceiverAPI::class.java)
override fun findOrganization(name: String): Organization? {
return findSetting(name, OrganizationAPI::class.java)
}
override fun findReceiver(fullName: String): Receiver? {
val pair = Receiver.parseFullName(fullName)
return findSetting(pair.second, ReceiverAPI::class.java, pair.first)
}
override fun findSender(fullName: String): Sender? {
val pair = Sender.parseFullName(fullName)
return findSetting(pair.second, SenderAPI::class.java, pair.first)
}
override fun findOrganizationAndReceiver(fullName: String): Pair<Organization, Receiver>? {
return findOrganizationAndReceiver(fullName, null)
}
fun <T : SettingAPI> findSettingAsJson(
name: String,
clazz: Class<T>,
organizationName: String? = null,
): String? {
val result = findSetting(name, clazz, organizationName) ?: return null
return mapper.writeValueAsString(result)
}
fun getLastModified(): OffsetDateTime? {
return db.fetchLastModified()
}
private fun <T : SettingAPI> findSetting(
name: String,
clazz: Class<T>,
organizationName: String? = null
): T? {
val setting = db.transactReturning { txn ->
val settingType = settingTypeFromClass(clazz.name)
if (organizationName != null)
db.fetchSetting(settingType, name, organizationName, txn)
else
db.fetchSetting(settingType, name, parentId = null, txn)
} ?: return null
val result = mapper.readValue(setting.values.data(), clazz)
result.meta = SettingMetadata(setting.version, setting.createdBy, setting.createdAt)
return result
}
fun <T : SettingAPI> findSettingsAsJson(clazz: Class<T>): String {
val list = findSettings(clazz)
return mapper.writeValueAsString(list)
}
private fun <T : SettingAPI> findSettings(clazz: Class<T>): List<T> {
val settingType = settingTypeFromClass(clazz.name)
val settings = db.transactReturning { txn ->
db.fetchSettings(settingType, txn)
}
return settings.map {
val result = mapper.readValue(it.values.data(), clazz)
result.meta = SettingMetadata(it.version, it.createdBy, it.createdAt)
result
}
}
fun <T : SettingAPI> findSettingsAsJson(organizationName: String, clazz: Class<T>): Pair<AccessResult, String> {
val (result, settings, errorMessage) = db.transactReturning { txn ->
val organization = db.fetchSetting(SettingType.ORGANIZATION, organizationName, null, txn)
?: return@transactReturning Triple(
AccessResult.NOT_FOUND, emptyList(), errorJson("Organization not found")
)
val settingType = settingTypeFromClass(clazz.name)
val settings = db.fetchSettings(settingType, organization.settingId, txn)
Triple(AccessResult.SUCCESS, settings, "")
}
return if (result == AccessResult.SUCCESS) {
val settingsWithMeta = settings.map {
val setting = mapper.readValue(it.values.data(), clazz)
setting.meta = SettingMetadata(it.version, it.createdBy, it.createdAt)
setting
}
val json = mapper.writeValueAsString(settingsWithMeta)
Pair(result, json)
} else {
Pair(result, errorMessage)
}
}
fun findOrganizationAndReceiver(fullName: String, txn: DataAccessTransaction?): Pair<Organization, Receiver>? {
val (organizationName, receiverName) = Receiver.parseFullName(fullName)
val (organizationSetting, receiverSetting) = db.fetchOrganizationAndSetting(
SettingType.RECEIVER, receiverName, organizationName, txn
) ?: return null
val receiver = mapper.readValue(receiverSetting.values.data(), ReceiverAPI::class.java)
val organization = mapper.readValue(organizationSetting.values.data(), OrganizationAPI::class.java)
return Pair(organization, receiver)
}
fun <T : SettingAPI> putSetting(
name: String,
json: String,
claims: AuthenticatedClaims,
clazz: Class<T>,
organizationName: String? = null
): Pair<AccessResult, String> {
return db.transactReturning { txn ->
// Check that the orgName is valid (or null)
val organizationId = organizationName?.let {
val organization = db.fetchSetting(SettingType.ORGANIZATION, organizationName, null, txn)
?: return@transactReturning Pair(AccessResult.BAD_REQUEST, errorJson("No organization match"))
organization.settingId
}
// Check the payload
val (valid, error, normalizedJson) = validateAndNormalize(json, clazz, name, organizationName)
if (!valid)
return@transactReturning Pair(AccessResult.BAD_REQUEST, errorJson(error ?: "validation error"))
if (normalizedJson == null) error("Internal Error: validation error")
// Find the current setting to see if this is a create or an update operation
val settingType = settingTypeFromClass(clazz.name)
val current = db.fetchSetting(settingType, name, organizationId, txn)
val currentVersion = current?.version ?: db.findSettingVersion(settingType, name, organizationId, txn)
// Form the new setting
val settingMetadata = SettingMetadata(currentVersion + 1, claims.userName, OffsetDateTime.now())
val setting = Setting(
null, settingType, name, organizationId,
normalizedJson, false, true,
settingMetadata.version, settingMetadata.createdBy, settingMetadata.createdAt
)
// Now insert
val (accessResult, resultMetadata) = when {
current == null -> {
// No existing setting, just add to the new setting to the table
db.insertSetting(setting, txn)
Pair(AccessResult.CREATED, settingMetadata)
}
current.values == normalizedJson -> {
// Don't create a new version if the payload matches the current version
Pair(AccessResult.SUCCESS, SettingMetadata(current.version, current.createdBy, current.createdAt))
}
else -> {
// Update existing setting by deactivate the current setting and inserting a new version
db.deactivateSetting(current.settingId, txn)
val newId = db.insertSetting(setting, txn)
// If inserting an org, update all children settings to point to the new org
if (settingType == SettingType.ORGANIZATION)
db.updateOrganizationId(current.settingId, newId, txn)
Pair(AccessResult.SUCCESS, settingMetadata)
}
}
val outputJson = mapper.writeValueAsString(resultMetadata)
Pair(accessResult, outputJson)
}
}
/**
* Make sure the input json is valid, consistent and normalized
*/
private fun <T : SettingAPI> validateAndNormalize(
json: String,
clazz: Class<T>,
name: String,
organizationName: String? = null,
): Triple<Boolean, String?, JSONB?> {
val input = try {
mapper.readValue(json, clazz)
} catch (ex: Exception) {
null
} ?: return Triple(false, "Could not parse JSON payload", null)
if (input.name != name)
return Triple(false, "Payload and path name do not match", null)
if (input.organizationName != organizationName)
return Triple(false, "Payload and path organization name do not match", null)
input.consistencyErrorMessage(metadata) ?.let { return Triple(false, it, null) }
val normalizedJson = JSONB.valueOf(mapper.writeValueAsString(input))
return Triple(true, null, normalizedJson)
}
fun <T : SettingAPI> deleteSetting(
name: String,
claims: AuthenticatedClaims,
clazz: Class<T>,
organizationName: String? = null
): Pair<AccessResult, String> {
return db.transactReturning { txn ->
val settingType = settingTypeFromClass(clazz.name)
val current = if (organizationName != null)
db.fetchSetting(settingType, name, organizationName, txn)
else
db.fetchSetting(settingType, name, parentId = null, txn)
if (current == null) return@transactReturning Pair(AccessResult.NOT_FOUND, errorJson("Item not found"))
val settingMetadata = SettingMetadata(current.version + 1, claims.userName, OffsetDateTime.now())
db.insertDeletedSettingAndChildren(current.settingId, settingMetadata, txn)
db.deactivateSettingAndChildren(current.settingId, txn)
val outputJson = mapper.writeValueAsString(settingMetadata)
Pair(AccessResult.SUCCESS, outputJson)
}
}
companion object {
// The SettingAccess is heavy-weight object (because it contains a Jackson Mapper) so reuse it when possible
val common: SettingsFacade by lazy {
SettingsFacade(Metadata.getInstance(), DatabaseAccess())
}
private fun settingTypeFromClass(className: String): SettingType {
return when (className) {
"gov.cdc.prime.router.azure.OrganizationAPI" -> SettingType.ORGANIZATION
"gov.cdc.prime.router.azure.ReceiverAPI" -> SettingType.RECEIVER
"gov.cdc.prime.router.azure.SenderAPI" -> SettingType.SENDER
else -> error("Internal Error: Unknown classname: $className")
}
}
private fun errorJson(message: String): String {
return """{"error": "$message"}"""
}
}
}
/**
* Classes for JSON serialization
*/
data class SettingMetadata(
val version: Int,
val createdBy: String,
val createdAt: OffsetDateTime
)
interface SettingAPI {
val name: String
val organizationName: String?
var meta: SettingMetadata?
fun consistencyErrorMessage(metadata: Metadata): String?
}
class OrganizationAPI
@JsonCreator constructor(
name: String,
description: String,
jurisdiction: Jurisdiction,
stateCode: String?,
countyName: String?,
filters: List<ReportStreamFilters>?,
override var meta: SettingMetadata?,
) : Organization(name, description, jurisdiction, stateCode, countyName, filters), SettingAPI {
@get:JsonIgnore
override val organizationName: String? = null
override fun consistencyErrorMessage(metadata: Metadata): String? { return this.consistencyErrorMessage() }
}
class SenderAPI
@JsonCreator constructor(
name: String,
organizationName: String,
format: Format,
topic: String,
customerStatus: CustomerStatus = CustomerStatus.INACTIVE,
schemaName: String,
override var meta: SettingMetadata?,
) : Sender(
name,
organizationName,
format,
topic,
customerStatus,
schemaName,
),
SettingAPI
class ReceiverAPI
@JsonCreator constructor(
name: String,
organizationName: String,
topic: String,
customerStatus: CustomerStatus = CustomerStatus.INACTIVE,
translation: TranslatorConfiguration,
jurisdictionalFilter: ReportStreamFilter = emptyList(),
qualityFilter: ReportStreamFilter = emptyList(),
routingFilter: ReportStreamFilter = emptyList(),
processingModeFilter: ReportStreamFilter = emptyList(),
reverseTheQualityFilter: Boolean = false,
deidentify: Boolean = false,
timing: Timing? = null,
description: String = "",
transport: TransportType? = null,
override var meta: SettingMetadata?,
) : Receiver(
name,
organizationName,
topic,
customerStatus,
translation,
jurisdictionalFilter,
qualityFilter,
routingFilter,
processingModeFilter,
reverseTheQualityFilter,
deidentify,
timing,
description,
transport
),
SettingAPI | 834 | null | 35 | 35 | 2d9551487ce5b352a9043cd677b67ab7711ea509 | 14,178 | prime-reportstream | Creative Commons Zero v1.0 Universal |
exact-numbers/src/test/kotlin/xyz/lbres/exactnumbers/irrationals/pi/simplifyListTests.kt | lbressler13 | 491,698,766 | false | {"Kotlin": 217363} | package xyz.lbres.exactnumbers.irrationals.pi
import xyz.lbres.exactnumbers.irrationals.log.Log
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith
fun runSimplifyListTests() {
// error
assertFailsWith<ClassCastException> { Pi.simplifyList(listOf(Pi(), Log.ONE)) }
// equal
var expected: List<Pi> = emptyList()
assertEquals(expected, Pi.simplifyList(null))
var pis: List<Pi> = emptyList()
assertEquals(expected, Pi.simplifyList(pis))
pis = listOf(Pi(), Pi(true))
assertEquals(expected, Pi.simplifyList(pis))
pis = listOf(Pi(true), Pi(), Pi(true), Pi(), Pi(), Pi(true))
assertEquals(expected, Pi.simplifyList(pis))
// positive
pis = listOf(Pi())
expected = listOf(Pi())
assertEquals(expected, Pi.simplifyList(pis))
pis = listOf(Pi(), Pi(), Pi())
expected = listOf(Pi(), Pi(), Pi())
assertEquals(expected, Pi.simplifyList(pis))
pis = listOf(Pi(), Pi(), Pi(true))
expected = listOf(Pi())
assertEquals(expected, Pi.simplifyList(pis))
pis = listOf(Pi(), Pi(), Pi(), Pi(true), Pi(), Pi(true))
expected = listOf(Pi(), Pi())
assertEquals(expected, Pi.simplifyList(pis))
// negative
pis = listOf(Pi(true))
expected = listOf(Pi(true))
assertEquals(expected, Pi.simplifyList(pis))
pis = listOf(Pi(true), Pi(true), Pi(true))
expected = listOf(Pi(true), Pi(true), Pi(true))
assertEquals(expected, Pi.simplifyList(pis))
pis = listOf(Pi(true), Pi(true), Pi())
expected = listOf(Pi(true))
assertEquals(expected, Pi.simplifyList(pis))
pis = listOf(Pi(true), Pi(true), Pi(true), Pi(), Pi(true), Pi())
expected = listOf(Pi(true), Pi(true))
assertEquals(expected, Pi.simplifyList(pis))
}
| 0 | Kotlin | 0 | 2 | b839a77a73599b2e156b80ef81defbcd2e4e8a89 | 1,746 | exact-numbers | MIT License |
core/src/test/java/br/ufs/nubankchallenge/core/tests/infrastructure/CreditcardSecurityInfrastructureTests.kt | ubiratansoares | 111,469,213 | false | null | package br.ufs.nubankchallenge.core.tests.infrastructure
import br.ufs.nubankchallenge.core.domain.errors.InfrastructureError
import br.ufs.nubankchallenge.core.domain.errors.NetworkingIssue
import br.ufs.nubankchallenge.core.infrastructure.CreditcardSecurityInfrastrucure
import br.ufs.nubankchallenge.core.infrastructure.models.OperationResultPayload
import br.ufs.nubankchallenge.core.infrastructure.rest.NubankWebService
import br.ufs.nubankchallenge.core.tests.util.Fixtures
import com.nhaarman.mockito_kotlin.doReturn
import com.nhaarman.mockito_kotlin.mock
import io.reactivex.Observable
import okhttp3.mockwebserver.MockResponse
import okhttp3.mockwebserver.MockWebServer
import org.junit.After
import org.junit.Before
import org.junit.Test
import java.net.SocketTimeoutException
/**
*
* Created by @ubiratanfsoares
*
*/
class CreditcardSecurityInfrastructureTests {
lateinit var infrastructure: CreditcardSecurityInfrastrucure
lateinit var server: MockWebServer
@Before fun `before each test`() {
server = MockWebServer()
val serverURL = server.url("/").toString()
val webservice = Fixtures.nubankWebService(serverURL)
infrastructure = CreditcardSecurityInfrastrucure(webservice)
}
@After fun `after each test`() {
server.shutdown()
}
@Test fun `should integrate handling error 4XY`() {
server.enqueue(MockResponse().setResponseCode(418))
infrastructure.blockSolicitation()
.test()
.assertError { it == InfrastructureError.UndesiredResponse }
}
@Test fun `should integrate handling error 5XY`() {
server.enqueue(MockResponse().setResponseCode(502))
infrastructure.unblockSolicitation()
.test()
.assertError { it == InfrastructureError.RemoteSystemDown }
}
@Test fun `should integrate handling networking issue`() {
val networkingError = Observable.error<OperationResultPayload> {
SocketTimeoutException("Timeout")
}
val mockedWebService = mock<NubankWebService> {
on { blockCard() } doReturn networkingError
}
CreditcardSecurityInfrastrucure(mockedWebService)
.blockSolicitation()
.test()
.assertError { it == NetworkingIssue.OperationTimeout }
}
@Test fun `should integrate with success for creditcard operation`() {
server.enqueue(
MockResponse()
.setResponseCode(201)
.setBody("{\"status\": \"Ok\"}")
)
infrastructure.unblockSolicitation()
.test()
.assertComplete()
.assertNoErrors()
}
} | 0 | Kotlin | 5 | 20 | d0b863a338b04ef40068f005c72b9d8e8335bc26 | 2,762 | nubank-challenge | MIT License |
app/src/main/kotlin/dev/nthduc/hoshino/extensions/anilist/model/MediaTitle.kt | Ai-Hoshino-Bot | 661,052,744 | false | null | package bogus.extension.anilist.model
import kotlinx.serialization.Serializable
/**
* The official titles of the media in various languages
*/
@Serializable
data class MediaTitle(
/**
* The official english title
*/
val english: String? = null,
/**
* The romanization of the native language title
*/
val romaji: String? = null,
/**
* Official title in it's native language
*/
val native: String? = null
)
| 0 | null | 1 | 1 | 5922a0911a82e54e9270e4a23cba705553b1f7d1 | 463 | ai-hoshino-bot | MIT License |
app/src/main/java/com/example/familygallery/view/ViewMembersActivity.kt | PromasterGuru | 220,758,647 | false | null | package com.example.familygallery.view
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.example.familygallery.R
class ViewMembersActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_view_members)
}
}
| 0 | Kotlin | 0 | 0 | 5b36ae5fd174cb85d5abcacc90320ec6b154875d | 363 | FamilyGallery | MIT License |
src/test/kotlin/com/github/rushyverse/core/utils/Generator.kt | Rushyverse | 578,345,115 | false | null | package com.github.rushyverse.core.utils
import io.github.universeproject.kotlinmojangapi.ProfileId
import io.github.universeproject.kotlinmojangapi.ProfileSkin
import java.util.*
val stringGenerator = generateSequence { UUID.randomUUID().toString() }.distinct().iterator()
fun getRandomString() = stringGenerator.next()
fun createProfileId(): ProfileId {
return ProfileId(name = getRandomString(), id = getRandomString())
}
fun createProfileSkin(id: ProfileId? = null): ProfileSkin {
return ProfileSkin(
id = id?.id ?: getRandomString(),
name = id?.name ?: getRandomString(),
properties = emptyList()
)
}
| 6 | Kotlin | 0 | 2 | cd3625be44410c365d2982016be647419d12bddf | 647 | core | MIT License |
components/info/impl/src/main/java/com/flipperdevices/info/impl/compose/elements/ComposableConnectedDeviceActionCard.kt | rougsig | 454,959,820 | true | {"Kotlin": 1053761, "FreeMarker": 2643, "Fluent": 7} | package com.flipperdevices.info.impl.compose.elements
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.ui.Modifier
import androidx.lifecycle.viewmodel.compose.viewModel
import com.flipperdevices.core.ui.res.R as DesignSystem
import com.flipperdevices.info.impl.R
import com.flipperdevices.info.impl.model.DeviceStatus
import com.flipperdevices.info.impl.model.FirmwareUpdateStatus
import com.flipperdevices.info.impl.viewmodel.AlarmViewModel
import com.flipperdevices.info.impl.viewmodel.ConnectViewModel
import com.flipperdevices.info.impl.viewmodel.DeviceStatusViewModel
import com.flipperdevices.info.impl.viewmodel.FirmwareUpdateViewModel
import com.flipperdevices.info.shared.ButtonElementRow
import com.flipperdevices.info.shared.ComposableInfoDivider
import com.flipperdevices.info.shared.InfoElementCard
@Composable
fun ComposableConnectedDeviceActionCard(
modifier: Modifier,
deviceStatusViewModel: DeviceStatusViewModel = viewModel(),
firmwareUpdateViewModel: FirmwareUpdateViewModel = viewModel()
) {
val deviceState by deviceStatusViewModel.getState().collectAsState()
val firmwareUpdateStatus by firmwareUpdateViewModel.getState().collectAsState()
if (deviceState is DeviceStatus.NoDevice) {
return
}
val enabled = deviceState is DeviceStatus.Connected &&
firmwareUpdateStatus is FirmwareUpdateStatus.UpToDate
InfoElementCard(modifier = modifier) {
ComposableSynchronize(enabled = enabled)
ComposableInfoDivider()
ComposableAlarmElement(enabled = enabled)
}
}
@Composable
private fun ComposableSynchronize(
modifier: Modifier = Modifier,
connectViewModel: ConnectViewModel = viewModel(),
enabled: Boolean
) {
val colorId = if (enabled) {
DesignSystem.color.accent_secondary
} else DesignSystem.color.black_16
ButtonElementRow(
modifier = modifier,
titleId = R.string.info_device_synchronize,
iconId = R.drawable.ic_syncing,
colorId = colorId,
onClick = if (enabled) {
connectViewModel::requestSynchronize
} else null
)
}
@Composable
private fun ComposableAlarmElement(
modifier: Modifier = Modifier,
alarmViewModel: AlarmViewModel = viewModel(),
enabled: Boolean
) {
val colorId = if (enabled) {
DesignSystem.color.accent_secondary
} else DesignSystem.color.black_16
ButtonElementRow(
modifier = modifier,
titleId = R.string.info_device_play_alert,
iconId = R.drawable.ic_ring,
colorId = colorId,
onClick = if (enabled) {
alarmViewModel::alarmOnFlipper
} else null
)
}
| 0 | Kotlin | 0 | 0 | 29088877484ab201e87aa48177cc0942e60c08b2 | 2,768 | Flipper-Android-App | MIT License |
src/main/kotlin/me/fzzyhmstrs/amethyst_imbuement/spells/MentalClarityAugment.kt | fzzyhmstrs | 461,338,617 | false | null | package me.fzzyhmstrs.amethyst_imbuement.scepter
import me.fzzyhmstrs.amethyst_core.interfaces.SpellCastingEntity
import me.fzzyhmstrs.amethyst_core.modifier_util.AugmentConsumer
import me.fzzyhmstrs.amethyst_core.modifier_util.AugmentEffect
import me.fzzyhmstrs.amethyst_core.scepter_util.LoreTier
import me.fzzyhmstrs.amethyst_core.scepter_util.ScepterTier
import me.fzzyhmstrs.amethyst_core.scepter_util.SpellType
import me.fzzyhmstrs.amethyst_core.scepter_util.augments.AugmentDatapoint
import me.fzzyhmstrs.amethyst_core.scepter_util.augments.MinorSupportAugment
import me.fzzyhmstrs.amethyst_imbuement.config.AiConfig
import me.fzzyhmstrs.amethyst_imbuement.registry.RegisterItem
import me.fzzyhmstrs.amethyst_imbuement.registry.RegisterStatus
import me.fzzyhmstrs.fzzy_core.coding_util.PerLvlI
import me.fzzyhmstrs.fzzy_core.trinket_util.EffectQueue
import net.minecraft.entity.Entity
import net.minecraft.entity.LivingEntity
import net.minecraft.entity.passive.GolemEntity
import net.minecraft.entity.passive.PassiveEntity
import net.minecraft.entity.player.PlayerEntity
import net.minecraft.item.Items
import net.minecraft.sound.SoundCategory
import net.minecraft.world.World
class MentalClarityAugment: MinorSupportAugment(ScepterTier.TWO,16){
override val baseEffect: AugmentEffect
get() = super.baseEffect.withDuration(840,60).withAmplifier(-1,1)
override fun augmentStat(imbueLevel: Int): AugmentDatapoint {
return AugmentDatapoint(SpellType.WIT, PerLvlI(1920,-20),300,
13,imbueLevel,45,LoreTier.LOW_TIER, RegisterItem.KNOWLEDGE_POWDER)
}
override fun supportEffect(
world: World,
target: Entity?,
user: LivingEntity,
level: Int,
effects: AugmentEffect
): Boolean {
if(target != null) {
if (target is PlayerEntity && AiConfig.entities.isEntityPvpTeammate(user,target,this)) {
EffectQueue.addStatusToQueue(
target,
RegisterStatus.INSIGHTFUL,
effects.duration(level),
(effects.amplifier(level)/3) + 1)
world.playSound(null, target.blockPos, soundEvent(), SoundCategory.PLAYERS, 1.0F, 1.0F)
effects.accept(target, AugmentConsumer.Type.BENEFICIAL)
return true
}
}
EffectQueue.addStatusToQueue(
user,
RegisterStatus.INSIGHTFUL,
effects.duration(level),
(effects.amplifier(level)/3) + 1)
world.playSound(null, user.blockPos, soundEvent(), SoundCategory.PLAYERS, 1.0F, 1.0F)
effects.accept(user,AugmentConsumer.Type.BENEFICIAL)
return true
}
}
| 17 | null | 9 | 4 | 49ef2119816a9fc75f4ed2508fc1ac35a009c6a9 | 2,712 | ai | MIT License |
src/main/kotlin/me/fzzyhmstrs/amethyst_imbuement/spells/MentalClarityAugment.kt | fzzyhmstrs | 461,338,617 | false | null | package me.fzzyhmstrs.amethyst_imbuement.scepter
import me.fzzyhmstrs.amethyst_core.interfaces.SpellCastingEntity
import me.fzzyhmstrs.amethyst_core.modifier_util.AugmentConsumer
import me.fzzyhmstrs.amethyst_core.modifier_util.AugmentEffect
import me.fzzyhmstrs.amethyst_core.scepter_util.LoreTier
import me.fzzyhmstrs.amethyst_core.scepter_util.ScepterTier
import me.fzzyhmstrs.amethyst_core.scepter_util.SpellType
import me.fzzyhmstrs.amethyst_core.scepter_util.augments.AugmentDatapoint
import me.fzzyhmstrs.amethyst_core.scepter_util.augments.MinorSupportAugment
import me.fzzyhmstrs.amethyst_imbuement.config.AiConfig
import me.fzzyhmstrs.amethyst_imbuement.registry.RegisterItem
import me.fzzyhmstrs.amethyst_imbuement.registry.RegisterStatus
import me.fzzyhmstrs.fzzy_core.coding_util.PerLvlI
import me.fzzyhmstrs.fzzy_core.trinket_util.EffectQueue
import net.minecraft.entity.Entity
import net.minecraft.entity.LivingEntity
import net.minecraft.entity.passive.GolemEntity
import net.minecraft.entity.passive.PassiveEntity
import net.minecraft.entity.player.PlayerEntity
import net.minecraft.item.Items
import net.minecraft.sound.SoundCategory
import net.minecraft.world.World
class MentalClarityAugment: MinorSupportAugment(ScepterTier.TWO,16){
override val baseEffect: AugmentEffect
get() = super.baseEffect.withDuration(840,60).withAmplifier(-1,1)
override fun augmentStat(imbueLevel: Int): AugmentDatapoint {
return AugmentDatapoint(SpellType.WIT, PerLvlI(1920,-20),300,
13,imbueLevel,45,LoreTier.LOW_TIER, RegisterItem.KNOWLEDGE_POWDER)
}
override fun supportEffect(
world: World,
target: Entity?,
user: LivingEntity,
level: Int,
effects: AugmentEffect
): Boolean {
if(target != null) {
if (target is PlayerEntity && AiConfig.entities.isEntityPvpTeammate(user,target,this)) {
EffectQueue.addStatusToQueue(
target,
RegisterStatus.INSIGHTFUL,
effects.duration(level),
(effects.amplifier(level)/3) + 1)
world.playSound(null, target.blockPos, soundEvent(), SoundCategory.PLAYERS, 1.0F, 1.0F)
effects.accept(target, AugmentConsumer.Type.BENEFICIAL)
return true
}
}
EffectQueue.addStatusToQueue(
user,
RegisterStatus.INSIGHTFUL,
effects.duration(level),
(effects.amplifier(level)/3) + 1)
world.playSound(null, user.blockPos, soundEvent(), SoundCategory.PLAYERS, 1.0F, 1.0F)
effects.accept(user,AugmentConsumer.Type.BENEFICIAL)
return true
}
}
| 17 | null | 9 | 4 | 49ef2119816a9fc75f4ed2508fc1ac35a009c6a9 | 2,712 | ai | MIT License |
androidbasic/app/src/main/java/com/yunjaena/androidbasic/PermissionActivity.kt | yunjaena | 278,050,796 | false | {"Java": 212368, "Kotlin": 159158} | package com.yunjaena.androidbasic
import android.content.pm.PackageManager
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import kotlinx.android.synthetic.main.activity_permission.*
class PermissionActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_permission)
ask.setOnClickListener {
val cameraPermissionCheck = ContextCompat.checkSelfPermission(
this@PermissionActivity,
android.Manifest.permission.CAMERA
)
if (cameraPermissionCheck != PackageManager.PERMISSION_GRANTED) {
// 권한이 없는 경우
ActivityCompat.requestPermissions(
this,
arrayOf(android.Manifest.permission.CAMERA),
1000
)
} else {
// 권한이 있는 경우
Log.d("permission", "권한이 이미 있음")
}
}
}
override fun onRequestPermissionsResult(
requestCode: Int,
permissions: Array<out String>,
grantResults: IntArray
) {
super.onRequestPermissionsResult(requestCode, permissions, grantResults)
if (requestCode == 1000) {
if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {
// 승닉
Log.d("permission", "승닉")
} else {
// 거부
Log.d("permission", "거부")
}
}
}
}
| 1 | null | 1 | 1 | a80a9e5a55c58976c6ba2aec5e3365d0687231c4 | 1,677 | android_study | Apache License 2.0 |
androidbasic/app/src/main/java/com/yunjaena/androidbasic/PermissionActivity.kt | yunjaena | 278,050,796 | false | {"Java": 212368, "Kotlin": 159158} | package com.yunjaena.androidbasic
import android.content.pm.PackageManager
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import kotlinx.android.synthetic.main.activity_permission.*
class PermissionActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_permission)
ask.setOnClickListener {
val cameraPermissionCheck = ContextCompat.checkSelfPermission(
this@PermissionActivity,
android.Manifest.permission.CAMERA
)
if (cameraPermissionCheck != PackageManager.PERMISSION_GRANTED) {
// 권한이 없는 경우
ActivityCompat.requestPermissions(
this,
arrayOf(android.Manifest.permission.CAMERA),
1000
)
} else {
// 권한이 있는 경우
Log.d("permission", "권한이 이미 있음")
}
}
}
override fun onRequestPermissionsResult(
requestCode: Int,
permissions: Array<out String>,
grantResults: IntArray
) {
super.onRequestPermissionsResult(requestCode, permissions, grantResults)
if (requestCode == 1000) {
if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {
// 승닉
Log.d("permission", "승닉")
} else {
// 거부
Log.d("permission", "거부")
}
}
}
}
| 1 | null | 1 | 1 | a80a9e5a55c58976c6ba2aec5e3365d0687231c4 | 1,677 | android_study | Apache License 2.0 |
app/src/main/java/me/wcy/androidweekly/widget/radapter/RSingleDelegate.kt | wangchenyan | 125,049,324 | false | {"Gradle": 3, "JSON": 1, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "XML": 34, "Kotlin": 43, "Java": 2} | package me.wcy.androidweekly.widget.radapter
/**
* Created by hzwangchenyan on 2018/1/17.
*/
class RSingleDelegate<T>(private val clazz: Class<out RViewHolder<T>>) : RAdapterDelegate<T> {
override fun getViewHolderClass(position: Int): Class<out RViewHolder<T>> {
return clazz
}
}
| 0 | Kotlin | 0 | 0 | 7112c589d01b9dd5a71db8194de0757c241c200f | 301 | android-weekly | Apache License 2.0 |
emoji-ios/src/main/java/dev/leonardpark/emoji/ios/category/PeopleCategory.kt | leokwsw | 410,840,614 | false | {"Kotlin": 2112009, "JavaScript": 13836} | package dev.leonardpark.emoji.ios.category
import dev.leonardpark.emoji.emoji.Emoji
import dev.leonardpark.emoji.emoji.EmojiCategory
import dev.leonardpark.emoji.ios.R;
@SuppressWarnings("PMD.MethodReturnsInternalArray")
class PeopleCategory: EmojiCategory {
companion object {
private val DATA = listOf(
Emoji(0x1f600, R.drawable.emoji_ios_1f600),
Emoji(0x1f603, R.drawable.emoji_ios_1f603),
Emoji(0x1f604, R.drawable.emoji_ios_1f604),
Emoji(0x1f601, R.drawable.emoji_ios_1f601),
Emoji(0x1f606, R.drawable.emoji_ios_1f606),
Emoji(0x1f605, R.drawable.emoji_ios_1f605),
Emoji(0x1f602, R.drawable.emoji_ios_1f602),
Emoji(0x1f923, R.drawable.emoji_ios_1f923),
Emoji(0x263a, R.drawable.emoji_ios_263a),
Emoji(0x1f60a, R.drawable.emoji_ios_1f60a),
Emoji(0x1f607, R.drawable.emoji_ios_1f607),
Emoji(0x1f642, R.drawable.emoji_ios_1f642),
Emoji(0x1f643, R.drawable.emoji_ios_1f643),
Emoji(0x1f609, R.drawable.emoji_ios_1f609),
Emoji(0x1f60c, R.drawable.emoji_ios_1f60c),
Emoji(0x1f972, R.drawable.emoji_ios_1f972),
Emoji(0x1f60d, R.drawable.emoji_ios_1f60d),
Emoji(0x1f970, R.drawable.emoji_ios_1f970),
Emoji(0x1f618, R.drawable.emoji_ios_1f618),
Emoji(0x1f617, R.drawable.emoji_ios_1f617),
Emoji(0x1f619, R.drawable.emoji_ios_1f619),
Emoji(0x1f61a, R.drawable.emoji_ios_1f61a),
Emoji(0x1f60b, R.drawable.emoji_ios_1f60b),
Emoji(0x1f61b, R.drawable.emoji_ios_1f61b),
Emoji(0x1f61d, R.drawable.emoji_ios_1f61d),
Emoji(0x1f61c, R.drawable.emoji_ios_1f61c),
Emoji(0x1f92a, R.drawable.emoji_ios_1f92a),
Emoji(0x1f928, R.drawable.emoji_ios_1f928),
Emoji(0x1f9d0, R.drawable.emoji_ios_1f9d0),
Emoji(0x1f913, R.drawable.emoji_ios_1f913),
Emoji(0x1f60e, R.drawable.emoji_ios_1f60e),
Emoji(0x1f929, R.drawable.emoji_ios_1f929),
Emoji(0x1f973, R.drawable.emoji_ios_1f973),
Emoji(0x1f60f, R.drawable.emoji_ios_1f60f),
Emoji(0x1f612, R.drawable.emoji_ios_1f612),
Emoji(0x1f61e, R.drawable.emoji_ios_1f61e),
Emoji(0x1f614, R.drawable.emoji_ios_1f614),
Emoji(0x1f61f, R.drawable.emoji_ios_1f61f),
Emoji(0x1f615, R.drawable.emoji_ios_1f615),
Emoji(0x1f641, R.drawable.emoji_ios_1f641),
Emoji(0x2639, R.drawable.emoji_ios_2639),
Emoji(0x1f623, R.drawable.emoji_ios_1f623),
Emoji(0x1f616, R.drawable.emoji_ios_1f616),
Emoji(0x1f62b, R.drawable.emoji_ios_1f62b),
Emoji(0x1f629, R.drawable.emoji_ios_1f629),
Emoji(0x1f97a, R.drawable.emoji_ios_1f97a),
Emoji(0x1f622, R.drawable.emoji_ios_1f622),
Emoji(0x1f62d, R.drawable.emoji_ios_1f62d),
Emoji(0x1f624, R.drawable.emoji_ios_1f624),
Emoji(0x1f620, R.drawable.emoji_ios_1f620),
Emoji(0x1f621, R.drawable.emoji_ios_1f621),
Emoji(0x1f92c, R.drawable.emoji_ios_1f92c),
Emoji(0x1f92f, R.drawable.emoji_ios_1f92f),
Emoji(0x1f633, R.drawable.emoji_ios_1f633),
Emoji(0x1f975, R.drawable.emoji_ios_1f975),
Emoji(0x1f976, R.drawable.emoji_ios_1f976),
Emoji(0x1f631, R.drawable.emoji_ios_1f631),
Emoji(0x1f628, R.drawable.emoji_ios_1f628),
Emoji(0x1f630, R.drawable.emoji_ios_1f630),
Emoji(0x1f625, R.drawable.emoji_ios_1f625),
Emoji(0x1f613, R.drawable.emoji_ios_1f613),
Emoji(0x1f917, R.drawable.emoji_ios_1f917),
Emoji(0x1f914, R.drawable.emoji_ios_1f914),
Emoji(0x1f92d, R.drawable.emoji_ios_1f92d),
Emoji(0x1f971, R.drawable.emoji_ios_1f971),
Emoji(0x1f92b, R.drawable.emoji_ios_1f92b),
Emoji(0x1f925, R.drawable.emoji_ios_1f925),
Emoji(0x1f636, R.drawable.emoji_ios_1f636),
Emoji(0x1f610, R.drawable.emoji_ios_1f610),
Emoji(0x1f611, R.drawable.emoji_ios_1f611),
Emoji(0x1f62c, R.drawable.emoji_ios_1f62c),
Emoji(0x1f644, R.drawable.emoji_ios_1f644),
Emoji(0x1f62f, R.drawable.emoji_ios_1f62f),
Emoji(0x1f626, R.drawable.emoji_ios_1f626),
Emoji(0x1f627, R.drawable.emoji_ios_1f627),
Emoji(0x1f62e, R.drawable.emoji_ios_1f62e),
Emoji(0x1f632, R.drawable.emoji_ios_1f632),
Emoji(0x1f634, R.drawable.emoji_ios_1f634),
Emoji(0x1f924, R.drawable.emoji_ios_1f924),
Emoji(0x1f62a, R.drawable.emoji_ios_1f62a),
Emoji(0x1f635, R.drawable.emoji_ios_1f635),
Emoji(0x1f910, R.drawable.emoji_ios_1f910),
Emoji(0x1f974, R.drawable.emoji_ios_1f974),
Emoji(0x1f922, R.drawable.emoji_ios_1f922),
Emoji(0x1f92e, R.drawable.emoji_ios_1f92e),
Emoji(0x1f927, R.drawable.emoji_ios_1f927),
Emoji(0x1f637, R.drawable.emoji_ios_1f637),
Emoji(0x1f912, R.drawable.emoji_ios_1f912),
Emoji(0x1f915, R.drawable.emoji_ios_1f915),
Emoji(0x1f911, R.drawable.emoji_ios_1f911),
Emoji(0x1f920, R.drawable.emoji_ios_1f920),
Emoji(0x1f978, R.drawable.emoji_ios_1f978),
Emoji(0x1f608, R.drawable.emoji_ios_1f608),
Emoji(0x1f47f, R.drawable.emoji_ios_1f47f),
Emoji(0x1f479, R.drawable.emoji_ios_1f479),
Emoji(0x1f47a, R.drawable.emoji_ios_1f47a),
Emoji(0x1f921, R.drawable.emoji_ios_1f921),
Emoji(0x1f4a9, R.drawable.emoji_ios_1f4a9),
Emoji(0x1f47b, R.drawable.emoji_ios_1f47b),
Emoji(0x1f480, R.drawable.emoji_ios_1f480),
Emoji(0x2620, R.drawable.emoji_ios_2620),
Emoji(0x1f47d, R.drawable.emoji_ios_1f47d),
Emoji(0x1f47e, R.drawable.emoji_ios_1f47e),
Emoji(0x1f916, R.drawable.emoji_ios_1f916),
Emoji(0x1f383, R.drawable.emoji_ios_1f383),
Emoji(0x1f63a, R.drawable.emoji_ios_1f63a),
Emoji(0x1f638, R.drawable.emoji_ios_1f638),
Emoji(0x1f639, R.drawable.emoji_ios_1f639),
Emoji(0x1f63b, R.drawable.emoji_ios_1f63b),
Emoji(0x1f63c, R.drawable.emoji_ios_1f63c),
Emoji(0x1f63d, R.drawable.emoji_ios_1f63d),
Emoji(0x1f640, R.drawable.emoji_ios_1f640),
Emoji(0x1f63f, R.drawable.emoji_ios_1f63f),
Emoji(0x1f63e, R.drawable.emoji_ios_1f63e),
Emoji(0x1f932, R.drawable.emoji_ios_1f932, arrayOf(
Emoji(intArrayOf(0x1f932, 0x1f3fb), R.drawable.emoji_ios_1f932_1f3fb),
Emoji(intArrayOf(0x1f932, 0x1f3fc), R.drawable.emoji_ios_1f932_1f3fc),
Emoji(intArrayOf(0x1f932, 0x1f3fd), R.drawable.emoji_ios_1f932_1f3fd),
Emoji(intArrayOf(0x1f932, 0x1f3fe), R.drawable.emoji_ios_1f932_1f3fe),
Emoji(intArrayOf(0x1f932, 0x1f3ff), R.drawable.emoji_ios_1f932_1f3ff)
)),
Emoji(0x1f450, R.drawable.emoji_ios_1f450, arrayOf(
Emoji(intArrayOf(0x1f450, 0x1f3fb), R.drawable.emoji_ios_1f450_1f3fb),
Emoji(intArrayOf(0x1f450, 0x1f3fc), R.drawable.emoji_ios_1f450_1f3fc),
Emoji(intArrayOf(0x1f450, 0x1f3fd), R.drawable.emoji_ios_1f450_1f3fd),
Emoji(intArrayOf(0x1f450, 0x1f3fe), R.drawable.emoji_ios_1f450_1f3fe),
Emoji(intArrayOf(0x1f450, 0x1f3ff), R.drawable.emoji_ios_1f450_1f3ff)
)),
Emoji(0x1f64c, R.drawable.emoji_ios_1f64c, arrayOf(
Emoji(intArrayOf(0x1f64c, 0x1f3fb), R.drawable.emoji_ios_1f64c_1f3fb),
Emoji(intArrayOf(0x1f64c, 0x1f3fc), R.drawable.emoji_ios_1f64c_1f3fc),
Emoji(intArrayOf(0x1f64c, 0x1f3fd), R.drawable.emoji_ios_1f64c_1f3fd),
Emoji(intArrayOf(0x1f64c, 0x1f3fe), R.drawable.emoji_ios_1f64c_1f3fe),
Emoji(intArrayOf(0x1f64c, 0x1f3ff), R.drawable.emoji_ios_1f64c_1f3ff)
)),
Emoji(0x1f44f, R.drawable.emoji_ios_1f44f, arrayOf(
Emoji(intArrayOf(0x1f44f, 0x1f3fb), R.drawable.emoji_ios_1f44f_1f3fb),
Emoji(intArrayOf(0x1f44f, 0x1f3fc), R.drawable.emoji_ios_1f44f_1f3fc),
Emoji(intArrayOf(0x1f44f, 0x1f3fd), R.drawable.emoji_ios_1f44f_1f3fd),
Emoji(intArrayOf(0x1f44f, 0x1f3fe), R.drawable.emoji_ios_1f44f_1f3fe),
Emoji(intArrayOf(0x1f44f, 0x1f3ff), R.drawable.emoji_ios_1f44f_1f3ff)
)),
Emoji(0x1f91d, R.drawable.emoji_ios_1f91d),
Emoji(0x1f44d, R.drawable.emoji_ios_1f44d, arrayOf(
Emoji(intArrayOf(0x1f44d, 0x1f3fb), R.drawable.emoji_ios_1f44d_1f3fb),
Emoji(intArrayOf(0x1f44d, 0x1f3fc), R.drawable.emoji_ios_1f44d_1f3fc),
Emoji(intArrayOf(0x1f44d, 0x1f3fd), R.drawable.emoji_ios_1f44d_1f3fd),
Emoji(intArrayOf(0x1f44d, 0x1f3fe), R.drawable.emoji_ios_1f44d_1f3fe),
Emoji(intArrayOf(0x1f44d, 0x1f3ff), R.drawable.emoji_ios_1f44d_1f3ff)
)),
Emoji(0x1f44e, R.drawable.emoji_ios_1f44e, arrayOf(
Emoji(intArrayOf(0x1f44e, 0x1f3fb), R.drawable.emoji_ios_1f44e_1f3fb),
Emoji(intArrayOf(0x1f44e, 0x1f3fc), R.drawable.emoji_ios_1f44e_1f3fc),
Emoji(intArrayOf(0x1f44e, 0x1f3fd), R.drawable.emoji_ios_1f44e_1f3fd),
Emoji(intArrayOf(0x1f44e, 0x1f3fe), R.drawable.emoji_ios_1f44e_1f3fe),
Emoji(intArrayOf(0x1f44e, 0x1f3ff), R.drawable.emoji_ios_1f44e_1f3ff)
)),
Emoji(0x1f44a, R.drawable.emoji_ios_1f44a, arrayOf(
Emoji(intArrayOf(0x1f44a, 0x1f3fb), R.drawable.emoji_ios_1f44a_1f3fb),
Emoji(intArrayOf(0x1f44a, 0x1f3fc), R.drawable.emoji_ios_1f44a_1f3fc),
Emoji(intArrayOf(0x1f44a, 0x1f3fd), R.drawable.emoji_ios_1f44a_1f3fd),
Emoji(intArrayOf(0x1f44a, 0x1f3fe), R.drawable.emoji_ios_1f44a_1f3fe),
Emoji(intArrayOf(0x1f44a, 0x1f3ff), R.drawable.emoji_ios_1f44a_1f3ff)
)),
Emoji(0x270a, R.drawable.emoji_ios_270a, arrayOf(
Emoji(intArrayOf(0x270a, 0x1f3fb), R.drawable.emoji_ios_270a_1f3fb),
Emoji(intArrayOf(0x270a, 0x1f3fc), R.drawable.emoji_ios_270a_1f3fc),
Emoji(intArrayOf(0x270a, 0x1f3fd), R.drawable.emoji_ios_270a_1f3fd),
Emoji(intArrayOf(0x270a, 0x1f3fe), R.drawable.emoji_ios_270a_1f3fe),
Emoji(intArrayOf(0x270a, 0x1f3ff), R.drawable.emoji_ios_270a_1f3ff)
)),
Emoji(0x1f91b, R.drawable.emoji_ios_1f91b, arrayOf(
Emoji(intArrayOf(0x1f91b, 0x1f3fb), R.drawable.emoji_ios_1f91b_1f3fb),
Emoji(intArrayOf(0x1f91b, 0x1f3fc), R.drawable.emoji_ios_1f91b_1f3fc),
Emoji(intArrayOf(0x1f91b, 0x1f3fd), R.drawable.emoji_ios_1f91b_1f3fd),
Emoji(intArrayOf(0x1f91b, 0x1f3fe), R.drawable.emoji_ios_1f91b_1f3fe),
Emoji(intArrayOf(0x1f91b, 0x1f3ff), R.drawable.emoji_ios_1f91b_1f3ff)
)),
Emoji(0x1f91c, R.drawable.emoji_ios_1f91c, arrayOf(
Emoji(intArrayOf(0x1f91c, 0x1f3fb), R.drawable.emoji_ios_1f91c_1f3fb),
Emoji(intArrayOf(0x1f91c, 0x1f3fc), R.drawable.emoji_ios_1f91c_1f3fc),
Emoji(intArrayOf(0x1f91c, 0x1f3fd), R.drawable.emoji_ios_1f91c_1f3fd),
Emoji(intArrayOf(0x1f91c, 0x1f3fe), R.drawable.emoji_ios_1f91c_1f3fe),
Emoji(intArrayOf(0x1f91c, 0x1f3ff), R.drawable.emoji_ios_1f91c_1f3ff)
)),
Emoji(0x1f91e, R.drawable.emoji_ios_1f91e, arrayOf(
Emoji(intArrayOf(0x1f91e, 0x1f3fb), R.drawable.emoji_ios_1f91e_1f3fb),
Emoji(intArrayOf(0x1f91e, 0x1f3fc), R.drawable.emoji_ios_1f91e_1f3fc),
Emoji(intArrayOf(0x1f91e, 0x1f3fd), R.drawable.emoji_ios_1f91e_1f3fd),
Emoji(intArrayOf(0x1f91e, 0x1f3fe), R.drawable.emoji_ios_1f91e_1f3fe),
Emoji(intArrayOf(0x1f91e, 0x1f3ff), R.drawable.emoji_ios_1f91e_1f3ff)
)),
Emoji(0x270c, R.drawable.emoji_ios_270c, arrayOf(
Emoji(intArrayOf(0x270c, 0x1f3fb), R.drawable.emoji_ios_270c_1f3fb),
Emoji(intArrayOf(0x270c, 0x1f3fc), R.drawable.emoji_ios_270c_1f3fc),
Emoji(intArrayOf(0x270c, 0x1f3fd), R.drawable.emoji_ios_270c_1f3fd),
Emoji(intArrayOf(0x270c, 0x1f3fe), R.drawable.emoji_ios_270c_1f3fe),
Emoji(intArrayOf(0x270c, 0x1f3ff), R.drawable.emoji_ios_270c_1f3ff)
)),
Emoji(0x1f91f, R.drawable.emoji_ios_1f91f, arrayOf(
Emoji(intArrayOf(0x1f91f, 0x1f3fb), R.drawable.emoji_ios_1f91f_1f3fb),
Emoji(intArrayOf(0x1f91f, 0x1f3fc), R.drawable.emoji_ios_1f91f_1f3fc),
Emoji(intArrayOf(0x1f91f, 0x1f3fd), R.drawable.emoji_ios_1f91f_1f3fd),
Emoji(intArrayOf(0x1f91f, 0x1f3fe), R.drawable.emoji_ios_1f91f_1f3fe),
Emoji(intArrayOf(0x1f91f, 0x1f3ff), R.drawable.emoji_ios_1f91f_1f3ff)
)),
Emoji(0x1f918, R.drawable.emoji_ios_1f918, arrayOf(
Emoji(intArrayOf(0x1f918, 0x1f3fb), R.drawable.emoji_ios_1f918_1f3fb),
Emoji(intArrayOf(0x1f918, 0x1f3fc), R.drawable.emoji_ios_1f918_1f3fc),
Emoji(intArrayOf(0x1f918, 0x1f3fd), R.drawable.emoji_ios_1f918_1f3fd),
Emoji(intArrayOf(0x1f918, 0x1f3fe), R.drawable.emoji_ios_1f918_1f3fe),
Emoji(intArrayOf(0x1f918, 0x1f3ff), R.drawable.emoji_ios_1f918_1f3ff)
)),
Emoji(0x1f44c, R.drawable.emoji_ios_1f44c, arrayOf(
Emoji(intArrayOf(0x1f44c, 0x1f3fb), R.drawable.emoji_ios_1f44c_1f3fb),
Emoji(intArrayOf(0x1f44c, 0x1f3fc), R.drawable.emoji_ios_1f44c_1f3fc),
Emoji(intArrayOf(0x1f44c, 0x1f3fd), R.drawable.emoji_ios_1f44c_1f3fd),
Emoji(intArrayOf(0x1f44c, 0x1f3fe), R.drawable.emoji_ios_1f44c_1f3fe),
Emoji(intArrayOf(0x1f44c, 0x1f3ff), R.drawable.emoji_ios_1f44c_1f3ff)
)),
Emoji(0x1f90f, R.drawable.emoji_ios_1f90f, arrayOf(
Emoji(intArrayOf(0x1f90f, 0x1f3fb), R.drawable.emoji_ios_1f90f_1f3fb),
Emoji(intArrayOf(0x1f90f, 0x1f3fc), R.drawable.emoji_ios_1f90f_1f3fc),
Emoji(intArrayOf(0x1f90f, 0x1f3fd), R.drawable.emoji_ios_1f90f_1f3fd),
Emoji(intArrayOf(0x1f90f, 0x1f3fe), R.drawable.emoji_ios_1f90f_1f3fe),
Emoji(intArrayOf(0x1f90f, 0x1f3ff), R.drawable.emoji_ios_1f90f_1f3ff)
)),
Emoji(0x1f90c, R.drawable.emoji_ios_1f90c, arrayOf(
Emoji(intArrayOf(0x1f90c, 0x1f3fc), R.drawable.emoji_ios_1f90c_1f3fc),
Emoji(intArrayOf(0x1f90c, 0x1f3fb), R.drawable.emoji_ios_1f90c_1f3fb),
Emoji(intArrayOf(0x1f90c, 0x1f3fd), R.drawable.emoji_ios_1f90c_1f3fd),
Emoji(intArrayOf(0x1f90c, 0x1f3fe), R.drawable.emoji_ios_1f90c_1f3fe),
Emoji(intArrayOf(0x1f90c, 0x1f3ff), R.drawable.emoji_ios_1f90c_1f3ff)
)),
Emoji(0x1f448, R.drawable.emoji_ios_1f448, arrayOf(
Emoji(intArrayOf(0x1f448, 0x1f3fb), R.drawable.emoji_ios_1f448_1f3fb),
Emoji(intArrayOf(0x1f448, 0x1f3fc), R.drawable.emoji_ios_1f448_1f3fc),
Emoji(intArrayOf(0x1f448, 0x1f3fd), R.drawable.emoji_ios_1f448_1f3fd),
Emoji(intArrayOf(0x1f448, 0x1f3fe), R.drawable.emoji_ios_1f448_1f3fe),
Emoji(intArrayOf(0x1f448, 0x1f3ff), R.drawable.emoji_ios_1f448_1f3ff)
)),
Emoji(0x1f449, R.drawable.emoji_ios_1f449, arrayOf(
Emoji(intArrayOf(0x1f449, 0x1f3fb), R.drawable.emoji_ios_1f449_1f3fb),
Emoji(intArrayOf(0x1f449, 0x1f3fc), R.drawable.emoji_ios_1f449_1f3fc),
Emoji(intArrayOf(0x1f449, 0x1f3fd), R.drawable.emoji_ios_1f449_1f3fd),
Emoji(intArrayOf(0x1f449, 0x1f3fe), R.drawable.emoji_ios_1f449_1f3fe),
Emoji(intArrayOf(0x1f449, 0x1f3ff), R.drawable.emoji_ios_1f449_1f3ff)
)),
Emoji(0x1f446, R.drawable.emoji_ios_1f446, arrayOf(
Emoji(intArrayOf(0x1f446, 0x1f3fb), R.drawable.emoji_ios_1f446_1f3fb),
Emoji(intArrayOf(0x1f446, 0x1f3fc), R.drawable.emoji_ios_1f446_1f3fc),
Emoji(intArrayOf(0x1f446, 0x1f3fd), R.drawable.emoji_ios_1f446_1f3fd),
Emoji(intArrayOf(0x1f446, 0x1f3fe), R.drawable.emoji_ios_1f446_1f3fe),
Emoji(intArrayOf(0x1f446, 0x1f3ff), R.drawable.emoji_ios_1f446_1f3ff)
)),
Emoji(0x1f447, R.drawable.emoji_ios_1f447, arrayOf(
Emoji(intArrayOf(0x1f447, 0x1f3fb), R.drawable.emoji_ios_1f447_1f3fb),
Emoji(intArrayOf(0x1f447, 0x1f3fc), R.drawable.emoji_ios_1f447_1f3fc),
Emoji(intArrayOf(0x1f447, 0x1f3fd), R.drawable.emoji_ios_1f447_1f3fd),
Emoji(intArrayOf(0x1f447, 0x1f3fe), R.drawable.emoji_ios_1f447_1f3fe),
Emoji(intArrayOf(0x1f447, 0x1f3ff), R.drawable.emoji_ios_1f447_1f3ff)
)),
Emoji(0x261d, R.drawable.emoji_ios_261d, arrayOf(
Emoji(intArrayOf(0x261d, 0x1f3fb), R.drawable.emoji_ios_261d_1f3fb),
Emoji(intArrayOf(0x261d, 0x1f3fc), R.drawable.emoji_ios_261d_1f3fc),
Emoji(intArrayOf(0x261d, 0x1f3fd), R.drawable.emoji_ios_261d_1f3fd),
Emoji(intArrayOf(0x261d, 0x1f3fe), R.drawable.emoji_ios_261d_1f3fe),
Emoji(intArrayOf(0x261d, 0x1f3ff), R.drawable.emoji_ios_261d_1f3ff)
)),
Emoji(0x270b, R.drawable.emoji_ios_270b, arrayOf(
Emoji(intArrayOf(0x270b, 0x1f3fb), R.drawable.emoji_ios_270b_1f3fb),
Emoji(intArrayOf(0x270b, 0x1f3fc), R.drawable.emoji_ios_270b_1f3fc),
Emoji(intArrayOf(0x270b, 0x1f3fd), R.drawable.emoji_ios_270b_1f3fd),
Emoji(intArrayOf(0x270b, 0x1f3fe), R.drawable.emoji_ios_270b_1f3fe),
Emoji(intArrayOf(0x270b, 0x1f3ff), R.drawable.emoji_ios_270b_1f3ff)
)),
Emoji(0x1f91a, R.drawable.emoji_ios_1f91a, arrayOf(
Emoji(intArrayOf(0x1f91a, 0x1f3fb), R.drawable.emoji_ios_1f91a_1f3fb),
Emoji(intArrayOf(0x1f91a, 0x1f3fc), R.drawable.emoji_ios_1f91a_1f3fc),
Emoji(intArrayOf(0x1f91a, 0x1f3fd), R.drawable.emoji_ios_1f91a_1f3fd),
Emoji(intArrayOf(0x1f91a, 0x1f3fe), R.drawable.emoji_ios_1f91a_1f3fe),
Emoji(intArrayOf(0x1f91a, 0x1f3ff), R.drawable.emoji_ios_1f91a_1f3ff)
)),
Emoji(0x1f590, R.drawable.emoji_ios_1f590, arrayOf(
Emoji(intArrayOf(0x1f590, 0x1f3fb), R.drawable.emoji_ios_1f590_1f3fb),
Emoji(intArrayOf(0x1f590, 0x1f3fc), R.drawable.emoji_ios_1f590_1f3fc),
Emoji(intArrayOf(0x1f590, 0x1f3fd), R.drawable.emoji_ios_1f590_1f3fd),
Emoji(intArrayOf(0x1f590, 0x1f3fe), R.drawable.emoji_ios_1f590_1f3fe),
Emoji(intArrayOf(0x1f590, 0x1f3ff), R.drawable.emoji_ios_1f590_1f3ff)
)),
Emoji(0x1f596, R.drawable.emoji_ios_1f596, arrayOf(
Emoji(intArrayOf(0x1f596, 0x1f3fb), R.drawable.emoji_ios_1f596_1f3fb),
Emoji(intArrayOf(0x1f596, 0x1f3fc), R.drawable.emoji_ios_1f596_1f3fc),
Emoji(intArrayOf(0x1f596, 0x1f3fd), R.drawable.emoji_ios_1f596_1f3fd),
Emoji(intArrayOf(0x1f596, 0x1f3fe), R.drawable.emoji_ios_1f596_1f3fe),
Emoji(intArrayOf(0x1f596, 0x1f3ff), R.drawable.emoji_ios_1f596_1f3ff)
)),
Emoji(0x1f44b, R.drawable.emoji_ios_1f44b, arrayOf(
Emoji(intArrayOf(0x1f44b, 0x1f3fb), R.drawable.emoji_ios_1f44b_1f3fb),
Emoji(intArrayOf(0x1f44b, 0x1f3fc), R.drawable.emoji_ios_1f44b_1f3fc),
Emoji(intArrayOf(0x1f44b, 0x1f3fd), R.drawable.emoji_ios_1f44b_1f3fd),
Emoji(intArrayOf(0x1f44b, 0x1f3fe), R.drawable.emoji_ios_1f44b_1f3fe),
Emoji(intArrayOf(0x1f44b, 0x1f3ff), R.drawable.emoji_ios_1f44b_1f3ff)
)),
Emoji(0x1f919, R.drawable.emoji_ios_1f919, arrayOf(
Emoji(intArrayOf(0x1f919, 0x1f3fb), R.drawable.emoji_ios_1f919_1f3fb),
Emoji(intArrayOf(0x1f919, 0x1f3fc), R.drawable.emoji_ios_1f919_1f3fc),
Emoji(intArrayOf(0x1f919, 0x1f3fd), R.drawable.emoji_ios_1f919_1f3fd),
Emoji(intArrayOf(0x1f919, 0x1f3fe), R.drawable.emoji_ios_1f919_1f3fe),
Emoji(intArrayOf(0x1f919, 0x1f3ff), R.drawable.emoji_ios_1f919_1f3ff)
)),
Emoji(0x1f4aa, R.drawable.emoji_ios_1f4aa, arrayOf(
Emoji(intArrayOf(0x1f4aa, 0x1f3fb), R.drawable.emoji_ios_1f4aa_1f3fb),
Emoji(intArrayOf(0x1f4aa, 0x1f3fc), R.drawable.emoji_ios_1f4aa_1f3fc),
Emoji(intArrayOf(0x1f4aa, 0x1f3fd), R.drawable.emoji_ios_1f4aa_1f3fd),
Emoji(intArrayOf(0x1f4aa, 0x1f3fe), R.drawable.emoji_ios_1f4aa_1f3fe),
Emoji(intArrayOf(0x1f4aa, 0x1f3ff), R.drawable.emoji_ios_1f4aa_1f3ff)
)),
Emoji(0x1f9be, R.drawable.emoji_ios_1f9be),
Emoji(0x1f595, R.drawable.emoji_ios_1f595, arrayOf(
Emoji(intArrayOf(0x1f595, 0x1f3fb), R.drawable.emoji_ios_1f595_1f3fb),
Emoji(intArrayOf(0x1f595, 0x1f3fc), R.drawable.emoji_ios_1f595_1f3fc),
Emoji(intArrayOf(0x1f595, 0x1f3fd), R.drawable.emoji_ios_1f595_1f3fd),
Emoji(intArrayOf(0x1f595, 0x1f3fe), R.drawable.emoji_ios_1f595_1f3fe),
Emoji(intArrayOf(0x1f595, 0x1f3ff), R.drawable.emoji_ios_1f595_1f3ff)
)),
Emoji(0x270d, R.drawable.emoji_ios_270d, arrayOf(
Emoji(intArrayOf(0x270d, 0x1f3fb), R.drawable.emoji_ios_270d_1f3fb),
Emoji(intArrayOf(0x270d, 0x1f3fc), R.drawable.emoji_ios_270d_1f3fc),
Emoji(intArrayOf(0x270d, 0x1f3fd), R.drawable.emoji_ios_270d_1f3fd),
Emoji(intArrayOf(0x270d, 0x1f3fe), R.drawable.emoji_ios_270d_1f3fe),
Emoji(intArrayOf(0x270d, 0x1f3ff), R.drawable.emoji_ios_270d_1f3ff)
)),
Emoji(0x1f64f, R.drawable.emoji_ios_1f64f, arrayOf(
Emoji(intArrayOf(0x1f64f, 0x1f3fb), R.drawable.emoji_ios_1f64f_1f3fb),
Emoji(intArrayOf(0x1f64f, 0x1f3fc), R.drawable.emoji_ios_1f64f_1f3fc),
Emoji(intArrayOf(0x1f64f, 0x1f3fd), R.drawable.emoji_ios_1f64f_1f3fd),
Emoji(intArrayOf(0x1f64f, 0x1f3fe), R.drawable.emoji_ios_1f64f_1f3fe),
Emoji(intArrayOf(0x1f64f, 0x1f3ff), R.drawable.emoji_ios_1f64f_1f3ff)
)),
Emoji(0x1f9b6, R.drawable.emoji_ios_1f9b6, arrayOf(
Emoji(intArrayOf(0x1f9b6, 0x1f3fb), R.drawable.emoji_ios_1f9b6_1f3fb),
Emoji(intArrayOf(0x1f9b6, 0x1f3fc), R.drawable.emoji_ios_1f9b6_1f3fc),
Emoji(intArrayOf(0x1f9b6, 0x1f3fd), R.drawable.emoji_ios_1f9b6_1f3fd),
Emoji(intArrayOf(0x1f9b6, 0x1f3fe), R.drawable.emoji_ios_1f9b6_1f3fe),
Emoji(intArrayOf(0x1f9b6, 0x1f3ff), R.drawable.emoji_ios_1f9b6_1f3ff)
)),
Emoji(0x1f9b5, R.drawable.emoji_ios_1f9b5, arrayOf(
Emoji(intArrayOf(0x1f9b5, 0x1f3fb), R.drawable.emoji_ios_1f9b5_1f3fb),
Emoji(intArrayOf(0x1f9b5, 0x1f3fc), R.drawable.emoji_ios_1f9b5_1f3fc),
Emoji(intArrayOf(0x1f9b5, 0x1f3fd), R.drawable.emoji_ios_1f9b5_1f3fd),
Emoji(intArrayOf(0x1f9b5, 0x1f3fe), R.drawable.emoji_ios_1f9b5_1f3fe),
Emoji(intArrayOf(0x1f9b5, 0x1f3ff), R.drawable.emoji_ios_1f9b5_1f3ff)
)),
Emoji(0x1f9bf, R.drawable.emoji_ios_1f9bf),
Emoji(0x1f484, R.drawable.emoji_ios_1f484),
Emoji(0x1f48b, R.drawable.emoji_ios_1f48b),
Emoji(0x1f444, R.drawable.emoji_ios_1f444),
Emoji(0x1f9b7, R.drawable.emoji_ios_1f9b7),
Emoji(0x1f445, R.drawable.emoji_ios_1f445),
Emoji(0x1f442, R.drawable.emoji_ios_1f442, arrayOf(
Emoji(intArrayOf(0x1f442, 0x1f3fb), R.drawable.emoji_ios_1f442_1f3fb),
Emoji(intArrayOf(0x1f442, 0x1f3fc), R.drawable.emoji_ios_1f442_1f3fc),
Emoji(intArrayOf(0x1f442, 0x1f3fd), R.drawable.emoji_ios_1f442_1f3fd),
Emoji(intArrayOf(0x1f442, 0x1f3fe), R.drawable.emoji_ios_1f442_1f3fe),
Emoji(intArrayOf(0x1f442, 0x1f3ff), R.drawable.emoji_ios_1f442_1f3ff)
)),
Emoji(0x1f9bb, R.drawable.emoji_ios_1f9bb, arrayOf(
Emoji(intArrayOf(0x1f9bb, 0x1f3fb), R.drawable.emoji_ios_1f9bb_1f3fb),
Emoji(intArrayOf(0x1f9bb, 0x1f3fc), R.drawable.emoji_ios_1f9bb_1f3fc),
Emoji(intArrayOf(0x1f9bb, 0x1f3fd), R.drawable.emoji_ios_1f9bb_1f3fd),
Emoji(intArrayOf(0x1f9bb, 0x1f3fe), R.drawable.emoji_ios_1f9bb_1f3fe),
Emoji(intArrayOf(0x1f9bb, 0x1f3ff), R.drawable.emoji_ios_1f9bb_1f3ff)
)),
Emoji(0x1f443, R.drawable.emoji_ios_1f443, arrayOf(
Emoji(intArrayOf(0x1f443, 0x1f3fb), R.drawable.emoji_ios_1f443_1f3fb),
Emoji(intArrayOf(0x1f443, 0x1f3fc), R.drawable.emoji_ios_1f443_1f3fc),
Emoji(intArrayOf(0x1f443, 0x1f3fd), R.drawable.emoji_ios_1f443_1f3fd),
Emoji(intArrayOf(0x1f443, 0x1f3fe), R.drawable.emoji_ios_1f443_1f3fe),
Emoji(intArrayOf(0x1f443, 0x1f3ff), R.drawable.emoji_ios_1f443_1f3ff)
)),
Emoji(0x1f463, R.drawable.emoji_ios_1f463),
Emoji(0x1f441, R.drawable.emoji_ios_1f441),
Emoji(0x1f440, R.drawable.emoji_ios_1f440),
Emoji(0x1f9e0, R.drawable.emoji_ios_1f9e0),
Emoji(0x1fac0, R.drawable.emoji_ios_1fac0),
Emoji(0x1fac1, R.drawable.emoji_ios_1fac1),
Emoji(0x1f9b4, R.drawable.emoji_ios_1f9b4),
Emoji(0x1f5e3, R.drawable.emoji_ios_1f5e3),
Emoji(0x1f464, R.drawable.emoji_ios_1f464),
Emoji(0x1f465, R.drawable.emoji_ios_1f465),
Emoji(0x1fac2, R.drawable.emoji_ios_1fac2),
Emoji(0x1f476, R.drawable.emoji_ios_1f476, arrayOf(
Emoji(intArrayOf(0x1f476, 0x1f3fb), R.drawable.emoji_ios_1f476_1f3fb),
Emoji(intArrayOf(0x1f476, 0x1f3fc), R.drawable.emoji_ios_1f476_1f3fc),
Emoji(intArrayOf(0x1f476, 0x1f3fd), R.drawable.emoji_ios_1f476_1f3fd),
Emoji(intArrayOf(0x1f476, 0x1f3fe), R.drawable.emoji_ios_1f476_1f3fe),
Emoji(intArrayOf(0x1f476, 0x1f3ff), R.drawable.emoji_ios_1f476_1f3ff)
)),
Emoji(0x1f467, R.drawable.emoji_ios_1f467, arrayOf(
Emoji(intArrayOf(0x1f467, 0x1f3fb), R.drawable.emoji_ios_1f467_1f3fb),
Emoji(intArrayOf(0x1f467, 0x1f3fc), R.drawable.emoji_ios_1f467_1f3fc),
Emoji(intArrayOf(0x1f467, 0x1f3fd), R.drawable.emoji_ios_1f467_1f3fd),
Emoji(intArrayOf(0x1f467, 0x1f3fe), R.drawable.emoji_ios_1f467_1f3fe),
Emoji(intArrayOf(0x1f467, 0x1f3ff), R.drawable.emoji_ios_1f467_1f3ff)
)),
Emoji(0x1f9d2, R.drawable.emoji_ios_1f9d2, arrayOf(
Emoji(intArrayOf(0x1f9d2, 0x1f3fb), R.drawable.emoji_ios_1f9d2_1f3fb),
Emoji(intArrayOf(0x1f9d2, 0x1f3fc), R.drawable.emoji_ios_1f9d2_1f3fc),
Emoji(intArrayOf(0x1f9d2, 0x1f3fd), R.drawable.emoji_ios_1f9d2_1f3fd),
Emoji(intArrayOf(0x1f9d2, 0x1f3fe), R.drawable.emoji_ios_1f9d2_1f3fe),
Emoji(intArrayOf(0x1f9d2, 0x1f3ff), R.drawable.emoji_ios_1f9d2_1f3ff)
)),
Emoji(0x1f466, R.drawable.emoji_ios_1f466, arrayOf(
Emoji(intArrayOf(0x1f466, 0x1f3fb), R.drawable.emoji_ios_1f466_1f3fb),
Emoji(intArrayOf(0x1f466, 0x1f3fc), R.drawable.emoji_ios_1f466_1f3fc),
Emoji(intArrayOf(0x1f466, 0x1f3fd), R.drawable.emoji_ios_1f466_1f3fd),
Emoji(intArrayOf(0x1f466, 0x1f3fe), R.drawable.emoji_ios_1f466_1f3fe),
Emoji(intArrayOf(0x1f466, 0x1f3ff), R.drawable.emoji_ios_1f466_1f3ff)
)),
Emoji(0x1f469, R.drawable.emoji_ios_1f469, arrayOf(
Emoji(intArrayOf(0x1f469, 0x1f3fb), R.drawable.emoji_ios_1f469_1f3fb),
Emoji(intArrayOf(0x1f469, 0x1f3fc), R.drawable.emoji_ios_1f469_1f3fc),
Emoji(intArrayOf(0x1f469, 0x1f3fd), R.drawable.emoji_ios_1f469_1f3fd),
Emoji(intArrayOf(0x1f469, 0x1f3fe), R.drawable.emoji_ios_1f469_1f3fe),
Emoji(intArrayOf(0x1f469, 0x1f3ff), R.drawable.emoji_ios_1f469_1f3ff),
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f9b1), R.drawable.emoji_ios_1f469_1f3fb_200d_1f9b1),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f9b1), R.drawable.emoji_ios_1f469_1f3fc_200d_1f9b1),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f9b1), R.drawable.emoji_ios_1f469_1f3fd_200d_1f9b1),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f9b1), R.drawable.emoji_ios_1f469_1f3fe_200d_1f9b1),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f9b1), R.drawable.emoji_ios_1f469_1f3ff_200d_1f9b1),
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f9b0), R.drawable.emoji_ios_1f469_1f3fb_200d_1f9b0),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f9b0), R.drawable.emoji_ios_1f469_1f3fc_200d_1f9b0),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f9b0), R.drawable.emoji_ios_1f469_1f3fd_200d_1f9b0),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f9b0), R.drawable.emoji_ios_1f469_1f3fe_200d_1f9b0),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f9b0), R.drawable.emoji_ios_1f469_1f3ff_200d_1f9b0),
Emoji(intArrayOf(0x1f471, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f471_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f471, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f471_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f471, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f471_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f471, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f471_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f471, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f471_1f3ff_200d_2640_fe0f),
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f9b3), R.drawable.emoji_ios_1f469_1f3fb_200d_1f9b3),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f9b3), R.drawable.emoji_ios_1f469_1f3fc_200d_1f9b3),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f9b3), R.drawable.emoji_ios_1f469_1f3fd_200d_1f9b3),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f9b3), R.drawable.emoji_ios_1f469_1f3fe_200d_1f9b3),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f9b3), R.drawable.emoji_ios_1f469_1f3ff_200d_1f9b3),
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f9b2), R.drawable.emoji_ios_1f469_1f3fb_200d_1f9b2),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f9b2), R.drawable.emoji_ios_1f469_1f3fc_200d_1f9b2),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f9b2), R.drawable.emoji_ios_1f469_1f3fd_200d_1f9b2),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f9b2), R.drawable.emoji_ios_1f469_1f3fe_200d_1f9b2),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f9b2), R.drawable.emoji_ios_1f469_1f3ff_200d_1f9b2)
)),
Emoji(0x1f9d1, R.drawable.emoji_ios_1f9d1, arrayOf(
Emoji(intArrayOf(0x1f9d1, 0x1f3fb), R.drawable.emoji_ios_1f9d1_1f3fb),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc), R.drawable.emoji_ios_1f9d1_1f3fc),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd), R.drawable.emoji_ios_1f9d1_1f3fd),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe), R.drawable.emoji_ios_1f9d1_1f3fe),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff), R.drawable.emoji_ios_1f9d1_1f3ff),
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x1f9b1), R.drawable.emoji_ios_1f9d1_1f3fb_200d_1f9b1),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x1f9b1), R.drawable.emoji_ios_1f9d1_1f3fc_200d_1f9b1),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x1f9b1), R.drawable.emoji_ios_1f9d1_1f3fd_200d_1f9b1),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x1f9b1), R.drawable.emoji_ios_1f9d1_1f3fe_200d_1f9b1),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x1f9b1), R.drawable.emoji_ios_1f9d1_1f3ff_200d_1f9b1),
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x1f9b0), R.drawable.emoji_ios_1f9d1_1f3fb_200d_1f9b0),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x1f9b0), R.drawable.emoji_ios_1f9d1_1f3fc_200d_1f9b0),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x1f9b0), R.drawable.emoji_ios_1f9d1_1f3fd_200d_1f9b0),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x1f9b0), R.drawable.emoji_ios_1f9d1_1f3fe_200d_1f9b0),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x1f9b0), R.drawable.emoji_ios_1f9d1_1f3ff_200d_1f9b0),
Emoji(intArrayOf(0x1f471, 0x1f3fb), R.drawable.emoji_ios_1f471_1f3fb),
Emoji(intArrayOf(0x1f471, 0x1f3fc), R.drawable.emoji_ios_1f471_1f3fc),
Emoji(intArrayOf(0x1f471, 0x1f3fd), R.drawable.emoji_ios_1f471_1f3fd),
Emoji(intArrayOf(0x1f471, 0x1f3fe), R.drawable.emoji_ios_1f471_1f3fe),
Emoji(intArrayOf(0x1f471, 0x1f3ff), R.drawable.emoji_ios_1f471_1f3ff),
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x1f9b3), R.drawable.emoji_ios_1f9d1_1f3fb_200d_1f9b3),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x1f9b3), R.drawable.emoji_ios_1f9d1_1f3fc_200d_1f9b3),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x1f9b3), R.drawable.emoji_ios_1f9d1_1f3fd_200d_1f9b3),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x1f9b3), R.drawable.emoji_ios_1f9d1_1f3fe_200d_1f9b3),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x1f9b3), R.drawable.emoji_ios_1f9d1_1f3ff_200d_1f9b3),
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x1f9b2), R.drawable.emoji_ios_1f9d1_1f3fb_200d_1f9b2),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x1f9b2), R.drawable.emoji_ios_1f9d1_1f3fc_200d_1f9b2),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x1f9b2), R.drawable.emoji_ios_1f9d1_1f3fd_200d_1f9b2),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x1f9b2), R.drawable.emoji_ios_1f9d1_1f3fe_200d_1f9b2),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x1f9b2), R.drawable.emoji_ios_1f9d1_1f3ff_200d_1f9b2),
Emoji(intArrayOf(0x1f9d4, 0x1f3fb), R.drawable.emoji_ios_1f9d4_1f3fb),
Emoji(intArrayOf(0x1f9d4, 0x1f3fc), R.drawable.emoji_ios_1f9d4_1f3fc),
Emoji(intArrayOf(0x1f9d4, 0x1f3fd), R.drawable.emoji_ios_1f9d4_1f3fd),
Emoji(intArrayOf(0x1f9d4, 0x1f3fe), R.drawable.emoji_ios_1f9d4_1f3fe),
Emoji(intArrayOf(0x1f9d4, 0x1f3ff), R.drawable.emoji_ios_1f9d4_1f3ff)
)),
Emoji(0x1f468, R.drawable.emoji_ios_1f468, arrayOf(
Emoji(intArrayOf(0x1f468, 0x1f3fb), R.drawable.emoji_ios_1f468_1f3fb),
Emoji(intArrayOf(0x1f468, 0x1f3fc), R.drawable.emoji_ios_1f468_1f3fc),
Emoji(intArrayOf(0x1f468, 0x1f3fd), R.drawable.emoji_ios_1f468_1f3fd),
Emoji(intArrayOf(0x1f468, 0x1f3fe), R.drawable.emoji_ios_1f468_1f3fe),
Emoji(intArrayOf(0x1f468, 0x1f3ff), R.drawable.emoji_ios_1f468_1f3ff),
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x1f9b1), R.drawable.emoji_ios_1f468_1f3fb_200d_1f9b1),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x1f9b1), R.drawable.emoji_ios_1f468_1f3fc_200d_1f9b1),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x1f9b1), R.drawable.emoji_ios_1f468_1f3fd_200d_1f9b1),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x1f9b1), R.drawable.emoji_ios_1f468_1f3fe_200d_1f9b1),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x1f9b1), R.drawable.emoji_ios_1f468_1f3ff_200d_1f9b1),
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x1f9b0), R.drawable.emoji_ios_1f468_1f3fb_200d_1f9b0),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x1f9b0), R.drawable.emoji_ios_1f468_1f3fc_200d_1f9b0),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x1f9b0), R.drawable.emoji_ios_1f468_1f3fd_200d_1f9b0),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x1f9b0), R.drawable.emoji_ios_1f468_1f3fe_200d_1f9b0),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x1f9b0), R.drawable.emoji_ios_1f468_1f3ff_200d_1f9b0),
Emoji(intArrayOf(0x1f471, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f471_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f471, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f471_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f471, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f471_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f471, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f471_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f471, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f471_1f3ff_200d_2642_fe0f),
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x1f9b3), R.drawable.emoji_ios_1f468_1f3fb_200d_1f9b3),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x1f9b3), R.drawable.emoji_ios_1f468_1f3fc_200d_1f9b3),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x1f9b3), R.drawable.emoji_ios_1f468_1f3fd_200d_1f9b3),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x1f9b3), R.drawable.emoji_ios_1f468_1f3fe_200d_1f9b3),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x1f9b3), R.drawable.emoji_ios_1f468_1f3ff_200d_1f9b3),
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x1f9b2), R.drawable.emoji_ios_1f468_1f3fb_200d_1f9b2),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x1f9b2), R.drawable.emoji_ios_1f468_1f3fc_200d_1f9b2),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x1f9b2), R.drawable.emoji_ios_1f468_1f3fd_200d_1f9b2),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x1f9b2), R.drawable.emoji_ios_1f468_1f3fe_200d_1f9b2),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x1f9b2), R.drawable.emoji_ios_1f468_1f3ff_200d_1f9b2)
)),
Emoji(intArrayOf(0x1f9d1, 0x200d, 0x1f9b1), R.drawable.emoji_ios_1f9d1_200d_1f9b1),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f9b1), R.drawable.emoji_ios_1f469_200d_1f9b1),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f9b1), R.drawable.emoji_ios_1f468_200d_1f9b1),
Emoji(intArrayOf(0x1f9d1, 0x200d, 0x1f9b0), R.drawable.emoji_ios_1f9d1_200d_1f9b0),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f9b0), R.drawable.emoji_ios_1f469_200d_1f9b0),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f9b0), R.drawable.emoji_ios_1f468_200d_1f9b0),
Emoji(intArrayOf(0x1f471, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f471_200d_2640_fe0f),
Emoji(0x1f471, R.drawable.emoji_ios_1f471),
Emoji(intArrayOf(0x1f471, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f471_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9d1, 0x200d, 0x1f9b3), R.drawable.emoji_ios_1f9d1_200d_1f9b3),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f9b3), R.drawable.emoji_ios_1f469_200d_1f9b3),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f9b3), R.drawable.emoji_ios_1f468_200d_1f9b3),
Emoji(intArrayOf(0x1f9d1, 0x200d, 0x1f9b2), R.drawable.emoji_ios_1f9d1_200d_1f9b2),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f9b2), R.drawable.emoji_ios_1f469_200d_1f9b2),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f9b2), R.drawable.emoji_ios_1f468_200d_1f9b2),
Emoji(0x1f9d4, R.drawable.emoji_ios_1f9d4),
Emoji(0x1f475, R.drawable.emoji_ios_1f475, arrayOf(
Emoji(intArrayOf(0x1f475, 0x1f3fb), R.drawable.emoji_ios_1f475_1f3fb),
Emoji(intArrayOf(0x1f475, 0x1f3fc), R.drawable.emoji_ios_1f475_1f3fc),
Emoji(intArrayOf(0x1f475, 0x1f3fd), R.drawable.emoji_ios_1f475_1f3fd),
Emoji(intArrayOf(0x1f475, 0x1f3fe), R.drawable.emoji_ios_1f475_1f3fe),
Emoji(intArrayOf(0x1f475, 0x1f3ff), R.drawable.emoji_ios_1f475_1f3ff)
)),
Emoji(0x1f9d3, R.drawable.emoji_ios_1f9d3, arrayOf(
Emoji(intArrayOf(0x1f9d3, 0x1f3fb), R.drawable.emoji_ios_1f9d3_1f3fb),
Emoji(intArrayOf(0x1f9d3, 0x1f3fc), R.drawable.emoji_ios_1f9d3_1f3fc),
Emoji(intArrayOf(0x1f9d3, 0x1f3fd), R.drawable.emoji_ios_1f9d3_1f3fd),
Emoji(intArrayOf(0x1f9d3, 0x1f3fe), R.drawable.emoji_ios_1f9d3_1f3fe),
Emoji(intArrayOf(0x1f9d3, 0x1f3ff), R.drawable.emoji_ios_1f9d3_1f3ff)
)),
Emoji(0x1f474, R.drawable.emoji_ios_1f474, arrayOf(
Emoji(intArrayOf(0x1f474, 0x1f3fb), R.drawable.emoji_ios_1f474_1f3fb),
Emoji(intArrayOf(0x1f474, 0x1f3fc), R.drawable.emoji_ios_1f474_1f3fc),
Emoji(intArrayOf(0x1f474, 0x1f3fd), R.drawable.emoji_ios_1f474_1f3fd),
Emoji(intArrayOf(0x1f474, 0x1f3fe), R.drawable.emoji_ios_1f474_1f3fe),
Emoji(intArrayOf(0x1f474, 0x1f3ff), R.drawable.emoji_ios_1f474_1f3ff)
)),
Emoji(0x1f472, R.drawable.emoji_ios_1f472, arrayOf(
Emoji(intArrayOf(0x1f472, 0x1f3fb), R.drawable.emoji_ios_1f472_1f3fb),
Emoji(intArrayOf(0x1f472, 0x1f3fc), R.drawable.emoji_ios_1f472_1f3fc),
Emoji(intArrayOf(0x1f472, 0x1f3fd), R.drawable.emoji_ios_1f472_1f3fd),
Emoji(intArrayOf(0x1f472, 0x1f3fe), R.drawable.emoji_ios_1f472_1f3fe),
Emoji(intArrayOf(0x1f472, 0x1f3ff), R.drawable.emoji_ios_1f472_1f3ff)
)),
Emoji(0x1f473, R.drawable.emoji_ios_1f473, arrayOf(
Emoji(intArrayOf(0x1f473, 0x1f3fb), R.drawable.emoji_ios_1f473_1f3fb),
Emoji(intArrayOf(0x1f473, 0x1f3fc), R.drawable.emoji_ios_1f473_1f3fc),
Emoji(intArrayOf(0x1f473, 0x1f3fd), R.drawable.emoji_ios_1f473_1f3fd),
Emoji(intArrayOf(0x1f473, 0x1f3fe), R.drawable.emoji_ios_1f473_1f3fe),
Emoji(intArrayOf(0x1f473, 0x1f3ff), R.drawable.emoji_ios_1f473_1f3ff)
)),
Emoji(intArrayOf(0x1f473, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f473_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f473, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f473_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f473, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f473_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f473, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f473_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f473, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f473_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f473, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f473_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f473, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f473_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f473, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f473_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f473, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f473_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f473, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f473_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f473, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f473_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f473, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f473_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f9d5, R.drawable.emoji_ios_1f9d5, arrayOf(
Emoji(intArrayOf(0x1f9d5, 0x1f3fb), R.drawable.emoji_ios_1f9d5_1f3fb),
Emoji(intArrayOf(0x1f9d5, 0x1f3fc), R.drawable.emoji_ios_1f9d5_1f3fc),
Emoji(intArrayOf(0x1f9d5, 0x1f3fd), R.drawable.emoji_ios_1f9d5_1f3fd),
Emoji(intArrayOf(0x1f9d5, 0x1f3fe), R.drawable.emoji_ios_1f9d5_1f3fe),
Emoji(intArrayOf(0x1f9d5, 0x1f3ff), R.drawable.emoji_ios_1f9d5_1f3ff)
)),
Emoji(0x1f46e, R.drawable.emoji_ios_1f46e, arrayOf(
Emoji(intArrayOf(0x1f46e, 0x1f3fb), R.drawable.emoji_ios_1f46e_1f3fb),
Emoji(intArrayOf(0x1f46e, 0x1f3fc), R.drawable.emoji_ios_1f46e_1f3fc),
Emoji(intArrayOf(0x1f46e, 0x1f3fd), R.drawable.emoji_ios_1f46e_1f3fd),
Emoji(intArrayOf(0x1f46e, 0x1f3fe), R.drawable.emoji_ios_1f46e_1f3fe),
Emoji(intArrayOf(0x1f46e, 0x1f3ff), R.drawable.emoji_ios_1f46e_1f3ff)
)),
Emoji(intArrayOf(0x1f46e, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f46e_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f46e, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f46e_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f46e, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f46e_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f46e, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f46e_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f46e, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f46e_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f46e, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f46e_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f46e, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f46e_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f46e, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f46e_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f46e, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f46e_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f46e, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f46e_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f46e, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f46e_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f46e, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f46e_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f477, R.drawable.emoji_ios_1f477, arrayOf(
Emoji(intArrayOf(0x1f477, 0x1f3fb), R.drawable.emoji_ios_1f477_1f3fb),
Emoji(intArrayOf(0x1f477, 0x1f3fc), R.drawable.emoji_ios_1f477_1f3fc),
Emoji(intArrayOf(0x1f477, 0x1f3fd), R.drawable.emoji_ios_1f477_1f3fd),
Emoji(intArrayOf(0x1f477, 0x1f3fe), R.drawable.emoji_ios_1f477_1f3fe),
Emoji(intArrayOf(0x1f477, 0x1f3ff), R.drawable.emoji_ios_1f477_1f3ff)
)),
Emoji(intArrayOf(0x1f477, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f477_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f477, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f477_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f477, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f477_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f477, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f477_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f477, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f477_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f477, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f477_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f477, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f477_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f477, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f477_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f477, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f477_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f477, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f477_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f477, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f477_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f477, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f477_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f482, R.drawable.emoji_ios_1f482, arrayOf(
Emoji(intArrayOf(0x1f482, 0x1f3fb), R.drawable.emoji_ios_1f482_1f3fb),
Emoji(intArrayOf(0x1f482, 0x1f3fc), R.drawable.emoji_ios_1f482_1f3fc),
Emoji(intArrayOf(0x1f482, 0x1f3fd), R.drawable.emoji_ios_1f482_1f3fd),
Emoji(intArrayOf(0x1f482, 0x1f3fe), R.drawable.emoji_ios_1f482_1f3fe),
Emoji(intArrayOf(0x1f482, 0x1f3ff), R.drawable.emoji_ios_1f482_1f3ff)
)),
Emoji(intArrayOf(0x1f482, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f482_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f482, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f482_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f482, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f482_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f482, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f482_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f482, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f482_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f482, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f482_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f482, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f482_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f482, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f482_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f482, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f482_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f482, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f482_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f482, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f482_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f482, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f482_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f575, R.drawable.emoji_ios_1f575, arrayOf(
Emoji(intArrayOf(0x1f575, 0x1f3fb), R.drawable.emoji_ios_1f575_1f3fb),
Emoji(intArrayOf(0x1f575, 0x1f3fc), R.drawable.emoji_ios_1f575_1f3fc),
Emoji(intArrayOf(0x1f575, 0x1f3fd), R.drawable.emoji_ios_1f575_1f3fd),
Emoji(intArrayOf(0x1f575, 0x1f3fe), R.drawable.emoji_ios_1f575_1f3fe),
Emoji(intArrayOf(0x1f575, 0x1f3ff), R.drawable.emoji_ios_1f575_1f3ff)
)),
Emoji(intArrayOf(0x1f575, 0xfe0f, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f575_fe0f_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f575, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f575_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f575, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f575_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f575, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f575_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f575, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f575_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f575, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f575_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f575, 0xfe0f, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f575_fe0f_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f575, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f575_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f575, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f575_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f575, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f575_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f575, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f575_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f575, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f575_1f3ff_200d_2642_fe0f)
)),
Emoji(intArrayOf(0x1f9d1, 0x200d, 0x2695, 0xfe0f), R.drawable.emoji_ios_1f9d1_200d_2695_fe0f, arrayOf(
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x2695, 0xfe0f), R.drawable.emoji_ios_1f9d1_1f3fb_200d_2695_fe0f),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x2695, 0xfe0f), R.drawable.emoji_ios_1f9d1_1f3fc_200d_2695_fe0f),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x2695, 0xfe0f), R.drawable.emoji_ios_1f9d1_1f3fd_200d_2695_fe0f),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x2695, 0xfe0f), R.drawable.emoji_ios_1f9d1_1f3fe_200d_2695_fe0f),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x2695, 0xfe0f), R.drawable.emoji_ios_1f9d1_1f3ff_200d_2695_fe0f)
)),
Emoji(intArrayOf(0x1f469, 0x200d, 0x2695, 0xfe0f), R.drawable.emoji_ios_1f469_200d_2695_fe0f, arrayOf(
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x2695, 0xfe0f), R.drawable.emoji_ios_1f469_1f3fb_200d_2695_fe0f),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x2695, 0xfe0f), R.drawable.emoji_ios_1f469_1f3fc_200d_2695_fe0f),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x2695, 0xfe0f), R.drawable.emoji_ios_1f469_1f3fd_200d_2695_fe0f),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x2695, 0xfe0f), R.drawable.emoji_ios_1f469_1f3fe_200d_2695_fe0f),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x2695, 0xfe0f), R.drawable.emoji_ios_1f469_1f3ff_200d_2695_fe0f)
)),
Emoji(intArrayOf(0x1f468, 0x200d, 0x2695, 0xfe0f), R.drawable.emoji_ios_1f468_200d_2695_fe0f, arrayOf(
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x2695, 0xfe0f), R.drawable.emoji_ios_1f468_1f3fb_200d_2695_fe0f),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x2695, 0xfe0f), R.drawable.emoji_ios_1f468_1f3fc_200d_2695_fe0f),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x2695, 0xfe0f), R.drawable.emoji_ios_1f468_1f3fd_200d_2695_fe0f),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x2695, 0xfe0f), R.drawable.emoji_ios_1f468_1f3fe_200d_2695_fe0f),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x2695, 0xfe0f), R.drawable.emoji_ios_1f468_1f3ff_200d_2695_fe0f)
)),
Emoji(intArrayOf(0x1f9d1, 0x200d, 0x1f33e), R.drawable.emoji_ios_1f9d1_200d_1f33e, arrayOf(
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x1f33e), R.drawable.emoji_ios_1f9d1_1f3fb_200d_1f33e),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x1f33e), R.drawable.emoji_ios_1f9d1_1f3fc_200d_1f33e),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x1f33e), R.drawable.emoji_ios_1f9d1_1f3fd_200d_1f33e),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x1f33e), R.drawable.emoji_ios_1f9d1_1f3fe_200d_1f33e),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x1f33e), R.drawable.emoji_ios_1f9d1_1f3ff_200d_1f33e)
)),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f33e), R.drawable.emoji_ios_1f469_200d_1f33e, arrayOf(
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f33e), R.drawable.emoji_ios_1f469_1f3fb_200d_1f33e),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f33e), R.drawable.emoji_ios_1f469_1f3fc_200d_1f33e),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f33e), R.drawable.emoji_ios_1f469_1f3fd_200d_1f33e),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f33e), R.drawable.emoji_ios_1f469_1f3fe_200d_1f33e),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f33e), R.drawable.emoji_ios_1f469_1f3ff_200d_1f33e)
)),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f33e), R.drawable.emoji_ios_1f468_200d_1f33e, arrayOf(
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x1f33e), R.drawable.emoji_ios_1f468_1f3fb_200d_1f33e),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x1f33e), R.drawable.emoji_ios_1f468_1f3fc_200d_1f33e),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x1f33e), R.drawable.emoji_ios_1f468_1f3fd_200d_1f33e),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x1f33e), R.drawable.emoji_ios_1f468_1f3fe_200d_1f33e),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x1f33e), R.drawable.emoji_ios_1f468_1f3ff_200d_1f33e)
)),
Emoji(intArrayOf(0x1f9d1, 0x200d, 0x1f373), R.drawable.emoji_ios_1f9d1_200d_1f373, arrayOf(
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x1f373), R.drawable.emoji_ios_1f9d1_1f3fb_200d_1f373),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x1f373), R.drawable.emoji_ios_1f9d1_1f3fc_200d_1f373),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x1f373), R.drawable.emoji_ios_1f9d1_1f3fd_200d_1f373),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x1f373), R.drawable.emoji_ios_1f9d1_1f3fe_200d_1f373),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x1f373), R.drawable.emoji_ios_1f9d1_1f3ff_200d_1f373)
)),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f373), R.drawable.emoji_ios_1f469_200d_1f373, arrayOf(
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f373), R.drawable.emoji_ios_1f469_1f3fb_200d_1f373),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f373), R.drawable.emoji_ios_1f469_1f3fc_200d_1f373),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f373), R.drawable.emoji_ios_1f469_1f3fd_200d_1f373),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f373), R.drawable.emoji_ios_1f469_1f3fe_200d_1f373),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f373), R.drawable.emoji_ios_1f469_1f3ff_200d_1f373)
)),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f373), R.drawable.emoji_ios_1f468_200d_1f373, arrayOf(
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x1f373), R.drawable.emoji_ios_1f468_1f3fb_200d_1f373),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x1f373), R.drawable.emoji_ios_1f468_1f3fc_200d_1f373),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x1f373), R.drawable.emoji_ios_1f468_1f3fd_200d_1f373),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x1f373), R.drawable.emoji_ios_1f468_1f3fe_200d_1f373),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x1f373), R.drawable.emoji_ios_1f468_1f3ff_200d_1f373)
)),
Emoji(intArrayOf(0x1f9d1, 0x200d, 0x1f393), R.drawable.emoji_ios_1f9d1_200d_1f393, arrayOf(
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x1f393), R.drawable.emoji_ios_1f9d1_1f3fb_200d_1f393),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x1f393), R.drawable.emoji_ios_1f9d1_1f3fc_200d_1f393),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x1f393), R.drawable.emoji_ios_1f9d1_1f3fd_200d_1f393),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x1f393), R.drawable.emoji_ios_1f9d1_1f3fe_200d_1f393),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x1f393), R.drawable.emoji_ios_1f9d1_1f3ff_200d_1f393)
)),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f393), R.drawable.emoji_ios_1f469_200d_1f393, arrayOf(
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f393), R.drawable.emoji_ios_1f469_1f3fb_200d_1f393),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f393), R.drawable.emoji_ios_1f469_1f3fc_200d_1f393),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f393), R.drawable.emoji_ios_1f469_1f3fd_200d_1f393),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f393), R.drawable.emoji_ios_1f469_1f3fe_200d_1f393),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f393), R.drawable.emoji_ios_1f469_1f3ff_200d_1f393)
)),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f393), R.drawable.emoji_ios_1f468_200d_1f393, arrayOf(
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x1f393), R.drawable.emoji_ios_1f468_1f3fb_200d_1f393),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x1f393), R.drawable.emoji_ios_1f468_1f3fc_200d_1f393),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x1f393), R.drawable.emoji_ios_1f468_1f3fd_200d_1f393),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x1f393), R.drawable.emoji_ios_1f468_1f3fe_200d_1f393),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x1f393), R.drawable.emoji_ios_1f468_1f3ff_200d_1f393)
)),
Emoji(intArrayOf(0x1f9d1, 0x200d, 0x1f3a4), R.drawable.emoji_ios_1f9d1_200d_1f3a4, arrayOf(
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x1f3a4), R.drawable.emoji_ios_1f9d1_1f3fb_200d_1f3a4),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x1f3a4), R.drawable.emoji_ios_1f9d1_1f3fc_200d_1f3a4),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x1f3a4), R.drawable.emoji_ios_1f9d1_1f3fd_200d_1f3a4),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x1f3a4), R.drawable.emoji_ios_1f9d1_1f3fe_200d_1f3a4),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x1f3a4), R.drawable.emoji_ios_1f9d1_1f3ff_200d_1f3a4)
)),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f3a4), R.drawable.emoji_ios_1f469_200d_1f3a4, arrayOf(
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f3a4), R.drawable.emoji_ios_1f469_1f3fb_200d_1f3a4),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f3a4), R.drawable.emoji_ios_1f469_1f3fc_200d_1f3a4),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f3a4), R.drawable.emoji_ios_1f469_1f3fd_200d_1f3a4),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f3a4), R.drawable.emoji_ios_1f469_1f3fe_200d_1f3a4),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f3a4), R.drawable.emoji_ios_1f469_1f3ff_200d_1f3a4)
)),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f3a4), R.drawable.emoji_ios_1f468_200d_1f3a4, arrayOf(
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x1f3a4), R.drawable.emoji_ios_1f468_1f3fb_200d_1f3a4),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x1f3a4), R.drawable.emoji_ios_1f468_1f3fc_200d_1f3a4),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x1f3a4), R.drawable.emoji_ios_1f468_1f3fd_200d_1f3a4),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x1f3a4), R.drawable.emoji_ios_1f468_1f3fe_200d_1f3a4),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x1f3a4), R.drawable.emoji_ios_1f468_1f3ff_200d_1f3a4)
)),
Emoji(intArrayOf(0x1f9d1, 0x200d, 0x1f3eb), R.drawable.emoji_ios_1f9d1_200d_1f3eb, arrayOf(
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x1f3eb), R.drawable.emoji_ios_1f9d1_1f3fb_200d_1f3eb),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x1f3eb), R.drawable.emoji_ios_1f9d1_1f3fc_200d_1f3eb),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x1f3eb), R.drawable.emoji_ios_1f9d1_1f3fd_200d_1f3eb),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x1f3eb), R.drawable.emoji_ios_1f9d1_1f3fe_200d_1f3eb),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x1f3eb), R.drawable.emoji_ios_1f9d1_1f3ff_200d_1f3eb)
)),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f3eb), R.drawable.emoji_ios_1f469_200d_1f3eb, arrayOf(
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f3eb), R.drawable.emoji_ios_1f469_1f3fb_200d_1f3eb),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f3eb), R.drawable.emoji_ios_1f469_1f3fc_200d_1f3eb),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f3eb), R.drawable.emoji_ios_1f469_1f3fd_200d_1f3eb),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f3eb), R.drawable.emoji_ios_1f469_1f3fe_200d_1f3eb),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f3eb), R.drawable.emoji_ios_1f469_1f3ff_200d_1f3eb)
)),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f3eb), R.drawable.emoji_ios_1f468_200d_1f3eb, arrayOf(
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x1f3eb), R.drawable.emoji_ios_1f468_1f3fb_200d_1f3eb),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x1f3eb), R.drawable.emoji_ios_1f468_1f3fc_200d_1f3eb),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x1f3eb), R.drawable.emoji_ios_1f468_1f3fd_200d_1f3eb),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x1f3eb), R.drawable.emoji_ios_1f468_1f3fe_200d_1f3eb),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x1f3eb), R.drawable.emoji_ios_1f468_1f3ff_200d_1f3eb)
)),
Emoji(intArrayOf(0x1f9d1, 0x200d, 0x1f3ed), R.drawable.emoji_ios_1f9d1_200d_1f3ed, arrayOf(
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x1f3ed), R.drawable.emoji_ios_1f9d1_1f3fb_200d_1f3ed),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x1f3ed), R.drawable.emoji_ios_1f9d1_1f3fc_200d_1f3ed),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x1f3ed), R.drawable.emoji_ios_1f9d1_1f3fd_200d_1f3ed),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x1f3ed), R.drawable.emoji_ios_1f9d1_1f3fe_200d_1f3ed),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x1f3ed), R.drawable.emoji_ios_1f9d1_1f3ff_200d_1f3ed)
)),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f3ed), R.drawable.emoji_ios_1f469_200d_1f3ed, arrayOf(
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f3ed), R.drawable.emoji_ios_1f469_1f3fb_200d_1f3ed),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f3ed), R.drawable.emoji_ios_1f469_1f3fc_200d_1f3ed),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f3ed), R.drawable.emoji_ios_1f469_1f3fd_200d_1f3ed),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f3ed), R.drawable.emoji_ios_1f469_1f3fe_200d_1f3ed),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f3ed), R.drawable.emoji_ios_1f469_1f3ff_200d_1f3ed)
)),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f3ed), R.drawable.emoji_ios_1f468_200d_1f3ed, arrayOf(
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x1f3ed), R.drawable.emoji_ios_1f468_1f3fb_200d_1f3ed),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x1f3ed), R.drawable.emoji_ios_1f468_1f3fc_200d_1f3ed),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x1f3ed), R.drawable.emoji_ios_1f468_1f3fd_200d_1f3ed),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x1f3ed), R.drawable.emoji_ios_1f468_1f3fe_200d_1f3ed),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x1f3ed), R.drawable.emoji_ios_1f468_1f3ff_200d_1f3ed)
)),
Emoji(intArrayOf(0x1f9d1, 0x200d, 0x1f4bb), R.drawable.emoji_ios_1f9d1_200d_1f4bb, arrayOf(
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x1f4bb), R.drawable.emoji_ios_1f9d1_1f3fb_200d_1f4bb),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x1f4bb), R.drawable.emoji_ios_1f9d1_1f3fc_200d_1f4bb),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x1f4bb), R.drawable.emoji_ios_1f9d1_1f3fd_200d_1f4bb),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x1f4bb), R.drawable.emoji_ios_1f9d1_1f3fe_200d_1f4bb),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x1f4bb), R.drawable.emoji_ios_1f9d1_1f3ff_200d_1f4bb)
)),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f4bb), R.drawable.emoji_ios_1f469_200d_1f4bb, arrayOf(
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f4bb), R.drawable.emoji_ios_1f469_1f3fb_200d_1f4bb),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f4bb), R.drawable.emoji_ios_1f469_1f3fc_200d_1f4bb),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f4bb), R.drawable.emoji_ios_1f469_1f3fd_200d_1f4bb),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f4bb), R.drawable.emoji_ios_1f469_1f3fe_200d_1f4bb),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f4bb), R.drawable.emoji_ios_1f469_1f3ff_200d_1f4bb)
)),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f4bb), R.drawable.emoji_ios_1f468_200d_1f4bb, arrayOf(
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x1f4bb), R.drawable.emoji_ios_1f468_1f3fb_200d_1f4bb),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x1f4bb), R.drawable.emoji_ios_1f468_1f3fc_200d_1f4bb),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x1f4bb), R.drawable.emoji_ios_1f468_1f3fd_200d_1f4bb),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x1f4bb), R.drawable.emoji_ios_1f468_1f3fe_200d_1f4bb),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x1f4bb), R.drawable.emoji_ios_1f468_1f3ff_200d_1f4bb)
)),
Emoji(intArrayOf(0x1f9d1, 0x200d, 0x1f4bc), R.drawable.emoji_ios_1f9d1_200d_1f4bc, arrayOf(
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x1f4bc), R.drawable.emoji_ios_1f9d1_1f3fb_200d_1f4bc),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x1f4bc), R.drawable.emoji_ios_1f9d1_1f3fc_200d_1f4bc),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x1f4bc), R.drawable.emoji_ios_1f9d1_1f3fd_200d_1f4bc),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x1f4bc), R.drawable.emoji_ios_1f9d1_1f3fe_200d_1f4bc),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x1f4bc), R.drawable.emoji_ios_1f9d1_1f3ff_200d_1f4bc)
)),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f4bc), R.drawable.emoji_ios_1f469_200d_1f4bc, arrayOf(
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f4bc), R.drawable.emoji_ios_1f469_1f3fb_200d_1f4bc),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f4bc), R.drawable.emoji_ios_1f469_1f3fc_200d_1f4bc),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f4bc), R.drawable.emoji_ios_1f469_1f3fd_200d_1f4bc),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f4bc), R.drawable.emoji_ios_1f469_1f3fe_200d_1f4bc),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f4bc), R.drawable.emoji_ios_1f469_1f3ff_200d_1f4bc)
)),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f4bc), R.drawable.emoji_ios_1f468_200d_1f4bc, arrayOf(
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x1f4bc), R.drawable.emoji_ios_1f468_1f3fb_200d_1f4bc),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x1f4bc), R.drawable.emoji_ios_1f468_1f3fc_200d_1f4bc),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x1f4bc), R.drawable.emoji_ios_1f468_1f3fd_200d_1f4bc),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x1f4bc), R.drawable.emoji_ios_1f468_1f3fe_200d_1f4bc),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x1f4bc), R.drawable.emoji_ios_1f468_1f3ff_200d_1f4bc)
)),
Emoji(intArrayOf(0x1f9d1, 0x200d, 0x1f527), R.drawable.emoji_ios_1f9d1_200d_1f527, arrayOf(
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x1f527), R.drawable.emoji_ios_1f9d1_1f3fb_200d_1f527),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x1f527), R.drawable.emoji_ios_1f9d1_1f3fc_200d_1f527),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x1f527), R.drawable.emoji_ios_1f9d1_1f3fd_200d_1f527),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x1f527), R.drawable.emoji_ios_1f9d1_1f3fe_200d_1f527),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x1f527), R.drawable.emoji_ios_1f9d1_1f3ff_200d_1f527)
)),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f527), R.drawable.emoji_ios_1f469_200d_1f527, arrayOf(
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f527), R.drawable.emoji_ios_1f469_1f3fb_200d_1f527),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f527), R.drawable.emoji_ios_1f469_1f3fc_200d_1f527),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f527), R.drawable.emoji_ios_1f469_1f3fd_200d_1f527),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f527), R.drawable.emoji_ios_1f469_1f3fe_200d_1f527),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f527), R.drawable.emoji_ios_1f469_1f3ff_200d_1f527)
)),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f527), R.drawable.emoji_ios_1f468_200d_1f527, arrayOf(
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x1f527), R.drawable.emoji_ios_1f468_1f3fb_200d_1f527),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x1f527), R.drawable.emoji_ios_1f468_1f3fc_200d_1f527),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x1f527), R.drawable.emoji_ios_1f468_1f3fd_200d_1f527),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x1f527), R.drawable.emoji_ios_1f468_1f3fe_200d_1f527),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x1f527), R.drawable.emoji_ios_1f468_1f3ff_200d_1f527)
)),
Emoji(intArrayOf(0x1f9d1, 0x200d, 0x1f52c), R.drawable.emoji_ios_1f9d1_200d_1f52c, arrayOf(
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x1f52c), R.drawable.emoji_ios_1f9d1_1f3fb_200d_1f52c),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x1f52c), R.drawable.emoji_ios_1f9d1_1f3fc_200d_1f52c),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x1f52c), R.drawable.emoji_ios_1f9d1_1f3fd_200d_1f52c),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x1f52c), R.drawable.emoji_ios_1f9d1_1f3fe_200d_1f52c),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x1f52c), R.drawable.emoji_ios_1f9d1_1f3ff_200d_1f52c)
)),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f52c), R.drawable.emoji_ios_1f469_200d_1f52c, arrayOf(
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f52c), R.drawable.emoji_ios_1f469_1f3fb_200d_1f52c),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f52c), R.drawable.emoji_ios_1f469_1f3fc_200d_1f52c),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f52c), R.drawable.emoji_ios_1f469_1f3fd_200d_1f52c),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f52c), R.drawable.emoji_ios_1f469_1f3fe_200d_1f52c),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f52c), R.drawable.emoji_ios_1f469_1f3ff_200d_1f52c)
)),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f52c), R.drawable.emoji_ios_1f468_200d_1f52c, arrayOf(
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x1f52c), R.drawable.emoji_ios_1f468_1f3fb_200d_1f52c),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x1f52c), R.drawable.emoji_ios_1f468_1f3fc_200d_1f52c),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x1f52c), R.drawable.emoji_ios_1f468_1f3fd_200d_1f52c),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x1f52c), R.drawable.emoji_ios_1f468_1f3fe_200d_1f52c),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x1f52c), R.drawable.emoji_ios_1f468_1f3ff_200d_1f52c)
)),
Emoji(intArrayOf(0x1f9d1, 0x200d, 0x1f3a8), R.drawable.emoji_ios_1f9d1_200d_1f3a8, arrayOf(
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x1f3a8), R.drawable.emoji_ios_1f9d1_1f3fb_200d_1f3a8),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x1f3a8), R.drawable.emoji_ios_1f9d1_1f3fc_200d_1f3a8),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x1f3a8), R.drawable.emoji_ios_1f9d1_1f3fd_200d_1f3a8),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x1f3a8), R.drawable.emoji_ios_1f9d1_1f3fe_200d_1f3a8),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x1f3a8), R.drawable.emoji_ios_1f9d1_1f3ff_200d_1f3a8)
)),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f3a8), R.drawable.emoji_ios_1f469_200d_1f3a8, arrayOf(
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f3a8), R.drawable.emoji_ios_1f469_1f3fb_200d_1f3a8),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f3a8), R.drawable.emoji_ios_1f469_1f3fc_200d_1f3a8),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f3a8), R.drawable.emoji_ios_1f469_1f3fd_200d_1f3a8),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f3a8), R.drawable.emoji_ios_1f469_1f3fe_200d_1f3a8),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f3a8), R.drawable.emoji_ios_1f469_1f3ff_200d_1f3a8)
)),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f3a8), R.drawable.emoji_ios_1f468_200d_1f3a8, arrayOf(
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x1f3a8), R.drawable.emoji_ios_1f468_1f3fb_200d_1f3a8),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x1f3a8), R.drawable.emoji_ios_1f468_1f3fc_200d_1f3a8),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x1f3a8), R.drawable.emoji_ios_1f468_1f3fd_200d_1f3a8),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x1f3a8), R.drawable.emoji_ios_1f468_1f3fe_200d_1f3a8),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x1f3a8), R.drawable.emoji_ios_1f468_1f3ff_200d_1f3a8)
)),
Emoji(intArrayOf(0x1f9d1, 0x200d, 0x1f692), R.drawable.emoji_ios_1f9d1_200d_1f692, arrayOf(
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x1f692), R.drawable.emoji_ios_1f9d1_1f3fb_200d_1f692),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x1f692), R.drawable.emoji_ios_1f9d1_1f3fc_200d_1f692),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x1f692), R.drawable.emoji_ios_1f9d1_1f3fd_200d_1f692),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x1f692), R.drawable.emoji_ios_1f9d1_1f3fe_200d_1f692),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x1f692), R.drawable.emoji_ios_1f9d1_1f3ff_200d_1f692)
)),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f692), R.drawable.emoji_ios_1f469_200d_1f692, arrayOf(
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f692), R.drawable.emoji_ios_1f469_1f3fb_200d_1f692),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f692), R.drawable.emoji_ios_1f469_1f3fc_200d_1f692),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f692), R.drawable.emoji_ios_1f469_1f3fd_200d_1f692),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f692), R.drawable.emoji_ios_1f469_1f3fe_200d_1f692),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f692), R.drawable.emoji_ios_1f469_1f3ff_200d_1f692)
)),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f692), R.drawable.emoji_ios_1f468_200d_1f692, arrayOf(
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x1f692), R.drawable.emoji_ios_1f468_1f3fb_200d_1f692),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x1f692), R.drawable.emoji_ios_1f468_1f3fc_200d_1f692),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x1f692), R.drawable.emoji_ios_1f468_1f3fd_200d_1f692),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x1f692), R.drawable.emoji_ios_1f468_1f3fe_200d_1f692),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x1f692), R.drawable.emoji_ios_1f468_1f3ff_200d_1f692)
)),
Emoji(intArrayOf(0x1f9d1, 0x200d, 0x2708, 0xfe0f), R.drawable.emoji_ios_1f9d1_200d_2708_fe0f, arrayOf(
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x2708, 0xfe0f), R.drawable.emoji_ios_1f9d1_1f3fb_200d_2708_fe0f),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x2708, 0xfe0f), R.drawable.emoji_ios_1f9d1_1f3fc_200d_2708_fe0f),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x2708, 0xfe0f), R.drawable.emoji_ios_1f9d1_1f3fd_200d_2708_fe0f),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x2708, 0xfe0f), R.drawable.emoji_ios_1f9d1_1f3fe_200d_2708_fe0f),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x2708, 0xfe0f), R.drawable.emoji_ios_1f9d1_1f3ff_200d_2708_fe0f)
)),
Emoji(intArrayOf(0x1f469, 0x200d, 0x2708, 0xfe0f), R.drawable.emoji_ios_1f469_200d_2708_fe0f, arrayOf(
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x2708, 0xfe0f), R.drawable.emoji_ios_1f469_1f3fb_200d_2708_fe0f),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x2708, 0xfe0f), R.drawable.emoji_ios_1f469_1f3fc_200d_2708_fe0f),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x2708, 0xfe0f), R.drawable.emoji_ios_1f469_1f3fd_200d_2708_fe0f),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x2708, 0xfe0f), R.drawable.emoji_ios_1f469_1f3fe_200d_2708_fe0f),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x2708, 0xfe0f), R.drawable.emoji_ios_1f469_1f3ff_200d_2708_fe0f)
)),
Emoji(intArrayOf(0x1f468, 0x200d, 0x2708, 0xfe0f), R.drawable.emoji_ios_1f468_200d_2708_fe0f, arrayOf(
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x2708, 0xfe0f), R.drawable.emoji_ios_1f468_1f3fb_200d_2708_fe0f),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x2708, 0xfe0f), R.drawable.emoji_ios_1f468_1f3fc_200d_2708_fe0f),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x2708, 0xfe0f), R.drawable.emoji_ios_1f468_1f3fd_200d_2708_fe0f),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x2708, 0xfe0f), R.drawable.emoji_ios_1f468_1f3fe_200d_2708_fe0f),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x2708, 0xfe0f), R.drawable.emoji_ios_1f468_1f3ff_200d_2708_fe0f)
)),
Emoji(intArrayOf(0x1f9d1, 0x200d, 0x1f680), R.drawable.emoji_ios_1f9d1_200d_1f680, arrayOf(
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x1f680), R.drawable.emoji_ios_1f9d1_1f3fb_200d_1f680),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x1f680), R.drawable.emoji_ios_1f9d1_1f3fc_200d_1f680),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x1f680), R.drawable.emoji_ios_1f9d1_1f3fd_200d_1f680),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x1f680), R.drawable.emoji_ios_1f9d1_1f3fe_200d_1f680),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x1f680), R.drawable.emoji_ios_1f9d1_1f3ff_200d_1f680)
)),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f680), R.drawable.emoji_ios_1f469_200d_1f680, arrayOf(
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f680), R.drawable.emoji_ios_1f469_1f3fb_200d_1f680),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f680), R.drawable.emoji_ios_1f469_1f3fc_200d_1f680),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f680), R.drawable.emoji_ios_1f469_1f3fd_200d_1f680),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f680), R.drawable.emoji_ios_1f469_1f3fe_200d_1f680),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f680), R.drawable.emoji_ios_1f469_1f3ff_200d_1f680)
)),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f680), R.drawable.emoji_ios_1f468_200d_1f680, arrayOf(
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x1f680), R.drawable.emoji_ios_1f468_1f3fb_200d_1f680),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x1f680), R.drawable.emoji_ios_1f468_1f3fc_200d_1f680),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x1f680), R.drawable.emoji_ios_1f468_1f3fd_200d_1f680),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x1f680), R.drawable.emoji_ios_1f468_1f3fe_200d_1f680),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x1f680), R.drawable.emoji_ios_1f468_1f3ff_200d_1f680)
)),
Emoji(intArrayOf(0x1f9d1, 0x200d, 0x2696, 0xfe0f), R.drawable.emoji_ios_1f9d1_200d_2696_fe0f, arrayOf(
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x2696, 0xfe0f), R.drawable.emoji_ios_1f9d1_1f3fb_200d_2696_fe0f),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x2696, 0xfe0f), R.drawable.emoji_ios_1f9d1_1f3fc_200d_2696_fe0f),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x2696, 0xfe0f), R.drawable.emoji_ios_1f9d1_1f3fd_200d_2696_fe0f),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x2696, 0xfe0f), R.drawable.emoji_ios_1f9d1_1f3fe_200d_2696_fe0f),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x2696, 0xfe0f), R.drawable.emoji_ios_1f9d1_1f3ff_200d_2696_fe0f)
)),
Emoji(intArrayOf(0x1f469, 0x200d, 0x2696, 0xfe0f), R.drawable.emoji_ios_1f469_200d_2696_fe0f, arrayOf(
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x2696, 0xfe0f), R.drawable.emoji_ios_1f469_1f3fb_200d_2696_fe0f),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x2696, 0xfe0f), R.drawable.emoji_ios_1f469_1f3fc_200d_2696_fe0f),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x2696, 0xfe0f), R.drawable.emoji_ios_1f469_1f3fd_200d_2696_fe0f),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x2696, 0xfe0f), R.drawable.emoji_ios_1f469_1f3fe_200d_2696_fe0f),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x2696, 0xfe0f), R.drawable.emoji_ios_1f469_1f3ff_200d_2696_fe0f)
)),
Emoji(intArrayOf(0x1f468, 0x200d, 0x2696, 0xfe0f), R.drawable.emoji_ios_1f468_200d_2696_fe0f, arrayOf(
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x2696, 0xfe0f), R.drawable.emoji_ios_1f468_1f3fb_200d_2696_fe0f),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x2696, 0xfe0f), R.drawable.emoji_ios_1f468_1f3fc_200d_2696_fe0f),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x2696, 0xfe0f), R.drawable.emoji_ios_1f468_1f3fd_200d_2696_fe0f),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x2696, 0xfe0f), R.drawable.emoji_ios_1f468_1f3fe_200d_2696_fe0f),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x2696, 0xfe0f), R.drawable.emoji_ios_1f468_1f3ff_200d_2696_fe0f)
)),
Emoji(0x1f470, R.drawable.emoji_ios_1f470, arrayOf(
Emoji(intArrayOf(0x1f470, 0x1f3fb), R.drawable.emoji_ios_1f470_1f3fb),
Emoji(intArrayOf(0x1f470, 0x1f3fc), R.drawable.emoji_ios_1f470_1f3fc),
Emoji(intArrayOf(0x1f470, 0x1f3fd), R.drawable.emoji_ios_1f470_1f3fd),
Emoji(intArrayOf(0x1f470, 0x1f3fe), R.drawable.emoji_ios_1f470_1f3fe),
Emoji(intArrayOf(0x1f470, 0x1f3ff), R.drawable.emoji_ios_1f470_1f3ff)
)),
Emoji(intArrayOf(0x1f470, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f470_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f470, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f470_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f470, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f470_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f470, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f470_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f470, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f470_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f470, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f470_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f470, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f470_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f470, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f470_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f470, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f470_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f470, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f470_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f470, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f470_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f470, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f470_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f935, R.drawable.emoji_ios_1f935, arrayOf(
Emoji(intArrayOf(0x1f935, 0x1f3fb), R.drawable.emoji_ios_1f935_1f3fb),
Emoji(intArrayOf(0x1f935, 0x1f3fc), R.drawable.emoji_ios_1f935_1f3fc),
Emoji(intArrayOf(0x1f935, 0x1f3fd), R.drawable.emoji_ios_1f935_1f3fd),
Emoji(intArrayOf(0x1f935, 0x1f3fe), R.drawable.emoji_ios_1f935_1f3fe),
Emoji(intArrayOf(0x1f935, 0x1f3ff), R.drawable.emoji_ios_1f935_1f3ff)
)),
Emoji(intArrayOf(0x1f935, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f935_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f935, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f935_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f935, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f935_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f935, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f935_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f935, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f935_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f935, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f935_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f935, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f935_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f935, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f935_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f935, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f935_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f935, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f935_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f935, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f935_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f935, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f935_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f478, R.drawable.emoji_ios_1f478, arrayOf(
Emoji(intArrayOf(0x1f478, 0x1f3fb), R.drawable.emoji_ios_1f478_1f3fb),
Emoji(intArrayOf(0x1f478, 0x1f3fc), R.drawable.emoji_ios_1f478_1f3fc),
Emoji(intArrayOf(0x1f478, 0x1f3fd), R.drawable.emoji_ios_1f478_1f3fd),
Emoji(intArrayOf(0x1f478, 0x1f3fe), R.drawable.emoji_ios_1f478_1f3fe),
Emoji(intArrayOf(0x1f478, 0x1f3ff), R.drawable.emoji_ios_1f478_1f3ff)
)),
Emoji(0x1f934, R.drawable.emoji_ios_1f934, arrayOf(
Emoji(intArrayOf(0x1f934, 0x1f3fb), R.drawable.emoji_ios_1f934_1f3fb),
Emoji(intArrayOf(0x1f934, 0x1f3fc), R.drawable.emoji_ios_1f934_1f3fc),
Emoji(intArrayOf(0x1f934, 0x1f3fd), R.drawable.emoji_ios_1f934_1f3fd),
Emoji(intArrayOf(0x1f934, 0x1f3fe), R.drawable.emoji_ios_1f934_1f3fe),
Emoji(intArrayOf(0x1f934, 0x1f3ff), R.drawable.emoji_ios_1f934_1f3ff)
)),
Emoji(0x1f9b8, R.drawable.emoji_ios_1f9b8, arrayOf(
Emoji(intArrayOf(0x1f9b8, 0x1f3fb), R.drawable.emoji_ios_1f9b8_1f3fb),
Emoji(intArrayOf(0x1f9b8, 0x1f3fc), R.drawable.emoji_ios_1f9b8_1f3fc),
Emoji(intArrayOf(0x1f9b8, 0x1f3fd), R.drawable.emoji_ios_1f9b8_1f3fd),
Emoji(intArrayOf(0x1f9b8, 0x1f3fe), R.drawable.emoji_ios_1f9b8_1f3fe),
Emoji(intArrayOf(0x1f9b8, 0x1f3ff), R.drawable.emoji_ios_1f9b8_1f3ff)
)),
Emoji(intArrayOf(0x1f9b8, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9b8_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f9b8, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9b8_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9b8, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9b8_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9b8, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9b8_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9b8, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9b8_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9b8, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9b8_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f9b8, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9b8_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f9b8, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9b8_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9b8, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9b8_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9b8, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9b8_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9b8, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9b8_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9b8, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9b8_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f9b9, R.drawable.emoji_ios_1f9b9, arrayOf(
Emoji(intArrayOf(0x1f9b9, 0x1f3fb), R.drawable.emoji_ios_1f9b9_1f3fb),
Emoji(intArrayOf(0x1f9b9, 0x1f3fc), R.drawable.emoji_ios_1f9b9_1f3fc),
Emoji(intArrayOf(0x1f9b9, 0x1f3fd), R.drawable.emoji_ios_1f9b9_1f3fd),
Emoji(intArrayOf(0x1f9b9, 0x1f3fe), R.drawable.emoji_ios_1f9b9_1f3fe),
Emoji(intArrayOf(0x1f9b9, 0x1f3ff), R.drawable.emoji_ios_1f9b9_1f3ff)
)),
Emoji(intArrayOf(0x1f9b9, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9b9_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f9b9, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9b9_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9b9, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9b9_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9b9, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9b9_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9b9, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9b9_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9b9, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9b9_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f9b9, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9b9_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f9b9, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9b9_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9b9, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9b9_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9b9, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9b9_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9b9, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9b9_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9b9, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9b9_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f977, R.drawable.emoji_ios_1f977, arrayOf(
Emoji(intArrayOf(0x1f977, 0x1f3fb), R.drawable.emoji_ios_1f977_1f3fb),
Emoji(intArrayOf(0x1f977, 0x1f3fc), R.drawable.emoji_ios_1f977_1f3fc),
Emoji(intArrayOf(0x1f977, 0x1f3fd), R.drawable.emoji_ios_1f977_1f3fd),
Emoji(intArrayOf(0x1f977, 0x1f3fe), R.drawable.emoji_ios_1f977_1f3fe),
Emoji(intArrayOf(0x1f977, 0x1f3ff), R.drawable.emoji_ios_1f977_1f3ff)
)),
Emoji(intArrayOf(0x1f9d1, 0x200d, 0x1f384), R.drawable.emoji_ios_1f9d1_200d_1f384, arrayOf(
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x1f384), R.drawable.emoji_ios_1f9d1_1f3fb_200d_1f384),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x1f384), R.drawable.emoji_ios_1f9d1_1f3fc_200d_1f384),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x1f384), R.drawable.emoji_ios_1f9d1_1f3fd_200d_1f384),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x1f384), R.drawable.emoji_ios_1f9d1_1f3fe_200d_1f384),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x1f384), R.drawable.emoji_ios_1f9d1_1f3ff_200d_1f384)
)),
Emoji(0x1f936, R.drawable.emoji_ios_1f936, arrayOf(
Emoji(intArrayOf(0x1f936, 0x1f3fb), R.drawable.emoji_ios_1f936_1f3fb),
Emoji(intArrayOf(0x1f936, 0x1f3fc), R.drawable.emoji_ios_1f936_1f3fc),
Emoji(intArrayOf(0x1f936, 0x1f3fd), R.drawable.emoji_ios_1f936_1f3fd),
Emoji(intArrayOf(0x1f936, 0x1f3fe), R.drawable.emoji_ios_1f936_1f3fe),
Emoji(intArrayOf(0x1f936, 0x1f3ff), R.drawable.emoji_ios_1f936_1f3ff)
)),
Emoji(0x1f385, R.drawable.emoji_ios_1f385, arrayOf(
Emoji(intArrayOf(0x1f385, 0x1f3fb), R.drawable.emoji_ios_1f385_1f3fb),
Emoji(intArrayOf(0x1f385, 0x1f3fc), R.drawable.emoji_ios_1f385_1f3fc),
Emoji(intArrayOf(0x1f385, 0x1f3fd), R.drawable.emoji_ios_1f385_1f3fd),
Emoji(intArrayOf(0x1f385, 0x1f3fe), R.drawable.emoji_ios_1f385_1f3fe),
Emoji(intArrayOf(0x1f385, 0x1f3ff), R.drawable.emoji_ios_1f385_1f3ff)
)),
Emoji(0x1f9d9, R.drawable.emoji_ios_1f9d9, arrayOf(
Emoji(intArrayOf(0x1f9d9, 0x1f3fb), R.drawable.emoji_ios_1f9d9_1f3fb),
Emoji(intArrayOf(0x1f9d9, 0x1f3fc), R.drawable.emoji_ios_1f9d9_1f3fc),
Emoji(intArrayOf(0x1f9d9, 0x1f3fd), R.drawable.emoji_ios_1f9d9_1f3fd),
Emoji(intArrayOf(0x1f9d9, 0x1f3fe), R.drawable.emoji_ios_1f9d9_1f3fe),
Emoji(intArrayOf(0x1f9d9, 0x1f3ff), R.drawable.emoji_ios_1f9d9_1f3ff)
)),
Emoji(intArrayOf(0x1f9d9, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9d9_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f9d9, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9d9_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9d9, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9d9_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9d9, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9d9_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9d9, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9d9_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9d9, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9d9_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f9d9, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9d9_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f9d9, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9d9_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9d9, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9d9_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9d9, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9d9_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9d9, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9d9_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9d9, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9d9_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f9dd, R.drawable.emoji_ios_1f9dd, arrayOf(
Emoji(intArrayOf(0x1f9dd, 0x1f3fb), R.drawable.emoji_ios_1f9dd_1f3fb),
Emoji(intArrayOf(0x1f9dd, 0x1f3fc), R.drawable.emoji_ios_1f9dd_1f3fc),
Emoji(intArrayOf(0x1f9dd, 0x1f3fd), R.drawable.emoji_ios_1f9dd_1f3fd),
Emoji(intArrayOf(0x1f9dd, 0x1f3fe), R.drawable.emoji_ios_1f9dd_1f3fe),
Emoji(intArrayOf(0x1f9dd, 0x1f3ff), R.drawable.emoji_ios_1f9dd_1f3ff)
)),
Emoji(intArrayOf(0x1f9dd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9dd_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f9dd, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9dd_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9dd, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9dd_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9dd, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9dd_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9dd, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9dd_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9dd, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9dd_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f9dd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9dd_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f9dd, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9dd_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9dd, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9dd_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9dd, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9dd_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9dd, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9dd_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9dd, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9dd_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f9db, R.drawable.emoji_ios_1f9db, arrayOf(
Emoji(intArrayOf(0x1f9db, 0x1f3fb), R.drawable.emoji_ios_1f9db_1f3fb),
Emoji(intArrayOf(0x1f9db, 0x1f3fc), R.drawable.emoji_ios_1f9db_1f3fc),
Emoji(intArrayOf(0x1f9db, 0x1f3fd), R.drawable.emoji_ios_1f9db_1f3fd),
Emoji(intArrayOf(0x1f9db, 0x1f3fe), R.drawable.emoji_ios_1f9db_1f3fe),
Emoji(intArrayOf(0x1f9db, 0x1f3ff), R.drawable.emoji_ios_1f9db_1f3ff)
)),
Emoji(intArrayOf(0x1f9db, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9db_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f9db, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9db_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9db, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9db_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9db, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9db_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9db, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9db_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9db, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9db_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f9db, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9db_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f9db, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9db_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9db, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9db_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9db, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9db_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9db, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9db_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9db, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9db_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f9df, R.drawable.emoji_ios_1f9df),
Emoji(intArrayOf(0x1f9df, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9df_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9df, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9df_200d_2642_fe0f),
Emoji(0x1f9de, R.drawable.emoji_ios_1f9de),
Emoji(intArrayOf(0x1f9de, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9de_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9de, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9de_200d_2642_fe0f),
Emoji(0x1f9dc, R.drawable.emoji_ios_1f9dc, arrayOf(
Emoji(intArrayOf(0x1f9dc, 0x1f3fb), R.drawable.emoji_ios_1f9dc_1f3fb),
Emoji(intArrayOf(0x1f9dc, 0x1f3fc), R.drawable.emoji_ios_1f9dc_1f3fc),
Emoji(intArrayOf(0x1f9dc, 0x1f3fd), R.drawable.emoji_ios_1f9dc_1f3fd),
Emoji(intArrayOf(0x1f9dc, 0x1f3fe), R.drawable.emoji_ios_1f9dc_1f3fe),
Emoji(intArrayOf(0x1f9dc, 0x1f3ff), R.drawable.emoji_ios_1f9dc_1f3ff)
)),
Emoji(intArrayOf(0x1f9dc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9dc_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f9dc, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9dc_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9dc, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9dc_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9dc, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9dc_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9dc, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9dc_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9dc, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9dc_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f9dc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9dc_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f9dc, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9dc_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9dc, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9dc_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9dc, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9dc_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9dc, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9dc_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9dc, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9dc_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f9da, R.drawable.emoji_ios_1f9da, arrayOf(
Emoji(intArrayOf(0x1f9da, 0x1f3fb), R.drawable.emoji_ios_1f9da_1f3fb),
Emoji(intArrayOf(0x1f9da, 0x1f3fc), R.drawable.emoji_ios_1f9da_1f3fc),
Emoji(intArrayOf(0x1f9da, 0x1f3fd), R.drawable.emoji_ios_1f9da_1f3fd),
Emoji(intArrayOf(0x1f9da, 0x1f3fe), R.drawable.emoji_ios_1f9da_1f3fe),
Emoji(intArrayOf(0x1f9da, 0x1f3ff), R.drawable.emoji_ios_1f9da_1f3ff)
)),
Emoji(intArrayOf(0x1f9da, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9da_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f9da, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9da_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9da, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9da_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9da, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9da_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9da, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9da_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9da, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9da_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f9da, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9da_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f9da, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9da_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9da, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9da_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9da, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9da_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9da, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9da_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9da, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9da_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f47c, R.drawable.emoji_ios_1f47c, arrayOf(
Emoji(intArrayOf(0x1f47c, 0x1f3fb), R.drawable.emoji_ios_1f47c_1f3fb),
Emoji(intArrayOf(0x1f47c, 0x1f3fc), R.drawable.emoji_ios_1f47c_1f3fc),
Emoji(intArrayOf(0x1f47c, 0x1f3fd), R.drawable.emoji_ios_1f47c_1f3fd),
Emoji(intArrayOf(0x1f47c, 0x1f3fe), R.drawable.emoji_ios_1f47c_1f3fe),
Emoji(intArrayOf(0x1f47c, 0x1f3ff), R.drawable.emoji_ios_1f47c_1f3ff)
)),
Emoji(0x1f930, R.drawable.emoji_ios_1f930, arrayOf(
Emoji(intArrayOf(0x1f930, 0x1f3fb), R.drawable.emoji_ios_1f930_1f3fb),
Emoji(intArrayOf(0x1f930, 0x1f3fc), R.drawable.emoji_ios_1f930_1f3fc),
Emoji(intArrayOf(0x1f930, 0x1f3fd), R.drawable.emoji_ios_1f930_1f3fd),
Emoji(intArrayOf(0x1f930, 0x1f3fe), R.drawable.emoji_ios_1f930_1f3fe),
Emoji(intArrayOf(0x1f930, 0x1f3ff), R.drawable.emoji_ios_1f930_1f3ff)
)),
Emoji(0x1f931, R.drawable.emoji_ios_1f931, arrayOf(
Emoji(intArrayOf(0x1f931, 0x1f3fb), R.drawable.emoji_ios_1f931_1f3fb),
Emoji(intArrayOf(0x1f931, 0x1f3fc), R.drawable.emoji_ios_1f931_1f3fc),
Emoji(intArrayOf(0x1f931, 0x1f3fd), R.drawable.emoji_ios_1f931_1f3fd),
Emoji(intArrayOf(0x1f931, 0x1f3fe), R.drawable.emoji_ios_1f931_1f3fe),
Emoji(intArrayOf(0x1f931, 0x1f3ff), R.drawable.emoji_ios_1f931_1f3ff)
)),
Emoji(intArrayOf(0x1f9d1, 0x200d, 0x1f37c), R.drawable.emoji_ios_1f9d1_200d_1f37c, arrayOf(
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x1f37c), R.drawable.emoji_ios_1f9d1_1f3fb_200d_1f37c),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x1f37c), R.drawable.emoji_ios_1f9d1_1f3fc_200d_1f37c),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x1f37c), R.drawable.emoji_ios_1f9d1_1f3fd_200d_1f37c),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x1f37c), R.drawable.emoji_ios_1f9d1_1f3fe_200d_1f37c),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x1f37c), R.drawable.emoji_ios_1f9d1_1f3ff_200d_1f37c)
)),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f37c), R.drawable.emoji_ios_1f469_200d_1f37c, arrayOf(
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f37c), R.drawable.emoji_ios_1f469_1f3fb_200d_1f37c),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f37c), R.drawable.emoji_ios_1f469_1f3fc_200d_1f37c),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f37c), R.drawable.emoji_ios_1f469_1f3fd_200d_1f37c),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f37c), R.drawable.emoji_ios_1f469_1f3fe_200d_1f37c),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f37c), R.drawable.emoji_ios_1f469_1f3ff_200d_1f37c)
)),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f37c), R.drawable.emoji_ios_1f468_200d_1f37c, arrayOf(
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x1f37c), R.drawable.emoji_ios_1f468_1f3fb_200d_1f37c),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x1f37c), R.drawable.emoji_ios_1f468_1f3fc_200d_1f37c),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x1f37c), R.drawable.emoji_ios_1f468_1f3fd_200d_1f37c),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x1f37c), R.drawable.emoji_ios_1f468_1f3fe_200d_1f37c),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x1f37c), R.drawable.emoji_ios_1f468_1f3ff_200d_1f37c)
)),
Emoji(0x1f647, R.drawable.emoji_ios_1f647, arrayOf(
Emoji(intArrayOf(0x1f647, 0x1f3fb), R.drawable.emoji_ios_1f647_1f3fb),
Emoji(intArrayOf(0x1f647, 0x1f3fc), R.drawable.emoji_ios_1f647_1f3fc),
Emoji(intArrayOf(0x1f647, 0x1f3fd), R.drawable.emoji_ios_1f647_1f3fd),
Emoji(intArrayOf(0x1f647, 0x1f3fe), R.drawable.emoji_ios_1f647_1f3fe),
Emoji(intArrayOf(0x1f647, 0x1f3ff), R.drawable.emoji_ios_1f647_1f3ff)
)),
Emoji(intArrayOf(0x1f647, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f647_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f647, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f647_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f647, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f647_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f647, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f647_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f647, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f647_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f647, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f647_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f647, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f647_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f647, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f647_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f647, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f647_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f647, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f647_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f647, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f647_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f647, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f647_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f481, R.drawable.emoji_ios_1f481, arrayOf(
Emoji(intArrayOf(0x1f481, 0x1f3fb), R.drawable.emoji_ios_1f481_1f3fb),
Emoji(intArrayOf(0x1f481, 0x1f3fc), R.drawable.emoji_ios_1f481_1f3fc),
Emoji(intArrayOf(0x1f481, 0x1f3fd), R.drawable.emoji_ios_1f481_1f3fd),
Emoji(intArrayOf(0x1f481, 0x1f3fe), R.drawable.emoji_ios_1f481_1f3fe),
Emoji(intArrayOf(0x1f481, 0x1f3ff), R.drawable.emoji_ios_1f481_1f3ff)
)),
Emoji(intArrayOf(0x1f481, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f481_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f481, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f481_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f481, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f481_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f481, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f481_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f481, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f481_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f481, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f481_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f481, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f481_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f481, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f481_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f481, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f481_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f481, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f481_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f481, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f481_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f481, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f481_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f645, R.drawable.emoji_ios_1f645, arrayOf(
Emoji(intArrayOf(0x1f645, 0x1f3fb), R.drawable.emoji_ios_1f645_1f3fb),
Emoji(intArrayOf(0x1f645, 0x1f3fc), R.drawable.emoji_ios_1f645_1f3fc),
Emoji(intArrayOf(0x1f645, 0x1f3fd), R.drawable.emoji_ios_1f645_1f3fd),
Emoji(intArrayOf(0x1f645, 0x1f3fe), R.drawable.emoji_ios_1f645_1f3fe),
Emoji(intArrayOf(0x1f645, 0x1f3ff), R.drawable.emoji_ios_1f645_1f3ff)
)),
Emoji(intArrayOf(0x1f645, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f645_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f645, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f645_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f645, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f645_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f645, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f645_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f645, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f645_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f645, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f645_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f645, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f645_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f645, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f645_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f645, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f645_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f645, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f645_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f645, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f645_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f645, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f645_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f646, R.drawable.emoji_ios_1f646, arrayOf(
Emoji(intArrayOf(0x1f646, 0x1f3fb), R.drawable.emoji_ios_1f646_1f3fb),
Emoji(intArrayOf(0x1f646, 0x1f3fc), R.drawable.emoji_ios_1f646_1f3fc),
Emoji(intArrayOf(0x1f646, 0x1f3fd), R.drawable.emoji_ios_1f646_1f3fd),
Emoji(intArrayOf(0x1f646, 0x1f3fe), R.drawable.emoji_ios_1f646_1f3fe),
Emoji(intArrayOf(0x1f646, 0x1f3ff), R.drawable.emoji_ios_1f646_1f3ff)
)),
Emoji(intArrayOf(0x1f646, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f646_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f646, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f646_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f646, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f646_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f646, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f646_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f646, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f646_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f646, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f646_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f646, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f646_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f646, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f646_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f646, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f646_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f646, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f646_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f646, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f646_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f646, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f646_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f64b, R.drawable.emoji_ios_1f64b, arrayOf(
Emoji(intArrayOf(0x1f64b, 0x1f3fb), R.drawable.emoji_ios_1f64b_1f3fb),
Emoji(intArrayOf(0x1f64b, 0x1f3fc), R.drawable.emoji_ios_1f64b_1f3fc),
Emoji(intArrayOf(0x1f64b, 0x1f3fd), R.drawable.emoji_ios_1f64b_1f3fd),
Emoji(intArrayOf(0x1f64b, 0x1f3fe), R.drawable.emoji_ios_1f64b_1f3fe),
Emoji(intArrayOf(0x1f64b, 0x1f3ff), R.drawable.emoji_ios_1f64b_1f3ff)
)),
Emoji(intArrayOf(0x1f64b, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f64b_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f64b, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f64b_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f64b, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f64b_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f64b, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f64b_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f64b, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f64b_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f64b, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f64b_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f64b, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f64b_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f64b, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f64b_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f64b, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f64b_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f64b, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f64b_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f64b, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f64b_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f64b, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f64b_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f9cf, R.drawable.emoji_ios_1f9cf, arrayOf(
Emoji(intArrayOf(0x1f9cf, 0x1f3fb), R.drawable.emoji_ios_1f9cf_1f3fb),
Emoji(intArrayOf(0x1f9cf, 0x1f3fc), R.drawable.emoji_ios_1f9cf_1f3fc),
Emoji(intArrayOf(0x1f9cf, 0x1f3fd), R.drawable.emoji_ios_1f9cf_1f3fd),
Emoji(intArrayOf(0x1f9cf, 0x1f3fe), R.drawable.emoji_ios_1f9cf_1f3fe),
Emoji(intArrayOf(0x1f9cf, 0x1f3ff), R.drawable.emoji_ios_1f9cf_1f3ff)
)),
Emoji(intArrayOf(0x1f9cf, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9cf_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f9cf, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9cf_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9cf, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9cf_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9cf, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9cf_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9cf, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9cf_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9cf, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9cf_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f9cf, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9cf_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f9cf, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9cf_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9cf, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9cf_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9cf, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9cf_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9cf, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9cf_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9cf, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9cf_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f926, R.drawable.emoji_ios_1f926, arrayOf(
Emoji(intArrayOf(0x1f926, 0x1f3fb), R.drawable.emoji_ios_1f926_1f3fb),
Emoji(intArrayOf(0x1f926, 0x1f3fc), R.drawable.emoji_ios_1f926_1f3fc),
Emoji(intArrayOf(0x1f926, 0x1f3fd), R.drawable.emoji_ios_1f926_1f3fd),
Emoji(intArrayOf(0x1f926, 0x1f3fe), R.drawable.emoji_ios_1f926_1f3fe),
Emoji(intArrayOf(0x1f926, 0x1f3ff), R.drawable.emoji_ios_1f926_1f3ff)
)),
Emoji(intArrayOf(0x1f926, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f926_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f926, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f926_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f926, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f926_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f926, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f926_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f926, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f926_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f926, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f926_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f926, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f926_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f926, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f926_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f926, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f926_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f926, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f926_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f926, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f926_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f926, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f926_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f937, R.drawable.emoji_ios_1f937, arrayOf(
Emoji(intArrayOf(0x1f937, 0x1f3fb), R.drawable.emoji_ios_1f937_1f3fb),
Emoji(intArrayOf(0x1f937, 0x1f3fc), R.drawable.emoji_ios_1f937_1f3fc),
Emoji(intArrayOf(0x1f937, 0x1f3fd), R.drawable.emoji_ios_1f937_1f3fd),
Emoji(intArrayOf(0x1f937, 0x1f3fe), R.drawable.emoji_ios_1f937_1f3fe),
Emoji(intArrayOf(0x1f937, 0x1f3ff), R.drawable.emoji_ios_1f937_1f3ff)
)),
Emoji(intArrayOf(0x1f937, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f937_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f937, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f937_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f937, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f937_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f937, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f937_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f937, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f937_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f937, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f937_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f937, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f937_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f937, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f937_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f937, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f937_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f937, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f937_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f937, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f937_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f937, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f937_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f64e, R.drawable.emoji_ios_1f64e, arrayOf(
Emoji(intArrayOf(0x1f64e, 0x1f3fb), R.drawable.emoji_ios_1f64e_1f3fb),
Emoji(intArrayOf(0x1f64e, 0x1f3fc), R.drawable.emoji_ios_1f64e_1f3fc),
Emoji(intArrayOf(0x1f64e, 0x1f3fd), R.drawable.emoji_ios_1f64e_1f3fd),
Emoji(intArrayOf(0x1f64e, 0x1f3fe), R.drawable.emoji_ios_1f64e_1f3fe),
Emoji(intArrayOf(0x1f64e, 0x1f3ff), R.drawable.emoji_ios_1f64e_1f3ff)
)),
Emoji(intArrayOf(0x1f64e, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f64e_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f64e, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f64e_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f64e, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f64e_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f64e, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f64e_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f64e, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f64e_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f64e, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f64e_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f64e, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f64e_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f64e, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f64e_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f64e, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f64e_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f64e, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f64e_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f64e, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f64e_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f64e, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f64e_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f64d, R.drawable.emoji_ios_1f64d, arrayOf(
Emoji(intArrayOf(0x1f64d, 0x1f3fb), R.drawable.emoji_ios_1f64d_1f3fb),
Emoji(intArrayOf(0x1f64d, 0x1f3fc), R.drawable.emoji_ios_1f64d_1f3fc),
Emoji(intArrayOf(0x1f64d, 0x1f3fd), R.drawable.emoji_ios_1f64d_1f3fd),
Emoji(intArrayOf(0x1f64d, 0x1f3fe), R.drawable.emoji_ios_1f64d_1f3fe),
Emoji(intArrayOf(0x1f64d, 0x1f3ff), R.drawable.emoji_ios_1f64d_1f3ff)
)),
Emoji(intArrayOf(0x1f64d, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f64d_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f64d, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f64d_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f64d, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f64d_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f64d, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f64d_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f64d, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f64d_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f64d, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f64d_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f64d, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f64d_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f64d, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f64d_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f64d, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f64d_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f64d, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f64d_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f64d, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f64d_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f64d, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f64d_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f487, R.drawable.emoji_ios_1f487, arrayOf(
Emoji(intArrayOf(0x1f487, 0x1f3fb), R.drawable.emoji_ios_1f487_1f3fb),
Emoji(intArrayOf(0x1f487, 0x1f3fc), R.drawable.emoji_ios_1f487_1f3fc),
Emoji(intArrayOf(0x1f487, 0x1f3fd), R.drawable.emoji_ios_1f487_1f3fd),
Emoji(intArrayOf(0x1f487, 0x1f3fe), R.drawable.emoji_ios_1f487_1f3fe),
Emoji(intArrayOf(0x1f487, 0x1f3ff), R.drawable.emoji_ios_1f487_1f3ff)
)),
Emoji(intArrayOf(0x1f487, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f487_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f487, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f487_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f487, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f487_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f487, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f487_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f487, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f487_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f487, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f487_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f487, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f487_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f487, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f487_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f487, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f487_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f487, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f487_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f487, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f487_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f487, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f487_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f486, R.drawable.emoji_ios_1f486, arrayOf(
Emoji(intArrayOf(0x1f486, 0x1f3fb), R.drawable.emoji_ios_1f486_1f3fb),
Emoji(intArrayOf(0x1f486, 0x1f3fc), R.drawable.emoji_ios_1f486_1f3fc),
Emoji(intArrayOf(0x1f486, 0x1f3fd), R.drawable.emoji_ios_1f486_1f3fd),
Emoji(intArrayOf(0x1f486, 0x1f3fe), R.drawable.emoji_ios_1f486_1f3fe),
Emoji(intArrayOf(0x1f486, 0x1f3ff), R.drawable.emoji_ios_1f486_1f3ff)
)),
Emoji(intArrayOf(0x1f486, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f486_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f486, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f486_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f486, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f486_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f486, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f486_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f486, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f486_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f486, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f486_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f486, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f486_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f486, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f486_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f486, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f486_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f486, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f486_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f486, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f486_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f486, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f486_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f9d6, R.drawable.emoji_ios_1f9d6, arrayOf(
Emoji(intArrayOf(0x1f9d6, 0x1f3fb), R.drawable.emoji_ios_1f9d6_1f3fb),
Emoji(intArrayOf(0x1f9d6, 0x1f3fc), R.drawable.emoji_ios_1f9d6_1f3fc),
Emoji(intArrayOf(0x1f9d6, 0x1f3fd), R.drawable.emoji_ios_1f9d6_1f3fd),
Emoji(intArrayOf(0x1f9d6, 0x1f3fe), R.drawable.emoji_ios_1f9d6_1f3fe),
Emoji(intArrayOf(0x1f9d6, 0x1f3ff), R.drawable.emoji_ios_1f9d6_1f3ff)
)),
Emoji(intArrayOf(0x1f9d6, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9d6_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f9d6, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9d6_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9d6, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9d6_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9d6, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9d6_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9d6, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9d6_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9d6, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9d6_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f9d6, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9d6_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f9d6, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9d6_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9d6, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9d6_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9d6, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9d6_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9d6, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9d6_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9d6, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9d6_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f485, R.drawable.emoji_ios_1f485, arrayOf(
Emoji(intArrayOf(0x1f485, 0x1f3fb), R.drawable.emoji_ios_1f485_1f3fb),
Emoji(intArrayOf(0x1f485, 0x1f3fc), R.drawable.emoji_ios_1f485_1f3fc),
Emoji(intArrayOf(0x1f485, 0x1f3fd), R.drawable.emoji_ios_1f485_1f3fd),
Emoji(intArrayOf(0x1f485, 0x1f3fe), R.drawable.emoji_ios_1f485_1f3fe),
Emoji(intArrayOf(0x1f485, 0x1f3ff), R.drawable.emoji_ios_1f485_1f3ff)
)),
Emoji(0x1f933, R.drawable.emoji_ios_1f933, arrayOf(
Emoji(intArrayOf(0x1f933, 0x1f3fb), R.drawable.emoji_ios_1f933_1f3fb),
Emoji(intArrayOf(0x1f933, 0x1f3fc), R.drawable.emoji_ios_1f933_1f3fc),
Emoji(intArrayOf(0x1f933, 0x1f3fd), R.drawable.emoji_ios_1f933_1f3fd),
Emoji(intArrayOf(0x1f933, 0x1f3fe), R.drawable.emoji_ios_1f933_1f3fe),
Emoji(intArrayOf(0x1f933, 0x1f3ff), R.drawable.emoji_ios_1f933_1f3ff)
)),
Emoji(0x1f483, R.drawable.emoji_ios_1f483, arrayOf(
Emoji(intArrayOf(0x1f483, 0x1f3fb), R.drawable.emoji_ios_1f483_1f3fb),
Emoji(intArrayOf(0x1f483, 0x1f3fc), R.drawable.emoji_ios_1f483_1f3fc),
Emoji(intArrayOf(0x1f483, 0x1f3fd), R.drawable.emoji_ios_1f483_1f3fd),
Emoji(intArrayOf(0x1f483, 0x1f3fe), R.drawable.emoji_ios_1f483_1f3fe),
Emoji(intArrayOf(0x1f483, 0x1f3ff), R.drawable.emoji_ios_1f483_1f3ff)
)),
Emoji(0x1f57a, R.drawable.emoji_ios_1f57a, arrayOf(
Emoji(intArrayOf(0x1f57a, 0x1f3fb), R.drawable.emoji_ios_1f57a_1f3fb),
Emoji(intArrayOf(0x1f57a, 0x1f3fc), R.drawable.emoji_ios_1f57a_1f3fc),
Emoji(intArrayOf(0x1f57a, 0x1f3fd), R.drawable.emoji_ios_1f57a_1f3fd),
Emoji(intArrayOf(0x1f57a, 0x1f3ff), R.drawable.emoji_ios_1f57a_1f3ff),
Emoji(intArrayOf(0x1f57a, 0x1f3fe), R.drawable.emoji_ios_1f57a_1f3fe)
)),
Emoji(0x1f46f, R.drawable.emoji_ios_1f46f),
Emoji(intArrayOf(0x1f46f, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f46f_200d_2640_fe0f),
Emoji(intArrayOf(0x1f46f, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f46f_200d_2642_fe0f),
Emoji(0x1f574, R.drawable.emoji_ios_1f574, arrayOf(
Emoji(intArrayOf(0x1f574, 0x1f3fb), R.drawable.emoji_ios_1f574_1f3fb),
Emoji(intArrayOf(0x1f574, 0x1f3fc), R.drawable.emoji_ios_1f574_1f3fc),
Emoji(intArrayOf(0x1f574, 0x1f3fd), R.drawable.emoji_ios_1f574_1f3fd),
Emoji(intArrayOf(0x1f574, 0x1f3fe), R.drawable.emoji_ios_1f574_1f3fe),
Emoji(intArrayOf(0x1f574, 0x1f3ff), R.drawable.emoji_ios_1f574_1f3ff)
)),
Emoji(intArrayOf(0x1f9d1, 0x200d, 0x1f9bd), R.drawable.emoji_ios_1f9d1_200d_1f9bd, arrayOf(
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x1f9bd), R.drawable.emoji_ios_1f9d1_1f3fb_200d_1f9bd),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x1f9bd), R.drawable.emoji_ios_1f9d1_1f3fc_200d_1f9bd),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x1f9bd), R.drawable.emoji_ios_1f9d1_1f3fd_200d_1f9bd),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x1f9bd), R.drawable.emoji_ios_1f9d1_1f3fe_200d_1f9bd),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x1f9bd), R.drawable.emoji_ios_1f9d1_1f3ff_200d_1f9bd)
)),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f9bd), R.drawable.emoji_ios_1f469_200d_1f9bd, arrayOf(
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f9bd), R.drawable.emoji_ios_1f469_1f3fb_200d_1f9bd),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f9bd), R.drawable.emoji_ios_1f469_1f3fc_200d_1f9bd),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f9bd), R.drawable.emoji_ios_1f469_1f3fd_200d_1f9bd),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f9bd), R.drawable.emoji_ios_1f469_1f3fe_200d_1f9bd),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f9bd), R.drawable.emoji_ios_1f469_1f3ff_200d_1f9bd)
)),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f9bd), R.drawable.emoji_ios_1f468_200d_1f9bd, arrayOf(
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x1f9bd), R.drawable.emoji_ios_1f468_1f3fb_200d_1f9bd),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x1f9bd), R.drawable.emoji_ios_1f468_1f3fc_200d_1f9bd),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x1f9bd), R.drawable.emoji_ios_1f468_1f3fd_200d_1f9bd),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x1f9bd), R.drawable.emoji_ios_1f468_1f3fe_200d_1f9bd),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x1f9bd), R.drawable.emoji_ios_1f468_1f3ff_200d_1f9bd)
)),
Emoji(intArrayOf(0x1f9d1, 0x200d, 0x1f9bc), R.drawable.emoji_ios_1f9d1_200d_1f9bc, arrayOf(
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x1f9bc), R.drawable.emoji_ios_1f9d1_1f3fb_200d_1f9bc),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x1f9bc), R.drawable.emoji_ios_1f9d1_1f3fc_200d_1f9bc),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x1f9bc), R.drawable.emoji_ios_1f9d1_1f3fd_200d_1f9bc),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x1f9bc), R.drawable.emoji_ios_1f9d1_1f3fe_200d_1f9bc),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x1f9bc), R.drawable.emoji_ios_1f9d1_1f3ff_200d_1f9bc)
)),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f9bc), R.drawable.emoji_ios_1f469_200d_1f9bc, arrayOf(
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f9bc), R.drawable.emoji_ios_1f469_1f3fb_200d_1f9bc),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f9bc), R.drawable.emoji_ios_1f469_1f3fc_200d_1f9bc),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f9bc), R.drawable.emoji_ios_1f469_1f3fd_200d_1f9bc),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f9bc), R.drawable.emoji_ios_1f469_1f3fe_200d_1f9bc),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f9bc), R.drawable.emoji_ios_1f469_1f3ff_200d_1f9bc)
)),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f9bc), R.drawable.emoji_ios_1f468_200d_1f9bc, arrayOf(
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x1f9bc), R.drawable.emoji_ios_1f468_1f3fb_200d_1f9bc),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x1f9bc), R.drawable.emoji_ios_1f468_1f3fc_200d_1f9bc),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x1f9bc), R.drawable.emoji_ios_1f468_1f3fd_200d_1f9bc),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x1f9bc), R.drawable.emoji_ios_1f468_1f3fe_200d_1f9bc),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x1f9bc), R.drawable.emoji_ios_1f468_1f3ff_200d_1f9bc)
)),
Emoji(0x1f6b6, R.drawable.emoji_ios_1f6b6, arrayOf(
Emoji(intArrayOf(0x1f6b6, 0x1f3fb), R.drawable.emoji_ios_1f6b6_1f3fb),
Emoji(intArrayOf(0x1f6b6, 0x1f3fc), R.drawable.emoji_ios_1f6b6_1f3fc),
Emoji(intArrayOf(0x1f6b6, 0x1f3fd), R.drawable.emoji_ios_1f6b6_1f3fd),
Emoji(intArrayOf(0x1f6b6, 0x1f3fe), R.drawable.emoji_ios_1f6b6_1f3fe),
Emoji(intArrayOf(0x1f6b6, 0x1f3ff), R.drawable.emoji_ios_1f6b6_1f3ff)
)),
Emoji(intArrayOf(0x1f6b6, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f6b6_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f6b6, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f6b6_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f6b6, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f6b6_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f6b6, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f6b6_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f6b6, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f6b6_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f6b6, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f6b6_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f6b6, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f6b6_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f6b6, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f6b6_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f6b6, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f6b6_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f6b6, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f6b6_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f6b6, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f6b6_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f6b6, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f6b6_1f3ff_200d_2642_fe0f)
)),
Emoji(intArrayOf(0x1f9d1, 0x200d, 0x1f9af), R.drawable.emoji_ios_1f9d1_200d_1f9af, arrayOf(
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x1f9af), R.drawable.emoji_ios_1f9d1_1f3fb_200d_1f9af),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x1f9af), R.drawable.emoji_ios_1f9d1_1f3fc_200d_1f9af),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x1f9af), R.drawable.emoji_ios_1f9d1_1f3fd_200d_1f9af),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x1f9af), R.drawable.emoji_ios_1f9d1_1f3fe_200d_1f9af),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x1f9af), R.drawable.emoji_ios_1f9d1_1f3ff_200d_1f9af)
)),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f9af), R.drawable.emoji_ios_1f469_200d_1f9af, arrayOf(
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f9af), R.drawable.emoji_ios_1f469_1f3fb_200d_1f9af),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f9af), R.drawable.emoji_ios_1f469_1f3fc_200d_1f9af),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f9af), R.drawable.emoji_ios_1f469_1f3fd_200d_1f9af),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f9af), R.drawable.emoji_ios_1f469_1f3fe_200d_1f9af),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f9af), R.drawable.emoji_ios_1f469_1f3ff_200d_1f9af)
)),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f9af), R.drawable.emoji_ios_1f468_200d_1f9af, arrayOf(
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x1f9af), R.drawable.emoji_ios_1f468_1f3fb_200d_1f9af),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x1f9af), R.drawable.emoji_ios_1f468_1f3fd_200d_1f9af),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x1f9af), R.drawable.emoji_ios_1f468_1f3fc_200d_1f9af),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x1f9af), R.drawable.emoji_ios_1f468_1f3fe_200d_1f9af),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x1f9af), R.drawable.emoji_ios_1f468_1f3ff_200d_1f9af)
)),
Emoji(0x1f9ce, R.drawable.emoji_ios_1f9ce, arrayOf(
Emoji(intArrayOf(0x1f9ce, 0x1f3fb), R.drawable.emoji_ios_1f9ce_1f3fb),
Emoji(intArrayOf(0x1f9ce, 0x1f3fc), R.drawable.emoji_ios_1f9ce_1f3fc),
Emoji(intArrayOf(0x1f9ce, 0x1f3fd), R.drawable.emoji_ios_1f9ce_1f3fd),
Emoji(intArrayOf(0x1f9ce, 0x1f3fe), R.drawable.emoji_ios_1f9ce_1f3fe),
Emoji(intArrayOf(0x1f9ce, 0x1f3ff), R.drawable.emoji_ios_1f9ce_1f3ff)
)),
Emoji(intArrayOf(0x1f9ce, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9ce_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f9ce, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9ce_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9ce, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9ce_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9ce, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9ce_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9ce, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9ce_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9ce, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9ce_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f9ce, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9ce_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f9ce, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9ce_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9ce, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9ce_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9ce, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9ce_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9ce, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9ce_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9ce, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9ce_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f3c3, R.drawable.emoji_ios_1f3c3, arrayOf(
Emoji(intArrayOf(0x1f3c3, 0x1f3fb), R.drawable.emoji_ios_1f3c3_1f3fb),
Emoji(intArrayOf(0x1f3c3, 0x1f3fc), R.drawable.emoji_ios_1f3c3_1f3fc),
Emoji(intArrayOf(0x1f3c3, 0x1f3fd), R.drawable.emoji_ios_1f3c3_1f3fd),
Emoji(intArrayOf(0x1f3c3, 0x1f3fe), R.drawable.emoji_ios_1f3c3_1f3fe),
Emoji(intArrayOf(0x1f3c3, 0x1f3ff), R.drawable.emoji_ios_1f3c3_1f3ff)
)),
Emoji(intArrayOf(0x1f3c3, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f3c3_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f3c3, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f3c3_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f3c3, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f3c3_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f3c3, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f3c3_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f3c3, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f3c3_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f3c3, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f3c3_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f3c3, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f3c3_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f3c3, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f3c3_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f3c3, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f3c3_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f3c3, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f3c3_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f3c3, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f3c3_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f3c3, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f3c3_1f3ff_200d_2642_fe0f)
)),
Emoji(0x1f9cd, R.drawable.emoji_ios_1f9cd, arrayOf(
Emoji(intArrayOf(0x1f9cd, 0x1f3fb), R.drawable.emoji_ios_1f9cd_1f3fb),
Emoji(intArrayOf(0x1f9cd, 0x1f3fc), R.drawable.emoji_ios_1f9cd_1f3fc),
Emoji(intArrayOf(0x1f9cd, 0x1f3fd), R.drawable.emoji_ios_1f9cd_1f3fd),
Emoji(intArrayOf(0x1f9cd, 0x1f3fe), R.drawable.emoji_ios_1f9cd_1f3fe),
Emoji(intArrayOf(0x1f9cd, 0x1f3ff), R.drawable.emoji_ios_1f9cd_1f3ff)
)),
Emoji(intArrayOf(0x1f9cd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9cd_200d_2640_fe0f, arrayOf(
Emoji(intArrayOf(0x1f9cd, 0x1f3fb, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9cd_1f3fb_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9cd, 0x1f3fc, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9cd_1f3fc_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9cd, 0x1f3fd, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9cd_1f3fd_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9cd, 0x1f3fe, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9cd_1f3fe_200d_2640_fe0f),
Emoji(intArrayOf(0x1f9cd, 0x1f3ff, 0x200d, 0x2640, 0xfe0f), R.drawable.emoji_ios_1f9cd_1f3ff_200d_2640_fe0f)
)),
Emoji(intArrayOf(0x1f9cd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9cd_200d_2642_fe0f, arrayOf(
Emoji(intArrayOf(0x1f9cd, 0x1f3fb, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9cd_1f3fb_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9cd, 0x1f3fc, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9cd_1f3fc_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9cd, 0x1f3fd, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9cd_1f3fd_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9cd, 0x1f3fe, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9cd_1f3fe_200d_2642_fe0f),
Emoji(intArrayOf(0x1f9cd, 0x1f3ff, 0x200d, 0x2642, 0xfe0f), R.drawable.emoji_ios_1f9cd_1f3ff_200d_2642_fe0f)
)),
Emoji(intArrayOf(0x1f9d1, 0x200d, 0x1f91d, 0x200d, 0x1f9d1), R.drawable.emoji_ios_1f9d1_200d_1f91d_200d_1f9d1, arrayOf(
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x1f91d, 0x200d, 0x1f9d1, 0x1f3fb), R.drawable.emoji_ios_1f9d1_1f3fb_200d_1f91d_200d_1f9d1_1f3fb),
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x1f91d, 0x200d, 0x1f9d1, 0x1f3fc), R.drawable.emoji_ios_1f9d1_1f3fb_200d_1f91d_200d_1f9d1_1f3fc),
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x1f91d, 0x200d, 0x1f9d1, 0x1f3fd), R.drawable.emoji_ios_1f9d1_1f3fb_200d_1f91d_200d_1f9d1_1f3fd),
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x1f91d, 0x200d, 0x1f9d1, 0x1f3fe), R.drawable.emoji_ios_1f9d1_1f3fb_200d_1f91d_200d_1f9d1_1f3fe),
Emoji(intArrayOf(0x1f9d1, 0x1f3fb, 0x200d, 0x1f91d, 0x200d, 0x1f9d1, 0x1f3ff), R.drawable.emoji_ios_1f9d1_1f3fb_200d_1f91d_200d_1f9d1_1f3ff),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x1f91d, 0x200d, 0x1f9d1, 0x1f3fb), R.drawable.emoji_ios_1f9d1_1f3fc_200d_1f91d_200d_1f9d1_1f3fb),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x1f91d, 0x200d, 0x1f9d1, 0x1f3fc), R.drawable.emoji_ios_1f9d1_1f3fc_200d_1f91d_200d_1f9d1_1f3fc),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x1f91d, 0x200d, 0x1f9d1, 0x1f3fd), R.drawable.emoji_ios_1f9d1_1f3fc_200d_1f91d_200d_1f9d1_1f3fd),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x1f91d, 0x200d, 0x1f9d1, 0x1f3fe), R.drawable.emoji_ios_1f9d1_1f3fc_200d_1f91d_200d_1f9d1_1f3fe),
Emoji(intArrayOf(0x1f9d1, 0x1f3fc, 0x200d, 0x1f91d, 0x200d, 0x1f9d1, 0x1f3ff), R.drawable.emoji_ios_1f9d1_1f3fc_200d_1f91d_200d_1f9d1_1f3ff),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x1f91d, 0x200d, 0x1f9d1, 0x1f3fb), R.drawable.emoji_ios_1f9d1_1f3fd_200d_1f91d_200d_1f9d1_1f3fb),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x1f91d, 0x200d, 0x1f9d1, 0x1f3fc), R.drawable.emoji_ios_1f9d1_1f3fd_200d_1f91d_200d_1f9d1_1f3fc),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x1f91d, 0x200d, 0x1f9d1, 0x1f3fd), R.drawable.emoji_ios_1f9d1_1f3fd_200d_1f91d_200d_1f9d1_1f3fd),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x1f91d, 0x200d, 0x1f9d1, 0x1f3fe), R.drawable.emoji_ios_1f9d1_1f3fd_200d_1f91d_200d_1f9d1_1f3fe),
Emoji(intArrayOf(0x1f9d1, 0x1f3fd, 0x200d, 0x1f91d, 0x200d, 0x1f9d1, 0x1f3ff), R.drawable.emoji_ios_1f9d1_1f3fd_200d_1f91d_200d_1f9d1_1f3ff),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x1f91d, 0x200d, 0x1f9d1, 0x1f3fb), R.drawable.emoji_ios_1f9d1_1f3fe_200d_1f91d_200d_1f9d1_1f3fb),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x1f91d, 0x200d, 0x1f9d1, 0x1f3fc), R.drawable.emoji_ios_1f9d1_1f3fe_200d_1f91d_200d_1f9d1_1f3fc),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x1f91d, 0x200d, 0x1f9d1, 0x1f3fd), R.drawable.emoji_ios_1f9d1_1f3fe_200d_1f91d_200d_1f9d1_1f3fd),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x1f91d, 0x200d, 0x1f9d1, 0x1f3fe), R.drawable.emoji_ios_1f9d1_1f3fe_200d_1f91d_200d_1f9d1_1f3fe),
Emoji(intArrayOf(0x1f9d1, 0x1f3fe, 0x200d, 0x1f91d, 0x200d, 0x1f9d1, 0x1f3ff), R.drawable.emoji_ios_1f9d1_1f3fe_200d_1f91d_200d_1f9d1_1f3ff),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x1f91d, 0x200d, 0x1f9d1, 0x1f3fb), R.drawable.emoji_ios_1f9d1_1f3ff_200d_1f91d_200d_1f9d1_1f3fb),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x1f91d, 0x200d, 0x1f9d1, 0x1f3fc), R.drawable.emoji_ios_1f9d1_1f3ff_200d_1f91d_200d_1f9d1_1f3fc),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x1f91d, 0x200d, 0x1f9d1, 0x1f3fd), R.drawable.emoji_ios_1f9d1_1f3ff_200d_1f91d_200d_1f9d1_1f3fd),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x1f91d, 0x200d, 0x1f9d1, 0x1f3fe), R.drawable.emoji_ios_1f9d1_1f3ff_200d_1f91d_200d_1f9d1_1f3fe),
Emoji(intArrayOf(0x1f9d1, 0x1f3ff, 0x200d, 0x1f91d, 0x200d, 0x1f9d1, 0x1f3ff), R.drawable.emoji_ios_1f9d1_1f3ff_200d_1f91d_200d_1f9d1_1f3ff)
)),
Emoji(0x1f46b, R.drawable.emoji_ios_1f46b, arrayOf(
Emoji(intArrayOf(0x1f46b, 0x1f3fb), R.drawable.emoji_ios_1f46b_1f3fb),
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fc), R.drawable.emoji_ios_1f469_1f3fb_200d_1f91d_200d_1f468_1f3fc),
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fd), R.drawable.emoji_ios_1f469_1f3fb_200d_1f91d_200d_1f468_1f3fd),
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fe), R.drawable.emoji_ios_1f469_1f3fb_200d_1f91d_200d_1f468_1f3fe),
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3ff), R.drawable.emoji_ios_1f469_1f3fb_200d_1f91d_200d_1f468_1f3ff),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fb), R.drawable.emoji_ios_1f469_1f3fc_200d_1f91d_200d_1f468_1f3fb),
Emoji(intArrayOf(0x1f46b, 0x1f3fc), R.drawable.emoji_ios_1f46b_1f3fc),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fd), R.drawable.emoji_ios_1f469_1f3fc_200d_1f91d_200d_1f468_1f3fd),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fe), R.drawable.emoji_ios_1f469_1f3fc_200d_1f91d_200d_1f468_1f3fe),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3ff), R.drawable.emoji_ios_1f469_1f3fc_200d_1f91d_200d_1f468_1f3ff),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fb), R.drawable.emoji_ios_1f469_1f3fd_200d_1f91d_200d_1f468_1f3fb),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fc), R.drawable.emoji_ios_1f469_1f3fd_200d_1f91d_200d_1f468_1f3fc),
Emoji(intArrayOf(0x1f46b, 0x1f3fd), R.drawable.emoji_ios_1f46b_1f3fd),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fe), R.drawable.emoji_ios_1f469_1f3fd_200d_1f91d_200d_1f468_1f3fe),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3ff), R.drawable.emoji_ios_1f469_1f3fd_200d_1f91d_200d_1f468_1f3ff),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fb), R.drawable.emoji_ios_1f469_1f3fe_200d_1f91d_200d_1f468_1f3fb),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fc), R.drawable.emoji_ios_1f469_1f3fe_200d_1f91d_200d_1f468_1f3fc),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fd), R.drawable.emoji_ios_1f469_1f3fe_200d_1f91d_200d_1f468_1f3fd),
Emoji(intArrayOf(0x1f46b, 0x1f3fe), R.drawable.emoji_ios_1f46b_1f3fe),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3ff), R.drawable.emoji_ios_1f469_1f3fe_200d_1f91d_200d_1f468_1f3ff),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fb), R.drawable.emoji_ios_1f469_1f3ff_200d_1f91d_200d_1f468_1f3fb),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fc), R.drawable.emoji_ios_1f469_1f3ff_200d_1f91d_200d_1f468_1f3fc),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fd), R.drawable.emoji_ios_1f469_1f3ff_200d_1f91d_200d_1f468_1f3fd),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fe), R.drawable.emoji_ios_1f469_1f3ff_200d_1f91d_200d_1f468_1f3fe),
Emoji(intArrayOf(0x1f46b, 0x1f3ff), R.drawable.emoji_ios_1f46b_1f3ff)
)),
Emoji(0x1f46d, R.drawable.emoji_ios_1f46d, arrayOf(
Emoji(intArrayOf(0x1f46d, 0x1f3fb), R.drawable.emoji_ios_1f46d_1f3fb),
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f91d, 0x200d, 0x1f469, 0x1f3fc), R.drawable.emoji_ios_1f469_1f3fb_200d_1f91d_200d_1f469_1f3fc),
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f91d, 0x200d, 0x1f469, 0x1f3fd), R.drawable.emoji_ios_1f469_1f3fb_200d_1f91d_200d_1f469_1f3fd),
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f91d, 0x200d, 0x1f469, 0x1f3fe), R.drawable.emoji_ios_1f469_1f3fb_200d_1f91d_200d_1f469_1f3fe),
Emoji(intArrayOf(0x1f469, 0x1f3fb, 0x200d, 0x1f91d, 0x200d, 0x1f469, 0x1f3ff), R.drawable.emoji_ios_1f469_1f3fb_200d_1f91d_200d_1f469_1f3ff),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f91d, 0x200d, 0x1f469, 0x1f3fb), R.drawable.emoji_ios_1f469_1f3fc_200d_1f91d_200d_1f469_1f3fb),
Emoji(intArrayOf(0x1f46d, 0x1f3fc), R.drawable.emoji_ios_1f46d_1f3fc),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f91d, 0x200d, 0x1f469, 0x1f3fd), R.drawable.emoji_ios_1f469_1f3fc_200d_1f91d_200d_1f469_1f3fd),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f91d, 0x200d, 0x1f469, 0x1f3fe), R.drawable.emoji_ios_1f469_1f3fc_200d_1f91d_200d_1f469_1f3fe),
Emoji(intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x1f91d, 0x200d, 0x1f469, 0x1f3ff), R.drawable.emoji_ios_1f469_1f3fc_200d_1f91d_200d_1f469_1f3ff),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f91d, 0x200d, 0x1f469, 0x1f3fb), R.drawable.emoji_ios_1f469_1f3fd_200d_1f91d_200d_1f469_1f3fb),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f91d, 0x200d, 0x1f469, 0x1f3fc), R.drawable.emoji_ios_1f469_1f3fd_200d_1f91d_200d_1f469_1f3fc),
Emoji(intArrayOf(0x1f46d, 0x1f3fd), R.drawable.emoji_ios_1f46d_1f3fd),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f91d, 0x200d, 0x1f469, 0x1f3fe), R.drawable.emoji_ios_1f469_1f3fd_200d_1f91d_200d_1f469_1f3fe),
Emoji(intArrayOf(0x1f469, 0x1f3fd, 0x200d, 0x1f91d, 0x200d, 0x1f469, 0x1f3ff), R.drawable.emoji_ios_1f469_1f3fd_200d_1f91d_200d_1f469_1f3ff),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f91d, 0x200d, 0x1f469, 0x1f3fb), R.drawable.emoji_ios_1f469_1f3fe_200d_1f91d_200d_1f469_1f3fb),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f91d, 0x200d, 0x1f469, 0x1f3fc), R.drawable.emoji_ios_1f469_1f3fe_200d_1f91d_200d_1f469_1f3fc),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f91d, 0x200d, 0x1f469, 0x1f3fd), R.drawable.emoji_ios_1f469_1f3fe_200d_1f91d_200d_1f469_1f3fd),
Emoji(intArrayOf(0x1f46d, 0x1f3fe), R.drawable.emoji_ios_1f46d_1f3fe),
Emoji(intArrayOf(0x1f469, 0x1f3fe, 0x200d, 0x1f91d, 0x200d, 0x1f469, 0x1f3ff), R.drawable.emoji_ios_1f469_1f3fe_200d_1f91d_200d_1f469_1f3ff),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f91d, 0x200d, 0x1f469, 0x1f3fb), R.drawable.emoji_ios_1f469_1f3ff_200d_1f91d_200d_1f469_1f3fb),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f91d, 0x200d, 0x1f469, 0x1f3fc), R.drawable.emoji_ios_1f469_1f3ff_200d_1f91d_200d_1f469_1f3fc),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f91d, 0x200d, 0x1f469, 0x1f3fd), R.drawable.emoji_ios_1f469_1f3ff_200d_1f91d_200d_1f469_1f3fd),
Emoji(intArrayOf(0x1f469, 0x1f3ff, 0x200d, 0x1f91d, 0x200d, 0x1f469, 0x1f3fe), R.drawable.emoji_ios_1f469_1f3ff_200d_1f91d_200d_1f469_1f3fe),
Emoji(intArrayOf(0x1f46d, 0x1f3ff), R.drawable.emoji_ios_1f46d_1f3ff)
)),
Emoji(0x1f46c, R.drawable.emoji_ios_1f46c, arrayOf(
Emoji(intArrayOf(0x1f46c, 0x1f3fb), R.drawable.emoji_ios_1f46c_1f3fb),
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fc), R.drawable.emoji_ios_1f468_1f3fb_200d_1f91d_200d_1f468_1f3fc),
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fd), R.drawable.emoji_ios_1f468_1f3fb_200d_1f91d_200d_1f468_1f3fd),
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fe), R.drawable.emoji_ios_1f468_1f3fb_200d_1f91d_200d_1f468_1f3fe),
Emoji(intArrayOf(0x1f468, 0x1f3fb, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3ff), R.drawable.emoji_ios_1f468_1f3fb_200d_1f91d_200d_1f468_1f3ff),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fb), R.drawable.emoji_ios_1f468_1f3fc_200d_1f91d_200d_1f468_1f3fb),
Emoji(intArrayOf(0x1f46c, 0x1f3fc), R.drawable.emoji_ios_1f46c_1f3fc),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fd), R.drawable.emoji_ios_1f468_1f3fc_200d_1f91d_200d_1f468_1f3fd),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fe), R.drawable.emoji_ios_1f468_1f3fc_200d_1f91d_200d_1f468_1f3fe),
Emoji(intArrayOf(0x1f468, 0x1f3fc, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3ff), R.drawable.emoji_ios_1f468_1f3fc_200d_1f91d_200d_1f468_1f3ff),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fb), R.drawable.emoji_ios_1f468_1f3fd_200d_1f91d_200d_1f468_1f3fb),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fc), R.drawable.emoji_ios_1f468_1f3fd_200d_1f91d_200d_1f468_1f3fc),
Emoji(intArrayOf(0x1f46c, 0x1f3fd), R.drawable.emoji_ios_1f46c_1f3fd),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fe), R.drawable.emoji_ios_1f468_1f3fd_200d_1f91d_200d_1f468_1f3fe),
Emoji(intArrayOf(0x1f468, 0x1f3fd, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3ff), R.drawable.emoji_ios_1f468_1f3fd_200d_1f91d_200d_1f468_1f3ff),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fb), R.drawable.emoji_ios_1f468_1f3fe_200d_1f91d_200d_1f468_1f3fb),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fc), R.drawable.emoji_ios_1f468_1f3fe_200d_1f91d_200d_1f468_1f3fc),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fd), R.drawable.emoji_ios_1f468_1f3fe_200d_1f91d_200d_1f468_1f3fd),
Emoji(intArrayOf(0x1f46c, 0x1f3fe), R.drawable.emoji_ios_1f46c_1f3fe),
Emoji(intArrayOf(0x1f468, 0x1f3fe, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3ff), R.drawable.emoji_ios_1f468_1f3fe_200d_1f91d_200d_1f468_1f3ff),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fb), R.drawable.emoji_ios_1f468_1f3ff_200d_1f91d_200d_1f468_1f3fb),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fc), R.drawable.emoji_ios_1f468_1f3ff_200d_1f91d_200d_1f468_1f3fc),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fd), R.drawable.emoji_ios_1f468_1f3ff_200d_1f91d_200d_1f468_1f3fd),
Emoji(intArrayOf(0x1f468, 0x1f3ff, 0x200d, 0x1f91d, 0x200d, 0x1f468, 0x1f3fe), R.drawable.emoji_ios_1f468_1f3ff_200d_1f91d_200d_1f468_1f3fe),
Emoji(intArrayOf(0x1f46c, 0x1f3ff), R.drawable.emoji_ios_1f46c_1f3ff)
)),
Emoji(0x1f491, R.drawable.emoji_ios_1f491),
Emoji(intArrayOf(0x1f469, 0x200d, 0x2764, 0xfe0f, 0x200d, 0x1f468), R.drawable.emoji_ios_1f469_200d_2764_fe0f_200d_1f468),
Emoji(intArrayOf(0x1f469, 0x200d, 0x2764, 0xfe0f, 0x200d, 0x1f469), R.drawable.emoji_ios_1f469_200d_2764_fe0f_200d_1f469),
Emoji(intArrayOf(0x1f468, 0x200d, 0x2764, 0xfe0f, 0x200d, 0x1f468), R.drawable.emoji_ios_1f468_200d_2764_fe0f_200d_1f468),
Emoji(0x1f48f, R.drawable.emoji_ios_1f48f),
Emoji(intArrayOf(0x1f469, 0x200d, 0x2764, 0xfe0f, 0x200d, 0x1f48b, 0x200d, 0x1f468), R.drawable.emoji_ios_1f469_200d_2764_fe0f_200d_1f48b_200d_1f468),
Emoji(intArrayOf(0x1f469, 0x200d, 0x2764, 0xfe0f, 0x200d, 0x1f48b, 0x200d, 0x1f469), R.drawable.emoji_ios_1f469_200d_2764_fe0f_200d_1f48b_200d_1f469),
Emoji(intArrayOf(0x1f468, 0x200d, 0x2764, 0xfe0f, 0x200d, 0x1f48b, 0x200d, 0x1f468), R.drawable.emoji_ios_1f468_200d_2764_fe0f_200d_1f48b_200d_1f468),
Emoji(0x1f46a, R.drawable.emoji_ios_1f46a),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f469, 0x200d, 0x1f466), R.drawable.emoji_ios_1f468_200d_1f469_200d_1f466),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f469, 0x200d, 0x1f467), R.drawable.emoji_ios_1f468_200d_1f469_200d_1f467),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f469, 0x200d, 0x1f467, 0x200d, 0x1f466), R.drawable.emoji_ios_1f468_200d_1f469_200d_1f467_200d_1f466),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f469, 0x200d, 0x1f466, 0x200d, 0x1f466), R.drawable.emoji_ios_1f468_200d_1f469_200d_1f466_200d_1f466),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f469, 0x200d, 0x1f467, 0x200d, 0x1f467), R.drawable.emoji_ios_1f468_200d_1f469_200d_1f467_200d_1f467),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f469, 0x200d, 0x1f466), R.drawable.emoji_ios_1f469_200d_1f469_200d_1f466),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f469, 0x200d, 0x1f467), R.drawable.emoji_ios_1f469_200d_1f469_200d_1f467),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f469, 0x200d, 0x1f467, 0x200d, 0x1f466), R.drawable.emoji_ios_1f469_200d_1f469_200d_1f467_200d_1f466),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f469, 0x200d, 0x1f466, 0x200d, 0x1f466), R.drawable.emoji_ios_1f469_200d_1f469_200d_1f466_200d_1f466),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f469, 0x200d, 0x1f467, 0x200d, 0x1f467), R.drawable.emoji_ios_1f469_200d_1f469_200d_1f467_200d_1f467),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f468, 0x200d, 0x1f466), R.drawable.emoji_ios_1f468_200d_1f468_200d_1f466),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f468, 0x200d, 0x1f467), R.drawable.emoji_ios_1f468_200d_1f468_200d_1f467),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f468, 0x200d, 0x1f467, 0x200d, 0x1f466), R.drawable.emoji_ios_1f468_200d_1f468_200d_1f467_200d_1f466),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f468, 0x200d, 0x1f466, 0x200d, 0x1f466), R.drawable.emoji_ios_1f468_200d_1f468_200d_1f466_200d_1f466),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f468, 0x200d, 0x1f467, 0x200d, 0x1f467), R.drawable.emoji_ios_1f468_200d_1f468_200d_1f467_200d_1f467),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f466), R.drawable.emoji_ios_1f469_200d_1f466),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f467), R.drawable.emoji_ios_1f469_200d_1f467),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f467, 0x200d, 0x1f466), R.drawable.emoji_ios_1f469_200d_1f467_200d_1f466),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f466, 0x200d, 0x1f466), R.drawable.emoji_ios_1f469_200d_1f466_200d_1f466),
Emoji(intArrayOf(0x1f469, 0x200d, 0x1f467, 0x200d, 0x1f467), R.drawable.emoji_ios_1f469_200d_1f467_200d_1f467),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f466), R.drawable.emoji_ios_1f468_200d_1f466),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f467), R.drawable.emoji_ios_1f468_200d_1f467),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f467, 0x200d, 0x1f466), R.drawable.emoji_ios_1f468_200d_1f467_200d_1f466),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f466, 0x200d, 0x1f466), R.drawable.emoji_ios_1f468_200d_1f466_200d_1f466),
Emoji(intArrayOf(0x1f468, 0x200d, 0x1f467, 0x200d, 0x1f467), R.drawable.emoji_ios_1f468_200d_1f467_200d_1f467),
Emoji(0x1f9f6, R.drawable.emoji_ios_1f9f6),
Emoji(0x1f9f5, R.drawable.emoji_ios_1f9f5),
Emoji(0x1f9e5, R.drawable.emoji_ios_1f9e5),
Emoji(0x1f97c, R.drawable.emoji_ios_1f97c),
Emoji(0x1f9ba, R.drawable.emoji_ios_1f9ba),
Emoji(0x1f45a, R.drawable.emoji_ios_1f45a),
Emoji(0x1f455, R.drawable.emoji_ios_1f455),
Emoji(0x1f456, R.drawable.emoji_ios_1f456),
Emoji(0x1fa72, R.drawable.emoji_ios_1fa72),
Emoji(0x1fa73, R.drawable.emoji_ios_1fa73),
Emoji(0x1f454, R.drawable.emoji_ios_1f454),
Emoji(0x1f457, R.drawable.emoji_ios_1f457),
Emoji(0x1f459, R.drawable.emoji_ios_1f459),
Emoji(0x1fa71, R.drawable.emoji_ios_1fa71),
Emoji(0x1f458, R.drawable.emoji_ios_1f458),
Emoji(0x1f97b, R.drawable.emoji_ios_1f97b),
Emoji(0x1f97f, R.drawable.emoji_ios_1f97f),
Emoji(0x1f460, R.drawable.emoji_ios_1f460),
Emoji(0x1f461, R.drawable.emoji_ios_1f461),
Emoji(0x1f462, R.drawable.emoji_ios_1f462),
Emoji(0x1f45e, R.drawable.emoji_ios_1f45e),
Emoji(0x1f45f, R.drawable.emoji_ios_1f45f),
Emoji(0x1f97e, R.drawable.emoji_ios_1f97e),
Emoji(0x1fa74, R.drawable.emoji_ios_1fa74),
Emoji(0x1f9e6, R.drawable.emoji_ios_1f9e6),
Emoji(0x1f9e4, R.drawable.emoji_ios_1f9e4),
Emoji(0x1f9e3, R.drawable.emoji_ios_1f9e3),
Emoji(0x1f3a9, R.drawable.emoji_ios_1f3a9),
Emoji(0x1f9e2, R.drawable.emoji_ios_1f9e2),
Emoji(0x1f452, R.drawable.emoji_ios_1f452),
Emoji(0x1f393, R.drawable.emoji_ios_1f393),
Emoji(0x26d1, R.drawable.emoji_ios_26d1),
Emoji(0x1fa96, R.drawable.emoji_ios_1fa96),
Emoji(0x1f451, R.drawable.emoji_ios_1f451),
Emoji(0x1f48d, R.drawable.emoji_ios_1f48d),
Emoji(0x1f45d, R.drawable.emoji_ios_1f45d),
Emoji(0x1f45b, R.drawable.emoji_ios_1f45b),
Emoji(0x1f45c, R.drawable.emoji_ios_1f45c),
Emoji(0x1f4bc, R.drawable.emoji_ios_1f4bc),
Emoji(0x1f392, R.drawable.emoji_ios_1f392),
Emoji(0x1f9f3, R.drawable.emoji_ios_1f9f3),
Emoji(0x1f453, R.drawable.emoji_ios_1f453),
Emoji(0x1f576, R.drawable.emoji_ios_1f576),
Emoji(0x1f97d, R.drawable.emoji_ios_1f97d),
Emoji(0x1f302, R.drawable.emoji_ios_1f302)
)
}
override fun getEmojis(): List<Emoji> = DATA
override fun getIcon(): Int = R.drawable.emoji_ios_category_people
}
| 1 | Kotlin | 2 | 6 | 47558b5d81c5bb7c86b988dfa9b192bee706f897 | 164,815 | Emoji-Keyboard | Apache License 2.0 |
tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/chat/members/BanChatMember.kt | InsanusMokrassar | 163,152,024 | false | null | package dev.inmo.tgbotapi.extensions.api.chat.members
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.members.BanChatMember
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.chat.PublicChat
import dev.inmo.tgbotapi.types.chat.User
suspend fun TelegramBot.banChatMember(
chatId: ChatIdentifier,
userId: UserId,
untilDate: TelegramDate? = null,
revokeMessages: Boolean? = null
) = execute(BanChatMember(chatId, userId, untilDate, revokeMessages))
suspend fun TelegramBot.banChatMember(
chat: PublicChat,
userId: UserId,
untilDate: TelegramDate? = null,
revokeMessages: Boolean? = null
) = banChatMember(chat.id, userId, untilDate, revokeMessages)
suspend fun TelegramBot.banChatMember(
chatId: ChatId,
user: User,
untilDate: TelegramDate? = null,
revokeMessages: Boolean? = null
) = banChatMember(chatId, user.id, untilDate, revokeMessages)
suspend fun TelegramBot.banChatMember(
chat: PublicChat,
user: User,
untilDate: TelegramDate? = null,
revokeMessages: Boolean? = null
) = banChatMember(chat.id, user.id, untilDate, revokeMessages)
| 9 | null | 29 | 99 | 8206aefbb661db936d4078a8ef7cc9cecb5384e4 | 1,151 | TelegramBotAPI | Apache License 2.0 |
src/test/kotlin/com/winterbe/challenge/StringRotation.kt | winterbe | 152,978,821 | false | null | package com.winterbe.challenge
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
/**
* Check if s2 is a rotation of s1. You can use at most one invocation to `String.isSubstring()`.
*/
fun isRotation(s1: String, s2: String): Boolean {
if (s1 == s2) {
return true
}
if (s1.length != s2.length) {
return false
}
fun checkRotationFactor(n: Int): Boolean {
for (i in 0 until s1.length) {
val j = (i + n) % s1.length
if (s1[i] != s2[j]) {
return false
}
}
return true
}
// let's assume `mid` is the rotation factor n
val mid = s1.length / 2
val substringBuilder = StringBuilder()
for (i in 0 until s1.length - mid) {
substringBuilder.append(s1[i])
}
val substring = substringBuilder.toString()
// Example: n = 5
// waterbottle -> ottlewaterb
// ~~~~~~ ~~~~~~
if (s2.contains(substring)) {
// rotation factor n must be <= mid
for (n in mid .. 1) {
val rotationDetected = checkRotationFactor(n)
if (rotationDetected) {
return true
}
}
} else {
// rotation factor n must be > mid
for (n in mid + 1 until s1.length - 1) {
val rotationDetected = checkRotationFactor(n)
if (rotationDetected) {
return true
}
}
}
return false
}
// a much simpler solution
fun isRotation2(s1: String, s2: String): Boolean {
if (s1.isEmpty() || s1.length != s2.length) {
return false
}
// s1 + s1
// waterbottlewaterbottle
// ~~~~~~~~~~~
return (s1 + s1).contains(s2)
}
class StringRotationTest {
@Test
fun test() {
assertTrue(isRotation2("waterbottle", "erbottlewat"))
}
} | 0 | Kotlin | 4 | 9 | 3a0a911e4f601261ddb544da86647530371c8ba9 | 1,891 | challenge | MIT License |
klogging/src/commonMain/kotlin/io/klogging/config/KloggingConfiguration.kt | klogging | 378,410,833 | false | null | /*
Copyright 2021-2023 <NAME>.
Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
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.
*/
package io.klogging.config
import io.klogging.AtomicMutableList
import io.klogging.AtomicMutableMap
import io.klogging.Level
import io.klogging.Level.INFO
import io.klogging.Level.NONE
import io.klogging.Level.WARN
import io.klogging.internal.KloggingEngine
import io.klogging.internal.debug
import io.klogging.internal.info
import io.klogging.internal.warn
import io.klogging.rendering.RenderString
import io.klogging.sending.EventSender
import io.klogging.sending.SendString
/**
* Set the default Klogging log level from the environment using name
* [ENV_KLOGGING_MIN_LOG_LEVEL] if present, else default to [INFO].
*/
internal val defaultKloggingMinLogLevel: Level = try {
getenv(ENV_KLOGGING_MIN_LOG_LEVEL)?.let { Level.valueOf(it) } ?: INFO
} catch (_: Throwable) {
INFO
}
internal val defaultMinDirectLogLevel: Level = try {
getenv(ENV_KLOGGING_MIN_DIRECT_LOG_LEVEL)?.let { Level.valueOf(it) } ?: WARN
} catch (_: Throwable) {
WARN
}
/**
* Root DSL function for creating a [KloggingConfiguration].
*
* @param append if `true`, append this configuration to any existing one.
* Default is `false`, causing this configuration replace any existing one.
*
* @param block DSL functions with values to apply to this configuration.
*/
@ConfigDsl
public fun loggingConfiguration(append: Boolean = false, block: KloggingConfiguration.() -> Unit) {
val dslConfig = KloggingConfiguration()
dslConfig.apply(block)
val combinedConfig = combineFileAndDsl(dslConfig)
combinedConfig.validateSinks()
if (append) {
KloggingEngine.appendConfig(combinedConfig)
} else {
KloggingEngine.setConfig(combinedConfig)
}
info("Configuration", "Configuration set using the DSL with append=$append")
}
private fun combineFileAndDsl(config: KloggingConfiguration): KloggingConfiguration =
config.loggingConfigPath?.let { configPath ->
fileText(configPath)
?.let { text ->
configureFromFile(text)
}
?.let { fileConfig ->
debug("Configuration", "Configuration read from $configPath")
fileConfig.append(config)
fileConfig
}
} ?: config
/**
* Klogging configuration for a runtime.
*/
public class KloggingConfiguration {
internal val sinks = AtomicMutableMap<String, SinkConfiguration>()
internal val configs = AtomicMutableList<LoggingConfig>()
internal var loggingConfigPath: String? = null
internal var kloggingMinLogLevel: Level = defaultKloggingMinLogLevel
internal var minDirectLogLevel: Level = defaultMinDirectLogLevel
/**
* Set the path of a logging configuration file. The configuration in the file will be combined
* with any specified directly in the DSL.
*/
@ConfigDsl
public fun loggingConfigPath(configPath: String?) {
loggingConfigPath = configPath
}
/**
* DSL function to set minimum logging level for Klogging’s internal logger.
*/
@ConfigDsl
public fun kloggingMinLogLevel(minLevel: Level) {
kloggingMinLogLevel = minLevel
}
/**
* DSL function to set minimum logging level for sending events directly to sinks.
*/
@ConfigDsl
public fun minDirectLogLevel(minLevel: Level) {
minDirectLogLevel = minLevel
}
/**
* DSL function to specify a sink where log events can be dispatched.
*
* @param sinkName name used to refer to the sink
* @param sinkConfig configuration to use
*/
@ConfigDsl
public fun sink(sinkName: String, sinkConfig: SinkConfiguration) {
sinks[sinkName] = sinkConfig
}
/**
* DSL function to specify a sink where log events can be dispatched.
*
* @param sinkName name used to refer to the sink
* @param renderer object that renders an event into a string
* @param sender object that sends an event as string somewhere
*/
@ConfigDsl
public fun sink(sinkName: String, renderer: RenderString, sender: SendString) {
sinks[sinkName] = SinkConfiguration(renderer, sender)
}
@ConfigDsl
public fun sink(sinkName: String, eventSender: EventSender) {
sinks[sinkName] = SinkConfiguration(eventSender = eventSender)
}
/**
* DSL function to add a logging configuration specified in [configBlock].
*/
@ConfigDsl
public fun logging(configBlock: LoggingConfig.() -> Unit) {
val loggingConfig = LoggingConfig()
loggingConfig.apply(configBlock)
configs.add(loggingConfig)
}
/** Calculate the minimum level of all level ranges in all configurations. */
public fun minimumLevelOf(loggerName: String): Level = configs
.filter { it.nameMatcher(loggerName) }
.flatMap { it.ranges }
.minOfOrNull { it.minLevel } ?: NONE
/** Validate that sinks referred to in logging configurations have been defined. */
internal fun validateSinks() {
val loggingSinks = configs
.flatMap { it.ranges }
.flatMap { it.sinkNames }
.toSet()
val extraSinks = loggingSinks - sinks.keys
extraSinks.forEach {
warn(
"Configuration",
"Sink `$it` was not defined and will be ignored",
)
}
}
/**
* Append another configuration to this one.
*
* * `sinks` are combined: any with the same name replace those in this config.
* * `configs` are appended to those in this config.
*/
internal fun append(other: KloggingConfiguration) {
sinks.putAll(other.sinks)
configs.addAll(other.configs)
if (kloggingMinLogLevel > other.kloggingMinLogLevel) {
kloggingMinLogLevel = other.kloggingMinLogLevel
}
}
}
| 20 | null | 9 | 91 | 89ae2ddc6aedc9f4f68267ebd8b0b0f0da43e81d | 6,416 | klogging | Apache License 2.0 |
src/test/aoc2018/Day22Test.kt | nibarius | 154,152,607 | false | {"Kotlin": 963896} | package test.aoc2018
import aoc2018.Day22
import org.junit.Assert.assertEquals
import org.junit.Test
import resourceAsList
class Day22Test {
val testInput = listOf("depth: 510",
"target: 10,10"
)
@Test
fun partOneTestInput() {
val d22 = Day22(testInput)
//d22.printMap(15, 15)
assertEquals(114, d22.solvePart1())
}
@Test
fun partOneRealInput() {
assertEquals(8681, Day22(resourceAsList("2018/day22.txt")).solvePart1())
}
@Test
fun partTwoTestInput() {
val d22 = Day22(testInput)
assertEquals(45, d22.solvePart2())
}
@Test
fun partTwoRealInput() {
assertEquals(1070, Day22(resourceAsList("2018/day22.txt")).solvePart2())
}
}
| 0 | Kotlin | 0 | 6 | f2ca41fba7f7ccf4e37a7a9f2283b74e67db9f22 | 758 | aoc | MIT License |
tabler-icons/src/commonMain/kotlin/compose/icons/tablericons/Photo.kt | DevSrSouza | 311,134,756 | false | null | package compose.icons.tablericons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.compose.ui.graphics.StrokeCap.Companion.Round
import androidx.compose.ui.graphics.StrokeJoin
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.ImageVector.Builder
import androidx.compose.ui.graphics.vector.path
import androidx.compose.ui.unit.dp
import compose.icons.TablerIcons
public val TablerIcons.Photo: ImageVector
get() {
if (_photo != null) {
return _photo!!
}
_photo = Builder(name = "Photo", defaultWidth = 24.0.dp, defaultHeight = 24.0.dp,
viewportWidth = 24.0f, viewportHeight = 24.0f).apply {
path(fill = SolidColor(Color(0x00000000)), stroke = SolidColor(Color(0xFF000000)),
strokeLineWidth = 2.0f, strokeLineCap = Round, strokeLineJoin =
StrokeJoin.Companion.Round, strokeLineMiter = 4.0f, pathFillType = NonZero) {
moveTo(15.0f, 8.0f)
lineTo(15.01f, 8.0f)
}
path(fill = SolidColor(Color(0x00000000)), stroke = SolidColor(Color(0xFF000000)),
strokeLineWidth = 2.0f, strokeLineCap = Round, strokeLineJoin =
StrokeJoin.Companion.Round, strokeLineMiter = 4.0f, pathFillType = NonZero) {
moveTo(7.0f, 4.0f)
lineTo(17.0f, 4.0f)
arcTo(3.0f, 3.0f, 0.0f, false, true, 20.0f, 7.0f)
lineTo(20.0f, 17.0f)
arcTo(3.0f, 3.0f, 0.0f, false, true, 17.0f, 20.0f)
lineTo(7.0f, 20.0f)
arcTo(3.0f, 3.0f, 0.0f, false, true, 4.0f, 17.0f)
lineTo(4.0f, 7.0f)
arcTo(3.0f, 3.0f, 0.0f, false, true, 7.0f, 4.0f)
close()
}
path(fill = SolidColor(Color(0x00000000)), stroke = SolidColor(Color(0xFF000000)),
strokeLineWidth = 2.0f, strokeLineCap = Round, strokeLineJoin =
StrokeJoin.Companion.Round, strokeLineMiter = 4.0f, pathFillType = NonZero) {
moveTo(4.0f, 15.0f)
lineToRelative(4.0f, -4.0f)
arcToRelative(3.0f, 5.0f, 0.0f, false, true, 3.0f, 0.0f)
lineToRelative(5.0f, 5.0f)
}
path(fill = SolidColor(Color(0x00000000)), stroke = SolidColor(Color(0xFF000000)),
strokeLineWidth = 2.0f, strokeLineCap = Round, strokeLineJoin =
StrokeJoin.Companion.Round, strokeLineMiter = 4.0f, pathFillType = NonZero) {
moveTo(14.0f, 14.0f)
lineToRelative(1.0f, -1.0f)
arcToRelative(3.0f, 5.0f, 0.0f, false, true, 3.0f, 0.0f)
lineToRelative(2.0f, 2.0f)
}
}
.build()
return _photo!!
}
private var _photo: ImageVector? = null
| 17 | null | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 3,108 | compose-icons | MIT License |
phoenix-shared/src/commonMain/kotlin/fr.acinq.phoenix/controllers/init/RestoreWallet.kt | ACINQ | 192,964,514 | false | null | package fr.acinq.phoenix.controllers.init
import fr.acinq.phoenix.controllers.MVI
import fr.acinq.phoenix.utils.MnemonicLanguage
object RestoreWallet {
sealed class Model : MVI.Model() {
object Ready : Model()
data class FilteredWordlist(
val uuid: String,
val predicate: String,
val words: List<String>
) : Model() {
override fun toString(): String = "FilteredWordlist"
}
object InvalidMnemonics : Model()
data class ValidMnemonics(
val mnemonics: List<String>,
val language: MnemonicLanguage,
val seed: ByteArray
) : Model() {
// Kotlin recommends equals & hashCode for data classes with array props
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as ValidMnemonics
if (!seed.contentEquals(other.seed)) return false
return true
}
override fun hashCode(): Int {
return seed.contentHashCode()
}
override fun toString() = "ValidMnemonics"
}
}
sealed class Intent : MVI.Intent() {
data class FilterWordList(
val predicate: String,
val language: MnemonicLanguage,
val uuid: String = "" // See note below
) : Intent() {
// We are using StateFlow to handle model changes.
// The problem is that StateFlow is conflated,
// so it will silently drop notifications if the model doesn't change.
// As per issue #109, we encountered problems with this.
// For example, if the user pastes in a seed such as "hammer hammer ...",
// then what happens is:
//
// - UI calls intent with FilterWordList(hammer) // 1st word
// - model is updated to FilteredWordlist([hammer])
// - UI is notified
// - UI calls intent with FilterWordList(hammer) // 2nd word
// - model is updated to FilteredWordlist([hammer])
// - UI is NOT updated, because the model didn't change !
//
// So the uuid is a workaround, to force a model change everytime.
//
// Another possible solution is to switch from MutableStateFlow to MutableShareFlow.
// However, doing so would affect AppController.kt, which effects every MVI.
// So we're reserving that as a potential future change.
override fun toString() = ".".repeat(predicate.length)
}
data class Validate(
val mnemonics: List<String>,
val language: MnemonicLanguage
) : Intent() {
override fun toString() = "Validate"
}
}
}
| 97 | null | 96 | 666 | 011c8b85f16ea9ad322cbbba2461439c5e2b0aed | 2,936 | phoenix | Apache License 2.0 |
common/sv-save/src/main/kotlin/io/stardewvalleydesigner/save/models/Building.kt | AzimMuradov | 377,785,069 | false | null | /*
* Copyright 2021-2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package io.stardewvalleydesigner.save.models
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import nl.adaptivity.xmlutil.serialization.XmlChildrenName
@Serializable
data class Building(
val buildingType: String,
val indoors: Indoors? = null,
val tileX: Int, val tileY: Int,
val tilesWide: Int, val tilesHigh: Int,
)
@Serializable
data class Indoors(
@XmlChildrenName("item", "", "") val objects: List<Item<Vector2Wrapper, ObjectWrapper>>,
@XmlChildrenName("Furniture", "", "") val furniture: List<Furniture>,
@XmlChildrenName("item", "", "") val terrainFeatures: List<Item<Vector2Wrapper, TerrainFeatureWrapper>>,
val wallPaper: IntWrapper? = null,
val floor: IntWrapper? = null,
)
@Serializable
data class Vector2Wrapper(@SerialName("Vector2") val pos: Position)
@Serializable
data class ObjectWrapper(@SerialName("Object") val obj: Object)
@Serializable
data class TerrainFeatureWrapper(@SerialName("TerrainFeature") val tf: TerrainFeature)
@Serializable
data class IntWrapper(val int: Int? = null)
| 7 | Kotlin | 0 | 3 | 346c58c0e64117dfd59ef02fd2ef14a6699a561d | 1,677 | stardew-valley-designer | Apache License 2.0 |
health/health-services-client/src/main/java/androidx/health/services/client/data/PassiveMonitoringUpdate.kt | androidx | 256,589,781 | false | {"Kotlin": 112114129, "Java": 66594571, "C++": 9132142, "AIDL": 635065, "Python": 325169, "Shell": 194520, "TypeScript": 40647, "HTML": 35176, "Groovy": 27178, "ANTLR": 26700, "Svelte": 20397, "CMake": 15512, "C": 15043, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package androidx.health.services.client.data
import androidx.health.services.client.proto.DataProto
import androidx.health.services.client.proto.DataProto.PassiveMonitoringUpdate as PassiveMonitoringUpdateProto
/**
* Represents an update from Passive tracking.
*
* Provides [DataPoint]s associated with the Passive tracking, in addition to data related to the
* user's [UserActivityState].
*/
@Suppress("ParcelCreator")
public class PassiveMonitoringUpdate(
/** List of [DataPoint]s from Passive tracking. */
public val dataPoints: DataPointContainer,
/** The [UserActivityInfo] of the user from Passive tracking. */
public val userActivityInfoUpdates: List<UserActivityInfo>,
) {
internal constructor(
proto: DataProto.PassiveMonitoringUpdate
) : this(
DataPointContainer(proto.dataPointsList.map { DataPoint.fromProto(it) }),
proto.userActivityInfoUpdatesList.map { UserActivityInfo(it) }
)
internal val proto: PassiveMonitoringUpdateProto =
PassiveMonitoringUpdateProto.newBuilder()
.addAllDataPoints(dataPoints.sampleDataPoints.map { it.proto })
.addAllDataPoints(dataPoints.intervalDataPoints.map { it.proto })
.addAllUserActivityInfoUpdates(userActivityInfoUpdates.map { it.proto })
.build()
override fun toString(): String =
"PassiveMonitoringUpdate(" +
"dataPoints=$dataPoints, " +
"userActivityInfoUpdates=$userActivityInfoUpdates)"
}
| 29 | Kotlin | 740 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 2,124 | androidx | Apache License 2.0 |
health/health-services-client/src/main/java/androidx/health/services/client/data/PassiveMonitoringUpdate.kt | androidx | 256,589,781 | false | {"Kotlin": 112114129, "Java": 66594571, "C++": 9132142, "AIDL": 635065, "Python": 325169, "Shell": 194520, "TypeScript": 40647, "HTML": 35176, "Groovy": 27178, "ANTLR": 26700, "Svelte": 20397, "CMake": 15512, "C": 15043, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package androidx.health.services.client.data
import androidx.health.services.client.proto.DataProto
import androidx.health.services.client.proto.DataProto.PassiveMonitoringUpdate as PassiveMonitoringUpdateProto
/**
* Represents an update from Passive tracking.
*
* Provides [DataPoint]s associated with the Passive tracking, in addition to data related to the
* user's [UserActivityState].
*/
@Suppress("ParcelCreator")
public class PassiveMonitoringUpdate(
/** List of [DataPoint]s from Passive tracking. */
public val dataPoints: DataPointContainer,
/** The [UserActivityInfo] of the user from Passive tracking. */
public val userActivityInfoUpdates: List<UserActivityInfo>,
) {
internal constructor(
proto: DataProto.PassiveMonitoringUpdate
) : this(
DataPointContainer(proto.dataPointsList.map { DataPoint.fromProto(it) }),
proto.userActivityInfoUpdatesList.map { UserActivityInfo(it) }
)
internal val proto: PassiveMonitoringUpdateProto =
PassiveMonitoringUpdateProto.newBuilder()
.addAllDataPoints(dataPoints.sampleDataPoints.map { it.proto })
.addAllDataPoints(dataPoints.intervalDataPoints.map { it.proto })
.addAllUserActivityInfoUpdates(userActivityInfoUpdates.map { it.proto })
.build()
override fun toString(): String =
"PassiveMonitoringUpdate(" +
"dataPoints=$dataPoints, " +
"userActivityInfoUpdates=$userActivityInfoUpdates)"
}
| 29 | Kotlin | 740 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 2,124 | androidx | Apache License 2.0 |
app/src/main/java/br/com/aline/alcoolOugasolina/ui/theme/Type.kt | al1neferreira | 794,543,710 | false | {"Kotlin": 12279} | package br.com.aline.alcoolOugasolina.ui.theme
import androidx.compose.material3.Typography
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.Font
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.sp
import br.com.aline.alcoolOugasolina.R
// Set of Material typography styles to start with
val Typography = Typography(
bodyLarge = TextStyle(
fontFamily = FontFamily.Default,
fontWeight = FontWeight.Normal,
fontSize = 16.sp,
lineHeight = 24.sp,
letterSpacing = 0.5.sp
)
/* Other default text styles to override
titleLarge = TextStyle(
fontFamily = FontFamily.Default,
fontWeight = FontWeight.Normal,
fontSize = 22.sp,
lineHeight = 28.sp,
letterSpacing = 0.sp
),
labelSmall = TextStyle(
fontFamily = FontFamily.Default,
fontWeight = FontWeight.Medium,
fontSize = 11.sp,
lineHeight = 16.sp,
letterSpacing = 0.5.sp
)
*/
)
val bungeeSpice = FontFamily(Font(R.font.bungee_spice_regular))
| 0 | Kotlin | 0 | 0 | 06e24cf7df93ea7c8cdbcb4a2fa8a4e709c031f8 | 1,147 | Calculadora_Alcool_Gasolina | MIT License |
app/src/main/java/io/github/wulkanowy/data/db/dao/GradeSummaryDao.kt | dominik-korsa | 167,613,504 | true | {"Kotlin": 668158, "Shell": 220, "IDL": 131} | package io.github.wulkanowy.data.db.dao
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import io.github.wulkanowy.data.db.entities.GradeSummary
import io.reactivex.Maybe
import javax.inject.Singleton
@Singleton
@Dao
interface GradeSummaryDao {
@Insert
fun insertAll(gradesSummary: List<GradeSummary>)
@Delete
fun deleteAll(gradesSummary: List<GradeSummary>)
@Query("SELECT * FROM grades_summary WHERE student_id = :studentId AND semester_id = :semesterId")
fun loadAll(semesterId: Int, studentId: Int): Maybe<List<GradeSummary>>
}
| 0 | Kotlin | 0 | 0 | ba84f2be6ea7f4722560d7323a0c314f88614b75 | 621 | wulkanowy | Apache License 2.0 |
app/src/main/java/org/p2p/wallet/home/analytics/HomeAnalytics.kt | p2p-org | 306,035,988 | false | null | package org.p2p.wallet.home.analytics
import org.p2p.wallet.common.analytics.Analytics
import org.p2p.wallet.common.analytics.constants.EventNames.HOME_USER_AGGREGATE_BALANCE
import org.p2p.wallet.common.analytics.constants.EventNames.HOME_USER_HAS_POSITIVE_BALANCE
import java.math.BigDecimal
private const val TOKEN_DETAILS_CLICKED = "Main_Screen_Token_Details_Open"
private const val HOME_MAIN_WALLET = "Main_Wallet"
private const val HOME_MAIN_EARN = "Main_Earn"
private const val HOME_MAIN_HISTORY = "Main_History"
private const val HOME_MAIN_SETTINGS = "Main_Settings"
private const val HOME_HIDDEN_TOKENS_CLICKED = "Main_Screen_Hidden_Tokens"
class HomeAnalytics(private val tracker: Analytics) {
fun logUserHasPositiveBalanceProperty(hasPositiveBalance: Boolean) {
tracker.setUserPropertyOnce(HOME_USER_HAS_POSITIVE_BALANCE, hasPositiveBalance)
logUserHasPositiveBalanceEvent(hasPositiveBalance)
}
fun logUserAggregateBalanceProperty(usdBalance: BigDecimal) {
tracker.setUserPropertyOnce(HOME_USER_AGGREGATE_BALANCE, usdBalance.toString())
logUserAggregateBalanceEvent(usdBalance)
}
fun logMainScreenTokenDetailsOpen(tokenTier: String) {
tracker.logEvent(
event = TOKEN_DETAILS_CLICKED,
params = mapOf(
"Token_Tier" to tokenTier
)
)
}
fun logHiddenTokensClicked() {
tracker.logEvent(HOME_HIDDEN_TOKENS_CLICKED)
}
fun logBottomNavigationHomeClicked() {
tracker.logEvent(event = HOME_MAIN_WALLET)
}
fun logBottomNavigationEarnClicked() {
tracker.logEvent(event = HOME_MAIN_EARN)
}
fun logBottomNavigationHistoryClicked() {
tracker.logEvent(HOME_MAIN_HISTORY)
}
fun logBottomNavigationSettingsClicked() {
tracker.logEvent(HOME_MAIN_SETTINGS)
}
private fun logUserAggregateBalanceEvent(usdBalance: BigDecimal) {
tracker.logEvent(
HOME_USER_AGGREGATE_BALANCE,
arrayOf("Usd_Balance" to usdBalance)
)
}
private fun logUserHasPositiveBalanceEvent(hasPositiveBalance: Boolean) {
tracker.logEvent(
HOME_USER_HAS_POSITIVE_BALANCE,
arrayOf("Has_Positive_Balance" to hasPositiveBalance)
)
}
}
| 8 | Kotlin | 16 | 28 | 71b282491cdafd26be1ffc412a971daaa9c06c61 | 2,301 | key-app-android | MIT License |
buffer/src/commonMain/kotlin/mqtt/buffer/WriteBuffer.kt | thebehera | 171,056,445 | false | null | package mqtt.buffer
import kotlin.experimental.or
import kotlin.reflect.KClass
@ExperimentalUnsignedTypes
interface WriteBuffer {
fun resetForWrite()
fun write(byte: Byte): WriteBuffer
fun write(bytes: ByteArray): WriteBuffer
fun write(uByte: UByte): WriteBuffer
fun write(uShort: UShort): WriteBuffer
fun write(uInt: UInt): WriteBuffer
fun write(long: Long): WriteBuffer
fun writeUtf8(text: CharSequence): WriteBuffer
fun writeMqttUtf8String(charSequence: CharSequence): WriteBuffer {
val string = charSequence.toString()
val size = string.utf8Length().toUShort()
write(size)
writeUtf8(string)
return this
}
fun writeGenericType(genericType: GenericType<*>): WriteBuffer {
GenericSerialization.serialize(this, genericType)
return this
}
fun <T : Any> sizeGenericType(obj: T, kClass: KClass<T>) = GenericSerialization.size(obj, kClass)
fun writeVariableByteInteger(uInt: UInt): WriteBuffer {
if (uInt !in 0.toUInt()..VARIABLE_BYTE_INT_MAX.toUInt()) {
throw MalformedInvalidVariableByteInteger(uInt)
}
var numBytes = 0
var no = uInt.toLong()
do {
var digit = (no % 128).toByte()
no /= 128
if (no > 0) {
digit = digit or 0x80.toByte()
}
write(digit)
numBytes++
} while (no > 0 && numBytes < 4)
return this
}
fun write(buffer: PlatformBuffer)
companion object {
fun variableByteIntegerSize(uInt: UInt): UInt {
if (uInt !in 0.toUInt()..VARIABLE_BYTE_INT_MAX) {
throw MalformedInvalidVariableByteInteger(uInt)
}
var numBytes = 0
var no = uInt.toLong()
do {
(no % 128).toByte()
no /= 128
numBytes++
} while (no > 0 && numBytes < 4)
return numBytes.toUInt()
}
}
} | 2 | Kotlin | 1 | 32 | 2f2d176ca1d042f928fba3a9c49f4bc5ff39495f | 2,014 | mqtt | Apache License 2.0 |
logcat/src/com/android/tools/idea/logcat/actions/CopyMessageTextAction.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package com.android.tools.idea.logcat.actions
import com.android.tools.idea.logcat.LogcatBundle
import com.intellij.codeInsight.editorActions.TextBlockTransferable
import com.intellij.openapi.actionSystem.ActionUpdateThread.EDT
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.Presentation
import com.intellij.openapi.ide.CopyPasteManager
import com.intellij.openapi.project.DumbAwareAction
import javax.swing.Icon
internal class CopyMessageTextAction : DumbAwareAction(null as Icon?) {
override fun update(e: AnActionEvent) {
when (e.getLogcatMessages().count()) {
0 -> e.presentation.isVisible = false
1 -> e.presentation.enable(LogcatBundle.message("logcat.copy.message.action.text"))
else -> e.presentation.enable(LogcatBundle.message("logcat.copy.messages.action.text"))
}
}
override fun getActionUpdateThread() = EDT
override fun actionPerformed(e: AnActionEvent) {
val transferable =
TextBlockTransferable(
e.getLogcatMessages().joinToString("\n", postfix = "\n") { it.message },
emptyList(),
null,
)
CopyPasteManager.getInstance().setContents(transferable)
}
}
private fun Presentation.enable(text: String) {
isVisible = true
this.text = text
}
| 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 1,909 | android | Apache License 2.0 |
test-utils/src/main/kotlin/org/jetbrains/workspace/model/matchers/entries/ExpectedContentRootEntity.kt | JetBrains | 521,228,542 | false | null | package org.jetbrains.workspace.model.matchers.entries
import com.intellij.platform.workspace.jps.entities.ContentRootEntity
import com.intellij.platform.workspace.jps.entities.ModuleEntity
import com.intellij.platform.workspace.storage.url.VirtualFileUrl
import io.kotest.matchers.collections.shouldContainExactlyInAnyOrder
import io.kotest.matchers.shouldBe
import org.jetbrains.workspace.model.matchers.shouldContainExactlyInAnyOrder
public data class ExpectedContentRootEntity(
val url: VirtualFileUrl,
val excludedUrls: List<VirtualFileUrl>,
val excludedPatterns: List<String>,
val parentModuleEntity: ModuleEntity,
)
public infix fun ContentRootEntity.shouldBeEqual(expected: ExpectedContentRootEntity): Unit =
validateContentRootEntity(this, expected)
public infix fun Collection<ContentRootEntity>.shouldContainExactlyInAnyOrder(
expectedValues: Collection<ExpectedContentRootEntity>,
): Unit =
this.shouldContainExactlyInAnyOrder(
assertion = { actual, expected -> validateContentRootEntity(actual, expected) },
expectedValues = expectedValues
)
private fun validateContentRootEntity(
actual: ContentRootEntity,
expected: ExpectedContentRootEntity
) {
actual.url shouldBe expected.url
actual.excludedUrls.map { it.url } shouldContainExactlyInAnyOrder expected.excludedUrls
actual.excludedPatterns shouldContainExactlyInAnyOrder expected.excludedPatterns
}
| 2 | null | 3 | 9 | a039912ea7d07ca9fbf2992d64bafaddf4ff13c0 | 1,404 | intellij-bsp | Apache License 2.0 |
flutter_expo_map/android/app/src/main/kotlin/com/example/flutter_expo_map/MainActivity.kt | Fimba-Code | 264,306,501 | false | null | package com.example.flutter_expo_map
import androidx.annotation.NonNull;
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.plugins.GeneratedPluginRegistrant
class MainActivity: FlutterActivity() {
override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {
GeneratedPluginRegistrant.registerWith(flutterEngine);
}
}
| 14 | Dart | 2 | 10 | aae76fc16904e464e4f23c945637f392217a51d1 | 420 | map-challenges | MIT License |
app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupCreateService.kt | Jays2Kings | 175,908,029 | false | null | package eu.kanade.tachiyomi.data.backup
import android.app.Service
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.IBinder
import android.os.PowerManager
import androidx.core.content.ContextCompat
import androidx.core.net.toUri
import com.hippo.unifile.UniFile
import eu.kanade.tachiyomi.data.backup.full.FullBackupManager
import eu.kanade.tachiyomi.data.notification.Notifications
import eu.kanade.tachiyomi.util.system.acquireWakeLock
import eu.kanade.tachiyomi.util.system.isServiceRunning
/**
* Service for backing up library information to a JSON file.
*/
class BackupCreateService : Service() {
companion object {
// Filter options
internal const val BACKUP_CATEGORY = 0x1
internal const val BACKUP_CATEGORY_MASK = 0x1
internal const val BACKUP_CHAPTER = 0x2
internal const val BACKUP_CHAPTER_MASK = 0x2
internal const val BACKUP_HISTORY = 0x4
internal const val BACKUP_HISTORY_MASK = 0x4
internal const val BACKUP_TRACK = 0x8
internal const val BACKUP_TRACK_MASK = 0x8
// SY -->
internal const val BACKUP_CUSTOM_INFO = 0x10
internal const val BACKUP_CUSTOM_INFO_MASK = 0x10
internal const val BACKUP_READ_MANGA = 0x20
internal const val BACKUP_READ_MANGA_MASK = 0x20
internal const val BACKUP_ALL = 0x3F
// SY <--
/**
* Returns the status of the service.
*
* @param context the application context.
* @return true if the service is running, false otherwise.
*/
fun isRunning(context: Context): Boolean =
context.isServiceRunning(BackupCreateService::class.java)
/**
* Make a backup from library
*
* @param context context of application
* @param uri path of Uri
* @param flags determines what to backup
*/
fun start(context: Context, uri: Uri, flags: Int) {
if (!isRunning(context)) {
val intent = Intent(context, BackupCreateService::class.java).apply {
putExtra(BackupConst.EXTRA_URI, uri)
putExtra(BackupConst.EXTRA_FLAGS, flags)
}
ContextCompat.startForegroundService(context, intent)
}
}
}
/**
* Wake lock that will be held until the service is destroyed.
*/
private lateinit var wakeLock: PowerManager.WakeLock
private lateinit var notifier: BackupNotifier
override fun onCreate() {
super.onCreate()
notifier = BackupNotifier(this)
wakeLock = acquireWakeLock(javaClass.name)
startForeground(Notifications.ID_BACKUP_PROGRESS, notifier.showBackupProgress().build())
}
override fun stopService(name: Intent?): Boolean {
destroyJob()
return super.stopService(name)
}
override fun onDestroy() {
destroyJob()
super.onDestroy()
}
private fun destroyJob() {
if (wakeLock.isHeld) {
wakeLock.release()
}
}
/**
* This method needs to be implemented, but it's not used/needed.
*/
override fun onBind(intent: Intent): IBinder? = null
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
if (intent == null) return START_NOT_STICKY
try {
val uri = intent.getParcelableExtra<Uri>(BackupConst.EXTRA_URI)!!
val backupFlags = intent.getIntExtra(BackupConst.EXTRA_FLAGS, 0)
val backupFileUri = FullBackupManager(this).createBackup(uri, backupFlags, false)?.toUri()
val unifile = UniFile.fromUri(this, backupFileUri)
notifier.showBackupComplete(unifile)
} catch (e: Exception) {
notifier.showBackupError(e.message)
}
stopSelf(startId)
return START_NOT_STICKY
}
}
| 86 | null | 71 | 974 | 928f7553bf800cbbc9006e7242f78741dfd64179 | 3,946 | tachiyomiJ2K | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.