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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/dev/crashteam/uzumanalytics/converter/view/CategoryHistoryToDataConverter.kt | crashteamdev | 647,366,680 | false | null | package dev.crashteam.keanalytics.controller.converter
import dev.crashteam.keanalytics.controller.model.CategoryDataView
import dev.crashteam.keanalytics.controller.model.CategorySalesSellerView
import dev.crashteam.keanalytics.controller.model.CategorySalesView
import dev.crashteam.keanalytics.controller.model.Categ... | 3 | Kotlin | 0 | 0 | eebed26e9761ec2ccd12d6a1968098afdb2afc39 | 1,660 | uzum-analytics | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/viewmodel/PuppyViewModel.kt | houzhi0608 | 343,264,617 | 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... | 0 | Kotlin | 0 | 1 | 73021f61baeb86384da5e87d77e15d9cff9394cd | 4,990 | ComposePuppyPractice | Apache License 2.0 |
src/main/java/com/sdk/platform/cart/CartApiList.kt | gofynd | 337,940,340 | false | {"Kotlin": 2555012, "Java": 179} | package com.sdk.platform.cart
import kotlinx.coroutines.Deferred
import retrofit2.Response
import okhttp3.ResponseBody
import retrofit2.http.*
import com.sdk.platform.*
interface CartApiList {
@GET ("/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/coupon")
suspend fun getCou... | 0 | Kotlin | 4 | 4 | b81d45fee846ba5f6c713d9e84bf7f47a26aedab | 20,925 | fdk-client-kotlin | MIT License |
src/main/java/com/sdk/platform/cart/CartApiList.kt | gofynd | 337,940,340 | false | {"Kotlin": 2555012, "Java": 179} | package com.sdk.platform.cart
import kotlinx.coroutines.Deferred
import retrofit2.Response
import okhttp3.ResponseBody
import retrofit2.http.*
import com.sdk.platform.*
interface CartApiList {
@GET ("/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/coupon")
suspend fun getCou... | 0 | Kotlin | 4 | 4 | b81d45fee846ba5f6c713d9e84bf7f47a26aedab | 20,925 | fdk-client-kotlin | MIT License |
compiler/testData/klibABI/removeInlinedClass/lib2/l2.kt | JetBrains | 3,432,266 | false | null | class Bar : Foo()
inline fun fooVariableType() {
val foo: Foo? = null
check(foo == null)
}
inline fun barVariableType() {
val bar: Bar? = null
check(bar == null)
}
inline fun fooInstance() {
check(Foo().toString() != "Qux")
}
inline fun barInstance() {
check(Bar().toString() != "Qux")
}
inl... | 147 | Kotlin | 5411 | 43,797 | a8f547d080724fae3a45d675a16c5b3fc2f13b17 | 554 | kotlin | Apache License 2.0 |
safenullextension/src/main/java/com/xavijimenezmulet/safenullextension/util/SaveNullExtension.kt | xavijimenezmulet | 497,028,847 | false | {"Kotlin": 9552} | package com.xavijimenezmulet.safenullextension.util
/**
* @author Xavier Jimenez Mulet
* @since 27/5/22
* @email xavijimenezmulet@gmail.com
*/
// =================================================================================================
// Integer Types
// =================================================... | 0 | Kotlin | 1 | 7 | c36ba3265e06adc58a80db967b4565b3dd1cc815 | 2,459 | SaveNullExtensionKotlin | Apache License 2.0 |
array/src/commonMain/kotlin/array/builtins/commute.kt | lokedhs | 236,192,362 | false | null | package array.builtins
import array.*
class CommuteOp : APLOperatorOneArg {
override fun combineFunction(fn: APLFunction, operatorAxis: Instruction?, pos: Position): APLFunctionDescriptor {
if (operatorAxis != null) {
throwAPLException(AxisNotSupported(pos))
}
return CommuteFun... | 0 | Kotlin | 2 | 36 | 1c02fe808761d311773558bb468a606b6e7b557a | 1,371 | array | MIT License |
gradle-plugin-api/src/main/kotlin/dev/teogor/stitch/api/OperationGenerationLevel.kt | teogor | 753,542,171 | false | {"Kotlin": 114232} | /*
* Copyright 2024 teogor (<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 agree... | 0 | Kotlin | 0 | 2 | cbc2c8993fc7ad79c33ec3f5e4b2cfbabc62cf37 | 1,999 | stitch | Apache License 2.0 |
devicefreefalllib/src/main/java/com/xbird/devicefreefalllib/FreefallService.kt | varunjain0888 | 247,694,460 | false | null | package com.xbird.devicefreefalllib
import android.R
import android.app.*
import android.content.Context
import android.content.Intent
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import android.hardware.SensorManager
import android.os.Build
import andr... | 1 | Kotlin | 1 | 4 | ef5064dcbcfe6f220d7c2a6a22a0528cf5f83dfb | 6,163 | Device-Free-Fall-library | Apache License 2.0 |
compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/CommonBackendErrors.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2023 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 org.jetbrains.kotlin.backend.common
import com.intellij.psi.PsiElement
import org.jetbrains.kotlin.de... | 151 | Kotlin | 5478 | 44,267 | 7545472dd3b67d2ac5eb8024054e3e6ff7795bf6 | 1,534 | kotlin | Apache License 2.0 |
meistercharts-history/meistercharts-history-core/src/jvmTest/kotlin/com/meistercharts/history/impl/HistoryAutoScaleTest.kt | Neckar-IT | 599,079,962 | false | null | /**
* 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 | null | 3 | 5 | ed849503e845b9d603598e8d379f6525a7a92ee2 | 6,224 | meistercharts | Apache License 2.0 |
target/android/src/main/java/com/krossovochkin/kweather/AppModule.kt | krossovochkin | 266,317,132 | false | null | package com.krossovochkin.kweather
import android.app.Application
import android.content.Context
import com.krossovochkin.kweather.network.DI_TAG_API_KEY
import com.krossovochkin.kweather.network.DI_TAG_MAPBOX_API_KEY
import com.krossovochkin.lifecycle.lifecycleModule
import com.krossovochkin.permission.permissionModu... | 0 | Kotlin | 2 | 37 | 727d74e19020f1be508af87ced18c53e5ee4fca2 | 840 | KWeather | Apache License 2.0 |
core/src/main/kotlin/com/github/dod/doddy/users/User.kt | Devs-On-Discord | 145,478,771 | false | null | package com.github.dod.doddy.users
data class User(val id: String,
val guildReputations: Map<String, Long>) {
fun getGlobalReputation() = guildReputations.values.max() ?: 0
} | 0 | Kotlin | 6 | 10 | 428bf7468b69f7ab24fc1b24103ff48bff1c184a | 195 | DoDdy | MIT License |
pluto/src/main/java/com/mocklets/pluto/modules/preferences/ui/SharedPrefEditDialog.kt | mocklets | 459,260,997 | false | null | package com.mocklets.pluto.modules.preferences.ui
import android.graphics.drawable.ColorDrawable
import android.text.InputType
import android.view.View
import android.view.View.GONE
import android.view.View.VISIBLE
import android.widget.FrameLayout
import androidx.core.content.ContextCompat
import androidx.core.widget... | 0 | null | 2 | 8 | 87dc5a27272e0fc5c38e042fa95689a143ae5446 | 5,750 | pluto | Apache License 2.0 |
coroutines/src/commonMain/kotlin/dev/inmo/micro_utils/coroutines/DataAsDeferred.kt | InsanusMokrassar | 295,712,640 | false | null | package dev.inmo.micro_utils.coroutines
import kotlinx.coroutines.CompletableDeferred
import kotlinx.coroutines.Deferred
val <T> T.asDeferred: Deferred<T>
get() = CompletableDeferred(this)
| 3 | Kotlin | 0 | 8 | ba16bad0293b087ab77e540109c946bebaabf6dd | 195 | MicroUtils | Apache License 2.0 |
app/src/main/java/zinus/feh/activity/NationActivity.kt | Defwentz | 110,392,323 | false | null | package zinus.feh.activity
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.ListView
import org.jetbrains.anko.doAsync
import zinus.feh.DataOp
import zinus.feh.R
import zinus.feh.adapter.NationAdapter
import zinus.feh.bean.MHeroBean
import zinus.feh.database
class Nation... | 0 | Kotlin | 0 | 1 | 84b1706d731b980f0e00587238e22e2050adc37a | 1,109 | feh-helper | MIT License |
appcues/src/main/java/com/appcues/action/appcues/RequestReviewAction.kt | appcues | 413,524,565 | false | null | package com.appcues.action.appcues
import android.content.Context
import com.appcues.action.ExperienceAction
import com.appcues.data.model.AppcuesConfigMap
import com.appcues.ui.InAppReviewActivity
import kotlinx.coroutines.CompletableDeferred
import org.koin.core.scope.Scope
internal class RequestReviewAction(
o... | 2 | Kotlin | 1 | 9 | 944511391b720bf387f86b795630b532b5e1e516 | 799 | appcues-android-sdk | MIT License |
data/src/main/java/com/example/data/local/FavAnimeDataBase.kt | byronsanchez0 | 651,670,123 | false | null | package com.example.data.local
import androidx.room.Database
import androidx.room.RoomDatabase
@Database(entities = [EntityFavAnime::class], version = 1)
abstract class FavAnimeDataBase : RoomDatabase() {
abstract fun animeDao(): DaoFavAnime
}
| 0 | Kotlin | 0 | 0 | b33306c562dc4702c8be6a639ad636ab3f656beb | 250 | AnimeCleanApp | MIT License |
scientist4k-application/scientist4k-application-common/src/main/kotlin/com/github/squirrelgrip/app/common/configuration/WebSecurityConfiguration.kt | SquirrelGrip | 247,915,957 | true | {"Kotlin": 234965, "JavaScript": 2164, "HTML": 1653, "CSS": 930} | package com.github.squirrelgrip.app.common.configuration
import org.springframework.beans.factory.annotation.Value
import org.springframework.context.annotation.Configuration
import org.springframework.context.annotation.PropertySource
import org.springframework.security.config.annotation.authentication.builders.Authe... | 0 | Kotlin | 0 | 2 | 5c88eb2bf0275c1c8ad139a78c9a1222f499ce4e | 2,199 | Scientist4K | MIT License |
app/src/main/java/com/example/yourdevice/User.kt | Padmaja7664 | 670,553,666 | false | {"Kotlin": 17870} | package com.example.yourdevice
data class User(val name:String,val userId:String,val email:String,val phone:String,val pass:String)
| 0 | Kotlin | 0 | 1 | 70636cce330512b96fc868c95d59a7ee8252d6c6 | 133 | Your-Device | MIT License |
ingestion/base/src/test/kotlin/io/exflo/ingestion/TruffleSpecs.kt | 41north | 237,284,768 | false | null | /*
* Copyright (c) 2020 41North.
*
* 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... | 16 | null | 7 | 17 | 218d6f83db11268d8e5cb038e96f1d3fcd0a6cc0 | 5,981 | besu-exflo | Apache License 2.0 |
app/src/main/kotlin/com/harison/core/app/platform/BaseFullScreenDialogFragment.kt | Hung2299 | 735,100,037 | false | {"Kotlin": 133847} | package com.harison.core.app.platform
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.WindowCompat
import androidx.core.view.WindowInsetsCompat
import androidx.core.view.WindowInsetsControllerCompat
import androidx.databinding... | 0 | Kotlin | 0 | 0 | 9faf0a3e230f990aac2e2a1731ce38c5f550d7cc | 2,036 | android-base-quick-ads | MIT License |
ktor-core/test/org/jetbrains/ktor/tests/nio/AsyncSkipAndCutTest.kt | cbeust | 64,515,203 | true | {"Kotlin": 928027, "FreeMarker": 6356, "CSS": 5404, "HTML": 1964, "JavaScript": 1451, "Shell": 158} | package org.jetbrains.ktor.tests.nio
import org.jetbrains.ktor.nio.*
import org.junit.*
import java.nio.*
import kotlin.test.*
class AsyncSkipAndCutTest {
@Test
fun testCutOnly() {
val source = { asyncOf("Hello, async!") }
assertEquals("Hello, async!", SkipAndCutReadChannel(source(), 0L, 1000... | 0 | Kotlin | 0 | 1 | 8dc7ac666a336cba0f23a72cc31b8c0b14ad4f09 | 2,066 | ktor | Apache License 2.0 |
graphql-core/src/test/kotlin/io/github/wickedev/graphql/directives/AppendEdgeDirectiveTest.kt | wickedev | 439,584,762 | false | {"Kotlin": 269467, "JavaScript": 6748, "Java": 2439, "CSS": 1699} | package io.github.wickedev.graphql.directives
import com.expediagroup.graphql.generator.extensions.print
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.string.shouldContain
class AppendEdgeDirectiveTest : FunSpec({
test("APPEND_EDGE_DIRECTIVE_TYPE generate directive @appendEdge") {
val... | 0 | Kotlin | 0 | 19 | d6913beaecf9e7ef065acdb1805794a10b07d55e | 930 | graphql-jetpack | The Unlicense |
fontawesome/src/de/msrd0/fontawesome/icons/FA_WINDOW_RESTORE.kt | msrd0 | 363,665,023 | false | null | /* @generated
*
* This file is part of the FontAwesome Kotlin library.
* https://github.com/msrd0/fontawesome-kt
*
* This library is not affiliated with FontAwesome.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 0 | Kotlin | 0 | 0 | e757d073562077a753280bf412eebfc4a9121b33 | 1,418 | fontawesome-kt | Apache License 2.0 |
data/network/src/main/java/io/filmtime/data/network/trakt/TraktMovieIDLookupResponse.kt | moallemi | 633,160,161 | false | null | package io.filmtime.data.network.trakt
import kotlinx.serialization.Serializable
@Serializable
data class TraktMovieIDLookupResponse(
val type: String,
val score: Long,
val movie: Movie,
)
@Serializable
data class Movie(
val title: String,
val year: Long,
val ids: IDS,
)
@Serializable
data class IDS(
... | 21 | null | 14 | 87 | ad3eeed30bed20216a9fa12e34f06e43b70a74cc | 395 | Film-Time | MIT License |
nlp/front/shared/src/main/kotlin/test/TestBuild.kt | theopenconversationkit | 84,538,053 | false | null | /*
* Copyright (C) 2017/2021 e-voyageurs technologies
*
* 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... | 163 | null | 127 | 475 | 890f69960997ae9146747d082d808d92ee407fcb | 2,073 | tock | Apache License 2.0 |
src/main/kotlin/com/yearsaday/qna/spring/repository/QuestionRepository.kt | reavil01 | 411,887,886 | false | {"Kotlin": 37286, "JavaScript": 12733, "HTML": 1726, "CSS": 930} | package com.yearsaday.qna.spring.repository
import com.yearsaday.qna.spring.entity.QuestionEntity
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.stereotype.Repository
@Repository
interface QuestionRepository: JpaRepository<QuestionEntity, Int>{
fun findByMonthAndDay(month... | 0 | Kotlin | 0 | 0 | 694c38404839e387c4015635c9493c74a4c9e3b1 | 356 | qna-5years-a-day | Apache License 2.0 |
libraries/authentication/src/main/java/de/schnettler/scrobbler/authentication/provider/LastFmAuthProviderImpl.kt | nschnettler | 260,203,355 | false | null | package de.schnettler.repo.authentication.provider
import de.schnettler.database.daos.SessionDao
import de.schnettler.lastfm.LastFmAuthProvider
import javax.inject.Inject
class LastFmAuthProviderImpl @Inject constructor(
private val dao: SessionDao
) : LastFmAuthProvider {
val sessionLive = dao.getSession()
... | 10 | null | 5 | 57 | 523d0b739901b971fd41e09258dcab6dcb1c8e58 | 444 | Compose-Scrobbler | Apache License 2.0 |
src/main/kotlin/dev/turingcomplete/kotlinonetimepassword/RandomSecretGenerator.kt | marcelkliemannel | 119,086,726 | false | null | package dev.turingcomplete.kotlinonetimepassword
import java.security.SecureRandom
/**
* Generator to create a secure random secret via [SecureRandom].
*/
class RandomSecretGenerator {
private val secureRandom = SecureRandom()
/**
* Generates a secure random secret with the same length as a hash
* of the... | 1 | null | 21 | 96 | 946719e50ba6ddbaacec6522f9b5131e0fd9143d | 963 | kotlin-onetimepassword | Apache License 2.0 |
src/main/kotlin/androidx/compose/material/icons/generator/Names.kt | DevSrSouza | 311,092,034 | 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... | 8 | Kotlin | 22 | 293 | f7fe015c76ebc6299e9218ae44bfca2a76dcd0ad | 3,240 | svg-to-compose | MIT License |
components/wearable/emulate/handheld/impl/src/main/java/com/flipperdevices/wearable/emulate/handheld/impl/di/WearServiceComponent.kt | flipperdevices | 288,258,832 | false | null | package com.flipperdevices.wearable.emulate.handheld.impl.di
import android.content.Context
import com.flipperdevices.bridge.dao.api.delegates.KeyParser
import com.flipperdevices.bridge.dao.api.delegates.key.SimpleKeyApi
import com.flipperdevices.bridge.service.api.provider.FlipperServiceProvider
import com.flipperdev... | 9 | null | 78 | 999 | ef27b6b6a78a59b603ac858de2c88f75b743f432 | 1,847 | Flipper-Android-App | MIT License |
androidExtensions/src/main/kotlin/com/diamondbybold/androidextensions/FragmentExt.kt | diamondbybold | 240,567,011 | false | null | package com.diamondbybold.androidextensions
import android.content.Intent
import androidx.fragment.app.Fragment
import com.diamondbybold.androidextensions.utils.helper.DebounceTimer
/**
* starts an activity using a debouncer (fast click avoidance)
*/
fun Fragment.startActivityDebounced(intent : Intent, debounceTime... | 0 | Kotlin | 0 | 0 | 78dda20990a6b39fa0797185a1956e78aeb3e884 | 768 | android_extensions | MIT License |
KYoutube/src/iosMain/kotlin/io/github/the_best_is_best/kyoutube/KYoutube.ios.kt | the-best-is-best | 874,718,717 | false | {"Kotlin": 19440, "Swift": 522, "HTML": 352} | package io.github.the_best_is_best.kyoutube
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.width
import androidx.compose.material3.Surface
import androidx.compose.r... | 0 | Kotlin | 0 | 0 | cbbd9b3bcc260e018fd8658a9a14b37571cb1bf3 | 2,291 | kyoutube | Apache License 2.0 |
src/main/kotlin/com/auritylab/kotlin/apple/signin/exception/ApplePublicKeyResolveException.kt | AurityLab | 272,013,912 | false | null | package com.auritylab.kotlin.apple.signin.exception
/**
* Represents an exception which will be thrown when the public key could not be fetched from Apple.
*/
class ApplePublicKeyResolveException(cause: Throwable) :
AppleSignInException("Unable to fetch the public key from Apple", cause)
| 0 | Kotlin | 0 | 0 | 1e51180b38319a31093b4344a7716e7966926536 | 300 | kotlin-sign-in-with-apple | Apache License 2.0 |
src/main/kotlin/net/vyrek/tutorialmod/item/ModFoodComponents.kt | VyrekXD | 731,301,810 | false | {"Kotlin": 38083, "Java": 3602} | package net.vyrek.tutorialmod.item
import net.minecraft.entity.effect.StatusEffectInstance
import net.minecraft.entity.effect.StatusEffects
import net.minecraft.item.FoodComponent
object ModFoodComponents {
val TOMATO: FoodComponent = FoodComponent.Builder()
.hunger(3)
.saturationModifier(0.25f)
.statusEffect(... | 0 | Kotlin | 0 | 1 | dda7e8df65331f510c6ffa7e6dabb800e2bd43f8 | 386 | tutorial-mod | Creative Commons Zero v1.0 Universal |
shared/src/iosTest/kotlin/co/touchlab/kampkit/NetworkScopeTest.kt | jeremyrempel | 284,324,005 | true | {"Kotlin": 50763, "Swift": 7853, "Ruby": 2287} | package co.touchlab.kampkit
import co.touchlab.kampkit.ktor.network
import co.touchlab.stately.freeze
import co.touchlab.stately.isFrozen
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.delay
import kotlinx.coroutines.isActive
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
impor... | 0 | Kotlin | 0 | 1 | 776758e5a95b62310b530c63aa65c8a06b93f14e | 2,239 | KaMPKit | Apache License 2.0 |
db-objekts-core/src/test/kotlin/com/dbobjekts/fixture/columns/YesNoBooleanColumn.kt | jaspersprengers | 576,889,038 | false | {"Kotlin": 1251609, "PLpgSQL": 45872, "Dockerfile": 2463} | package com.dbobjekts.fixture.columns
import com.dbobjekts.api.AnyTable
import com.dbobjekts.metadata.column.AggregateType
import com.dbobjekts.metadata.column.NonNullableColumn
import com.dbobjekts.metadata.column.NullableColumn
import java.sql.PreparedStatement
import java.sql.ResultSet
import java.sql.Types
class ... | 0 | Kotlin | 2 | 4 | 5b66aae10cae18a95f77c29ce55b11b03e53500b | 1,522 | db-objekts | Apache License 2.0 |
appactions/interaction/interaction-capabilities-core/src/main/java/androidx/appactions/builtintypes/properties/Recipient.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2023 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... | 23 | Kotlin | 740 | 4,353 | 3492e5e1782b1524f2ab658f1728c89a35c7336d | 956 | androidx | Apache License 2.0 |
buildSrc/src/main/kotlin/androidx/build/ListDependencyVersionsTask.kt | j420247 | 178,752,626 | true | {"Java": 32739778, "Kotlin": 4379212, "Python": 57092, "Shell": 39281, "ANTLR": 19795, "HTML": 5068, "IDL": 339} | /*
* Copyright (C) 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 app... | 1 | Java | 0 | 0 | e73057fe79c228b493229c8bb3eb03aab5bf1512 | 9,602 | platform_frameworks_support | Apache License 2.0 |
android/app/src/main/java/com/algorand/android/modules/walletconnect/client/v2/utils/WalletConnectWalletDelegateExceptions.kt | perawallet | 364,359,642 | false | {"Swift": 8753304, "Kotlin": 7709389, "Objective-C": 88978, "Shell": 7715, "Ruby": 4727, "C": 596} | /*
* Copyright 2022 Pera Wallet, LDA
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,... | 22 | Swift | 62 | 181 | 92fc77f73fa4105de82d5e87b03c1e67600a57c0 | 1,363 | pera-wallet | Apache License 2.0 |
app/src/main/java/com/kakyiretechnologies/retrofit_dagger_rxjava_mvp_navcomponent/ui/fragments/upcomingmovies/UpcomingMoviesFragment.kt | Kakyire | 308,177,946 | false | null | package com.kakyiretechnologies.retrofit_dagger_rxjava_mvp_navcomponent.ui.fragments.upcomingmovies
import android.os.Bundle
import android.view.View
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.widget.GridLayoutMan... | 0 | Kotlin | 0 | 0 | 3ff186e70b9ef43d4e52cabc42ae017cacc751e6 | 3,015 | Movie-Info | Apache License 2.0 |
src/test/kotlin/com/jakewharton/dex/DexMethodTest.kt | MaTriXy | 130,495,332 | true | {"Markdown": 3, "Gradle": 1, "Shell": 3, "Ignore List": 2, "Batchfile": 1, "EditorConfig": 1, "Text": 1, "YAML": 1, "INI": 1, "Java": 4, "Kotlin": 15} | package com.jakewharton.dex
import com.google.common.truth.Truth.assertThat
import org.junit.Test
class DexMethodTest {
@Test fun toStringCallsRender() {
val method = DexMethod("com.example.Foo", "bar", emptyList(), "com.example.Bar")
assertThat(method.toString()).isEqualTo(method.render())
}
@Test fun... | 0 | Kotlin | 0 | 0 | bdf2d6e6289655bfc67a9218e34dbb3159930dac | 4,124 | dex-method-list | Apache License 2.0 |
data/src/main/java/nam/tran/data/usecase/home/HomeUseCaseImpl.kt | NamTranDev | 810,108,520 | false | {"Kotlin": 53315} | package nam.tran.data.usecase.home
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import nam.tran.data.network.api.ApiServices
import java.util.concurrent.TimeoutException
import javax.inject.Inject
import kotlin.time.Duration
class HomeUseCaseImpl @Inject cons... | 0 | Kotlin | 0 | 0 | 449736583e150bd8690480df2ad81819ae216321 | 515 | TemplateStructureAndroid | Apache License 2.0 |
app/src/test/java/org/oppia/android/app/devoptions/devoptionsitemviewmodel/DeveloperOptionsTestParsersViewModelTest.kt | oppia | 148,093,817 | false | null | package org.oppia.android.app.devoptions.devoptionsitemviewmodel
import org.junit.Rule
import org.junit.Test
import org.mockito.Mock
import org.mockito.Mockito.verify
import org.mockito.Mockito.verifyNoMoreInteractions
import org.mockito.junit.MockitoJUnit
import org.mockito.junit.MockitoRule
import org.oppia.android.... | 508 | null | 517 | 315 | 95699f922321f49a3503783187a14ad1cef0d5d3 | 1,281 | oppia-android | Apache License 2.0 |
example-speech-recognition/src/main/java/com/dailystudio/tflite/example/speech/recognition/ExampleActivity.kt | dailystudio | 267,263,865 | false | null | package com.dailystudio.tflite.example.speech.recognition
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProvider
import com.dailystudio.devbricksx.development.Logger
import com.dailystudio.devbricksx.utils.StringUtils
import com.dailystudio.t... | 1 | Kotlin | 7 | 47 | 1ce173bdc6dd2ac2a0c83197ff27ded3ed381df2 | 3,499 | tensorflow-lite-examples-android | Apache License 2.0 |
TachiServer/src/main/java/xyz/nulldev/ts/api/http/HttpAPI.kt | TachiWeb | 63,995,519 | false | null | /*
* Copyright 2016 <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 writin... | 45 | Java | 44 | 376 | 756aed147f9d3ad64b0620ab69c3eb4575264177 | 16,621 | TachiWeb-Server | Apache License 2.0 |
testing/testserver/src/main/kotlin/net/corda/webserver/servlets/ObjectMapperConfig.kt | corda | 70,137,417 | false | null | package net.corda.webserver.servlets
import com.fasterxml.jackson.databind.ObjectMapper
import javax.ws.rs.ext.ContextResolver
import javax.ws.rs.ext.Provider
/**
* Primary purpose is to install Kotlin extensions for Jackson ObjectMapper so data classes work
* and to organise serializers / deserializers for java.ti... | 58 | null | 1074 | 3,971 | 318990cfd90aab455311cc6256d11dc98c26d1df | 527 | corda | Apache License 2.0 |
app/src/main/java/com/tzion/android_services_sample/broadcast/AirPlaneModeReceiver.kt | 4mr0m3r0 | 729,251,165 | false | {"Kotlin": 10840} | package com.tzion.android_services_sample.broadcast
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.provider.Settings
class AirPlaneModeReceiver : BroadcastReceiver() {
override fun onReceive(context: Context?, intent: Intent?) {
if (int... | 0 | Kotlin | 0 | 0 | 889b508d18a92044021eba2d4a6497aa23f157b8 | 608 | android-services-sample | MIT License |
app/src/main/java/com/daveboy/wanandroid/ui/main/index/IndexRepository.kt | DaveBoy | 192,728,655 | false | null | package com.daveboy.wanandroid.ui.main.index
import com.daveboy.wanandroid.entity.*
import com.daveboy.wanandroid.http.RetrofitManager
import com.daveboy.wanandroid.http.BaseResponse
class IndexRepository {
suspend fun getArticleList(page:Int): BaseResponse<ArticleResponse> {
return RetrofitManager.ser... | 0 | Kotlin | 0 | 1 | 9915c5c1bba9e6da9af1a40f085befda24c67a4e | 616 | WanAndroid | Apache License 2.0 |
src/main/kotlin/com/coder/gateway/util/Without.kt | coder | 490,848,198 | false | {"Kotlin": 373297} | package com.coder.gateway.util
/**
* Run block with provided arguments after checking they are all non-null. This
* is to enforce non-null values and should be used to signify developer error.
*/
fun <A, Z> withoutNull(
a: A?,
block: (a: A) -> Z,
): Z {
if (a == null) {
throw Exception("Unexpec... | 53 | Kotlin | 12 | 25 | 652fc04a1ce64c55e2e48e6794ebe6a56b0ee783 | 1,177 | jetbrains-coder | MIT License |
src/main/kotlin/com/coder/gateway/util/Without.kt | coder | 490,848,198 | false | {"Kotlin": 373297} | package com.coder.gateway.util
/**
* Run block with provided arguments after checking they are all non-null. This
* is to enforce non-null values and should be used to signify developer error.
*/
fun <A, Z> withoutNull(
a: A?,
block: (a: A) -> Z,
): Z {
if (a == null) {
throw Exception("Unexpec... | 53 | Kotlin | 12 | 25 | 652fc04a1ce64c55e2e48e6794ebe6a56b0ee783 | 1,177 | jetbrains-coder | MIT License |
src/main/kotlin/xyz/jmullin/drifter/assets/delegates/NinePatchDelegate.kt | JustinMullin | 65,239,521 | false | {"Kotlin": 193418} | package xyz.jmullin.drifter.assets.delegates
import com.badlogic.gdx.graphics.g2d.NinePatch
import com.badlogic.gdx.graphics.g2d.Sprite
import xyz.jmullin.drifter.assets.DrifterAssets
import xyz.jmullin.drifter.error.DrifterAssetsException
class NinePatchDelegate(assetName: String?, assets: DrifterAssets) : AssetDele... | 0 | Kotlin | 0 | 0 | 94384401e2158c8b5456a0d36d0da976ac5e0e66 | 1,665 | drifter-kotlin | MIT License |
src/backend/common/common-api/src/main/kotlin/com/tencent/bkrepo/common/api/thread/TransmittableThreadLocal.kt | TencentBlueKing | 548,243,758 | false | null | package com.tencent.bkrepo.common.api.thread
/**
* 可传播的threadLocal
*
* 仅适用于线程池传播
* 这个类是有必要的,因为在一些时候业务代码之外的一些框架可能会创建一些线程,做一些异步任务。
* 一般情况下,即使传播到新的线程,也没什么关系,但是如果有一些特殊情况,比如对象比较大时,我们则不希望在非业务线程上传播对象。
* */
open class TransmittableThreadLocal<T> : ThreadLocal<T>() {
override fun set(value: T) {
super.set(va... | 363 | null | 38 | 70 | 54b0c7ab20ddbd988387bac6c9143b594681e73c | 466 | bk-repo | MIT License |
lib_modbus/src/main/kotlin/com/crow/modbus/interfaces/ISerialPortExt.kt | crowforkotlin | 696,702,450 | false | {"Kotlin": 100058, "C": 13860, "Makefile": 3120, "CMake": 208} | package com.crow.modbus.interfaces
import java.io.BufferedInputStream
import kotlin.io.path.fileVisitor
internal interface ISerialPortExt {
fun reOpenSerialPort(ttySNumber: Int, baudRate: Int)
fun reOpenSerialPort(path: String, baudRate: Int)
fun openSerialPort(ttysNumber: Int, baudRate: Int)
fun ope... | 0 | Kotlin | 0 | 1 | b2d9a6c3ecc28d365faa6306cc66bbed8d59cb63 | 397 | KModbus | Apache License 2.0 |
app/src/main/java/com/zhouhaoo/sample/mvp/presenter/EmptyPrestener.kt | guichun68 | 124,174,242 | true | {"Kotlin": 98168, "Java": 1347} | package com.zhouhaoo.sample.mvp.presenter
import com.zhouhaoo.common.mvp.IPresenter
import javax.inject.Inject
/**
* Created by caorb1 on 2018/3/6.
* Desc:
*/
class EmptyPrestener @Inject constructor():IPresenter{
override fun onDestroy() {
TODO("not implemented") //To change body of created function... | 0 | Kotlin | 0 | 0 | 052fd3055d245b9866f8813d333d1660ff4270e0 | 537 | kotlin-common | Apache License 2.0 |
src/main/kotlin/exploration/designPatterns/behavioral/observerMode/ObservableDemo.kt | programing-language | 375,609,760 | false | null | package exploration.designPatterns.behavioral.observerMode
import kotlin.properties.Delegates
/**
* Created by ChenJinXin on 2021/7/8 下午4:12
*/
interface StockUpdateListener {
fun onRise(price: Int)
fun onFall(price: Int)
}
class StockDisplay2 : StockUpdateListener {
override fun onRise(price: Int) {
... | 1 | null | 1 | 1 | f614aef0f625b0ac403dd0f8acfe3be384ae25e5 | 895 | KotlinCoreProgramming | Apache License 2.0 |
src/main/kotlin/kz/btsd/bot/botscenariosdk/utils/Identifiable.kt | btsdigital | 206,773,436 | false | null | package kz.btsd.bot.botscenariosdk.utils
interface Identifiable {
val id: Long
}
| 4 | Kotlin | 1 | 5 | 2663fd2c242f606e88aee5220057410a68925cdb | 86 | bot-scenario-sdk | Apache License 2.0 |
doks-gradle-plugin/src/gradleTest/kotlin/com/rickbusarow/doks/ConfigTest.kt | rickbusarow | 603,865,711 | false | {"Kotlin": 273157, "Shell": 4225} | /*
* Copyright (C) 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 4 | Kotlin | 0 | 6 | b588e02309bc0e9093d5aa3d8e0d9d5cda710b67 | 9,742 | Doks | Apache License 2.0 |
categorytitleview/src/main/java/info/fox/categorytitleview/CategoryTitleView.kt | SnakeEys | 101,617,752 | false | null | package info.fox.categorytitleview
import android.content.Context
import android.graphics.Color
import android.util.AttributeSet
import android.util.TypedValue
import android.view.Gravity
import android.view.View
import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.TextView
/**
*<... | 1 | null | 1 | 1 | b463a4c593672670ca8e07b16ea671021f132ae7 | 5,103 | CategoryTitleView | Apache License 2.0 |
cottontaildb-dbms/src/main/kotlin/org/vitrivr/cottontail/dbms/index/cache/CacheKey.kt | vitrivr | 160,775,368 | false | {"Kotlin": 2769182, "TypeScript": 98011, "Java": 97672, "HTML": 38965, "ANTLR": 23679, "CSS": 8582, "SCSS": 1690, "JavaScript": 1441, "Dockerfile": 548} | package org.vitrivr.cottontail.dbms.index.cache
import org.vitrivr.cottontail.core.database.Name
/**
* A [CacheKey] used in the [InMemoryIndexCache].
*
* @author <NAME>
* @version 1.0.0
*/
data class CacheKey(val name: Name.IndexName, val range: LongRange) | 23 | Kotlin | 20 | 38 | baaf9a8799ed9a7c6b5113587fdca674d3f11497 | 263 | cottontaildb | MIT License |
institutions/src/main/kotlin/eposea/service/InstitutionService.kt | eposea | 456,268,938 | false | {"Kotlin": 41013} | package eposea.service
import eposea.domain.CreateInstitutionRequest
import eposea.domain.InstitutionDto
import eposea.exception.InvalidUserInputException
import eposea.exception.NoDataAvailableException
import eposea.mapper.InstitutionMapper
import eposea.repository.InstitutionRepository
import jakarta.inject.Singlet... | 0 | Kotlin | 0 | 0 | c8c603ebdb1dcf5752d418bd31ae08ddf5b74278 | 2,091 | aggregator-server | MIT License |
app/src/main/java/it/unibo/yahm/client/entities/Coordinate.kt | yahm-project | 249,994,959 | false | null | package it.unibo.yahm.client.entities
import com.google.android.gms.maps.model.LatLng
import kotlin.math.pow
import kotlin.math.roundToInt
/**
* Representation of geographical coordinate.
*/
data class Coordinate(
val latitude: Double,
val longitude: Double
) {
fun toLatLng() = LatLng(latitude, longitu... | 0 | Kotlin | 0 | 0 | e9dfbaa01305544b5bb1b36416074bd28636d3d2 | 906 | client | Apache License 2.0 |
app/src/main/java/com/emirk/movieapp/domain/use_case/GetMovieByIdUseCase.kt | emirkarabey | 555,786,577 | false | {"Kotlin": 61428} | package com.emirk.movieapp.domain.use_case
import com.emirk.movieapp.data.remote.model.movie_details.MovieDetails
import com.emirk.movieapp.domain.repository.MovieRepository
import com.emirk.movieapp.utils.Resource
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import retrofit2.HttpException
i... | 0 | Kotlin | 0 | 2 | 239692f2eb5800072a000bc97e8a49a168764237 | 928 | MovieApp | Apache License 2.0 |
libs/membership/membership-impl/src/main/kotlin/net/corda/membership/lib/impl/MemberInfoFactoryImpl.kt | corda | 346,070,752 | false | {"Kotlin": 20585419, "Java": 308202, "Smarty": 115357, "Shell": 54409, "Groovy": 30246, "PowerShell": 6470, "TypeScript": 5826, "Solidity": 2024, "Batchfile": 244} | package net.corda.membership.lib.impl
import net.corda.avro.serialization.CordaAvroDeserializer
import net.corda.avro.serialization.CordaAvroSerializationFactory
import net.corda.avro.serialization.CordaAvroSerializer
import net.corda.data.KeyValuePairList
import net.corda.data.crypto.wire.CryptoSignatureSpec
import n... | 96 | Kotlin | 27 | 69 | d478e119ab288af663910f9a2df42a7a7b9f5bce | 7,583 | corda-runtime-os | Apache License 2.0 |
jvm/jvm-analysis-impl/src/com/intellij/codeInspection/SystemGetPropertyInspection.kt | wwwjames | 78,877,532 | false | {"Text": 8974, "INI": 512, "YAML": 425, "Ant Build System": 11, "Batchfile": 31, "Dockerfile": 8, "Shell": 624, "Markdown": 711, "Ignore List": 134, "Git Revision List": 1, "Git Attributes": 10, "EditorConfig": 253, "XML": 7534, "SVG": 4075, "Kotlin": 54316, "Java": 82803, "HTML": 3751, "Java Properties": 204, "Gradle"... | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.codeInspection
import com.intellij.analysis.JvmAnalysisBundle
import com.intellij.codeInspection.fix.CallReplacementInfo
import com.intellij.codeInspection.fix.MethodReplacement... | 1 | null | 1 | 1 | 9d4b7c6230b668e59a1aabb2b54cb89ba840fce4 | 3,698 | intellij-community | Apache License 2.0 |
presentation/src/test/java/prieto/fernando/presentation/ViewModelSetup.kt | ferPrieto | 216,438,304 | false | null | package prieto.fernando.presentation
import prieto.fernando.presentation.scheduler.TestSchedulerProvider
fun setupViewModelForTests(baseViewModel: BaseViewModel) {
baseViewModel.schedulerProvider = TestSchedulerProvider()
}
| 0 | Kotlin | 1 | 13 | aecbd0054faa15beb29aac1c694eff9db0179432 | 230 | MVVM-Modularized | Apache License 2.0 |
project-system-gradle/testSrc/com/android/tools/idea/gradle/project/sync/errors/MissingAndroidSdkIssueCheckerTest.kt | JetBrains | 60,701,247 | false | {"Kotlin": 49550960, "Java": 35837871, "HTML": 1217714, "Starlark": 909188, "C++": 357481, "Python": 106384, "C": 71782, "Lex": 66732, "NSIS": 58538, "AIDL": 35382, "Shell": 26938, "CMake": 26798, "JavaScript": 18437, "Smali": 7580, "Batchfile": 6951, "RenderScript": 4411, "Makefile": 2495, "IDL": 269, "QMake": 18} | /*
* 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... | 3 | Kotlin | 219 | 921 | dbd9aeae0dc5b8c56ce2c7d51208ba26ea0f169b | 2,848 | android | Apache License 2.0 |
TestSpringBoot/src/main/java/com/test/springboot/bean/local/BaseDataDisposeStatusBean.kt | Loren-Wang | 164,838,761 | false | null | package com.test.springboot.bean.local
import com.test.springboot.enums.NetRepStatusEnum
import springbase.lorenwang.base.bean.SpblwBaseDataDisposeStatusBean
class BaseDataDisposeStatusBean : SpblwBaseDataDisposeStatusBean {
private constructor(status: Boolean, repStatusEnum: NetRepStatusEnum, body: Any) : super(... | 5 | null | 1 | 4 | 3669d165ef0b1667b37155978de4c1dd9660b903 | 1,040 | LorenWangCustomTools | Apache License 2.0 |
app/src/main/java/com/example/incode/viewmodel/DirectionsViewModelFactory.kt | CharlesMuvaka | 641,490,688 | false | null | package com.example.incode.viewmodel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.example.incode.repository.DirectionsRepo
class DirectionsViewModelFactory(private val origin: String, private val dest: String, private val repo: DirectionsRepo): ViewModelProvider.Factory {... | 0 | Kotlin | 0 | 0 | 735847f6204830cc2a31ea7fabbdaf29f1615a67 | 479 | inDrive | MIT License |
template/app/src/commonMain/kotlin/kotli/app/di/data/EncryptionSourceModule.kt | kotlitecture | 790,159,970 | false | {"Kotlin": 545071, "Swift": 543, "JavaScript": 313, "HTML": 234} | package kotli.app.di.data
import kotli.app.data.source.encryption.AppEncryptionSource
import org.koin.dsl.bind
import org.koin.dsl.module
import shared.data.source.encryption.EncryptionSource
val encryptionSourceModule = module {
single { AppEncryptionSource() }.bind(EncryptionSource::class)
} | 2 | Kotlin | 3 | 55 | 0ea8aa724e156259d5d5c9c8a423513c61b5156b | 300 | template-multiplatform-compose | MIT License |
RetenoSdkCore/src/test/java/com/reteno/core/data/local/database/util/DbUtilUserTest.kt | reteno-com | 545,381,514 | false | null | package com.reteno.core.data.local.database.util
import android.content.ContentValues
import android.database.Cursor
import androidx.core.database.getStringOrNull
import com.reteno.core.base.robolectric.BaseRobolectricTest
import com.reteno.core.data.local.database.schema.UserSchema
import com.reteno.core.data.local.m... | 1 | null | 1 | 1 | f52fc040ae94f5830e874f0f41e36fba35e3a276 | 22,509 | reteno-mobile-android-sdk | MIT License |
core/src/main/kotlin/core/models/LanguageCode.kt | Subtle-fox | 130,334,439 | false | {"Gradle": 12, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "INI": 1, "XML": 35, "Kotlin": 78, "Java": 8, "JSON": 2, "Proguard": 5} | package core.models
import java.nio.channels.IllegalSelectorException
import java.util.*
enum class LanguageCode {
RU, UK, ZH, EN;
companion object {
fun tryParse(value: String?, defaultValue: LanguageCode): LanguageCode {
if (value == null || value.isEmpty()) {
System.err... | 0 | Kotlin | 0 | 0 | d371f1a221e713a0ad34fab12afc55d8106e79f6 | 654 | translator | Apache License 2.0 |
magellan-sample-migration/src/test/java/com/wealthfront/magellan/sample/migration/tide/DogDetailsViewTest.kt | wealthfront | 82,854,849 | false | {"Kotlin": 299574, "Java": 32180} | package com.wealthfront.magellan.sample.migration.tide
import android.content.Context
import android.graphics.drawable.Drawable
import android.os.Looper.getMainLooper
import androidx.test.core.app.ApplicationProvider
import com.bumptech.glide.RequestBuilder
import com.bumptech.glide.RequestManager
import io.mockk.ever... | 38 | Kotlin | 67 | 681 | b4b1e433506d6b7ecd9a79c44cc8fd5dcb980342 | 1,288 | magellan | Apache License 2.0 |
app/src/test/kotlin/fr/free/nrw/commons/customselector/ui/selector/CustomSelectorViewModelTest.kt | commons-app | 42,032,884 | false | {"Java": 1801851, "Kotlin": 1433772, "PHP": 3156, "Shell": 1449, "Makefile": 595} | package fr.free.nrw.commons.customselector.ui.selector
import android.content.Context
import org.junit.Before
import org.junit.Test
import org.mockito.Mock
import org.mockito.MockitoAnnotations
/**
* Custom Selector View Model test.
*/
class CustomSelectorViewModelTest {
private lateinit var viewModel: CustomS... | 571 | Java | 1179 | 997 | 93f1e1ec299a78dac8a013ea21414272c1675e7b | 869 | apps-android-commons | Apache License 2.0 |
app/src/main/java/com/sjn/stamp/model/Artist.kt | sjnyag | 81,733,859 | false | null | package com.sjn.stamp.model
import io.realm.RealmObject
import io.realm.RealmResults
import io.realm.annotations.Index
import io.realm.annotations.LinkingObjects
import io.realm.annotations.PrimaryKey
open class Artist(
@PrimaryKey var id: Long = 0,
@Index var name: String = "",
var albumArtUr... | 59 | null | 3 | 9 | cb145824f9e06cd17266502a5e85d8a9fa276bb0 | 684 | stamp | Apache License 2.0 |
app/src/main/java/com/dede/android_eggs/views/settings/prefs/DynamicColorPref.kt | hushenghao | 306,645,388 | false | null | package com.dede.android_eggs.views.settings.prefs
import android.app.Activity
import android.app.Application
import android.content.Context
import androidx.appcompat.app.AppCompatActivity
import com.dede.android_eggs.R
import com.dede.android_eggs.ui.Icons
import com.dede.android_eggs.views.settings.SettingPref
impor... | 1 | null | 24 | 456 | a7bc8846e86fb8d78681b9168b05c27457951678 | 2,149 | AndroidEasterEggs | Apache License 2.0 |
common/src/main/kotlin/com/agmtopy/kocketmq/common/namesrv/PutKVConfigRequestHeader.kt | agmtopy | 376,882,907 | false | {"Gradle": 6, "Markdown": 1, "INI": 5, "Shell": 1, "Text": 1, "Batchfile": 1, "Java": 4, "Kotlin": 101, "Java Properties": 2, "XML": 10} | package com.agmtopy.kocketmq.common.namesrv
import com.agmtopy.kocketmq.remoting.CommandCustomHeader
import com.agmtopy.kocketmq.remoting.annotation.CFNotNull
import com.agmtopy.kocketmq.remoting.exception.impl.RemotingCommandException
class PutKVConfigRequestHeader : CommandCustomHeader {
@CFNotNull
var name... | 1 | null | 1 | 1 | 91e15b054ff8f1784d79b96e498894065ba025f8 | 518 | kocketmq | Apache License 2.0 |
DSLs/kubernetes/dsl/src/main/kotlin-gen/com/fkorotkov/openshift/bitbucketWebHook.kt | fkorotkov | 84,911,320 | false | null | // GENERATED
package com.fkorotkov.openshift
import io.fabric8.openshift.api.model.BitbucketWebHookCause as model_BitbucketWebHookCause
import io.fabric8.openshift.api.model.BuildTriggerCause as model_BuildTriggerCause
fun model_BuildTriggerCause.`bitbucketWebHook`(block: model_BitbucketWebHookCause.() -> Unit = {}... | 6 | Kotlin | 19 | 317 | ef8297132e6134b6f65ace3e50869dbb2b686b21 | 466 | k8s-kotlin-dsl | MIT License |
src/main/kotlin/com/github/zomb_676/fantasySoup/examples/ExampleBlockEntity.kt | zomb-676 | 355,417,115 | false | {"Gradle": 2, "Java Properties": 1, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "XML": 1, "Markdown": 2, "INI": 1, "GLSL": 12, "Checksums": 14, "Kotlin": 74, "Java": 1, "JSON": 2, "HAProxy": 1, "TOML": 1, "JAR Manifest": 1, "YAML": 1} | package com.github.zomb_676.fantasySoup.examples
import net.minecraft.core.BlockPos
import net.minecraft.world.level.block.entity.BlockEntity
import net.minecraft.world.level.block.entity.BlockEntityType
import net.minecraft.world.level.block.state.BlockState
class ExampleBlockEntity(pos: BlockPos, state: BlockState)... | 0 | Kotlin | 0 | 2 | f8b485ac9a1d860e54f6a8411cb99e922bffccdd | 376 | fantasySoup | MIT License |
edgetagSDK/src/main/java/com/edgetag/EdgeTagInterface.kt | blotoutio | 459,429,235 | false | {"Java": 299903, "Kotlin": 108424} | package com.edgetag
import android.app.Application
import com.edgetag.model.CompletionHandler
import com.edgetag.model.OnComplete
interface EdgeTagInterface {
fun init(
application: Application,
edgeTagConfiguration: EdgeTagConfiguration,
completionHandler: CompletionHandler
)
fu... | 3 | null | 1 | 1 | 128115ad2ca4c6665a66be873ae17e052b0f60be | 1,059 | edgetag-android | MIT License |
app/src/main/kotlin/com/permissionnanny/data/Cryo.kt | lgslegend | 82,944,527 | true | {"Java Properties": 4, "YAML": 1, "XML": 40, "Gradle": 9, "Shell": 1, "Markdown": 2, "Batchfile": 1, "Ignore List": 6, "Proguard": 5, "Text": 4, "Java": 101, "Kotlin": 84} | package com.permissionnanny.data
import android.support.v4.util.Pools
import com.esotericsoftware.kryo.Kryo
import com.esotericsoftware.kryo.io.Input
import com.esotericsoftware.kryo.io.Output
import javax.inject.Inject
/**
*/
class Cryo
@Inject
constructor(private val kryo: Kryo) {
private val outputPool: Pool... | 0 | Java | 0 | 0 | 142774c651c2c80837b97f767b23ac6a19cc7566 | 2,553 | Permission-Nanny | RSA Message-Digest License |
hexagonal-app-load-testing/app-micronaut-kotlin/src/main/kotlin/app/Main.kt | aliOzanDemirel | 393,934,959 | false | {"Java": 580092, "JavaScript": 249678, "Kotlin": 62631, "Scala": 53427, "Rust": 40084, "HCL": 39317, "HTML": 25202, "Groovy": 8738, "CSS": 7194, "Gherkin": 2599, "Shell": 1787, "Makefile": 1779, "Perl": 1486, "Dockerfile": 1409} | package app
import io.micronaut.runtime.Micronaut
class Main
fun main(args: Array<String>) {
Micronaut.run(Main::class.java, *args)
} | 0 | Java | 0 | 0 | 934a36eb623c05c4125324ee03d9f0cbdea5e654 | 140 | playground-examples | MIT License |
android-sdk/android/src/main/kotlin/io/logto/sdk/android/exception/LogtoException.kt | logto-io | 397,657,445 | false | null | package io.logto.sdk.android.exception
class LogtoException(
type: Type,
cause: Throwable? = null,
) : RuntimeException(type.name, cause) {
var detail: String? = null
enum class Type {
NOT_AUTHENTICATED,
UNGRANTED_RESOURCE_FOUND,
USER_CANCELED,
INVALID_REDIRECT_URI,
... | 1 | Kotlin | 6 | 7 | f8e94f533d2e60b029bca455fdcb1c050ce0a68d | 886 | kotlin | MIT License |
android-sdk/android/src/main/kotlin/io/logto/sdk/android/exception/LogtoException.kt | logto-io | 397,657,445 | false | null | package io.logto.sdk.android.exception
class LogtoException(
type: Type,
cause: Throwable? = null,
) : RuntimeException(type.name, cause) {
var detail: String? = null
enum class Type {
NOT_AUTHENTICATED,
UNGRANTED_RESOURCE_FOUND,
USER_CANCELED,
INVALID_REDIRECT_URI,
... | 1 | Kotlin | 6 | 7 | f8e94f533d2e60b029bca455fdcb1c050ce0a68d | 886 | kotlin | MIT License |
dependencies/handyfloat_lib/src/main/kotlin/com/w6s/handyfloat/HandyFloatService.kt | AoEiuV020 | 421,650,297 | false | {"Java": 8618305, "Kotlin": 1733509, "JavaScript": 719597, "CSS": 277438, "HTML": 111559} | package com.w6s.handyfloat
import android.app.Service
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.org.apache.commons.lang3.math.NumberUtils.createFloat
import android.os.IBinder
import android.view.View
import ... | 1 | null | 1 | 1 | 1c4ca5bdaea6d5230d851fb008cf2578a23b2ce5 | 4,079 | w6s_lite_android | MIT License |
compiler/fir/fir-serialization/src/org/jetbrains/kotlin/fir/serialization/FirAnnotationSerializer.kt | krzema12 | 312,049,057 | true | null | /*
* 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 org.jetbrains.kotlin.fir.serialization
import org.jetbrains.kotlin.fir.FirSession
import org.jetbrain... | 34 | Kotlin | 2 | 24 | af0c7cfbacc9fa1cc9bec5c8e68847b3946dc33a | 2,585 | kotlin-python | Apache License 2.0 |
relax-core-component/src/main/java/com/ustory/relax_basic_component/mvvm/api/DeviceHeader.kt | bing521 | 150,531,783 | true | {"Kotlin": 254438, "Java": 44873} | package com.ustory.relax_basic_component.mvvm.api
import android.content.Context
import com.ustory.relax_basic_component.mvvm.utils.DeviceInfoUtil
import com.ustory.relax_basic_component.mvvm.utils.JsonUtil
data class DeviceHeader(
val uid: String,
val version: String,
val screen: String,
... | 1 | Kotlin | 1 | 1 | d69f84dd3b2a39814cc2531a2b223a733c79693e | 826 | Relax | MIT License |
todo/src/main/java/com/johnny/rxfluxtodo/action/TodoActionCreator.kt | JohnnyShieh | 82,271,616 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Java": 2, "XML": 9, "Kotlin": 13} | /*
* Copyright (C) 2018 <NAME> 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 applicab... | 1 | null | 1 | 1 | d373daf6aa7ac5cd218d8c358a3dd5cdadc90e97 | 1,407 | RxFlux | Apache License 2.0 |
src/main/kotlin/org/rust/toml/search/CargoTomlFindUsagesHandlerFactory.kt | intellij-rust | 42,619,487 | false | null | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.toml.search
import com.intellij.find.findUsages.FindUsagesHandler
import com.intellij.find.findUsages.FindUsagesHandlerFactory
import com.intellij.psi.PsiElement
import org.rust.toml.isFeatureDe... | 1,841 | null | 380 | 4,528 | c6657c02bb62075bf7b7ceb84d000f93dda34dc1 | 832 | intellij-rust | MIT License |
core/kotlinx-coroutines-core/src/internal/ThreadContext.kt | objcode | 159,731,828 | false | null | /*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.coroutines.internal
import kotlinx.coroutines.*
import kotlin.coroutines.*
private val ZERO = Symbol("ZERO")
// Used when there are >= 2 active elements in the context
private class ThreadS... | 295 | null | 2 | 5 | 46741db4b0c2863475d5cc6fc75eafadd8e6199d | 5,192 | kotlinx.coroutines | Apache License 2.0 |
shishamo-web/src/main/kotlin/com/yo1000/shishamo/model/TableDetails.kt | yo1000 | 92,009,734 | false | {"Batchfile": 1, "Shell": 1, "Maven POM": 4, "Text": 3, "Ignore List": 1, "Markdown": 2, "INI": 1, "Kotlin": 25, "YAML": 12, "Groovy": 12, "Java": 2, "HTML": 5, "CSS": 12, "SVG": 4, "JavaScript": 4, "SQL": 1} | package com.yo1000.shishamo.model
/**
* @author yo1000
*/
open class TableDetails(
name: String,
val comment: String,
val rowSize: Long
) : Table(
name
)
| 1 | null | 1 | 1 | 947c28cb72767f01d4094693b28983a700766c8c | 190 | shishamo | MIT License |
KeyManager-rest/src/test/kotlin/com/api/registraChavePix/RegistraChavePixControllerTest.kt | 2020nani | 385,440,121 | true | {"Kotlin": 32078, "Smarty": 2032, "Dockerfile": 167} | package com.api.registraChavePix
import com.api.KeyManagerGrpcResponse
import com.api.KeyManagerGrpcServiceGrpc
import com.api.shared.GrpcFactory.KeyManagerGrpcFactory
import org.junit.jupiter.api.Assertions.*
import io.grpc.Status
import io.grpc.StatusRuntimeException
import io.micronaut.context.annotation.Factory
im... | 0 | Kotlin | 0 | 0 | cc0008a16d3a7d2dfb0ed46a441abcd144c77b79 | 3,406 | orange-talents-05-template-pix-keymanager-rest | Apache License 2.0 |
CommonUI/src/main/java/com/drivequant/drivekit/common/ui/utils/DKRoundedCornerFrameLayout.kt | DriveQuantPublic | 216,339,559 | false | {"Gradle": 12, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 10, "Batchfile": 1, "Markdown": 1, "INI": 8, "Proguard": 9, "XML": 419, "Kotlin": 478, "Java": 1} | package com.drivequant.drivekit.common.ui.utils
import android.content.Context
import android.graphics.Canvas
import android.graphics.Path
import android.graphics.RectF
import android.util.AttributeSet
import android.widget.FrameLayout
open class DKRoundedCornerFrameLayout : FrameLayout {
constructor(context: Con... | 1 | Kotlin | 3 | 9 | e7956263157c49aae8d6f993a558ea77d9658ee6 | 1,642 | drivekit-ui-android | Apache License 2.0 |
app/src/main/java/com/pedrogomez/mylistaplication/booklist/models/bookresponse/RetailPrice.kt | makhnnar | 325,304,486 | false | null | package com.pedrogomez.mylistaplication.booklist.models.bookresponse
import kotlinx.serialization.Serializable
@Serializable
data class RetailPrice(
val amountInMicros: Int?,
val currencyCode: String?
):java.io.Serializable | 0 | Kotlin | 0 | 0 | 77a4310d6bff21d4b7304d5a081b5ddfbb918f52 | 233 | MyListAplicaction | MIT License |
src/main/kotlin/top/lanscarlos/vulpecula/bacikal/action/location/ActionLocation.kt | Lanscarlos | 517,897,387 | false | null | package top.lanscarlos.vulpecula.bacikal.action.location
import taboolib.common.LifeCycle
import taboolib.common.platform.Awake
import taboolib.common.platform.function.platformLocation
import taboolib.common.util.Location
import taboolib.library.kether.QuestAction
import taboolib.library.kether.QuestReader
import tab... | 1 | null | 5 | 30 | d4bd6967c952e0a91081c651ea72a339e27efd17 | 6,126 | Vulpecula | MIT License |
src/main/java/top/zbeboy/isy/service/internship/InternshipJournalService.kt | zbeboy | 71,459,176 | false | {"JavaScript": 423, "JSON": 1, "Markdown": 5, "Maven POM": 1, "Text": 3, "Ignore List": 1, "XML": 8, "YAML": 2, "CSS": 59, "Kotlin": 380, "Java": 277, "Java Properties": 3, "HTML": 189, "SQL": 2} | package top.zbeboy.isy.service.internship
import org.jooq.Record
import org.jooq.Record3
import org.jooq.Result
import top.zbeboy.isy.domain.tables.pojos.InternshipJournal
import top.zbeboy.isy.domain.tables.records.InternshipJournalRecord
import top.zbeboy.isy.web.bean.internship.journal.InternshipJournalBean
import ... | 7 | JavaScript | 2 | 7 | 9634602adba558dbdb945c114692019accdb50a9 | 2,231 | ISY | MIT License |
kedacom/src/main/java/com/mozhimen/study/basic/kedacom/rv/RecyclerViewHorizontalActivity.kt | mozhimen | 653,932,748 | false | {"Kotlin": 261635} | package com.mozhimen.study.basic.kedacom.rv
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import com.mozhimen.study.basic.kedacom.R
import com.mozhimen.study.basic.kedacom.databinding.ActivityRecyclerviewBinding
import com.mozhimen.stud... | 0 | Kotlin | 0 | 0 | 84b2eef9b382df0f60e74c1923aa9886ff1ce869 | 1,785 | Study_Android_Basic | MIT License |
src/main/kotlin/dev/crashteam/keanalytics/repository/clickhouse/model/ChProductAdditionalInfo.kt | crashteamdev | 643,974,955 | false | {"Kotlin": 635761, "Dockerfile": 704} | package dev.crashteam.keanalytics.repository.clickhouse.model
import java.time.LocalDateTime
data class ChProductAdditionalInfo(
val firstDiscovered: LocalDateTime
)
| 2 | Kotlin | 0 | 0 | 88d21acb3d3e80791465f4f626f4fd182f5935cc | 172 | ke-analytics | Apache License 2.0 |
src/main/kotlin/com/kanelai/eris/eventapi/interfaces/httpserver/api/Dequeue.kt | kanelai | 145,534,723 | false | null | package com.kanelai.eris.eventapi.interfaces.httpserver.api
import com.kanelai.eris.eventapi.domain.model.QueueTable
import com.kanelai.eris.eventapi.interfaces.httpserver.api.ApiServer.logger
import com.kanelai.eris.eventapi.interfaces.httpserver.api.ApiServer.txLogger
import com.kanelai.eris.eventapi.interfaces.http... | 0 | Kotlin | 0 | 0 | 2bb5214c0b7b74ef2f8946700c6da8dd25457e19 | 2,635 | eris-event-api | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.