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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
plugins/analysis/common/src/main/kotlin/arrow/meta/plugins/analysis/phases/analysis/solver/ast/context/elements/DeclarationContainer.kt | arrow-kt | 217,378,939 | false | null | package arrow.meta.plugins.analysis.phases.analysis.solver.ast.context.elements
interface DeclarationContainer {
val declarations: List<Declaration>
}
| 97 | Kotlin | 40 | 316 | 8d2a80cf3a1275a752c18baceed74cb61aa13b4d | 154 | arrow-meta | Apache License 2.0 |
compiler/fir/tree/gen/org/jetbrains/kotlin/fir/expressions/builder/FirLazyBlockBuilder.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.
*/
@file:Suppress("DuplicatedCode", "unused")
package org.jetbrains.kotlin.fir.expressions.builder
import kotli... | 163 | null | 5686 | 46,039 | f98451e38169a833f60b87618db4602133e02cf2 | 1,189 | kotlin | Apache License 2.0 |
core/src/commonMain/kotlin/it/unibo/pulvreakt/dsl/model/PulvreaktConfiguration.kt | pulvreakt | 540,771,410 | false | {"Kotlin": 189528, "JavaScript": 404, "HTML": 93} | package it.unibo.pulvreakt.dsl.model
import it.unibo.pulvreakt.core.protocol.Protocol
typealias DevicesConfiguration = Map<String, DeviceSpecification>
/**
* Represents the container of configurations and additional information for the communication.
* [devicesConfiguration] is the map that associates a device nam... | 2 | Kotlin | 1 | 3 | df71f7ae792fd7484569a1a222666111fd030fa2 | 739 | pulvreakt | MIT License |
service/src/main/kotlin/com/openlivery/service/common/system/SystemParameters.kt | heliohfs | 366,046,617 | false | null | package com.openlivery.service.common.system
import com.openlivery.service.common.domain.entity.Parameters
import com.openlivery.service.common.repository.ParametersRepository
import org.springframework.stereotype.Service
import java.math.BigDecimal
import java.time.LocalTime
import java.time.ZoneOffset
@Service
clas... | 0 | Kotlin | 0 | 0 | bf403d7fa6a216f064475dd63b0f870d932c44e4 | 2,411 | openlivery | Apache License 2.0 |
service/src/main/kotlin/com/openlivery/service/common/system/SystemParameters.kt | heliohfs | 366,046,617 | false | null | package com.openlivery.service.common.system
import com.openlivery.service.common.domain.entity.Parameters
import com.openlivery.service.common.repository.ParametersRepository
import org.springframework.stereotype.Service
import java.math.BigDecimal
import java.time.LocalTime
import java.time.ZoneOffset
@Service
clas... | 0 | Kotlin | 0 | 0 | bf403d7fa6a216f064475dd63b0f870d932c44e4 | 2,411 | openlivery | Apache License 2.0 |
src/test/kotlin/com/kirakishou/photoexchange/handlers/GetReceivedPhotosHandlerTest.kt | K1rakishou | 109,591,197 | false | null | package com.kirakishou.photoexchange.handlers
import com.kirakishou.photoexchange.AbstractTest
import com.kirakishou.photoexchange.TestUtils.createPhoto
import com.kirakishou.photoexchange.core.ExchangeState
import com.kirakishou.photoexchange.core.UserUuid
import com.kirakishou.photoexchange.database.entity.PhotoEnti... | 0 | Kotlin | 0 | 1 | eb6343fbac212833755d22de6dc9b12b4b022d39 | 10,921 | photoexchange-backend | Do What The F*ck You Want To Public License |
app/src/main/java/com/orange/ods/app/ui/components/textfields/TextField.kt | Orange-OpenSource | 440,548,737 | false | null | /*
*
* Copyright 2021 Orange
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* /
*/
package com.orange.ods.app.ui.components.textfields
import androidx.compose.foundation.layout.Column
import androidx.comp... | 86 | null | 7 | 8 | 9e99ed5d398a4a4fa6a8d719a10f2f0061cb50e5 | 6,844 | ods-android | MIT License |
2022/project/src/test/kotlin/Day09KtTest.kt | ric2b | 159,961,626 | false | {"TypeScript": 144924, "Haskell": 117945, "Kotlin": 97335, "Svelte": 89864, "HTML": 3763, "JavaScript": 3612} | import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test
class Day09KtTest {
private val testInput =
"""
R 4
U 4
L 3
D 1
R 4
D 1
L 5
R 2
""".trimIndent()
val myInput = this::class.... | 0 | TypeScript | 0 | 0 | 04b68836b582c241e6c854b40b6be35d406a2c7e | 1,088 | advent-of-code | MIT License |
src/main/kotlin/org/jire/strukt/internal/FindDelegate.kt | Jire | 69,727,181 | false | {"Gradle": 2, "Shell": 1, "Batchfile": 1, "Text": 1, "Markdown": 1, "Java Properties": 1, "Java": 1, "Kotlin": 16} | /*
* Copyright 2016 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 1 | null | 1 | 1 | 1885867ce96af26cc3bb709397a43cc37b110459 | 1,148 | Strukt-Old | Apache License 2.0 |
app/src/main/java/com/inz/z/note_book/database/controller/TaskInfoController.kt | Memory-Z | 234,554,362 | false | {"Gradle": 7, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 6, "Batchfile": 1, "Markdown": 1, "Proguard": 5, "Java": 94, "Kotlin": 161, "XML": 301, "INI": 2} | package com.inz.z.note_book.database.controller
import com.inz.z.note_book.database.TaskInfoDao
import com.inz.z.note_book.database.bean.TaskInfo
import com.inz.z.note_book.database.util.GreenDaoHelper
/**
* 任务控制
*
* @author Zhenglj
* @version 1.0.0
* Create by inz in 2020/05/13 13:57.
*/
object TaskInfoControl... | 1 | null | 1 | 1 | 387a68ede15df55eb95477515452f415fdd23e19 | 1,302 | NoteBook | Apache License 2.0 |
app/src/main/java/com/example/pedro/feedsense/models/Session.kt | mugbug | 144,412,118 | false | null | package com.example.pedro.feedsense.models
import java.util.*
data class SessionModel(
val pin: String,
val time: Date,
val owner: String,
val isActive: Boolean) | 0 | Kotlin | 1 | 2 | 3286f82b545d1feec10a714dbf50d0a760c536c9 | 195 | feedsense | MIT License |
core/src/test/java/com/facebook/ktfmt/kdoc/KDocFormatterTest.kt | facebook | 218,383,922 | false | null | /*
* Portions Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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 require... | 93 | null | 76 | 910 | ed949e89eea22843ac10d4fb91685453754abd25 | 189,070 | ktfmt | Apache License 2.0 |
app/src/main/java/com/lukaslechner/coroutineusecasesonandroid/usecases/coroutines/usecase15/WorkManagerActivity.kt | LukasLechnerDev | 248,218,113 | false | null | package com.lukaslechner.coroutineusecasesonandroid.usecases.coroutines.usecase15
import android.os.Bundle
import androidx.activity.viewModels
import com.lukaslechner.coroutineusecasesonandroid.base.BaseActivity
import com.lukaslechner.coroutineusecasesonandroid.base.useCase15Description
import com.lukaslechner.corout... | 5 | null | 436 | 2,664 | 636b1038c42073a45bfccb25afbedc294b0f032d | 861 | Kotlin-Coroutines-and-Flow-UseCases-on-Android | Apache License 2.0 |
app/src/main/java/com/example/android/navigation/TitleFragment.kt | xxxDNxxx | 259,377,964 | true | {"Kotlin": 393378} | package com.example.android.navigation
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
/**
* A simple [Fragment] subclass.
*/
class TitleFragment : Fragment() {
override fun ... | 0 | Kotlin | 0 | 0 | 8cfe4f96240cda731eb75c4973dd28fde27ae151 | 563 | android-kotlin-fundamentals-starter-apps | Apache License 2.0 |
sykepenger-api/src/test/kotlin/no/nav/helse/spleis/graphql/SpeilBuilderFlereAGTest.kt | navikt | 193,907,367 | false | {"Kotlin": 6568073, "PLpgSQL": 2738, "Dockerfile": 168} | package no.nav.helse.spleis.graphql
import java.time.LocalDate.EPOCH
import java.time.Month
import java.time.YearMonth
import no.nav.helse.hendelser.Søknad.Søknadsperiode.Sykdom
import no.nav.helse.hendelser.til
import no.nav.helse.januar
import no.nav.helse.spleis.speil.dto.BeregnetPeriode
import no.nav.helse.spleis.... | 2 | Kotlin | 7 | 3 | e7f4b5536caf37b4c4ce493233af1eb9e9d8c788 | 27,421 | helse-spleis | MIT License |
app/src/main/java/com/ghstudios/android/features/weapons/detail/WeaponBowgunDetailViewHolder.kt | theMaelstro | 513,896,693 | false | {"Kotlin": 743563, "Java": 406389} | package com.ghstudios.android.features.weapons.detail
import android.content.Context
import android.graphics.Typeface
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import com.ghstudios.android.data.classes.Weapon
import com.ghstudios.android.mh... | 0 | Kotlin | 1 | 13 | 1ff7ce3430d4472a80682b61020f232ea19bf8cb | 6,807 | MHFZZDatabase | MIT License |
features/mpcredits/src/main/java/com/jpp/mpcredits/CreditsFragment.kt | perettijuan | 156,444,935 | false | null | package com.jpp.mpcredits
import android.content.Context
import android.os.Bundle
import android.os.Parcelable
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewMod... | 9 | null | 7 | 46 | 7921806027d5a9b805782ed8c1cad447444f476b | 4,227 | moviespreview | Apache License 2.0 |
lint-rules-androidarch-lint/src/test/java/fr/afaucogney/mobile/android/lint/rules/contract/WellSegregationOfFeatureContractInterfaceDetectorTest.kt | afaucogney | 314,580,067 | true | {"Kotlin": 340326, "Shell": 1027} | package fr.niji.mobile.android.socle.lint.rules.contract
import com.android.tools.lint.checks.infrastructure.TestFiles.kotlin
import com.android.tools.lint.checks.infrastructure.TestLintTask
import fr.niji.mobile.android.socle.lint.rules.contract.WellSegregationOfFeatureContractInterfaceDetector.Companion.ISSUE_FEATUR... | 0 | Kotlin | 0 | 0 | 69180be08e8c36d5971827a8113447e3ba7be166 | 8,564 | lint-rules | Apache License 2.0 |
tmp/arrays/youTrackTests/6878.kt | DaniilStepanov | 228,623,440 | false | {"Git Config": 1, "Gradle": 6, "Text": 3, "INI": 5, "Shell": 2, "Ignore List": 3, "Batchfile": 2, "Markdown": 2, "Kotlin": 15942, "JavaScript": 4, "ANTLR": 2, "XML": 12, "Java": 4} | // Original bug: KT-25974
fun test(a: UInt) =
when (a) {
0u -> "zero"
1u -> "one"
2u -> "two"
3u -> "three"
else -> "other"
}
| 1 | null | 12 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 203 | bbfgradle | Apache License 2.0 |
modules/Plugin_Main/src/main/java/com/example/main/grid/impl/SpacesItemDecoration.kt | VintLin | 551,830,745 | false | {"Kotlin": 29946, "Java": 6575} | package com.voter.adaptivegridview.impl
import android.graphics.Rect
import android.view.View
import androidx.recyclerview.widget.RecyclerView.ItemDecoration
import androidx.recyclerview.widget.RecyclerView
class SpacesItemDecoration(private val padding: Int, private val isHorizontal: Boolean) : ItemDecoration() {
... | 0 | Kotlin | 0 | 0 | c346f8aafee9b9d641137a9f8dcac5becb32bd9f | 523 | Jetpack-Seed | Apache License 2.0 |
src/main/kotlin/org/jetbrains/intellij/platform/gradle/tasks/PatchPluginXmlTask.kt | JetBrains | 33,932,778 | false | {"Kotlin": 830835, "Java": 6924} | // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.intellij.platform.gradle.tasks
import com.jetbrains.plugin.structure.intellij.utils.JDOMUtil
import org.gradle.api.DefaultTask
import org.gradle.api.Project
import org.gradle.... | 58 | Kotlin | 270 | 1,420 | 4e58259843ceeb4314a8d53cd72404c2f8b62bb8 | 18,010 | intellij-platform-gradle-plugin | Apache License 2.0 |
compiler/testData/codegen/box/delegatedProperty/provideDelegate/localCaptured.kt | JakeWharton | 99,388,807 | false | null | // WITH_STDLIB
import kotlin.test.*
var log: String = ""
inline fun <T> runLogged(entry: String, action: () -> T): T {
log += entry
return action()
}
operator fun String.provideDelegate(host: Any?, p: Any): String =
runLogged("tdf($this);") { this }
operator fun String.getValue(receiver: Any?, p: A... | 181 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 681 | kotlin | Apache License 2.0 |
src/main/kotlin/redux/actions.kt | Sgoldik | 244,194,433 | false | {"Kotlin": 23727, "CSS": 397, "HTML": 272} | package redux
import data.*
class ChangePresent(val lessonID: Int, val studentID: Int): RAction
class AddStudent(val student: Student): RAction
class ChangeStudent(val id: Int, val newStudent: Student): RAction
class RemoveStudent(val id: Int) : RAction
class AddLesson(val lesson: Lesson): RAction
class ChangeLe... | 0 | Kotlin | 0 | 0 | 788428d336b1129cb4eaf4e823e038970c9cf0f8 | 478 | kotlinjs | MIT License |
domain/src/main/kotlin/com/seanshubin/kotlin/tryme/domain/logger/LoggerFactory.kt | SeanShubin | 129,466,612 | false | null | package com.seanshubin.condorcet.logger
import com.seanshubin.condorcet.contract.FilesContract
import com.seanshubin.condorcet.contract.FilesDelegate
import java.nio.file.Path
import java.time.Clock
import java.time.ZonedDateTime
import java.time.format.DateTimeFormatter
class LoggerFactory(
private val clock... | 2 | null | 1 | 1 | 1803f204372d994130167749c22f825c51c6a434 | 1,720 | kotlin-tryme | The Unlicense |
include-build/roborazzi-core/src/commonJvmMain/kotlin/com/github/takahirom/roborazzi/roboOutputName.kt | takahirom | 594,307,070 | false | {"Kotlin": 440745, "HTML": 2244, "CSS": 408} | package com.github.takahirom.roborazzi
/**
* You can utilize this function to generate the file name of the image to be recorded.
* You can change naming strategy by setting roborazzi.record.namingStrategy.
*/
@ExperimentalRoborazziApi
fun roboOutputName(): String {
val roborazziContext = provideRoborazziContext(... | 83 | Kotlin | 34 | 712 | 0f528a13d085a8d2e3d218639f986fbbc21ce400 | 557 | roborazzi | Apache License 2.0 |
lightspark-sdk/src/commonMain/kotlin/com/lightspark/sdk/model/IncomingPaymentAttemptStatus.kt | lightsparkdev | 590,703,408 | false | {"Kotlin": 1602812, "Java": 34937, "Dockerfile": 1719, "Shell": 490} | // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
@file:Suppress("ktlint:standard:max-line-length")
package com.lightspark.sdk.model
import com.lightspark.sdk.core.util.EnumSerializer
import kotlinx.serialization.Serializable
/** This is an enum that enumerates all potential statuses for an ... | 1 | Kotlin | 1 | 4 | 7d9733e82eadf871494fd82cf6431871f763013d | 1,164 | kotlin-sdk | Apache License 2.0 |
src/main/kotlin/smile/data/Description.kt | sabbatinif | 418,445,072 | true | null | package smile.data
/**
* Description of a DataFrame feature.
* @property mean is the feature mean value.
* @property stdDev is the feature standard deviation.
* @property min is the feature min value.
* @property max is the feature max value.
*/
data class Description(
val mean: Double,
val stdDev: Doubl... | 0 | Kotlin | 0 | 0 | 4f6dabb09d7f478cc377bf0828c47e37f77e15c9 | 366 | PSyKE | Apache License 2.0 |
app/src/androidTest/java/tech/dalapenko/kinosearch/OpenFilmDetailsBySearchTest.kt | dalapenko | 739,864,810 | false | {"Kotlin": 136155, "Dockerfile": 1314} | package tech.dalapenko.kinosearch
import androidx.test.ext.junit.rules.ActivityScenarioRule
import com.kaspersky.kaspresso.testcases.api.testcase.TestCase
import org.junit.Rule
import org.junit.Test
import tech.dalapenko.kinosearch.screen.FilmDetailsScreen
import tech.dalapenko.kinosearch.screen.HomeScreen
import tech... | 0 | Kotlin | 0 | 0 | 0225d35212e97a650b0752f89114a25bd254ad0f | 1,449 | kinosearch | Apache License 2.0 |
src/main/kotlin/service/typescript/AddGetter.kt | takaakit | 164,598,033 | false | {"Kotlin": 337824} | package main.kotlin.service.typescript
// ˅
import com.change_vision.jude.api.inf.editor.ModelEditorFactory
import com.change_vision.jude.api.inf.model.IAttribute
import com.change_vision.jude.api.inf.model.IClass
import com.change_vision.jude.api.inf.model.INamedElement
import java.util.*
import java.text.*
import mai... | 0 | Kotlin | 0 | 6 | ccef783fc643264da0ad4aa25f82c770d0b5edc9 | 1,736 | helper-for-m-plus | Creative Commons Zero v1.0 Universal |
common/src/main/java/com/library/common/mvvm/BaseViewModel.kt | yangbangwei | 287,162,841 | false | null | package com.library.common.mvvm
import android.view.View
import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.blankj.utilcode.util.NetworkUtils
import com.library.common.R
import com.library.common.base.BaseApplication
import com.library.co... | 0 | Kotlin | 2 | 9 | d3791cfa3586c7430b5fb8d9870fcb71fab9d8f1 | 8,450 | MvvmLib | Apache License 2.0 |
notifications/notifications/src/main/kotlin/org/opensearch/notifications/NotificationPlugin.kt | opensearch-project | 354,080,507 | false | null | /*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
package org.opensearch.notifications
import org.opensearch.action.ActionRequest
import org.opensearch.action.ActionResponse
import org.opensearch.client.Client
import org.opensearch.cluster.metadata.IndexNameExpressionResolver
import o... | 47 | null | 48 | 8 | ded1a4ccc574e0042457d388a9d91d87be64228e | 7,365 | notifications | Apache License 2.0 |
pleo-antaeus-core/src/main/kotlin/io/pleo/antaeus/core/services/AbstractQueueWorker.kt | djdylan2000 | 316,985,658 | true | {"Kotlin": 27048, "Shell": 861, "Dockerfile": 249} | package io.pleo.antaeus.core.services
import java.util.concurrent.Executor
// Provides a template to poll, process and delete messages
abstract class AbstractQueueWorker<MESSAGE>(val threadCount: Int, val pollWaitTimeSecs: Int, val executor: Executor) {
abstract fun process(message: MESSAGE): Boolean
abstra... | 0 | Kotlin | 0 | 0 | fa3331548f2c556721c85c3c0bd5880a65a9d185 | 1,240 | antaeus | Creative Commons Zero v1.0 Universal |
tool/agent-upgrade-dist/src/main/kotlin/AgentUpdateMetadata.kt | JetBrains | 261,739,564 | false | {"Dockerfile": 199712, "C#": 194974, "Kotlin": 50785, "Batchfile": 18861, "Shell": 13946, "Python": 6106, "PowerShell": 5194} | data class AgentUpdateMetadata(val version: String, val hash: String) | 6 | Dockerfile | 58 | 97 | 883ff049c2a47c0443c00b4c32425bd29efac01c | 69 | teamcity-docker-images | Apache License 2.0 |
src/main/kotlin/com/mark/netrune/endpoint/MessageEncoder.kt | Mark7625 | 641,050,293 | false | {"Kotlin": 173330, "Java": 27801} | package com.mark.netrune.endpoint
import io.netty.buffer.ByteBuf
import org.openrs2.crypto.StreamCipher
interface MessageEncoder<M : OutgoingMessage> {
val opcode: Int
fun encode(message: M, output: ByteBuf, cipher: StreamCipher)
fun writeLengthPlaceholder(output: ByteBuf)
fun setLength(output: By... | 0 | Kotlin | 1 | 1 | ec39a338cc30f7bb3d12f551f18285b5b3618cd3 | 366 | Osrs-Data-packer | MIT License |
strikt-jvm/src/test/kotlin/strikt/java/PathAssertions.kt | robfletcher | 131,475,396 | false | null | package strikt.assertions
import dev.minutest.TestDescriptor
import org.junit.jupiter.api.TestFactory
import org.junit.jupiter.api.assertThrows
import org.junit.jupiter.api.io.TempDir
import strikt.api.expectThat
import java.io.File
import java.nio.file.Files
import java.nio.file.LinkOption
import java.nio.file.Path
i... | 49 | null | 59 | 547 | a245ed90bc9a1d4da005f2442b8fcc92e15d86c7 | 14,099 | strikt | Apache License 2.0 |
src/test/kotlin/no/nav/helse/flex/ThrottleVarsleTest.kt | navikt | 495,745,215 | false | {"Kotlin": 273838, "Dockerfile": 267} | package no.nav.helse.flex
import no.nav.helse.flex.varselutsending.CronJobStatus.*
import org.amshove.kluent.shouldBeEqualTo
import org.amshove.kluent.shouldBeNull
import org.amshove.kluent.shouldHaveSize
import org.junit.jupiter.api.MethodOrderer
import org.junit.jupiter.api.Order
import org.junit.jupiter.api.Test
im... | 3 | Kotlin | 0 | 0 | c0f1601558195e689a99e2e551a853160882575c | 4,961 | flex-inntektsmelding-status | MIT License |
DraggableTitleBarComponents/src/main/kotlin/example/App.kt | aterai | 158,348,575 | false | null | package example
import java.awt.*
import java.awt.event.MouseAdapter
import java.awt.event.MouseEvent
import java.awt.event.WindowEvent
import javax.swing.*
import javax.swing.event.MouseInputAdapter
import javax.swing.plaf.LayerUI
import javax.swing.plaf.basic.BasicComboBoxUI
private const val GAP = 4
private val le... | 0 | null | 6 | 9 | 47a0c684f64c3db2c8b631b2c20c6c7f9205bcab | 10,395 | kotlin-swing-tips | MIT License |
src/main/kotlin/io/unthrottled/doki/icons/jetbrains/config/IconSettings.kt | doki-theme | 527,949,815 | false | {"Kotlin": 92318, "Java": 6130, "Shell": 272, "Batchfile": 28} | package io.unthrottled.doki.icons.jetbrains.config
import com.intellij.openapi.ui.ComboBox
import io.unthrottled.doki.icons.jetbrains.themes.DokiTheme
import io.unthrottled.doki.icons.jetbrains.themes.IconThemeManager
import java.util.Vector
import javax.swing.DefaultComboBoxModel
class ThemeComboItem(private val dok... | 18 | Kotlin | 3 | 44 | 5e66f9361e2ebec52f9ede5be9b1213bf2847c89 | 2,437 | doki-theme-icons-jetbrains | MIT License |
src/main/java/com/mallowigi/search/parsers/HexColorParser.kt | AtomMaterialUI | 215,215,096 | false | null | /*
* The MIT License (MIT)
*
* Copyright (c) 2015-2022 <NAME>Mallowigi" Boukhobza
*
* 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 th... | 5 | null | 24 | 41 | 7dd8fd0f0dfed3c60c7c6b1d024e5b389ae65550 | 1,937 | color-highlighter | MIT License |
core-data/src/main/java/com/stefang/dev/core/data/file/CryptoFileKeyStore.kt | stef-ang | 652,432,695 | false | null | package com.stefang.dev.core.data.file
import android.security.keystore.KeyGenParameterSpec
import android.security.keystore.KeyProperties
import android.util.Log
import com.google.gson.Gson
import java.nio.charset.Charset
import java.security.KeyStore
import javax.crypto.Cipher
import javax.crypto.KeyGenerator
import... | 0 | Kotlin | 0 | 0 | e7b0dd4c071c3ec5c662d601672ff467b6b937df | 3,744 | ScanMeCalculator | Apache License 2.0 |
app/src/main/java/com/ctech/eaty/ui/login/viewmodel/LoginViewModel.kt | dbof10 | 116,687,959 | false | null | package com.ctech.eaty.ui.login.viewmodel
import com.ctech.eaty.entity.UserDetail
import com.ctech.eaty.tracking.FirebaseTrackManager
import com.ctech.eaty.ui.login.navigation.LoginNavigation
import com.ctech.eaty.ui.login.state.LoginState
import io.reactivex.Completable
import io.reactivex.Observable
class LoginView... | 2 | Kotlin | 11 | 49 | 2e3445debaedfea03f9b44ab62744046fe07f1cc | 2,041 | hunt-android | Apache License 2.0 |
game-plugins/src/main/kotlin/org/alter/plugins/service/worldlist/model/WorldLocation.kt | AlterRSPS | 421,831,790 | false | null | package org.alter.plugins.service.worldlist.model
/**
* @author <NAME> ("Dread")
*
* Represents the various world locations
*
* @param id The flag id
*/
enum class WorldLocation(val id: Int) {
UNITED_STATES(0),
UNITED_KINGDOM(1),
CANADA(2),
AUSTRALIA(3),
NETHERLANDS(4),
SWEDEN(5),
... | 8 | Kotlin | 33 | 23 | 9dbd62d67de547cfedc43b902797306c5db8fb55 | 348 | Alter | Apache License 2.0 |
src/commonMain/kotlin/com/soywiz/korau/format/atrac3plus/ChannelUnit.kt | kpspemu | 108,654,928 | false | null | package com.soywiz.korau.format.atrac3plus
import com.soywiz.kmem.arraycopy
import com.soywiz.kmem.fill
import com.soywiz.kmem.signExtend
import com.soywiz.korau.format.atrac3plus.Atrac3plusData1.atrac3p_spectra_tabs
import com.soywiz.korau.format.atrac3plus.Atrac3plusData2.atrac3p_ct_restricted_to_full
import com.soy... | 16 | null | 9 | 72 | 5ad15d161bef8baa40961ee508643306d933a50a | 52,528 | kpspemu | MIT License |
jdroid-android-google-maps/src/main/java/com/jdroid/android/google/maps/MapUtils.kt | fwonly123 | 198,339,170 | false | null | package com.jdroid.android.google.maps
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.drawable.Drawable
import androidx.annotation.ColorRes
import androidx.annotation.DrawableRes
import androidx.core.graphics.drawable.DrawableCompat
import androidx.vectordrawable.graphics.drawabl... | 1 | null | 1 | 1 | 578194586fc7d7e71d3742756651d658cb498bd0 | 1,875 | jdroid-android | Apache License 2.0 |
app/src/main/java/com/droidafricana/moveery/di/modules/WorkerBindingModule.kt | Fbada006 | 240,091,360 | false | null | package com.droidafricana.moveery.di.modules
import com.droidafricana.moveery.di.keys.WorkerKey
import com.droidafricana.moveery.di.workerfactory.ChildWorkerFactory
import com.droidafricana.moveery.work.RefreshMovieWork
import dagger.Binds
import dagger.Module
import dagger.multibindings.IntoMap
/**Handles creation o... | 0 | Kotlin | 0 | 2 | 92b175690eac0333ecbe0d87c9f07084f6099459 | 585 | Moveery | Apache License 2.0 |
src/data/src/main/java/com/exemplo/astroimagemdodia/data/calladapter/CallAdapterFactory.kt | daniloabranches | 245,878,517 | false | {"Kotlin": 17339} | package com.exemplo.retrofitcalladapterfactory.calladapter
import retrofit2.CallAdapter
import retrofit2.Retrofit
import java.lang.reflect.ParameterizedType
import java.lang.reflect.Type
class CallAdapterFactory private constructor() : CallAdapter.Factory() {
override fun get(
returnType: Type,
an... | 0 | Kotlin | 0 | 1 | 4b3b6327e66de88df0a2fa489d826d305b33fc47 | 868 | astronomia-imagem-dia-mvc | MIT License |
src/data/src/main/java/com/exemplo/astroimagemdodia/data/calladapter/CallAdapterFactory.kt | daniloabranches | 245,878,517 | false | {"Kotlin": 17339} | package com.exemplo.retrofitcalladapterfactory.calladapter
import retrofit2.CallAdapter
import retrofit2.Retrofit
import java.lang.reflect.ParameterizedType
import java.lang.reflect.Type
class CallAdapterFactory private constructor() : CallAdapter.Factory() {
override fun get(
returnType: Type,
an... | 0 | Kotlin | 0 | 1 | 4b3b6327e66de88df0a2fa489d826d305b33fc47 | 868 | astronomia-imagem-dia-mvc | MIT License |
picker-media/src/main/java/chooongg/box/picker/media/MediaPickerAdapter.kt | Chooongg | 298,511,826 | false | null | package chooongg.box.picker.media
import android.provider.MediaStore
import chooongg.box.core.adapter.BindingAdapter
import chooongg.box.core.adapter.BindingHolder
import chooongg.box.ext.gone
import chooongg.box.ext.visible
import chooongg.box.picker.media.databinding.BoxItemPickerMediaBinding
import chooongg.box.pic... | 0 | Kotlin | 1 | 2 | f2b4adac448036ef2e48ec2a3ac030c7f8d0fe2e | 3,643 | ChooonggBox | Apache License 2.0 |
rpk-core/src/main/kotlin/com/rpkit/core/database/TableVersion.kt | Nyrheim | 269,929,653 | true | {"Kotlin": 2944589, "Java": 1237516, "HTML": 94789, "JavaScript": 640, "CSS": 607} | /*
* Copyright 2016 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | null | 0 | 0 | f2196a76e0822b2c60e4a551de317ed717bbdc7e | 984 | RPKit | Apache License 2.0 |
app/src/main/java/com/techbeloved/hymnbook/hymndetail/DetailPagerFragment.kt | techbeloved | 133,724,406 | false | null | package com.techbeloved.hymnbook.hymndetail
import android.annotation.SuppressLint
import android.app.ProgressDialog
import android.os.Bundle
import android.view.View
import android.view.ViewGroup
import androidx.core.app.ShareCompat
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
i... | 2 | Kotlin | 6 | 7 | 19451208eb3d0ca3060e388bc4a41cf487a3ca63 | 7,009 | hymnbook | MIT License |
modules/modules_contact/src/main/java/com/cl/modules_contact/request/Extend.kt | aaaaaaaazmx | 528,318,389 | false | {"Kotlin": 3779032, "Java": 1498865} | package com.cl.modules_contact.request
class Extend | 0 | Kotlin | 0 | 0 | 49a74a32c320a273dbe04c785af49f874f1d711b | 52 | abby | Apache License 2.0 |
app/src/main/java/edu/rosehulman/condrak/roseschedule/Day.kt | keith-cr | 164,172,313 | false | null | package edu.rosehulman.condrak.roseschedule
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
data class Day (var name: String = "", var periods: MutableList<ClassPeriod> = ArrayList()) : Parcelable | 0 | Kotlin | 0 | 0 | 1c371a063edb6ba014bc34e7195ee5d5aae7b10d | 230 | rose-schedule | MIT License |
app/src/main/java/com/wave/audiorecording/app/AppRecorderCallback.kt | SimformSolutionsPvtLtd | 359,396,860 | false | null | package com.wave.audiorecording.app
import com.wave.audiorecording.data.database.Record
import com.wave.audiorecording.exception.AppException
import java.io.File
interface AppRecorderCallback {
fun onRecordingStarted(file: File?)
fun onRecordingPaused()
fun onRecordProcessing()
fun onRecordFinishProce... | 0 | Kotlin | 5 | 9 | 4b3ffa7bfc8c4718085bfc3c146863c659f8e09f | 479 | SSAudioRecorderWithWaveForm | Apache License 2.0 |
økonomi/infrastructure/src/main/kotlin/økonomi/infrastructure/kvittering/consumer/UtbetalingKvitteringIbmMqConsumer.kt | navikt | 227,366,088 | false | null | package økonomi.infrastructure.kvittering.consumer
import no.nav.su.se.bakover.common.infrastructure.correlation.withCorrelationId
import no.nav.su.se.bakover.common.sikkerLogg
import org.slf4j.LoggerFactory
import java.lang.RuntimeException
import javax.jms.JMSContext
import javax.jms.Session
/**
* TODO jah: Denne ... | 6 | Kotlin | 1 | 1 | d7157394e11b5b3c714a420a96211abb0a53ea45 | 1,989 | su-se-bakover | MIT License |
src/main/java/com/pako2k/banknotescatalog/app/tables/TotalStatsTable.kt | Pako2K | 857,481,593 | false | {"Kotlin": 672402} | package com.pako2k.banknotescatalog.app.tables
typealias StatsTableSubColumn = List<Int>
class TotalStatsTable(
columns : List<String>,
private val totalColumn : String? = null,
val subColumns : List<String>
){
data class Record(
val name : String,
val columns : List<StatsTableSubColum... | 0 | Kotlin | 0 | 0 | 3f7486c1a9544213a108dd17c4d78aeb50204bd4 | 2,483 | BanknotesCatalog | MIT License |
app/src/main/java/com/danchoo/sample/gallery/data/datasource/GalleryDataSourceImpl.kt | danchoo21 | 447,993,828 | false | null | package com.danchoo.sample.gallery.data.datasource
import android.content.Context
import android.database.Cursor
import android.net.Uri
import android.provider.MediaStore
import com.danchoo.sample.gallery.domain.model.GalleryItemModel
import dagger.hilt.android.qualifiers.ApplicationContext
import kotlinx.coroutines.f... | 0 | Kotlin | 0 | 1 | 9bacbf01f40e76571d368a4ec9cc4d8e464e6d64 | 5,709 | compose-glide-image | Apache License 2.0 |
compose/desktop/desktop/src/jvmMain/kotlin/androidx/compose/ui/window/WindowDraggableArea.jvm.kt | RikkaW | 389,105,112 | false | null | /*
* Copyright 2020 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 applica... | 30 | null | 950 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 3,489 | androidx | Apache License 2.0 |
tests/engine/src/commonTest/kotlin/WebSocketEngineTest.kt | apollographql | 69,469,299 | false | null |
import com.apollographql.apollo3.api.http.HttpHeader
import com.apollographql.apollo3.exception.ApolloException
import com.apollographql.apollo3.exception.ApolloNetworkException
import com.apollographql.apollo3.exception.ApolloWebSocketClosedException
import com.apollographql.apollo3.mpp.Platform
import com.apollograp... | 188 | null | 646 | 3,684 | 720d01d5cb61a178309f4edc37ae92c2a7d57c77 | 5,083 | apollo-kotlin | MIT License |
core/src/main/java/de/quantummaid/testmaid/SkipDecider.kt | quantummaid | 373,873,853 | false | null | /*
* Copyright (c) 2021 <NAME> - https://quantummaid.de/.
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you und... | 0 | Kotlin | 0 | 0 | 651ca9678af542c57e9e0987cbcb7bd26d952a42 | 1,941 | testmaid | Apache License 2.0 |
src/main/kotlin/me/steven/indrev/registry/IRModelManagers.kt | GabrielOlvH | 265,247,813 | false | null | package me.steven.indrev.registry
import me.steven.indrev.api.machines.Tier
import me.steven.indrev.blocks.machine.DrillHeadModel
import me.steven.indrev.blocks.models.PumpPipeBakedModel
import me.steven.indrev.blocks.models.pipes.CableModel
import me.steven.indrev.blocks.models.pipes.FluidPipeModel
import me.steven.i... | 51 | null | 56 | 192 | 012a1b83f39ab50a10d03ef3c1a8e2651e517053 | 2,939 | Industrial-Revolution | Apache License 2.0 |
orca-queue/src/test/kotlin/com/netflix/spinnaker/orca/q/QueueTest.kt | tanelso2 | 100,993,157 | false | null | /*
* Copyright 2017 Netflix, 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 i... | 1 | null | 1 | 1 | b641c49bbf9d887a9613944bdb67dc310cfd1ec9 | 11,839 | orca | Apache License 2.0 |
app/src/main/java/com/optiontrade/br/base/BaseFragment.kt | DanSumtsov | 587,860,108 | false | null | package com.optiontrade.br.base
import android.content.SharedPreferences
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil.inflate
import androidx.databinding.ViewDataBinding
import androidx.fragment.app.Fragme... | 0 | Kotlin | 0 | 0 | 546cce0bd4948bb51ec21b9359dfb001d1b49555 | 1,564 | TradeStudyProject | Apache License 2.0 |
components/src/main/java/emperorfin/android/components/ui/screens/authentication/uicomponents/AuthenticationTitle.kt | emperorfin | 611,222,954 | false | null | /*
* Copyright 2023 <NAME> (emperorfin)
*
* 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... | 0 | null | 0 | 28 | 58cf34eea5c1c3f26e99b3ed3c8647885cc497d2 | 2,365 | MilitaryJet | Apache License 2.0 |
app/src/main/java/com/iafs/sadagithubbrowser/data/network/github/model/LicenseSchema.kt | iafsilva | 650,237,222 | false | null | package com.iafs.sadagithubbrowser.data.network.github.model
import com.google.gson.annotations.SerializedName
/**
* Entity [LicenseSchema] retrieved from Github on api.github.com/search/repositories
*/
data class LicenseSchema(
@SerializedName("key")
val key: String,
@SerializedName("name")
val na... | 1 | Kotlin | 0 | 0 | df88bb48affdbe436a1689f86f71be249ba5a423 | 491 | sada-github-browser | Apache License 2.0 |
app/src/main/java/com/black_dragon74/mujbuddy/SettingsActivity.kt | black-dragon74 | 170,815,529 | false | {"Kotlin": 117240} | package com.black_dragon74.mujbuddy
import android.content.SharedPreferences
import android.os.Bundle
import androidx.annotation.Nullable
import com.black_dragon74.mujbuddy.utils.HelperFunctions
import com.black_dragon74.mujbuddy.utils.SEMESTER_DATA
import com.codevscolor.materialpreference.activity.MaterialPreference... | 0 | Kotlin | 0 | 0 | b530df85ed0e8bf78c6e918b209d87c7763ac53f | 1,296 | MUJ-Buddy-Android | MIT License |
components/ledger/ledger-utxo-flow/src/main/kotlin/net/corda/ledger/utxo/flow/impl/UtxoLedgerServiceImpl.kt | corda | 346,070,752 | false | null | package net.corda.ledger.utxo.flow.impl
import net.corda.flow.external.events.executor.ExternalEventExecutor
import net.corda.flow.persistence.query.ResultSetFactory
import net.corda.flow.pipeline.sessions.protocol.FlowProtocolStore
import net.corda.ledger.common.data.transaction.TransactionStatus
import net.corda.led... | 96 | null | 9 | 56 | dd139d8da25a3c52ae17ca8d0debc3da4067f158 | 14,247 | corda-runtime-os | Apache License 2.0 |
components/ledger/ledger-utxo-flow/src/main/kotlin/net/corda/ledger/utxo/flow/impl/UtxoLedgerServiceImpl.kt | corda | 346,070,752 | false | null | package net.corda.ledger.utxo.flow.impl
import net.corda.flow.external.events.executor.ExternalEventExecutor
import net.corda.flow.persistence.query.ResultSetFactory
import net.corda.flow.pipeline.sessions.protocol.FlowProtocolStore
import net.corda.ledger.common.data.transaction.TransactionStatus
import net.corda.led... | 96 | null | 9 | 56 | dd139d8da25a3c52ae17ca8d0debc3da4067f158 | 14,247 | corda-runtime-os | Apache License 2.0 |
src/main/kotlin/hr/fer/zemris/renderer/dsl/LightDSL.kt | lukamijic | 244,489,376 | false | null | package hr.fer.zemris.renderer.dsl
import hr.fer.zemris.math.vector.Vector
import hr.fer.zemris.renderer.lightning.Intensity
import hr.fer.zemris.renderer.lightning.Light
fun light(block: LightBuilder.() -> Unit) : Light = LightBuilder().apply(block).build()
class LightBuilder {
var id: String? = null
var p... | 0 | Kotlin | 0 | 0 | 26f18a2d6caf1648a78ed61c2f18a9114ecff87e | 575 | feRenderer | MIT License |
src/main/kotlin/view/UiResources.kt | vladcudoidem | 791,799,477 | false | {"Kotlin": 64984} | package view
import androidx.compose.foundation.defaultScrollbarStyle
import androidx.compose.foundation.shape.RoundedCornerShape
import shared.Colors.scrollbarHoverColor
import shared.Colors.scrollbarUnhoverColor
import shared.Dimensions.scrollbarThickness
val CustomScrollbarStyle = defaultScrollbarStyle().copy(
... | 11 | Kotlin | 0 | 0 | ea4b8edd3ef87c9b2761513b7e749b8d160406d3 | 469 | Schaumamal | MIT License |
compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrImplicitCastInserter.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2020 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
import org.jetbrains.kotlin.fir.FirElement
import org.jetbrains.kotl... | 5 | null | 5771 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 17,126 | kotlin | Apache License 2.0 |
compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrImplicitCastInserter.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2020 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
import org.jetbrains.kotlin.fir.FirElement
import org.jetbrains.kotl... | 5 | null | 5771 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 17,126 | kotlin | Apache License 2.0 |
client_end_user/shared/src/androidMain/kotlin/presentation/map/CommonGPSLocationService.android.kt | SantiagoFlynnUTN | 770,562,894 | false | {"Kotlin": 2180936, "Swift": 6073, "HTML": 3900, "Ruby": 2543, "Dockerfile": 1994, "Shell": 912} | package presentation.map
import _androidIntentFlow
import android.Manifest
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.location.LocationManager
import android.os.Looper
import androidx.compose.runtime.NoLiv... | 0 | Kotlin | 0 | 0 | a2ab62649ae89c83c3621756cc89d335656f8f30 | 7,314 | AngusBrotherKMP | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/synthetics/CronOptionsDsl.kt | F43nd1r | 643,016,506 | false | {"Kotlin": 5279682} | package com.faendir.awscdkkt.generated.services.synthetics
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.synthetics.CronOptions
@Generated
public fun buildCronOptions(initializer: @AwsCdkDsl CronOptions.Builder.() -> Unit = {}):
... | 1 | Kotlin | 0 | 4 | e6850aac225a29dfaf94807a5bc4da07175c4682 | 384 | aws-cdk-kt | Apache License 2.0 |
src/main/kotlin/no/nav/k9/los/nyoppgavestyring/query/dto/felter/Oppgavefelt.kt | navikt | 238,874,021 | false | {"Kotlin": 1849311, "Shell": 899, "JavaScript": 741, "Dockerfile": 447, "PLpgSQL": 167} | package no.nav.k9.los.nyoppgavestyring.query.dto.felter
class Oppgavefelt(
val område: String?,
val kode: String,
val visningsnavn: String,
val tolkes_som: String,
val kokriterie: Boolean,
val verdiforklaringerErUttømmende: Boolean = false,
val verdiforklaringer: List<Verdiforklaring>?
) | 9 | Kotlin | 0 | 0 | d8fea1f1bd954c249c8638d8dd9c51c2267fbe06 | 317 | k9-los-api | MIT License |
SoftwareDesign/02-mock/src/main/kotlin/Tweets.kt | ShuffleZZZ | 128,576,289 | false | null | import java.time.LocalDateTime
interface Tweet {
fun getDate(): LocalDateTime
}
interface TweetProvider {
fun getTweetsByHashtag(hashtag: String): List<Tweet>
fun getHoursArray(hashtag: String, hours: Int): Array<Int>
fun makeHoursArray(hours: List<Int>, forHours: Int): Array<Int>
}
| 0 | Jupyter Notebook | 3 | 9 | 29db54d96afef0558550471c58f695c962e1f747 | 302 | ITMO | MIT License |
app/gradle/build-logic/src/main/kotlin/build/wallet/gradle/logic/rust/util/RustToolchainProvider.kt | proto-at-block | 761,306,853 | false | {"C": 10424094, "Kotlin": 7156393, "Rust": 2046237, "Swift": 700307, "Python": 331492, "HCL": 271992, "Shell": 111209, "TypeScript": 102700, "C++": 64770, "Meson": 64234, "JavaScript": 36227, "Just": 28071, "Ruby": 9428, "Dockerfile": 5731, "Makefile": 3839, "Open Policy Agent": 1552, "Procfile": 80} | package build.wallet.gradle.logic.rust.util
import org.gradle.api.file.Directory
import org.gradle.api.file.RegularFileProperty
import org.gradle.api.services.BuildService
import org.gradle.api.services.BuildServiceParameters
import org.gradle.process.ExecOperations
import java.io.File
import javax.inject.Inject
inte... | 3 | C | 16 | 98 | 1f9f2298919dac77e6791aa3f1dbfd67efe7f83c | 1,032 | bitkey | MIT License |
cinescout/database/src/commonMain/kotlin/cinescout/database/testutil/TestAdapters.kt | 4face-studi0 | 280,630,732 | false | null | package cinescout.database.testutil
import cinescout.database.Movie
import cinescout.database.MovieRating
import cinescout.database.TmdbCredentials
import cinescout.database.TraktTokens
import cinescout.database.Watchlist
import cinescout.database.adapter.DateAdapter
import cinescout.database.adapter.RatingAdapter
imp... | 24 | Kotlin | 1 | 3 | dabd9284655ead17314e871530a9664aa6965953 | 1,343 | CineScout | Apache License 2.0 |
me-api/src/main/kotlin/shop/hyeonme/domain/inventory/service/impl/InventoryCommandServiceImpl.kt | TEAM-hyeonme | 776,784,109 | false | {"Kotlin": 120635, "Dockerfile": 204} | package shop.hyeonme.domain.inventory.service.impl
import shop.hyeonme.common.annotation.CommandService
import shop.hyeonme.domain.inventory.model.Inventory
import shop.hyeonme.domain.inventory.service.InventoryCommandService
import shop.hyeonme.domain.inventory.spi.InventoryPort
@CommandService
class InventoryComman... | 0 | Kotlin | 0 | 0 | 646621f5577418523de44ed3a229d19879ee7193 | 543 | ME-server | MIT License |
compiler/testData/debug/stepping/assertion.kt | JetBrains | 3,432,266 | false | {"Kotlin": 73968610, "Java": 6672141, "Swift": 4257498, "C": 2622360, "C++": 1898765, "Objective-C": 641056, "Objective-C++": 167134, "JavaScript": 135706, "Python": 48402, "Shell": 31423, "TypeScript": 22754, "Lex": 18369, "Groovy": 17265, "Batchfile": 11693, "CSS": 11368, "Ruby": 6922, "EJS": 5241, "Dockerfile": 5136... |
// FILE: test.kt
public val MASSERTIONS_ENABLED: Boolean = true
public inline fun massert(value: Boolean, lazyMessage: () -> String) {
if (MASSERTIONS_ENABLED) {
if (!value) {
val message = lazyMessage()
throw AssertionError(message)
}
}
}
public inline fun massert(v... | 162 | Kotlin | 5729 | 46,436 | c902e5f56504e8572f9bc13f424de8bfb7f86d39 | 973 | kotlin | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/s3outposts/CfnBucketFilterTagPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 63959868} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.s3outposts
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.String
import software.amazon.aws... | 4 | Kotlin | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 1,302 | awscdk-dsl-kotlin | Apache License 2.0 |
app/src/main/java/com/example/digitalminimalism/Focus/FocusModeFragment.kt | knowhrishi | 717,086,143 | false | {"Kotlin": 237977} | import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.example.digitalminimalism.Focus.BottomNavigation.Active.ActiveNavFragment
import com.example.digitalminimalism.Focus.BottomNavigation.History.HistoryNavFrag... | 0 | Kotlin | 0 | 0 | cacb1c208336c84580343395b9f52e96dfe475b5 | 1,945 | digital-minmalism-app | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/prisonregister/model/PrisonRepository.kt | ministryofjustice | 337,466,567 | false | {"Kotlin": 321410, "Dockerfile": 1443, "Shell": 238} | package uk.gov.justice.digital.hmpps.prisonregister.model
import org.springframework.data.jpa.domain.Specification
import org.springframework.data.jpa.repository.EntityGraph
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.jpa.repository.JpaSpecificationExecutor
import org.s... | 2 | Kotlin | 1 | 2 | 23ad6fd7c134253c7830d43a4cf090c6bef3e9b3 | 1,325 | prison-register | MIT License |
platform/platform-impl/src/com/intellij/ui/dsl/builder/impl/CollapsibleTitledSeparatorImpl.kt | ingokegel | 72,937,917 | true | null | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ui.dsl.builder.impl
import com.intellij.openapi.observable.properties.AtomicBooleanProperty
import com.intellij.openapi.util.IconLoader
imp... | 214 | null | 4829 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 1,929 | intellij-community | Apache License 2.0 |
Project_Manager_App/app/src/main/java/com/example/projectmanager/activities/CreateBoardActivity.kt | Maver1ck123 | 834,721,199 | false | {"Kotlin": 93262} | package com.example.projectmanager.activities
import android.net.Uri
import android.os.Bundle
import android.webkit.MimeTypeMap
import android.widget.Toast
import androidx.activity.result.contract.ActivityResultContracts
import androidx.lifecycle.lifecycleScope
import com.bumptech.glide.Glide
import com.example.projec... | 0 | Kotlin | 0 | 0 | 904be14cac8ede1ba96d71f3ffa5e6b5a4c7d50c | 3,936 | Project-Manager-App | MIT License |
kotlin-moment/src/main/kotlin/moment/Moment.kt | oxiadenine | 206,398,615 | false | null | @file:JsModule("moment")
@file:JsNonModule
package moment
import kotlin.js.Date
import kotlin.js.RegExp
external interface Locale {
fun calendar(
key: CalendarKey? = definedExternally,
m: Moment? = definedExternally,
now: Moment? = definedExternally
): String
fun longDateFormat(k... | 1 | null | 8 | 50 | e0017a108b36025630c354c7663256347e867251 | 22,457 | kotlin-js-wrappers | Apache License 2.0 |
common/src/commonMain/kotlin/dev/zwander/common/pages/WifiConfigPage.kt | zacharee | 641,202,797 | false | null | @file:OptIn(ExperimentalObjCRefinement::class)
package dev.zwander.common.pages
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Button
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material3.MaterialT... | 8 | null | 7 | 91 | 3d958ae0b2581815d4e496b0fef69186cc3a8c4f | 5,980 | ArcadyanKVD21Control | MIT License |
src/main/java/com/sayzen/campfiresdk/screens/fandoms/rubrics/SRubricPosts.kt | HorsePower68 | 230,018,763 | true | {"Kotlin": 1489208} | package com.sayzen.campfiresdk.screens.fandoms.rubrics
import com.dzen.campfire.api.models.fandoms.Rubric
import com.dzen.campfire.api.models.publications.Publication
import com.dzen.campfire.api.requests.post.RPostGetAllByRubric
import com.dzen.campfire.api.requests.rubrics.RRubricGet
import com.sayzen.campfiresdk.R
... | 0 | null | 0 | 0 | 214a4ee9262e185eb33a0ddcfc3a6803f22d54fd | 3,473 | CampfireSDK | Apache License 2.0 |
coinkit/src/main/java/io/horizontalsystems/coinkit/models/Coin.kt | horizontalsystems | 342,791,847 | false | null | package io.vextabit.coinkit.models
import android.content.Context
import android.os.Parcelable
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.eclipsesource.json.Json
import kotlinx.android.parcel.Parcelize
import java.io.InputStreamReader
import java.util.*
@Par... | 1 | null | 12 | 4 | 670a130caef66bef9c9f9e464a5da5884b56bf21 | 5,263 | coin-kit-android | MIT License |
unity/BIDUnityBanner.kt | bidapphub | 708,849,825 | false | null | package io.bidapp.networks.unity
import android.app.Activity
import android.util.Log
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import com.unity3d.services.banners.BannerErrorInfo
import com.unity3d.services.banners.BannerView
import com.unity3d.services.banners.UnityBan... | 0 | null | 1 | 2 | 927356cc82d347ee3699dbeb167e007b97e65354 | 3,529 | bidapp-ads-android | Apache License 2.0 |
z2-kotlin-plugin/testData/box/schematic/generic.kt | spxbhuhb | 665,463,766 | false | {"Kotlin": 1768633, "CSS": 171914, "Java": 18941, "JavaScript": 1950, "HTML": 1854} | package foo.bar
import hu.simplexion.z2.schematic.Schematic
class Test<T> : Schematic<Test<T>>() {
var genericField by generic<T>()
var genericFieldOrNull by generic<T?>()
}
fun box(): String {
val test = Test<Int>()
test.genericField = 12
if (test.genericField != 12) return "Fail: genericFie... | 5 | Kotlin | 0 | 1 | cc13a72fb54d89dffb91e3edf499ae5152bca0d9 | 580 | z2 | Apache License 2.0 |
plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/controller/CodeTransformChatController.kt | aws | 91,485,909 | false | null | // Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.jetbrains.services.codemodernizer.controller
import com.intellij.ide.BrowserUtil
import com.intellij.openapi.application.runInEdt
import com.intellij.openapi.projectRoots.Jav... | 439 | null | 190 | 725 | a26137f3db9a93deaf2d83e60b071d439431106a | 16,397 | aws-toolkit-jetbrains | Apache License 2.0 |
backend/data/src/main/kotlin/io/tolgee/model/batch/params/SetTranslationStateJobParams.kt | tolgee | 303,766,501 | false | {"TypeScript": 2960870, "Kotlin": 2463774, "JavaScript": 19327, "Shell": 12678, "Dockerfile": 9468, "PLpgSQL": 663, "HTML": 439} | package io.tolgee.model.batch.params
import io.tolgee.model.enums.TranslationState
class SetTranslationStateJobParams {
var languageIds: List<Long> = listOf()
var state: TranslationState? = null
}
| 170 | TypeScript | 188 | 1,837 | 6e01eec3a19c151a6e0aca49e187e2d0deef3082 | 203 | tolgee-platform | Apache License 2.0 |
src/test/java/com/andres_k/lib/test/document/CreatePdfTest.kt | Draym | 319,586,872 | false | null | package com.andres_k.lib.test.document
import com.andres_k.lib.extension.template.BaseTestTemplate
import com.andres_k.lib.library.core.component.PdfComponent
import com.andres_k.lib.library.core.component.container.PdfCol
import com.andres_k.lib.library.core.component.container.PdfRow
import com.andres_k.lib.library.... | 0 | Kotlin | 0 | 1 | 5084ca91cf25328afa3238abc19d1f0e3c095fe1 | 5,229 | PDF-Flex | MIT License |
src/main/kotlin/com/ibrahimharoon/gitautocommit/rest/dtos/DefaultLlmResponseDto.kt | Ibrahim-Haroon | 837,470,568 | false | {"Kotlin": 63154, "PowerShell": 3057, "Shell": 1646} | package com.ibrahimharoon.gitautocommit.rest.dtos
/**
* Represents the default response structure from an LLM API.
*
* @property choices A list of Choice objects representing possible responses.
*/
data class DefaultLlmResponseDto(
val choices: List<Choice>
) {
/**
* Represents a single choice in the ... | 0 | Kotlin | 2 | 5 | eae9bebd7caf88a90a944d9dbf581cfaf8cbe54f | 724 | git-autocommit-cli | MIT License |
design/components/src/main/java/com/choice/compose/Row.kt | choicedev | 474,815,875 | false | {"Kotlin": 139368} | package com.choice.compose
import androidx.compose.foundation.layout.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import com.choice.theme.MonkeyTheme
@Composable
inline fun MonkeyRow(
modifier: Modifier = Modifier,
horizontalArrangement:... | 0 | Kotlin | 0 | 1 | 7b1b382da31021e186b40bd173a68071454d2655 | 1,189 | MonkeyFoodFork | Apache License 2.0 |
features/roomdetails/impl/src/main/kotlin/io/element/android/features/roomdetails/impl/RoomDetailsView.kt | vector-im | 546,522,002 | false | null | /*
* Copyright (c) 2023 New Vector 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 agr... | 91 | null | 32 | 287 | 4587b51bd33e8b5a2e2c81c79f3aa70a3ac52923 | 13,313 | element-x-android | Apache License 2.0 |
app/android/src/main/java/UpdateAwareAppScope.kt | DRSchlaubi | 641,131,010 | false | {"Kotlin": 211716, "Rust": 4226, "Swift": 2736, "Ruby": 2733, "HTML": 705, "JavaScript": 645, "PowerShell": 617, "Dockerfile": 255} | package dev.schlaubi.tonbrett.app.android
import android.app.Activity
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import a... | 0 | Kotlin | 1 | 8 | e73c478cb8e613f90d2813a81672a508ad3ad536 | 5,533 | tonbrett | MIT License |
lib/src/main/kotlin/com/github/xingray/kotlinjavafxbase/page/BaseStage.kt | XingRay | 870,533,727 | false | {"Kotlin": 53262} | package com.github.xingray.kotlinjavafxbase.page
import javafx.event.EventHandler
import javafx.stage.Stage
import javafx.stage.StageStyle
import javafx.stage.WindowEvent
open class BaseStage : Stage {
private val onCloseEventHandlers: MutableList<EventHandler<WindowEvent>> = mutableListOf()
constructor() {
... | 0 | Kotlin | 0 | 0 | 4579746bb97f26958e825dcad6263e7530a2d54c | 1,080 | kotlin-javafx-base | Apache License 2.0 |
serverless-simulator/opendc/opendc-workflows/src/main/kotlin/com/atlarge/opendc/workflows/service/WorkflowEvent.kt | atlarge-research | 297,702,102 | false | null | /*
* Copyright (c) 2020 AtLarge Research
*
* 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, merge, pu... | 0 | null | 1 | 2 | 11c772bcb3fc7a7c2590d6ed6ab979b78cb9fec9 | 3,068 | opendc-serverless | MIT License |
connectors/jdbc-connector/src/main/java/com/orbitalhq/connectors/jdbc/drivers/snowflake/SnowflakeJdbcUrlBuilder.kt | orbitalapi | 541,496,668 | false | {"TypeScript": 9344934, "Kotlin": 5669840, "HTML": 201985, "SCSS": 170620, "HCL": 55741, "Java": 29373, "JavaScript": 24697, "Shell": 8800, "Dockerfile": 7001, "Smarty": 4741, "CSS": 2966, "Mustache": 1392, "Batchfile": 983, "MDX": 884, "PLpgSQL": 337} | package com.orbitalhq.connectors.jdbc.drivers.snowflake
import com.orbitalhq.connectors.ConnectionDriverParam
import com.orbitalhq.connectors.ConnectionParameterName
import com.orbitalhq.connectors.ConnectorUtils
import com.orbitalhq.connectors.IConnectionParameter
import com.orbitalhq.connectors.SimpleDataType
import... | 9 | TypeScript | 10 | 292 | 2be59abde0bd93578f12fc1e2ecf1f458a0212ec | 2,342 | orbital | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.