path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/com/project/tbot/TBotApplication.kt | devkirill | 296,955,440 | false | null | package com.project.tbot
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.scheduling.annotation.EnableScheduling
import org.telegram.telegrambots.ApiContextInitializer
import org.telegram.telegrambots.meta.Teleg... | 0 | Kotlin | 0 | 0 | 501b811c3e5294e19b9f33f19dd83f55cf2fc159 | 934 | tbot | MIT License |
networklogger/okhttp/src/main/java/dev/kgbier/util/networklogger/okhttp/NetworkLoggerOkHttpInterceptor.kt | kgbier | 507,474,119 | false | {"Kotlin": 60380, "Shell": 392} | package dev.kgbier.util.networklogger.okhttp
import dev.kgbier.util.networklogger.repository.NetworkLoggerRepository
import java.util.UUID
class NetworkLoggerOkHttpInterceptor(
private val loggingRepo: NetworkLoggerRepository,
) : okhttp3.Interceptor {
override fun intercept(chain: okhttp3.Interceptor.Chain)... | 0 | Kotlin | 1 | 1 | 7edb7a6901b1b4234195defa366310f2ae9a3645 | 1,331 | network-logger-android | MIT License |
fragment_lazy/src/main/java/fragment/develop/android/lazy/TestLazyFragment.kt | 7449 | 69,446,568 | false | {"Gradle": 55, "INI": 1, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 83, "XML": 299, "Kotlin": 132, "Java": 260, "Checksums": 6, "Java Properties": 2, "HTML": 2, "JSON": 3, "CSS": 1, "JavaScript": 7} | package fragment.develop.android.lazy
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.view.View
import android.widget.ProgressBar
import android.widget.TextView
class TestLazyFragment : LazyFragment() {
companion object {
private const val FRAGMENT_INDEX = "frag... | 0 | Java | 35 | 31 | e9317e538de09bfb7c1ec8ddd709211f51368049 | 1,799 | AndroidDevelop | Apache License 2.0 |
ProjetoBD/backEnd/login-api/src/main/kotlin/br/com/jhonnathan/domain/entity/User.kt | Jhonnathan-Jhonny | 752,604,468 | false | {"Kotlin": 132581} | package br.com.jhonnathan.domain.entity
import br.com.jhonnathan.application.response.UserResponse
import org.bson.codecs.pojo.annotations.BsonId
import org.bson.types.ObjectId
data class User (
@BsonId
val id: ObjectId,
val name:String,
val email:String,
val password:String
){
fun toResponse(... | 0 | Kotlin | 0 | 0 | 10ea00f4b936dcbd0f47b09c6189dd698b496022 | 447 | Kotlin-AndroidStudio | MIT License |
app/src/main/java/tech/danielwaiguru/flexnews/adapters/FavoriteNewsAdapter.kt | daniel-waiguru | 267,002,933 | false | {"Kotlin": 38206} | package tech.danielwaiguru.flexnews.adapters
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.squareup.picasso.Picasso
import kotlinx.android.synthetic.main.fav_news_item.view.*
import tech.danielwaiguru.flexnews.R
imp... | 0 | Kotlin | 0 | 0 | 08f420be46f4251c06ec02a4bdddb50dd1c68c27 | 1,827 | Flex-News | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/createandvaryalicenceapi/model/request/UpdateSpoDiscussionRequest.kt | ministryofjustice | 384,371,667 | false | null | package uk.gov.justice.digital.hmpps.createandvaryalicenceapi.model.request
import io.swagger.v3.oas.annotations.media.Schema
import javax.validation.constraints.NotBlank
@Schema(description = "Request object for updating the SPO discussion")
data class UpdateSpoDiscussionRequest(
@Schema(description = "Whether or ... | 10 | null | 0 | 1 | 901149882ea5b93454ce0dbf192a41ab6d592877 | 445 | create-and-vary-a-licence-api | MIT License |
http4k-typesafe-openapi-example/src/main/kotlin/org/http4k/typesafe/openapi/eg/contract/ErrorMessage.kt | savagematt | 251,337,496 | true | {"Kotlin": 1938601, "JavaScript": 133282, "Java": 31515, "Shell": 10427, "HTML": 2049, "Handlebars": 1130, "Pug": 944, "CSS": 832} | package org.http4k.typesafe.openapi.eg.contract
import org.http4k.typesafe.openapi.eg.Value
import org.http4k.typesafe.openapi.eg.map
import org.http4k.typesafe.openapi.routing.response
/**
* Intended to be human readable
*/
class ErrorMessage(value: String) : Value<String>(value)
fun errorMessage() = response.tex... | 0 | Kotlin | 0 | 0 | 9cc8ef11121bfbe10a1cd0ca58a17885c297af52 | 343 | http4k | Apache License 2.0 |
FloatItPhone/src/main/java/net/geekstools/floatshort/PRO/Utils/Functions/SmartFeatures.kt | GeeksEmpireOfficial | 180,519,781 | false | null | /*
* Copyright © 2020 By Geeks Empire.
*
* Created by <NAME>
* Last modified 11/14/20 11:08 AM
*
* Licensed Under MIT License.
* https://opensource.org/licenses/MIT
*/
package net.geekstools.floatshort.PRO.Utils.Functions
import android.app.AppOpsManager
import android.app.usage.UsageStatsManager
import andro... | 7 | null | 2 | 9 | 506064043e9e3b74634640b3bb7c654dee72c6cf | 3,395 | FloatIt.Pro | MIT License |
src/main/kotlin/dev/nikomaru/minecraftpluginmanager/utils/Utils.kt | Nlkomaru | 630,832,863 | false | {"Kotlin": 27780} | package dev.nikomaru.minecraftpluginmanager.utils
import kotlinx.serialization.json.Json
object Utils {
val json = Json {
prettyPrint = true
encodeDefaults = true
ignoreUnknownKeys = true
isLenient = true
}
fun Any.print() = println(this)
} | 3 | Kotlin | 0 | 0 | 8762ec34bb505ae05791f371e6290cf80216df02 | 287 | MinecraftPluginManager | Creative Commons Zero v1.0 Universal |
android/app/src/main/kotlin/io/rebble/fossil/WatchService.kt | yamsergey | 310,554,820 | true | {"Dart": 81649, "Kotlin": 34336, "Swift": 404, "Objective-C": 38} | package io.rebble.fossil
import android.Manifest
import android.bluetooth.BluetoothAdapter
import android.bluetooth.BluetoothDevice
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Binder
import android.os.Build
import android.os.IBinder
import android.widget.Toast
import androi... | 0 | null | 0 | 0 | 9bbeabee83d11eb61faf521000ca1c8ae5d235f4 | 4,223 | mobile-app | Apache License 2.0 |
api/src/main/java/com/undefined/api/nms/interfaces/NMSSlimeEntity.kt | UndefinedCreation | 756,316,697 | false | {"Kotlin": 398458} | package com.undefined.api.nms.interfaces
interface NMSSlimeEntity : NMSLivingEntity {
var size: Int
} | 1 | Kotlin | 0 | 5 | 19a8f954a5cf5510a70ed98dab17db65bb325bc3 | 106 | UndefinedAPI | MIT License |
apps/kafka-key-generator/src/test/kotlin/no/nav/paw/kafkakeygenerator/run_test_app.kt | navikt | 794,874,233 | false | {"Kotlin": 588679, "Dockerfile": 143} | package no.nav.paw.kafkakeygenerator
import io.ktor.client.*
import io.ktor.client.engine.mock.*
import no.nav.paw.kafkakeygenerator.config.Autentisering
import no.nav.paw.kafkakeygenerator.config.Autentiseringskonfigurasjon
import no.nav.paw.pdl.PdlClient
fun main() {
val dataSource = initTestDatabase()
val ... | 0 | Kotlin | 0 | 1 | c382e202f8dc4083f8ff2c93f10d76592fddcbbd | 905 | paw-arbeidssoekerregisteret-monorepo-intern | MIT License |
app/src/main/java/androidx/preference/ClearKnownHostsPreference.kt | ubergeek42 | 3,555,504 | false | null | package androidx.preference
import android.content.Context
import android.util.AttributeSet
import com.ubergeek42.WeechatAndroid.R
import com.ubergeek42.WeechatAndroid.service.P
import com.ubergeek42.WeechatAndroid.utils.Toaster.Companion.SuccessToast
class ClearKnownHostsPreference(context: Context, attrs: Attribute... | 38 | null | 107 | 516 | f3da88c7d7abfe5ea3e46d8ebb908e5a907c27eb | 1,164 | weechat-android | Apache License 2.0 |
api/src/main/kotlin/nebulosa/api/wizard/flat/FlatWizardState.kt | tiagohm | 568,578,345 | false | null | package nebulosa.api.wizard.flat
enum class FlatWizardState {
IDLE,
EXPOSURING,
CAPTURED,
FAILED,
}
| 4 | null | 2 | 4 | b122c890df5ad63f828c468cb600310ddbcec99b | 117 | nebulosa | MIT License |
src/main/java/dev/blachut/svelte/lang/parsing/html/SvelteHtmlLexer.kt | btilford | 215,867,934 | true | {"Kotlin": 78983, "Lex": 6817, "HTML": 3734, "Java": 1746} | package dev.blachut.svelte.lang.parsing.html
import com.intellij.lang.HtmlScriptContentProvider
import com.intellij.lang.javascript.JSStubElementTypes
import com.intellij.lang.javascript.dialects.JSLanguageLevel
import com.intellij.lang.javascript.types.JSEmbeddedContentElementType
import com.intellij.lexer.HtmlLexer
... | 0 | null | 0 | 0 | 17e4a4ab4b613cd71e84f01ef00e36f5f567777e | 1,354 | svelte-intellij | MIT License |
graph-guard/src/testFixtures/kotlin/io/github/cfraser/graphguard/knit/Example02.kt | c-fraser | 620,881,255 | false | null | /*
Copyright 2023 c-fraser
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 agreed to in writing, software
distr... | 0 | null | 0 | 5 | fbb2574e901396473541f73d97d1409f01183832 | 1,175 | graph-guard | Apache License 2.0 |
src/main/java/com/adityaamolbavadekar/hiphe/ui/googlesign/GoogleSignInFragment.kt | AdityaBavadekar | 421,028,992 | false | null | /*******************************************************************************
* Copyright (c) 2021. <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:/... | 0 | Kotlin | 0 | 1 | eb8608b7aa63ed3fca9ffd3b2e999824c1e072de | 13,894 | Hiphe | Apache License 2.0 |
sample/src/main/java/com/sensorberg/libs/ble_scanner/sample/recorder/RecorderActivity.kt | budius | 219,999,609 | false | {"Kotlin": 68057} | package com.sensorberg.libs.ble_scanner.sample.recorder
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.view.ViewGroup
import android.widget.EditText
import android.widget.TextView
import androidx.appcompat.app.AlertDialog
import androidx.ap... | 0 | Kotlin | 0 | 0 | 0201eb0ed432e42d6964366f0c5a0ba0d46e3f1b | 2,785 | ble-scanner | MIT License |
src/main/kotlin/no/nav/klage/kodeverk/InfotrygdUtfallMapping.kt | navikt | 433,099,915 | false | null | package no.nav.klage.kodeverk
val infotrygdKlageutfallToUtfall = mapOf(
"HENLAGT" to Utfall.TRUKKET,
"IKKE_BEHANDLET" to Utfall.RETUR,
"HJEMVIST_FOR_NY_BEHANDLING" to Utfall.OPPHEVET,
"INNVILGET" to Utfall.MEDHOLD,
"DELVIS_INNVILGET" to Utfall.DELVIS_MEDHOLD,
"AVSLAG" to Utfall.STADFESTELSE,
... | 3 | Kotlin | 1 | 0 | 4cf109db1a9e514d55e9aaca46ad28e01226dd2c | 662 | klage-kodeverk | MIT License |
app/src/main/java/com/example/cuzzapp/achievementuriUSER.kt | Al-del | 802,335,689 | false | {"Kotlin": 439181, "Python": 47109, "CMake": 1594, "C++": 1249, "Shell": 90} | package com.example.cuzzapp
class achievementuriUSER {
var materie : String = ""
var numeConcurs: String = ""
var Premiu: String = ""
var informatii: String = ""
var linkimagine:String =""
} | 0 | Kotlin | 0 | 0 | de87f025bea986770c4b72dc09561e7949851177 | 212 | CuzzApp | MIT License |
app/src/main/java/net/tnose/app/trisquel/MyLensRecyclerViewAdapter.kt | plus7 | 117,273,066 | false | {"Kotlin": 564939, "Java": 1153} | package net.tnose.app.trisquel
import androidx.recyclerview.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import net.tnose.app.trisquel.LensFragment.OnListFragmentInteractionListener
import java.util.*
class MyLensRecyclerV... | 16 | Kotlin | 0 | 2 | 7655d354f8bcee9d0de19a4038871e6400fcc6d9 | 1,939 | Trisquel | Apache License 2.0 |
vector/src/main/java/im/vector/app/features/home/AdPopUp.kt | fsociety92 | 652,696,662 | false | null | package com.contusfly.views
import android.annotation.SuppressLint
import android.app.Activity
import android.app.Dialog
import android.content.Context
import android.content.Intent
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.graphics.drawable.Drawable
import android.net... | 51 | Kotlin | 0 | 0 | a22d838031ae082f813dbb5cd7f26896caf57419 | 9,027 | messenbig | Apache License 2.0 |
plugins/assign-plugin/assign-plugin.cli/src/org/jetbrains/kotlin/assignment/plugin/ValueContainerAssignmentPlugin.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2022 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.assignment.plugin
import org.jetbrains.kotlin.assignment.plugin.AssignmentConfig... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 3,372 | kotlin | Apache License 2.0 |
app/src/main/java/io/outblock/lilico/manager/drive/GoogleDriveUtils.kt | Outblock | 435,317,689 | false | {"Kotlin": 1563313, "Java": 104099} | package io.outblock.lilico.manager.drive
import android.content.Intent
import androidx.annotation.WorkerThread
import androidx.localbroadcastmanager.content.LocalBroadcastManager
import com.google.api.services.drive.Drive
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import io.outblock.lilico.Bu... | 63 | Kotlin | 0 | 4 | a238e4f9db0d93a9c87fc9682860f2ea265c798b | 5,388 | Lilico-Android | Apache License 2.0 |
blockchain-development-kit/accelerators/corda/service-bus-integration/corda-reflections/src/test/kotlin/net/corda/reflections/reflections/FlowMetaDataExtractorSpec.kt | acravenho | 166,073,098 | true | {"HTML": 3970966, "Python": 1081109, "Java": 880816, "C#": 491991, "Kotlin": 358099, "JavaScript": 161542, "PowerShell": 94018, "CSS": 23314, "PLpgSQL": 16377, "Shell": 14135, "Batchfile": 8685, "Dockerfile": 4167, "Scala": 840, "ASP": 105} | package net.corda.reflections.reflections
import com.natpryce.hamkrest.assertion.assert
import com.natpryce.hamkrest.equalTo
import com.natpryce.hamkrest.throws
import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.dsl.context
import org.jetbrains.spek.api.dsl.describe
import org.jetbrains.spek.api.dsl.it
i... | 0 | HTML | 0 | 0 | 94ac8195d9a0f2d95b9ff977e03acdeae23bca36 | 1,483 | blockchain | MIT License |
src/main/kotlin/com/github/vgryzunov/opaintellijplugin/lang/psi/RegoElementType.kt | vgryzunov | 579,953,471 | false | null | package com.github.vgryzunov.opaintellijplugin.lang.psi
import com.intellij.psi.tree.IElementType
import com.github.vgryzunov.opaintellijplugin.lang.RegoLanguage
class RegoElementType(debugName: String): IElementType(debugName, RegoLanguage) {
override fun toString(): String = "RegoElementType." + super.toString(... | 0 | Kotlin | 0 | 0 | 2543802886e3cf2cd916659fdee4e22cb3055623 | 323 | opa-intellij-plugin | MIT License |
sample/src/main/java/com/ujizin/sample/router/Router.kt | ujizin | 537,219,026 | false | {"Kotlin": 95177} | package com.ujizin.sample.router
import android.net.Uri
sealed class Router(val route: String) {
object Camera : Router("camera")
object Gallery : Router("gallery")
object Configuration : Router("configuration")
object Preview : Router("preview/{${Args.Path}}") {
fun createRoute(path: String) ... | 4 | Kotlin | 13 | 248 | c6e30149e92b9df37f7837f5e29aecf9ab7b34c5 | 360 | Camposer | Apache License 2.0 |
src/main/kotlin/me/nobaboy/nobaaddons/utils/render/FrustumUtils.kt | nobaboy | 867,566,026 | false | {"Kotlin": 197524, "Java": 4140} | package me.nobaboy.nobaaddons.utils.render
import me.nobaboy.nobaaddons.mixins.accessors.WorldRendererAccessor
import me.nobaboy.nobaaddons.mixins.invokers.FrustumInvoker
import me.nobaboy.nobaaddons.utils.MCUtils
import me.nobaboy.nobaaddons.utils.NobaVec
import net.minecraft.client.render.Frustum
import net.minecraf... | 1 | Kotlin | 1 | 1 | 68410c38aa038c637fb0bdd9b6b8669eccf42f62 | 954 | NobaAddons | The Unlicense |
graph/graph-core-services/src/test/kotlin/org/orkg/graph/domain/ClassServiceUnitTests.kt | TIBHannover | 197,416,205 | false | {"Kotlin": 6129587, "Cypher": 220623, "Python": 4881, "Shell": 2904, "Groovy": 1936, "HTML": 240, "Batchfile": 82} | package org.orkg.graph.domain
import io.kotest.matchers.shouldBe
import io.mockk.clearAllMocks
import io.mockk.confirmVerified
import io.mockk.every
import io.mockk.mockk
import io.mockk.verify
import java.time.OffsetDateTime
import java.util.*
import org.eclipse.rdf4j.common.net.ParsedIRI
import org.junit.jupiter.api... | 0 | Kotlin | 0 | 4 | d09fafc9a4bd996623c9c5b198aa16160485d144 | 18,055 | orkg-backend | MIT License |
app/src/main/kotlin/batect/model/events/ContainerStartedEvent.kt | HYDPublic | 119,497,078 | true | {"Kotlin": 988909, "Python": 3315, "Shell": 2655, "HTML": 400, "Java": 256} | /*
Copyright 2017-2018 <NAME>.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | 0 | Kotlin | 0 | 0 | bebfc745e814168ea6ffce49ffe5e8b221fb96bd | 1,474 | batect | Apache License 2.0 |
src/test/kotlin/no/ok/origo/dataplatform/jsontransformer/Json2JsonHandlerTest.kt | oslokommune | 394,674,757 | false | {"Kotlin": 39733, "Makefile": 1308} | package no.ok.origo.dataplatform.jsontransformer
import com.adobe.testing.s3mock.junit5.S3MockExtension
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
import no.ok.origo.dataplatform.TestContext
import no.ok.origo.dataplatform.commons.pipeline.config... | 0 | Kotlin | 0 | 0 | d50df0ba954bfc981c93dc197058d1414d78a92c | 3,632 | okdata-pipeline-jvm | MIT License |
app/src/main/java/com/arjun/samachar/ui/filters/language/LanguagesBottomSheet.kt | ArjunJadeja | 826,162,538 | false | {"Kotlin": 141881} | package com.arjun.samachar.ui.filters.language
import android.content.Context
import android.widget.Toast
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.com... | 0 | Kotlin | 7 | 50 | 38ea4dce5b3e32fdd9bc6d5546045800434836e5 | 6,191 | samachar | The Unlicense |
sdk/src/main/java/io/wso2/android/api_authenticator/sdk/core/managers/token/impl/TokenManagerImpl.kt | Achintha444 | 731,559,375 | false | {"Kotlin": 253341, "Java": 1580} | package io.wso2.android.api_authenticator.sdk.core.managers.token.impl
import android.content.Context
import io.wso2.android.api_authenticator.sdk.core.di.TokenManagerImplContainer
import io.wso2.android.api_authenticator.sdk.core.managers.token.TokenManager
import io.wso2.android.api_authenticator.sdk.data.token.Toke... | 0 | Kotlin | 0 | 0 | ca070c515980157b02b2eae50894a775a6a40271 | 3,071 | wso2-android-api-authenticator-sdk | Apache License 2.0 |
app/common/src/commonJvmMain/kotlin/com/denchic45/studiversity/domain/usecase/RemoveStudyGroupMemberUseCase.kt | denchic45 | 435,895,363 | false | {"Kotlin": 2033820, "Vue": 15083, "JavaScript": 2830, "CSS": 1496, "HTML": 867} | package com.denchic45.studiversity.domain.usecase
import com.denchic45.studiversity.data.repository.StudyGroupMemberRepository
import me.tatarka.inject.annotations.Inject
import java.util.*
@Inject
class RemoveStudyGroupMemberUseCase(
private val studyGroupMemberRepository: StudyGroupMemberRepository
) {
sus... | 0 | Kotlin | 0 | 7 | 9d1744ffd9e1652e93af711951e924b739e96dcc | 448 | Studiversity | Apache License 2.0 |
extras/src/test/kotlin/net/dontdrinkandroot/wicket/extras/test/TestHomePage.kt | dontdrinkandroot | 7,002,436 | false | null | package net.dontdrinkandroot.wicket.extras.test
import org.apache.wicket.Page
class TestHomePage : Page() | 34 | Kotlin | 1 | 3 | eaf007cfe70a136a334bd9cb22b5cc0e2fa50ff3 | 107 | wicket.java | Apache License 2.0 |
flutter-hybrid-android/app/src/main/java/com/jay/flutter_hybrid_android/ui/home/HomeViewModel.kt | jaydroid1024 | 400,832,551 | false | null | package com.jay.flutter_hybrid_android.ui.home
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
class HomeViewModel : ViewModel() {
private val _text = MutableLiveData<String>().apply {
value = "跳转到集成了FlutterView 的 FlutterHostActivity"
}... | 0 | Kotlin | 1 | 1 | 7dfeddd18abbda9b52bcf1cf5ec80bcd7de60fcf | 361 | flutter-hybird | MIT License |
plugin/src/main/kotlin/ru/astrainteractive/astratemplate/di/FilesModule.kt | Astra-Interactive | 378,620,934 | false | null | package ru.astrainteractive.astratemplate.di
import ru.astrainteractive.astralibs.Module
import ru.astrainteractive.astralibs.Single
import ru.astrainteractive.astralibs.filemanager.SpigotFileManager
interface FilesModule : Module {
val configFile: Single<SpigotFileManager>
}
| 0 | Kotlin | 0 | 11 | bcf856b1646c66c25879babaf440d15ffa993d08 | 283 | AstraTemplate | MIT License |
app/src/main/java/tech/salroid/filmy/data/local/db/Converters.kt | salRoid | 64,316,425 | false | null | package tech.salroid.filmy.data.local.db
import androidx.room.TypeConverter
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import tech.salroid.filmy.data.local.model.*
import tech.salroid.filmy.data.local.model.Collection
import java.lang.reflect.Type
class Converters {
@TypeConverter
... | 1 | Kotlin | 180 | 733 | c6ac0c3b47964e552b8d44a0b586e1ce3b418a9a | 3,060 | Filmy | Apache License 2.0 |
statemachine-core/src/test/kotlin/statemachine/exception/StateMachineExceptionHandlingTest.kt | yonigev | 639,817,171 | false | {"Kotlin": 58686, "Java": 21736} | package statemachine.exception
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
import statemachine.StateMachine
import statemachine.StateMachineException
import statemachine.action.TransitionAction.Companion.create
import statemachine.definition.StateMachineDefiner
import statemachine.defin... | 0 | Kotlin | 0 | 2 | d2c796be89e3aa856b8ddaa9938cebd7e0cb100c | 3,893 | simple-finite-state-machine | Apache License 2.0 |
ohyeah/conversations/src/main/java/com/ewingsa/ohyeah/conversations/viewmodels/ConversationsScreenViewModel.kt | ewingsa | 258,544,034 | false | null | package com.ewingsa.ohyeah.conversations.viewmodels
import android.view.View
class ConversationsScreenViewModel(private val interactions: Interactions) {
val onInfoPress = View.OnClickListener { interactions.onInfoPress() }
val onNewPress = View.OnClickListener { interactions.onNewPress() }
interface I... | 0 | Kotlin | 0 | 1 | 852fe9f32c01b87895c7e2a57d4d054d7356932c | 393 | ohyeah | Apache License 2.0 |
app/src/main/java/com/d34th/nullpointer/baseconvert/models/WorkConvert.kt | Hcnc100 | 560,188,186 | false | {"Kotlin": 54390} | package com.d34th.nullpointer.baseconvert.models
import androidx.annotation.StringRes
import androidx.lifecycle.SavedStateHandle
import com.d34th.nullpointer.baseconvert.core.delegates.SavableComposeState
import kotlinx.coroutines.Job
class WorkConvert(
val base: Int,
var jobConvert: Job? = null,
savedSta... | 0 | Kotlin | 0 | 0 | 49f3cef9503e5a31bf48f07eeddd7a3449f6ba9a | 1,202 | BaseConvert | MIT License |
AbanMagazinePhone/src/main/java/com/abanabsalan/aban/magazine/HomePageConfigurations/UI/Adapters/RecommendedPosts/RecommendedPostsAdapter.kt | EliasFazel10296 | 273,935,454 | false | null | /*
* Copyright © 2021 By Geeks Empire.
*
* Created by <NAME> on 6/8/21, 8:29 AM
* Last modified 6/8/21, 8:29 AM
*
* Licensed Under MIT License.
* https://opensource.org/licenses/MIT
*/
package com.abanabsalan.aban.magazine.HomePageConfigurations.UI.Adapters.RecommendedPosts
import android.animation.ValueAnima... | 2 | Kotlin | 0 | 1 | 7a2e7c9445f1f32afd2cbfc11fcb53eef50c94d0 | 6,446 | AbanMagazine | Apache License 2.0 |
app/src/main/java/de/dertyp7214/rboardthememanager/data/SoundPack.kt | DerTyp7214 | 372,557,655 | false | null | package de.dertyp7214.rboardthememanager.data
data class SoundPack(val author: String, val url: String, val title: String)
| 0 | Kotlin | 9 | 96 | 18deb69aad3100b9f2d73256eea221a4f7b6f6ef | 124 | RboardThemeManagerV3 | MIT License |
spotify-dashboard/src/main/java/com/clipfinder/spotify/dashboard/SpotifyDashboardNavHostFragment.kt | tosoba | 133,674,301 | false | {"Gradle": 33, "Markdown": 2, "Java Properties": 2, "Shell": 1, "Ignore List": 31, "Batchfile": 1, "Kotlin": 409, "Proguard": 24, "XML": 176, "Java": 2, "INI": 4} | package com.clipfinder.spotify.dashboard
import androidx.fragment.app.Fragment
import com.clipfinder.core.android.base.fragment.BaseNavHostFragment
class SpotifyDashboardNavHostFragment : BaseNavHostFragment() {
override val layoutId: Int = R.layout.fragment_spotify_dashboard_host
override val backStackLayout... | 1 | null | 1 | 1 | 84ae309c8c059308c16902ee43b0cdfd2740794c | 448 | ClipFinder | MIT License |
app/src/main/java/com/example/marsphotos/data/MarsPhotosRepository.kt | SusanaGit | 875,387,476 | false | {"Kotlin": 19035} | package com.example.marsphotos.data
import com.example.marsphotos.model.MarsPhoto
import com.example.marsphotos.network.MarsApi
import com.example.marsphotos.network.MarsApiService
interface MarsPhotosRepository {
suspend fun getMarsPhotos(): List<MarsPhoto>
}
class NetworkMarsPhotosRepository(
private val m... | 0 | Kotlin | 0 | 0 | 5b82016c1acf2b0b95947c476312e16387ed3e39 | 494 | u5-mars-photos-repo | Apache License 2.0 |
src/main/kotlin/com/ky_proj/spjplugin/codeinsight/SpjInlayParameterHintsProvider.kt | fisherman08 | 117,972,344 | false | {"Gradle": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "YAML": 2, "Markdown": 1, "INI": 1, "Java": 50, "Kotlin": 93, "XML": 3, "JFlex": 2} | package com.ky_proj.spjplugin.codeinsight
import com.intellij.codeInsight.hints.*
import com.intellij.lang.ASTNode
import com.intellij.psi.PsiElement
import com.intellij.psi.tree.TokenSet
import com.intellij.psi.util.PsiTreeUtil
import com.ky_proj.spjplugin.language.SpjLanguage
import com.ky_proj.spjplugin.psi.SpjArgu... | 2 | Kotlin | 0 | 0 | 95a4ddb93950d919a59349276fceec1efbabd5fa | 4,366 | IntelliJ_SpjPlugin | MIT License |
virtue-app/src/androidMain/kotlin/com/eygraber/virtue/app/VirtueActivityDelegate.kt | eygraber | 807,438,503 | false | {"Kotlin": 191931, "Shell": 1747} | package com.eygraber.virtue.app
import android.content.Intent
import android.graphics.Color
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.SystemBarStyle
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.runtime.C... | 4 | Kotlin | 1 | 9 | 55b450bbe340cae74956b737422d2f133ab8e91b | 4,398 | virtue | MIT License |
composeApp/src/commonMain/kotlin/me/gustavolopezxyz/common/platform.kt | gusaln | 736,062,721 | false | {"Kotlin": 271528} | package me.gustavolopezxyz.common
expect fun getPlatformName(): String
expect val VERSION: Version
| 0 | Kotlin | 0 | 0 | d6a94b44e613a2b93f4ea8faf963ab2dfca5cd9d | 102 | wimm | MIT License |
utils/src/iosMain/kotlin/io/github/dmitriy1892/kmp/libs/utils/platform/FatalCrashHook.kt | Dmitriy1892 | 782,469,883 | false | {"Kotlin": 27697, "Swift": 340, "Ruby": 102, "Shell": 84} | package io.github.dmitriy1892.kmm.utils.platform
import kotlin.experimental.ExperimentalNativeApi
object FatalCrashHook {
@OptIn(ExperimentalNativeApi::class)
fun doBeforeAppCrashing(callback: (Throwable) -> Unit) {
setUnhandledExceptionHook {
callback(it)
println("-----------... | 0 | Kotlin | 0 | 0 | 660ff1bfb44a9eb07f8e8cd9d4868fd059b76e42 | 554 | kmp-libs | Apache License 2.0 |
android/src/main/kotlin/io/storecamera/storecamera_photo/StoreCameraPhoto.kt | storecamera | 588,521,763 | false | null | package io.storecamera.storecamera_photo
import android.app.Activity
import android.content.pm.PackageManager
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.os.Build
import android.util.Log
import android.util.Size
import android.Manifest
import androidx.annotation.NonNull
import a... | 0 | Kotlin | 0 | 0 | 3bb76cf404e58581ae228d77956b46a4be9c95da | 23,165 | storecamera_photo | Apache License 2.0 |
authresources/src/main/java/base/authresources/presentation/authentication/Extensions.kt | icarohs7 | 195,282,763 | false | null | package base.authresources.presentation.authentication
import androidx.fragment.app.Fragment
import androidx.fragment.app.commit
import base.authresources.R
fun AuthenticationActivity.loadFragment(frag: Fragment) {
supportFragmentManager.commit {
setCustomAnimations(
R.anim.fragment_transition... | 1 | null | 1 | 1 | 03a6c01262a4e7bb99eaf73fff8215220a9d1e7a | 528 | unox-android-resmodules | MIT License |
app/src/main/java/com/apps/adrcotfas/goodtime/settings/ProfilePreference.kt | adrcotfas | 61,319,303 | false | {"Kotlin": 402255, "HTML": 62862} | package com.apps.adrcotfas.goodtime.settings
import kotlin.jvm.JvmOverloads
import android.annotation.SuppressLint
import android.content.Context
import android.util.AttributeSet
import androidx.core.content.res.TypedArrayUtils
import androidx.preference.ListPreference
import com.apps.adrcotfas.goodtime.R
class Profi... | 76 | Kotlin | 96 | 957 | 95845d126d914e68b46b8abab83e378978c2127c | 1,304 | Goodtime | Apache License 2.0 |
app/src/main/java/com/persival/realestatemanagerkotlin/domain/photo/DeletePhotoUseCase.kt | persival001 | 664,734,716 | false | {"Kotlin": 300155, "HTML": 54594} | package com.persival.realestatemanagerkotlin.domain.photo
import com.persival.realestatemanagerkotlin.domain.property_with_photos_and_poi.LocalRepository
import javax.inject.Inject
import javax.inject.Singleton
@Singleton
class DeletePhotoUseCase @Inject constructor(
private val localRepository: LocalRepository,
... | 0 | Kotlin | 0 | 1 | 61626fd1c5276ce8ec3e28ca9b09b1e4fd43e7ec | 475 | RealEstateManagerKotlin | MIT License |
app/src/androidTest/java/de/entikore/cyclopenten/ui/screen/settings/SettingsScreenKtTest.kt | Entikore | 579,922,800 | false | null | package de.entikore.cyclopenten.ui.screen.settings
import androidx.activity.ComponentActivity
import androidx.compose.ui.test.assertHasClickAction
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.assertIsEnabled
import androidx.compose.ui.test.assertIsOff
import androidx.compose.ui.tes... | 0 | Kotlin | 1 | 13 | a06f16a011d5683f68701bfa0bbc0b471ce9d642 | 7,120 | Cyclopenten | MIT License |
src/main/kotlin/com/springKotlinAuthentication/demo/authentication/service/AuthenticationServiceImpl.kt | Kenato254 | 854,587,987 | false | {"Kotlin": 93453, "Shell": 1143} | package com.springKotlinAuthentication.demo.authentication.service
import com.springKotlinAuthentication.demo.authentication.UserUtil
import com.springKotlinAuthentication.demo.authentication.constant.Constant
import com.springKotlinAuthentication.demo.authentication.dto.request.*
import com.springKotlinAuthentication... | 0 | Kotlin | 0 | 0 | 5cd00034dddae85f9531c8b34e59e7f6eaa6659e | 8,909 | spring-kotlin-authentication-demo | MIT License |
src/main/kotlin/com/skillw/rpgmaker/module/scripts/FileScript.kt | q210520993 | 802,703,847 | false | {"Kotlin": 210609, "Java": 73654} | package com.skillw.rpgmaker.module.scripts
import java.io.File
interface FileScript: Script {
fun getFile(): File
} | 0 | Kotlin | 0 | 4 | 17d24b9a7c5134a733636e0965f892850f445666 | 123 | RPGMaker | MIT License |
app/src/main/java/com/tinashe/audioverse/data/database/AudioVerseDb.kt | panaito | 137,350,327 | true | {"Kotlin": 68372, "Java": 845} | package com.tinashe.audioverse.data.database
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.tinashe.audioverse.data.database.dao.PresentersDao
import com.tinashe.audioverse.data.database.dao.RecordingsDao
import com.tinashe.audioverse.data.model.Presenter... | 0 | Kotlin | 0 | 0 | 8aa5001683ca53dd60eb950aca2e2e270ff7d7ea | 742 | audioverse-android | Apache License 2.0 |
app/src/main/java/com/muzzley/model/profiles/RecipeCancelType.kt | habitio | 191,952,436 | false | {"Java": 759418, "Kotlin": 611639, "JavaScript": 4086} | package com.muzzley.model.profiles
enum class RecipeCancelType {
close, back
}
| 1 | null | 1 | 1 | 57174e1ca5e0d72ebc01d0750e278fc493b44e42 | 84 | habit-whitelabel-app-android | MIT License |
bootcamps/Everis-Quality-Assurance-Beginner/Fimo-API/src/main/kotlin/com/github/carvaldo/fimo/api/config/BeanConfig.kt | carvaldo | 383,000,948 | false | null | package com.github.carvaldo.fimo.api.config
import com.github.carvaldo.fimo.api.datasource.repository.service.ServiceGenerator
import com.github.carvaldo.fimo.api.datasource.repository.service.imdb.service.MovieService
import com.github.carvaldo.fimo.api.datasource.repository.service.imdb.service.PersonService
import ... | 0 | Kotlin | 0 | 1 | de90bb378fd88de52086f886e5c57933aac38626 | 876 | Digital-Innovation-One | MIT License |
library/src/test/kotlin/com/cioccarellia/kurl/ApiTests.kt | cioccarellia | 232,827,501 | false | {"Kotlin": 55063} | /**
* Designed and developed by <NAME> (@cioccarellia)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 0 | Kotlin | 1 | 12 | 5e538b2771c1f0b043c474322e1b13a2e2a32e99 | 4,150 | Kurl | Apache License 2.0 |
app/src/main/java/com/kylecorry/trail_sense/tools/paths/ui/drawing/DottedPathLineDrawerStrategy.kt | kylecorry31 | 215,154,276 | false | null | package com.kylecorry.trail_sense.tools.paths.ui.drawing
import com.kylecorry.andromeda.canvas.DottedPathEffect
import com.kylecorry.andromeda.canvas.ICanvasDrawer
class DottedPathLineDrawerStrategy : IPathLineDrawerStrategy {
override fun draw(
canvasDrawer: ICanvasDrawer,
color: Int,
str... | 456 | null | 66 | 989 | 41176d17b498b2dcecbbe808fbe2ac638e90d104 | 606 | Trail-Sense | MIT License |
presentation/src/main/java/io/photopixels/presentation/screens/settings/SettingsScreenViewModel.kt | scalefocus | 800,965,364 | false | {"Kotlin": 318358, "Shell": 1723} | package io.photopixels.presentation.screens.settings
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import io.photopixels.domain.model.UserSettings
import io.photopixels.domain.usecases.ClearUserDataUseCase
import io.photopixels.domain.usecases.GetAppInfoData
import io.phot... | 1 | Kotlin | 0 | 1 | 9220a0c95d022cf12c1d3e4b355c89f3717324ea | 5,480 | photopixels-android | Apache License 2.0 |
moshi-generator/src/main/kotlin/com/chimerapps/moshigenerator/SimpleLogger.kt | Chimerapps | 92,265,777 | false | {"Gradle": 6, "Shell": 3, "Text": 1, "Ignore List": 1, "Batchfile": 3, "Markdown": 1, "INI": 2, "Java Properties": 3, "Java": 4, "Kotlin": 9} | package com.chimerapps.moshigenerator
import java.io.PrintWriter
import java.io.StringWriter
import javax.annotation.processing.Messager
import javax.tools.Diagnostic
/**
* @author <NAME>
* Date 26/05/2017.
*/
class SimpleLogger(val messager: Messager) {
fun logInfo(message: String, error: Throwable? = null) ... | 1 | Kotlin | 0 | 0 | 661ace209912766234714bbd2029c412e805d368 | 978 | moshi-generator | Apache License 2.0 |
commons/ui/src/main/java/com/summit/commons/ui/extension/ConvertImage.kt | cesarwillymc | 326,488,032 | false | null | package com.summit.commons.ui.extension
import android.content.Context
import android.graphics.*
import android.os.Environment
import androidx.exifinterface.media.ExifInterface
import java.io.File
import java.io.FileNotFoundException
import java.io.FileOutputStream
import java.io.IOException
import kotlin.math.roundTo... | 0 | Kotlin | 0 | 2 | 9583792cfc3832bdc5b76584ff90a741f4b87458 | 5,509 | AddFast | Apache License 2.0 |
arrow-libs/fx/arrow-fx-rx2/src/test/kotlin/arrow/fx/ObservableKTests.kt | clojj | 343,913,289 | true | {"Kotlin": 6274993, "SCSS": 78040, "JavaScript": 77812, "HTML": 21200, "Scala": 8073, "Shell": 2474, "Ruby": 83} | package arrow.fx
import arrow.Kind
import arrow.fx.rx2.ForObservableK
import arrow.fx.rx2.ObservableK
import arrow.fx.rx2.ObservableKOf
import arrow.fx.test.eq.unsafeRunEq
import arrow.fx.rx2.extensions.concurrent
import arrow.fx.rx2.extensions.fx
import arrow.fx.rx2.extensions.observablek.applicative.applicative
impo... | 0 | null | 0 | 0 | 5eae605bbaeb2b911f69a5bccf3fa45c42578416 | 5,037 | arrow | Apache License 2.0 |
arrow-libs/fx/arrow-fx-rx2/src/test/kotlin/arrow/fx/ObservableKTests.kt | clojj | 343,913,289 | true | {"Kotlin": 6274993, "SCSS": 78040, "JavaScript": 77812, "HTML": 21200, "Scala": 8073, "Shell": 2474, "Ruby": 83} | package arrow.fx
import arrow.Kind
import arrow.fx.rx2.ForObservableK
import arrow.fx.rx2.ObservableK
import arrow.fx.rx2.ObservableKOf
import arrow.fx.test.eq.unsafeRunEq
import arrow.fx.rx2.extensions.concurrent
import arrow.fx.rx2.extensions.fx
import arrow.fx.rx2.extensions.observablek.applicative.applicative
impo... | 0 | null | 0 | 0 | 5eae605bbaeb2b911f69a5bccf3fa45c42578416 | 5,037 | arrow | Apache License 2.0 |
app/src/androidTest/java/com/serjltt/devfest/weather/show/forecast/usecase/SelectCityUseCaseTest.kt | serj-lotutovici | 89,843,157 | false | null | package com.serjltt.devfest.weather.show.forecast.usecase
import android.support.test.espresso.Espresso.onView
import android.support.test.espresso.Espresso.pressBack
import android.support.test.espresso.action.ViewActions.click
import android.support.test.espresso.assertion.ViewAssertions.matches
import android.suppo... | 1 | Kotlin | 1 | 1 | c406ffa416429f838b538e74f3e56050fbb66527 | 1,564 | RxMVSomething | Apache License 2.0 |
shared/src/commonMain/kotlin/io/spherelabs/anypass/ui/account/navigation/AccountNavigation.kt | getspherelabs | 687,455,894 | false | {"Kotlin": 645187, "Ruby": 6822, "Swift": 1167, "Shell": 226} | package io.spherelabs.anypass.ui.account.navigation
import io.spherelabs.anypass.navigation.Route
import io.spherelabs.anypass.ui.account.AccountRoute
import io.spherelabs.navigation.NavHostScope
import io.spherelabs.navigation.NavigationController
import io.spherelabs.navigation.composable
fun NavigationController<R... | 25 | Kotlin | 21 | 134 | 09ce4d285d7dc88e265ca0534272f20c7254b82c | 770 | anypass-kmp | Apache License 2.0 |
shared/src/commonMain/kotlin/com/vickikbt/shared/presentation/UiState.kt | VictorKabata | 451,854,817 | false | {"Kotlin": 211021, "Swift": 19405, "Ruby": 2077} | package com.vickikbt.shared.presentation
sealed class UiState<T>(
val data: T? = null,
val error: String? = null
) {
class Loading<T> : UiState<T>()
class Success<T>(data: T) : UiState<T>(data)
class Error<T>(error: String?, data: T? = null) : UiState<T>(data, error)
}
| 1 | Kotlin | 4 | 39 | c076838dd5daab9025041025fbeb5e151fd68e10 | 291 | Gistagram | MIT License |
app/src/main/java/me/kalmanbncz/pigeon/data/repository/MessageRepository.kt | kalmanbencze | 109,145,350 | false | null | package me.kalmanbncz.pigeon.data.repository
import android.arch.lifecycle.LiveData
import me.kalmanbncz.pigeon.data.model.Message
/**
* Created by kalman.bencze on 02/11/2017.
*/
interface MessageRepository {
fun getMessages(contactId: Int): LiveData<List<Message>>
} | 0 | Kotlin | 0 | 1 | f21f1527c9954b5d66a95a3e7ebc5fb9c3e31aa2 | 276 | Pigeon-android | Apache License 2.0 |
app/src/main/java/me/kalmanbncz/pigeon/data/repository/MessageRepository.kt | kalmanbencze | 109,145,350 | false | null | package me.kalmanbncz.pigeon.data.repository
import android.arch.lifecycle.LiveData
import me.kalmanbncz.pigeon.data.model.Message
/**
* Created by kalman.bencze on 02/11/2017.
*/
interface MessageRepository {
fun getMessages(contactId: Int): LiveData<List<Message>>
} | 0 | Kotlin | 0 | 1 | f21f1527c9954b5d66a95a3e7ebc5fb9c3e31aa2 | 276 | Pigeon-android | Apache License 2.0 |
src/main/kotlin/interfaces_types_inheritance/MultipleInterfaces.kt | nazk420testing | 339,854,352 | false | {"Gradle Kotlin DSL": 2, "INI": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Kotlin": 24, "Java": 1, "XML": 12} | package interfaces_types_inheritance
interface SessionInfoProvider {
fun print() {
println("Printing SessionInfoProvider")
}
}
interface AnotherBasicInfoProvider {
fun printIt() {
println("Printing BasicInfoProvider")
}
}
abstract class MultipleInterfaces : AnotherBasicInfoProvider,... | 0 | Kotlin | 0 | 0 | 51ed7ef0f2c7ba9a328d703ceaa1c33be2eafc85 | 345 | kotlin | MIT License |
app/src/main/java/com/example/android/codelabs/paging/ui/SearchRepositoriesViewModel.kt | Ahmedgadein | 379,077,142 | false | null | /*
* Copyright (C) 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 app... | 1 | Kotlin | 1 | 1 | 7711d0a8555c706edf05a310f93869bbc8afcba4 | 2,116 | android-paging-codelab | Apache License 2.0 |
cloudtrail-tool/src/main/kotlin/uy/kohesive/iac/model/aws/cloudtrail/postprocessing/SetBucketAclProcessor.kt | kohesive | 81,814,921 | false | null | package uy.kohesive.iac.model.aws.cloudtrail.postprocessing
import com.amazonaws.codegen.model.intermediate.IntermediateModel
import com.amazonaws.codegen.model.intermediate.MemberModel
import com.amazonaws.services.s3.model.GroupGrantee
import uy.kohesive.iac.model.aws.cloudtrail.RequestMapNode
import uy.kohesive.iac... | 0 | Kotlin | 1 | 3 | c52427c99384396ea60f436750932ed12aad4e6d | 3,032 | kohesive-iac | MIT License |
presentation/src/main/kotlin/kr/ohyung/navigation/base/BaseFragment.kt | LeeOhHyung | 285,247,732 | false | null | package kr.ohyung.navigation.base
import android.os.Bundle
import android.view.View
import androidx.annotation.LayoutRes
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.viewbinding.ViewBinding
import kr.ohyung.common.shared.UiState
import kr.ohyung.navigation.utility.navigate
... | 3 | Kotlin | 0 | 2 | 2ac65c0818a0ab2e42d8a81d27a27b835443299d | 783 | android-navigate-fragments | MIT License |
lib/src/main/kotlin/com/lemonappdev/konsist/core/provider/KoTopLevelProviderCore.kt | LemonAppDev | 621,181,534 | false | {"Kotlin": 5054558, "Python": 46133} | package com.lemonappdev.konsist.core.provider
import com.lemonappdev.konsist.api.provider.KoTopLevelProvider
import org.jetbrains.kotlin.psi.KtTypeParameterListOwner
import org.jetbrains.kotlin.psi.psiUtil.isTopLevelKtOrJavaMember
@Deprecated("Will be removed in version 0.18.0", ReplaceWith("KoIsTopLevelProviderCore"... | 6 | Kotlin | 27 | 1,141 | 696b67799655e2154447ab45f748e983d8bcc1b5 | 583 | konsist | Apache License 2.0 |
pleo-antaeus-core/src/test/kotlin/io/pleo/antaeus/core/services/BillingServiceTest.kt | vinothkumar-projects | 374,100,827 | true | {"Kotlin": 37005, "Shell": 794, "Dockerfile": 249} | package io.pleo.antaeus.core.services
import io.mockk.*
import io.pleo.antaeus.core.external.PaymentProvider
import io.pleo.antaeus.models.*
import org.jetbrains.exposed.sql.Database
import org.jetbrains.exposed.sql.Transaction
import org.jetbrains.exposed.sql.transactions.transaction
import org.junit.jupiter.api.Asse... | 0 | Kotlin | 0 | 0 | cb8d3dcf14ffc2414c1a8e799b779b0f24657913 | 2,594 | antaeus | Creative Commons Zero v1.0 Universal |
Geraldinho/app/src/main/java/com/example/geraldinho/Gerador.kt | pedrold10 | 524,184,968 | false | null | package com.example.geraldinho
import java.util.*
class Gerador {
fun gerar(amount: Int): String{
var lista = mutableSetOf
var random = Random(Calendar.getInstance().timeInMillis)
while(lista.size< amount){
lista.add(random.nextInt(1, 61))
}
}
return lista.toStr... | 0 | Kotlin | 0 | 0 | 44532a48c94a45ff1264cc0b643c03c60fff94ef | 327 | Estudos_PDM | MIT License |
app/src/main/java/com/santansarah/barcodescanner/ui/account/signup/SignUpViewModel.kt | santansarah | 621,930,119 | false | null | package com.santansarah.barcodescanner.ui.account.signup
import androidx.lifecycle.viewModelScope
import com.santansarah.barcodescanner.di.IoDispatcher
import com.santansarah.barcodescanner.domain.interfaces.IUserRepository
import com.santansarah.barcodescanner.ui.account.shared.SignInViewModelBase
import dagger.hilt.... | 0 | Kotlin | 0 | 3 | d044d5cd5fcfa1e96cebdec1ac546056cafece13 | 1,081 | barcode-scanner | MIT License |
src/main/kotlin/fr/shikkanime/controllers/admin/AdminEpisodeController.kt | Shikkanime | 725,527,999 | false | {"Kotlin": 392840, "FreeMarker": 80049, "JavaScript": 3065, "Dockerfile": 1173, "CSS": 572, "Shell": 478, "Fluent": 69} | package fr.shikkanime.controllers.admin
import com.google.inject.Inject
import fr.shikkanime.converters.AbstractConverter
import fr.shikkanime.dtos.EpisodeDto
import fr.shikkanime.entities.enums.EpisodeType
import fr.shikkanime.entities.enums.LangType
import fr.shikkanime.entities.enums.Link
import fr.shikkanime.servi... | 1 | Kotlin | 0 | 0 | 25a00eb13224fc17bca089486d674b0abe0454b8 | 2,225 | core | Apache License 2.0 |
runtimes/runtime-native/src/linuxX64Main/kotlin/com/kotlin/aws/native/runtime/portability/getEnv.kt | sbogolepov | 310,808,729 | true | {"Kotlin": 70485} | package com.kotlin.aws.native.runtime.portability
import kotlinx.cinterop.toKString
import platform.posix.getenv
actual fun getEnv(variable: String): String? =
getenv(variable)?.toKString() | 0 | Kotlin | 0 | 0 | 6b0eed4ffaba116b6d6e4418b0cd929ef002dda4 | 195 | kcdk-runtimes | Apache License 2.0 |
subprojects/delivery/tests-summary/src/test/kotlin/com/avito/test/summary/json/TestSummaryDestinationJsonTest.kt | avito-tech | 230,265,582 | false | {"Kotlin": 3752627, "Java": 67252, "Shell": 27892, "Dockerfile": 12799, "Makefile": 8086} | package com.avito.test.summary.json
import com.avito.alertino.model.AlertinoRecipient
import com.avito.report.model.Team
import com.avito.test.summary.model.TestSummaryDestination
import com.github.salomonbrys.kotson.fromJson
import com.google.common.truth.Truth
import com.google.gson.GsonBuilder
import org.intellij.l... | 10 | Kotlin | 50 | 414 | 4dc43d73134301c36793e49289305768e68e645b | 1,562 | avito-android | MIT License |
mbcommonkit/src/test/java/com/daimler/mbcommonkit/preferences/chunks/EncryptedEditorWithChunksTest.kt | Daimler | 199,815,262 | false | null | package com.daimler.mbcommonkit.preferences.chunks
import com.daimler.mbcommonkit.preferences.SharedPreferencesFake
import com.daimler.mbcommonkit.preferences.TEST_KEY
import com.daimler.mbcommonkit.preferences.getEncryptedSharedPreferencesWithMockContext
import org.assertj.core.api.Assertions.assertThat
import org.as... | 1 | Kotlin | 8 | 15 | 3721af583408721b9cd5cf89dd7b99256e9d7dda | 2,390 | MBSDK-Mobile-Android | MIT License |
app/src/main/java/com/reci_p/reci_p/helpers/DataManager.kt | emm035 | 107,427,240 | false | null | package com.reci_p.reci_p.helpers
import android.content.Context
import android.content.res.Resources
import android.util.Log
import com.google.gson.Gson
import com.reci_p.reci_p.R
import com.reci_p.reci_p.data.Recipe
import com.reci_p.reci_p.data.User
import com.reci_p.reci_p.interfaces.Parseable
import io.realm.Real... | 10 | Kotlin | 1 | 1 | eacf31a0d0d56e9f26e77ac42379b9248a699192 | 14,964 | reci-p | The Unlicense |
tmp/arrays/youTrackTests/9480.kt | DaniilStepanov | 228,623,440 | false | {"Git Config": 1, "Gradle": 6, "Text": 3, "INI": 5, "Shell": 2, "Ignore List": 3, "Batchfile": 2, "Markdown": 2, "Kotlin": 15942, "JavaScript": 4, "ANTLR": 2, "XML": 12, "Java": 4} | // Original bug: KT-13160
package foo
import kotlin.collections.*
var global = ""
class A(val data: Array<Int>)
fun main(args: Array<String>) {
val a = A(arrayOf(1, 2, 3))
a.data[0] = listOf(1, 2, 3).fold(0) { a, b ->
global += "$b;"
a + b
}
println(a.data[0])
println(global)
}
| 1 | null | 1 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 320 | bbfgradle | Apache License 2.0 |
modules-api/src/main/java/io/appmetrica/analytics/modulesapi/internal/ModuleEntryPoint.kt | appmetrica | 650,662,094 | false | {"Java": 5894393, "C++": 5729793, "Kotlin": 2214912, "Python": 229161, "Objective-C++": 152166, "C": 127185, "Assembly": 59003, "Emacs Lisp": 14657, "Objective-C": 10302, "Starlark": 7767, "Shell": 5746, "Go": 4930, "CMake": 3562, "CSS": 1454, "AppleScript": 1429, "AIDL": 504} | package io.appmetrica.analytics.modulesapi.internal
import io.appmetrica.analytics.modulesapi.internal.event.ModuleEventHandlerFactory
interface ModuleEntryPoint<T : Any> {
val identifier: String
val remoteConfigExtensionConfiguration: RemoteConfigExtensionConfiguration<T>?
val moduleEventHandlerFactor... | 2 | Java | 3 | 49 | 377fac9396615f238b55aa0619f32c07ac8a404b | 552 | appmetrica-sdk-android | MIT License |
tests/TrackerTestApp/app/src/androidTest/java/appnexus/com/trackertestapp/MockDispatcher.kt | appnexus | 10,734,034 | false | {"Gradle": 33, "Shell": 14, "Java Properties": 24, "Markdown": 3, "XML": 110, "Text": 8, "Ignore List": 14, "Batchfile": 11, "Ant Build System": 3, "Java": 280, "INI": 7, "JSON": 1, "Proguard": 7, "Kotlin": 79, "JavaScript": 7, "HTML": 2} | package appnexus.com.trackertestapp
import android.net.Uri
import com.appnexus.opensdk.ut.UTConstants
import okhttp3.mockwebserver.Dispatcher
import okhttp3.mockwebserver.MockResponse
import okhttp3.mockwebserver.RecordedRequest
class MockDispatcher : Dispatcher() {
lateinit var adType: String
var arrRequest... | 6 | Java | 68 | 79 | db5d7147687350e0e84f35b85e928e27f4e5d9b1 | 1,382 | mobile-sdk-android | Apache License 2.0 |
src/test/kotlin/leetcode/LC_146_LRUCacheTest.kt | so3500 | 110,426,646 | false | {"Java": 733632, "Kotlin": 67130, "Python": 10364, "Shell": 893} | package leetcode
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
class LC_146_LRUCacheTest {
private val lcn = LC_146_LRUCache()
@Test
fun test() {
val cache = lcn.LRUCache(2)
cache.put(1, 1)
cache.put(2, 2)
assertThat(cache.get(1)).isEqualTo(1)
cache.put(3, 3)
ass... | 1 | null | 1 | 1 | 1e2a25431b419d0e8d60f5ca88dde8c08d870786 | 499 | problem-solving | MIT License |
platform/collaboration-tools/src/com/intellij/collaboration/api/graphql/GraphQLErrorException.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.collaboration.api.graphql
import com.intellij.collaboration.api.dto.GraphQLErrorDTO
import com.intellij.collaboration.messages.CollaborationToolsBundle
class GraphQLErrorExcepti... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 529 | intellij-community | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/quickfix/removeUnused/unusedFunction.kt | ingokegel | 72,937,917 | true | null | // "Safe delete 'unusedFun'" "true"
fun dummy() {
}
fun <caret>unusedFun() {
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.inspections.SafeDeleteFix | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 155 | intellij-community | Apache License 2.0 |
jeecg-boot/jeecg-boot-module-ilang/src/main/java/org/jeecg/modules/ilang/switch/ServerChannelHandler.kt | Senriot | 354,268,458 | false | null | package org.jeecg.modules.ilang.switch
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
import io.netty.channel.ChannelHandler
import io.netty.channel.ChannelHandlerContext
import io.netty.channel.SimpleChannelInboundHandler
import org.jeecg.common.util.RedisUtil
import org.jeecg.modules.ilang.entity... | 1 | null | 1 | 1 | 9e7f7732d2eb0689621a61f694c24a0332bfc53c | 1,628 | ilang-boot | Apache License 2.0 |
fixgrep-core/src/main/kotlin/org/tools4j/fixgrep/highlights/HighlightCriteriaLogicalAnd.kt | tools4j | 124,669,693 | false | null | package org.tools4j.fixgrep.highlights
import org.tools4j.fix.Fields
class HighlightCriteriaLogicalAnd(val criteria: List<HighlightCriteria>): HighlightCriteria {
override fun matches(fix: Fields): HighlightCriteriaMatch {
var returnCriteria = HighlightCriteriaMatch.EMPTY_MATCH
criteria.forEach {
... | 0 | Kotlin | 1 | 7 | e2cbc5b0b174f7ab462603e8ff65701501dfeae1 | 853 | market-simulator | MIT License |
jooby-api/src/main/kotlin/io/github/vjames19/kotlinmicroserviceexample/blog/api/jooby/di/ServiceModule.kt | vjames19 | 93,673,061 | false | null | package io.github.vjames19.kotlinmicroserviceexample.blog.api.jooby.di
import com.google.inject.Provides
import com.google.inject.Singleton
import io.github.vjames19.kotlinmicroserviceexample.blog.di.DbExecutorService
import io.github.vjames19.kotlinmicroserviceexample.blog.model.Models
import io.github.vjames19.kotli... | 1 | null | 1 | 3 | 7ee439fd26f0f215f909e982f8ddcc661e77c91f | 1,783 | kotlin-microservice-example | MIT License |
pid-provider/sdk-android/cieidsdk/src/main/java/it/ipzs/cieidsdk/ciekeystore/CieSignatureImpl.kt | italia | 659,273,478 | false | null | package it.ipzs.cieidsdk.ciekeystore
import it.ipzs.cieidsdk.common.CieIDSdk
import it.ipzs.cieidsdk.util.CieIDSdkLogger
import java.security.*
internal open class CieSignatureImpl : SignatureSpi() {
private var byteToSign: ByteArray = byteArrayOf()
@Throws(InvalidKeyException::class)
override fun engin... | 1 | null | 3 | 7 | fc69843b12753ca86639e3d67787eae7930b59b9 | 1,374 | eudi-wallet-it-openid-credential-issuer | Apache License 2.0 |
idea/testData/codeInsight/outOfBlock/Object_FunNoType_Block.kt | jossiwolf | 224,251,838 | true | {"Kotlin": 41698914, "Java": 7602898, "JavaScript": 192358, "HTML": 75183, "Lex": 23805, "TypeScript": 20278, "IDL": 11643, "CSS": 8217, "Shell": 7220, "Groovy": 6940, "Batchfile": 5362, "Swift": 2253, "Ruby": 668, "Objective-C": 293, "Scala": 80} | // OUT_OF_CODE_BLOCK: FALSE
object Some {
fun test() {
<caret>
}
} | 1 | null | 0 | 1 | 7f4b568021d56715bbb7f4897b432394c2d04baa | 82 | kotlin | Apache License 2.0 |
app/src/main/kotlin/org/eduardoleolim/organizadorpec660/municipality/views/MunicipalityDeleteModal.kt | eduardoleolim | 673,214,659 | false | {"Kotlin": 827389, "Shell": 2116} | package org.eduardoleolim.organizadorpec660.municipality.views
import androidx.compose.foundation.layout.size
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Delete
import androidx.compose.material3.Icon
import androidx.compose.material3.Text
import androidx.compose.runtime.C... | 0 | Kotlin | 0 | 0 | 8b03fcbe17e4274b70a8fba40975e59f6868c06d | 2,179 | organizador-pec-6-60 | Creative Commons Attribution 4.0 International |
tmp/arrays/youTrackTests/9949.kt | DaniilStepanov | 228,623,440 | false | {"Git Config": 1, "Gradle": 6, "Text": 3, "INI": 5, "Shell": 2, "Ignore List": 3, "Batchfile": 2, "Markdown": 2, "Kotlin": 15942, "JavaScript": 4, "ANTLR": 2, "XML": 12, "Java": 4} | // Original bug: KT-10688
interface GenericVisitor<T : GenericVisitor<T>> {
fun visit(function: T.() -> Unit = {})
fun inner()
}
interface RegularVisitor {
fun main(function: RegularVisitor.() -> Unit = {})
fun inner()
}
fun doesNotCompile(visitor: GenericVisitor<*>) {
visitor.visit() {
/... | 1 | null | 12 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 499 | bbfgradle | Apache License 2.0 |
library/src/commonMain/kotlin/models/ResidentKeyRequirement.kt | mdsadiqueinam | 844,343,050 | false | {"Kotlin": 28359} | package models
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
enum class ResidentKeyRequirement {
@SerialName("required")
REQUIRED,
@SerialName("preferred")
PREFERRED,
@SerialName("discouraged")
DISCOURAGED,
} | 1 | Kotlin | 0 | 0 | abce8aba3cc43d9cceb3dd020052bb47d3d7c103 | 286 | SimpleWebAuth | Apache License 2.0 |
app/src/main/kotlin/net/primal/android/wallet/store/inapp/InAppPurchaseBuyContract.kt | PrimalHQ | 639,579,258 | false | {"Kotlin": 2548226} | package net.primal.android.wallet.store.inapp
import android.app.Activity
import net.primal.android.wallet.store.domain.InAppProduct
import net.primal.android.wallet.store.domain.SatsPurchaseQuote
interface InAppPurchaseBuyContract {
data class UiState(
val minSatsInAppProduct: InAppProduct?,
val ... | 56 | Kotlin | 12 | 98 | 438072af7f67762c71c5dceffa0c83dedd8e2e85 | 737 | primal-android-app | MIT License |
app/src/main/java/com/github/cfogrady/vitalwear/battle/composable/AttackScreenFactory.kt | cfogrady | 619,941,986 | false | {"Kotlin": 583724} | package com.github.cfogrady.vitalwear.battle.composable
import android.graphics.Bitmap
import android.os.Handler
import android.os.Looper
import androidx.compose.animation.core.LinearEasing
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.tween
import androidx.compose.f... | 23 | Kotlin | 0 | 7 | d2d3bf3238c2043b45e3c773c0fd8d5243d21faa | 25,586 | VitalWear | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.