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
beckon-mesh/src/main/java/com/technocreatives/beckon/mesh/extensions/ByteArray.kt
technocreatives
364,517,134
false
null
package com.technocreatives.beckon.mesh.extensions //fun ByteArray.toHex(): String = // joinToString(separator = "") { eachByte -> "%02x".format(eachByte) }
1
Kotlin
2
8
2e252df19c02104821c393225ee8d5abefa07b74
162
beckon-android
Apache License 2.0
server-logic/src/main/kotlin/com/github/vatbub/matchmaking/server/logic/handlers/GetConnectionIdHandler.kt
vatbub
162,929,659
false
null
/*- * #%L * matchmaking.server * %% * Copyright (C) 2016 - 2018 Frederik Kammel * %% * 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. * #L% */ package com.github.vatbub.matchmaking.server.logic.handlers import com.github.vatbub.matchmaking.common.Request import com.github.vatbub.matchmaking.common.Response import com.github.vatbub.matchmaking.common.requests.GetConnectionIdRequest import com.github.vatbub.matchmaking.common.responses.GetConnectionIdResponse import com.github.vatbub.matchmaking.server.logic.idprovider.ConnectionIdProvider import java.net.Inet4Address import java.net.Inet6Address /** * Handles [GetConnectionIdRequest]s */ class GetConnectionIdHandler(val connectionIdProvider: ConnectionIdProvider) : RequestHandler<GetConnectionIdRequest> { override fun needsAuthentication(request: GetConnectionIdRequest) = false override fun canHandle(request: Request) = request is GetConnectionIdRequest override fun handle(request: GetConnectionIdRequest, sourceIp: Inet4Address?, sourceIpv6: Inet6Address?): Response { val id = connectionIdProvider.getNewId() return GetConnectionIdResponse(id.connectionId!!, id.password!!) } override fun equals(other: Any?): Boolean { if (this === other) return true if (javaClass != other?.javaClass) return false other as GetConnectionIdHandler if (connectionIdProvider != other.connectionIdProvider) return false return true } override fun hashCode(): Int { return connectionIdProvider.hashCode() } }
11
Kotlin
5
32
7ece6b79c6ea15dcf636851a61fde6dc6615188d
2,086
matchmaking
Apache License 2.0
kyplot/src/main/kotlin/tomasvolker/kyplot/model/drawing/Stem.kt
TomasVolker
114,266,369
false
null
package tomasvolker.kyplot.model.drawing import tomasvolker.kyplot.model.LineStyle import tomasvolker.kyplot.model.MarkerStyle import tomasvolker.kyplot.model.PlotDsl data class Line( val x: Iterable<Number>, val y: Iterable<Number>, override val label: String = "", val lineStyle: LineStyle = LineStyle(), val markerStyle: MarkerStyle = MarkerStyle() ): Drawing { @PlotDsl class Builder( var x: Iterable<Number> = emptyList(), var y: Iterable<Number> = emptyList(), var label: String = "", var lineStyle: LineStyle.Builder = LineStyle.Builder(), var markerStyle: MarkerStyle.Builder = MarkerStyle.Builder() ): Drawing.Builder { override fun build() = Line( x = x, y = y, label = label, lineStyle = lineStyle.build(), markerStyle = markerStyle.build() ) } }
8
Kotlin
1
3
1e9d64140ec70b692b1b64ecdcd8b63cf41f97af
951
numeriko
Apache License 2.0
line-awesome/src/commonMain/kotlin/compose/icons/lineawesomeicons/MapMarkerSolid.kt
DevSrSouza
311,134,756
false
{"Kotlin": 36719092}
package compose.icons.lineawesomeicons import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Butt import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter 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.LineAwesomeIcons public val LineAwesomeIcons.MapMarkerSolid: ImageVector get() { if (_mapMarkerSolid != null) { return _mapMarkerSolid!! } _mapMarkerSolid = Builder(name = "MapMarkerSolid", defaultWidth = 32.0.dp, defaultHeight = 32.0.dp, viewportWidth = 32.0f, viewportHeight = 32.0f).apply { path(fill = SolidColor(Color(0xFF000000)), stroke = null, strokeLineWidth = 0.0f, strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f, pathFillType = NonZero) { moveTo(16.0f, 3.0f) curveTo(11.043f, 3.0f, 7.0f, 7.043f, 7.0f, 12.0f) curveTo(7.0f, 13.406f, 7.57f, 15.02f, 8.344f, 16.781f) curveTo(9.117f, 18.543f, 10.113f, 20.414f, 11.125f, 22.156f) curveTo(13.148f, 25.645f, 15.188f, 28.563f, 15.188f, 28.563f) lineTo(16.0f, 29.75f) lineTo(16.813f, 28.563f) curveTo(16.813f, 28.563f, 18.852f, 25.645f, 20.875f, 22.156f) curveTo(21.887f, 20.414f, 22.883f, 18.543f, 23.656f, 16.781f) curveTo(24.43f, 15.02f, 25.0f, 13.406f, 25.0f, 12.0f) curveTo(25.0f, 7.043f, 20.957f, 3.0f, 16.0f, 3.0f) close() moveTo(16.0f, 5.0f) curveTo(19.879f, 5.0f, 23.0f, 8.121f, 23.0f, 12.0f) curveTo(23.0f, 12.801f, 22.57f, 14.316f, 21.844f, 15.969f) curveTo(21.117f, 17.621f, 20.113f, 19.453f, 19.125f, 21.156f) curveTo(17.555f, 23.867f, 16.578f, 25.301f, 16.0f, 26.156f) curveTo(15.422f, 25.301f, 14.445f, 23.867f, 12.875f, 21.156f) curveTo(11.887f, 19.453f, 10.883f, 17.621f, 10.156f, 15.969f) curveTo(9.43f, 14.316f, 9.0f, 12.801f, 9.0f, 12.0f) curveTo(9.0f, 8.121f, 12.121f, 5.0f, 16.0f, 5.0f) close() moveTo(16.0f, 10.0f) curveTo(14.895f, 10.0f, 14.0f, 10.895f, 14.0f, 12.0f) curveTo(14.0f, 13.105f, 14.895f, 14.0f, 16.0f, 14.0f) curveTo(17.105f, 14.0f, 18.0f, 13.105f, 18.0f, 12.0f) curveTo(18.0f, 10.895f, 17.105f, 10.0f, 16.0f, 10.0f) close() } } .build() return _mapMarkerSolid!! } private var _mapMarkerSolid: ImageVector? = null
17
Kotlin
25
571
a660e5f3033e3222e3553f5a6e888b7054aed8cd
2,965
compose-icons
MIT License
app/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/NIP90ContentDiscoveryScreen.kt
vitorpamplona
587,850,619
false
{"Kotlin": 4969371, "HTML": 836484, "Java": 189063, "Shell": 1488}
/** * Copyright (c) 2024 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to use, * copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the * Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ package com.vitorpamplona.amethyst.ui.screen.loggedIn import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.getValue import androidx.compose.runtime.livedata.observeAsState 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.draw.clip import androidx.compose.ui.layout.ContentScale import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.unit.dp import androidx.lifecycle.compose.collectAsStateWithLifecycle import androidx.lifecycle.distinctUntilChanged import androidx.lifecycle.map import androidx.lifecycle.viewmodel.compose.viewModel import coil.compose.AsyncImage import com.vitorpamplona.amethyst.R import com.vitorpamplona.amethyst.model.Note import com.vitorpamplona.amethyst.model.User import com.vitorpamplona.amethyst.ui.components.LoadNote import com.vitorpamplona.amethyst.ui.note.DVMCard import com.vitorpamplona.amethyst.ui.note.NoteAuthorPicture import com.vitorpamplona.amethyst.ui.note.WatchNoteEvent import com.vitorpamplona.amethyst.ui.screen.FeedEmpty import com.vitorpamplona.amethyst.ui.screen.NostrNIP90ContentDiscoveryFeedViewModel import com.vitorpamplona.amethyst.ui.screen.RefresheableBox import com.vitorpamplona.amethyst.ui.screen.RenderFeedState import com.vitorpamplona.amethyst.ui.screen.SaveableFeedState import com.vitorpamplona.amethyst.ui.theme.DoubleVertSpacer import com.vitorpamplona.amethyst.ui.theme.QuoteBorder import com.vitorpamplona.amethyst.ui.theme.Size75dp import com.vitorpamplona.quartz.events.AppDefinitionEvent import com.vitorpamplona.quartz.events.NIP90ContentDiscoveryResponseEvent import com.vitorpamplona.quartz.events.NIP90StatusEvent @Composable fun NIP90ContentDiscoveryScreen( appDefinitionEventId: String, accountViewModel: AccountViewModel, nav: (String) -> Unit, ) { LoadNote(baseNoteHex = appDefinitionEventId, accountViewModel = accountViewModel) { it?.let { baseNote -> WatchNoteEvent( baseNote, onNoteEventFound = { NIP90ContentDiscoveryScreen(baseNote, accountViewModel, nav) }, onBlank = { FeedEmptywithStatus(baseNote, stringResource(R.string.dvm_looking_for_app), accountViewModel, nav) }, ) } } } @Composable fun NIP90ContentDiscoveryScreen( appDefinition: Note, accountViewModel: AccountViewModel, nav: (String) -> Unit, ) { val noteAuthor = appDefinition.author ?: return var requestEventID by remember(appDefinition) { mutableStateOf<Note?>(null) } val onRefresh = { accountViewModel.requestDVMContentDiscovery(noteAuthor.pubkeyHex) { requestEventID = it } } LaunchedEffect(key1 = appDefinition) { onRefresh() } RefresheableBox( onRefresh = onRefresh, ) { val myRequestEventID = requestEventID if (myRequestEventID != null) { ObserverContentDiscoveryResponse( appDefinition, myRequestEventID, onRefresh, accountViewModel, nav, ) } else { // TODO: Make a good splash screen with loading animation for this DVM. FeedEmptywithStatus(appDefinition, stringResource(R.string.dvm_requesting_job), accountViewModel, nav) } } } @Composable fun ObserverContentDiscoveryResponse( appDefinition: Note, dvmRequestId: Note, onRefresh: () -> Unit, accountViewModel: AccountViewModel, nav: (String) -> Unit, ) { val noteAuthor = appDefinition.author ?: return val updateFiltersFromRelays = dvmRequestId.live().metadata.observeAsState() val resultFlow = remember(dvmRequestId) { accountViewModel.observeByETag(NIP90ContentDiscoveryResponseEvent.KIND, dvmRequestId.idHex) } val latestResponse by resultFlow.collectAsStateWithLifecycle() if (latestResponse != null) { PrepareViewContentDiscoveryModels( noteAuthor, dvmRequestId.idHex, onRefresh, accountViewModel, nav, ) } else { ObserverDvmStatusResponse( appDefinition, dvmRequestId.idHex, accountViewModel, nav, ) } } @Composable fun ObserverDvmStatusResponse( appDefinition: Note, dvmRequestId: String, accountViewModel: AccountViewModel, nav: (String) -> Unit, ) { val statusFlow = remember(dvmRequestId) { accountViewModel.observeByETag(NIP90StatusEvent.KIND, dvmRequestId) } val latestStatus by statusFlow.collectAsStateWithLifecycle() if (latestStatus != null) { // TODO: Make a good splash screen with loading animation for this DVM. latestStatus?.let { FeedEmptywithStatus(appDefinition, it.content(), accountViewModel, nav) } } else { // TODO: Make a good splash screen with loading animation for this DVM. FeedEmptywithStatus(appDefinition, stringResource(R.string.dvm_waiting_status), accountViewModel, nav) } } @Composable fun PrepareViewContentDiscoveryModels( dvm: User, dvmRequestId: String, onRefresh: () -> Unit, accountViewModel: AccountViewModel, nav: (String) -> Unit, ) { val resultFeedViewModel: NostrNIP90ContentDiscoveryFeedViewModel = viewModel( key = "NostrNIP90ContentDiscoveryFeedViewModel${dvm.pubkeyHex}$dvmRequestId", factory = NostrNIP90ContentDiscoveryFeedViewModel.Factory(accountViewModel.account, dvmkey = dvm.pubkeyHex, requestid = dvmRequestId), ) LaunchedEffect(key1 = dvmRequestId) { resultFeedViewModel.invalidateData() } RenderNostrNIP90ContentDiscoveryScreen(resultFeedViewModel, onRefresh, accountViewModel, nav) } @Composable fun RenderNostrNIP90ContentDiscoveryScreen( resultFeedViewModel: NostrNIP90ContentDiscoveryFeedViewModel, onRefresh: () -> Unit, accountViewModel: AccountViewModel, nav: (String) -> Unit, ) { Column(Modifier.fillMaxHeight()) { // TODO (Optional) Maybe render a nice header with image and DVM name from the dvmID // TODO (Optional) How do we get the event information here?, LocalCache.checkGetOrCreateNote() returns note but event is empty // TODO (Optional) otherwise we have the NIP89 info in (note.event as AppDefinitionEvent).appMetaData() SaveableFeedState(resultFeedViewModel, null) { listState -> // TODO (Optional) Instead of a like reaction, do a Kind 31989 NIP89 App recommendation RenderFeedState( resultFeedViewModel, accountViewModel, listState, nav, null, onEmpty = { // TODO (Optional) Maybe also show some dvm image/text while waiting for the notes in this custom component FeedEmpty { onRefresh() } }, ) } } } @Composable fun FeedEmptywithStatus( appDefinitionNote: Note, status: String, accountViewModel: AccountViewModel, nav: (String) -> Unit, ) { Column( Modifier .fillMaxSize() .padding(20.dp), horizontalAlignment = Alignment.CenterHorizontally, verticalArrangement = Arrangement.Center, ) { val card = observeAppDefinition(appDefinitionNote) card.cover?.let { AsyncImage( model = it, contentDescription = null, contentScale = ContentScale.Crop, modifier = Modifier.size(Size75dp).clip(QuoteBorder), ) } ?: run { NoteAuthorPicture(appDefinitionNote, nav, accountViewModel, Size75dp) } Spacer(modifier = DoubleVertSpacer) Text( text = card.name, fontWeight = FontWeight.Bold, maxLines = 1, overflow = TextOverflow.Ellipsis, ) Spacer(modifier = DoubleVertSpacer) Text(status) } } @Composable fun observeAppDefinition(appDefinitionNote: Note): DVMCard { val noteEvent = appDefinitionNote.event as? AppDefinitionEvent ?: return DVMCard( name = "", description = "", cover = null, ) val card by appDefinitionNote .live() .metadata .map { val noteEvent = it.note.event as? AppDefinitionEvent DVMCard( name = noteEvent?.appMetaData()?.name ?: "", description = noteEvent?.appMetaData()?.about ?: "", cover = noteEvent?.appMetaData()?.image?.ifBlank { null }, ) } .distinctUntilChanged() .observeAsState( DVMCard( name = noteEvent.appMetaData()?.name ?: "", description = noteEvent.appMetaData()?.about ?: "", cover = noteEvent.appMetaData()?.image?.ifBlank { null }, ), ) return card }
125
Kotlin
146
1,052
5812e290c9dc7444c2ebc33ced8326b749647796
11,084
amethyst
MIT License
reword/src/main/java/dev/b3nedikt/reword/transformer/ToolbarViewTransformer.kt
ashu5398
311,227,303
true
{"Kotlin": 41254, "Java": 6609, "Shell": 901}
package dev.b3nedikt.reword.transformer import android.os.Build import android.widget.Toolbar import androidx.annotation.RequiresApi /** * A transformer which transforms [Toolbar]: it transforms the text set as title. */ @RequiresApi(Build.VERSION_CODES.LOLLIPOP) internal object ToolbarViewTransformer : AbstractViewTransformer<Toolbar>() { private const val ATTRIBUTE_TITLE = "title" private const val ATTRIBUTE_SUBTITLE = "subtitle" private const val ATTRIBUTE_ANDROID_TITLE = "android:title" private const val ATTRIBUTE_ANDROID_SUBTITLE = "android:subtitle" override val viewType = Toolbar::class.java override val supportedAttributes = setOf(ATTRIBUTE_TITLE, ATTRIBUTE_SUBTITLE, ATTRIBUTE_ANDROID_TITLE, ATTRIBUTE_ANDROID_SUBTITLE) override fun Toolbar.transform(attrs: Map<String, Int>) { attrs.forEach { entry -> when (entry.key) { ATTRIBUTE_TITLE, ATTRIBUTE_ANDROID_TITLE -> updateTexts(entry.value, this::setTitle) ATTRIBUTE_SUBTITLE, ATTRIBUTE_ANDROID_SUBTITLE -> updateTexts(entry.value, this::setSubtitle) } } } }
0
null
0
0
5c48d47538a43875a4178ed852eade5ae50d52fb
1,149
reword
Apache License 2.0
ui/src/main/java/com/mhacks/app/ui/qrscan/QRScanActivity.kt
a-ye13
207,436,130
true
{"Kotlin": 302268, "Java": 2165}
@file:Suppress("DEPRECATION") package com.mhacks.app.ui.qrscan import android.Manifest import android.annotation.SuppressLint import android.content.DialogInterface import android.content.Intent import android.content.IntentFilter import android.content.pm.PackageManager import android.content.res.ColorStateList import android.graphics.Color import android.hardware.Camera import android.os.Bundle import androidx.core.app.ActivityCompat import androidx.core.content.ContextCompat import androidx.core.widget.ImageViewCompat import android.util.Patterns import android.view.GestureDetector import android.view.MotionEvent import android.view.ScaleGestureDetector import android.view.View import androidx.annotation.NonNull import androidx.appcompat.app.AlertDialog import androidx.appcompat.widget.AlertDialogLayout import androidx.lifecycle.Observer import androidx.lifecycle.ViewModelProvider import com.google.android.gms.common.ConnectionResult import com.google.android.gms.common.GoogleApiAvailability import com.google.android.gms.vision.MultiProcessor import com.google.android.gms.vision.barcode.Barcode import com.google.android.gms.vision.barcode.BarcodeDetector import com.google.android.material.snackbar.Snackbar import com.mhacks.app.adapter.setTextMessage import com.mhacks.app.data.models.common.TextMessage import com.mhacks.app.extension.viewModelProvider import com.mhacks.app.ui.common.BaseActivity import com.mhacks.app.ui.qrscan.widget.BarcodeGraphic import com.mhacks.app.ui.qrscan.widget.BarcodeGraphicTracker import com.mhacks.app.ui.qrscan.widget.BarcodeTrackerFactory import com.mhacks.app.ui.qrscan.widget.camera.CameraSource import com.mhacks.app.ui.qrscan.widget.camera.CameraSourcePreview import com.mhacks.app.ui.qrscan.widget.camera.GraphicOverlay import kotlinx.android.synthetic.main.activity_qr_scan.* import org.mhacks.mhacksui.R import timber.log.Timber import java.io.IOException import javax.inject.Inject /** * Activity for the multi-tracker app. This app detects barcodes and displays the value with the * rear facing camera. During detection overlay graphics are drawn to indicate the position, * size, and ID of each barcode. */ class QRScanActivity: BaseActivity(), BarcodeGraphicTracker.BarcodeUpdateListener { private var camera: Camera? = null private var cameraSource: CameraSource? = null private var preview: CameraSourcePreview? = null private var graphicOverlay: GraphicOverlay<BarcodeGraphic>? = null private var scaleGestureDetector: ScaleGestureDetector? = null private var gestureDetector: GestureDetector? = null @Inject lateinit var viewModelFactory: ViewModelProvider.Factory private var qrScanViewModel: QRScanViewModel? = null /** * Initializes the UI and creates the detector pipeline. */ public override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_qr_scan) qrScanViewModel = viewModelProvider(viewModelFactory) subscribeUi() preview = findViewById(R.id.activity_camera_source_preview) graphicOverlay = findViewById(R.id.activity_barcode_graphic_overlay) val rc = ActivityCompat.checkSelfPermission(this@QRScanActivity, Manifest.permission.CAMERA) if (rc == PackageManager.PERMISSION_GRANTED) { createCameraSource() qrScanViewModel?.getCameraSettings() activity_camera_source_flash_icon.setOnClickListener { qrScanViewModel?.changeCameraSettings(QRScanViewModel.FLASH) } activity_camera_source_autofocus_icon.setOnClickListener { qrScanViewModel?.changeCameraSettings(QRScanViewModel.AUTO_FOCUS) } } else { requestCameraPermission() } gestureDetector = GestureDetector(this, CaptureGestureListener()) scaleGestureDetector = ScaleGestureDetector(this, ScaleListener()) showToast(R.string.barcode_hint) } private fun subscribeUi() { qrScanViewModel?.verifyTicket?.observe(this, Observer { var response = "" for (feedback in it ) { response += feedback.label + ": " + feedback.value + "\n" } AlertDialog.Builder(this) .setTitle("QR Response") .setMessage(response) .setPositiveButton("Ok") { dialog, which -> Timber.i(response) } .show() }) qrScanViewModel?.snackBarMessage?.observe(this, Observer { it?.let { textMessage -> showSnackBar(textMessage) } }) qrScanViewModel?.cameraSettings?.observe(this, Observer { it?.let { cameraSettings -> val (isAutoFocus, isFlash) = cameraSettings updateCameraSettings(isAutoFocus, isFlash) } }) } private fun requestCameraPermission() { Timber.w("Camera permission is not granted. Requesting permission") val permissions = arrayOf(Manifest.permission.CAMERA) if (!ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.CAMERA)) { ActivityCompat.requestPermissions(this, permissions, RC_HANDLE_CAMERA_PERM) return } val thisActivity = this val listener = View.OnClickListener { ActivityCompat.requestPermissions(thisActivity, permissions, RC_HANDLE_CAMERA_PERM) } findViewById<View>(R.id.topLayout).setOnClickListener(listener) Snackbar.make(graphicOverlay!!, R.string.permission_camera_rationale, Snackbar.LENGTH_INDEFINITE) .setAction(R.string.ok, listener) .show() } override fun onTouchEvent(e: MotionEvent): Boolean { val b = scaleGestureDetector!!.onTouchEvent(e) val c = gestureDetector!!.onTouchEvent(e) return b || c || super.onTouchEvent(e) } /** * Creates and starts the camera. Note that this uses a higher resolution in comparison * to other detection examples to enable the barcode detector to detect small barcodes * at long distances. * * Suppressing InlinedApi since there is a check that the minimum version is met before using * the constant. */ @SuppressLint("InlinedApi") private fun createCameraSource() { val context = applicationContext // A barcode detector is created to track barcodes. An associated multi-processor instance // is set to receive the barcode detection results, track the barcodes, and maintain // graphics for each barcode on screen. The factory is used by the multi-processor to // create a separate tracker instance for each barcode. val barcodeDetector = BarcodeDetector.Builder(context).build() val barcodeFactory = BarcodeTrackerFactory(graphicOverlay!!, this) barcodeDetector.setProcessor( MultiProcessor.Builder(barcodeFactory).build()) if (!barcodeDetector.isOperational) { // Note: The first time that an app using the barcode or face API is installed on a // device, GMS will download a native libraries to the device in order to do detection. // Usually this completes before the app is run for the first time. But if that // download has not yet completed, then the above call will not detect any barcodes // and/or faces. // // isOperational() can be used to check if the required native libraries are currently // available. The detectors will automatically become operational once the library // downloads complete on device. Timber.w("Detector dependencies are not yet available.") // Check for low storage. If there is low storage, the native library will not be // downloaded, so detection will not become operational. val lowStorageFilter = IntentFilter(Intent.ACTION_DEVICE_STORAGE_LOW) val hasLowStorage = registerReceiver(null, lowStorageFilter) != null if (hasLowStorage) { showToast(R.string.low_storage_error) Timber.w(getString(R.string.low_storage_error)) } } // Creates and starts the camera. Note that this uses a higher resolution in comparison // to other detection examples to enable the barcode detector to detect small barcodes // at long distances. val builder: CameraSource.Builder = CameraSource.Builder(applicationContext, barcodeDetector) .setFacing(CameraSource.CAMERA_FACING_BACK) .setRequestedPreviewSize(1600, 1024) .setRequestedFps(15.0f) cameraSource = builder .build() } /** * Restarts the camera. */ override fun onResume() { super.onResume() startCameraSource() } /** * Stops the camera. */ override fun onPause() { super.onPause() preview?.stop() } /** * Releases the resources associated with the camera source, the associated detectors, and the * rest of the processing pipeline. */ override fun onDestroy() { super.onDestroy() preview?.release() } /** * Callback for the result from requesting permissions. This method * is invoked for every call on [.requestPermissions]. * * * **Note:** It is possible that the permissions request interaction * with the user is interrupted. In this case you will receive empty permissions * and results arrays which should be treated as a cancellation. * * * @param requestCode The request code passed in [.requestPermissions]. * @param permissions The requested permissions. Never null. * @param grantResults The grant results for the corresponding permissions * which is either [PackageManager.PERMISSION_GRANTED] * or [PackageManager.PERMISSION_DENIED]. Never null. * @see .requestPermissions */ @SuppressLint("BinaryOperationInTimber") override fun onRequestPermissionsResult(requestCode: Int, @NonNull permissions: Array<String>, @NonNull grantResults: IntArray) { if (requestCode != RC_HANDLE_CAMERA_PERM) { Timber.w("Got unexpected permission result: $requestCode") super.onRequestPermissionsResult(requestCode, permissions, grantResults) return } if (grantResults.isNotEmpty() && grantResults[0] == PackageManager.PERMISSION_GRANTED) { Timber.w("Camera permission granted - initialize the camera source") createCameraSource() qrScanViewModel?.getCameraSettings() return } Timber.w("Permission not granted: results len = " + grantResults.size + " Result code = " + if (grantResults.isNotEmpty()) grantResults[0] else "(empty)") val listener = DialogInterface.OnClickListener { _, _ -> finish() } val builder = AlertDialog.Builder(this) builder.setTitle("Multitracker sample") .setMessage(R.string.no_camera_permission) .setPositiveButton(R.string.ok, listener) .show() } /** * Starts or restarts the camera source, if it exists. If the camera source doesn't exist yet * (e.g., because onResume was called before the camera source was created), this will be called * again when the camera source is created. */ @Throws(SecurityException::class) private fun startCameraSource() { // check that the device has play services available. val code = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable( applicationContext) if (code != ConnectionResult.SUCCESS) { val dlg = GoogleApiAvailability.getInstance().getErrorDialog(this, code, RC_HANDLE_GMS) dlg.show() } if (cameraSource != null) { try { preview?.start(cameraSource!!, graphicOverlay!!) } catch (e: IOException) { Timber.e("Unable to start camera source.") cameraSource?.release() cameraSource = null } } } /** * onTap returns the tapped barcode result to the calling Activity. * * @param rawX - the raw position of the tap * @param rawY - the raw position of the tap. * @return true if the activity is ending. */ private fun onTap(rawX: Float, rawY: Float): Boolean { // Find tap point in preview frame coordinates. val location = IntArray(2) graphicOverlay?.getLocationOnScreen(location) val x = (rawX - location[0]) / graphicOverlay!!.widthScaleFactor val y = (rawY - location[1]) / graphicOverlay!!.heightScaleFactor // Find the barcode whose center is closest to the tapped point. var best: Barcode? = null var bestDistance = java.lang.Float.MAX_VALUE for (graphic in graphicOverlay!!.graphics) { val barcode = graphic.barcode if (barcode?.boundingBox?.contains(x.toInt(), y.toInt())!!) { // Exact hit, no need to keep looking. best = barcode break } val dx = x - barcode.boundingBox.centerX() val dy = y - barcode.boundingBox.centerY() val distance = dx * dx + dy * dy // actually squared distance if (distance < bestDistance) { best = barcode bestDistance = distance } } best?.let { if (Patterns.EMAIL_ADDRESS.matcher(best.displayValue).matches()) { activity_camera_source_id_text_view.text = best.displayValue qrScanViewModel?.verifyTicket(best.displayValue) } else showToast(R.string.not_valid_email) return true } return false } private inner class CaptureGestureListener : GestureDetector.SimpleOnGestureListener() { override fun onSingleTapConfirmed(e: MotionEvent): Boolean { return onTap(e.rawX, e.rawY) || super.onSingleTapConfirmed(e) } } private inner class ScaleListener : ScaleGestureDetector.OnScaleGestureListener { /** * Responds to scaling events for a gesture in progress. * Reported by pointer motion. * * @param detector The detector reporting the insertFavoriteEvent - use this to * retrieve extended info about insertFavoriteEvent state. * @return Whether or not the detector should consider this insertFavoriteEvent * as handled. If an insertFavoriteEvent was not handled, the detector * will continue to accumulate movement until an insertFavoriteEvent is * handled. This can be useful if an application, for example, * only wants to update scaling factors if the change is * greater than 0.01. */ override fun onScale(detector: ScaleGestureDetector): Boolean { return false } /** * Responds to the beginning of a scaling gesture. Reported by * new pointers going down. * * @param detector The detector reporting the insertFavoriteEvent - use this to * retrieve extended info about insertFavoriteEvent state. * @return Whether or not the detector should continue recognizing * this gesture. For example, if a gesture is beginning * with a focal point outside of a region where it makes * sense, onScaleBegin() may return false to ignore the * rest of the gesture. */ override fun onScaleBegin(detector: ScaleGestureDetector): Boolean { return true } /** * Responds to the end of a scale gesture. Reported by existing * pointers going up. * * * Once a scale has ended, [ScaleGestureDetector.getFocusX] * and [ScaleGestureDetector.getFocusY] will return focal point * of the pointers remaining on the screen. * * @param detector The detector reporting the insertFavoriteEvent - use this to * retrieve extended info about insertFavoriteEvent state. */ override fun onScaleEnd(detector: ScaleGestureDetector) { cameraSource?.doZoom(detector.scaleFactor) } } override fun onBarcodeDetected(barcode: Barcode) { Timber.d("%s Detected", barcode.displayValue) } private fun updateCameraSettings(hasFlash: Boolean, hasAutoFocus: Boolean) { camera = cameraSource?.let { getCamera(it) } if (camera != null) { try { val param = camera?.parameters param?.flashMode = if (hasFlash) Camera.Parameters.FLASH_MODE_TORCH else Camera.Parameters.FLASH_MODE_OFF param?.focusMode = if (hasAutoFocus) Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE else Camera.Parameters.FOCUS_MODE_FIXED camera?.parameters = param } catch (e: Exception) { Timber.e(e) } } val colorAccent = ColorStateList.valueOf(ContextCompat.getColor(this, R.color.colorAccent)) if (hasAutoFocus) ImageViewCompat.setImageTintList( activity_camera_source_autofocus_icon, colorAccent) else ImageViewCompat.setImageTintList( activity_camera_source_autofocus_icon, ColorStateList.valueOf(Color.WHITE)) if (hasFlash) ImageViewCompat.setImageTintList( activity_camera_source_flash_icon, colorAccent) else ImageViewCompat.setImageTintList( activity_camera_source_flash_icon, ColorStateList.valueOf(Color.WHITE)) } private fun getCamera(cameraSource: CameraSource): Camera? { val declaredFields = CameraSource::class.java.declaredFields for (field in declaredFields) { if (field.type === Camera::class.java) { field.isAccessible = true try { return field.get(cameraSource) as Camera? } catch (e: IllegalAccessException) { Timber.e(e) } break } } return null } companion object { private const val RC_HANDLE_GMS = 9001 private const val RC_HANDLE_CAMERA_PERM = 2 } }
0
null
0
0
edf4ae94b7be31f25bf47a77062c74e80430c663
19,127
mhacks-android
MIT License
app/src/main/java/com/codelab/basiclayouts/clases/aligns/AlingYourBodyRow.kt
Rueda2360
757,559,037
false
{"Kotlin": 72965}
package com.codelab.basiclayouts.clases.aligns import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.lazy.LazyRow import androidx.compose.foundation.lazy.items import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import androidx.compose.ui.unit.dp import com.codelab.basiclayouts.alignYourBodyData @Composable fun AlignYourBodyRow( modifier: Modifier = Modifier ) { LazyRow( horizontalArrangement = Arrangement.spacedBy(8.dp), contentPadding = PaddingValues(horizontal = 16.dp), modifier = modifier ) { items(alignYourBodyData) { item -> AlignYourBodyElement(item.drawable, item.text) } } }
0
Kotlin
0
0
3839b9de9675d15d945f7ef4901a8ef63d225cd5
778
loginKotlin
Apache License 2.0
implementation/src/test/kotlin/io/github/tomplum/aoc/airport/train/ticket/TicketRuleTest.kt
TomPlum
317,142,882
false
null
package io.github.tomplum.aoc.airport.train.ticket import assertk.assertThat import assertk.assertions.isFalse import assertk.assertions.isTrue import org.junit.jupiter.api.Nested import org.junit.jupiter.api.Test class TicketRuleTest { @Nested inner class Apply { @Test fun isLowerBoundStart() { assertThat(TicketRule("test", 0..5, 8..12).apply(0)).isTrue() } @Test fun isLowerBoundEnd() { assertThat(TicketRule("test", 0..5, 8..12).apply(5)).isTrue() } @Test fun inLowerBound() { assertThat(TicketRule("test", 0..5, 8..12).apply(3)).isTrue() } @Test fun isUpperBoundStart() { assertThat(TicketRule("test", 0..5, 8..12).apply(8)).isTrue() } @Test fun isUpperBoundEnd() { assertThat(TicketRule("test", 0..5, 8..12).apply(12)).isTrue() } @Test fun inUpperBound() { assertThat(TicketRule("test", 0..5, 8..12).apply(10)).isTrue() } @Test fun belowLowerBound() { assertThat(TicketRule("test", 1..5, 8..12).apply(0)).isFalse() } @Test fun inBetweenBounds() { assertThat(TicketRule("test", 1..5, 8..12).apply(7)).isFalse() } @Test fun aboveUpperBound() { assertThat(TicketRule("test", 1..5, 8..12).apply(15)).isFalse() } } }
1
Kotlin
0
0
73b3eacb7cb8a7382f8891d3866eda983b6ea7a9
1,463
advent-of-code-2020
Apache License 2.0
kotlinx-coroutines-core/jvm/test/ConcurrentTestUtilities.kt
Kotlin
61,722,736
false
{"Kotlin": 3835333, "Java": 34700, "Python": 3107, "Shell": 2685}
package kotlinx.coroutines.exceptions actual inline fun yieldThread() { Thread.yield() } actual fun currentThreadName(): String = Thread.currentThread().name
295
Kotlin
1850
13,033
6c6df2b850382887462eeaf51f21f58bd982491d
160
kotlinx.coroutines
Apache License 2.0
app/src/main/java/co/devhack/reciperecommendergemini/ui/screens/MainActivity.kt
jggomez
780,232,657
false
{"Kotlin": 35244}
package co.devhack.reciperecommendergemini.ui.screens import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.verticalScroll import androidx.compose.material.icons.Icons import androidx.compose.material.icons.automirrored.filled.ArrowBack import androidx.compose.material3.Icon import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Scaffold import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.unit.dp import androidx.lifecycle.viewmodel.compose.viewModel import androidx.navigation.NavHostController import androidx.navigation.compose.NavHost import androidx.navigation.compose.composable import androidx.navigation.compose.rememberNavController import co.devhack.reciperecommendergemini.ui.theme.RecipeRecommenderGeminiTheme import co.devhack.reciperecommendergemini.viewmodels.RecipeViewModel import co.devhack.reciperecommendergemini.viewmodels.Recipes import com.google.gson.Gson import timber.log.Timber enum class RecipeScreens { RECIPE_INPUT, RECIPES, } class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) Timber.plant(Timber.DebugTree()) setContent { RecipeRecommenderGeminiTheme { RecipeApp() } } } } @Composable fun RecipeApp( recipeViewModel: RecipeViewModel = viewModel(), navController: NavHostController = rememberNavController() ) { Scaffold( modifier = Modifier .fillMaxSize(), topBar = { TopBar( title = "Recipe Recommender", canNavigateBack = true, onBackButtonPress = { navController.navigate(RecipeScreens.RECIPE_INPUT.name) }) } ) { innerPadding -> NavHost( navController = navController, startDestination = RecipeScreens.RECIPE_INPUT.name, modifier = Modifier .fillMaxSize() .verticalScroll(rememberScrollState()) .padding(innerPadding) ) { composable(route = RecipeScreens.RECIPE_INPUT.name) { Timber.i("Navigation in ${RecipeScreens.RECIPE_INPUT.name}") RecipeInputScreen( recipeViewModel = recipeViewModel ) { recipes -> val json = Gson().toJson(recipes) Timber.i("Navigation to ${RecipeScreens.RECIPES.name}") navController.navigate("${RecipeScreens.RECIPES.name}?recipes=${json}") } } composable( route = "${RecipeScreens.RECIPES.name}?recipes={recipes}", ) { backStackEntry -> backStackEntry.arguments?.getString("recipes")?.let { Timber.i("Navigation in ${RecipeScreens.RECIPES.name}") Timber.i("Navigation -> $it") val recipes = Gson().fromJson(it, Recipes::class.java) RecipesScreen( recipes = recipes.recipes ) } } } } } @Composable fun TopBar( title: String, canNavigateBack: Boolean, onBackButtonPress: () -> Unit ) { Row( modifier = Modifier .fillMaxWidth() .height(50.dp) .padding(15.dp), horizontalArrangement = Arrangement.SpaceBetween, verticalAlignment = Alignment.CenterVertically ) { if (canNavigateBack) { Icon( imageVector = Icons.AutoMirrored.Filled.ArrowBack, contentDescription = "ArrowBack", tint = MaterialTheme.colorScheme.primary, modifier = Modifier .clickable { onBackButtonPress() } ) } else { Spacer(modifier = Modifier) } Text( text = title, ) Spacer(modifier = Modifier) } }
0
Kotlin
0
1
7244571d0ffd25e055b97eb571eea09afabd2516
4,711
RecipeRecommenderGeminiAndroid
Apache License 2.0
app/src/main/java/com/example/naufal/crudmysql/model/ResultStatus.kt
naufalislam
278,373,402
false
null
package com.example.naufal.crudmysql.model class ResultStatus { val pesan : String? = null val status : Int? = null }
0
Kotlin
0
1
437a39a9043551de6d79fbb296dbb1b493a63d58
126
CRUD_KotlinMVP
Apache License 2.0
src/main/kotlin/io/online/itbank/services/auth/JwtUserDetailsService.kt
tomasanchez
530,007,034
false
null
package io.online.itbank.services.auth import org.springframework.security.core.userdetails.UserDetails import org.springframework.security.core.userdetails.UserDetailsService import org.springframework.stereotype.Service @Service class JwtUserDetailsService(private val jwtUserService: JwtUserService) : UserDetailsService { override fun loadUserByUsername(username: String?): UserDetails { return username?.let { jwtUserService.findByUsername(it) } ?: throw IllegalArgumentException("Username is null") } }
0
Kotlin
0
0
c435fbe2ceace9ec5db212154b0ba7c547a73d7c
544
kotlitbank
Creative Commons Zero v1.0 Universal
data/src/main/kotlin/data/tinder/recommendation/RecommendationUserCommonConnectionEntity_PhotoEntity.kt
alouanemed
106,109,153
false
null
package data.tinder.recommendation import android.arch.persistence.room.Entity import android.arch.persistence.room.Index @Entity(indices = arrayOf(Index("recommendationUserCommonConnectionEntityId")), primaryKeys = arrayOf("recommendationUserCommonConnectionEntityId", "recommendationUserCommonConnectionPhotoEntitySmall")) internal class RecommendationUserCommonConnectionEntity_PhotoEntity( var recommendationUserCommonConnectionEntityId: String, var recommendationUserCommonConnectionPhotoEntitySmall: String)
0
Kotlin
0
0
678ad00d08630cfcff8de1bbea2a9000927c8e68
548
dinger
MIT License
authentication/src/main/kotlin/com/proggramik/authentication/repository/UserCredentialRepository.kt
lukszy-dev
350,106,143
false
{"Kotlin": 74585}
package com.proggramik.authentication.repository import com.proggramik.authentication.domain.PasswordCredential import org.springframework.data.jpa.repository.JpaRepository import org.springframework.stereotype.Repository @Repository interface UserCredentialRepository : JpaRepository<PasswordCredential, Long> { fun findByEmail(email: String): PasswordCredential? }
0
Kotlin
5
3
d5de1f0866ce7dcb39ad52360415aa40d5131010
373
ecommerce-microservices
MIT License
app/src/main/java/com/hfut/schedule/logic/network/ServiceCreator.kt
Chiu-xaH
705,508,343
false
{"Kotlin": 14005}
package com.hfut.schedule.logic.network import android.content.Context import com.chiuxah.weather.MyApplication import com.hfut.schedule.logic.network.OkHttp.AddCookiesInterceptor import com.hfut.schedule.logic.network.OkHttp.SaveCookiesInterceptor import okhttp3.OkHttpClient import retrofit2.Retrofit import retrofit2.converter.gson.GsonConverterFactory import java.util.concurrent.TimeUnit object ServiceCreator { const val URL = "https://cas.hfut.edu.cn/" private val client by lazy { OkHttpClient.Builder().apply { connectTimeout(5L, TimeUnit.SECONDS) addInterceptor(AddCookiesInterceptor(MyApplication.context)) addInterceptor(SaveCookiesInterceptor(MyApplication.context)) }.build() } //lateinit property context has not been initialized问题 val retrofit = Retrofit.Builder() .baseUrl(URL) .client(client) .addConverterFactory(GsonConverterFactory.create()) .build() fun <T> create(service: Class<T>):T = retrofit.create(service) }
0
Kotlin
0
0
be7d1b887b6faa2dc000f9392dc2195a6fb0111b
1,051
HFUT-Schedule
Apache License 2.0
app/src/main/java/jp/hazuki/yuzubrowser/utils/view/recycler/OutSideClickableRecyclerView.kt
ggshuini
112,413,852
true
{"Java Properties": 3, "Gradle": 5, "Shell": 1, "Markdown": 1, "Batchfile": 1, "Text": 4, "Ignore List": 3, "XML": 387, "Java": 302, "INI": 2, "Proguard": 2, "HTML": 24, "CSS": 3, "JavaScript": 1, "Kotlin": 232}
/* * Copyright (C) 2017 Hazuki * * 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 jp.hazuki.yuzubrowser.utils.view.recycler import android.content.Context import android.support.v7.widget.RecyclerView import android.util.AttributeSet import android.view.MotionEvent class OutSideClickableRecyclerView(context: Context, attrs: AttributeSet) : RecyclerView(context, attrs) { private var listener: (() -> Unit)? = null override fun dispatchTouchEvent(event: MotionEvent): Boolean { if (event.action == MotionEvent.ACTION_UP && findChildViewUnder(event.x, event.y) == null) { listener?.invoke() } return super.dispatchTouchEvent(event) } fun setOnOutSideClickListener(listener: (() -> Unit)?) { this.listener = listener } }
0
Java
0
0
3e35eefa2ddb085e8d01aa6891d5ddc4a4e8110e
1,310
YuzuBrowser
Apache License 2.0
app/src/androidTest/java/tgo1014/listofarts/utils/ViewModelMainCoroutineRule.kt
lukma
702,989,427
false
{"Kotlin": 133997}
package com.lukmadev.apps.weather.util import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.test.TestDispatcher import kotlinx.coroutines.test.UnconfinedTestDispatcher import kotlinx.coroutines.test.resetMain import kotlinx.coroutines.test.setMain import org.junit.rules.TestWatcher import org.junit.runner.Description class CoroutinesTestRule : TestWatcher() { private val testDispatcher: TestDispatcher = UnconfinedTestDispatcher() override fun starting(description: Description?) { super.starting(description) Dispatchers.setMain(testDispatcher) } override fun finished(description: Description?) { super.finished(description) Dispatchers.resetMain() } }
0
Kotlin
0
0
c5ff1bad2c76d745624c2a1830b334b1f0c5146b
725
listOfArts
Apache License 2.0
app/src/main/java/com/example/franchisemanagement/ui/LoginActivity.kt
Njumbi
341,182,394
false
null
package com.example.franchisemanagement.ui import android.app.ProgressDialog import android.content.Context import android.content.Intent import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.text.TextUtils import android.util.Log import android.view.View import android.widget.Toast import com.example.franchisemanagement.R import com.example.franchisemanagement.data.ApiClient import com.example.franchisemanagement.data.model.LoginRequest import com.example.franchisemanagement.data.model.LoginResponse import com.example.franchisemanagement.data.model.LoginResponseData import com.example.franchisemanagement.parseError import com.example.franchisemanagement.validateEmail import com.google.gson.Gson import kotlinx.android.synthetic.main.activity_login.* import retrofit2.Call import retrofit2.Callback import retrofit2.Response class LoginActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_login) } fun createAccountOnClick(view: View) { startActivity(Intent(this, RegistrationActivity::class.java)) } fun login(v: View) { /* validate if empty */ if ( TextUtils.isEmpty(et_email.text) && TextUtils.isEmpty(et_password.text) ){ tl_email.error = "Enter email" tl_password.error = "Enter password" return } if (TextUtils.isEmpty(et_email.text)) { tl_email.error = "Enter email" return } if (TextUtils.isEmpty(et_password.text)) { tl_password.error = "Enter password" return } /* validate email */ if (!validateEmail(et_email.text.toString())) { tl_email.error = "Enter valid email" return } /* progress */ val pd = ProgressDialog(this) pd.setMessage("Processing your request...") pd.show() /* request */ val request = LoginRequest(et_email.text.toString(), et_password.text.toString()) /* make api call */ val call = ApiClient().service?.login(request) call?.enqueue(object : Callback<LoginResponse> { override fun onResponse(call: Call<LoginResponse>, response: Response<LoginResponse>) { /* dismiss progress dialog */ pd.dismiss() /* check if request was a successs */ if (response.isSuccessful) { val loginResponse = response.body() if (loginResponse?.status == true) { saveUserDetails(loginResponse.data) startActivity(Intent(this@LoginActivity, DashboardActivity::class.java)) finish() } else { Toast.makeText( this@LoginActivity, loginResponse?.message, Toast.LENGTH_SHORT ).show() } } else { /* request not success - parse error */ Toast.makeText( this@LoginActivity, parseError(response.errorBody()?.string()!!), Toast.LENGTH_SHORT ) .show() } } override fun onFailure(call: Call<LoginResponse>, t: Throwable) { Log.e("--->", t.localizedMessage) pd.dismiss() Toast.makeText(this@LoginActivity, "Something went wrong", Toast.LENGTH_SHORT) .show() } }) } private fun saveUserDetails(data: LoginResponseData) { val sharedPref = getSharedPreferences( "FM",Context.MODE_PRIVATE) with (sharedPref.edit()) { putString("SESSION_DATA", Gson().toJson( data )) commit() } } }
0
Kotlin
0
1
8f37e7b3ab84dbee5d76d83209070020ad738da8
4,054
management_franchise
MIT License
src/lexical/AnalyzerException.kt
beigirad
138,376,107
false
null
package lexical /** * Created by Farhad's-Macbook on 6/22/18. */ class AnalyzerException(val msg: String,val errorPosition: Int) : Exception(msg)
1
null
1
1
65aa0369a7ab30080c49a122f27be5039bdae6cb
149
CompilerWorkshop
MIT License
features/publish/src/main/java/com/ujizin/leafy/publish/viewmodel/PublishViewModel.kt
ujizin
442,024,281
false
null
package com.ujizin.leafy.publish.viewmodel import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.ujizin.leafy.domain.usecase.plant.AddDraftPlant import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.flow.launchIn import kotlinx.coroutines.flow.onCompletion import javax.inject.Inject @HiltViewModel class PublishViewModel @Inject constructor( private val addDraftPlant: AddDraftPlant, ) : ViewModel() { fun sendDraftPlant(title: String, description: String, onFinishPublish: () -> Unit) { addDraftPlant( title = title, description = description, ).onCompletion { onFinishPublish() }.launchIn(viewModelScope) } }
7
null
1
4
27e28e5984a0fef94d3aa8d7c813ba1851cfd4f3
744
Leafy
Apache License 2.0
src/main/kotlin/de/derniklaas/buildbugs/BuildBugsCommand.kt
derNiklaas
737,881,211
false
{"Kotlin": 24805, "Java": 2229}
package de.derniklaas.buildbugs import de.derniklaas.buildbugs.utils.Utils import org.incendo.cloud.annotations.Argument import org.incendo.cloud.annotations.Command import org.incendo.cloud.annotations.suggestion.Suggestions import org.incendo.cloud.context.CommandContext import org.incendo.cloud.suggestion.Suggestion class BuildBugsCommand { @Command("buildbug config clipboard <value>") fun config_clipboard(context: CommandContext<*>, @Argument("value") value: Boolean) { BuildBugsClientEntrypoint.config.setCopy(value) if (BuildBugsClientEntrypoint.config.copyToClipboard) { Utils.sendMiniMessage("<green>Enabled</green> automatic copying to clipboard.") } else { Utils.sendMiniMessage("<red>Disabled</red> automatic copying to clipboard.") } } @Command("buildbug config debug <value>") fun config_debug(context: CommandContext<*>, @Argument("value") value: Boolean) { BuildBugsClientEntrypoint.config.setDebug(value) if (BuildBugsClientEntrypoint.config.debugMode) { Utils.sendMiniMessage("<green>Enabled</green> Debug mode.") BugCreator.printCurrentGameState() } else { Utils.sendMiniMessage("<red>Disabled</red> Debug mode.") } } @Command("buildbug config eventip <address>") fun config_ip(context: CommandContext<*>, @Argument("address") address: String) { BuildBugsClientEntrypoint.config.setEventAddress(address) Utils.sendSuccessMessage("Set event IP to <gold>$address</gold>.") } @Command("buildbug version") fun version(context: CommandContext<*>) { Utils.sendSuccessMessage("Running BuildBugs ${BuildBugsClientEntrypoint.version}!") } @Command("buildbug reset_state") fun reset_state(context: CommandContext<*>) { if (BuildBugsClientEntrypoint.config.debugMode) { BugCreator.resetGameState() } else { Utils.sendErrorMessage("You can only reset the game state in debug mode.") } } @Command("buildbug force_state <game> <type> <map>") fun force_state_full( context: CommandContext<*>, @Argument("game", suggestions = "gameSuggestions") game: String, @Argument("type") type: String, @Argument("map") map: String ) { if (!BuildBugsClientEntrypoint.config.debugMode) { Utils.sendErrorMessage("You can only force the game state in debug mode.") return } BugCreator.forceGameState(game, type, map) } @Command("buildbug force_state <game> <type>") fun force_state_full( context: CommandContext<*>, @Argument("game", suggestions = "gameSuggestions") game: String, @Argument("type") type: String ) { if (!BuildBugsClientEntrypoint.config.debugMode) { Utils.sendErrorMessage("You can only force the game state in debug mode.") return } BugCreator.forceGameState(game, type, Constants.UNKNOWN) } fun report(context: CommandContext<*>) { BugCreator.report() } @Suggestions("gameSuggestions") fun gameSuggestions(commandContext: CommandContext<*>, input: String): List<Suggestion> { return Constants.ALL_TYPES.map { Suggestion.suggestion(it) } } }
1
Kotlin
0
2
494cbf9feb8c6dc97e9587a2bd22397d9967f542
3,340
build-bugs
MIT License
_pending/android-super-hero-app/features/characters/characters-ui/src/main/java/com/carlosrd/superhero/ui/characters/feature/home/adapter/CharactersPagedListAdapter.kt
luannguyen252
371,359,679
false
null
package com.carlosrd.superhero.ui.characters.feature.home.adapter import android.util.Log import android.view.LayoutInflater import android.view.ViewGroup import androidx.core.view.isVisible import androidx.paging.PagingDataAdapter import androidx.recyclerview.widget.DiffUtil import androidx.recyclerview.widget.RecyclerView import com.carlosrd.superhero.domain.characters.model.CharacterModel import com.carlosrd.superhero.ui.characters.feature.R import com.carlosrd.superhero.ui.manager.ImageManager import com.carlosrd.superhero.ui.characters.feature.databinding.CharacterListItemBinding import com.carlosrd.superhero.ui.extension.gone import com.carlosrd.superhero.ui.extension.visible class CharactersPagedListAdapter(private val imageManager: ImageManager, private val itemClickListener: ((characterId: Long) -> Unit)? = null) : PagingDataAdapter<CharacterListItem, CharactersViewHolder>(CHARACTER_COMPARATOR) { override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): CharactersViewHolder { val binding = CharacterListItemBinding.inflate( LayoutInflater.from(parent.context), parent, false ) return CharactersViewHolder(binding, imageManager) } override fun onBindViewHolder(holder: CharactersViewHolder, position: Int) { holder.bind(getItem(position), itemClickListener) } override fun getItemViewType(position: Int): Int { // set ViewType return if (position == itemCount) CHARACTER_ITEM else LOADING_ITEM } companion object { // Define Loading ViewType val LOADING_ITEM = 0 // Define Movie ViewType val CHARACTER_ITEM = 1 private val CHARACTER_COMPARATOR = object : DiffUtil.ItemCallback<CharacterListItem>() { override fun areItemsTheSame(oldItem: CharacterListItem, newItem: CharacterListItem): Boolean { // Id is unique. return oldItem.id == newItem.id } override fun areContentsTheSame(oldItem: CharacterListItem, newItem: CharacterListItem): Boolean { return oldItem == newItem } } } } class CharactersViewHolder( private val binding: CharacterListItemBinding, private val imageManager: ImageManager ) : RecyclerView.ViewHolder(binding.root) { fun bind( item: CharacterListItem?, itemClickListener: ((characterId: Long) -> Unit)?, ) { with(binding){ if (item != null){ characterName.text = item.name characterSubtitleName.text = item.nameSubtitle characterSubtitleName.isVisible = item.nameSubtitle.isNotEmpty() if (item.imageUrl.contains("image_not_available")){ imageManager.load(R.drawable.ic_superhero, characterImage) } else { imageManager.loadFrom(item.imageUrl, characterImage, R.drawable.ic_superhero) } root.setOnClickListener { itemClickListener?.invoke(item.id) } } else { characterName.text = "???" imageManager.load(R.drawable.ic_superhero, binding.characterImage) } } } } data class CharacterListItem(val id: Long, val imageUrl: String, val name: String, val nameSubtitle : String = "")
0
Kotlin
0
1
a9b5aef8662a1808042c820c3dfac02e1efd5800
3,479
my-android-journey
MIT License
embrace-android-delivery/src/main/kotlin/io/embrace/android/embracesdk/internal/delivery/intake/IntakeServiceImpl.kt
embrace-io
704,537,857
false
{"Kotlin": 2879745, "C": 189341, "Java": 162931, "C++": 13140, "CMake": 4261}
package io.embrace.android.embracesdk.internal.delivery.intake import io.embrace.android.embracesdk.internal.ErrorHandler import io.embrace.android.embracesdk.internal.delivery.StoredTelemetryMetadata import io.embrace.android.embracesdk.internal.delivery.scheduling.SchedulingService import io.embrace.android.embracesdk.internal.delivery.storage.PayloadStorageService import io.embrace.android.embracesdk.internal.payload.Envelope import io.embrace.android.embracesdk.internal.serialization.PlatformSerializer import io.embrace.android.embracesdk.internal.worker.PriorityWorker class IntakeServiceImpl( private val schedulingService: SchedulingService, private val payloadStorageService: PayloadStorageService, private val errorHandler: ErrorHandler, private val serializer: PlatformSerializer, private val worker: PriorityWorker<StoredTelemetryMetadata>, private val shutdownTimeoutMs: Long = 3000 ) : IntakeService { override fun shutdown() { worker.shutdownAndWait(shutdownTimeoutMs) } override fun take(intake: Envelope<*>, metadata: StoredTelemetryMetadata) { worker.submit(metadata) { processIntake(intake, metadata) } } private fun processIntake(intake: Envelope<*>, metadata: StoredTelemetryMetadata) { try { payloadStorageService.store(metadata) { stream -> serializer.toJson(intake, metadata.envelopeType.serializedType, stream) } schedulingService.onPayloadIntake() } catch (exc: Throwable) { errorHandler(exc) } } }
23
Kotlin
8
134
06fb424ba2746c22e8e47e549a9f00ae8f85d72d
1,607
embrace-android-sdk
Apache License 2.0
SensorMonitor/app/src/main/java/jp/nagano/northfield/sensormonitor/sensor/AppSensorEventListener.kt
northfieldzz
549,048,262
false
null
package jp.nagano.northfield.sensormonitor.sensor import android.hardware.Sensor import android.hardware.SensorEvent import android.hardware.SensorEventListener import android.widget.TextView class AppSensorEventListener( private val status: TextView, private val sensor: SensorInterface ) : SensorEventListener { override fun onSensorChanged(p0: SensorEvent) { if (p0.sensor.type == sensor.type) { status.text = sensor.getString(p0.values) } } override fun onAccuracyChanged(p0: Sensor?, p1: Int) {} }
0
Kotlin
0
0
601c824a1974e8620540104162a1333f94ce666c
555
MobileSamples
MIT License
app/src/main/java/lt/getpet/getpet/dagger/module/ActivityModule.kt
GotPet
153,828,011
false
{"Kotlin": 78573}
package lt.getpet.getpet.dagger.module import dagger.Module import dagger.android.ContributesAndroidInjector import lt.getpet.getpet.* @Module abstract class ActivityModule { @ContributesAndroidInjector() abstract fun mainActivity(): MainActivity @ContributesAndroidInjector() abstract fun getPetActivity(): GetPetActivity @ContributesAndroidInjector() abstract fun splashActivity(): SplashActivity @ContributesAndroidInjector() abstract fun onboardingActivity(): OnboardingActivity @ContributesAndroidInjector() abstract fun petProfileActivity(): PetProfileActivity }
0
Kotlin
1
0
f1603cc232dd76a406c76231b229e2150f9ae70a
616
getpet-android
Apache License 2.0
src/main/kotlin/com/pixel_Alireza/data/model/response/auth/AuthResponse.kt
AlirezaMohammadi-git
653,681,143
false
null
package com.pixel_Alireza.data.response.auth import kotlinx.serialization.Serializable @Serializable data class SignInResponse( val res: Boolean, val token: String? = null, val message: String? = null ) @Serializable data class SignUpResponse( val res: Boolean, val message: String ) @Serializable data class SecretInfo( val userId : String , val username: String , val email : String )
0
Kotlin
0
1
786afb5afa5c4fe9f6ffbb1f2c500d2976327e72
423
CiStore-Server
Apache License 2.0
platform/external-system-impl/src/com/intellij/openapi/externalSystem/dependency/analyzer/DependencyAnalyzerView.kt
SysBind
202,502,390
false
null
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.externalSystem.dependency.analyzer import com.intellij.openapi.externalSystem.dependency.analyzer.DependencyContributor.Dependency import javax.swing.JComponent interface DependencyAnalyzerView { val component: JComponent fun setSelectedExternalProject(externalProjectPath: String) fun setSelectedDependency(externalProjectPath: String, dependency: Dependency) }
1
null
1
1
0eb0bc0905884e3fa5027883af926427e21a3cea
561
intellij-community
Apache License 2.0
domain/src/main/java/com/movietime/domain/model/MoviePreview.kt
milanga
471,352,982
false
{"Kotlin": 239459}
package com.movietime.domain.model import java.util.Date data class MoviePreview( val title: String, val originalTitle: String, val originalLanguage: String, override val id: Int, override val posterUrl: String, val backdropUrl: String, override val rating: Float, val voteCount: Int, val popularity: Float, val overview: String, val genreIds: List<Int>, val releaseDate: Date?, val adult: Boolean, val video: Boolean, ): MediaPreview { override val mediaType: MediaType get() = MediaType.Movie }
0
Kotlin
0
0
e933ed07b5972fdef1b38a6a6693add2681a59e6
566
MovieTime
Apache License 2.0
app/src/main/java/com/naftarozklad/views/activities/GroupsActivity.kt
bshvets8
115,192,251
false
null
package com.naftarozklad.views.activities import android.os.Bundle import android.support.design.widget.Snackbar import android.support.v7.app.AppCompatActivity import android.support.v7.widget.DividerItemDecoration import android.support.v7.widget.LinearLayoutManager import android.view.Menu import android.view.MenuItem import android.view.View import com.naftarozklad.R import com.naftarozklad.RozkladApp import com.naftarozklad.presenters.GroupsPresenter import com.naftarozklad.repo.models.Group import com.naftarozklad.utils.SimpleTextWatcher import com.naftarozklad.utils.hideKeyboard import com.naftarozklad.views.interfaces.GroupsView import com.naftarozklad.views.lists.adapters.GroupsAdapter import kotlinx.android.synthetic.main.activity_groups.* import org.jetbrains.anko.clearTop import org.jetbrains.anko.contentView import org.jetbrains.anko.intentFor import javax.inject.Inject class GroupsActivity : AppCompatActivity(), GroupsView { @Inject lateinit var presenter: GroupsPresenter private val adapter = GroupsAdapter() private lateinit var textChangedAction: (String) -> Unit private lateinit var groupSelectedAction: (Int) -> Unit override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_groups) RozkladApp.applicationComponent.inject(this) setSupportActionBar(toolbar) recyclerView.layoutManager = LinearLayoutManager(this) recyclerView.adapter = adapter recyclerView.addItemDecoration(DividerItemDecoration(this, DividerItemDecoration.VERTICAL)) etSearch.addTextChangedListener(object : SimpleTextWatcher() { override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { s?.toString()?.let { text -> textChangedAction(text) } } }) adapter.setSelectionCallback { groupId -> groupSelectedAction(groupId) openScheduleActivity() } ivCloseSearch.setOnClickListener { switchSearchContainerVisibility() etSearch.setText("") etSearch.hideKeyboard() } recyclerView.setOnTouchListener { _, _ -> etSearch.hideKeyboard().run { false } } presenter.attachView(this) } override fun onCreateOptionsMenu(menu: Menu?): Boolean { menuInflater.inflate(R.menu.menu_groups, menu) return true } override fun onOptionsItemSelected(item: MenuItem): Boolean { if (item.itemId != R.id.search) return false switchSearchContainerVisibility() etSearch.requestFocus() return true } override fun onSupportNavigateUp(): Boolean { finish() return true } override fun onBackPressed() { if (flSearchContainer.visibility != View.VISIBLE) return super.onBackPressed() switchSearchContainerVisibility() etSearch.setText("") } override fun setTextChangedAction(action: (String) -> Unit) { textChangedAction = action } override fun setGroupSelectedAction(action: (Int) -> Unit) { groupSelectedAction = action } override fun setRefreshAction(action: () -> Unit) { swipeRefreshLayout.setOnRefreshListener(action) } override fun setNavigationBackEnabled(enabled: Boolean) { supportActionBar?.setDisplayHomeAsUpEnabled(enabled) } override fun setListItems(groups: List<Group>) { adapter.setGroups(groups) } override fun stopRefresh() { swipeRefreshLayout.isRefreshing = false } override fun getFilterText() = etSearch.text.toString() override fun setFilterText(filterText: String) = etSearch.setText(filterText) override fun onError(errorMessage: String) { contentView?.let { Snackbar.make(it, errorMessage, Snackbar.LENGTH_LONG).show() } } private fun openScheduleActivity() { startActivity(intentFor<ScheduleActivity>().clearTop()) finish() } private fun switchSearchContainerVisibility() { flSearchContainer.circleCenterX = flSearchContainer.width.toFloat() flSearchContainer.circleCenterY = flSearchContainer.height / 2 + flSearchContainer.y flSearchContainer.setContentVisibility(flSearchContainer.visibility != View.VISIBLE, true) } }
0
Kotlin
0
0
1cfa23ba5ea09539f684bdecee22c445a1d2e00d
3,977
NaftaRozkladAndroid
MIT License
src/test/kotlin/com/kylecorry/sol/science/geography/projections/AzimuthalEquidistantProjectionTest.kt
kylecorry31
294,668,785
false
{"Kotlin": 809606, "Java": 18119, "Python": 298}
package com.kylecorry.sol.science.geography.projections import assertk.assertThat import com.kylecorry.sol.math.Vector2 import com.kylecorry.sol.tests.assertVector import com.kylecorry.sol.tests.isCloseTo import com.kylecorry.sol.units.Bearing import com.kylecorry.sol.units.Coordinate import org.junit.jupiter.api.Test class AzimuthalEquidistantProjectionTest { @Test fun toPixels() { val center = Coordinate(0.0, 0.0) val projection = AzimuthalEquidistantProjection(center) assertVector(Vector2.zero, projection.toPixels(center), 0.001f) assertVector(Vector2(0f, 100f), projection.toPixels(center.plus(100.0, Bearing(0f))), 1f) assertVector(Vector2(0f, -100f), projection.toPixels(center.plus(100.0, Bearing(180f))), 1f) assertVector(Vector2(100f, 0f), projection.toPixels(center.plus(100.0, Bearing(90f))), 1f) assertVector(Vector2(-100f, 0f), projection.toPixels(center.plus(100.0, Bearing(270f))), 1f) } @Test fun toPixelsScaled(){ val center = Coordinate(0.0, 0.0) val projection = AzimuthalEquidistantProjection(center, scale = 2f) assertVector(Vector2.zero, projection.toPixels(center), 0.001f) assertVector(Vector2(0f, 200f), projection.toPixels(center.plus(100.0, Bearing(0f))), 2f) assertVector(Vector2(0f, -200f), projection.toPixels(center.plus(100.0, Bearing(180f))), 2f) assertVector(Vector2(200f, 0f), projection.toPixels(center.plus(100.0, Bearing(90f))), 2f) assertVector(Vector2(-200f, 0f), projection.toPixels(center.plus(100.0, Bearing(270f))), 2f) } @Test fun toPixelsFlipped(){ val center = Coordinate(0.0, 0.0) val projection = AzimuthalEquidistantProjection(center, isYFlipped = true) assertVector(Vector2.zero, projection.toPixels(center), 0.001f) assertVector(Vector2(0f, -100f), projection.toPixels(center.plus(100.0, Bearing(0f))), 1f) assertVector(Vector2(0f, 100f), projection.toPixels(center.plus(100.0, Bearing(180f))), 1f) assertVector(Vector2(100f, 0f), projection.toPixels(center.plus(100.0, Bearing(90f))), 1f) assertVector(Vector2(-100f, 0f), projection.toPixels(center.plus(100.0, Bearing(270f))), 1f) } @Test fun toPixelsOffset(){ val center = Coordinate(0.0, 0.0) val projection = AzimuthalEquidistantProjection(center, centerPixel = Vector2(10f, 10f)) assertVector(Vector2(10f, 10f), projection.toPixels(center), 0.001f) assertVector(Vector2(10f, 110f), projection.toPixels(center.plus(100.0, Bearing(0f))), 1f) assertVector(Vector2(10f, -90f), projection.toPixels(center.plus(100.0, Bearing(180f))), 1f) assertVector(Vector2(110f, 10f), projection.toPixels(center.plus(100.0, Bearing(90f))), 1f) assertVector(Vector2(-90f, 10f), projection.toPixels(center.plus(100.0, Bearing(270f))), 1f) } @Test fun toCoordinate() { val center = Coordinate(0.0, 0.0) val projection = AzimuthalEquidistantProjection(center) assertThat(center).isCloseTo(projection.toCoordinate(Vector2.zero), 1f) assertThat(center.plus(100.0, Bearing(0f))).isCloseTo(projection.toCoordinate(Vector2(0f, 100f)), 1f) assertThat(center.plus(100.0, Bearing(180f))).isCloseTo(projection.toCoordinate(Vector2(0f, -100f)), 1f) assertThat(center.plus(100.0, Bearing(90f))).isCloseTo(projection.toCoordinate(Vector2(100f, 0f)), 1f) assertThat(center.plus(100.0, Bearing(270f))).isCloseTo(projection.toCoordinate(Vector2(-100f, 0f)), 1f) } @Test fun toCoordinateScaled(){ val center = Coordinate(0.0, 0.0) val projection = AzimuthalEquidistantProjection(center, scale = 2f) assertThat(center).isCloseTo(projection.toCoordinate(Vector2.zero), 1f) assertThat(center.plus(100.0, Bearing(0f))).isCloseTo(projection.toCoordinate(Vector2(0f, 200f)), 1f) assertThat(center.plus(100.0, Bearing(180f))).isCloseTo(projection.toCoordinate(Vector2(0f, -200f)), 1f) assertThat(center.plus(100.0, Bearing(90f))).isCloseTo(projection.toCoordinate(Vector2(200f, 0f)), 1f) assertThat(center.plus(100.0, Bearing(270f))).isCloseTo(projection.toCoordinate(Vector2(-200f, 0f)), 1f) } @Test fun toCoordinateFlipped(){ val center = Coordinate(0.0, 0.0) val projection = AzimuthalEquidistantProjection(center, isYFlipped = true) assertThat(center).isCloseTo(projection.toCoordinate(Vector2.zero), 1f) assertThat(center.plus(100.0, Bearing(0f))).isCloseTo(projection.toCoordinate(Vector2(0f, -100f)), 1f) assertThat(center.plus(100.0, Bearing(180f))).isCloseTo(projection.toCoordinate(Vector2(0f, 100f)), 1f) assertThat(center.plus(100.0, Bearing(90f))).isCloseTo(projection.toCoordinate(Vector2(100f, 0f)), 1f) assertThat(center.plus(100.0, Bearing(270f))).isCloseTo(projection.toCoordinate(Vector2(-100f, 0f)), 1f) } @Test fun toCoordinateOffset(){ val center = Coordinate(0.0, 0.0) val projection = AzimuthalEquidistantProjection(center, centerPixel = Vector2(10f, 10f)) assertThat(center).isCloseTo(projection.toCoordinate(Vector2(10f, 10f)), 1f) assertThat(center.plus(100.0, Bearing(0f))).isCloseTo(projection.toCoordinate(Vector2(10f, 110f)), 1f) assertThat(center.plus(100.0, Bearing(180f))).isCloseTo(projection.toCoordinate(Vector2(10f, -90f)), 1f) assertThat(center.plus(100.0, Bearing(90f))).isCloseTo(projection.toCoordinate(Vector2(110f, 10f)), 1f) assertThat(center.plus(100.0, Bearing(270f))).isCloseTo(projection.toCoordinate(Vector2(-90f, 10f)), 1f) } }
12
Kotlin
4
8
0b29079346334c0e6c86d9414874df9b4415f001
5,700
sol
MIT License
app/src/main/java/com/rk/xededitor/MainActivity/treeview2/PrepareRecyclerView.kt
RohitKushvaha01
761,046,569
false
{"Java": 1999002, "Kotlin": 439352}
package com.rk.xededitor.MainActivity.treeview2 import android.view.View import android.view.ViewGroup import android.widget.HorizontalScrollView import android.widget.LinearLayout import androidx.recyclerview.widget.RecyclerView import com.rk.xededitor.MainActivity.MainActivity import com.rk.xededitor.Settings.SettingsData class PrepareRecyclerView(val activity: MainActivity) { companion object { val recyclerViewId = 428699 } init { with(activity) { val holder = holder(this) val linearLayout = LinearLayout(this).apply { layoutParams = ViewGroup.LayoutParams( ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT ).apply { if (!SettingsData.getBoolean(activity, "diagonalScroll", false)) { setPadding(0, 0, dpToPx(54), dpToPx(5)) } else { setPadding(0, 0, dpToPx(54), dpToPx(60)) } } } val recyclerView = RecyclerView(this).apply { id = recyclerViewId layoutParams = ViewGroup.MarginLayoutParams( ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT ).apply { if (!SettingsData.getBoolean(activity, "diagonalScroll", false)) { setMargins(0, dpToPx(10), 0, 0) } else { setMargins(0, dpToPx(10), 0, dpToPx(60)) } } visibility = View.GONE } linearLayout.addView(recyclerView) holder.addView(linearLayout) activity.binding.maindrawer.addView(holder) } } fun holder(activity: MainActivity): ViewGroup { if (!SettingsData.getBoolean(activity, "diagonalScroll", false)) { val hsv = HorizontalScrollView(activity).apply { layoutParams = ViewGroup.MarginLayoutParams( ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT ) isHorizontalScrollBarEnabled = false } return hsv } val dsv = DiagonalScrollView(activity).apply { layoutParams = ViewGroup.MarginLayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT ).apply { setMargins(0, dpToPx(10), 0, 0) } } return dsv } fun dpToPx(dp: Int): Int { val density = activity.resources.displayMetrics.density return (dp * density).toInt() } }
9
Java
13
234
5695ec9af9b7af641b68ebb5c4a44ad0f677af07
2,372
Xed-Editor
MIT License
smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/ClientConfigProperty.kt
kggilmer
464,574,719
true
{"Kotlin": 1738709, "Shell": 372}
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ package software.amazon.smithy.kotlin.codegen.rendering import software.amazon.smithy.codegen.core.Symbol import software.amazon.smithy.kotlin.codegen.core.* import software.amazon.smithy.kotlin.codegen.model.boxed import software.amazon.smithy.kotlin.codegen.model.buildSymbol import software.amazon.smithy.kotlin.codegen.model.defaultValue import software.amazon.smithy.kotlin.codegen.model.namespace /** * Represents a service client config property to be added to the generated client * * e.g. * * ``` * val myProp = ConfigProperty { * symbol = buildSymbol { ... } * documentation = "my property documentation" * addBaseClass(myBaseClass) * } * ``` */ class ClientConfigProperty private constructor(builder: Builder) { /** * The symbol (type) for the property * * NOTE: Use the extension properties on Symbol.Builder to set additional properties: * e.g. * ``` * val symbol = Symbol.builder() * .nullable = true // mark the symbol as nullable * .defaultValue("foo") // set the default value for the property * .build() * ``` */ val symbol: Symbol = requireNotNull(builder.symbol) /** * Help text to be rendered for the property */ val documentation: String? = builder.documentation /** * The name of the property to render to config */ val propertyName: String = builder.name ?: symbol.name.replaceFirstChar { c -> c.lowercaseChar() } /** * Additional base classes config should inherit from * * NOTE: Adding 1 or more base classes will implicitly render the property with an `override` modifier */ val baseClass: Symbol? = builder.baseClass /** * The configuration property type. This controls how the property is constructed and rendered */ val propertyType: ClientConfigPropertyType = builder.propertyType /** * Additional symbols that should be imported when this property is generated. This is useful for * example when the [symbol] type has is an interface and has a default or constant value that * implements that type. The default value symbol also needs imported. */ val additionalImports: List<Symbol> = builder.additionalImports /** * Flag indicating if this property stems from some base class and needs an override modifier when rendered */ internal val requiresOverride: Boolean get() = baseClass != null companion object { operator fun invoke(block: Builder.() -> Unit): ClientConfigProperty = Builder().apply(block).build() /** * Convenience init for an integer symbol. * @param name The property name * @param defaultValue The default value the config property should have if not set (if not specified the * parameter is assumed nullable) * @param documentation Help text to render as documentation for the property * @param baseClass Base class the config class should inherit from (assumes this property * stems from this type) */ fun Int( name: String, defaultValue: Int? = null, documentation: String? = null, baseClass: Symbol? = null, ): ClientConfigProperty = builtInProperty(name, builtInSymbol("Int", defaultValue?.toString()), documentation, baseClass) /** * Convenience init for a boolean symbol. * @param name The property name * @param defaultValue The default value the config property should have if not set (if not specified the * parameter is assumed nullable) * @param documentation Help text to render as documentation for the property * @param baseClass Base class the config class should inherit from (assumes this property * stems from this type) */ fun Boolean( name: String, defaultValue: Boolean? = null, documentation: String? = null, baseClass: Symbol? = null, ): ClientConfigProperty = builtInProperty(name, builtInSymbol("Boolean", defaultValue?.toString()), documentation, baseClass) /** * Convenience init for a string symbol. * @param name The property name * @param defaultValue The default value the config property should have if not set (if not specified the * parameter is assumed nullable) * @param documentation Help text to render as documentation for the property * @param baseClass Base class the config class should inherit from (assumes this property * stems from this type) */ fun String( name: String, defaultValue: String? = null, documentation: String? = null, baseClass: Symbol? = null, ): ClientConfigProperty = builtInProperty(name, builtInSymbol("String", defaultValue), documentation, baseClass) } class Builder { var symbol: Symbol? = null // override the property name (defaults to symbol name) var name: String? = null var documentation: String? = null var baseClass: Symbol? = null var propertyType: ClientConfigPropertyType = ClientConfigPropertyType.SymbolDefault var additionalImports: List<Symbol> = emptyList() fun build(): ClientConfigProperty = ClientConfigProperty(this) } } /** * Descriptor for how a configuration property is rendered when the configuration is built */ sealed class ClientConfigPropertyType { /** * A property type that uses the symbol type and builder symbol directly */ object SymbolDefault : ClientConfigPropertyType() /** * Specifies that the value should be populated with a constant value that cannot be overridden in the builder. * These are effectively read-only properties that will show up in the configuration type but not the builder. * * @param value the value to assign to the property at construction time */ data class ConstantValue(val value: String) : ClientConfigPropertyType() /** * A configuration property that is required to be set (i.e. not null). * If the property is not provided in the builder then an IllegalArgumentException is thrown * * @param message The exception message to throw if the property is null, if not set a message is generated * automatically based on the property name */ data class Required(val message: String? = null) : ClientConfigPropertyType() /** * A configuration property that is required but has a default value. This has the same semantics of [Required] * but instead of an exception the default value will be used when not provided in the builder. * * @param default the value to assign if the corresponding builder property is null */ data class RequiredWithDefault(val default: String) : ClientConfigPropertyType() } private fun builtInSymbol(symbolName: String, defaultValue: String?): Symbol { val builder = Symbol.builder() .name(symbolName) if (defaultValue != null) { builder.defaultValue(defaultValue) } else { builder.boxed() } return builder.build() } private fun builtInProperty( name: String, symbol: Symbol, documentation: String?, baseClass: Symbol?, ): ClientConfigProperty = ClientConfigProperty { this.symbol = symbol this.name = name this.documentation = documentation this.baseClass = baseClass } /** * Common client runtime related config properties */ object KotlinClientRuntimeConfigProperty { val HttpClientEngine: ClientConfigProperty val IdempotencyTokenProvider: ClientConfigProperty val RetryStrategy: ClientConfigProperty val SdkLogMode: ClientConfigProperty val EndpointResolver: ClientConfigProperty init { val httpClientConfigSymbol = buildSymbol { name = "HttpClientConfig" namespace(KotlinDependency.HTTP, "config") } HttpClientEngine = ClientConfigProperty { symbol = RuntimeTypes.Http.Engine.HttpClientEngine baseClass = httpClientConfigSymbol documentation = """ Override the default HTTP client engine used to make SDK requests (e.g. configure proxy behavior, timeouts, concurrency, etc) """.trimIndent() } IdempotencyTokenProvider = ClientConfigProperty { symbol = buildSymbol { name = "IdempotencyTokenProvider" namespace(KotlinDependency.CORE, "config") } baseClass = buildSymbol { name = "IdempotencyTokenConfig" namespace(KotlinDependency.CORE, "config") } documentation = """ Override the default idempotency token generator. SDK clients will generate tokens for members that represent idempotent tokens when not explicitly set by the caller using this generator. """.trimIndent() } RetryStrategy = ClientConfigProperty { symbol = RuntimeTypes.Core.Retries.RetryStrategy name = "retryStrategy" documentation = """ The [RetryStrategy] implementation to use for service calls. All API calls will be wrapped by the strategy. """.trimIndent() val retryStrategyBlock = """ run { val strategyOptions = StandardRetryStrategyOptions.Default val tokenBucket = StandardRetryTokenBucket(StandardRetryTokenBucketOptions.Default) val delayer = ExponentialBackoffWithJitter(ExponentialBackoffWithJitterOptions.Default) StandardRetryStrategy(strategyOptions, tokenBucket, delayer) } """.trimIndent() propertyType = ClientConfigPropertyType.ConstantValue(retryStrategyBlock) additionalImports = listOf( RuntimeTypes.Core.Retries.Impl.StandardRetryStrategy, RuntimeTypes.Core.Retries.Impl.StandardRetryStrategyOptions, RuntimeTypes.Core.Retries.Impl.StandardRetryTokenBucket, RuntimeTypes.Core.Retries.Impl.StandardRetryTokenBucketOptions, RuntimeTypes.Core.Retries.Impl.ExponentialBackoffWithJitter, RuntimeTypes.Core.Retries.Impl.ExponentialBackoffWithJitterOptions, ) } SdkLogMode = ClientConfigProperty { symbol = buildSymbol { name = "SdkLogMode" namespace(KotlinDependency.CORE, "client") defaultValue = "SdkLogMode.Default" nullable = false } baseClass = buildSymbol { name = "SdkClientConfig" namespace(KotlinDependency.CORE, "config") } documentation = """ Configure events that will be logged. By default clients will not output raw requests or responses. Use this setting to opt-in to additional debug logging. This can be used to configure logging of requests, responses, retries, etc of SDK clients. **NOTE**: Logging of raw requests or responses may leak sensitive information! It may also have performance considerations when dumping the request/response body. This is primarily a tool for debug purposes. """.trimIndent() } EndpointResolver = ClientConfigProperty { symbol = RuntimeTypes.Http.Operation.EndpointResolver documentation = """ Set the [${symbol!!.fullName}] used to resolve service endpoints. Operation requests will be made against the endpoint returned by the resolver. """.trimIndent() propertyType = ClientConfigPropertyType.Required() } } }
0
Kotlin
0
0
df9c0461526e2c74e53407687f2310f463dd486d
12,181
smithy-kotlin
Apache License 2.0
app/src/main/java/com/steve_md/smartmkulima/ui/fragments/others/crop_cycle/CropCycleFinancialRecordsAnalyticsFragment.kt
MuindiStephen
559,873,955
false
{"Kotlin": 629551, "Java": 83493, "CMake": 595, "C++": 247}
package com.steve_md.smartmkulima.ui.fragments.others.crop_cycle import android.content.Intent import android.os.Bundle import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.AdapterView import android.widget.ArrayAdapter import androidx.appcompat.app.AppCompatActivity import androidx.core.os.bundleOf import androidx.core.view.isVisible import androidx.fragment.app.activityViewModels import androidx.fragment.app.viewModels import androidx.lifecycle.Observer import androidx.lifecycle.lifecycleScope import androidx.navigation.fragment.findNavController import androidx.recyclerview.widget.LinearLayoutManager import com.steve_md.smartmkulima.R import com.steve_md.smartmkulima.adapter.FarmAnalyticsRecordListAdapter import com.steve_md.smartmkulima.adapter.others.LocalFarmCycleAdapter import com.steve_md.smartmkulima.databinding.FragmentCropCycleFinancialRecordsAnalyticsBinding import com.steve_md.smartmkulima.model.financialdata.FarmFinanceExpenseRecords import com.steve_md.smartmkulima.model.financialdata.FarmFinancialDataSummary import com.steve_md.smartmkulima.ui.activities.DetailedFarmCycleActivity import com.steve_md.smartmkulima.utils.displaySnackBar import com.steve_md.smartmkulima.viewmodel.MainViewModel import dagger.hilt.android.AndroidEntryPoint import kotlinx.coroutines.launch import timber.log.Timber @AndroidEntryPoint class CropCycleFinancialRecordsAnalyticsFragment : Fragment() { private lateinit var binding: FragmentCropCycleFinancialRecordsAnalyticsBinding private lateinit var farmAnalyticsRecordListAdapter: FarmAnalyticsRecordListAdapter private var farmSummaryList = mutableListOf<FarmFinancialDataSummary>() private val viewModel: MainViewModel by activityViewModels() override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? ): View { binding = FragmentCropCycleFinancialRecordsAnalyticsBinding.inflate( inflater, container, false ) return binding.root } override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) setUpUi() fetchFirstAvailableCropCycles() setUpRecyclerView() fetchAllFarmSummaryRecordsAvailable() // Observe Changes in the selected crop viewModel.selectedCrop.observe(viewLifecycleOwner) { cropName -> cropName?.let { binding.enterTotalCosts.isEnabled = true binding.enterSales.isEnabled = true binding.calculatedRevenueTl.isEnabled = true } ?: run { binding.calculatedRevenueTl.isEnabled = false binding.enterTotalCosts.isEnabled = false binding.calculatedRevenueTl.isEnabled = false } } // Observe total expenses and set it in the expenses TextInputLayout viewModel.totalExpenseForCrop.observe(viewLifecycleOwner) { expenses -> expenses?.let { binding.inputTotalCosts.setText(it.toString()) } } viewModel.totalSalesForCrop.observe(viewLifecycleOwner) { sales -> sales?.let { binding.inputSales.setText(it.toString()) } } // Observe calculated revenue viewModel.calculatedRevenue.observe(viewLifecycleOwner, Observer { revenue -> binding.inputCalculatedRevenue.setText(revenue?.toString() ?: "0.0") }) } private fun setUpRecyclerView() { // Set the layout manager binding.recyclerView3.layoutManager = LinearLayoutManager(requireContext()) // Initialize the adapter farmAnalyticsRecordListAdapter = FarmAnalyticsRecordListAdapter( FarmAnalyticsRecordListAdapter.OnClickListener { farmFinancialSummary -> Timber.tag("...Created-Farm-Financial-Records....").e(farmFinancialSummary.toString()) Timber.i("=====Checking=======>: ${farmFinancialSummary.nameOfCropCycle} cycle") val directions = CropCycleFinancialRecordsAnalyticsFragmentDirections .actionCropCycleFinancialRecordsAnalyticsFragmentToViewFarmFinancialRecordsSummaryInDetailsFragment(farmFinancialSummary) findNavController().navigate(directions) /* findNavController().navigate( R.id.viewFarmFinancialRecordsSummaryInDetailsFragment, bundleOf( Pair("cropCycleName","${farmFinancialSummary.nameOfCropCycle}"), Pair("totalInputs","${farmFinancialSummary.totalInputCosts}"), Pair("totalSales","${farmFinancialSummary.totalRevenueGenerated}") ) ) */ }) } private fun fetchAllFarmSummaryRecordsAvailable() { lifecycleScope.launch { viewModel.allSummaryRecords.observe(viewLifecycleOwner) { summary -> if (summary.isNotEmpty()) { binding.textViewNoFinancialRecords.isVisible = false farmSummaryList.clear() farmSummaryList.addAll(summary) farmAnalyticsRecordListAdapter.submitList(farmSummaryList) binding.recyclerView3.adapter = farmAnalyticsRecordListAdapter } else { binding.textViewNoFinancialRecords.isVisible = true } } } } // submit this list to the spinner private fun fetchFirstAvailableCropCycles() { lifecycleScope.launch { viewModel.allCycles.observe(viewLifecycleOwner) { cycles -> if (cycles.isNotEmpty()) { val allCropCycles = cycles.map { it.cropName } val adapter = ArrayAdapter<String>(this@CropCycleFinancialRecordsAnalyticsFragment.requireContext(), android.R.layout.simple_spinner_item, allCropCycles) adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item) binding.spinnerNameOfCycle.adapter = adapter Timber.d("Crop cycles are available and in progress...Update any records") binding.spinnerNameOfCycle.onItemSelectedListener = object : AdapterView.OnItemSelectedListener { override fun onItemSelected(parent: AdapterView<*>, view: View?, position: Int, id: Long) { val selectedCropName = parent.getItemAtPosition(position) as String viewModel.setSelectedCrop(selectedCropName) // Update ViewModel with the selected crop name } override fun onNothingSelected(parent: AdapterView<*>) { // Do nothing if nothing is selected Timber.d("No crop cycle found, nothing selected for financial analysis.") } } } else { displaySnackBar("No crop cycle found, you cannot create any records.") } } } } private fun setUpUi() { binding.toolbarCropCycleAnalytics.setNavigationOnClickListener { findNavController().navigateUp() } (activity as AppCompatActivity).supportActionBar?.hide() binding.buttonConfirmFinancialAnalytics.setOnClickListener { if (validateInputs()) { val summary = FarmFinancialDataSummary ( nameOfCropCycle = binding.spinnerNameOfCycle.selectedItem.toString(), totalInputCosts = binding.inputTotalCosts.text.toString(), totalRevenueGenerated = binding.inputSales.text.toString() ) lifecycleScope.launch { try { viewModel.addFarmSummaryRecords(summary) displaySnackBar("New Farm Record for Analysis Created") Timber.d("Request Succeeded") } catch (e: Exception) { displaySnackBar("Your Request Has Failed.") Timber.d("Request Failed.") } } } } } private fun validateInputs(): Boolean { return binding.inputTotalCosts.text.isNullOrEmpty().not().also { if (!it) binding.enterTotalCosts.error = "Invalid" } && binding.inputSales.text.isNullOrEmpty().not().also { if (!it) binding.enterSales.error = "Invalid" } } }
1
Kotlin
1
5
812cf78cd77301cbc96fbeecd347c520cb973b53
8,835
Agri-Sasa
MIT License
app/src/main/java/com/whatshelp/ui/chat/ChatFragment.kt
ktvipin27
419,768,934
false
{"Kotlin": 107836}
package com.whatshelp.ui.chat import android.app.AlertDialog import android.graphics.Color import android.os.Bundle import android.view.Menu import android.view.MenuInflater import android.view.MenuItem import android.view.View import androidx.fragment.app.activityViewModels import androidx.fragment.app.viewModels import androidx.lifecycle.lifecycleScope import androidx.navigation.fragment.findNavController import com.github.ktvipin27.showcasebubble.BubbleShowCase import com.github.ktvipin27.showcasebubble.BubbleShowCaseBuilder import com.github.ktvipin27.showcasebubble.BubbleShowCaseListener import com.github.ktvipin27.showcasebubble.BubbleShowCaseSequence import com.whatshelp.R import com.whatshelp.data.model.WhatsApp import com.whatshelp.data.model.WhatsAppBusiness import com.whatshelp.data.model.WhatsAppNumber import com.whatshelp.databinding.FragmentChatBinding import com.whatshelp.manager.analytics.AnalyticsEvent import com.whatshelp.manager.rating.RatingsManager import com.whatshelp.manager.share.ShareManager import com.whatshelp.manager.theme.ThemeManager import com.whatshelp.manager.whatsapp.WhatsAppManager import com.whatshelp.ui.MainViewModel import com.whatshelp.ui.base.DBFragment import com.whatshelp.util.Constants.EXTRA_MESSAGE import com.whatshelp.util.Constants.EXTRA_NUMBER import com.whatshelp.util.Constants.Preferences.PREF_SHOWCASE_CHAT_APP import com.whatshelp.util.Constants.Preferences.PREF_SHOWCASE_CHAT_MESSAGE import com.whatshelp.util.Constants.Preferences.PREF_SHOWCASE_CHAT_NUMBER import com.whatshelp.util.NumberUtil import com.whatshelp.util.hideKeyboard import com.whatshelp.util.themeColor import com.whatshelp.util.toast import dagger.hilt.android.AndroidEntryPoint import kotlinx.coroutines.launch import javax.inject.Inject @AndroidEntryPoint class ChatFragment : DBFragment<FragmentChatBinding, ChatViewModel>() { override val viewModel: ChatViewModel by viewModels() override fun getLayoutResource(): Int = R.layout.fragment_chat private val mainViewModel: MainViewModel by activityViewModels() @Inject lateinit var numberUtil: NumberUtil @Inject lateinit var whatsAppManager: WhatsAppManager @Inject lateinit var ratingsManager: RatingsManager @Inject lateinit var shareManager: ShareManager @Inject lateinit var themeManager: ThemeManager private val navController by lazy { findNavController() } override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) setHasOptionsMenu(true) binding.tilNumber.setEndIconOnClickListener { analyticsManager.logEvent(AnalyticsEvent.OpenLogsAndHistory) navController.navigate(R.id.action_chatFragment_to_historyFragment) } binding.tilMessage.setEndIconOnClickListener { navController.navigate(R.id.action_chatFragment_to_messagesFragment) analyticsManager.logEvent(AnalyticsEvent.QuickMessage.Open) } binding.ccp.run { registerCarrierNumberEditText(binding.etNumber) setOnCountryChangeListener { analyticsManager.logEvent(AnalyticsEvent.ChangeCountry(selectedCountryCode, selectedCountryName)) } } binding.etNumber.setOnPasteListener { text -> setTextFromClipboard(text) } binding.btnSend.setOnClickListener { onClickAction(ChatAction.OPEN_CHAT) } binding.btnShareLink.setOnClickListener { onClickAction(ChatAction.SHARE_LINK) } binding.btg.addOnButtonCheckedListener { group, checkedId, isChecked -> analyticsManager.logEvent(AnalyticsEvent.ChangeChatApp) if (checkedId == R.id.btn_whatsapp) viewModel.setSelectedApp(WhatsApp) else viewModel.setSelectedApp(WhatsAppBusiness) } initObservers() initShowCase() } inner class ShowCaseListener(val dismissListener: () -> Unit) : BubbleShowCaseListener { override fun onBackgroundDimClick(bubbleShowCase: BubbleShowCase) { bubbleShowCase.dismiss() dismissListener() } override fun onBubbleClick(bubbleShowCase: BubbleShowCase) { bubbleShowCase.dismiss() dismissListener() } override fun onCloseActionImageClick(bubbleShowCase: BubbleShowCase) { bubbleShowCase.dismiss() dismissListener() } override fun onTargetClick(bubbleShowCase: BubbleShowCase) { bubbleShowCase.dismiss() dismissListener() } } private fun initShowCase() { val showCaseForNumber = BubbleShowCaseBuilder(requireActivity()) .title(getString(R.string.showcase_title_chat_number)) .description(getString(R.string.showcase_description_chat_number)) .arrowPosition(BubbleShowCase.ArrowPosition.TOP) .backgroundColor(requireContext().themeColor(R.attr.colorPrimary)) .textColor(Color.WHITE) .showOnce(PREF_SHOWCASE_CHAT_NUMBER) .listener(ShowCaseListener { }) .targetView(binding.tilNumber) val showCaseForMessage = BubbleShowCaseBuilder(requireActivity()) .title(getString(R.string.showcase_title_chat_message)) .description(getString(R.string.showcase_description_chat_message)) .arrowPosition(BubbleShowCase.ArrowPosition.TOP) .backgroundColor(requireContext().themeColor(R.attr.colorPrimary)) .textColor(Color.WHITE) .showOnce(PREF_SHOWCASE_CHAT_MESSAGE) .listener(ShowCaseListener { }) .targetView(binding.tilMessage) val showCaseForAppToggle = BubbleShowCaseBuilder(requireActivity()) .title(getString(R.string.showcase_title_chat_app_change)) .description(getString(R.string.showcase_description_chat_app_change)) .arrowPosition(BubbleShowCase.ArrowPosition.TOP) .backgroundColor(requireContext().themeColor(R.attr.colorPrimary)) .textColor(Color.WHITE) .showOnce(PREF_SHOWCASE_CHAT_APP) .listener(ShowCaseListener { }) .targetView(binding.btg) BubbleShowCaseSequence() .addShowCase(showCaseForNumber) .addShowCase(showCaseForMessage) .addShowCase(showCaseForAppToggle) .show() } private fun onClickAction(action: ChatAction) { with(binding.ccp) { viewModel.onClickAction( action, isValidFullNumber, selectedCountryCode, fullNumber, formattedFullNumber ) } } private fun initObservers() { viewModel.state.observe(viewLifecycleOwner, { state -> when (state) { is ChatState.OpenChat -> { binding.root.hideKeyboard() whatsAppManager.openChat(state.number, state.message, state.app) analyticsManager.logEvent(AnalyticsEvent.OpenWhatsApp(state.app.name.lowercase())) } is ChatState.ShareLink -> { binding.root.hideKeyboard() whatsAppManager.shareLink(state.number, state.message) analyticsManager.logEvent(AnalyticsEvent.ShareChatLink) } ChatState.InvalidNumber -> toast(R.string.error_invalid_number) ChatState.InvalidData -> toast(R.string.error_no_data) } }) navController.currentBackStackEntry?.savedStateHandle?.let { handle -> handle.getLiveData<String>(EXTRA_MESSAGE).observe( viewLifecycleOwner ) { message -> handle.remove<String>(EXTRA_MESSAGE) binding.etMessage.setText(message) } handle.getLiveData<String>(EXTRA_NUMBER).observe( viewLifecycleOwner ) { number -> handle.remove<String>(EXTRA_NUMBER) if (number.startsWith("+")) binding.ccp.fullNumber = number else binding.etNumber.setText(number) } } mainViewModel.copiedNumberLiveData.observe(viewLifecycleOwner, { wan -> wan?.let { showCopiedNumberInfoDialog(wan) } }) } private fun showCopiedNumberInfoDialog( wan: WhatsAppNumber, ) { AlertDialog .Builder(requireContext()) .setMessage(getString(R.string.message_copied_number, wan.fullNumber)) .setPositiveButton(R.string.action_use) { p0, _ -> p0.dismiss() wan.code?.let { code -> binding.ccp.setCountryForPhoneCode(code) } binding.etNumber.setText(wan.number) analyticsManager.logEvent(AnalyticsEvent.CopiedNumber.Use) } .setNegativeButton(R.string.action_ignore) { p0, _ -> p0.dismiss() analyticsManager.logEvent(AnalyticsEvent.CopiedNumber.Ignore) } .setOnDismissListener { mainViewModel.resetCopiedNumber() } .show() .also { analyticsManager.logEvent(AnalyticsEvent.CopiedNumber.Display) } } private fun setTextFromClipboard(text: String) { lifecycleScope.launch { when (val numberValidity = numberUtil.isValidFullNumber(text)) { is NumberUtil.NumberValidity.ValidNumber -> { binding.ccp.setCountryForPhoneCode(numberValidity.code) binding.etNumber.setText(numberValidity.number) } is NumberUtil.NumberValidity.InvalidCountryCode -> binding.etNumber.setText( numberValidity.number) NumberUtil.NumberValidity.InvalidNumber -> { } } } } override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) { inflater.inflate(R.menu.menu_main, menu) super.onCreateOptionsMenu(menu, inflater) } override fun onOptionsItemSelected(item: MenuItem): Boolean { when (item.itemId) { R.id.action_about -> { navController.navigate(R.id.action_chatFragment_to_aboutFragment) analyticsManager.logEvent(AnalyticsEvent.About.Open) } R.id.action_feedback -> { navController.navigate(R.id.action_chatFragment_to_feedbackFragment) analyticsManager.logEvent(AnalyticsEvent.Feedback.Open) } R.id.action_rate -> { ratingsManager.rateApp() analyticsManager.logEvent(AnalyticsEvent.RateApp) } R.id.action_share -> { shareManager.shareApp() analyticsManager.logEvent(AnalyticsEvent.ShareApp) } R.id.action_theme_dark -> { themeManager.setDarkTheme() analyticsManager.logEvent(AnalyticsEvent.ChangeTheme) } R.id.action_theme_light -> { themeManager.setLightTheme() analyticsManager.logEvent(AnalyticsEvent.ChangeTheme) } R.id.action_theme_auto -> { themeManager.setDefaultTheme() analyticsManager.logEvent(AnalyticsEvent.ChangeTheme) } } return super.onOptionsItemSelected(item) } override fun onDestroyView() { binding.ccp.deregisterCarrierNumberEditText() super.onDestroyView() } }
0
Kotlin
0
0
96c500f587b20d5566000aa978e9f340661c2434
11,702
WhatsHelp
Apache License 2.0
app/src/test/kotlin/com/example/videogames/IntegrationTests.kt
raoulsson
600,711,983
false
null
package com.example.videogames /** * @see: https://www.baeldung.com/kotlin/spring-boot-testing */ /* @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) @ActiveProfiles("unit-testing") class IntegrationTests(@Autowired val restTemplate: TestRestTemplate) { @BeforeAll fun setup() { println(">> Setup") } @Test fun `Assert videogames page title, content and status code`() { println(">> Assert videogames page title, content and status code") val entity = restTemplate.getForEntity<String>("/") assertThat(entity.statusCode).isEqualTo(HttpStatus.OK) assertThat(entity.body).contains("<h2>Blog Unit Testing</h2>", "Lorem") } @Test fun `Assert article page title, content and status code`() { println(">> Assert article page title, content and status code") val title = "Lorem" val entity = restTemplate.getForEntity<String>("/article/${title.toSlug()}") assertThat(entity.statusCode).isEqualTo(HttpStatus.OK) assertThat(entity.body).contains(title, "Lorem", "dolor sit amet") } @AfterAll fun teardown() { println(">> Tear down") } }*/
0
Kotlin
0
0
0999cfbdf83a6a13681757ea1f502cd4799fd019
1,099
gradle-kotlin-spring
MIT License
kotlin-typescript/src/main/generated/typescript/OuterExpressionKinds.kt
JetBrains
93,250,841
false
null
// Automatically generated - do not modify! @file:Suppress( "NAME_CONTAINS_ILLEGAL_CHARS", ) package typescript // language=JavaScript @JsName("""(/*union*/{Parentheses: 1, TypeAssertions: 2, NonNullAssertions: 4, PartiallyEmittedExpressions: 8, Assertions: 6, All: 15, ExcludeJSDocTypeAssertion: 16}/*union*/)""") external enum class OuterExpressionKinds { Parentheses, TypeAssertions, NonNullAssertions, PartiallyEmittedExpressions, Assertions, All, ExcludeJSDocTypeAssertion, ; }
10
Kotlin
145
983
7ef1028ba3e0982dc93edcdfa6ee1edb334ddf35
523
kotlin-wrappers
Apache License 2.0
apps/etterlatte-behandling/src/test/kotlin/DatabaseContextTest.kt
navikt
417,041,535
false
{"Kotlin": 6707217, "TypeScript": 1675603, "Handlebars": 25499, "Shell": 12438, "HTML": 1734, "CSS": 598, "PLpgSQL": 556, "Dockerfile": 547}
package no.nav.etterlatte import io.mockk.mockk import kotliquery.Session import no.nav.etterlatte.common.ConnectionAutoclosing import no.nav.etterlatte.libs.ktor.token.HardkodaSystembruker import java.sql.Connection import javax.sql.DataSource /* Denne gjør at vi slipper å wrapper alle db kalle med instransaction i tester som kaller db metoder der man ikke egentlig vil bruke intransaction Har vi flyter som kun bruker daoer som en vanlig sb flyt så bruker man DatabaseContext.kt i testen sin Kontekst.set */ class DatabaseContextTest( private val ds: DataSource, ) : DatabaseKontekst { override fun activeTx(): Connection = ds.connection override fun harIntransaction(): Boolean = true override fun <T> inTransaction(block: () -> T): T { // NOOPP return block() } } class ConnectionAutoclosingTest( val dataSource: DataSource, ) : ConnectionAutoclosing() { private val context = Context(Self(this::class.java.simpleName), DatabaseContextTest(dataSource), mockk(), HardkodaSystembruker.testdata) override fun <T> hentConnection(block: (connection: Connection) -> T): T = if (manglerKontekst()) { Kontekst.set(context) dataSource.connection.use { block(it) } } else { val activeTx = DatabaseContextTest(dataSource).activeTx() block(activeTx).also { activeTx.close() } } override fun <T> hentKotliquerySession(block: (session: Session) -> T): T = hentConnection { connection: Connection -> block(Session(kotliquery.Connection(connection))) } }
8
Kotlin
0
6
e84b73f3decfa2cadfb02364fbd71ca96efbd948
1,654
pensjon-etterlatte-saksbehandling
MIT License
redwood-treehouse-host/src/commonTest/kotlin/app/cash/redwood/treehouse/FakeTreehouseWidgetSystem.kt
cashapp
305,409,146
false
null
/* * Copyright (C) 2023 Square, 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 * * 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 app.cash.redwood.treehouse import app.cash.redwood.protocol.host.ProtocolMismatchHandler import kotlinx.serialization.json.Json internal class FakeTreehouseWidgetSystem : TreehouseView.WidgetSystem<FakeWidget> { override fun widgetFactory( json: Json, protocolMismatchHandler: ProtocolMismatchHandler, ) = FakeHostProtocol() }
117
null
73
1,648
3f14e622c2900ec7e0dfaff5bd850c95a7f29937
950
redwood
Apache License 2.0
app/src/test/java/com/example/sportssocial/AthleteRepositoryUnitTest.kt
bradlekr7
510,032,874
false
{"Kotlin": 75790}
package com.example.sportssocial import com.example.sportssocial.data.api.RetrofitClient import com.example.sportssocial.data.model.dao.AthleteDao import com.example.sportssocial.data.model.dao.NewsArticleDao import com.example.sportssocial.data.repo.AthleteRepository import com.example.sportssocial.data.repo.FirestoreRepo import org.junit.Before import org.junit.runner.RunWith import org.junit.runners.JUnit4 import org.mockito.Mock import org.mockito.MockitoAnnotations @RunWith(JUnit4::class) class AthleteRepositoryUnitTest { lateinit var athleteRepo: AthleteRepository @Mock lateinit var dao: AthleteDao @Mock lateinit var repo: FirestoreRepo @Before() fun setup() { repo = AthleteRepository(context = ) MockitoAnnotations.openMocks(this) } }
0
Kotlin
0
0
c04a3100b89e4b706a9d6c4d31ad9df7dc8b7167
811
P3w-CameraIntegration
MIT License
app/src/main/java/com/example/androiddevchallenge/ui/detail/DetailScreen.kt
sergiomeza
343,928,200
false
null
package com.example.androiddevchallenge.ui.detail import androidx.compose.foundation.layout.* import androidx.compose.foundation.lazy.LazyRow import androidx.compose.foundation.lazy.items import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.verticalScroll import androidx.compose.material.* import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.vector.ImageVector import androidx.compose.ui.res.vectorResource import androidx.compose.ui.text.TextStyle import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.sp import androidx.navigation.NavController import com.example.androiddevchallenge.R import com.example.androiddevchallenge.data.model.Filter import com.example.androiddevchallenge.data.model.Puppy import com.example.androiddevchallenge.ui.home.FilterChip import com.example.androiddevchallenge.ui.home.PuppyHeadImg import com.example.androiddevchallenge.ui.theme.customFontFamily import com.example.androiddevchallenge.ui.theme.purple500 import dev.chrisbanes.accompanist.insets.navigationBarsPadding import dev.chrisbanes.accompanist.insets.statusBarsPadding @ExperimentalStdlibApi @Composable fun DetailScreen(navController: NavController, puppy: Puppy) { val scroll = rememberScrollState(0) var height = 0 Scaffold( backgroundColor = MaterialTheme.colors.background, ) { Surface(Modifier .navigationBarsPadding(), color = MaterialTheme.colors.background) { Column( Modifier .fillMaxWidth() ) { Box { Column { if ( scroll.value < 265 ) { height = (350 - scroll.value) } PuppyHeadImg(puppy = puppy, modifier = Modifier .height(height.dp) .statusBarsPadding(), isDetail = true, navController = navController, scroll = height ) Column(modifier = Modifier.verticalScroll(scroll)) { Box( modifier = Modifier.padding(16.dp) ){ Column { Text( text = "Description", style = TextStyle( fontWeight = FontWeight.Bold, fontFamily = customFontFamily, color = Color.DarkGray, fontSize = 20.sp ) ) Text( text = puppy.description ?: "", style = TextStyle( fontWeight = FontWeight.Normal, fontFamily = customFontFamily, color = Color.Gray, fontSize = 16.sp ), modifier = Modifier.padding(bottom = 16.dp) ) } } Text( modifier = Modifier.padding(16.dp), text = "Puppy Tags", style = TextStyle( fontWeight = FontWeight.Bold, fontFamily = customFontFamily, color = Color.DarkGray, fontSize = 20.sp ) ) LazyRow( verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(8.dp), contentPadding = PaddingValues(start = 16.dp, end = 16.dp, bottom = 80.dp), modifier = Modifier .heightIn(min = 56.dp) ) { items(puppy.tags) { tag -> val filterTag = Filter(name = tag) FilterChip(filterTag) } } } } FloatingActionButton( modifier = Modifier .align(Alignment.BottomEnd) .padding(12.dp), onClick = {}, backgroundColor = purple500 ) { Icon( imageVector = ImageVector.vectorResource(id = R.drawable.ic_baseline_message_24), tint = Color.White, contentDescription = "Message Icon", modifier = Modifier .size(16.dp) ) } } } } } }
0
Kotlin
0
0
298c0217918ac18cead64eea7f7c36c1ce26f2d1
5,786
PuppiesChallengeWeek1
Apache License 2.0
main/src/main/kotlin/io/androidalatan/lifecycle/template/main/MainActivity.kt
android-alatan
606,930,016
false
null
package io.androidalatan.lifecycle.template.main import androidx.compose.runtime.Composable import io.androidalatan.lifecycle.handler.compose.activity.ComposeLifecycleDaggerActivity import io.androidalatan.lifecycle.handler.compose.cache.composeCached import javax.inject.Inject class MainActivity : ComposeLifecycleDaggerActivity() { @set:Inject var viewModel: MainActivityViewModel by composeCached() @Composable override fun contentView() = MainActivityUi.Content() }
0
Kotlin
0
1
325d2b639743899acbf6a5acb2c55f4dd410b466
489
LifecycleComponentTemplate
MIT License
ychat/src/commonTest/kotlin/co/yml/ychat/di/NetworkProviderTest.kt
yml-org
590,561,356
false
null
package co.yml.ychat.di import co.yml.ychat.di.provider.NetworkProvider import io.ktor.client.engine.mock.MockEngine import io.ktor.client.engine.mock.respond import io.ktor.client.request.request import io.ktor.http.Headers import io.ktor.http.HttpHeaders import io.ktor.http.HttpStatusCode import io.ktor.http.headersOf import kotlin.test.Test import kotlin.test.assertEquals import kotlinx.coroutines.runBlocking class NetworkProviderTest { @Test fun `on provideHttpClient should assert default request`() { // arrange var baseUrl = "" var headers: Headers? = null val apiKey = "tok123" val mockEngine = MockEngine { request -> baseUrl = request.url.toString() headers = request.headers respond( content = "This is a test", status = HttpStatusCode.OK, headers = headersOf(HttpHeaders.ContentType, "application/json") ) } // act runBlocking { NetworkProvider.provideHttpClient(mockEngine, apiKey).request() } // assert assertEquals("https://api.openai.com", baseUrl) assertEquals("Bearer tok123", headers?.get("Authorization")) } }
1
Kotlin
2
72
0da7ababedec465eefcdf3608b6c3e8f6dc36c16
1,235
ychat
Apache License 2.0
src/main/kotlin/com/lifly/schedule/desktop/logic/model/CourseBean.kt
sasaju
459,430,775
false
{"Kotlin": 196545}
package com.lifly.schedule.desktop.logic.model import org.jetbrains.exposed.dao.* import org.jetbrains.exposed.dao.id.EntityID import org.jetbrains.exposed.sql.Column import org.jetbrains.exposed.sql.Table /** 课程data类 * APP中极为关键的一个类 * @param campusName 校区 * @param color 颜色配置,实例:#ff51555 * @param colorIndex 为适配主题色,配置一个数字,数字代表一个colorList中的index,[[a,b,c], [a,b,c]] * @param removed 代表是否移除主题色的限制,如果为false-0,则使用colorIndex作为颜色依据,如果为true-1,则使用color作为颜色依据 * * 不过无论是开发难度和用户操作难度,实现脱离主题配置都十分的不容易,所以暂时放弃。 */ data class CourseBean( var campusName: String, var classDay: Int, var classSessions: Int, var classWeek: String, var continuingSession: Int, var courseName: String, var teacher: String, var teachingBuildName: String, var color: String, var colorIndex: Int = 0, var removed: Boolean = false ) object CourseBeans:Table(){ var campusName: Column<String> = varchar("campusName",20) var classDay:Column<Int> = integer("classDay") var classSessions: Column<Int> = integer("classSessions") var classWeek: Column<String> = varchar("classWeek",50) var continuingSession: Column<Int> = integer("continuingSession") var courseName: Column<String> = varchar("courseName",50) var teacher: Column<String> = varchar("teacher",50) var teachingBuildName: Column<String> = varchar("teachingBuildName",50) var color: Column<String> = varchar("color",50) var colorIndex: Column<Int> = integer("colorIndex") var removed: Column<Boolean> = bool("removed") override val primaryKey: PrimaryKey = PrimaryKey(classDay, classSessions, classWeek, continuingSession, courseName, teacher, teachingBuildName, color, colorIndex, removed) } fun getInitial(): List<CourseBean> { return listOf(CourseBean( campusName="五四路校区", classDay=3, classSessions=9, classWeek="111111111111110000000000", continuingSession=3, courseName="毛泽东思想与中国特色社会主义理论概论", teacher="刘卫萍* 耿金龙 ", teachingBuildName="第九教学楼402", color="#f0c239")) }
0
Kotlin
0
7
36b68d5fceb1ab8d696abb82001056ec6d21b040
2,051
ScheduleForDesktop
Apache License 2.0
src/commonMain/kotlin/org/mifek/wfc/utils/MiscellaneousExtensions.kt
JakubMifek
326,496,922
false
null
package org.mifek.wfc.utils import org.mifek.wfc.datastructures.Quadruple import kotlin.math.min import kotlin.random.Random /** * Product of int array elements */ fun IntArray.product(): Int { return this.reduce { acc, it -> acc * it } } fun IntArray.toIndex(sizes: IntArray): Int { var res = 0 var i = size - 1 for (size in sizes.reversed()) { res = res * size + this[i--] } return res } fun Int.toCoordinates(sizes: IntArray): IntArray { // X first, then Y, Z, ... We don't need the last dimension size val res = IntArray(sizes.size) var rest = this for (i in 0 until sizes.size - 1) { res[i] = rest % sizes[i] rest /= sizes[i] } res[res.size - 1] = rest return res } /** * Return index of random element based on given distribution */ fun DoubleArray.randomIndex(random: Random = Random.Default): Int { val sum = sum() val rand = random.nextDouble() * sum var partialSum = 0.0 for (i in 0 until size) { partialSum += this[i] if (partialSum > rand) { return i } } return size - 1 } /** * Converts this quadruple into a list. */ fun <T> Quadruple<T, T, T, T>.toList(): List<T> = listOf(first, second, third, fourth) @ExperimentalUnsignedTypes operator fun Quadruple<UByte, UByte, UByte, UByte>.plus(other: Quadruple<UByte, UByte, UByte, UByte>): Quadruple<UByte, UByte, UByte, UByte> { return Quadruple( min(first + other.first, 255u).toUByte(), min(second + other.second, 255u).toUByte(), min(third + other.third, 255u).toUByte(), min(fourth + other.fourth, 255u).toUByte() ) } @ExperimentalUnsignedTypes operator fun Quadruple<UByte, UByte, UByte, UByte>.div(value: Int): Quadruple<UByte, UByte, UByte, UByte> { return Quadruple( ((first + value.toUInt() - 1u) / value.toUInt()).toUByte(), ((second + value.toUInt() - 1u) / value.toUInt()).toUByte(), ((third + value.toUInt() - 1u) / value.toUInt()).toUByte(), ((fourth + value.toUInt() - 1u) / value.toUInt()).toUByte() ) } /** * Links up the sequence of arrays into one big array */ fun Sequence<IntArray>.chain(number: Int = 1, size: Int = 0): IntArray { return this.fold(ArrayList<Int>(number * size), { acc, curr -> acc.addAll(curr.asIterable()) acc }).toIntArray() }
1
null
1
2
2def49100bc33b4e4897ff980dd9d97052665241
2,386
WFC-Kotlin
MIT License
screenshots/src/main/java/me/vavra/screenshots/ShowkaseNavigation.kt
davidvavra
440,886,190
false
{"Kotlin": 7515}
package me.vavra.screenshots import android.app.Activity import com.airbnb.android.showkase.models.Showkase object ShowkaseNavigation { fun goToShowkase(activity: Activity) { activity.startActivity(Showkase.getBrowserIntent(activity)) } }
2
Kotlin
6
39
0efa7a45821cefa6715babbd83d04332fed01460
256
showkase-screenshot-tests
MIT License
plugins/kotlin/gradle/gradle-tooling/impl/src/org/jetbrains/kotlin/idea/gradleTooling/arguments/CompilerArgumentsCacheMapperImpl.kt
JetBrains
2,489,216
false
null
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package org.jetbrains.kotlin.idea.gradleTooling.arguments import org.jetbrains.kotlin.idea.projectModel.CompilerArgumentsCacheMapper import java.util.* abstract class AbstractCompilerArgumentsCacheMapper protected constructor() : AbstractCompilerArgumentsCacheAware(), CompilerArgumentsCacheMapper { private var nextId = 0 final override var cacheByValueMap: HashMap<Int, String> = hashMapOf() private var valueByCacheMap: HashMap<String, Int> = hashMapOf() override fun cacheArgument(arg: String): Int { if (checkCached(arg)) return valueByCacheMap.getValue(arg) val retVal = nextId nextId += 1 return retVal.also { cacheByValueMap[it] = arg valueByCacheMap[arg] = it } } override fun checkCached(arg: String): Boolean = valueByCacheMap.containsKey(arg) } data class CompilerArgumentsCacheMapperImpl(override val cacheOriginIdentifier: Long = Random().nextLong()) : AbstractCompilerArgumentsCacheMapper() { }
214
null
4829
15,129
5578c1c17d75ca03071cc95049ce260b3a43d50d
1,170
intellij-community
Apache License 2.0
test/TestMax3.kt
nick-ivanov
115,955,519
false
null
package org.borealis8.kotlinalgorithms import org.junit.Test as test import org.junit.Assert.* class TestMax3 { @org.junit.Test fun testMax3SmallBiggerBig() { val max = Max3(10.0, 11.0, 12.0) assertEquals(max, 12.0, 0.1) } }
0
Kotlin
0
2
daf25f62485c266e77df9bef8ded075a16908e99
252
kotlin-algorithms
Apache License 2.0
app/src/main/java/io/github/takusan23/photransfer/ui/screen/HomeScreen.kt
takusan23
422,632,293
false
{"Kotlin": 154967, "HTML": 1735}
package io.github.takusan23.photransfer.ui.screen import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember import androidx.compose.ui.platform.LocalContext import io.github.takusan23.photransfer.setting.SettingKeyObject import io.github.takusan23.photransfer.setting.dataStore import kotlinx.coroutines.flow.first /** * ホーム画面 * * 初期設定が終わってなくてもまずこの画面を出す。この画面で判断する * * @param onNavigate 画面遷移してほしいときに呼ばれる * */ @Composable fun HomeScreen( onNavigate: (String) -> Unit, ) { // DataStore読み出し val context = LocalContext.current val mode = remember { mutableStateOf("") } // 未設定時はnullにしてる LaunchedEffect(key1 = Unit, block = { val setting = context.dataStore.data.first() val settingModeValue = setting[SettingKeyObject.MODE] if (settingModeValue != null) { // 初期設定通過後 mode.value = settingModeValue } else { // 初期設定まだしてない onNavigate(NavigationLinkList.SetupScreen) } }) // それぞれの画面へ、初回起動時はセットアップ画面へ飛ばす when (mode.value) { SettingKeyObject.MODE_SERVER -> ServerHomeScreen(onNavigate = onNavigate) SettingKeyObject.MODE_CLIENT -> ClientHomeScreen(onNavigate = onNavigate) } }
0
Kotlin
0
0
56f59e18729ea429228e74242b4526d97ddf3093
1,341
PhoTransfer
Apache License 2.0
app/src/main/java/com/steleot/jetpackcompose/playground/compose/materialicons/TwoToneScreen.kt
Vivecstel
338,792,534
false
null
package com.steleot.jetpackcompose.playground.compose.materialicons import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.grid.GridCells import androidx.compose.foundation.lazy.grid.LazyVerticalGrid import androidx.compose.foundation.lazy.grid.items //noinspection UsingMaterialAndMaterial3Libraries import androidx.compose.material.Icon import androidx.compose.material.icons.Icons import androidx.compose.material.icons.twotone.* import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import androidx.compose.ui.tooling.preview.Preview import androidx.compose.ui.unit.dp import com.steleot.jetpackcompose.playground.navigation.graph.MaterialIconsNavRoutes import com.steleot.jetpackcompose.playground.ui.base.material.DefaultScaffold private const val URL = "materialicons/TwoToneScreen.kt" @Composable fun TwoToneScreen() { DefaultScaffold( title = MaterialIconsNavRoutes.TwoTone, link = URL, ) { TwoToneGrid(paddingValues = it) } } private val list = listOf( Icons.TwoTone.AccountBox, Icons.TwoTone.AccountCircle, Icons.TwoTone.AddCircle, Icons.TwoTone.Add, Icons.TwoTone.ArrowBack, Icons.TwoTone.ArrowDropDown, Icons.TwoTone.ArrowForward, Icons.TwoTone.Build, Icons.TwoTone.Call, Icons.TwoTone.CheckCircle, Icons.TwoTone.Check, Icons.TwoTone.Clear, Icons.TwoTone.Close, Icons.TwoTone.Create, Icons.TwoTone.DateRange, Icons.TwoTone.Delete, Icons.TwoTone.Done, Icons.TwoTone.Edit, Icons.TwoTone.Email, Icons.TwoTone.ExitToApp, Icons.TwoTone.Face, Icons.TwoTone.FavoriteBorder, Icons.TwoTone.Favorite, Icons.TwoTone.Home, Icons.TwoTone.Info, Icons.TwoTone.KeyboardArrowDown, Icons.TwoTone.KeyboardArrowLeft, Icons.TwoTone.KeyboardArrowRight, Icons.TwoTone.KeyboardArrowUp, Icons.TwoTone.List, Icons.TwoTone.LocationOn, Icons.TwoTone.Lock, Icons.TwoTone.MailOutline, Icons.TwoTone.Menu, Icons.TwoTone.MoreVert, Icons.TwoTone.Notifications, Icons.TwoTone.Person, Icons.TwoTone.Phone, Icons.TwoTone.Place, Icons.TwoTone.PlayArrow, Icons.TwoTone.Refresh, Icons.TwoTone.Search, Icons.TwoTone.Send, Icons.TwoTone.Settings, Icons.TwoTone.Share, Icons.TwoTone.ShoppingCart, Icons.TwoTone.Star, Icons.TwoTone.ThumbUp, Icons.TwoTone.Warning, ) @Preview @Composable private fun TwoToneGrid(paddingValues: PaddingValues = PaddingValues()) { LazyVerticalGrid( GridCells.Adaptive(60.dp), modifier = Modifier.padding(paddingValues = paddingValues), ) { items(list) { Icon(imageVector = it, contentDescription = null, modifier = Modifier.padding(8.dp)) } } }
2
null
46
346
0161d9c7bf2eee53270ba2227a61d71ba8292ad0
2,854
Jetpack-Compose-Playground
Apache License 2.0
analysis/low-level-api-fir/testData/lazyResolveByReference/companionObject.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}
// MODULE: lib // MODULE_KIND: LibraryBinary // FILE: lib.kt package library class ClassWithImplicitConstructorAndCompanion { companion object { } } // MODULE: main(lib) // FILE: main.kt package test import library.ClassWithImplicitConstructorAndCompanion fun usage() { val a: ClassWit<caret>hImplicitConstructorAndCompanion }
181
Kotlin
5748
49,172
33eb9cef3d146062c103f9853d772f0a1da0450e
343
kotlin
Apache License 2.0
ggdsl-api/src/test/kotlin/org/jetbrains/kotlinx/ggdsl/dsl/unit/ColumnScaledTest.kt
Kotlin
502,039,936
false
null
/* * Copyright 2020-2022 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. */ package org.jetbrains.kotlinx.ggdsl.dsl.unit import org.jetbrains.kotlinx.ggdsl.dsl.Symbol import org.jetbrains.kotlinx.ggdsl.dsl.internal.typed import org.jetbrains.kotlinx.ggdsl.dsl.internal.typedList import org.jetbrains.kotlinx.ggdsl.dsl.scaled import org.jetbrains.kotlinx.ggdsl.ir.bindings.* import org.jetbrains.kotlinx.ggdsl.ir.data.ColumnPointer import org.jetbrains.kotlinx.ggdsl.ir.scale.* import org.jetbrains.kotlinx.ggdsl.util.color.Color import kotlin.test.Test import kotlin.test.assertEquals internal class ColumnScaledTest { @Test fun testScaledUnspecified() { val ds = ColumnPointer<Int>("ds1") val scaledSource = ds.scaled() assertEquals(ColumnScaledUnspecifiedDefault(ds), scaledSource) } @Test fun testScaledPositionalDefault() { val ds = ColumnPointer<Double>("ds2") val continuousScaledSource = ds.scaled(PositionalContinuousUnspecifiedScale()) val categoricalScaledSource = ds.scaled(PositionalCategoricalUnspecifiedScale) assertEquals( ColumnScaledPositionalUnspecified(ds, PositionalContinuousUnspecifiedScale()), continuousScaledSource ) assertEquals( ColumnScaledPositionalUnspecified(ds, PositionalCategoricalUnspecifiedScale), categoricalScaledSource ) } @Test fun testScaledNonPositionalDefault() { val ds = ColumnPointer<Double>("ds3") val continuousScaledSource = ds.scaled(NonPositionalContinuousUnspecifiedScale()) val categoricalScaledSource = ds.scaled(NonPositionalCategoricalUnspecifiedScale) assertEquals( ColumnScaledNonPositionalUnspecified(ds, NonPositionalContinuousUnspecifiedScale()), continuousScaledSource ) assertEquals( ColumnScaledNonPositionalUnspecified(ds, NonPositionalCategoricalUnspecifiedScale), categoricalScaledSource ) } @Test fun testScaledPositional() { val ds1 = ColumnPointer<Float>("ds4") val scale1 = PositionalContinuousScale<Float>(limits = 4.3F.typed() to 10F.typed(), null, null) val continuousScaledSource = ds1.scaled(scale1) assertEquals( ColumnScaledPositional(ds1, scale1), continuousScaledSource ) val ds2 = ColumnPointer<String>("ds10") val scale2 = PositionalCategoricalScale<String>(listOf<String>().typedList(), /*null*/) val categoricalScaledSource = ds2.scaled(scale2) assertEquals( ColumnScaledPositional(ds2, scale2), categoricalScaledSource ) } @Test fun testScaledNonPositional() { val ds1 = ColumnPointer<Char>("dsX") val scale1 = NonPositionalContinuousScale<Char, Color>( 'a'.typed() to 'e'.typed(), Color.hex("#000000").typed() to Color.named("red").typed(), null, null ) val continuousScaledSource = ds1.scaled(scale1) assertEquals( ColumnScaledNonPositional(ds1, scale1), continuousScaledSource ) val ds2 = ColumnPointer<String>("dsY") val scale2 = NonPositionalCategoricalScale<String, Symbol>( null, rangeValues = listOf(Symbol.CIRCLE, Symbol.TRIANGLE).typedList(), //nullValue = null, ) val categoricalScaledSource = ds2.scaled(scale2) assertEquals( ColumnScaledNonPositional(ds2, scale2), categoricalScaledSource ) } }
55
Kotlin
2
29
647ebddd2e09173facf6be67cd4ba5a7c81f6d2a
3,682
ggdsl
Apache License 2.0
src/main/kotlin/ch3/ex3.26.kt
arnab-ray
785,146,542
false
{"Kotlin": 30133}
package ch3 import io.kotlintest.shouldBe import io.kotlintest.specs.WordSpec fun depth(tree: Tree<Int>): Int = when (tree) { is Leaf -> 0 is Branch -> 1 + maxOf(depth(tree.left), depth(tree.right)) } class Exercise26 : WordSpec({ "tree depth" should { "determine the maximum depth from the root to any leaf" { val tree = Branch( Branch(Leaf(1), Leaf(2)), Branch( Leaf(3), Branch( Branch( Leaf(4), Leaf(5) ), Branch( Leaf(6), Branch( Leaf(7), Leaf(8) ) ) ) ) ) depth(tree) shouldBe 5 } } })
0
Kotlin
0
0
20d6933e9840e9bdae16d25e7b07ba334c2567a1
985
functional-kotlin
MIT License
src/androidMain/kotlin/com/dxc/utils/System.kt
dxc-technology
259,322,339
false
{"Kotlin": 598967, "Objective-C": 537589, "Objective-C++": 442889, "C": 238203, "Ruby": 12614, "Shell": 7187, "Swift": 1114}
package com.dxc.utils import android.system.Os import java.lang.System actual class System { actual companion object { actual fun currentTimeMillis(): Long { return java.lang.System.currentTimeMillis() } actual fun getEnv(key: String): String? { return System.getenv(key) } actual fun getProperty(key: String): String? { return System.getProperty(key) } actual fun setEnv(key: String, value: String) { //Libcore. Os.setenv(key, value, true) //Libcore.os.setenv("VAR", "value", bOverwrite); //System.setProperty(key, value) } actual fun getCurrentThread(): String { return Thread.currentThread().name } } }
3
Kotlin
6
5
9bede83e0358b16d6dc9459ccc2fd85541027b6c
799
ssi-mobile-sdk
Apache License 2.0
graphql-dgs/src/main/kotlin/com/netflix/graphql/dgs/internal/method/MethodDataFetcherFactory.kt
Netflix
317,375,887
false
null
/* * Copyright 2022 Netflix, 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 * * 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.netflix.graphql.dgs.internal.method import com.netflix.graphql.dgs.DgsData import com.netflix.graphql.dgs.internal.DataFetcherInvoker import graphql.schema.DataFetcher import org.springframework.core.DefaultParameterNameDiscoverer import org.springframework.core.ParameterNameDiscoverer import java.lang.reflect.Method /** * Factory for constructing a [DataFetcher] given a [DgsData] annotated method. * * Resolving of method arguments is handled by the supplied [argument resolvers][ArgumentResolver]. */ class MethodDataFetcherFactory( argumentResolvers: List<ArgumentResolver>, private val parameterNameDiscoverer: ParameterNameDiscoverer = DefaultParameterNameDiscoverer(), ) { private val resolvers = ArgumentResolverComposite(argumentResolvers) fun createDataFetcher(bean: Any, method: Method): DataFetcher<Any?> { return DataFetcherInvoker( dgsComponent = bean, method = method, resolvers = resolvers, parameterNameDiscoverer = parameterNameDiscoverer ) } }
82
null
255
2,705
866760f8a3cf86bda5e2a9ef14cab6936b2b3a80
1,666
dgs-framework
Apache License 2.0
keel-eureka/src/main/kotlin/com/netflix/spinnaker/keel/eureka/LocalInstanceIdSupplier.kt
gal-yardeni
220,116,349
true
{"Kotlin": 1350979, "Java": 9170, "Shell": 2086}
package com.netflix.spinnaker.keel.eureka import com.netflix.spinnaker.keel.info.InstanceIdSupplier import java.net.InetAddress object LocalInstanceIdSupplier : InstanceIdSupplier { override fun get(): String = InetAddress.getLocalHost().hostName }
0
Kotlin
0
0
a9e868687f54bfedb20462092e017d1407d48e4f
253
keel
Apache License 2.0
library/src/main/java/com/schibsted/spain/barista/internal/failurehandler/SpyFailureHandler.kt
PaulWoitaschek
189,291,312
false
{"Gradle": 5, "Markdown": 6, "Java Properties": 1, "Shell": 2, "Ignore List": 4, "Batchfile": 1, "Gradle Kotlin DSL": 3, "XML": 62, "Kotlin": 92, "Java": 107, "INI": 2, "CODEOWNERS": 1, "YAML": 3, "SVG": 1}
package com.adevinta.android.barista.internal.failurehandler import android.view.View import androidx.test.espresso.FailureHandler import androidx.test.espresso.getFailureHandler import org.hamcrest.Matcher open class SpyFailureHandler : FailureHandler { val capturedFailures = mutableListOf<EspressoFailure>() open val capturedFailuresCount: Int get() = capturedFailures.size override fun handle(error: Throwable, viewMatcher: Matcher<View>) { capturedFailures.add(EspressoFailure(error, viewMatcher)) throw error } fun firstError() = capturedFailures.firstOrNull() fun lastError() = capturedFailures.lastOrNull() fun resendFirstError(customMessage: String) { firstError()?.let { (throwable, matcher) -> val baristaException = BaristaException(customMessage, throwable) getFailureHandler().handle(baristaException, matcher) } } fun resendLastError(customMessage: String) { lastError()?.let { (throwable, matcher) -> val baristaException = BaristaException(customMessage, throwable) getFailureHandler().handle(baristaException, matcher) } } }
1
null
1
1
a0e209c77ddbea96b4f420897820890f7c74d6c5
1,123
Barista
Apache License 2.0
app/src/main/java/com/schedule/ui/presentation/MainScaffold.kt
FredNekrasov
760,139,354
false
{"Kotlin": 109148}
package com.schedule.ui.presentation import androidx.compose.foundation.layout.* import androidx.compose.material3.* import androidx.compose.runtime.* import androidx.compose.ui.Modifier import androidx.compose.ui.res.stringResource import androidx.navigation.NavHostController import androidx.navigation.compose.currentBackStackEntryAsState import com.schedule.R import com.schedule.ui.utils.FredTopBar import com.schedule.ui.utils.navigation.ScreensRoute.* import com.schedule.ui.utils.navigation.getHeaderName import com.schedule.ui.utils.special_views.ToProfile @Composable fun MainScaffold(controller: NavHostController, openDrawer: () -> Unit) { val snackbarHostState = remember { SnackbarHostState() } val currentRoute = controller.currentBackStackEntryAsState().value?.destination?.route val appName = stringResource(R.string.app_name) val modifier = Modifier.fillMaxSize() Scaffold( modifier, topBar = { if(currentRoute != Authorization.route && currentRoute != null ){ FredTopBar(getHeaderName(controller,appName),openDrawer) } }, snackbarHost = { SnackbarHost(snackbarHostState) }, floatingActionButton = { when(currentRoute){ null, Authorization.route, Profile.route -> {} else -> ToProfile(controller) } }, floatingActionButtonPosition = FabPosition.End ) { padding -> MainNavHost(controller,modifier.padding(padding)) } }
0
Kotlin
0
0
73e90ff38e831c6fbfa175f4e4ffe780ed572500
1,477
Android-app-for-viewing-schedules
MIT License
app/src/main/java/com/schedule/ui/presentation/MainScaffold.kt
FredNekrasov
760,139,354
false
{"Kotlin": 109148}
package com.schedule.ui.presentation import androidx.compose.foundation.layout.* import androidx.compose.material3.* import androidx.compose.runtime.* import androidx.compose.ui.Modifier import androidx.compose.ui.res.stringResource import androidx.navigation.NavHostController import androidx.navigation.compose.currentBackStackEntryAsState import com.schedule.R import com.schedule.ui.utils.FredTopBar import com.schedule.ui.utils.navigation.ScreensRoute.* import com.schedule.ui.utils.navigation.getHeaderName import com.schedule.ui.utils.special_views.ToProfile @Composable fun MainScaffold(controller: NavHostController, openDrawer: () -> Unit) { val snackbarHostState = remember { SnackbarHostState() } val currentRoute = controller.currentBackStackEntryAsState().value?.destination?.route val appName = stringResource(R.string.app_name) val modifier = Modifier.fillMaxSize() Scaffold( modifier, topBar = { if(currentRoute != Authorization.route && currentRoute != null ){ FredTopBar(getHeaderName(controller,appName),openDrawer) } }, snackbarHost = { SnackbarHost(snackbarHostState) }, floatingActionButton = { when(currentRoute){ null, Authorization.route, Profile.route -> {} else -> ToProfile(controller) } }, floatingActionButtonPosition = FabPosition.End ) { padding -> MainNavHost(controller,modifier.padding(padding)) } }
0
Kotlin
0
0
73e90ff38e831c6fbfa175f4e4ffe780ed572500
1,477
Android-app-for-viewing-schedules
MIT License
src/main/kotlin/example/examplemod/ExampleMod.kt
thedarkcolour
272,338,191
false
null
package example.examplemod import example.examplemod.block.ModBlocks import example.examplemod.block.ModItems import net.minecraft.client.Minecraft import net.neoforged.bus.api.SubscribeEvent import net.neoforged.fml.common.EventBusSubscriber import net.neoforged.fml.common.Mod import net.neoforged.fml.event.lifecycle.FMLClientSetupEvent import net.neoforged.fml.event.lifecycle.FMLCommonSetupEvent import net.neoforged.fml.event.lifecycle.FMLDedicatedServerSetupEvent import org.apache.logging.log4j.Level import org.apache.logging.log4j.LogManager import org.apache.logging.log4j.Logger import thedarkcolour.kotlinforforge.neoforge.forge.MOD_BUS import thedarkcolour.kotlinforforge.neoforge.forge.runForDist /** * Main mod class. Should be an `object` declaration annotated with `@Mod`. * The modid should be declared in this object and should match the modId entry * in neoforge.mods.toml. * * An example for blocks is in the `block` package of this mod. */ @Mod(ExampleMod.MOD_ID) @EventBusSubscriber(bus = EventBusSubscriber.Bus.MOD) object ExampleMod { const val MOD_ID = "examplemod" // the logger for our mod private val LOGGER: Logger = LogManager.getLogger(MOD_ID) init { LOGGER.log(Level.INFO, "Hello world!") // Register the KDeferredRegister to the mod-specific event bus ModBlocks.REGISTER_BLOCKS.register(MOD_BUS) ModBlocks.REGISTER_BLOCK_ITEMS.register(MOD_BUS) ModItems.ITEMS.register(MOD_BUS) ExampleTab.CREATIVE_MODE_TABS.register(MOD_BUS) val obj = runForDist( clientTarget = { MOD_BUS.addListener(::onClientSetup) Minecraft.getInstance() }, serverTarget = { MOD_BUS.addListener(::onServerSetup) "test" }) println(obj) } /** * This is used for initializing client specific * things such as renderers and keymaps * Fired on the mod specific event bus. */ private fun onClientSetup(event: FMLClientSetupEvent) { LOGGER.log(Level.INFO, "Initializing client...") } /** * Fired on the global Forge bus. */ private fun onServerSetup(event: FMLDedicatedServerSetupEvent) { LOGGER.log(Level.INFO, "Server starting...") } @SubscribeEvent fun onCommonSetup(event: FMLCommonSetupEvent) { LOGGER.log(Level.INFO, "Hello! This is working!") } }
1
null
17
45
8c8892f928225bf7ac622f335f16554155a0eed9
2,454
KotlinModdingSkeleton
MIT License
exposed-dao/src/main/kotlin/org/jetbrains/exposed/dao/InnerTableLink.kt
JetBrains
11,765,017
false
null
package org.jetbrains.exposed.dao import org.jetbrains.exposed.dao.id.EntityID import org.jetbrains.exposed.sql.* import org.jetbrains.exposed.sql.transactions.TransactionManager import kotlin.properties.ReadWriteProperty import kotlin.reflect.KProperty @Suppress("UNCHECKED_CAST") class InnerTableLink<SID : Comparable<SID>, Source : Entity<SID>, ID : Comparable<ID>, Target : Entity<ID>>( val table: Table, val target: EntityClass<ID, Target>, val sourceColumn: Column<EntityID<SID>>? = null, _targetColumn: Column<EntityID<ID>>? = null ) : ReadWriteProperty<Source, SizedIterable<Target>> { init { _targetColumn?.let { requireNotNull(sourceColumn) { "Both source and target columns should be specified" } require(_targetColumn.referee?.table == target.table) { "Column $_targetColumn point to wrong table, expected ${target.table.tableName}" } require(_targetColumn.table == sourceColumn.table) { "Both source and target columns should be from the same table" } } sourceColumn?.let { requireNotNull(_targetColumn) { "Both source and target columns should be specified" } } } private val targetColumn = _targetColumn ?: table.columns.singleOrNull { it.referee == target.table.id } as? Column<EntityID<ID>> ?: error("Table does not reference target") private fun getSourceRefColumn(o: Source): Column<EntityID<SID>> { return sourceColumn ?: table.columns.singleOrNull { it.referee == o.klass.table.id } as? Column<EntityID<SID>> ?: error("Table does not reference source") } override operator fun getValue(o: Source, unused: KProperty<*>): SizedIterable<Target> { if (o.id._value == null) return emptySized() val sourceRefColumn = getSourceRefColumn(o) val alreadyInJoin = (target.dependsOnTables as? Join)?.alreadyInJoin(table) ?: false val entityTables = if (alreadyInJoin) target.dependsOnTables else target.dependsOnTables.join(table, JoinType.INNER, target.table.id, targetColumn) val columns = ( target.dependsOnColumns + (if (!alreadyInJoin) table.columns else emptyList()) - sourceRefColumn ).distinct() + sourceRefColumn val query = { target.wrapRows(entityTables.slice(columns).select { sourceRefColumn eq o.id }) } return TransactionManager.current().entityCache.getOrPutReferrers(o.id, sourceRefColumn, query) } override fun setValue(o: Source, unused: KProperty<*>, value: SizedIterable<Target>) { val sourceRefColumn = getSourceRefColumn(o) val tx = TransactionManager.current() val entityCache = tx.entityCache entityCache.flush() val oldValue = getValue(o, unused) val existingIds = oldValue.map { it.id }.toSet() entityCache.referrers[o.id]?.remove(sourceRefColumn) val targetIds = value.map { it.id } executeAsPartOfEntityLifecycle { table.deleteWhere { (sourceRefColumn eq o.id) and (targetColumn notInList targetIds) } table.batchInsert(targetIds.filter { !existingIds.contains(it) }, shouldReturnGeneratedValues = false) { targetId -> this[sourceRefColumn] = o.id this[targetColumn] = targetId } } // current entity updated tx.registerChange(o.klass, o.id, EntityChangeType.Updated) // linked entities updated val targetClass = (value.firstOrNull() ?: oldValue.firstOrNull())?.klass if (targetClass != null) { existingIds.plus(targetIds).forEach { tx.registerChange(targetClass, it, EntityChangeType.Updated) } } } }
346
null
693
8,319
95712943cc3550e4018342d725b42371808be845
3,807
Exposed
Apache License 2.0
guardian/src/main/java/com/guardianconnect/GRDConnectSubscriber.kt
GuardianFirewall
613,794,030
false
{"Kotlin": 240944, "Shell": 5798}
package com.guardianconnect import android.util.Log import com.google.gson.Gson import com.guardianconnect.api.IOnApiResponse import com.guardianconnect.api.Repository import com.guardianconnect.model.api.* import com.guardianconnect.util.Constants.Companion.GRD_CONNECT_SUBSCRIBER import com.guardianconnect.util.Constants.Companion.GRD_CONNECT_SUBSCRIBER_EMAIL import com.guardianconnect.util.Constants.Companion.GRD_PE_TOKEN import com.guardianconnect.util.Constants.Companion.GRD_CONNECT_SUBSCRIBER_PE_TOKEN_EXP_DATE import com.guardianconnect.util.Constants.Companion.GRD_CONNECT_SUBSCRIBER_SECRET import com.guardianconnect.util.GRDKeystore import kotlinx.coroutines.launch import java.util.Date class GRDConnectSubscriber { var identifier: String? = null var secret: String? = null var email: String? = null var subscriptionSKU: String? = null var subscriptionNameFormatted: String? = null var subscriptionExpirationDate: Date? = null var createdAt: Date? = null fun initGRDConnectSubscriber() { try { val secret = GRDKeystore.instance.retrieveFromKeyStore(GRD_CONNECT_SUBSCRIBER_SECRET) val grdConnectSubscriberString = GRDKeystore.instance.retrieveFromKeyStore(GRD_CONNECT_SUBSCRIBER) grdConnectSubscriberString.let { string -> val grdConnectSubscriber = Gson().fromJson(string, GRDConnectSubscriber::class.java) secret.let { secret -> grdConnectSubscriber.secret = secret } this.identifier = grdConnectSubscriber.identifier this.secret = secret this.email = grdConnectSubscriber.email this.subscriptionSKU = grdConnectSubscriber.subscriptionSKU this.subscriptionNameFormatted = grdConnectSubscriber.subscriptionNameFormatted this.subscriptionExpirationDate = grdConnectSubscriber.subscriptionExpirationDate this.createdAt = grdConnectSubscriber.createdAt } } catch (exception: Exception) { GRDConnectManager.getCoroutineScope().launch { GRDVPNHelper.grdErrorFlow.emit(exception.stackTraceToString()) } } } /* Save the GRDConnectSubscriber that encodes the current subscriber object to then store it in the Shared Preferences. Secret is stored separately encrypted in the Android Keystore and the class property secret is stored as NULL in order to guarantee that the secret is never saved unencrypted. The function should return an error or NULL to indicate a successful or failed operation */ fun store(grdConnectSubscriber: GRDConnectSubscriber): Error? { try { grdConnectSubscriber.secret?.let { GRDKeystore.instance.saveToKeyStore( GRD_CONNECT_SUBSCRIBER_SECRET, it ) } grdConnectSubscriber.secret = null GRDKeystore.instance.saveToKeyStore( GRD_CONNECT_SUBSCRIBER, Gson().toJson(grdConnectSubscriber) ) GRDConnectManager.getCoroutineScope().launch { GRDVPNHelper.grdMsgFlow.emit("GRDConnectSubscriber stored successfully!") } } catch (error: Error) { GRDConnectManager.getCoroutineScope().launch { GRDVPNHelper.grdErrorFlow.emit(error.stackTraceToString()) } return error } return null } /* Returns the current GRDConnectSubscriber object out of the Shared Preferences with secret */ fun currentSubscriber(): GRDConnectSubscriber? { try { val secret = GRDKeystore.instance.retrieveFromKeyStore(GRD_CONNECT_SUBSCRIBER_SECRET) val grdConnectSubscriberString = GRDKeystore.instance.retrieveFromKeyStore(GRD_CONNECT_SUBSCRIBER) grdConnectSubscriberString.let { string -> val grdConnectSubscriber = Gson().fromJson(string, GRDConnectSubscriber::class.java) secret.let { secret -> grdConnectSubscriber.secret = secret } GRDConnectManager.getCoroutineScope().launch { GRDVPNHelper.grdMsgFlow.emit("Current subscriber returned successfully!") } return grdConnectSubscriber } } catch (exception: Exception) { GRDConnectManager.getCoroutineScope().launch { GRDVPNHelper.grdErrorFlow.emit(exception.stackTraceToString()) } return null } } /* Returns the current GRDConnectSubscriber object out of the Shared Preferences */ fun currentSubscriberWithoutSecret(): GRDConnectSubscriber? { try { val grdConnectSubscriberString = GRDKeystore.instance.retrieveFromKeyStore(GRD_CONNECT_SUBSCRIBER) grdConnectSubscriberString.let { val grdConnectSubscriber = Gson().fromJson(it, GRDConnectSubscriber::class.java) GRDConnectManager.getCoroutineScope().launch { GRDVPNHelper.grdMsgFlow.emit("Current subscriber returned successfully!") } return grdConnectSubscriber } } catch (exception: Exception) { GRDConnectManager.getCoroutineScope().launch { GRDVPNHelper.grdErrorFlow.emit(exception.stackTraceToString()) } return null } } /* Retrieves the GRDConnectSubscriber secret string from the Android Keystore and set the instance’s secret property */ fun loadFromKeystore(): Error? { return try { val secret = GRDKeystore.instance.retrieveFromKeyStore(GRD_CONNECT_SUBSCRIBER_SECRET) if (secret?.isNotEmpty() == true) this.secret = secret GRDConnectManager.getCoroutineScope().launch { GRDVPNHelper.grdMsgFlow.emit("GRDConnectSubscriber secret returned successfully!") } null } catch (error: Error) { GRDConnectManager.getCoroutineScope().launch { GRDVPNHelper.grdErrorFlow.emit(error.stackTraceToString()) } error } } /* Returns an error or the new initialized GRDConnectSubscriber object */ fun registerNewConnectSubscriber( grdConnectSubscriberRequest: GRDConnectSubscriberRequest, iOnApiResponse: IOnApiResponse ) { Repository.instance.createNewGRDConnectSubscriber( grdConnectSubscriberRequest, object : IOnApiResponse { override fun onSuccess(any: Any?) { val grdConnectSubscriber = GRDConnectSubscriber() val grdConnectSubscriberResponse = any as GRDConnectSubscriberResponse grdConnectSubscriber.identifier = grdConnectSubscriberResponse.epGrdSubscriberIdentifier grdConnectSubscriber.secret = grdConnectSubscriberRequest.epGrdSubscriberSecret grdConnectSubscriber.email = grdConnectSubscriberRequest.epGrdSubscriberEmail if (grdConnectSubscriberRequest.epGrdSubscriberEmail != null) { GRDConnectManager.getSharedPrefs()?.edit() ?.putString( GRD_CONNECT_SUBSCRIBER_EMAIL, grdConnectSubscriberRequest.epGrdSubscriberEmail )?.apply() } grdConnectSubscriber.subscriptionSKU = grdConnectSubscriberResponse.epGrdSubscriptionSku grdConnectSubscriber.subscriptionNameFormatted = grdConnectSubscriberResponse.epGrdSubscriptionNameFormatted grdConnectSubscriberResponse.epGrdSubscriptionExpirationDate?.let { grdConnectSubscriber.subscriptionExpirationDate = Date(it * 1000L) } grdConnectSubscriberResponse.epGrdSubscriberCreatedAt?.let { grdConnectSubscriber.createdAt = Date(it * 1000L) } grdConnectSubscriberResponse.peToken?.let { GRDKeystore.instance.saveToKeyStore( GRD_PE_TOKEN, it ) } grdConnectSubscriberResponse.petExpires?.let { GRDKeystore.instance.saveToKeyStore( GRD_CONNECT_SUBSCRIBER_PE_TOKEN_EXP_DATE, it.toString() ) } store(grdConnectSubscriber) iOnApiResponse.onSuccess(grdConnectSubscriber) } override fun onError(error: String?) { iOnApiResponse.onError(error) } }) } fun updateConnectSubscriber( connectSubscriberUpdateRequest: ConnectSubscriberUpdateRequest, iOnApiResponse: IOnApiResponse ) { Repository.instance.updateGRDConnectSubscriber( connectSubscriberUpdateRequest, object : IOnApiResponse { override fun onSuccess(any: Any?) { val grdConnectSubscriber = GRDConnectSubscriber() val connectSubscriberUpdateResponse = any as ConnectSubscriberUpdateResponse grdConnectSubscriber.identifier = connectSubscriberUpdateResponse.epGrdSubscriberIdentifier grdConnectSubscriber.secret = connectSubscriberUpdateRequest.epGrdSubscriberSecret grdConnectSubscriber.email = connectSubscriberUpdateRequest.epGrdSubscriberEmail grdConnectSubscriber.subscriptionSKU = connectSubscriberUpdateResponse.epGrdSubscriptionSku grdConnectSubscriber.subscriptionNameFormatted = connectSubscriberUpdateResponse.epGrdSubscriptionNameFormatted connectSubscriberUpdateResponse.epGrdSubscriptionExpirationDate?.let { grdConnectSubscriber.subscriptionExpirationDate = Date(it * 1000L) } connectSubscriberUpdateResponse.epGrdSubscriberCreatedAt?.let { grdConnectSubscriber.createdAt = Date(it * 1000L) } GRDConnectManager.getCoroutineScope().launch { GRDVPNHelper.grdMsgFlow.emit("GRDConnectSubscriber updated successfully!") } iOnApiResponse.onSuccess(grdConnectSubscriber) } override fun onError(error: String?) { iOnApiResponse.onError(error) } }) } fun validateConnectSubscriber( connectSubscriberValidateRequest: ConnectSubscriberValidateRequest, iOnApiResponse: IOnApiResponse ) { Repository.instance.validateGRDConnectSubscriber( connectSubscriberValidateRequest, object : IOnApiResponse { override fun onSuccess(any: Any?) { val grdConnectSubscriber = GRDConnectSubscriber() val connectSubscriberValidateResponse = any as ConnectSubscriberValidateResponse grdConnectSubscriber.identifier = connectSubscriberValidateRequest.epGrdSubscriberIdentifier grdConnectSubscriber.secret = connectSubscriberValidateRequest.epGrdSubscriberSecret val email = GRDConnectManager.getSharedPrefs() ?.getString(GRD_CONNECT_SUBSCRIBER_EMAIL, "") if (!email.isNullOrEmpty()) { grdConnectSubscriber.email = email } grdConnectSubscriber.subscriptionSKU = connectSubscriberValidateResponse.epGrdSubscriptionSku grdConnectSubscriber.subscriptionNameFormatted = connectSubscriberValidateResponse.epGrdSubscriptionNameFormatted connectSubscriberValidateResponse.epGrdSubscriptionExpirationDate?.let { grdConnectSubscriber.subscriptionExpirationDate = Date(it * 1000L) } connectSubscriberValidateResponse.epGrdSubscriberCreatedAt?.let { grdConnectSubscriber.createdAt = Date(it * 1000L) } connectSubscriberValidateResponse.peToken?.let { GRDKeystore.instance.saveToKeyStore( GRD_PE_TOKEN, it ) } GRDConnectManager.getCoroutineScope().launch { GRDVPNHelper.grdMsgFlow.emit("GRDConnectSubscriber validated successfully!") } iOnApiResponse.onSuccess(grdConnectSubscriber) } override fun onError(error: String?) { iOnApiResponse.onError(error) } }) } fun logoutConnectSubscriber() { val pet = GRDKeystore.instance.retrieveFromKeyStore(GRD_PE_TOKEN) val publishableKey = GRDVPNHelper.connectPublishableKey if (pet != null && publishableKey.isNotEmpty()) { val logoutConnectSubscriberRequest = LogoutConnectSubscriberRequest() logoutConnectSubscriberRequest.peToken = pet logoutConnectSubscriberRequest.connectPublishableKey = publishableKey Repository.instance.logoutConnectSubscriber( logoutConnectSubscriberRequest, object : IOnApiResponse { override fun onSuccess(any: Any?) { GRDConnectManager.getCoroutineScope().launch { GRDVPNHelper.grdMsgFlow.emit(any.toString()) } } override fun onError(error: String?) { GRDConnectManager.getCoroutineScope().launch { error?.let { GRDVPNHelper.grdErrorFlow.emit(it) } } } }) } } // TODO: check the difference between this and GRDConnectDevice.allDevices() fun allDevices( connectDevicesAllRequest: ConnectDevicesAllRequest, iOnApiResponse: IOnApiResponse ) { val list = ArrayList<ConnectDeviceResponse>() Repository.instance.allConnectDevices(connectDevicesAllRequest, object : IOnApiResponse { override fun onSuccess(any: Any?) { if (any != null) { val anyList = any as List<*> val allDevices = anyList.filterIsInstance<ConnectDeviceResponse>() list.addAll(allDevices) iOnApiResponse.onSuccess(list) GRDConnectManager.getCoroutineScope().launch { GRDVPNHelper.grdMsgFlow.emit("All GRDConnectDevices returned.") } } else { iOnApiResponse.onSuccess(null) GRDConnectManager.getCoroutineScope().launch { GRDVPNHelper.grdErrorFlow.emit("GRDConnectDevices are null!") } } } override fun onError(error: String?) { GRDConnectManager.getCoroutineScope().launch { error?.let { GRDVPNHelper.grdErrorFlow.emit(it) } } } }) } }
9
Kotlin
1
2
ea7c1256355033bbb3c07b958d6702d263520c6f
16,142
GuardianConnect-Android
MIT License
app/src/main/java/io/gebes/composer/views/showcases/InfiniteList.kt
Gebes
388,589,806
false
null
package io.gebes.composer.views.showcases import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.LazyListState import androidx.compose.foundation.lazy.rememberLazyListState import androidx.compose.foundation.rememberScrollState import androidx.compose.material.* import androidx.compose.runtime.Composable import androidx.compose.runtime.saveable.rememberSaveable import androidx.compose.ui.Modifier import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.sp import androidx.navigation.NavHostController import io.gebes.composer.utils.BackTopAppBar @OptIn(ExperimentalMaterialApi::class) @Composable fun InfiniteListShowCase(navController: NavHostController) { var context = LocalContext.current Scaffold( topBar = { BackTopAppBar(title = { Text("InfiniteList") }, navController = navController) } ) { LazyColumn( modifier = Modifier.fillMaxSize(), state = rememberLazyListState() ) { items(Integer.MAX_VALUE) { index -> ListItem(text = { Text("$index") }, secondaryText = { Text("That is only ${Integer.MAX_VALUE - index} to go!") }) Divider() } } } }
0
Kotlin
0
2
c2d8d44bf84e315b1a8ae08e178f02a4665c479f
1,602
Composer
MIT License
app/src/main/java/com/hadilq/mastan/di/RealRootDependencies.kt
hadilq
715,823,678
false
{"Kotlin": 689784, "Nix": 4671}
/** * Copyright 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 com.hadilq.mastan.di import androidx.compose.runtime.MutableState import androidx.compose.runtime.mutableStateOf import com.hadilq.mastan.auth.AuthLogicIo import com.hadilq.mastan.datastore.DataStoreLogicIo import com.hadilq.mastan.log.LogLogicIo import com.hadilq.mastan.log.LogUiIo import com.hadilq.mastan.log.RealLogLogicIo import com.hadilq.mastan.log.RealLogUiIo import com.hadilq.mastan.logictreearchitecture.LogicTreeArchitecture import com.hadilq.mastan.loginflow.LoginFlowLogicIo import com.hadilq.mastan.loginflow.LoginFlowUiIo import com.hadilq.mastan.loginflow.RealLoginFlowLogicIo import com.hadilq.mastan.loginflow.RealLoginFlowUiIo import com.hadilq.mastan.navigation.NavigationLogicIo import com.hadilq.mastan.navigation.NavigationUiIo import com.hadilq.mastan.navigation.RealNavigationLogicIo import com.hadilq.mastan.navigation.RealNavigationUiIo import com.hadilq.mastan.network.NetworkLogicIo import com.hadilq.mastan.root.InitialRootEvent import com.hadilq.mastan.root.RootDataStore import com.hadilq.mastan.root.RootDependencies import com.hadilq.mastan.root.RootEvent import com.hadilq.mastan.root.RootState import com.hadilq.mastan.root.initRootState import com.hadilq.mastan.theme.MastanThemeUiIo class RealRootDependencies( private val dataStoreLogicIo: DataStoreLogicIo, override val authLogicIo: AuthLogicIo, override val logicTreeArchitecture: LogicTreeArchitecture, override val navigationLogicIo: NavigationLogicIo, override val mastanThemeUiIo: MastanThemeUiIo, override val networkLogicIo: NetworkLogicIo, override val logLogicIo: LogLogicIo, ) : RootDependencies { /** * It's a single instance in [AppDependencies] scope. */ override val state: MutableState<RootState> by logicTreeArchitecture.singleWithNoRace { mutableStateOf(initRootState) } /** * It's a single instance in [AppDependencies] scope. */ override val event: MutableState<RootEvent> by logicTreeArchitecture.singleWithNoRace { mutableStateOf(InitialRootEvent) } /** * It's a single instance in [RootDependencies] scope. */ override val navigationUiIo: NavigationUiIo by logicTreeArchitecture.singleWithNoRace { RealNavigationUiIo() } /** * It's a single instance in [RootDependencies] scope. */ override val rootDataStore: RootDataStore by logicTreeArchitecture.singleWithNoRace { RealRootDataStore(dataStoreLogicIo) } /** * It's a single instance in [RootDependencies] scope. */ override val loginFlowUiIo: LoginFlowUiIo by logicTreeArchitecture.singleWithNoRace { RealLoginFlowUiIo() } /** * It's a single instance in [RootDependencies] scope. */ override val loginFlowLogicIo: LoginFlowLogicIo by logicTreeArchitecture.singleWithNoRace { RealLoginFlowLogicIo() } /** * It's a single instance in [RootDependencies] scope. */ override val logUiIo: LogUiIo by logicTreeArchitecture.singleWithNoRace { RealLogUiIo(true, true) } }
0
Kotlin
0
3
f17caa73c487d927d651e788215aa30b8b9cf842
3,672
Mastan
Apache License 2.0
SentinelArmor/src/main/java/com/androidacestudio/sentinelarmor/AndroidSentinelImpl.kt
shivanandyadav11
860,772,214
false
{"Kotlin": 172249}
package com.androidacestudio.sentinelarmor import android.content.Context /** * AndroidSentinelImpl * * This class is the concrete implementation of the [AndroidSentinel] interface. * It orchestrates a comprehensive security analysis of an Android application by * executing a series of specific security checks. * * AndroidSentinelImpl aggregates multiple [SecurityCheck] implementations, each * focusing on a particular aspect of Android application security. When the * analysis is triggered, it runs all these checks and collates their results. * * Key features: * - Implements the [AndroidSentinel] interface * - Utilizes multiple specialized [SecurityCheck] implementations * - Provides a centralized point for executing all security checks * - Aggregates results from all checks into a single list of [SecurityIssue]s * * @property context The Android application context, used to access app-specific * information and resources required for various security checks. * * @constructor Creates an instance of AndroidSentinelImpl with the given Android context. * * @see AndroidSentinel * @see SecurityCheck * @see SecurityIssue */ internal class AndroidSentinelImpl( private val context: Context, ) : AndroidSentinel { /** * List of security checks to be performed. * * This property initializes and holds instances of various [SecurityCheck] * implementations. Each check focuses on a specific aspect of Android security. * * The checks include, but are not limited to: * - Permission analysis * - Root detection * - Data encryption verification * - ADB debugging check * - Backup settings analysis * - Screen lock protection verification * - Insecure data storage detection * - Cryptography weakness analysis * - Clipboard vulnerability check * - Broadcast receivers security analysis * - WebView security verification * - Content provider exposure check * - Network security configuration analysis * - Firebase security rules verification * - SQL injection vulnerability detection * - JavaScript security in WebViews * - Tapjacking vulnerability check * - Deep link validation * * Note: This list can be easily extended with additional security checks as needed. */ private val checks: List<SecurityCheck> = listOf( PermissionsCheck(context), RootDetectionCheck(), DataEncryptionCheck(context), ADBDebuggingCheck(context), BackupAllowedCheck(context), ScreenLockProtectionCheck(context), InsecureDataStorageCheck(context), WeakCryptographyCheck(context), ClipboardVulnerabilityCheck(context), BroadcastReceiversCheck(context), WebViewSecurityCheck(context), ContentProviderExposureCheck(context), NetworkSecurityConfigCheck(context), FirebaseSecurityRulesCheck(context), SQLInjectionVulnerabilityCheck(context), JavaScriptEnabledCheck(context), TapjackingCheck(context), DeepLinkValidationCheck(context), ) /** * Performs a comprehensive security analysis of the Android application. * * This method executes all the security checks defined in the [checks] list * and aggregates their results. Each check contributes zero or more * [SecurityIssue]s to the final result. * * The analysis covers a wide range of security aspects, providing a thorough * evaluation of the application's security posture. * * @return A list of [SecurityIssue] objects, each representing a detected * security flaw or potential vulnerability. The list will be empty * if no security issues are detected. * * Note: The execution time of this method depends on the number and complexity * of the security checks. It's recommended to call this method from a * background thread to avoid blocking the main thread in Android applications. * * @see SecurityCheck * @see SecurityIssue */ override fun analyzeSecurityFlaws(): List<SecurityIssue> = checks.flatMap { checkList -> checkList.check() } }
0
Kotlin
0
1
36e0adeaa8a559b690a9fc88322490b371c2925c
4,327
AndroidSentinel
MIT License
src/main/kotlin/ru/yoomoney/gradle/plugins/backend/build/sonarqube/SonarqubeSettings.kt
yoomoney
334,236,333
false
{"Kotlin": 114478}
package ru.yoomoney.gradle.plugins.backend.build.sonarqube /** * Типизированные настройки плагина статического анализатора SonarQube * * @author Petr Zinin pgzinin@yoomoney.ru * @since 14.02.2022 */ class SonarqubeSettings { /** * Флаг, включающий статический анализатор */ var enabled: Boolean = false /** * Ключ-идентификатор проекта в SonarQube */ var projectKey: String? = null /** * Название проекта в SonarQube */ var projectName: String? = null /** * Флаг включающий передачу путей к внешним зависимостям(артефактам). * <p> * Передача путей к внешним зависимостям(артефактам) повышает качество статического анализа, но в то же время * замедляет скорость его работы. */ var supplyLibrariesPath: Boolean = true /** * Флаг включающий инкрементальный анализ кода. * * Инкрементальный режим сокращает количество отправляемых на анализ файлов - отправляются только те файлы, версия * которых не соответствует версии ближайшей стабильной ветки git. * * Инкрементальный анализ позволяет повысить скорость проведения операции статического анализа, но в то же * время негативно сказывается на качестве последнего. * * В стабильных ветках всегда проводится полный статический анализ. */ var incrementalAnalysisEnabled: Boolean = false /** * Список стабильных веток на основе которых будет проводиться инкрементальный анализ * * В стабильных ветках всегда проводится полный статический анализ. */ var stableBranches: Set<String> = emptySet() }
0
Kotlin
2
3
9cd5e40a523bf67a089b4c1b5746d8ce20cc13e7
1,622
java-plugin
MIT License
src/main/kotlin/me/steven/indrev/blocks/misc/BiomassComposterBlock.kt
GabrielOlvH
265,247,813
false
null
package me.steven.indrev.blocks.misc import alexiil.mc.lib.attributes.AttributeList import alexiil.mc.lib.attributes.AttributeProvider import alexiil.mc.lib.attributes.fluid.FluidAttributes import alexiil.mc.lib.attributes.fluid.FluidInvUtil import alexiil.mc.lib.attributes.item.ItemAttributes import me.steven.indrev.blockentities.farms.BiomassComposterBlockEntity import me.steven.indrev.registry.IRBlockRegistry import me.steven.indrev.registry.IRItemRegistry import net.fabricmc.fabric.api.`object`.builder.v1.block.FabricBlockSettings import net.fabricmc.fabric.api.tool.attribute.v1.FabricToolTags import net.minecraft.block.* import net.minecraft.block.entity.BlockEntity import net.minecraft.block.entity.BlockEntityTicker import net.minecraft.block.entity.BlockEntityType import net.minecraft.entity.player.PlayerEntity import net.minecraft.item.ItemStack import net.minecraft.state.StateManager import net.minecraft.state.property.BooleanProperty import net.minecraft.util.ActionResult import net.minecraft.util.Hand import net.minecraft.util.hit.BlockHitResult import net.minecraft.util.math.BlockPos import net.minecraft.world.World class BiomassComposterBlock : Block(FabricBlockSettings.copyOf(Blocks.COMPOSTER).breakByTool(FabricToolTags.AXES, 1).requiresTool()), AttributeProvider, BlockEntityProvider { init { this.defaultState = stateManager.defaultState.with(CLOSED, false) } override fun createBlockEntity(pos: BlockPos, state: BlockState): BlockEntity = BiomassComposterBlockEntity(pos, state) override fun <T : BlockEntity?> getTicker( world: World, state: BlockState, type: BlockEntityType<T> ): BlockEntityTicker<T>? { return if (world.isClient) null else BlockEntityTicker { _, _, state, blockEntity -> BiomassComposterBlockEntity.tick( state, blockEntity as? BiomassComposterBlockEntity ?: return@BlockEntityTicker ) } } override fun appendProperties(builder: StateManager.Builder<Block, BlockState>?) { builder?.add(CLOSED) } override fun addAllAttributes(world: World, pos: BlockPos, state: BlockState, to: AttributeList<*>) { val blockEntity = world.getBlockEntity(pos) as? BiomassComposterBlockEntity ?: return if (to.attribute == ItemAttributes.INSERTABLE || to.attribute == ItemAttributes.EXTRACTABLE) { to.offer(blockEntity) } else if ( to.attribute == FluidAttributes.INSERTABLE || to.attribute == FluidAttributes.EXTRACTABLE || to.attribute == FluidAttributes.GROUPED_INV || to.attribute == FluidAttributes.FIXED_INV ) { to.offer(blockEntity.fluidInv) } } override fun onUse( state: BlockState, world: World, pos: BlockPos, player: PlayerEntity, hand: Hand, hit: BlockHitResult? ): ActionResult { val stack = player.getStackInHand(hand) val blockEntity = world.getBlockEntity(pos) as? BiomassComposterBlockEntity ?: return ActionResult.PASS val result = FluidInvUtil.interactHandWithTank(blockEntity.fluidInv.transferable, player, hand) if (result.didMoveAny()) { blockEntity.markDirty() if (!world.isClient) blockEntity.sync() return result.asActionResult() } else if (ComposterBlock.ITEM_TO_LEVEL_INCREASE_CHANCE.contains(stack.item) || stack.isEmpty && blockEntity.isReady()) { compost(stack, player, blockEntity, world) } else if (state[CLOSED]) { world.setBlockState(pos, state.with(CLOSED, false)) if (!player.isCreative) player.inventory.offerOrDrop(ItemStack(IRBlockRegistry.PLANKS)) } else if (stack.isOf(IRBlockRegistry.PLANKS.asItem())) { world.setBlockState(pos, state.with(CLOSED, true)) if (!player.isCreative) stack.decrement(1) } else return ActionResult.FAIL return ActionResult.success(world.isClient) } private fun compost(stack: ItemStack, player: PlayerEntity, blockEntity: BiomassComposterBlockEntity, world: World) { if (world.isClient) return if (blockEntity.level < 7 && !stack.isEmpty) { val chance = ComposterBlock.ITEM_TO_LEVEL_INCREASE_CHANCE.getValue(stack.item) if (!player.isCreative) stack.decrement(1) var leveledUp = false if (world.random.nextInt() < chance) { blockEntity.level++ blockEntity.markDirty() blockEntity.sync() leveledUp = true } world.syncWorldEvent(1500, blockEntity.pos, if (leveledUp) 1 else 0) } else if (blockEntity.ticks >= 20) { player.inventory.offerOrDrop(ItemStack(IRItemRegistry.BIOMASS)) blockEntity.reset() } } companion object { val CLOSED: BooleanProperty = BooleanProperty.of("closed") } }
36
Kotlin
32
135
cc92c8b57afd867ee4b69828410da83ff6ba113f
5,066
Industrial-Revolution
Apache License 2.0
domain/src/main/java/com/kproject/simplechat/domain/repository/preferences/DataStoreRepository.kt
jsericksk
437,991,571
false
null
package com.kproject.simplechat.domain.repository.preferences import kotlinx.coroutines.flow.Flow interface DataStoreRepository { suspend fun getPreferenceAsync(key: String, defaultValue: Any): Flow<Any> fun getPreferenceSync(key: String, defaultValue: Any): Any suspend fun savePreference(key: String, value: Any) }
0
Kotlin
1
7
f59e552e2056fa4fc5b54eca535b24c3055d84e8
333
Simple-Chat
MIT License
MobileChallenge/app/src/main/java/com/example/mobilechallenge/view/adapters/ItemCartAdapter.kt
juniior-juf
274,750,032
true
{"Kotlin": 54947}
package com.example.mobilechallenge.view.adapters import com.example.mobilechallenge.R import com.example.mobilechallenge.data.models.ItemCart class ItemCartAdapter(private val handler: HandlerAdapter) : BaseAdapter() { private var items = emptyList<ItemCart>() fun setItemList(items: List<ItemCart>) { this.items = items notifyDataSetChanged() } override fun getObjForPosition(position: Int): Any { return items[position] } override fun getLayoutIdForPosition(position: Int): Int { return R.layout.item_cart } override fun getHandler(): HandlerAdapter? { return handler } override fun getItemCount(): Int { return items.size } }
0
Kotlin
0
1
db956b25f340757248641bd16f8253ee958e6f4e
732
mobile-android-challenge
MIT License
app/src/main/java/com/example/jetpack_compose_all_in_one/lessons/lesson_3/PersonRepository.kt
myofficework000
626,474,700
false
{"Kotlin": 1392414}
package com.example.jetpack_compose_all_in_one.lessons.lesson_3 interface PersonRepository { fun getPersonList(): List<Person> }
21
Kotlin
22
222
4de5418608d6917b5c97fac7d868454c424daa26
133
Jetpack-Compose-All-in-one-Guide
MIT License
app/src/main/java/com/vstorchevyi/codewars/di/feature/user/UserFeatureModule.kt
LStudioO
653,597,932
false
null
package com.vstorchevyi.codewars.di.feature.user import com.core.utils.logger.AppLogger import com.core.utils.platform.environment.EnvironmentInfo import com.feature.user.api.UserFeatureDeps import com.feature.user.di.userFeatureInternalModule import org.koin.dsl.module fun userFeatureModule() = module { factory<UserFeatureDeps> { object : UserFeatureDeps { override fun provideEnvironmentInfo(): EnvironmentInfo = get() override fun provideLogger(): AppLogger = get() } } includes(userFeatureInternalModule()) }
0
Kotlin
0
2
4b7ad630dbd4838b66e560f463b025e79327bebd
569
CodeWarsChallengeViewer
Apache License 2.0
app/src/main/java/io/github/drumber/kitsune/ui/settings/SettingsFragment.kt
Drumber
406,471,554
false
{"Kotlin": 685905, "Ruby": 1828}
package io.github.drumber.kitsune.ui.settings import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.Toast import androidx.activity.result.ActivityResultLauncher import androidx.activity.result.contract.ActivityResultContracts import androidx.annotation.StringRes import androidx.core.view.isVisible import androidx.lifecycle.lifecycleScope import androidx.navigation.fragment.findNavController import androidx.preference.EditTextPreference import androidx.preference.ListPreference import androidx.preference.ListPreference.SimpleSummaryProvider import androidx.preference.Preference import androidx.preference.PreferenceFragmentCompat import androidx.preference.SwitchPreferenceCompat import androidx.recyclerview.widget.RecyclerView import com.google.android.material.snackbar.Snackbar import io.github.drumber.kitsune.BuildConfig import io.github.drumber.kitsune.R import io.github.drumber.kitsune.constants.Kitsu import io.github.drumber.kitsune.databinding.FragmentPreferenceBinding import io.github.drumber.kitsune.domain.manager.GitHubUpdateChecker import io.github.drumber.kitsune.domain.model.infrastructure.user.RatingSystemPreference import io.github.drumber.kitsune.domain.model.infrastructure.user.SfwFilterPreference import io.github.drumber.kitsune.domain.model.infrastructure.user.TitleLanguagePreference import io.github.drumber.kitsune.domain.model.infrastructure.user.User import io.github.drumber.kitsune.domain.model.preference.StartPagePref import io.github.drumber.kitsune.notification.Notifications import io.github.drumber.kitsune.preference.KitsunePref import io.github.drumber.kitsune.ui.permissions.isNotificationPermissionGranted import io.github.drumber.kitsune.ui.permissions.requestNotificationPermission import io.github.drumber.kitsune.util.extensions.openUrl import io.github.drumber.kitsune.util.initMarginWindowInsetsListener import io.github.drumber.kitsune.util.initPaddingWindowInsetsListener import kotlinx.coroutines.launch import org.koin.android.ext.android.inject import org.koin.androidx.viewmodel.ext.android.viewModel import java.util.Locale class SettingsFragment : PreferenceFragmentCompat() { private val viewModel: SettingsViewModel by viewModel() private val updateChecker: GitHubUpdateChecker by inject() // this result listener will be called on requesting notification permission after the // 'check for updates on launch' permission was changed and notification permission is not granted private lateinit var requestNotificationPermissionLauncher: ActivityResultLauncher<String> override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) requestNotificationPermissionLauncher = registerForActivityResult(ActivityResultContracts.RequestPermission()) { isGranted -> val preference = findPreference<SwitchPreferenceCompat>(R.string.preference_key_check_for_updates_on_start) if (isGranted) { preference?.isChecked = true KitsunePref.flagUserDeniedNotificationPermission = false } else { preference?.isChecked = false KitsunePref.flagUserDeniedNotificationPermission = true Toast.makeText( requireContext(), R.string.error_requires_notification_permission, Toast.LENGTH_LONG ).show() } } } override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) { preferenceManager.sharedPreferencesName = getString(R.string.preference_file_key) setPreferencesFromResource(R.xml.app_preferences, rootKey) //---- Appearance findPreference<Preference>(R.string.preference_key_fragment_appearance)?.setOnPreferenceClickListener { val action = SettingsFragmentDirections.actionSettingsFragmentToThemePreferenceFragment() findNavController().navigate(action) true } //---- Start Fragment findPreference<ListPreference>(R.string.preference_key_start_fragment)?.apply { entryValues = StartPagePref.values().map { it.name }.toTypedArray() value = KitsunePref.startFragment.name setSummaryProvider { getString(R.string.preference_start_fragment_description, entry) } setOnPreferenceChangeListener { _, newValue -> KitsunePref.startFragment = StartPagePref.valueOf(newValue as String) true } } //---- Check for Updates on Launch findPreference<SwitchPreferenceCompat>(R.string.preference_key_check_for_updates_on_start) ?.setOnPreferenceChangeListener { _, newValue -> if (newValue as Boolean && !requireContext().isNotificationPermissionGranted()) { requireActivity().requestNotificationPermission( requestNotificationPermissionLauncher ) return@setOnPreferenceChangeListener false } true } //---- App Logs findPreference<Preference>(R.string.preference_key_app_logs)?.setOnPreferenceClickListener { val action = SettingsFragmentDirections.actionSettingsFragmentToAppLogsFragment() findNavController().navigate(action) true } //---- App Version val appVersion = "${BuildConfig.VERSION_NAME} (${BuildConfig.VERSION_CODE})" findPreference<Preference>(R.string.preference_key_app_version)?.apply { summary = appVersion setOnPreferenceClickListener { checkForNewVersion() true } } //---- Open Source Libraries findPreference<Preference>(R.string.preference_key_open_source_libraries)?.setOnPreferenceClickListener { val action = SettingsFragmentDirections.actionSettingsFragmentToLibrariesFragment() findNavController().navigate(action) true } observeUserModel() } override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) view.initPaddingWindowInsetsListener(left = true, top = true, right = true, consume = false) val binding = FragmentPreferenceBinding.bind(view) binding.toolbar.setNavigationOnClickListener { findNavController().navigateUp() } viewModel.errorMessageListener = { Snackbar.make(view, "Error: ${it.getMessage(requireContext())}", Snackbar.LENGTH_LONG) .setAction(R.string.action_dismiss) { /* dismiss */ } .apply { this.view.initMarginWindowInsetsListener(bottom = true, consume = false) } .show() } viewModel.isLoading.observe(viewLifecycleOwner) { isLoading -> binding.loadingOverlay.isVisible = isLoading } } override fun onCreateRecyclerView( inflater: LayoutInflater, parent: ViewGroup, savedInstanceState: Bundle? ): RecyclerView { val recyclerView = super.onCreateRecyclerView(inflater, parent, savedInstanceState) recyclerView.initPaddingWindowInsetsListener(bottom = true, consume = false) return recyclerView } private fun checkForNewVersion() { Toast.makeText( requireContext(), R.string.info_update_checking_new_version, Toast.LENGTH_SHORT ).show() lifecycleScope.launch { when (val result = updateChecker.checkForUpdates()) { is GitHubUpdateChecker.UpdateCheckerResult.NewVersion -> { val release = result.release Notifications.showNewVersion(requireContext(), release) val message = getString( R.string.info_update_new_version_available_text, release.version ) Snackbar.make(requireView(), message, Snackbar.LENGTH_LONG) .setAction(R.string.action_view) { openUrl(release.url) } .apply { this.view.initMarginWindowInsetsListener(bottom = true, consume = false) } .show() } is GitHubUpdateChecker.UpdateCheckerResult.NoNewVersion -> { Toast.makeText( requireContext(), R.string.info_update_no_new_version_available, Toast.LENGTH_SHORT ).show() } is GitHubUpdateChecker.UpdateCheckerResult.Failed -> { Toast.makeText( requireContext(), R.string.info_update_failed, Toast.LENGTH_SHORT ).show() } } } } private fun observeUserModel() { viewModel.userModel.observe(this) { user -> //---- Title Language Preference findPreference<ListPreference>(R.string.preference_key_titles)?.apply { entryValues = TitleLanguagePreference.values().map { it.name }.toTypedArray() setDefaultValue(KitsunePref.titles.name) value = KitsunePref.titles.name setOnPreferenceChangeListener { _, newValue -> val titlesPref = TitleLanguagePreference.valueOf(newValue.toString()) KitsunePref.titles = titlesPref // Title preference can be also changed without being logged in. // Do only try to update the user model if logged in. if (user != null) { updateUserIfChanged( value, newValue, User(user.id, titleLanguagePreference = titlesPref) ) } true } } //---- Country findPreference<ListPreference>(R.string.preference_key_country)?.apply { entryValues = Locale.getISOCountries() entries = Locale.getISOCountries().map { Locale("", it).displayCountry }.toTypedArray() value = user?.country setOnPreferenceChangeListener { _, newValue -> if (user == null) return@setOnPreferenceChangeListener false updateUserIfChanged( value, newValue, User(user.id, country = newValue as String) ) true } requireUserLoggedIn(user) { if (it.value == null) { getString(R.string.preference_country_summary_non) } else { val countryName = Locale("", it.value).displayName getString(R.string.preference_country_summary, countryName) } } } //---- Adult Content findPreference<ListPreference>(R.string.preference_key_sfw_filter)?.apply { value = user?.sfwFilterPreference?.name entryValues = SfwFilterPreference.values().map { it.name }.toTypedArray() setOnPreferenceChangeListener { _, newValue -> if (user == null) return@setOnPreferenceChangeListener false updateUserIfChanged( value, newValue, User( user.id, sfwFilterPreference = SfwFilterPreference.valueOf(newValue as String) ) ) true } requireUserLoggedIn(user) { val filterPreference = it.value?.let { filter -> SfwFilterPreference.valueOf(filter) } getString( when (filterPreference) { SfwFilterPreference.SFW -> R.string.preference_adult_content_description_sfw SfwFilterPreference.NSFW_SOMETIMES -> R.string.preference_adult_content_description_sometimes SfwFilterPreference.NSFW_EVERYWHERE -> R.string.preference_adult_content_description_everywhere else -> R.string.no_information } ) } } //---- Rating System findPreference<ListPreference>(R.string.preference_key_rating_system)?.apply { entryValues = RatingSystemPreference.values().reversed().map { it.name }.toTypedArray() value = user?.ratingSystem?.name setOnPreferenceChangeListener { _, newValue -> if (user == null) return@setOnPreferenceChangeListener false updateUserIfChanged( value, newValue, User( user.id, ratingSystem = RatingSystemPreference.valueOf(newValue as String) ) ) true } requireUserLoggedIn(user, summaryProvider = SimpleSummaryProvider.getInstance()) } //---- Display Name findPreference<EditTextPreference>(R.string.preference_key_display_name)?.apply { text = user?.name setOnPreferenceChangeListener { _, newValue -> if (user == null) return@setOnPreferenceChangeListener false updateUserIfChanged(text, newValue, User(user.id, name = newValue as String)) true } requireUserLoggedIn(user) { it.text } } //---- Profile URL findPreference<EditTextPreference>(R.string.preference_key_profile_url)?.apply { text = user?.slug setOnPreferenceChangeListener { _, newValue -> if (user == null) return@setOnPreferenceChangeListener false updateUserIfChanged(text, newValue, User(user.id, slug = newValue as String)) true } requireUserLoggedIn(user) { Kitsu.USER_URL_PREFIX + it.text } } } } private fun updateUserIfChanged(oldValue: Any?, newValue: Any?, user: User) { if (oldValue != newValue) { viewModel.updateUser(user) } } private inline fun <reified T : Preference> T.requireUserLoggedIn( user: User?, @StringRes messageRes: Int = R.string.preference_not_logged_in, summaryProvider: Preference.SummaryProvider<T>? = null ) { isEnabled = user != null if (user == null) { summary = getString(messageRes) } this.summaryProvider = if (user != null) { summaryProvider } else { null } } private fun <T : Preference> findPreference(@StringRes preferenceKey: Int): T? { return findPreference(getString(preferenceKey)) } override fun onDestroyView() { super.onDestroyView() viewModel.errorMessageListener = null } }
9
Kotlin
1
26
ff52e107da12d191d789d116c98bfac24c973cd9
15,957
Kitsune
Apache License 2.0
app/src/main/java/com/jichinx/open/demo/abadge/MainActivity.kt
JichinX
798,640,308
false
{"Kotlin": 7496}
package com.jichinx.open.demo.abadge import android.os.Bundle import android.widget.Toast import androidx.activity.enableEdgeToEdge import androidx.appcompat.app.AppCompatActivity import androidx.core.view.ViewCompat import androidx.core.view.WindowInsetsCompat import com.jichinx.open.abadge.BadgeManager import com.jichinx.open.demo.abadge.databinding.ActivityMainBinding class MainActivity : AppCompatActivity() { private lateinit var binding: ActivityMainBinding override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) enableEdgeToEdge() binding = ActivityMainBinding.inflate(layoutInflater) setContentView(binding.root) ViewCompat.setOnApplyWindowInsetsListener(binding.main) { v, insets -> val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars()) v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom) insets } binding.btnBadgeSet.setOnClickListener { val number = try { binding.etNumber.text.toString().toInt() } catch (ex: Exception) { toastMsg(ex.toString()) 0 } BadgeManager.from(this).setBadgeNumber(number) } } private fun toastMsg(msg: String) { Toast.makeText(this, msg, Toast.LENGTH_SHORT).show() } }
0
Kotlin
0
0
c2bc019c59eb41967adb9f05253a3bc872745c36
1,420
Abadge
Apache License 2.0
core/compose-ui/src/main/kotlin/xyz/qwexter/compose_ui/Theme.kt
qwexter
345,752,908
false
null
package xyz.qwexter.compose_ui import androidx.compose.material.MaterialTheme import androidx.compose.runtime.Composable import xyz.qwexter.compose_ui.PlantsColors import xyz.qwexter.compose_ui.PlantsShapes import xyz.qwexter.compose_ui.PlantsTypography @Composable fun PlantsTheme( content: @Composable () -> Unit ) { MaterialTheme( colors = PlantsColors, typography = PlantsTypography, shapes = PlantsShapes, content = content ) }
2
Kotlin
0
0
c6c5ec88436948c6046ea95d269d8727b0d0798c
479
plantscare
MIT License
demo/composeApp/src/commonMain/kotlin/com/kmpalette/demo/dominant/DominantPhotoColorScreen.kt
jordond
690,222,635
false
null
package com.kmpalette.demo.dominant import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.FlowRow import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.WindowInsets import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.heightIn import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.safeDrawing import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.verticalScroll import androidx.compose.material3.Button import androidx.compose.material3.CircularProgressIndicator import androidx.compose.material3.FilterChip import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect 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.graphics.ImageBitmap import androidx.compose.ui.graphics.painter.Painter import androidx.compose.ui.graphics.toArgb import androidx.compose.ui.unit.dp import cafe.adriel.voyager.core.screen.Screen import com.kmpalette.DominantColorState import com.kmpalette.PaletteResult import com.kmpalette.demo.theme.AppTheme import com.kmpalette.demo.util.ColorBox import com.kmpalette.demo.util.colorSchemePairs import com.kmpalette.rememberDominantColorState import com.materialkolor.PaletteStyle import com.mohamedrejeb.calf.io.readByteArray import com.mohamedrejeb.calf.picker.FilePickerFileType import com.mohamedrejeb.calf.picker.FilePickerSelectionMode import com.mohamedrejeb.calf.picker.rememberFilePickerLauncher import com.mohamedrejeb.calf.picker.toImageBitmap class DominantPhotoColorScreen : Screen { @Composable override fun Content() { val dominantColorState = rememberDominantColorState { clearFilters() } var selectedPhoto: ImageBitmap? by remember { mutableStateOf(null) } val pickerLauncher = rememberFilePickerLauncher( type = FilePickerFileType.Image, selectionMode = FilePickerSelectionMode.Single, onResult = { files -> val bitmap = files.firstOrNull()?.readByteArray()?.toImageBitmap() selectedPhoto = bitmap } ) LaunchedEffect(selectedPhoto) { if (selectedPhoto != null) { dominantColorState.updateFrom(selectedPhoto!!) } } DominantDemoContent( dominantColorState = dominantColorState, imageBitmap = selectedPhoto, ) { Row( verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.Center, modifier = Modifier.fillMaxWidth(), ) { Button(onClick = { pickerLauncher.launch() }) { Text("Choose a photo") } } } } } @Composable internal fun <T : Any> DominantDemoContent( dominantColorState: DominantColorState<T>, imageBitmap: ImageBitmap? = null, painter: Painter? = null, content: @Composable () -> Unit = {}, ) { var style: PaletteStyle by remember { mutableStateOf(PaletteStyle.TonalSpot) } AppTheme( seedColor = dominantColorState.color, paletteStyle = style, ) { Column( modifier = Modifier .fillMaxSize() .windowInsetsPadding(WindowInsets.safeDrawing) .padding(8.dp) .verticalScroll(rememberScrollState()), horizontalAlignment = Alignment.CenterHorizontally, ) { content() if (imageBitmap != null) { Image( bitmap = imageBitmap, contentDescription = null, modifier = Modifier.heightIn(max = 200.dp) ) } else if (painter != null) { Image( painter = painter, contentDescription = null, modifier = Modifier.heightIn(max = 200.dp) ) } when (dominantColorState.result) { is PaletteResult.Error -> { val error = (dominantColorState.result as PaletteResult.Error).cause Text("Something went wrong: $error") } is PaletteResult.Loading -> { CircularProgressIndicator() Text("Loading...") } is PaletteResult.Success -> { SuccessView(dominantColorState = dominantColorState) FlowRow( modifier = Modifier .padding(2.dp) .fillMaxWidth() ) { PaletteStyle.entries.forEach { paletteStyle -> FilterChip( label = { Text(text = paletteStyle.name) }, selected = style == paletteStyle, onClick = { style = paletteStyle }, ) } } } null -> {} } } } } @Composable private fun SuccessView( dominantColorState: DominantColorState<*>, ) { Row( verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.Center, modifier = Modifier.fillMaxWidth(), ) { Text("Dominant color: 0x${dominantColorState.color.toArgb().toHexString().uppercase()}") Box( modifier = Modifier .size(64.dp) .padding(8.dp) .background(dominantColorState.color), ) } Column { colorSchemePairs().forEach { (name, colors) -> val (color, onColor) = colors Row(modifier = Modifier.fillMaxWidth()) { ColorBox(text = name, color = color, modifier = Modifier.weight(1f)) ColorBox(text = "On$name", color = onColor, modifier = Modifier.weight(1f)) } } } }
5
null
5
93
25939de79c9c9de925c5e0b0f02eb7087d945652
6,783
kmpalette
MIT License
components/archive/category/src/main/java/com/flipperdevices/archive/category/composable/ComposableDeleted.kt
flipperdevices
288,258,832
false
null
package com.flipperdevices.archive.category.composable import androidx.compose.foundation.clickable import androidx.compose.foundation.interaction.MutableInteractionSource import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.material.DropdownMenu import androidx.compose.material.DropdownMenuItem import androidx.compose.material.Icon import androidx.compose.material.Text import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.MoreVert import androidx.compose.material.ripple.rememberRipple 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.Modifier import androidx.compose.ui.res.stringResource import androidx.lifecycle.viewmodel.compose.viewModel import com.flipperdevices.archive.category.R import com.flipperdevices.archive.category.viewmodels.DeleteViewModel import com.flipperdevices.archive.model.CategoryType import com.flipperdevices.archive.shared.composable.ComposableAppBar import com.flipperdevices.core.ui.ktx.LocalRouter @Composable fun ComposableDeleted() { Column { ComposableDeletedAppBar() ComposableCategoryContent(CategoryType.Deleted, synchronizationUiApi = null) } } @Composable private fun ComposableDeletedAppBar( deleteViewModel: DeleteViewModel = viewModel() ) { val router = LocalRouter.current ComposableAppBar( title = stringResource(R.string.category_deleted_title), onBack = { router.exit() }, endContent = { var showMenu by remember { mutableStateOf(false) } Row( modifier = it, horizontalArrangement = Arrangement.End ) { Icon( modifier = Modifier.clickable( interactionSource = remember { MutableInteractionSource() }, indication = rememberRipple(bounded = false), onClick = { showMenu = true } ), imageVector = Icons.Default.MoreVert, contentDescription = null ) DropdownMenu( expanded = showMenu, onDismissRequest = { showMenu = false } ) { DropdownMenuItem(onClick = { deleteViewModel.onDeleteAll() showMenu = false }) { Text(text = stringResource(R.string.category_item_delete_all)) } DropdownMenuItem(onClick = { deleteViewModel.onRestoreAll() showMenu = false }) { Text(text = stringResource(R.string.category_item_restore_all)) } } } } ) }
2
null
31
293
522f873d6dcf09a8f1907c1636fb0c3a996f5b44
3,123
Flipper-Android-App
MIT License
kompass-core/src/jvmMain/kotlin/io/sellmair/kompass/core/internal/Lock.kt
sellmair
113,365,232
false
null
package io.sellmair.kompass.core.internal import java.util.concurrent.locks.ReentrantLock import kotlin.concurrent.withLock internal actual class Lock { private val reentrantLock = ReentrantLock() actual operator fun <T> invoke(action: () -> T): T = reentrantLock.withLock(action) }
9
Kotlin
12
345
0f46ef4d70a686ac231ef320844af7389f1cd0b1
295
kompass
MIT License
feature/hall-of-fame/src/commonMain/kotlin/com/opencritic/halloffame/di/Module.kt
MAX-POLKOVNIK
797,563,657
false
{"Kotlin": 604244, "Swift": 213504, "Objective-C": 8050}
package com.opencritic.halloffame.di import com.opencritic.halloffame.data.HallOfFameRepositoryImpl import com.opencritic.halloffame.domain.GetHallsOfFameInteractor import com.opencritic.halloffame.domain.HallOfFameRepository import com.opencritic.halloffame.ui.HallsOfFameViewModel import com.opencritic.mvvm.viewModelOf import org.koin.core.module.dsl.singleOf import org.koin.dsl.module val hallOfFameModule = module { single<HallOfFameRepository> { HallOfFameRepositoryImpl(get()) } singleOf(::GetHallsOfFameInteractor) viewModelOf(::HallsOfFameViewModel) }
0
Kotlin
0
4
99c3df65e8620fe5f2d5c16ade0d593357869fa5
577
OpenCritic
Apache License 2.0
compiler/testData/codegen/box/ranges/nullableLoopParameter/rangeLiteral.kt
JakeWharton
99,388,807
false
null
// IGNORE_BACKEND: JS_IR fun box(): String { var result = 0 for (i: Int? in 1..3) { result = sum(result, i) } return if (result == 6) "OK" else "fail: $result" } fun sum(i: Int, z: Int?): Int { return i + z!! }
179
null
5640
83
4383335168338df9bbbe2a63cb213a68d0858104
239
kotlin
Apache License 2.0
_router/router-api/src/main/java/io/androidalatan/router/api/journey/builder/JourneyBuilder.kt
android-alatan
466,507,427
false
null
package io.androidalatan.router.api.journey.builder import android.app.Activity import android.app.Service import android.content.Intent import androidx.fragment.app.Fragment interface JourneyBuilder { fun activity(destination: Class<out Activity>): ActivityJourneyBuilder fun activityIntent(intent: Intent? = null): ActivityIntentJourneyBuilder fun service(destination: Class<out Service>): ServiceJourneyBuilder fun fragment(destination: Class<out Fragment>): FragmentJourneyBuilder }
3
Kotlin
5
56
35b0ec7a89f8254db0af1830ac1de8a7124c6f09
504
LifecycleComponents
MIT License
eva-persistence-jdbc/src/test/kotlin/com/razz/eva/persistence/jdbc/executor/JdbcQueryExecutorSpec.kt
razz-team
477,827,497
false
null
package com.razz.eva.persistence.jdbc.executor import com.razz.eva.persistence.jdbc.JdbcConnectionElement import com.razz.eva.persistence.jdbc.JdbcConnectionProvider import com.razz.eva.persistence.jdbc.JdbcTransactionManager import io.kotest.assertions.throwables.shouldThrow import io.kotest.core.spec.style.BehaviorSpec import io.kotest.matchers.shouldBe import io.mockk.clearMocks import io.mockk.coEvery import io.mockk.coVerify import io.mockk.mockk import io.mockk.spyk import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext import org.jooq.SQLDialect.POSTGRES import org.jooq.impl.DSL import java.sql.Connection class JdbcQueryExecutorSpec : BehaviorSpec({ val dslContext = DSL.using(POSTGRES) val select = DSL.using(POSTGRES).selectFrom("SELECT * FROM table") val store = DSL.using(POSTGRES).updateQuery(DSL.table("table")) val delete = DSL.using(POSTGRES).deleteQuery(DSL.table("table")) Given("Jdbc query executor with connection provider") { val connectionProvider = mockk<JdbcConnectionProvider>(relaxed = true) val jdbcTransactionManager = spyk(JdbcTransactionManager(connectionProvider, connectionProvider)) val jdbcExecutor = JdbcQueryExecutor(jdbcTransactionManager) And("Connection from provider") { clearMocks(connectionProvider, answers = false) clearMocks(jdbcTransactionManager, answers = false) val connection = mockk<Connection>(relaxed = true) coEvery { connectionProvider.acquire() } coAnswers { connection } When("Principal calls execute select without context") { jdbcExecutor.executeSelect( dslContext, select, DSL.table("cool_table"), ) Then("Connection was acquired and released on delegate provider") { coVerify(exactly = 1) { connectionProvider.acquire() connectionProvider.release(connection) } } } } And("Another connection from provider") { clearMocks(connectionProvider, answers = false) clearMocks(jdbcTransactionManager, answers = false) val connection = mockk<Connection>(relaxed = true) coEvery { connectionProvider.acquire() } coAnswers { connection } When("Principal calls execute store without context") { val storeRun = suspend { jdbcExecutor.executeStore( dslContext, store, DSL.table("cool_table"), ) } Then("Exception thrown saying there is context missing") { val ex = shouldThrow<IllegalStateException> { storeRun() } ex.message shouldBe "Required existing connection but no existing connection was found" } And("Connection was not acquired and was not released on delegate provider") { coVerify(exactly = 0) { connectionProvider.acquire() connectionProvider.release(connection) } } } } And("Another connection from provider") { clearMocks(connectionProvider, answers = false) clearMocks(jdbcTransactionManager, answers = false) val connection = mockk<Connection>(relaxed = true) coEvery { connectionProvider.acquire() } coAnswers { connection } When("Principal calls execute delete without context") { val storeRun = suspend { jdbcExecutor.executeQuery( dslContext, delete, ) } Then("Exception thrown saying there is context missing") { val ex = shouldThrow<IllegalStateException> { storeRun() } ex.message shouldBe "Required existing connection but no existing connection was found" } And("Connection was not acquired and was not released on delegate provider") { coVerify(exactly = 0) { connectionProvider.acquire() connectionProvider.release(connection) } } } } And("Connection from context") { clearMocks(connectionProvider, answers = false) clearMocks(jdbcTransactionManager, answers = false) val connection = mockk<Connection>(relaxed = true) When("Principal calls execute select with context") { withContext(Dispatchers.IO + JdbcConnectionElement(connection)) { jdbcExecutor.executeSelect( dslContext, select, DSL.table("cool_table"), ) } Then("Connection was not acquired and was not released on delegate provider") { coVerify(exactly = 0) { connectionProvider.acquire() connectionProvider.release(connection) } } } } And("Another connection from context") { clearMocks(connectionProvider, answers = false) clearMocks(jdbcTransactionManager, answers = false) val connection = mockk<Connection>(relaxed = true) When("Principal calls execute store with context") { withContext(Dispatchers.IO + JdbcConnectionElement(connection)) { jdbcExecutor.executeStore( dslContext, store, DSL.table("cool_table"), ) } Then("Connection was not acquired and was not released on delegate provider") { coVerify(exactly = 0) { connectionProvider.acquire() connectionProvider.release(connection) } } } } And("Another connection from context") { clearMocks(connectionProvider, answers = false) clearMocks(jdbcTransactionManager, answers = false) val connection = mockk<Connection>(relaxed = true) When("Principal calls execute delete with context") { withContext(Dispatchers.IO + JdbcConnectionElement(connection)) { jdbcExecutor.executeQuery( dslContext, delete, ) } Then("Connection was not acquired and was not released on delegate provider") { coVerify(exactly = 0) { connectionProvider.acquire() connectionProvider.release(connection) } } } } } })
7
null
0
49
3231491c91e417f11fad4557650f0fcdc60f741e
7,208
eva
Apache License 2.0
entity-service/src/test/kotlin/com/egm/stellio/entity/service/EntityOperationServiceTests.kt
stellio-hub
257,818,724
false
null
package com.egm.stellio.entity.service import com.egm.stellio.entity.model.NotUpdatedDetails import com.egm.stellio.entity.model.UpdateResult import com.egm.stellio.entity.repository.Neo4jRepository import com.egm.stellio.entity.web.BatchEntityError import com.egm.stellio.entity.web.BatchEntitySuccess import com.egm.stellio.shared.model.BadRequestDataException import com.egm.stellio.shared.model.NgsiLdEntity import com.egm.stellio.shared.util.toUri import com.ninjasquad.springmockk.MockkBean import io.mockk.confirmVerified import io.mockk.every import io.mockk.mockk import io.mockk.mockkClass import io.mockk.verify import org.junit.jupiter.api.Assertions.assertEquals import org.junit.jupiter.api.Assertions.assertTrue import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.api.Test import org.springframework.beans.factory.annotation.Autowired import org.springframework.boot.test.context.SpringBootTest import org.springframework.test.context.ActiveProfiles @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE, classes = [EntityOperationService::class]) @ActiveProfiles("test") class EntityOperationServiceTests { @MockkBean private lateinit var entityService: EntityService @MockkBean private lateinit var neo4jRepository: Neo4jRepository @Autowired private lateinit var entityOperationService: EntityOperationService val firstEntityURI = "urn:ngsi-ld:Device:HCMR-AQUABOX1".toUri() val secondEntityURI = "urn:ngsi-ld:Device:HCMR-AQUABOX2".toUri() private lateinit var firstEntity: NgsiLdEntity private lateinit var secondEntity: NgsiLdEntity @BeforeEach fun initNgsiLdEntitiesMocks() { firstEntity = mockkClass(NgsiLdEntity::class, relaxed = true) every { firstEntity.id } returns firstEntityURI secondEntity = mockkClass(NgsiLdEntity::class, relaxed = true) every { secondEntity.id } returns secondEntityURI } @Test fun `it should split entities per existence`() { every { neo4jRepository.filterExistingEntitiesAsIds(listOf(firstEntityURI, secondEntityURI)) } returns listOf(firstEntityURI) val (exist, doNotExist) = entityOperationService.splitEntitiesByExistence(listOf(firstEntity, secondEntity)) assertEquals(listOf(firstEntity), exist) assertEquals(listOf(secondEntity), doNotExist) } @Test fun `it should split entities per existence with ids`() { every { neo4jRepository.filterExistingEntitiesAsIds(listOf(firstEntityURI, secondEntityURI)) } returns listOf(firstEntityURI) val (exist, doNotExist) = entityOperationService.splitEntitiesIdsByExistence(listOf(firstEntityURI, secondEntityURI)) assertEquals(listOf(firstEntityURI), exist) assertEquals(listOf(secondEntityURI), doNotExist) } @Test fun `it should ask to create all provided entities`() { every { entityService.createEntity(firstEntity) } returns firstEntity.id every { entityService.createEntity(secondEntity) } returns secondEntity.id val batchOperationResult = entityOperationService.create(listOf(firstEntity, secondEntity)) assertEquals( arrayListOf(firstEntityURI, secondEntityURI), batchOperationResult.getSuccessfulEntitiesIds() ) assertTrue(batchOperationResult.errors.isEmpty()) verify { entityService.createEntity(firstEntity) } verify { entityService.createEntity(secondEntity) } confirmVerified(entityService) } @Test fun `it should ask to create entities and transmit back any error`() { every { entityService.createEntity(firstEntity) } returns firstEntity.id every { entityService.createEntity(secondEntity) } throws BadRequestDataException("Invalid entity") val batchOperationResult = entityOperationService.create(listOf(firstEntity, secondEntity)) assertEquals(arrayListOf(BatchEntitySuccess(firstEntityURI)), batchOperationResult.success) assertEquals( arrayListOf( BatchEntityError(secondEntityURI, arrayListOf("Invalid entity")) ), batchOperationResult.errors ) } @Test fun `it should ask to update attributes of entities`() { every { entityService.appendEntityAttributes(eq(firstEntityURI), any(), any()) } returns UpdateResult( emptyList(), emptyList() ) every { entityService.appendEntityAttributes(eq(secondEntityURI), any(), any()) } returns UpdateResult( emptyList(), emptyList() ) val batchOperationResult = entityOperationService.update(listOf(firstEntity, secondEntity)) assertEquals( listOf(firstEntityURI, secondEntityURI), batchOperationResult.getSuccessfulEntitiesIds() ) verify { entityService.appendEntityAttributes(eq(firstEntityURI), any(), false) } verify { entityService.appendEntityAttributes(eq(secondEntityURI), any(), false) } confirmVerified(entityService) } @Test fun `it should count as error an update which raises a BadRequestDataException`() { every { entityService.appendEntityAttributes(eq(firstEntityURI), any(), any()) } returns UpdateResult( emptyList(), emptyList() ) every { entityService.appendEntityAttributes(eq(secondEntityURI), any(), any()) } throws BadRequestDataException("error") val batchOperationResult = entityOperationService.update(listOf(firstEntity, secondEntity)) assertEquals( listOf(BatchEntitySuccess(firstEntityURI, updateResult = UpdateResult(emptyList(), emptyList()))), batchOperationResult.success ) assertEquals( listOf(BatchEntityError(secondEntityURI, arrayListOf("error"))), batchOperationResult.errors ) } @Test fun `it should count as error not updated attributes in entities`() { val updateResult = UpdateResult( emptyList(), listOf( NotUpdatedDetails("attribute#1", "reason"), NotUpdatedDetails("attribute#2", "reason") ) ) every { entityService.appendEntityAttributes(eq(firstEntityURI), any(), any()) } returns UpdateResult( emptyList(), emptyList() ) every { entityService.appendEntityAttributes(eq(secondEntityURI), any(), any()) } returns updateResult val batchOperationResult = entityOperationService.update(listOf(firstEntity, secondEntity)) assertEquals( listOf(BatchEntitySuccess(firstEntityURI, UpdateResult(emptyList(), emptyList()))), batchOperationResult.success ) assertEquals( listOf( BatchEntityError( secondEntityURI, arrayListOf("attribute#1 : reason, attribute#2 : reason") ) ), batchOperationResult.errors ) } @Test fun `it should ask to replace entities`() { every { neo4jRepository.deleteEntityAttributes(firstEntityURI) } returns mockk() every { entityService.appendEntityAttributes(eq(firstEntityURI), any(), any()) } returns UpdateResult( emptyList(), emptyList() ) every { neo4jRepository.deleteEntityAttributes(secondEntityURI) } returns mockk() every { entityService.appendEntityAttributes(eq(secondEntityURI), any(), any()) } returns UpdateResult( emptyList(), emptyList() ) val batchOperationResult = entityOperationService.replace(listOf(firstEntity, secondEntity)) assertEquals( listOf(firstEntityURI, secondEntityURI), batchOperationResult.getSuccessfulEntitiesIds() ) assertTrue(batchOperationResult.errors.isEmpty()) verify { neo4jRepository.deleteEntityAttributes(firstEntityURI) } verify { neo4jRepository.deleteEntityAttributes(secondEntityURI) } confirmVerified(neo4jRepository) verify { entityService.appendEntityAttributes(eq(firstEntityURI), any(), false) } verify { entityService.appendEntityAttributes(eq(secondEntityURI), any(), false) } confirmVerified(entityService) } @Test fun `it should count as error an replace which raises a BadRequestDataException`() { every { neo4jRepository.deleteEntityAttributes(firstEntityURI) } returns mockk() every { entityService.appendEntityAttributes(eq(firstEntityURI), any(), any()) } returns UpdateResult( emptyList(), emptyList() ) every { neo4jRepository.deleteEntityAttributes(secondEntityURI) } returns mockk() every { entityService.appendEntityAttributes(eq(secondEntityURI), any(), any()) } throws BadRequestDataException("error") val batchOperationResult = entityOperationService.replace(listOf(firstEntity, secondEntity)) assertEquals(listOf(BatchEntitySuccess(firstEntityURI)), batchOperationResult.success) assertEquals( listOf(BatchEntityError(secondEntityURI, arrayListOf("error"))), batchOperationResult.errors ) } @Test fun `it should count as error not replaced entities in entities`() { every { neo4jRepository.deleteEntityAttributes(firstEntityURI) } returns mockk() every { entityService.appendEntityAttributes(eq(firstEntityURI), any(), any()) } returns UpdateResult( emptyList(), emptyList() ) every { neo4jRepository.deleteEntityAttributes(secondEntityURI) } returns mockk() every { entityService.appendEntityAttributes(eq(secondEntityURI), any(), any()) } returns UpdateResult( emptyList(), listOf( NotUpdatedDetails("attribute#1", "reason"), NotUpdatedDetails("attribute#2", "reason") ) ) val batchOperationResult = entityOperationService.replace(listOf(firstEntity, secondEntity)) assertEquals(listOf(BatchEntitySuccess(firstEntityURI)), batchOperationResult.success) assertEquals( listOf( BatchEntityError( secondEntityURI, arrayListOf("attribute#1 : reason, attribute#2 : reason") ) ), batchOperationResult.errors ) } @Test fun `it should return the list of deleted entity ids when deletion is successful`() { every { entityService.deleteEntity(any()) } returns Pair(1, 1) val batchOperationResult = entityOperationService.delete(setOf(firstEntityURI, secondEntityURI)) assertEquals( listOf(firstEntityURI, secondEntityURI), batchOperationResult.getSuccessfulEntitiesIds() ) assertEquals(emptyList<BatchEntityError>(), batchOperationResult.errors) verify { entityService.deleteEntity(firstEntityURI) } verify { entityService.deleteEntity(secondEntityURI) } confirmVerified(entityService) } @Test fun `it should return the list of deleted entity ids and in errors when deletion is partially successful`() { every { entityService.deleteEntity(firstEntityURI) } returns Pair(1, 1) every { entityService.deleteEntity(secondEntityURI) } throws RuntimeException("Something went wrong during deletion") val batchOperationResult = entityOperationService.delete(setOf(firstEntityURI, secondEntityURI)) assertEquals( listOf(BatchEntitySuccess(firstEntityURI)), batchOperationResult.success ) assertEquals( listOf( BatchEntityError( secondEntityURI, mutableListOf("Something went wrong during deletion") ) ), batchOperationResult.errors ) } @Test fun `it should return error messages when deletion in DB has failed`() { val deleteEntityErrorMessage = "Something went wrong with deletion request" every { entityService.deleteEntity(any()) } throws RuntimeException(deleteEntityErrorMessage) val batchOperationResult = entityOperationService.delete(setOf(firstEntityURI, secondEntityURI)) assertEquals(emptyList<String>(), batchOperationResult.success) assertEquals( listOf( BatchEntityError( firstEntityURI, mutableListOf(deleteEntityErrorMessage) ), BatchEntityError( secondEntityURI, mutableListOf(deleteEntityErrorMessage) ) ), batchOperationResult.errors ) verify { entityService.deleteEntity(firstEntityURI) } verify { entityService.deleteEntity(secondEntityURI) } confirmVerified(entityService) } }
50
Kotlin
8
16
38bc7189a5fec1b14a46e86fc35e1ee7d842d8c0
13,397
stellio-context-broker
Apache License 2.0
kotlin-electron/src/jsMain/generated/electron/core/FeedURLOptions.kt
JetBrains
93,250,841
false
null
package electron.core external interface FeedURLOptions { var url: String /** * HTTP request headers. * * @platform darwin */ var headers: js.core.ReadonlyRecord<String, String>? /** * Can be `json` or `default`, see the Squirrel.Mac README for more information. * * @platform darwin */ var serverType: (FeedURLOptionsServerType)? }
40
null
174
1,347
997ed3902482883db4a9657585426f6ca167d556
397
kotlin-wrappers
Apache License 2.0
modulo-02-controles-de-fluxo-no-kotlin/src/main/kotlin/UsoDoWhile.kt
ffelicio82-android
577,000,005
false
null
/* * While * * Assim como no Java, o Kotlin possui a instrução while para percorrer os dados. * Além do while, o Kotlin também possui o do/while * Eles servem para o mesmo propósito, mas a diferença entre eles é que o do/while executa a instrução ao menos uma vez. */ fun main() { var a : Int = 10 while(a > 0) { println(a) a-- } println() println("------------------------------------") println() var b : Int = 10 do { println(b) b-- } while(b > 0) println() println("------------------------------------") println() /* * No código abaixo, a instrução dentro do while não será executada devido a verificação realizada */ var c : Int = 0 while(c > 0) { // não será executada a instrução println(c) c-- } println() println("------------------------------------") println() /* * No código abaixo, a instrução dentro do do/while será executada ao menos uma vez * mesmo que a verificação dentro do while esteja analisando se o valor é maior que 0 */ var d : Int = 0 do { // executa a instrução ao menos uma vez, mesmo que o valor seja 0 println(d) d-- } while(d > 0) }
0
Kotlin
0
0
36358bdf1d6608d7ea9d7bd66fc3075902b03eff
1,274
curso-dev-kotlin
Apache License 2.0
compiler/testData/evaluate/usesVariableAsConstant/OtherTypes.kt
JakeWharton
99,388,807
false
null
package test enum class MyEnum { A, B } fun foo(): Boolean = true val x = 1 // val prop1: false val prop1 = MyEnum.A // val prop2: null val prop2 = foo() // val prop3: true val prop3 = "$x" // val prop4: false val prop4 = intArrayOf(1, 2, 3) // val prop5: true val prop5 = intArrayOf(1, 2, x, x)
181
null
5748
83
4383335168338df9bbbe2a63cb213a68d0858104
304
kotlin
Apache License 2.0
simplexml-ksp-test/kmm/src/commonTest/kotlin/ua/vald_zx/simplexml/ksp/test/list/ListTests.kt
ValdZX
372,240,045
false
{"Kotlin": 236365}
package ua.vald_zx.simplexml.ksp.test.list import ua.vald_zx.simplexml.ksp.SimpleXml import ua.vald_zx.simplexml.ksp.test.custompackage.TestSerializersEnrolment import kotlin.js.JsName import kotlin.test.BeforeTest import kotlin.test.Test import kotlin.test.assertEquals class ListTests { @BeforeTest fun init() { TestSerializersEnrolment.enrol() } @Test @JsName("ConstructorFieldListOfStringsTest") fun `ConstructorFieldListOfStrings serialize deserialize test`() { val bean = ConstructorFieldListOfStrings(listOf("Value1", "Value2", "Value3")) val xml = SimpleXml.serialize(bean) println(xml) val deserializedBean: ConstructorFieldListOfStrings = SimpleXml.deserialize(xml) assertEquals(bean, deserializedBean) } @Test @JsName("ConstructorFieldListOfStringsNullableTest") fun `ConstructorFieldListOfStringsNullable serialize deserialize test`() { val bean = ConstructorFieldListOfStringsNullable(listOf("Value1", "Value2", "Value3")) val xml = SimpleXml.serialize(bean) println(xml) val deserializedBean: ConstructorFieldListOfStringsNullable = SimpleXml.deserialize(xml) assertEquals(bean, deserializedBean) } @Test @JsName("ConstructorInlineFieldListOfStringsTest") fun `ConstructorInlineFieldListOfStrings serialize deserialize test`() { val bean = ConstructorInlineFieldListOfStrings(listOf("Value1", "Value2", "Value3")) val xml = SimpleXml.serialize(bean) println(xml) val deserializedBean: ConstructorInlineFieldListOfStrings = SimpleXml.deserialize(xml) assertEquals(bean, deserializedBean) } @Test @JsName("ConstructorFieldListOfStringsWithoutNameTest") fun `ConstructorFieldListOfStringsWithoutName serialize deserialize test`() { val bean = ConstructorFieldListOfStringsWithoutName(listOf("Value1", "Value2", "Value3")) val xml = SimpleXml.serialize(bean) println(xml) val deserializedBean: ConstructorFieldListOfStringsWithoutName = SimpleXml.deserialize(xml) assertEquals(bean, deserializedBean) } @Test @JsName("ConstructorFieldListOfStringsWithoutEntryTest") fun `ConstructorFieldListOfStringsWithoutEntry serialize deserialize test`() { val bean = ConstructorFieldListOfStringsWithoutEntry(listOf("Value1", "Value2", "Value3")) val xml = SimpleXml.serialize(bean) println(xml) val deserializedBean: ConstructorFieldListOfStringsWithoutEntry = SimpleXml.deserialize(xml) assertEquals(bean, deserializedBean) } @Test @JsName("ConstructorInlineFieldListOfStringsWithoutEntryTest") fun `ConstructorInlineFieldListOfStringsWithoutEntry serialize deserialize test`() { val bean = ConstructorInlineFieldListOfStringsWithoutEntry(listOf("Value1", "Value2", "Value3")) val xml = SimpleXml.serialize(bean) println(xml) val deserializedBean: ConstructorInlineFieldListOfStringsWithoutEntry = SimpleXml.deserialize(xml) assertEquals(bean, deserializedBean) } @Test @JsName("ConstructorFieldListOfObjectsTest") fun `ConstructorFieldListOfObjects serialize deserialize test`() { val bean = ConstructorFieldListOfObjects( listOf( ListItem("Value1", 1), ListItem("Value2", 2), ListItem("Value3", 3), ) ) val xml = SimpleXml.serialize(bean) println(xml) val deserializedBean: ConstructorFieldListOfObjects = SimpleXml.deserialize(xml) assertEquals(bean, deserializedBean) } @Test @JsName("ConstructorInlineFieldListOfObjectsTest") fun `ConstructorInlineFieldListOfObjects serialize deserialize test`() { val bean = ConstructorInlineFieldListOfObjects( listOf( ListItem("Value1", 1), ListItem("Value2", 2), ListItem("Value3", 3), ) ) val xml = SimpleXml.serialize(bean) println(xml) val deserializedBean: ConstructorInlineFieldListOfObjects = SimpleXml.deserialize(xml) assertEquals(bean, deserializedBean) } @Test @JsName("ConstructorFieldListOfObjectsWithConvertTest") fun `ConstructorFieldListOfObjectsWithConvert serialize deserialize test`() { val bean = ConstructorFieldListOfObjectsWithConvert( listOf( ListItem("Value1", 1), ListItem("Value2", 2), ListItem("Value3", 3), ) ) val xml = SimpleXml.serialize(bean) println(xml) val deserializedBean: ConstructorFieldListOfObjectsWithConvert = SimpleXml.deserialize(xml) assertEquals(bean, deserializedBean) } @Test @JsName("FieldListOfStringsTest") fun `FieldListOfStrings serialize deserialize test`() { val bean = FieldListOfStrings(listOf("Value1", "Value2", "Value3")) val xml = SimpleXml.serialize(bean) println(xml) val deserializedBean: FieldListOfStrings = SimpleXml.deserialize(xml) assertEquals(bean.list, deserializedBean.list) } @Test @JsName("FieldInlineListOfStringsTest") fun `FieldInlineListOfStrings serialize deserialize test`() { val bean = FieldInlineListOfStrings(listOf("Value1", "Value2", "Value3")) val xml = SimpleXml.serialize(bean) println(xml) val deserializedBean: FieldInlineListOfStrings = SimpleXml.deserialize(xml) assertEquals(bean.list, deserializedBean.list) } @Test @JsName("ConstructorFieldMutableListOfStringsTest") fun `ConstructorFieldMutableListOfStrings serialize deserialize test`() { val bean = ConstructorFieldMutableListOfStrings(mutableListOf("Value1", "Value2", "Value3")) val xml = SimpleXml.serialize(bean) println(xml) val deserializedBean: ConstructorFieldMutableListOfStrings = SimpleXml.deserialize(xml) assertEquals(bean, deserializedBean) } @Test @JsName("ConstructorFieldMutableListOfStringsWithDefaultTest") fun `ConstructorFieldMutableListOfStringsWithDefault serialize deserialize test`() { val bean = ConstructorFieldMutableListOfStringsWithDefault(mutableListOf("Value4", "Value5", "Value6")) val xml = SimpleXml.serialize(bean) println(xml) val deserializedBean: ConstructorFieldMutableListOfStringsWithDefault = SimpleXml.deserialize(xml) assertEquals(bean, deserializedBean) } @Test @JsName("ConstructorFieldMutableListOfStringsWithDefaultTest_Default") fun `ConstructorFieldMutableListOfStringsWithDefault serialize deserialize test default`() { val bean = ConstructorFieldMutableListOfStringsWithDefault() val xml = SimpleXml.serialize(bean) println(xml) val deserializedBean: ConstructorFieldMutableListOfStringsWithDefault = SimpleXml.deserialize(xml) assertEquals(bean, deserializedBean) } @Test @JsName("ConstructorFieldMutableListOfStringsWithAttributeTest") fun `ConstructorFieldMutableListOfStringsWithAttribute serialize deserialize test`() { val bean = ConstructorFieldMutableListOfStringsWithAttribute(mutableListOf("Value1", "Value2", "Value3"), 3) val xml = SimpleXml.serialize(bean) println(xml) val deserializedBean: ConstructorFieldMutableListOfStringsWithAttribute = SimpleXml.deserialize(xml) assertEquals(bean, deserializedBean) } @Test @JsName("ConstructorFieldListOfStringsNullableWithAttributeTest") fun `ConstructorFieldListOfStringsNullableWithAttribute serialize deserialize test`() { val bean = ConstructorFieldListOfStringsNullableWithAttribute(listOf("Value1", "Value2", "Value3"), 3) val xml = SimpleXml.serialize(bean) println(xml) val deserializedBean: ConstructorFieldListOfStringsNullableWithAttribute = SimpleXml.deserialize(xml) assertEquals(bean, deserializedBean) } @Test @JsName("FieldMutableListOfStringsTest") fun `FieldMutableListOfStrings serialize deserialize test`() { val bean = FieldMutableListOfStrings() bean.list = mutableListOf("Value1", "Value2", "Value3") val xml = SimpleXml.serialize(bean) println(xml) val deserializedBean: FieldMutableListOfStrings = SimpleXml.deserialize(xml) assertEquals(bean.list, deserializedBean.list) } @Test @JsName("NullableFieldMutableListOfStringsTest") fun `NullableFieldMutableListOfStrings serialize deserialize test`() { val bean = NullableFieldMutableListOfStrings() bean.list = mutableListOf("Value1", "Value2", "Value3") val xml = SimpleXml.serialize(bean) println(xml) val deserializedBean: NullableFieldMutableListOfStrings = SimpleXml.deserialize(xml) assertEquals(bean.list, deserializedBean.list) } @Test @JsName("NullableFieldMutableListOfObjectsTest") fun `NullableFieldMutableListOfObjects serialize deserialize test`() { val bean = NullableFieldMutableListOfObjects() bean.list = mutableListOf( ListItem("Value1", 1), ListItem("Value2", 2), ListItem("Value3", 3), ) val xml = SimpleXml.serialize(bean) println(xml) val deserializedBean: NullableFieldMutableListOfObjects = SimpleXml.deserialize(xml) assertEquals(bean.list, deserializedBean.list) } @Test @JsName("FieldMutableListOfObjectsTest") fun `FieldMutableListOfObjects serialize deserialize test`() { val bean = FieldMutableListOfObjects() bean.list = mutableListOf( ListItem("Value1", 1), ListItem("Value2", 2), ListItem("Value3", 3), ) val xml = SimpleXml.serialize(bean) println(xml) val deserializedBean: FieldMutableListOfObjects = SimpleXml.deserialize(xml) assertEquals(bean.list, deserializedBean.list) } @Test @JsName("FieldMutableListOfObjectsNotRequiredTest") fun `FieldMutableListOfObjectsNotRequired serialize deserialize test`() { val bean = FieldMutableListOfObjectsNotRequired() bean.list = mutableListOf( ListItem("Value1", 1), ListItem("Value2", 2), ListItem("Value3", 3), ) val xml = SimpleXml.serialize(bean) println(xml) val deserializedBean: FieldMutableListOfObjectsNotRequired = SimpleXml.deserialize(xml) assertEquals(bean.list, deserializedBean.list) } }
0
Kotlin
0
1
6fe7aad73f82b8719a9aafd9285a354cf79de8ef
10,694
SimpleXmlKsp
Apache License 2.0
relive-simulator-core/src/commonMain/kotlin/xyz/qwewqa/relive/simulator/core/gen/data/GenFieldEffectData.kt
qwewqa
390,928,568
false
null
package xyz.qwewqa.relive.simulator.core.gen /* 1: _id_: 1 buff_type1: 1 buff_type1_target_id: 1002 buff_type1_value_list: - 30 - 40 - 50 - 60 - 70 buff_type2: 13 buff_type2_target_id: 1002 buff_type2_value_list: - 10 - 15 - 20 - 25 - 30 buff_type3: 15 buff_type3_target_id: 1002 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 1 name: en: Light of Courage ja: 勇気の灯 ko: 용기의 등불 zh_hant: 勇氣之燈 2: _id_: 2 buff_type1: 1 buff_type1_target_id: 4008 buff_type1_value_list: - 20 - 25 - 30 - 40 - 50 buff_type2: 3 buff_type2_target_id: 4008 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 5 buff_type3_target_id: 4008 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 40 buff_type4_target_id: 4008 buff_type4_value_list: - 20 - 25 - 30 - 40 - 50 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 2 name: en: We Are on the Stage (Flower) ja: 私たちはもう舞台の上(花) ko: 우리는 이미 무대 위(꽃) zh_hant: 我們已經站上舞台(花) 3: _id_: 3 buff_type1: 1 buff_type1_target_id: 4009 buff_type1_value_list: - 20 - 25 - 30 - 40 - 50 buff_type2: 3 buff_type2_target_id: 4009 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 5 buff_type3_target_id: 4009 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 41 buff_type4_target_id: 4009 buff_type4_value_list: - 20 - 25 - 30 - 40 - 50 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 3 name: en: We Are on the Stage (Wind) ja: 私たちはもう舞台の上(風) ko: 우리는 이미 무대 위(바람) zh_hant: 我們已經站上舞台(風) 4: _id_: 4 buff_type1: 1 buff_type1_target_id: 4010 buff_type1_value_list: - 20 - 25 - 30 - 40 - 50 buff_type2: 3 buff_type2_target_id: 4010 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 5 buff_type3_target_id: 4010 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 39 buff_type4_target_id: 4010 buff_type4_value_list: - 20 - 25 - 30 - 40 - 50 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 4 name: en: We Are on the Stage (Snow) ja: 私たちはもう舞台の上(雪) ko: 우리는 이미 무대 위(눈) zh_hant: 我們已經站上舞台(雪) 5: _id_: 5 buff_type1: 1 buff_type1_target_id: 4011 buff_type1_value_list: - 20 - 25 - 30 - 40 - 50 buff_type2: 3 buff_type2_target_id: 4011 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 5 buff_type3_target_id: 4011 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 43 buff_type4_target_id: 4011 buff_type4_value_list: - 20 - 25 - 30 - 40 - 50 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 5 name: en: We Are on the Stage (Moon) ja: 私たちはもう舞台の上(月) ko: 우리는 이미 무대 위(달) zh_hant: 我們已經站上舞台(月) 6: _id_: 6 buff_type1: 1 buff_type1_target_id: 4012 buff_type1_value_list: - 20 - 25 - 30 - 40 - 50 buff_type2: 3 buff_type2_target_id: 4012 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 5 buff_type3_target_id: 4012 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 44 buff_type4_target_id: 4012 buff_type4_value_list: - 20 - 25 - 30 - 40 - 50 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 6 name: en: We Are on the Stage (Space) ja: 私たちはもう舞台の上(宙) ko: 우리는 이미 무대 위(우주) zh_hant: 我們已經站上舞台(宙) 7: _id_: 7 buff_type1: 1 buff_type1_target_id: 4013 buff_type1_value_list: - 20 - 25 - 30 - 40 - 50 buff_type2: 3 buff_type2_target_id: 4013 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 5 buff_type3_target_id: 4013 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 42 buff_type4_target_id: 4013 buff_type4_value_list: - 20 - 25 - 30 - 40 - 50 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 7 name: en: We Are on the Stage (Cloud) ja: 私たちはもう舞台の上(雲) ko: 우리는 이미 무대 위(구름) zh_hant: 我們已經站上舞台(雲) 8: _id_: 8 buff_type1: 2 buff_type1_target_id: 2002 buff_type1_value_list: - 30 - 40 - 50 - 60 - 70 buff_type2: 4 buff_type2_target_id: 2002 buff_type2_value_list: - 30 - 35 - 40 - 45 - 50 buff_type3: 6 buff_type3_target_id: 2002 buff_type3_value_list: - 30 - 35 - 40 - 45 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 8 name: en: Sunset Tune ja: 落日の音色 ko: 낙조의 음색 zh_hant: 落日音色 9: _id_: 9 buff_type1: 8 buff_type1_target_id: 2002 buff_type1_value_list: - 20 - 25 - 30 - 35 - 40 buff_type2: 2 buff_type2_target_id: 2002 buff_type2_value_list: - 20 - 30 - 40 - 50 - 60 buff_type3: 14 buff_type3_target_id: 2002 buff_type3_value_list: - 20 - 25 - 30 - 35 - 40 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 9 name: en: Shadow Stupor ja: 昏迷の影 ko: 혼미의 그림자 zh_hant: 昏迷之影 10: _id_: 10 buff_type1: 7 buff_type1_target_id: 1002 buff_type1_value_list: - 20 - 25 - 30 - 35 - 40 buff_type2: 1 buff_type2_target_id: 1002 buff_type2_value_list: - 20 - 30 - 40 - 50 - 60 buff_type3: 13 buff_type3_target_id: 1002 buff_type3_value_list: - 20 - 25 - 30 - 35 - 40 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 10 name: en: Lightning Shade ja: 電光影裏 ko: 번갯불의 그림자 zh_hant: 雷光影裏 11: _id_: 11 buff_type1: 104 buff_type1_target_id: 1133 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 1 buff_type2_target_id: 1133 buff_type2_value_list: - 20 - 30 - 40 - 50 - 60 buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 11 name: en: Ironclad Guard ja: 鉄壁の守備 ko: 철벽 수비 zh_hant: 鐵壁守備 12: _id_: 12 buff_type1: 3 buff_type1_target_id: 1002 buff_type1_value_list: - 20 - 25 - 30 - 35 - 40 buff_type2: 5 buff_type2_target_id: 1002 buff_type2_value_list: - 20 - 30 - 40 - 50 - 60 buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 12 name: en: Boldness ja: ガッツ ko: 근성 zh_hant: 毅力 13: _id_: 13 buff_type1: 169 buff_type1_target_id: 2002 buff_type1_value_list: - 7500 - 7500 - 7500 - 7500 - 7500 buff_type2: 2 buff_type2_target_id: 2002 buff_type2_value_list: - 20 - 30 - 40 - 50 - 60 buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 13 name: en: Thunder ja: 雷鳴 ko: 천둥 zh_hant: 雷鳴 14: _id_: 14 buff_type1: 98 buff_type1_target_id: 1002 buff_type1_value_list: - 10 - 15 - 20 - 25 - 30 buff_type2: 13 buff_type2_target_id: 1002 buff_type2_value_list: - 10 - 15 - 20 - 25 - 30 buff_type3: 15 buff_type3_target_id: 1002 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 14 name: en: Winning Determination ja: 勝負根性 ko: 승부 근성 zh_hant: 勝負鬥志 15: _id_: 15 buff_type1: 2 buff_type1_target_id: 4013 buff_type1_value_list: - 20 - 25 - 30 - 40 - 50 buff_type2: 4 buff_type2_target_id: 4013 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 6 buff_type3_target_id: 4013 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 151 buff_type4_target_id: 4013 buff_type4_value_list: - 20 - 25 - 30 - 40 - 50 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 15 name: en: Concentration (Space) ja: 本日も集中あるのみ(宙) ko: 오늘도 집중할 뿐(우주) zh_hant: 今天也要全神貫注(宙) 16: _id_: 16 buff_type1: 2 buff_type1_target_id: 4010 buff_type1_value_list: - 20 - 25 - 30 - 40 - 50 buff_type2: 4 buff_type2_target_id: 4010 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 6 buff_type3_target_id: 4010 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 148 buff_type4_target_id: 4010 buff_type4_value_list: - 20 - 25 - 30 - 40 - 50 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 16 name: en: Concentration (Wind) ja: 本日も集中あるのみ(風) ko: 오늘도 집중할 뿐(바람) zh_hant: 今天也要全神貫注(風) 17: _id_: 17 buff_type1: 2 buff_type1_target_id: 4008 buff_type1_value_list: - 20 - 25 - 30 - 40 - 50 buff_type2: 4 buff_type2_target_id: 4008 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 6 buff_type3_target_id: 4008 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 149 buff_type4_target_id: 4008 buff_type4_value_list: - 20 - 25 - 30 - 40 - 50 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 17 name: en: Concentration (Snow) ja: 本日も集中あるのみ(雪) ko: 오늘도 집중할 뿐(눈) zh_hant: 今天也要全神貫注(雪) 18: _id_: 18 buff_type1: 2 buff_type1_target_id: 2401 buff_type1_value_list: - 20 - 30 - 40 - 50 - 60 buff_type2: 4 buff_type2_target_id: 2401 buff_type2_value_list: - 30 - 35 - 40 - 45 - 50 buff_type3: 6 buff_type3_target_id: 2401 buff_type3_value_list: - 30 - 35 - 40 - 45 - 50 buff_type4: 16 buff_type4_target_id: 2401 buff_type4_value_list: - 20 - 25 - 30 - 35 - 40 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 18 name: en: Tears or Mist ja: 露か涙か ko: 이슬인가 눈물인가 zh_hant: 如露又似淚 19: _id_: 19 buff_type1: 21 buff_type1_target_id: 1002 buff_type1_value_list: - 15000 - 17000 - 19000 - 22000 - 25000 buff_type2: 1 buff_type2_target_id: 1002 buff_type2_value_list: - 20 - 30 - 40 - 50 - 60 buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 19 name: en: God of War's Protection ja: 戦神の護り ko: 전쟁신의 수호 zh_hant: 戰神加護 20: _id_: 20 buff_type1: 1 buff_type1_target_id: 4003 buff_type1_value_list: - 20 - 30 - 40 - 50 - 60 buff_type2: 3 buff_type2_target_id: 4003 buff_type2_value_list: - 30 - 35 - 40 - 45 - 50 buff_type3: 5 buff_type3_target_id: 4003 buff_type3_value_list: - 30 - 35 - 40 - 45 - 50 buff_type4: 15 buff_type4_target_id: 4003 buff_type4_value_list: - 20 - 25 - 30 - 35 - 40 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 20 name: en: Wild Hope ja: 希望の荒野 ko: 희망의 황야 zh_hant: 希望荒野 21: _id_: 21 buff_type1: 48 buff_type1_target_id: 2002 buff_type1_value_list: - 3000 - 3500 - 4000 - 4500 - 5000 buff_type2: 55 buff_type2_target_id: 2002 buff_type2_value_list: - 0 - 0 - 0 - 0 - 0 buff_type3: 4 buff_type3_target_id: 2002 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 6 buff_type4_target_id: 2002 buff_type4_value_list: - 20 - 25 - 30 - 40 - 50 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 21 name: en: Roaring Fire ja: 火煙轟々 ko: 타오르는 불꽃 zh_hant: 熊熊烈火 22: _id_: 22 buff_type1: 98 buff_type1_target_id: 1002 buff_type1_value_list: - 30 - 35 - 40 - 45 - 50 buff_type2: 3 buff_type2_target_id: 1002 buff_type2_value_list: - 30 - 35 - 40 - 45 - 50 buff_type3: 5 buff_type3_target_id: 1002 buff_type3_value_list: - 30 - 35 - 40 - 45 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 22 name: en: Angelic Smile ja: 天使のほほえみ ko: 천사의 미소 zh_hant: 天使的微笑 23: _id_: 23 buff_type1: 50 buff_type1_target_id: 2002 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 4 buff_type2_target_id: 2002 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 6 buff_type3_target_id: 2002 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 23 name: en: Self Trapping ja: 自縄自縛 ko: 자승자박 zh_hant: 自作自受 24: _id_: 24 buff_type1: 48 buff_type1_target_id: 2002 buff_type1_value_list: - 3000 - 3500 - 4000 - 4500 - 5000 buff_type2: 55 buff_type2_target_id: 2002 buff_type2_value_list: - 0 - 0 - 0 - 0 - 0 buff_type3: 52 buff_type3_target_id: 2002 buff_type3_value_list: - 0 - 0 - 0 - 0 - 0 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 24 name: en: Disaster Hail ja: 災禍の呼び声 ko: 재해가 부르는 소리 zh_hant: 呼喚災禍之聲 25: _id_: 25 buff_type1: 304 buff_type1_target_id: 1000 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 4 buff_type2_target_id: 2002 buff_type2_value_list: - 5 - 10 - 15 - 20 - 25 buff_type3: 6 buff_type3_target_id: 2002 buff_type3_value_list: - 5 - 10 - 15 - 20 - 25 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 25 name: en: Death's Kiss ja: 死の口づけ ko: 죽음의 입맞춤 zh_hant: 死亡之吻 26: _id_: 26 buff_type1: 126 buff_type1_target_id: 4006 buff_type1_value_list: - 80 - 80 - 80 - 80 - 80 buff_type2: 8 buff_type2_target_id: 2002 buff_type2_value_list: - 5 - 10 - 15 - 20 - 25 buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 26 name: en: Tragic Music ja: 悲壮の奏 ko: 비장의 멜로디 zh_hant: 悲壯之奏 27: _id_: 27 buff_type1: 13 buff_type1_target_id: 1002 buff_type1_value_list: - 100 - 100 - 100 - 100 - 100 buff_type2: 21 buff_type2_target_id: 1002 buff_type2_value_list: - 15000 - 17000 - 19000 - 22000 - 25000 buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 27 name: en: Blooming Flowers ja: 百花繚乱 ko: 백화요란 zh_hant: 百花繚亂 28: _id_: 28 buff_type1: 305 buff_type1_target_id: 1000 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 4 buff_type2_target_id: 2002 buff_type2_value_list: - 5 - 10 - 15 - 20 - 25 buff_type3: 6 buff_type3_target_id: 2002 buff_type3_value_list: - 5 - 10 - 15 - 20 - 25 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 28 name: en: Afterlife Trials ja: 幽世の試練 ko: 저승의 시련 zh_hant: 幽世試煉 29: _id_: 29 buff_type1: 13 buff_type1_target_id: 1002 buff_type1_value_list: - 25 - 50 - 55 - 60 - 65 buff_type2: 15 buff_type2_target_id: 1002 buff_type2_value_list: - 25 - 50 - 55 - 60 - 65 buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 29 name: en: Junna Hoshimi's Stage ja: 星見純那が主役の舞台 ko: 호시미 준나가 주역인 무대 zh_hant: 星見純那所主演的舞台 30: _id_: 30 buff_type1: 105 buff_type1_target_id: 3262 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 33 buff_type2_target_id: 3262 buff_type2_value_list: - 25 - 50 - 55 - 60 - 65 buff_type3: 13 buff_type3_target_id: 3262 buff_type3_value_list: - 25 - 50 - 55 - 60 - 65 buff_type4: 15 buff_type4_target_id: 3262 buff_type4_value_list: - 25 - 50 - 55 - 60 - 65 buff_type5: 7 buff_type5_target_id: 3262 buff_type5_value_list: - 10 - 20 - 25 - 30 - 35 icon_id: 30 name: en: Trial to the Hero, Temptation to the Saint ja: 英雄には試練を、聖者には誘惑を ko: 영웅에게는 시련을, 성자에게는 유혹을 zh_hant: 將試煉賜予英雄,將誘惑賜予聖者 31: _id_: 31 buff_type1: 19 buff_type1_target_id: 1002 buff_type1_value_list: - 50 - 60 - 70 - 80 - 90 buff_type2: 32 buff_type2_target_id: 1002 buff_type2_value_list: - 20 - 25 - 30 - 35 - 40 buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 31 name: en: Sweet Moment ja: 甘美なひととき ko: 감미로운 시간 zh_hant: 蜜糖時光 32: _id_: 32 buff_type1: 105 buff_type1_target_id: 3262 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 13 buff_type2_target_id: 3262 buff_type2_value_list: - 25 - 50 - 55 - 60 - 65 buff_type3: 15 buff_type3_target_id: 3262 buff_type3_value_list: - 25 - 50 - 55 - 60 - 65 buff_type4: 22 buff_type4_target_id: 3262 buff_type4_value_list: - 10 - 15 - 20 - 25 - 30 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 32 name: en: Falling Into Flames Together ja: 共に堕ちていく焔 ko: 함께 추락하는 불꽃 zh_hant: 共同墮落的火焰 33: _id_: 33 buff_type1: 105 buff_type1_target_id: 2509 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 13 buff_type2_target_id: 2509 buff_type2_value_list: - 30 - 60 - 80 - 90 - 100 buff_type3: 15 buff_type3_target_id: 2509 buff_type3_value_list: - 30 - 60 - 80 - 90 - 100 buff_type4: 19 buff_type4_target_id: 2509 buff_type4_value_list: - 100 - 100 - 100 - 100 - 100 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 33 name: en: Severing of Bonds ja: これにて縁切り ko: 이로써 의절 zh_hant: 我們就此斷絕關係 34: _id_: 34 buff_type1: 105 buff_type1_target_id: 3264 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 13 buff_type2_target_id: 3115 buff_type2_value_list: - 30 - 60 - 80 - 90 - 100 buff_type3: 15 buff_type3_target_id: 3115 buff_type3_value_list: - 30 - 60 - 80 - 90 - 100 buff_type4: 240 buff_type4_target_id: 3115 buff_type4_value_list: - 20 - 20 - 20 - 20 - 20 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 34 name: en: Our Pathetic Selves ja: しょうもないあたしたち ko: 구제불능인 우리들 zh_hant: 無可救藥的我們 35: _id_: 35 buff_type1: 1 buff_type1_target_id: 4001 buff_type1_value_list: - 30 - 60 - 80 - 90 - 100 buff_type2: 13 buff_type2_target_id: 4001 buff_type2_value_list: - 30 - 60 - 80 - 90 - 100 buff_type3: 15 buff_type3_target_id: 4001 buff_type3_value_list: - 30 - 60 - 80 - 90 - 100 buff_type4: 7 buff_type4_target_id: 4001 buff_type4_value_list: - 30 - 60 - 80 - 90 - 100 buff_type5: 32 buff_type5_target_id: 4001 buff_type5_value_list: - 20 - 25 - 30 - 35 - 40 icon_id: 35 name: en: Brilliant Stage ja: キラめく舞台 ko: 반짝이는 무대 zh_hant: 萬丈光芒的舞台 36: _id_: 36 buff_type1: 13 buff_type1_target_id: 1002 buff_type1_value_list: - 100 - 100 - 100 - 100 - 100 buff_type2: 15 buff_type2_target_id: 1002 buff_type2_value_list: - 30 - 35 - 40 - 45 - 50 buff_type3: 28 buff_type3_target_id: 1002 buff_type3_value_list: - 0 - 0 - 0 - 0 - 0 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 36 name: en: Bullseye ja: 百発百中、一発必中 ko: 백발백중, 일발필중 zh_hant: 百發百中,一擊必中 37: _id_: 37 buff_type1: 95 buff_type1_target_id: 4008 buff_type1_value_list: - 20 - 25 - 30 - 35 - 40 buff_type2: 3 buff_type2_target_id: 4008 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 5 buff_type3_target_id: 4008 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 37 name: en: Applauses (Flower) ja: 拍手喝采(花) ko: 박수갈채(꽃) zh_hant: 拍手喝采(花) 38: _id_: 38 buff_type1: 95 buff_type1_target_id: 4009 buff_type1_value_list: - 20 - 25 - 30 - 35 - 40 buff_type2: 3 buff_type2_target_id: 4009 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 5 buff_type3_target_id: 4009 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 38 name: en: Applauses (Wind) ja: 拍手喝采(風) ko: 박수갈채(바람) zh_hant: 拍手喝采(風) 39: _id_: 39 buff_type1: 95 buff_type1_target_id: 4010 buff_type1_value_list: - 20 - 25 - 30 - 35 - 40 buff_type2: 3 buff_type2_target_id: 4010 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 5 buff_type3_target_id: 4010 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 39 name: en: Applauses (Snow) ja: 拍手喝采(雪) ko: 박수갈채(눈) zh_hant: 拍手喝采(雪) 40: _id_: 40 buff_type1: 95 buff_type1_target_id: 4011 buff_type1_value_list: - 20 - 25 - 30 - 35 - 40 buff_type2: 3 buff_type2_target_id: 4011 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 5 buff_type3_target_id: 4011 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 40 name: en: Applauses (Moon) ja: 拍手喝采(月) ko: 박수갈채(달) zh_hant: 拍手喝采(月) 41: _id_: 41 buff_type1: 95 buff_type1_target_id: 4012 buff_type1_value_list: - 20 - 25 - 30 - 35 - 40 buff_type2: 3 buff_type2_target_id: 4012 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 5 buff_type3_target_id: 4012 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 41 name: en: Applauses (Space) ja: 拍手喝采(宙) ko: 박수갈채(우주) zh_hant: 拍手喝采(宙) 42: _id_: 42 buff_type1: 95 buff_type1_target_id: 4013 buff_type1_value_list: - 20 - 25 - 30 - 35 - 40 buff_type2: 3 buff_type2_target_id: 4013 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 5 buff_type3_target_id: 4013 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 42 name: en: Applauses (Cloud) ja: 拍手喝采(雲) ko: 박수갈채(구름) zh_hant: 拍手喝采(雲) 43: _id_: 43 buff_type1: 105 buff_type1_target_id: 4001 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 13 buff_type2_target_id: 4001 buff_type2_value_list: - 30 - 40 - 50 - 60 - 70 buff_type3: 15 buff_type3_target_id: 4001 buff_type3_value_list: - 30 - 40 - 50 - 60 - 70 buff_type4: 98 buff_type4_target_id: 4001 buff_type4_value_list: - 30 - 40 - 50 - 60 - 70 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 43 name: en: We Are Rivals! ja: 私たちはライバル! ko: 우리는 라이벌! zh_hant: 我們是勁敵! 44: _id_: 44 buff_type1: 105 buff_type1_target_id: 4004 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 1 buff_type2_target_id: 4004 buff_type2_value_list: - 30 - 40 - 50 - 60 - 70 buff_type3: 98 buff_type3_target_id: 4004 buff_type3_value_list: - 30 - 40 - 50 - 60 - 70 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 44 name: en: Royal Authority ja: 燦然たる王威 ko: 찬란한 왕의 위엄 zh_hant: 璀璨的王之威光 45: _id_: 45 buff_type1: 162 buff_type1_target_id: 2002 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 4 buff_type2_target_id: 2002 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 6 buff_type3_target_id: 2002 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 45 name: en: Captivating Pupils ja: 魅惑の瞳 ko: 매혹의 눈동자 zh_hant: 魅惑的眼眸 46: _id_: 46 buff_type1: 50 buff_type1_target_id: 2002 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 169 buff_type2_target_id: 2002 buff_type2_value_list: - 7500 - 7500 - 7500 - 7500 - 7500 buff_type3: 162 buff_type3_target_id: 2002 buff_type3_value_list: - 0 - 0 - 0 - 0 - 0 buff_type4: 4 buff_type4_target_id: 2002 buff_type4_value_list: - 20 - 25 - 30 - 40 - 50 buff_type5: 6 buff_type5_target_id: 2002 buff_type5_value_list: - 20 - 25 - 30 - 40 - 50 icon_id: 46 name: en: Twilight of the Gods ja: 神々の黄昏 ko: 신들의 황혼 zh_hant: 諸神黃昏 48: _id_: 48 buff_type1: 105 buff_type1_target_id: 4001 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 13 buff_type2_target_id: 4001 buff_type2_value_list: - 30 - 40 - 50 - 60 - 70 buff_type3: 15 buff_type3_target_id: 4001 buff_type3_value_list: - 30 - 40 - 50 - 60 - 70 buff_type4: 32 buff_type4_target_id: 4001 buff_type4_value_list: - 30 - 40 - 50 - 60 - 70 buff_type5: 13 buff_type5_target_id: 3118 buff_type5_value_list: - 10 - 15 - 20 - 25 - 30 icon_id: 48 name: en: This Is the Stage ja: ここが舞台だ ko: 여기가 무대다 zh_hant: 這裡是舞台 49: _id_: 49 buff_type1: 237 buff_type1_target_id: 1002 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 19 buff_type2_target_id: 1002 buff_type2_value_list: - 100 - 100 - 100 - 100 - 100 buff_type3: 231 buff_type3_target_id: 4138 buff_type3_value_list: - 100 - 100 - 100 - 100 - 100 buff_type4: 1 buff_type4_target_id: 1002 buff_type4_value_list: - 20 - 30 - 40 - 50 - 60 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 49 name: en: Je T'Aime ja: ジュ・テーム ko: 쥬뗌므 zh_hant: Je t'aime 50: _id_: 50 buff_type1: 167 buff_type1_target_id: 2002 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 4 buff_type2_target_id: 2002 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 6 buff_type3_target_id: 2002 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 50 name: en: <NAME> ja: 嘆きの傷痕 ko: 비탄의 상흔 zh_hant: 悲嘆的傷痕 51: _id_: 51 buff_type1: 175 buff_type1_target_id: 2002 buff_type1_value_list: - 100 - 100 - 100 - 100 - 100 buff_type2: 235 buff_type2_target_id: 2002 buff_type2_value_list: - 0 - 0 - 0 - 0 - 0 buff_type3: 4 buff_type3_target_id: 2002 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 6 buff_type4_target_id: 2002 buff_type4_value_list: - 20 - 25 - 30 - 40 - 50 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 51 name: en: Tragic Fate ja: 散華のさだめ ko: 산화의 숙명 zh_hant: 光榮犧牲的宿命 52: _id_: 52 buff_type1: 237 buff_type1_target_id: 1002 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 231 buff_type2_target_id: 1002 buff_type2_value_list: - 100 - 100 - 100 - 100 - 100 buff_type3: 1 buff_type3_target_id: 1002 buff_type3_value_list: - 20 - 30 - 40 - 50 - 60 buff_type4: 19 buff_type4_target_id: 4138 buff_type4_value_list: - 100 - 100 - 100 - 100 - 100 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 52 name: en: Divine Power ja: 神授の力 ko: 신이 내린 힘 zh_hant: 神授之力 53: _id_: 53 buff_type1: 1 buff_type1_target_id: 4002 buff_type1_value_list: - 20 - 30 - 40 - 50 - 60 buff_type2: 3 buff_type2_target_id: 4002 buff_type2_value_list: - 30 - 35 - 40 - 45 - 50 buff_type3: 5 buff_type3_target_id: 4002 buff_type3_value_list: - 30 - 35 - 40 - 45 - 50 buff_type4: 15 buff_type4_target_id: 4002 buff_type4_value_list: - 20 - 25 - 30 - 35 - 40 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 53 name: en: Majestic ja: 威風凛々 ko: 위풍당당 zh_hant: 威風凛凛 54: _id_: 54 buff_type1: 106 buff_type1_target_id: 2002 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 4 buff_type2_target_id: 2002 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 6 buff_type3_target_id: 2002 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 235 buff_type4_target_id: 2401 buff_type4_value_list: - 0 - 0 - 0 - 0 - 0 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 54 name: en: Hesitation ja: 遅疑逡巡 ko: 의심과 망설임 zh_hant: 遲疑不定 55: _id_: 55 buff_type1: 13 buff_type1_target_id: 1002 buff_type1_value_list: - 100 - 100 - 100 - 100 - 100 buff_type2: 15 buff_type2_target_id: 1002 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 7 buff_type3_target_id: 1002 buff_type3_value_list: - 20 - 25 - 30 - 35 - 40 buff_type4: 240 buff_type4_target_id: 1002 buff_type4_value_list: - 20 - 20 - 20 - 20 - 20 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 55 name: en: Mellow Flavor ja: 心躍る芳醇 ko: 마음 들뜨는 향긋함 zh_hant: 心悸的香醇 56: _id_: 56 buff_type1: 126 buff_type1_target_id: 2002 buff_type1_value_list: - 50 - 50 - 50 - 50 - 50 buff_type2: 8 buff_type2_target_id: 2002 buff_type2_value_list: - 5 - 10 - 15 - 20 - 25 buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 56 name: en: Sugary Corruption ja: 甘き堕落 ko: 달콤한 타락 zh_hant: 甘美墮落 57: _id_: 57 buff_type1: 242 buff_type1_target_id: 2002 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 2 buff_type2_target_id: 2002 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 57 name: en: Plan of the Abyss ja: 深淵なる謀 ko: 심연의 계략 zh_hant: 深謀遠慮 58: _id_: 58 buff_type1: 19 buff_type1_target_id: 1002 buff_type1_value_list: - 50 - 60 - 70 - 80 - 90 buff_type2: 231 buff_type2_target_id: 1002 buff_type2_value_list: - 50 - 60 - 70 - 80 - 90 buff_type3: 98 buff_type3_target_id: 1002 buff_type3_value_list: - 30 - 40 - 50 - 60 - 70 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 58 name: en: Golden Vitality ja: 黄金の活力 ko: 황금의 활력 zh_hant: 黃金活力 59: _id_: 59 buff_type1: 105 buff_type1_target_id: 1002 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 28 buff_type2_target_id: 1002 buff_type2_value_list: - 0 - 0 - 0 - 0 - 0 buff_type3: 13 buff_type3_target_id: 1002 buff_type3_value_list: - 50 - 55 - 60 - 65 - 70 buff_type4: 15 buff_type4_target_id: 1002 buff_type4_value_list: - 50 - 55 - 60 - 65 - 70 buff_type5: 268 buff_type5_target_id: 4140 buff_type5_value_list: - 100 - 100 - 100 - 100 - 100 icon_id: 59 name: en: Pledge of the Sage ja: 賢者の契り ko: 현자의 약속 zh_hant: 賢者的契約 60: _id_: 60 buff_type1: 267 buff_type1_target_id: 2002 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 2 buff_type2_target_id: 2002 buff_type2_value_list: - 20 - 25 - 30 - 35 - 40 buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 60 name: en: Heavenly Highlight ja: 天体ハイライト ko: 천체 하이라이트 zh_hant: 天體注目 61: _id_: 61 buff_type1: 237 buff_type1_target_id: 4059 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 19 buff_type2_target_id: 4059 buff_type2_value_list: - 100 - 100 - 100 - 100 - 100 buff_type3: 1 buff_type3_target_id: 4059 buff_type3_value_list: - 20 - 25 - 30 - 35 - 40 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 61 name: en: Grace, Nobility, Fun ja: 美しく、気高く、楽しく ko: 아름답게, 품위있게, 즐겁게 zh_hant: 美麗、高貴且樂在其中 62: _id_: 62 buff_type1: 105 buff_type1_target_id: 1002 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 19 buff_type2_target_id: 1002 buff_type2_value_list: - 100 - 100 - 100 - 100 - 100 buff_type3: 1 buff_type3_target_id: 1002 buff_type3_value_list: - 20 - 30 - 40 - 50 - 60 buff_type4: 22 buff_type4_target_id: 1002 buff_type4_value_list: - 50 - 50 - 50 - 50 - 50 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 62 name: en: Happy Footsteps ja: 幸福の足音 ko: 행복의 발소리 zh_hant: 幸福的腳步聲 63: _id_: 63 buff_type1: 105 buff_type1_target_id: 1002 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 231 buff_type2_target_id: 1002 buff_type2_value_list: - 100 - 100 - 100 - 100 - 100 buff_type3: 1 buff_type3_target_id: 1002 buff_type3_value_list: - 20 - 30 - 40 - 50 - 60 buff_type4: 22 buff_type4_target_id: 1002 buff_type4_value_list: - 50 - 50 - 50 - 50 - 50 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 63 name: en: Leap Oath ja: 飛躍の誓い ko: 비약의 맹세 zh_hant: 飛躍之誓言 64: _id_: 64 buff_type1: 305 buff_type1_target_id: 1000 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 169 buff_type2_target_id: 2002 buff_type2_value_list: - 7500 - 7500 - 7500 - 7500 - 7500 buff_type3: 4 buff_type3_target_id: 2002 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 6 buff_type4_target_id: 2002 buff_type4_value_list: - 20 - 25 - 30 - 40 - 50 buff_type5: 277 buff_type5_target_id: 2121 buff_type5_value_list: - 10 - 10 - 10 - 10 - 10 icon_id: 64 name: en: Calamity ja: 凶変 ko: 흉변 zh_hant: 變故 65: _id_: 65 buff_type1: 95 buff_type1_target_id: 4008 buff_type1_value_list: - 40 - 45 - 50 - 55 - 60 buff_type2: 3 buff_type2_target_id: 4008 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 5 buff_type3_target_id: 4008 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 65 name: en: Standing Ovation (Flower) ja: 拍手万雷(花) ko: 박수만뢰(꽃) zh_hant: 掌聲如雷(花) 66: _id_: 66 buff_type1: 95 buff_type1_target_id: 4009 buff_type1_value_list: - 40 - 45 - 50 - 55 - 60 buff_type2: 3 buff_type2_target_id: 4009 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 5 buff_type3_target_id: 4009 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 66 name: en: Standing Ovation (Wind) ja: 拍手万雷(風) ko: 박수만뢰(바람) zh_hant: 掌聲如雷(風) 67: _id_: 67 buff_type1: 95 buff_type1_target_id: 4010 buff_type1_value_list: - 40 - 45 - 50 - 55 - 60 buff_type2: 3 buff_type2_target_id: 4010 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 5 buff_type3_target_id: 4010 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 67 name: en: Standing Ovation (Snow) ja: 拍手万雷(雪) ko: 박수만뢰(눈) zh_hant: 掌聲如雷(雪) 68: _id_: 68 buff_type1: 95 buff_type1_target_id: 4011 buff_type1_value_list: - 40 - 45 - 50 - 55 - 60 buff_type2: 3 buff_type2_target_id: 4011 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 5 buff_type3_target_id: 4011 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 68 name: en: Standing Ovation (Moon) ja: 拍手万雷(月) ko: 박수만뢰(달) zh_hant: 掌聲如雷(月) 69: _id_: 69 buff_type1: 95 buff_type1_target_id: 4012 buff_type1_value_list: - 40 - 45 - 50 - 55 - 60 buff_type2: 3 buff_type2_target_id: 4012 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 5 buff_type3_target_id: 4012 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 69 name: en: Standing Ovation (Space) ja: 拍手万雷(宙) ko: 박수만뢰(우주) zh_hant: 掌聲如雷(宙) 70: _id_: 70 buff_type1: 95 buff_type1_target_id: 4013 buff_type1_value_list: - 40 - 45 - 50 - 55 - 60 buff_type2: 3 buff_type2_target_id: 4013 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 5 buff_type3_target_id: 4013 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 70 name: en: Standing Ovation (Cloud) ja: 拍手万雷(雲) ko: 박수만뢰(구름) zh_hant: 掌聲如雷(雲) 71: _id_: 71 buff_type1: 231 buff_type1_target_id: 1002 buff_type1_value_list: - 100 - 100 - 100 - 100 - 100 buff_type2: 1 buff_type2_target_id: 1002 buff_type2_value_list: - 20 - 30 - 40 - 50 - 60 buff_type3: 3 buff_type3_target_id: 1002 buff_type3_value_list: - 30 - 35 - 40 - 45 - 50 buff_type4: 5 buff_type4_target_id: 1002 buff_type4_value_list: - 30 - 35 - 40 - 45 - 50 buff_type5: 15 buff_type5_target_id: 1002 buff_type5_value_list: - 50 - 55 - 60 - 65 - 70 icon_id: 71 name: en: Elegant Invitation ja: 風雅なる誘い ko: 고상한 유혹 zh_hant: 文雅邀約 72: _id_: 72 buff_type1: 105 buff_type1_target_id: 1002 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 19 buff_type2_target_id: 1002 buff_type2_value_list: - 100 - 100 - 100 - 100 - 100 buff_type3: 1 buff_type3_target_id: 1002 buff_type3_value_list: - 20 - 25 - 30 - 35 - 40 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 72 name: en: Floating with the Tide ja: 行雲流水 ko: 행운유수 zh_hant: 行雲流水 73: _id_: 73 buff_type1: 11 buff_type1_target_id: 1002 buff_type1_value_list: - 70 - 75 - 80 - 85 - 90 buff_type2: 13 buff_type2_target_id: 1002 buff_type2_value_list: - 30 - 35 - 40 - 45 - 50 buff_type3: 15 buff_type3_target_id: 1002 buff_type3_value_list: - 30 - 35 - 40 - 45 - 50 buff_type4: 22 buff_type4_target_id: 1002 buff_type4_value_list: - 50 - 60 - 70 - 80 - 90 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 73 name: en: Brilliant Tide ja: キラめきの潮流 ko: 반짝임의 조류 zh_hant: 光芒潮流 74: _id_: 74 buff_type1: 267 buff_type1_target_id: 2002 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 8 buff_type2_target_id: 2002 buff_type2_value_list: - 5 - 10 - 15 - 20 - 25 buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 74 name: en: Battle Strategy ja: 戦場掌握 ko: 전장 장악 zh_hant: 掌握戰場 75: _id_: 75 buff_type1: 277 buff_type1_target_id: 2002 buff_type1_value_list: - 30 - 30 - 30 - 30 - 30 buff_type2: 4 buff_type2_target_id: 2002 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 6 buff_type3_target_id: 2002 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 75 name: en: Unsolved Case ja: 迷宮入りの予感 ko: 미궁에 빠질 예감 zh_hant: 陷入僵局的預感 76: _id_: 76 buff_type1: 52 buff_type1_target_id: 2002 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 169 buff_type2_target_id: 2002 buff_type2_value_list: - 7500 - 7500 - 7500 - 7500 - 7500 buff_type3: 4 buff_type3_target_id: 2002 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 6 buff_type4_target_id: 2002 buff_type4_value_list: - 20 - 25 - 30 - 40 - 50 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 76 name: en: Gray World ja: 灰色の世界 ko: 잿빛 세계 zh_hant: 灰色世界 77: _id_: 77 buff_type1: 19 buff_type1_target_id: 1002 buff_type1_value_list: - 100 - 100 - 100 - 100 - 100 buff_type2: 28 buff_type2_target_id: 1002 buff_type2_value_list: - 0 - 0 - 0 - 0 - 0 buff_type3: 1 buff_type3_target_id: 1002 buff_type3_value_list: - 20 - 30 - 40 - 50 - 60 buff_type4: 22 buff_type4_target_id: 4153 buff_type4_value_list: - 50 - 50 - 50 - 50 - 50 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 77 name: en: Thrilling Discovery ja: トキメキ発見 ko: 두근거림 발견 zh_hant: 怦然心動的發現 78: _id_: 78 buff_type1: 302 buff_type1_target_id: 2002 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 4 buff_type2_target_id: 2002 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 6 buff_type3_target_id: 2002 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 78 name: en: Imprisonment ja: 幽囚の理 ko: 유수의 이치 zh_hant: 幽閉的法則 79: _id_: 79 buff_type1: 19 buff_type1_target_id: 1002 buff_type1_value_list: - 100 - 100 - 100 - 100 - 100 buff_type2: 231 buff_type2_target_id: 1002 buff_type2_value_list: - 100 - 100 - 100 - 100 - 100 buff_type3: 3 buff_type3_target_id: 1002 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 5 buff_type4_target_id: 1002 buff_type4_value_list: - 20 - 25 - 30 - 40 - 50 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 79 name: en: Breakwater of Love ja: 愛の防波堤 ko: 사랑의 방파제 zh_hant: 愛之防波堤 80: _id_: 80 buff_type1: 237 buff_type1_target_id: 4002 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 19 buff_type2_target_id: 4002 buff_type2_value_list: - 100 - 100 - 100 - 100 - 100 buff_type3: 1 buff_type3_target_id: 4002 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 80 name: en: Immutable Petals ja: 儚く散ったりしない ko: 덧없이 지진 않아 zh_hant: 絕不稍縱即逝 81: _id_: 81 buff_type1: 95 buff_type1_target_id: 4155 buff_type1_value_list: - 20 - 25 - 30 - 35 - 40 buff_type2: 3 buff_type2_target_id: 4155 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 5 buff_type3_target_id: 4155 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 81 name: en: Applauses (Star) ja: 拍手喝采(星) ko: 박수갈채(별) zh_hant: 拍手喝采(星) 82: _id_: 82 buff_type1: 95 buff_type1_target_id: 4154 buff_type1_value_list: - 20 - 25 - 30 - 35 - 40 buff_type2: 3 buff_type2_target_id: 4154 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 5 buff_type3_target_id: 4154 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 82 name: en: Applauses (Sun) ja: 拍手喝采(陽) ko: 박수갈채(태양) zh_hant: 拍手喝采(陽) 83: _id_: 83 buff_type1: 237 buff_type1_target_id: 1002 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 13 buff_type2_target_id: 1002 buff_type2_value_list: - 30 - 35 - 40 - 45 - 50 buff_type3: 15 buff_type3_target_id: 1002 buff_type3_value_list: - 30 - 35 - 40 - 45 - 50 buff_type4: 98 buff_type4_target_id: 1002 buff_type4_value_list: - 30 - 35 - 40 - 45 - 50 buff_type5: 7 buff_type5_target_id: 1002 buff_type5_value_list: - 20 - 25 - 30 - 35 - 40 icon_id: 83 name: en: Serenity ja: 明鏡止水 ko: 명경지수 zh_hant: 明鏡止水 84: _id_: 84 buff_type1: 277 buff_type1_target_id: 2002 buff_type1_value_list: - 50 - 50 - 50 - 50 - 50 buff_type2: 4 buff_type2_target_id: 2002 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 6 buff_type3_target_id: 2002 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 84 name: en: Writhing in Agony ja: 七転八倒 ko: 칠전팔기 zh_hant: 七顛八倒 86: _id_: 86 buff_type1: 242 buff_type1_target_id: 4006 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 106 buff_type2_target_id: 4006 buff_type2_value_list: - 0 - 0 - 0 - 0 - 0 buff_type3: 2 buff_type3_target_id: 2002 buff_type3_value_list: - 20 - 25 - 30 - 35 - 40 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 86 name: en: Trepidation (Center Position) ja: 戦々恐々(立ち位置:中) ko: 전전긍긍(중간 포지션) zh_hant: 戰戰兢兢(站位為中) 87: _id_: 87 buff_type1: 242 buff_type1_target_id: 4007 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 106 buff_type2_target_id: 4007 buff_type2_value_list: - 0 - 0 - 0 - 0 - 0 buff_type3: 2 buff_type3_target_id: 2002 buff_type3_value_list: - 20 - 25 - 30 - 35 - 40 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 87 name: en: Trepidation (Rear Position) ja: 戦々恐々(立ち位置:後) ko: 전전긍긍(뒤 포지션) zh_hant: 戰戰兢兢(站位為後) 88: _id_: 88 buff_type1: 237 buff_type1_target_id: 1002 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 19 buff_type2_target_id: 1002 buff_type2_value_list: - 100 - 100 - 100 - 100 - 100 buff_type3: 22 buff_type3_target_id: 1002 buff_type3_value_list: - 50 - 60 - 70 - 80 - 90 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 88 name: en: High Spirits ja: 気炎万丈 ko: 기염만장 zh_hant: 氣焰萬丈 89: _id_: 89 buff_type1: 162 buff_type1_target_id: 2002 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 235 buff_type2_target_id: 2002 buff_type2_value_list: - 0 - 0 - 0 - 0 - 0 buff_type3: 2 buff_type3_target_id: 2002 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 89 name: en: Tearful Monologue ja: 涙のモノローグ ko: 눈물의 모놀로그 zh_hant: 眼淚的獨白 90: _id_: 90 buff_type1: 32 buff_type1_target_id: 1002 buff_type1_value_list: - 20 - 25 - 30 - 35 - 40 buff_type2: 13 buff_type2_target_id: 1002 buff_type2_value_list: - 100 - 100 - 100 - 100 - 100 buff_type3: 15 buff_type3_target_id: 1002 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 90 name: en: Divine Smile ja: 女神のほほえみ ko: 여신의 미소 zh_hant: 女神的微笑 91: _id_: 91 buff_type1: 242 buff_type1_target_id: 2002 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 235 buff_type2_target_id: 2002 buff_type2_value_list: - 0 - 0 - 0 - 0 - 0 buff_type3: 2 buff_type3_target_id: 2002 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 91 name: en: Betrayal ja: 四面楚歌 ko: 사면초가 zh_hant: 四面楚歌 94: _id_: 94 buff_type1: 338 buff_type1_target_id: 1000 buff_type1_value_list: - 3 - 3 - 3 - 3 - 3 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 1093 name: en: Lv. 3 and below Neg. Stage Effect Resistance ja: Lv3以下マイナス舞台効果耐性 ko: Lv3 이하 마이너스 무대 효과 저항 zh_hant: Lv3以下負面舞台效果耐性 95: _id_: 95 buff_type1: 338 buff_type1_target_id: 1000 buff_type1_value_list: - 4 - 4 - 4 - 4 - 4 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 1093 name: en: Lv. 4 and below Neg. Stage Effect Resistance ja: Lv4以下マイナス舞台効果耐性 ko: Lv4 이하 마이너스 무대 효과 저항 zh_hant: Lv4以下負面舞台效果耐性 96: _id_: 96 buff_type1: 338 buff_type1_target_id: 1000 buff_type1_value_list: - 5 - 5 - 5 - 5 - 5 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 1093 name: en: Lv. 5 and below Neg. Stage Effect Resistance ja: Lv5以下マイナス舞台効果耐性 ko: Lv5 이하 마이너스 무대 효과 저항 zh_hant: Lv5以下負面舞台效果耐性 98: _id_: 98 buff_type1: 339 buff_type1_target_id: 1000 buff_type1_value_list: - 2 - 2 - 2 - 2 - 2 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 1094 name: en: Hinder Lv. 2 and below Pos. Stage Effect ja: Lv2以下プラス舞台効果妨害 ko: Lv2 이하 플러스 무대 효과 방해 zh_hant: Lv2以下正面舞台效果妨礙 99: _id_: 99 buff_type1: 339 buff_type1_target_id: 1000 buff_type1_value_list: - 3 - 3 - 3 - 3 - 3 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 1094 name: en: Hinder Lv. 3 and below Pos. Stage Effect ja: Lv3以下プラス舞台効果妨害 ko: Lv3 이하 플러스 무대 효과 방해 zh_hant: Lv3以下正面舞台效果妨礙 100: _id_: 100 buff_type1: 339 buff_type1_target_id: 1000 buff_type1_value_list: - 4 - 4 - 4 - 4 - 4 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 1094 name: en: Hinder Lv. 4 and below Pos. Stage Effect ja: Lv4以下プラス舞台効果妨害 ko: Lv4 이하 플러스 무대 효과 방해 zh_hant: Lv4以下正面舞台效果妨礙 102: _id_: 102 buff_type1: 8 buff_type1_target_id: 2002 buff_type1_value_list: - 5 - 10 - 15 - 20 - 25 buff_type2: 126 buff_type2_target_id: 2002 buff_type2_value_list: - 50 - 50 - 50 - 50 - 50 buff_type3: 2 buff_type3_target_id: 1002 buff_type3_value_list: - 20 - 30 - 40 - 50 - 60 buff_type4: 16 buff_type4_target_id: 1002 buff_type4_value_list: - 20 - 25 - 30 - 40 - 50 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 102 name: en: Junk ja: 瓦落苦多 ko: 잡동사니 zh_hant: 破銅爛鐵 103: _id_: 103 buff_type1: 55 buff_type1_target_id: 2002 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 126 buff_type2_target_id: 2002 buff_type2_value_list: - 50 - 50 - 50 - 50 - 50 buff_type3: 4 buff_type3_target_id: 2002 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 6 buff_type4_target_id: 2002 buff_type4_value_list: - 20 - 25 - 30 - 40 - 50 buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 103 name: en: Night Playfulness ja: 闇夜の戯れ ko: 한밤의 유희 zh_hant: 暗夜的歡鬧 104: _id_: 104 buff_type1: 95 buff_type1_target_id: 4154 buff_type1_value_list: - 40 - 45 - 50 - 55 - 60 buff_type2: 3 buff_type2_target_id: 4154 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 5 buff_type3_target_id: 4154 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 104 name: en: Standing Ovation (Sun) ja: 拍手万雷(陽) ko: 박수만뢰(태양) zh_hant: 掌聲如雷(陽) 108: _id_: 108 buff_type1: 1082 buff_type1_target_id: 1000 buff_type1_value_list: - 4 - 4 - 4 - 4 - 4 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 1100 name: en: Oppose Neg. Stage Effect Lv. 4 ja: マイナス舞台効果Lv4抵抗 ko: 마이너스 무대 효과 Lv4 저항 zh_hant: 負面舞台效果Lv4抵抗 109: _id_: 109 buff_type1: 1082 buff_type1_target_id: 1000 buff_type1_value_list: - 5 - 5 - 5 - 5 - 5 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 1100 name: ja: マイナス舞台効果Lv5抵抗 112: _id_: 112 buff_type1: 1083 buff_type1_target_id: 1000 buff_type1_value_list: - 3 - 3 - 3 - 3 - 3 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 1101 name: en: Restrict Pos. Stage Effect Lv. 3 ja: プラス舞台効果Lv3抑制 ko: 플러스 무대 효과 Lv3 억제 zh_hant: 正面舞台效果Lv3抑制 115: _id_: 115 buff_type1: 95 buff_type1_target_id: 4155 buff_type1_value_list: - 40 - 45 - 50 - 55 - 60 buff_type2: 3 buff_type2_target_id: 4155 buff_type2_value_list: - 20 - 25 - 30 - 40 - 50 buff_type3: 5 buff_type3_target_id: 4155 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 115 name: en: Standing Ovation (Star) ja: 拍手万雷(星) ko: 박수만뢰(별) zh_hant: 掌聲如雷(星) 116: _id_: 116 buff_type1: 105 buff_type1_target_id: 1002 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 28 buff_type2_target_id: 1002 buff_type2_value_list: - 0 - 0 - 0 - 0 - 0 buff_type3: 1 buff_type3_target_id: 1002 buff_type3_value_list: - 20 - 30 - 40 - 50 - 60 buff_type4: 22 buff_type4_target_id: 4153 buff_type4_value_list: - 50 - 50 - 50 - 50 - 50 buff_type5: 104 buff_type5_target_id: 4153 buff_type5_value_list: - 0 - 0 - 0 - 0 - 0 icon_id: 116 name: en: More Thrilling Discovery ja: もっとトキメキ発見 ko: 더 많은 두근거림 발견 zh_hant: 更多怦然心動的發現 117: _id_: 117 buff_type1: 32 buff_type1_target_id: 4008 buff_type1_value_list: - 60 - 70 - 80 - 90 - 100 buff_type2: 237 buff_type2_target_id: 4008 buff_type2_value_list: - 0 - 0 - 0 - 0 - 0 buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 117 name: en: Extreme Measures (Flower) ja: 快刀乱麻(花) ko: 쾌도난마(꽃) zh_hant: 快刀斬亂麻(花) 118: _id_: 118 buff_type1: 32 buff_type1_target_id: 4009 buff_type1_value_list: - 60 - 70 - 80 - 90 - 100 buff_type2: 237 buff_type2_target_id: 4009 buff_type2_value_list: - 0 - 0 - 0 - 0 - 0 buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 118 name: en: Extreme Measures (Wind) ja: 快刀乱麻(風) ko: 쾌도난마(바람) zh_hant: 快刀斬亂麻(風) 119: _id_: 119 buff_type1: 32 buff_type1_target_id: 4010 buff_type1_value_list: - 60 - 70 - 80 - 90 - 100 buff_type2: 237 buff_type2_target_id: 4010 buff_type2_value_list: - 0 - 0 - 0 - 0 - 0 buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 119 name: en: Extreme Measures (Snow) ja: 快刀乱麻(雪) ko: 쾌도난마(눈) zh_hant: 快刀斬亂麻(雪) 120: _id_: 120 buff_type1: 32 buff_type1_target_id: 4011 buff_type1_value_list: - 60 - 70 - 80 - 90 - 100 buff_type2: 237 buff_type2_target_id: 4011 buff_type2_value_list: - 0 - 0 - 0 - 0 - 0 buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 120 name: ja: 快刀乱麻(月) 121: _id_: 121 buff_type1: 32 buff_type1_target_id: 4012 buff_type1_value_list: - 60 - 70 - 80 - 90 - 100 buff_type2: 237 buff_type2_target_id: 4012 buff_type2_value_list: - 0 - 0 - 0 - 0 - 0 buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 121 name: en: Extreme Measures (Space) ja: 快刀乱麻(宙) ko: 쾌도난마(우주) zh_hant: 快刀斬亂麻(宙) 122: _id_: 122 buff_type1: 32 buff_type1_target_id: 4013 buff_type1_value_list: - 60 - 70 - 80 - 90 - 100 buff_type2: 237 buff_type2_target_id: 4013 buff_type2_value_list: - 0 - 0 - 0 - 0 - 0 buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 122 name: en: Extreme Measures (Cloud) ja: 快刀乱麻(雲) ko: 쾌도난마(구름) zh_hant: 快刀斬亂麻(雲) 123: _id_: 123 buff_type1: 1127 buff_type1_target_id: 1000 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 123 name: en: Shorten Climax Revue ja: クライマックスレヴュー短縮 ko: 클라이맥스 레뷰 단축 zh_hant: Climax Revue縮短 124: _id_: 124 buff_type1: 276 buff_type1_target_id: 1002 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 1048 buff_type2_target_id: 1002 buff_type2_value_list: - 0 - 0 - 0 - 0 - 0 buff_type3: 1 buff_type3_target_id: 1002 buff_type3_value_list: - 20 - 25 - 30 - 40 - 50 buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 124 name: en: Golden Age ja: 黄金時代 ko: 황금시대 zh_hant: 黃金時代 3001: _id_: 3001 buff_type1: 312 buff_type1_target_id: 1000 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 3001 name: en: Reflect Stage Effect [Self Trapping] ja: 舞台効果反射[自縄自縛] ko: 무대 효과 반사[자승자박] zh_hant: 舞台效果反射[自作自受] 3002: _id_: 3002 buff_type1: 313 buff_type1_target_id: 1000 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 3002 name: en: Reflect Stage Effect [Captivating Pupils] ja: 舞台効果反射[魅惑の瞳] ko: 무대 효과 반사[매혹의 눈동자] zh_hant: 舞台效果反射[魅惑的眼眸] 3003: _id_: 3003 buff_type1: 318 buff_type1_target_id: 1000 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 3003 name: en: Reflect Stage Effect [Hesitation] ja: 舞台効果反射[遅疑逡巡] ko: 무대 효과 반사[의심과 망설임] zh_hant: 舞台效果反射[遲疑不定] 3004: _id_: 3004 buff_type1: 319 buff_type1_target_id: 1000 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 3004 name: en: Reflect Stage Effect [Plan of the Abyss] ja: 舞台効果反射[深淵なる謀] ko: 무대 효과 반사[심연의 계략] zh_hant: 舞台效果反射[深謀遠慮] 3005: _id_: 3005 buff_type1: 320 buff_type1_target_id: 1000 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 3005 name: en: Reflect Stage Effect [Sugary Corruption] ja: 舞台効果反射[甘き堕落] ko: 무대 효과 반사[달콤한 타락] zh_hant: 舞台效果反射[甘美墮落] 3006: _id_: 3006 buff_type1: 335 buff_type1_target_id: 1000 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 3006 name: en: Reflect Stage Effect [Gray World] ja: 舞台効果反射[灰色の世界] ko: 무대 효과 반사[잿빛 세계] zh_hant: 舞台效果反射[灰色世界] 3007: _id_: 3007 buff_type1: 336 buff_type1_target_id: 1000 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 3007 name: en: Reflect Stage Effect [Thunder] ja: 舞台効果反射[雷鳴] ko: 무대 효과 반사[천둥] zh_hant: 舞台效果反射[雷鳴] 3008: _id_: 3008 buff_type1: 340 buff_type1_target_id: 1000 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 3008 name: en: Reflect Stage Effect [Night Playfulness] ja: 舞台効果反射[闇夜の戯れ] ko: 무대 효과 반사[한밤의 유희] zh_hant: 舞台效果反射[暗夜的歡鬧] 3009: _id_: 3009 buff_type1: 341 buff_type1_target_id: 1000 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 3009 name: en: Reflect Stage Effect [Imprisonment] ja: 舞台効果反射[幽囚の理] ko: 무대 효과 반사[유수의 이치] zh_hant: 舞台效果反射[幽閉的法則] 3010: _id_: 3010 buff_type1: 1137 buff_type1_target_id: 1000 buff_type1_value_list: - 0 - 0 - 0 - 0 - 0 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 3010 name: ja: マイナス舞台効果全反射 4001: _id_: 4001 buff_type1: 314 buff_type1_target_id: 4031 buff_type1_value_list: - 5 - 15 - 30 - 35 - 40 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 4001 name: en: Vanity (Flower) ja: 虚飾と虚栄(花) ko: 허식과 허영(꽃) zh_hant: 虛偽與虛榮(花) 4005: _id_: 4005 buff_type1: 314 buff_type1_target_id: 4035 buff_type1_value_list: - 5 - 15 - 30 - 35 - 40 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 4005 name: en: Vanity (Space) ja: 虚飾と虚栄(宙) ko: 허식과 허영(우주) zh_hant: 虛偽與虛榮(宙) 4008: _id_: 4008 buff_type1: 314 buff_type1_target_id: 4025 buff_type1_value_list: - 5 - 15 - 30 - 35 - 40 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 4008 name: en: Butterfly of the Fallen (Wind) ja: 堕天の蝶(風) ko: 타락한 천상의 나비(바람) zh_hant: 墮天之蝶(風) 4009: _id_: 4009 buff_type1: 314 buff_type1_target_id: 4026 buff_type1_value_list: - 5 - 15 - 30 - 35 - 40 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 4009 name: en: Butterfly of the Fallen (Snow) ja: 堕天の蝶(雪) ko: 타락한 천상의 나비(눈) zh_hant: 墮天之蝶(雪) 4014: _id_: 4014 buff_type1: 314 buff_type1_target_id: 4039 buff_type1_value_list: - 5 - 15 - 30 - 35 - 40 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 4014 name: en: Fall of Royalty (Wind) ja: 王威失墜(風) ko: 왕위 실추(바람) zh_hant: 王威盡失(風) 4015: _id_: 4015 buff_type1: 314 buff_type1_target_id: 4040 buff_type1_value_list: - 5 - 15 - 30 - 35 - 40 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 4015 name: ja: 王威失墜(雪) 4016: _id_: 4016 buff_type1: 314 buff_type1_target_id: 4041 buff_type1_value_list: - 5 - 15 - 30 - 35 - 40 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 4016 name: en: Fall of Royalty (Moon) ja: 王威失墜(月) ko: 왕위 실추(달) zh_hant: 王威盡失(月) 4018: _id_: 4018 buff_type1: 314 buff_type1_target_id: 4043 buff_type1_value_list: - 5 - 15 - 30 - 35 - 40 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 4018 name: en: Fall of Royalty (Cloud) ja: 王威失墜(雲) ko: 왕위 실추(구름) zh_hant: 王威盡失(雲) 4019: _id_: 4019 buff_type1: 314 buff_type1_target_id: 4017 buff_type1_value_list: - 5 - 15 - 30 - 35 - 40 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 4019 name: en: Final Destination (Flower) ja: 終着の地(花) ko: 종착지(꽃) zh_hant: 終結之地(花) 4022: _id_: 4022 buff_type1: 314 buff_type1_target_id: 4020 buff_type1_value_list: - 5 - 15 - 30 - 35 - 40 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 4022 name: en: Final Destination (Moon) ja: 終着の地(月) ko: 종착지(달) zh_hant: 終結之地(月) 4023: _id_: 4023 buff_type1: 314 buff_type1_target_id: 4021 buff_type1_value_list: - 5 - 15 - 30 - 35 - 40 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 4023 name: en: Final Destination (Space) ja: 終着の地(宙) ko: 종착지(우주) zh_hant: 終結之地(宙) 4024: _id_: 4024 buff_type1: 314 buff_type1_target_id: 4022 buff_type1_value_list: - 5 - 15 - 30 - 35 - 40 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 4024 name: en: Final Destination (Cloud) ja: 終着の地(雲) ko: 종착지(구름) zh_hant: 終結之地(雲) 4025: _id_: 4025 buff_type1: 314 buff_type1_target_id: 4044 buff_type1_value_list: - 5 - 15 - 30 - 35 - 40 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 4025 name: en: Fall of Royalty (Dream) ja: 王威失墜(夢) ko: 왕위 실추(꿈) zh_hant: 王威盡失(夢) 4026: _id_: 4026 buff_type1: 314 buff_type1_target_id: 4001 buff_type1_value_list: - 5 - 6 - 7 - 8 - 10 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 4026 name: en: Unfulfilled Promise ja: 果たされぬ約束 ko: 이루지 못한 약속 zh_hant: 未實現的約定 4027: _id_: 4027 buff_type1: 314 buff_type1_target_id: 4002 buff_type1_value_list: - 5 - 6 - 7 - 8 - 10 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 4027 name: en: Dreams and Fantasies ja: 夢幻泡影 ko: 몽환포영 zh_hant: 夢幻泡影 4028: _id_: 4028 buff_type1: 314 buff_type1_target_id: 4003 buff_type1_value_list: - 5 - 6 - 7 - 8 - 10 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 4028 name: en: Tinkle Out ja: ティンクル・アウト ko: 팅클 아웃 zh_hant: Tinkle Out 4029: _id_: 4029 buff_type1: 314 buff_type1_target_id: 4004 buff_type1_value_list: - 5 - 6 - 7 - 8 - 10 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 4029 name: en: Imitation Jewelry ja: イミテーション・ジュエリー ko: 이미테이션 주얼리 zh_hant: Imitation Jewelry 4030: _id_: 4030 buff_type1: 314 buff_type1_target_id: 4014 buff_type1_value_list: - 5 - 6 - 7 - 8 - 10 buff_type2: 0 buff_type2_target_id: 0 buff_type2_value_list: [] buff_type3: 0 buff_type3_target_id: 0 buff_type3_value_list: [] buff_type4: 0 buff_type4_target_id: 0 buff_type4_value_list: [] buff_type5: 0 buff_type5_target_id: 0 buff_type5_value_list: [] icon_id: 4030 name: en: The Day the Dream Ends ja: 夢の終わる日 ko: 꿈이 끝나는 날 zh_hant: 夢想結束的那一天 */ inline val dataGenFieldEffect get() = """{"1":{"buff_type1":1,"buff_type1_target_id":1002,"buff_type1_value_list":[30,40,50,60,70],"buff_type2":13,"buff_type2_target_id":1002,"buff_type2_value_list":[10,15,20,25,30],"buff_type3":15,"buff_type3_target_id":1002,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":1,"name":{"en":"Light of Courage","ja":"勇気の灯","ko":"용기의 등불","zh_hant":"勇氣之燈"},"_id_":1},"2":{"buff_type1":1,"buff_type1_target_id":4008,"buff_type1_value_list":[20,25,30,40,50],"buff_type2":3,"buff_type2_target_id":4008,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":5,"buff_type3_target_id":4008,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":40,"buff_type4_target_id":4008,"buff_type4_value_list":[20,25,30,40,50],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":2,"name":{"en":"We Are on the Stage (Flower)","ja":"私たちはもう舞台の上(花)","ko":"우리는 이미 무대 위(꽃)","zh_hant":"我們已經站上舞台(花)"},"_id_":2},"3":{"buff_type1":1,"buff_type1_target_id":4009,"buff_type1_value_list":[20,25,30,40,50],"buff_type2":3,"buff_type2_target_id":4009,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":5,"buff_type3_target_id":4009,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":41,"buff_type4_target_id":4009,"buff_type4_value_list":[20,25,30,40,50],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":3,"name":{"en":"We Are on the Stage (Wind)","ja":"私たちはもう舞台の上(風)","ko":"우리는 이미 무대 위(바람)","zh_hant":"我們已經站上舞台(風)"},"_id_":3},"4":{"buff_type1":1,"buff_type1_target_id":4010,"buff_type1_value_list":[20,25,30,40,50],"buff_type2":3,"buff_type2_target_id":4010,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":5,"buff_type3_target_id":4010,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":39,"buff_type4_target_id":4010,"buff_type4_value_list":[20,25,30,40,50],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":4,"name":{"en":"We Are on the Stage (Snow)","ja":"私たちはもう舞台の上(雪)","ko":"우리는 이미 무대 위(눈)","zh_hant":"我們已經站上舞台(雪)"},"_id_":4},"5":{"buff_type1":1,"buff_type1_target_id":4011,"buff_type1_value_list":[20,25,30,40,50],"buff_type2":3,"buff_type2_target_id":4011,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":5,"buff_type3_target_id":4011,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":43,"buff_type4_target_id":4011,"buff_type4_value_list":[20,25,30,40,50],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":5,"name":{"en":"We Are on the Stage (Moon)","ja":"私たちはもう舞台の上(月)","ko":"우리는 이미 무대 위(달)","zh_hant":"我們已經站上舞台(月)"},"_id_":5},"6":{"buff_type1":1,"buff_type1_target_id":4012,"buff_type1_value_list":[20,25,30,40,50],"buff_type2":3,"buff_type2_target_id":4012,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":5,"buff_type3_target_id":4012,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":44,"buff_type4_target_id":4012,"buff_type4_value_list":[20,25,30,40,50],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":6,"name":{"en":"We Are on the Stage (Space)","ja":"私たちはもう舞台の上(宙)","ko":"우리는 이미 무대 위(우주)","zh_hant":"我們已經站上舞台(宙)"},"_id_":6},"7":{"buff_type1":1,"buff_type1_target_id":4013,"buff_type1_value_list":[20,25,30,40,50],"buff_type2":3,"buff_type2_target_id":4013,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":5,"buff_type3_target_id":4013,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":42,"buff_type4_target_id":4013,"buff_type4_value_list":[20,25,30,40,50],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":7,"name":{"en":"We Are on the Stage (Cloud)","ja":"私たちはもう舞台の上(雲)","ko":"우리는 이미 무대 위(구름)","zh_hant":"我們已經站上舞台(雲)"},"_id_":7},"8":{"buff_type1":2,"buff_type1_target_id":2002,"buff_type1_value_list":[30,40,50,60,70],"buff_type2":4,"buff_type2_target_id":2002,"buff_type2_value_list":[30,35,40,45,50],"buff_type3":6,"buff_type3_target_id":2002,"buff_type3_value_list":[30,35,40,45,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":8,"name":{"en":"Sunset Tune","ja":"落日の音色","ko":"낙조의 음색","zh_hant":"落日音色"},"_id_":8},"9":{"buff_type1":8,"buff_type1_target_id":2002,"buff_type1_value_list":[20,25,30,35,40],"buff_type2":2,"buff_type2_target_id":2002,"buff_type2_value_list":[20,30,40,50,60],"buff_type3":14,"buff_type3_target_id":2002,"buff_type3_value_list":[20,25,30,35,40],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":9,"name":{"en":"Shadow Stupor","ja":"昏迷の影","ko":"혼미의 그림자","zh_hant":"昏迷之影"},"_id_":9},"10":{"buff_type1":7,"buff_type1_target_id":1002,"buff_type1_value_list":[20,25,30,35,40],"buff_type2":1,"buff_type2_target_id":1002,"buff_type2_value_list":[20,30,40,50,60],"buff_type3":13,"buff_type3_target_id":1002,"buff_type3_value_list":[20,25,30,35,40],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":10,"name":{"en":"Lightning Shade","ja":"電光影裏","ko":"번갯불의 그림자","zh_hant":"雷光影裏"},"_id_":10},"11":{"buff_type1":104,"buff_type1_target_id":1133,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":1,"buff_type2_target_id":1133,"buff_type2_value_list":[20,30,40,50,60],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":11,"name":{"en":"Ironclad Guard","ja":"鉄壁の守備","ko":"철벽 수비","zh_hant":"鐵壁守備"},"_id_":11},"12":{"buff_type1":3,"buff_type1_target_id":1002,"buff_type1_value_list":[20,25,30,35,40],"buff_type2":5,"buff_type2_target_id":1002,"buff_type2_value_list":[20,30,40,50,60],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":12,"name":{"en":"Boldness","ja":"ガッツ","ko":"근성","zh_hant":"毅力"},"_id_":12},"13":{"buff_type1":169,"buff_type1_target_id":2002,"buff_type1_value_list":[7500,7500,7500,7500,7500],"buff_type2":2,"buff_type2_target_id":2002,"buff_type2_value_list":[20,30,40,50,60],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":13,"name":{"en":"Thunder","ja":"雷鳴","ko":"천둥","zh_hant":"雷鳴"},"_id_":13},"14":{"buff_type1":98,"buff_type1_target_id":1002,"buff_type1_value_list":[10,15,20,25,30],"buff_type2":13,"buff_type2_target_id":1002,"buff_type2_value_list":[10,15,20,25,30],"buff_type3":15,"buff_type3_target_id":1002,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":14,"name":{"en":"Winning Determination","ja":"勝負根性","ko":"승부 근성","zh_hant":"勝負鬥志"},"_id_":14},"15":{"buff_type1":2,"buff_type1_target_id":4013,"buff_type1_value_list":[20,25,30,40,50],"buff_type2":4,"buff_type2_target_id":4013,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":6,"buff_type3_target_id":4013,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":151,"buff_type4_target_id":4013,"buff_type4_value_list":[20,25,30,40,50],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":15,"name":{"en":"Concentration (Space)","ja":"本日も集中あるのみ(宙)","ko":"오늘도 집중할 뿐(우주)","zh_hant":"今天也要全神貫注(宙)"},"_id_":15},"16":{"buff_type1":2,"buff_type1_target_id":4010,"buff_type1_value_list":[20,25,30,40,50],"buff_type2":4,"buff_type2_target_id":4010,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":6,"buff_type3_target_id":4010,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":148,"buff_type4_target_id":4010,"buff_type4_value_list":[20,25,30,40,50],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":16,"name":{"en":"Concentration (Wind)","ja":"本日も集中あるのみ(風)","ko":"오늘도 집중할 뿐(바람)","zh_hant":"今天也要全神貫注(風)"},"_id_":16},"17":{"buff_type1":2,"buff_type1_target_id":4008,"buff_type1_value_list":[20,25,30,40,50],"buff_type2":4,"buff_type2_target_id":4008,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":6,"buff_type3_target_id":4008,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":149,"buff_type4_target_id":4008,"buff_type4_value_list":[20,25,30,40,50],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":17,"name":{"en":"Concentration (Snow)","ja":"本日も集中あるのみ(雪)","ko":"오늘도 집중할 뿐(눈)","zh_hant":"今天也要全神貫注(雪)"},"_id_":17},"18":{"buff_type1":2,"buff_type1_target_id":2401,"buff_type1_value_list":[20,30,40,50,60],"buff_type2":4,"buff_type2_target_id":2401,"buff_type2_value_list":[30,35,40,45,50],"buff_type3":6,"buff_type3_target_id":2401,"buff_type3_value_list":[30,35,40,45,50],"buff_type4":16,"buff_type4_target_id":2401,"buff_type4_value_list":[20,25,30,35,40],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":18,"name":{"en":"Tears or Mist","ja":"露か涙か","ko":"이슬인가 눈물인가","zh_hant":"如露又似淚"},"_id_":18},"19":{"buff_type1":21,"buff_type1_target_id":1002,"buff_type1_value_list":[15000,17000,19000,22000,25000],"buff_type2":1,"buff_type2_target_id":1002,"buff_type2_value_list":[20,30,40,50,60],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":19,"name":{"en":"God of War's Protection","ja":"戦神の護り","ko":"전쟁신의 수호","zh_hant":"戰神加護"},"_id_":19},"20":{"buff_type1":1,"buff_type1_target_id":4003,"buff_type1_value_list":[20,30,40,50,60],"buff_type2":3,"buff_type2_target_id":4003,"buff_type2_value_list":[30,35,40,45,50],"buff_type3":5,"buff_type3_target_id":4003,"buff_type3_value_list":[30,35,40,45,50],"buff_type4":15,"buff_type4_target_id":4003,"buff_type4_value_list":[20,25,30,35,40],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":20,"name":{"en":"Wild Hope","ja":"希望の荒野","ko":"희망의 황야","zh_hant":"希望荒野"},"_id_":20},"21":{"buff_type1":48,"buff_type1_target_id":2002,"buff_type1_value_list":[3000,3500,4000,4500,5000],"buff_type2":55,"buff_type2_target_id":2002,"buff_type2_value_list":[0,0,0,0,0],"buff_type3":4,"buff_type3_target_id":2002,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":6,"buff_type4_target_id":2002,"buff_type4_value_list":[20,25,30,40,50],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":21,"name":{"en":"Roaring Fire","ja":"火煙轟々","ko":"타오르는 불꽃","zh_hant":"熊熊烈火"},"_id_":21},"22":{"buff_type1":98,"buff_type1_target_id":1002,"buff_type1_value_list":[30,35,40,45,50],"buff_type2":3,"buff_type2_target_id":1002,"buff_type2_value_list":[30,35,40,45,50],"buff_type3":5,"buff_type3_target_id":1002,"buff_type3_value_list":[30,35,40,45,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":22,"name":{"en":"Angelic Smile","ja":"天使のほほえみ","ko":"천사의 미소","zh_hant":"天使的微笑"},"_id_":22},"23":{"buff_type1":50,"buff_type1_target_id":2002,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":4,"buff_type2_target_id":2002,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":6,"buff_type3_target_id":2002,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":23,"name":{"en":"Self Trapping","ja":"自縄自縛","ko":"자승자박","zh_hant":"自作自受"},"_id_":23},"24":{"buff_type1":48,"buff_type1_target_id":2002,"buff_type1_value_list":[3000,3500,4000,4500,5000],"buff_type2":55,"buff_type2_target_id":2002,"buff_type2_value_list":[0,0,0,0,0],"buff_type3":52,"buff_type3_target_id":2002,"buff_type3_value_list":[0,0,0,0,0],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":24,"name":{"en":"Disaster Hail","ja":"災禍の呼び声","ko":"재해가 부르는 소리","zh_hant":"呼喚災禍之聲"},"_id_":24},"25":{"buff_type1":304,"buff_type1_target_id":1000,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":4,"buff_type2_target_id":2002,"buff_type2_value_list":[5,10,15,20,25],"buff_type3":6,"buff_type3_target_id":2002,"buff_type3_value_list":[5,10,15,20,25],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":25,"name":{"en":"Death's Kiss","ja":"死の口づけ","ko":"죽음의 입맞춤","zh_hant":"死亡之吻"},"_id_":25},"26":{"buff_type1":126,"buff_type1_target_id":4006,"buff_type1_value_list":[80,80,80,80,80],"buff_type2":8,"buff_type2_target_id":2002,"buff_type2_value_list":[5,10,15,20,25],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":26,"name":{"en":"Tragic Music","ja":"悲壮の奏","ko":"비장의 멜로디","zh_hant":"悲壯之奏"},"_id_":26},"27":{"buff_type1":13,"buff_type1_target_id":1002,"buff_type1_value_list":[100,100,100,100,100],"buff_type2":21,"buff_type2_target_id":1002,"buff_type2_value_list":[15000,17000,19000,22000,25000],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":27,"name":{"en":"Blooming Flowers","ja":"百花繚乱","ko":"백화요란","zh_hant":"百花繚亂"},"_id_":27},"28":{"buff_type1":305,"buff_type1_target_id":1000,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":4,"buff_type2_target_id":2002,"buff_type2_value_list":[5,10,15,20,25],"buff_type3":6,"buff_type3_target_id":2002,"buff_type3_value_list":[5,10,15,20,25],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":28,"name":{"en":"Afterlife Trials","ja":"幽世の試練","ko":"저승의 시련","zh_hant":"幽世試煉"},"_id_":28},"29":{"buff_type1":13,"buff_type1_target_id":1002,"buff_type1_value_list":[25,50,55,60,65],"buff_type2":15,"buff_type2_target_id":1002,"buff_type2_value_list":[25,50,55,60,65],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":29,"name":{"en":"<NAME> Stage","ja":"星見純那が主役の舞台","ko":"호시미 준나가 주역인 무대","zh_hant":"星見純那所主演的舞台"},"_id_":29},"30":{"buff_type1":105,"buff_type1_target_id":3262,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":33,"buff_type2_target_id":3262,"buff_type2_value_list":[25,50,55,60,65],"buff_type3":13,"buff_type3_target_id":3262,"buff_type3_value_list":[25,50,55,60,65],"buff_type4":15,"buff_type4_target_id":3262,"buff_type4_value_list":[25,50,55,60,65],"buff_type5":7,"buff_type5_target_id":3262,"buff_type5_value_list":[10,20,25,30,35],"icon_id":30,"name":{"en":"Trial to the Hero, Temptation to the Saint","ja":"英雄には試練を、聖者には誘惑を","ko":"영웅에게는 시련을, 성자에게는 유혹을","zh_hant":"將試煉賜予英雄,將誘惑賜予聖者"},"_id_":30},"31":{"buff_type1":19,"buff_type1_target_id":1002,"buff_type1_value_list":[50,60,70,80,90],"buff_type2":32,"buff_type2_target_id":1002,"buff_type2_value_list":[20,25,30,35,40],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":31,"name":{"en":"Sweet Moment","ja":"甘美なひととき","ko":"감미로운 시간","zh_hant":"蜜糖時光"},"_id_":31},"32":{"buff_type1":105,"buff_type1_target_id":3262,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":13,"buff_type2_target_id":3262,"buff_type2_value_list":[25,50,55,60,65],"buff_type3":15,"buff_type3_target_id":3262,"buff_type3_value_list":[25,50,55,60,65],"buff_type4":22,"buff_type4_target_id":3262,"buff_type4_value_list":[10,15,20,25,30],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":32,"name":{"en":"Falling Into Flames Together","ja":"共に堕ちていく焔","ko":"함께 추락하는 불꽃","zh_hant":"共同墮落的火焰"},"_id_":32},"33":{"buff_type1":105,"buff_type1_target_id":2509,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":13,"buff_type2_target_id":2509,"buff_type2_value_list":[30,60,80,90,100],"buff_type3":15,"buff_type3_target_id":2509,"buff_type3_value_list":[30,60,80,90,100],"buff_type4":19,"buff_type4_target_id":2509,"buff_type4_value_list":[100,100,100,100,100],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":33,"name":{"en":"Severing of Bonds","ja":"これにて縁切り","ko":"이로써 의절","zh_hant":"我們就此斷絕關係"},"_id_":33},"34":{"buff_type1":105,"buff_type1_target_id":3264,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":13,"buff_type2_target_id":3115,"buff_type2_value_list":[30,60,80,90,100],"buff_type3":15,"buff_type3_target_id":3115,"buff_type3_value_list":[30,60,80,90,100],"buff_type4":240,"buff_type4_target_id":3115,"buff_type4_value_list":[20,20,20,20,20],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":34,"name":{"en":"Our Pathetic Selves","ja":"しょうもないあたしたち","ko":"구제불능인 우리들","zh_hant":"無可救藥的我們"},"_id_":34},"35":{"buff_type1":1,"buff_type1_target_id":4001,"buff_type1_value_list":[30,60,80,90,100],"buff_type2":13,"buff_type2_target_id":4001,"buff_type2_value_list":[30,60,80,90,100],"buff_type3":15,"buff_type3_target_id":4001,"buff_type3_value_list":[30,60,80,90,100],"buff_type4":7,"buff_type4_target_id":4001,"buff_type4_value_list":[30,60,80,90,100],"buff_type5":32,"buff_type5_target_id":4001,"buff_type5_value_list":[20,25,30,35,40],"icon_id":35,"name":{"en":"Brilliant Stage","ja":"キラめく舞台","ko":"반짝이는 무대","zh_hant":"萬丈光芒的舞台"},"_id_":35},"36":{"buff_type1":13,"buff_type1_target_id":1002,"buff_type1_value_list":[100,100,100,100,100],"buff_type2":15,"buff_type2_target_id":1002,"buff_type2_value_list":[30,35,40,45,50],"buff_type3":28,"buff_type3_target_id":1002,"buff_type3_value_list":[0,0,0,0,0],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":36,"name":{"en":"Bullseye","ja":"百発百中、一発必中","ko":"백발백중, 일발필중","zh_hant":"百發百中,一擊必中"},"_id_":36},"37":{"buff_type1":95,"buff_type1_target_id":4008,"buff_type1_value_list":[20,25,30,35,40],"buff_type2":3,"buff_type2_target_id":4008,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":5,"buff_type3_target_id":4008,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":37,"name":{"en":"Applauses (Flower)","ja":"拍手喝采(花)","ko":"박수갈채(꽃)","zh_hant":"拍手喝采(花)"},"_id_":37},"38":{"buff_type1":95,"buff_type1_target_id":4009,"buff_type1_value_list":[20,25,30,35,40],"buff_type2":3,"buff_type2_target_id":4009,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":5,"buff_type3_target_id":4009,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":38,"name":{"en":"Applauses (Wind)","ja":"拍手喝采(風)","ko":"박수갈채(바람)","zh_hant":"拍手喝采(風)"},"_id_":38},"39":{"buff_type1":95,"buff_type1_target_id":4010,"buff_type1_value_list":[20,25,30,35,40],"buff_type2":3,"buff_type2_target_id":4010,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":5,"buff_type3_target_id":4010,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":39,"name":{"en":"Applauses (Snow)","ja":"拍手喝采(雪)","ko":"박수갈채(눈)","zh_hant":"拍手喝采(雪)"},"_id_":39},"40":{"buff_type1":95,"buff_type1_target_id":4011,"buff_type1_value_list":[20,25,30,35,40],"buff_type2":3,"buff_type2_target_id":4011,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":5,"buff_type3_target_id":4011,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":40,"name":{"en":"Applauses (Moon)","ja":"拍手喝采(月)","ko":"박수갈채(달)","zh_hant":"拍手喝采(月)"},"_id_":40},"41":{"buff_type1":95,"buff_type1_target_id":4012,"buff_type1_value_list":[20,25,30,35,40],"buff_type2":3,"buff_type2_target_id":4012,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":5,"buff_type3_target_id":4012,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":41,"name":{"en":"Applauses (Space)","ja":"拍手喝采(宙)","ko":"박수갈채(우주)","zh_hant":"拍手喝采(宙)"},"_id_":41},"42":{"buff_type1":95,"buff_type1_target_id":4013,"buff_type1_value_list":[20,25,30,35,40],"buff_type2":3,"buff_type2_target_id":4013,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":5,"buff_type3_target_id":4013,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":42,"name":{"en":"Applauses (Cloud)","ja":"拍手喝采(雲)","ko":"박수갈채(구름)","zh_hant":"拍手喝采(雲)"},"_id_":42},"43":{"buff_type1":105,"buff_type1_target_id":4001,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":13,"buff_type2_target_id":4001,"buff_type2_value_list":[30,40,50,60,70],"buff_type3":15,"buff_type3_target_id":4001,"buff_type3_value_list":[30,40,50,60,70],"buff_type4":98,"buff_type4_target_id":4001,"buff_type4_value_list":[30,40,50,60,70],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":43,"name":{"en":"We Are Rivals!","ja":"私たちはライバル!","ko":"우리는 라이벌!","zh_hant":"我們是勁敵!"},"_id_":43},"44":{"buff_type1":105,"buff_type1_target_id":4004,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":1,"buff_type2_target_id":4004,"buff_type2_value_list":[30,40,50,60,70],"buff_type3":98,"buff_type3_target_id":4004,"buff_type3_value_list":[30,40,50,60,70],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":44,"name":{"en":"Royal Authority","ja":"燦然たる王威","ko":"찬란한 왕의 위엄","zh_hant":"璀璨的王之威光"},"_id_":44},"45":{"buff_type1":162,"buff_type1_target_id":2002,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":4,"buff_type2_target_id":2002,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":6,"buff_type3_target_id":2002,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":45,"name":{"en":"Captivating Pupils","ja":"魅惑の瞳","ko":"매혹의 눈동자","zh_hant":"魅惑的眼眸"},"_id_":45},"46":{"buff_type1":50,"buff_type1_target_id":2002,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":169,"buff_type2_target_id":2002,"buff_type2_value_list":[7500,7500,7500,7500,7500],"buff_type3":162,"buff_type3_target_id":2002,"buff_type3_value_list":[0,0,0,0,0],"buff_type4":4,"buff_type4_target_id":2002,"buff_type4_value_list":[20,25,30,40,50],"buff_type5":6,"buff_type5_target_id":2002,"buff_type5_value_list":[20,25,30,40,50],"icon_id":46,"name":{"en":"Twilight of the Gods","ja":"神々の黄昏","ko":"신들의 황혼","zh_hant":"諸神黃昏"},"_id_":46},"48":{"buff_type1":105,"buff_type1_target_id":4001,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":13,"buff_type2_target_id":4001,"buff_type2_value_list":[30,40,50,60,70],"buff_type3":15,"buff_type3_target_id":4001,"buff_type3_value_list":[30,40,50,60,70],"buff_type4":32,"buff_type4_target_id":4001,"buff_type4_value_list":[30,40,50,60,70],"buff_type5":13,"buff_type5_target_id":3118,"buff_type5_value_list":[10,15,20,25,30],"icon_id":48,"name":{"en":"This Is the Stage","ja":"ここが舞台だ","ko":"여기가 무대다","zh_hant":"這裡是舞台"},"_id_":48},"49":{"buff_type1":237,"buff_type1_target_id":1002,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":19,"buff_type2_target_id":1002,"buff_type2_value_list":[100,100,100,100,100],"buff_type3":231,"buff_type3_target_id":4138,"buff_type3_value_list":[100,100,100,100,100],"buff_type4":1,"buff_type4_target_id":1002,"buff_type4_value_list":[20,30,40,50,60],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":49,"name":{"en":"Je T'Aime","ja":"ジュ・テーム","ko":"쥬뗌므","zh_hant":"Je t'aime"},"_id_":49},"50":{"buff_type1":167,"buff_type1_target_id":2002,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":4,"buff_type2_target_id":2002,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":6,"buff_type3_target_id":2002,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":50,"name":{"en":"Scar of Grief","ja":"嘆きの傷痕","ko":"비탄의 상흔","zh_hant":"悲嘆的傷痕"},"_id_":50},"51":{"buff_type1":175,"buff_type1_target_id":2002,"buff_type1_value_list":[100,100,100,100,100],"buff_type2":235,"buff_type2_target_id":2002,"buff_type2_value_list":[0,0,0,0,0],"buff_type3":4,"buff_type3_target_id":2002,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":6,"buff_type4_target_id":2002,"buff_type4_value_list":[20,25,30,40,50],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":51,"name":{"en":"Tragic Fate","ja":"散華のさだめ","ko":"산화의 숙명","zh_hant":"光榮犧牲的宿命"},"_id_":51},"52":{"buff_type1":237,"buff_type1_target_id":1002,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":231,"buff_type2_target_id":1002,"buff_type2_value_list":[100,100,100,100,100],"buff_type3":1,"buff_type3_target_id":1002,"buff_type3_value_list":[20,30,40,50,60],"buff_type4":19,"buff_type4_target_id":4138,"buff_type4_value_list":[100,100,100,100,100],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":52,"name":{"en":"Divine Power","ja":"神授の力","ko":"신이 내린 힘","zh_hant":"神授之力"},"_id_":52},"53":{"buff_type1":1,"buff_type1_target_id":4002,"buff_type1_value_list":[20,30,40,50,60],"buff_type2":3,"buff_type2_target_id":4002,"buff_type2_value_list":[30,35,40,45,50],"buff_type3":5,"buff_type3_target_id":4002,"buff_type3_value_list":[30,35,40,45,50],"buff_type4":15,"buff_type4_target_id":4002,"buff_type4_value_list":[20,25,30,35,40],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":53,"name":{"en":"Majestic","ja":"威風凛々","ko":"위풍당당","zh_hant":"威風凛凛"},"_id_":53},"54":{"buff_type1":106,"buff_type1_target_id":2002,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":4,"buff_type2_target_id":2002,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":6,"buff_type3_target_id":2002,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":235,"buff_type4_target_id":2401,"buff_type4_value_list":[0,0,0,0,0],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":54,"name":{"en":"Hesitation","ja":"遅疑逡巡","ko":"의심과 망설임","zh_hant":"遲疑不定"},"_id_":54},"55":{"buff_type1":13,"buff_type1_target_id":1002,"buff_type1_value_list":[100,100,100,100,100],"buff_type2":15,"buff_type2_target_id":1002,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":7,"buff_type3_target_id":1002,"buff_type3_value_list":[20,25,30,35,40],"buff_type4":240,"buff_type4_target_id":1002,"buff_type4_value_list":[20,20,20,20,20],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":55,"name":{"en":"Mellow Flavor","ja":"心躍る芳醇","ko":"마음 들뜨는 향긋함","zh_hant":"心悸的香醇"},"_id_":55},"56":{"buff_type1":126,"buff_type1_target_id":2002,"buff_type1_value_list":[50,50,50,50,50],"buff_type2":8,"buff_type2_target_id":2002,"buff_type2_value_list":[5,10,15,20,25],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":56,"name":{"en":"Sugary Corruption","ja":"甘き堕落","ko":"달콤한 타락","zh_hant":"甘美墮落"},"_id_":56},"57":{"buff_type1":242,"buff_type1_target_id":2002,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":2,"buff_type2_target_id":2002,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":57,"name":{"en":"Plan of the Abyss","ja":"深淵なる謀","ko":"심연의 계략","zh_hant":"深謀遠慮"},"_id_":57},"58":{"buff_type1":19,"buff_type1_target_id":1002,"buff_type1_value_list":[50,60,70,80,90],"buff_type2":231,"buff_type2_target_id":1002,"buff_type2_value_list":[50,60,70,80,90],"buff_type3":98,"buff_type3_target_id":1002,"buff_type3_value_list":[30,40,50,60,70],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":58,"name":{"en":"Golden Vitality","ja":"黄金の活力","ko":"황금의 활력","zh_hant":"黃金活力"},"_id_":58},"59":{"buff_type1":105,"buff_type1_target_id":1002,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":28,"buff_type2_target_id":1002,"buff_type2_value_list":[0,0,0,0,0],"buff_type3":13,"buff_type3_target_id":1002,"buff_type3_value_list":[50,55,60,65,70],"buff_type4":15,"buff_type4_target_id":1002,"buff_type4_value_list":[50,55,60,65,70],"buff_type5":268,"buff_type5_target_id":4140,"buff_type5_value_list":[100,100,100,100,100],"icon_id":59,"name":{"en":"Pledge of the Sage","ja":"賢者の契り","ko":"현자의 약속","zh_hant":"賢者的契約"},"_id_":59},"60":{"buff_type1":267,"buff_type1_target_id":2002,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":2,"buff_type2_target_id":2002,"buff_type2_value_list":[20,25,30,35,40],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":60,"name":{"en":"Heavenly Highlight","ja":"天体ハイライト","ko":"천체 하이라이트","zh_hant":"天體注目"},"_id_":60},"61":{"buff_type1":237,"buff_type1_target_id":4059,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":19,"buff_type2_target_id":4059,"buff_type2_value_list":[100,100,100,100,100],"buff_type3":1,"buff_type3_target_id":4059,"buff_type3_value_list":[20,25,30,35,40],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":61,"name":{"en":"Grace, Nobility, Fun","ja":"美しく、気高く、楽しく","ko":"아름답게, 품위있게, 즐겁게","zh_hant":"美麗、高貴且樂在其中"},"_id_":61},"62":{"buff_type1":105,"buff_type1_target_id":1002,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":19,"buff_type2_target_id":1002,"buff_type2_value_list":[100,100,100,100,100],"buff_type3":1,"buff_type3_target_id":1002,"buff_type3_value_list":[20,30,40,50,60],"buff_type4":22,"buff_type4_target_id":1002,"buff_type4_value_list":[50,50,50,50,50],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":62,"name":{"en":"Happy Footsteps","ja":"幸福の足音","ko":"행복의 발소리","zh_hant":"幸福的腳步聲"},"_id_":62},"63":{"buff_type1":105,"buff_type1_target_id":1002,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":231,"buff_type2_target_id":1002,"buff_type2_value_list":[100,100,100,100,100],"buff_type3":1,"buff_type3_target_id":1002,"buff_type3_value_list":[20,30,40,50,60],"buff_type4":22,"buff_type4_target_id":1002,"buff_type4_value_list":[50,50,50,50,50],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":63,"name":{"en":"Leap Oath","ja":"飛躍の誓い","ko":"비약의 맹세","zh_hant":"飛躍之誓言"},"_id_":63},"64":{"buff_type1":305,"buff_type1_target_id":1000,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":169,"buff_type2_target_id":2002,"buff_type2_value_list":[7500,7500,7500,7500,7500],"buff_type3":4,"buff_type3_target_id":2002,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":6,"buff_type4_target_id":2002,"buff_type4_value_list":[20,25,30,40,50],"buff_type5":277,"buff_type5_target_id":2121,"buff_type5_value_list":[10,10,10,10,10],"icon_id":64,"name":{"en":"Calamity","ja":"凶変","ko":"흉변","zh_hant":"變故"},"_id_":64},"65":{"buff_type1":95,"buff_type1_target_id":4008,"buff_type1_value_list":[40,45,50,55,60],"buff_type2":3,"buff_type2_target_id":4008,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":5,"buff_type3_target_id":4008,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":65,"name":{"en":"Standing Ovation (Flower)","ja":"拍手万雷(花)","ko":"박수만뢰(꽃)","zh_hant":"掌聲如雷(花)"},"_id_":65},"66":{"buff_type1":95,"buff_type1_target_id":4009,"buff_type1_value_list":[40,45,50,55,60],"buff_type2":3,"buff_type2_target_id":4009,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":5,"buff_type3_target_id":4009,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":66,"name":{"en":"Standing Ovation (Wind)","ja":"拍手万雷(風)","ko":"박수만뢰(바람)","zh_hant":"掌聲如雷(風)"},"_id_":66},"67":{"buff_type1":95,"buff_type1_target_id":4010,"buff_type1_value_list":[40,45,50,55,60],"buff_type2":3,"buff_type2_target_id":4010,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":5,"buff_type3_target_id":4010,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":67,"name":{"en":"Standing Ovation (Snow)","ja":"拍手万雷(雪)","ko":"박수만뢰(눈)","zh_hant":"掌聲如雷(雪)"},"_id_":67},"68":{"buff_type1":95,"buff_type1_target_id":4011,"buff_type1_value_list":[40,45,50,55,60],"buff_type2":3,"buff_type2_target_id":4011,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":5,"buff_type3_target_id":4011,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":68,"name":{"en":"Standing Ovation (Moon)","ja":"拍手万雷(月)","ko":"박수만뢰(달)","zh_hant":"掌聲如雷(月)"},"_id_":68},"69":{"buff_type1":95,"buff_type1_target_id":4012,"buff_type1_value_list":[40,45,50,55,60],"buff_type2":3,"buff_type2_target_id":4012,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":5,"buff_type3_target_id":4012,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":69,"name":{"en":"Standing Ovation (Space)","ja":"拍手万雷(宙)","ko":"박수만뢰(우주)","zh_hant":"掌聲如雷(宙)"},"_id_":69},"70":{"buff_type1":95,"buff_type1_target_id":4013,"buff_type1_value_list":[40,45,50,55,60],"buff_type2":3,"buff_type2_target_id":4013,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":5,"buff_type3_target_id":4013,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":70,"name":{"en":"Standing Ovation (Cloud)","ja":"拍手万雷(雲)","ko":"박수만뢰(구름)","zh_hant":"掌聲如雷(雲)"},"_id_":70},"71":{"buff_type1":231,"buff_type1_target_id":1002,"buff_type1_value_list":[100,100,100,100,100],"buff_type2":1,"buff_type2_target_id":1002,"buff_type2_value_list":[20,30,40,50,60],"buff_type3":3,"buff_type3_target_id":1002,"buff_type3_value_list":[30,35,40,45,50],"buff_type4":5,"buff_type4_target_id":1002,"buff_type4_value_list":[30,35,40,45,50],"buff_type5":15,"buff_type5_target_id":1002,"buff_type5_value_list":[50,55,60,65,70],"icon_id":71,"name":{"en":"Elegant Invitation","ja":"風雅なる誘い","ko":"고상한 유혹","zh_hant":"文雅邀約"},"_id_":71},"72":{"buff_type1":105,"buff_type1_target_id":1002,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":19,"buff_type2_target_id":1002,"buff_type2_value_list":[100,100,100,100,100],"buff_type3":1,"buff_type3_target_id":1002,"buff_type3_value_list":[20,25,30,35,40],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":72,"name":{"en":"Floating with the Tide","ja":"行雲流水","ko":"행운유수","zh_hant":"行雲流水"},"_id_":72},"73":{"buff_type1":11,"buff_type1_target_id":1002,"buff_type1_value_list":[70,75,80,85,90],"buff_type2":13,"buff_type2_target_id":1002,"buff_type2_value_list":[30,35,40,45,50],"buff_type3":15,"buff_type3_target_id":1002,"buff_type3_value_list":[30,35,40,45,50],"buff_type4":22,"buff_type4_target_id":1002,"buff_type4_value_list":[50,60,70,80,90],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":73,"name":{"en":"Brilliant Tide","ja":"キラめきの潮流","ko":"반짝임의 조류","zh_hant":"光芒潮流"},"_id_":73},"74":{"buff_type1":267,"buff_type1_target_id":2002,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":8,"buff_type2_target_id":2002,"buff_type2_value_list":[5,10,15,20,25],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":74,"name":{"en":"Battle Strategy","ja":"戦場掌握","ko":"전장 장악","zh_hant":"掌握戰場"},"_id_":74},"75":{"buff_type1":277,"buff_type1_target_id":2002,"buff_type1_value_list":[30,30,30,30,30],"buff_type2":4,"buff_type2_target_id":2002,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":6,"buff_type3_target_id":2002,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":75,"name":{"en":"Unsolved Case","ja":"迷宮入りの予感","ko":"미궁에 빠질 예감","zh_hant":"陷入僵局的預感"},"_id_":75},"76":{"buff_type1":52,"buff_type1_target_id":2002,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":169,"buff_type2_target_id":2002,"buff_type2_value_list":[7500,7500,7500,7500,7500],"buff_type3":4,"buff_type3_target_id":2002,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":6,"buff_type4_target_id":2002,"buff_type4_value_list":[20,25,30,40,50],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":76,"name":{"en":"Gray World","ja":"灰色の世界","ko":"잿빛 세계","zh_hant":"灰色世界"},"_id_":76},"77":{"buff_type1":19,"buff_type1_target_id":1002,"buff_type1_value_list":[100,100,100,100,100],"buff_type2":28,"buff_type2_target_id":1002,"buff_type2_value_list":[0,0,0,0,0],"buff_type3":1,"buff_type3_target_id":1002,"buff_type3_value_list":[20,30,40,50,60],"buff_type4":22,"buff_type4_target_id":4153,"buff_type4_value_list":[50,50,50,50,50],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":77,"name":{"en":"Thrilling Discovery","ja":"トキメキ発見","ko":"두근거림 발견","zh_hant":"怦然心動的發現"},"_id_":77},"78":{"buff_type1":302,"buff_type1_target_id":2002,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":4,"buff_type2_target_id":2002,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":6,"buff_type3_target_id":2002,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":78,"name":{"en":"Imprisonment","ja":"幽囚の理","ko":"유수의 이치","zh_hant":"幽閉的法則"},"_id_":78},"79":{"buff_type1":19,"buff_type1_target_id":1002,"buff_type1_value_list":[100,100,100,100,100],"buff_type2":231,"buff_type2_target_id":1002,"buff_type2_value_list":[100,100,100,100,100],"buff_type3":3,"buff_type3_target_id":1002,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":5,"buff_type4_target_id":1002,"buff_type4_value_list":[20,25,30,40,50],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":79,"name":{"en":"Breakwater of Love","ja":"愛の防波堤","ko":"사랑의 방파제","zh_hant":"愛之防波堤"},"_id_":79},"80":{"buff_type1":237,"buff_type1_target_id":4002,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":19,"buff_type2_target_id":4002,"buff_type2_value_list":[100,100,100,100,100],"buff_type3":1,"buff_type3_target_id":4002,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":80,"name":{"en":"Immutable Petals","ja":"儚く散ったりしない","ko":"덧없이 지진 않아","zh_hant":"絕不稍縱即逝"},"_id_":80},"81":{"buff_type1":95,"buff_type1_target_id":4155,"buff_type1_value_list":[20,25,30,35,40],"buff_type2":3,"buff_type2_target_id":4155,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":5,"buff_type3_target_id":4155,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":81,"name":{"en":"Applauses (Star)","ja":"拍手喝采(星)","ko":"박수갈채(별)","zh_hant":"拍手喝采(星)"},"_id_":81},"82":{"buff_type1":95,"buff_type1_target_id":4154,"buff_type1_value_list":[20,25,30,35,40],"buff_type2":3,"buff_type2_target_id":4154,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":5,"buff_type3_target_id":4154,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":82,"name":{"en":"Applauses (Sun)","ja":"拍手喝采(陽)","ko":"박수갈채(태양)","zh_hant":"拍手喝采(陽)"},"_id_":82},"83":{"buff_type1":237,"buff_type1_target_id":1002,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":13,"buff_type2_target_id":1002,"buff_type2_value_list":[30,35,40,45,50],"buff_type3":15,"buff_type3_target_id":1002,"buff_type3_value_list":[30,35,40,45,50],"buff_type4":98,"buff_type4_target_id":1002,"buff_type4_value_list":[30,35,40,45,50],"buff_type5":7,"buff_type5_target_id":1002,"buff_type5_value_list":[20,25,30,35,40],"icon_id":83,"name":{"en":"Serenity","ja":"明鏡止水","ko":"명경지수","zh_hant":"明鏡止水"},"_id_":83},"84":{"buff_type1":277,"buff_type1_target_id":2002,"buff_type1_value_list":[50,50,50,50,50],"buff_type2":4,"buff_type2_target_id":2002,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":6,"buff_type3_target_id":2002,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":84,"name":{"en":"Writhing in Agony","ja":"七転八倒","ko":"칠전팔기","zh_hant":"七顛八倒"},"_id_":84},"86":{"buff_type1":242,"buff_type1_target_id":4006,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":106,"buff_type2_target_id":4006,"buff_type2_value_list":[0,0,0,0,0],"buff_type3":2,"buff_type3_target_id":2002,"buff_type3_value_list":[20,25,30,35,40],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":86,"name":{"en":"Trepidation (Center Position)","ja":"戦々恐々(立ち位置:中)","ko":"전전긍긍(중간 포지션)","zh_hant":"戰戰兢兢(站位為中)"},"_id_":86},"87":{"buff_type1":242,"buff_type1_target_id":4007,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":106,"buff_type2_target_id":4007,"buff_type2_value_list":[0,0,0,0,0],"buff_type3":2,"buff_type3_target_id":2002,"buff_type3_value_list":[20,25,30,35,40],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":87,"name":{"en":"Trepidation (Rear Position)","ja":"戦々恐々(立ち位置:後)","ko":"전전긍긍(뒤 포지션)","zh_hant":"戰戰兢兢(站位為後)"},"_id_":87},"88":{"buff_type1":237,"buff_type1_target_id":1002,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":19,"buff_type2_target_id":1002,"buff_type2_value_list":[100,100,100,100,100],"buff_type3":22,"buff_type3_target_id":1002,"buff_type3_value_list":[50,60,70,80,90],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":88,"name":{"en":"High Spirits","ja":"気炎万丈","ko":"기염만장","zh_hant":"氣焰萬丈"},"_id_":88},"89":{"buff_type1":162,"buff_type1_target_id":2002,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":235,"buff_type2_target_id":2002,"buff_type2_value_list":[0,0,0,0,0],"buff_type3":2,"buff_type3_target_id":2002,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":89,"name":{"en":"Tearful Monologue","ja":"涙のモノローグ","ko":"눈물의 모놀로그","zh_hant":"眼淚的獨白"},"_id_":89},"90":{"buff_type1":32,"buff_type1_target_id":1002,"buff_type1_value_list":[20,25,30,35,40],"buff_type2":13,"buff_type2_target_id":1002,"buff_type2_value_list":[100,100,100,100,100],"buff_type3":15,"buff_type3_target_id":1002,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":90,"name":{"en":"Divine Smile","ja":"女神のほほえみ","ko":"여신의 미소","zh_hant":"女神的微笑"},"_id_":90},"91":{"buff_type1":242,"buff_type1_target_id":2002,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":235,"buff_type2_target_id":2002,"buff_type2_value_list":[0,0,0,0,0],"buff_type3":2,"buff_type3_target_id":2002,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":91,"name":{"en":"Betrayal","ja":"四面楚歌","ko":"사면초가","zh_hant":"四面楚歌"},"_id_":91},"94":{"buff_type1":338,"buff_type1_target_id":1000,"buff_type1_value_list":[3,3,3,3,3],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":1093,"name":{"en":"Lv. 3 and below Neg. Stage Effect Resistance","ja":"Lv3以下マイナス舞台効果耐性","ko":"Lv3 이하 마이너스 무대 효과 저항","zh_hant":"Lv3以下負面舞台效果耐性"},"_id_":94},"95":{"buff_type1":338,"buff_type1_target_id":1000,"buff_type1_value_list":[4,4,4,4,4],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":1093,"name":{"en":"Lv. 4 and below Neg. Stage Effect Resistance","ja":"Lv4以下マイナス舞台効果耐性","ko":"Lv4 이하 마이너스 무대 효과 저항","zh_hant":"Lv4以下負面舞台效果耐性"},"_id_":95},"96":{"buff_type1":338,"buff_type1_target_id":1000,"buff_type1_value_list":[5,5,5,5,5],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":1093,"name":{"en":"Lv. 5 and below Neg. Stage Effect Resistance","ja":"Lv5以下マイナス舞台効果耐性","ko":"Lv5 이하 마이너스 무대 효과 저항","zh_hant":"Lv5以下負面舞台效果耐性"},"_id_":96},"98":{"buff_type1":339,"buff_type1_target_id":1000,"buff_type1_value_list":[2,2,2,2,2],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":1094,"name":{"en":"Hinder Lv. 2 and below Pos. Stage Effect","ja":"Lv2以下プラス舞台効果妨害","ko":"Lv2 이하 플러스 무대 효과 방해","zh_hant":"Lv2以下正面舞台效果妨礙"},"_id_":98},"99":{"buff_type1":339,"buff_type1_target_id":1000,"buff_type1_value_list":[3,3,3,3,3],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":1094,"name":{"en":"Hinder Lv. 3 and below Pos. Stage Effect","ja":"Lv3以下プラス舞台効果妨害","ko":"Lv3 이하 플러스 무대 효과 방해","zh_hant":"Lv3以下正面舞台效果妨礙"},"_id_":99},"100":{"buff_type1":339,"buff_type1_target_id":1000,"buff_type1_value_list":[4,4,4,4,4],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":1094,"name":{"en":"Hinder Lv. 4 and below Pos. Stage Effect","ja":"Lv4以下プラス舞台効果妨害","ko":"Lv4 이하 플러스 무대 효과 방해","zh_hant":"Lv4以下正面舞台效果妨礙"},"_id_":100},"102":{"buff_type1":8,"buff_type1_target_id":2002,"buff_type1_value_list":[5,10,15,20,25],"buff_type2":126,"buff_type2_target_id":2002,"buff_type2_value_list":[50,50,50,50,50],"buff_type3":2,"buff_type3_target_id":1002,"buff_type3_value_list":[20,30,40,50,60],"buff_type4":16,"buff_type4_target_id":1002,"buff_type4_value_list":[20,25,30,40,50],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":102,"name":{"en":"Junk","ja":"瓦落苦多","ko":"잡동사니","zh_hant":"破銅爛鐵"},"_id_":102},"103":{"buff_type1":55,"buff_type1_target_id":2002,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":126,"buff_type2_target_id":2002,"buff_type2_value_list":[50,50,50,50,50],"buff_type3":4,"buff_type3_target_id":2002,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":6,"buff_type4_target_id":2002,"buff_type4_value_list":[20,25,30,40,50],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":103,"name":{"en":"Night Playfulness","ja":"闇夜の戯れ","ko":"한밤의 유희","zh_hant":"暗夜的歡鬧"},"_id_":103},"104":{"buff_type1":95,"buff_type1_target_id":4154,"buff_type1_value_list":[40,45,50,55,60],"buff_type2":3,"buff_type2_target_id":4154,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":5,"buff_type3_target_id":4154,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":104,"name":{"en":"Standing Ovation (Sun)","ja":"拍手万雷(陽)","ko":"박수만뢰(태양)","zh_hant":"掌聲如雷(陽)"},"_id_":104},"108":{"buff_type1":1082,"buff_type1_target_id":1000,"buff_type1_value_list":[4,4,4,4,4],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":1100,"name":{"en":"Oppose Neg. Stage Effect Lv. 4","ja":"マイナス舞台効果Lv4抵抗","ko":"마이너스 무대 효과 Lv4 저항","zh_hant":"負面舞台效果Lv4抵抗"},"_id_":108},"109":{"buff_type1":1082,"buff_type1_target_id":1000,"buff_type1_value_list":[5,5,5,5,5],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":1100,"name":{"ja":"マイナス舞台効果Lv5抵抗"},"_id_":109},"112":{"buff_type1":1083,"buff_type1_target_id":1000,"buff_type1_value_list":[3,3,3,3,3],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":1101,"name":{"en":"Restrict Pos. Stage Effect Lv. 3","ja":"プラス舞台効果Lv3抑制","ko":"플러스 무대 효과 Lv3 억제","zh_hant":"正面舞台效果Lv3抑制"},"_id_":112},"115":{"buff_type1":95,"buff_type1_target_id":4155,"buff_type1_value_list":[40,45,50,55,60],"buff_type2":3,"buff_type2_target_id":4155,"buff_type2_value_list":[20,25,30,40,50],"buff_type3":5,"buff_type3_target_id":4155,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":115,"name":{"en":"Standing Ovation (Star)","ja":"拍手万雷(星)","ko":"박수만뢰(별)","zh_hant":"掌聲如雷(星)"},"_id_":115},"116":{"buff_type1":105,"buff_type1_target_id":1002,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":28,"buff_type2_target_id":1002,"buff_type2_value_list":[0,0,0,0,0],"buff_type3":1,"buff_type3_target_id":1002,"buff_type3_value_list":[20,30,40,50,60],"buff_type4":22,"buff_type4_target_id":4153,"buff_type4_value_list":[50,50,50,50,50],"buff_type5":104,"buff_type5_target_id":4153,"buff_type5_value_list":[0,0,0,0,0],"icon_id":116,"name":{"en":"More Thrilling Discovery","ja":"もっとトキメキ発見","ko":"더 많은 두근거림 발견","zh_hant":"更多怦然心動的發現"},"_id_":116},"117":{"buff_type1":32,"buff_type1_target_id":4008,"buff_type1_value_list":[60,70,80,90,100],"buff_type2":237,"buff_type2_target_id":4008,"buff_type2_value_list":[0,0,0,0,0],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":117,"name":{"en":"Extreme Measures (Flower)","ja":"快刀乱麻(花)","ko":"쾌도난마(꽃)","zh_hant":"快刀斬亂麻(花)"},"_id_":117},"118":{"buff_type1":32,"buff_type1_target_id":4009,"buff_type1_value_list":[60,70,80,90,100],"buff_type2":237,"buff_type2_target_id":4009,"buff_type2_value_list":[0,0,0,0,0],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":118,"name":{"en":"Extreme Measures (Wind)","ja":"快刀乱麻(風)","ko":"쾌도난마(바람)","zh_hant":"快刀斬亂麻(風)"},"_id_":118},"119":{"buff_type1":32,"buff_type1_target_id":4010,"buff_type1_value_list":[60,70,80,90,100],"buff_type2":237,"buff_type2_target_id":4010,"buff_type2_value_list":[0,0,0,0,0],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":119,"name":{"en":"Extreme Measures (Snow)","ja":"快刀乱麻(雪)","ko":"쾌도난마(눈)","zh_hant":"快刀斬亂麻(雪)"},"_id_":119},"120":{"buff_type1":32,"buff_type1_target_id":4011,"buff_type1_value_list":[60,70,80,90,100],"buff_type2":237,"buff_type2_target_id":4011,"buff_type2_value_list":[0,0,0,0,0],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":120,"name":{"ja":"快刀乱麻(月)"},"_id_":120},"121":{"buff_type1":32,"buff_type1_target_id":4012,"buff_type1_value_list":[60,70,80,90,100],"buff_type2":237,"buff_type2_target_id":4012,"buff_type2_value_list":[0,0,0,0,0],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":121,"name":{"en":"Extreme Measures (Space)","ja":"快刀乱麻(宙)","ko":"쾌도난마(우주)","zh_hant":"快刀斬亂麻(宙)"},"_id_":121},"122":{"buff_type1":32,"buff_type1_target_id":4013,"buff_type1_value_list":[60,70,80,90,100],"buff_type2":237,"buff_type2_target_id":4013,"buff_type2_value_list":[0,0,0,0,0],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":122,"name":{"en":"Extreme Measures (Cloud)","ja":"快刀乱麻(雲)","ko":"쾌도난마(구름)","zh_hant":"快刀斬亂麻(雲)"},"_id_":122},"123":{"buff_type1":1127,"buff_type1_target_id":1000,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":123,"name":{"en":"Shorten Climax Revue","ja":"クライマックスレヴュー短縮","ko":"클라이맥스 레뷰 단축","zh_hant":"Climax Revue縮短"},"_id_":123},"124":{"buff_type1":276,"buff_type1_target_id":1002,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":1048,"buff_type2_target_id":1002,"buff_type2_value_list":[0,0,0,0,0],"buff_type3":1,"buff_type3_target_id":1002,"buff_type3_value_list":[20,25,30,40,50],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":124,"name":{"en":"Golden Age","ja":"黄金時代","ko":"황금시대","zh_hant":"黃金時代"},"_id_":124},"3001":{"buff_type1":312,"buff_type1_target_id":1000,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":3001,"name":{"en":"Reflect Stage Effect [Self Trapping]","ja":"舞台効果反射[自縄自縛]","ko":"무대 효과 반사[자승자박]","zh_hant":"舞台效果反射[自作自受]"},"_id_":3001},"3002":{"buff_type1":313,"buff_type1_target_id":1000,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":3002,"name":{"en":"Reflect Stage Effect [Captivating Pupils]","ja":"舞台効果反射[魅惑の瞳]","ko":"무대 효과 반사[매혹의 눈동자]","zh_hant":"舞台效果反射[魅惑的眼眸]"},"_id_":3002},"3003":{"buff_type1":318,"buff_type1_target_id":1000,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":3003,"name":{"en":"Reflect Stage Effect [Hesitation]","ja":"舞台効果反射[遅疑逡巡]","ko":"무대 효과 반사[의심과 망설임]","zh_hant":"舞台效果反射[遲疑不定]"},"_id_":3003},"3004":{"buff_type1":319,"buff_type1_target_id":1000,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":3004,"name":{"en":"Reflect Stage Effect [Plan of the Abyss]","ja":"舞台効果反射[深淵なる謀]","ko":"무대 효과 반사[심연의 계략]","zh_hant":"舞台效果反射[深謀遠慮]"},"_id_":3004},"3005":{"buff_type1":320,"buff_type1_target_id":1000,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":3005,"name":{"en":"Reflect Stage Effect [Sugary Corruption]","ja":"舞台効果反射[甘き堕落]","ko":"무대 효과 반사[달콤한 타락]","zh_hant":"舞台效果反射[甘美墮落]"},"_id_":3005},"3006":{"buff_type1":335,"buff_type1_target_id":1000,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":3006,"name":{"en":"Reflect Stage Effect [Gray World]","ja":"舞台効果反射[灰色の世界]","ko":"무대 효과 반사[잿빛 세계]","zh_hant":"舞台效果反射[灰色世界]"},"_id_":3006},"3007":{"buff_type1":336,"buff_type1_target_id":1000,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":3007,"name":{"en":"Reflect Stage Effect [Thunder]","ja":"舞台効果反射[雷鳴]","ko":"무대 효과 반사[천둥]","zh_hant":"舞台效果反射[雷鳴]"},"_id_":3007},"3008":{"buff_type1":340,"buff_type1_target_id":1000,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":3008,"name":{"en":"Reflect Stage Effect [Night Playfulness]","ja":"舞台効果反射[闇夜の戯れ]","ko":"무대 효과 반사[한밤의 유희]","zh_hant":"舞台效果反射[暗夜的歡鬧]"},"_id_":3008},"3009":{"buff_type1":341,"buff_type1_target_id":1000,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":3009,"name":{"en":"Reflect Stage Effect [Imprisonment]","ja":"舞台効果反射[幽囚の理]","ko":"무대 효과 반사[유수의 이치]","zh_hant":"舞台效果反射[幽閉的法則]"},"_id_":3009},"3010":{"buff_type1":1137,"buff_type1_target_id":1000,"buff_type1_value_list":[0,0,0,0,0],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":3010,"name":{"ja":"マイナス舞台効果全反射"},"_id_":3010},"4001":{"buff_type1":314,"buff_type1_target_id":4031,"buff_type1_value_list":[5,15,30,35,40],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":4001,"name":{"en":"Vanity (Flower)","ja":"虚飾と虚栄(花)","ko":"허식과 허영(꽃)","zh_hant":"虛偽與虛榮(花)"},"_id_":4001},"4005":{"buff_type1":314,"buff_type1_target_id":4035,"buff_type1_value_list":[5,15,30,35,40],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":4005,"name":{"en":"Vanity (Space)","ja":"虚飾と虚栄(宙)","ko":"허식과 허영(우주)","zh_hant":"虛偽與虛榮(宙)"},"_id_":4005},"4008":{"buff_type1":314,"buff_type1_target_id":4025,"buff_type1_value_list":[5,15,30,35,40],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":4008,"name":{"en":"Butterfly of the Fallen (Wind)","ja":"堕天の蝶(風)","ko":"타락한 천상의 나비(바람)","zh_hant":"墮天之蝶(風)"},"_id_":4008},"4009":{"buff_type1":314,"buff_type1_target_id":4026,"buff_type1_value_list":[5,15,30,35,40],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":4009,"name":{"en":"Butterfly of the Fallen (Snow)","ja":"堕天の蝶(雪)","ko":"타락한 천상의 나비(눈)","zh_hant":"墮天之蝶(雪)"},"_id_":4009},"4014":{"buff_type1":314,"buff_type1_target_id":4039,"buff_type1_value_list":[5,15,30,35,40],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":4014,"name":{"en":"Fall of Royalty (Wind)","ja":"王威失墜(風)","ko":"왕위 실추(바람)","zh_hant":"王威盡失(風)"},"_id_":4014},"4015":{"buff_type1":314,"buff_type1_target_id":4040,"buff_type1_value_list":[5,15,30,35,40],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":4015,"name":{"ja":"王威失墜(雪)"},"_id_":4015},"4016":{"buff_type1":314,"buff_type1_target_id":4041,"buff_type1_value_list":[5,15,30,35,40],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":4016,"name":{"en":"Fall of Royalty (Moon)","ja":"王威失墜(月)","ko":"왕위 실추(달)","zh_hant":"王威盡失(月)"},"_id_":4016},"4018":{"buff_type1":314,"buff_type1_target_id":4043,"buff_type1_value_list":[5,15,30,35,40],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":4018,"name":{"en":"Fall of Royalty (Cloud)","ja":"王威失墜(雲)","ko":"왕위 실추(구름)","zh_hant":"王威盡失(雲)"},"_id_":4018},"4019":{"buff_type1":314,"buff_type1_target_id":4017,"buff_type1_value_list":[5,15,30,35,40],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":4019,"name":{"en":"Final Destination (Flower)","ja":"終着の地(花)","ko":"종착지(꽃)","zh_hant":"終結之地(花)"},"_id_":4019},"4022":{"buff_type1":314,"buff_type1_target_id":4020,"buff_type1_value_list":[5,15,30,35,40],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":4022,"name":{"en":"Final Destination (Moon)","ja":"終着の地(月)","ko":"종착지(달)","zh_hant":"終結之地(月)"},"_id_":4022},"4023":{"buff_type1":314,"buff_type1_target_id":4021,"buff_type1_value_list":[5,15,30,35,40],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":4023,"name":{"en":"Final Destination (Space)","ja":"終着の地(宙)","ko":"종착지(우주)","zh_hant":"終結之地(宙)"},"_id_":4023},"4024":{"buff_type1":314,"buff_type1_target_id":4022,"buff_type1_value_list":[5,15,30,35,40],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":4024,"name":{"en":"Final Destination (Cloud)","ja":"終着の地(雲)","ko":"종착지(구름)","zh_hant":"終結之地(雲)"},"_id_":4024},"4025":{"buff_type1":314,"buff_type1_target_id":4044,"buff_type1_value_list":[5,15,30,35,40],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":4025,"name":{"en":"Fall of Royalty (Dream)","ja":"王威失墜(夢)","ko":"왕위 실추(꿈)","zh_hant":"王威盡失(夢)"},"_id_":4025},"4026":{"buff_type1":314,"buff_type1_target_id":4001,"buff_type1_value_list":[5,6,7,8,10],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":4026,"name":{"en":"Unfulfilled Promise","ja":"果たされぬ約束","ko":"이루지 못한 약속","zh_hant":"未實現的約定"},"_id_":4026},"4027":{"buff_type1":314,"buff_type1_target_id":4002,"buff_type1_value_list":[5,6,7,8,10],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":4027,"name":{"en":"Dreams and Fantasies","ja":"夢幻泡影","ko":"몽환포영","zh_hant":"夢幻泡影"},"_id_":4027},"4028":{"buff_type1":314,"buff_type1_target_id":4003,"buff_type1_value_list":[5,6,7,8,10],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":4028,"name":{"en":"Tinkle Out","ja":"ティンクル・アウト","ko":"팅클 아웃","zh_hant":"Tinkle Out"},"_id_":4028},"4029":{"buff_type1":314,"buff_type1_target_id":4004,"buff_type1_value_list":[5,6,7,8,10],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":4029,"name":{"en":"Imitation Jewelry","ja":"イミテーション・ジュエリー","ko":"이미테이션 주얼리","zh_hant":"Imitation Jewelry"},"_id_":4029},"4030":{"buff_type1":314,"buff_type1_target_id":4014,"buff_type1_value_list":[5,6,7,8,10],"buff_type2":0,"buff_type2_target_id":0,"buff_type2_value_list":[],"buff_type3":0,"buff_type3_target_id":0,"buff_type3_value_list":[],"buff_type4":0,"buff_type4_target_id":0,"buff_type4_value_list":[],"buff_type5":0,"buff_type5_target_id":0,"buff_type5_value_list":[],"icon_id":4030,"name":{"en":"The Day the Dream Ends","ja":"夢の終わる日","ko":"꿈이 끝나는 날","zh_hant":"夢想結束的那一天"},"_id_":4030}}"""
2
Kotlin
11
7
e32dab696f56ead176e35fca40add33ad1e7f742
148,363
relight
MIT License
app/src/main/java/pk/gop/pulse/cadastralSurvey/domain/use_case/auth/UpdatePasswordUseCase.kt
HabbashMahmood
801,361,247
false
{"Kotlin": 748621, "HTML": 14557, "C++": 3323, "CMake": 1826}
package pk.gop.pulse.cadastralSurvey.domain.use_case.auth import pk.gop.pulse.cadastralSurvey.common.SimpleResource import pk.gop.pulse.cadastralSurvey.domain.repository.AuthRepository import javax.inject.Inject class UpdatePasswordUseCase @Inject constructor( private val repository: AuthRepository ) { suspend operator fun invoke(cnic: String, password: String): SimpleResource { return repository.updatePassword(cnic, password) } }
0
Kotlin
0
0
c3e71cf1f094f0a0ded76af417b36861f0af3433
456
CadastralSurveyApp
MIT License
app/src/main/java/com/botigocontigo/alfred/areas/Area.kt
UTN-FRBA-Mobile
146,629,720
false
null
package com.botigocontigo.alfred.areas data class Task( val id: Int, var name: String, var descripcionCorta: String, var descripcionLarga: String, var logo: String)
0
Kotlin
4
1
558eb3967b3026bf66ae12d25b98c8055b3a9949
206
Alfred
MIT License
lib/xlsx/src/commonMain/kotlin/zakadabar/lib/xlsx/internal/model/File.kt
spxbhuhb
290,390,793
false
null
/* * Copyright © 2020-2021, <NAME> and contributors. Use of this source code is governed by the Apache 2.0 license. */ package zakadabar.lib.xlsx.internal.model internal class File { val content = mutableListOf<Part>() val contentType = + ContentType() val rels = + Rels() val workBookRels = + Rels("/xl/", "workbook.xml") val workBook = + WorkBook() val sharedStrings = + SharedStrings() val styles = + Styles() init { contentType.addPart(workBook) contentType.addPart(styles) contentType.addPart(sharedStrings) rels.addRel(workBook) workBookRels.addRel(styles) workBookRels.addRel(sharedStrings) } fun addWorkSheet(sheetId: Int, name: String, ws: WorkSheet) { val workBookRelId = workBookRels.addRel(ws) workBook.addSheet(sheetId, workBookRelId, name) contentType.addPart(ws) content.add(ws) } private operator fun <T: Part> T.unaryPlus() : T = also(content::add) }
5
null
3
24
00859b62570bf455addc9723015ba2c48b77028b
1,008
zakadabar-stack
Apache License 2.0
core-android/src/main/java/ru/mail/march/interactor/InteractorViewModel.kt
mailru
263,284,417
false
null
package ru.mail.march.interactor import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import ru.mail.march.channel.LiveDataChannelFactory class InteractorViewModel<I : Interactor>( val interactor: I, val channelFactory: LiveDataChannelFactory ) : ViewModel() { init { interactor.interactorScope = viewModelScope interactor.create() } override fun onCleared() { interactor.destroy() } }
2
Kotlin
1
11
a4c2bfef724dc0e584dd2d656bcd063d25e659c7
461
March
MIT License
utils/http/src/main/kotlin/io/river/util/http/Http.kt
River-Kt
539,201,163
false
null
package io.river.util.http import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flow import kotlinx.coroutines.future.await import kotlinx.coroutines.jdk9.asPublisher import kotlinx.coroutines.jdk9.collect import java.net.http.HttpClient import java.net.http.HttpRequest import java.net.http.HttpRequest.BodyPublishers.fromPublisher import java.net.http.HttpResponse import java.net.http.HttpResponse.* import java.nio.ByteBuffer import java.util.concurrent.CompletionStage import java.util.concurrent.Flow.Publisher private val DefaultHttpClient: HttpClient = HttpClient.newHttpClient() fun Flow<ByteBuffer>.asBodyPublisher( contentLength: Long = 0 ): HttpRequest.BodyPublisher = if (contentLength < 1) fromPublisher(asPublisher()) else fromPublisher(asPublisher(), contentLength) suspend fun <T> HttpRequest.send( bodyHandler: BodyHandler<T>, client: HttpClient = DefaultHttpClient ): HttpResponse<T> = client .sendAsync(this, bodyHandler) .await() fun method( name: String, url: String, f: RequestBuilder.() -> Unit = {} ) = RequestBuilder(url, name.uppercase()).also(f).build() fun get( url: String, f: RequestBuilder.() -> Unit = {} ): HttpRequest = method("GET", url, f) fun post( url: String, f: RequestBuilder.() -> Unit = {} ): HttpRequest = method("POST", url, f) fun put( url: String, f: RequestBuilder.() -> Unit = {} ): HttpRequest = method("PUT", url, f) fun delete( url: String, f: RequestBuilder.() -> Unit = {} ): HttpRequest = method("DELETE", url, f) fun patch( url: String, f: RequestBuilder.() -> Unit = {} ): HttpRequest = method("PATCH", url, f) fun <T> HttpResponse<Publisher<T>>.bodyAsFlow(): Flow<T> = flow { body().collect { emit(it) } } fun BodyHandler<Publisher<List<ByteBuffer>>>.asFlow(): BodyHandler<Flow<ByteBuffer>> = BodyHandler { val subscriber = apply(it) object : BodySubscriber<Flow<ByteBuffer>> { override fun onSubscribe(subscription: java.util.concurrent.Flow.Subscription?) { subscriber.onSubscribe(subscription) } override fun onNext(item: MutableList<ByteBuffer>?) { subscriber.onNext(item) } override fun onError(throwable: Throwable?) { subscriber.onError(throwable) } override fun onComplete() { subscriber.onComplete() } override fun getBody(): CompletionStage<Flow<ByteBuffer>> = subscriber .body .thenApply { s -> flow { s.collect { it.forEach { emit(it) } } } } } } val ofString = BodyHandlers.ofString() val ofFlow = BodyHandlers.ofPublisher().asFlow() val ofLines = BodyHandlers.ofLines() val ofByteArray = BodyHandlers.ofByteArray()
11
Kotlin
1
7
0d31565394650e8fca318fd103e6009db6c3e93f
2,876
river
MIT License
libs/ui/src/main/kotlin/com/illiarb/tmdbclient/libs/ui/v2/theme/Font.kt
ilya-rb
152,124,194
false
null
package com.illiarb.tmdbclient.libs.ui.v2.theme import androidx.compose.material.Typography import androidx.compose.ui.text.TextStyle import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.text.font.font import androidx.compose.ui.text.font.fontFamily import androidx.compose.ui.unit.sp import com.illiarb.tmdbclient.libs.ui.R private val Montserrat = fontFamily( font(R.font.montserrat, FontWeight.Normal), font(R.font.montserrat_bold, FontWeight.Bold) ) @Suppress("MagicNumber") internal val TmdbTypography: Typography get() = Typography( h1 = TextStyle( fontFamily = Montserrat, fontSize = 96.sp, fontWeight = FontWeight.Light, lineHeight = 117.sp, letterSpacing = (-1.5).sp ), h2 = TextStyle( fontFamily = Montserrat, fontSize = 60.sp, fontWeight = FontWeight.Light, lineHeight = 73.sp, letterSpacing = (-0.5).sp ), h3 = TextStyle( fontFamily = Montserrat, fontSize = 48.sp, fontWeight = FontWeight.Normal, lineHeight = 59.sp ), h4 = TextStyle( fontFamily = Montserrat, fontSize = 30.sp, fontWeight = FontWeight.SemiBold, lineHeight = 37.sp ), h5 = TextStyle( fontFamily = Montserrat, fontSize = 24.sp, fontWeight = FontWeight.SemiBold, lineHeight = 29.sp ), h6 = TextStyle( fontFamily = Montserrat, fontSize = 20.sp, fontWeight = FontWeight.SemiBold, lineHeight = 24.sp ), subtitle1 = TextStyle( fontFamily = Montserrat, fontSize = 16.sp, fontWeight = FontWeight.SemiBold, lineHeight = 20.sp, letterSpacing = 0.5.sp ), subtitle2 = TextStyle( fontFamily = Montserrat, fontSize = 14.sp, fontWeight = FontWeight.Medium, lineHeight = 17.sp, letterSpacing = 0.1.sp ), body1 = TextStyle( fontFamily = Montserrat, fontSize = 16.sp, fontWeight = FontWeight.Medium, lineHeight = 20.sp, letterSpacing = 0.15.sp ), body2 = TextStyle( fontFamily = Montserrat, fontSize = 14.sp, fontWeight = FontWeight.SemiBold, lineHeight = 20.sp, letterSpacing = 0.25.sp ), button = TextStyle( fontFamily = Montserrat, fontSize = 14.sp, fontWeight = FontWeight.SemiBold, lineHeight = 16.sp, letterSpacing = 1.25.sp ), caption = TextStyle( fontFamily = Montserrat, fontSize = 12.sp, fontWeight = FontWeight.SemiBold, lineHeight = 16.sp, letterSpacing = 0.sp ), overline = TextStyle( fontFamily = Montserrat, fontSize = 12.sp, fontWeight = FontWeight.SemiBold, lineHeight = 16.sp, letterSpacing = 1.sp ) )
0
Kotlin
1
5
2a316e72c6ce68759627e52a749b7f02d91b2787
2,782
Tmdb-Client
MIT License
components/keyscreen/impl/src/main/java/com/flipperdevices/keyscreen/impl/composable/actions/ComposableDelete.kt
flipperdevices
288,258,832
false
null
package com.flipperdevices.keyscreen.impl.composable.actions import androidx.compose.runtime.Composable import com.flipperdevices.core.ui.R as DesignSystem import com.flipperdevices.keyscreen.impl.R import com.flipperdevices.keyscreen.impl.model.DeleteState @Composable fun ComposableDelete(deleteState: DeleteState, onClick: () -> Unit) { if (deleteState == DeleteState.PROGRESS) { ComposableActionRowInProgress( descriptionId = R.string.keyscreen_deleting_text, descriptionColorId = DesignSystem.color.red ) return } val descriptionId = if (deleteState == DeleteState.DELETED) { R.string.keyscreen_delete_permanently_text } else R.string.keyscreen_delete_text ComposableActionRow( iconId = R.drawable.ic_trash_icon, tintId = DesignSystem.color.red, descriptionId = descriptionId, descriptionColorId = DesignSystem.color.red, onClick = onClick ) }
2
Kotlin
31
293
522f873d6dcf09a8f1907c1636fb0c3a996f5b44
973
Flipper-Android-App
MIT License
app/src/main/java/com/forcetower/uefs/feature/shared/ViewPagerPager.kt
marcelobiao
184,821,890
true
{"Kotlin": 1857200, "Java": 257698, "Shell": 376}
/* * Copyright (c) 2019. * João Paulo Sena <joaopaulo761@gmail.com> * * This file is part of the UNES Open Source Project. * * UNES is licensed under the MIT License * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ package com.forcetower.uefs.feature.shared import android.animation.ValueAnimator import android.view.animation.AnimationUtils import androidx.core.animation.addListener import androidx.viewpager.widget.ViewPager class ViewPagerPager(private val viewPager: ViewPager) { private val fastOutSlowIn = AnimationUtils.loadInterpolator(viewPager.context, android.R.interpolator.fast_out_slow_in) fun advance() { if (viewPager.width <= 0) return val current = viewPager.currentItem val next = ((current + 1) % requireNotNull(viewPager.adapter).count) val pages = next - current val dragDistance = pages * viewPager.width ValueAnimator.ofInt(0, dragDistance).apply { var dragProgress = 0 var draggedPages = 0 addListener( onStart = { viewPager.beginFakeDrag() }, onEnd = { viewPager.endFakeDrag() } ) addUpdateListener { if (!viewPager.isFakeDragging) { // Sometimes onAnimationUpdate is called with initial value before // onAnimationStart is called. return@addUpdateListener } val dragPoint = (animatedValue as Int) val dragBy = dragPoint - dragProgress viewPager.fakeDragBy(-dragBy.toFloat()) dragProgress = dragPoint // Fake dragging doesn't let you drag more than one page width. If we want to do // this then need to end and start a new fake drag. val draggedPagesProgress = dragProgress / viewPager.width if (draggedPagesProgress != draggedPages) { viewPager.endFakeDrag() viewPager.beginFakeDrag() draggedPages = draggedPagesProgress } } duration = if (pages == 1) PAGE_CHANGE_DURATION else MULTI_PAGE_CHANGE_DURATION interpolator = fastOutSlowIn }.start() } companion object { private const val PAGE_CHANGE_DURATION = 400L private const val MULTI_PAGE_CHANGE_DURATION = 600L } }
0
Kotlin
0
0
8c27cac95ffde6aae6a07156be0aad3d6039767e
3,463
Melon
MIT License
domain/src/main/java/com/company/domain/model/ApiResponse.kt
Ahmed63c
461,240,851
false
null
package com.company.domain.model import com.google.gson.annotations.SerializedName data class WrapperResponse( @field:SerializedName("results") val results: ArrayList<Articles>? = null ) data class Articles( @SerializedName("id") val mId: Long? = null, @SerializedName("byline") val mByline: String? = null, @SerializedName("published_date") val mPublishedDate: String? = null, @SerializedName("section") val mSection: String? = null, @SerializedName("source") val mSource: String? = null, @SerializedName("title") val mTitle: String? = null, @SerializedName("url") val articleUrl: String? = null )
0
Kotlin
0
0
d407ca66ea6e9a34803227b56f232e0b207308d1
683
NyTimes
Apache License 2.0
android/app/src/main/kotlin/com/example/remote/MainActivity.kt
ShivanshuKGupta
627,900,529
false
{"Dart": 83759, "C++": 23379, "CMake": 18776, "Python": 16581, "HTML": 1837, "Swift": 1528, "C": 1425, "Batchfile": 1323, "Kotlin": 352, "Objective-C": 38}
package com.example.remote import android.os.Bundle import io.flutter.embedding.android.FlutterActivity import io.flutter.embedding.engine.FlutterEngine import io.flutter.plugin.common.MethodChannel import dev.darttools.flutter_android_volume_keydown.FlutterAndroidVolumeKeydownActivity class MainActivity : FlutterAndroidVolumeKeydownActivity() {}
1
Dart
0
11
5e68cdc8505c14eaeb3acb3f175207979bcae408
352
remote
MIT License
sqlite/src/main/kotlin/com/andretietz/retroauth/SQLiteCredentialStore.kt
andretietz
37,072,673
false
null
package com.andretietz.retroauth import com.andretietz.retroauth.sqlite.CredentialTable import com.andretietz.retroauth.sqlite.DataTable import com.andretietz.retroauth.sqlite.DatabaseCredential import com.andretietz.retroauth.sqlite.DatabaseData import com.andretietz.retroauth.sqlite.DatabaseUser import com.andretietz.retroauth.sqlite.data.Account import org.jetbrains.exposed.sql.Database import org.jetbrains.exposed.sql.and import org.jetbrains.exposed.sql.transactions.transaction class SQLiteCredentialStore( private val database: Database ) : CredentialStorage<Account> { override fun getCredentials(owner: Account, credentialType: String): Credentials? { return transaction(database) { DatabaseCredential.find { CredentialTable.user eq owner.id and (CredentialTable.type eq credentialType) }.toList() .firstOrNull() ?.let { credential -> Credentials( credential.value, DatabaseData.find { DataTable.user eq owner.id and (DataTable.credential eq credential.id) } .associate { it.key to it.value } ) } } } override fun removeCredentials(owner: Account, credentialType: String) { transaction(database) { DatabaseUser.findById(owner.id) ?.let { user -> DatabaseCredential.find { CredentialTable.user eq owner.id and (CredentialTable.type eq credentialType) }.toList().firstOrNull()?.let { credential -> DatabaseData .find { DataTable.user eq user.id and (DataTable.credential eq credential.id) } .forEach { it.delete() } DatabaseCredential .find { CredentialTable.user eq user.id and (CredentialTable.type eq credentialType) } .firstOrNull()?.delete() } } } } override fun storeCredentials(owner: Account, credentialType: String, credentials: Credentials) { transaction(database) { DatabaseUser.findById(owner.id) ?.let { user -> val credential = DatabaseCredential.find { CredentialTable.user eq owner.id and (CredentialTable.type eq credentialType) }.toList().firstOrNull() val c = credential?.also { it.value = credentials.token } ?: DatabaseCredential.new { this.type = credentialType this.user = user this.value = credentials.token } DatabaseData .find { DataTable.user eq owner.id and (DataTable.credential eq c.id) } .toList() credentials.data?.map { (key, value) -> // TODO: see if we need to override things DatabaseData.new { this.user = user this.credential = c this.key = key this.value = value } } } } } }
0
Kotlin
39
408
43a88b18e65f56fefa015613d75a50e704804924
2,896
retroauth
Apache License 2.0
src/main/java/de/tum/www1/orion/build/instructor/OrionRunConfigurationProvider.kt
ls1intum
203,402,411
false
null
package de.tum.www1.orion.build.instructor import com.intellij.execution.RunnerAndConfigurationSettings interface OrionRunConfigurationProvider { fun provideBuildAndTestRunConfiguration(workingDir: String): RunnerAndConfigurationSettings? }
8
null
5
30
df684f46c9faeb0e41dd46e9a1d673097d0ab09f
246
Orion
MIT License
smartdoc-dashboard/src/test/kotlin/smartdoc/dashboard/testcase/UserTest.kt
Maple-mxf
283,354,797
false
{"Kotlin": 3578500, "Java": 741741, "Dockerfile": 1079, "Shell": 1000, "Python": 714}
package smartdoc.dashboard.testcase import org.junit.Test import org.junit.runner.RunWith import org.springframework.beans.factory.annotation.Autowired import org.springframework.boot.test.context.SpringBootTest import org.springframework.data.mongodb.core.MongoTemplate import org.springframework.data.mongodb.core.query.Criteria import org.springframework.data.mongodb.core.query.Query import org.springframework.test.context.junit4.SpringRunner import smartdoc.dashboard.model.AccountStatus import smartdoc.dashboard.model.User import smartdoc.dashboard.util.IDUtil.now @SpringBootTest @RunWith(SpringRunner::class) class UserTest { @Autowired lateinit var mongoTemplate: MongoTemplate @Test fun insertNewUser() { val account = "Maple" val encryptPassword = smartdoc.dashboard.util.MD5Util.encryptPassword("<PASSWORD>", account, 1024) val user = User( id = smartdoc.dashboard.util.IDUtil.id(), account = account, password = encryptPassword, createTime = now(), status = AccountStatus.NORMAL, teamId = "default" ) mongoTemplate.save(user) } @Test fun delete(){ val query = Query().addCriteria(Criteria("account").`is`("Maple")) val deleteResult = mongoTemplate.remove(query, User::class.java) println(deleteResult) } }
21
Kotlin
2
2
3cdf9de7593c78c819b3dadc9b583e736041d55f
1,417
rest-doc
Apache License 2.0