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/java/com/kingmang/lazurite/patterns/VariablePattern.kt | ArtyomKingmang | 652,611,608 | false | {"Kotlin": 539876, "Java": 380684} | package com.kingmang.lazurite.patterns
import java.io.Serializable
class VariablePattern : Pattern, Serializable {
private val variable: String?
constructor(variable : String){
this.variable = variable
}
fun getVariable() : String? {
return variable
}
override fun toStrin... | 4 | Kotlin | 15 | 142 | 2e8318b549d16cd8612baa242ae0a7e7c45f3c86 | 368 | Lazurite | MIT License |
api/v1.5.1/coroutines/src/main/kotlin/dev/whyoleg/ktd/api/terms/Raw.kt | mekenzh | 224,448,142 | true | {"Kotlin": 1544897, "C++": 4992, "CMake": 1641} | @file:Suppress(
"unused"
)
@file:UseExperimental(
BotsOnly::class,
TestingOnly::class
)
package dev.whyoleg.ktd.api.terms
import dev.whyoleg.ktd.*
import dev.whyoleg.ktd.api.*
import dev.whyoleg.ktd.api.TdApi.*
/**
* Accepts Telegram terms of services
*/
suspend fun TelegramClient.terms(
f: AcceptT... | 0 | null | 0 | 0 | 6282c87a5cd489cd762fa04f11987a66cbcf3af5 | 356 | ktd | Apache License 2.0 |
core/src/main/java/com/crocodic/core/widget/list/BottomListView.kt | yzzzd | 392,866,678 | false | null | package com.crocodic.core.widget.list
import android.content.Context
import android.util.AttributeSet
import android.view.MotionEvent
import android.widget.AbsListView
import android.widget.ListView
class BottomListView(context: Context?, attrs: AttributeSet?) : ListView(context, attrs) {
override fun onIntercept... | 0 | Kotlin | 3 | 3 | d30e5df4a88f00e205a6bb8e7eaf5d5255be50ef | 1,199 | androidcore | Apache License 1.1 |
app/src/main/java/com/example/uzair/blazeimageloader/models/WallPost.kt | mohammed-uzair | 210,272,304 | false | {"Kotlin": 34488} | package com.example.uzair.blazeimageloader.models
import androidx.room.ColumnInfo
import androidx.room.Embedded
import androidx.room.Entity
import androidx.room.PrimaryKey
/**
* Model class for wall post
*/
@Entity
data class WallPost(
@PrimaryKey(autoGenerate = true)
val postId: Int = 0,
@ColumnInfo(na... | 0 | Kotlin | 0 | 0 | 238e666b7992599293936b3142c3c4169a099f0c | 767 | blaze-downloader | Apache License 2.0 |
ktor-core/src/org/jetbrains/ktor/nio/ChainAsyncByteChannel.kt | cy6erGn0m | 40,906,748 | true | {"Kotlin": 635453} | package org.jetbrains.ktor.nio
import java.nio.*
import java.nio.channels.*
import java.util.concurrent.*
open class ChainAsyncByteChannel(val chain: Sequence<() -> AsynchronousByteChannel>) : AsynchronousByteChannel {
private val iterator = chain.iterator()
private var current: AsynchronousByteChannel? = nul... | 0 | Kotlin | 0 | 0 | 2d3b4f0b813b05370b22fae4c0d83d99122f604f | 2,109 | ktor | Apache License 2.0 |
app/src/main/java/eu/kanade/tachiyomi/widget/preference/BadgePreference.kt | az4521 | 176,152,541 | true | null | package eu.kanade.tachiyomi.widget.preference
import android.content.Context
import android.util.AttributeSet
import androidx.preference.Preference
import androidx.preference.PreferenceViewHolder
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.util.view.gone
import eu.kanade.tachiyomi.util.view.visible
import ... | 0 | Kotlin | 7 | 130 | 7a62c7d98654fad82088d494b94f84ce05eef78f | 1,076 | TachiyomiAZ | Apache License 2.0 |
modules/views/src/androidMain/kotlin/splitties/views/Padding.kt | MaTriXy | 98,187,110 | true | {"Kotlin": 516783, "Java": 1368} | /*
* Copyright 2019 <NAME>. Use of this source code is governed by the Apache 2.0 license.
*/
package splitties.views
import android.view.View
import androidx.annotation.Px
import splitties.dimensions.dip
import kotlin.DeprecationLevel.HIDDEN
inline var View.padding: Int
@Deprecated(NO_GETTER, level = HIDDEN) ... | 0 | Kotlin | 0 | 0 | e37709c8de96847b3840d72e7565a6127fc5e5c8 | 1,268 | Splitties | Apache License 2.0 |
PassSlideCaptcha/app/src/main/java/com/eeextend/passslidecaptcha/HookEntry.kt | Eeeextend | 765,597,817 | false | {"Kotlin": 3355} | package com.eeextend.passslidecaptcha
import android.util.Log
import de.robv.android.xposed.IXposedHookLoadPackage
import de.robv.android.xposed.callbacks.XC_LoadPackage
class HookEntry: IXposedHookLoadPackage {
private val tag:String = "HookEntry"
override fun handleLoadPackage(lpparam: XC_LoadPackage.LoadPa... | 0 | Kotlin | 0 | 0 | b3ecda21483b2a394d0c806942288c32cc3e5197 | 554 | PassSlideCaptcha | MIT License |
app/src/main/java/pl/suwalki/zs2/thebestiilo/MainActivity.kt | kapiziak | 175,501,711 | false | null | package pl.suwalki.zs2.thebestiilo
import android.content.Intent
import android.content.SharedPreferences
import android.net.Uri
import android.os.Bundle
import android.preference.Preference
import android.preference.PreferenceManager
import android.support.design.widget.Snackbar
import android.support.v4.view.Gravity... | 0 | Kotlin | 0 | 0 | 317eafc70cd0cca85f095bbe7261d4b68f759dde | 5,600 | TheBestIILO | The Unlicense |
libraries/navigation/src/main/java/com/hisham/bushar/navigation/HomeDirection.kt | ghatasheh | 425,988,635 | false | {"Kotlin": 63651} | package com.hisham.bushar.navigation
import androidx.navigation.NamedNavArgument
object HomeDirection {
val Home = object : NavigationCommand {
override val arguments: List<NamedNavArgument>
get() = emptyList()
override val destination: String
get() = "home"
}
va... | 0 | Kotlin | 0 | 0 | 3d22bff2bd4744ee97009b8bc1e8e47196e42165 | 531 | bushar | Apache License 2.0 |
libraries/navigation/src/main/java/com/hisham/bushar/navigation/HomeDirection.kt | ghatasheh | 425,988,635 | false | {"Kotlin": 63651} | package com.hisham.bushar.navigation
import androidx.navigation.NamedNavArgument
object HomeDirection {
val Home = object : NavigationCommand {
override val arguments: List<NamedNavArgument>
get() = emptyList()
override val destination: String
get() = "home"
}
va... | 0 | Kotlin | 0 | 0 | 3d22bff2bd4744ee97009b8bc1e8e47196e42165 | 531 | bushar | Apache License 2.0 |
src/main/kotlin/de/pflugradts/passbird/application/commandhandling/handler/CommandHandler.kt | christianpflugradt | 522,173,174 | false | {"Kotlin": 412898} | package de.pflugradts.passbird.application.commandhandling.handler
import de.pflugradts.passbird.domain.service.eventhandling.EventHandler
interface CommandHandler : EventHandler
| 0 | Kotlin | 0 | 0 | 3f395295d94f48e77076134fa6b047d004b847a4 | 181 | PwMan3 | Apache License 2.0 |
libs/jdbc/test/libs/postgres/concurreny/TransactionTest.kt | navikt | 797,896,421 | false | {"Kotlin": 90374} | package libs.postgres.concurreny
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.async
import kotlinx.coroutines.runBlocking
import libs.postgres.AsyncDao
import libs.postgres.H2
import libs.postgres.concurrency.CoroutineDatasource
import libs.postgres.concurren... | 0 | Kotlin | 0 | 0 | 48841e95614729ec41ec78162a5ec857840eafd2 | 2,671 | helved-libs | MIT License |
src/main/java/com/github/holeaupoint/firearms/items/Magazine.kt | holeaupoint | 340,459,676 | false | null | package com.github.holeaupoint.firearms.com.github.holeaupoint.firearms.items
import net.minecraft.item.Item
import java.util.*
class Magazine (
settings: Settings?,
private val capacity: Int,
private val type: MagazineType,
) : Item(settings) {
var cartridges = LinkedList<Int>()
} | 4 | Kotlin | 0 | 0 | d9b820f92dc6c2c9f39d3449b8b4940b34acc13e | 306 | Firearms | MIT License |
youtube-player/src/main/java/me/amermahsoub/youtube_player/features/player/IntentManager.kt | amerelsayed1 | 833,382,887 | false | {"Kotlin": 6034, "HTML": 711} | package me.amermahsoub.youtube_player.features.player
import android.content.Context
import android.content.Intent
import me.amermahsoub.youtube_player.utils.Constants
import me.amermahsoub.youtube_player.utils.convertToInt
object IntentManager {
fun createIntent(
context: Context,
videoId: Strin... | 0 | Kotlin | 0 | 0 | fe624febb3203d9644fad76de381269b61f9bc06 | 1,086 | Youtube-android-player | MIT License |
buildSrc/src/main/kotlin/Libs.kt | GuillaumeMuret | 718,024,230 | false | {"Kotlin": 265351, "Shell": 4408, "Swift": 571, "HTML": 357, "CSS": 108} | object Libs {
// Common
const val appcompat: String = "androidx.appcompat:appcompat:" + Versions.appcompat
const val coreKtx: String = "androidx.core:core-ktx:" + Versions.coreKtx
const val ktorClientCore: String = "io.ktor:ktor-client-core:" + Versions.ktor
const val ktorClientContentNegotiation: S... | 0 | Kotlin | 0 | 0 | ba51c11e7188de07a943dffe6604d7d9a336f8c1 | 3,035 | claudio-app | Apache License 2.0 |
Client/core/src/main/java/com/t3ddyss/core/util/extensions/ContextExt.kt | t3ddyss | 337,083,750 | false | null | package com.t3ddyss.core.util.extensions
import android.content.Context
import android.util.TypedValue
import androidx.annotation.AttrRes
import androidx.core.graphics.BlendModeColorFilterCompat
import androidx.core.graphics.BlendModeCompat
fun Context.getThemeColor(@AttrRes res: Int): Int {
val typedValue = Type... | 0 | Kotlin | 1 | 23 | a2439707002e0086de09bf37c3d10e7c8cf9f060 | 756 | Clother | MIT License |
src/test/com/manalili/advent/Day03Test.kt | maines-pet | 162,116,190 | false | null | package com.manalili.advent
import org.junit.Test
import org.junit.Assert.*
import java.io.File
class Day03Test {
@Test
fun overlapSection() {
val file = File("input/day03sample.txt")
assertEquals(4, Day03(file.readLines()).overlapSection())
val file2 = File("input/day03.txt")
... | 0 | Kotlin | 0 | 0 | 25a01e13b0e3374c4abb6d00cd9b8d7873ea6c25 | 650 | adventOfCode2018 | MIT License |
modules/core/src/test/kotlin/ru/astrainteractive/astratemplate/core/di/factory/MainConfigurationFactoryTest.kt | Astra-Interactive | 378,620,934 | false | {"Kotlin": 95132} | package ru.astrainteractive.astratemplate.core.di.factory
import ru.astrainteractive.astralibs.serialization.YamlStringFormat
import ru.astrainteractive.astratemplate.core.PluginConfiguration
import java.io.File
import kotlin.test.Test
class MainConfigurationFactoryTest {
@Test
fun GIVEN_default_factory_WHEN_... | 0 | Kotlin | 0 | 20 | efd949a211ac9a6211f04ca49fa50b0c37ed766f | 605 | AstraTemplate | MIT License |
data/src/main/java/com/centaury/data/tvshow/repository/source/network/result/SearchTVShowsItem.kt | Centauryal | 213,598,833 | false | null | package com.centaury.data.tvshow.repository.source.network.result
import androidx.annotation.Keep
import com.squareup.moshi.Json
@Keep
data class SearchTVShowsItem(
@field:Json(name = "first_air_date")
val firstAirDate: String,
@field:Json(name = "overview")
val overview: String,
@field:Json(na... | 0 | Kotlin | 0 | 0 | 5a369b2f509e2d11eb298774533e40ec63d7fa0d | 606 | CatalogueMovie-Jetpack | Apache License 2.0 |
items/src/commonMain/kotlin/dev/garage/items/ItemEvent.kt | vchernyshov | 255,430,518 | false | null | package dev.garage.items
interface ItemEvent {
} | 0 | Kotlin | 1 | 5 | 76c84cdf7a14805c8d436224ce5bf32a2acccef1 | 49 | kmp-items | MIT License |
samples/messenger/feature_chat_impl/src/main/java/com/revolut/kompot/sample/feature/chat/ui/screens/chat_list/di/ChatListScreenModule.kt | revolut-mobile | 488,970,565 | false | null | package com.revolut.kompot.sample.feature.chat.ui.screens.chat_list.di
import com.revolut.kompot.di.scope.ScreenScope
import com.revolut.kompot.di.screen.BaseScreenModule
import com.revolut.kompot.navigable.screen.BaseScreen
import com.revolut.kompot.navigable.screen.StateMapper
import com.revolut.kompot.sample.featur... | 0 | Kotlin | 5 | 91 | 1ea49978cd64b74aeac41d1d0bcce68bbcce9d6c | 1,319 | kompot | Apache License 2.0 |
core/time/src/main/java/com/azuredragon/core/time/TimeModel.kt | bastionkid | 536,519,741 | false | null | package com.azuredragon.core.time
import android.os.Parcelable
import com.azuredragon.core.time.ClockImpl.Companion.ONE_DAY_IN_HOURS
import com.azuredragon.core.time.ClockImpl.Companion.ONE_DAY_IN_MILLIS
import com.azuredragon.core.time.ClockImpl.Companion.ONE_HOUR_IN_MILLIS
import com.azuredragon.core.time.ClockImpl.... | 1 | Kotlin | 0 | 0 | ca22bbdfc1c6e9263d33693f03e1e67d7cef2630 | 1,362 | android-app-template | Apache License 2.0 |
src/main/kotlin/intelliractive/hp_printer/Trial.ws.kts | Intelliractive | 807,729,216 | false | {"Kotlin": 27616, "Java": 615} | import intelliractive.hp_printer.Picture
Picture.entries.forEach {
println(it.materials.map { it.toString().lowercase() })
println(it.materials.size)
}
println("•".repeat(3)) | 0 | Kotlin | 0 | 0 | 5c65ff5e91940579a26c9926a031724b209a16de | 185 | hp_printer | MIT License |
i18n4k-core/src/commonMain/kotlin/de/comahe/i18n4k/messages/formatter/types/MessageDeclensionValueFormatter.kt | comahe-de | 340,499,429 | false | null | package de.comahe.i18n4k.messages.formatter.types
import de.comahe.i18n4k.Locale
import de.comahe.i18n4k.i18n4k
import de.comahe.i18n4k.messages.formatter.MessageFormatContext
import de.comahe.i18n4k.messages.formatter.MessageParameters
import de.comahe.i18n4k.messages.formatter.MessageValueFormatter
import de.comahe.... | 4 | null | 9 | 70 | b5b5b3751f22da683682bd4464494e00e7db67b3 | 3,542 | i18n4k | Apache License 2.0 |
Android-Application/Dhanrakshak2/app/src/main/java/com/example/dhanrakshak/presentation/view/components/ChatScreen.kt | omkarugale7 | 614,695,364 | false | null | @file:OptIn(ExperimentalComposeUiApi::class)
package com.example.dhanrakshak.presentation.view.components
import android.widget.Toast
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material.Icon
impor... | 0 | Kotlin | 1 | 1 | 39c32d97c2f65144da1ab9d8b4c77515fa78d6e3 | 3,895 | Homies | MIT License |
app/src/main/kotlin/com/pubnub/demo/telemedicine/ui/chat/OneOnOneChat.kt | pubnub | 340,153,384 | false | null | package com.pubnub.demo.telemedicine.ui.chat
import androidx.compose.foundation.ScrollState
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundati... | 0 | Kotlin | 3 | 9 | 0f8ebf2bd9e01507b0662f5ae9230fb3deb2d832 | 8,858 | kotlin-telemedicine-demo | MIT License |
sample/src/main/java/com/nuclominus/diffease/sample/di/SampleApplication.kt | Nuclominus | 481,985,568 | false | {"Kotlin": 38051} | package com.nuclominus.diffease.sample.di
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class SampleApplication : Application() | 0 | Kotlin | 0 | 2 | b2f195842edb289537a422b3bbe3d399529c0a42 | 172 | recyclerDiffAdapter | Apache License 2.0 |
engine/src/main/kotlin/io/kotless/engine/terraform/aws/apigateway/TfRestApiIntegrationResponse.kt | tchigher | 209,689,628 | true | {"Kotlin": 148053} | package io.kotless.engine.terraform.aws.apigateway
import io.kotless.engine.terraform.TfResource
import io.kotless.engine.terraform.utils.TfFieldValue
import io.kotless.engine.terraform.utils.tf
/**
* Terraform aws_api_gateway_integration_response resource.
* @see <a href="https://www.terraform.io/docs/providers/aw... | 0 | null | 0 | 0 | b4dabca64109041148a741f77a0639f50eb654d5 | 1,298 | kotless | Apache License 2.0 |
app/src/main/java/app/isfaaghyth/uicomponent/view/uimodel/CharDetailUIModel.kt | isfaaghyth | 263,394,849 | false | null | package app.isfaaghyth.uicomponent.view.uimodel
import app.isfaaghyth.uicomponent.data.model.CharDetail
data class CharDetailUIModel(
val heroName: String,
val location: String
) {
companion object {
fun mapToUIModel(detail: CharDetail): CharDetailUIModel {
return CharDetailUIModel(
... | 0 | Kotlin | 4 | 55 | 0a35882c9a26f27b3a455fdde647865d8effe455 | 436 | floppy | Apache License 2.0 |
SingleModuleApp/app/src/main/java/com/github/yamamotoj/singlemoduleapp/package22/Foo02254.kt | yamamotoj | 163,851,411 | false | null | package com.github.yamamotoj.singlemoduleapp.package22
class Foo02254 {
fun method0() {
Foo02253().method5()
}
fun method1() {
method0()
}
fun method2() {
method1()
}
fun method3() {
method2()
}
fun method4() {
method3()
}
fun met... | 0 | Kotlin | 0 | 9 | 2a771697dfebca9201f6df5ef8441578b5102641 | 355 | android_multi_module_experiment | Apache License 2.0 |
app/src/main/java/com/femiras/framework/mvvm/ui/home/today/FirstFragment.kt | evankhan1234 | 404,658,181 | false | null | package com.femiras.framework.mvvm.ui.home.today
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.w... | 1 | null | 1 | 1 | 250bf123cb64a086cb8590911973da762d32b4ec | 4,712 | beats | Apache License 2.0 |
src/main/kotlin/io/github/lunarwatcher/chatbot/bot/commands/ACommands.kt | LunarWatcher | 112,380,210 | false | {"Java": 94113, "Kotlin": 57162} | package io.github.lunarwatcher.chatbot.bot.commands
import io.github.lunarwatcher.chatbot.Constants
import io.github.lunarwatcher.chatbot.bot.Bot
import io.github.lunarwatcher.chatbot.bot.ReplyBuilder
import io.github.lunarwatcher.chatbot.bot.chat.BMessage
import io.github.lunarwatcher.chatbot.bot.command.CommandCente... | 1 | null | 1 | 1 | 42a061c2c333c7cf42fdb6ebbfd00aee1a2e7a58 | 11,243 | Alisha | Apache License 2.0 |
app/src/main/java/com/example/simpleandroidtests/MainActivity.kt | carlosabreu | 390,112,003 | false | {"Gradle": 3, "Java Properties": 2, "Text": 1, "Ignore List": 2, "Markdown": 1, "Proguard": 1, "Java": 8, "Kotlin": 11, "XML": 10} | package com.example.simpleandroidtests
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(sa... | 1 | null | 1 | 1 | 11ba470fc6d7c5448a7ada1ea6ae7d7e94a1c611 | 922 | SimpleAndroidTests | Apache License 2.0 |
src/com/rian/osu/beatmap/timings/BreakPeriod.kt | osudroid | 248,937,035 | false | null | package com.rian.osu.beatmap.timings
/**
* Represents a break period.
*/
data class BreakPeriod(
/**
* The time at which the break period starts, in milliseconds.
*/
@JvmField
val startTime: Float,
/**
* The time at which the break period ends, in milliseconds.
*/
@JvmField
... | 27 | null | 77 | 521 | 9f1da90c2c26b179bf425fb55fbb626515c2fc97 | 483 | osu-droid | Apache License 2.0 |
src/test/kotlin/kotlincoder/KtObjectTest.kt | mumei | 71,316,410 | false | null | /*
* Copyright 2016 <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 | a28ee30e75575ecddf76713f381abcfb3164dcca | 2,179 | kotlincoder | Apache License 2.0 |
kotlin-codegen/compiler/src/test/java/com/squareup/moshi/CompilerTest.kt | sierpys | 130,207,435 | true | {"Java": 556819, "Kotlin": 141027, "Shell": 1791} | /*
* Copyright (C) 2018 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 0 | Java | 0 | 0 | 1c68437f3c62a0092fab16afab84c19f5127a35c | 9,342 | moshi | Apache License 2.0 |
core/src/main/java/com/carpool/visitormanagement/logic/base/usecase/AbstractVisitorUc.kt | oasp | 98,169,837 | false | null | package com.carpool.visitormanagement.logic.base.usecase
import javax.inject.Inject
import com.carpool.general.logic.base.AbstractUc
import com.carpool.visitormanagement.dataaccess.api.dao.VisitorDao
/**
* Abstract use case for Visitors, which provides access to the commonly necessary data access objects.
*/
open ... | 1 | Kotlin | 0 | 0 | 118ac4ae3a9f0da2281df7f75ff79a85813d2a8c | 550 | oasp4j-sample-kotlin | Apache License 2.0 |
ontrack-extension-notifications/src/main/java/net/nemerosa/ontrack/extension/notifications/NotificationsConfigProperties.kt | nemerosa | 19,351,480 | false | null | package net.nemerosa.ontrack.extension.notifications
import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.stereotype.Component
@Component
@ConfigurationProperties(prefix = NotificationsConfigProperties.PREFIX)
class NotificationsConfigProperties {
/**
* Are th... | 57 | null | 27 | 97 | 7c71a3047401e088ba0c6d43aa3a96422024857f | 2,853 | ontrack | MIT License |
editorkit/src/main/kotlin/com/blacksquircle/ui/editorkit/model/FindResult.kt | badduck32 | 571,603,721 | true | {"Java": 1703610, "Kotlin": 1325047, "Lex": 187498, "HTML": 25796} | /*
* Copyright 2023 Squircle CE contributors.
*
* 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... | 0 | Java | 0 | 1 | a1e2b72320af4fa5092f917ccfedcf2423e833b9 | 893 | Squircle-CE-plugins | Apache License 2.0 |
covpass-http/src/main/java/de/rki/covpass/http/util/Cookie.kt | Digitaler-Impfnachweis | 376,239,258 | false | null | /*
* (C) Copyright IBM Deutschland GmbH 2021
* (C) Copyright IBM Corp. 2021
*/
package de.rki.covpass.http.util
import io.ktor.client.features.cookies.AcceptAllCookiesStorage
import io.ktor.http.Cookie
import io.ktor.http.CookieEncoding
import io.ktor.http.Url
public data class CookieEntry(val url: Url, val cooki... | 33 | null | 60 | 185 | 7301f1500dab4a686aa40341500667cf4cc54d1e | 972 | covpass-android | Apache License 2.0 |
dex-members-list/src/main/kotlin/com/jakewharton/diffuse/Apk.kt | samtstern | 209,351,988 | true | {"Kotlin": 191119, "Shell": 947} | package com.jakewharton.diffuse
import com.android.apksig.ApkVerifier
import com.android.apksig.util.DataSources
import com.jakewharton.dex.entries
import com.jakewharton.dex.readBytes
import com.jakewharton.diffuse.ArchiveFile.Type.Companion.toApkFileType
import com.jakewharton.diffuse.Arsc.Companion.toArsc
import co... | 0 | null | 0 | 1 | b9cb33fece7276a810f8554b5ed6cfed6f97f6f8 | 2,658 | dex-member-list | Apache License 2.0 |
chargebee/src/main/java/com/chargebee/android/models/CBEntitlements.kt | chargebee | 279,238,499 | false | null | package com.chargebee.android.models
data class SubscriptionEntitlements(val subscription_id: String, val feature_id: String, val feature_name: String, val feature_description: String,
val feature_type: String, val value: String, val name: String, val is_overridden: Boolean, val is_enabled: Boolean, val ob... | 8 | null | 7 | 8 | ba3d15dc9e6d19b91a78753d851ff1e1946b2ffc | 498 | chargebee-android | MIT License |
mobile/src/main/java/net/bonysoft/doityourselfie/standalone/StandAloneAuthenticationActivity.kt | danybony | 137,995,324 | false | {"Gradle": 10, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 9, "Batchfile": 1, "Markdown": 2, "Proguard": 7, "Java": 5, "XML": 40, "Kotlin": 57, "JSON": 5} | package net.bonysoft.doityourselfie.standalone
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.View
import com.orhanobut.hawk.Hawk
import net.bonysoft.doityourselfie.R
import kotlinx.android.synthetic.main.activity_stand_alone_authentication.*... | 1 | Kotlin | 0 | 3 | 75f172b282d5df41325f06f9ff034f97be773ed1 | 2,525 | do-it-yourselfie | Apache License 2.0 |
mobile/src/main/java/net/bonysoft/doityourselfie/standalone/StandAloneAuthenticationActivity.kt | danybony | 137,995,324 | false | {"Gradle": 10, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 9, "Batchfile": 1, "Markdown": 2, "Proguard": 7, "Java": 5, "XML": 40, "Kotlin": 57, "JSON": 5} | package net.bonysoft.doityourselfie.standalone
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.View
import com.orhanobut.hawk.Hawk
import net.bonysoft.doityourselfie.R
import kotlinx.android.synthetic.main.activity_stand_alone_authentication.*... | 1 | Kotlin | 0 | 3 | 75f172b282d5df41325f06f9ff034f97be773ed1 | 2,525 | do-it-yourselfie | Apache License 2.0 |
library/src/main/java/com/paulmarkcastillo/androidtoolbox/converters/BaseConverter.kt | TheGabCode | 223,111,523 | true | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Kotlin": 33, "XML": 12, "Java": 1} | package com.paulmarkcastillo.androidtoolbox.converters
import java.text.DecimalFormat
open class BaseConverter {
val decimalFormat = DecimalFormat("#.0")
} | 0 | Kotlin | 0 | 0 | 18c9c99591848415f6947cd6673a4526df51f2b1 | 161 | pmc-android-toolbox | Apache License 2.0 |
app/src/main/java/com/syleiman/myfootprints/presentationLayer/activities/photoEditor/presenter/stateMachine/transitions/EditingOnBackOrCancelTransition.kt | AlShevelev | 116,675,999 | false | null | package com.syleiman.myfootprints.presentationLayer.activities.photoEditor.presenter.stateMachine.transitions
import com.syleiman.myfootprints.presentationLayer.activities.photoEditor.presenter.stateMachine.IStateMachineForTransition
import com.syleiman.myfootprints.presentationLayer.activities.photoEditor.presenter.s... | 1 | Kotlin | 1 | 2 | 11a243900f3a33b4b3aab358d4a2b08f9759dd8e | 1,776 | MyFootprints | MIT License |
idea/testData/quickfix/migration/lambdaSyntax/lambdaSyntaxMultiple.before.Dependency.kt | staltz | 38,581,975 | true | {"Java": 15450397, "Kotlin": 8578737, "JavaScript": 176060, "HTML": 22810, "Lex": 17327, "Protocol Buffer": 13024, "ANTLR": 9689, "CSS": 9431, "Shell": 3931, "IDL": 3257, "Groovy": 3010, "Batchfile": 2831} | val h = { () -> }
val l = bar@ { Int.() -> }
val s = {(): Int -> 5}() | 0 | Java | 0 | 1 | 80074c71fa925a1c7173e3fffeea4cdc5872460f | 71 | kotlin | Apache License 2.0 |
app/src/main/java/de/jensklingenberg/sheasy/model/AndroidAppInfo.kt | Foso | 129,130,317 | false | {"Markdown": 12, "Gradle": 13, "INI": 3, "YAML": 7, "Java Properties": 3, "Proguard": 2, "Shell": 3, "Text": 6, "Ignore List": 5, "Batchfile": 3, "Git Attributes": 1, "Kotlin": 329, "XML": 156, "Java": 2, "CSS": 18, "HTML": 17, "JavaScript": 27, "JSON": 3, "Gradle Kotlin DSL": 1, "JAR Manifest": 1, "OASv2-yaml": 3, "Pl... | package de.jensklingenberg.sheasy.model
import android.graphics.drawable.Drawable
data class AndroidAppInfo(
override val sourceDir: String,
override val name: String,
override val packageName: String,
override val installTime: String,
val drawable: Drawable
) : AppInfo(sourceDir, name, packageNam... | 1 | Kotlin | 4 | 36 | 069989f8c92924b7db3b7744fe54f73e2e138463 | 335 | Sheasy | Apache License 2.0 |
blink-fragment/src/main/java/com/seewo/blink/fragment/container/FragmentTag.kt | robin8yeung | 680,080,287 | false | null | package com.seewo.blink.fragment.container
import com.seewo.blink.fragment.mode.LaunchMode
internal class FragmentTag(private val tag: String?) {
val launchMode: LaunchMode
val uri: String?
val className: String?
val hashCode: Int
init {
val tags = tag?.split(";")
launchMode = kot... | 1 | null | 1 | 7 | 12d90f307638a71660b3f26e30dd237d76f0cd24 | 725 | Blink | Apache License 2.0 |
debop4k-data-mongodb/src/main/kotlin/debop4k/mongodb/config/AbstractMongoConfig.kt | debop | 60,844,667 | false | null | /*
* Copyright (c) 2016. <NAME> <<EMAIL>>
* 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 a... | 1 | Kotlin | 10 | 40 | 5a621998b88b4d416f510971536abf3bf82fb2f0 | 1,508 | debop4k | Apache License 2.0 |
app/src/main/java/com/example/anirudh/lookup/models/Phonetics.kt | chugh22 | 96,736,187 | false | {"Java": 49778, "Kotlin": 1796} | package com.example.anirudh.lookup.models
/**
* Created by anirudh on 07/07/17.
*/
data class Phonetics(var audioFile : String , var phoneticNotation : String) | 1 | Java | 1 | 4 | a98fe15a56c276ea59ce2ff500a930545145480e | 162 | LookUp | Apache License 2.0 |
core/src/main/java/com/eoa/tech/core/util/ext/UtilExt.kt | anggit97 | 294,907,791 | false | {"Gradle": 5, "Java Properties": 2, "Shell": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "INI": 1, "Proguard": 2, "Kotlin": 75, "XML": 40, "Java": 2, "JSON": 1, "Gradle Kotlin DSL": 1} | package com.eoa.tech.core.util.ext
import android.app.Activity
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.OnLifecycleEvent
import kotlin.properties.ReadWriteProperty
import kotlin.reflect.KP... | 0 | Kotlin | 0 | 0 | d0b11392329dc2215e37907c9521d95f4039885f | 1,664 | MovOn | MIT License |
plugin/src/main/kotlin/com/agoda/testing/screenshot/build/PullScreenshotsTask.kt | agoda-com | 341,168,862 | true | {"Python": 74841, "Kotlin": 11651, "Groovy": 2751, "CSS": 1993, "Starlark": 1837, "JavaScript": 1212} | package com.agoda.testing.screenshot.build
import com.android.build.gradle.api.ApkVariantOutput
import com.android.build.gradle.api.TestVariant
import org.gradle.api.Project
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.TaskAction
import java.io.File
open class PullScreenshotsTask : ScreenshotTask() ... | 0 | Python | 3 | 1 | f8a242da135d676e5e7c3a0de1e29131ef0b04fa | 3,812 | screenshot-tests-for-android | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/pipes/PipeSourceManagedStreamingKafkaParametersPropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.pipes
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.pipes.CfnPipe
@Generated
public fun buildPipeSourceManagedStreamingKafkaParametersProperty(initializer: @AwsCdkDsl
CfnPipe.PipeS... | 1 | Kotlin | 0 | 0 | b22e397ff37c5fce365a5430790e5d83f0dd5a64 | 549 | aws-cdk-kt | Apache License 2.0 |
lib/src/main/java/com/sd/lib/downloader/DownloaderConfig.kt | zj565061763 | 648,585,423 | false | null | package com.sd.lib.downloader
import android.content.Context
import com.sd.lib.downloader.executor.DefaultDownloadExecutor
import com.sd.lib.downloader.executor.IDownloadExecutor
import java.io.File
/**
* 下载器配置
*/
class DownloaderConfig private constructor(builder: Builder) {
internal val isDebug: Boolean
i... | 1 | Kotlin | 0 | 1 | a08901b3dc2b7aa3b39cc8f6819954659c4c9148 | 2,403 | downloader | MIT License |
src/test/resources/examples/externalReferences/targeted/models/ExternalObjectThree.kt | cjbooms | 229,844,927 | false | {"Kotlin": 874094, "Handlebars": 4874} | package examples.externalReferences.targeted.models
import com.fasterxml.jackson.`annotation`.JsonProperty
import javax.validation.constraints.NotNull
import kotlin.String
public data class ExternalObjectThree(
@param:JsonProperty("enum")
@get:JsonProperty("enum")
@get:NotNull
public val `enum`: ExternalObjec... | 33 | Kotlin | 41 | 154 | b95cb5bd8bb81e59eca71e467118cd61a1848b3f | 455 | fabrikt | Apache License 2.0 |
app/src/main/java/com/codingpit/pvpcplanner/ui/components/PricesListComponent.kt | Coding-Pit-Dev | 825,419,559 | false | {"Kotlin": 25792} | package com.codingpit.pvpcplanner.ui.components
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.foundation.lazy.items
import com.codingpit.pvpcplanner.domains.models.PVPCModel
@Composable
fun Pric... | 5 | Kotlin | 0 | 1 | f78a7db1d0e6d6f40ec49f86d2f497fb8956686a | 783 | PVPC-Android | MIT License |
app/src/main/java/com/blazecode/tsviewer/util/tile/TileManager.kt | BlazeCodeDev | 434,321,563 | false | null | /*
*
* * Copyright (c) BlazeCode / <NAME>, 2023.
*
*/
package com.blazecode.tsviewer.util.tile
import android.content.Context
import android.content.SharedPreferences
import androidx.appcompat.app.AppCompatActivity
import com.blazecode.tsviewer.R
import com.blazecode.tsviewer.data.TsClient
class TileManager(val... | 2 | null | 1 | 15 | 7ec64b226826526cee0164feb156681b0eae76de | 1,403 | TSViewer | MIT License |
modules/android/ui/material/src/main/kotlin/alakazam/android/ui/material/Notifier.kt | jonapoul | 375,762,483 | false | null | package alakazam.android.ui.material
import alakazam.android.core.INotifier
import alakazam.android.core.getCompatColor
import android.graphics.Color
import android.view.View
import android.widget.TextView
import androidx.annotation.ColorRes
import androidx.annotation.StringRes
import com.google.android.material.snack... | 0 | null | 0 | 1 | 20c3c3255f9ac32db71aa04ea6357f0535e98f85 | 2,622 | alakazam | Apache License 2.0 |
app/src/main/kotlin/net/primal/android/core/compose/AvatarThumbnail.kt | PrimalHQ | 639,579,258 | false | {"Kotlin": 1487402} | package net.primal.android.core.compose
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import net.primal.android.core.compose.media.model.MediaResourceUi
import net.primal.android.core.ext.findByUrl
@Composable
fun A... | 14 | Kotlin | 4 | 62 | 07de2fae2907bfeb7c342bb6719f71ef13f3681d | 894 | primal-android-app | MIT License |
library/src/main/java/com/aliernfrog/toptoast/enum/TopToastColor.kt | aliernfrog | 522,699,218 | false | null | package com.aliernfrog.toptoast.enum
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
/**
* Some colors which can be used in toasts, will be parsed from MaterialTheme.colorScheme
*/
enum class TopToastColor {
PRIMARY {
@... | 0 | Kotlin | 0 | 1 | f0f731ad61ac287d1b5023db081614c9ce7237a5 | 1,143 | top-toast-compose | MIT License |
src/main/kotlin/ru/jmorozov/prodkalendar/service/query/impl/QueryFileServiceImpl.kt | jmorozov | 145,248,149 | false | null | package ru.jmorozov.prodkalendar.service.query.impl
import com.fasterxml.jackson.core.JsonParseException
import com.fasterxml.jackson.databind.JsonMappingException
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
import java.io.File
import java.io.IOException
impo... | 1 | Kotlin | 0 | 3 | 725e7a68b7b5417488021a617ff27b252534782c | 1,548 | productive-kalendar | MIT License |
Toolkits/autils/src/main/java/com/atoolkit/autils/DeviceInfoUtil.kt | Suaix | 614,829,857 | false | null | package com.atoolkit.autils
import android.Manifest
import android.annotation.SuppressLint
import android.content.Context
import android.content.pm.PackageManager
import android.net.wifi.WifiManager
import android.os.Build
import android.provider.Settings
import android.telephony.TelephonyManager
import android.util.D... | 0 | null | 0 | 2 | f20df50b68ed17f17c72db73e3da5ee98635d4df | 13,145 | AToolkit | MIT License |
src/main/kotlin/com/leetcode/monthly_challenges/2021/april/ideal_permutation/Main.kt | frikit | 254,842,734 | false | null | package com.leetcode.monthly_challenges.`2021`.april.ideal_permutation
fun main() {
println("Test case 1:")
println(Solution().isIdealPermutation(intArrayOf(1, 0, 2)))//true
println()
println("Test case 2:")
println(Solution().isIdealPermutation(intArrayOf(1, 2, 0)))//false
println()
}
class S... | 0 | Kotlin | 0 | 0 | a7e569bbdae5fcbfc84fc06772205c5a0fd48e27 | 612 | leet-code-problems | Apache License 2.0 |
EgoiPushLibrary/src/main/java/com/egoiapp/egoipushlibrary/structures/EgoiPreferences.kt | E-goi | 331,384,940 | false | null | package com.egoiapp.egoipushlibrary.structures
import org.json.JSONException
import org.json.JSONObject
data class EgoiPreferences(
var appId: String = "",
var apiKey: String = "",
var locationUpdates: Boolean = false
) {
fun encode(): String? {
return try {
val json = JSONObject()... | 1 | Kotlin | 0 | 1 | c03476c70221b8ac501b7f99eac04c10afbf85c4 | 970 | EgoiPushLibraryAndroid | MIT License |
projector-client-common/src/jvmMain/kotlin/org/jetbrains/projector/client/common/Extensions.kt | guoamocker | 394,656,465 | true | {"Kotlin": 1056314, "JavaScript": 10072, "HTML": 6724, "CSS": 3133} | /*
* MIT License
*
* Copyright (c) 2019-2020 JetBrains s.r.o.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, ... | 0 | null | 0 | 0 | 896ac1497aceed08d29fc1847b99ea7dae9f0ce4 | 1,523 | projector-client | MIT License |
app/src/main/java/pl/polsl/workflow/manager/client/ui/coordinator/localization/LocalizationCoordinatorViewModel.kt | SzymonGajdzica | 306,075,061 | false | null | package pl.polsl.workflow.manager.client.ui.coordinator.localization
import android.app.Application
import androidx.lifecycle.LiveData
import pl.polsl.workflow.manager.client.model.data.Localization
import pl.polsl.workflow.manager.client.ui.base.BaseViewModel
abstract class LocalizationCoordinatorViewModel(applicati... | 0 | Kotlin | 0 | 0 | 93c99cc67c7af0bc55ca8fb03f077cdd363cb7e8 | 431 | workflow-manager-client | MIT License |
geary-papermc-spawning/src/main/kotlin/com/mineinabyss/geary/papermc/spawning/readers/SpawnPositionReader.kt | MineInAbyss | 592,086,123 | false | {"Kotlin": 245944} | package com.mineinabyss.geary.papermc.spawning.readers
import com.mineinabyss.geary.papermc.spawning.config.SpawnPosition
import com.mineinabyss.idofront.location.up
import org.bukkit.Location
import org.bukkit.Material
class SpawnPositionReader {
fun spawnPositionFor(location: Location): SpawnPosition {
... | 1 | Kotlin | 0 | 4 | f765a15878512d314808f8622cd54dc85ed12beb | 698 | geary-papermc | MIT License |
src/test/kotlin/aoc2015/LikeAGifForYouYardTest.kt | komu | 113,825,414 | false | {"Kotlin": 395919} | package komu.adventofcode.aoc2015
import komu.adventofcode.utils.readTestInput
import org.junit.jupiter.api.Test
import kotlin.test.assertEquals
class LikeAGifForYouYardTest {
@Test
fun part1() {
assertEquals(768, likeAGifForYouYard1(readTestInput("/2015/LikeAGifForYouYard.txt")))
}
@Test
... | 0 | Kotlin | 0 | 0 | 8e135f80d65d15dbbee5d2749cccbe098a1bc5d8 | 452 | advent-of-code | MIT License |
wearable/src/main/java/healthstack/sample/MainActivity.kt | S-HealthStack | 547,179,964 | false | {"Kotlin": 38023} | package healthstack.sample
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import dagger.hilt.android.AndroidEntryPoint
import healthstack.common.model.PrivDataType.ECG
import healthstack.wearable.support.BaseActivity
@AndroidEntryPoint
class MainActivit... | 0 | Kotlin | 7 | 12 | f6577daac23dfbcb5dd11906479e560b1abb9d63 | 635 | starter-app | Apache License 2.0 |
core/src/main/kotlin/sh/christian/aaraar/model/Proguard.kt | christiandeange | 588,680,111 | false | {"Kotlin": 266948, "Shell": 1171} | package sh.christian.aaraar.model
import java.nio.file.Files
import java.nio.file.Path
import java.util.stream.Collectors.toList
/**
* Represents the set of consumer Proguard files.
*/
class Proguard
internal constructor(
val lines: List<String>,
) : List<String> by lines {
override fun toString(): String {
... | 1 | Kotlin | 2 | 32 | 9e1bb7ca023d4e3f40dc24fd93b6360fde252d5e | 742 | aaraar | Apache License 2.0 |
kotest-extensions/kotest-extensions-allure/src/jvmTest/kotlin/io/kotest/extensions/allure/AllureTest.kt | ninadingole | 284,610,632 | true | {"Kotlin": 2386077, "HTML": 423, "Java": 145} | package io.kotest.extensions.allure
import io.kotest.core.spec.style.WordSpec
import io.kotest.inspectors.forOne
import io.kotest.matchers.shouldBe
import io.qameta.allure.*
import io.qameta.allure.util.ResultsUtils
@Story("foo-story")
@Owner("foo-owner")
@Epic("foo-epic")
@Feature("foo-feature")
@Severity(SeverityLe... | 5 | Kotlin | 0 | 1 | 6d7dcaa2c96db13c7e81ba76b9f8dd95b7113871 | 1,576 | kotest | Apache License 2.0 |
impl/misskeyv13/src/main/kotlin/dev/usbharu/multim/misskey/v13/model/NotesGlobalTimeline.kt | multim-dev | 591,652,793 | false | null | package dev.usbharu.multim.misskey.v13.model
import dev.usbharu.multim.misskey.v13.model.components.Note
import kotlinx.serialization.Serializable
@Serializable
data class NotesGlobalTimelineRequest(
val withFiles: Boolean = false,
val limit: Int = 10,
val sinceId: String? = null,
val untilId: String?... | 8 | Kotlin | 0 | 7 | daad2d142ae6fa7414acdb6704832a4d477dc41f | 448 | multim | Apache License 2.0 |
ktor-incontrol/src/main/kotlin/com/skosc/incontrol/annotation/Dependency.kt | SkoSC | 326,718,598 | false | null | package com.skosc.incontrol.annotation
/**
* Marks handler method parameter as [ParameterType.DEPENDENCY]
*
* @author a.yakovlev
* @since indev
*/
annotation class Dependency(val tag: String = DEFAULT_TAG_RESOLVE) {
companion object {
internal const val DEFAULT_TAG_RESOLVE = "__RESOLVE_DEFAULT"
... | 0 | Kotlin | 0 | 8 | c1fbcdfde588321ab6c18e1f2bf5caec665e2fff | 465 | ktor-incontrol | Apache License 2.0 |
app/src/main/java/com/vrudenko/telephonyserver/domain/boundary/NetworkStateRepositoryApi.kt | iamworkingasrudenko | 560,806,639 | false | null | package com.vrudenko.telephonyserver.domain.boundary
import com.vrudenko.telephonyserver.domain.model.ConnectionInfo
import io.reactivex.rxjava3.core.Flowable
interface NetworkStateRepositoryApi {
fun subscribeNetworkState(): Flowable<ConnectionInfo>
} | 0 | Kotlin | 0 | 0 | 787d7995e40ecb530794a004000f2624dec35e15 | 260 | telephony-server | Apache License 2.0 |
StudyPlanet/src/main/java/com/qwict/studyplanetandroid/data/local/StudyPlanetDatabase.kt | Qwict | 698,396,315 | false | {"Kotlin": 194543} | package com.qwict.studyplanetandroid.data.local
import android.content.Context
import android.util.Log
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import androidx.sqlite.db.SupportSQLiteDatabase
import com.qwict.studyplanetandroid.data.local.dao.PlanetDao
import com.qwict.... | 0 | Kotlin | 0 | 0 | 79e50c70b579d5380a927d760f6a9398cee5db2b | 2,713 | StudyPlanetAndroid | MIT License |
library/src/main/kotlin/com/monolith/splitter/configuration/DomainTraceInterceptorConfiguration.kt | feddena | 809,042,253 | false | {"Kotlin": 34953} | package com.monolith.splitter.configuration
interface DomainTraceInterceptorConfiguration {
fun getServicesToOverride(): Set<String>
fun getServiceNamePrefix(): String
} | 1 | Kotlin | 0 | 1 | 674058b01126e24aadd267ae1a9d4c44e23260c6 | 178 | monolith-domain-splitter | MIT License |
commonClient/src/commonTest/kotlin/test.de.compeople.swn/tarifService/TarifServiceTest.kt | compeople | 170,469,556 | false | null | package test.de.compeople.swn.tarifService
import de.compeople.swn.time.TimeService
import de.compeople.swn.tarifService.*
import io.mockk.*
import io.mockk.impl.annotations.InjectMockKs
import io.mockk.impl.annotations.MockK
import de.compeople.swn.coRun
import kotlin.js.JsName
import kotlin.test.BeforeTest
import ko... | 0 | Kotlin | 2 | 21 | e2d742c6430703e9a385ac3cea6648812a699652 | 2,557 | kotlin-multiplatform-sample | MIT License |
client/app/src/main/java/com/healthc/app/presentation/detection/object_detection/ObjectDetectionViewModel.kt | Team-HealthC | 601,915,784 | false | {"Kotlin": 189898, "Java": 9369} | package com.healthc.app.presentation.detection.object_detection
import android.graphics.Bitmap
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.healthc.data.model.local.detection.InputImage
import com.healthc.data.model.local.detection.ObjectDetectionResult
import com.healthc.dat... | 17 | Kotlin | 1 | 2 | a229a1a392526d03e62d0d24ab8e5c3d2d21859b | 3,555 | HealthC_Android | MIT License |
templates/example-image-template/src/main/java/com/dailystudio/tflite/example/template/ExampleTemplateUseCase.kt | dailystudio | 267,263,865 | false | null | package com.dailystudio.tflite.example.template
import android.content.Context
import android.graphics.Bitmap
import com.dailystudio.tensorflow.litex.image.ImageInferenceInfo
import com.dailystudio.tflite.example.template.model.ExampleTemplateModel
import org.tensorflow.lite.support.model.Model
import com.dailystudio.... | 1 | Kotlin | 12 | 47 | 1ce173bdc6dd2ac2a0c83197ff27ded3ed381df2 | 1,441 | tensorflow-lite-examples-android | Apache License 2.0 |
pluto-plugins/plugins/rooms-database/lib/src/main/java/com/pluto/plugins/rooms/db/Session.kt | androidPluto | 390,471,457 | false | {"Kotlin": 744352, "Shell": 646} | package com.pluto.plugins.rooms.db
internal object Session {
var searchText: String? = null
}
| 23 | Kotlin | 64 | 657 | 5562cb7065bcbcf18493820e287d87c7726f630b | 99 | pluto | Apache License 2.0 |
core/src/main/kotlin/jumpaku/core/curve/ParamPoint.kt | Hatanas | 94,750,222 | true | {"Kotlin": 425493} | package jumpaku.core.curve
import com.github.salomonbrys.kotson.double
import com.github.salomonbrys.kotson.get
import com.github.salomonbrys.kotson.jsonObject
import com.github.salomonbrys.kotson.toJson
import com.google.gson.JsonElement
import jumpaku.core.geom.Divisible
import jumpaku.core.geom.Point
import jumpaku... | 0 | Kotlin | 0 | 0 | 7bd4911249a576e2d6205389100f23da85af2f5d | 1,119 | JumpakuCurves | Apache License 2.0 |
app/src/main/java/mil/nga/msi/work/light/LoadLightWorker.kt | ngageoint | 588,211,646 | false | {"Kotlin": 1755228} | package mil.nga.msi.work.light
import android.content.Context
import androidx.hilt.work.HiltWorker
import androidx.work.CoroutineWorker
import androidx.work.WorkerParameters
import com.google.gson.stream.JsonReader
import dagger.assisted.Assisted
import dagger.assisted.AssistedInject
import mil.nga.msi.network.light.L... | 0 | Kotlin | 0 | 0 | a7288e3f64f5d070e332eb787af9818ede0122fc | 1,336 | marlin-android | MIT License |
BineClient/Sdk/bine-sdk/src/main/java/com/msr/bine_sdk/network/NetworkResponseAdapter.kt | microsoft | 563,698,948 | false | {"Kotlin": 1296950, "Java": 406327, "Gherkin": 3712, "Shell": 1179} | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
package com.msr.bine_sdk.network
import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.CallAdapter
import retrofit2.Converter
import java.lang.reflect.Type
class NetworkResponseAdapter<S : Any, E : Any>(
private val successTy... | 0 | Kotlin | 3 | 1 | fd6d91ba7e2efa1edd1d2fd43e30ee5b27a5a290 | 635 | digital-content-distribution-toolkit-client | MIT License |
src/main/java/com/dzen/campfire/server/controllers/ControllerFandom.kt | timas130 | 443,572,543 | true | {"Kotlin": 1072092} | package com.dzen.campfire.server.controllers
import com.dzen.campfire.api.API
import com.dzen.campfire.api.models.fandoms.Fandom
import com.dzen.campfire.api.models.fandoms.FandomLink
import com.dzen.campfire.api.models.lvl.LvlInfoAdmin
import com.dzen.campfire.api.models.lvl.LvlInfoModeration
import com.dzen.campfire... | 0 | Kotlin | 0 | 0 | 40a2fbdbbdbe6706ed852f7218cb10fd57e50445 | 12,866 | CampfireServer | Apache License 2.0 |
feature/sample/main/src/main/kotlin/com/vlaskorobogatov/multimodal/sample/ui/screens/sample/mvi/SampleViewModel.kt | Bobarik | 658,924,413 | false | null | package com.vlaskorobogatov.multimodal.sample.ui.screens.sample.mvi
import com.vlaskorobogatov.multimodal.arch.BaseViewModel
class SampleViewModel : BaseViewModel<SampleState, SampleSideEffect, SampleEvent>(
initialState = SampleState
) {
override fun resolve(event: SampleEvent) {
when(event) {
... | 0 | Kotlin | 0 | 0 | 1e30571bfdc54f7b7a13560878fe52088383e45c | 334 | MultimodalTemplate | MIT License |
app/src/main/java/com/example/superheroes/ui/theme/Color.kt | EduardoLJ | 634,798,038 | false | null | /*
* Copyright (c) 2022 The Android Open Source Project
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 0 | Kotlin | 0 | 0 | e8a763d57833efe3b48baffa0585367691c8f17e | 1,308 | Superheroes | Apache License 2.0 |
scrapseeker/src/main/kotlin/ru/citymobil/scrapseeker/model/ProjectDependencyVerificationModel.kt | city-mobil | 446,429,744 | false | {"Kotlin": 76549} | package ru.citymobil.scrapseeker.model
data class ProjectDependencyVerificationModel(
val name: String,
val changeVariant: String?
)
| 0 | Kotlin | 0 | 0 | 6a73510d364b4db999db513838c9ef18e736b1c2 | 142 | scrapseeker | MIT License |
pulsar-common/src/test/kotlin/ai/platon/pulsar/common/TestProxy.kt | platonai | 124,882,400 | false | null | package ai.platon.pulsar.common
import ai.platon.pulsar.common.proxy.ProxyEntry
import ai.platon.pulsar.common.urls.Urls
import org.junit.Test
import java.net.URL
import kotlin.test.assertEquals
import kotlin.test.assertTrue
/**
* Created by vincent on 17-1-14.
*/
class TestProxy {
@Test
fun testProxyEntry... | 1 | HTML | 32 | 110 | f93bccf5075009dc7766442d3a23b5268c721f54 | 1,404 | pulsar | Apache License 2.0 |
src/tecrys/svc/hullmods/SvcAlphaHullmod.kt | DesperatePeter | 646,942,220 | false | {"Kotlin": 186386, "Java": 120549} | package tecrys.svc.hullmods
import com.fs.starfarer.api.Global
import com.fs.starfarer.api.combat.BaseHullMod
import com.fs.starfarer.api.combat.MutableShipStatsAPI
import com.fs.starfarer.api.combat.ShipAPI
import tecrys.svc.SVC_ALPHA_HULLMOD_ID
class SvcAlphaHullmod: BaseHullMod() {
override fun applyEffectsBef... | 3 | Kotlin | 0 | 3 | e3beee7b7f92ceacfed3536dd22844b0a0f626c2 | 729 | starsector-symbiotic-void-creatures | MIT License |
example/android/app/src/main/kotlin/com/apkplug/example/MainActivity.kt | gstory0404 | 436,151,667 | false | {"Kotlin": 123359, "Dart": 85832, "Objective-C": 77571, "Ruby": 2520, "C": 104, "Swift": 93} | package com.apkplug.example
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 5 | Kotlin | 4 | 39 | aadb76e975801ea0d344ecc6244a121ad23394c2 | 124 | flutter_pangrowth | Apache License 2.0 |
app/src/main/java/dev/franco/securechat/data/source/local/MessagesRepository.kt | frank240889 | 647,016,046 | false | null | package dev.franco.securechat.data.source.local
import dev.franco.securechat.data.database.entity.LocalMessage
import kotlinx.coroutines.flow.Flow
interface MessagesRepository {
suspend fun readMessages(): Flow<List<LocalMessage>>
suspend fun createMessage(message: LocalMessage)
suspend fun updateMessage(... | 0 | Kotlin | 0 | 0 | 270d447c685201af024c2d7b15d1501ae34006e4 | 350 | SecureChat | MIT License |
src/main/kotlin/com/hazelcast/idea/plugins/tools/GenerateDialog.kt | asimarslan | 54,995,223 | false | null | package com.hazelcast.idea.plugins.tools
import com.intellij.ide.util.DefaultPsiElementCellRenderer
import com.intellij.openapi.ui.DialogWrapper
import com.intellij.openapi.ui.LabeledComponent
import com.intellij.psi.PsiClass
import com.intellij.psi.PsiField
import com.intellij.ui.CollectionListModel
import com.intell... | 0 | Kotlin | 1 | 2 | c5863dcec4c687927033b269591b8c8724adbfdf | 1,902 | hazelcast-tools | Apache License 2.0 |
core/src/main/kotlin/gateway/handler/ChannelEventHandler.kt | lost-illusi0n | 383,626,467 | true | {"Kotlin": 1390604} | package dev.kord.core.gateway.handler
import dev.kord.cache.api.DataCache
import dev.kord.cache.api.put
import dev.kord.cache.api.query
import dev.kord.cache.api.remove
import dev.kord.core.Kord
import dev.kord.core.cache.data.ChannelData
import dev.kord.core.cache.data.MemberData
import dev.kord.core.cache.idEq
impor... | 0 | Kotlin | 0 | 1 | e3d97c249cd0c058c22a1b0a6cd1ddc729a3ea7c | 4,526 | kord | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/events/targets/KinesisFirehoseStreamPropsDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.events.targets
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.events.targets.KinesisFirehoseStreamProps
@Generated
public fun buildKinesisFirehoseStreamProps(initializer: @AwsCdkDsl
... | 1 | Kotlin | 0 | 0 | e08d201715c6bd4914fdc443682badc2ccc74bea | 466 | aws-cdk-kt | Apache License 2.0 |
src/main/kotlin/no/nav/helse/Yrkesstatus.kt | navikt | 164,105,390 | false | {"Kotlin": 10921} | package no.nav.helse
enum class Yrkesstatus {
ARBEIDSTAKER,
SELVSTENDIG_NÆRINGSDRIVENDE,
FRILANSER,
IKKE_I_ARBEID
}
| 0 | Kotlin | 0 | 0 | 7accec0237f5038a55c825ada91aaaf46d7593f9 | 129 | helse-maksdato | MIT License |
materialdrawer/src/main/java/com/mikepenz/materialdrawer/model/ToggleDrawerItem.kt | mikepenz | 30,120,110 | false | {"Kotlin": 422696, "Ruby": 2019, "Shell": 470} | package com.mikepenz.materialdrawer.model
import com.mikepenz.materialdrawer.model.interfaces.IDrawerItem
/**
* Describes the main [IDrawerItem] bing used as primary item, offering a toggle.
*/
open class ToggleDrawerItem : AbstractToggleableDrawerItem<ToggleDrawerItem>()
| 5 | Kotlin | 2056 | 11,670 | b03f1d495ae65fd88bdd3ee7e496665ae9721c0f | 277 | MaterialDrawer | Apache License 2.0 |
src/main/kotlin/teksturepako/block/placeable/BlockQuartziteRock.kt | juraj-hrivnak | 330,233,317 | false | null | package teksturepako.block.placeable
import net.minecraft.block.Block
import net.minecraft.block.SoundType
import net.minecraft.item.ItemBlock
import net.minecraft.util.ResourceLocation
val BlockQuartziteRock : Block = object : AbstractPlaceableItem("quartzite_rock") {
init {
soundType = SoundType.STONE... | 0 | Kotlin | 1 | 1 | 9d46c7e7cda31b5a89a5ba2c66607e66f391e5e2 | 610 | Crocodilite | MIT License |
solar/src/main/java/com/chiksmedina/solar/outline/sports/Dumbbells.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.outline.sports
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 17,089 | SolarIconSetAndroid | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.