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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
gogreen/app/src/main/java/com/example/go_green/ListActivity.kt | amelia123w | 841,440,377 | false | {"Kotlin": 3453} | package com.example.go_green
import android.widget.ListAdapter
import ...
class ListActivity : AppCompatActivity() {
private val name = arrayOf("nasi goreng","lontong sayur","bubur ayam","rendang",
"soto","gulai ayam","sate ayam","bakso","gado-gado","bakwan",
"nasi goreng","lontong s... | 0 | Kotlin | 0 | 0 | 2892b7438f80d6329b8d0b4e18e5b0c16403fe9a | 622 | aplikasi-go-green | MIT License |
src/main/kotlin/es/headbe/texnes/datagen/ImageGen.kt | akkuankka | 429,240,202 | false | {"Kotlin": 61167, "Java": 607} | package es.headbe.texnes.datagen
import es.headbe.texnes.util.Colour
import es.headbe.texnes.util.i32
import es.headbe.texnes.util.ident
import net.minecraft.client.MinecraftClient
import net.minecraft.client.util.ModelIdentifier
import java.awt.image.BufferedImage
import java.io.File
import javax.imageio.ImageIO
int... | 0 | Kotlin | 0 | 0 | 9b5e6c221931a6c9d0be5f3aa8d8ea3a1d91f54e | 2,591 | texnes-kt | Creative Commons Zero v1.0 Universal |
features/home/src/test/java/net/lachlanmckee/dota/feature/home/HomeViewModelImplTest.kt | LachlanMcKee | 474,613,803 | false | null | package net.lachlanmckee.dota.feature.home
import androidx.lifecycle.SavedStateHandle
import io.mockk.every
import io.mockk.mockk
import net.lachlanmckee.dota.test.util.flow.suspendTest
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import kotlin.time.ExperimentalTime
@Experime... | 4 | Kotlin | 0 | 0 | 4dbac9bb8932bdb303e16c76f76d6e92ba46933d | 748 | dota-data | Apache License 2.0 |
idea/testData/quickfix/variables/removeValVarFromParameter/afterParameterWithComment.kt | svenefftinge | 34,719,076 | true | {"Java": 15361281, "Kotlin": 9902241, "JavaScript": 941865, "HTML": 33053, "CSS": 14421, "Protocol Buffer": 11203, "Shell": 9002, "Groovy": 2661} | // "Remove 'val' from parameter" "true"
fun f(<caret>/* comment */ x: String) {
} | 1 | Java | 0 | 0 | 21d9c272c9f312e7348defa893c2f55483d13876 | 81 | kotlin | Apache License 2.0 |
espresso/device/java/androidx/test/espresso/device/context/ActionContext.kt | android | 41,148,494 | false | null | /*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 285 | null | 309 | 967 | df9ed7dd7445b70c765a98265ce3af45e8657144 | 1,128 | android-test | Apache License 2.0 |
espresso/device/java/androidx/test/espresso/device/context/ActionContext.kt | android | 41,148,494 | false | null | /*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 285 | null | 309 | 967 | df9ed7dd7445b70c765a98265ce3af45e8657144 | 1,128 | android-test | Apache License 2.0 |
basick/src/main/java/com/mozhimen/basick/utilk/android/net/UtilKUri.kt | mozhimen | 353,952,154 | false | {"Kotlin": 2273552, "Java": 246468, "AIDL": 1012} | package com.mozhimen.basick.utilk.android.net
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.net.Uri
import android.provider.DocumentsContract
import android.util.Log
import androidx.core.content.FileProvider
imp... | 0 | Kotlin | 6 | 115 | 05064571d43ada3ea6488bafc33d2fe436c0618d | 10,595 | SwiftKit | Apache License 2.0 |
app/src/main/java/com/taru/data/remote/weather/ApiWeather.kt | nirajprakash | 577,555,049 | false | {"Kotlin": 258181} | package com.taru.data.remote.weather
import com.taru.BuildConfig
import com.taru.data.remote.ip.dto.IpDto
import com.taru.data.remote.weather.dto.WeatherCurrentDto
import com.taru.data.remote.weather.dto.WeatherForecastDto
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Query
/**
* Created ... | 2 | Kotlin | 4 | 54 | 2f2d00465f2eb73e9f8520e629a2fd63d83e0ca1 | 880 | taru-plants-android | MIT License |
data-model/src/main/kotlin/com/ash/trading/oms/model/Order.kt | ashfrench | 760,910,146 | false | {"Kotlin": 5292} | package com.ash.trading.oms.model
import java.util.*
data class Order(
val orderId: OrderId,
val orderQuantity: OrderQuantity,
val orderState: OrderState,
val instrument: Instrument,
val side: TradeSide
)
typealias OrderId = UUID | 0 | Kotlin | 0 | 0 | df82b40ff2f6e5e4a15bb967125b383568c00d8a | 252 | trade-oms | Apache License 2.0 |
app/src/main/java/com/dojo/moovies/interactor/MyListInteractor.kt | pgsilva | 739,863,015 | false | {"Kotlin": 84359} | package com.dojo.moovies.interactor
import com.dojo.moovies.interactor.state.MyListInteractorState
import com.dojo.moovies.repository.MyListRepository
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
class MyListInteractor(
private val dbRepository: MyListRepository
) {
suspend fun load... | 0 | Kotlin | 0 | 0 | e4f5dd987488cae8beb86e22570ed1e939e2f324 | 510 | moovies | MIT License |
common/src/commonMain/kotlin/com/davidmatillacode/common/model/ListModels.kt | davidmatilla17 | 664,513,463 | false | null | package com.davidmatillacode.common.model
sealed interface ListUnit {
data class ProjectUnit(
val id_project: Long,
val description: String,
val tasks : MutableList<TaskUnit> = ArrayList(),
val tags : MutableList<TagUnit> = ArrayList()
) : ListUnit
data class TaskUnit(
... | 0 | Kotlin | 0 | 0 | 779c80615f4d78b81274631c79eb2d6489f8d8f7 | 837 | appGestorHoras | MIT License |
app/src/main/java/ch/abwesend/privatecontacts/view/model/config/IconConfig.kt | fgubler | 462,182,037 | false | {"Kotlin": 1146267, "Java": 369326} | /*
* Private Contacts
* Copyright (c) 2022.
* Florian Gubler
*/
package ch.abwesend.privatecontacts.view.model.config
import androidx.annotation.StringRes
import androidx.compose.ui.graphics.vector.ImageVector
data class IconConfig(
@StringRes val label: Int,
val icon: ImageVector,
)
| 1 | Kotlin | 1 | 9 | e2bee11f232db2728c98e434dad5148ef0497dbf | 300 | PrivateContacts | Apache License 2.0 |
android/khajit/app/src/main/java/com/project/khajit_app/activity/ui/profile/UserProfile.kt | bounswe | 170,124,936 | false | null | package com.project.khajit_app.activity.ui.profile
import androidx.lifecycle.ViewModelProviders
import android.os.Bundle
import android.text.method.ScrollingMovementMethod
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widg... | 32 | Kotlin | 2 | 9 | 9572fd307345b3f842c2c2ff4426857086484ed5 | 7,558 | bounswe2019group1 | MIT License |
features/discover/src/main/java/com/dhorowitz/openmovie/discover/data/MoviesNetworkDataSource.kt | horowitz | 328,383,283 | false | {"Kotlin": 97537, "Python": 528} | package com.dhorowitz.openmovie.discover.data
import com.dhorowitz.openmovie.discover.domain.MoviesDataSource
import com.dhorowitz.openmovie.discover.domain.model.Movie
import com.dhorowitz.openmovie.discover.domain.toMovies
import javax.inject.Inject
import javax.inject.Singleton
@Singleton
class MoviesNetworkDataSo... | 5 | Kotlin | 16 | 31 | d103a284a86e4ffc7a8f949ac722f9cc1fc6c3d7 | 795 | openMovie | MIT License |
adapters/quarkus-rest/src/main/kotlin/internal/QuarkusConfig.kt | kkadete | 864,599,206 | false | {"Kotlin": 15114} | package hexagonal.example.internal
import hexagonal.example.adapters.inmemory.InMemoryAccountStore
import hexagonal.example.application.account.CreateAccountUseCase
import hexagonal.example.application.account.DepositBalanceUseCase
import hexagonal.example.application.account.GetAccountByIdUseCase
import hexagonal.exa... | 0 | Kotlin | 1 | 1 | da5ec9b22b01b0c2ef529408edd89dc099f03db0 | 1,498 | kotlin-hexagonal-architecture | Apache License 2.0 |
kotlin/workflows/lib-workflow/src/main/kotlin/com/github/frtu/kotlin/flow/core/Flow.kt | frtu | 338,595,537 | false | {"Kotlin": 393692, "Java": 157399, "Shell": 10826, "Dockerfile": 248} | package com.github.frtu.kotlin.flow.core
interface Flow<INPUT, OUTPUT> {
val name: String
fun execute(input: INPUT): OUTPUT
} | 0 | Kotlin | 0 | 1 | 604c3bd18543bbe2dde31720c615ef2967ca57a1 | 134 | lib-toolbox | Apache License 2.0 |
src/main/kotlin/io/github/sapientpants/structurizr/macros/PlantUmlRenderer.kt | fossabot | 200,343,895 | true | {"Kotlin": 22933} | package io.github.sapientpants.structurizr.macros
import com.structurizr.Workspace
import com.structurizr.io.plantuml.PlantUMLWriter
import net.sourceforge.plantuml.FileUtils
import net.sourceforge.plantuml.SourceFileReader
import java.io.File
import java.io.FileWriter
import java.io.StringWriter
import java.io.Writer... | 0 | Kotlin | 0 | 0 | 6b7e58aba0a1348ea2064ce4192595c701f86ae2 | 1,151 | structurizr-macros | MIT License |
demo-project-kotlin/lib2/src/main/kotlin/org/test/kotlin/utils/AndroidLibUtils.kt | gmazzo | 575,122,672 | false | {"Kotlin": 107229, "Java": 3485} | package org.test.kotlin.utils
import io.github.gmazzo.codeowners.CodeOwners
sealed class AndroidLibUtils {
data object Impl : AndroidLibUtils()
}
| 2 | Kotlin | 0 | 4 | c7ae169a94e6128f211ce7cc3589a7a3d6ac3afc | 154 | gradle-codeowners-plugin | MIT License |
app/src/main/java/de/msdevs/einschlafhilfe/MainActivity.kt | DonMarv00 | 171,038,644 | false | {"Kotlin": 71767, "HTML": 2498, "Java": 414} | package de.msdevs.einschlafhilfe
import android.content.DialogInterface
import android.content.Intent
import android.content.SharedPreferences
import android.content.pm.PackageManager
import android.database.sqlite.SQLiteDatabase
import android.graphics.Color
import android.net.Uri
import android.os.Bundle
import andr... | 0 | Kotlin | 2 | 4 | 47e6f2766873d243150169b3fdc87e754281d552 | 26,058 | DieDreiFragezeichenEinschlafhilfe | MIT License |
app/src/main/java/com/lukaslechner/coroutineusecasesonandroid/playground/fundamentals/7_starting_lots_of_threads.kt | dhr039 | 698,754,827 | false | {"Kotlin": 230623} | package com.lukaslechner.coroutineusecasesonandroid.playground.fundamentals
import kotlin.concurrent.thread
/**
* btw this code is not giving an OutOfMemoryError anymore,
* just works a lot more slowly than the coroutine version.
* Before, at some point, the system run out of memory and wasn't able
* to allocate ... | 0 | Kotlin | 0 | 1 | a8e31175a49286a25a0f02c03cbe197f0ba166c0 | 473 | coroutines | Apache License 2.0 |
src/main/kotlin/com/sainsburys/k2zpl/command/options/ZplBarcodeType.kt | sainsburys-tech | 819,578,325 | false | {"Kotlin": 56270} | @file:Suppress("UNUSED")
package com.sainsburys.k2zpl.command.options
enum class ZplBarcodeType {
CODE_39
}
| 8 | Kotlin | 1 | 4 | c6596157368c41b3337f60310060f8243bdd4a2c | 114 | k2zpl | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/digitalprisonreportingmi/model/ExternalMovementModel.kt | ministryofjustice | 641,497,378 | false | null | package uk.gov.justice.digital.hmpps.digitalprisonreportingmi.model
import java.time.LocalDate
import java.time.LocalTime
data class ExternalMovementModel(
val id: Long,
// This is the "prisoner" column in Redshift. Keeping is as prisonNumber for not breaking the UI for now and will change in the future.
val pr... | 0 | Kotlin | 0 | 1 | 584efc2b7dfe4fac62127a45191a1ba0eae9e7e0 | 496 | hmpps-digital-prison-reporting-mi | MIT License |
escapableforeach/src/main/java/com/palecosmos/escapableforeach/Dictionary.kt | PaleCosmos | 211,621,050 | false | null | package com.palecosmos.escapableforeach
import java.lang.Exception
import java.util.*
class Dictionary<K, V> {
private var keys: Vector<K>
private var values: Vector<V>
constructor() {
keys = Vector()
values = Vector()
}
constructor(vararg params: Pair<K, V>) {
keys = Ve... | 0 | Kotlin | 0 | 4 | c8de0e18344b64fe5ec6c0682608b894495f667c | 4,451 | Escapable-Foreach | Apache License 2.0 |
app/src/main/java/com/seewo/blink/example/ktx/ToastKTX.kt | robin8yeung | 680,080,287 | false | null | package com.seewo.blink.example.ktx
import android.content.Context
import android.widget.Toast
import androidx.fragment.app.Fragment
fun Context.toast(msg: String?) {
msg ?: return
Toast.makeText(this, msg, Toast.LENGTH_SHORT).show()
}
fun Fragment.toast(msg: String?) {
msg ?: return
Toast.makeText(r... | 0 | Kotlin | 0 | 7 | 12d90f307638a71660b3f26e30dd237d76f0cd24 | 370 | Blink | Apache License 2.0 |
lib-base/src/main/java/com/llj/lib/base/mvp/IBaseActivityComposeView4.kt | liulinjie1990823 | 133,350,610 | false | null | package com.llj.lib.base.mvp
import java.util.*
/**
* WeddingBazaar
* describe:
* author liulj
* date 2018/6/28
*/
interface IBaseActivityComposeView4<T1, T2, T3, T4> : IBaseTaskView {
fun getParams1(taskId: Int): HashMap<String, Any>?
fun onDataSuccess1(result: T1, taskId: Int)
fun getParams2(task... | 1 | null | 1 | 1 | 7c5d7fe1e5e594baba19778e0ed857325ce58095 | 611 | ArchitectureDemo | Apache License 2.0 |
src/main/java/uk/gov/justice/digital/hmpps/whereabouts/model/VideoLinkBookingEventWithRoomNames.kt | ministryofjustice | 141,123,113 | false | {"Kotlin": 862865, "Java": 99926, "Shell": 2241, "Dockerfile": 1368} | package uk.gov.justice.digital.hmpps.whereabouts.model
import jakarta.persistence.EnumType
import jakarta.persistence.Enumerated
import java.time.LocalDateTime
data class VideoLinkBookingEventWithRoomNames(
val eventId: Long? = null,
@Enumerated(EnumType.STRING)
val eventType: VideoLinkBookingEventType,
val ... | 3 | Kotlin | 1 | 1 | daf794b5997acfdc9e5364603d936fabe2d735e7 | 1,224 | whereabouts-api | Apache License 2.0 |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/SendMessage.kt | Danilo-Araujo-Silva | 271,904,885 | false | null | package com.daniloaraujosilva.mathemagika.library.common.mathematica.functions
import com.daniloaraujosilva.mathemagika.library.common.mathematica.MathematicaFunction
/**
*````
*
* Name: SendMessage
*
* Full name: System`SendMessage
*
* SendMessage[channel, message] sends a... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 1,124 | mathemagika | Apache License 2.0 |
libs/messaging/message-bus/src/main/kotlin/net/corda/messagebus/api/configuration/AdminConfig.kt | corda | 346,070,752 | false | {"Kotlin": 20585393, "Java": 308202, "Smarty": 115357, "Shell": 54409, "Groovy": 30246, "PowerShell": 6470, "TypeScript": 5826, "Solidity": 2024, "Batchfile": 244} | package net.corda.messagebus.api.configuration
data class AdminConfig(val clientId: String)
| 14 | Kotlin | 27 | 69 | 0766222eb6284c01ba321633e12b70f1a93ca04e | 93 | corda-runtime-os | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/SortShapesDown.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
i... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,256 | icons | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/welcometoprison/model/prison/TemporaryAbsence.kt | ministryofjustice | 397,318,042 | false | null | package uk.gov.justice.digital.hmpps.welcometoprison.model.prison
import com.fasterxml.jackson.annotation.JsonInclude
import com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL
import io.swagger.v3.oas.annotations.media.Schema
import java.time.LocalDate
@JsonInclude(NON_NULL)
@Schema(description = "A tempor... | 0 | Kotlin | 0 | 0 | b6f3dd6abd98eb8919e2886ea246e7c9d31d9503 | 812 | hmpps-welcome-people-into-prison-api | MIT License |
src/main/kotlin/no/nav/syfo/consumer/veiledertilgang/VeilederTilgangskontrollConsumer.kt | navikt | 303,972,532 | false | {"Kotlin": 392396, "Dockerfile": 148} | package no.nav.syfo.consumer.veiledertilgang
import io.ktor.client.call.body
import io.ktor.client.plugins.ClientRequestException
import io.ktor.client.request.get
import io.ktor.client.request.header
import io.ktor.http.ContentType
import io.ktor.http.HttpHeaders
import io.ktor.http.HttpStatusCode
import no.nav.syfo.... | 4 | Kotlin | 2 | 0 | c8cce186fb7af0a97b07e080af5abbb3d4c79f10 | 2,377 | esyfovarsel | MIT License |
src/main/java/com/solarexsoft/javawithkotlin/date/TestRemoveAt.kt | flyfire | 113,817,538 | false | {"Kotlin": 136752, "Java": 43347, "HTML": 257} | package com.solarexsoft.javawithkotlin.date
/*
* Created by Solarex on 2024/05/20 17:55
*/
fun main() {
val list = mutableListOf<Int>(1, 2, 3)
val l = ArrayList<Int>()
list.removeAt(0)
println(list)
} | 0 | Kotlin | 0 | 0 | 8cb7181178fb95db33c0632c86b72e903e41ecc5 | 220 | JavaWithKotlin | Apache License 2.0 |
StoreX/src/test/java/com/rommansabbir/storex/v2/SmartStoreXTest.kt | rommansabbir | 366,053,162 | false | {"Kotlin": 63564} | package com.rommansabbir.storex.v2
import com.rommansabbir.storex.StoreAbleObject
import com.rommansabbir.storex.v2.config.StoreXSmartConfig
import com.rommansabbir.storex.v2.smartstorex.SmartStoreX
import com.rommansabbir.storex.v2.smartstorex.SmartStoreXImpl
import com.rommansabbir.storex.v2.subscription.StoreXSubsc... | 0 | Kotlin | 3 | 23 | 5a3617f849a37d1695d54b7e4bf0c832438f7ee5 | 4,147 | StoreX | Apache License 2.0 |
radar-app-config-core/src/main/kotlin/org/radarbase/appconfig/api/User.kt | RADAR-base | 194,677,355 | false | null | package org.radarbase.appconfig.api
data class User(
val id: String,
val externalUserId: String? = null,
val hasConfig: Boolean? = null,
)
| 6 | Kotlin | 0 | 2 | d1acab8502d5d734de4473e5ca3e90f2647a61bc | 152 | radar-app-config | Apache License 2.0 |
app/src/main/java/com/pet/chat/storage/Prefs.kt | ViktorMorgachev | 438,899,533 | false | null | package com.pet.chat.storage
import android.content.Context
import android.content.SharedPreferences
import com.pet.chat.network.data.send.UserAuth
class Prefs(context: Context) {
private val preferences: SharedPreferences =
context.getSharedPreferences("chat", Context.MODE_PRIVATE)
fun saveUser(use... | 0 | Kotlin | 0 | 0 | 14065fa300ece434f4605b56938e7c80a4dde4f4 | 813 | ChatBest | Apache License 2.0 |
app/src/main/java/dev/patrickgold/florisboard/ime/text/key/KeyVariation.kt | heiwiper | 318,320,559 | true | {"Kotlin": 465328, "HTML": 38952} | /*
* Copyright (C) 2020 Patrick Goldinger
*
* 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 agre... | 0 | Kotlin | 0 | 1 | 48c356a569f0bd133dd88aa2bb979a392fbbcff5 | 1,142 | florisboard | Apache License 2.0 |
QuickBind/src/main/java/com/wpf/app/quickbind/utils/GroupViews.kt | walgr | 487,438,913 | false | null | package com.wpf.app.quickbind.utils
import android.view.View
import java.util.*
/**
* Created by 王朋飞 on 2022/7/12.
*
*/
class GroupViews {
var viewList = ArrayList<View>()
fun addView(vararg view: View) {
viewList.addAll(view)
}
fun removeView(view: View) {
viewList.remove(view)
... | 0 | null | 3 | 9 | 484e557d6fc746da7bb2c7f88091f8495d17383f | 764 | Quick | MIT License |
kotlin-analysis-api/src/main/kotlin/com/google/devtools/ksp/impl/symbol/kotlin/KSClassifierReferenceImpl.kt | google | 297,744,725 | false | null | package com.google.devtools.ksp.impl.symbol.kotlin
import com.google.devtools.ksp.IdKeyPair
import com.google.devtools.ksp.KSObjectCache
import com.google.devtools.ksp.symbol.*
import org.jetbrains.kotlin.analysis.api.components.buildClassType
import org.jetbrains.kotlin.analysis.api.types.KtUsualClassType
class KSCl... | 188 | Kotlin | 193 | 1,954 | 84b4a75ed4220b48886165c720978571f354e98d | 1,423 | ksp | Apache License 2.0 |
app/src/androidTest/java/com/pr0gramm/app/robot/Robot.kt | VladimirObama | 158,547,370 | true | {"Kotlin": 1141144, "Shell": 6640, "IDL": 3434, "Python": 1124} | package com.pr0gramm.app.robot
import android.view.View
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.ViewAction
import androidx.test.espresso.ViewInteraction
import androidx.test.espresso.action.ViewActions
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.te... | 0 | Kotlin | 0 | 0 | 676e078f0cd93205db18f5f26f3143667441fc9b | 3,054 | Pr0 | MIT License |
src/main/kotlin/com/hubelias/parkingmeter/port/adapter/rest/ExceptionHandlers.kt | hubelias | 158,100,775 | false | {"Kotlin": 54389, "Shell": 87} | package com.hubelias.parkingmeter.port.adapter.rest
import org.springframework.http.HttpStatus
import org.springframework.web.bind.annotation.ControllerAdvice
import org.springframework.web.bind.annotation.ExceptionHandler
import org.springframework.web.bind.annotation.ResponseBody
import org.springframework.web.bind.... | 0 | Kotlin | 0 | 0 | d6b10950327667e68dce3aff9c59d3c39910a5f4 | 869 | parking-meter-app | MIT License |
educational-core/src/com/jetbrains/edu/learning/codeforces/CodeforcesUtils.kt | alexshcer | 354,356,509 | true | {"Kotlin": 3261790, "HTML": 573177, "Java": 552027, "CSS": 12158, "Python": 5553, "JavaScript": 315} | package com.jetbrains.edu.learning.codeforces
import com.intellij.openapi.project.Project
import com.intellij.openapi.vfs.VirtualFile
import com.jetbrains.edu.learning.codeforces.courseFormat.CodeforcesTask
import com.jetbrains.edu.learning.courseDir
object CodeforcesUtils {
fun VirtualFile.isValidCodeforcesTestFol... | 0 | null | 0 | 0 | 687e434cb8499476729c055d1e947a31491bb999 | 683 | educational-plugin | Apache License 2.0 |
app/src/main/java/com/example/driverchecker/machinelearning/data/ClassificationData.kt | mackness33 | 631,218,727 | false | {"Kotlin": 346457, "Python": 11567} | package com.example.driverchecker.machinelearning.data
import com.example.driverchecker.machinelearning.collections.ClassificationItemMutableList
// ---------------------------------- CLASSES ----------------------------------
// with classification
interface WithClassification<S> {
val classification: IClassif... | 0 | Kotlin | 0 | 0 | 1d4f3d5893f78a34f112abad47e8160b45328784 | 5,627 | driver_checker | MIT License |
app/src/main/java/au/com/sentia/test/screen/details/DetailFragment.kt | androidlife | 127,247,296 | false | null | package au.com.sentia.test.screen.details
import android.os.Bundle
import android.support.v4.app.Fragment
import android.text.method.ScrollingMovementMethod
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import au.com.sentia.test.R
import au.com.sentia.test.model.PROPERTY
imp... | 0 | Kotlin | 0 | 0 | c0f4444373461e2074310d9c079255ae5bfc4d02 | 1,397 | realstate | MIT License |
animating-elements-in-jetpack-compose/src/main/java/com/mcmouse88/animating_elements_in_jetpack_compose/ui/theme/Color.kt | mcmouse88 | 691,754,136 | false | {"Kotlin": 496629} | package com.mcmouse88.animating_elements_in_jetpack_compose.ui.theme
import androidx.compose.ui.graphics.Color
val Amber600 = Color(0xFFFFB300)
val Melon = Color(0xFFfec5bb)
val PaleDogwood = Color(0xFFfcd5ce)
val Seashell = Color(0xFFf8edeb)
val Peach = Color(0xFFfec89a)
val Green = Color(0xFFd8e2dc)
val GreenLight... | 1 | Kotlin | 0 | 0 | 09ddeb718c273ba7178c62e3572cff7e91e756fd | 340 | GoogleCodelabs | Apache License 2.0 |
src/backend/ci/core/common/common-auth/common-auth-api/src/main/kotlin/com/tencent/devops/common/auth/api/pojo/BkAuthProjectInfoResources.kt | onecloud360 | 252,130,259 | true | {"Shell": 441, "Markdown": 1118, "Ignore List": 190, "Text": 284, "Maven POM": 5, "JSON": 1100, "XML": 77, "Java": 592, "Kotlin": 2672, "INI": 41, "JavaScript": 697, "JSON with Comments": 12, "HTML": 87, "Vue": 387, "SCSS": 219, "SVG": 610, "CSS": 28, "EditorConfig": 4, "Java Properties": 21, "Python": 98, "Gradle": 16... | package com.tencent.devops.common.auth.api.pojo
import com.fasterxml.jackson.annotation.JsonProperty
data class BkAuthProjectInfoResources(
@JsonProperty("cc_app_id")
val ccAppId: String,
@JsonProperty("project_code")
val projectCode: String,
@JsonProperty("project_id")
val projectId: String
) | 0 | null | 0 | 1 | cf5b49b17525befe6d3f84ffaafa0526eea74821 | 320 | bk-ci | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/createandvaryalicenceapi/service/LicenceService.kt | ministryofjustice | 384,371,667 | false | null | package uk.gov.justice.digital.hmpps.createandvaryalicenceapi.service
import org.springframework.data.mapping.PropertyReferenceException
import org.springframework.security.core.context.SecurityContextHolder
import org.springframework.stereotype.Service
import org.springframework.transaction.annotation.Transactional
i... | 0 | Kotlin | 0 | 0 | dbbabcb05280d041e2ec5bbd1b1ba6830b546880 | 27,137 | create-and-vary-a-licence-api | MIT License |
src/main/kotlin/com/fintecsystems/xs2a/java/models/api/accounts/BankAccount.kt | FinTecSystems | 399,112,589 | false | null | package com.fintecsystems.xs2a.java.models.api.accounts
import com.fintecsystems.xs2a.java.models.common.AccountType
import com.fintecsystems.xs2a.java.models.common.CountryId
import com.squareup.moshi.Json
import java.time.OffsetDateTime
/**
*
* @param id Bank Account ID
* @param bankConnectionId Id of the origin... | 0 | Kotlin | 3 | 3 | 442715946fa34f6947a6eaa97adb00278dc7d09b | 2,406 | xs2a-java | MIT License |
plugins/kotlin/completion/testData/handlers/basic/NonExtensionMember.kt | ingokegel | 72,937,917 | false | null | // FIR_COMPARISON
// FIR_IDENTICAL
open class A
object B : A() {
fun objectMethod() {}
}
fun test(a: A) {
if (a is B) {
a.ob<caret>
}
}
// ELEMENT: objectMethod | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 181 | intellij-community | Apache License 2.0 |
src/strategy/api/InsertionSorter.kt | yorae39 | 464,176,357 | false | {"Kotlin": 60335} | package strategy.api
class InsertionSorter : Sorter {
override fun <E : Comparable<E>> sort(items: MutableList<E>): List<E> {
if (items.isEmpty() || items.size < 2) {
return items
}
for (count in 1 until items.count()) {
val key = items[count]
var j = cou... | 0 | Kotlin | 0 | 0 | 2d5a321f6e60ae91028adda860ab2d75c0b37ed1 | 1,076 | design-patterns-kotlin | MIT License |
foundation/src/main/java/com/zs/foundation/shapes/Folder.kt | iZakirSheikh | 828,405,870 | false | {"Kotlin": 508470} | /*
* Copyright 2024 <NAME>
*
* Created by <NAME> on 11-07-2024.
*
* 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 require... | 2 | Kotlin | 0 | 9 | d50d21b35c72c8a3ad39558df122aa20902f1765 | 2,922 | Gallery | Apache License 2.0 |
backend/src/main/kotlin/ru/posidata/backend/service/UserService.kt | orchestr7 | 844,235,385 | false | {"Kotlin": 65051, "SCSS": 5174, "HTML": 2737, "JavaScript": 2108, "Shell": 335} | package ru.posidata.backend.service
import org.springframework.stereotype.Service
import ru.posidata.backend.entity.RoundResultsEntity
import ru.posidata.backend.entity.UserEntityFromDb
import ru.posidata.backend.repository.UserRepository
import ru.posidata.common.UserDataFromTelegram
@Service
class UserService(
... | 2 | Kotlin | 0 | 2 | bfc65d78afc77a95b7c9de22199d8b52d4851bdd | 1,250 | PokemonOrBigData | MIT License |
core/src/commonMain/kotlin/info/laht/threekt/loaders/TextureLoader.kt | op07n | 204,459,686 | false | {"Gradle Kotlin DSL": 4, "YAML": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Kotlin": 282, "INI": 4, "Java": 1, "Wavefront Material": 2, "Wavefront Object": 2} | package info.laht.threekt.loaders
import info.laht.threekt.Logger
import info.laht.threekt.TextureFormat
import info.laht.threekt.TextureType
import info.laht.threekt.getLogger
import info.laht.threekt.textures.Texture
import kotlin.jvm.JvmOverloads
object TextureLoader {
private val LOG: Logger = getLogger(Text... | 1 | null | 1 | 1 | 285ad220a5e20b82700d65b74e39da20effe7c2c | 824 | three.kt | MIT License |
app/src/main/java/com/example/android/testing/navigation/FlowStepFragment.kt | bedkowskakatarzyna94 | 520,636,497 | false | null | package com.example.android.codelabs.navigation
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.Navigation
import androidx.navigation.fragment.navArgs
class FlowStepFragment : Fragment()... | 0 | Kotlin | 0 | 0 | c0fd24c804289f31c17d430c843db972b1501b01 | 1,130 | androidNavigation | Apache License 2.0 |
src/main/kotlin/ua/pp/lumivoid/util/Calculate.kt | Bumer-32 | 779,465,671 | false | {"Kotlin": 25773, "Java": 5108, "Groovy": 2555} | package ua.pp.lumivoid.util
import ua.pp.lumivoid.Constants
import net.minecraft.text.Text
import org.mariuszgromada.math.mxparser.Expression
import org.slf4j.LoggerFactory
object Calculate {
private val logger = LoggerFactory.getLogger(Constants.MOD_ID)
fun calc(expression: String): Text {
logger.deb... | 0 | Kotlin | 0 | 2 | aa9cc123ca0ce78203ce47c5dcd294b89f2ca423 | 752 | Redstone-Helper | Apache License 2.0 |
build-tools/agp-gradle-api/src/main/java/com/android/build/api/variant/ResValue.kt | RivanParmar | 526,653,590 | false | null | /*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | null | 2 | 17 | 8fb2bb1433e734aa9901184b76bc4089a02d76ca | 1,464 | androlabs | Apache License 2.0 |
app/src/main/java/com/breezefieldsalesayshfacade/features/stock/api/StockRepository.kt | DebashisINT | 849,339,890 | false | {"Kotlin": 15796449, "Java": 1028706} | package com.breezefieldsalesayshfacade.features.stock.api
import com.breezefieldsalesayshfacade.app.Pref
import com.breezefieldsalesayshfacade.base.BaseResponse
import com.breezefieldsalesayshfacade.features.stock.model.AddStockInputParamsModel
import com.breezefieldsalesayshfacade.features.stock.model.NewStockListRes... | 0 | Kotlin | 0 | 0 | 1a7295943ae51c2feff787bed4219be9c8399217 | 739 | AyshFacade | Apache License 2.0 |
app/src/main/java/com/hypersoft/admobads/ui/activities/BaseActivity.kt | hypersoftdev | 616,294,144 | false | {"Kotlin": 117351} | package com.hypersoft.admobads.ui.activities
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.widget.Toast
import androidx.annotation.LayoutRes
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBindi... | 1 | Kotlin | 5 | 2 | 9531cc5b3698fc4ca74745f8352abea9d05fb7cf | 1,969 | Admob-Ads | Apache License 2.0 |
app/src/main/java/com/wpf/app/quick/demo/http/call/TestNoResponseCall.kt | walgr | 487,438,913 | false | {"Kotlin": 427396, "Java": 106045, "Shell": 404} | package com.wpf.app.quick.demo.http.call
import com.wpf.app.quick.demo.http.TestResponse
import com.wpf.app.quicknetwork.base.BaseResponseS
import com.wpf.app.quicknetwork.call.RealCall
import retrofit2.Call
/**
* Created by 王朋飞 on 2022/7/27.
*
*/
open class TestNoResponseCall<SResponse, FResponse>(
rawCall: C... | 0 | Kotlin | 1 | 6 | ee509f62288fc6a926c2e1b1f944857ed32ef548 | 461 | Quick | MIT License |
demo-service-a/src/main/kotlin/tech/cambridgeweblab/service/a/UberApiController.kt | cambridgeweblab | 134,840,026 | false | null | package tech.cambridgeweblab.service.a
import kotlinx.coroutines.experimental.async
import kotlinx.coroutines.experimental.runBlocking
import org.springframework.cloud.client.discovery.DiscoveryClient
import org.springframework.http.MediaType
import org.springframework.stereotype.Component
import org.springframework.w... | 0 | Kotlin | 0 | 0 | 940a4896d4d6b10a08dc8ebd49f185f5d074a99c | 2,640 | microservice-logging-poc | MIT License |
rumascot-common/src/commonMain/kotlin/models/UserIdRum.kt | mathemator | 586,045,497 | false | null | package ru.otus.otuskotlin.marketplace.common.models
import kotlin.jvm.JvmInline
@JvmInline
value class UserIdRum(private val id: Long) {
fun asLong() = id
}
| 2 | Kotlin | 0 | 0 | 633640f3c74b3d5a352052bbce9fd6358881953a | 164 | goppeav-kotlin-2022-12 | Apache License 2.0 |
app/src/main/java/com/jetapps/jettaskboard/widget/JetTaskBoardWidget.kt | pushpalroy | 535,554,638 | false | {"Kotlin": 490124, "Shell": 210} | package com.jetapps.jettaskboard.widget
import android.content.Context
import androidx.compose.ui.unit.DpSize
import androidx.compose.ui.unit.dp
import androidx.datastore.preferences.core.stringPreferencesKey
import androidx.glance.GlanceId
import androidx.glance.action.ActionParameters
import androidx.glance.appwidge... | 1 | Kotlin | 4 | 64 | a2df8dd3e763e5ad4f5d4ba5d3441f47c7c7680c | 1,887 | jetTaskBoard | MIT License |
sketch/src/androidTest/java/com/github/panpf/sketch/test/utils/DisplayProgressListenerSupervisor.kt | jawalkwan | 97,818,573 | true | {"Gradle Kotlin DSL": 14, "Markdown": 35, "Java Properties": 2, "Shell": 1, "TOML": 1, "Ignore List": 1, "Batchfile": 1, "Text": 1, "Proguard": 12, "XML": 105, "Kotlin": 514, "Java": 12, "SVG": 2, "INI": 11} | package com.github.panpf.sketch.test.utils
import com.github.panpf.sketch.request.DisplayRequest
import com.github.panpf.sketch.request.ProgressListener
class DisplayProgressListenerSupervisor(private val onUpdateProgress: (() -> Unit)? = null) :
ProgressListener<DisplayRequest> {
val callbackActionList = mu... | 0 | Kotlin | 0 | 0 | 625ad5114fe13ae649a4fa9377001a5747f8e3fe | 577 | sketch | MIT License |
androidApp/src/main/java/br/com/gmfonseca/taskmanager/app/ui/task/screens/list/components/taskdialog/TaskDetailsDialog.kt | gmfonseca | 408,424,183 | false | null | package br.com.gmfonseca.taskmanager.app.ui.task.screens.list.components.taskdialog
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
impor... | 0 | Kotlin | 0 | 0 | 5e6f34015d8c51df34b9fe549828e7799aac97b4 | 1,969 | task-manager-app | MIT License |
app/src/main/java/com/musicapp/sonicsizzle/Adapters/CategoryAdapter.kt | AnantSingh1510 | 783,114,367 | false | {"Kotlin": 16465} | package com.musicapp.sonicsizzle.Adapters
import android.content.Intent
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.bumptech.glide.load.resource.bitmap.RoundedCorners
import com.bumptech.glide.request.Reque... | 0 | Kotlin | 1 | 0 | efa2fbe79d7868bd78e782fb28d2735165c20faa | 1,884 | SonicSizzle-AnAndroidMusicApp | MIT License |
arrow-libs/fx/arrow-fx-test/src/main/kotlin/arrow/fx/test/laws/BracketLaws.kt | clojj | 343,913,289 | true | {"Kotlin": 6274993, "SCSS": 78040, "JavaScript": 77812, "HTML": 21200, "Scala": 8073, "Shell": 2474, "Ruby": 83} | package arrow.fx.test.laws
import arrow.Kind
import arrow.core.extensions.eq
import arrow.fx.internal.AtomicIntW
import arrow.core.test.generators.GenK
import arrow.core.test.generators.applicativeError
import arrow.core.test.generators.functionAToB
import arrow.core.test.generators.throwable
import arrow.core.test.la... | 0 | null | 0 | 0 | 5eae605bbaeb2b911f69a5bccf3fa45c42578416 | 9,249 | arrow | Apache License 2.0 |
app/src/main/java/space/fanbox/android/fanbox/viewmodel/LetterDetailsViewModelFactory.kt | ayevbeosa | 166,378,925 | false | {"Kotlin": 30583} | package space.fanbox.android.fanbox.viewmodel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import space.fanbox.android.fanbox.database.LettersDatabase
class LetterDetailsViewModelFactory(
private val lettersDatabase: LettersDatabase,
private val letterId: String
) : ViewMode... | 0 | Kotlin | 0 | 0 | eef9ec2982982c4bc71299e444e87780ec8fb7f0 | 678 | Fanbox | MIT License |
app/src/main/java/solutions/silly/wearnetatmo/model/Module.kt | Olabraaten | 544,191,503 | false | {"Kotlin": 32781} | package solutions.silly.wearnetatmo.model
import com.squareup.moshi.Json
data class Module(
@field:Json(name = "_id")
val id: String?,
val type: String?,
@field:Json(name = "module_name")
val moduleName: String?,
@field:Json(name = "last_setup")
val lastSetup: Long?,
@field:Json(name =... | 0 | Kotlin | 0 | 0 | b4a15f05087c469cbbfcc2291c79245a3fbfaf96 | 831 | WearNetatmo | MIT License |
app/src/main/java/com/igao/locationsample/location/LocationHelperActivity.kt | igorpk10 | 425,110,929 | false | {"Kotlin": 10288} | package com.igao.locationsample.location
import android.Manifest
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.location.Location
import android.location.LocationManager
import android.net.Uri
import android.os.Bundle
import android.provider.Setting... | 0 | Kotlin | 0 | 1 | 1e19077feea8156caf9db5e6faed4d80ccf7d537 | 5,918 | locationSample | Apache License 2.0 |
src/main/kotlin/org/jetbrains/bio/ScoredInterval.kt | JetBrains-Research | 30,879,646 | false | null | package org.jetbrains.bio
data class ScoredInterval(val start: Int, val end: Int, val score: Float) {
override fun toString() = "$score@[$start; $end)"
} | 7 | Kotlin | 2 | 12 | cfa7acdae77ca53979834f0e24dbbafc8ca3f354 | 158 | big | MIT License |
app/src/main/kotlin/com/simplemobiletools/filemanager/activities/SimpleActivity.kt | kodeartisan | 109,222,301 | true | {"Kotlin": 71113} | package com.simplemobiletools.filemanager.activities
import com.simplemobiletools.commons.activities.BaseSimpleActivity
open class SimpleActivity : BaseSimpleActivity()
| 0 | Kotlin | 0 | 1 | e662496dd08f2c7661828b20a9eb2cf9db766bd2 | 171 | Simple-File-Manager | Apache License 2.0 |
src/clientMain/kotlin/mce/editor/Main.kt | mcenv | 435,848,712 | false | null | package mce.editor
import io.ktor.client.*
import io.ktor.client.engine.js.*
import io.ktor.client.plugins.websocket.*
import io.ktor.serialization.kotlinx.*
import io.ktor.utils.io.core.*
import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.MainScope
import k... | 79 | Kotlin | 0 | 15 | f63905729320733d3cae95c3b51b492e94339fca | 1,199 | mce | MIT License |
model/src/main/java/com/infinitepower/newquiz/model/TimestampWithValue.kt | joaomanaia | 443,198,327 | false | {"Kotlin": 1352492} | package com.infinitepower.newquiz.model
data class TimestampWithValue <T> (
val timestamp: Long,
val value: T
)
| 1 | Kotlin | 18 | 145 | c965da6ddcc1c5623db9f41c3d73efacd1521ac9 | 121 | newquiz | Apache License 2.0 |
src/test/kotlin/dk/nodes/nstack_headless/localize/data/parsers/LocalizationParserTest.kt | nstack-io | 515,612,949 | false | {"Kotlin": 20760} | package dk.nodes.nstack_headless.localize.data.parsers
import org.junit.jupiter.api.Test
import kotlin.test.assertEquals
private const val TEST_JSON = """
{
"data": {
"default": {
"hello_world": "Hello, world!",
"test": "Test from default"
},
"first_section": {
... | 0 | Kotlin | 0 | 0 | 2c3aeaf5df65f31f7ba874ec1bc05e887966a3f1 | 1,239 | nstack-headless-jvm | MIT License |
feature/rewind/src/main/kotlin/app/logdate/feature/rewind/navigation/RewindNavRoute.kt | WillieCubed | 187,304,507 | false | {"Kotlin": 458147, "Java": 1084} | package app.logdate.feature.rewind.navigation
// See RewindRoute.kt in app/mobile/src/main/kotlin/app/logdate/mobile/ui/navigation | 0 | Kotlin | 0 | 0 | 51a51bd8c264aecc9190f67ec1fbb56e37b7e9fc | 132 | logdate-mobile | MIT License |
upipinview/src/main/java/com/redyesncode/upipinview/UpiPinViewActivity.kt | RedEyesNCode | 564,260,782 | false | {"Java": 8550, "Kotlin": 2050} | package com.redyesncode.upipinview
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
class UpiPinViewActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_upi_pin_view)
}
... | 1 | null | 1 | 1 | 3c82e34b0153113a31e14ae59dc32606ceecb8fd | 321 | BharatUPI | Apache License 2.0 |
lib/src/main/kotlin/com/lemonappdev/konsist/core/declaration/KoChildDeclarationCore.kt | LemonAppDev | 621,181,534 | false | {"Kotlin": 4854719, "Python": 17926} | package com.lemonappdev.konsist.core.declaration
import com.lemonappdev.konsist.api.declaration.KoChildDeclaration
import com.lemonappdev.konsist.core.provider.KoBaseProviderCore
import com.lemonappdev.konsist.core.provider.KoFullyQualifiedNameProviderCore
import com.lemonappdev.konsist.core.provider.KoNameProviderCor... | 5 | Kotlin | 26 | 995 | 603d19e179f59445c5f4707c1528a438e4595136 | 711 | konsist | Apache License 2.0 |
compiler/testData/codegen/box/inference/overrideDefaultProperty.kt | JetBrains | 3,432,266 | false | null | // MODULE: InterfaceModule
// FILE: MyInterface.kt
interface MyInterface {
val test: Int get() = 1
}
interface MyInterface2 : MyInterface
// MODULE: OpenClassModule(InterfaceModule)
// FILE: MyOpenClass.kt
open class MyOpenClass : MyInterface
open class MyOpenClass2 : MyInterface2
open class MyOpenClass3 : MyOp... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 3,278 | kotlin | Apache License 2.0 |
geral/livro_kotlin_em_acao/src/capitulo2/exemplosmartcastcomwhen/App.kt | flaviogf | 161,988,896 | false | {"C#": 1766813, "JavaScript": 856864, "Ruby": 703154, "TSQL": 650006, "Java": 601381, "HTML": 450132, "Go": 267375, "Python": 207047, "CSS": 141242, "Dart": 121567, "SCSS": 116964, "PHP": 115783, "Kotlin": 92080, "TypeScript": 86630, "C": 44578, "Dockerfile": 18019, "Makefile": 15116, "Shell": 12757, "F#": 10824, "Coff... | package capitulo2.exemplosmartcastcomwhen
interface Expressao
class Numero(val valor: Int) : Expressao
class Soma(val esquerda: Expressao, val direita: Expressao) : Expressao
fun validaComIfSemExpressao(expressao: Expressao): Int {
if (expressao is Numero) {
return expressao.valor
} else if (express... | 30 | C# | 1 | 2 | 9bf0c8cb00134047d648043a87980f24659b046e | 2,002 | courses | MIT License |
plugins/gradle/src/org/jetbrains/plugins/gradle/frameworkSupport/buildscript/KotlinDslGradleBuildScriptBuilder.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.gradle.frameworkSupport.buildscript
import org.gradle.util.GradleVersion
import org.jetbrains.annotations.ApiStatus
import org.jet... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 1,700 | intellij-community | Apache License 2.0 |
app/src/main/java/com/example/application/ui/icons/filled/Cart.kt | greenlabsfin | 576,161,902 | false | {"Kotlin": 341944, "Shell": 610} | package com.example.application.ui.icons.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Compani... | 0 | Kotlin | 0 | 2 | 00df62e84ee656b06cc645e93386c3d771c2c034 | 4,265 | seed-android-design-system | Apache License 2.0 |
app/src/androidTest/java/com/atiurin/espressopageobjectexample/tests/ViewInteractionActionsTest.kt | alex-tiurin | 203,062,137 | false | null | package com.mobiquity.kotlinespressorecipe.tests
import android.os.SystemClock
import android.view.KeyEvent
import androidx.test.espresso.action.EspressoKey
import androidx.test.espresso.action.ViewActions.click
import com.mobiquity.espressohelper.extensions.*
import com.mobiquity.kotlinespressorecipe.R
import com.mob... | 0 | null | 6 | 21 | 927500c698a84f67e0c15e133db4f5b04ee82b1a | 2,905 | espresso-page-object | Apache License 2.0 |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/regular/PersonPill.kt | Konyaco | 574,321,009 | false | null |
package com.konyaco.fluent.icons.regular
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Regular.PersonPill: ImageVector
get() {
if (_personPill != null) {
... | 1 | Kotlin | 3 | 83 | 9e86d93bf1f9ca63a93a913c990e95f13d8ede5a | 2,797 | compose-fluent-ui | Apache License 2.0 |
EcoSwapAndroid/src/main/java/com/darrenthiores/ecoswap/android/presentation/inbox/InboxScreen.kt | darrenthiores | 688,372,873 | false | {"Kotlin": 770054, "Swift": 362583} | package com.darrenthiores.ecoswap.android.presentation.inbox
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
i... | 0 | Kotlin | 0 | 0 | 6da03175466a0458ba4a28392f7371f8a429d4cf | 1,941 | EcoSwap | MIT License |
app/src/main/java/com/yudistudios/foodland/firebase/MyFirebaseMessagingService.kt | YnsDlbr | 576,026,021 | false | null | package com.yudistudios.foodland.firebase
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.content.Context
import android.graphics.Color
import android.os.Build
import androidx.core.app.NotificationCompat
import androidx.core.content.ContextCo... | 0 | Kotlin | 0 | 0 | d6710e873f9fc3c0c374e77dc96e44ba98a52ef0 | 2,406 | FoodLand | Apache License 2.0 |
Cartooo/app/src/main/java/com/example/cartooo/fragments/CameraFragment.kt | DavidInWuhanChina | 298,218,277 | false | null | package com.example.cartooo.fragments
import android.app.Activity
import android.content.*
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.Matrix
import android.media.ExifInterface
import android.content.Context
import android.provider.MediaStore
import android.net.Uri
impor... | 0 | null | 1 | 7 | e11ec9e38495815753498896d20a2a790fe57127 | 10,146 | CartoonizerTheWorldUsingTFLite | MIT License |
app/src/androidTest/java/es/mnmapp/aolv/meneame/mockdispatcher/MockResponsesDispatcher.kt | aolivafaura | 98,424,220 | false | null | package es.mnmapp.aolv.meneame.mockdispatcher
import android.content.res.AssetManager
import es.mnmapp.aolv.meneame.utils.getJson
import okhttp3.mockwebserver.Dispatcher
import okhttp3.mockwebserver.MockResponse
import okhttp3.mockwebserver.RecordedRequest
class MockResponsesDispatcher(private val assetManager: Asset... | 0 | Kotlin | 0 | 1 | a09e3dc3849f5630a90ccbee46e5deeba41eefd3 | 710 | meneameapp | Apache License 2.0 |
app/src/main/java/com/example/matheus/chamada/ChamadaApplication.kt | matheusribeirolima | 161,822,874 | false | null | package com.example.matheus.chamada
import android.os.Build
import android.view.autofill.AutofillManager
import com.example.matheus.chamada.di.component.DaggerAppComponent
import com.nostra13.universalimageloader.core.ImageLoader
import com.nostra13.universalimageloader.core.ImageLoaderConfiguration
import com.orhanob... | 0 | Kotlin | 0 | 0 | 6176e3c215a44b9ff9b09aa0ae4faf71cf040f07 | 1,181 | newChamada | Apache License 2.0 |
src/main/kotlin/kgen/Identifier.kt | patefacio | 540,050,815 | false | {"Kotlin": 239548} | package kgen
interface Identifiable {
val id: Id
}
open class Identifier(override val id: Id) : Identifiable {
constructor(nameId: String) : this(id(nameId))
} | 0 | Kotlin | 0 | 0 | b0015efb04a6f79baeebcfa6afadd8106fafd252 | 169 | kgen | MIT License |
suggestions/src/jvmMain/kotlin/Plugin.kt | InsanusMokrassar | 585,557,623 | false | {"Kotlin": 99942, "Shell": 1473, "Dockerfile": 215} | package dev.inmo.plagubot.suggestionsbot.suggestions
import dev.inmo.plagubot.Plugin
import dev.inmo.plagubot.suggestionsbot.common.ChatsConfig
import dev.inmo.plagubot.suggestionsbot.suggestions.exposed.ExposedSuggestionsRepo
import dev.inmo.plagubot.suggestionsbot.suggestions.repo.*
import dev.inmo.tgbotapi.extensio... | 0 | Kotlin | 1 | 1 | e0ee585a57e6300a646def0ce0a5841fff490d18 | 2,644 | PlaguBotSuggestionsBot | MIT License |
main/core/src/com/evh98/vision/screens/GameScreen.kt | jtsaeed | 92,312,714 | false | null | package com.evh98.vision.screens
import com.badlogic.gdx.graphics.OrthographicCamera
import com.evh98.vision.Vision
import com.evh98.vision.models.Models
import com.evh98.vision.ui.GamePane
import com.evh98.vision.util.Controller
import com.evh98.vision.util.Palette
class GameScreen(vision: Vision): VisionScreen(visi... | 4 | Kotlin | 0 | 1 | 07f3a050a7b2e0edd61b186a45cb0b6099df833f | 1,868 | vision-kt | MIT License |
AlivcUgsvDemo/AUIVideoEditor/AUIEditorCommon/src/main/java/com/aliyun/svideo/editor/common/util/SpeedUtil.kt | aliyunvideo | 554,213,214 | false | null | package com.aliyun.svideo.editor.common.util
import com.aliyun.svideosdk.editor.AliyunIEditor
import com.aliyun.svideosdk.editor.TimeEffectType
class SpeedUtil {
companion object {
fun getSpeed(editor : AliyunIEditor) : Float{
for (item in editor.editorProject.allTimeFilters) {
... | 5 | null | 5 | 17 | f784491cfc5d27c2f77b7cd7d69438dfa991cb20 | 509 | MONE_demo_opensource_android | MIT License |
reviewer-backend/src/main/kotlin/ru/reviewer/features/movies/models/FetchMoviesResponse.kt | Forzz | 594,475,346 | false | null | package ru.reviewer.features.movies.models
@kotlinx.serialization.Serializable
data class FetchMoviesResponse(
val movies: List<MovieResponse>
)
@kotlinx.serialization.Serializable
data class MovieResponse(
val id: String,
val title: String,
val date: String,
val length: String,
val genre: Str... | 0 | Kotlin | 0 | 0 | 60fa59b577d15f04168908cb03c03cb4e7ee5cb7 | 404 | Reviewer | MIT License |
octicons/src/commonMain/kotlin/compose/icons/octicons/GitFork24.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.octicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.compose.ui.graphics.S... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 4,063 | compose-icons | MIT License |
src/main/kotlin/br/com/ecommerce/domain/shipping/Shipping.kt | flpmartins88 | 524,697,193 | false | {"Kotlin": 11942} | package br.com.ecommerce.domain.shipping
class Shipping {
}
| 0 | Kotlin | 0 | 0 | 42037cb66caaacbb2c95ed37187506614cbf9935 | 61 | ecommerce | The Unlicense |
16/kotlin/src/main/kotlin/se/nyquist/SumPacket.kt | erinyq712 | 437,223,266 | false | null | package se.nyquist
class SumPacket(encoder: BitsEncoder) : OperatorPacket(encoder) {
override fun value(): Long {
return getSubPackets().sumOf { it.value() }
}
} | 0 | Kotlin | 0 | 0 | b463e53f5cd503fe291df692618ef5a30673ac6f | 179 | adventofcode2021 | Apache License 2.0 |
src/test/kotlin/com/lsd/interceptors/http4k/HeaderDataRendererTest.kt | lsd-consulting | 640,371,510 | false | {"Kotlin": 16738, "Shell": 1724} | package com.lsd.interceptors.http4k
import org.assertj.core.api.Assertions.assertThat
import org.http4k.core.Headers
import org.http4k.core.Method.GET
import org.http4k.core.Request
import org.junit.jupiter.api.Test
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.MethodSource... | 1 | Kotlin | 0 | 0 | 4003afcd5b00c5133a5ea56a8c6bc53842ab4e8c | 1,915 | lsd-interceptors-http4k | MIT License |
croperino/src/main/java/com/mikelau/croperino/CroperinoFileUtil.kt | mikekpl | 68,277,573 | false | {"Kotlin": 84501} | package com.mikelau.croperino
import android.Manifest
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Environment
import android.provider.MediaStore
import android.widget.Toast
import androidx.cor... | 7 | Kotlin | 61 | 178 | 3999a8791847002bfaff87f55557c979db58819a | 4,671 | croperino | The Unlicense |
designer/src/com/android/tools/idea/uibuilder/surface/ModelNameLayer.kt | zakharchanka | 314,699,321 | true | {"Text": 342, "EditorConfig": 1, "Markdown": 54, "Ignore List": 133, "Starlark": 86, "XML": 11605, "Java": 8168, "Kotlin": 4229, "Gradle": 802, "Proguard": 121, "INI": 42, "JSON": 77, "Graphviz (DOT)": 1, "Ant Build System": 1, "Protocol Buffer": 1, "HTML": 60, "Shell": 19, "Batchfile": 12, "Java Properties": 130, "Gra... | /*
* 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... | 0 | null | 0 | 0 | cd393da1a11d2dfe572f4baa6eef882256e95d6a | 3,489 | android-1 | Apache License 2.0 |
repos/ktor/client/src/commonMain/kotlin/dev/inmo/micro_utils/repos/ktor/client/key_value/KtorStandartKeyValueRepo.kt | InsanusMokrassar | 295,712,640 | false | null | package dev.inmo.micro_utils.repos.ktor.client.key_value
import dev.inmo.micro_utils.ktor.client.UnifiedRequester
import dev.inmo.micro_utils.ktor.common.StandardKtorSerialFormat
import dev.inmo.micro_utils.ktor.common.standardKtorSerialFormat
import dev.inmo.micro_utils.repos.*
import io.ktor.client.HttpClient
import... | 3 | Kotlin | 0 | 8 | ba16bad0293b087ab77e540109c946bebaabf6dd | 1,524 | MicroUtils | Apache License 2.0 |
optional/src/main/java/se/treehou/kotlinoptional/Optional.kt | ibaton | 165,373,597 | false | null | package se.treehou.kotlinoptional
/**
* Representation of a object that might have a value.
*/
sealed class Optional<out T>{
/**
* Represents a value containing some data.
*/
data class Some<out T: Any>(val value: T): Optional<T>()
/**
* Represents the lack of a value.
*/
object... | 0 | Kotlin | 0 | 1 | 499ab16c3c06091ffa861e9ad2a0e03755f6278c | 1,004 | kotlin-optional | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.