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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
mocker/src/main/java/osp/leobert/utils/mocker/adapter/impl/IntDefAdapters.kt | leobert-lan | 317,086,897 | false | null | package osp.leobert.utils.mocker.adapter.impl
import osp.leobert.utils.mocker.MockContext
import osp.leobert.utils.mocker.adapter.FieldMockAdapterV2
import osp.leobert.utils.mocker.adapter.impl.Utils.findMockIntDefAboveNotation
import java.lang.reflect.Field
/**
* Classname: IntDefAdapters </p>
* Description: adapt... | 0 | Kotlin | 0 | 17 | 03bcc6ee2730e4ca0c1521d07537a56740ac59dd | 758 | Mocker | Apache License 2.0 |
app/src/main/java/com/breezefsmshreebajrangsteeludyog/features/member/CustomerOnClick.kt | DebashisINT | 645,424,403 | false | null | package com.breezefsmshreebajrangsteeludyog.features.member
import com.breezefsmshreebajrangsteeludyog.features.member.model.CustomerDataModel
interface CustomerOnClick {
fun OnClick(obj: CustomerDataModel)
} | 0 | Kotlin | 0 | 0 | 35e09f089ea181c5927063a5f14fc9ef3b090210 | 214 | ShreeBajrangSteelUdyog | Apache License 2.0 |
MVP/app/src/main/java/com/alifyz/mvp/mvp/BasePresenter.kt | Alifyz | 93,462,362 | false | null | package com.alifyz.mvp.mvp
interface BasePresenter {
fun start()
} | 0 | null | 6 | 16 | 5d881c7a5c99421d1163646706789edcdd6307d3 | 71 | android-sample-apps | The Unlicense |
src/main/kotlin/team/nk/kimiljeongserver/domain/user/presentation/dto/request/LoginUserRequest.kt | team-nk | 513,313,744 | false | null | package team.nk.kimiljeongserver.domain.user.presentation.dto.request
data class LoginUserRequest(
val email: String,
val password: String
)
| 2 | Kotlin | 1 | 16 | b7814ffdd99ddc844861746cdccde4553580b6db | 150 | kim-il-jeong-server | MIT License |
modules/dokkatoo-plugin/src/main/kotlin/formats/DokkatooHtmlPlugin.kt | adamko-dev | 598,382,061 | false | null | package dev.adamko.dokkatoo.formats
import dev.adamko.dokkatoo.dokka.plugins.DokkaHtmlPluginParameters
import dev.adamko.dokkatoo.dokka.plugins.DokkaHtmlPluginParameters.Companion.DOKKA_HTML_PARAMETERS_NAME
import dev.adamko.dokkatoo.dokka.plugins.DokkaVersioningPluginParameters
import dev.adamko.dokkatoo.dokka.plugin... | 16 | Kotlin | 2 | 18 | a4d0987a70f8955cfa4bfe940c50ba3812e761bf | 2,052 | dokkatoo | Apache License 2.0 |
app/src/main/java/io/alexeychurchill/dplayer/library/data/LibraryRepositoryImpl.kt | alexeychurchill | 795,201,879 | false | {"Kotlin": 213307} | @file:OptIn(ExperimentalCoroutinesApi::class)
package io.alexeychurchill.dplayer.library.data
import io.alexeychurchill.dplayer.core.domain.time.DateTimeProvider
import io.alexeychurchill.dplayer.library.data.database.DirectoryDao
import io.alexeychurchill.dplayer.library.data.database.RoomLibraryRecord
import io.ale... | 0 | Kotlin | 1 | 0 | b022fd85542ef05d8d06a4cac35061cc34159227 | 3,314 | DPlayer | MIT License |
la4k-test/src/commonMain/kotlin/TestBridge.kt | wswartzendruber | 191,491,678 | false | null | /*
* SPDX-FileCopyrightText: 2020 <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: Apache-2.0
*/
package org.la4k.log4j2
import org.la4k.Bridge
import org.la4k.Logger
public class Log4j2Bridge : Bridge() {
public override fun createLogger(name: String): Logger = Log4j2Logger(name)
}
| 0 | Kotlin | 1 | 17 | 61f96b885f4a841e302fdef2ac2744c53edbade8 | 293 | la4k | Apache License 2.0 |
src/main/java/com/will/utils/barcode/BufferedImageLuminanceSource.kt | z2z2qp | 86,769,932 | false | {"Maven POM": 1, "Text": 1, "Ignore List": 1, "Markdown": 1, "Java": 13, "Kotlin": 55, "Java Server Pages": 1, "SVG": 1, "XML": 6, "CSS": 4, "JavaScript": 4, "Java Properties": 3, "INI": 4, "JSON": 1} | package com.will.utils.barcode
import com.google.zxing.LuminanceSource
import java.awt.geom.AffineTransform
import java.awt.image.BufferedImage
/**
* Created by zoumy on 2017/5/15 8:56.
*/
class BufferedImageLuminanceSource : LuminanceSource {
val image: BufferedImage
val left: Int
val top: Int
c... | 6 | Kotlin | 1 | 2 | 97fbf03a0ce011629135dd541c4e4d59e13454db | 2,632 | msm | The Unlicense |
spring-app/src/main/kotlin/pl/starchasers/up/service/CharsetDetectionService.kt | Starchasers | 255,645,145 | false | null | package pl.starchasers.up.service
import com.ibm.icu.text.CharsetDetector
import org.springframework.stereotype.Service
import java.io.InputStream
interface CharsetDetectionService {
fun detect(inputStream: InputStream): String
}
@Service
class CharsetDetectionServiceImpl : CharsetDetectionService {
override... | 26 | Kotlin | 0 | 9 | 90759d835f3be8fbcb9403dd20ca0e13f18bcfbc | 539 | up | MIT License |
src/main/kotlin/com/easternedgerobotics/rov/value/AnalogPinValue.kt | EasternEdgeRobotics | 43,605,566 | false | null | package com.easternedgerobotics.rov.value
data class AnalogPinValue(val address: Int = 0, val value: Float = 0f)
| 9 | null | 1 | 3 | 439d12d76fbe082eb8f7af299484b7042d1fc85b | 114 | Software_2017 | MIT License |
app/src/main/java/com/zhufucdev/motion_emulator/ui/manager/Common.kt | zhufucdev | 550,925,935 | false | null | package com.zhufucdev.motion_emulator.ui.manager
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.LazyListScope
import androidx.compose.material3.*
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import android... | 5 | Kotlin | 8 | 96 | e7332cdb11a1de19b979bd50f32fbcb633265e04 | 3,393 | MotionEmulator | Apache License 2.0 |
access-checkout/src/main/java/com/worldpay/access/checkout/api/discovery/DiscoverLinks.kt | Worldpay | 186,591,910 | false | {"Kotlin": 872063, "Shell": 7562, "Java": 6560} | package com.worldpay.access.checkout.api.discovery
import com.worldpay.access.checkout.session.api.client.ACCEPT_HEADER
import com.worldpay.access.checkout.session.api.client.CONTENT_TYPE_HEADER
import com.worldpay.access.checkout.session.api.client.SESSIONS_MEDIA_TYPE
import java.io.Serializable
internal class Disco... | 0 | Kotlin | 4 | 8 | 7748a42dc19fea3f21ffa26a623030fca3dd84c2 | 1,207 | access-checkout-android | MIT License |
code generators/de.fhdo.lemma.model_processing.code_generation.springcloud/src/main/kotlin/de/fhdo/lemma/model_processing/code_generation/springcloud/handlers/aspects/AccessHandler.kt | SeelabFhdo | 204,692,764 | false | {"Markdown": 18, "Text": 7, "Ignore List": 2, "Groovy": 1, "INI": 213, "Java Properties": 56, "XML": 181, "Maven POM": 71, "JAR Manifest": 49, "Xtend": 356, "Java": 917, "GAP": 10, "Gradle Kotlin DSL": 47, "Shell": 72, "Gradle": 7, "Batchfile": 29, "Kotlin": 223, "Dockerfile": 19, "YAML": 11, "Makefile": 3, "HTML": 9, ... | package de.fhdo.lemma.model_processing.code_generation.springcloud.handlers.aspects
import com.github.javaparser.ast.Node
import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration
import de.fhdo.lemma.data.intermediate.IntermediateDataStructure
import de.fhdo.lemma.data.intermediate.IntermediateImportedAspect
... | 32 | Java | 8 | 31 | 2e9ccc882352116b253a7700b5ecf2c9316a5829 | 2,373 | lemma | MIT License |
Login.kt | OmkarKalvitkar | 816,920,226 | false | {"Kotlin": 13595} | package com.codewithomkar.travel.screen
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.*
//import androidx.compose.material3.*
import androi... | 0 | Kotlin | 0 | 0 | 07f1a7aa14741326df6edea285967f0a5c01ce78 | 4,169 | Travel-Companion | MIT License |
app/src/main/java/com/buserkapkiner/diyetonerim/ui/util/PrivateSharedPreferences.kt | buserumeysa | 591,794,834 | false | null | package com.buserkapkiner.diyetonerim.ui.util
import android.content.Context
import android.content.SharedPreferences
import androidx.core.content.edit
class PrivateSharedPreferences {
companion object {
private val TIME = "time"
private var sharedPreferences : SharedPreferences? = ... | 1 | Kotlin | 0 | 1 | fefe52b602a260f132ae8ac1922365690beea6dc | 1,205 | DiyetOnerim | MIT License |
wear/src/main/java/com/example/myapplication/connectionHandling/ConnectionHandler.kt | Sischinger | 636,868,742 | false | null | package com.example.myapplication.connectionHandling
import DataSendService
import android.content.Context
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import android.hardware.SensorManager
import android.util.Log
import androidx.core.content.ContextCom... | 0 | Kotlin | 0 | 0 | f4c883c312c146d13b96dfb50cc4859d8d90bb21 | 2,036 | ChannelClient_Accelerometer_Wear | Apache License 2.0 |
livekit-android-sdk/src/main/java/io/livekit/android/LiveKit.kt | livekit | 339,892,560 | false | null | package io.livekit.android
import android.content.Context
import io.livekit.android.dagger.DaggerLiveKitComponent
import io.livekit.android.room.Room
import io.livekit.android.room.RoomListener
import io.livekit.android.util.LKLog
import io.livekit.android.util.LoggingLevel
import timber.log.Timber
class LiveKit {
... | 5 | null | 9 | 47 | d45a5d5b20a76d51dd64ff26a6c2c646cd77e6a6 | 2,485 | client-sdk-android | Apache License 2.0 |
app/app_shared/generated/java/com/knowledgespike/db/routines/FowPartnershipListByYear.kt | kevinrjones | 698,194,275 | false | {"Kotlin": 1733649} | /*
* This file is generated by jOOQ.
*/
package com.knowledgespike.db.routines
import com.knowledgespike.db.Cricketarchive
import org.jooq.Parameter
import org.jooq.impl.AbstractRoutine
import org.jooq.impl.Internal
import org.jooq.impl.SQLDataType
/**
* This class is generated by jOOQ.
*/
@Suppress("UNCHECKED... | 0 | Kotlin | 0 | 0 | 710d4682a8ed29693419252f172fbe2a865cd62f | 8,397 | team-v-team | MIT License |
app/src/main/java/com/viniciusjanner/desafio/sicredi/presentation/feature/checkin/EventCheckinArgs.kt | viniciusjanner | 693,962,041 | false | {"Kotlin": 108056} | package com.viniciusjanner.desafio.sicredi.presentation.feature.checkin
import android.os.Parcelable
import androidx.annotation.Keep
import kotlinx.parcelize.Parcelize
@Keep
@Parcelize
data class EventCheckinArgs(
val eventId: String,
) : Parcelable
| 0 | Kotlin | 0 | 0 | 331c012a814aca4d31c8cbd2b90ebe6451670e88 | 256 | android_desafio_tecnico_empresa_sicredi | Apache License 2.0 |
database/src/main/java/com/ruzhan/lion/database/CommonModel.kt | wy676579037 | 224,416,546 | true | {"Kotlin": 92278, "Java": 4398} | package com.ruzhan.lion.database
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "common_model")
data class CommonModel(
@PrimaryKey
var id: Int,
@ColumnInfo(name = "content") var content: String
)
| 0 | null | 0 | 0 | d624d821834bbaf0476892842bfc78061aaf536d | 288 | awaker | Apache License 2.0 |
src/commonMain/kotlin/com/dxc/ssi/agent/didcomm/actions/Action.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.ssi.agent.didcomm.actions
interface Action {
suspend fun perform(): ActionResult
}
| 3 | Kotlin | 6 | 5 | 9bede83e0358b16d6dc9459ccc2fd85541027b6c | 105 | ssi-mobile-sdk | Apache License 2.0 |
easylauncher/src/main/kotlin/com/project/starter/easylauncher/filter/EasyLauncherFilter.kt | usefulness | 283,004,535 | false | null | package com.project.starter.easylauncher.filter
import java.awt.image.BufferedImage
import java.io.Serializable
interface EasyLauncherFilter : Serializable {
fun apply(image: BufferedImage, adaptive: Boolean = false)
}
| 6 | Kotlin | 8 | 198 | 90440475b4ee508393aa3b25b20936399e6287f0 | 226 | easylauncher-gradle-plugin | MIT License |
notify-service/src/main/kotlin/com/hoangtien2k3/notifyservice/extension/DataExtension.kt | hoangtien2k3qx1 | 694,105,595 | false | {"Java": 372906, "Kotlin": 16788, "Dockerfile": 4971} | package com.hoangtien2k3.notifyservice.extension
import com.hoangtien2k3.notifyservice.dto.NotifyDto
fun NotifyDto.checkNotNull(value: Int): Boolean {
return id > value
} | 2 | Java | 16 | 22 | 57ebf45f6425050b3bc7396f1a5f658f106de809 | 176 | ecommerce-microservices | MIT License |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/SwordOff.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.tabler.tabler.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
im... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 2,638 | compose-icon-collections | MIT License |
app/src/main/java/com/example/androiddevchallenge/ui/home/TopBar.kt | chachako | 349,062,434 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 2 | Kotlin | 1 | 17 | bb1ac181bc859e6ed831d216c6955e5a1dd402e0 | 5,682 | compose-weather | Apache License 2.0 |
src/main/kotlin/br/com/gutierre/model/response/ResponseMath.kt | GutierreThiagoS | 617,078,687 | false | null | package br.com.gutierre.model.response
import br.com.gutierre.model.request.RequestMath
data class ResponseMath(
val result: Double,
val request: RequestMath
)
| 0 | Kotlin | 0 | 0 | 57783945ecbd57ba78b6d1513e272941d2c2c39e | 170 | rest-with-spring-boot-and-kotlin | Apache License 2.0 |
initial/MyFirstCoroutine/src/main/kotlin/MyFirstCoroutine.kt | denofprogramming | 405,963,573 | false | null | import kotlinx.coroutines.CoroutineExceptionHandler
import kotlinx.coroutines.CoroutineName
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Job
import kotlin.coroutines.ContinuationInterceptor
import kotlin.coroutines.CoroutineContext
fun main() {
logMessage("Hello")
logMessage("World")
... | 0 | Kotlin | 0 | 0 | 687f04e1f22ba18647215bb72c5a6f82b1e13ef1 | 808 | kotlinCoroutinesExplainedCode4 | MIT License |
glimpse/geom/src/commonMain/kotlin/freeform/SurfaceTriangulation.kt | glimpse-graphics | 319,730,354 | false | null | /*
* Copyright 2020-2023 Glimpse Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 5 | Kotlin | 0 | 6 | e00a9f22db9e10493e7711d5dd8524eb7b06be77 | 957 | glimpse | Apache License 2.0 |
src/main/java/top/wetabq/wac/checks/utils/DateUtils.kt | WetABQ | 573,748,985 | false | {"Kotlin": 281849, "Java": 13566} | package top.wetabq.wac.checks.utils
import java.text.SimpleDateFormat
import java.util.*
import java.util.Calendar
/**
* WAntiCheatPro
*
* @author WetABQ Copyright (c) 2019.06
* @version 1.0
*/
object DateUtils {
@JvmStatic
fun getNowDateStr() : String {
val date = Date()
val format ... | 0 | Kotlin | 5 | 16 | 4bc49e045421a6367f9fe6880eed285140630beb | 1,436 | WAntiCheatPro | Apache License 2.0 |
widgetssdk/src/main/java/com/glia/widgets/view/unifiedui/theme/chat/EngagementStateTheme.kt | salemove | 312,288,713 | false | {"Kotlin": 1892946, "Java": 456934, "Shell": 1802} | package com.glia.widgets.view.unifiedui.theme.chat
import com.glia.widgets.view.unifiedui.theme.base.TextTheme
internal data class EngagementStateTheme(
val title: TextTheme?,
val description: TextTheme?
)
| 5 | Kotlin | 1 | 6 | 8efb64efb02da8321183ca770a6139cf00233dfc | 216 | android-sdk-widgets | MIT License |
src/jsMain/kotlin/org/binarie/interf/BinarieAbstra.kt | duangsuse-valid-projects | 230,898,384 | false | null | package org.binarie.interf
import org.binarie.*
actual interface DataReader: ByteOrdered {
fun readNat32():Nat32 //JS-only
actual fun readNat8(): Nat8
actual fun readNat16(): Nat16
actual fun readChar16(): Char16
actual fun readInt8(): Int8
actual fun readInt16(): Int16
actual fun readInt32(): Int32
a... | 0 | Kotlin | 0 | 0 | f7475ad578cd70ab1431be7d985f6499c40ed354 | 734 | Binarie | Apache License 2.0 |
app/src/main/java/ir/erfansn/siliconecalculator/calculator/button/CalculatorButton.kt | ErfanSn | 492,686,872 | false | null | /*
* Copyright 2022 Erfan Sn
*
* 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 ... | 7 | Kotlin | 9 | 93 | a45794cb6eb61e2adf0eb1cd05837991ed8c2d3b | 3,186 | SiliconeCalculator | Apache License 2.0 |
app/src/main/java/com/example/player/MainActivity.kt | Reybun | 383,856,364 | false | null | package com.example.player
import android.Manifest
import android.annotation.SuppressLint
import android.app.Notification
import android.content.pm.PackageManager
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.Drawab... | 0 | Kotlin | 0 | 2 | 67b5cb492b5d390a2a2294d095a0b2d4a7e87d98 | 10,067 | music-player | Apache License 2.0 |
app/src/main/java/com/example/weather/Data/WeatherResponse.kt | BrunoAnndrade | 742,541,348 | false | {"Kotlin": 35695} | package com.example.weather.Data.Remote
data class WeatherResponse(
val id: Int,
val main: MainWeatherDTO,
val weather: List<WeatherDTO>,
val wind: WindDTO
)
data class MainWeatherDTO(
val feels_like: Double,
val humidity: Int,
val temp: Double,
val temp_max: Double,
val temp_min:... | 0 | Kotlin | 0 | 0 | ffd467f77b54341b69aa62cbd1f4e8bea424582e | 474 | weather | MIT License |
src/main/kotlin/org/magmaoffenburg/roboviz/util/DataTypes.kt | magmaOffenburg | 34,959,602 | false | {"Java": 652805, "Kotlin": 103880, "GLSL": 19615, "HTML": 8010, "Shell": 973, "Batchfile": 396} | package org.magmaoffenburg.roboviz.util
enum class Mode {
LOG,
LIVE
}
| 22 | Java | 15 | 49 | 0ec8e4dc45a425f5f1cc3b1f9fd31dff2ddef978 | 78 | RoboViz | Apache License 2.0 |
app/src/main/java/dev/johnoreilly/fantasypremierleague/presentation/players/playerDetails/PlayerDetailsView.kt | joreilly | 332,307,418 | false | {"Kotlin": 105754, "Makefile": 43005, "Swift": 11836, "Jupyter Notebook": 4310} | @file:OptIn(ExperimentalMaterial3Api::class)
package dev.johnoreilly.fantasypremierleague.presentation.players.playerDetails
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirror... | 17 | Kotlin | 55 | 497 | 65547be20ddbc5ed73220d10faed99e68f8f2ba3 | 2,344 | FantasyPremierLeague | Apache License 2.0 |
src/main/kotlin/dev/dexsr/gmod/palworld/trainer/composeui/PlayerTrainer.kt | flammky | 758,310,188 | false | {"Kotlin": 763192} | package dev.dexsr.gmod.palworld.trainer.composeui
import androidx.compose.runtime.Composable
@Composable
fun PlayerTrainerGroup() {
} | 0 | Kotlin | 0 | 4 | 2820fa6c766bf244015e3839ec5fe378e049fca6 | 136 | PalToolbox | Apache License 2.0 |
NowInHoonSearch/app/src/main/java/hoon/exam/nowinhoonsearch/network/NaverAPIService.kt | boris920308 | 719,922,346 | false | {"Kotlin": 12501} | package hoon.exam.nowinhoonsearch.network
import com.squareup.moshi.Moshi
import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory
import hoon.exam.nowinhoonsearch.BuildConfig
import okhttp3.Interceptor
import okhttp3.OkHttpClient
import retrofit2.Retrofit
import retrofit2.converter.moshi.MoshiConverterFactor... | 0 | Kotlin | 0 | 0 | 6a49d4881181706aad042a8f883d4c37e8332240 | 1,526 | nowinhoonsearch | Apache License 2.0 |
client/android/div/src/test/java/com/yandex/div/core/expression/triggers/ConditionPartTest.kt | divkit | 523,491,444 | false | {"Kotlin": 7327303, "Swift": 5164616, "Svelte": 1148832, "TypeScript": 912803, "Dart": 630920, "Python": 536031, "Java": 507940, "JavaScript": 152546, "CSS": 37870, "HTML": 23434, "C++": 20911, "CMake": 18677, "Shell": 8895, "PEG.js": 7210, "Ruby": 3723, "C": 1425, "Objective-C": 38} | package com.yandex.div.core.expression.triggers
import com.yandex.div.json.ParsingException
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNull
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.runners.Parameterized
@RunWith(Parameterized::class)
internal class ConditionPartTe... | 5 | Kotlin | 128 | 2,240 | dd102394ed7b240ace9eaef9228567f98e54d9cf | 3,987 | divkit | Apache License 2.0 |
internal-core/src/main/java/com/pandulapeter/beagle/core/manager/listener/OverlayListenerManager.kt | pandulapeter | 209,092,048 | false | {"Kotlin": 850334, "Ruby": 497} | package com.pandulapeter.beagle.core.manager.listener
import android.graphics.Canvas
import androidx.core.view.WindowInsetsCompat
import com.pandulapeter.beagle.BeagleCore
import com.pandulapeter.beagle.common.configuration.Insets
import com.pandulapeter.beagle.common.configuration.getBeagleInsets
import com.pandulape... | 14 | Kotlin | 27 | 491 | f07df4647c91a36917d92cf9c128bcf44b03b732 | 1,129 | beagle | Apache License 2.0 |
ktmeta-app/src/main/kotlin/io/github/hochikong/ktmeta/swingui/controller/utils.kt | DigiSTALKER | 285,779,525 | false | null | package io.github.hochikong.ktmeta.swingui.controller
import java.awt.Color
import javax.swing.JTextField
fun doWhenClickOnTextField(reg: Map<String, JTextField>, key: String) {
val comp = reg[key]
if (comp is JTextField) {
comp.selectAll()
if (comp.foreground != Color(0, 0, 0)) {
... | 1 | null | 1 | 3 | 08bde12cb3f1767b21d53255e72debdab3a8225f | 370 | KtMeta | Apache License 2.0 |
domain/src/main/java/com/ericampire/android/androidstudycase/domain/repository/LottieFileRepository.kt | eric-ampire | 402,759,023 | false | {"Kotlin": 212488} | package com.ericampire.android.androidstudycase.domain.repository
import com.ericampire.android.androidstudycase.domain.entity.Lottiefile
import com.ericampire.android.androidstudycase.util.Result
import kotlinx.coroutines.flow.Flow
interface LottieFileRepository {
fun findRecent(): Flow<Result<List<Lottiefile>>>
... | 0 | Kotlin | 4 | 26 | 5a5f87658071da4b64a6563db7ae59c7bf0fa497 | 425 | lottiefiles-app | Apache License 2.0 |
2766.Relocate Marbles.kt | sarvex | 842,260,390 | false | {"Kotlin": 1775678, "PowerShell": 418} | internal class Solution {
fun relocateMarbles(nums: IntArray, moveFrom: IntArray, moveTo: IntArray): List<Int> {
val pos: Set<Int> = HashSet()
for (x in nums) {
pos.add(x)
}
for (i in moveFrom.indices) {
pos.remove(moveFrom[i])
pos.add(moveTo[i])
}
val ans: List<Int> = ArrayL... | 0 | Kotlin | 0 | 0 | 17a80985d970c8316fb694e4952692e598d700af | 381 | kotlin-leetcode | MIT License |
layout-ui/src/main/java/com/android/tools/property/ptable/PTableCellEditor.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | null | 230 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 2,392 | android | Apache License 2.0 |
Desafios em Kotlin/1173 - Preenchimento de Vetor I/Main.kt | lucasmarcuzo | 386,427,361 | false | null | //Developed by: @LucasMarcuzo
import java.util.*
fun main(args: Array<String>) {
val valor = readLine()!!.toInt()
val vetor = IntArray(10).toMutableList()
for (i in 0 until 10) {
vetor[i] = if(i == 0) valor
else {
vetor[i-1] * 2
}
}
for (j in 0... | 0 | null | 12 | 22 | 0238d847dac30cabeccbccb657da96128c2d5a5c | 381 | Beecrowd | MIT License |
core/src/main/java/com/segment/analytics/kotlin/core/platform/plugins/SegmentDestination.kt | segmentio | 335,438,046 | false | {"Kotlin": 516260} | package com.segment.analytics.kotlin.core.platform.plugins
import com.segment.analytics.kotlin.core.*
import com.segment.analytics.kotlin.core.platform.DestinationPlugin
import com.segment.analytics.kotlin.core.platform.EventPipeline
import com.segment.analytics.kotlin.core.platform.Plugin
import com.segment.analytics... | 5 | Kotlin | 24 | 45 | 1ef79eaf035549d08f91bac4e0a1de8ca6793e7b | 3,943 | analytics-kotlin | MIT License |
livecallback/src/test/java/com/ricarvalho/livecallback/lifecycle/TestLifecycleTest.kt | rih-carv | 398,972,259 | false | null | package com.ricarvalho.livecallback.lifecycle
import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleOwner
import org.junit.Assert
import org.junit.Test
class TestLifecycleTest {
@Test
fun `default initial state`() {
val lifecycle = Te... | 14 | Kotlin | 0 | 6 | 5348f8db6540c6a1b0ac0d17b7939fa37945cd57 | 2,397 | LiveCallback | MIT License |
telegram-bot/src/main/kotlin/eu/vendeli/tgbot/types/chat/ChatInviteLink.kt | vendelieu | 496,567,172 | false | null | package eu.vendeli.tgbot.types
data class ChatInviteLink(
val inviteLink: String,
val creator: User,
val createsJoinRequest: Boolean,
val isPrimary: Boolean,
val isRevoked: Boolean,
val name: String? = null,
val expireDate: Int? = null,
val memberLimit: Int? = null,
val pendingJoinR... | 5 | null | 6 | 98 | f466e59c663d7319d1bcb9fd526e52c666c5927f | 341 | telegram-bot | Apache License 2.0 |
compiler/testData/klib/dump-abi/content/visibilities.kt | JetBrains | 3,432,266 | false | null | // MODULE: visibilities_library
package visibilities.test
public fun publicFun(): String = ""
internal fun internalFun(): String = ""
@PublishedApi internal fun internalPAFun(): String = ""
private fun privateFun(): String = ""
public val publicVal: String get() = ""
internal val internalVal: String get() = ""
@Publ... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 2,884 | kotlin | Apache License 2.0 |
app/src/main/java/com/jumbojay/traveltaipeidemo/database/MyRoomDatabase.kt | JumBoJay06 | 619,491,652 | false | null | package com.jumbojay.traveltaipeidemo.database
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.jumbojay.traveltaipeidemo.data.Attractions
import com.jumbojay.traveltaipeidemo.database.dao.AttractionsDao
import java.util.concurrent.Exec... | 0 | Kotlin | 0 | 0 | 0e9605f57cb56c85911b929893947c6e348ffaf1 | 1,193 | TravelTaipeiDemo | Apache License 2.0 |
src/main/kotlin/aoc2023/Day04.kt | Ceridan | 725,711,266 | false | {"Kotlin": 31614, "Shell": 1983} | package aoc2023
import kotlin.math.pow
class Day04 {
fun part1(input: List<String>): Int = input
.sumOf { Card.fromString(it).calculatePoints() }
fun part2(input: List<String>): Int {
val cards = input.map { line -> Card.fromString(line) }
val counts = IntArray(cards.size) { _ -> 1 }
... | 0 | Kotlin | 0 | 0 | d81103c1c977864d76dee6a389ac54d83eec3b9c | 1,752 | advent-of-code-2023 | MIT License |
app/src/main/java/com/jimandreas/opengl/TableOfContents.kt | jimandreas | 216,365,269 | false | null | @file:Suppress("DEPRECATION")
package com.jimandreas.opengl
import android.app.Activity
import android.app.ListActivity
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.util.SparseArray
import android.widget.AdapterView.OnItemClickListener
import android.widget.SimpleAdapte... | 0 | Kotlin | 0 | 2 | f6d2c979af580e3831366bf2feef830115005437 | 3,533 | OpenGLES-sandbox | Apache License 2.0 |
src/test/java/com/keeper/homepage/domain/merit/api/MeritControllerTest.kt | KEEPER31337 | 590,686,028 | false | {"Gradle Kotlin DSL": 2, "Markdown": 7, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "XML": 1, "SVG": 1, "INI": 2, "Java": 406, "Kotlin": 47, "Vim Snippet": 3, "YAML": 5, "AsciiDoc": 21} | package com.keeper.homepage.domain.merit.api
import com.keeper.homepage.IntegrationTest
import com.keeper.homepage.domain.member.entity.Member
import com.keeper.homepage.domain.member.entity.job.MemberJob
import com.keeper.homepage.domain.merit.dto.request.AddMeritTypeRequest
import com.keeper.homepage.domain.merit.dt... | 9 | Java | 2 | 22 | fa127606da59ae8fd8b4c96d0231524494b69ac0 | 16,562 | Homepage-Back-R2 | MIT License |
src/main/kotlin/br/com/associacaoshare/view/NoticiaView.kt | vini-aiala | 259,127,721 | true | {"Kotlin": 102552, "CSS": 4554, "JavaScript": 164} | package br.com.associacaoshare.view
import br.com.associacaoshare.model.page.NoticiaViewModel
import br.com.associacaoshare.view.base.PagIniView
import br.com.associacaoshare.view.base.PagIniView.Type.PUBLIC_PAGE
import io.javalin.http.Context
import kotlinx.html.*
import java.time.format.DateTimeFormatter
class Noti... | 0 | null | 0 | 0 | cade0593944c3cf9e08656735211005b39db1118 | 1,952 | pagini-php | MIT License |
src/Day01_part1.kt | lowielow | 578,058,273 | false | null | fun main() {
fun part1(input: List<String>): Int {
var largestSum = 0
var currentSum = 0
val inputSize: Int = input.size
for (i in 0 until inputSize) {
if (input[i].isEmpty()) {
if (currentSum > largestSum) {
largestSum = currentSum
... | 0 | Kotlin | 0 | 0 | acc270cd70a8b7f55dba07bf83d3a7e72256a63f | 557 | aoc2022 | Apache License 2.0 |
pokechu/app/src/main/java/fr/amazer/pokechu/ui/BindingAdapters.kt | Tarik-B | 572,524,394 | false | {"Kotlin": 188925, "Python": 91692} | package fr.amazer.pokechu.ui
import android.content.Context
import android.graphics.Bitmap
import android.text.SpannableStringBuilder
import android.util.TypedValue
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
i... | 1 | Kotlin | 0 | 1 | 034768c6d702ee55c0faa6d71be8b1f5e555e8ff | 3,801 | pokechu | MIT License |
kotlin_helpers/kotlin_helpers.kt | jonasfrey | 448,345,302 | false | {"Kotlin": 84335, "Shell": 18033, "JavaScript": 4926, "Python": 1499, "C": 1434} |
// this file was generated by create_new_folder_project.js
package kotlin_helpers
import kotlin.reflect.KProperty1
const val ANSI_COLOR_BLACK = "\u001b[30m"
const val ANSI_COLOR_RED = "\u001b[31m"
const val ANSI_COLOR_GREEN = "\u001b[32m"
const val ANSI_COLOR_YELLOW = "\u001b[33m"
const val ANSI_COLOR_BLUE = "\u001... | 0 | Kotlin | 0 | 0 | 52b8f3a2305d197e0ed191436448d14739148421 | 6,186 | kotlin_code | MIT License |
infer/tests/codetoanalyze/kotlin/pulse/taint/FlowSensitivity.kt | facebook | 29,857,799 | false | {"OCaml": 8303443, "Java": 1049570, "C++": 840805, "Objective-C": 414997, "C": 366808, "Makefile": 289943, "Hack": 185037, "Erlang": 168813, "Kotlin": 54384, "Shell": 50442, "M4": 29454, "Objective-C++": 25714, "Python": 18914, "MATLAB": 10669, "OpenEdge ABL": 10490, "Dockerfile": 4461, "Emacs Lisp": 3448, "Starlark": ... | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package codetoanalyze.kotlin.pulse
import codetoanalyze.kotlin.pulse.InferTaint.inferSecretSource
import codetoanalyze.kotlin.pulse... | 430 | OCaml | 2015 | 14,955 | 774f9d9cf1e60f04886ebb9e43ed6cd9c8899aef | 1,330 | infer | MIT License |
report-service/src/main/kotlin/com/sandjelkovic/dispatchd/report/ReportService.kt | sandjelkovic | 77,168,649 | false | null | package com.sandjelkovic.dispatchd.report
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.cloud.netflix.eureka.EnableEurekaClient
@SpringBootApplication
@EnableEurekaClient
class ReportService
fun main(args: Array<String>) ... | 24 | null | 1 | 2 | 20187c0d3dc9b4208f08d7debdcc5f9faf45f9df | 362 | dispatchd | Apache License 2.0 |
data/src/commonMain/kotlin/data/model/DatesEntity.kt | ibenabdallah | 748,016,150 | false | {"Kotlin": 83270, "Swift": 589} | package data.model
import kotlinx.serialization.Serializable
@Serializable
data class DatesEntity(
val maximum: String,
val minimum: String,
)
| 0 | Kotlin | 1 | 70 | 0fa15b49848f9f6138f0e65040c2fab7149aabd3 | 153 | the-movie-db | Apache License 2.0 |
src/test/kotlin/io/kjson/JSONDeserializerTest.kt | pwall567 | 389,599,808 | false | null | /*
* @(#) JSONDeserializerTest.kt
*
* kjson Reflection-based JSON serialization and deserialization for Kotlin
* Copyright (c) 2019, 2020, 2021 <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
... | 0 | Kotlin | 0 | 1 | df2076cf800d728b00336698c7c28641bdc6cf08 | 46,780 | kjson | MIT License |
test_runner/src/main/kotlin/ftl/run/platform/android/CreateRoboConfig.kt | hiyangyue | 267,499,333 | false | {"Git Config": 1, "Markdown": 14, "Text": 5, "Ignore List": 11, "YAML": 29, "Gradle Kotlin DSL": 4, "Shell": 11, "Java Properties": 2, "Batchfile": 2, "INI": 1, "Kotlin": 211, "JSON": 11, "XML": 21, "HTML": 2, "Maven POM": 1, "Java": 70, "Gradle": 3, "Proguard": 1, "Go": 1, "Go Module": 1, "JSON with Comments": 1, "Jav... | package ftl.run.platform.android
import ftl.args.AndroidArgs
import ftl.args.yml.UploadedApks
import ftl.gc.GcStorage
internal fun AndroidArgs.createRoboConfig(
uploadedApks: UploadedApks,
runGcsPath: String
) = AndroidTestConfig.Robo(
appApkGcsPath = uploadedApks.app,
flankRoboDirectives = roboDirect... | 1 | null | 1 | 1 | b9596bc83027a5bc94bb5d1dca9a8adb81dcea5a | 432 | flank | Apache License 2.0 |
AS/Quiz/app/src/main/java/com/example/quiz/Question.kt | josericardojr | 683,865,030 | false | {"Kotlin": 15949} | package com.example.quiz
import androidx.annotation.StringRes
data class Question(@StringRes val resId : Int, val answer : Boolean)
| 0 | Kotlin | 0 | 0 | daf2e83ee9b6144db0ec7a5813312ed648e3ceb2 | 134 | AndroidKotlin | Apache License 2.0 |
app/src/main/java/com/ericktijerou/photosearch/data/remote/api/FlickrApi.kt | ericktijerou | 559,772,198 | false | null | /*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 1 | Kotlin | 1 | 7 | 3231d1f1c2bedd66b84baefb90e8fc83ddee68e4 | 1,118 | photosearch | Apache License 2.0 |
src/main/kotlin/com/github/trcdeveloppers/clayium/common/util/TierConstants.kt | TRCDeveloppers | 679,576,608 | false | {"Kotlin": 157435, "Java": 1189} | package com.github.trcdeveloppers.clayium.common.util
object TierConstants {
fun getTransferCooldon(tier: Int): Int {
return when (tier) {
1 -> 5
2 -> 10
3 -> 5
in 4..13 -> 5
else -> throw IllegalArgumentException("Invalid tier: $tier")
}
... | 0 | Kotlin | 0 | 0 | 3d06bde009cb9f252ff5471fb5b155bfd1b5b085 | 327 | Clayium | Creative Commons Attribution 4.0 International |
token-client-core/src/test/kotlin/no/nav/security/token/support/client/core/oauth2/TokenExchangeClientTest.kt | navikt | 124,397,000 | false | {"Kotlin": 310650, "Java": 185354} | package no.nav.security.token.support.client.core.oauth2
import com.nimbusds.oauth2.sdk.GrantType
import com.nimbusds.oauth2.sdk.auth.ClientAuthenticationMethod
import java.io.IOException
import java.net.URI
import okhttp3.mockwebserver.MockWebServer
import org.assertj.core.api.Assertions
import org.junit.jupiter.api.... | 8 | Kotlin | 7 | 13 | 4894df44051550f857eca2625d338462cbedf12c | 6,135 | token-support | MIT License |
TeamCode/src/main/java/org/mechdancer/common/ftc/helper/LocatableRobot.kt | MechDancer | 212,054,987 | true | {"Kotlin": 48960, "Java": 40144} | package org.mechdancer.common.ftc.helper
import org.mechdancer.common.ftc.structure.MecanumLocator
import org.mechdancer.ftclib.core.structure.Structure
import org.mechdancer.ftclib.core.structure.injector.delegate
/**
* 可定位的机器人
*
* ** 实现该类需要手动将麦克纳姆底盘及里程计添加到子结构中 **
*/
abstract class LocatableRobot(
name: Stri... | 0 | Kotlin | 0 | 0 | 919a5eb14562461ae6b581b002e0ea95a63031ce | 612 | SkyStone | MIT License |
location/src/main/java/com/karzek/location/di/locationModule.kt | MarjanaKarzek | 839,724,284 | false | {"Kotlin": 70571} | package com.karzek.location.di
import com.karzek.domain.location.LocationRepository
import com.karzek.location.data.LocationRepositoryImpl
import com.karzek.location.work.LocationWorkScheduler
import com.karzek.location.work.WorkScheduler
import org.koin.android.ext.koin.androidContext
import org.koin.dsl.module
val ... | 0 | Kotlin | 0 | 0 | 3b7cdbd58dca5d995331b8b13f2f84d01b83e152 | 509 | android-venue-recommendations | Apache License 2.0 |
app/src/main/java/com/dicoding/habitapp/data/network/ApiConfig.kt | usmarmanalu | 725,555,662 | false | {"Kotlin": 75827} | package com.dicoding.habitapp.data.network
import okhttp3.*
import okhttp3.logging.*
import retrofit2.*
import retrofit2.converter.gson.*
class ApiConfig {
companion object {
private const val BASE_URL = "https://newsapi.org/v2/"
fun getApiService(): ApiService {
val loggingIntercepto... | 0 | Kotlin | 0 | 0 | d0e2b66b679e939ef0781f042b05c5f16bb4ffd9 | 817 | Habits-App | MIT License |
app/src/main/java/com/zaurh/bober/screen/settings/notifications/components/NotificationTopBar.kt | zaurh | 853,441,625 | false | {"Kotlin": 432221} | package com.zaurh.bober.screen.settings.notifications.components
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import and... | 0 | Kotlin | 0 | 1 | 5010e8ba7b194da9c67592f5aa1e395fb002b64e | 842 | Bober | MIT License |
libraries/tools/kotlin-stdlib-gen/src/generators/unicode/GenerateUnicodeData.kt | seanwallawalla-forks | 356,060,041 | false | {"Markdown": 120, "Gradle": 760, "Gradle Kotlin DSL": 652, "Java Properties": 23, "Shell": 49, "Ignore List": 18, "Batchfile": 26, "Git Attributes": 8, "Kotlin": 64280, "Protocol Buffer": 12, "Java": 6675, "Proguard": 12, "XML": 1686, "Text": 13315, "INI": 219, "JavaScript": 291, "JAR Manifest": 2, "Roff": 217, "Roff M... | /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package generators.unicode
import generators.unicode.mappings.oneToOne.MappingsGenerator
import generators.un... | 1 | null | 1 | 1 | ed88aa43a4c2990ca10ebcb608dcbe797919b856 | 9,614 | kotlin | Apache License 2.0 |
app/src/main/java/cn/neday/sheep/network/api/UserApi.kt | nEdAy | 199,621,863 | false | null | package cn.neday.sheep.network.api
import cn.neday.base.model.Pages
import cn.neday.base.model.Response
import cn.neday.sheep.model.CreditHistory
import cn.neday.sheep.model.User
import retrofit2.http.*
/**
* User Api
*
* @author nEdAy
*/
interface UserApi {
/**
* 注册用户 / 用户登录(密码) / 用户登录(短信验证码)
*
... | 1 | Kotlin | 3 | 11 | 584bc01304ba9faf03b341fb0d6590830118f572 | 2,964 | Sheep | MIT License |
app/src/main/java/com/example/instagramclone/presentation/story/story_details/StoryDetailsViewModel.kt | maryam2070 | 747,865,960 | false | {"Kotlin": 347845} | package com.example.instagramclone.presentation.story.story_details
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.instagramclone.domain.use_cases.img_use_cases.DeleteImg
import com.example.instagramclone.domain.use_cases.s... | 0 | Kotlin | 0 | 3 | a7c1053d6de2af3d7da556fcdda6527e8a438878 | 1,898 | Instagram_Clone | MIT License |
src/main/kotlin/de/xai/handwriting_labeling_app_backend/repository/ExampleRepository.kt | LukasPieger1 | 830,951,324 | false | {"Kotlin": 56975, "Shell": 846, "Dockerfile": 345} | package de.xai.handwriting_labeling_app_backend.repository
import de.xai.handwriting_labeling_app_backend.model.Example
import de.xai.handwriting_labeling_app_backend.utils.Constants.Companion.examplesDirectory
import de.xai.handwriting_labeling_app_backend.utils.Constants.Companion.EXAMPLES_PATH
import org.springfram... | 7 | Kotlin | 0 | 0 | 6b588f71cb83f217e5c4a78acebb7b44c87849a5 | 843 | handwriting-labeling-app-backend | MIT License |
app/src/main/java/com/jbgcomposer/flixhub/presentation/navigation/Screen.kt | jhonybguerra | 801,058,511 | false | {"Kotlin": 40984} | package com.jbgcomposer.flixhub.presentation.navigation
enum class Screen {
SearchScreen,
DetailsScreen
} | 0 | Kotlin | 0 | 0 | be94395337aaefad6c84487ee4eb95b1b6c33bf2 | 114 | FlixHub | Apache License 2.0 |
app/src/main/java/com/jbgcomposer/flixhub/presentation/navigation/Screen.kt | jhonybguerra | 801,058,511 | false | {"Kotlin": 40984} | package com.jbgcomposer.flixhub.presentation.navigation
enum class Screen {
SearchScreen,
DetailsScreen
} | 0 | Kotlin | 0 | 0 | be94395337aaefad6c84487ee4eb95b1b6c33bf2 | 114 | FlixHub | Apache License 2.0 |
app/src/main/java/com/android/achievix/Activity/DrawOnTopScreenActivity.kt | ArmanKhanTech | 661,690,640 | false | {"Java": 128659, "Kotlin": 47903} | package com.android.achievix.Activity
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.android.achievix.R
class DrawOnTopScreenActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(... | 0 | Java | 0 | 10 | 239ff9e6241d72977a41283e7b94a448d5a4e92a | 365 | Achievix | MIT License |
app/src/main/java/com/example/awesomefish/ui/scene/GameState.kt | AliyuAbdullahi | 254,884,746 | false | null | package com.example.awesomefish.ui.scene
object GameState {
var running = true
var dialogVisible = false
}
| 0 | Kotlin | 0 | 4 | fb0fff430958a5f1583b2db159d72973f1e2155f | 118 | Fishscape | MIT License |
Report/ReportAbuse.kt | SeohyunMS | 336,391,088 | true | {"Lua": 40396, "C#": 4168, "Python": 1892, "Forth": 1458, "Kotlin": 1453, "JavaScript": 869, "Rust": 659, "Swift": 556, "Elixir": 236, "C": 170} | #define "Midnite"
#define from {
"Midnite" -> {
"Reports",
"Analytics",
"ClientConfiguration";
}
}
def function ;"CreateUI" {
depends[ClientConfiguration] {
if {1 == 1} do {
Logger.SendMessage(ClientConfiguration) {\break;}
}
}
repeat {
... | 0 | null | 0 | 0 | 7e397550c891fe4b27f1477457475c38ffcf8eae | 1,185 | Brixy | Apache License 2.0 |
shared/src/commonMain/kotlin/com/joetr/bundle/data/NameRepositoryImpl.kt | j-roskopf | 730,016,308 | false | {"Kotlin": 1489240, "Ruby": 2876, "Shell": 1323, "Swift": 584} | package com.joetr.bundle.data
import com.joetr.bundle.BundleDatabase
import com.joetr.bundle.SeenNames
import com.joetr.bundle.constants.Dictionary
import com.joetr.bundle.crash.CrashReporting
import com.joetr.bundle.data.file.File
import com.joetr.bundle.data.model.Connection
import com.joetr.bundle.data.model.Connec... | 0 | Kotlin | 0 | 6 | c0c924fa4d5b63cd25c080e857e591ace4eac13c | 19,025 | Rockabye | MIT License |
app/src/main/java/ke/co/ipandasoft/newsfeed/NewsFeedApp.kt | KevinGitonga | 261,390,431 | false | null | /*
* *
* * Created by <NAME> on 5/5/20 1:05 PM
* * Copyright (c) 2020 . All rights reserved.
* * Last modified 5/5/20 12:30 PM
*
*/
package ke.co.ipandasoft.newsfeed
import androidx.appcompat.app.AppCompatDelegate
import androidx.multidex.MultiDexApplication
import androidx.preference.PreferenceManager
impor... | 0 | Kotlin | 3 | 9 | f7d604ac3dfbc613b202a0f68c4118f4248de522 | 1,995 | NewsFeed | Apache License 2.0 |
CursoKotlinCod3r/src/fundamentos/004.CuidadoInferencia1.kt | heliton1986 | 349,284,479 | false | null | package fundamentos
fun main() {
// var a // precisa indicar o tipo ou atribuir um valor a variavel
var a: Int
var b = 2
a = 10
print(a + b)
} | 0 | Kotlin | 0 | 0 | 5b29a98308e49a03519231e484de61fa1c0eaf0a | 165 | Kotlin | MIT License |
app/src/main/java/org/p2p/wallet/send/interactor/usecase/CalculateToken2022TransferFeeUseCase.kt | p2p-org | 306,035,988 | false | {"Kotlin": 4585083, "HTML": 3064848, "Java": 296678, "Groovy": 1601, "Shell": 1252} | package org.p2p.wallet.send.interactor.usecase
import java.math.BigDecimal
import java.math.BigInteger
import org.p2p.core.token.Token
import org.p2p.core.utils.divideSafe
import org.p2p.core.utils.isZero
import org.p2p.core.utils.toLamports
import org.p2p.solanaj.kits.AccountInfoTokenExtensionConfig
import org.p2p.so... | 7 | Kotlin | 18 | 33 | ed7245129fb3a1900426e0840a8a5d3ea03f414c | 1,718 | key-app-android | MIT License |
platform/jvm/src/main/com/natpryce/snodge/form/MutagenForUndertow.kt | npryce | 17,959,152 | false | null | package com.natpryce.snodge.form
import com.natpryce.snodge.Mutagen
import com.natpryce.snodge.mapped
import io.undertow.server.handlers.form.FormData
fun Mutagen<Form>.forUndertow() =
mapped(FormData::toForm, Form::toFormData)
fun FormData.toForm() =
this.flatMap { key -> this[key].map { key to it.value } ... | 1 | Kotlin | 8 | 150 | f6da35610c0c33da5a781efe38237cb9a4b6ca23 | 443 | snodge | Apache License 2.0 |
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/layout/ApproachLayoutModifierNode.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2024 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 29 | null | 937 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 9,413 | androidx | Apache License 2.0 |
src/commonMain/kotlin/org/tix/feature/plan/domain/parse/nodeparser/BlockQuoteParser.kt | ncipollo | 336,920,234 | false | null | package org.tix.feature.plan.domain.parse.nodeparser
import org.intellij.markdown.MarkdownTokenTypes
import org.tix.model.ticket.body.BlockQuoteSegment
import org.tix.model.ticket.body.toTicketBody
internal class BlockQuoteParser(private val parserMap: NodeParserMap) : NodeParser {
override fun parse(arguments: P... | 8 | null | 0 | 3 | 02f87c827c1159af055f5afc5481afd45c013703 | 628 | tix-core | MIT License |
src/main/kotlin/me/melijn/melijnbot/internals/events/eventlisteners/BotJoinLeaveListener.kt | raspimana | 346,227,886 | true | {"Kotlin": 2139035, "Shell": 1203, "Dockerfile": 325} | package me.melijn.melijnbot.internals.events.eventlisteners
import me.melijn.melijnbot.Container
import me.melijn.melijnbot.internals.ConsoleColor
import me.melijn.melijnbot.internals.events.AbstractListener
import me.melijn.melijnbot.internals.threading.TaskManager
import net.dv8tion.jda.api.events.GenericEvent
impor... | 1 | Kotlin | 0 | 0 | 5a59385ac3fcb9458aed8903a7ca43fe5fe9a45c | 1,505 | Melijn | MIT License |
consumer/app/src/androidTest/java/au/com/dius/pactconsumer/pact/PactAnimalProvider.kt | janphkre | 196,334,508 | true | {"Kotlin": 16486} | package au.com.dius.pactconsumer.pact
import androidx.test.espresso.idling.CountingIdlingResource
import au.com.dius.pactconsumer.apiclient.AnimalsProvider
import au.com.dius.pactconsumer.model.AnimalCollection
import retrofit2.HttpException
import rx.Observable
import rx.internal.operators.OperatorDoOnUnsubscribe
imp... | 0 | Kotlin | 0 | 0 | 50bd3f415d633d0fd07253565a0cd39415d18892 | 1,134 | pact-workshop-android | Apache License 2.0 |
src/main/kotlin/com/williambl/haema/damagesource/IncompatibleBloodDamageSource.kt | williambl | 204,155,762 | false | null | package com.williambl.haema.damagesource
import net.minecraft.entity.damage.DamageSource
class IncompatibleBloodDamageSource : DamageSource("incompatibleBlood") {
companion object {
val instance: DamageSource = IncompatibleBloodDamageSource().setBypassesArmor()
}
} | 22 | Kotlin | 11 | 8 | 7f595887862f0033576d1211f9274beaf1174daa | 283 | haema | MIT License |
src/main/kotlin/com/github/xanclry/swaggerui/state/settings/SettingsComponent.kt | Xanclry | 393,374,931 | false | null | package com.github.xanclry.swaggerui.state.settings
import com.intellij.ui.components.JBLabel
import com.intellij.ui.components.JBTextField
import com.intellij.util.ui.FormBuilder
import javax.swing.JComponent
import javax.swing.JPanel
class SettingsComponent {
val panel: JPanel
private val configUrl = JBText... | 0 | Kotlin | 0 | 1 | 6ec6e2ef15ab44ccf07c6cd536ab6ca5649b7d06 | 776 | swagger-ui | Apache License 2.0 |
src/main/kotlin/dev/adirelle/adicrafter/utils/preconditions.kt | Adirelle | 444,341,377 | false | {"Kotlin": 122728} | package dev.adirelle.adicrafter.utils
import com.google.common.base.Strings
inline fun <T> validated(value: T, isValid: Boolean, message: () -> String): T {
require(isValid, message)
return value
}
fun <T : List<*>> requireExactSize(list: T, size: Int, desc: String = "list"): T =
validated(list, size == ... | 0 | Kotlin | 0 | 0 | 9f3609c2d7ec71d8fe4698f2c808f0eea9054557 | 516 | AdiCrafter | MIT License |
compose_material3/src/main/java/dev/vengateshm/compose_material3/flight_block_ui/FlightStatus.kt | vengateshm | 670,054,614 | false | {"Kotlin": 1877716, "Java": 46008} | package dev.vengateshm.compose_material3.custom_ui.flight_block_ui
enum class FlightStatus {
ON_TIME,
DEPARTED,
IN_FLIGHT,
ARRIVED,
LANDED,
DELAYED,
CANCELED,
DIVERTED,
RETURN,
EARLY,
NOT_AVAILABLE
} | 0 | Kotlin | 0 | 1 | fbf34120bf1a4393daf0b7fcad72c99cf4e1fc31 | 244 | Android-Kotlin-Jetpack-Compose-Practice | Apache License 2.0 |
feature/market/src/test/kotlin/com/niyaj/feature/market/marketItem/MarketItemSettingsViewModelTest.kt | skniyajali | 644,752,474 | false | {"Kotlin": 5045629, "Shell": 16584, "Ruby": 1461, "Java": 232} | /*
* Copyright 2024 <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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 31 | Kotlin | 0 | 1 | d449fd857f3a1d12596c566341a6a182eea15d78 | 5,529 | PoposRoom | Apache License 2.0 |
feature/market/src/test/kotlin/com/niyaj/feature/market/marketItem/MarketItemSettingsViewModelTest.kt | skniyajali | 644,752,474 | false | {"Kotlin": 5045629, "Shell": 16584, "Ruby": 1461, "Java": 232} | /*
* Copyright 2024 <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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 31 | Kotlin | 0 | 1 | d449fd857f3a1d12596c566341a6a182eea15d78 | 5,529 | PoposRoom | Apache License 2.0 |
android-ktx/src/main/java/io/github/raggedycoder/android/AlertDialog.kt | RaggedyCoder | 184,918,243 | false | null | /*
* Copyright 2019 RaggedyCoder.
*
* 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 ... | 0 | Kotlin | 0 | 0 | 82e985169a8c09eadc0434cfd45619f9bc5e2fc8 | 1,202 | AndroidKtx | Apache License 2.0 |
app/src/main/java/com/hakmar/employeelivetracking/common/presentation/ui/components/FabState.kt | enginemre | 584,733,724 | false | null | package com.hakmar.employeelivetracking.common.presentation.ui.components
import androidx.compose.ui.graphics.vector.ImageVector
data class FabState(
val onClick: (() -> Unit)? = null,
val icon: ImageVector
)
| 0 | Kotlin | 0 | 0 | 5e348e0a5aac89b4e60607a14a4ef9bbd68545a5 | 219 | employee_live_tracking | The Unlicense |
app/src/main/java/bzh/edgar/elevenfortysix/Time.kt | edgarogh | 125,215,175 | false | null | package bzh.edgar.elevenfortysix
import android.content.Context
import androidx.annotation.StringRes
import androidx.preference.PreferenceManager
class Time {
var time: Int = 0
internal set
val hour: Int
get() = time / 60
val minute: Int
get() = time % 60
constructor(time: I... | 0 | Kotlin | 0 | 1 | 500ea1dd43ccec267b9370d22fca2846d4d81fdc | 1,100 | ElevenFortySix | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/visitscheduler/exception/VSiPValidationException.kt | ministryofjustice | 409,259,375 | false | {"Kotlin": 1492116, "PLpgSQL": 154405, "FreeMarker": 14114, "Dockerfile": 1541, "Shell": 238} | package uk.gov.justice.digital.hmpps.visitscheduler.exception
import java.util.function.Supplier
class VSiPValidationException(val messages: Array<String>) :
RuntimeException(messages.joinToString()),
Supplier<VSiPValidationException> {
override fun get(): VSiPValidationException {
val messages = message?.s... | 0 | Kotlin | 2 | 6 | 447ca0111a8f6b3e98b71de471c1f1c129792771 | 410 | visit-scheduler | MIT License |
app/src/main/java/com/zxhhyj/music/logic/config/LocalDataSaver.kt | ZXHHYJ | 675,785,532 | false | null | @file:Suppress("UNCHECKED_CAST", "UNCHECKED_CAST")
package com.zxhhyj.music.logic.config
import com.funny.data_saver.core.DataSaverInterface
import com.zxhhyj.music.MainApplication
import io.fastkv.FastKV
val DataSaverUtils = object : DataSaverInterface() {
private val kv = FastKV.Builder(MainApplication.contex... | 1 | null | 1 | 9 | c09f7c5904379e42d85d0d64f2842717e7bf177e | 2,092 | StarMusic | Apache License 2.0 |
uikit-kotlin/src/main/java/com/cometchat/pro/uikit/reaction/FragmentEmoji.kt | samad-nkarimi | 332,771,551 | true | {"Kotlin": 1217711, "Java": 1544} | package com.cometchat.pro.uikit.reaction
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.AdapterView
import androidx.fragment.app.Fragment
import com.cometchat.pro.uikit.R
import com.cometchat.pro.ui... | 0 | null | 0 | 0 | 7d7f0ed1e41870235ed4ec4ca5ea5f5f5fcfbec1 | 1,245 | android-kotlin-chat-app | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.