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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
compiler/testData/diagnostics/tests/script/varInScript.kts | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | // FIR_IDENTICAL
// FILE: script.kts
fun main(): Boolean {
var liteProfileReached = false
return liteProfileReached
} | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 126 | kotlin | Apache License 2.0 |
package/android/src/main/java/com/mrousavy/camera/core/extensions/CameraInfo+id.kt | mrousavy | 340,402,576 | false | null | package com.mrousavy.camera.core.extensions
import android.annotation.SuppressLint
import androidx.camera.core.CameraInfo
import androidx.camera.core.impl.CameraInfoInternal
val CameraInfo.id: String?
@SuppressLint("RestrictedApi")
get() {
val infoInternal = this as? CameraInfoInternal
if (infoInternal !=... | 176 | null | 1092 | 7,476 | 02ae227964ceee6fe413ee49eb944e11d6fcd722 | 390 | react-native-vision-camera | MIT License |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/dynamodb/TablePropsDsl.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 70198112} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.dynamodb
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.Boolean
import kotlin.Number
import... | 3 | Kotlin | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 8,325 | awscdk-dsl-kotlin | Apache License 2.0 |
platform-core/src/test/kotlin/org/dashj/platform/sdk/platform/PlatformNetwork.kt | dashevo | 258,569,335 | false | null | package org.dashj.platform.sdk.platform
import java.util.Date
import org.bitcoinj.params.SchnappsDevNetParams
import org.bitcoinj.wallet.DerivationPathFactory
import org.bitcoinj.wallet.DeterministicKeyChain
import org.bitcoinj.wallet.DeterministicSeed
import org.bitcoinj.wallet.KeyChainGroup
import org.bitcoinj.wallet... | 1 | Kotlin | 3 | 4 | 3e5eef0e3768a0e6ca9b422b52820a9d28f14a06 | 1,929 | android-dashpay | MIT License |
backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/objc/ObjCDataGenerator.kt | JetBrains | 58,957,623 | false | null | /*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
package org.jetbrains.kotlin.backend.konan.llvm.objc
import llvm.*
import org.jetbrains.kotlin.backend.konan.llvm.*
import org.jetbrains.kotlin.descriptors.konan.Curre... | 181 | null | 625 | 7,100 | 9fb0a75ab17e9d8cddd2c3d1802a1cdd83774dfa | 10,986 | kotlin-native | Apache License 2.0 |
ui/src/main/java/com/pyamsoft/pydroid/ui/internal/datapolicy/DataPolicyViewState.kt | pyamsoft | 48,562,480 | false | null | /*
* Copyright 2023 pyamsoft
*
* 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 ... | 1 | null | 7 | 22 | 767ca731e17654e65f131185b2064045b0d39039 | 1,478 | pydroid | Apache License 2.0 |
plugin/src/main/kotlin/dev/triumphteam/triumphchat/locale/DefaultMessage.kt | TriumphTeam | 294,288,510 | false | {"Kotlin": 128629} | /*
* MIT License
*
* Copyright (c) 2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | 0 | Kotlin | 2 | 2 | fa22204ac59d5eff46f26089e4eae9e7f3593d29 | 1,932 | triumph-chat | MIT License |
mobile/android/apollo_graphql_tutorial/apollo-kotlin-tutorial/compose/start/app/src/main/java/com/example/rocketreserver/LaunchList.kt | jannahio | 317,110,349 | false | {"Kotlin": 127765, "Swift": 105938, "Vue": 43847, "CSS": 7047, "TypeScript": 5720, "JavaScript": 2346, "Java": 1296, "Ruby": 1122, "HTML": 909} | @file:OptIn(ExperimentalMaterial3Api::class)
package com.example.rocketreserver
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
i... | 0 | Kotlin | 0 | 0 | b590b8c1fa1d05fcfdfa1bd399ebaf5b52d95ad3 | 3,189 | frontend | MIT License |
app/src/main/kotlin/com/aripuca/finhelper/ui/screens/investment/InvestmentViewModel.kt | vitalnik | 585,713,413 | false | {"Kotlin": 260035} | package com.aripuca.finhelper.ui.screens.investment
import androidx.compose.runtime.Composable
import androidx.compose.runtime.mutableStateOf
import androidx.compose.ui.res.stringResource
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.aripuca.finhelper.R
import com.aripuca.finh... | 0 | Kotlin | 0 | 1 | 6c89e2a8a501c6906cc19572622c40d48e09bfb1 | 14,873 | FinHelperOpenSource | Apache License 2.0 |
domain/src/main/kotlin/com/astrainteractive/astraclans/domain/dto/mapping/PlayerDTOMapper.kt | Astra-Interactive | 525,464,505 | false | null | package com.astrainteractive.astraclans.domain.dto.mapping
import com.astrainteractive.astraclans.domain.dto.PlayerDTO
import com.astrainteractive.astraclans.domain.entities.PlayerDAO
import ru.astrainteractive.astralibs.domain.mapping.IMapper
interface IPlayerDTOMapper : IMapper<PlayerDAO, PlayerDTO>, ExposedMapper<... | 0 | Kotlin | 0 | 0 | 5069aa6fe6a56e3c309e2e597147bcd671493391 | 1,338 | AstraSync | MIT License |
keel-ec2-plugin/src/test/kotlin/com/netflix/spinnaker/keel/ec2/resource/ClusterHandlerTests.kt | spinnaker | 107,462,081 | false | null | package com.netflix.spinnaker.keel.ec2.resource
import com.netflix.spinnaker.keel.api.DeployHealth.AUTO
import com.netflix.spinnaker.keel.api.DeployHealth.NONE
import com.netflix.spinnaker.keel.api.Environment
import com.netflix.spinnaker.keel.api.Exportable
import com.netflix.spinnaker.keel.api.Highlander
import com.... | 4 | null | 144 | 99 | 6115964c42e863cfd269616a836145b883f165f3 | 44,280 | keel | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationevents/services/IntegrationEventTopicServiceTests.kt | ministryofjustice | 772,145,800 | false | {"Kotlin": 160570, "Shell": 3805, "Dockerfile": 1150, "Makefile": 154} | package uk.gov.justice.digital.hmpps.hmppsintegrationevents.services
import com.fasterxml.jackson.databind.ObjectMapper
import io.kotest.matchers.shouldBe
import net.javacrumbs.jsonunit.assertj.JsonAssertions
import org.assertj.core.api.Assertions
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Te... | 1 | Kotlin | 0 | 0 | 6ee5acea4cfdda529d415d05d6073fdeac3602c5 | 5,962 | hmpps-integration-events | MIT License |
app/src/main/java/com/bridou_n/beaconscanner/models/BeaconSaved.kt | Bridouille | 69,493,556 | false | null | package com.bridou_n.beaconscanner.models
import android.text.format.DateUtils
import androidx.room.ColumnInfo
import androidx.room.Embedded
import androidx.room.Entity
import com.bridou_n.beaconscanner.Database.BeaconsDao
import com.bridou_n.beaconscanner.utils.BuildTypes
import com.bridou_n.beaconscanner.utils.Ruuvi... | 9 | Kotlin | 104 | 320 | 2093c24a70b696e2d2ee7c06f4bcf210aefdeb52 | 10,452 | android-beacon-scanner | Apache License 2.0 |
app/src/main/java/com/example/noteapp/features/note/domain/usecases/AddNoteUseCase.kt | nguyencse | 611,364,219 | false | null | package com.example.noteapp.features.note.domain.usecases
import com.example.noteapp.features.note.domain.entities.InvalidNoteException
import com.example.noteapp.features.note.domain.entities.Note
import com.example.noteapp.features.note.domain.repositories.NoteRepository
class AddNoteUseCase(private val repository:... | 0 | Kotlin | 0 | 0 | 85d467406fe889fe2edb0bbab882a18ab0710906 | 723 | NoteApp | Apache License 2.0 |
src/main/kotlin/org/jitsi/jibri/selenium/pageobjects/AbstractPageObject.kt | jitsi | 51,473,177 | false | null | /*
* Copyright @ 2018 Atlassian Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 82 | null | 313 | 609 | bdf9fc5e676f8629708e5ccd68406ca00258e712 | 1,258 | jibri | Apache License 2.0 |
samples/app/gallery/src/main/java/com/badoo/ribs/samples/gallery/rib/other/picker/OtherPickerBuilder.kt | badoo | 170,855,556 | false | null | package com.badoo.ribs.samples.gallery.rib.other.picker
import com.badoo.ribs.builder.SimpleBuilder
import com.badoo.ribs.core.modality.BuildParams
class OtherPickerBuilder(
private val dependency: OtherPicker.Dependency
) : SimpleBuilder<OtherPicker>() {
override fun build(buildParams: BuildParams<Nothing?>... | 34 | null | 50 | 162 | cec2ca936ed17ddd7720b4b7f8fca4ce12033a89 | 1,046 | RIBs | Apache License 2.0 |
tabler-icons/src/commonMain/kotlin/compose/icons/tablericons/Polaroid.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.tablericons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.compose.ui.graphic... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 3,503 | compose-icons | MIT License |
bitgouel-domain/src/main/kotlin/team/msg/domain/user/repository/custom/CustomUserRepository.kt | GSM-MSG | 700,741,727 | false | {"Kotlin": 232884, "Shell": 788, "Dockerfile": 206} | package team.msg.domain.user.repository.custom
import org.springframework.data.domain.Page
import org.springframework.data.domain.Pageable
import team.msg.domain.user.enums.Authority
import team.msg.domain.user.model.User
interface CustomUserRepository {
fun query(keyword: String, authority: Authority, pageable: ... | 5 | Kotlin | 0 | 11 | 620fbb7aa11c31994a314345092bcfa864792baf | 343 | Bitgouel-Server | MIT License |
app/src/androidTest/kotlin/io/github/hidroh/tldroid/CommandActivityTest.kt | hidroh | 48,721,927 | false | null | package io.github.hidroh.tldroid
import android.content.Intent
import android.support.test.InstrumentationRegistry
import android.support.test.espresso.Espresso.onView
import android.support.test.espresso.action.ViewActions.click
import android.support.test.espresso.intent.Intents.intended
import android.support.test.... | 6 | Kotlin | 15 | 129 | b33394e48ffcabb39d99ceb7c69fd56322ca8a68 | 3,085 | tldroid | Apache License 2.0 |
bootstrap-icons-compose/src/main/java/com/wiryadev/bootstrapiconscompose/bootstrapicons/filled/Calendar2Range.kt | wiryadev | 380,639,096 | false | null | package com.wiryadev.bootstrapiconscompose.bootstrapicons.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.S... | 0 | Kotlin | 0 | 2 | 1c199d953dc96b261aab16ac230dc7f01fb14a53 | 3,429 | bootstrap-icons-compose | MIT License |
app/src/main/java/ru/net2fox/trackerapp/data/model/Task.kt | Net2Fox | 560,577,851 | false | {"Kotlin": 26148} | package ru.net2fox.trackerapp.data.model
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.util.Date
@Entity(tableName = "tasks")
data class Task(
@PrimaryKey(autoGenerate = true) val id: Int = 0,
var title: String,
var description: String?,
var isCompleted: Boolean = false,
... | 0 | Kotlin | 0 | 0 | 728d4b50c14c05de11aaf3161be3430969815a24 | 337 | YATT | Apache License 2.0 |
app/src/main/java/ru/net2fox/trackerapp/data/model/Task.kt | Net2Fox | 560,577,851 | false | {"Kotlin": 26148} | package ru.net2fox.trackerapp.data.model
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.util.Date
@Entity(tableName = "tasks")
data class Task(
@PrimaryKey(autoGenerate = true) val id: Int = 0,
var title: String,
var description: String?,
var isCompleted: Boolean = false,
... | 0 | Kotlin | 0 | 0 | 728d4b50c14c05de11aaf3161be3430969815a24 | 337 | YATT | Apache License 2.0 |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/kinesisanalyticsv2/CfnApplicationProps.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 149148378} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.kinesisanalyticsv2
import io.cloudshiftdev.awscdk.CfnTag
import io.cloudshiftdev.awscdk.IResolvable
i... | 4 | Kotlin | 0 | 4 | ddf2bfd2275b50bb86a667c4298dd92f59d7e342 | 25,086 | kotlin-cdk-wrapper | Apache License 2.0 |
game-api/src/main/java/org/runestar/client/game/api/live/WidgetGroupParents.kt | ittwit | 163,532,582 | true | {"Java": 1852312, "Kotlin": 1247608} | package org.runestar.client.game.api.live
import org.runestar.client.game.api.NodeHashTable
import org.runestar.client.game.api.Widget
import org.runestar.client.game.api.WidgetId
import org.runestar.client.game.raw.CLIENT
import org.runestar.client.game.raw.access.XNodeHashTable
import org.runestar.client.game.raw.ac... | 0 | Java | 0 | 0 | 7b60ec3d0c917571b7def908037dfc4a744092e0 | 1,089 | client | MIT License |
game-api/src/main/java/org/runestar/client/game/api/live/WidgetGroupParents.kt | ittwit | 163,532,582 | true | {"Java": 1852312, "Kotlin": 1247608} | package org.runestar.client.game.api.live
import org.runestar.client.game.api.NodeHashTable
import org.runestar.client.game.api.Widget
import org.runestar.client.game.api.WidgetId
import org.runestar.client.game.raw.CLIENT
import org.runestar.client.game.raw.access.XNodeHashTable
import org.runestar.client.game.raw.ac... | 0 | Java | 0 | 0 | 7b60ec3d0c917571b7def908037dfc4a744092e0 | 1,089 | client | MIT License |
xesar-connect/src/main/kotlin/com/open200/xesar/connect/messages/command/CreateCodingStationMapi.kt | open200 | 684,928,079 | false | null | package com.open200.xesar.connect.messages.command
import com.open200.xesar.connect.utils.UUIDSerializer
import java.util.*
import kotlinx.serialization.Serializable
/**
* Represents a command POJO to change data of a zone.
*
* @param commandId The id of the command.
* @param name The name of the zone.
* @param ... | 17 | null | 1 | 9 | 2ded0fbbe8a5df74065c141f5afe1b20c72022c6 | 710 | xesar-connect | Apache License 2.0 |
src/main/kotlin/org/objectionary/ddr/transform/impl/BasicDecoratorsResolver.kt | objectionary | 518,891,717 | false | null | /*
* The MIT License (MIT)
*
* Copyright (c) 2022 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy,... | 22 | null | 1 | 8 | e61ed93f4c7b8551e1c37929f2a0890ebb074766 | 5,861 | ddr | MIT License |
onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/services/blocking/TripsForLocationServiceImpl.kt | OneBusAway | 869,113,248 | false | {"Kotlin": 1790435, "Shell": 3662, "Dockerfile": 399} | // File generated from our OpenAPI spec by Stainless.
package org.onebusaway.services.async
import org.onebusaway.core.ClientOptions
import org.onebusaway.core.RequestOptions
import org.onebusaway.core.handlers.errorHandler
import org.onebusaway.core.handlers.jsonHandler
import org.onebusaway.core.handlers.withErrorH... | 0 | Kotlin | 1 | 1 | 81a22faf155835ea66702dd772c099cd3b5c0df4 | 2,196 | kotlin-sdk | Apache License 2.0 |
app/src/main/java/com/samridhoverseasfsm/features/orderhistory/api/LocationUpdateRepository.kt | DebashisINT | 699,836,260 | false | null | package com.paricottfsm.features.orderhistory.api
import com.paricottfsm.base.BaseResponse
import com.paricottfsm.features.orderhistory.model.LocationUpdateRequest
import io.reactivex.Observable
/**
* Created by Pratishruti on 23-11-2017.
*/
class LocationUpdateRepository(val apiService:LocationUpdateApi) {
fun... | 0 | Kotlin | 0 | 0 | d10d93027ec0adf4be3231aa211b6a433e981b12 | 464 | SwitzFood | Apache License 2.0 |
src/main/kotlin/GetFriends.kt | KilluaSSR | 846,533,751 | false | {"Kotlin": 39490} | package killua.dev
import twitter4j.v1.TwitterV1
enum class RelationshipType {
Followers,
Following,
Blocked
}
suspend fun getUserIDs(
twitterV1: TwitterV1,
relationshipType: RelationshipType,
userID: Long? = null
): MutableSet<Long> {
val idsSet = mutableSetOf<Long>()
var cursor = -1L... | 0 | Kotlin | 0 | 12 | 00fceaf8f480a45b689de34a5894cde3eb9fc7a0 | 2,423 | TwitterBanSpamFollowers | MIT License |
rulebook-codenarc/src/main/kotlin/com/hanggrian/rulebook/codenarc/AssignmentWrappingRule.kt | hanggrian | 556,969,715 | false | {"Kotlin": 266381, "Python": 72652, "Java": 18075, "Groovy": 329} | package com.hanggrian.rulebook.codenarc
import com.hanggrian.rulebook.codenarc.internals.Messages
import com.hanggrian.rulebook.codenarc.internals.isMultiline
import org.codehaus.groovy.ast.expr.BinaryExpression
import org.codehaus.groovy.syntax.Types.ASSIGN
import org.codenarc.rule.AbstractAstVisitor
/**
* [See wik... | 0 | Kotlin | 0 | 1 | 94a3a554563534ace2c06ea48f872bd096d5db82 | 1,304 | rulebook | Apache License 2.0 |
coil-base/src/main/java/coil/ImageLoader.kt | coil-kt | 201,684,760 | false | null | @file:Suppress("UNUSED_PARAMETER")
package coil
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.drawable.Drawable
import androidx.annotation.DrawableRes
import androidx.annotation.FloatRange
import androidx.lifecycle.Lifecycle
import coil.dec... | 43 | null | 620 | 9,812 | 051e0b20969ff695d69b06cd72a1fdc9e504bf68 | 21,397 | coil | Apache License 2.0 |
finance/src/test/kotlin/net/corda/finance/contracts/CommercialPaperTests.kt | unphon | 113,458,422 | true | {"Kotlin": 1706445, "Java": 130061, "Groovy": 16432, "Shell": 1653, "CSS": 636, "Batchfile": 84} | package net.corda.finance.contracts
import net.corda.core.contracts.*
import net.corda.core.identity.AnonymousParty
import net.corda.core.identity.Party
import net.corda.core.node.services.Vault
import net.corda.core.node.services.VaultService
import net.corda.core.transactions.SignedTransaction
import net.corda.core.... | 4 | Kotlin | 1 | 1 | c36bea3af521be69f7702d7b7abbbfac0258de1f | 13,612 | corda | Apache License 2.0 |
buildSrc/src/main/kotlin/tasks/ReportGenerateTask.kt | sokoobo | 869,785,019 | false | {"Kotlin": 163808, "HTML": 4051} | package tasks
import korlibs.template.Template
import kotlinx.coroutines.runBlocking
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.TaskAction
import org.simpleframework.xml.Serializer
import org.simpleframework.xml.core.Persister
import tasks.model.TestCase
import tasks.model.TestSuite
import java.io.F... | 0 | Kotlin | 0 | 0 | 535e638059205ac87e77615cdc436b2500574f7d | 2,230 | damzel-parsers | MIT License |
src/main/kotlin/com/github/ninz9/aicommentator/llm/modelsImpl/openAI/data/post/Choice.kt | Ninz9 | 857,720,577 | false | {"Kotlin": 135585} | package com.github.ninz9.aicommentator.llm.modelsImpl.openAI.data.post
data class Choice(
val finish_reason: String,
val index: Int,
val logprobs: Any,
val message: Message
)
| 7 | Kotlin | 0 | 0 | 08e242ed26d8c6962e5e405725c64140f672afa9 | 192 | AiCommentator | MIT License |
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Quora.kt | DevSrSouza | 311,134,756 | false | null | package compose.icons.simpleicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Butt
import androidx.compose.ui.graphics.StrokeJoin.Miter
import androidx.compose.ui.graphics... | 17 | null | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 2,869 | compose-icons | MIT License |
app/src/main/java/knf/kuma/animeinfo/AnimeViewModel.kt | jordyamc | 119,774,950 | false | null | package knf.kuma.animeinfo
import android.content.Context
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import knf.kuma.commons.doOnUI
import knf.kuma.commons.jsoupCookies
import knf.kuma.commons.noCrashLet
import knf.kuma.database.CacheDB
import knf.kuma.pojos.AnimeObject
import knf.ku... | 24 | null | 40 | 159 | 99d8108ca5a9c32b89952aeb217319693df57688 | 1,607 | UKIKU | MIT License |
app/src/main/java/com/jonnemakinen/audiorecorder/recorder/RecordingState.kt | jonnemakinen | 575,529,060 | false | null | package com.jonnemakinen.audiorecorder.recorder
enum class RecordingState {
Idle,
Recording,
Saving
} | 0 | Kotlin | 0 | 0 | 3b573e78999ff1000c05bf4ae20846ae99d5a211 | 114 | audio-recorder | MIT License |
mmdownloader/src/main/java/pl/kwiatekmichal/mkdownloader/MMDownloaderException.kt | kwiatekM | 196,874,772 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Proguard": 2, "Kotlin": 15, "XML": 19, "Java": 2} | package pl.kwiatekmichal.mkdownloader
abstract class MMDownloaderException(override val message: String) : RuntimeException()
class MMDownloaderUriException(message: String) : MMDownloaderException(message = message)
class MMDownloaderEmptyRequestException(message: String) : MMDownloaderException(message = message) | 1 | null | 1 | 1 | c5e1e032e939c4b4b2940f772b0924c83e3196fd | 318 | MMDownloader | MIT License |
compiler/testData/debug/stepping/lambdaStepInlineWithDefaults.kt | JetBrains | 3,432,266 | false | null |
// FILE: test.kt
inline fun foo(stringMaker: () -> String = { "OK" }): String {
return stringMaker()
}
inline fun foo2(stringMaker: () -> String = {
"OK"
// Comment
}): String {
return stringMaker()
}
fun box(): String {
foo()
foo2()
return "OK"
}
// EXPECTATIONS JVM_IR
// test.kt:15 box... | 184 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 761 | kotlin | Apache License 2.0 |
feature/search/src/main/kotlin/com/merxury/blocker/feature/search/navigation/SearchNavigation.kt | lihenggui | 115,417,337 | false | null | /*
* Copyright 2023 Blocker
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 25 | null | 54 | 988 | 9696c391c64d1aa4a74384d22b4433fb7c67c890 | 1,437 | blocker | Apache License 2.0 |
samples/kaspresso-compose-support-sample/src/main/kotlin/com/kaspersky/kaspresso/composesupport/sample/resources/C.kt | KasperskyLab | 208,070,025 | false | null | package com.kaspersky.kaspresso.composesupport.sample.resources
// Like R, but C
object C {
object Tag {
const val main_screen_container = "main_screen_container"
const val main_screen_simple_flaky_button = "main_screen_simple_flaky_button"
const val main_screen_scroll_button = "main_screen... | 55 | null | 150 | 1,784 | 9c94128c744d640dcd646b86de711d2a1b9c3aa1 | 1,511 | Kaspresso | Apache License 2.0 |
compose-mds/src/main/java/ch/sbb/compose_mds/sbbicons/large/FaceDisagreeLarge.kt | SchweizerischeBundesbahnen | 853,290,161 | false | {"Kotlin": 6728512} | package ch.sbb.compose_mds.sbbicons.large
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.Mit... | 0 | Kotlin | 0 | 1 | 090a66a40e1e5a44d4da6209659287a68cae835d | 3,407 | mds-android-compose | MIT License |
kt/entry-generation/godot-kotlin-symbol-processor/src/main/kotlin/godot/annotation/processor/compiler/KtCallExpressionExtractor.kt | utopia-rise | 289,462,532 | false | null | package godot.entrygenerator.generator.property.defaultvalue.extractor
import com.squareup.kotlinpoet.ClassName
import com.squareup.kotlinpoet.MemberName
import org.jetbrains.kotlin.backend.common.serialization.findPackage
import org.jetbrains.kotlin.builtins.KotlinBuiltIns
import org.jetbrains.kotlin.descriptors.Clas... | 50 | null | 25 | 301 | 0d33ac361b354b26c31bb36c7f434e6455583738 | 5,362 | godot-kotlin-jvm | MIT License |
android/src/main/java/com/jpiasecki/spatialsdk/BoxViewManager.kt | j-piasecki | 868,164,718 | false | {"Kotlin": 44340, "TypeScript": 15591, "Ruby": 3166, "Objective-C": 2527, "JavaScript": 1429, "Objective-C++": 1204, "C": 103, "Swift": 62} | package com.jpiasecki.spatialsdk
import com.facebook.react.bridge.ReadableArray
import com.facebook.react.module.annotations.ReactModule
import com.facebook.react.uimanager.ThemedReactContext
import com.facebook.react.uimanager.ViewGroupManager
import com.facebook.react.viewmanagers.RNSpatialBoxViewManagerDelegate
imp... | 0 | Kotlin | 0 | 6 | b1b15e35935e24f1b70a790beca04710285860ee | 2,041 | react-native-spatial-sdk | MIT License |
java/com/example/minecrafttamagotchiapp/MainActivity3.kt | Amongubishh | 796,691,130 | false | {"Kotlin": 6765} | package com.example.minecrafttamagotchiapp
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.EditText
import android.widget.ImageView
class MainActivity3 : AppCompatActivity() {
override fun onCreate(savedInsta... | 0 | Kotlin | 0 | 0 | 8dd50b0c8a1d7316318f7b4271679dacd71e2a82 | 2,051 | Assignment-2 | MIT License |
apps/mobile/src/main/kotlin/dev/marlonlom/cappajv/features/catalog_list/screens/DefaultPortraitCatalogListScreen.kt | marlonlom | 766,685,767 | false | {"Kotlin": 192163} | /*
* Copyright 2024 Marlonlom
* SPDX-License-Identifier: Apache-2.0
*/
package dev.marlonlom.cappajv.features.catalog_list.screens
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ExperimentalLayoutApi
import and... | 5 | Kotlin | 0 | 0 | fc5aa21c0ae0a1bd5c1ea3176e0b0279882ac30d | 2,650 | cappajv | Apache License 2.0 |
app/src/main/java/com/codepath/articlesearch/DetailActivity.kt | FrenzyExists | 779,540,345 | false | null | package com.codepath.articlesearch
import android.os.Bundle
import android.widget.ImageView
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.bumptech.glide.Glide
private const val TAG = "DetailActivity"
class DetailActivity : AppCompatActivity() {
private lateinit var med... | 1 | Kotlin | 1 | 0 | ef0115da3ed35f15d8e0e90215ec377e8de0320c | 1,322 | UpComingMovies | Apache License 2.0 |
app/src/main/java/com/kcteam/features/reimbursement/presentation/ReimbursementExpenseAdapter.kt | DebashisINT | 558,234,039 | false | null | package com.santebreezefsm.features.reimbursement.presentation
import android.content.Context
import androidx.recyclerview.widget.RecyclerView
import android.text.TextUtils
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.bumptech.glide.Glide
import com.bumptech.glid... | 0 | null | 1 | 1 | e6114824d91cba2e70623631db7cbd9b4d9690ed | 3,221 | NationalPlastic | Apache License 2.0 |
goProControllerAndroid/src/main/java/com/bortxapps/goprocontrollerandroid/infrastructure/ble/data/BleNetworkMessage.kt | neoBortx | 692,337,190 | false | {"Kotlin": 340760, "Java": 572} | package com.bortxapps.goprocontrollerandroid.infrastructure.ble.data
@OptIn(ExperimentalUnsignedTypes::class)
data class BleNetworkMessage(val id: Int, val status: Int, val data: UByteArray) | 0 | Kotlin | 0 | 0 | b79c87b5a8d1f7bccf9918460c4024e1bcf02388 | 191 | goProController | Apache License 2.0 |
wire-grpc-server-generator/src/main/java/com/squareup/wire/kotlin/grpcserver/StubGenerator.kt | square | 12,274,147 | false | {"Kotlin": 4614764, "Java": 2161563, "Swift": 580805, "Ruby": 3972, "Shell": 1059, "JavaScript": 210} | /*
* Copyright (C) 2021 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 agreed to... | 163 | Kotlin | 621 | 4,142 | 9df9f57a4b7a771a7a3baf7600cc75b64d4a64f5 | 7,247 | wire | Apache License 2.0 |
app/src/main/java/com/sztorm/notecalendar/DayNoteFragment.kt | Sztorm | 342,018,745 | false | null | package com.sztorm.notecalendar
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.sztorm.notecalendar.databinding.FragmentDayNoteBinding
import com.sztorm.notecalendar.helper... | 5 | null | 4 | 9 | 6d48535839826811dc5755ee6f5c02f73dc05132 | 4,988 | NoteCalendar | MIT License |
core/src/main/java/jmp0/apk/ManifestAnalyse.kt | asmjmp0 | 466,534,924 | false | null | package jmp0.apk
import org.apache.log4j.Logger
import org.dom4j.io.SAXReader
import org.dom4j.tree.DefaultElement
import java.io.File
import java.util.jar.Manifest
class ManifestAnalyse(private val manifestFile: File) {
private val logger = Logger.getLogger(manifestFile::class.java)
lateinit var packaeName:S... | 0 | Kotlin | 42 | 189 | 468a37a87e5b87a8ee3623de8853f09b732e832b | 943 | appdbg | Apache License 2.0 |
modules/log/impl/src/commonMain/kotlin/com/hadilq/mastan/log/RealLogLogicIo.kt | hadilq | 715,823,678 | false | {"Kotlin": 689784, "Nix": 4671} | package com.hadilq.mastan.log
class RealLogLogicIo(
private val debugAllowed: Boolean,
private val warningAllowed: Boolean,
): LogLogicIo {
override fun logDebug(message: String) {
if (debugAllowed) {
println("QQQ d: $message")
}
}
override fun logDebug(message: () -> S... | 0 | Kotlin | 0 | 3 | f17caa73c487d927d651e788215aa30b8b9cf842 | 817 | Mastan | Apache License 2.0 |
app/src/main/java/com/gbsys/card_reader_util/ui/main/MainFragment.kt | JulianSalinas | 246,587,829 | false | {"Java": 171863, "Kotlin": 38316} | package com.gbsys.card_reader_util.ui.main
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.gbsys.card_reader_util.R
class MainFragment : Fragment() {
companion object {
fun newInstance() = ... | 1 | Java | 1 | 1 | aaa93985fda0e61b973ec9c3495562f910a943ca | 571 | card-reader-util | Apache License 2.0 |
src/main/kotlin/id/walt/vclib/credentials/gaiax/KybCredential.kt | walt-id | 392,421,433 | false | null | package id.walt.vclib.credentials.gaiax
import com.beust.klaxon.Json
import id.walt.vclib.model.*
import id.walt.vclib.registry.VerifiableCredentialMetadata
import id.walt.vclib.schema.SchemaService.PropertyName
import id.walt.vclib.schema.SchemaService.Required
data class KybCredential(
@Json(name = "@context") ... | 5 | Kotlin | 6 | 9 | 87d79bfb29b307c717b2c3db54f787244be0878d | 4,123 | waltid-ssikit-vclib | Apache License 2.0 |
logic-auth-server/src/main/kotlin/io/lonmstalker/springkube/enums/TokenType.kt | lonmstalker | 634,331,522 | false | null | package io.lonmstalker.springkube.enums
enum class TokenType {
ACCESS,
REFRESH
} | 0 | Kotlin | 0 | 0 | d94bd56bf4d4ce5e5163840f369eba993431a10a | 89 | spring-kube | Apache License 2.0 |
sample/src/main/java/ru/volkdown/sample/base/LifeCycleEvent.kt | volkdown | 237,741,034 | false | null | package ru.volkdown.sample.base
enum class LifeCycleEvent {
ATTACH,
CREATE,
CREATE_VIEW,
START,
RESUME,
PAUSE,
STOP,
DESTROY_VIEW,
DESTROY,
DETACH
} | 0 | Kotlin | 0 | 6 | 090509a0fba784a6a109c7944a012515a20c0d75 | 189 | octopus | MIT License |
src/main/kotlin/dev/entao/kava/json/YsonValue.kt | yangentao | 181,521,846 | false | null | @file:Suppress("unused", "MemberVisibilityCanBePrivate")
package dev.entao.kan.json
abstract class YsonValue {
abstract fun yson(buf: StringBuilder)
open fun yson(): String {
val sb = StringBuilder(preferBufferSize())
yson(sb)
return sb.toString()
}
open fun preferBufferSize(): Int {
return 64
}
over... | 0 | Kotlin | 0 | 0 | a860d75281ccf39906c69599096ff20ff88a0279 | 772 | kavajson | MIT License |
src/main/kotlin/dev/entao/kava/json/YsonValue.kt | yangentao | 181,521,846 | false | null | @file:Suppress("unused", "MemberVisibilityCanBePrivate")
package dev.entao.kan.json
abstract class YsonValue {
abstract fun yson(buf: StringBuilder)
open fun yson(): String {
val sb = StringBuilder(preferBufferSize())
yson(sb)
return sb.toString()
}
open fun preferBufferSize(): Int {
return 64
}
over... | 0 | Kotlin | 0 | 0 | a860d75281ccf39906c69599096ff20ff88a0279 | 772 | kavajson | MIT License |
app/src/androidTest/java/com/ultraviolince/mykitchen/recipes/presentation/recipes/SmokeTest.kt | violinyanev | 714,727,270 | false | {"Kotlin": 95524} | package com.ultraviolince.mykitchen.recipes.presentation.recipes
import android.util.Log
import androidx.compose.ui.test.ExperimentalTestApi
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.hasContentDescription
import androidx.compose.ui.test.junit4.createAndroidComposeRule
import and... | 8 | Kotlin | 0 | 0 | f814c155b820c65103ce50f47d4f90b3f5aa9a76 | 4,236 | my-kitchen | Apache License 2.0 |
src/main/java/net/eduard/api/lib/command/BukkitCommand.kt | EduardMaster | 103,982,025 | false | null | package net.eduard.api.lib.command
import net.eduard.api.lib.hybrid.Hybrid
import net.eduard.api.lib.manager.CommandManager
import net.eduard.api.lib.modules.Extra
import net.eduard.api.lib.modules.Mine
import net.eduard.api.lib.plugin.IPluginInstance
import org.bukkit.Bukkit
import org.bukkit.command.*
import org.buk... | 0 | null | 5 | 7 | bb778365ce76fabbdbc516b918b4feedee7edf12 | 4,287 | MineToolkit | MIT License |
sample/src/main/java/com/cookpad/android/license_tools_plugin/ui/send/SendViewModel.kt | k4zy | 234,051,686 | false | null | package com.minapp.android.test.ui.send
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
class SendViewModel : ViewModel() {
private val _text = MutableLiveData<String>().apply {
value = "This is send Fragment"
}
val text: LiveData<S... | 95 | null | 88 | 4 | 5985018f4dfa38f89133c7960df3630283b3600a | 336 | LicenseToolsPlugin | Apache License 2.0 |
src/main/kotlin/team/kun/minecraftwars/rx/Observable.kt | TeamKun | 377,053,216 | false | null | package net.kunmc.lab.theworld.rx
import org.bukkit.plugin.java.JavaPlugin
import org.bukkit.scheduler.BukkitRunnable
class Observable private constructor(private val tick: Long) {
companion object {
fun interval(tick: Long): Observable {
return Observable(tick)
}
}
private va... | 0 | null | 1 | 1 | 9070a48f550ce90ad75934c52ff501ce11f451af | 2,428 | SpigotTemplate | Apache License 2.0 |
compiler/fir/fir2ir/jvm-backend/src/org/jetbrains/kotlin/fir/backend/jvm/JvmFir2IrExtensions.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.fir.backend.jvm
import org.jetbrains.kotlin.backend.common.serialization.signatu... | 182 | null | 5771 | 47,637 | d257153a50bdaa761d54bbc9fd1c5d78a3769f0f | 5,152 | kotlin | Apache License 2.0 |
app/src/main/java/org/footstep/activities/AddFootstepActivity.kt | yuantao-yin | 255,526,268 | false | null | package org.footstep.activities
import android.Manifest
import android.app.Activity
import android.app.DatePickerDialog
import android.content.ActivityNotFoundException
import android.content.Context
import android.content.ContextWrapper
import android.content.Intent
import android.graphics.Bitmap
import android.net.U... | 0 | Kotlin | 0 | 0 | 6b411321724d2846c65152917737cdca760f9925 | 13,445 | Footstep | MIT License |
libraries/core/src/main/kotlin/io/plastique/core/work/WorkManagerInitializer.kt | plastiqueapp | 150,879,887 | false | null | package io.plastique.core.work
import android.content.Context
import androidx.work.Configuration
import androidx.work.WorkManager
import androidx.work.WorkerFactory
import io.plastique.core.init.Initializer
import javax.inject.Inject
class WorkManagerInitializer @Inject constructor(
private val context: Context,
... | 0 | Kotlin | 2 | 9 | 9271853f3741add18822858cbad9d4f8e8104f54 | 557 | plastique | Apache License 2.0 |
compose_material3/src/main/java/dev/vengateshm/compose_material3/other_concepts/upload_file/UploadFileSample.kt | vengateshm | 670,054,614 | false | {"Kotlin": 2030949, "Java": 55066} | package dev.vengateshm.compose_material3.other_concepts.upload_file
import android.widget.Toast
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.contract.ActivityResultContracts
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animatio... | 0 | Kotlin | 0 | 1 | 2f5a7710bcbd4d04b443e77459e7fb8a43a5e6ab | 4,020 | Android-Kotlin-Jetpack-Compose-Practice | Apache License 2.0 |
lib/src/main/java/io/ashkay/crashgrabber/internal/utils/getDeviceMetaAsJson.kt | Ash-Kay | 678,936,244 | false | {"Kotlin": 37783} | package io.ashkay.crashgrabber.internal.utils
import android.os.Build
import com.google.gson.Gson
internal fun getDeviceMetaAsJson(): String? {
val os = System.getProperty("os.version") // OS version
val apiLevel = Build.VERSION.SDK_INT // API Level
val device = Build.DEVICE // Device
v... | 0 | Kotlin | 1 | 2 | 6557457455eb46966c8f1cae2f583e72bdc179c1 | 712 | CrashGrabber | MIT License |
src/main/kotlin/com/pashmi/achievements/CopperOreBreakCounter.kt | paasshme | 835,235,594 | false | {"Kotlin": 69688, "Java": 8826} | package com.pashmi.achievements
import com.pashmi.CopperGodMod.toModId
import net.fabricmc.fabric.api.event.player.PlayerBlockBreakEvents
import net.fabricmc.fabric.api.networking.v1.PacketByteBufs
import net.fabricmc.fabric.api.networking.v1.ServerPlayConnectionEvents
import net.fabricmc.fabric.api.networking.v1.Serv... | 0 | Kotlin | 0 | 0 | 5dd6c93c8c84442b45a2d5128981cab9083a326d | 2,018 | copper-addict-mod | Creative Commons Zero v1.0 Universal |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/LayoutBottombarCollapse.kt | walter-juan | 868,046,028 | false | {"Kotlin": 20416825} | package com.woowla.compose.icon.collections.tabler.tabler.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.vector.ImageVector
import androidx.compose.ui.graphics.vector... | 0 | Kotlin | 0 | 1 | b037895588c2f62d069c724abe624b67c0889bf9 | 2,789 | compose-icon-collections | MIT License |
libraries/tools/kotlin-gradle-plugin-api/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/KotlinPlatformType.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | /*
* Copyright 2010-2018 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.gradle.plugin
import org.gradle.api.Named
import org.gradle.api.attributes.*
imp... | 34 | Kotlin | 5771 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 3,054 | kotlin | Apache License 2.0 |
user-management/keycloak-gateway/src/main/kotlin/co/nilin/opex/auth/gateway/data/KycRequest.kt | opexdev | 370,411,517 | false | null | package co.nilin.opex.auth.gateway.data
class KycRequest {
var selfiePath: String? = null
var idCardPath: String? = null
var acceptFormPath: String? = null
constructor()
constructor(selfiePath: String?, idCardPath: String?, acceptFormPath: String?) {
this.selfiePath = selfiePath
... | 29 | null | 22 | 51 | fedf3be46ee7fb85ca7177ae91b13dbc6f2e8a73 | 402 | core | MIT License |
presentation/src/main/kotlin/com/reactions/deathlines/presentation/ui/features/goals/GoalsViewModel.kt | dreinoso | 263,789,868 | false | {"Gradle": 7, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 5, "Batchfile": 1, "Markdown": 1, "Kotlin": 70, "Proguard": 3, "Java": 2, "XML": 44} | package com.reactions.deathlines.presentation.ui.features.goals
import com.reactions.deathlines.domain.usecase.album.GetAlbumsUseCase
import com.reactions.deathlines.presentation.ui.base.BaseViewModel
import javax.inject.Inject
class GoalsViewModel @Inject constructor(private val getAlbumsUseCase: GetAlbumsUseCase) :... | 1 | null | 1 | 1 | 47fc9ce0e26d7a725488f510c152c825dba2a25d | 341 | deathlines | Apache License 2.0 |
buildSrc/src/main/java/com/androix/buildsrc/JUnit.kt | aliahmedbd | 625,302,209 | false | null | object JUnit {
private const val version = "4.13.2"
const val junit4 = "junit:junit:$version"
private const val extVersion = "1.1.3"
const val ext = "androidx.test.ext:junit:$extVersion"
private const val mockkVersion = "1.12.3"
const val mockk = "io.mockk:mockk:$mockkVersion"
} | 0 | Kotlin | 0 | 8 | 498963b616a0c92d5682dec7b227b1a72db3162f | 305 | WeatherApp-Android-Clean-Architecture-Jetpack-Compose-Kotlin-Hilt-Flow | Apache License 2.0 |
app/src/test/kotlin/team/ommaya/wequiz/android/dummy/dummy.kt | mash-up-kr | 628,190,373 | false | null | /*
* Designed and developed by "옴마야" Team 2023.
*
* Licensed under the MIT.
* Please see full license: https://github.com/mash-up-kr/WeQuiz-Android/blob/main/LICENSE
*/
package team.ommaya.wequiz.android.dummy
import kotlinx.collections.immutable.toImmutableList
import kotlinx.collections.immutable.toPersistentL... | 14 | null | 0 | 6 | c7f20fd3a09561f312df5c5b54e3e35cec387dc7 | 1,153 | WeQuiz-Android | MIT License |
tl/src/main/kotlin/com/github/badoualy/telegram/tl/api/messages/TLAbsRecentStickers.kt | Miha-x64 | 436,587,061 | true | {"Kotlin": 3919807, "Java": 75352} | package com.github.badoualy.telegram.tl.api.messages
import com.github.badoualy.telegram.tl.core.TLObject
/**
* Abstraction level for the following constructors:
* * [messages.recentStickers#88d37c56][TLRecentStickers]
* * [messages.recentStickersNotModified#b17f890][TLRecentStickersNotModified]
*
* @author <NAM... | 1 | Kotlin | 2 | 3 | 1a8963dce921c1e9ef05b9d1e56d8fbcb1ea1c4b | 479 | kotlogram-resurrected | MIT License |
common_parser/src/main/kotlin/ru/alfabank/ecomm/dcreator/parser/line/BoundsLineParser.kt | alfa-laboratory | 121,268,190 | false | null | package ru.alfabank.ecomm.dcreator.parser.line
abstract class BoundsLineParser(private val openCloseSymbols: String) : LineParser {
override fun openSymbolsSuited(startSymbols: String): BoundSymbolsSuiteResult {
val partySuiteStatus = startSymbols.first() == openCloseSymbols.first()
val fullySuited... | 0 | Kotlin | 0 | 7 | 1f1425c2c020baca91d02b5d3567cdf28e3a95bd | 715 | kgen-doc-tools | MIT License |
wallet-common/src/main/kotlin/com/wallet/biz/service/DepositService.kt | GalaxySciTech | 339,935,435 | false | {"Kotlin": 273747, "CSS": 210000, "HTML": 94074, "PLpgSQL": 76509, "Java": 56269, "JavaScript": 47624, "SCSS": 25514, "Dockerfile": 1104, "Shell": 1071} | package com.wallet.biz.service
import com.wallet.biz.domain.PageEntity
import com.wallet.entity.domain.Deposit
import org.springframework.data.domain.Page
interface DepositService {
fun getById(id:Long): Deposit?
fun save(deposit:Deposit): Deposit
fun getByHash(hash: String, address: String): Deposit?
... | 5 | Kotlin | 40 | 99 | d52e8f7f4b151676be9b98dc2c85b912b06cf536 | 562 | java-wallet | MIT License |
src/main/kotlin/com/tylerthrailkill/helpers/prettyprint/PrettyPrint.kt | snowe2010 | 165,758,520 | false | null | package com.tylerthrailkill.helpers.prettyprint
import com.ibm.icu.text.BreakIterator
import mu.KLogging
import java.math.BigDecimal
import java.math.BigInteger
import java.util.*
/**
* Pretty print function.
*
* Prints any object in a pretty format for easy debugging/reading
*
* @param [obj] the object to prett... | 10 | null | 2 | 80 | 8f3aa28a49c55318752d3e560e06b4c56aeb447e | 8,555 | pretty-print | MIT License |
app/src/main/java/com/hashim/instagram/ui/main/MainViewModel.kt | hashimshafiq | 244,229,633 | false | null | package com.hashim.instagram.ui.main
import androidx.lifecycle.MutableLiveData
import com.hashim.instagram.data.repository.UserRepository
import com.hashim.instagram.ui.base.BaseViewModel
import com.hashim.instagram.utils.common.Event
import com.hashim.instagram.utils.network.NetworkHelper
import com.hashim.instagram.... | 1 | Kotlin | 10 | 21 | e13d04ef515e93ae52fca5a04dc987226adc750a | 1,008 | Instagram | MIT License |
app/src/main/java/com/concordium/wallet/ui/common/identity/IdentityUpdater.kt | Concordium | 358,250,608 | false | null | package com.concordium.wallet.ui.common.identity
import android.app.Application
import androidx.room.withTransaction
import com.concordium.wallet.App
import com.concordium.wallet.BuildConfig
import com.concordium.wallet.data.AccountRepository
import com.concordium.wallet.data.IdentityRepository
import com.concordium.w... | 77 | null | 1 | 6 | cf482234db350007bdfef2540e16b07bfa174d03 | 6,534 | concordium-reference-wallet-android | Apache License 2.0 |
placeholder/src/jvmTest/kotlin/com/eygraber/compose/placeholder/DesktopPlaceholderTest.kt | eygraber | 708,597,627 | false | null | /*
* Copyright 2021 The Android Open Source Project
* Copyright 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* ... | 46 | null | 596 | 96 | f38efc430ef6b32634370820d5ef61ca5fdf52e5 | 9,155 | compose-placeholder | Apache License 2.0 |
mccoroutine-sponge-api/src/main/java/com/github/shynixn/mccoroutine/sponge/SuspendingCommandExecutor.kt | Shynixn | 156,845,738 | false | null | package com.github.shynixn.mccoroutine.sponge
import org.spongepowered.api.command.CommandResult
import org.spongepowered.api.command.CommandSource
import org.spongepowered.api.command.args.CommandContext
/**
* Interface containing the method directing how a certain command will
* be executed.
*/
@FunctionalInterf... | 0 | null | 19 | 205 | 67662b0c239010ff2765599685f8edf37dd6ad8d | 697 | MCCoroutine | MIT License |
compiler/testData/loadJava/compiledKotlin/prop/ExtVarl.kt | JakeWharton | 99,388,807 | true | null | package test
var Int.junk: Short
get() = throw Exception()
set(p: Short) = throw Exception()
val String.junk: Int
get() = throw Exception()
| 179 | Kotlin | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 154 | kotlin | Apache License 2.0 |
js/js.tests/test/org/jetbrains/kotlin/incremental/FirAbstractInvalidationTest.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.incremental
import org.jetbrains.kotlin.cli.common.messages.MessageRenderer
impo... | 184 | null | 5771 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 4,318 | kotlin | Apache License 2.0 |
Chapter13/HelloKotlin/app/src/main/java/com/goobar/hellokotlin/SampleFragment.kt | PacktPublishing | 164,067,642 | false | null | package com.example.navigationdemo1
import android.content.Context
import android.net.Uri
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
// TODO: Rename parameter arguments, choose names that match
// the fragme... | 4 | null | 5748 | 51 | 9fd893de74c2546e2059606f4f87e2ddaa9644ea | 3,309 | Mastering-Kotlin | MIT License |
app/src/main/java/com/a10miaomiao/bilimiao/adapter/UpperChannelAdapter.kt | 10miaomiao | 115,510,569 | false | null | package com.a10miaomiao.bilimiao.adapter
import com.a10miaomiao.bilimiao.R
import com.a10miaomiao.bilimiao.entity.UpperChannelInfo
import com.bumptech.glide.Glide
import com.bumptech.glide.load.engine.DiskCacheStrategy
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewH... | 1 | null | 1 | 20 | dfd78b56b5c41eb49454836ee2bce5cefc667db7 | 1,066 | bilimiao | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/util/CredentialUtil.kt | navikt | 290,982,864 | false | null | package no.nav.syfo.util
import java.util.*
fun basicHeader(
credentialUsername: String,
credentialPassword: String,
) = "Basic " + Base64.getEncoder().encodeToString(java.lang.String.format("%s:%s", credentialUsername, credentialPassword).toByteArray())
fun bearerHeader(token: String): String {
return "... | 0 | Kotlin | 0 | 0 | b103750661526e06e2a6a531ef63e1004f137e06 | 337 | syfooversikthendelsetilfelle | MIT License |
service/src/main/kotlin/com/r3/corda/finance/cash/issuer/service/flows/IssueCash.kt | joshtharakan | 218,566,108 | true | {"Kotlin": 159237} | package com.allianz.t2i.issuer.workflows.flows
import co.paralleluniverse.fibers.Suspendable
import com.r3.corda.lib.tokens.contracts.utilities.heldBy
import com.r3.corda.lib.tokens.contracts.utilities.issuedBy
import com.r3.corda.lib.tokens.contracts.utilities.of
import com.r3.corda.lib.tokens.workflows.flows.rpc.Con... | 0 | null | 0 | 0 | 34c4f213e5bb67757a7ae022c96e323c6afc1913 | 3,400 | cash-issuer | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsinterventionsservice/reporting/BatchUtilsTest.kt | ministryofjustice | 312,544,431 | false | {"Kotlin": 1714963, "Mustache": 3350, "Shell": 2684, "PLpgSQL": 2362, "Dockerfile": 1980} | package uk.gov.justice.digital.hmpps.hmppsinterventionsservice.reporting
import com.nhaarman.mockitokotlin2.mock
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.Test
import org.springframework.batch.item.ExecutionContext
import org.springframework.core... | 8 | Kotlin | 1 | 2 | bca6f4f269753425f1e5df434e08e4e941cb7075 | 4,424 | hmpps-interventions-service | MIT License |
Core/src/commonMain/kotlin/io/nacular/doodle/core/Display.kt | nacular | 108,631,782 | false | {"Kotlin": 3150677} | package io.nacular.doodle.core
import io.nacular.doodle.core.ContentDirection.RightLeft
import io.nacular.doodle.drawing.AffineTransform
import io.nacular.doodle.drawing.AffineTransform.Companion.Identity
import io.nacular.doodle.drawing.Color
import io.nacular.doodle.drawing.Paint
import io.nacular.doodle.drawing.pai... | 5 | Kotlin | 26 | 613 | f7414d4c30cdd7632992071234223653e52b978c | 6,411 | doodle | MIT License |
zettai_step1_http/src/main/kotlin/com/ubertob/fotf/zettai/ui/HtmlPage.kt | uberto | 654,026,766 | false | null | package com.ubertob.fotf.zettai.ui
import com.ubertob.fotf.zettai.domain.ToDoItem
import com.ubertob.fotf.zettai.domain.ToDoList
data class HtmlPage(val raw: String)
fun renderHtml(todoList: ToDoList): HtmlPage =
HtmlPage(
"""
<html>
<body>
<h1>Zettai</h1>
<h2>${todoLi... | 0 | Kotlin | 0 | 2 | 2f80b8f4022cacbf6d7a92919224f98d37453a4d | 655 | fotf | MIT License |
buildSrc/src/main/kotlin/MavenUtil.kt | kepocnhh | 349,158,555 | false | null | object MavenUtil {
private const val MAVEN_APACHE_URL = "http://maven.apache.org"
private fun mavenApacheUrlPom(modelVersion: String): String {
return "$MAVEN_APACHE_URL/POM/$modelVersion"
}
fun pom(
modelVersion: String,
groupId: String,
artifactId: String,
vers... | 2 | null | 1 | 1 | a6c81acc88e4beffb4453d2cd00a7719b5d2887c | 1,995 | GitHubPackagesSample | Apache License 2.0 |
app/src/main/java/com/isscroberto/powernap/util/AlarmService.kt | robertoissc | 129,319,747 | false | null | package com.isscroberto.powernap.util
import android.app.Service
import android.content.Context
import android.content.Intent
import android.media.Ringtone
import android.media.RingtoneManager
import android.os.IBinder
class AlarmService : Service() {
private lateinit var ringtone: Ringtone
override fun onB... | 2 | Kotlin | 0 | 1 | e829d7deda80be73233cfd556d114dd10db986c4 | 891 | power-nap-android | MIT License |
compiler/testData/codegen/script/topLevelLocalDelegatedProperty.kts | JakeWharton | 99,388,807 | false | null | import kotlin.reflect.KProperty
class Delegate {
operator fun getValue(t: Any?, p: KProperty<*>): Int = 3
}
val prop: Int by Delegate()
val x = prop
// expected: x: 3
| 181 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 177 | kotlin | Apache License 2.0 |
strings-core/src/commonMain/kotlin/com/chrynan/strings/core/StringArrayResourceID.kt | chRyNaN | 177,022,027 | false | null | package com.chrynan.strings.core
inline class StringArrayResourceID(override val name: String) : ResourceID | 0 | Kotlin | 0 | 4 | 4319ab4ee3585213a0295cb79b850b5b771e21fd | 108 | strings | Apache License 2.0 |
src/main/kotlin/com/ecwid/apiclient/v3/dto/common/ExtendedOrderTax.kt | Ecwid | 160,232,759 | false | {"Kotlin": 1019261} | package com.ecwid.apiclient.v3.dto.common
interface ExtendedOrderTax : BaseOrderTax {
val includeInPrice: Boolean?
}
| 11 | Kotlin | 13 | 17 | 2f94bfea3ad2073b89b8ea2b38dacdaa5f443a47 | 119 | ecwid-java-api-client | Apache License 2.0 |
app/src/main/java/com/kcteam/features/photoReg/model/UserPhotoRegModel.kt | DebashisINT | 558,234,039 | false | null | package com.breezefieldsalesashavarifoods.features.photoReg.model
class UserPhotoRegModel {
var user_id: String? = null
var session_token: String? = null
var registration_date_time: String? = null
} | 0 | null | 1 | 1 | a9aabcf48662c76db18bcece75cae9ac961da1ed | 211 | NationalPlastic | Apache License 2.0 |
src/commonMain/kotlin/org/angproj/crypt/shake/Shake256Hash.kt | angelos-project | 677,062,617 | false | {"Kotlin": 17587776} | /**
* Copyright (c) 2023 by <NAME> <<EMAIL>>.
*
* This software is available under the terms of the MIT license. Parts are licensed
* under different terms if stated. The legal terms are attached to the LICENSE file
* and are made available on:
*
* https://opensource.org/licenses/MIT
*
* SPDX-License-Iden... | 0 | Kotlin | 0 | 0 | ed191fa0bc60aa5ed01fe8ef63a86c742890d243 | 5,809 | angelos-project-crypt | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.