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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/kotlin/net/primal/android/note/reactions/ReactionsScreen.kt | PrimalHQ | 639,579,258 | false | {"Kotlin": 2548226} | package net.primal.android.note.reactions
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lay... | 56 | Kotlin | 12 | 98 | 438072af7f67762c71c5dceffa0c83dedd8e2e85 | 5,687 | primal-android-app | MIT License |
kotest-assertions/src/commonMain/kotlin/io/kotest/properties/gens.kt | niraj8 | 268,596,932 | false | null | package io.kotest.properties
import io.kotest.properties.shrinking.ChooseShrinker
import io.kotest.properties.shrinking.DoubleShrinker
import io.kotest.properties.shrinking.FloatShrinker
import io.kotest.properties.shrinking.IntShrinker
import io.kotest.properties.shrinking.ListShrinker
import io.kotest.properties.shr... | 1 | null | 1 | 1 | e176cc3e14364d74ee593533b50eb9b08df1f5d1 | 29,447 | kotlintest | Apache License 2.0 |
src/main/kotlin/gdx/liftoff/views/widgets/ScrollableTextArea.kt | libgdx | 188,758,773 | false | null | package com.github.czyzby.setup.views.widgets
import com.github.czyzby.kiwi.util.common.Strings
import com.github.czyzby.lml.parser.LmlParser
import com.github.czyzby.lml.parser.impl.tag.builder.TextLmlActorBuilder
import com.github.czyzby.lml.parser.tag.LmlTag
import com.github.czyzby.lml.parser.tag.LmlTagProvider
im... | 8 | null | 50 | 534 | 7f172c9953acd8e6bf967310e2c2121baa7e9a22 | 2,097 | gdx-liftoff | Apache License 2.0 |
app/src/main/java/site/panda2134/thssforum/models/User.kt | panda2134-thss-android-team | 488,254,653 | false | null | /**
* THSSForum
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not e... | 0 | Kotlin | 0 | 2 | a5c527b0073158a38ee658842dc2a759bb499268 | 927 | thss-forum-android | MIT License |
app/src/main/java/com/example/yumyum/ui/secondactivity/mealdetailsscreen/ingredientsfragment/IngredientsAdapter.kt | RanaAnwar1 | 843,824,099 | false | {"Kotlin": 106708} | package com.example.yumyum.ui.secondactivity.mealdetailsscreen.ingredientsfragment
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.example.yumyum.R
import com.exa... | 0 | Kotlin | 0 | 0 | 02c22a19e2bf918cb0d4226dbaed5dd7fbc41285 | 1,443 | YumYum | MIT License |
verik-compiler/src/test/kotlin/io/verik/compiler/check/post/StatementCheckerStageTest.kt | frwang96 | 269,980,078 | false | null | /*
* Copyright (c) 2021 Francis Wang
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 0 | null | 1 | 7 | a40d6195f3b57bebac813b3e5be59d17183433c7 | 1,045 | verik | Apache License 2.0 |
backend/src/main/kotlin/hotel/minimal/backend/dtos/DeleteDto.kt | IIPEKOLICT | 521,438,023 | false | null | package hotel.minimal.backend.dtos
data class DeleteDto(val id: Int = -1) | 0 | Kotlin | 0 | 0 | a24df5667b13b3274ed9cbbb5c7d06f5494e41f1 | 74 | hotel-minimal | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsaccreditedprogrammesapi/unit/restapi/controller/ReferralsControllerTest.kt | ministryofjustice | 615,402,552 | false | {"Kotlin": 501733, "Shell": 9504, "Dockerfile": 1415} | package uk.gov.justice.digital.hmpps.hmppsaccreditedprogrammesapi.unit.restapi.controller
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.ninjasquad.springmockk.MockkBean
import io.kotest.matchers.shouldBe
import io.mockk.Runs
import io.mockk.every
import io.mockk.just
import io.mockk.verify
... | 3 | Kotlin | 0 | 0 | eef3131ddcb2d222af9974cb0b93ddc4f4ce3a64 | 12,471 | hmpps-accredited-programmes-api | MIT License |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/quicksight/CfnDashboardRadarChartFieldWellsPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 70198112} | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package io.cloudshiftdev.awscdkdsl.services.quicksight
import io.cloudshiftdev.awscdkdsl.common.CdkDs... | 0 | Kotlin | 0 | 3 | 256ad92aebe2bcf9a4160089a02c76809dbbedba | 1,585 | awscdk-dsl-kotlin | Apache License 2.0 |
sdk/backend/src/main/kotlin/com/supertokens/sdk/recipes/emailpassword/requests/CreateResetPasswordTokenRequest.kt | Appstractive | 656,572,792 | false | null | package com.supertokens.sdk.recipes.emailpassword.requests
import kotlinx.serialization.Serializable
@Serializable
data class CreateResetPasswordTokenRequest(
val userId: String,
val email: String,
)
| 5 | null | 1 | 3 | e4d0ff3664034d1c4981a0a2cdf58c3a053da2a7 | 210 | supertokens-kt | Apache License 2.0 |
app/src/main/java/eu/kanade/tachiyomi/source/online/AnimeSource.kt | az4521 | 176,152,541 | true | {"Kotlin": 2483150} | package eu.kanade.tachiyomi.source.online
/**
* A source that will return anime instead of manga.
* Chapters are episodes, pages are videos, page numbers are video quality
* The rest works the same as a standard HttpSource
*/
interface AnimeSource
| 22 | Kotlin | 18 | 471 | a72df3df5073300e02054ee75dc990d196cd6db8 | 253 | TachiyomiAZ | Apache License 2.0 |
subprojects/library/src/commonMain/kotlin/kotools/types/text/NotBlankString.kt | kotools | 581,475,148 | false | null | package kotools.types.text
import kotlinx.serialization.DeserializationStrategy
import kotlinx.serialization.KSerializer
import kotlinx.serialization.Serializable
import kotlinx.serialization.descriptors.PrimitiveKind
import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor
import kotlinx.serialization.descr... | 51 | null | 6 | 90 | 80422a2af60d0aa24f9d86e859f985678bad52b8 | 7,729 | types | MIT License |
zoe-cli/src/commands/schemas.kt | adevinta | 243,047,314 | false | null | // Copyright (c) 2020 Adevinta.
//
// 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, modify, merge, publish, distribute, ... | 9 | Kotlin | 21 | 273 | d8ade76e2a74d96b97a8a08d82d27407539f1ff4 | 7,462 | zoe | MIT License |
feature/home/src/main/kotlin/com/stepmate/home/screen/homeSetting/HomeSettingScreen.kt | step-Mate | 738,437,093 | false | {"Kotlin": 738811} | package com.stepmate.home.screen.homeSetting
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.c... | 3 | Kotlin | 0 | 0 | f5e6f25014466d6a884ac3316ee7c556ca58c8f1 | 5,165 | Android | Apache License 2.0 |
navigation/src/main/java/com/parimatch/navigation/screen/Screen.kt | parimatch-tech | 509,548,833 | false | null | package com.parimatch.navigation.screen
import com.parimatch.navigation.receiver.Target
import com.parimatch.navigation.reflection.Form
import com.parimatch.navigation.reflection.StateBundler
import kotlinx.coroutines.flow.StateFlow
import java.util.UUID
/**
* Reflection constructor in [StateBundler].
*/
internal d... | 0 | Kotlin | 0 | 0 | a074b34e86a18884982b515d228faa26d04e2f21 | 1,278 | priroda | Apache License 2.0 |
SingleModuleApp/app/src/main/java/com/github/yamamotoj/singlemoduleapp/package01/Foo00145.kt | yamamotoj | 163,851,411 | false | {"Text": 1, "Ignore List": 30, "Markdown": 1, "Gradle": 34, "Java Properties": 11, "Shell": 6, "Batchfile": 6, "Proguard": 22, "Kotlin": 36021, "XML": 93, "INI": 1, "Java": 32, "Python": 2} | package com.github.yamamotoj.singlemoduleapp.package01
class Foo00145 {
fun method0() {
Foo00144().method5()
}
fun method1() {
method0()
}
fun method2() {
method1()
}
fun method3() {
method2()
}
fun method4() {
method3()
}
fun met... | 0 | Kotlin | 0 | 9 | 2a771697dfebca9201f6df5ef8441578b5102641 | 355 | android_multi_module_experiment | Apache License 2.0 |
app/src/main/java/com/peteralexbizjak/europaopen/models/statistics/Domain.kt | sunderee | 375,731,952 | false | null | package com.peteralexbizjak.europaopen.models.statistics
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class Domain(
val id: Int,
val title: String,
val indicators: List<Indicator>
) : Parcelable | 0 | Kotlin | 0 | 2 | 968705e28f1a5ae012338452d8100f364e886a20 | 243 | EuropaOpen | MIT License |
libraries/architecture/src/main/kotlin/io/element/android/libraries/architecture/AsyncAction.kt | element-hq | 546,522,002 | false | {"Kotlin": 8692554, "Python": 57175, "Shell": 39911, "JavaScript": 20399, "Java": 9607, "HTML": 9416, "CSS": 2519, "Ruby": 44} | /*
* Copyright (c) 2023 New Vector Ltd
*
* 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 agr... | 263 | Kotlin | 86 | 955 | 31d0621fa15fe153bfd36104e560c9703eabe917 | 4,737 | element-x-android | Apache License 2.0 |
Barlom-Foundation-JVM/src/main/kotlin/i/barlom/infrastructure/codegen/blocks/NewLineSeparatedCodeBlock.kt | martin-nordberg | 82,682,055 | false | null | //
// (C) Copyright 2019 <NAME>
// Apache 2.0 License
//
package i.barlom.infrastructure.codegen.blocks
import i.barlom.infrastructure.codegen.chunks.ICodeChunk
//---------------------------------------------------------------------------------------------------------------------
internal class NewLineSeparatedCod... | 0 | Kotlin | 0 | 0 | 337b46f01f6eec6dfb3b86824c26f1c103e9d9a2 | 723 | ZZ-Barlom | Apache License 2.0 |
resource-kotlin-mpp/src/main/java/ru/pocketbyte/locolaser/kotlinmpp/KotlinMultiplatformResourcesConfigBuilder.kt | PocketByte | 79,646,282 | false | null | package ru.pocketbyte.locolaser.kotlinmpp
import ru.pocketbyte.locolaser.config.resources.BaseResourcesConfig
import ru.pocketbyte.locolaser.config.resources.ResourcesConfig
import ru.pocketbyte.locolaser.config.resources.ResourcesSetConfig
import java.io.File
class KotlinMultiplatformResourcesConfigBuilder {
op... | 5 | Kotlin | 1 | 27 | 502dc5c55430cc057b58dae542669169ef3ee100 | 6,683 | LocoLaser | Apache License 2.0 |
resource-kotlin-mpp/src/main/java/ru/pocketbyte/locolaser/kotlinmpp/KotlinMultiplatformResourcesConfigBuilder.kt | PocketByte | 79,646,282 | false | null | package ru.pocketbyte.locolaser.kotlinmpp
import ru.pocketbyte.locolaser.config.resources.BaseResourcesConfig
import ru.pocketbyte.locolaser.config.resources.ResourcesConfig
import ru.pocketbyte.locolaser.config.resources.ResourcesSetConfig
import java.io.File
class KotlinMultiplatformResourcesConfigBuilder {
op... | 5 | Kotlin | 1 | 27 | 502dc5c55430cc057b58dae542669169ef3ee100 | 6,683 | LocoLaser | Apache License 2.0 |
app/src/main/java/com/atarious/map_location/Data/viewModels/CityViewModel.kt | AbdullahRamees | 479,697,389 | false | {"Kotlin": 28359} | package com.atarious.map_location.Data.viewModels
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.viewModelScope
import com.atarious.map_location.Data.Repositories.CityRepository
import com.atarious.map_location.Data.database.LocalD... | 0 | Kotlin | 0 | 0 | 1b773946c93e36cc08dc9b74045fb5481ca1a059 | 1,460 | Map_Location | MIT License |
domain/src/main/java/com/oguzdogdu/domain/usecase/home/GetPopularAndLatestUseCase.kt | oguzsout | 616,912,430 | false | {"Kotlin": 469164} | package com.oguzdogdu.domain.usecase.home
import com.oguzdogdu.domain.model.home.HomeListItems
import com.oguzdogdu.domain.wrapper.Resource
import kotlinx.coroutines.flow.Flow
interface GetPopularAndLatestUseCase {
suspend operator fun invoke(type:String?): Flow<Resource<List<HomeListItems>?>>
} | 0 | Kotlin | 0 | 8 | 12d75ef6f5e4c0a8121b6ad9c880723f14c93b1e | 301 | Wallies | MIT License |
platform/platform-impl/src/com/intellij/ui/list/targetPopup.kt | ingokegel | 72,937,917 | 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.
@file:JvmName("TargetPopup")
package com.intellij.ui.list
import com.intellij.ide.ui.UISettings
import com.intellij.navigation.TargetPresentation
import com.in... | 284 | null | 5162 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 2,581 | intellij-community | Apache License 2.0 |
strikt-core/src/main/kotlin/strikt/assertions/Arrays.kt | robfletcher | 131,475,396 | false | null | package strikt.assertions
import strikt.api.Assertion
/**
* Asserts that the subject's content is equal to that of [other] according to
* [Array.contentEquals].
*/
infix fun <T> Assertion.Builder<Array<out T>>.contentEquals(other: Array<out T>): Assertion.Builder<Array<out T>> =
assertThat("array content equals ... | 30 | Kotlin | 45 | 408 | 0489303377a4bb0b2c3e21f9f0d1fbe7a9655e8e | 5,094 | strikt | Apache License 2.0 |
app/src/main/java/io/github/droidkaigi/confsched2018/di/RecycledViewPoolModule.kt | DroidKaigi | 115,203,383 | false | null | package io.github.droidkaigi.confsched2018.di
import android.support.v7.widget.RecyclerView
import dagger.Module
import dagger.Provides
// Share RecycledViewPool between content fragments of ViewPager.
@Module class RecycledViewPoolModule {
private val recycledViewPool = RecyclerView.RecycledViewPool()
@Pro... | 30 | null | 337 | 1,340 | f19dd63f8b691d44ba7f758d92c2ca615cdad08d | 413 | conference-app-2018 | Apache License 2.0 |
mulighetsrommet-api/src/test/kotlin/no/nav/mulighetsrommet/api/repositories/TiltakstypeRepositoryTest.kt | navikt | 435,813,834 | false | null | package no.nav.mulighetsrommet.api.repositories
import io.kotest.core.spec.style.FunSpec
import io.kotest.core.test.TestCaseOrder
import io.kotest.matchers.collections.shouldHaveSize
import io.kotest.matchers.shouldBe
import no.nav.mulighetsrommet.api.utils.*
import no.nav.mulighetsrommet.database.kotest.extensions.Fl... | 1 | Kotlin | 1 | 3 | 4a9e295dcd541c61b6e31e92757a2f958c9b351b | 7,890 | mulighetsrommet | MIT License |
openrndr-core/src/main/kotlin/org/openrndr/internal/Driver.kt | xabbu137 | 221,031,198 | true | {"Kotlin": 780792, "Java": 570908, "GLSL": 38491, "ANTLR": 9333, "CSS": 4374, "Shell": 1474} | package org.openrndr.internal
import org.openrndr.color.ColorRGBa
import org.openrndr.draw.*
import java.nio.Buffer
/**
* built-in shader generators
*/
interface ShaderGenerators {
fun vertexBufferFragmentShader(shadeStructure: ShadeStructure): String
fun vertexBufferVertexShader(shadeStructure: ShadeStruc... | 0 | Kotlin | 0 | 0 | fa9dbb6aae158da69acd1f1dcd79271184aa0973 | 4,556 | openrndr | BSD 2-Clause FreeBSD License |
app/src/main/java/cn/nekocode/murmur/ui/MainActivity.kt | achillh | 76,178,569 | true | {"Kotlin": 45109, "Java": 11465, "GLSL": 1040} | package cn.nekocode.murmur.ui
import android.content.Context
import android.os.Bundle
import android.os.PersistableBundle
import cn.nekocode.kotgo.component.ui.FragmentActivity
import cn.nekocode.murmur.ui.main.MainFragment
import uk.co.chrisjenx.calligraphy.CalligraphyContextWrapper
/**
* @author nekocode (<EMAIL>)... | 0 | Kotlin | 0 | 0 | b1267dcdc0853261efbd2c0e1cf63ac914d3e3f2 | 808 | murmur | Apache License 2.0 |
Halachic Times/app/src/androidTest/java/com/github/times/ZmanimTests.kt | pnemonic78 | 121,489,129 | false | {"Kotlin": 916005, "Java": 140420, "HTML": 5998, "Shell": 73} | package com.github.times
import android.content.Context
import androidx.test.core.app.ApplicationProvider
import com.github.times.preference.SimpleZmanimPreferences
import com.github.times.preference.ZmanimPreferences
import java.util.Calendar
import java.util.TimeZone
import org.junit.Assert.assertEquals
import org.j... | 43 | Kotlin | 2 | 9 | 7fdabe5aea2a2002b9aff8ba6e89ba7223278f7f | 3,790 | HalachicTimes | Apache License 2.0 |
mocker-core/src/commonMain/kotlin/fr/speekha/httpmocker/scenario/DynamicMockProvider.kt | speekha | 190,229,886 | false | {"Gradle": 20, "YAML": 2, "Shell": 5, "Batchfile": 4, "Java Properties": 13, "Ignore List": 1, "EditorConfig": 1, "Text": 6, "Markdown": 3, "Kotlin": 176, "Proguard": 1, "JSON": 30, "XML": 36, "Java": 1} | /*
* Copyright 2019-2020 David Blanc
*
* 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 | 1 | 1 | bb4f8ea57f40fd149171632e86b63e2304d60402 | 1,124 | httpmocker | Apache License 2.0 |
src/nl/hannahsten/texifyidea/run/sumatra/SumatraForwardSearchListener.kt | Hannah-Sten | 62,398,769 | false | {"Kotlin": 2697096, "TeX": 71181, "Lex": 31225, "HTML": 23552, "Python": 967, "Perl": 39} | package nl.hannahsten.texifyidea.run.sumatra
import com.intellij.execution.process.ProcessEvent
import com.intellij.execution.process.ProcessListener
import com.intellij.execution.runners.ExecutionEnvironment
import com.intellij.openapi.application.invokeLater
import com.intellij.openapi.util.Key
import nl.hannahsten.... | 99 | Kotlin | 87 | 891 | 986550410e2fea91d1e93abfc683db1c8527c9d9 | 3,430 | TeXiFy-IDEA | MIT License |
compiler/testData/diagnostics/tests/multiplatform/arrayLimitationsInJvm.ll.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... | // LANGUAGE: +NullableNothingInReifiedPosition
// MODULE: m1-common
// FILE: common.kt
fun foo(): Array<Nothing?> = arrayOf(null, null)
fun <T : Array<*>> bar(arg: T) {}
// MODULE: m2-jvm()()(m1-common)
fun test() {
val res = <!UNSUPPORTED!>foo<!>()
<!UNSUPPORTED!>bar<!>(<!UNSUPPORTED!>res<!>)
}
| 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 309 | kotlin | Apache License 2.0 |
app/src/main/java/io/horizontalsystems/bankwallet/modules/evmnetwork/addrpc/AddRpcModule.kt | horizontalsystems | 142,825,178 | false | null | package com.wikicious.app.modules.evmnetwork
import android.os.Bundle
import androidx.core.os.bundleOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.wikicious.app.core.App
import io.horizontalsystems.core.parcelable
import io.horizontalsystems.marketkit.models.Blockchain
o... | 57 | null | 340 | 778 | 454cb88a3f4687d77ffc3d2d878462f23b4b9dab | 810 | unstoppable-wallet-android | MIT License |
mobile/src/main/java/com/siliconlabs/bledemo/home_screen/base/BaseServiceDependentMainMenuFragment.kt | SiliconLabs | 85,345,875 | false | null | package com.siliconlabs.bledemo.home_screen.base
import android.os.Build
import android.os.Bundle
import android.view.View
import android.widget.Toast
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProvider
import com.siliconlabs.bledemo.home_screen.viewmodels.MainActivityViewModel
import com.si... | 7 | Kotlin | 70 | 96 | 2d3bc7b9fe358bc2f8b988479acfd8fc40794101 | 3,756 | EFRConnect-android | Apache License 2.0 |
data/src/main/kotlin/io/petros/github/data/network/rest/response/repository/RepoDetails.kt | ParaskP7 | 140,927,471 | false | {"Kotlin": 118109} | package io.petros.github.data.network.rest.response.repository
data class RepoDetails(
val id: Int,
val subscribers_count: Int
)
| 0 | Kotlin | 1 | 9 | ad9c53165db32af9ca08e4ae3ca4ea9b30e24d2e | 138 | sample-code-github | Apache License 2.0 |
thisboot/src/main/kotlin/com/brageast/blog/thisboot/service/ArticleService.kt | chenmoand | 208,778,754 | false | {"TypeScript": 45692, "Kotlin": 35290, "JavaScript": 15070, "Less": 11069, "HTML": 8617, "Java": 149} | package com.brageast.blog.thisboot.service
import com.brageast.blog.thisboot.entity.Article
import org.bson.types.ObjectId
import org.springframework.stereotype.Service
import reactor.core.publisher.Flux
import reactor.core.publisher.Mono
interface ArticleService {
fun insert(article: Article): Mono<Article>
... | 9 | TypeScript | 1 | 2 | 0819b24e15843546d0b2d338ad5673b3901dfd4d | 636 | thisme | MIT License |
src/main/kotlin/io/github/sergkhram/idbClient/requests/settings/RevokeRequest.kt | SergKhram | 524,131,579 | false | null | package io.github.sergkhram.idbClient.requests.settings
import idb.RevokeResponse
import io.github.sergkhram.idbClient.entities.GrpcClient
import io.github.sergkhram.idbClient.entities.requestsBody.settings.Permission
import io.github.sergkhram.idbClient.requests.IdbRequest
class RevokeRequest(
private val bundle... | 0 | Kotlin | 0 | 5 | 355102d6c7220f484210938772b2e84daa58ab36 | 727 | IdbClient | Apache License 2.0 |
software-design/assertions/src/test/kotlin/com/github/nothingelsematters/lrucache/LinkedHashMapLruCache.kt | nothingelsematters | 135,926,684 | false | null | package com.github.nothingelsematters.lrucache
import java.util.LinkedHashMap
private const val loadFactor = 0.75f
private const val accessOrder = true
class LinkedHashMapLruCache<K, V>(val capacity: Int = 256) :
LinkedHashMap<K, V>(capacity, loadFactor, accessOrder), Cache<K, V> {
override fun set(key: K, ... | 1 | null | 3 | 5 | d442a3d25b579b96c6abda13ed3f7e60d1747b53 | 458 | university | Do What The F*ck You Want To Public License |
solid-material-api/src/main/kotlin/io/github/solid/resourcepack/material/SolidEntityMaterialTexture.kt | solid-resourcepack | 838,892,385 | false | {"Kotlin": 722691} | package io.github.solid.resourcepack.material
import kotlin.Lazy
import net.kyori.adventure.key.Key
public enum class SolidEntityMaterialTexture(
public val key: Lazy<Key>,
) {
WIND(lazy { Key.key("minecraft:entity/conduit/wind") }),
WIND_VERTICAL(lazy { Key.key("minecraft:entity/conduit/wind_vertical") }),
B... | 0 | Kotlin | 0 | 1 | cd816d69c12c7aff75064dc380e07005d7fd8ad0 | 29,196 | solid-material | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/quickfix/when/addRemainingBranchesEnumBackTicks.kt | ingokegel | 72,937,917 | false | null | // "Add remaining branches" "true"
// WITH_STDLIB
enum class FooEnum {
A, B, `C`, `true`, `false`, `null`
}
fun test(foo: FooEnum?) = <caret>when (foo) {
FooEnum.A -> "A"
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddWhenRemainingBranchesFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.... | 284 | null | 5162 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 408 | intellij-community | Apache License 2.0 |
plugin-animation/src/test/java/com/mapbox/maps/plugin/animation/CameraAnimatorsFactoryTest.kt | mapbox | 330,365,289 | false | null | package com.mapbox.maps.plugin.animation
import android.view.animation.DecelerateInterpolator
import com.mapbox.geojson.Point
import com.mapbox.maps.*
import com.mapbox.maps.plugin.animation.animator.CameraAnimator
import com.mapbox.maps.plugin.delegates.MapCameraManagerDelegate
import com.mapbox.maps.plugin.delegates... | 216 | null | 126 | 434 | 7faf620b4694bd50f4b4399abcf6eca29e3173ba | 5,973 | mapbox-maps-android | Apache License 2.0 |
flowable-xml-parser/src/test/kotlin/com/valb3r/bpmn/intellij/plugin/flowable/parser/customservicetasks/FlowableShellTaskTest.kt | valb3r | 261,109,342 | false | null | package com.valb3r.bpmn.intellij.plugin.flowable.parser.customservicetasks
import com.valb3r.bpmn.intellij.plugin.bpmn.api.BpmnProcessObject
import com.valb3r.bpmn.intellij.plugin.bpmn.api.bpmn.BpmnElementId
import com.valb3r.bpmn.intellij.plugin.bpmn.api.bpmn.elements.tasks.BpmnShellTask
import com.valb3r.bpmn.intell... | 76 | Kotlin | 20 | 81 | 760efb3d7e48970545d0d7622687d67c2b9b9693 | 7,468 | flowable-bpmn-intellij-plugin | MIT License |
src/test/kotlin/kotlinx/io/tests/BytePacketBuildTestPooled.kt | icerockdev | 152,649,269 | true | {"Kotlin": 724251} | package kotlinx.io.tests
import kotlinx.io.core.*
class BytePacketBuildTestPooled : BytePacketBuildTest() {
override val pool = VerifyingObjectPool(IoBuffer.Pool)
}
| 0 | Kotlin | 0 | 0 | 1e877d31bfc51f16485de00df8fc166b39ca7ef9 | 171 | kotlinx-io | Apache License 2.0 |
app/src/main/java/com/smart4apps/supportArTask/data/room/ArticlesDatabase.kt | alimahmoud0096 | 787,050,719 | false | {"Kotlin": 34928} | package com.smart4apps.supportArTask.data.room
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.smart4apps.supportArTask.data.model.Article
import com.smart4apps.supportArTask.utils.Converters
@Database(entities = [Article::class], version = 1)
@TypeConver... | 0 | Kotlin | 0 | 0 | 8102a042b0dde26c367e21d382ce51e3a270ca34 | 442 | supportArTask | Apache License 2.0 |
src/main/kotlin/felis/transformer/LazyTransformation.kt | Felis-Project | 774,006,760 | false | {"Kotlin": 104118} | package felis.transformer
import felis.language.LanguageAdapter
import felis.meta.TransformationMetadata
class LazyTransformation(val source: TransformationMetadata, private val languageAdapter: LanguageAdapter) :
Transformation {
val t by lazy {
this.languageAdapter.createInstance(this.source.specifi... | 1 | Kotlin | 1 | 2 | ea2520653dabeaf4a847b98af7e62bee7e845609 | 696 | felis | MIT License |
src/main/java/osgi2gradle/projectsgradle/SourceSetsDeclarator.kt | aBothe | 245,868,074 | false | null | package osgi2gradle.projectsgradle
import osgi2gradle.EclipseBundleGradleProject
import java.io.FileInputStream
import java.io.OutputStreamWriter
import java.util.*
import java.util.stream.Collectors
fun EclipseBundleGradleProject.declareProjectSourceSets(projectsGradleWriter: OutputStreamWriter) {
if (bundleProp... | 0 | Kotlin | 0 | 0 | 89dcb27468ee3893edfb3d33d10cce2f5490549b | 1,256 | osgi2gradle | MIT License |
braintrust-java-core/src/main/kotlin/com/braintrustdata/api/services/blocking/project/LogServiceImpl.kt | braintrustdata | 752,086,100 | false | {"Kotlin": 3335628, "Shell": 3637, "Dockerfile": 366} | // File generated from our OpenAPI spec by Stainless.
package com.braintrustdata.api.services.async.project
import com.braintrustdata.api.core.ClientOptions
import com.braintrustdata.api.core.RequestOptions
import com.braintrustdata.api.core.http.HttpMethod
import com.braintrustdata.api.core.http.HttpRequest
import c... | 1 | Kotlin | 0 | 2 | 0e44c52f0b48ed75bf866931b75155a9f7fdbd00 | 6,062 | braintrust-java | Apache License 2.0 |
app/src/main/java/com/fitless/fitnessX/application/MainApp.kt | SultanS1 | 767,628,796 | false | {"Kotlin": 45701} | package com.fitless.fitnessX.application
import android.app.Application
import com.fitless.authorization.di.authModule
import com.fitless.fitnessX.di.appModule
import com.fitless.onboarding.di.onboardingModule
import com.github.terrakok.cicerone.Cicerone
import org.koin.android.ext.koin.androidContext
import org.koin.... | 0 | Kotlin | 0 | 0 | 993664c77ae8b2328988733169c8d05badccd26d | 995 | FitnesX | MIT License |
android/src/androidTest/java/io/github/tonnyl/moka/migration/AllMigrationsTest.kt | ETSEmpiricalStudyKotlinAndroidApps | 496,360,843 | false | {"Kotlin": 1391177, "Swift": 100384, "CSS": 30407, "JavaScript": 13933, "Shell": 2990} | package io.github.tonnyl.moka.migration
import androidx.room.Room
import androidx.room.testing.MigrationTestHelper
import androidx.sqlite.db.framework.FrameworkSQLiteOpenHelperFactory
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import io.tonnyl.moka.co... | 0 | null | 0 | 0 | 34db6153b274028158de1ee08f080b1a8f985325 | 1,490 | Moka | MIT License |
app/src/main/java/com/example/waterme/MainActivity.kt | yonatanBtl | 776,541,220 | false | {"Kotlin": 18256} | package com.example.waterme
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.ui.Modifier... | 0 | Kotlin | 0 | 0 | 8b4ce62f392d820af8f55585cd4b325af768e706 | 934 | WaterMe_UNIDAD_07 | Apache License 2.0 |
src/main/java/com/cocktailsguru/app/user/domain/User.kt | CocktailsGuru | 103,529,993 | false | null | package com.cocktailsguru.app.user.domain
import java.time.LocalDateTime
import javax.persistence.*
@Entity
@Table(name = "coctail_user")
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name = "registrationType")
abstract class User(
@Id
@GeneratedValue(strategy = Generation... | 0 | Kotlin | 0 | 1 | f0a447975dedb7f54bd64dba1dce10fefeda64ce | 1,136 | server | MIT License |
src/main/kotlin/org/example/simpleapp/SimpleAppApplication.kt | JulyMak | 234,959,536 | false | null | package org.example.simpleapp
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
@SpringBootApplication
open class SimpleAppApplication {
companion object {
@JvmStatic
fun main(args: Array<String>) {
SpringApplication... | 0 | Kotlin | 0 | 0 | 8dfcd72ec80bc51f4f55b204f492c6f5ec113061 | 384 | simple-app | Apache License 2.0 |
compiler/testData/diagnostics/tests/enum/javaEnumValueOfMethod.kt | chashnikov | 14,658,474 | false | null | // FILE: A.java
public enum A {
ENTRY;
}
// FILE: test.kt
fun main() {
A.valueOf("ENTRY"): A
}
| 0 | null | 0 | 1 | 88a261234860ff0014e3c2dd8e64072c685d442d | 104 | kotlin | Apache License 2.0 |
src/plugins/MySampleService.kt | pallavirawat | 254,977,047 | false | {"Kotlin": 9735} | package com.example.plugins
import io.ktor.application.*
import io.ktor.util.*
import io.ktor.util.pipeline.*
import kotlin.system.exitProcess
class MySampleService(monitor: ApplicationEvents) {
public class Configuration {
}
private val starting: (Application) -> Unit = { println("Application starting ... | 0 | Kotlin | 0 | 0 | 6499d99fa96a8dfa5cfbf247e9577d6f14fe1a25 | 1,970 | ktor-server-playground | MIT License |
ERMSCompany/src/main/java/com/kust/erms_company/ui/profile/ProfileFragment.kt | sabghat90 | 591,653,827 | false | null | package com.camelloncase.testedeperformance09.ui.profile
import androidx.lifecycle.ViewModelProvider
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.camelloncase.testedeperformance09.R
class ProfileFrag... | 3 | null | 0 | 4 | 8ceac25585fb78207f14f2f7bfecfcb4d1c82624 | 933 | ERMS | MIT License |
sam-kotlin-core/src/main/kotlin/software/elborai/api/models/OrganizationUpdateParams.kt | DefinitelyATestOrg | 787,029,213 | false | {"Kotlin": 699174, "Shell": 1286, "Dockerfile": 305} | // File generated from our OpenAPI spec by Stainless.
package software.elborai.api.models
import com.fasterxml.jackson.annotation.JsonAnyGetter
import com.fasterxml.jackson.annotation.JsonAnySetter
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
im... | 1 | Kotlin | 0 | 0 | 80a2bb383a75b6f86d5b50a1e9b37fa6d8fce477 | 14,620 | sam-kotlin | Apache License 2.0 |
app/src/main/java/pt/dbmg/mobiletaiga/network/response/ImageX.kt | worm69 | 166,021,572 | false | {"Gradle": 7, "YAML": 12, "Java Properties": 2, "Markdown": 6, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Proguard": 3, "Kotlin": 464, "XML": 78, "Java": 55, "JSON": 2, "GraphQL": 1, "Dockerfile": 1} | package pt.dbmg.mobiletaiga.network.response
import com.google.gson.annotations.SerializedName
data class ImageX(
@SerializedName("large")
val large: String, // https://media.kitsu.io/categories/images/10/large.jpg?1496212711
@SerializedName("medium")
val medium: String, // https://media.kitsu.io/cate... | 0 | Kotlin | 0 | 4 | 8ec09bed018d57225b85e042865608952633c622 | 774 | mobiletaiga | Apache License 2.0 |
buildSrc/src/main/kotlin/androidx/build/dependencyTracker/DependencyTracker.kt | RikkaW | 389,105,112 | true | {"Java": 49060640, "Kotlin": 36832495, "Python": 336507, "AIDL": 179831, "Shell": 150493, "C++": 38342, "ANTLR": 19860, "HTML": 10802, "TypeScript": 6933, "CMake": 3330, "JavaScript": 1343} | /*
* Copyright 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 8 | Java | 35 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 2,639 | androidx | Apache License 2.0 |
couchbase-lite/src/commonMain/kotlin/kotbase/ConfigurationFactories.kt | jeffdgr8 | 518,984,559 | false | {"Kotlin": 2289925, "Python": 294} | /*
* Copyright 2022-2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 0 | 7 | 188723bf0c4609b649d157988de44ac140e431dd | 4,945 | kotbase | Apache License 2.0 |
idea/src/org/jetbrains/kotlin/idea/statistics/FUSEventGroups.kt | cr8tpro | 189,964,139 | true | {"Kotlin": 37481242, "Java": 7489008, "JavaScript": 157778, "HTML": 74773, "Lex": 23159, "TypeScript": 21255, "IDL": 10895, "ANTLR": 9803, "CSS": 8084, "Shell": 7727, "Groovy": 6940, "Batchfile": 5362, "Swift": 2253, "Ruby": 668, "Objective-C": 293, "Scala": 80} | /*
* Copyright 2010-2019 JetBrains s.r.o. 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.idea.statistics
// Note: along with adding a group to this enum you should also add its GROUP_ID to plugin.xml and get it whit... | 1 | Kotlin | 1 | 2 | dca23f871cc22acee9258c3d58b40d71e3693858 | 759 | kotlin | Apache License 2.0 |
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/focus/OneDimensionalFocusSearch.kt | JetBrains | 351,708,598 | true | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 10 | Java | 16 | 59 | e18ad812b77fc8babb00aacfcea930607b0794b5 | 6,506 | androidx | Apache License 2.0 |
example/android/app/src/main/kotlin/com/blinck/blinck/MainActivity.kt | berathamzaoglu | 847,315,616 | false | {"Kotlin": 8169, "Objective-C": 8093, "Dart": 5473, "Ruby": 2945, "Shell": 741} | package com.theantimony.googleplacespickerexample
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity()
| 0 | Kotlin | 0 | 0 | 65b99dfe73ad7b78f8bb0c28d79074692822f576 | 142 | blinck_google_places_picker | MIT License |
app/src/main/java/de/droidcon/berlin2018/ui/search/SearchViewNavigator.kt | OpenConference | 100,889,869 | false | null | package de.droidcon.berlin2018.ui.search
import android.content.Intent
import android.net.Uri
import com.bluelinelabs.conductor.Controller
import com.bluelinelabs.conductor.RouterTransaction
import com.bluelinelabs.conductor.changehandler.HorizontalChangeHandler
import de.droidcon.berlin2018.R
import de.droidcon.berli... | 1 | null | 1 | 27 | 142effaf4eb04abb12d5b812e797a89922b649a5 | 2,852 | DroidconBerlin2017 | Apache License 2.0 |
sdk/src/main/java/net/activelook/sdk/blemodel/Device.kt | cowboycoder | 220,551,642 | false | null | package net.activelook.sdk.blemodel
internal class Device {
companion object {
@JvmStatic
val RECOGNIZED_DEVICE_NAMES = arrayOf(
"a.look",
"cobra",
"microoled"
)
}
} | 0 | Kotlin | 0 | 0 | 97f76607c7771ebb46e45050590821aa40dababc | 236 | activelook-sdk-android | Apache License 2.0 |
src/main/kotlin/icons/Icons.kt | i-am-arunkumar | 393,908,591 | true | {"Kotlin": 100873} | package icons
import com.intellij.openapi.util.IconLoader
/**
* Icon Constants
*/
object Icons {
@JvmField
val LogoIcon = IconLoader.getIcon("/logo.svg", javaClass)
} | 0 | null | 0 | 0 | 4f72acfdb83c7917faa397818bd198b67fd3d6d8 | 178 | AutoCp | MIT License |
example/src/main/java/io/sellmair/example/fragment/ChatFragment.kt | nairobi222 | 181,482,076 | false | null | package io.sellmair.example.fragment
import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v7.app.AppCompatActivity
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import io.sellmair.example.R
import io.sellmair.example.destination.ChatDestinat... | 1 | null | 1 | 1 | 855e3905f5367a41c00c7a45e5eaf35905c8f893 | 1,260 | kompass | Apache License 2.0 |
KotlinMultiplatform/PokedexKMP/shared/src/commonMain/kotlin/core/service/PokemonService.kt | pradyotprksh | 385,586,594 | false | {"Kotlin": 2932498, "Dart": 1066884, "Python": 319755, "Rust": 180589, "Swift": 149003, "C++": 113494, "JavaScript": 103891, "CMake": 94132, "HTML": 57188, "Go": 45704, "CSS": 18615, "SCSS": 17864, "Less": 17245, "Ruby": 13609, "Dockerfile": 8581, "C": 8043, "Shell": 7657, "PowerShell": 3045, "Nix": 2616, "Makefile": 1... | package core.service
import domain.modal.PokemonImage
interface PokemonService {
suspend fun getPokemonImages(): List<PokemonImage>
} | 0 | Kotlin | 11 | 24 | 4caa1e3995d2c51de8cc98183dd22486c4309292 | 139 | development_learning | MIT License |
common/src/commonMain/kotlin/com/greenmiststudios/common/presenters/HomePresenter.kt | geoff-powell | 724,651,026 | false | {"Kotlin": 51119, "Shell": 1867, "HTML": 1133, "JavaScript": 1073, "Swift": 590, "CSS": 161} | package com.greenmiststudios.common.presenters
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import com.greenmiststudios.common.viewmodels.HomeViewEvent
import com.greenmiststudios.common.viewmodels.HomeViewModel
import kotlinx.coroutines.flow.Flow
public class HomePresente... | 7 | Kotlin | 0 | 0 | b840f07187c079042a4349056d54769b2fe3df62 | 561 | Tidy | Apache License 2.0 |
app/src/main/java/com/kgurgul/cpuinfo/utils/SingleLiveEvent.kt | kamgurgul | 105,620,694 | false | {"Kotlin": 296221, "C++": 4516, "CMake": 634, "AIDL": 461} | package com.kgurgul.cpuinfo.utils
import androidx.annotation.MainThread
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Observer
import timber.log.Timber
import java.util.concurrent.atomic.AtomicBoolean
/**
* A lifecycle-... | 28 | Kotlin | 89 | 488 | 6aab426bc3b00e6c759d5bf64c93b07a36f7f0cf | 1,770 | cpu-info | Apache License 2.0 |
compose/common/src/dev/programadorthi/routing/compose/ComposeRoutingExt.kt | programadorthi | 626,174,472 | false | {"Kotlin": 518630, "JavaScript": 775} | package dev.programadorthi.routing.compose
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.ProvidableCompositionLocal
import androidx.compose.runtime.staticCompositionLocalOf
import dev.programadorthi.routing.core.Routing
public val LocalPopResult: ProvidableCompositionLocal<C... | 0 | Kotlin | 2 | 42 | 6d289e939d8e317ffd74ea6bfef94ffe6b0734a0 | 886 | kotlin-routing | Apache License 2.0 |
src/i_introduction/_4_Lambdas/n04Lambdas.kt | hnrck | 128,468,183 | true | {"Kotlin": 61224, "Java": 4952} | package i_introduction._4_Lambdas
import util.TODO
import util.doc4
fun todoTask4(collection: Collection<Int>): Boolean = collection.any {it % 2 == 0}
fun task4(collection: Collection<Int>): Boolean = todoTask4(collection) | 0 | Kotlin | 0 | 0 | 03b83f43c416f68c9d9b0f62d8dd418d085bdcca | 225 | kotlin-koans | MIT License |
app/src/main/java/com/sedsoftware/yaptalker/di/modules/contribution/FragmentContributionModule.kt | srihi | 117,938,951 | true | {"Kotlin": 350092, "Shell": 1229, "IDL": 510, "Prolog": 237, "CSS": 50} | package com.sedsoftware.yaptalker.di.modules.contribution
import com.sedsoftware.yaptalker.di.scopes.FragmentScope
import com.sedsoftware.yaptalker.presentation.features.activetopics.ActiveTopicsFragment
import com.sedsoftware.yaptalker.presentation.features.activetopics.di.ActiveTopicsFragmentModule
import com.sedsof... | 0 | Kotlin | 0 | 0 | e90fd7f7ed3024e1a58f9f8e0e1ba01cd986bcd1 | 3,271 | YapTalker | Apache License 2.0 |
app/src/main/java/me/hegj/wandroid/mvp/presenter/main/tree/treeinfo/TreeinfoPresenter.kt | hegaojian | 206,478,384 | false | null | package me.hegj.wandroid.mvp.presenter.main.publicNumber
import android.app.Application
import com.jess.arms.di.scope.FragmentScope
import com.jess.arms.http.imageloader.ImageLoader
import com.jess.arms.integration.AppManager
import com.jess.arms.mvp.BasePresenter
import com.jess.arms.utils.RxLifecycleUtils
import com... | 1 | null | 100 | 713 | 622016c9695c01f3a134a23c4af1f76686aad6f1 | 5,867 | WanAndroid | Apache License 2.0 |
library/src/main/java/com/github/skgmn/startactivityx/FragmentApplicationSupplier.kt | skgmn | 389,001,523 | false | null | package com.github.skgmn.startactivityx
import android.app.Application
import androidx.fragment.app.Fragment
internal class FragmentApplicationSupplier(private val fragment: Fragment): ApplicationSupplier {
private var app: Application? = null
override fun getApplication(): Application? {
return app ... | 0 | Kotlin | 0 | 5 | 43d4f12a2bae501dd26ebbc252a80b3638dad51c | 712 | StartActivityX | MIT License |
ads/src/main/java/com/hms/lib/commonmobileservices/ads/rewarded/implementation/GoogleRewardedAd.kt | Explore-In-HMS | 402,745,331 | false | {"Kotlin": 593917} | // Copyright 2020. Explore in HMS. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable la... | 3 | Kotlin | 6 | 50 | 68640eadd9950bbdd9aac52dad8d22189a301859 | 2,322 | common-mobile-services | Apache License 2.0 |
frogothemoviedbapi/src/main/java/com/frogobox/frogothemoviedbapi/data/response/TvContentRatings.kt | amirisback | 244,968,500 | false | null | package com.frogobox.frogothemoviedbapi.data.response
import com.frogobox.frogothemoviedbapi.data.model.TvContentRatingsResult
data class TvContentRatings(
val id: Int?,
val results: List<TvContentRatingsResult>?
) | 0 | Kotlin | 2 | 17 | ba2dd472185525a52c505e353c04fc5cc8f501b0 | 224 | consumable-code-movie-tmdb-api | Apache License 2.0 |
app/src/main/java/com/vipulasri/jetinstagram/ui/home/Profile.kt | mkCoding | 811,348,897 | false | {"Kotlin": 55389} | package com.vipulasri.jetinstagram.ui.home
fun Profile(){
}
| 0 | Kotlin | 0 | 0 | 72280c926c9ca92c686726e6d097b9fb066ad2f0 | 63 | JetInstagram | Apache License 2.0 |
entity/src/main/java/com/kevalpatel2106/yip/entity/DeadlineType.kt | kevalpatel2106 | 166,789,807 | false | null | package com.kevalpatel2106.yip.entity
@Suppress("MagicNumber")
enum class DeadlineType(val key: Int, val color: DeadlineColor) {
YEAR_DEADLINE(key = 8459, color = DeadlineColor.COLOR_BLUE),
DAY_DEADLINE(key = 346, color = DeadlineColor.COLOR_PINK),
WEEK_DEADLINE(key = 54532, color = DeadlineColor.COLOR_YEL... | 0 | Kotlin | 1 | 16 | 61311ba7d40802ba7fed87b2f16b72089c6f7746 | 519 | year-in-progress | Apache License 2.0 |
androidutilskt/src/main/java/com/lindroid/androidutilskt/extension/logcat/LogLevel.kt | Lindroy | 172,827,942 | false | null | package com.lindroid.androidutilskt.extension.logcat
import android.support.annotation.IntDef
import android.util.Log
/**
* @author Lin
* @date 2019/3/19
* @function 日志等级
* @Description
*/
const val VERBOSE = Log.VERBOSE
const val DEBUG = Log.DEBUG
const val INFO = Log.INFO
const val WARN = Log.WARN
const val E... | 0 | null | 19 | 48 | 5d6832813a4a0dba7290ad5ef92959f638ea51ab | 761 | AndroidUtilsKt | Apache License 2.0 |
buildSrc/src/main/kotlin/Plugin.kt | maksonic | 580,058,579 | false | null | import org.gradle.kotlin.dsl.apply
import org.gradle.kotlin.dsl.kotlin
import org.gradle.kotlin.dsl.version
import org.gradle.plugin.use.PluginDependenciesSpec
import org.gradle.plugin.use.PluginDependencySpec
/**
* @Author maksonic on 15.12.2022
*/
fun PluginDependenciesSpec.pluginAndroidApp(): PluginDependencySpec... | 0 | Kotlin | 0 | 0 | 5704d413cd57a8eabe27b02a185a999fce2ca1e4 | 1,436 | Beresta | MIT License |
app/src/main/java/com/udacity/shoestore/screens/shoe_list/ShopViewModelFactory.kt | adrianpbv | 372,412,404 | false | null | package com.udacity.shoestore.screens.shoe_list
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.udacity.shoestore.models.Shoe
// factory to create a ShopViewModel with an argument as it is initialized
class ShopViewModelFactory(private val shoe: Shoe?... | 0 | Kotlin | 0 | 0 | 37cdb5c9fa823d0eb5aa3b3eeabf5595c8467986 | 691 | shoestore | MIT License |
src/main/kotlin/dev/fakek/interfaces/Company.kt | CodyEngel | 226,218,138 | false | null | package dev.fakek.interfaces
/**
* Company in an interface to implement fake companies.
*/
interface Company {
/**
* @property bs company corporate speak ex: "energistically mesh e-business opportunities".
*/
val bs: String
/**
* @property buzzword
*/
val buzzword: String
/**
... | 6 | Kotlin | 7 | 7 | e3d1442059b1196a020c71fb9424266bf12fe1a1 | 826 | fakek | Apache License 2.0 |
app/src/main/java/com/peruapps/christopher_elias/ui/holder/MasterViewHolder.kt | ChristopherME | 189,524,605 | false | null | package com.peruapps.christopher_elias.ui.holder
import androidx.databinding.ViewDataBinding
import androidx.recyclerview.widget.RecyclerView
/**
* Created by <NAME> on 29-may-2019
* <EMAIL>
* Lima, Perú
* Copyright (c) 2019 All rights reserved.
*/
class MasterViewHolder<out V : ViewDataBinding>(val binding: V... | 0 | Kotlin | 0 | 0 | 785b1e3938a69936b0c0732f82cb6b40fbfc8d0b | 361 | senior-test | Apache License 2.0 |
ui/ui-core/src/androidMain/kotlin/androidx/compose/ui/platform/AndroidComposeView.kt | zengjuly | 351,458,785 | false | null | /*
* Copyright 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 1 | null | 1 | 1 | fbe346d9edeb2b6137e327e16d0fe6c67364e28b | 27,975 | androidx | Apache License 2.0 |
src/main/kotlin/io/unthrottled/amii/assets/APIContentManager.kt | ani-memes | 303,354,188 | false | null | package io.unthrottled.amii.assets
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.diagnostic.Logger
import io.unthrottled.amii.assets.LocalStorageService.readLocalFile
import io.unthrottled.amii.platform.LifeCycleManager
import io.unthrottled.amii.platform.UpdateAssetsListener
i... | 7 | null | 14 | 257 | c9a4ef10f6e1a5ce68dc3a007b45cadbc33deed0 | 2,586 | AMII | Apache License 2.0 |
api/coroutines/v1.5.4/src/commonMain/kotlin/dev/whyoleg/ktd/api/contact/ImportContacts.kt | whyoleg | 202,767,670 | false | null | @file:Suppress(
"unused"
)
@file:UseExperimental(
BotsOnly::class,
TestingOnly::class
)
package dev.whyoleg.ktd.api.contact
import dev.whyoleg.ktd.*
import dev.whyoleg.ktd.api.*
import dev.whyoleg.ktd.api.TdApi.*
/**
* Adds new contacts or edits existing contacts by their phone numbers
* Contacts' user... | 7 | Kotlin | 11 | 45 | 7284eeabef0bd002dc72634351ab751b048900e9 | 863 | ktd | Apache License 2.0 |
SceytChatUiKit/src/main/java/com/sceyt/chatuikit/presentation/uicomponents/conversationinfo/media/viewmodel/ChannelAttachmentsViewModel.kt | sceyt | 549,073,085 | false | {"Kotlin": 2713714, "Java": 107920} | package com.sceyt.chatuikit.presentation.components.channel_info.media.viewmodel
import android.app.Application
import androidx.fragment.app.Fragment
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.asFlow
import androidx.lifecycle.repeatOnLifecycle
import android... | 0 | Kotlin | 1 | 2 | ce9c1b95555fadaafcd11f0d073fcdb07ca49600 | 11,144 | sceyt-chat-android-uikit | MIT License |
app/src/main/java/crupest/cruphysics/data/world/processed/ProcessedWorldRecordForLatest.kt | crupest | 112,487,340 | false | null | package crupest.cruphysics.data.world.processed
import crupest.cruphysics.serialization.data.CameraData
import crupest.cruphysics.serialization.data.WorldData
import java.util.Date
data class ProcessedWorldRecordForLatest(val timestamp: Date, val world: WorldData, val camera: CameraData)
| 1 | Kotlin | 0 | 0 | 7e56c159068bc7cac9777e004793e74f94900c88 | 291 | Android-CruPhysics | Apache License 2.0 |
common/src/commonMain/kotlin/com/artemchep/keyguard/provider/bitwarden/model/Login.kt | AChep | 669,697,660 | false | {"Kotlin": 5516822, "HTML": 45876} | package com.artemchep.keyguard.provider.bitwarden.model
import kotlinx.datetime.Instant
data class Login(
val accessToken: String,
val accessTokenType: String,
val accessTokenExpiryDate: Instant,
val refreshToken: String,
val scope: String?,
)
| 66 | Kotlin | 31 | 995 | 557bf42372ebb19007e3a8871e3f7cb8a7e50739 | 266 | keyguard-app | Linux Kernel Variant of OpenIB.org license |
core/domain/src/main/java/com/season/winter/core/domain/repository/CachedImageRepository.kt | winter-love-dev | 660,596,555 | false | {"Kotlin": 266095} | package com.season.winter.core.domain.repository
interface CachedImageRepository {
suspend fun getImageUrl(fileName: String): String?
} | 0 | Kotlin | 0 | 0 | d84a7f228b553a631bccaf2352be0ae88ed22b8e | 140 | CatchBottle | Apache License 2.0 |
analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/api/targets/LLFirWholeElementResolveTarget.kt | JetBrains | 3,432,266 | false | {"Kotlin": 74444760, "Java": 6669398, "Swift": 4261253, "C": 2620837, "C++": 1953730, "Objective-C": 640870, "Objective-C++": 170766, "JavaScript": 135724, "Python": 48402, "Shell": 30960, "TypeScript": 22754, "Lex": 18369, "Groovy": 17273, "Batchfile": 11693, "CSS": 11368, "Ruby": 10470, "EJS": 5241, "Dockerfile": 513... | /*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.analysis.low.level.api.fir.api.targets
import org.jetbrains.kotlin.analysis.low.... | 166 | Kotlin | 5771 | 46,772 | bef0946ab7e5acd5b24b971eca532c43c8eba750 | 2,318 | kotlin | Apache License 2.0 |
app/src/main/java/com/github2136/base/model/HttpModel.kt | github2136 | 210,985,491 | false | null | package com.github2136.base.model
import android.content.Context
import com.github2136.basemvvm.BaseWebModel
/**
* Created by yb on 2019/10/7
*/
class HttpModel private constructor(context: Context) : BaseWebModel(context) {
var api: HttpService
init {
baseUrl = "http://www.weather.com.cn/"
... | 0 | null | 0 | 2 | 8ec63d87d4a25c599704ced72bb842513f16975e | 996 | Base | Apache License 2.0 |
guide/src/test/kotlin/examples/example-schedule-01.kt | arrow-kt | 557,761,845 | false | null | // This file was automatically generated from retry-and-repeat.md by Knit tool. Do not edit.
package arrow.website.examples.exampleSchedule01
import kotlin.time.Duration.Companion.milliseconds
import kotlin.time.Duration.Companion.seconds
import kotlin.time.ExperimentalTime
import arrow.resilience.*
import io.kotest.m... | 12 | Kotlin | 7 | 6 | c1e8cff959fa376b32007b27c17955a38262b447 | 387 | arrow-website | Apache License 2.0 |
hoplite-aws2/src/main/kotlin/com/sksamuel/hoplite/aws2/AwsSecretsManagerPreprocessor.kt | sksamuel | 187,727,131 | false | {"Kotlin": 582464} | package com.sksamuel.hoplite.aws
import com.amazonaws.AmazonClientException
import com.amazonaws.AmazonServiceException
import com.amazonaws.services.secretsmanager.AWSSecretsManager
import com.amazonaws.services.secretsmanager.AWSSecretsManagerClientBuilder
import com.amazonaws.services.secretsmanager.model.Decryptio... | 9 | Kotlin | 74 | 918 | c21e77ea11e26d7852cb6a1859bfc26dee74974e | 5,507 | hoplite | Apache License 2.0 |
app/src/main/java/edu/mum/mumwhere/MainActivity.kt | mutkan | 279,480,566 | true | {"XML": 107, "Gradle": 3, "Java Properties": 4, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 25, "Java": 2, "HTML": 1, "INI": 2} | package edu.mum.mumwhere
import android.Manifest
import android.app.Activity
import android.app.ProgressDialog.show
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.content.pm.PackageManager
import android.content.res.Configuration
import android.gr... | 0 | null | 0 | 1 | cd2927ed56c14ca34ac9400b6c53a45878f390ad | 40,805 | MIUWhere | Apache License 2.0 |
src/main/kotlin/util/Colors.kt | McAJBen | 81,295,567 | false | {"Kotlin": 110086} | package util
import java.awt.Color
/**
* contains colors
* @author <EMAIL>
*/
object Colors {
/**
* the color of an active button - (153, 255, 187)
*/
val ACTIVE = Color(
153,
255,
187
)
/**
* the color of an inactive button - (255, 128, 128)
*/
val INACTIVE = Color(
255,
128,
128
)
/... | 8 | Kotlin | 16 | 48 | e34a1dc550d19b4762a741a6b6e210c7c7b38b43 | 1,708 | DungeonBoard | MIT License |
app/src/main/java/com/github/muellerma/tabletoptools/ui/fragments/CounterFragment.kt | mueller-ma | 313,100,168 | false | {"Kotlin": 59623} | package com.github.muellerma.tabletoptools.ui.fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.widget.doOnTextChanged
import com.github.muellerma.tabletoptools.databinding.CounterBinding
import com.github.muellerma.tableto... | 13 | Kotlin | 19 | 36 | fad1132b058614c9cd0a441e246c8c127cabd9d0 | 2,128 | TabletopTools | Apache License 2.0 |
examples/jpa-querydsl/src/main/kotlin/io/bluetape4k/examples/jpa/querydsl/spring/SpringRepositoryQuerydslSupport.kt | debop | 625,161,599 | false | {"Kotlin": 7504333, "HTML": 502995, "Java": 2273, "JavaScript": 1351, "Shell": 1301, "CSS": 444, "Dockerfile": 121, "Mustache": 82} | package io.bluetape4k.examples.jpa.querydsl.spring
import com.querydsl.core.types.dsl.PathBuilder
import com.querydsl.jpa.impl.JPAQuery
import com.querydsl.jpa.impl.JPAQueryFactory
import io.bluetape4k.support.assertNotNull
import jakarta.annotation.PostConstruct
import jakarta.persistence.EntityManager
import jakarta... | 0 | Kotlin | 0 | 1 | ce3da5b6bddadd29271303840d334b71db7766d2 | 3,393 | bluetape4k | MIT License |
app/src/main/java/com/github/ephelsa/mycareer/delivery/survey/pojo/AnswerJSON.kt | ephelsa | 312,443,837 | false | null | package com.github.ephelsa.mycareer.delivery.survey.pojo
import com.github.ephelsa.mycareer.delivery.shared.mapper.DomainMappable
import com.github.ephelsa.mycareer.domain.survey.AnswerRemote
import com.google.gson.annotations.SerializedName
data class AnswerJSON(
@SerializedName("id") val id: Int,
@Serialize... | 5 | Kotlin | 0 | 2 | d68ee1b43b6df9e95aa58db72e2999f2207fb94d | 458 | my-career | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.