path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
meistercharts-canvas/src/commonMain/kotlin/com/meistercharts/design/neckarit/NeckarItFlowPaintable.kt | Neckar-IT | 599,079,962 | false | {"Kotlin": 5819931, "HTML": 87784, "JavaScript": 1378, "CSS": 1114} | /**
* Copyright 2023 Neckar IT GmbH, Mössingen, Germany
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 3 | Kotlin | 3 | 5 | ed849503e845b9d603598e8d379f6525a7a92ee2 | 3,754 | meistercharts | Apache License 2.0 |
app/src/main/java/id/arvigo/arvigobasecore/ui/feature/splash/uistate/InitialAuthState.kt | C23-PS191-Arvigo | 636,134,744 | false | {"Kotlin": 462174} | package id.arvigo.arvigobasecore.ui.feature.splash.uistate
sealed class InitialAuthState {
object Authenticated : InitialAuthState()
object NotAuthenticated : InitialAuthState()
object Loading : InitialAuthState()
}
| 1 | Kotlin | 0 | 0 | 71a2a5b7071d877970e74dfe2eb5f9368873f0bd | 229 | arvigo-mobile-app | MIT License |
android/library/presentation/src/main/kotlin/com/bael/dads/library/presentation/sheet/BaseSheet.kt | ErickSumargo | 325,042,307 | false | null | @file:Suppress("UNCHECKED_CAST")
package com.bael.dads.library.presentation.sheet
import android.app.Dialog
import android.content.DialogInterface
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.ViewGroup.LayoutParams.MATCH_PARENT
... | 1 | null | 21 | 242 | 8eb44894518e23f535a69cbe0207ad034f6a282f | 4,225 | Dads | MIT License |
paging/runtime/src/androidTest/java/androidx/paging/AsyncPagingDataDifferTest.kt | tikurahul | 286,529,729 | false | null | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | null | 0 | 1 | e4ce477393fc1026f45fe67b73d8400f19e83975 | 20,692 | androidx | Apache License 2.0 |
core/acp-message/src/main/kotlin/io/github/zhangbinhub/acp/core/message/email/EmailSender.kt | zhangbinhub | 279,298,314 | false | null | package io.github.zhangbinhub.acp.core.message.email
import io.github.zhangbinhub.acp.core.CommonTools
import io.github.zhangbinhub.acp.core.log.LogFactory
import io.github.zhangbinhub.acp.core.message.exceptions.EmailException
import java.util.*
import javax.activation.DataHandler
import javax.activation.FileDataSour... | 0 | null | 4 | 8 | 3d63305f56fed8302fc63fa45d6ebd30cbbd8c3e | 6,132 | acp | Apache License 2.0 |
app/src/main/java/com/example/weather/logic/network/WeatherService.kt | llgneu | 354,429,039 | false | null | package com.example.weather.logic.network
import com.example.weather.WeatherApplication
import com.example.weather.logic.model.DailyResponse
import com.example.weather.logic.model.RealtimeResponse
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Path
interface WeatherService {
@GET("v2.5/${W... | 0 | Kotlin | 0 | 1 | b35406b44d820d801e7814a56cc2b386db776d4b | 634 | Weather | Apache License 2.0 |
app/src/main/java/org/p2p/wallet/jupiter/ui/settings/presenter/SwapContentSettingsMapper.kt | p2p-org | 306,035,988 | false | {"Kotlin": 4517101, "HTML": 3064848, "Java": 296567, "Groovy": 1601, "Shell": 1252} | package org.p2p.wallet.jupiter.ui.settings.presenter
import timber.log.Timber
import java.math.BigDecimal
import org.p2p.core.common.DrawableContainer
import org.p2p.core.common.TextContainer
import org.p2p.core.utils.asUsdSwap
import org.p2p.core.utils.formatToken
import org.p2p.core.utils.fromLamports
import org.p2p... | 9 | Kotlin | 18 | 33 | 509f73eb690114a77d24d1e44298819b20351b0e | 13,380 | key-app-android | MIT License |
klue-runtime-js/src/jsMain/kotlin/com/bennyhuo/klue/js/KlueJsBridge.kt | bennyhuo | 510,040,663 | false | null | package com.bennyhuo.klue.js
import kotlin.js.Promise
/**
* Created by benny.
*/
interface KlueJsBridge {
fun <T> callNative(className: String, functionName: String, args: String): Promise<T>
}
| 0 | null | 0 | 46 | 025390fa1b0a861240cc4cd82b0a84db013ff75f | 203 | Klue | MIT License |
common/src/main/java/com/ishow/common/utils/WebViewUtils.kt | i-show | 62,766,394 | false | null | /*
* Copyright (C) 2016 The yuhaiyang Android Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | 1 | null | 1 | 1 | 0b823a69256345078a0c110798c8e9ac4ae2b565 | 2,035 | android-Common | Apache License 2.0 |
boj/a1978.kt | kylelab | 811,401,558 | false | {"Kotlin": 29082} | import java.util.Scanner
fun main(args: Array<String>) {
val sc: Scanner = Scanner(System.`in`)
val n = sc.nextInt()
var primeCount = 0
for(i in 1 .. n){
val x = sc.nextInt()
if(isPrime(x)) {
primeCount++
}
}
sc.close()
println(primeCount)
}
fun isPri... | 0 | Kotlin | 0 | 0 | e0e96406bf8ce1a77d41fc60841d5aeb4a5efeee | 735 | algorithms | MIT License |
app/src/main/java/com/fsh/android/wanandroidmvvm/module/search/model/HotKeyResponse.kt | fshsoft | 506,052,730 | false | {"Kotlin": 370644} | package com.fsh.android.wanandroidmvvm.module.search.model
/**
* Created with Android Studio.
* Description:
*/
data class HotKeyResponse(
var name: String
) | 0 | Kotlin | 0 | 1 | 820418b44745e38e422f35d290754d2d330e24a1 | 165 | WanAndroidMVVM | Apache License 2.0 |
viewcontract/src/jvmTest/kotlin/tech/skot/core/view/TestSKSpannedStringBuilder.kt | MathieuScotet | 235,318,194 | false | null | package tech.skot.core.view
import org.junit.Test
import kotlin.test.assertEquals
class TestSKSpannedStringBuilder {
@Test
fun testSimple() {
val res = skSpannedString {
colored(Color(1)) {
append("coucou")
underline {
colored(Color(2)... | 0 | Kotlin | 3 | 2 | bf0e13bb4be2d94b4774791ddf55046668b06dd1 | 1,120 | skot | Apache License 2.0 |
common/src/commonMain/kotlin/dev/zwander/common/util/Storage.kt | zacharee | 641,202,797 | false | {"Kotlin": 368778, "Swift": 11028, "Ruby": 2834, "Objective-C": 1853, "Shell": 566} | @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE", "EXPOSED_PARAMETER_TYPE")
package dev.zwander.common.util
import dev.zwander.common.data.HistoricalSnapshot
import dev.zwander.common.model.MainModel
import dev.zwander.common.model.adapters.CellDataRoot
import dev.zwander.common.model.adapters.ClientDeviceData... | 4 | Kotlin | 7 | 144 | e9a111510b0ae2e9022390047569952df25bff8a | 7,803 | HINTControl | MIT License |
dialog/src/main/java/com/angcyo/dialog/BaseDialogConfig.kt | angcyo | 229,037,615 | false | null | package com.angcyo.dialog
import android.app.Dialog
import android.content.Context
import android.view.View
import com.angcyo.library.L
import com.angcyo.widget.DslViewHolder
import com.angcyo.widget.base.clickIt
/**
*
* Email:<EMAIL>
* @author angcyo
* @date 2019/05/11
* Copyright (c) 2019 ShenZhen O&M Cloud Co... | 0 | null | 3 | 1 | c9bb77f3c60ca658711c0c6f4a02dfdec354698b | 2,850 | UICore | MIT License |
Jetsnack/app/src/main/java/com/example/jetsnack/model/Filter.kt | markgray | 872,334,021 | false | {"Kotlin": 1285123} | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | afe5528c451adf978eebb78e1fe09150c7e2f6e5 | 4,439 | Compose-Overflow | Apache License 2.0 |
app/src/main/java/dev/maxsiomin/testdoorscameras/presentation/door_screen/DoorCard.kt | MaxSiominDev | 750,879,634 | false | {"Kotlin": 64737} | package dev.maxsiomin.testdoorscameras.presentation.door_screen
import android.annotation.SuppressLint
import androidx.compose.animation.core.MutableTransitionState
import androidx.compose.animation.core.animateFloat
import androidx.compose.animation.core.tween
import androidx.compose.animation.core.updateTransition
i... | 0 | Kotlin | 0 | 0 | 9729d6e686a193461d88140d0a55bc9566f97874 | 2,489 | rikmasters | MIT License |
examples/kotlin/hello_world/MainActivity.kt | stedsome | 270,751,278 | false | {"Git Config": 1, "Ruby": 1, "Markdown": 11, "YAML": 14, "Starlark": 44, "Text": 3, "Ignore List": 1, "Git Attributes": 1, "C++": 29, "Python": 2, "Kotlin": 56, "Java": 13, "XML": 13, "Swift": 54, "Objective-C": 13, "C": 2, "OpenStep Property List": 2, "Shell": 7, "reStructuredText": 25, "CSS": 1, "Diff": 3} | package io.envoyproxy.envoymobile.helloenvoykotlin
import android.app.Activity
import android.os.Bundle
import android.os.Handler
import android.os.HandlerThread
import android.support.v7.widget.DividerItemDecoration
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
imp... | 1 | null | 1 | 1 | 9c7a1839f8196211af20f7f86cdb80872f719856 | 3,807 | envoy-mobile | Apache License 2.0 |
app/src/main/java/com/wisal/android/todocompose/di/DatabaseModule.kt | wisalmuhammad | 728,771,214 | false | {"Kotlin": 43071} | package com.wisal.android.todocompose.di
import android.content.Context
import androidx.compose.runtime.remember
import androidx.room.Room
import com.wisal.android.todocompose.data.source.TasksDao
import com.wisal.android.todocompose.data.source.ToDoDatabase
import dagger.Module
import dagger.Provides
import dagger.hi... | 0 | Kotlin | 0 | 0 | e078f16abac2c3ded7c4053b5ece6bf246976a0d | 981 | ToDoCompose | MIT License |
src/main/java/io/luxus/adofai/converter/i18n/I18n.kt | Luxusio | 330,425,345 | false | null | package io.luxus.adofai.converter.i18n
import io.luxus.adofai.converter.i18n.I18nCode.*
import java.util.Locale
class I18n {
private val allCodeMap: Map<String, Map<I18nCode, String>>
private var codeMap: Map<I18nCode, String>
init {
allCodeMap = mapOf(
Locale.ENGLISH.language to eng... | 1 | null | 1 | 12 | 145166df83045a3915629239a7c2ce6f3d7c461c | 13,409 | ADOFAI-Map-Converter | Apache License 2.0 |
src/main/kotlin/io/github/ydwk/yde/rest/methods/MessageRestAPIMethods.kt | YDWK | 609,956,533 | false | null | /*
* Copyright 2022 YDWK inc.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
*
* you may not use this file except in compliance with the License.
*
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 7 | Kotlin | 0 | 0 | 9c87ae75c012bd77a605b156e599c2e7e61dbc58 | 1,080 | YDE | Apache License 2.0 |
plugin-build/src/main/kotlin/io/sentry/android/gradle/instrumentation/okhttp/OkHttpEventListener.kt | getsentry | 241,145,606 | false | null | package io.sentry.android.gradle.instrumentation.okhttp
import com.android.build.api.instrumentation.ClassContext
import io.sentry.android.gradle.instrumentation.ClassInstrumentable
import io.sentry.android.gradle.instrumentation.CommonClassVisitor
import io.sentry.android.gradle.instrumentation.MethodContext
import i... | 39 | null | 32 | 143 | 9c11c5e637e0900f35a66a95c7553d0616f0c15c | 1,941 | sentry-android-gradle-plugin | MIT License |
core/core/src/commonMain/kotlin/zakadabar/core/route/EmptyRouter.kt | spxbhuhb | 290,390,793 | false | null | /*
* Copyright © 2020-2021, Simplexion, Hungary and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package zakadabar.core.route
import zakadabar.core.authorize.Executor
import zakadabar.core.data.ActionBo
import zakadabar.core.data.BaseBo
import zakadabar.core.data.EntityBo
import za... | 6 | null | 3 | 24 | 61ac92ff04eb53bff5b9a9b2649bd4866f469942 | 1,537 | zakadabar-stack | Apache License 2.0 |
browser-kotlin/src/jsMain/kotlin/web/file/File.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6272741} | // Automatically generated - do not modify!
package web.file
import js.array.ReadonlyArray
import web.blob.Blob
import web.blob.BlobPart
import web.time.EpochTimeStamp
/**
* Provides information about files and allows JavaScript in a web page to access their content.
*
* [MDN Reference](https://developer.mozilla.... | 33 | Kotlin | 8 | 36 | 95b065622a9445caf058ad2581f4c91f9e2b0d91 | 888 | types-kotlin | Apache License 2.0 |
modules/network/fixture/src/commonMain/kotlin/com/hadilq/mastan/network/FakeNetworkLogicIo.kt | hadilq | 715,823,678 | false | {"Kotlin": 689784, "Nix": 4671} | /**
* Copyright 2023 Hadi Lashkari Ghouchani
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 0 | Kotlin | 0 | 3 | f17caa73c487d927d651e788215aa30b8b9cf842 | 1,020 | Mastan | Apache License 2.0 |
app/src/main/java/com/zj/play/profile/share/ShareRepository.kt | zhujiang521 | 265,420,729 | false | null | package com.zj.play.profile.share
import com.zj.network.base.PlayAndroidNetwork
import com.zj.play.main.login.fires
import dagger.hilt.android.scopes.ActivityScoped
import javax.inject.Inject
/**
* 版权:Zhujiang 个人版权
*
* @author zhujiang
* 创建日期:2020/9/23
* 描述:PlayAndroid
*
*/
@ActivityScoped
class ShareRepositor... | 6 | Kotlin | 151 | 977 | 11111a15f4fa9f43668b4f6356074b531f134baf | 736 | PlayAndroid | MIT License |
app/src/main/java/com/liuxing/daily/adapter/DailySearchAdapter.kt | LiuXing0327 | 866,029,430 | false | null | package com.liuxing.daily.adapter
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.preference.PreferenceManager
import androidx.recyclerview.widget.RecyclerView
import com.google.android.m... | 0 | null | 0 | 8 | 21f1d6af69d0fa79f729b3b08f09146cbc4b6a6a | 6,595 | LiuXingDaily | Apache License 2.0 |
compose/ui/ui-graphics-lint/src/main/java/androidx/compose/ui/graphics/lint/UiGraphicsIssueRegistry.kt | RikkaW | 389,105,112 | false | null | /*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 29 | null | 937 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 1,547 | androidx | Apache License 2.0 |
app/src/main/kotlin/org/jdc/template/ui/navigation/MainNav.kt | jeffdcamp | 12,853,600 | false | null | package org.jdc.template.ui.navigation
import android.content.Context
import androidx.navigation.NavGraph
import androidx.navigation.createGraph
import androidx.navigation.fragment.NavHostFragment
import org.jdc.template.ux.about.AboutFragment
import org.jdc.template.ux.about.AboutRoute
import org.jdc.template.ux.ackn... | 0 | null | 33 | 86 | 4bc4b5426f372a13a1ae8ae61f1cdfb8992582e4 | 1,955 | android-template | Apache License 2.0 |
module/nms-util/src/main/kotlin/taboolib/module/nms/DataSerializerFactory.kt | TabooLib | 120,413,612 | false | null | package taboolib.module.nms
import taboolib.common.util.unsafeLazy
/**
* Adyeshach
* taboolib.module.nms.DataSerializerFactory
*
* @author 坏黑
* @since 2022/12/12 23:04
*/
interface DataSerializerFactory {
fun newSerializer(): DataSerializer
}
/**
* 创建一个 [DataSerializer]
*/
fun dataSerializerBuilder(buil... | 9 | null | 96 | 294 | 0a54860dc621969d99d546f34585cfa5519fe98a | 451 | taboolib | MIT License |
kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/FloatingPointParser.kt | JetBrains | 3,432,266 | false | null | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you... | 184 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 14,440 | kotlin | Apache License 2.0 |
src/test/kotlin/io/kotlintest/specs/FeatureSpecLambdaTest.kt | ruslanas | 125,570,929 | false | {"Markdown": 4, "Java Properties": 1, "Gradle": 1, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "YAML": 1, "SVG": 1, "INI": 1, "Kotlin": 86, "Java": 2} | package io.kotlintest.specs
import io.kotlintest.shouldBe
class FeatureSpecLambdaTest : FeatureSpec({
feature("string.length") {
scenario("I call \"foobar.length\"") {
"foobar".length shouldBe 6
}
}
}) | 1 | null | 1 | 1 | e0f8062f9bed2568601cf52d959ece5baa645b7f | 221 | kotlintest | Apache License 2.0 |
src/main/kotlin/ui/editor/EditorVisualTransformation.kt | Daniel0110000 | 702,220,698 | false | {"Kotlin": 240986} | package ui.editor
import androidx.compose.ui.text.AnnotatedString
import androidx.compose.ui.text.input.OffsetMapping
import androidx.compose.ui.text.input.TransformedText
import androidx.compose.ui.text.input.VisualTransformation
import domain.model.SyntaxHighlightConfigModel
import domain.model.SyntaxHighlightRegexM... | 0 | Kotlin | 1 | 20 | e5b9d841990872c40a971f94895a469b59b59866 | 914 | DeepCodeStudio | Apache License 2.0 |
src/com/azoft/json2dart/delegates/generator/GeneratorDelegate.kt | Azoft | 162,413,496 | false | null | package com.azoft.json2dart.delegates.generator
import com.azoft.json2dart.delegates.MessageDelegate
import com.intellij.ide.projectView.ProjectView
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.CommonDataKeys
import com.intellij.openapi.actionSystem.LangDataKeys
impor... | 4 | Kotlin | 8 | 36 | 8c1692b85b384717b875d99481cd8285d0f3f8c0 | 1,945 | json2dart-converter | Apache License 2.0 |
app/src/main/java/ch/admin/foitt/pilotwallet/feature/onboarding/presentation/RegisterBiometricsScreenState.kt | e-id-admin | 775,912,525 | false | {"Kotlin": 1521284} | package ch.admin.foitt.pilotwallet.feature.onboarding.presentation
sealed interface RegisterBiometricsScreenState {
data object Initial : RegisterBiometricsScreenState
data object Available : RegisterBiometricsScreenState
data object Lockout : RegisterBiometricsScreenState
data object Error : RegisterB... | 1 | Kotlin | 1 | 4 | 6572b418ec5abc5d94b18510ffa87a1e433a5c82 | 400 | eidch-pilot-android-wallet | MIT License |
graphql-kotlin-federation/src/main/kotlin/com/expediagroup/graphql/federation/FederatedSchemaValidator.kt | tobias-f | 207,923,482 | true | {"Kotlin": 401091, "HTML": 20063, "Shell": 2887} | package com.expedia.graphql.federation
import com.expedia.graphql.federation.directives.FieldSet
import com.expedia.graphql.federation.exception.InvalidFederatedSchema
import graphql.schema.GraphQLDirective
import graphql.schema.GraphQLDirectiveContainer
import graphql.schema.GraphQLFieldDefinition
import graphql.sche... | 0 | Kotlin | 0 | 0 | 771b92a646c31a490b4ef521db50d505e4c585a3 | 9,825 | graphql-kotlin | Apache License 2.0 |
compiler/testData/diagnostics/tests/contracts/nonKotlinContractCall2.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | // FIR_IDENTICAL
// ISSUE: KT-71732
class Test
fun testBuilder(id: String = "", lambda: Test.() -> Unit) = Test()
fun test() {
contract(testBuilder {})
}
fun contract(test: Test) {}
| 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 190 | kotlin | Apache License 2.0 |
app/src/main/java/com/peripheral/bledevice/ui/main/MainActivityViewModel.kt | mnhmasum | 788,996,547 | false | {"Kotlin": 68870} | package com.peripheral.bledevice.ui.main
import android.bluetooth.BluetoothDevice
import android.bluetooth.le.ScanResult
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewMod... | 0 | Kotlin | 1 | 0 | 6bc769188450ab30a6425c69262e47f7796cf430 | 1,601 | ble-device-scanner | Apache License 2.0 |
retrocache/src/main/java/io/github/hylkeb/retrocache/state/internal/ErrorWithExceptionImpl.kt | HylkeB | 800,921,184 | false | {"Kotlin": 34183} | package io.github.hylkeb.retrocache.state.internal
import io.github.hylkeb.retrocache.CacheableRequest
import io.github.hylkeb.susstatemachine.StateImpl
import io.github.hylkeb.susstatemachine.Transition
import kotlinx.coroutines.CompletableJob
import kotlinx.coroutines.Job
internal class ErrorWithExceptionImpl<T>(
... | 0 | Kotlin | 0 | 1 | 0d2bb77cfa5eb07735680a8a4d1055ca4a114eb7 | 833 | RetroCache | Apache License 2.0 |
src/main/kotlin/no/skatteetaten/aurora/boober/feature/S3Feature.kt | Skatteetaten | 84,482,382 | false | null | package no.skatteetaten.aurora.boober.feature
import java.util.UUID
import org.apache.commons.codec.binary.Base64
import org.springframework.beans.factory.annotation.Value
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
import org.springframework.stereotype.Service
import com.fasterxml.ja... | 6 | null | 5 | 18 | 5a9e91f6f52d959395af7314c2f592074010d635 | 17,173 | boober | Apache License 2.0 |
launcher/src/main/java/com/husker/minecraft/launcher/tools/fx/HiDpiUtils.kt | husker-dev | 389,795,806 | false | null | package com.husker.minecraft.launcher.tools.fx
import com.husker.minecraft.launcher.app.Launcher
import javafx.beans.value.ChangeListener
import javafx.stage.Screen
import java.util.function.Consumer
class HiDpiUtils {
companion object{
@JvmStatic
fun addDpiListener(listener: Consumer<Double>){... | 0 | Kotlin | 1 | 5 | 6915a23abe4e734bcaabc7120e576c14d89fc11a | 1,176 | minecraft-launcher | Apache License 2.0 |
build-logic/src/main/kotlin/ProductFlavorConfigurationAccessors.kt | ReactiveCircus | 513,535,591 | false | {"Kotlin": 504722} | package io.github.reactivecircus.kstreamlined.buildlogic
import org.gradle.api.artifacts.Dependency
import org.gradle.api.artifacts.dsl.DependencyHandler
/**
* Adds a dependency to the 'mockImplementation' configuration.
*
* @param dependencyNotation notation for the dependency to be added.
* @return The dependen... | 4 | Kotlin | 0 | 4 | b74d3288ff71e5ca16eeb24846c9eb9261d43ff5 | 1,368 | kstreamlined-mobile | Apache License 2.0 |
ui/ui-text-core/src/commonMain/kotlin/androidx/compose/ui/text/input/InputEventListener.kt | tikurahul | 282,379,594 | true | {"Java": 44745786, "Kotlin": 26374522, "Python": 285088, "Shell": 112015, "C++": 25110, "ANTLR": 19795, "HTML": 10802, "TypeScript": 6933, "CMake": 1901, "JavaScript": 1343} | /*
* Copyright 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Java | 0 | 1 | ccac66729a5e461b3a05944014f42e2dc55337d6 | 1,065 | androidx | Apache License 2.0 |
app/src/main/java/com/linc/inphoto/ui/profilesettings/ProfileSettingsFragment.kt | lincollincol | 430,640,244 | false | {"Kotlin": 680332} | package com.linc.inphoto.ui.profilesettings
import android.os.Bundle
import android.view.Gravity
import android.view.View
import androidx.core.widget.doOnTextChanged
import androidx.fragment.app.activityViewModels
import androidx.fragment.app.viewModels
import androidx.transition.Fade
import androidx.transition.Slide
... | 0 | Kotlin | 1 | 1 | c14ff4f35e82fc94c351927713370abcd010c4aa | 4,125 | InPhotoAndroid | MIT License |
subprojects/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/Interpreter.kt | Verdinjoshua26 | 187,253,049 | true | {"Groovy": 27094164, "Java": 25949312, "Kotlin": 3116654, "C++": 1805886, "JavaScript": 208288, "CSS": 174613, "C": 98580, "HTML": 69941, "XSLT": 42845, "Perl": 37849, "Scala": 26844, "Shell": 6992, "Swift": 6972, "Objective-C": 840, "CoffeeScript": 620, "Objective-C++": 441, "GAP": 424, "Assembly": 277, "Gherkin": 191... | /*
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 2,663 | Groovy | 4552 | 2 | e089307757e7ee7e1a898e84841bd2100ff7ef27 | 21,574 | gradle | Apache License 2.0 |
app/src/main/java/com/fjjukic/furniture4you/ui/auth/ForgotPasswordScreen.kt | franjojosip | 678,130,646 | false | {"Kotlin": 378486} | package com.fjjukic.furniture4you.ui.auth
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
import androidx.compose.founda... | 0 | Kotlin | 0 | 0 | 548708706a707ecebcc77c00439dc4a6ab230c3a | 3,991 | Furniture4You | MIT License |
protocol/osrs-221-desktop/src/main/kotlin/net/rsprot/protocol/game/incoming/codec/misc/user/BugReportDecoder.kt | blurite | 771,753,685 | false | {"Kotlin": 1458066} | package net.rsprot.protocol.game.incoming.codec.misc.user
import net.rsprot.buffer.JagByteBuf
import net.rsprot.protocol.ClientProt
import net.rsprot.protocol.game.incoming.misc.user.BugReport
import net.rsprot.protocol.game.incoming.prot.GameClientProt
import net.rsprot.protocol.message.codec.MessageDecoder
import ne... | 4 | Kotlin | 2 | 7 | b72a9ddbbf607e357b783c4c8a1f5dc91b5de4f0 | 1,144 | rsprot | MIT License |
app/src/main/java/eu/kanade/domain/source/interactor/GetLanguagesWithSources.kt | scb261 | 381,944,147 | false | null | package eu.kanade.domain.source.interactor
import eu.kanade.domain.source.service.SourcePreferences
import eu.kanade.tachiyomi.util.system.LocaleHelper
import exh.source.BlacklistedSources
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.combine
import tachiyomi.domain.source.model.Source
import tach... | 480 | null | 2438 | 7 | 5a3a2084cbfff68c4187ea55ad6b8fd7be2796b7 | 1,273 | TachiyomiSY | Apache License 2.0 |
cache/src/main/java/com/lekaha/android/boilerplate/cache/db/Db.kt | lekaha | 118,922,178 | false | null | package org.buffer.android.boilerplate.cache.db
/**
* This class defines the tables found within the application Database. All table
* definitions should contain column names and a sequence for creating the table.
*/
object Db {
object BufferooTable {
const val TABLE_NAME = "bufferroos"
const ... | 9 | null | 528 | 7 | 370dbe4fbcd3c59b8d0f27d954ef0efcabb00fef | 798 | android-clean-architecture-component-boilerplate | MIT License |
cosec-core/src/main/kotlin/me/ahoo/cosec/context/SecurityContextParser.kt | Ahoo-Wang | 567,999,401 | false | null | /*
* Copyright [2021-present] [<NAME> <<EMAIL>> (https://github.com/Ahoo-Wang)].
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless... | 1 | null | 4 | 32 | ea4af7a66c1ab4d6560d7f3ba5d7026cd6904c26 | 1,273 | CoSec | Apache License 2.0 |
sykepenger-model/src/main/kotlin/no/nav/helse/serde/api/v2/buildere/GenerasjonerBuilder.kt | navikt | 193,907,367 | false | null | package no.nav.helse.serde.api.v2.buildere
import no.nav.helse.Fødselsnummer
import no.nav.helse.hendelser.Periode
import no.nav.helse.person.*
import no.nav.helse.person.Dokumentsporing.Companion.ider
import no.nav.helse.serde.api.v2.*
import no.nav.helse.sykdomstidslinje.Sykdomshistorikk
import no.nav.helse.utbetali... | 0 | Kotlin | 2 | 4 | a3ba622f138449986fc9fd44e467104a61b95577 | 5,912 | helse-spleis | MIT License |
src/main/kotlin/com/wabradshaw/travelhistory/meta/VersionController.kt | wabradshaw | 143,281,874 | false | null | package com.wabradshaw.travelhistory.vcs.meta
import org.springframework.beans.factory.annotation.Value
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController
/**
* A simple REST controller for debugging purposes that returns the version of travel-hist... | 0 | Kotlin | 0 | 0 | 9e0d18de79f1e98aebdc4364fe0d3a23879c23ac | 834 | travel-history | Apache License 2.0 |
collection/src/main/java/com/example/collection/ServiceProvider.kt | phan29 | 734,278,673 | false | {"Kotlin": 3183} | package com.example.collection
class ServiceProvider {
fun isActive() {
println("yes!! its active")
}
}
| 4 | Kotlin | 0 | 0 | e14030e28b127148cccdc877e6bd27d6d367a28a | 122 | MyApplication | MIT License |
kotest-framework/kotest-framework-engine/src/jvmTest/kotlin/com/sksamuel/kotest/engine/test/timeout/FunctionOverrideInvocationTimeoutTest.kt | kotest | 47,071,082 | false | null | package com.sksamuel.kotest.engine.test.timeout
import io.kotest.core.annotation.EnabledIf
import io.kotest.core.annotation.enabledif.LinuxCondition
import io.kotest.core.spec.style.FunSpec
import io.kotest.core.spec.style.funSpec
import kotlinx.coroutines.delay
import kotlin.time.Duration.Companion.hours
private val... | 160 | null | 648 | 4,435 | 2ce83d0f79e189c90e2d7bb3d16bd4f75dec9c2f | 792 | kotest | Apache License 2.0 |
compiler/testData/diagnostics/tests/qualifiedExpression/calleeExpressionAsCallExpression.kt | android | 263,405,600 | false | null | // !WITH_NEW_INFERENCE
val unwrapped = <!UNRESOLVED_REFERENCE!>some<!><!NI;COMPARE_TO_TYPE_MISMATCH, DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!><<!><!DEBUG_INFO_MISSING_UNRESOLVED!>sdf<!>()()<out <!DEBUG_INFO_MISSING_UNRESOLVED!>Any<!>>::<!DEBUG_INFO_MISSING_UNRESOLVED!>unwrap<!> | 0 | null | 37 | 316 | 74126637a097f5e6b099a7b7a4263468ecfda144 | 273 | kotlin | Apache License 2.0 |
app/src/test-common/java/iyotetsuya/currencyconversion/util/TestUtil.kt | iyotetsuya | 205,386,102 | false | null | package iyotetsuya.currencyconversion.util
import iyotetsuya.currencyconversion.vo.CurrencyRate
import iyotetsuya.currencyconversion.vo.SupportedCurrency
object TestUtil {
fun createSupportedCurrencyList(
count: Int,
code: String,
name: String
): List<SupportedCurrency> {
retu... | 0 | Kotlin | 0 | 0 | 31ce490d25a034143c068f6f3374cdc6609c39a7 | 1,131 | CurrencyDemo | Apache License 2.0 |
src/main/kotlin/io/sapientpants/structurizr/macros/examples/MicroservicesExample.kt | sapientpants | 200,369,045 | false | null | package io.sapientpants.structurizr.macros.examples
import com.structurizr.model.Container
import com.structurizr.model.InteractionStyle.Asynchronous
import com.structurizr.model.InteractionStyle.Synchronous
import com.structurizr.view.Routing
import com.structurizr.view.Shape
import com.structurizr.view.ViewSet
impor... | 0 | Kotlin | 0 | 3 | 5949abeda8b97683a5c1ed5c514637f19d5f5603 | 6,790 | structurizr-macros-examples | MIT License |
platform/testFramework/src/com/intellij/testFramework/IndexingTestUtil.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.testFramework
import com.intellij.diagnostic.ThreadDumper
import com.intellij.openapi.Disposable
import com.intellij.openapi.application.ApplicationListener
import com.intellij.... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 8,340 | intellij-community | Apache License 2.0 |
src/test/kotlin/io/github/michaelliv/lucene4k/IndexSearcherBuilderTest.kt | Michaelliv | 484,571,545 | false | {"Kotlin": 22378} | package io.github.michaelliv.lucene4k
import io.kotest.assertions.throwables.shouldThrow
import io.kotest.core.spec.style.ShouldSpec
import io.kotest.matchers.shouldBe
import io.kotest.matchers.types.shouldBeTypeOf
import org.apache.lucene.analysis.standard.StandardAnalyzer
import org.apache.lucene.index.DirectoryRead... | 0 | Kotlin | 0 | 0 | 6e4ec1edf1a096431a0af203d02f9d61b41b743c | 2,893 | lucene4k | MIT License |
compiler/testData/codegen/box/coroutines/featureIntersection/suspendFunction12.kt | arrow-kt | 109,678,056 | true | null | // !LANGUAGE: -ReleaseCoroutines
// IGNORE_BACKEND: JS_IR, JS
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
// WITH_COROUTINES
// some classes are moved from stdlib to compatibility package
// IGNORE_BACKEND: ANDROID
import helpers.*
import kotlin.coroutines.*
val lambda1 = { x: Any -> } as (Any) -> Unit
val suspendLamb... | 12 | Kotlin | 37 | 43 | d2a24985b602e5f708e199aa58ece652a4b0ea48 | 674 | kotlin | Apache License 2.0 |
modules/dsp/src/main/kotlin/com/bartlomiejpluta/smnp/ext/dsp/DspModule.kt | bartlomiej-pluta | 247,806,164 | false | null | package com.bartlomiejpluta.smnp.ext.dsp
import com.bartlomiejpluta.smnp.ext.dsp.function.FftFunction
import com.bartlomiejpluta.smnp.ext.dsp.function.PlotFunction
import com.bartlomiejpluta.smnp.ext.provider.NativeModuleProvider
import org.pf4j.Extension
@Extension
class DspModule : NativeModuleProvider("smnp.dsp") ... | 0 | Kotlin | 0 | 0 | 88f2089310b2a23b2ce63fb6be23a96db156ea4a | 391 | smnp-kt | MIT License |
modules/dsp/src/main/kotlin/com/bartlomiejpluta/smnp/ext/dsp/DspModule.kt | bartlomiej-pluta | 247,806,164 | false | null | package com.bartlomiejpluta.smnp.ext.dsp
import com.bartlomiejpluta.smnp.ext.dsp.function.FftFunction
import com.bartlomiejpluta.smnp.ext.dsp.function.PlotFunction
import com.bartlomiejpluta.smnp.ext.provider.NativeModuleProvider
import org.pf4j.Extension
@Extension
class DspModule : NativeModuleProvider("smnp.dsp") ... | 0 | Kotlin | 0 | 0 | 88f2089310b2a23b2ce63fb6be23a96db156ea4a | 391 | smnp-kt | MIT License |
compiler/src/main/kotlin/edu/cornell/cs/apl/viaduct/syntax/Variable.kt | apl-cornell | 169,159,978 | false | null | package edu.cornell.cs.apl.viaduct.syntax
import edu.cornell.cs.apl.prettyprinting.AnsiBaseColor
import edu.cornell.cs.apl.prettyprinting.AnsiColor
import edu.cornell.cs.apl.prettyprinting.Document
import edu.cornell.cs.apl.prettyprinting.NormalColor
import edu.cornell.cs.apl.prettyprinting.Style
import edu.cornell.cs... | 20 | Kotlin | 4 | 11 | 2352c676305c595d235bc9024770fc622efb8aa2 | 1,130 | viaduct | MIT License |
dcache/src/main/java/dora/http/DoraHttp.kt | dora4 | 378,306,065 | false | null | package dora.http
import android.app.Activity
import androidx.fragment.app.Fragment
import dora.http.coroutine.ContextContinuation
import dora.http.coroutine.DoraCoroutineContext
import dora.http.exception.DoraHttpException
import dora.http.rx.RxTransformer
import io.reactivex.Observable
import io.reactivex.Observer
i... | 0 | Kotlin | 1 | 9 | 40fc603de22c8bfd58cd1f923f8f6065e2bb085f | 4,120 | dcache-android | Apache License 2.0 |
app/src/main/java/com/rekyb/jyro/common/Resources.kt | rekyb | 421,738,590 | false | {"Kotlin": 77959} | package com.rekyb.jyro.common
sealed class Resources<out T> {
object Loading : Resources<Nothing>()
data class Success<out T>(val data: T) : Resources<T>()
data class Error<out T>(val message: String) : Resources<T>()
}
| 0 | Kotlin | 0 | 2 | 1e3ac8c8f3372275c25137ccd153d52688bad639 | 233 | github-app | MIT License |
tv/src/main/java/com/aastudio/sarollahi/moviebox/views/fragments/RootMovieViewModel.kt | sarollahi | 327,908,585 | false | {"Kotlin": 450483} | /*
* Copyright (C) 2021 <NAME>
* All rights reserved.
*/
package com.aastudio.sarollahi.moviebox.views.fragments
import android.app.Application
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.aastudio.sarollahi.api.model.Movie
import com.aastudio.sarollahi.api.repository.Re... | 0 | Kotlin | 0 | 0 | 17acb53f4ab51e40126fa3136f851eb8895074c2 | 929 | MovieBox-Kotlin | Apache License 2.0 |
apollo-compiler/src/main/kotlin/com/apollographql/apollo3/compiler/codegen/kotlin/file/ObjectBuilder.kt | wavemm | 111,576,468 | false | null | package com.apollographql.apollo3.compiler.codegen.kotlin.file
import com.apollographql.apollo3.compiler.codegen.Identifier
import com.apollographql.apollo3.compiler.codegen.kotlin.CgFile
import com.apollographql.apollo3.compiler.codegen.kotlin.CgFileBuilder
import com.apollographql.apollo3.compiler.codegen.kotlin.Kot... | 1 | null | 1 | 1 | 95bf818206e70fbb6f84dff5b960b9c1cf18c7db | 6,331 | apollo-android | MIT License |
app/src/main/java/com/vicky7230/sunny/ui/weather/city/CityWeatherFragment.kt | vicky7230 | 188,676,424 | false | null | package com.sandoval.bogosunny.ui.weather.city
import android.annotation.SuppressLint
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.widget.AppCompatTextView
import androidx.lifecycle.ViewModelP... | 0 | Kotlin | 5 | 6 | f46bf5ab713070e338618392780b9cbeca3bf1cf | 10,291 | Sunny | Apache License 2.0 |
app/src/main/java/com/mapbox/maps/testapp/examples/markersandcallouts/PolylineAnnotationActivity.kt | mapbox | 330,365,289 | false | null | package com.mapbox.maps.testapp.examples.markersandcallouts
import android.graphics.Color
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.lifecycleScope
import com.mapbox.geojson.FeatureCollection
import com.mapbox.geojson.Point
import com.... | 232 | null | 131 | 472 | 2700dcaf18e70d23a19fc35b479bff6a2d490475 | 5,497 | mapbox-maps-android | Apache License 2.0 |
baselibrary/src/main/kotlin/com/huawen/baselibrary/views/bannerother/banner/ScrollState.kt | cc17236 | 297,074,446 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Kotlin": 412, "XML": 48, "Java": 91} | package com.huawen.baselibrary.views.bannerother.banner
import androidx.recyclerview.widget.RecyclerView
/**
* 滑动状态
* @author Lollipop
*/
enum class ScrollState(val value: Int) {
/**
* RecyclerView目前不在滚动。
* The RecyclerView is not currently scrolling.
*/
IDLE(RecyclerView.SCROLL_STATE_IDLE... | 0 | Kotlin | 0 | 0 | 219c6d63fee41a9f28e9f935a3d222159d12d5e3 | 921 | AnroidKotlinSample | Apache License 2.0 |
net.akehurst.language/agl-processor/src/commonTest/kotlin/api/processor/test_LanguageProcessor_scan.kt | dhakehurst | 197,245,665 | false | {"Kotlin": 3541898, "ANTLR": 64742, "Rascal": 17698, "Java": 14313, "PEG.js": 6866, "JavaScript": 5287, "BASIC": 22} | /**
* Copyright (C) 2018 Dr. David H. Akehurst (http://dr.david.h.akehurst.net)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 3 | Kotlin | 7 | 45 | 177abcb60c51efcfc2432174f5d6620a7db89928 | 5,278 | net.akehurst.language | Apache License 2.0 |
prime-router/src/main/kotlin/azure/SettingsFacade.kt | CDCgov | 304,423,150 | false | null | package gov.cdc.prime.router.azure
import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.databind.SerializationFeature
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper... | 834 | null | 35 | 35 | 2d9551487ce5b352a9043cd677b67ab7711ea509 | 14,178 | prime-reportstream | Creative Commons Zero v1.0 Universal |
exact-numbers/src/test/kotlin/xyz/lbres/exactnumbers/irrationals/pi/simplifyListTests.kt | lbressler13 | 491,698,766 | false | {"Kotlin": 217363} | package xyz.lbres.exactnumbers.irrationals.pi
import xyz.lbres.exactnumbers.irrationals.log.Log
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith
fun runSimplifyListTests() {
// error
assertFailsWith<ClassCastException> { Pi.simplifyList(listOf(Pi(), Log.ONE)) }
// equal
var expected... | 0 | Kotlin | 0 | 2 | b839a77a73599b2e156b80ef81defbcd2e4e8a89 | 1,746 | exact-numbers | MIT License |
core/src/test/java/br/ufs/nubankchallenge/core/tests/infrastructure/CreditcardSecurityInfrastructureTests.kt | ubiratansoares | 111,469,213 | false | null | package br.ufs.nubankchallenge.core.tests.infrastructure
import br.ufs.nubankchallenge.core.domain.errors.InfrastructureError
import br.ufs.nubankchallenge.core.domain.errors.NetworkingIssue
import br.ufs.nubankchallenge.core.infrastructure.CreditcardSecurityInfrastrucure
import br.ufs.nubankchallenge.core.infrastruct... | 0 | Kotlin | 5 | 20 | d0b863a338b04ef40068f005c72b9d8e8335bc26 | 2,762 | nubank-challenge | MIT License |
app/src/main/kotlin/dev/nthduc/hoshino/extensions/anilist/model/MediaTitle.kt | Ai-Hoshino-Bot | 661,052,744 | false | null | package bogus.extension.anilist.model
import kotlinx.serialization.Serializable
/**
* The official titles of the media in various languages
*/
@Serializable
data class MediaTitle(
/**
* The official english title
*/
val english: String? = null,
/**
* The romanization of the native languag... | 0 | null | 1 | 1 | 5922a0911a82e54e9270e4a23cba705553b1f7d1 | 463 | ai-hoshino-bot | MIT License |
app/src/main/java/com/example/familygallery/view/ViewMembersActivity.kt | PromasterGuru | 220,758,647 | false | null | package com.example.familygallery.view
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.example.familygallery.R
class ViewMembersActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentVi... | 0 | Kotlin | 0 | 0 | 5b36ae5fd174cb85d5abcacc90320ec6b154875d | 363 | FamilyGallery | MIT License |
src/test/kotlin/com/github/rushyverse/core/utils/Generator.kt | Rushyverse | 578,345,115 | false | null | package com.github.rushyverse.core.utils
import io.github.universeproject.kotlinmojangapi.ProfileId
import io.github.universeproject.kotlinmojangapi.ProfileSkin
import java.util.*
val stringGenerator = generateSequence { UUID.randomUUID().toString() }.distinct().iterator()
fun getRandomString() = stringGenerator.nex... | 6 | Kotlin | 0 | 2 | cd3625be44410c365d2982016be647419d12bddf | 647 | core | MIT License |
components/info/impl/src/main/java/com/flipperdevices/info/impl/compose/elements/ComposableConnectedDeviceActionCard.kt | rougsig | 454,959,820 | true | {"Kotlin": 1053761, "FreeMarker": 2643, "Fluent": 7} | package com.flipperdevices.info.impl.compose.elements
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.ui.Modifier
import androidx.lifecycle.viewmodel.compose.viewModel
import com.flipperdevices.core.ui.res.R as D... | 0 | Kotlin | 0 | 0 | 29088877484ab201e87aa48177cc0942e60c08b2 | 2,768 | Flipper-Android-App | MIT License |
src/main/kotlin/me/fzzyhmstrs/amethyst_imbuement/spells/MentalClarityAugment.kt | fzzyhmstrs | 461,338,617 | false | null | package me.fzzyhmstrs.amethyst_imbuement.scepter
import me.fzzyhmstrs.amethyst_core.interfaces.SpellCastingEntity
import me.fzzyhmstrs.amethyst_core.modifier_util.AugmentConsumer
import me.fzzyhmstrs.amethyst_core.modifier_util.AugmentEffect
import me.fzzyhmstrs.amethyst_core.scepter_util.LoreTier
import me.fzzyhmstrs... | 17 | null | 9 | 4 | 49ef2119816a9fc75f4ed2508fc1ac35a009c6a9 | 2,712 | ai | MIT License |
src/main/kotlin/me/fzzyhmstrs/amethyst_imbuement/spells/MentalClarityAugment.kt | fzzyhmstrs | 461,338,617 | false | null | package me.fzzyhmstrs.amethyst_imbuement.scepter
import me.fzzyhmstrs.amethyst_core.interfaces.SpellCastingEntity
import me.fzzyhmstrs.amethyst_core.modifier_util.AugmentConsumer
import me.fzzyhmstrs.amethyst_core.modifier_util.AugmentEffect
import me.fzzyhmstrs.amethyst_core.scepter_util.LoreTier
import me.fzzyhmstrs... | 17 | null | 9 | 4 | 49ef2119816a9fc75f4ed2508fc1ac35a009c6a9 | 2,712 | ai | MIT License |
androidbasic/app/src/main/java/com/yunjaena/androidbasic/PermissionActivity.kt | yunjaena | 278,050,796 | false | {"Java": 212368, "Kotlin": 159158} | package com.yunjaena.androidbasic
import android.content.pm.PackageManager
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import kotlinx.android.synthetic.main.activity_permission.*
cla... | 1 | null | 1 | 1 | a80a9e5a55c58976c6ba2aec5e3365d0687231c4 | 1,677 | android_study | Apache License 2.0 |
androidbasic/app/src/main/java/com/yunjaena/androidbasic/PermissionActivity.kt | yunjaena | 278,050,796 | false | {"Java": 212368, "Kotlin": 159158} | package com.yunjaena.androidbasic
import android.content.pm.PackageManager
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import kotlinx.android.synthetic.main.activity_permission.*
cla... | 1 | null | 1 | 1 | a80a9e5a55c58976c6ba2aec5e3365d0687231c4 | 1,677 | android_study | Apache License 2.0 |
app/src/main/java/me/wcy/androidweekly/widget/radapter/RSingleDelegate.kt | wangchenyan | 125,049,324 | false | {"Gradle": 3, "JSON": 1, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "XML": 34, "Kotlin": 43, "Java": 2} | package me.wcy.androidweekly.widget.radapter
/**
* Created by hzwangchenyan on 2018/1/17.
*/
class RSingleDelegate<T>(private val clazz: Class<out RViewHolder<T>>) : RAdapterDelegate<T> {
override fun getViewHolderClass(position: Int): Class<out RViewHolder<T>> {
return clazz
}
}
| 0 | Kotlin | 0 | 0 | 7112c589d01b9dd5a71db8194de0757c241c200f | 301 | android-weekly | Apache License 2.0 |
emoji-ios/src/main/java/dev/leonardpark/emoji/ios/category/PeopleCategory.kt | leokwsw | 410,840,614 | false | {"Kotlin": 2112009, "JavaScript": 13836} | package dev.leonardpark.emoji.ios.category
import dev.leonardpark.emoji.emoji.Emoji
import dev.leonardpark.emoji.emoji.EmojiCategory
import dev.leonardpark.emoji.ios.R;
@SuppressWarnings("PMD.MethodReturnsInternalArray")
class PeopleCategory: EmojiCategory {
companion object {
private val DATA = listOf(
E... | 1 | Kotlin | 2 | 6 | 47558b5d81c5bb7c86b988dfa9b192bee706f897 | 164,815 | Emoji-Keyboard | Apache License 2.0 |
tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/chat/members/BanChatMember.kt | InsanusMokrassar | 163,152,024 | false | null | package dev.inmo.tgbotapi.extensions.api.chat.members
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.chat.members.BanChatMember
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.chat.PublicChat
import dev.inmo.tgbotapi.types.chat.User
suspend fun TelegramBot.banChatMember(
... | 9 | null | 29 | 99 | 8206aefbb661db936d4078a8ef7cc9cecb5384e4 | 1,151 | TelegramBotAPI | Apache License 2.0 |
src/test/kotlin/com/winterbe/challenge/StringRotation.kt | winterbe | 152,978,821 | false | null | package com.winterbe.challenge
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
/**
* Check if s2 is a rotation of s1. You can use at most one invocation to `String.isSubstring()`.
*/
fun isRotation(s1: String, s2: String): Boolean {
if (s1 == s2) {
return true
}
... | 0 | Kotlin | 4 | 9 | 3a0a911e4f601261ddb544da86647530371c8ba9 | 1,891 | challenge | MIT License |
klogging/src/commonMain/kotlin/io/klogging/config/KloggingConfiguration.kt | klogging | 378,410,833 | false | null | /*
Copyright 2021-2023 <NAME>.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... | 20 | null | 9 | 91 | 89ae2ddc6aedc9f4f68267ebd8b0b0f0da43e81d | 6,416 | klogging | Apache License 2.0 |
src/test/aoc2018/Day22Test.kt | nibarius | 154,152,607 | false | {"Kotlin": 963896} | package test.aoc2018
import aoc2018.Day22
import org.junit.Assert.assertEquals
import org.junit.Test
import resourceAsList
class Day22Test {
val testInput = listOf("depth: 510",
"target: 10,10"
)
@Test
fun partOneTestInput() {
val d22 = Day22(testInput)
//d22.printMap(15, ... | 0 | Kotlin | 0 | 6 | f2ca41fba7f7ccf4e37a7a9f2283b74e67db9f22 | 758 | aoc | MIT License |
tabler-icons/src/commonMain/kotlin/compose/icons/tablericons/Photo.kt | DevSrSouza | 311,134,756 | false | null | package compose.icons.tablericons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.compose.ui.graphic... | 17 | null | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 3,108 | compose-icons | MIT License |
phoenix-shared/src/commonMain/kotlin/fr.acinq.phoenix/controllers/init/RestoreWallet.kt | ACINQ | 192,964,514 | false | null | package fr.acinq.phoenix.controllers.init
import fr.acinq.phoenix.controllers.MVI
import fr.acinq.phoenix.utils.MnemonicLanguage
object RestoreWallet {
sealed class Model : MVI.Model() {
object Ready : Model()
data class FilteredWordlist(
val uuid: String,
val predicate: ... | 97 | null | 96 | 666 | 011c8b85f16ea9ad322cbbba2461439c5e2b0aed | 2,936 | phoenix | Apache License 2.0 |
common/sv-save/src/main/kotlin/io/stardewvalleydesigner/save/models/Building.kt | AzimMuradov | 377,785,069 | false | null | /*
* Copyright 2021-2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 7 | Kotlin | 0 | 3 | 346c58c0e64117dfd59ef02fd2ef14a6699a561d | 1,677 | stardew-valley-designer | Apache License 2.0 |
health/health-services-client/src/main/java/androidx/health/services/client/data/PassiveMonitoringUpdate.kt | androidx | 256,589,781 | false | {"Kotlin": 112114129, "Java": 66594571, "C++": 9132142, "AIDL": 635065, "Python": 325169, "Shell": 194520, "TypeScript": 40647, "HTML": 35176, "Groovy": 27178, "ANTLR": 26700, "Svelte": 20397, "CMake": 15512, "C": 15043, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 29 | Kotlin | 740 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 2,124 | androidx | Apache License 2.0 |
health/health-services-client/src/main/java/androidx/health/services/client/data/PassiveMonitoringUpdate.kt | androidx | 256,589,781 | false | {"Kotlin": 112114129, "Java": 66594571, "C++": 9132142, "AIDL": 635065, "Python": 325169, "Shell": 194520, "TypeScript": 40647, "HTML": 35176, "Groovy": 27178, "ANTLR": 26700, "Svelte": 20397, "CMake": 15512, "C": 15043, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 29 | Kotlin | 740 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 2,124 | androidx | Apache License 2.0 |
app/src/main/java/br/com/aline/alcoolOugasolina/ui/theme/Type.kt | al1neferreira | 794,543,710 | false | {"Kotlin": 12279} | package br.com.aline.alcoolOugasolina.ui.theme
import androidx.compose.material3.Typography
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.Font
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.sp
import br.co... | 0 | Kotlin | 0 | 0 | 06e24cf7df93ea7c8cdbcb4a2fa8a4e709c031f8 | 1,147 | Calculadora_Alcool_Gasolina | MIT License |
app/src/main/java/io/github/wulkanowy/data/db/dao/GradeSummaryDao.kt | dominik-korsa | 167,613,504 | true | {"Kotlin": 668158, "Shell": 220, "IDL": 131} | package io.github.wulkanowy.data.db.dao
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import io.github.wulkanowy.data.db.entities.GradeSummary
import io.reactivex.Maybe
import javax.inject.Singleton
@Singleton
@Dao
interface GradeSummaryDao {
@Insert
... | 0 | Kotlin | 0 | 0 | ba84f2be6ea7f4722560d7323a0c314f88614b75 | 621 | wulkanowy | Apache License 2.0 |
app/src/main/java/org/p2p/wallet/home/analytics/HomeAnalytics.kt | p2p-org | 306,035,988 | false | null | package org.p2p.wallet.home.analytics
import org.p2p.wallet.common.analytics.Analytics
import org.p2p.wallet.common.analytics.constants.EventNames.HOME_USER_AGGREGATE_BALANCE
import org.p2p.wallet.common.analytics.constants.EventNames.HOME_USER_HAS_POSITIVE_BALANCE
import java.math.BigDecimal
private const val TOKEN_... | 8 | Kotlin | 16 | 28 | 71b282491cdafd26be1ffc412a971daaa9c06c61 | 2,301 | key-app-android | MIT License |
buffer/src/commonMain/kotlin/mqtt/buffer/WriteBuffer.kt | thebehera | 171,056,445 | false | null | package mqtt.buffer
import kotlin.experimental.or
import kotlin.reflect.KClass
@ExperimentalUnsignedTypes
interface WriteBuffer {
fun resetForWrite()
fun write(byte: Byte): WriteBuffer
fun write(bytes: ByteArray): WriteBuffer
fun write(uByte: UByte): WriteBuffer
fun write(uShort: UShort): WriteBuf... | 2 | Kotlin | 1 | 32 | 2f2d176ca1d042f928fba3a9c49f4bc5ff39495f | 2,014 | mqtt | Apache License 2.0 |
logcat/src/com/android/tools/idea/logcat/actions/CopyMessageTextAction.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 1,909 | android | Apache License 2.0 |
test-utils/src/main/kotlin/org/jetbrains/workspace/model/matchers/entries/ExpectedContentRootEntity.kt | JetBrains | 521,228,542 | false | null | package org.jetbrains.workspace.model.matchers.entries
import com.intellij.platform.workspace.jps.entities.ContentRootEntity
import com.intellij.platform.workspace.jps.entities.ModuleEntity
import com.intellij.platform.workspace.storage.url.VirtualFileUrl
import io.kotest.matchers.collections.shouldContainExactlyInAny... | 2 | null | 3 | 9 | a039912ea7d07ca9fbf2992d64bafaddf4ff13c0 | 1,404 | intellij-bsp | Apache License 2.0 |
flutter_expo_map/android/app/src/main/kotlin/com/example/flutter_expo_map/MainActivity.kt | Fimba-Code | 264,306,501 | false | null | package com.example.flutter_expo_map
import androidx.annotation.NonNull;
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.plugins.GeneratedPluginRegistrant
class MainActivity: FlutterActivity() {
override fun configureFlutterEngine(@NonNull flu... | 14 | Dart | 2 | 10 | aae76fc16904e464e4f23c945637f392217a51d1 | 420 | map-challenges | MIT License |
app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupCreateService.kt | Jays2Kings | 175,908,029 | false | null | package eu.kanade.tachiyomi.data.backup
import android.app.Service
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.IBinder
import android.os.PowerManager
import androidx.core.content.ContextCompat
import androidx.core.net.toUri
import com.hippo.unifile.UniFile
impo... | 86 | null | 71 | 974 | 928f7553bf800cbbc9006e7242f78741dfd64179 | 3,946 | tachiyomiJ2K | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.