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/com/android/deskclock/widget/toast/ToastManager.kt | sanpei3 | 435,164,225 | false | null | /*
* Copyright (C) 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 app... | 9 | null | 0 | 1 | cfe66343053207ae917be65b458dbb583f24a3a0 | 948 | new-clock | Apache License 2.0 |
common/sdk/settings/impl/src/commonMain/kotlin/io/chefbook/sdk/settings/impl/data/repositories/SettingsRepositoryImpl.kt | mephistolie | 379,951,682 | false | {"Kotlin": 1334117, "Ruby": 16819, "Swift": 352} | package io.chefbook.sdk.settings.impl.data.repositories
import io.chefbook.libs.models.language.Language
import io.chefbook.sdk.settings.api.external.domain.entities.AppIcon
import io.chefbook.sdk.settings.api.external.domain.entities.AppTheme
import io.chefbook.sdk.settings.api.external.domain.entities.Environment
im... | 0 | Kotlin | 0 | 12 | ddaf82ee3142f30aee8920d226a8f07873cdcffe | 2,430 | chefbook-mobile | Apache License 2.0 |
app/src/main/java/com/gmail/orientale/francesco/letsaveit/models/mock/event.kt | FrancescoOrientale | 617,133,062 | false | null | package com.gmail.orientale.francesco.letsaveit.models.mock
import com.gmail.orientale.francesco.letsaveit.models.Event
import com.gmail.orientale.francesco.letsaveit.models.EventTag
import java.sql.Date
import java.time.LocalDateTime
val event = Event(
1,
"This is a fake title for a fake event",
"This i... | 0 | Kotlin | 0 | 0 | fed1cc1cf2fb388da98f08dd4e26eed6962e9799 | 2,461 | letsaveit-front-end | Apache License 2.0 |
core/src/main/kotlin/ir/farsroidx/core/CoreTimeUnit.kt | riazati75 | 669,996,961 | false | {"Kotlin": 161453, "Java": 17644} | @file:Suppress("unused", "MemberVisibilityCanBePrivate")
package ir.farsroidx.core
sealed class CoreTimeUnit (val value: Int) {
object Seconds : CoreTimeUnit( 1 )
object Minutes : CoreTimeUnit( 60 )
object Hour : CoreTimeUnit( 3_600 )
object Day : CoreTimeUnit( 86_400 ... | 0 | Kotlin | 0 | 0 | 246dec4eeaafa64009f7bbd980cc115ebc2d4942 | 474 | android-core | Apache License 2.0 |
core/src/main/java/com/guet/flexbox/build/FlexFactory.kt | zjw-swun | 320,479,354 | true | {"Java Properties": 5, "Gradle": 6, "Shell": 1, "Markdown": 1, "Batchfile": 1, "Text": 1, "Ignore List": 5, "XML": 19, "Kotlin": 30, "Java": 121, "JSON": 1, "Proguard": 3} | package com.guet.flexbox.build
import com.facebook.litho.Column
import com.facebook.litho.Component
import com.facebook.litho.Row
import com.facebook.yoga.YogaAlign
import com.facebook.yoga.YogaFlexDirection
import com.facebook.yoga.YogaJustify.*
import com.facebook.yoga.YogaWrap.*
internal object FlexFactory : Displ... | 0 | null | 0 | 0 | b5185cb6a5b8ca5ece1bd4c3bb28c494c8b6b5cd | 3,658 | Gbox-Android | Apache License 2.0 |
data/src/main/java/reactivecircus/releaseprobe/data/di/DataModule.kt | ReactiveCircus | 142,655,149 | false | null | package reactivecircus.releaseprobe.data.di
import com.nytimes.android.external.store3.base.impl.BarCode
import com.nytimes.android.external.store3.base.impl.MemoryPolicy
import com.nytimes.android.external.store3.base.impl.StalePolicy
import com.nytimes.android.external.store3.base.impl.room.StoreRoom
import kotlinx.... | 7 | null | 4 | 8 | b97fb5b8f161f29b70db1de6446af76166f42aa4 | 2,689 | release-probe | MIT License |
features/home/detail/src/main/kotlin/team/applemango/runnerbe/feature/home/detail/mvi/DetailLoadState.kt | ricky-buzzni | 485,390,072 | false | {"Kotlin": 615137} | /*
* RunnerBe © 2022 Team AppleMango. all rights reserved.
* RunnerBe license is under the MIT.
*
* [DetailState.kt] created by <NAME> on 22. 3. 22. 오후 11:08
*
* Please see: https://github.com/applemango-runnerbe/RunnerBe-Android/blob/main/LICENSE.
*/
package team.applemango.runnerbe.feature.home.detail.mvi
im... | 0 | null | 0 | 0 | f48fb298c07732a9c32afcff0bddb16f9fe2e37a | 821 | RunnerBe-Android | MIT License |
app/src/main/java/com/soneso/lumenshine/presentation/auth/AuthSetupActivity.kt | ThePowerOfSwift | 157,035,597 | false | {"Kotlin": 219121} | package com.soneso.lumenshine.presentation.auth
import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.core.view.GravityCompat
import androidx.lifecycle.Observer
import com.google.android.material.navigation.NavigationView
import com.soneso.lumenshine.R
import com.soneso.... | 0 | Kotlin | 1 | 0 | 18af9a360c76f1d58e932c0229d4f9b386a0af09 | 2,321 | lumenshine-android-wallet | Apache License 2.0 |
app/src/main/java/com/lacaprjc/expended/util/TransactionExt.kt | lacaprjc | 284,324,325 | false | null | package com.lacaprjc.expended.util
import com.lacaprjc.expended.model.Transaction
import org.json.JSONObject
fun Transaction.toJson(): JSONObject = JSONObject()
.put("name", this.name)
.put("forAccountId", this.forAccountId)
.put("amount", this.amount)
.put("date", this.date.toString())
.put("note... | 2 | Kotlin | 0 | 0 | 9dd3dfcd949c98fc2d8ead232026348c169167d8 | 618 | ExpendedKotlin | MIT License |
expresspay/src/main/java/com/expresspay/sdk/feature/adapter/ExpresspayBaseAdapter.kt | ExpresspaySa | 589,460,465 | false | {"Kotlin": 442513, "Java": 48886} | /*
* Property of Expresspay (https://expresspay.sa).
*/
package com.expresspay.sdk.feature.adapter
import com.expresspay.sdk.BuildConfig
import com.expresspay.sdk.core.ExpresspayCredential
import com.expresspay.sdk.model.response.base.error.ExpresspayError
import com.expresspay.sdk.model.response.base.ExpresspayRes... | 0 | Kotlin | 1 | 0 | b9884f65a65d46d78695b9761afafe5ee9120e92 | 5,495 | expresspay-android-sdk-code | MIT License |
features/main/ui/src/androidMain/kotlin/dev/kioba/anchor/features/main/ui/Theme.kt | kioba | 465,492,849 | false | {"Kotlin": 29526} | package dev.kioba.anchor.features.main.ui
import android.os.Build
import androidx.annotation.RequiresApi
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.ColorScheme
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.darkColorScheme
import androidx... | 0 | Kotlin | 0 | 1 | cd509788ae4abc0626f88f0e0c1b0e42dcce66bb | 1,352 | anchor | Apache License 2.0 |
idea/testData/resolve/std/function.kt | chirino | 3,596,099 | false | null | fun f(p : () -> String) {
p.<ref>invoke()
}
//jet.src/Functions.jet:invoke | 0 | null | 28 | 71 | ac434d48525a0e5b57c66b9f61b388ccf3d898b5 | 78 | kotlin | Apache License 2.0 |
library/dd-sdk-android-session-replay/src/test/kotlin/com/datadog/android/sessionreplay/forge/GsonJsonArrayForgeryFactory.kt | DataDog | 219,536,756 | false | null | /*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
package com.datadog.android.sessionreplay.forge
import com.google.gs... | 44 | null | 60 | 86 | bcf0d12fd978df4e28848b007d5fcce9cb97df1c | 1,472 | dd-sdk-android | Apache License 2.0 |
app/src/main/java/me/lazmaid/fireredux/navigation/HomeViewKey.kt | VerachadW | 77,805,522 | false | null | package me.lazmaid.fireredux.navigation
import android.content.Context
import android.content.Intent
import me.lazmaid.fireredux.view.home.HomeActivity
/**
* Created by VerachadW on 1/3/2017 AD.
*/
class HomeViewKey : ViewKey {
override fun createIntent(context: Context): Intent = Intent(context, HomeActivity... | 0 | Kotlin | 2 | 4 | 137600fccbd1c2ead08d6adabccfc3dccef90517 | 336 | FireRedux | MIT License |
components/virtual-node/virtual-node-info-read-service/src/main/kotlin/net/corda/virtualnode/read/impl/VirtualNodeInfoMap.kt | corda | 346,070,752 | false | null | package net.corda.virtualnode.read.impl
import net.corda.crypto.core.ShortHash
import net.corda.data.identity.HoldingIdentity
import net.corda.data.virtualnode.VirtualNodeInfo
import net.corda.virtualnode.toCorda
import java.util.concurrent.ConcurrentHashMap
/**
* Map of [HoldingIdentity] to [VirtualNodeInfo] AVRO d... | 82 | null | 7 | 69 | d478e119ab288af663910f9a2df42a7a7b9f5bce | 4,300 | corda-runtime-os | Apache License 2.0 |
tags/src/main/kotlin/pl/shockah/treble/BassStreamExtentions.kt | Shockah | 243,843,155 | false | null | package pl.shockah.treble
import pl.shockah.treble.BassTagsLibrary as L
fun BassStream.getTags(vararg elements: BassTagFormat.Element): String {
return getTags(BassTagFormat(elements.joinToString("")))
}
fun BassStream.getTags(format: BassTagFormat): String {
return L.lib.TAGS_Read(handle, format.format)
} | 0 | Kotlin | 0 | 0 | 26ca403ceaa03ce5bd3765e54fcc561cd857d004 | 312 | Treble-JVM | Apache License 2.0 |
MvpDemos/baselib/src/main/java/com/wlm/baselib/net/ResponseExt.kt | wangliming123 | 189,384,638 | false | null | package com.wlm.baselib.net
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.coroutineScope
suspend fun executeResponse(
response: CustomResponse<Any>,
successBlock: suspend CoroutineScope.() -> Unit,
errorBlock: suspend CoroutineScope.() -> Unit
) {
coroutineScope {
if (res... | 0 | Kotlin | 0 | 0 | 08cc0303d1d9badbbe877f85278f409326511bef | 391 | kotlinDemos | Apache License 2.0 |
CommonUI/src/main/java/com/drivequant/drivekit/common/ui/component/triplist/viewModel/DKTripListViewModel.kt | DriveQuantPublic | 216,339,559 | false | {"Kotlin": 1631287, "Java": 8753} | package com.drivequant.drivekit.common.ui.component.triplist.viewModel
import com.drivequant.drivekit.common.ui.component.triplist.DKTripList
import com.drivequant.drivekit.common.ui.component.triplist.extension.orderByDay
import java.util.*
class DKTripListViewModel {
private lateinit var tripList: DKTripList
... | 1 | Kotlin | 3 | 9 | e7956263157c49aae8d6f993a558ea77d9658ee6 | 986 | drivekit-ui-android | Apache License 2.0 |
camera/integration-tests/timingtestapp/src/main/java/androidx/camera/integration/antelope/cameracontrollers/Camera2Controller.kt | RikkaW | 389,105,112 | false | null | /*
* 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 applicab... | 8 | null | 937 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 12,173 | androidx | Apache License 2.0 |
js/js.translator/testData/box/propertyAccess/enumerable.kt | JakeWharton | 99,388,807 | false | null | // EXPECTED_REACHABLE_NODES: 936
package foo
class P {
val simpleProp: Int = 100
val anotherProp: Int = 100
val propWithGetter: Int
get() = 1
fun func() = "2"
}
fun box(): String {
val expectedKeys = setOf("simpleProp", "anotherProp")
assertEquals(expectedKeys, P().keys())
assertE... | 184 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 612 | kotlin | Apache License 2.0 |
ui/src/main/java/ru/tinkoff/acquiring/sdk/localization/LocalizationResources.kt | TinkoffCreditSystems | 268,528,392 | false | null | /*
* Copyright © 2020 Tinkoff Bank
*
* 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 agree... | 26 | null | 16 | 23 | 6deb46fa37a41292e8065a3d7b944acb2e3eac26 | 5,983 | AcquiringSdkAndroid | Apache License 2.0 |
app/src/main/kotlin/batect/utils/Version.kt | da4089 | 183,998,060 | true | {"Gradle": 18, "INI": 2, "Markdown": 21, "Shell": 22, "Text": 3, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "EditorConfig": 1, "YAML": 36, "Kotlin": 370, "Dockerfile": 22, "HTML": 5, "Groovy": 4, "Python": 2, "Java": 1, "JSON": 2, "JavaScript": 8} | /*
Copyright 2017-2018 <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 wr... | 1 | Kotlin | 1 | 1 | b02013e2b0ab3e9ba3298f160c69971543bda985 | 2,543 | batect | Apache License 2.0 |
core/src/commonMain/kotlin/io/github/aeckar/parsing/ParserDefinitionDsl.kt | aeckar | 834,956,853 | false | {"Kotlin": 30489} | package io.github.aeckar.parsing
import io.github.aeckar.parsing.typesafe.*
import io.github.aeckar.parsing.utils.unsafeCast
import kotlin.reflect.KProperty
/**
* Creates a new parser that takes no arguments.
*
* The symbols in the returned parser are resolved statically during initialization.
* @throws Malformed... | 0 | Kotlin | 0 | 0 | 2051c8b348d93cfa1d9ae461137bd9b2295a70e7 | 14,322 | power-parse | MIT License |
livedata/src/main/java/com/dokar/lazyrecycler/livedata/LiveValue.kt | dokar3 | 344,170,886 | false | null | package com.dokar.lazyrecycler.livedata
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.LiveData
import androidx.lifecycle.Observer
import com.dokar.lazyrecycler.data.MutableValue
/**
* LiveData<List<I>> to mutable value.
*/
fun <I> LiveData<I>.toMutableValue(
lifecycleOwner: LifecycleOwner
)... | 5 | Kotlin | 0 | 9 | a958fa16cd2f83d0a72e624431d970dd9b426c60 | 811 | LazyRecycler | Apache License 2.0 |
shared/feature/geminio-sdk/src/test/kotlin/ru/hh/plugins/geminio/sdk/recipe/expressions/modifiers/ClassToResourceModifierSpec.kt | hhru | 159,637,875 | false | null | package ru.hh.plugins.geminio.sdk.recipe.expressions.modifiers
import io.kotest.core.spec.style.FreeSpec
import io.kotest.matchers.shouldBe
import ru.hh.plugins.geminio.sdk.helpers.GeminioExpressionUtils
import ru.hh.plugins.geminio.sdk.recipe.models.expressions.RecipeExpressionModifier
internal class ClassToResourc... | 17 | null | 11 | 97 | 2d6c02fc814eff3934c17de77ef7ade91d3116f5 | 3,030 | android-multimodule-plugin | MIT License |
app/src/main/java/com/uxstate/presentation/MainActivity.kt | Tonnie-Dev | 499,809,893 | false | {"Kotlin": 91947} | package com.uxstate.presentation
import android.graphics.Color
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.SystemBarStyle
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.layout.fillMaxSize
import a... | 0 | Kotlin | 0 | 0 | 8e2e754ba6191a39061a8750b927a5b84d610eb9 | 1,749 | AsteroidsInCompose | The Unlicense |
core/configuration/src/main/kotlin/sqldelight/SQLDelightDrivers.kt | boswelja | 573,349,207 | false | {"Kotlin": 102965, "Dockerfile": 214} | /*
* Copyright 2024 AndroidDev Discord Dev Team
*
* 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 o... | 4 | Kotlin | 0 | 6 | e6718e000ca74bcb2ba52a1b221516c00317bc21 | 1,155 | android-dev-discord-bots | Apache License 2.0 |
ktor-client/ktor-client-cio/src/io/ktor/client/engine/cio/CIO.kt | danielmischler | 143,022,166 | true | {"Kotlin": 1843385, "Lua": 280, "HTML": 35} | package io.ktor.client.engine.cio
import io.ktor.client.*
import io.ktor.client.engine.*
/**
* [HttpClientEngineFactory] using a Coroutine based I/O implementation without additional dependencies
* with the the associated configuration [HttpClientEngineConfig].
*
* Just supports HTTP/1.x requests.
*/
object CIO ... | 0 | Kotlin | 0 | 0 | afa45ccd42011ff5f73e639aca12795cd7f267b0 | 613 | ktor | Apache License 2.0 |
app/src/main/java/com/challenge/profileviewer/data/user/UserRepo.kt | n-belokopytov | 128,116,416 | false | null | package com.challenge.profileviewer.data.user
import com.challenge.profileviewer.data.common.NetworkConfig
import com.challenge.profileviewer.data.user.model.ChangeAvatarRequest
import com.challenge.profileviewer.data.user.model.User
import com.challenge.profileviewer.data.user.sources.UserNetworkAPI
import com.challe... | 0 | Kotlin | 0 | 0 | 05ed3e879285f5f4a2fa2e1092a2d14e4233fcc2 | 3,613 | profile-viewer | Apache License 2.0 |
example/android/app/src/main/java/br/com/zup/beaglehackday/data/model/CharlesResponse.kt | analuizabonetti | 294,534,707 | true | {"Swift": 53338, "Kotlin": 48278, "Makefile": 319, "Ruby": 243} | /*
* Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* 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... | 0 | null | 0 | 0 | 40f5b645e2b58ee798e97df9d20c4b2e7763fe32 | 796 | beagle-adoption-demo | Apache License 2.0 |
app/src/main/java/me/rosuh/jianews/view/UserCenterActivity.kt | rosuH | 131,314,927 | false | null | package me.rosuh.jianews.view
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import cn.pedant.SweetAlert.SweetAlertDialog
import com.orhanobut.hawk.Hawk
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Schedulers
import kotl... | 0 | Kotlin | 0 | 1 | 1c6a0280afcc20cb8002ec563f40a723c60c30b2 | 3,421 | JiaNews | MIT License |
app/src/main/java/playground/develop/socialnote/database/local/notes/Note.kt | mars-amn | 197,773,483 | false | {"Kotlin": 252056, "JavaScript": 2212} | package playground.develop.socialnote.database.local.notes
import androidx.room.ColumnInfo
import androidx.room.Embedded
import androidx.room.Entity
import androidx.room.PrimaryKey
import playground.develop.socialnote.database.local.geofence.NoteGeofence
import playground.develop.socialnote.database.local.reminder.Not... | 0 | Kotlin | 10 | 58 | 811a30081d7cf3555419a618ead5cebc0e28a6d7 | 1,621 | Social-Note | MIT License |
android/src/main/java/io/github/tonnyl/moka/ui/search/repositories/SearchedRepositoriesItemDataSource.kt | ETSEmpiricalStudyKotlinAndroidApps | 496,360,843 | false | {"Kotlin": 1391177, "Swift": 100384, "CSS": 30407, "JavaScript": 13933, "Shell": 2990} | package io.github.tonnyl.moka.ui.search.repositories
import androidx.paging.PagingSource
import androidx.paging.PagingSource.LoadResult.Error
import androidx.paging.PagingSource.LoadResult.Page
import androidx.paging.PagingState
import com.apollographql.apollo3.ApolloClient
import com.apollographql.apollo3.api.Optiona... | 0 | null | 0 | 0 | 34db6153b274028158de1ee08f080b1a8f985325 | 2,315 | Moka | MIT License |
boat-egg/src/main/kotlin/xyz/srclab/common/egg/boat/OEngine.kt | srclab-projects | 247,777,997 | false | null | package xyz.srclab.common.egg.boat
open class OEngine(
private val data: OData,
private val scenario: OScenario
) {
fun tick(tick: Long, orders: List<OOrder>) {
executeOrders(orders, data.config, tick)
checkCollision(data.tanks, data.bullets, tick)
autoMove(data.tanks, data.bullets... | 0 | Kotlin | 1 | 4 | a630d2897d5299af34ec17cfe335f3df3221851e | 5,204 | boat | Apache License 2.0 |
src/me/anno/gpu/buffer/Buffer.kt | AntonioNoack | 266,471,164 | false | null | package me.anno.gpu.buffer
import me.anno.cache.data.ICacheData
import me.anno.gpu.GFX
import me.anno.gpu.buffer.Attribute.Companion.computeOffsets
import me.anno.gpu.shader.Shader
import me.anno.utils.LOGGER
import org.lwjgl.opengl.GL11
import org.lwjgl.opengl.GL15
import org.lwjgl.opengl.GL30.*
import org.lwjgl.open... | 0 | Kotlin | 1 | 8 | 421ba71c93c2b660476f96ffb6f4332fa07bd2b3 | 9,458 | RemsStudio | Apache License 2.0 |
effit-cqrs-backend/src/main/kotlin/be/swsb/effit/messaging/command/NoCommandHandlerException.kt | SoftwareSandbox | 179,507,167 | false | null | package be.swsb.effit.messaging.command
class NoCommandHandlerException(command: String) : RuntimeException("Could not find CommandHandler for query: $command")
| 34 | Kotlin | 2 | 6 | 4b2f86c13e46c5561f7e675bf8c153025969e223 | 162 | effit-challenge | MIT License |
components/virtual-node/virtual-node-write-service-impl/src/main/kotlin/net/corda/virtualnode/write/db/impl/writer/asyncoperation/MigrationUtility.kt | corda | 346,070,752 | false | null | package net.corda.virtualnode.write.db.impl.writer.asyncoperation
import java.util.UUID
import net.corda.libs.cpi.datamodel.CpkDbChangeLogEntity
import net.corda.virtualnode.ShortHash
/**
* Utility for running migrations.
*/
internal interface MigrationUtility {
/**
* Runs migrations on the vault with the ... | 82 | Kotlin | 7 | 24 | 17f5d2e5585a8ac56e559d1c099eaee414e6ec5a | 1,654 | corda-runtime-os | Apache License 2.0 |
app/src/main/java/com/example/job_test/data/model/IsLoginResponse.kt | NikhilBhatt-15 | 863,136,468 | false | {"Kotlin": 78878} | package com.example.job_test.data.model
data class IsLoginResponse(
val success: Boolean,
val user: User
) | 0 | Kotlin | 0 | 0 | c3d7d156555c7290376ddd9eda5916095315bfb7 | 115 | JobQuest_android_App | MIT License |
LottieSample/src/main/kotlin/com/airbnb/lottie/samples/MainActivity.kt | microshow | 174,943,909 | false | null | package com.airbnb.lottie.samples
import android.os.Bundle
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.app.AppCompatDelegate
import androidx.browser.customtabs.CustomTabsIntent
import androidx.core.net.toUri
import androidx.fragment.app.Fragment
import com.goo... | 1 | null | 1 | 2 | e3bba6cbef78f1883e320ae2268e01b2889a073c | 1,651 | lottie-android | Apache License 2.0 |
Project/src-ParserV3/src/edu/citadel/cprl/ast/ProcedureCallStmt.kt | SoftMoore | 862,337,273 | false | {"Kotlin": 374155, "Assembly": 91621, "Shell": 6140, "Batchfile": 6007} | package edu.citadel.cprl.ast
import edu.citadel.common.ConstraintException
import edu.citadel.cprl.Token
import edu.citadel.cprl.StringType
/**
* The abstract syntax tree node for a procedure call statement.
*
* @constructor Construct a procedure call statement with the procedure
* name (an identifi... | 0 | Kotlin | 0 | 0 | 068fc0b75553d1d43dacb4ac7f81d6214fea6541 | 1,818 | CPRL-Kt-3rd | The Unlicense |
remote/src/main/kotlin/io/github/gmvalentino8/github/sample/remote/models/ReleaseMinusNotesMinusContentApiModel.kt | wasabi-muffin | 462,369,263 | false | {"Kotlin": 2712155, "Mustache": 4796, "Ruby": 1144, "Shell": 812} | /**
* GitHub v3 REST API
*
* GitHub's v3 REST API.
*
* The version of the OpenAPI document: 1.1.4
*
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"R... | 0 | Kotlin | 0 | 1 | 2194a2504bde08427ad461d92586497c7187fb40 | 1,010 | github-sample-project | Apache License 2.0 |
analysis/low-level-api-fir/testData/lazyAnnotations/get/targetAndRegular_target.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... | // QUERY: get: kotlin.annotation/Target
// WITH_STDLIB
package pack
@AnotherAnno(1) @Target(AnnotationTarget.FIELD)
annotation cla<caret>ss MyAnno
annotation class AnotherAnno(val value: Int) | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 193 | kotlin | Apache License 2.0 |
src/main/kotlin/org/ageseries/libage/sim/electrical/mna/Node.kt | age-series | 414,408,529 | false | null | package org.eln2.sim.electrical.mna
import org.eln2.debug.dprintln
import org.eln2.sim.electrical.mna.component.Component
import org.eln2.data.DisjointSet
/**
* A "node", in MNA; the non-resistive connections between [Component]s. All [Pin]s which are connected share a single instance of Node.
*
* Aside from ident... | 5 | null | 1 | 1 | 6c1d0a96929de5c2a0994d7d2489566b81c83b0b | 3,992 | libage | MIT License |
vxutil-vertigram/src/main/kotlin/ski/gagar/vxutil/vertigram/methods/SendAudio.kt | gagarski | 314,041,476 | false | null | package ski.gagar.vxutil.vertigram.methods
import ski.gagar.vertigram.annotations.TgMethod
import ski.gagar.vxutil.vertigram.types.ChatId
import ski.gagar.vxutil.vertigram.types.Message
import ski.gagar.vxutil.vertigram.types.MessageEntity
import ski.gagar.vxutil.vertigram.types.ParseMode
import ski.gagar.vxutil.verti... | 0 | Kotlin | 0 | 0 | 20cd7a50d017f865814891fa15324c11434e679a | 1,102 | vertigram | Apache License 2.0 |
vxutil-vertigram/src/main/kotlin/ski/gagar/vxutil/vertigram/methods/SendAudio.kt | gagarski | 314,041,476 | false | null | package ski.gagar.vxutil.vertigram.methods
import ski.gagar.vertigram.annotations.TgMethod
import ski.gagar.vxutil.vertigram.types.ChatId
import ski.gagar.vxutil.vertigram.types.Message
import ski.gagar.vxutil.vertigram.types.MessageEntity
import ski.gagar.vxutil.vertigram.types.ParseMode
import ski.gagar.vxutil.verti... | 0 | Kotlin | 0 | 0 | 20cd7a50d017f865814891fa15324c11434e679a | 1,102 | vertigram | Apache License 2.0 |
compose/ui/ui/samples/src/main/java/androidx/compose/ui/samples/AndroidViewSample.kt | androidx | 256,589,781 | 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... | 29 | null | 946 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 5,312 | androidx | Apache License 2.0 |
app/src/main/java/com/kyberswap/android/data/repository/LimitOrderDataRepository.kt | KYRDTeam | 181,612,742 | false | null | package com.kyberswap.android.data.repository
import android.content.Context
import android.util.Base64
import com.google.gson.Gson
import com.kyberswap.android.KyberSwapApplication
import com.kyberswap.android.R
import com.kyberswap.android.data.api.home.LimitOrderApi
import com.kyberswap.android.data.api.home.TokenA... | 1 | null | 10 | 26 | abd4ab033d188918849e5224cc8204409776391b | 26,047 | android-app | MIT License |
app/src/main/java/com/nivekaa/icepurpykt/infra/activity/SplashScreenActivity.kt | nivekalara237 | 394,590,651 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 48, "XML": 89, "Java": 5} | package com.nivekaa.icepurpykt.infra.activity
import android.content.Intent
import android.graphics.Typeface
import android.os.Bundle
import android.os.Handler
import android.view.animation.Animation
import android.view.animation.AnimationUtils
import android.widget.ImageView
import android.widget.TextView
import com.... | 0 | Kotlin | 0 | 0 | aaddfaf3e4299ece7eb5921073a319006c03df52 | 3,589 | ice-purpy4kt | Apache License 2.0 |
idea/testData/refactoring/safeDeleteMultiModule/byHeaderFunParamerer/before/Common/src/test/test.kt | dgrachev28 | 101,798,165 | true | {"Java": 26358285, "Kotlin": 24866412, "JavaScript": 144710, "Protocol Buffer": 57164, "HTML": 55011, "Lex": 18174, "Groovy": 14228, "ANTLR": 9797, "IDL": 8350, "Shell": 5436, "CSS": 4679, "Batchfile": 4437} | package test
header class Foo(<caret>n: Int)
fun test() {
Foo(1)
Foo(n = 1)
} | 0 | Java | 0 | 1 | 4ada69242104c8ce265383400797ed37d74c7fe9 | 87 | kotlin | Apache License 2.0 |
mvi/lib-mvi-core/src/main/java/ru/surfstudio/android/core/mvi/ui/relation/StateObserver.kt | surfstudio | 139,034,657 | false | null | /*
Copyright (c) 2020, SurfStudio LLC.
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 writ... | 5 | null | 30 | 249 | 6d73ebcaac4b4bd7186e84964cac2396a55ce2cc | 1,338 | SurfAndroidStandard | Apache License 2.0 |
compiler/testData/diagnostics/tests/evaluate/intOverflowWithJavaProperties.kt | JakeWharton | 99,388,807 | true | null | // FILE: Test.java
public class Test {
public static int i1 = Integer.MAX_VALUE;
public static final int i2 = Integer.MAX_VALUE;
public final int i3 = Integer.MAX_VALUE;
public int i4 = Integer.MAX_VALUE;
}
// FILE: A.kt
val a1: Int = Test.i1 + 1
val a2: Int = <!INTEGER_OVERFLOW!>Test.i2 + 1<!>
val a3... | 179 | Kotlin | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 392 | kotlin | Apache License 2.0 |
compiler/testData/diagnostics/tests/evaluate/intOverflowWithJavaProperties.kt | JakeWharton | 99,388,807 | true | null | // FILE: Test.java
public class Test {
public static int i1 = Integer.MAX_VALUE;
public static final int i2 = Integer.MAX_VALUE;
public final int i3 = Integer.MAX_VALUE;
public int i4 = Integer.MAX_VALUE;
}
// FILE: A.kt
val a1: Int = Test.i1 + 1
val a2: Int = <!INTEGER_OVERFLOW!>Test.i2 + 1<!>
val a3... | 179 | Kotlin | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 392 | kotlin | Apache License 2.0 |
src/main/java/uk/gov/justice/hmpps/prison/repository/ScheduleRepository.kt | ministryofjustice | 156,829,108 | false | null | package uk.gov.justice.hmpps.prison.repository
import org.springframework.jdbc.core.SqlParameterValue
import org.springframework.stereotype.Repository
import uk.gov.justice.hmpps.prison.api.model.PrisonerPrisonSchedule
import uk.gov.justice.hmpps.prison.api.model.PrisonerPrisonScheduleDto
import uk.gov.justice.hmpps.p... | 5 | null | 6 | 6 | c3d08a4c67f24e3c3bea9af8f9f8cfc16f787b6d | 7,765 | prison-api | MIT License |
idea/tests/testData/editor/optimizeImports/common/UnresolvedImport.kt | JetBrains | 278,369,660 | false | null | // FIR_COMPARISON
import pack1.Class4
import pack1.Example
import pack2.*
import pack3.Ggd
fun method(a: Class4) {
Example()
} | 1 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 131 | intellij-kotlin | Apache License 2.0 |
utils/src/main/kotlin/xyz/junerver/utils/ex/Extensions.kt | junerver | 431,681,610 | false | {"Java": 693161, "Kotlin": 205110} | package xyz.junerver.utils.ex
import android.app.Activity
import android.content.Context
import android.content.pm.PackageManager
import android.graphics.drawable.Drawable
import android.net.Uri
import android.os.Build
import android.os.Handler
import android.os.Looper
import android.util.Base64
import android.util.L... | 1 | null | 1 | 1 | 341e00804f42ae97a317894c542d2aad67f26db9 | 21,637 | Utils | MIT License |
px-checkout/src/main/java/com/mercadopago/android/px/internal/util/TokenCreationWrapper.kt | mercadopago | 49,529,486 | false | null | package com.mercadopago.android.px.internal.util
import com.mercadopago.android.px.addons.ESCManagerBehaviour
import com.mercadopago.android.px.addons.model.EscDeleteReason
import com.mercadopago.android.px.internal.callbacks.awaitTaggedCallback
import com.mercadopago.android.px.internal.extensions.isNotNullNorEmpty
i... | 38 | Java | 69 | 94 | f5cfa00ea5963f9153a237c3f329af5d2d6cd87f | 5,333 | px-android | MIT License |
app/src/main/java/com/kryptkode/farmz/app/data/auth/AuthRepositoryImpl.kt | KryptKode | 304,291,186 | false | null | package com.kryptkode.farmz.app.data.auth
import androidx.annotation.VisibleForTesting
import com.kryptkode.farmz.app.data.keyvaluestore.KeyValueStore
import com.kryptkode.farmz.app.data.state.DataState
import com.kryptkode.farmz.app.dispatcher.AppDispatchers
import com.kryptkode.farmz.app.domain.AuthRepository
import... | 1 | null | 1 | 2 | 5a4e9ed3b762f5a3cf6562b6cfd38210e78af69b | 1,455 | Farmz | MIT License |
apollo-api/src/commonMain/kotlin/com/apollographql/apollo/api/internal/json/ResponseJsonStreamReader.kt | apollostack | 69,469,299 | false | null | package com.apollographql.apollo.api.internal.json
import com.apollographql.apollo.api.BigDecimal
import com.apollographql.apollo.api.internal.Throws
import okio.IOException
open class ResponseJsonStreamReader(
private val jsonReader: JsonReader
) {
@Throws(IOException::class)
operator fun hasNext(): Boolean... | 117 | null | 531 | 2,897 | f16ef0f4020af7a07c200f0fdcf1dac977d63637 | 5,073 | apollo-android | MIT License |
kotlin/app/src/main/java/com/huawei/hms/maps/sample/utils/MapUtils.kt | HMS-Core | 242,925,126 | false | null | /*
* Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
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 requi... | 9 | null | 42 | 113 | 4379a5caaba4820544911103407cff95fc167104 | 1,740 | hms-mapkit-demo | Apache License 2.0 |
js/js.translator/testFiles/expression/misc/cases/whenReturnedWithoutBlock.kt | chirino | 3,596,099 | false | null | package foo
fun box() : Boolean {
if (t(1) != 0) {
return false
}
if (t(0) != 1) {
return false
}
return (t(100) == 2)
}
fun t(i : Int) = when(i) {
0 -> 1
1 -> 0
else -> 2
} | 0 | null | 28 | 71 | ac434d48525a0e5b57c66b9f61b388ccf3d898b5 | 204 | kotlin | Apache License 2.0 |
simplecloud-api/src/main/kotlin/eu/thesimplecloud/api/network/packets/player/PacketIOGetPlayerPing.kt | theSimpleCloud | 270,085,977 | false | null | package eu.thesimplecloud.api.network.packets.player
import eu.thesimplecloud.api.CloudAPI
import eu.thesimplecloud.api.player.ICloudPlayer
import eu.thesimplecloud.clientserverapi.lib.connection.IConnection
import eu.thesimplecloud.clientserverapi.lib.packet.packettype.ObjectPacket
import eu.thesimplecloud.clientserv... | 8 | null | 43 | 98 | 8f10768e2be523e9b2e7c170965ca4f52a99bf09 | 985 | SimpleCloud | MIT License |
CW/lesson_04/app/src/main/java/com/marbax/movieapi/adapter/MovieAdapter.kt | Marbax | 336,551,271 | false | null | package com.marbax.movieapi.adapter
import android.graphics.drawable.Drawable
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.*
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.bumptech.glide.load.DataSource
impo... | 1 | null | 1 | 1 | 7d44f516c8230483bb0fc195256eab8665afbcae | 5,176 | Android | MIT License |
tests/maven/kotlin/src/main/kotlin/dev/morphia/critter/test/AbstractPerson.kt | evanchooly | 7,252,246 | false | {"Maven POM": 12, "Text": 2, "Ignore List": 3, "Markdown": 2, "YAML": 5, "XML": 3, "Kotlin": 58, "Gradle": 3, "Gradle Kotlin DSL": 3, "Shell": 3, "Batchfile": 3, "INI": 6, "Java": 17, "AsciiDoc": 3} | package dev.morphia.critter.test
abstract class AbstractPerson {
var age: Long = 0L
}
| 13 | Kotlin | 2 | 14 | f9c759319fd9aa8747d8762bccfc2edfb078b263 | 91 | critter | Apache License 2.0 |
app/src/main/java/me/ykrank/s1next/view/event/PostAddImageEvent.kt | ykrank | 52,680,091 | false | {"Kotlin": 850930, "Java": 727444, "HTML": 20430} | package me.ykrank.s1next.view.event
/**
* Add image in post edit or new
*/
class PostAddImageEvent(val url: String)
| 1 | Kotlin | 37 | 317 | 0c0b0fdb992db9b046265ee6e9b50ac676a1c104 | 119 | S1-Next | Apache License 2.0 |
src/main/kotlin/me/damon/schoolbot/apis/JohnstownAPI.kt | day-mon | 450,948,808 | false | {"Kotlin": 308718, "Dockerfile": 1374} | package me.damon.schoolbot.apis
import me.damon.schoolbot.objects.models.CourseModel
import me.damon.schoolbot.objects.models.LaundryModel
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Path
interface JohnstownAPI
{
@GET("laundry/{dorm}")
suspend fun getLaundryItems(@Path("dorm") do... | 0 | Kotlin | 0 | 2 | 7fc75f84a247060a53049ca04eb9c61fedf4b3b8 | 506 | Schoolbot-kt | Apache License 2.0 |
app/src/main/java/com/aleqsanbr/confirmatio/screens/Diary.kt | aleqsanbr | 700,928,127 | false | {"Kotlin": 311823} | package com.aleqsanbr.confirmatio.screens
import androidx.compose.foundation.ScrollState
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layo... | 0 | Kotlin | 0 | 3 | 37bfc8751e2c0181f6d332b51953d708b1627e91 | 27,195 | confirmatio | Apache License 2.0 |
app/src/main/java/com/aleqsanbr/confirmatio/screens/Diary.kt | aleqsanbr | 700,928,127 | false | {"Kotlin": 311823} | package com.aleqsanbr.confirmatio.screens
import androidx.compose.foundation.ScrollState
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layo... | 0 | Kotlin | 0 | 3 | 37bfc8751e2c0181f6d332b51953d708b1627e91 | 27,195 | confirmatio | Apache License 2.0 |
reports-scheduler/src/main/kotlin/com/amazon/opendistroforelasticsearch/reportsscheduler/resthandler/OnDemandReportRestHandler.kt | logstail | 336,423,792 | false | null | /*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
/*
* Copyright 2020 Amaz... | 0 | null | 0 | 1 | 748e938084436c1f29d19495665f790584c4db5c | 5,180 | kibana-reports | Apache License 2.0 |
common/src/main/java/io/novafoundation/nova/common/resources/ResourceManager.kt | novasamatech | 415,834,480 | false | null | package io.novafoundation.nova.common.resources
import android.graphics.drawable.Drawable
import androidx.annotation.DrawableRes
import androidx.annotation.RawRes
import androidx.annotation.StringRes
import io.novafoundation.nova.common.R
import io.novafoundation.nova.common.utils.formatting.format
import kotlin.time.... | 9 | null | 7 | 9 | b39307cb56302ce7298582dbd03f33f6b2e2a807 | 2,025 | nova-wallet-android | Apache License 2.0 |
http/src/main/java/com/antimage/http/internal/GsonManager.kt | robinvanPersie | 202,834,560 | false | null | package com.antimage.http.internal
import com.antimage.http.annotation.Exclude
import com.google.gson.*
import com.google.gson.reflect.TypeToken
import com.google.gson.stream.JsonReader
import com.google.gson.stream.JsonWriter
import java.lang.reflect.Type
internal class GsonManager private constructor() {
compa... | 1 | null | 1 | 1 | 9b47366fa6b65ac88a694928b3ce49efdd0799bc | 2,821 | kt-frame | Apache License 2.0 |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/appmesh/GrpcHealthCheckOptionsDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.appmesh
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.Number
import software.amazon.awscdk... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 2,032 | awscdk-dsl-kotlin | Apache License 2.0 |
commonutils/src/main/java/com/postliu/commonutils/view/SpannableStringBuilderExt.kt | PostLiu | 574,770,295 | false | null | package com.postliu.commonutils.view
import android.content.Context
import android.graphics.*
import android.text.SpannableStringBuilder
import android.text.style.*
import android.view.View
import androidx.annotation.DrawableRes
import androidx.annotation.FontRes
import androidx.core.content.res.ResourcesCompat
import... | 0 | Kotlin | 0 | 0 | b2814501349491429b8acd29197be1962623e356 | 3,411 | common_utils | Apache License 2.0 |
src/test/kotlin/lasori/komp/KompTest.kt | LasOri | 790,640,201 | false | null | package lasori.komp
import kotlinx.serialization.builtins.serializer
import lasori.komp.annotation.Kompose
import lasori.komp.data.Convertible
import lasori.komp.data.generator.Generator
import lasori.komp.data.generator.valueType.DoubleType
import lasori.komp.data.generator.valueType.IntType
import lasori.komp.data.g... | 0 | null | 0 | 2 | f38d568ab2ab7dddccf3fbc46a840f38b7e4c202 | 1,691 | komp | MIT License |
mvp/sample-mvp-widget/src/main/java/ru/surfstudio/android/mvpwidget/sample/ui/screen/main/MainActivityView.kt | surfstudio | 139,034,657 | false | null | package ru.surfstudio.android.mvpwidget.sample.ui.screen.main
import android.os.Bundle
import android.os.PersistableBundle
import androidx.annotation.IdRes
import kotlinx.android.synthetic.main.activity_main.*
import ru.surfstudio.android.core.mvp.activity.BaseRenderableActivityView
import ru.surfstudio.android.core.m... | 5 | null | 30 | 249 | 6d73ebcaac4b4bd7186e84964cac2396a55ce2cc | 1,596 | SurfAndroidStandard | Apache License 2.0 |
frontend/actor/src/commonMain/kotlin/actor/LineActor.kt | 85vmh | 543,628,296 | false | {"Kotlin": 956103, "C++": 75148, "Java": 7157, "Makefile": 2742, "HTML": 419, "Shell": 398, "CSS": 108} | package canvas
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathEffect
import androidx.compose.ui.graphics.StrokeCap
import androidx.compose.ui.graphics.drawscope.DrawScope
import androidx.compose.ui.graphics.drawscope.Stroke
open class LineA... | 0 | Kotlin | 1 | 3 | 5cf42426895ba8691c9b53ba1b97c274bbdabc07 | 867 | mindovercnclathe | Apache License 2.0 |
compose/integration-tests/demos/src/main/java/androidx/compose/integration/demos/settings/SoftInputModeSetting.kt | androidx | 256,589,781 | 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 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 3,838 | androidx | Apache License 2.0 |
JetpackMvvm/src/main/java/com/example/jetpackmvvm/ext/view/EditTextViewExt.kt | wuxiaoqi123 | 357,750,178 | false | null | package com.example.jetpackmvvm.ext.view
import android.widget.EditText
fun EditText.textString(): String {
return text.toString()
} | 1 | null | 1 | 1 | 42029a8f055f04fb2c7ea3605fc408e57bbb267c | 138 | jntm | Apache License 2.0 |
app/src/main/java/com/example/dropchallenge/ui/main/model/Customer.kt | knappdev | 279,151,994 | false | null | package com.example.dropchallenge.ui.main.model
data class Customer(
val id: Int,
val beerRequest: Set<BeerRequest>
) | 0 | Kotlin | 0 | 0 | 475f3ecadaa5cbb93eca7c60e83ce4db5f15edb7 | 138 | dropChallenge | Apache License 2.0 |
project/common-impl/src/main/kotlin/ink/ptms/adyeshach/impl/script/ActionNPC.kt | TabooLib | 284,936,010 | false | {"Kotlin": 1073179, "Java": 35966} | package ink.ptms.adyeshach.impl.script
import ink.ptms.adyeshach.core.util.errorBy
import ink.ptms.adyeshach.core.util.plus
import ink.ptms.adyeshach.impl.getEntities
import ink.ptms.adyeshach.impl.getManager
import ink.ptms.adyeshach.impl.isEntitySelected
import taboolib.module.kether.*
import java.util.concurrent.Co... | 14 | Kotlin | 97 | 121 | b2063fc467ab6b90bd3c2511f1c043d62a794c71 | 1,668 | adyeshach | MIT License |
swingsettings/src/main/kotlin/com/deflatedpickle/sniffle/swingsettings/theme/SolarizedLaf.kt | DeflatedPickle | 286,057,841 | false | null | /* Copyright (c) 2021 DeflatedPickle under the MIT license */
package com.deflatedpickle.sniffle.swingsettings.theme
import com.deflatedpickle.sniffle.swingsettings.api.Project
import com.deflatedpickle.sniffle.swingsettings.api.Theme
import com.deflatedpickle.sniffle.swingsettings.util.ThemeSerializer
import eu.herr... | 1 | Kotlin | 0 | 0 | 604ce9cfb9db8266fed1bfaa391f925a0af24021 | 775 | sniffle | MIT License |
build-logic/convention/src/main/kotlin/KotlinMultiplatformTestConventionPlugin.kt | OHoussein | 388,247,123 | false | null | import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.artifacts.VersionCatalogsExtension
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.getByType
import org.gradle.kotlin.dsl.withType
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
import org.jetbrains... | 1 | null | 2 | 7 | 058db76aea8bfdca38764cd7acc5b16ba84b87ac | 1,679 | android-ios-kmm-crypto-app | Apache License 2.0 |
src/test/kotlin/com/github/vhromada/catalog/utils/JokeUtils.kt | vhromada | 795,933,875 | false | {"Kotlin": 1771817, "Dockerfile": 376} | package com.github.vhromada.catalog.utils
import com.github.vhromada.catalog.entity.Joke
import com.github.vhromada.catalog.entity.io.ChangeJokeRequest
import jakarta.persistence.EntityManager
import org.assertj.core.api.Assertions.assertThat
import org.assertj.core.api.SoftAssertions.assertSoftly
/**
* Updates joke... | 0 | Kotlin | 0 | 0 | 9feab9abeb8b1ae84ae9c5e1d3c81ef7df7d0f97 | 8,409 | catalog-be | MIT License |
app/src/main/java/com/glover/hearx/fragments/TestFragment.kt | HeinrichGlover | 723,356,950 | false | {"Kotlin": 94971, "Java": 6801, "Rich Text Format": 1484} | package com.glover.hearx.fragments
import android.content.DialogInterface
import android.media.AudioManager
import android.media.MediaPlayer
import android.media.SoundPool
import android.os.Build
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.view.LayoutInflater
im... | 0 | Kotlin | 0 | 0 | cfb13a4301dc63ff83b1a6f03350d4af0b906667 | 16,848 | HearX-Android | Apache License 2.0 |
buildSrc/src/main/kotlin/Versions.kt | MathieuScotet | 374,911,803 | false | null | object Versions {
const val group = "tech.skot.libraries.sk-tabbar"
const val library = "0.1.5"
const val framework = "1.1.55"
} | 1 | Kotlin | 1 | 1 | 102e4441f32c08349a0710666adef333e66ed7b6 | 140 | sk-tabbar | Apache License 2.0 |
app/src/main/java/world/shanya/serialportsample/DebugActivity.kt | Shanyaliux | 340,804,163 | false | {"Kotlin": 140106, "Java": 11747} | package world.shanya.serialportsample
import android.annotation.SuppressLint
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_debug.*
import kotlinx.coroutines.MainScope
import kotlinx.coroutines.launch
import world.shanya.serialport.SerialPortBuil... | 1 | Kotlin | 5 | 47 | 384513f6676c2f0bba64a2410d4019335477a5db | 2,976 | SerialPortSample | Apache License 2.0 |
collection-kotlin/src/main/java/com/youngmanster/collection_kotlin/base/dialog/YYDialog.kt | usernameyangyan | 243,885,240 | false | null | package com.youngmanster.collection_kotlin.base.dialog
import android.app.Activity
import android.content.Context
import android.os.Bundle
import android.view.View
import androidx.annotation.LayoutRes
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.DialogFragment
import androidx.fragment.a... | 0 | Java | 3 | 20 | bc7ed916e676075b35f719ec2d41e63f4ae6d9dd | 12,347 | Collection-Android-kotlin | MIT License |
platform/platform-tests/testSrc/com/intellij/ui/dsl/builder/UtilsTest.kt | ingokegel | 72,937,917 | false | null | // 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.ui.dsl.builder
import org.junit.Test
import kotlin.test.assertEquals
class UtilsTest {
@Test
fun testCleanupHtml() {
val testData = mapOf(
"Hello" to "Hello",
... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 590 | intellij-community | Apache License 2.0 |
app/src/main/java/com/example/xlisten/database/FavDB.kt | Sayaka-4987 | 509,675,873 | false | {"Kotlin": 78045} | package com.example.xlisten.database
import android.annotation.SuppressLint
import android.content.ContentValues
import android.content.Context
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper
class FavDB(context: Context, factory: SQLiteDatabase.CursorFactory?) : SQLiteOp... | 1 | Kotlin | 0 | 1 | e8b426d1bd85e5752bfd1e3ec6960a13c9ee3433 | 2,066 | XListen | MIT License |
baseuilib/src/main/java/com/fungo/baseuilib/recycler/BaseRecyclerFragment.kt | huyongqiang | 158,091,309 | false | null | package com.fungo.baseuilib.recycler
import android.os.Bundle
import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.fungo.baseuilib.R
import com.fungo.baseuilib.fragment.BaseNavFragment
import com.fungo.baseuilib.recycler.multitype.... | 0 | Kotlin | 0 | 0 | 27e6ce98dbe5277318ac0c5fc22f0b8b71c8946b | 7,358 | Fungo | Apache License 2.0 |
baseuilib/src/main/java/com/fungo/baseuilib/recycler/BaseRecyclerFragment.kt | huyongqiang | 158,091,309 | false | null | package com.fungo.baseuilib.recycler
import android.os.Bundle
import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.fungo.baseuilib.R
import com.fungo.baseuilib.fragment.BaseNavFragment
import com.fungo.baseuilib.recycler.multitype.... | 0 | Kotlin | 0 | 0 | 27e6ce98dbe5277318ac0c5fc22f0b8b71c8946b | 7,358 | Fungo | Apache License 2.0 |
game/plugins/src/main/kotlin/gg/rsmod/plugins/content/skills/fishing/fishing_skill.plugin.kts | pitchblac23 | 201,185,078 | true | {"Kotlin": 3718848, "Dockerfile": 1354} | package gg.rsmod.plugins.content.skills.fishing
// Spawn all of the fishing npcs from manager
on_world_init {
FishingManager.fishing_locations.forEach { location ->
var count = 1
while(count <= location.numberOfFishingSpots) {
world.spawn(Npc(location.spots.get(count-1).spot.spotEntity... | 0 | Kotlin | 2 | 1 | ade69da919ba62ec3ac37fccab9068f2820c774d | 674 | rsmod | Apache License 2.0 |
idea/testData/intentions/convertFunctionToProperty/sameNameFunWithDifferentReceiver.kt | JetBrains | 278,369,660 | false | null | package foo
class A
class B
fun A.x<caret>(): String = "A.x"
val B.x: String
get() = "B.x" | 0 | Kotlin | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 98 | intellij-kotlin | Apache License 2.0 |
lab/src/main/kotlin/materialui/lab/components/timelinecontent/enums/TimelineContentStyle.kt | subroh0508 | 167,797,152 | false | null | package materialui.lab.components.timelinecontent.enums
@Suppress("EnumEntryName")
enum class TimelineContentStyle {
root,alignRight
} | 14 | Kotlin | 27 | 81 | a959a951ace3b9bd49dc5405bea150d4d53cf162 | 139 | kotlin-material-ui | MIT License |
feature/account/setup/src/main/kotlin/app/k9mail/feature/account/setup/ui/options/AccountOptionsStringMapper.kt | thunderbird | 1,326,671 | false | {"Kotlin": 4391362, "Java": 2272472, "Shell": 6333, "AIDL": 1946} | package app.k9mail.feature.account.setup.ui.options
import android.content.res.Resources
import app.k9mail.core.common.domain.usecase.validation.ValidationError
import app.k9mail.feature.account.setup.R
import app.k9mail.feature.account.setup.domain.entity.EmailCheckFrequency
import app.k9mail.feature.account.setup.do... | 732 | Kotlin | 2437 | 8,885 | ee9fa841e2e242435bc8e9957aa47deb4c209c3b | 2,945 | thunderbird-android | Apache License 2.0 |
src/main/kotlin/com/ex/ex/core/data/user/entity/UserEntity.kt | fajaragungpramana | 750,128,637 | false | {"Kotlin": 75790} | package com.ex.ex.core.data.user.entity
import com.ex.ex.core.data.DataConstant
import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.GeneratedValue
import jakarta.persistence.GenerationType
import jakarta.persistence.Id
import jakarta.persistence.Table
@Entity
@Table(name = D... | 0 | Kotlin | 0 | 1 | edac4e71d3f37015a932c64b0f522af508dcef95 | 1,072 | backend.ex | Apache License 2.0 |
src/main/kotlin/io/github/paulgriffith/kindling/idb/generic/DBMetaDataTree.kt | paul-griffith | 444,600,204 | false | null | package io.github.paulgriffith.kindling.idb.generic
import com.formdev.flatlaf.extras.FlatSVGIcon
import com.formdev.flatlaf.extras.components.FlatTree
import com.jidesoft.swing.StyledLabelBuilder
import com.jidesoft.swing.TreeSearchable
import io.github.paulgriffith.kindling.utils.derive
import io.github.paulgriffith... | 15 | null | 8 | 31 | bf963b2d7bab04414ed418059f94825e039d33ce | 2,941 | kindling | MIT License |
app/src/main/java/com/lovoo/android/tvmaze/data/models/show/Image.kt | boygaggoo | 122,779,787 | false | null | package com.lovoo.android.data.model.show
data class Image(val original: String? = null,val medium: String? = null) | 0 | Kotlin | 0 | 1 | dcdeba092e9237268610bdaf9f215229f5520be1 | 116 | TVMAZEAPI | Apache License 2.0 |
feature/encryption/src/main/java/viach/apps/encryption/repository/EncryptionRepository.kt | viacheslav-chugunov | 691,548,132 | false | {"Kotlin": 170000} | package viach.apps.encryption.repository
interface EncryptionRepository {
fun encrypt(input: String): String
fun decrypt(input: String): String
} | 0 | Kotlin | 0 | 0 | 9d18715cb96941e9665e3dad8bcba510da58905c | 154 | SecurePal-Android | MIT License |
modules/modules_my/src/main/java/com/cl/modules_my/MyActivity.kt | aaaaaaaazmx | 528,318,389 | false | {"Kotlin": 4003694, "Java": 884426} | package com.cl.modules_my
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
class MyActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_my)
}
} | 0 | Kotlin | 0 | 0 | ce83e2c51d424200001507b5736a296f72795a97 | 300 | abby | Apache License 2.0 |
src/chapter1/section1/ex15.kt | hb44 | 360,857,712 | true | {"Kotlin": 1262005} | package chapter1.section1
//返回一个大小为M的数组,第i个元素的值为参数数组source中i出现的次数,原理类似于Java中的BitSet
fun ex15(M: Int, source: Array<Int>): Array<Int> {
val result = Array(M) { 0 }
for (i in source) {
if (i in 0 until M) {
result[i]++
}
}
return result
}
fun main() {
val M = 4
val so... | 0 | null | 0 | 0 | 5664f07094df80ed3cff0c7f5c981f6fe9d5523b | 619 | Algorithms-4th-Edition-in-Kotlin | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.