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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
pluto/lib/src/main/java/com/pluto/tool/modules/ruler/internal/RulerFragment.kt | androidPluto | 390,471,457 | false | {"Kotlin": 744352, "Shell": 646} | package com.pluto.tool.modules.ruler.internal
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
internal class RulerFragment : Fragment() {
override fun onCreateView(inflater: LayoutInflater, container: ViewGro... | 23 | Kotlin | 64 | 657 | 5562cb7065bcbcf18493820e287d87c7726f630b | 476 | pluto | Apache License 2.0 |
kotlin/services/sagemaker/src/main/kotlin/com/kotlin/sage/DescribeTrainingJob.kt | awsdocs | 66,023,605 | false | null | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.kotlin.sage
// snippet-start:[sagemaker.kotlin.describe_train_job.import]
import aws.sdk.kotlin.services.sagemaker.SageMakerClient
import aws.sdk.kotlin.services.sagemaker.model.DescribeTrainingJob... | 248 | null | 5614 | 9,502 | 3d8f94799b9c661cd7092e03d6673efc10720e52 | 1,516 | aws-doc-sdk-examples | Apache License 2.0 |
koin-test/src/test/kotlin/org/koin/test/core/ContextReleaseTest.kt | snaplucas | 124,597,554 | true | {"Kotlin": 90742, "Shell": 622} | package org.koin.test.core
import org.junit.Assert
import org.junit.Assert.fail
import org.junit.Test
import org.koin.core.scope.Scope
import org.koin.dsl.module.Module
import org.koin.error.NoScopeFoundException
import org.koin.standalone.releaseContext
import org.koin.standalone.startKoin
import org.koin.test.KoinTe... | 0 | Kotlin | 0 | 0 | 8793915f270983c063bee9ffaf0ae75c40c7ac12 | 6,807 | koin | Apache License 2.0 |
app/src/main/java/com/vitorpamplona/amethyst/ui/actions/NewPollPrimaryDescription.kt | vitorpamplona | 587,850,619 | false | {"Kotlin": 3170921, "Shell": 1485, "Java": 921} | package com.vitorpamplona.amethyst.ui.components
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material.*
import androidx.compose.runtime.*
import androidx.compose.ui.ExperimentalC... | 157 | Kotlin | 88 | 981 | 2de3d19a34b97c012e39b203070d9c1c0b1f0520 | 3,024 | amethyst | MIT License |
app/src/main/java/com/pixaby/arpan/arch/mvi/IModel.kt | arpanpeter | 532,363,756 | false | null |
package com.pixaby.arpan.arch.mvi
import androidx.lifecycle.LiveData
import kotlinx.coroutines.channels.Channel
interface IModel<S: IState, I: IAction> {
val actions: Channel<I>
val state: LiveData<S>
} | 0 | Kotlin | 0 | 0 | f10a6d45429a0d27ad58b882961607d35d7b069c | 213 | Pixo | Apache License 2.0 |
src/test/kotlin/core/simulator/ExporterTests.kt | dfialho | 97,379,051 | false | null | package core.simulator
import core.routing.Message
import core.routing.Route
import org.hamcrest.MatcherAssert.assertThat
import org.hamcrest.Matchers.greaterThan
import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.dsl.given
import org.jetbrains.spek.api.dsl.it
import org.jetbrains.spek.api.dsl.on
import ... | 0 | Kotlin | 0 | 0 | 7e637089290bdd568e7401ca8f728ebe9906cb34 | 1,479 | routing-simulator | MIT License |
src/test/kotlin/core/simulator/ExporterTests.kt | dfialho | 97,379,051 | false | null | package core.simulator
import core.routing.Message
import core.routing.Route
import org.hamcrest.MatcherAssert.assertThat
import org.hamcrest.Matchers.greaterThan
import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.dsl.given
import org.jetbrains.spek.api.dsl.it
import org.jetbrains.spek.api.dsl.on
import ... | 0 | Kotlin | 0 | 0 | 7e637089290bdd568e7401ca8f728ebe9906cb34 | 1,485 | routing-simulator | MIT License |
ultron/src/main/java/com/atiurin/ultron/extensions/PerfomOnViewExt.kt | open-tool | 312,407,423 | false | null | package com.atiurin.ultron.extensions
import android.view.View
import androidx.test.espresso.DataInteraction
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.ViewInteraction
import com.atiurin.ultron.core.espresso.UltronEspressoInteraction
import com.atiurin.ultron.custom.espresso.action.Cus... | 8 | Kotlin | 9 | 44 | d5f8ae5a592aa44c4aa2bb59ec92c9b7e9a66679 | 3,333 | ultron | Apache License 2.0 |
app/src/main/java/com/zobaer53/zedmovies/data/database/source/TvShowDetailsDatabaseDataSource.kt | zobaer53 | 661,586,013 | false | {"Kotlin": 498107, "JavaScript": 344099, "C++": 10825, "CMake": 2160} | package com.zobaer53.zedmovies.data.database.source
import com.zobaer53.zedmovies.data.database.dao.tvshow.TvShowDetailsDao
import com.zobaer53.zedmovies.data.database.model.tvshow.TvShowDetailsEntity
import com.zobaer53.zedmovies.data.database.util.zedMoviesDatabaseTransactionProvider
import javax.inject.Inject
clas... | 0 | Kotlin | 3 | 6 | 1e70d46924b711942b573364745fa74ef1f8493f | 1,209 | NoFlix | Apache License 2.0 |
app/src/main/java/ca/hojat/gamehub/core/domain/games/usecases/RefreshMostAnticipatedGamesUseCase.kt | hojat72elect | 574,228,468 | false | {"Kotlin": 912868, "Shell": 539} | package ca.hojat.gamehub.core.domain.games.usecases
import ca.hojat.gamehub.core.domain.common.DispatcherProvider
import ca.hojat.gamehub.core.domain.DomainResult
import ca.hojat.gamehub.core.extensions.onEachSuccess
import ca.hojat.gamehub.core.domain.games.RefreshableGamesUseCase
import ca.hojat.gamehub.core.domain.... | 0 | Kotlin | 8 | 14 | 0d89fb6e48ea00eb2063b9c415c924730be0a29a | 1,747 | GameHub | MIT License |
src/main/kotlin/com/projectcitybuild/modules/sharedcache/SharedCacheSet.kt | projectcitybuild | 42,997,941 | false | null | package com.projectcitybuild.modules.sharedcache
/**
* Represents a cachable String Set that is shared between all servers.
*
* Anything that conforms to this interface must guarantee that
* regardless of which server it's used from, the underlying
* data will be synchronised.
*/
interface SharedCacheSet {
v... | 23 | Kotlin | 0 | 2 | 24c6a86aee15535c3122ba6fb57cc7ca351e32bb | 513 | PCBridge | MIT License |
buildSrc/src/main/kotlin/Deps.kt | S-H-Y-A | 454,439,254 | false | null | object Deps {
const val gson = "com.google.code.gson:gson:_"
const val numberPicker = "com.chargemap.compose:numberpicker:_"
object Project {
const val kotlinDataStore = ":core"
const val dataStoreInitializer = ":initializer"
const val dataStoreEnum = ":enum"
const val dataS... | 0 | Kotlin | 0 | 4 | 575a5f5b604de0a6f86a08b0ade33bac2fd7b0b4 | 438 | KotlinDataStore | Apache License 2.0 |
app/src/main/java/com/weesnerdevelopment/serialcabinet/components/BasicListItem.kt | adamWeesner | 316,896,304 | false | null | package com.weesnerdevelopment.serialcabinet.components
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.co... | 0 | Kotlin | 0 | 0 | eb954995ee9ebe1b9b15dee8163f2b880649b2a7 | 1,178 | Serial-Cabinet | MIT License |
plugins/dependencies/src/main/kotlin/dependencies/_ALL.kt | Splitties | 150,827,271 | false | {"Kotlin": 808317, "Shell": 2793, "Just": 1182, "Java": 89, "Groovy": 24} | // The name of this file starts with an underscore to make it prominent in the file list.
package dependencies
import AndroidX
import COIL
import CashApp
import Firebase
import Google
import Http4k
import JakeWharton
import Kodein
import Koin
import Kotlin
import KotlinX
import Ktor
import Orchid
import RussHWolf
imp... | 81 | Kotlin | 92 | 1,606 | df624c0fb781cb6e0de054a2b9d44808687e4fc8 | 770 | refreshVersions | MIT License |
src/commonTest/kotlin/com.adamratzman/spotify/pub/BrowseApiTest.kt | adamint | 104,819,774 | false | {"Kotlin": 790142, "Shell": 443, "JavaScript": 154} | /* Spotify Web API, Kotlin Wrapper; MIT License, 2017-2022; Original author: <NAME> */
@file:OptIn(ExperimentalCoroutinesApi::class)
package com.adamratzman.spotify.pub
import com.adamratzman.spotify.AbstractTest
import com.adamratzman.spotify.GenericSpotifyApi
import com.adamratzman.spotify.SpotifyException
import c... | 6 | Kotlin | 21 | 178 | e047800a69dc80ac00380166076b7b80a3125440 | 7,779 | spotify-web-api-kotlin | MIT License |
app/src/main/java/ru/nightgoat/weather/presentation/list/ListFragmentCallbacks.kt | NightGoat | 255,927,899 | false | {"Kotlin": 101372} | package ru.nightgoat.weather.presentation.list
import ru.nightgoat.weather.data.entity.CityEntity
interface ListFragmentCallbacks {
fun setCurrentCityAndCallCityFragment(cityName: String, cityId: Int)
fun getWeatherIcon(id: Int, dt: Long, sunrise: Long, sunset: Long): String
fun getColor(cityEntity: CityE... | 0 | Kotlin | 0 | 2 | dddb5463ded919f43fd1450bb0fcdffc34a2752e | 419 | WeatherAndroidApp | MIT License |
compiler/src/commonMain/kotlin/com.franzmandl.compiler/ast/ClassSymbol.kt | franzmandl | 512,849,792 | false | null | package com.franzmandl.compiler.ast
import kotlinx.serialization.Serializable
@Serializable
sealed class ClassSymbol
@Serializable
sealed class HasBodySymbol : ClassSymbol() {
abstract val body: Body
} | 0 | Kotlin | 0 | 0 | a5004c6fc8fb717e076441ef55e3f8758efe252f | 205 | visopt | MIT License |
src/main/kotlin/com/waicool20/waicoolutils/Reflection.kt | waicool20 | 135,830,471 | false | null | /*
* The MIT License (MIT)
*
* Copyright (c) waicool20
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, m... | 0 | Kotlin | 1 | 1 | 83c675a414800c1662e3dd33a4cde2b8246962b9 | 6,756 | waicoolUtils | MIT License |
androidDesignSystem/src/test/java/by/game/binumbers/design/system/components/button/PauseButtonTest.kt | alexander-kulikovskii | 565,271,232 | false | {"Kotlin": 454229, "Swift": 3274, "Ruby": 2480, "Shell": 622} | package by.game.binumbers.design.system.components.button
import androidx.compose.runtime.Composable
import by.game.binumbers.screenshot.test.tool.BaseComponentTest
class PauseButtonTest : BaseComponentTest() {
override val content: @Composable () -> Unit = { PauseButton() }
}
| 0 | Kotlin | 0 | 10 | 66b1678b47a96a52ebef467111d1d4854a37486a | 284 | 2048-kmm | Apache License 2.0 |
core/network/src/main/java/com/msg/network/datasource/certification/CertificationDataSource.kt | School-of-Company | 700,744,250 | false | {"Kotlin": 724178} | package com.msg.network.datasource.certification
import com.msg.model.remote.request.certification.WriteCertificationRequest
import com.msg.model.remote.response.certification.CertificationListResponse
import kotlinx.coroutines.flow.Flow
import java.util.UUID
interface CertificationDataSource {
fun getCertificati... | 6 | Kotlin | 1 | 22 | 358bf40188fa2fc2baf23aa6b308b039cb3fbc8c | 627 | Bitgoeul-Android | MIT License |
kotlin-csstype/src/main/generated/csstype/BreakInside.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:Suppress(
"NAME_CONTAINS_ILLEGAL_CHARS",
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
package csstype
// language=JavaScript
@JsName("""(/*union*/{avoid: 'avoid', avoidColumn: 'avoid-column', avoidPage: 'avoid-page', avoidRegion: 'avoid-region'}/*union*/)""")
seal... | 13 | null | 6 | 983 | 7ef1028ba3e0982dc93edcdfa6ee1edb334ddf35 | 527 | kotlin-wrappers | Apache License 2.0 |
glimpse/core/src/commonMain/kotlin/GlimpseDisposableContainer.kt | glimpse-graphics | 319,730,354 | false | null | /*
* Copyright 2020-2022 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 7 | null | 0 | 6 | e00a9f22db9e10493e7711d5dd8524eb7b06be77 | 2,536 | glimpse | Apache License 2.0 |
roboquant-xchange/src/main/kotlin/org/roboquant/xchange/XChangePollingLiveFeed.kt | neurallayer | 406,929,056 | false | null | /*
* Copyright 2020-2024 Neural Layer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 8 | null | 9 | 316 | 769f1aade1e8e95817591866faad4561f7768071 | 4,367 | roboquant | Apache License 2.0 |
character-detail/src/main/java/com/ezike/tobenna/starwarssearch/characterdetail/presentation/CharacterDetailViewStateReducer.kt | Ezike | 294,171,829 | false | {"Kotlin": 190343, "Shell": 657} | package com.ezike.tobenna.starwarssearch.characterdetail.presentation
import com.ezike.tobenna.starwarssearch.characterdetail.mapper.FilmModelMapper
import com.ezike.tobenna.starwarssearch.characterdetail.mapper.PlanetModelMapper
import com.ezike.tobenna.starwarssearch.characterdetail.mapper.SpecieModelMapper
import c... | 0 | Kotlin | 30 | 198 | f091dc9b19b0a4b5b38d27c5331a4d70388f970d | 4,008 | StarWarsSearch-MVI | Apache License 2.0 |
src/main/kotlin/synchro/Profile.kt | wolfgangasdf | 163,865,648 | false | null | package synchro
import javafx.concurrent.Worker
import mu.KotlinLogging
import store.*
import synchro.Actions.A_CACHEONLY
import synchro.Actions.A_ISEQUAL
import synchro.Actions.A_MERGE
import synchro.Actions.A_RMBOTH
import synchro.Actions.A_RMLOCAL
import synchro.Actions.A_RMREMOTE
import synchro.Actions.A_SKIP
impo... | 0 | Kotlin | 0 | 0 | 321f7cda36e582e8ef2e5f0cb66f925e1e815e1f | 13,149 | sfsyncbrowser | MIT License |
decoder/src/commonTest/kotlin/io/github/charlietap/chasm/decoder/decoder/type/vector/VectorTypeDecoderTest.kt | CharlieTap | 743,980,037 | false | null | package io.github.charlietap.chasm.decoder.decoder.type.vector
import com.github.michaelbull.result.Err
import com.github.michaelbull.result.Ok
import io.github.charlietap.chasm.ast.type.VectorType
import io.github.charlietap.chasm.decoder.error.TypeDecodeError
import io.github.charlietap.chasm.decoder.fixture.decoder... | 5 | null | 3 | 67 | dd6fa51262510ecc5ee5b03866b3fa5d1384433b | 1,064 | chasm | Apache License 2.0 |
shared/src/commonMain/kotlin/ml/dev/kotlin/openotp/ui/screen/AddProviderScreen.kt | avan1235 | 688,384,879 | false | null | package ml.dev.kotlin.openotp.ui.screen
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.icons.Icons
import androidx.compose.mater... | 2 | null | 3 | 71 | acae3a1e4bdebcfefe549fe5f4fff4ffeed18d51 | 8,283 | open-otp | MIT License |
karibu-dsl-v23/src/main/kotlin/com/github/mvysny/karibudsl/v23/LoginForm.kt | mvysny | 92,477,088 | false | {"Kotlin": 242046, "CSS": 6859, "HTML": 507, "Isabelle": 51} | package com.github.mvysny.karibudsl.v23
import com.github.mvysny.karibudsl.v10.VaadinDsl
import com.vaadin.flow.component.Component
import com.vaadin.flow.component.HasComponents
import com.vaadin.flow.component.login.LoginOverlay
import com.vaadin.flow.dom.Element
@VaadinDsl
public fun (@VaadinDsl LoginOverlay).foot... | 7 | Kotlin | 16 | 126 | 26b842b5a5de37050a427e61df2162769d0cda33 | 1,127 | karibu-dsl | MIT License |
app/src/main/java/io/curity/haapidemo/Configuration.kt | curityio | 601,061,534 | false | null | /*
* Copyright (C) 2023 Curity AB
*
* 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 ag... | 0 | Kotlin | 0 | 1 | c2384eb3e9fa2efdcd43662a6f7b824a3415cb3f | 3,624 | android-haapi-ui-sdk-demo | Apache License 2.0 |
backend.native/tests/codegen/object/constructor.kt | JetBrains | 58,957,623 | false | null | /*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
package codegen.`object`.constructor
class A()
class B(val a:Int)
class C(val a:Int, b:Int) | 0 | null | 625 | 7,100 | 9fb0a75ab17e9d8cddd2c3d1802a1cdd83774dfa | 246 | kotlin-native | Apache License 2.0 |
invoice-core/src/commonMain/kotlin/invoice/SenderUtils.kt | aSoft-Ltd | 343,245,386 | false | null | @file:JvmName("SenderUtils")
package invoice
import kotlin.jvm.JvmName
fun Sender.toCreator() = Creator(uid = uid, name = name) | 1 | Kotlin | 1 | 1 | 459df533c067fa3345fe72be85102302a78c4102 | 130 | invoice | MIT License |
app/src/main/java/com/duckduckgo/app/fire/fireproofwebsite/data/FireproofWebsiteRepositoryImpl.kt | duckduckgo | 78,869,127 | false | null | /*
* Copyright (c) 2020 DuckDuckGo
*
* 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 ... | 67 | null | 901 | 3,823 | 6415f0f087a11a51c0a0f15faad5cce9c790417c | 4,404 | Android | Apache License 2.0 |
widgetssdk/src/main/java/com/glia/widgets/view/unifiedui/theme/survey/SurveyTheme.kt | salemove | 312,288,713 | false | {"Kotlin": 1795638, "Java": 458170, "Shell": 1802} | package com.glia.widgets.view.unifiedui.theme.survey
import com.glia.widgets.view.unifiedui.theme.base.ButtonTheme
import com.glia.widgets.view.unifiedui.theme.base.LayerTheme
import com.glia.widgets.view.unifiedui.theme.base.TextTheme
internal data class SurveyTheme(
val layer: LayerTheme? = null,
val title:... | 2 | Kotlin | 1 | 6 | b69e7f81bb987d8dabfc450086efd56e2a0ae99d | 661 | android-sdk-widgets | MIT License |
app/src/main/java/com/sinthoras/randograf/cards/CardJoker.kt | SinTh0r4s | 444,149,281 | false | null | package com.sinthoras.randograf.cards
import com.sinthoras.randograf.BlockColors
import com.sinthoras.randograf.structure.StructureGenerator
import com.sinthoras.randograf.R
class CardJoker : Card() {
private val structure = StructureGenerator.generateStructure(1).withColor(BlockColors.ALL)
fun getStructure(... | 1 | null | 1 | 1 | 5319ccb2ebbb9e90f957a065794ad5aebff20459 | 481 | Randograf | MIT License |
app/src/test/java/com/uzias/starwarsshop/core/util/fileFromResource.kt | uziassantosferreira | 108,789,405 | false | null | package com.uzias.starwarsshop.core.util
fun fileFromResource(resource: String, javaClazz: Class<Any>) : String =
javaClazz.classLoader.getResourceAsStream(resource).bufferedReader().use { it.readText() }
| 0 | Kotlin | 1 | 38 | dec2d949a69e870bf37a76c4f22d86c93c12c143 | 215 | Star-Wars-Shop | Apache License 2.0 |
src/main/kotlin/com/gmail/blueboxware/libgdxplugin/ui/LibGDXElementDescriptionProvider.kt | BlueBoxWare | 64,067,118 | false | null | package com.gmail.blueboxware.libgdxplugin.ui
import com.gmail.blueboxware.libgdxplugin.filetypes.atlas.psi.AtlasRegion
import com.gmail.blueboxware.libgdxplugin.filetypes.skin.psi.SkinResource
import com.intellij.psi.ElementDescriptionLocation
import com.intellij.psi.ElementDescriptionProvider
import com.intellij.psi... | 2 | null | 9 | 145 | bcb911e0c3f3e9319bc8ee2d5b6b554c6090fd6c | 1,260 | LibGDXPlugin | Apache License 2.0 |
app/src/main/java/com/scriptsquad/unitalk/Socials_Page/activities/Socials_Gallery_Activity.kt | ST10029788 | 841,892,426 | false | {"Kotlin": 601541, "JavaScript": 1259} | package com.scriptsquad.unitalk.Socials_Page.activities
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.scriptsquad.unitalk.databinding.ActivityGalleryBinding
import com.scriptsquad.unitalk.Socials_Page.fragments.PictureFragment
import com.scriptsquad.unitalk.Socials_Page.fragments.... | 0 | Kotlin | 0 | 0 | 3ab0d70fb355b7a31f9135810874b28ae069cc4b | 1,653 | UniTalk | MIT License |
code/backend/Odin/src/main/kotlin/pt/isel/odin/http/controllers/department/models/GetAllDepartmentsOutputModel.kt | Rafael4DC | 767,594,795 | false | {"Kotlin": 380088, "TypeScript": 256706, "C#": 13106, "PowerShell": 1924, "JavaScript": 1734, "HTML": 263} | package pt.isel.odin.http.controllers.department.models
import pt.isel.odin.model.Department
/**
* Represents the output model for getting all departments.
*
* @property departments The departments.
*/
data class GetAllDepartmentsOutputModel(
val departments: List<GetDepartmentOutputModel>
)
/**
* Creates a... | 61 | Kotlin | 0 | 2 | 89098f83607781fa838773eae7cef1781cd85a07 | 699 | AssemblyOdin | MIT License |
app/src/main/java/com/example/wordsmemory/di/DbModule.kt | matteofabris | 347,469,835 | false | null | package com.example.wordsmemory.di
import android.content.Context
import com.example.wordsmemory.framework.room.WMDatabase
import com.google.firebase.firestore.ktx.firestore
import com.google.firebase.ktx.Firebase
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.quali... | 0 | Kotlin | 0 | 0 | 8f4d49418ddf046c59f9ada274a94f87149dfb89 | 996 | WordsMemory | MIT License |
core/designsystem/src/main/java/com/eshc/goonersapp/core/designsystem/iconpack/IcPeople.kt | eshc123 | 640,451,475 | false | {"Kotlin": 506530} | package com.eshc.goonersapp.core.designsystem.iconpack
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.... | 2 | Kotlin | 1 | 1 | f80da9068d49ec11403362f538c5d1e903cb2843 | 4,609 | GoonersApp | Apache License 2.0 |
j2k/testData/fileOrElement/tryWithResource/WithReturnInAnonymousClass2.kt | staltz | 93,485,627 | false | null | import java.io.*
interface I {
Throws(IOException::class)
public fun doIt(stream: InputStream): Int
}
public class C {
Throws(IOException::class)
fun foo() {
ByteArrayInputStream(ByteArray(10)).use { stream ->
bar(object : I {
Throws(IOException::class)
... | 1 | null | 0 | 1 | 80074c71fa925a1c7173e3fffeea4cdc5872460f | 588 | kotlin | Apache License 2.0 |
CallofProjectAndroid/app/src/main/java/callofproject/dev/androidapp/presentation/project/project_details/ProjectDetailViewModel.kt | CallOfProject | 751,531,328 | false | {"Kotlin": 479159, "Java": 5989} | package callofproject.dev.androidapp.presentation.project.project_details
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import callofproject.dev.androidapp.R
i... | 0 | Kotlin | 0 | 1 | 5f1f03c80c8ef83bfc4a6609ade55c64bb72458c | 2,108 | Call-Of-Project-Android | MIT License |
app/src/main/java/com/bcassar/nbafantasy/playerstatslist/PlayerGameStatsListFragment.kt | baptistecassar | 557,934,807 | false | null | package com.bcassar.nbafantasy.playerstatslist
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclervie... | 0 | Kotlin | 0 | 0 | 396491f034852ba294819da74d2461fece148f6a | 3,430 | android-nba-fantasy | MIT License |
kotlin-react-router/src/jsMain/generated/react/router/useLoaderData.kt | JetBrains | 93,250,841 | false | {"Kotlin": 11411371, "JavaScript": 154302} | @file:JsModule("react-router")
package react.router
/**
* Returns the loader data for the nearest ancestor Route loader
*/
external fun useLoaderData(): Any?
| 28 | Kotlin | 173 | 1,250 | 9e9dda28cf74f68b42a712c27f2e97d63af17628 | 163 | kotlin-wrappers | Apache License 2.0 |
kotlin-react-router/src/jsMain/generated/react/router/useLoaderData.kt | JetBrains | 93,250,841 | false | {"Kotlin": 11411371, "JavaScript": 154302} | @file:JsModule("react-router")
package react.router
/**
* Returns the loader data for the nearest ancestor Route loader
*/
external fun useLoaderData(): Any?
| 28 | Kotlin | 173 | 1,250 | 9e9dda28cf74f68b42a712c27f2e97d63af17628 | 163 | kotlin-wrappers | Apache License 2.0 |
src/main/java/com/everis/everledger/util/Util.kt | KKZ | 117,506,559 | false | null | package com.everis.everledger.util
import com.everis.everledger.ifaces.ILPLedgerInfo
import com.google.common.collect.ImmutableList
import io.vertx.core.AsyncResult
import io.vertx.core.Vertx
import io.vertx.core.VertxOptions
import io.vertx.core.json.Json
import io.vertx.core.json.JsonObject
import org.apache.commons... | 0 | Kotlin | 0 | 0 | 86b585142c2799deac34e8f3f2bb802238cafd82 | 21,832 | interledger-ledger | Apache License 2.0 |
app/src/main/java/com/example/matchmentor/view/CardStackAdapter.kt | RodrigoJrDev | 795,927,508 | false | {"Kotlin": 44434} | package com.example.matchmentor.view
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.example.matchmentor.R
import com.example.matchmentor.model.Item
clas... | 0 | Kotlin | 0 | 0 | 0e59a878805c88e9ea1c22846e4775c2f7a8cac7 | 1,457 | MatchMentor | MIT License |
src/main/java/uk/gov/justice/hmpps/casenotes/repository/OffenderCaseNoteRepository.kt | ministryofjustice | 195,988,411 | false | {"Kotlin": 252586, "Java": 71311, "Mustache": 1803, "Dockerfile": 1357, "Shell": 580} | package uk.gov.justice.hmpps.casenotes.repository
import org.springframework.data.domain.Pageable
import org.springframework.data.jpa.repository.JpaSpecificationExecutor
import org.springframework.data.jpa.repository.Modifying
import org.springframework.data.jpa.repository.Query
import org.springframework.data.reposit... | 3 | Kotlin | 1 | 1 | b81955fd2668084f14e5ae26255b13894e54a6e1 | 2,374 | offender-case-notes | MIT License |
compose/src/main/java/com/neeplayer/compose/ArtistsScreen.kt | daugeldauge | 35,284,835 | false | {"Kotlin": 107855, "HTML": 2854} | package com.neeplayer.compose
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material.MaterialTheme
import androidx... | 0 | Kotlin | 0 | 4 | 48d461a2edcdfa81b80697a796109d6402541a5b | 1,797 | NeePlayer | MIT License |
node-api/src/main/kotlin/net/corda/nodeapi/internal/config/CertificateStore.kt | corda | 70,137,417 | false | null | package net.corda.nodeapi.internal.config
import net.corda.core.crypto.internal.AliasPrivateKey
import net.corda.core.internal.outputStream
import net.corda.nodeapi.internal.crypto.X509KeyStore
import net.corda.nodeapi.internal.crypto.addOrReplaceCertificate
import java.io.InputStream
import java.io.OutputStream
impor... | 62 | null | 1089 | 3,989 | d27aa0e6850d3804d0982024054376d452e7073a | 4,134 | corda | Apache License 2.0 |
compose_material3/src/main/java/dev/vengateshm/compose_material3/side_effects/ProduceStateSample.kt | vengateshm | 670,054,614 | false | {"Kotlin": 1326948, "Java": 33589} | package dev.vengateshm.compose_material3.side_effects
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.CircularProgressIndicator
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compo... | 0 | Kotlin | 0 | 1 | e697e100a6e012ffee2dcba7644034d9cc2f322f | 1,208 | Android-Kotlin-Jetpack-Compose-Practice | Apache License 2.0 |
implementation/src/main/kotlin/io/github/tomplum/aoc/communication/cpu/MemorySnapshot.kt | TomPlum | 572,260,182 | false | null | package io.github.tomplum.aoc.communication.cpu
/**
* A snapshot of the data in-memory during a single cycle
* of a [ClockCircuit].
* @param xRegister The value of the x register at the [cycle]
* @param cycle The CPU cycle in which the snapshot was captured
*/
data class MemorySnapshot(val xRegister: Int, val cyc... | 0 | Kotlin | 0 | 0 | 703db17fe02a24d809cc50f23a542d9a74f855fb | 603 | advent-of-code-2022 | Apache License 2.0 |
release/rapid/src/main/kotlin/com/expediagroup/sdk/core/client/HttpHandler.kt | ExpediaGroup | 774,903,007 | false | null | /*
* Copyright (C) 2022 Expedia, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 4 | null | 6 | 3 | b286227f8c0710284c8a4496134d44873b58d7c9 | 1,367 | rapid-java-sdk | Apache License 2.0 |
app/src/main/java/com/awscherb/cardkeeper/ui/base/Destination.kt | LateNightProductions | 66,697,395 | false | {"Kotlin": 154044} | package com.awscherb.cardkeeper.ui.base
sealed class Destination(val label: String, val dest: String) {
object Items : Destination("Items", "items")
object Scan : Destination("Scan", "scan")
object Create : Destination("Create", "create")
}
| 1 | Kotlin | 18 | 101 | 609b8a5f9a4161936a3fbf809183a7ece25798fa | 254 | CardKeeper | Apache License 2.0 |
src/test/kotlin/icfp2019/analyzers/MSTAnalyzerTest.kt | godaddy-icfp | 186,746,222 | false | {"JavaScript": 797310, "Kotlin": 116879, "CSS": 9434, "HTML": 5859, "Shell": 70} | package icfp2019.analyzers
import icfp2019.model.*
import icfp2019.toProblem
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
class MSTAnalyzerTest {
@Test
fun testMinimumSpanningTree6Nodes() {
val map3x2 = """
..@
...
""".toProblem()
... | 13 | JavaScript | 12 | 0 | a1060c109dfaa244f3451f11812ba8228d192e7d | 906 | icfp-2019 | The Unlicense |
intellij-plugin/educational-core/src/com/jetbrains/edu/learning/EduStartupActivity.kt | JetBrains | 43,696,115 | false | null | package com.jetbrains.edu.learning
import com.intellij.ide.projectView.ProjectView
import com.intellij.ide.util.PropertiesComponent
import com.intellij.notification.BrowseNotificationAction
import com.intellij.notification.NotificationType.WARNING
import com.intellij.openapi.application.ApplicationManager
import com.i... | 7 | null | 49 | 150 | 9cec6c97d896f4485e76cf9a2a95f8a8dd21c982 | 10,084 | educational-plugin | Apache License 2.0 |
app/src/main/java/com/ng/ui/show/view/CtbFragment.kt | jiangzhengnan | 185,233,735 | false | null | package com.ng.ui.show.frag
import android.view.View
import com.ng.ui.R
import kotlinx.android.synthetic.main.fragment_ctb.*
/**
* 描述:
* @author Jzn
* @date 2020-06-12
*/
class CtbFragment : BaseFragment() {
override fun initViewsAndEvents(v: View) {
btn1_mcv.setOnClickListener {
ctt_mcv.i... | 0 | null | 68 | 243 | f528f8ad912f89c66ea3622f2e93a31db062cd93 | 502 | NguiLib | Apache License 2.0 |
core/src/main/java/com/infinum/jsonapix/core/discriminators/JsonApiDiscriminator.kt | infinum | 291,043,190 | false | null | @file:SuppressWarnings("TooGenericExceptionCaught")
package com.infinum.jsonapix.core.discriminators
import com.infinum.jsonapix.core.common.JsonApiConstants
import com.infinum.jsonapix.core.common.JsonApiConstants.Prefix.withName
import kotlinx.serialization.json.JsonArray
import kotlinx.serialization.json.JsonEleme... | 5 | Kotlin | 9 | 28 | 9efad5361759b8dbf48c1bb027ae69fc906066e5 | 6,844 | kotlin-jsonapix | Apache License 2.0 |
components/src/androidMain/kotlin/com/alexrdclement/uiplayground/components/TextField.android.kt | alexrdclement | 661,077,963 | false | {"Kotlin": 224028, "Swift": 900} | package com.alexrdclement.uiplayground.components
import androidx.compose.foundation.text.input.rememberTextFieldState
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import com.alexrdclement.uiplayground.theme.PlaygroundTheme
@Preview
@Composable
private fun Preview() {
... | 0 | Kotlin | 0 | 0 | a99ee143215098889afaf4fa97d3399f9dc65383 | 471 | UiPlayground | Apache License 2.0 |
order/listener/src/main/kotlin/com/rarible/protocol/order/listener/service/currency/CurrencyService.kt | NFTDroppr | 418,665,809 | true | {"Kotlin": 2329156, "Scala": 37343, "Shell": 6001, "HTML": 547} | package com.rarible.protocol.order.listener.service.currency
import com.rarible.protocol.order.core.model.Currency
import com.rarible.protocol.order.core.repository.currency.CurrencyRepository
import org.springframework.stereotype.Component
import scalether.domain.Address
@Component
class CurrencyService(
private... | 0 | Kotlin | 0 | 1 | b1efdaceab8be95429befe80ce1092fab3004d18 | 575 | ethereum-indexer | MIT License |
sample/src/main/java/com/chicco/sample/MainActivity.kt | drahovac | 342,925,986 | false | null | package com.chicco.sample
import android.os.Bundle
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import com.chicco.sample.databinding.ActivityMainBinding
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
private val model: MainV... | 0 | Kotlin | 1 | 2 | ac490dd099347183345e420e1f45a473cb5bde71 | 1,361 | android-file-save | Apache License 2.0 |
longan/src/main/java/com/dylanc/longan/Keyboard.kt | 379107728 | 430,594,612 | false | null | /*
* Copyright (c) 2021. <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 i... | 0 | null | 0 | 1 | 602ea1bea3ea2c87185a623204dc17606d0acfc8 | 1,206 | Longan | Apache License 2.0 |
app/src/main/java/com/iamageo/weather/app/WeatherApp.kt | iamageo | 512,027,915 | false | null | package com.plcoding.weatherapp
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class WeatherApp: Application() | 0 | null | 0 | 2 | d9f3f05caa0444de87d99397a35bfb943d4f9dcf | 154 | WeatherApp | MIT License |
app/src/main/java/com/example/fragment/project/ui/my_demo/DatePickerScreen.kt | miaowmiaow | 364,865,870 | false | {"Kotlin": 687499, "Java": 24923, "JavaScript": 10814, "HTML": 5445, "CSS": 60} | package com.example.fragment.project.ui.my_demo
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.co... | 0 | Kotlin | 202 | 1,103 | 2279b845e19c85a7d89a4a36fccffddba9e57bd0 | 5,267 | fragmject | Apache License 2.0 |
app/src/main/java/com/an/trailers_compose/data/local/TvDatabase.kt | anitaa1990 | 870,606,866 | false | {"Kotlin": 175839} | package com.an.trailers_compose.data.local
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.an.trailers_compose.data.local.converter.CreditResponseTypeConverter
import com.an.trailers_compose.data.local.converter.GenreListTypeConverter
import com.an.trailer... | 0 | Kotlin | 1 | 1 | a93ecd98968f071a174601d807f5d3725c669ff2 | 1,199 | Trailers-Compose | Apache License 2.0 |
app/src/main/java/com/movicom/informativeapplicationcovid19/views/AboutFragment.kt | SebastianRV26 | 289,597,953 | false | null | package com.movicom.informativeapplicationcovid19.views
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.fragment.app.Fragment
import com.movicom.inform... | 0 | Kotlin | 0 | 1 | bf3bc1dfc9bdb3cb71a503f81a0cb778240283a2 | 2,538 | Info-COVID-App | MIT License |
hybridAndroid/app/src/main/java/com/liuhc/myapplication/PageFlutterFragmentActivity.kt | ikakaxi | 206,521,040 | false | null | package com.liuhc.myapplication
import android.os.Bundle
import android.util.Log
import io.flutter.app.FlutterFragmentActivity
import io.flutter.plugin.common.MethodChannel
import io.flutter.view.FlutterMain
import org.json.JSONObject
/**
* 描述:
* 作者:liuhc
* 创建日期:2019-09-04 on 21:07
*/
class PageFlutterFragmentAct... | 0 | Kotlin | 1 | 5 | 2b8c51cb4941080bb559e99e1f05f693f923dc11 | 2,475 | hybridFlutterAndroid | Apache License 2.0 |
pensjon-brevbaker/src/main/kotlin/no/nav/pensjon/etterlatte/maler/barnepensjon/opphoer/BarnepensjonOpphoer.kt | navikt | 375,334,697 | false | {"Kotlin": 1963048, "TypeScript": 226000, "TeX": 12814, "Shell": 9753, "CSS": 7605, "Python": 4661, "JavaScript": 4236, "Dockerfile": 2406, "HTML": 763} | package no.nav.pensjon.etterlatte.maler.barnepensjon.opphoer
import no.nav.pensjon.brev.template.Language.Bokmal
import no.nav.pensjon.brev.template.Language.English
import no.nav.pensjon.brev.template.Language.Nynorsk
import no.nav.pensjon.brev.template.dsl.createTemplate
import no.nav.pensjon.brev.template.dsl.expre... | 7 | Kotlin | 3 | 1 | b30da6b77c8d2c56d03987031c59373710403d30 | 4,615 | pensjonsbrev | MIT License |
game/plugins/src/main/kotlin/gg/rsmod/plugins/content/npcs/definitions/other/ice_giant_level_53.plugin.kts | 2011Scape | 578,880,245 | false | null | package gg.rsmod.plugins.content.npcs.definitions.other
import gg.rsmod.game.model.combat.SlayerAssignment
import gg.rsmod.game.model.combat.StyleType
import gg.rsmod.plugins.content.drops.DropTableFactory
import gg.rsmod.plugins.content.drops.global.Gems
import gg.rsmod.plugins.content.drops.global.Seeds
val ids = i... | 39 | null | 45 | 34 | e5400cc71bfa087164153d468979c5a3abc24841 | 3,220 | game | Apache License 2.0 |
idea/src/org/jetbrains/kotlin/idea/debugger/KotlinPositionManager.kt | msdgwzhy6 | 457,782,179 | false | null | /*
* Copyright 2010-2015 JetBrains s.r.o.
*
* 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... | 1 | null | 2 | 1 | f713adc96e9adeacb1373fc170a5ece1bf2fc1a2 | 24,424 | kotlin | Apache License 2.0 |
reposilite-backend/src/main/kotlin/com/reposilite/storage/StoragePlugin.kt | dzikoysk | 96,474,388 | false | null | package com.reposilite.storage
import com.reposilite.plugin.api.Facade
import com.reposilite.plugin.api.Plugin
import com.reposilite.plugin.api.ReposilitePlugin
@Plugin(name = "storage")
class StoragePlugin : ReposilitePlugin() {
override fun initialize(): Facade =
StorageFacade()
}
| 16 | Kotlin | 104 | 631 | a4ad03ca8e060282308c1e9b63c454171cded47e | 300 | reposilite | Apache License 2.0 |
src/plugin/arguments/src/commonMain/kotlin/community/flock/wirespec/plugin/Format.kt | flock-community | 506,356,849 | false | {"Kotlin": 656506, "Shell": 6544, "TypeScript": 5819, "Witcher Script": 4248, "Java": 4221, "Dockerfile": 625, "Makefile": 501, "JavaScript": 140} | package community.flock.wirespec.plugin
enum class Format {
OpenApiV2, OpenApiV3;
companion object {
override fun toString() = entries.joinToString()
}
}
| 18 | Kotlin | 2 | 17 | 50f8b9a1e341d6d79fdc86f6bff9fca9b32b7579 | 176 | wirespec | Apache License 2.0 |
product/content/content-bl/src/main/java/com/yugyd/quiz/domain/content/ContentRemoteConfigSource.kt | Yugyd | 685,349,849 | false | {"Kotlin": 873471, "FreeMarker": 22968, "Fluent": 18} | package com.yugyd.quiz.domain.content
interface ContentRemoteConfigSource {
suspend fun getContentFormatUrl(): String
}
| 0 | Kotlin | 1 | 8 | 0192d1ccabe96b7ac9f9a844259cca7a018aa6b5 | 125 | quiz-platform | Apache License 2.0 |
litho-widget-kotlin/src/test/kotlin/com/facebook/litho/sections/widget/CollectionIdTest.kt | facebook | 80,179,724 | false | null | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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... | 108 | null | 703 | 7,320 | 33e55dbda09b81ef79ba5f6de6dc7abdd4b79c29 | 6,550 | litho | Apache License 2.0 |
app/src/main/java/ru/tech/imageresizershrinker/presentation/main_screen/components/settings/ChangeLanguageSettingItem.kt | T8RIN | 478,710,402 | false | null | package ru.tech.imageresizershrinker.presentation.main_screen.components
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.provider.Settings
import androidx.appcompat.app.AppCompatDelegate
import androidx.compose.animation.animateContentSize
impo... | 9 | null | 77 | 979 | 7d164a02c463afede47c785f8b182c954abfcde9 | 7,750 | ImageToolbox | Apache License 2.0 |
libraries/stdlib/test/text/StringEncodingTest.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package test.text
import test.assertArrayContentEquals
import test.testOnNonJvm6And7
import kotlin.test.*
//... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 18,068 | kotlin | Apache License 2.0 |
src/main/kotlin/com/intellij/codeInsight/inline/completion/InlineCompletionSuggestion.kt | sourcegraph | 702,947,607 | 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.codeInsight.inline.completion
import com.intellij.codeInsight.inline.completion.elements.InlineCompletionElement
import com.intellij.openapi.util.UserDataHolderBase
import kotli... | 358 | null | 5079 | 67 | 437e3e2e53ae85edb7e445b2a0d412fbb7a54db0 | 1,148 | jetbrains | Apache License 2.0 |
arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-effect-guide-12.kt | arrow-kt | 86,057,409 | false | {"Kotlin": 2793646, "Java": 7691} | // This file was automatically generated from Effect.kt by Knit tool. Do not edit.
package arrow.core.examples.exampleEffectGuide12
import arrow.core.continuations.effect
import io.kotest.assertions.fail
import io.kotest.matchers.shouldBe
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.launch
suspe... | 38 | Kotlin | 436 | 5,958 | 5f0da6334b834bad481c7e3c906bee5a34c1237b | 569 | arrow | Apache License 2.0 |
app/src/main/java/kushbhati/camcode/domain/CameraController.kt | kushbhati | 692,191,903 | false | {"Kotlin": 25643, "C++": 2128, "CMake": 1840} | package kushbhati.camcode.domain
import kushbhati.camcode.datamodels.YUVImage
interface CameraController {
interface FrameReceiver {
fun onReceive(image: YUVImage)
}
fun openCamera()
fun setFrameReceiver(frameReceiver: FrameReceiver?)
} | 0 | Kotlin | 0 | 0 | d02b36aa3bf0c40900388cbaab3fb89217f71b76 | 265 | CodeCam | Apache License 2.0 |
src/main/kotlin/net/ltgt/gradle/j2cl/tasks/GwtIncompatibleStrip.kt | tbroyer | 279,092,022 | false | null | package net.ltgt.gradle.j2cl.tasks
import com.google.j2cl.tools.gwtincompatible.GwtIncompatibleStripper
import org.gradle.api.file.ConfigurableFileCollection
import org.gradle.api.file.DirectoryProperty
import org.gradle.api.file.FileType
import org.gradle.api.file.RegularFileProperty
import org.gradle.api.tasks.Class... | 0 | Kotlin | 0 | 19 | c41080e9d73fda834b8aa455a5872cc2b54b9720 | 2,592 | gradle-j2cl-plugin | Apache License 2.0 |
compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/pipeline/convertToIr.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.fir.pipeline
import org.jetbrains.kotlin.backend.common.extensions.IrGenerationE... | 7 | null | 5209 | 42,102 | 65f712ab2d54e34c5b02ffa3ca8c659740277133 | 2,013 | kotlin | Apache License 2.0 |
platform/vcs-tests/testSrc/com/intellij/vcs/VcsDirtyScopeManagerTest.kt | androidports | 115,100,208 | false | null | /*
* Copyright 2000-2016 JetBrains s.r.o.
*
* 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... | 6 | null | 1 | 4 | 6e4f7135c5843ed93c15a9782f29e4400df8b068 | 7,629 | intellij-community | Apache License 2.0 |
app/src/main/java/com/allat/mboychenko/silverthread/presentation/views/dialogs/BaseEventsCalendarDialog.kt | mboychenko | 184,405,918 | false | null | package com.allat.mboychenko.silverthread.presentation.views.dialogs
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.Window
import android.widget.TextView
import android.widget.Toast
import androidx.annotation.LayoutRes
import andro... | 0 | Kotlin | 1 | 2 | 31fa2a6ccfcb2ee49bd7dbb6c0a29dd4286f477a | 3,288 | SilverThread | Apache License 2.0 |
sudoklify/src/main/kotlin/dev/teogor/sudoklify/model/Sudoku.kt | teogor | 656,370,747 | false | null | package dev.teogor.sudoklify.model
import dev.teogor.sudoklify.types.Board
data class Sudoku(
val puzzle: Board,
val solution: Board,
val difficulty: Difficulty,
val type: Type,
) {
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return ... | 0 | Kotlin | 3 | 5 | d968e24109a1635f1ea5d53893670e867f6c63b6 | 845 | sudoklify | Apache License 2.0 |
src/main/kotlin/ru/ozon/ideplugin/kelp/resourceIcons/GetDsIconResourceName.kt | ozontech | 728,178,660 | false | null | package ru.ozon.ideplugin.kelp.resourceIcons
import ru.ozon.ideplugin.kelp.camelToSnakeCase
import ru.ozon.ideplugin.kelp.pluginConfig.KelpConfig
/**
* @return true, if the property with [propertyName] MUST be rendered with an icon
*/
internal fun filterDsIconProperty(
propertyNameFilter: KelpConfig.IconsRender... | 0 | null | 1 | 97 | 7110df10d83afacd2444808ff8525d6fecef2a7a | 1,195 | kelp | Apache License 2.0 |
compiler/testData/codegen/box/javaInterop/generics/kt42824.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... | // TARGET_BACKEND: JVM
// FILE: DiagnosticFactory0.java
import org.jetbrains.annotations.NotNull;
public class DiagnosticFactory0<E> {
@NotNull
public SimpleDiagnostic<E> on(@NotNull E element) {
return new SimpleDiagnostic<E>(element);
}
}
// FILE: test.kt
class SimpleDiagnostic<E>(val element... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 516 | kotlin | Apache License 2.0 |
shared/src/commonTest/kotlin/com/mr3y/ludi/shared/core/network/datasources/internal/RAWGMockResponses.kt | mr3y-the-programmer | 606,875,717 | false | null | package com.mr3y.ludi.shared.core.network.datasources.internal
import com.mr3y.ludi.shared.core.network.model.DetailedRAWGPlatformInfo
import com.mr3y.ludi.shared.core.network.model.RAWGGameGenre
import com.mr3y.ludi.shared.core.network.model.RAWGGameScreenshot
import com.mr3y.ludi.shared.core.network.model.RAWGGameTa... | 8 | null | 0 | 9 | c34f17c014f7ef050834a18b6854d67485b6bd83 | 270,820 | Ludi | Apache License 2.0 |
Corona-Warn-App/src/test/java/de/rki/coronawarnapp/appconfig/sources/fallback/DefaultAppConfigTest.kt | corona-warn-app | 268,027,139 | false | null | package de.rki.coronawarnapp.appconfig.sources.fallback
import android.content.Context
import android.os.Build
import androidx.test.core.app.ApplicationProvider
import com.google.protobuf.UnknownFieldSetLite
import de.rki.coronawarnapp.server.protocols.internal.v2.AppConfigAndroid
import de.rki.coronawarnapp.util.Hash... | 6 | null | 8 | 2,495 | d3833a212bd4c84e38a1fad23b282836d70ab8d5 | 2,132 | cwa-app-android | Apache License 2.0 |
aws-runtime/aws-http/common/test/aws/sdk/kotlin/runtime/http/operation/CustomUserAgentMetadataTest.kt | awslabs | 121,333,316 | false | {"Kotlin": 1076968, "Smithy": 8546, "TypeScript": 1488, "JavaScript": 1134, "Dockerfile": 391} | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package aws.sdk.kotlin.runtime.http.operation
import aws.sdk.kotlin.runtime.http.ApiMetadata
import aws.sdk.kotlin.runtime.http.loadAwsUserAgentMetadataFromEnvironment
import aws.smithy.kotlin.runtime.u... | 92 | Kotlin | 49 | 407 | 287408211f193624d37678d66b0f31f457017d08 | 2,555 | aws-sdk-kotlin | Apache License 2.0 |
data/src/main/java/com/apiguave/tinderclonedata/match/MatchRemoteDataSource.kt | alejandro-piguave | 567,907,964 | false | {"Kotlin": 191481} | package com.apiguave.tinderclonedata.match
import com.apiguave.tinderclonedata.api.match.FirestoreMatch
import com.apiguave.tinderclonedata.api.match.MatchApi
import com.apiguave.tinderclonedata.api.picture.PictureApi
import com.apiguave.tinderclonedata.api.user.UserApi
import com.apiguave.tinderclonedata.api.auth.exc... | 1 | Kotlin | 9 | 35 | 47d3825d3a446f121b30142a764a9b034f0c953e | 1,705 | TinderCloneCompose | MIT License |
ktor-banner-sample/src/main/kotlin/team/yi/ktor/sample/Main2.kt | ymind | 351,300,926 | false | null | package team.yi.ktor.sample
import io.ktor.application.*
import io.ktor.response.*
import io.ktor.routing.*
import io.ktor.server.engine.*
import io.ktor.server.netty.*
import team.yi.kfiglet.FigFont
import team.yi.ktor.features.banner
fun main2() {
embeddedServer(Netty, port = 8000) {
banner {
... | 0 | Kotlin | 0 | 1 | fab4dfa5591a766cdae63de0c349a1935bdede2a | 1,354 | ktor-banner | MIT License |
data/src/main/java/com/grekov/translate/data/mapper/LangApiToLangMapper.kt | sgrekov | 111,900,693 | false | null | package com.grekov.translate.data.mapper
import com.grekov.translate.data.model.cloud.LangRespone
import com.grekov.translate.domain.model.Lang
import com.grekov.translate.domain.utils.BaseDataMapper
import java.util.*
import javax.inject.Inject
class LangApiToLangMapper @Inject
constructor()//constructor for injecti... | 0 | Kotlin | 4 | 22 | 24a1a1955ca901d4bf5ff08ff2f8e3eb2719c825 | 634 | Translater | Apache License 2.0 |
src/main/kotlin/org/jooq/impl/tools.kt | sungmin-park | 39,015,495 | false | null | package org.jooq.impl
import org.jooq.DSLContext
import org.jooq.Select
object tools {
fun dslContext(select: Select<*>): DSLContext {
val configuration = ((select as AbstractDelegatingQuery<*>).delegate as AbstractQuery).configuration()
return DSL.using(configuration)
}
}
fun Select<*>.dslCo... | 0 | Kotlin | 0 | 0 | 7c339db7392ba925991aabb55bd3645c23a30d80 | 365 | jOOQ-tools | MIT License |
app/shared/auth/impl/src/commonMain/kotlin/build/wallet/auth/AccountAuthenticatorImpl.kt | proto-at-block | 761,306,853 | false | null | package build.wallet.auth
import build.wallet.auth.AccountAuthenticator.AuthData
import build.wallet.bitkey.app.AppAuthKey
import build.wallet.bitkey.f8e.FullAccountId
import build.wallet.crypto.PublicKey
import build.wallet.f8e.F8eEnvironment
import build.wallet.f8e.auth.AuthenticationService
import build.wallet.ktor... | 0 | null | 6 | 98 | 1f9f2298919dac77e6791aa3f1dbfd67efe7f83c | 2,893 | bitkey | MIT License |
waltid-libraries/crypto/waltid-target-ios/src/iosMain/kotlin/id/walt/target/ios/keys/RSA.kt | walt-id | 701,058,624 | false | {"Kotlin": 3448224, "Vue": 474904, "TypeScript": 129086, "Swift": 40383, "JavaScript": 18819, "Ruby": 15159, "Dockerfile": 13118, "Python": 3114, "Shell": 1783, "Objective-C": 388, "CSS": 345, "C": 104} | package id.walt.target.ios.keys
import id.walt.platform.utils.ios.DS_Operations
import id.walt.platform.utils.ios.RSAKeyUtils
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.JsonElement
import kotlinx.serialization.json.JsonObject
import kotlinx.serial... | 20 | Kotlin | 46 | 121 | 48c6b8cfef532e7e837db0bdb39ba64def985568 | 5,284 | waltid-identity | Apache License 2.0 |
core/jvmTest/src/kotlinx/serialization/SerializationMethodInvocationOrderTest.kt | Kotlin | 97,827,246 | false | null | /*
* Copyright 2017-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.serialization
import org.junit.*
// Serializable data class
@Serializable
data class Container(val data: Data)
class SerializationMethodInvocationOrderTest {
@Test
fun testRec() {
... | 407 | null | 621 | 5,396 | d4d066d72a9f92f06c640be5a36a22f75d0d7659 | 5,098 | kotlinx.serialization | Apache License 2.0 |
spigot-core/src/main/kotlin/ru/astrainteractive/astralibs/utils/Permission.kt | Astra-Interactive | 422,588,271 | false | null | package ru.astrainteractive.astrashop.utils
import org.bukkit.command.CommandSender
import org.bukkit.entity.Player
interface IPermission {
val value: String
fun hasPermission(player: CommandSender) = player.hasPermission(value)
/**
* If has astra_template.damage.2 => returns 2
*/
fun permi... | 1 | null | 0 | 2 | edf18911e3b12c84975c8287e4f3eecba9396d04 | 512 | AstraLibs | MIT License |
player/app/src/main/java/uk/co/bbc/perceptivepodcasts/useractivity/UserActivityManager.kt | bbc | 532,884,049 | false | {"JavaScript": 1574746, "HTML": 501243, "Kotlin": 233361, "CSS": 8526, "Java": 797} | package uk.co.bbc.perceptivepodcasts.useractivity
import android.annotation.SuppressLint
import android.app.PendingIntent
import android.app.PendingIntent.FLAG_MUTABLE
import android.app.PendingIntent.FLAG_UPDATE_CURRENT
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Int... | 6 | JavaScript | 0 | 19 | 4f710ad459cc8dd23f2a5e702fdc6c340892a967 | 5,694 | adaptivepodcasting | Apache License 2.0 |
scientific/src/commonMain/kotlin/converter/areaDensity/convertToDensity.kt | splendo | 191,371,940 | false | null | /*
Copyright 2021 Splendo Consulting B.V. The Netherlands
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appli... | 91 | null | 7 | 93 | cd0f3a583efb69464aa020d206f598c6d15a0899 | 3,156 | kaluga | Apache License 2.0 |
components/discovery/src/main/kotlin/io/barinek/continuum/discovery/InstanceRecord.kt | initialcapacity | 130,564,725 | false | {"Kotlin": 97259} | package io.barinek.continuum.discovery
data class InstanceRecord(val appId: String, val url: String) | 0 | Kotlin | 40 | 86 | c895096890c251b75d6f6f369890c89aaca83791 | 101 | application-continuum | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.