path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/google/samples/apps/sunflower/data/model/GardenPlanting.kt | Dbrunet | 232,897,992 | false | null | /*
* Copyright 2020 Google LLC
*
* 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 ... | 0 | Kotlin | 0 | 0 | b1c328fc32ae78a472ce70fcfde822c1f9ee7799 | 2,133 | jetpack | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/DialOff.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 4,147 | icons | MIT License |
engine/src/main/kotlin/io/rsbox/engine/game/content/mechanics/appearance/Appearance.kt | TheProdigy94 | 199,138,033 | false | null | package io.rsbox.engine.game.content.mechanics.appearance
import io.rsbox.api.NEW_ACCOUNT_ATTR
import io.rsbox.api.TaskPriority
import io.rsbox.api.UpdateBlockType
import io.rsbox.engine.model.entity.RSPlayer
/**
* @author <NAME>
*/
class Appearance(val player: RSPlayer) {
fun openAppearanceSelection() {
... | 0 | Kotlin | 0 | 0 | b83537fb4cb39be1a9fb22354477b9063d518d0d | 683 | rsbox | Apache License 2.0 |
producer/src/test/kotlin/streams/mocks/MockStreamsEventRouter.kt | ongdb-contrib | 323,500,310 | true | {"Kotlin": 707925, "Python": 4123} | package streams.mocks
import org.apache.kafka.clients.producer.RecordMetadata
import org.apache.kafka.common.TopicPartition
import org.neo4j.kernel.configuration.Config
import org.neo4j.logging.internal.LogService
import streams.StreamsEventRouter
import streams.events.StreamsEvent
import streams.events.StreamsTransac... | 0 | null | 0 | 0 | ab35153fcee8f194a73253c284ce4397366551a4 | 1,333 | neo4j-streams | Apache License 2.0 |
app/src/test/java/com/example/nytcleanarcitecture/domain/base/usecase/FlowInteractorTest.kt | etman55 | 336,537,098 | false | null | package com.example.nytcleanarcitecture.domain.base.usecase
import com.example.nytcleanarcitecture.domain.base.coroutines.CoroutineDispatcherProvider
import com.example.nytcleanarcitecture.domain.fake.FakeMostPopularArticlesRepository.Companion.ERROR_MSG
import com.google.common.truth.Truth.assertThat
import java.io.I... | 0 | Kotlin | 0 | 0 | 20ac93486f23a1db14086977ec56bcfa9926fc2a | 2,442 | nyt-clean-architecure | Apache License 2.0 |
api/src/main/kotlin/me/xtrm/atlas/metadata/api/mod/ModContributor.kt | LumosMC | 539,533,895 | false | null | package me.xtrm.atlas.metadata.api.mod
import java.util.*
/**
* A mod's contributor object.
*
* @author xtrm
* @since 0.0.1
*/
interface ModContributor {
/**
* The contributor's name.
*
* @required
* @example "xtrm"
*/
val name: String
/**
* The link to the contributor'... | 0 | Kotlin | 0 | 0 | f63acb4e5d95b27bffb45a55eda5b135cfc13aba | 731 | metadata | ISC License |
remote/src/main/java/com/piotrek1543/android/boilerplate/remote/mapper/ForecastEntityMapper.kt | piotrek1543 | 168,876,182 | false | null | package com.piotrek1543.android.boilerplate.remote.mapper
import com.piotrek1543.android.boilerplate.data.model.ForecastEntity
import com.piotrek1543.android.boilerplate.remote.model.ForecastModel
import javax.inject.Inject
/**
* Map a [ForecastModel] to and from a [ForecastEntity] instance when data is moving betwe... | 0 | Kotlin | 0 | 8 | a5510a569d306660d03263f039ab02882c531e2c | 1,036 | sunshine_clean_architecture | MIT License |
src/main/kotlin/konform/ConstraintValidator.kt | colinmorelli | 211,527,345 | false | null | package konform
import konform.context.ValidatorContext
interface ConstraintValidator<T> {
/**
* Validate the provided value and return a result
*
* @param value the value to check
* @param context the current validation context
* @return the result of validation
*/
fun validate(value: T, conte... | 0 | Kotlin | 0 | 0 | 98bf95807c638eb648a3c0e21744cfa55a3153c2 | 366 | kotlin-validation | MIT License |
app/src/main/java/xyz/sentrionic/harmony/persistence/AppDatabase.kt | sentrionic | 220,498,638 | false | {"Kotlin": 325826} | package xyz.sentrionic.harmony.persistence
import androidx.room.Database
import androidx.room.RoomDatabase
import xyz.sentrionic.harmony.models.AccountProperties
import xyz.sentrionic.harmony.models.AuthToken
import xyz.sentrionic.harmony.models.Profile
import xyz.sentrionic.harmony.models.StoryPost
@Database(entitie... | 0 | Kotlin | 0 | 1 | 0751148a2566ad11098ddd7f122cade7c1792dc3 | 752 | HarmonyApp | MIT License |
oauth2-server-core/src/main/java/nl/myndocs/oauth2/request/auth/BasicAuthenticator.kt | myndocs | 144,497,950 | false | {"Kotlin": 110244} | package nl.myndocs.oauth2.request.auth
import nl.myndocs.oauth2.request.CallContext
import nl.myndocs.oauth2.request.headerCaseInsensitive
open class BasicAuthenticator(protected val context: CallContext) {
fun extractCredentials() = BasicAuth.parseCredentials(
context.headerCaseInsensitive("authorization... | 8 | Kotlin | 26 | 147 | 349a4d187036638d397c9d8fc520825607e65385 | 489 | kotlin-oauth2-server | Apache License 2.0 |
ok-blogs-transport-mp/src/commonMain/kotlin/ru/otus/kotlin/blogs/transport/kmp/models/common/IMpTagCreateDto.kt | otuskotlin | 327,215,631 | false | null | package ru.otus.kotlin.blogs.transport.kmp.models.common
interface IMpTagCreateDto {
val name: String?
} | 1 | Kotlin | 0 | 0 | a23a05a80ee90c6c02a200f4dc6acde31b80bc76 | 109 | otuskotlin-202012-blogs-sa | MIT License |
harmony-kotlin/src/commonTest/kotlin/com/harmony/kotlin/data/query/QueryTests.kt | mobilejazz | 193,985,847 | false | null | package com.harmony.kotlin.data.query
import com.harmony.kotlin.common.randomInt
import com.harmony.kotlin.common.randomString
import kotlin.test.Test
import kotlin.test.assertEquals
class QueryTests {
@Test
fun `AllObjectsQuery should has always the same key`() {
val expectedKey = "all-objects-key"
val ... | 4 | Kotlin | 0 | 8 | 19ca40a45392578a4724020327c096c841d3a460 | 1,551 | harmony-kotlin | Apache License 2.0 |
HearthstoneViewer/app/src/main/java/mobile/hearthstoneviewer/model/entities/History.kt | GoToWinThat | 339,177,095 | false | null | package mobile.hearthstoneviewer.model.entities
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters
import mobile.hearthstoneviewer.converters.DateConverter
import java.util.*
@Entity(tableName = "history_table")
@TypeConverters(DateConverter::class)
data class History (
... | 0 | Kotlin | 0 | 0 | e3db2c89293d777c7b6d98e5e77981ed19074957 | 388 | HearthstoneKotlinApi | MIT License |
src/main/kotlin/no/item/xp/plugin/GenerateCodeWorkAction.kt | ItemConsulting | 241,078,790 | false | null | package no.item.xp.plugin
import arrow.core.extensions.either.monad.flatMap
import no.item.xp.plugin.extensions.getFormNode
import no.item.xp.plugin.extensions.getNodeAttribute
import no.item.xp.plugin.models.InterfaceModel
import no.item.xp.plugin.parser.parseInterfaceModel
import no.item.xp.plugin.renderers.iots.ren... | 5 | Kotlin | 1 | 4 | d14ff77b08597fbf172b7c4c10510db6b6b8c08b | 4,402 | xp-codegen-plugin | MIT License |
app/src/main/java/com/annas/playground/ui/components/zoomableimage/ZoomVariables.kt | annasta13 | 826,067,757 | false | {"Kotlin": 230187} | package com.annas.playground.ui.components.zoomableimage
import android.widget.ImageView
internal data class ZoomVariables(
var scale: Float,
var focusX: Float,
var focusY: Float,
var scaleType: ImageView.ScaleType?
)
| 0 | Kotlin | 0 | 1 | a8fa4467421d9c40ff9945c07b60f3108120cd9b | 236 | playground | Apache License 2.0 |
src/main/kotlin/lgp/core/evolution/operators/RecombinationOperator.kt | fearofcode | 160,328,597 | true | {"Shell": 2, "Gradle": 2, "Markdown": 2, "XML": 11, "Text": 1, "Ignore List": 1, "Batchfile": 1, "YAML": 1, "Java Properties": 1, "Java": 3, "Kotlin": 55, "HTML": 1452, "Makefile": 1, "Python": 1, "reStructuredText": 19, "CSS": 3, "JavaScript": 1} | package lgp.core.evolution.operators
import lgp.core.environment.Environment
import lgp.core.program.Output
import lgp.core.modules.Module
import lgp.core.modules.ModuleInformation
import lgp.core.program.Program
import java.util.Random
/**
* A search operator used during evolution to combine two individuals from a ... | 0 | Kotlin | 0 | 0 | dbf64c5294afab4ea4fcaad79b15640337368923 | 7,933 | LGP | MIT License |
app/src/main/java/com/zenika/story/adventure/domain/GetStatisticsUseCase.kt | Zenika | 628,692,757 | false | {"Kotlin": 394194, "Shell": 305} | package com.zenika.story.adventure.domain
import com.zenika.story.adventure.data.AdventureGameStateManager
import com.zenika.common.data.timer.TimerServiceManager
import javax.inject.Inject
class GetStatisticsUseCase @Inject constructor(
private val timerServiceManager: TimerServiceManager,
private val gameSt... | 1 | Kotlin | 0 | 2 | 3e81f9e98c283fb243bb5c06e620c637ac61a6ef | 718 | ZEscape-Android | Apache License 2.0 |
role-guardian/src/main/java/org/rfcx/guardian/guardian/utils/AudioSettingUtils.kt | rfcx | 7,535,854 | false | {"Gradle": 11, "Java Properties": 2, "Shell": 67, "Text": 29, "Ignore List": 10, "Batchfile": 2, "Markdown": 4, "INI": 1, "JSON": 37, "Proguard": 7, "Kotlin": 66, "XML": 159, "Java": 238, "Makefile": 170, "C": 541, "Python": 13, "Perl": 7, "Roff Manpage": 7, "Public Key": 1, "HTML": 165, "JavaScript": 4, "C++": 20, "M4... | package org.rfcx.guardian.guardian.utils
import android.content.Context
import org.rfcx.guardian.guardian.R
class AudioSettingUtils(context: Context) {
//sample rate, bitrate display
private val sampleRateDisplayList =
context.resources.getStringArray(R.array.prefs_labels_audio_sample_rate)
priva... | 21 | C | 0 | 0 | 627594651e0665b17f2990187c1c5d86ced1c199 | 956 | rfcx-guardian-android | Apache License 2.0 |
role-guardian/src/main/java/org/rfcx/guardian/guardian/utils/AudioSettingUtils.kt | rfcx | 7,535,854 | false | {"Gradle": 11, "Java Properties": 2, "Shell": 67, "Text": 29, "Ignore List": 10, "Batchfile": 2, "Markdown": 4, "INI": 1, "JSON": 37, "Proguard": 7, "Kotlin": 66, "XML": 159, "Java": 238, "Makefile": 170, "C": 541, "Python": 13, "Perl": 7, "Roff Manpage": 7, "Public Key": 1, "HTML": 165, "JavaScript": 4, "C++": 20, "M4... | package org.rfcx.guardian.guardian.utils
import android.content.Context
import org.rfcx.guardian.guardian.R
class AudioSettingUtils(context: Context) {
//sample rate, bitrate display
private val sampleRateDisplayList =
context.resources.getStringArray(R.array.prefs_labels_audio_sample_rate)
priva... | 21 | C | 0 | 0 | 627594651e0665b17f2990187c1c5d86ced1c199 | 956 | rfcx-guardian-android | Apache License 2.0 |
library/src/commonMain/kotlin/com/tidal/networktime/internal/NTPTimestamp.kt | tidal-music | 665,921,859 | false | {"Kotlin": 35460, "Shell": 5615} | package com.tidal.networktime.internal
import kotlin.jvm.JvmInline
import kotlin.time.Duration
import kotlin.time.Duration.Companion.milliseconds
/**
* NTP timestamps have more precision than epochs represented with Kotlin's Long, so use them as the
* non-computed property.
*/
@JvmInline
internal value class NTPTi... | 0 | Kotlin | 1 | 9 | 15a9eea9174d388f8512adfa900d8e05f5d1a448 | 959 | network-time | Apache License 2.0 |
src/main/kotlin/protocol/OutputExpressionKt.kt | i3biscotti | 736,031,193 | false | {"Kotlin": 627343, "Java": 23218, "ANTLR": 9453, "Dockerfile": 272} | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: expressions.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package protocol;
@kotlin.jvm.JvmName("-initializeoutputExpression")
public inline fun outputExpression(block: protocol.OutputExpressionKt.Dsl.() ... | 0 | Kotlin | 0 | 0 | bb87f5eff6f424bca654a0f5313ee9d9ce267281 | 3,099 | kotlin2ast-engine | Apache License 2.0 |
3107.Minimum Operations to Make Median of Array Equal to K.kt | sarvex | 842,260,390 | false | {"Kotlin": 1775678, "PowerShell": 418} | import java.util.*
internal class Solution {
fun minOperationsToMakeMedianK(nums: IntArray, k: Int): Long {
Arrays.sort(nums)
val n = nums.size
val m = n shr 1
var ans: Long = abs(nums[m] - k)
if (nums[m] > k) {
var i = m - 1
while (i >= 0 && nums[i] > k) {
ans += (nums[i] - k... | 0 | Kotlin | 0 | 0 | 17a80985d970c8316fb694e4952692e598d700af | 506 | kotlin-leetcode | MIT License |
app/src/main/kotlin/nolambda/cachesample/di/components/AppComponent.kt | esafirm | 106,250,747 | false | null | package nolambda.cachesample.di.components
import android.app.Application
import dagger.Component
import nolambda.cachesample.di.modules.AppModule
import nolambda.cachesample.di.modules.ContextServiceModule
import nolambda.cachesample.di.modules.NetworkModule
import nolambda.cachesample.network.ApiService
import javax... | 0 | Kotlin | 2 | 2 | e95d06c7cf9b081a7504942733c0a57305f76e0c | 1,108 | OkHttp-Cache-Sample | MIT License |
app/src/main/java/com/dedeandres/movieapp/di/SharePrefModule.kt | dedeandress | 373,596,520 | false | null | package com.dedeandres.movieapp.di
import android.content.Context
import android.content.SharedPreferences
import com.dedeandres.movieapp.common.sharedpref.SharedPrefs
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ActivityComponent
import dagger.hilt.and... | 0 | Kotlin | 0 | 0 | 28cbe0a80321fa7fd5abb0d9c3d0724d69d1e6e0 | 852 | movie_app_android | MIT License |
app/src/main/java/com/test/giphyapp/data/model/Analytics.kt | naveentds | 608,781,224 | false | null | package com.test.giphyapp.data.model
data class Analytics(
val onclick: Onclick,
val onload: Onload,
val onsent: Onsent
) | 0 | Kotlin | 0 | 0 | 65011d7b883d30e974ef446a361cef1f024e9c35 | 134 | giphy_android | MIT License |
src/main/kotlin/com/terorie/asanabot/Config.kt | dialogs | 151,449,172 | false | null | package com.terorie.asanabot
import java.io.FileInputStream
import java.lang.IllegalArgumentException
import java.util.*
object Config {
val BOT_TOKEN: String
val ASANA_PERSONAL_TOKEN: String
val ASANA_TEAM_ID: String
init {
val props = Properties()
FileInputStream("config.properties"... | 8 | Kotlin | 1 | 1 | f2f0ba6f9d5edd27db3f766d83e8a1f9a5dde640 | 772 | dialog-asana-bot | Apache License 2.0 |
app/src/main/java/es/dam/pi/vinilaapp_v3/ui/home/ui/YouTubePlayerView.kt | ptrdck | 815,297,387 | false | {"Kotlin": 199701, "JavaScript": 1824} | package es.dam.pi.vinilaapp_v3.ui.home.ui
import android.content.Context
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.viewinterop.AndroidView
import com.pierfrancescosoffritti.androidyoutubeplayer.core.player.YouTubePlayer
import com.pierfrancescosoffritti.a... | 0 | Kotlin | 0 | 0 | 279319fa596dca86bf61271ba6906de6fe7187ce | 989 | VinilApp_release | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/CircleExclamationCheck.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 4,185 | icons | MIT License |
crypto/src/test/kotlin/web5/sdk/crypto/InMemoryKeyManagerTest.kt | TBD54566975 | 681,803,102 | false | {"Kotlin": 125522} | package web5.sdk.crypto
import com.nimbusds.jose.JWSAlgorithm
import org.junit.jupiter.api.Test
import kotlin.test.assertEquals
class InMemoryKeyManagerTest {
@Test
fun `test alias is consistent`() {
val keyManager = InMemoryKeyManager()
val alias = keyManager.generatePrivateKey(JWSAlgorithm.ES256K)
v... | 52 | Kotlin | 0 | 1 | 31aa2c1b5a18710ed2aa0a180367961843b40a1d | 478 | web5-kt | Apache License 2.0 |
commons/src/main/kotlin/com/itangcent/common/utils/IOKit.kt | Earth-1610 | 178,314,657 | false | {"Kotlin": 1216463, "Java": 35079, "Shell": 3153} | package com.itangcent.common.utils
import java.io.InputStream
import java.nio.charset.Charset
/**
* Reads this stream completely as a String.
*
* *Note*: It is the caller's responsibility to close this reader.
*
* @return the string with corresponding file content.
*/
fun InputStream.readString(charset: Charse... | 0 | Kotlin | 5 | 8 | a6ebeab31b2cfc62f7ae83a2f4b50ae92782d0c3 | 404 | intellij-kotlin | Apache License 2.0 |
app/src/main/java/world/snows/anarchist/ui/route/Browse.kt | BraveeSnow | 736,060,871 | false | {"Kotlin": 24003} | package world.snows.anarchist.ui.route
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ExperimentalLayoutApi
import androidx.compose.foundation.layout.FlowRow
import a... | 0 | Kotlin | 0 | 0 | eb0522858cc427ebd132cdc51e19eec1f8cdadfa | 11,827 | Anarchist | MIT License |
mobiuskt-coroutines/src/commonMain/kotlin/ExecutionPolicy.kt | DrewCarlson | 147,952,971 | false | {"Kotlin": 361175} | package kt.mobius.flow
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.FlowPreview
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.*
import kotlin.time.Duration
/**
* Defines execution behavior of handler functions added to a [subtypeEffectHandler].
*/
public interface E... | 6 | Kotlin | 3 | 65 | 194d2c1bf2737b23f5683433bcdf3cbb40c19dae | 2,875 | mobius.kt | Apache License 2.0 |
src/main/kotlin/com/dedztbh/demagica/global/ModGuiHandler.kt | DEDZTBH | 170,229,855 | false | null | package com.dedztbh.demagica.global
import com.dedztbh.demagica.blocks.containers.BlockMagicContainer
import com.dedztbh.demagica.blocks.containers.BlockMagicGui
import com.dedztbh.demagica.blocks.tileEntities.BlockMagicTileEntity
import net.minecraft.entity.player.EntityPlayer
import net.minecraft.util.math.BlockPos
... | 0 | Kotlin | 2 | 7 | 87599353b178b6b07c1314967ef2de402aa5b9df | 1,156 | DEMagica | MIT License |
src/main/kotlin/com/sourcegraph/cody/agent/protocol/Range.kt | sourcegraph | 702,947,607 | false | {"Kotlin": 367043, "Java": 250062, "Shell": 4321, "TypeScript": 2153, "Nix": 1122, "JavaScript": 436, "HTML": 290} | package com.sourcegraph.cody.agent.protocol
data class Range(val start: Position, val end: Position)
| 56 | Kotlin | 5 | 8 | 7268d6d4fe06432d710c86bdfc09c0dd9534bdd2 | 102 | jetbrains | Apache License 2.0 |
example/android/app/src/main/kotlin/com/example/flutter_once_example/MainActivity.kt | MostafaSolimanMO | 464,961,063 | false | {"Dart": 3027, "Ruby": 1354, "Swift": 404, "Kotlin": 137, "Objective-C": 38} | package com.example.flutter_once_example
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 1 | 1 | 80636cf689aa7d843d54ad8d8237e23401e7df5f | 137 | flutter_once | MIT License |
packages/Manager/src/main/kotlin/nz/govt/eop/plan_limits/Manifest.kt | Greater-Wellington-Regional-Council | 528,176,417 | false | null | package nz.govt.eop.plan_limits
import java.math.BigInteger
import java.security.MessageDigest
import java.time.Instant
import org.jooq.DSLContext
import org.springframework.cache.annotation.CachePut
import org.springframework.cache.annotation.Cacheable
import org.springframework.stereotype.Component
const val MANIFE... | 9 | null | 3 | 5 | 292ce1c7eb3039957f0774e018832625c7a336d5 | 1,833 | Environmental-Outcomes-Platform | MIT License |
src/main/kotlin/com/example/Repo.kt | PolinaRubinova | 625,225,862 | false | null | package com.example
import com.example.models.Block
import com.example.models.BlockChain
import io.ktor.client.*
import io.ktor.client.call.*
import io.ktor.client.engine.cio.*
import io.ktor.client.plugins.contentnegotiation.*
import io.ktor.client.request.*
import io.ktor.client.statement.*
import io.ktor.http.*
imp... | 0 | Kotlin | 0 | 0 | b6d8ab18ca5c5daa88574dc5ba9b500e54fdea7e | 1,639 | Network_Programming_lab | Apache License 2.0 |
src/main/kotlin/io/kanro/idea/plugin/protobuf/lang/psi/proto/element/ProtobufServiceDefinition.kt | devkanro | 351,091,577 | false | {"Kotlin": 723329, "Lex": 11522, "Java": 749} | package io.kanro.idea.plugin.protobuf.lang.psi.proto.element
import com.intellij.psi.util.QualifiedName
import io.kanro.idea.plugin.protobuf.ProtobufIcons
import io.kanro.idea.plugin.protobuf.lang.psi.proto.ProtobufFile
import io.kanro.idea.plugin.protobuf.lang.psi.proto.structure.ProtobufDefinition
import io.kanro.id... | 13 | Kotlin | 11 | 82 | 4d6bd78652590733de23155b5caa6e4c0f8d8376 | 791 | intellij-protobuf-plugin | Apache License 2.0 |
src/main/kotlin/id/walt/signatory/rest/SignatoryController.kt | walt-id | 392,607,264 | false | null | package id.walt.signatory.rest
import id.walt.credentials.w3c.JsonConverter
import id.walt.credentials.w3c.VerifiableCredential
import id.walt.credentials.w3c.builder.W3CCredentialBuilder
import id.walt.signatory.ProofConfig
import id.walt.signatory.ProofType
import id.walt.signatory.RevocationService
import id.walt.s... | 9 | Kotlin | 23 | 60 | 6a975771352521452b87d917474a70de8b39a758 | 7,202 | waltid-ssikit | Apache License 2.0 |
Yum-Client/app/src/main/java/com/anbui/yum/presentation/category/CategoryViewModel.kt | AnBuiii | 608,489,464 | false | null | package com.anbui.yum.presentation.category
import android.util.Log
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.viewModelScope
import com.anbui.yum.data.mappers.toRecipe
import com.anbui.yum.data.remote.recipe.RecipeService
import com.anbui.yum.presentation.YumViewModel
import kotlinx.coro... | 0 | Kotlin | 0 | 3 | 94a9344aeb57403214315191304b81d15d584863 | 817 | Yum | MIT License |
app/src/main/java/wutheringwavesguide/models/db/NewsSearchResult.kt | nikunj3011 | 810,402,672 | false | {"Kotlin": 101381} | package wutheringwavesguide.models.db
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters
import wutheringwavesguide.db.NewsTypeConverters
@Entity(tableName = "news_search_results")
@TypeConverters(NewsTypeConverters::class)
data class NewsSearchResult(
@PrimaryKey
... | 0 | Kotlin | 0 | 0 | dc074f4fcba52e21e047b89d1ca5fb2577aef104 | 390 | Wuthering.Waves.Android.Kotlin | MIT License |
app/src/main/kotlin/com/muedsa/compose/tv/theme/Theme.kt | muedsa | 773,720,587 | false | {"Kotlin": 297824} | package com.muedsa.compose.tv.theme
import androidx.compose.runtime.Composable
import androidx.tv.material3.MaterialTheme
@Composable
fun TvTheme(
content: @Composable () -> Unit
) {
MaterialTheme(
colorScheme = TvDarkColorScheme,
content = content
)
} | 2 | Kotlin | 0 | 9 | dfdd014023405e92a9a93a41a6def879384d04fc | 283 | JCYTV | MIT License |
solar/src/main/java/com/chiksmedina/solar/outline/arrows/RoundAltArrowRight.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.outline.arrows
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 | 2,671 | SolarIconSetAndroid | MIT License |
app/src/main/java/com/livewire/audax/authentication/ui/resetpassword/ResetPasswordViewModel.kt | HDSANAULLAHS | 466,947,990 | false | {"Kotlin": 211156, "Java": 919} | package com.livewire.audax.authentication.ui.resetpassword
import android.util.Log
import androidx.lifecycle.ViewModel
import com.livewire.audax.authentication.AccountDataSource
import com.livewire.audax.authentication.AccountFieldValidator
import com.livewire.audax.utils.ifNonZero
class ResetPasswordViewModel (priva... | 0 | Kotlin | 0 | 0 | 356cfa88f3685882abd1336398defe12ea04f93f | 999 | Livewire | Apache License 2.0 |
launcher_app/src/main/java/id/psw/vshlauncher/livewallpaper/XMBWaveWallpaperService.kt | EmiyaSyahriel | 275,583,382 | false | null | package id.psw.vshlauncher.livewallpaper
import android.content.Intent
import android.opengl.GLSurfaceView
import android.util.Log
import com.learnopengles.android.switchinglivewallpaper.GLWallpaperService
import com.learnopengles.android.switchinglivewallpaper.OpenGLES2WallpaperService
class XMBWaveWallpaperService ... | 2 | Kotlin | 3 | 18 | 02624b7fec16a4ca242b2cf0e64b4578eedeb7a9 | 619 | CrossLauncher | MIT License |
app/src/main/java/com/ahmet/movieapp/models/MovieResponse.kt | ahmetufan | 535,800,754 | false | null | package com.ahmet.movieapp.models
import android.os.Parcelable
data class MovieResponse(
val page: Int,
val results: List<Movie>,
val total_pages: Int,
val total_results: Int
) | 1 | Kotlin | 0 | 5 | 20cd572b4a30b26ee9cdfb92b6624f1213f52da0 | 194 | MovieApp | MIT License |
backend/common/src/main/kotlin/com/example/nftmarketplace/common/Logger.kt | majoseek | 653,294,615 | false | {"Kotlin": 117931, "TypeScript": 59289, "Solidity": 18739, "Dockerfile": 560, "HTML": 434, "CSS": 140, "JavaScript": 95} | package com.example.nftmarketplace.common
import org.slf4j.LoggerFactory
fun getLogger() = LoggerFactory.getLogger("NFTMarketplaceApplication")
| 0 | Kotlin | 0 | 1 | a9a297eeac5091f4a8b8e1c385f2949057863a39 | 147 | NFT-Marketplace | MIT License |
app/src/main/java/dog/snow/androidrecruittest/data/network/service/PhotoService.kt | trOnk12 | 252,550,688 | false | {"Kotlin": 57018} | package dog.snow.androidrecruittest.data.network.service
import dog.snow.androidrecruittest.data.network.api.PhotoApi
import dog.snow.androidrecruittest.data.network.model.NetworkPhoto
import dog.snow.androidrecruittest.data.network.utils.CallAdapter
import dog.snow.androidrecruittest.data.network.utils.None
import re... | 0 | Kotlin | 0 | 0 | 1fea6aab8ff3838975ae8ac5416a1eda6dbb2383 | 581 | image-viewer | Apache License 2.0 |
library/src/androidTest/java/com/github/pelmenstar1/rangecalendar/SelectionShapeTests.kt | pelmenstar1 | 454,918,220 | false | {"Kotlin": 666840} | package com.github.pelmenstar1.rangecalendar
import android.graphics.PointF
import android.graphics.RectF
import android.os.Build
import androidx.annotation.RequiresApi
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.github.pelmenstar1.rangecalendar.selection.CellRange
import com.github.pelmenstar1.ran... | 2 | Kotlin | 0 | 13 | c3b64a254a0e5e9bfb9a1b4db53261d1d5373be5 | 8,831 | RangeCalendar | MIT License |
base_module/src/main/java/com/moran/base/view/CustomLinearLayout.kt | mstains | 202,702,151 | false | {"Java": 46222, "Kotlin": 39266} | package com.moran.base.view
import android.content.Context
import android.content.res.TypedArray
import android.util.AttributeSet
import android.util.TypedValue
import android.view.LayoutInflater
import android.view.View
import android.widget.LinearLayout
import com.moran.base.R
import com.moran.base.utils.LogUtils
im... | 0 | Java | 0 | 2 | a20718c0b2b0f1a15041554ee02270562b7eec84 | 3,482 | BaseProject | MIT License |
app/src/main/java/de/markhaehnel/rbtv/rocketbeanstv/di/ViewModelModule.kt | markhaehnel | 46,588,131 | false | null | package de.markhaehnel.rbtv.rocketbeanstv.di
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import dagger.Binds
import dagger.Module
import dagger.multibindings.IntoMap
import de.markhaehnel.rbtv.rocketbeanstv.ui.chat.ChatViewModel
import de.markhaehnel.rbtv.rocketbeanstv.ui.player.Pla... | 0 | Kotlin | 7 | 13 | bdac093e63dc3b40be4621d951fcb03eaf6d4fbc | 1,558 | RocketBeansTV.Android | MIT License |
katana-core/src/main/kotlin/jp/katana/core/actor/IActor.kt | hiroki19990625 | 194,672,872 | false | null | package jp.katana.core.actor
import jp.katana.core.actor.attribute.IActorAttributes
import jp.katana.core.actor.data.IActorDataManager
import jp.katana.core.world.IWorld
import jp.katana.math.Vector3
import java.util.*
interface IActor {
val uuid: UUID
val world: IWorld?
val position: Vector3
val ya... | 0 | Kotlin | 1 | 2 | aab8ae69beed267ea0ef9eab2ebd23b994ac0f25 | 469 | katana | MIT License |
api/src/main/kotlin/com/ebay/wenliu2/dubbo/api/SayHello.kt | wenliu2 | 214,076,207 | false | null | package com.ebay.wenliu2.dubbo.api
interface SayHello {
fun hello(name: String): String
} | 0 | Kotlin | 0 | 0 | 3b68a28f9dc2bb06aa2a17c2a70303de97008309 | 94 | dubbo-gradle-multi-proj | Apache License 2.0 |
app/src/main/java/com/edt/ut3/ui/calendar/BottomSheetFragment.kt | axellaffite | 277,846,416 | false | {"Kotlin": 341235} | package com.edt.ut3.ui.calendar
import android.view.View
import androidx.fragment.app.Fragment
import com.google.android.material.bottomsheet.BottomSheetBehavior
import com.google.android.material.bottomsheet.BottomSheetBehavior.STATE_COLLAPSED
import com.google.android.material.bottomsheet.BottomSheetBehavior.STATE_E... | 0 | Kotlin | 3 | 8 | f1c8011eac0055220d065510ddeb16e8ed4b6a36 | 1,713 | ut3_calendar | Apache License 2.0 |
feature/shortcut/src/main/kotlin/com/masselis/tpmsadvanced/feature/shortcut/interfaces/FeatureShortcutInitializer.kt | VincentMasselis | 501,773,706 | false | {"Kotlin": 611164} | package com.masselis.tpmsadvanced.feature.shortcut.interfaces
import android.content.Context
import androidx.startup.Initializer
import com.masselis.tpmsadvanced.core.common.AppContextInitializer
import com.masselis.tpmsadvanced.feature.shortcut.usecase.FeatureShortcutComponent
public class FeatureShortcutInitializer... | 10 | Kotlin | 3 | 9 | 41773455c3b0489e9eb5aae821bbf434d1faaa46 | 612 | TPMS-advanced | Apache License 2.0 |
src/main/kotlin/io/github/dockyardmc/registry/Items.kt | DockyardMC | 650,731,309 | false | {"Kotlin": 727245} | package io.github.dockyardmc.registry
import io.github.dockyardmc.item.ItemStack
import io.github.dockyardmc.utils.Resources
import kotlinx.serialization.decodeFromString
import kotlinx.serialization.json.Json
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization... | 4 | Kotlin | 4 | 40 | 651f7f396eb5503b73fdba20ec89b72555a1c347 | 58,900 | Dockyard | MIT License |
app/src/main/java/com/ivantsov/marsjetcompose/util/ErrorHandling.kt | NickIvantsov | 613,078,569 | false | null | package com.ivantsov.marsjetcompose.util
import androidx.annotation.StringRes
inline fun <T> withTry(block: () -> T): Outcome<T> {
return try {
Outcome.Success(block())
} catch (ex: Throwable) {
Outcome.Failure(ex)
}
}
data class ErrorMessage(val id: Long, @StringRes val messageId: Int)
... | 0 | Kotlin | 0 | 0 | be90f2aea09556744896afdf357609bde1d9bf8c | 743 | MarsJetCompose | Apache License 2.0 |
app/src/main/java/com/commit451/gitlab/extension/User.kt | cmfsotelo | 103,812,815 | true | {"Kotlin": 709179, "Java": 7073, "CSS": 1148} | package com.commit451.gitlab.extension
import com.commit451.gitlab.model.api.User
val User.feedUrl: String get() {
return webUrl + ".atom"
} | 0 | Kotlin | 0 | 0 | 4cdc3b24f7c96874fded3541adc58908ba830028 | 146 | LabCoat | Apache License 2.0 |
newm-server/src/test/kotlin/io/newm/server/features/idenfy/IdenfyFakeServer.kt | projectNEWM | 447,979,150 | false | null | package io.newm.server.features.idenfy
import io.ktor.server.application.*
import io.ktor.server.auth.*
import io.ktor.server.request.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import io.newm.server.di.inject
import io.newm.server.ext.getConfigString
import io.newm.server.features.idenfy.model.... | 2 | Kotlin | 2 | 4 | ed0669f0a211fb9e07c1c0666bbc1281c115afd2 | 1,504 | newm-server | Apache License 2.0 |
src/jvmMain/kotlin/cz/cuni/gamedev/nail123/roguelike/entities/items/Weapon.kt | hgandras | 852,496,222 | false | {"Kotlin": 269176, "Java": 23939} | package cz.cuni.gamedev.nail123.roguelike.entities.items
import cz.cuni.gamedev.nail123.roguelike.entities.attributes.HasInventory
import cz.cuni.gamedev.nail123.roguelike.entities.attributes.Inventory
import cz.cuni.gamedev.nail123.roguelike.mechanics.effects.Effect
import cz.cuni.gamedev.nail123.roguelike.mechanics.... | 0 | Kotlin | 0 | 0 | 0a979021848d6c33b1167bc7cd900806b95c9661 | 778 | Procedural-rpg-homework | MIT License |
src/main/kotlin/pl/sokolik/bartosz/dividendradar/domain/DividendRadarFileParser.kt | bartoszsokolik | 507,140,863 | false | {"Kotlin": 34289, "Shell": 668, "JavaScript": 273} | package pl.sokolik.bartosz.dividendradar.domain
import org.apache.poi.ss.usermodel.Cell
import org.apache.poi.ss.usermodel.CellType
import org.apache.poi.ss.usermodel.DateUtil
import org.apache.poi.ss.usermodel.Row
import org.apache.poi.ss.usermodel.WorkbookFactory
import org.slf4j.Logger
import org.slf4j.LoggerFactor... | 0 | Kotlin | 0 | 0 | 3560e78c0ea098f37c1d7cf644d74d2ba5121ffe | 2,859 | dividendradar | Apache License 2.0 |
src/main/kotlin/dev/mbo/graphqlsample/graphql/config/CustomGraphQLContext.kt | mbogner | 402,586,005 | false | {"Kotlin": 21151, "PLpgSQL": 1244, "Shell": 842} | package dev.mbo.graphqlsample.graphql.config
import graphql.kickstart.servlet.context.GraphQLServletContext
import org.dataloader.DataLoaderRegistry
import java.util.Optional
import javax.security.auth.Subject
import javax.servlet.http.HttpServletRequest
import javax.servlet.http.HttpServletResponse
import javax.servl... | 0 | Kotlin | 0 | 0 | d45b7c4e04efa599e2e68017e0f6ed14dae14020 | 1,078 | graph-ql-sample | MIT License |
livekit-android-sdk/src/main/java/io/livekit/android/room/types/TranscriptionSegment.kt | livekit | 339,892,560 | false | {"Kotlin": 1013067, "Java": 14523} | /*
* Copyright 2024 LiveKit, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 59 | Kotlin | 65 | 169 | f7eecc53224a8c6753460180e202fb1c9aee041b | 1,892 | client-sdk-android | Apache License 2.0 |
sphinx/screens/chats/chat-tribe/chat-tribe/src/main/java/chat/sphinx/chat_tribe/ui/TribeAppViewModel.kt | stakwork | 340,103,148 | false | {"Kotlin": 4002503, "Java": 403469, "JavaScript": 4745, "HTML": 4706, "Shell": 2453} | package chat.sphinx.chat_tribe.ui
import android.app.Application
import android.webkit.JavascriptInterface
import androidx.lifecycle.viewModelScope
import app.cash.exhaustive.Exhaustive
import chat.sphinx.chat_tribe.R
import chat.sphinx.chat_tribe.model.*
import chat.sphinx.chat_tribe.model.SphinxWebViewDto.Companion.... | 96 | Kotlin | 8 | 18 | 4fd9556a4a34f14126681535558fe1e39747b323 | 15,125 | sphinx-kotlin | MIT License |
pid-provider/sdk-android/cieidsdk/src/main/java/it/ipzs/cieidsdk/common/CieIDSdk.kt | italia | 659,273,478 | false | null | @file:Suppress("MemberVisibilityCanBePrivate", "RegExpSimplifiable", "unused",
"SpellCheckingInspection"
)
package it.ioreactnativeciepid.ipzs.cieidsdk.common
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.pm.P... | 1 | null | 3 | 7 | fc69843b12753ca86639e3d67787eae7930b59b9 | 14,459 | eudi-wallet-it-openid-credential-issuer | Apache License 2.0 |
pid-provider/sdk-android/cieidsdk/src/main/java/it/ipzs/cieidsdk/common/CieIDSdk.kt | italia | 659,273,478 | false | null | @file:Suppress("MemberVisibilityCanBePrivate", "RegExpSimplifiable", "unused",
"SpellCheckingInspection"
)
package it.ioreactnativeciepid.ipzs.cieidsdk.common
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.pm.P... | 1 | null | 3 | 7 | fc69843b12753ca86639e3d67787eae7930b59b9 | 14,459 | eudi-wallet-it-openid-credential-issuer | Apache License 2.0 |
AgoraEduUIKit/src/main/java/com/agora/edu/component/teachaids/networkdisk/FCRCloudDiskResourceFragment.kt | AgoraIO-Community | 330,886,965 | false | null | package com.agora.edu.component.teachaids.networkdisk
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.view.KeyEvent
import android.view.View
import android.view.View.GONE
import android.view.View.VISIBLE
import android.view.inputmethod.EditorInfo
import android.widg... | 1 | Kotlin | 15 | 8 | 57902c698c876c7805faf8bd6272308cf5f97817 | 3,907 | CloudClass-Android | MIT License |
kotlinx-datetime/src/main/java/io/github/boguszpawlowski/composecalendar/kotlinxDateTime/Converters.kt | boguszpawlowski | 355,182,891 | false | null | package io.github.boguszpawlowski.composecalendar.kotlinxDateTime
public fun YearMonth.toJavaYearMonth(): java.time.YearMonth = java.time.YearMonth.of(year, month)
public fun java.time.YearMonth.toKotlinYearMonth(): YearMonth = YearMonth.of(year, month)
| 4 | Kotlin | 12 | 93 | 4ae9e0ef411bd8c2c27af765e94e649eabd34764 | 256 | ComposeCalendar | Apache License 2.0 |
triggers/timer/src/commonMain/kotlin/TimersRepo.kt | InsanusMokrassar | 526,191,498 | false | null | package dev.inmo.plaguposter.triggers.timer
import com.soywiz.klock.DateTime
import dev.inmo.micro_utils.repos.KeyValueRepo
import dev.inmo.plaguposter.posts.models.PostId
interface TimersRepo : KeyValueRepo<PostId, DateTime> {
suspend fun getMinimalDateTimePost(): Pair<PostId, DateTime>?
}
| 0 | Kotlin | 0 | 2 | 57eebb61d5ab9722d136125ea3221fd015462fc2 | 298 | PlaguPoster | MIT License |
neko-engine/src/main/kotlin/de/twometer/neko/res/FontLoader.kt | Twometer | 305,384,431 | false | null | package de.twometer.neko.res
import de.twometer.neko.font.FontFace
import de.twometer.neko.font.Glyph
import mu.KotlinLogging
private val logger = KotlinLogging.logger {}
object FontLoader {
fun load(name: String): FontFace {
logger.info { "Loading font {$name.fnt, $name.png}" }
val fntData = A... | 1 | Kotlin | 0 | 8 | 2b30ccc316a592e667a4bb269617ed663b627e51 | 1,602 | neko-engine | Apache License 2.0 |
app/src/main/java/com/app/volu/di/EventCategoryModule.kt | oscarnipps | 404,371,286 | false | {"Kotlin": 90376} | package com.app.volu.di
import com.app.volu.data.remote.httpservice.EventCategoryService
import com.app.volu.data.repo.eventcategory.EventCategoryRepo
import com.app.volu.data.repo.eventcategory.EventCategoryRepoImpl
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components... | 0 | Kotlin | 0 | 0 | 9b372b82864cd5076bbf3c950b0cfb0ab3d9c5d8 | 829 | volu | Apache License 2.0 |
project/core/src/main/kotlin/cn/micalhl/fireflyx/core/annotation/FireflyXModule.kt | Micalhl | 512,147,084 | false | null | package cn.micalhl.fireflyx.core.annotation
/**
* FireflyX
* cn.micalhl.fireflyx.core.annotation.FireflyXModule
*
* @author mical
* @since 2023/3/2 9:14 PM
*/
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.CLASS)
annotation class FireflyXModule | 0 | Kotlin | 3 | 5 | 7a8888d4e58d2552d9a8ace4affe9d8902d52e8b | 269 | FireflyX | MIT License |
libraries/analytics-logger/src/main/java/com/trendyol/android/devtools/analyticslogger/internal/domain/manager/EventManagerImpl.kt | Trendyol | 365,201,013 | false | {"Kotlin": 230670, "HTML": 18880} | package com.trendyol.android.devtools.analyticslogger.internal.domain.manager
import com.squareup.moshi.Moshi
import com.trendyol.android.devtools.analyticslogger.internal.data.model.EventEntity
import com.trendyol.android.devtools.analyticslogger.internal.data.repository.EventRepository
import com.trendyol.android.de... | 0 | Kotlin | 6 | 107 | 91fb7d331249c1412169d650c62f4fee83d5a17f | 2,592 | android-dev-tools | Apache License 2.0 |
app/src/main/java/com/example/android/marsphotos/overview/OverviewViewModel.kt | hayasaudd | 431,758,467 | false | {"Kotlin": 8945} | /*
* Copyright (C) 2021 The Android Open Source Project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Kotlin | 0 | 0 | 19d2ec3c4d34be1a1f7e5a8e1cc96052f1cadc74 | 2,267 | CountryImage | Apache License 2.0 |
next/kmp/browser/src/iosMain/kotlin/org/dweb_browser/browser/web/BrowserIosWinObserver.kt | BioforestChain | 594,577,896 | false | {"Kotlin": 3446191, "TypeScript": 818538, "Swift": 369625, "Vue": 156647, "SCSS": 39016, "Objective-C": 17350, "HTML": 16184, "Shell": 13534, "JavaScript": 3982, "Svelte": 3504, "CSS": 818} | package org.dweb_browser.browser.web
import org.dweb_browser.browser.web.model.BrowserViewModel
import org.dweb_browser.helper.OffListener
class BrowserIosWinObserver(val winVisibleChange: ((Boolean) -> Unit), val winClose: (() -> Unit)) {
private var onWinVisibleListener: OffListener<Boolean>? = null
private va... | 66 | Kotlin | 5 | 20 | 6db1137257e38400c87279f4ccf46511752cd45a | 876 | dweb_browser | MIT License |
remix/src/commonMain/kotlin/com/woowla/compose/icon/collections/remix/remix/business/ArchiveFill.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.remix.remix.business
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.S... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 2,208 | compose-icon-collections | MIT License |
app/src/main/java/com/nyinyihtunlwin/projects/foodaholic/delegates/BookmarkDelegate.kt | nyinyihtunlwin-codigo | 155,560,322 | false | null | package com.nyinyihtunlwin.projects.foodaholic.delegates
import com.nyinyihtunlwin.projects.foodaholic.mvvm.models.BookmarkModel
interface BookmarkDelegate {
fun onTapMeal(bookmarkModel: BookmarkModel)
} | 0 | Kotlin | 0 | 0 | 8123af327d3701fbc7c399826e920ca14c3ef4d5 | 209 | foodaholic | Apache License 2.0 |
core/src/appleMain/kotlin/bruhcollective/itaysonlab/ksteam/platform/Internet.kt | iTaysonLab | 585,761,817 | false | {"Kotlin": 605935} | package bruhcollective.itaysonlab.ksteam.platform
import bruhcollective.itaysonlab.ksteam.util.generateIpV4Int
actual fun getIpv4Address(): UInt {
// App Store's safest way to get an IP.... just generate it!
return generateIpV4Int()
} | 1 | Kotlin | 1 | 35 | 69f547a200a6eb4d89463d7ccd1e89f5ebae2162 | 244 | kSteam | MIT License |
sample/src/main/java/com/github/terrakok/androidcomposeapp/screens/SampleScreen.kt | terrakok | 336,628,876 | false | {"Kotlin": 63641} | package com.github.terrakok.androidcomposeapp.screens
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import com.github.terrakok.androidcomposeapp.ListScreen
import com.github.terrakok.androidcomposeapp.ModelSampleScreen
import com.github.terrakok... | 9 | Kotlin | 18 | 267 | b53b1cdbd713144ae2e7317771f8f363b5d91606 | 5,234 | Modo | The Unlicense |
appLayer/src/main/java/com/aenadgrleey/tobedone/presentation/refactor_fragment/RefactorFragment.kt | Mobile-Developement-School-23 | 653,652,069 | false | null | package com.aenadgrleey.tobedone.presentation.refactor_fragment
import android.graphics.Paint
import android.icu.text.SimpleDateFormat
import android.os.Build
import android.os.Bundle
import android.text.SpannableStringBuilder
import android.util.TypedValue
import android.view.LayoutInflater
import android.view.View
i... | 0 | Kotlin | 0 | 1 | e688479bf36eb981461c3d8eee9e1a274dfc3206 | 8,803 | android-todo-app-aenadgrleey | Apache License 2.0 |
src/main/kotlin/org/telegram/InlineQueryResultContact.kt | wirelib | 124,762,024 | false | null | package org.telegram
data class InlineQueryResultContact(
/**
* Type of the result, must be contact
*/
val type: String,
/**
* Unique identifier for this result, 1-64 Bytes
*/
val id: String,
/**
* Contact's phone number
*/
... | 0 | Kotlin | 0 | 0 | 86f10b323b24187e97606c2d92598a56360bf658 | 1,175 | telegram-models | MIT License |
lib/src/main/java/github/fushaolei/lib/mvp/AMBasePresenter.kt | FuShaoLei | 385,891,520 | false | null | package github.fushaolei.lib.mvp
abstract class AMBasePresenter<V : AMBaseView> {
protected var baseView: AMBaseView? = null
/**
* 绑定view
*/
abstract fun attachView(view: V)
/**
* 解绑
*/
fun detachView(){
if (baseView!=null){
baseView = null
}
}
... | 0 | Kotlin | 0 | 0 | 472e545c044a2dc988135939418ef320e785003d | 321 | Alab | MIT License |
legacy/core/src/commonMain/kotlin/atom/ProgressIndicators.kt | CLOVIS-AI | 582,955,979 | false | null | package opensavvy.decouple.core.atom
import androidx.compose.runtime.Composable
import opensavvy.decouple.core.UI
import opensavvy.progress.Progress
import opensavvy.progress.done
interface ProgressIndicators {
@Composable
fun ProgressIndicatorSpec(
progress: Progress,
)
}
/**
* Indicates progress to the use... | 0 | null | 0 | 2 | 86ff9bed8dec72e6b16117ee28726dc37b3d0631 | 497 | Decouple | Apache License 2.0 |
frontend/shared/ui/src/iosMain/kotlin/com/lexfury/kkon/main.ios.kt | a-frank | 705,285,105 | false | {"Kotlin": 30954, "Swift": 652, "Dockerfile": 527, "HTML": 230, "Shell": 228} | package com.lexfury.kkon
import androidx.compose.ui.window.ComposeUIViewController
import org.koin.core.component.KoinComponent
import org.koin.core.component.inject
@Suppress("unused", "FunctionName") // used in Swift
fun MainViewController() = ComposeUIViewController {
App(PoiRepositoryHelper().poiRepository)
}
c... | 0 | Kotlin | 1 | 2 | f967912b37bd58ce1b1f3da36ddaa2d727b471a1 | 410 | compose-kmp-kkon | Apache License 2.0 |
app/src/main/java/moe/feng/danmaqua/util/ext/PreferenceExtension.kt | Xbs233 | 245,795,397 | true | {"Kotlin": 347496} | package moe.feng.danmaqua.util.ext
import androidx.preference.*
inline fun <T : TwoStatePreference> T.onValueChanged(
crossinline block: T.(value: Boolean) -> Boolean
) {
setOnPreferenceChangeListener { preference, newValue ->
(preference as T).block(newValue as Boolean)
}
}
inline fun <T : ListP... | 0 | null | 0 | 0 | 58ffc18132a6b0f64ee480285d6af11b07e26982 | 1,143 | danmaqua-android | Apache License 2.0 |
tga-tool/src/main/kotlin/org/plan/research/tga/tool/Main.kt | plan-research | 762,333,893 | false | {"Kotlin": 53517, "Python": 21144, "Makefile": 296} | package org.plan.research.tga.tool
import org.plan.research.tga.core.tool.protocol.Tool2TgaConnection
import org.plan.research.tga.tool.config.TgaToolConfig
import org.plan.research.tga.tool.kex.KexCmdTool
import org.plan.research.tga.tool.protocol.tcp.TcpTool2TgaConnection
import org.plan.research.tga.tool.stub.StubT... | 0 | Kotlin | 0 | 0 | 3d754d21017a948594e6659a5affbe413cb67848 | 1,329 | tga-pipeline | Apache License 2.0 |
multisrc/overrides/madara/lolicon/src/Lolicon.kt | ThePBone | 739,585,797 | false | {"Kotlin": 5481841} | package eu.kanade.tachiyomi.revived.en.lolicon
import eu.kanade.tachiyomi.multisrc.madara.Madara
class Lolicon : Madara("Lolicon", "https://lolicon.mobi", "en")
| 9 | Kotlin | 99 | 895 | 75add011ff43428c4695ed20328bdc754d621c4e | 163 | tachiyomi-extensions-revived | Apache License 2.0 |
projects/hdc-licences-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/entity/Borough.kt | ministryofjustice | 500,855,647 | false | {"Kotlin": 3111491, "HTML": 50736, "D2": 27334, "Ruby": 22747, "Shell": 12351, "SCSS": 5590, "JavaScript": 2998, "HCL": 2712, "Dockerfile": 2103} | package uk.gov.justice.digital.hmpps.entity
import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.Id
import jakarta.persistence.JoinColumn
import jakarta.persistence.ManyToOne
import jakarta.persistence.OneToMany
import org.hibernate.annotations.Immutable
@Entity
@Immutable
cl... | 3 | Kotlin | 0 | 2 | d0c94f043b3b9d21aa3015e5f76b2462c473e76b | 650 | hmpps-probation-integration-services | MIT License |
src/main/kotlin/us/frollo/frollosdk/model/api/cdr/CDRConfigurationResponse.kt | frollous | 261,670,220 | false | null | /*
* Copyright 2020 Frollo
*
* 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 wri... | 0 | Kotlin | 0 | 1 | 236fb597fd41be9d13cf5b79fe4b684f7294cd62 | 1,178 | frollo-android-sdk | Apache License 2.0 |
api/src/main/kotlin/io/github/nyliumpowered/nylium/Nylium.kt | ItsIlya | 361,538,466 | false | null | package io.github.nyliumpowered.nylium
interface Nylium | 0 | Kotlin | 0 | 0 | 158c799ac5ffec66783d055dc4536aa7fd92833d | 56 | Nylium | MIT License |
example/android/app/src/main/kotlin/com/example/aesthetic_dialogs_example/MainActivity.kt | BorisGautier | 309,538,188 | false | null | package com.example.aesthetic_dialogs_example
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 3 | 19 | 7d25e1e135f56bdb3dd496ec7ac30400158912f0 | 142 | aestheticDialogs | MIT License |
src/main/kotlin/li/doerf/isolationtest/PersonController.kt | doerfli | 155,774,105 | false | null | package li.doerf.isolationtest
import org.slf4j.LoggerFactory
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.transaction.annotation.Transactional
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PostMapping
import org.spr... | 0 | Kotlin | 0 | 0 | 0d95515228e119b70e7d6f73eeb5e5a8a0821f69 | 1,153 | spring_db_trx | MIT License |
src/main/kotlin/de/richargh/buggetfx/imports/ynab/mapper/YAccountDeserializer.kt | Richargh | 206,415,019 | false | null | package de.richargh.buggetfx.imports.ynab.mapper
import com.fasterxml.jackson.core.JsonParser
import com.fasterxml.jackson.core.JsonProcessingException
import com.fasterxml.jackson.databind.DeserializationContext
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databind.deser.std.StdDeserial... | 0 | Kotlin | 0 | 0 | f331747d45a7d45461771291d01810cce9dc88a2 | 1,306 | buggetfx | MIT License |
sample/src/main/java/cc/taylorzhang/fragmentvisibility/sample/ViewPagerOldWayActivity.kt | TaylorKunZhang | 343,438,862 | false | null | package cc.taylorzhang.fragmentvisibility.sample
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentPagerAdapter
import cc.taylorzhang.fragmentvisibility.sample.databinding.ActivityViewPagerBinding
/**
* <pre>
* aut... | 0 | Kotlin | 12 | 64 | 998d00952e38dd3c90cf063fd8f43e6f19889a42 | 1,205 | fragment-visibility | Apache License 2.0 |
app/src/test/java/com/github/pavlospt/refactoredumbrella/ui/dashboard/DashboardViewModelTest.kt | pavlospt | 246,115,298 | false | null | package com.github.pavlospt.refactoredumbrella.ui.dashboard
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import com.github.pavlospt.refactoredumbrella.remoterepo.github.GithubRepoModel
import com.github.pavlospt.refactoredumbrella.remoterepo.github.GithubRepoOwner
import com.github.pavlospt.refac... | 3 | null | 9 | 114 | e41d78a21ebd5e1e93e039dbd2153a5aeba4f912 | 3,534 | refactored-umbrella | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/manuell/ManuellOppgave.kt | navikt | 218,005,192 | false | null | package no.nav.syfo.manuell
import no.nav.syfo.model.ValidationResult
data class ManuellOppgave(
val validationResult: ValidationResult,
val sykmeldingId: String,
val opprinneligValidationResult: ValidationResult?
)
| 0 | Kotlin | 1 | 0 | cd85706d063a960ecb3bb231b4497e81fa9d3d3d | 230 | syfoservice-data-syfosmregister | MIT License |
katana-nbt/src/main/kotlin/jp/katana/nbt/tag/ArrayTag.kt | hiroki19990625 | 194,672,872 | false | null | package jp.katana.nbt.tag
import jp.katana.debug.appendIndent
abstract class ArrayTag<T> : INamedTag {
abstract override var name: String
abstract override val type: Byte
abstract var value: Array<T>
override fun toString(): String {
return toPrintString()
}
override fun print(builde... | 0 | Kotlin | 1 | 2 | aab8ae69beed267ea0ef9eab2ebd23b994ac0f25 | 485 | katana | MIT License |
src/main/kotlin/architecture/SystemType.kt | mixtape-bot | 444,657,821 | false | null | package gg.mixtape.natives.loader.architecture
import gg.mixtape.natives.loader.NativeLibraryProperties
public class SystemType(
public val architectureType: ArchitectureType,
public val osType: OperatingSystemType,
) {
public val systemName: String?
get() = if (osType.identifier != null) {
... | 0 | Kotlin | 0 | 1 | 2d9d1c7f3a7697d3b968c7d2b128e07fb9232dfc | 1,471 | native-loader | Apache License 2.0 |
Careium/app/src/main/java/com/example/careium/frontend/factory/FABItem.kt | KAN-Team | 461,661,370 | false | null | package com.example.careium.frontend.factory
enum class FABItem {
TRACKER, BREAKFAST, LUNCH, SNACK, DINNER, WATER
} | 14 | Jupyter Notebook | 3 | 13 | e1a7aa43c85bff78d0ee1e64bb2ad94d94208f27 | 120 | Careium-AI | Apache License 2.0 |
client/src/main/java/com/jraska/github/client/settings/SettingsActivity.kt | bikranttripathi | 153,968,500 | true | {"Kotlin": 132258} | package com.jraska.github.client.settings
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import butterknife.BindView
import com.airbnb.epoxy.SimpleEpoxyAdapter
import com.jraska.github... | 0 | Kotlin | 0 | 0 | 07a6ccb95f0e8028f475be2918cd709426f71f2a | 1,256 | github-client | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.