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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
conductor/src/test/java/com/bluelinelabs/conductor/util/ActivityProxy.kt | bluelinelabs | 54,057,611 | false | null | package com.bluelinelabs.conductor.util
import android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE
import android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT
import android.os.Bundle
import androidx.annotation.IdRes
import com.bluelinelabs.conductor.R
import org.robolectric.Robolectric
class Activity... | 113 | null | 343 | 3,897 | 56bff9a5cf93818c53fb38874834fbfcbe3e4eb9 | 1,879 | Conductor | Apache License 2.0 |
compiler/testData/diagnostics/tests/controlFlowAnalysis/fieldInitialization.kt | JetBrains | 3,432,266 | false | null | // !LANGUAGE: +AllowContractsForCustomFunctions +UseCallsInPlaceEffect
// !USE_EXPERIMENTAL: kotlin.internal.ContractsDsl
import kotlin.contracts.*
@kotlin.contracts.ExperimentalContracts
inline fun inlineMe(block: () -> Unit) {
contract {
callsInPlace(block, InvocationKind.EXACTLY_ONCE)
}
block()... | 166 | null | 5771 | 46,772 | bef0946ab7e5acd5b24b971eca532c43c8eba750 | 2,870 | kotlin | Apache License 2.0 |
app/src/main/java/com/arturostrowski/quiz/app/ui/main/interactor/MainInteractor.kt | Mesti193 | 215,134,193 | false | {"Gradle": 3, "Java Properties": 2, "Markdown": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Proguard": 1, "Kotlin": 151, "XML": 93, "Java": 1, "JSON": 2} | package com.arturostrowski.quiz.app.ui.main.interactor
import com.arturostrowski.quiz.app.data.database.repository.user.User
import com.arturostrowski.quiz.app.data.database.repository.user.UserRepo
import com.arturostrowski.quiz.app.data.network.ApiHelper
import com.arturostrowski.quiz.app.data.preferences.Preference... | 0 | Kotlin | 0 | 0 | 1c0cef0108b0b90a4074f18b4690e5533214b41c | 953 | QuizApp | Apache License 2.0 |
app/src/main/java/com/kylecorry/trail_sense/tools/weather/infrastructure/subsystem/WeatherSubsystem.kt | kylecorry31 | 215,154,276 | false | null | package com.kylecorry.trail_sense.weather.infrastructure.subsystem
import android.annotation.SuppressLint
import android.content.Context
import com.kylecorry.andromeda.core.cache.MemoryCachedValue
import com.kylecorry.andromeda.core.topics.ITopic
import com.kylecorry.andromeda.core.topics.Topic
import com.kylecorry.an... | 469 | null | 66 | 989 | 41176d17b498b2dcecbbe808fbe2ac638e90d104 | 14,740 | Trail-Sense | MIT License |
postgresql-async/src/main/java/com/github/mauricio/async/db/postgresql/encoders/PreparedStatementEncoderHelper.kt | dougEfresh | 146,269,167 | false | {"Markdown": 6, "Gradle": 4, "Shell": 2, "Procfile": 1, "Ignore List": 1, "Text": 1, "YAML": 1, "INI": 1, "Kotlin": 317, "Scala": 1, "XML": 3, "Java": 4} | /*
* Copyright 2013 <NAME>
*
* <NAME> licenses this file to you 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... | 1 | null | 1 | 1 | c16a5772b46331c582c4d14939e6c4cad09edb98 | 4,331 | jasync-sql | Apache License 2.0 |
app/src/main/kotlin/com/digian/clean/features/movies/presentation/MoviesActivity.kt | alexforrester | 193,843,187 | false | null | package com.digian.clean.features.movies
import android.os.Bundle
import androidx.annotation.VisibleForTesting
import androidx.appcompat.app.AppCompatActivity
import androidx.test.espresso.IdlingResource
import com.digian.clean.R
import com.digian.clean.features.movies.presentation.IdlingResource.SimpleIdlingResource
... | 0 | null | 8 | 25 | 952399aa274ae4cf59b8a3827b8e8fba23a948e0 | 990 | android-clean-architecture | Apache License 2.0 |
server/src/main/kotlin/com/example/internal/dbStorage/Helpers.kt | agilers-2021 | 408,805,593 | false | {"Kotlin": 49657, "JavaScript": 19963, "HTML": 12856, "CSS": 5083, "Python": 2975, "Dockerfile": 719} | package com.example.internal.dbStorage
import org.jetbrains.exposed.sql.Column
import org.jetbrains.exposed.sql.Table
import org.jetbrains.exposed.sql.Transaction
import org.jetbrains.exposed.sql.statements.InsertStatement
import org.jetbrains.exposed.sql.transactions.TransactionManager
// https://github.com/JetBrain... | 1 | Kotlin | 1 | 1 | 8c6ef1651728cb65551966fe3120d4737d37e568 | 1,168 | memster | MIT License |
TelegramBotAPI-extensions-api/src/commonMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/extensions/api/edit/LiveLocation/StopChatMessageLiveLocation.kt | sleshJdev | 289,571,865 | true | {"Kotlin": 718048} | package com.github.insanusmokrassar.TelegramBotAPI.extensions.api.edit.LiveLocation
import com.github.insanusmokrassar.TelegramBotAPI.bot.RequestsExecutor
import com.github.insanusmokrassar.TelegramBotAPI.requests.edit.LiveLocation.EditChatMessageLiveLocation
import com.github.insanusmokrassar.TelegramBotAPI.types.*
i... | 0 | null | 0 | 0 | cc0498a89a28ae8205f6f854534ec6f31be36cda | 2,352 | TelegramBotAPI | Apache License 2.0 |
app/src/main/java/com/example/c_19tracker/StateAdapter.kt | Rudra-cs | 260,144,776 | false | {"Kotlin": 6400} | package com.example.c_19tracker
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.BaseAdapter
import kotlinx.android.synthetic.main.item_list.view.*
class StateAdapter (val list: List<StatewiseItem>): BaseAdapter(){
override fun getView(position: Int, ... | 0 | Kotlin | 0 | 0 | d0ee5b7dcc7b5e415aa2ee871bedde08866ec4e9 | 1,420 | covid-19-tracker-india | MIT License |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/mediapackage/CfnOriginEndpointHlsManifestPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.mediapackage
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.Boolean
import kotlin.Number
im... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 6,882 | awscdk-dsl-kotlin | Apache License 2.0 |
common/compose/src/main/kotlin/team/duckie/app/android/common/compose/ui/dialog/SelectableItemBottomSheetDialog.kt | duckie-team | 503,869,663 | false | {"Kotlin": 1819917} | /*
* Designed and developed by Duckie Team, 2022
*
* Licensed under the MIT.
* Please see full license: https://github.com/duckie-team/duckie-android/blob/develop/LICENSE
*/
@file:OptIn(ExperimentalMaterialApi::class)
package team.duckie.app.android.common.compose.ui.dialog
import androidx.compose.foundation.la... | 32 | Kotlin | 2 | 8 | 5dbd5b7a42c621931d05a96e66431f67a3a50762 | 3,128 | duckie-android | MIT License |
app/src/main/java/com/cameronvwilliams/raise/util/ActiveCardDiffCallback.kt | RaiseSoftware | 119,627,507 | false | null | package com.cameronvwilliams.raise.util
import androidx.recyclerview.widget.DiffUtil
import com.cameronvwilliams.raise.data.model.ActiveCard
class ActiveCardDiffCallback(private val current: List<ActiveCard>, private val next: List<ActiveCard>) : DiffUtil.Callback() {
override fun areItemsTheSame(oldItemPosition:... | 1 | null | 1 | 4 | 3cd0786dba77645efa5508a662478e5893037919 | 857 | Raise-Android | MIT License |
blog/src/main/kotlin/blog/HtmlController.kt | ideaplugins | 132,205,373 | true | {"Kotlin": 11966, "HTML": 1002} | package blog
import org.springframework.stereotype.Controller
import org.springframework.ui.Model
import org.springframework.ui.set
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable
@Controller
class HtmlController(private val repository: ArticleRepo... | 0 | Kotlin | 0 | 0 | 7f4ec2882e5d4aff7fffd800264f5e98616527c7 | 1,231 | tut-spring-boot-kotlin | MIT License |
libnavigation-core/src/main/java/com/mapbox/navigation/core/routerefresh/RouteRefreshController.kt | k4anubhav | 439,334,238 | false | null | package com.mapbox.navigation.core.routerefresh
import com.mapbox.api.directions.v5.models.DirectionsRoute
import com.mapbox.base.common.logger.Logger
import com.mapbox.base.common.logger.model.Message
import com.mapbox.base.common.logger.model.Tag
import com.mapbox.navigation.base.route.RouteRefreshCallback
import co... | 1 | null | 1 | 1 | c7fd13f6c363e0902cf2e12d55d4bc3647700400 | 5,364 | mapbox-navigation-android | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/pipelines/AddStageOptsDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package cloudshift.awscdk.dsl.pipelines
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.Un... | 4 | null | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 2,733 | awscdk-dsl-kotlin | Apache License 2.0 |
src/test/kotlin/no/nav/personbruker/dittnav/brukernotifikasjonbestiller/varsel/NokkelTestData.kt | navikt | 331,545,066 | false | {"Kotlin": 72259, "Dockerfile": 166} | package no.nav.personbruker.dittnav.brukernotifikasjonbestiller.nokkel
import no.nav.brukernotifikasjon.schemas.input.NokkelInput
object NokkelTestData {
private const val defaultFodselsnr = "12345678910"
private const val defaultGrupperingsid = "123"
private const val defaultAppName = "defaultAppName"
... | 1 | Kotlin | 0 | 0 | 9df0ace75939834947d531a342f9153d9ad44633 | 1,355 | dittnav-brukernotifikasjonbestiller | MIT License |
app/src/main/java/com/bb4first/mycashtask/repository/auth/LoginRepository.kt | MostafaKader56 | 854,577,641 | false | {"Kotlin": 123081} | package com.bb4first.mycashtask.repository.auth
import com.bb4first.mycashtask.nerwork.api_helper.auth.LoginApiHelper
import javax.inject.Inject
class LoginRepository @Inject constructor(private val loginApiHelper: LoginApiHelper) {
suspend fun login(
email: String,
password: String,
devic... | 0 | Kotlin | 0 | 0 | 079a9042f703f1374f75331e4bff2edbfa65aebe | 569 | my_cash_task | MIT License |
app/src/main/java/com/kieran/winnipegbusbackend/interfaces/ScheduledStopKey.kt | KieranL | 40,154,002 | false | null | package com.kieran.winnipegbusbackend.interfaces
import java.io.Serializable
interface ScheduledStopKey : Serializable, Comparable<Any> {
override fun equals(other: Any?): Boolean
} | 8 | Kotlin | 0 | 2 | cd67dafec7fce4b61028ea4e337059ae628cfb4e | 187 | Winnipeg-Transit-Plus | Apache License 2.0 |
compiler/testData/ir/irText/types/nullChecks/typeParameterWithMultipleNullableBounds.kt | JetBrains | 3,432,266 | false | null | // TARGET_BACKEND: JVM
// FILE: typeParameterWithMultipleNullableBounds.kt
fun <T> f(x: T): Int? where T : CharSequence?, T : Comparable<T>? {
return x?.compareTo(x)
}
fun test() {
f(J.s())
f(J.STRING)
}
// FILE: J.java
public class J {
public static String STRING = s()
public static String s() {... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 338 | kotlin | Apache License 2.0 |
app/src/main/java/com/lnpdit/sunnyweather/test/http/MyRepository.kt | hepengNC | 664,952,501 | false | null | package com.lnpdit.sunnyweather.test.http
import androidx.lifecycle.liveData
import com.lnpdit.sunnyweather.test.login.model.LoginRequest
import com.lnpdit.sunnyweather.test.login.network.LoginNetwork
import kotlinx.coroutines.Dispatchers
import kotlin.coroutines.CoroutineContext
/**
* Created by HePeng on 2023/7/13... | 0 | Kotlin | 0 | 0 | 76c2a46e9ce7cd637f89eecfcb596ddd8d9dad9d | 1,105 | SunnyWeather | Apache License 2.0 |
feature-staking-impl/src/main/java/jp/co/soramitsu/staking/impl/presentation/staking/rebond/custom/CustomRebondFragment.kt | soramitsu | 278,060,397 | false | null | package jp.co.soramitsu.staking.impl.presentation.staking.rebond.custom
import androidx.fragment.app.viewModels
import androidx.lifecycle.lifecycleScope
import coil.ImageLoader
import dagger.hilt.android.AndroidEntryPoint
import dev.chrisbanes.insetter.applyInsetter
import jp.co.soramitsu.common.base.BaseFragment
impo... | 15 | null | 30 | 89 | 1de6dfa7c77d4960eca2d215df2bdcf71a2ef5f2 | 2,257 | fearless-Android | Apache License 2.0 |
app/src/main/java/com/example/okcredit/Navigation/AccountFragmentActivity.kt | lucifernipun22 | 345,898,513 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 71, "XML": 190, "JSON": 22, "Java": 6} | package com.example.okcredit.Navigation
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.okcredit.R
class AccountFragmentActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentVie... | 0 | Kotlin | 0 | 2 | cc27ed6e6668b25637ea92b0fa039a951426b7af | 356 | okCredit | MIT License |
server/PonyKtor/src/main/kotlin/Router.kt | evant | 362,828,301 | false | null | package me.tatarka.inject
import io.ktor.application.call
import io.ktor.response.respond
import io.ktor.routing.Routing
import io.ktor.routing.get
import io.ktor.util.getOrFail
import me.tatarka.inject.annotations.Inject
import me.tatarka.inject.episodes.EpisodesController
typealias router = (Routing) -> Unit
/**
... | 2 | Kotlin | 2 | 7 | 2cea6e1ecc50df2f8f0b45e2fcc7e903eb3c98d7 | 1,124 | kotlin-inject-samples | Apache License 2.0 |
shared/src/commonMain/kotlin/com/vasylt/composekmm/contacts/domain/ContactDataSource.kt | osisupermoses | 734,461,368 | false | null | package com.vasylt.composekmm.contacts.domain
import kotlinx.coroutines.flow.Flow
interface ContactDataSource {
fun getContacts(): Flow<List<Contact>>
fun getRecentContacts(amount: Int): Flow<List<Contact>>
suspend fun insertContact(contact: Contact)
suspend fun deleteContact(id: Long)
} | 0 | Kotlin | 0 | 0 | b1313d5ed529aedf9819c45c316d118bf313c680 | 306 | contact-list-app | Apache License 2.0 |
app/src/main/java/com/jaseem/apod/data/network/service/RetrofitApodApi.kt | Jaseemakhtar | 570,799,517 | false | null | package com.jaseem.apod.data.network.service
import com.jaseem.apod.data.network.model.CosmosRemote
import retrofit2.Response
import retrofit2.http.GET
interface RetrofitApodApi {
@GET("obvious/take-home-exercise-data/trunk/nasa-pictures.json")
suspend fun getAllCosmos(): Response<List<CosmosRemote>>
}
| 0 | Kotlin | 0 | 0 | c040ce5d7b32ca15088e0cd3bcdf64cb9d2dd894 | 315 | AssignmentApod | Apache License 2.0 |
app/src/main/java/com/relieve/android/screen/fragment/walkthrough/WalkthroughFragment.kt | luxinfity | 159,038,146 | false | {"Kotlin": 106981, "Java": 1126} | package com.relieve.android.screen.fragment.walkthrough
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentPagerAdapter
import androidx.navigation.fragment.findNavController
import... | 0 | Kotlin | 0 | 0 | 7e0de304db66d60ad4f25846723fe048f7aefbb9 | 4,655 | relieve_android | MIT License |
benchmarks/commonMain/src/benchmarks/immutableMap/Remove.kt | Kotlin | 59,769,494 | false | {"Kotlin": 569271} | /*
* Modified from the kotlinx.collections.immutable sources, which contained the following notice:
* Copyright 2016-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.txt file.
*/
package benchmarks.immutableMap
import benchmarks.*
import kotlin... | 50 | Kotlin | 53 | 996 | c73ce02cf1214f14ec177cc6c2da15677ec98012 | 1,373 | kotlinx.collections.immutable | Apache License 2.0 |
sceneview/src/main/java/io/github/sceneview/Filament.kt | SceneView | 426,414,439 | false | null | package io.github.sceneview
import android.opengl.EGLContext
import com.google.android.filament.*
import com.google.android.filament.gltfio.AssetLoader
import com.google.android.filament.gltfio.Gltfio
import com.google.android.filament.gltfio.ResourceLoader
import com.google.android.filament.gltfio.UbershaderProvider
... | 29 | null | 90 | 440 | 9bd1e3dd6a51c8de36cf1a86db20f44bc63861fb | 3,846 | sceneview-android | Apache License 2.0 |
api/src/main/kotlin/org/kryptonmc/api/entity/animal/Parrot.kt | KryptonMC | 255,582,002 | false | null | /*
* This file is part of the Krypton project, licensed under the Apache License v2.0
*
* Copyright (C) 2021-2023 KryptonMC and the contributors of the Krypton 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 ... | 27 | Kotlin | 11 | 233 | a9eff5463328f34072cdaf37aae3e77b14fcac93 | 982 | Krypton | Apache License 2.0 |
app/src/main/java/com/denysnovoa/nzbmanager/common/framework/api/cache/NetworkCacheInterceptor.kt | denysnovoa | 90,066,913 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "JSON": 4, "Proguard": 1, "Java": 2, "Kotlin": 110, "XML": 37} | package com.denysnovoa.nzbmanager.common.framework.api.cache
import okhttp3.CacheControl
import okhttp3.Interceptor
import okhttp3.Response
import java.util.concurrent.TimeUnit
class NetworkCacheInterceptor : Interceptor {
val CACHE_CONTROL = "Cache-Control"
override fun intercept(chain: Interceptor.Chain): ... | 0 | Kotlin | 0 | 1 | 8944e3bae4c073856f9856bf2e5064a6dadde4f7 | 609 | radarrsonarr | Apache License 2.0 |
modules/wasm-binary/src/commonMain/kotlin/tree/sections/CodeSectionNode.kt | wasmium | 761,480,110 | false | {"Kotlin": 588711, "JavaScript": 203} | package org.wasmium.wasm.binary.tree.sections
import org.wasmium.wasm.binary.tree.LocalVariable
import org.wasmium.wasm.binary.tree.SectionKind
import org.wasmium.wasm.binary.visitors.CodeSectionVisitor
import org.wasmium.wasm.binary.visitors.ExpressionVisitor
public class CodeSectionNode : SectionNode(SectionKind.CO... | 0 | Kotlin | 0 | 3 | f219d7133574e8ea81ce905393991212ca293cf4 | 973 | wasmium-wasm-binary | Apache License 2.0 |
Browser/src/commonMain/kotlin/io/nacular/doodle/dom/impl/HtmlFactoryImpl.kt | nacular | 108,631,782 | false | null | package io.nacular.doodle.dom.impl
import io.nacular.doodle.dom.Document
import io.nacular.doodle.dom.HTMLButtonElement
import io.nacular.doodle.dom.HTMLElement
import io.nacular.doodle.dom.HTMLImageElement
import io.nacular.doodle.dom.HTMLInputElement
import io.nacular.doodle.dom.HtmlFactory
internal class HtmlFacto... | 5 | null | 26 | 613 | f7414d4c30cdd7632992071234223653e52b978c | 1,175 | doodle | MIT License |
src/main/kotlin/com/willowtreeapps/fuzzywuzzy/ToStringFunction.kt | SEPIA-Framework | 129,547,010 | false | null | package com.willowtreeapps.fuzzywuzzy
/**
* Transforms an item of type T to a String.
*
* @param <T> The type of the item to transform.
</T> */
interface ToStringFunction<T> {
/**
* Transforms the input item to a string.
*
* @param item The item to transform.
* @return A string to use for c... | 0 | null | 15 | 93 | 96a1f63fa5a040be2ebbff616a73cf3eb1768bb7 | 766 | sepia-assist-server | MIT License |
project/Abschlussprojekt/CGAFramework/src/main/kotlin/cga/exercise/components/geometry/Skybox.kt | Me0li | 396,713,586 | true | {"Kotlin": 136754, "GLSL": 16286} | package cga.exercise.components.geometry
import jdk.jfr.Unsigned
import org.lwjgl.BufferUtils
import org.lwjgl.opengl.GL11
import org.lwjgl.opengl.GL15
import org.lwjgl.opengl.GL30.*
import org.lwjgl.stb.*
import java.nio.IntBuffer
class Skybox {
private var skyboxVertices: FloatArray = floatArrayOf(
-... | 0 | Kotlin | 0 | 0 | 2f40a8a67e97a0c033819ddf4b266fdb66433da6 | 3,350 | CGA_Project | MIT License |
src/main/kotlin/no/nav/familie/ef/mottak/config/ApplicationConfig.kt | blommish-test | 359,384,928 | true | {"Kotlin": 312719, "Shell": 269, "Dockerfile": 141} | package no.nav.familie.ef.mottak.config
import com.fasterxml.jackson.module.kotlin.KotlinModule
import no.nav.familie.http.config.RestTemplateBuilderBean
import no.nav.familie.http.interceptor.BearerTokenClientInterceptor
import no.nav.familie.http.interceptor.ConsumerIdClientInterceptor
import no.nav.familie.http.int... | 0 | null | 0 | 0 | 9719027a081bd3255bb3f429585612c90ec4f57d | 4,480 | familie-ef-mottak | MIT License |
app/src/main/kotlin/com/leopold/mvp/annotation/UserScope.kt | agustarc | 100,497,421 | false | {"Kotlin": 39862} | package com.leopold.mvp.annotation
import javax.inject.Scope
/**
* @author Leopold
*/
@Scope
@Retention(AnnotationRetention.RUNTIME)
annotation class UserScope | 0 | Kotlin | 6 | 27 | 13a0fa0975b7251ae17ee9a96566a40c66f12193 | 163 | MVPArchitecture | Apache License 2.0 |
booster-android-gradle-api/src/main/kotlin/com/didiglobal/booster/gradle/Project.kt | didi | 182,968,735 | false | {"Kotlin": 413557, "Java": 145867, "JavaScript": 1885} | package com.didiglobal.booster.gradle
import com.android.build.api.variant.AndroidComponentsExtension
import com.android.build.api.variant.ApplicationAndroidComponentsExtension
import com.android.build.api.variant.LibraryAndroidComponentsExtension
import com.android.build.api.variant.Variant
import com.android.build.g... | 41 | Kotlin | 577 | 4,831 | 3a72faebf8590537983ca74c0012b69636da3b5d | 8,985 | booster | Apache License 2.0 |
core/src/main/kotlin/net/corda/core/internal/cordapp/CordappProviderInternal.kt | corda | 70,137,417 | false | {"Kotlin": 10675960, "Java": 275115, "C++": 239894, "Python": 37811, "Shell": 28324, "CSS": 23544, "Groovy": 14725, "CMake": 5393, "Dockerfile": 2574, "Batchfile": 1777, "PowerShell": 660, "C": 454} | package net.corda.core.internal.cordapp
import net.corda.core.contracts.ContractAttachment
import net.corda.core.contracts.ContractClassName
import net.corda.core.cordapp.Cordapp
import net.corda.core.cordapp.CordappProvider
import net.corda.core.flows.FlowLogic
import net.corda.core.internal.verification.AttachmentFi... | 62 | Kotlin | 1077 | 3,989 | d27aa0e6850d3804d0982024054376d452e7073a | 1,039 | corda | Apache License 2.0 |
src/main/java/me/shadowalzazel/mcodyssey/effects/tasks/HoneyedTask.kt | ShadowAlzazel | 511,383,377 | false | {"Kotlin": 932750} | package me.shadowalzazel.mcodyssey.effects.tasks
import me.shadowalzazel.mcodyssey.constants.EffectTags
import org.bukkit.Particle
import org.bukkit.Sound
import org.bukkit.entity.LivingEntity
import org.bukkit.scheduler.BukkitRunnable
// HONEYED task
class HoneyedTask(private val honeyedVictim: LivingEntity, private... | 0 | Kotlin | 0 | 3 | 61e54feb192473e37d0ef91992645d82f6f14099 | 1,565 | MinecraftOdyssey | MIT License |
core/src/test/kotlin/de/codecentric/hikaku/extensions/PathExtensionsTest.kt | codecentric | 167,929,609 | false | {"Kotlin": 731151, "RAML": 5024, "Shell": 1492} | package de.codecentric.hikaku.extensions
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.Test
import java.nio.file.Files.createTempDirectory
import java.nio.file.Paths
import kotlin.test.assertFailsWith
class PathExtensionsTest {
@Nested
inner class CheckValidityTests {
@Test
... | 19 | Kotlin | 19 | 193 | b8a754f91b524b53a464167bf0abd6044caa25a4 | 1,693 | hikaku | Apache License 2.0 |
katalog-testing/src/main/kotlin/com/bol/katalog/testing/TestClock.kt | csu-anzai | 206,344,543 | true | {"Kotlin": 518462, "TypeScript": 149231, "HTML": 52073, "Java": 44310, "CSS": 1442, "HCL": 1015, "Dockerfile": 653, "Shell": 528} | package com.bol.katalog.testing
import java.time.Clock
import java.time.Duration
import java.time.Instant
import java.time.ZoneId
class TestClock(private var instant: Instant) : Clock() {
override fun withZone(zone: ZoneId?): Clock = throw NotImplementedError()
override fun getZone(): ZoneId = ZoneId.systemD... | 0 | null | 0 | 0 | e85038804bc7c146732461d3ce8decb8a5034ba6 | 621 | katalog | Apache License 2.0 |
apps/mobile/src/main/kotlin/dev/marlonlom/cappajv/ui/theme/Theme.kt | marlonlom | 766,685,767 | false | {"Kotlin": 317290} | /*
* Copyright 2024 Marlonlom
* SPDX-License-Identifier: Apache-2.0
*/
package dev.marlonlom.apps.cappajv.ui.theme
import android.app.Activity
import android.os.Build
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.... | 0 | Kotlin | 0 | 0 | 669e0b66b8f8822a67ab6e820c2f632137f81f3b | 4,747 | cappajv | Apache License 2.0 |
components/share/uploader/src/main/kotlin/com/flipperdevices/uploader/compose/content/ComposableSheetPending.kt | flipperdevices | 288,258,832 | false | null | package com.flipperdevices.uploader.compose.content
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
impor... | 21 | null | 174 | 999 | ef27b6b6a78a59b603ac858de2c88f75b743f432 | 3,241 | Flipper-Android-App | MIT License |
app/src/main/java/com/xiaoxin/toolkit/http/BaseException.kt | XiaoXin956 | 474,917,723 | false | null | //package com.xiaoxin.toolkit.http
//
//import android.net.ParseException
//import android.util.Log
//import android.util.MalformedJsonException
//import com.google.gson.JsonParseException
//import com.xiaoxin.toolkit.HttpResponse
//import org.json.JSONException
//import retrofit2.HttpException
//import java.io.FileNot... | 0 | Kotlin | 0 | 4 | bdbf05f52535978e947e3c1f0803e0f9dc4377d2 | 7,338 | Toolkit | Apache License 2.0 |
app/src/main/java/my/dictionary/free/view/dialogs/DialogBuilders.kt | viacheslavtitov | 605,498,191 | false | {"Kotlin": 171766} | package my.dictionary.free.view.dialogs
class DialogBuilders {
abstract class AbstractDialogBuilder : ISimpleInfoDialogBuilder {
internal var title: String? = null
internal var description: String? = null
internal var okButtonTitle: String? = null
internal var iconRes: Int? = null... | 0 | Kotlin | 0 | 0 | a77bd30985f2f3005ae6a693a4a1a59c84573520 | 3,665 | Easy-Dictionary-Android | MIT License |
Tutorial1-1Paging-Room/src/main/java/com/smarttoolfactory/tutorial1_1pagingwithdb/WordRepository.kt | SmartToolFactory | 216,348,965 | false | null | package com.smarttoolfactory.tutorial1_1pagingwithdb
import android.app.Application
import androidx.lifecycle.LiveData
import androidx.paging.DataSource
import androidx.paging.LivePagedListBuilder
import androidx.paging.PagedList
import com.smarttoolfactory.tutorial1_1pagingwithdb.data.Word
import com.smarttoolfactory... | 1 | null | 1 | 2 | cd06e85b6da809c3749a4cbfc2002b7dc2e82731 | 2,802 | Paging-Library-Tutorials | Apache License 2.0 |
failgood/test/failgood/junit/it/fixtures/SimpleClassTestFixture.kt | failgood | 323,114,755 | false | {"Kotlin": 411790, "Java": 130} | package failgood.junit.it.fixtures
import failgood.internal.TestFixture
import failgood.testCollection
@TestFixture
class SimpleClassTestFixture {
val tests = testCollection("the root context (with brackets)") { it("the test name") {} }
}
| 38 | Kotlin | 4 | 31 | bfb8a1e22350143fc27b12f295ad78d22541a792 | 245 | failgood | MIT License |
backend/src/main/kotlin/br/tapajos/example/application/port/input/CreateObjectsUseCase.kt | yanBrandao | 311,519,801 | false | null | package br.tapajos.example.application.port.input
import br.tapajos.example.application.domain.Objectt
interface CreateObjectsUseCase {
fun execute(objectt: Objectt): Objectt
} | 0 | Kotlin | 0 | 0 | 4789957f09e2ef8fb874836aa4dd19eb4dc58f83 | 182 | image_and_action | MIT License |
app/src/main/java/com/ninjahoahong/unstoppable/home/HomeKey.kt | ninjahoahong | 99,034,743 | false | null | package com.ninjahoahong.unstoppable.home
import com.ninjahoahong.unstoppable.utils.BaseKey
import kotlinx.android.parcel.Parcelize
@Parcelize
data class HomeKey(val tag: String) : BaseKey() {
constructor() : this("HomeKey")
override fun createFragment() = HomeFragment()
} | 0 | Kotlin | 0 | 0 | 0aa900980f928c7b7bdc175a5265b7fbfb60e7e0 | 284 | unstoppable | MIT License |
app/src/main/java/com/elementary/tasks/settings/calendar/CalendarSettingsFragment.kt | naz013 | 165,067,747 | false | {"Kotlin": 2971145, "HTML": 20925} | package com.elementary.tasks.settings.calendar
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.elementary.tasks.R
import com.elementary.tasks.core.os.Permissions
import com.elementary.tasks.core.utils.GoogleCalendarUtils
import com.elementar... | 0 | Kotlin | 3 | 6 | a6eecfda739be05a4b84e7d47284cd9e2bc782d6 | 9,898 | reminder-kotlin | Apache License 2.0 |
android-kit-base/src/test/kotlin/com/mparticle/kits/CommerceEventUtilsTest.kt | mParticle | 42,615,957 | false | null | package com.mparticle.kits
import org.junit.Assert
import org.junit.Test
class CommerceEventUtilsTest {
@Test
@Throws(Exception::class)
fun testNullProductExpansion() {
Assert.assertNotNull(CommerceEventUtils.expand(null))
Assert.assertEquals(0, CommerceEventUtils.expand(null).size.toLong(... | 28 | null | 62 | 58 | d8c70f35fad1ad0c794eb06f1c1671a0ce20e194 | 331 | mparticle-android-sdk | Apache License 2.0 |
compiler/fir/analysis-tests/testData/resolve/extraCheckers/UselessCallOnNotNullChecker/isNullOrEmptyFromJava.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... | // FILE: SomeUtil.java
public class SomeUtil {
public static boolean isNullOrEmpty(Object value) {
return value == null;
}
}
// FILE: main.kt
interface Foo
fun test(p: Foo) {
SomeUtil.isNullOrEmpty(p)
}
| 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 227 | kotlin | Apache License 2.0 |
app/src/main/java/com/dscoding/parkingspotfinder/data/ParkingSpotMapper.kt | diogosantos41 | 720,518,624 | false | {"Kotlin": 27614} | package com.dscoding.parkingspotfinder.data
import com.dscoding.parkingspotfinder.domain.ParkingSpot
fun ParkingSpotEntity.toParkingSpot(): ParkingSpot {
return ParkingSpot(
lat = lat,
lng = lng,
id = id
)
}
fun ParkingSpot.toParkingSpotEntity(): ParkingSpotEntity {
return Parking... | 0 | Kotlin | 0 | 0 | 1ec8ca38e0704838206a65940b13cca43db32832 | 393 | parking-spot-finder-android | MIT License |
composeApp/src/commonMain/kotlin/com/calvin/box/movie/navigation/ScreenContainer.kt | lhzheng880828 | 834,021,637 | false | {"Kotlin": 829774, "Java": 712396, "JavaScript": 198922, "Shell": 3042, "Ruby": 2141, "Batchfile": 1261, "Swift": 1155, "HTML": 334, "CSS": 102} | package com.calvin.box.movie.navigation
import androidx.compose.runtime.compositionLocalOf
import cafe.adriel.voyager.core.screen.Screen
import com.calvin.box.movie.model.VideoModel
interface ScreenContainer {
fun goToVideoPlayerScreen(currentVideo: VideoModel): Screen
}
val LocalScreenContainer =
compositi... | 0 | Kotlin | 0 | 1 | 55c3464e1026b95a3c7b1c967d98dc172d27263d | 387 | MovieBox | Apache License 2.0 |
src/main/kotlin/no/nav/familie/ks/sak/kjerne/eøs/vilkårsvurdering/VilkårsvurderingTidslinjer.kt | navikt | 533,308,075 | false | {"Kotlin": 2778706, "Shell": 1039, "Dockerfile": 141} | package no.nav.familie.ks.sak.kjerne.eøs.vilkårsvurdering
import no.nav.familie.ks.sak.common.tidslinje.beskjærEtter
import no.nav.familie.ks.sak.common.tidslinje.inneholder
import no.nav.familie.ks.sak.common.tidslinje.tomTidslinje
import no.nav.familie.ks.sak.common.tidslinje.utvidelser.kombiner
import no.nav.famili... | 3 | Kotlin | 1 | 2 | f798d3ec05f042b5648ffe04eae645866ca0e24b | 3,122 | familie-ks-sak | MIT License |
src/main/kotlin/no/nav/familie/ks/sak/kjerne/eøs/vilkårsvurdering/VilkårsvurderingTidslinjer.kt | navikt | 533,308,075 | false | {"Kotlin": 2778706, "Shell": 1039, "Dockerfile": 141} | package no.nav.familie.ks.sak.kjerne.eøs.vilkårsvurdering
import no.nav.familie.ks.sak.common.tidslinje.beskjærEtter
import no.nav.familie.ks.sak.common.tidslinje.inneholder
import no.nav.familie.ks.sak.common.tidslinje.tomTidslinje
import no.nav.familie.ks.sak.common.tidslinje.utvidelser.kombiner
import no.nav.famili... | 3 | Kotlin | 1 | 2 | f798d3ec05f042b5648ffe04eae645866ca0e24b | 3,122 | familie-ks-sak | MIT License |
system/src/main/kotlin/cn/soybean/system/projection/tenant/TenantDeletedProjection.kt | soybeanjs | 467,859,867 | false | {"Kotlin": 341265, "HTML": 244772, "Python": 958, "Makefile": 571} | package cn.soybean.system.projection.tenant
import cn.soybean.shared.domain.aggregate.AggregateEventEntity
import cn.soybean.shared.projection.Projection
import cn.soybean.system.domain.event.tenant.TenantDeletedEventBase
import io.quarkus.hibernate.reactive.panache.common.WithTransaction
import io.smallrye.mutiny.Uni... | 4 | Kotlin | 89 | 212 | 59063051768682aded5680c868dff79cb9e9c3c9 | 666 | soybean-admin-quarkus | MIT License |
app/src/test/java/reach52/marketplace/community/Common.kt | reach52 | 422,514,975 | false | {"Kotlin": 1436380, "Java": 18303} | package reach52.marketplace.community
import android.content.Context
import android.net.ConnectivityManager
import android.net.NetworkCapabilities
import android.net.NetworkInfo
import io.reactivex.android.plugins.RxAndroidPlugins
import io.reactivex.schedulers.Schedulers
import org.mockito.Mockito
fun <T> When(metho... | 0 | Kotlin | 0 | 0 | 629c52368d06f978f19238d0bd865f4ef84c23d8 | 1,476 | Marketplace-Community-Edition | MIT License |
app/src/test/java/com/example/typingmaster/KeystrokesRepositoryTest.kt | malikdawar | 756,851,091 | false | null | package com.example.threatfabric
import com.example.threatfabric.data.db.KeystrokesDao
import com.example.threatfabric.data.db.KeystrokesData
import com.example.threatfabric.data.repository.KeystrokesRepository
import junit.framework.TestCase.assertEquals
import kotlinx.coroutines.runBlocking
import org.junit.Before
i... | 0 | null | 0 | 1 | 5b7750196eb5aebb7301b066f0e63b987b379dec | 2,442 | TypingMaster | MIT License |
telegram-bot/src/commonMain/kotlin/eu/vendeli/tgbot/utils/builders/EntitiesCtxBuilder.kt | vendelieu | 496,567,172 | false | {"Kotlin": 925708, "CSS": 356} | package eu.vendeli.tgbot.utils.builders
import eu.vendeli.tgbot.interfaces.TgAction
import eu.vendeli.tgbot.types.EntityType
import eu.vendeli.tgbot.types.EntityType.Blockquote
import eu.vendeli.tgbot.types.EntityType.Bold
import eu.vendeli.tgbot.types.EntityType.BotCommand
import eu.vendeli.tgbot.types.EntityType.Cas... | 6 | Kotlin | 9 | 165 | c1ddf4a42c577410af31249dc650858320668263 | 5,862 | telegram-bot | Apache License 2.0 |
app/src/main/java/com/cuong/moviehero/ui/components/TitleBar.kt | cuonghuynhvan | 471,910,042 | false | {"Kotlin": 141883} | package com.cuong.moviehero.ui.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.Composable... | 0 | Kotlin | 0 | 0 | 36bc4b4d840343e7f7b63bc70f81546f8b49665d | 1,605 | MovieHero | MIT License |
androidApp/src/main/java/com/ramitsuri/podcasts/android/ui/ThemePreview.kt | ramitsuri | 760,212,962 | false | {"Kotlin": 558852, "Shell": 9622, "Swift": 296} | package com.ramitsuri.podcasts.android.ui
import android.content.res.Configuration
import androidx.compose.material3.Surface
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
@Preview(uiMode = Configuration.UI_MODE_NIGHT_YES, showBackground = true, name = "Dark")
@Preview(u... | 2 | Kotlin | 0 | 1 | b43522bae0113efa5eceb5505c19c8b57cfb27d9 | 567 | podcasts | MIT License |
app/src/main/java/com/kardia/membership/features/utils/AppLog.kt | trungthaihieu93-dev | 359,315,080 | false | null | package com.kardia.membership.features.utils
import android.util.Log
import com.kardia.membership.BuildConfig
class AppLog {
companion object {
@JvmStatic
fun e(tag: String, message: String) {
if (BuildConfig.DEBUG) Log.e(tag, message)
}
fun e(tag: String, message: Str... | 0 | null | 0 | 0 | 00e51171479e259edbccf36ee155dc8e4489e40f | 528 | kai-membership-kotlin | MIT License |
error-handler-rest/src/main/java/com/halcyonmobile/errorhandlerrest/exception/SerializationException.kt | halcyonmobile | 266,983,268 | false | null | package com.halcyonmobile.errorhandlerrest.exception
import com.halcyonmobile.errorparsing.NetworkException
/**
* Exception representing any kind of serialization failure.
*
* @see [com.halcyonmobile.errorhandlerrest.SerializationExceptionConverter]
*/
class SerializationException(throwable: Throwable) : NetworkE... | 15 | Kotlin | 0 | 4 | d18da91eba263ee3218ca058ad4b30b975da369d | 351 | error-handler | Apache License 2.0 |
app/src/main/java/com/petnagy/superexchange/databinding/RecyclerViewBindingAdapter.kt | petnagy | 151,879,510 | false | null | package com.petnagy.superexchange.databinding
import android.databinding.BindingAdapter
import android.support.annotation.LayoutRes
import android.support.v7.widget.GridLayoutManager
import android.support.v7.widget.RecyclerView
import com.petnagy.superexchange.recyclerview.ListItemViewModel
import com.petnagy.superex... | 0 | Kotlin | 0 | 0 | 8b8df7312a209c9b2b8c2b0737d78e365b9791cc | 1,312 | super_exchange | Apache License 2.0 |
analysis/src/org/jetbrains/kotlin/idea/decompiler/common/KotlinMetadataStubBuilder.kt | JetBrains | 278,369,660 | false | null | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.decompiler.common
import com.intellij.openapi.fileTypes.FileType
import com.intellij.openapi.vfs.VirtualFile
import com.intel... | 191 | Kotlin | 4372 | 71 | b6789690db56407ae2d6d62746fb69dc99d68c84 | 2,979 | intellij-kotlin | Apache License 2.0 |
core/src/main/java/org/futo/circles/core/feature/whats_new/WhatsNewDialog.kt | circles-project | 615,347,618 | false | {"Kotlin": 1307644, "C": 137821, "C++": 12364, "Shell": 3202, "CMake": 1680, "Ruby": 922} | package org.futo.circles.core.feature.whats_new
import android.app.ActionBar
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.graphics.drawable.InsetDrawable
import android.os.Bundle
import android.text.method.ScrollingMovementMethod
import andr... | 8 | Kotlin | 4 | 29 | 7edec708f9c491a7b6f139fc2f2aa3e2b7149112 | 2,309 | circles-android | Apache License 2.0 |
model-datastructure/src/commonMain/kotlin/org/modelix/model/operations/MoveNodeOp.kt | modelix | 533,211,353 | false | null | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed ... | 49 | null | 9 | 6 | 48aa04bf386063b4093424166a263cee7cc69983 | 3,429 | modelix.core | Apache License 2.0 |
compiler/testData/diagnostics/tests/collectionLiterals/basicCollectionLiterals.fir.kt | android | 263,405,600 | false | null | // !WITH_NEW_INFERENCE
// !CHECK_TYPE
// !DIAGNOSTICS: -UNUSED_VARIABLE, -UNSUPPORTED
fun test() {
val a = []
val b: Array<Int> = []
val c = [1, 2]
val d: Array<Int> = [1, 2]
val e: Array<String> = [1]
val f: IntArray = [1, 2]
val g = [f]
}
fun check() {
[1, 2] checkType { <!UNRESOLVE... | 0 | null | 37 | 316 | 74126637a097f5e6b099a7b7a4263468ecfda144 | 591 | kotlin | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/kinesisanalyticsv2/InputLambdaProcessorPropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.kinesisanalyticsv2
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.kinesisanalyticsv2.CfnApplication
@Generated
public fun buildInputLambdaProcessorProperty(initializer: @AwsCdkDsl
C... | 1 | Kotlin | 0 | 0 | e08d201715c6bd4914fdc443682badc2ccc74bea | 519 | aws-cdk-kt | Apache License 2.0 |
graphql/src/main/kotlin/com/joe/quizzy/graphql/dataloaders/ResponseGradeLoader.kt | josephlbarnett | 257,994,447 | false | {"Kotlin": 272662, "Vue": 101105, "TypeScript": 72127, "JavaScript": 1728, "HTML": 880, "Dockerfile": 482} | package com.joe.quizzy.graphql.dataloaders
import com.joe.quizzy.api.models.Grade
import com.joe.quizzy.persistence.api.GradeDAO
import com.trib3.graphql.execution.CoroutineMappedBatchLoader
import org.dataloader.BatchLoaderEnvironment
import java.util.UUID
/**
* Batch load Response ID -> Grade
*/
class ResponseGra... | 9 | Kotlin | 0 | 2 | ea6b1f4114b1afa5884f457b7f236a23ccf89d5c | 634 | quizzy | Apache License 2.0 |
keel-core/src/main/kotlin/com/netflix/spinnaker/keel/enforcers/EnvironmentExclusionEnforcer.kt | danielpeach | 352,888,129 | true | {"Kotlin": 2770258, "Java": 20143, "Shell": 1691, "Slim": 359} | package com.netflix.spinnaker.keel.enforcers
import com.netflix.spectator.api.Registry
import com.netflix.spectator.api.histogram.PercentileTimer
import com.netflix.spinnaker.keel.api.DeliveryConfig
import org.springframework.core.env.Environment as SpringEnvironment
import com.netflix.spinnaker.keel.api.Environment
i... | 0 | null | 0 | 0 | dbe1677897a6dbbea4682d11c52dc0ad46818c26 | 5,370 | keel | Apache License 2.0 |
demo-exoplayer/src/main/java/toro/demo/exoplayer/DemoItemsFragment.kt | mukashivn | 128,860,769 | false | null | /*
* Copyright (c) 2018 Nam Nguyen, nam@ene.im
*
* 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... | 1 | null | 1 | 1 | 6b2a38e6a735b6f4e05dda2590a6bd60a6e4f50b | 7,258 | toro | Apache License 2.0 |
Problems/Algorithms/278. First Bad Version/FirstBadVersion.kt | xuedong | 189,745,542 | false | {"Text": 1, "Ignore List": 1, "Markdown": 1, "Python": 498, "Kotlin": 443, "Java": 343, "Go": 55, "C++": 150, "Rust": 141, "Ruby": 2, "Dart": 1, "Erlang": 1, "Racket": 1, "Elixir": 1, "Scala": 2, "C": 2, "JavaScript": 22, "C#": 2, "Shell": 2, "SQL": 34, "JSON": 1, "Swift": 1, "TSX": 1} | /* The isBadVersion API is defined in the parent class VersionControl.
fun isBadVersion(version: Int) : Boolean {} */
class Solution: VersionControl() {
override fun firstBadVersion(n: Int) : Int {
var left = 1
var right = n
while (left < right) {
val mid = left +... | 0 | Kotlin | 0 | 1 | eb637d11ca27ac57b296aad1114a9c86b3dad1aa | 560 | leet-code | MIT License |
app/src/main/java/com/github/pierry/test/asset/presentation/model/RiskInfo.kt | Pierry | 181,939,647 | false | null | package com.github.pierry.test.asset.presentation.model
data class RiskInfo(
val title: String,
val risk: Int
) | 0 | Kotlin | 0 | 1 | 24667ca844f8a5dbcd745599523cd71af8854ae4 | 128 | test-android-example | MIT License |
data/src/main/java/com/teamwiney/data/network/model/response/RecommendWine.kt | AdultOfNineteen | 639,481,288 | false | {"Kotlin": 875700} | package com.teamwiney.data.network.model.response
import com.google.gson.annotations.SerializedName
data class RecommendWine(
@SerializedName("wineId")
val wineId: Long,
@SerializedName("name")
val name: String,
@SerializedName("country")
val country: String,
@SerializedName("type")
va... | 19 | Kotlin | 1 | 12 | 5c001d291d145548dcf006799a10fcd7639e10ef | 649 | WINEY-Android | MIT License |
marvel-app-stater-main/app/src/main/java/daniel/lop/io/marvelappstarter/data/local/MarvelConverters.kt | pedroabreudev | 607,452,286 | false | null | package daniel.lop.io.marvelappstarter.data.local
import androidx.room.TypeConverter
import com.google.gson.Gson
import daniel.lop.io.marvelappstarter.data.model.ThumbnailModel
class MarvelConverters {
@TypeConverter
fun fromThumbnail(thumbnailModel: ThumbnailModel) : String = Gson().toJson(thumbnailModel)
... | 0 | Kotlin | 1 | 0 | d87dfbb110e5503e238ddbbaa53c766e96a5ec17 | 471 | Mobile-Development-Courses | MIT License |
compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/receiver.kt | JakeWharton | 99,388,807 | false | null | // !LANGUAGE: +AllowContractsForCustomFunctions +UseReturnsEffect
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
// !DIAGNOSTICS: -INVISIBLE_REFERENCE -INVISIBLE_MEMBER
// !WITH_NEW_INFERENCE
import kotlin.contracts.*
fun Any?.isNull(): Boolean {
contract {
returns(false) implies (this@isNul... | 34 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 724 | kotlin | Apache License 2.0 |
compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/receiver.kt | JakeWharton | 99,388,807 | false | null | // !LANGUAGE: +AllowContractsForCustomFunctions +UseReturnsEffect
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
// !DIAGNOSTICS: -INVISIBLE_REFERENCE -INVISIBLE_MEMBER
// !WITH_NEW_INFERENCE
import kotlin.contracts.*
fun Any?.isNull(): Boolean {
contract {
returns(false) implies (this@isNul... | 34 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 724 | kotlin | Apache License 2.0 |
src/main/kotlin/com/mairwunnx/projectessentials/core/impl/vanilla/commands/GiveCommand.kt | KuroNoSeiHai | 269,961,473 | true | {"Kotlin": 564654, "Java": 145273, "Groovy": 4174} | /**
* This command implementation by Mojang.
* And decompiled with idea source code was converted
* to kotlin code.
* Also added some logic, for example checking on
* permissions, and for some commands shorten aliases.
*
* 1. This can be bad code.
* 2. This file can be not formatter pretty.
*/
package com.mai... | 0 | Kotlin | 0 | 0 | 6bdd903e1c98858003922051971b40a96174f50a | 6,797 | ProjectEssentials-Core | MIT License |
platform/platform-impl/src/com/intellij/workspaceModel/ide/impl/jps/serialization/JpsProjectModelSynchronizer.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.workspaceModel.ide.impl.jps.serialization
import com.intellij.configurationStore.StoreReloadManager
import com.intellij.configurationStore.isFireStorageFileChangedEvent
import c... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 24,802 | intellij-community | Apache License 2.0 |
app/src/main/java/com/ahmet/kotlinanimalapp/service/AnimalDatabase.kt | ahmetufan | 487,898,639 | false | {"Kotlin": 25223} | package com.ahmet.kotlinanimalapp.service
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.ahmet.kotlinanimalapp.model.Model2
@Database(entities = [Model2::class], version = 1)
abstract class AnimalDatabase:RoomDatabase() {
abstra... | 0 | Kotlin | 0 | 0 | f54e704e51c131c4d770883ef7c311b84c8499e4 | 831 | AnimalApp | MIT License |
common/src/main/java/com/revenuecat/purchases/common/Backend.kt | RevenueCat | 127,346,826 | false | null | // Purchases
//
// Copyright © 2019 RevenueCat, Inc. All rights reserved.
//
package com.revenuecat.purchases.common
import android.net.Uri
import com.revenuecat.purchases.PurchaserInfo
import com.revenuecat.purchases.PurchasesError
import com.revenuecat.purchases.PurchasesErrorCode
import com.revenuecat.purchases.... | 7 | null | 34 | 167 | 3663eb4ad21a76930b136d9e3dd1293b1680d493 | 13,648 | purchases-android | MIT License |
src/nativeMain/kotlin/Main.kt | Kotlin | 709,686,971 | false | {"Kotlin": 51} | fun main() {
println("Hello, Kotlin/Native!")
}
| 1 | Kotlin | 2 | 4 | 891fb5162a19ed17f7dff6a49ee58121b28e9f1c | 52 | kmp-native-wizard | Apache License 2.0 |
module_home/src/main/java/com/czl/module_home/activity/MainActivity.kt | pigletzzzzzz | 516,985,475 | false | {"Kotlin": 723880, "Java": 176802} | package com.czl.module_home.activity
import com.alibaba.android.arouter.facade.annotation.Route
import com.ashokvarma.bottomnavigation.BottomNavigationBar
import com.ashokvarma.bottomnavigation.BottomNavigationItem
import com.czl.lib_base.adapter.ViewPagerFmAdapter
import com.czl.lib_base.base.AppManager
import com.cz... | 0 | Kotlin | 0 | 0 | a3276c0149c7d2d3284a6a4d83fa5cb3874664e9 | 4,002 | XPZX-New_Kotlin | Apache License 2.0 |
app/src/main/java/com/suyash/creditmanager/presentation/cc_detail/CCDetailViewModel.kt | suyash01 | 732,788,266 | false | {"Kotlin": 282293} | package com.suyash.creditmanager.presentation.cc_detail
import androidx.datastore.core.DataStore
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.suyash.creditmanager.data.settings.AppSettings
import com.suyash.creditmanager.domain.model... | 0 | Kotlin | 0 | 0 | ea4bcd5c53d1b66c54ba144d0772378c5b4f566e | 2,422 | credit-manager | Apache License 2.0 |
app/src/main/java/com/example/skindiseasedetectionapp/model/UserModel.kt | Capstone-2022-C22-PS080 | 500,401,347 | false | {"Kotlin": 126529} | package com.example.skindiseasedetectionapp.model
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class UserModel(
var userId : String? = null,
var email: String? = null,
var name: String? = null,
var default_profile: Int? = null,
var photo_profile: String? = null,
... | 0 | Kotlin | 1 | 0 | 389db0480b81f4ef88c0394783718e18963694bc | 334 | sskin-mobile | MIT License |
src/main/kotlin/com/msg/gcms/domain/clubMember/service/impl/DelegateHeadServiceImpl.kt | GSM-MSG | 592,816,374 | false | null | package com.msg.gcms.domain.clubMember.service.impl
import com.msg.gcms.domain.auth.domain.Role
import com.msg.gcms.domain.club.domain.repository.ClubRepository
import com.msg.gcms.domain.club.exception.ClubNotFoundException
import com.msg.gcms.domain.club.exception.HeadNotSameException
import com.msg.gcms.domain.club... | 9 | null | 0 | 8 | d55e8ed3f343acca0c3937cf07b6fcfb8dd30598 | 2,431 | GCMS-BackEnd | MIT License |
src/main/kotlin/furhatos/app/cardgame/flow/trackUsers.kt | horotat | 518,806,515 | false | {"Kotlin": 252871, "JavaScript": 58777, "Java": 21569, "FreeMarker": 16510, "HTML": 4928, "CSS": 4484} | package furhatos.app.cardgame.flow
import furhatos.app.cardgame.ActionPlayersUpdate
import furhatos.app.cardgame.SenseSpeechDetected
import furhatos.app.cardgame.attendCheck
import furhatos.app.cardgame.leftToRight
import furhatos.event.CustomEvent
import furhatos.event.Event
import furhatos.event.actions.ActionConfig... | 0 | Kotlin | 0 | 0 | a95aa619831614f5347cb7ffee762bbb32735211 | 1,518 | Card-Game-21 | Creative Commons Attribution 4.0 International |
app/src/main/java/com/halfminute/itmadness/WordsJson.kt | Stensel8 | 722,087,681 | false | {"Kotlin": 100847, "Java": 36512} | package com.halfminute.itmadness
object WordsJson {
@JvmField
val myWords = """
{
"easyWords": [
{
"frWord": "Bonjour",
"nlWord": "Goeiedag",
"enWord": "Hello",
"deWord": "Hallo"
},
{
"frWord": "Annuler",
"nlWord": "Afzeggen",
"enWord": "To ca... | 3 | Kotlin | 0 | 1 | 88b638f644e0509e68dbde4228243aa6dcd93136 | 46,290 | Half-a-Minute-IT-Madness-Android | MIT License |
app/src/androidTest/java/com/freshdigitable/udonroad2/user/UserActivityRobot.kt | akihito104 | 149,869,805 | false | {"YAML": 4, "Gradle Kotlin DSL": 7, "JSON": 1, "Kotlin": 263, "Java Properties": 10, "Shell": 1, "Text": 1, "Ignore List": 17, "Batchfile": 1, "EditorConfig": 1, "Gradle": 12, "Proguard": 17, "XML": 147, "Java": 3, "INI": 7, "PlantUML": 3} | /*
* Copyright (c) 2020. Matsuda, Akihit (akihito104)
*
* 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... | 21 | null | 1 | 1 | 7ec50f204fda79cf222b24623f22e80d05301555 | 3,045 | UdonRoad2 | Apache License 2.0 |
oauth2-authorization-server-starter/src/test/kotlin/com/labijie/infra/oauth2/testing/ITwofactorUSerDetailsSerializationTester.kt | hongque-pro | 308,310,231 | false | {"Kotlin": 246983} | package com.labijie.infra.oauth2.testing
import com.fasterxml.jackson.core.type.TypeReference
import com.labijie.infra.json.JacksonHelper
import com.labijie.infra.oauth2.serialization.jackson.OAuth2JacksonModule
import com.labijie.infra.oauth2.testing.component.TestingIdentityService
import org.springframework.securit... | 0 | Kotlin | 0 | 5 | 31e1285b565ad35c2af8c870f2357fdefbd2b94a | 2,768 | infra-oauth2 | Apache License 2.0 |
app/src/main/java/com/picassos/betamax/android/data/mapper/SeasonsMapper.kt | aelrahmanashraf | 581,933,102 | false | {"Kotlin": 768121} | package com.picassos.betamax.android.data.mapper
import com.picassos.betamax.android.data.source.remote.dto.SeasonsDto
import com.picassos.betamax.android.domain.model.Seasons
fun SeasonsDto.toSeasons(): Seasons {
return Seasons(
seasons = seasons.map { season ->
Seasons.Season(
... | 0 | Kotlin | 0 | 0 | 004716ab1e75f18e85a88bed966078d439dd6e0a | 517 | betamax-android | MIT License |
compiler-plugin/src/main/java/io/mths/kava/compiler/KavaClassId.kt | MerlinTHS | 598,539,841 | false | null | package io.mths.kava.compiler
import org.jetbrains.kotlin.name.ClassId
object KavaClassId {
val Exception = ClassId.fromString("java/lang/Exception")
} | 0 | Kotlin | 0 | 0 | 5d038afd21c7099a47eb889422dbdb4b34926d0f | 157 | KavaCompilerPlugin | Apache License 2.0 |
app/src/main/java/com/challenge/bluelabsmovieapp/SplashScreen.kt | cdmejiam94 | 523,460,707 | false | {"Kotlin": 20965} | package com.challenge.bluelabsmovieapp
import android.animation.Animator
import android.animation.AnimatorListenerAdapter
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import android.view.View
import android.widget.ImageView
import andr... | 0 | Kotlin | 0 | 0 | 575048b7ec3e1c409b01e8bbbcc815e8d53fe1cc | 1,572 | blue-labs-movie-app | MIT License |
src/main/kotlin/de/shd/basis/kotlin/ui/media/MediaType.kt | shd-de | 224,015,327 | false | null | package de.shd.basis.kotlin.ui.media
/**
* Jeder Wert dieses Enums repräsentiert einen [Internet Media Type](https://de.wikipedia.org/wiki/Internet_Media_Type) (auch bekannt als "MIME Type"
* oder "Content Type"), der u.a. dazu genutzt wird, um anzugeben, in was für einem Format Daten übertragen werden. Dies können ... | 0 | Kotlin | 0 | 3 | fafbe80d98f796fef34f7606aed92403b75d5460 | 563 | powalin | Apache License 2.0 |
orb-kotlin-core/src/main/kotlin/com/withorb/api/services/blocking/AlertServiceImpl.kt | orbcorp | 797,931,036 | false | {"Kotlin": 10239831, "Shell": 3839, "Dockerfile": 366} | // File generated from our OpenAPI spec by Stainless.
package com.withorb.api.services.blocking
import com.withorb.api.core.ClientOptions
import com.withorb.api.core.RequestOptions
import com.withorb.api.core.http.HttpMethod
import com.withorb.api.core.http.HttpRequest
import com.withorb.api.core.http.HttpResponse.Ha... | 1 | Kotlin | 0 | 0 | d2ad23f9ba9b60d46900e154bf3c3ef1d7736222 | 11,475 | orb-kotlin | Apache License 2.0 |
app/src/main/java/com/cocdetails/ui/nodels/home/Level.kt | iKhan1057 | 571,087,717 | false | null | package com.cocdetails.ui.nodels.home
data class Level(
val id: String,
val name: String,
val th:String
) | 0 | Kotlin | 0 | 0 | 761228f09ea423a1745e556330c4c2b34fe0af38 | 118 | cocinfo | Apache License 2.0 |
app/src/main/java/co/ello/android/ello/network/parsers/RegionParser.kt | ello | 129,277,321 | false | null | package co.ello.android.ello
class RegionParser {
companion object {
fun graphQLRegions(jsonList: JSON, isRepostContent: Boolean = false): List<Regionable> {
val regions = jsonList.list ?: return emptyList()
return regions.flatMap(fun (json: JSON): List<Regionable> {
... | 0 | Kotlin | 0 | 2 | 489a1b9f0acf5c2b92bd65ada7e73b91fc8e2ff4 | 2,096 | android | MIT License |
xesar-connect/src/test/kotlin/com/open200/xesar/connect/it/command/AddZoneAuthorizationToMediumTest.kt | open200 | 684,928,079 | false | {"Kotlin": 839009} | package com.open200.xesar.connect.command
import com.open200.xesar.connect.Topics
import com.open200.xesar.connect.XesarConnect
import com.open200.xesar.connect.XesarMqttClient
import com.open200.xesar.connect.extension.addZoneAuthorizationToMediumAsync
import com.open200.xesar.connect.messages.command.AuthorizationDa... | 18 | Kotlin | 1 | 10 | c021a68d197bac5df431deafcdc83030c4cc635e | 4,501 | xesar-connect | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.