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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
marcel-compilation/marcel-compiler/src/main/kotlin/com/tambapps/marcel/compiler/asm/MethodExpressionWriter.kt | tambapps | 587,877,674 | false | {"Maven POM": 26, "Text": 1, "Ignore List": 11, "Markdown": 87, "Kotlin": 465, "Gradle Kotlin DSL": 5, "INI": 4, "Java Properties": 4, "Shell": 5, "Batchfile": 2, "Proguard": 8, "XML": 83, "Java": 226, "YAML": 1, "JavaScript": 1, "TOML": 1, "Gradle": 5, "JFlex": 1} | package com.tambapps.marcel.compiler.asm
import com.tambapps.marcel.compiler.extensions.arrayStoreCode
import com.tambapps.marcel.compiler.extensions.descriptor
import com.tambapps.marcel.compiler.extensions.internalName
import com.tambapps.marcel.compiler.extensions.typeCode
import com.tambapps.marcel.compiler.extens... | 0 | Java | 0 | 7 | 83bf3562f8bb6b43fe5d6f2e13c9ed5ad3300bce | 8,239 | marcel | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/findUsages/libraryUsages/kotlinLibrary/LibraryEnumUsage.0.kt | ingokegel | 72,937,917 | false | null | // PSI_ELEMENT: org.jetbrains.kotlin.psi.KtNamedFunction
// OPTIONS: usages
// PSI_ELEMENT_AS_TITLE: "fun fooEnum(Int): Int"
// FIND_BY_REF
package usages
import library.*
fun test(e: EnumWithEnumEntries) {
e.fo<caret>oEnum(4)
EnumWithEnumEntries.AnEntry.fooEnum(4)
}
| 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 280 | intellij-community | Apache License 2.0 |
src/main/kotlin/io/github/ruskonert/ruskit/entity/inventory/AbstractInventoryBase.kt | Ruskonert | 140,462,127 | false | {"Markdown": 3, "Maven POM": 1, "Ignore List": 1, "YAML": 2, "Java": 1, "Kotlin": 67, "C": 2, "C++": 3} | package io.github.ruskonert.ruskit.entity.inventory
import org.bukkit.inventory.Inventory
interface AbstractInventoryBase
{
fun getInventoryBase() : Inventory?
fun getSlotComponents() : Map<Int, InventoryComponent?>
} | 0 | Kotlin | 0 | 0 | e68ce3997182e5ebaed10868ddefc4eaeee3a262 | 228 | Ruskit | MIT License |
src/main/java/com/github/youopensource/yougitlab/data/DeviceProperties.kt | You-OpenSource | 563,011,693 | true | {"Java Properties": 1, "Gradle": 2, "Shell": 1, "Markdown": 1, "Batchfile": 1, "Text": 1, "Ignore List": 1, "Java": 91, "XML": 10, "Kotlin": 24, "SVG": 3, "INI": 1} | package com.github.youopensource.yougitlab.data
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
import javax.annotation.Generated
@Generated("jsonschema2pojo")
class DeviceProperties(
@SerializedName("screen_width")
@Expose var screenWidth: Int?, @SerializedName("sc... | 1 | Java | 3 | 3 | 3574f1c2061fbfe63a7b053a1b53b500c595f4ee | 588 | YouGitLabProjects | Apache License 2.0 |
android-kotlin/idea-android/testData/android/intention/addServiceToManifest/nested.kt | JetBrains | 60,701,247 | false | null | // INTENTION_CLASS: org.jetbrains.kotlin.android.intention.AddServiceToManifest
// CHECK_MANIFEST
package com.myapp
import android.app.Service
import android.content.Intent
import android.os.IBinder
class Test {
class <caret>MyService : Service() {
override fun onBind(intent: Intent?): IBinder {
... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 365 | android | Apache License 2.0 |
spring-boot-integration-aws-sqs/src/main/kotlin/com/jahnelgroup/integration/message/TextMessageController.kt | JahnelGroup | 102,882,902 | false | null | package com.jahnelgroup.integration.message
import com.jahnelgroup.integration.message.gateway.SqsGateway
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.http.HttpStatus
import org.springframework.util.Assert
import org.springframework.web.bind.annotation.*
import java.util.co... | 1 | null | 28 | 49 | adbb90236e9273805febb23a255d678504d86055 | 1,050 | spring-boot-samples | MIT License |
compose/snippets/src/main/java/com/example/compose/snippets/lifecycle/LifecycleSnippets.kt | android | 138,043,025 | false | {"Kotlin": 1093210, "Java": 5240} | /*
* Copyright 2023 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 14 | Kotlin | 169 | 666 | 514653c318c747c557f70e32aad2cc7051d44115 | 3,472 | snippets | Apache License 2.0 |
sample-spring-boot-echo/src/main/java/com/example/bot/spring/echo/Config.kt | trapongx | 264,898,976 | false | {"Java": 981838, "Kotlin": 25201, "Shell": 451, "HTML": 158} | package com.example.bot.spring.echo
import org.springframework.beans.factory.annotation.Value
import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.stereotype.Component
@Component
@ConfigurationProperties(prefix = "ipst.google")
class Config {
lateinit var applicati... | 1 | null | 1 | 1 | c7e66df43236f9b3c76f1377d9790027a89c5688 | 461 | champ-line-poc | Apache License 2.0 |
creator/src/main/kotlin/com/bw/events/creator/CreatorApplication.kt | brian-watkins | 124,758,438 | false | {"Procfile": 1, "Text": 1, "Markdown": 1, "Gradle": 3, "Shell": 3, "Ignore List": 3, "Batchfile": 3, "Java Properties": 3, "YAML": 4, "Kotlin": 14, "Java": 1, "Groovy": 1} | package com.bw.events.creator
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.cloud.stream.annotation.EnableBinding
import org.springframework.cloud.stream.messaging.Source
@SpringBootApplication
@EnableBinding(Source::class... | 0 | Kotlin | 0 | 0 | 4332f69a43bd7c504a000c213fc16a9c8c18ffaa | 428 | event-exploration | MIT License |
app/src/main/java/com/a10miaomiao/bilimiao/activitys/DownloadActivity.kt | 10miaomiao | 115,510,569 | false | null | package com.a10miaomiao.bilimiao.activitys
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.support.design.widget.TabLayout
import com.a10miaomiao.bilimiao.R
import com.a10miaomiao.bilimiao.base.BaseActivity
import com.a10miaomiao.bilimiao.fragments.download.DownloadedF... | 1 | null | 1 | 20 | dfd78b56b5c41eb49454836ee2bce5cefc667db7 | 1,591 | bilimiao | Apache License 2.0 |
app/src/main/java/com/doctoror/particleswallpaper/framework/util/MultisamplingConfigSpecParser.kt | Doctoror | 93,632,093 | false | {"Gradle Kotlin DSL": 3, "Ignore List": 2, "Text": 1, "Markdown": 1, "TOML": 1, "Java Properties": 1, "Proguard": 3, "Kotlin": 230, "INI": 1, "XML": 34, "Java": 1} | /*
* Copyright (C) 2018 Yaroslav Mytkalyk
*
* 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... | 6 | Kotlin | 5 | 20 | 20245b87747fd2995e0468c033e4338d88f7aa10 | 1,335 | ParticleConstellationsLiveWallpaper | Apache License 2.0 |
sample/src/main/java/me/panpf/sketch/sample/item/AppListHeaderItemFactory.kt | panpf | 14,798,941 | false | null | package me.panpf.sketch.sample.item
import android.content.Context
import android.view.ViewGroup
import android.widget.TextView
import me.panpf.adapter.AssemblyItem
import me.panpf.adapter.AssemblyItemFactory
import me.panpf.adapter.ktx.bindView
import me.panpf.sketch.sample.R
class AppListHeaderItemFactory : Assembl... | 34 | null | 285 | 1,596 | ac1bd8ebf217152c169619d66651f4114ef17b53 | 956 | sketch | Apache License 2.0 |
kotlin/solutions/src/test/kotlin/org/artrev/workshop/fp/part1/practice2/Part5_6Test.kt | artificialrevelations | 156,459,372 | false | {"Java": 494228, "Kotlin": 331139} | @file:Suppress("ClassName")
package org.artrev.workshop.fp.part1.practice2
import org.artrev.teoria.numbers.ints.IntsAbove
import org.artrev.teoria.numbers.ints.IntsBelow
import org.junit.experimental.theories.Theories
import org.junit.experimental.theories.Theory
import org.junit.runner.RunWith
import org.junit.Ass... | 14 | Java | 5 | 10 | 4e858738293ba6c3b789fcab3273374fc547e42c | 711 | fp-workshop-jvm | Apache License 2.0 |
app/src/test/kotlin/fr/free/nrw/commons/category/CategoriesModelTest.kt | CloeARiva | 261,214,373 | true | {"Java": 1821804, "Kotlin": 257140, "Python": 10164, "PHP": 3156, "Shell": 1449, "HTML": 1036, "Makefile": 595} | package fr.free.nrw.commons.category
import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.whenever
import fr.free.nrw.commons.kvstore.JsonKvStore
import fr.free.nrw.commons.upload.GpsCategoryModel
import io.reactivex.Observable
import junit.framework.Assert.assertEquals
import org.junit.Before
im... | 0 | null | 0 | 0 | 6d687c3efb657621deebafa1a55e7a2edc043b37 | 2,928 | apps-android-commons | Apache License 2.0 |
dal/src/test/java/net/mieczkowski/dal/search/SearchServiceTest.kt | jmiecz | 353,113,252 | false | null | package net.mieczkowski.dal.search
import kotlinx.coroutines.runBlocking
import net.mieczkowski.dal.BaseTest
import net.mieczkowski.models.Movie
import net.mieczkowski.models.MovieResults
import org.junit.Rule
import org.junit.Test
import org.koin.test.KoinTestRule
import org.koin.test.inject
import org.koin.test.mock... | 0 | Kotlin | 0 | 0 | ee65119871699bddc0b2c571005693b7f4cc9179 | 1,997 | MovieHunger | MIT License |
testmodels/src/commonMain/kotlin/maryk/test/models/CompleteMarykModel.kt | marykdb | 290,454,412 | false | null | package maryk.generator.kotlin
import maryk.test.models.CompleteMarykModel
import maryk.test.models.MarykTypeEnum
import maryk.test.models.Option
import maryk.test.models.SimpleMarykModel
import maryk.test.models.SimpleMarykTypeEnum
import kotlin.test.Test
import kotlin.test.assertEquals
val generatedKotlinForSimpleD... | 5 | null | 1 | 8 | 4c58b04a0189e13e5621a505a5bb82ce5e655ae0 | 15,717 | maryk | Apache License 2.0 |
ontrack-extension-chart/src/main/java/net/nemerosa/ontrack/extension/chart/support/IntervalPeriod.kt | nemerosa | 19,351,480 | false | null | package net.nemerosa.ontrack.extension.chart.support
import net.nemerosa.ontrack.model.exceptions.InputException
import java.time.Duration
import java.time.LocalDateTime
import java.time.Period
import java.time.format.DateTimeFormatter
sealed interface IntervalPeriod {
fun addTo(start: LocalDateTime): LocalDateT... | 57 | null | 27 | 97 | 7c71a3047401e088ba0c6d43aa3a96422024857f | 1,858 | ontrack | MIT License |
app/src/main/java/com/muzafferus/technonews/util/Utility.kt | Muzafferus | 638,554,135 | false | null | package com.muzafferus.technonews.util
object Utility {
const val BASE_URL = "https://newsapi.org/"
const val API_KEY = "<KEY>"
const val UTC_FORMAT = "yyyy-MM-dd'T'HH:mm:ss'Z'"
const val COUNTRY = "us"
const val CATEGORY_TECHNOLOGY = "technology"
} | 0 | Kotlin | 0 | 0 | 8ab5e8223fad585050c20921677872e7366a6ee9 | 270 | TechnoNews | Apache License 2.0 |
app/src/main/java/dev/chulwoo/hp/test/feature/user/domain/usecase/FilterUsers.kt | chulwoo-park | 323,041,672 | false | null | package dev.chulwoo.hp.test.feature.user.domain.usecase
import dev.chulwoo.hp.test.feature.user.domain.model.User
import dev.chulwoo.hp.test.feature.user.domain.repository.UserRepository
data class FilterUsersParam(val keyword: String)
class FilterUsers(private val userRepository: UserRepository) {
suspend oper... | 0 | Kotlin | 0 | 0 | 5b2c04fff2800e5b1e98fcd54fefa4db8a881540 | 543 | hp-test | Apache License 2.0 |
app/src/main/java/org/ballistic/dreamjournalai/feature_dream/presentation/dream_list_screen/DreamJournalListScreen.kt | ErickSorto | 546,852,272 | false | {"Kotlin": 504809, "TypeScript": 12320, "JavaScript": 826, "Python": 404} | package org.ballistic.dreamjournalai.feature_dream.presentation.dream_list_screen
import android.os.Build
import androidx.annotation.RequiresApi
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.PaddingValues
import andro... | 0 | Kotlin | 0 | 2 | a99eb656b937a653ec58f2a4f4537349d7827a9f | 6,446 | Dream-Journal-AI | MIT License |
module/parser/src/commonMain/kotlin/org/cru/godtools/shared/tool/parser/model/Accordion.kt | CruGlobal | 310,338,913 | false | {"Kotlin": 455212, "ANTLR": 1330, "Ruby": 58} | package org.cru.godtools.shared.tool.parser.model
import kotlin.experimental.ExperimentalObjCRefinement
import kotlin.js.ExperimentalJsExport
import kotlin.js.JsExport
import kotlin.js.JsName
import kotlin.native.HiddenFromObjC
import org.ccci.gto.support.androidx.annotation.RestrictTo
import org.ccci.gto.support.andr... | 8 | Kotlin | 1 | 0 | ffd0e632be985c22e6b92156682040650b332d10 | 3,980 | kotlin-mpp-godtools-tool-parser | MIT License |
client-dapp/src/main/java/it/airgap/beaconsdk/client/dapp/storage/DAppClientStorage.kt | airgap-it | 303,679,512 | false | null | package it.airgap.beaconsdk.client.dapp.storage
import it.airgap.beaconsdk.core.internal.BeaconConfiguration
import it.airgap.beaconsdk.core.scope.BeaconScope
import it.airgap.beaconsdk.core.storage.Storage
import it.airgap.beaconsdk.client.dapp.internal.storage.decorator.DecoratedDAppClientStorage
import it.airgap.be... | 4 | Kotlin | 7 | 8 | cf129f2437a3c7498f2b6b5e401b0134e58fe3b0 | 680 | beacon-android-sdk | MIT License |
kotlin-csstype/src/main/generated/csstype/OverflowY.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:Suppress(
"NAME_CONTAINS_ILLEGAL_CHARS",
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
package csstype
// language=JavaScript
@JsName("""(/*union*/{clip: 'clip', hidden: 'hidden', scroll: 'scroll', visible: 'visible'}/*union*/)""")
sealed external interface Overflo... | 11 | Kotlin | 145 | 983 | 7ef1028ba3e0982dc93edcdfa6ee1edb334ddf35 | 475 | kotlin-wrappers | Apache License 2.0 |
app/src/main/java/com/example/multilivedata/ui/MainInjector.kt | mhdatie | 128,706,323 | false | {"Kotlin": 32588} | package com.example.multilivedata.ui
import com.example.multilivedata.ui.news.NewsComponent
import com.example.multilivedata.ui.weather.WeatherComponent
import javax.inject.Inject
@ActivityScope
class MainInjector @Inject constructor(private val component: MainComponent) {
private var weatherComponent: WeatherCom... | 0 | Kotlin | 0 | 0 | 15b2cdee8da8226723ec2f5076ef0ce13e625ee1 | 745 | WeatherNewsMvvm | MIT License |
src/main/kotlin/com/devmpv/exceptions/CRException.kt | devmpv | 74,987,245 | false | null | package com.devmpv.exceptions
/**
* Chan-reactor exception
*
* @author devmpv
*/
class CRException : RuntimeException {
constructor(message: String) : super(message) {}
constructor(message: String, cause: Throwable) : super(message, cause) {}
companion object {
private val serialVersionUID ... | 0 | Kotlin | 0 | 2 | 51215cf787f1fdf107f2a72892550220b295e3b5 | 352 | chan-reactor | MIT License |
src/main/kotlin/com/leetcode/P35.kt | antop-dev | 229,558,170 | false | {"Kotlin": 747271, "Java": 222712, "Python": 12763} | package com.leetcode
// https://leetcode.com/problems/search-insert-position/
class P35 {
fun searchInsert(nums: IntArray, target: Int) = search(nums, 0, nums.lastIndex, target)
private fun search(nums: IntArray, s: Int, e: Int, target: Int): Int {
if (s < e) {
val m = (s + e) / 2
... | 1 | Kotlin | 0 | 0 | a9dd7cfa4f6cfc5186a86f6e2c8aefc489f5c028 | 647 | algorithm | MIT License |
compose-designer/testSrc/com/android/tools/idea/compose/preview/TestUtils.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | null | 187 | 751 | 16d17317f2c44ec46e8cd2180faf9c349d381a06 | 1,162 | android | Apache License 2.0 |
biz/src/commonMain/kotlin/validation/FinishValidation.kt | crowdproj | 518,714,370 | false | null | package com.crowdproj.rating.biz.validation
import com.crowdproj.kotlin.cor.ICorAddExecDsl
import com.crowdproj.kotlin.cor.handlers.worker
import com.crowdproj.rating.common.CwpRatingContext
import com.crowdproj.rating.common.model.CwpRatingState
fun ICorAddExecDsl<CwpRatingContext>.finishRatingValidation(title: Stri... | 0 | Kotlin | 2 | 0 | 680c52b3be9161b699c635fc032a0289ce71a239 | 699 | crowdproj-ratings | Apache License 2.0 |
app/src/main/java/com/dongyang/android/youdongknowme/data/remote/service/CafeteriaService.kt | TeamDMU | 470,044,500 | false | {"Kotlin": 144115} | package com.dongyang.android.youdongknowme.data.remote.service
import com.dongyang.android.youdongknowme.data.remote.entity.Cafeteria
import retrofit2.http.GET
interface CafeteriaService {
@GET("/menu")
suspend fun getMenuList() : List<Cafeteria>
} | 11 | Kotlin | 0 | 7 | 014b37ad4e6996493747fd6d3db4b85da8982124 | 258 | DMU-Android | Apache License 2.0 |
src/main/kotlin/net/easecation/bedrockloader/loader/BedrockAddonLoader.kt | EaseCation | 750,355,978 | false | {"Kotlin": 57689, "Java": 980} | package net.easecation.bedrockloader.loader
import net.easecation.bedrockloader.BedrockLoader
import net.easecation.bedrockloader.bedrock.data.TextureImage
import net.easecation.bedrockloader.bedrock.definition.BlockBehaviourDefinition
import net.easecation.bedrockloader.bedrock.pack.BedrockPack
import net.easecation.... | 0 | Kotlin | 0 | 1 | 2d2406f6a91b8d586995477c64866844fe22987d | 7,540 | FabricRock | Creative Commons Zero v1.0 Universal |
verik-compiler/src/main/kotlin/io/verik/compiler/check/mid/PortCheckerStage.kt | frwang96 | 269,980,078 | false | null | /*
* Copyright (c) 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 1 | 7 | a40d6195f3b57bebac813b3e5be59d17183433c7 | 3,096 | verik | Apache License 2.0 |
auth-foundation/src/main/java/com/okta/authfoundation/credential/TokenStorage.kt | okta | 445,628,677 | false | {"Kotlin": 737721, "Shell": 884} | /*
* Copyright 2021-Present Okta, 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 agr... | 14 | Kotlin | 11 | 26 | e3261c5826ad907d173bdadb34db36111fad4c77 | 3,013 | okta-mobile-kotlin | Apache License 2.0 |
src/test/kotlin/com/vanniktech/rxriddles/solutions/Riddle14Solution.kt | yudong80 | 160,755,825 | false | null | package com.vanniktech.rxriddles.solutions
import io.reactivex.Single
object Riddle14Solution {
fun solve(source: Single<Unit>)
= source.retry(2) { it !is IllegalArgumentException }
}
| 1 | null | 1 | 1 | 606f9fe4c2ef6b08c6ed4508cf6301e17479fb79 | 194 | RxRiddles | Apache License 2.0 |
app/src/main/java/com/dev_vlad/wikisearch/rv_holders/ListItemHolder.kt | vlad-ed-git | 210,514,224 | false | null | package com.dev_vlad.wikisearch.rv_holders
import android.content.Intent
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.dev_vlad.wikisearch.ArticleDetailsActivity
import com.dev_vlad.wikisearch.R
import com.dev_vlad.wi... | 0 | Kotlin | 0 | 0 | bbc71d20825d367687e264ff2e0ce6c05e5266ec | 1,266 | Wiki-Search | MIT License |
app/src/main/java/com/project/expandablenavigationdrawer/navigation/Item.kt | pramodkumarp6 | 710,015,390 | false | {"Kotlin": 17673, "Java": 1180} | package com.project.expandablenavigationdrawer.navigation
class Item : BaseItem {
constructor(mName: String?, icon: Int) : super(mName!!, icon)
constructor(name: String?) : super(name!!)
} | 0 | Kotlin | 0 | 0 | 9c9837dbd50602ebe3bf126bfe08e20c35bdc690 | 197 | ExpandableNavigationDrawer | MIT License |
src/rider/main/kotlin/com/github/rafaelldi/diagnosticsclientplugin/actions/CollectMemoryDumpAction.kt | rafaelldi | 487,741,199 | false | null | package com.github.rafaelldi.diagnosticsclientplugin.actions
import com.github.rafaelldi.diagnosticsclientplugin.dialogs.MemoryDumpDialog
import com.github.rafaelldi.diagnosticsclientplugin.services.MemoryDumpController
import com.github.rafaelldi.diagnosticsclientplugin.services.MemoryDumpSettings
import com.github.r... | 2 | Kotlin | 0 | 4 | 11e782d3ea926f52e9fce2983d9c63e0be07b570 | 2,258 | diagnostics-client-plugin | MIT License |
browser-kotlin/src/jsMain/kotlin/web/idb/IDBTransactionDurability.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6619312} | // Automatically generated - do not modify!
@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
package web.idb
import seskar.js.JsValue
import seskar.js.JsVirtual
@JsVirtual
sealed external interface IDBTransactionDurability {
companion object {
@JsValue("default")
val default: IDBTrans... | 0 | Kotlin | 6 | 28 | 2e94b60c9e3838c464ab9da211ca44de54e74133 | 493 | types-kotlin | Apache License 2.0 |
src/main/kotlin/de/eternalwings/vima/repository/MetadataRepository.kt | kumpelblase2 | 269,905,877 | false | {"Gradle Kotlin DSL": 2, "Markdown": 3, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "INI": 4, "Kotlin": 105, "JavaScript": 33, "JSON": 2, "HTML": 1, "EditorConfig": 1, "Vue": 41, "SCSS": 1, "CSS": 1, "Java": 1, "SQL": 8, "YAML": 1, "desktop": 1} | package de.eternalwings.vima.repository
import de.eternalwings.vima.domain.Metadata
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.jpa.repository.Modifying
import org.springframework.data.jpa.repository.Query
import org.springframework.stereotype.Repository
@Repository
in... | 0 | Kotlin | 0 | 0 | 168a342f93648054624415b5114ffb28edd93672 | 773 | vimax | MIT License |
transport/src/main/kotlin/br/com/guiabolso/hyperloop/transport/MessageResult.kt | jairogb | 143,912,626 | true | {"Kotlin": 39059, "Shell": 200} | package br.com.guiabolso.hyperloop.transport
data class MessageResult(
val messageId: String,
val messageMD5: String
) | 0 | Kotlin | 5 | 0 | b6a78e59e53121f74ba9824c9423759189c6d0a5 | 135 | hyperloop | Apache License 2.0 |
VideoPlayerIntegration/src/main/kotlin/com/genius/live/VideoPlayerIntegration/VideoPlayerIntegrationApplication.kt | geniussportsgroup | 430,723,711 | false | {"Swift": 27169, "Kotlin": 22138, "HTML": 10225, "JavaScript": 6415, "CSS": 380} | package com.genius.live.VideoPlayerIntegration
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
@SpringBootApplication
class VideoPlayerIntegrationApplication
fun main(args: Array<String>) {
runApplication<VideoPlayerIntegrationApplication>(*args)
}
| 0 | Swift | 0 | 0 | 5de6e159e199aeb7f188495e037ca1cbd039d1a6 | 320 | geniuslive-examples | MIT License |
lib/src/test/kotlin/com/lemonappdev/konsist/api/ext/list/KoTypeAliasProviderListExtTest.kt | LemonAppDev | 621,181,534 | false | null | package com.lemonappdev.konsist.api.ext.list
import com.lemonappdev.konsist.api.declaration.KoTypeAliasDeclaration
import com.lemonappdev.konsist.api.provider.KoTypeAliasProvider
import io.mockk.every
import io.mockk.mockk
import org.amshove.kluent.shouldBeEqualTo
import org.junit.jupiter.api.Test
class KoTypeAliasPr... | 6 | null | 27 | 995 | 603d19e179f59445c5f4707c1528a438e4595136 | 17,485 | konsist | Apache License 2.0 |
projects/assessment-summary-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/RiskService.kt | ministryofjustice | 500,855,647 | false | {"Kotlin": 4133825, "HTML": 70066, "D2": 40497, "Ruby": 25921, "Shell": 15549, "SCSS": 6370, "HCL": 2712, "Dockerfile": 2414, "JavaScript": 1372, "Python": 268} | package uk.gov.justice.digital.hmpps.service
import org.springframework.stereotype.Service
import uk.gov.justice.digital.hmpps.datetime.DeliusDateFormatter
import uk.gov.justice.digital.hmpps.integrations.delius.contact.entity.Contact
import uk.gov.justice.digital.hmpps.integrations.delius.contact.entity.ContactType
i... | 5 | Kotlin | 0 | 2 | f7042c113b7cfd4d439c6c77231a1a28f93e9485 | 5,681 | hmpps-probation-integration-services | MIT License |
csw-params/src/test/kotlin/csw/params/keys/SimpleKeysTest.kt | kgillies | 554,485,604 | false | {"Kotlin": 332901, "Java": 2668} | package csw.params.keys
import arrow.core.None
import csw.params.commands.CommandName
import csw.params.core.models.Prefix
import csw.params.commands.Setup
import io.kotest.assertions.throwables.shouldThrow
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.shouldBe
import kotlinx.serialization.encodeT... | 0 | Kotlin | 0 | 0 | 84aadf8d6d73e27770b292f00b69a36fdf8e097f | 11,417 | kotlin-csw | Apache License 2.0 |
csw-params/src/test/kotlin/csw/params/keys/SimpleKeysTest.kt | kgillies | 554,485,604 | false | {"Kotlin": 332901, "Java": 2668} | package csw.params.keys
import arrow.core.None
import csw.params.commands.CommandName
import csw.params.core.models.Prefix
import csw.params.commands.Setup
import io.kotest.assertions.throwables.shouldThrow
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.shouldBe
import kotlinx.serialization.encodeT... | 0 | Kotlin | 0 | 0 | 84aadf8d6d73e27770b292f00b69a36fdf8e097f | 11,417 | kotlin-csw | Apache License 2.0 |
kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/channels/Actor.kt | pljp | 88,139,141 | true | null | /*
* Copyright 2016-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 5 | Kotlin | 5 | 39 | 52e15006d31e779aaeadba053dcda1afd0198240 | 5,295 | kotlinx.coroutines | Apache License 2.0 |
lego/lego_router/src/main/java/com/lego/route/Result.kt | ruichard | 775,792,965 | false | {"Kotlin": 369040, "Java": 13237} | package com.lego.route
/**
* The Result of lego router.
* Provide the mapping of original data type.
*
* @since 1.0
*/
data class Result(
val value: Any?
)
| 0 | Kotlin | 0 | 1 | 63771a1c5c604a13964976ef81787e8fd3b41c51 | 167 | Lego | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/neptune/_neptune.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package cloudshift.awscdk.dsl.services.neptune
import kotlin.String
import kotlin.Unit
import softwar... | 4 | null | 0 | 3 | 256ad92aebe2bcf9a4160089a02c76809dbbedba | 22,928 | awscdk-dsl-kotlin | Apache License 2.0 |
src/main/kotlin/me/fru1t/sqlite/clause/DataType.kt | fru1tstand | 119,220,228 | false | null | package me.fru1t.sqlite.clause
import me.fru1t.sqlite.Clause
/** The type of data to be stored in a column. See enum values for specifics. */
enum class DataType(private val value: String): Clause {
/** A signed integer (eg. 1, 2, 3, 4) stored in 1, 2, 3, 4, 6, or 8 bytes. */
INTEGER("INTEGER"),
/** A text str... | 9 | Kotlin | 0 | 0 | a8d8496d296fc2de0cc3e064725d51556169179b | 745 | fm-sqlite-kotlin | MIT License |
app/src/main/java/com/example/pogoda/data/repository/WeatherRepositoryImpl.kt | christian-jayme | 716,585,228 | false | {"Kotlin": 38213} | package com.cjayme.weatherapplication.data.repository
import com.cjayme.weatherapplication.data.mappers.toWeatherInfo
import com.cjayme.weatherapplication.data.remote.WeatherApi
import com.cjayme.weatherapplication.domain.repository.WeatherRepository
import com.cjayme.weatherapplication.domain.util.Resource
import com... | 0 | Kotlin | 0 | 0 | ba7bbca71eacea293feb5bcb51302a6187970abf | 955 | weather-application | MIT License |
azure-communication-ui/azure-communication-ui/src/calling/java/com/azure/android/communication/ui/calling/presentation/fragment/factories/SetupViewModelFactory.kt | inderpalaulakh | 475,076,421 | true | {"Kotlin": 1024802, "Java": 43227, "Shell": 3599} | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.android.communication.ui.calling.presentation.fragment.factories
import com.azure.android.communication.ui.calling.presentation.fragment.common.audiodevicelist.AudioDeviceListViewModel
import com.azure.an... | 1 | Kotlin | 0 | 0 | 6b14afb228637e28152bd9958aa9bc137e1c8caa | 2,659 | communication-ui-library-android | MIT License |
glplayer/src/main/java/top/gochiusa/glplayer/mediacodec/MediaCodecRenderer.kt | usagisang | 509,750,952 | false | {"Kotlin": 107792, "GLSL": 600} | package top.gochiusa.glplayer.mediacodec
import android.media.MediaCodec
import android.os.SystemClock
import top.gochiusa.glplayer.base.BaseRenderer
import top.gochiusa.glplayer.base.MediaClock
import top.gochiusa.glplayer.base.Sample
import top.gochiusa.glplayer.base.Sender
import top.gochiusa.glplayer.entity.Format... | 1 | Kotlin | 0 | 3 | 269cb9305a78b819dfcf91e8b96ed7f201a7d9d9 | 6,917 | GLPlayer | MIT License |
app/src/main/java/com/example/socialapplication/MainActivity.kt | fjy-kyle | 637,389,914 | false | null | package com.example.socialapplication
import android.os.Bundle
import android.util.Log
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.navigation.NavType
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navig... | 0 | Kotlin | 0 | 0 | a41c0a7f1906a729c2a71ec7c4306dd2e6598996 | 3,254 | Graduation-Design-App | Apache License 2.0 |
app/src/main/java/org/lotka/xenonx/di/RepositoryModule.kt | armanqanih | 831,384,890 | false | {"Kotlin": 182678} | package org.lotka.xenonx.di
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import org.lotka.xenonx.data.remote.CoinRepositoryImpl
import org.lotka.xenonx.domain.repository.CoinRepository
import javax.inject.Singleton
/**
* @author Android Devs ... | 0 | Kotlin | 0 | 0 | 8f87507882db7b71ce17c13fdf93ce08ec60a98a | 559 | MyGradleLastVersion | Apache License 2.0 |
app/src/test/java/com/example/whatisup/viewmodel/DayActivityViewmodelTest.kt | knatola | 173,893,801 | false | null | package com.example.whatisup.viewmodel
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import android.util.Log
import android.util.TimeUtils
import com.example.whatisup.BuildConfig
import com.example.whatisup.src.data.model.DayActivity
import com.example.whatisup.src.data.repository.MockDayActivityR... | 0 | Kotlin | 0 | 0 | 3e13e4f651cce7c6e41e8c9a8cd6c2303c5f944c | 1,280 | mobile_computing_2019 | MIT License |
sample/src/main/java/com/gk/emon/app/watermark/ShowWatermarkActivity.kt | Gkemon | 226,614,907 | false | null | package com.gk.emon.app.watermark
import android.os.Bundle
import android.util.Log
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import com.gk.emon.app.watermark.AppWaterMarkBuilder.showWatermark
class ShowWatermarkActivity : AppCompatActivity() {
override fun onCreate(savedInstanceStat... | 1 | Kotlin | 2 | 17 | 59023716c85a98f55cd9d5d8830dc32e4f89d65a | 1,051 | App-Watermark | Apache License 2.0 |
FruitSeller/src/main/kotlin/furhatos/app/fruitseller/flow/fruitseller.kt | smrmmousavi | 171,479,989 | true | {"Kotlin": 47267, "JavaScript": 5565, "HTML": 1841, "CSS": 1230} | package furhatos.app.fruitseller.flow
import furhatos.app.fruitseller.nlu.*
import furhatos.app.fruitseller.order
import furhatos.flow.kotlin.*
import furhatos.nlu.common.*
import furhatos.util.Language
val Start = state(Interaction) {
onEntry {
random(
{ furhat.say("Hi there") },
... | 0 | Kotlin | 0 | 0 | 0cd8224714e018c0bc7276168f8d7439cda382aa | 1,735 | example-skills | MIT License |
app/src/main/java/com/webaddicted/techcleanarch/view/base/BaseActivity.kt | webaddicted | 235,233,133 | false | null | package com.webaddicted.techcleanarch.view.base
import android.content.Intent
import android.graphics.Color
import android.os.Build
import android.os.Bundle
import android.util.Log
import android.view.View
import android.view.WindowManager
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.Dat... | 1 | Kotlin | 1 | 8 | 98f56ee3de5cf29a117be50302deef70621f605d | 7,978 | CleanArchitecture | Apache License 2.0 |
yandex-mapkit-kmp-compose/src/commonMain/kotlin/ru/sulgik/mapkit/compose/YandexMapComposable.kt | SuLG-ik | 813,953,018 | false | {"Kotlin": 315794} | package ru.sulgik.mapkit.compose
import androidx.compose.runtime.ComposableTargetMarker
@Retention(AnnotationRetention.BINARY)
@ComposableTargetMarker(description = "Yandex Map Composable")
@Target(
AnnotationTarget.FILE,
AnnotationTarget.FUNCTION,
AnnotationTarget.PROPERTY_GETTER,
AnnotationTarget.TY... | 0 | Kotlin | 1 | 14 | 1a676e07f91b19ff21362be6500f9bb42757ffb2 | 406 | yandex-mapkit-kmp | Apache License 2.0 |
idea/testData/completion/basic/common/namedParameters/AfterComma.kt | chashnikov | 14,658,474 | false | {"Markdown": 19, "XML": 483, "Ant Build System": 23, "Ignore List": 8, "Protocol Buffer": 2, "Java": 4001, "Kotlin": 12341, "Text": 1204, "Roff": 68, "Roff Manpage": 10, "JAR Manifest": 1, "INI": 6, "HTML": 102, "Groovy": 7, "Gradle": 61, "Maven POM": 36, "Java Properties": 10, "CSS": 10, "JavaScript": 48, "JFlex": 3, ... | fun small(first: Int, second: Int) {
}
fun test() = small(12, <caret>)
// ABSENT: "first ="
// EXIST: "second =" | 1 | null | 1 | 1 | 88a261234860ff0014e3c2dd8e64072c685d442d | 114 | kotlin | Apache License 2.0 |
lib/DevOther/src/main/java/ktx/dev/engine/media/LocalMediaData.kt | zhufeixiang | 377,667,024 | true | {"Java": 6081776, "Kotlin": 1264704} | package ktx.dev.engine.media
import com.luck.picture.lib.config.PictureMimeType
import com.luck.picture.lib.entity.LocalMedia
import dev.engine.media.IMediaEngine
/**
* detail: Local Media Selector Data
* @author Ttt
*/
class LocalMediaData : IMediaEngine.MediaData {
var localMedia: LocalMedia? = null
co... | 0 | null | 0 | 0 | 47077bfdf59a38cd662a50280da1575c3614efd5 | 1,099 | DevUtils | Apache License 2.0 |
app/src/main/java/shvyn22/flexinglyrics/ui/history/HistoryViewModel.kt | shvyn22 | 348,453,435 | false | {"Kotlin": 129941} | package shvyn22.flexinglyrics.ui.history
import androidx.lifecycle.ViewModel
import androidx.lifecycle.liveData
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.flow.re... | 0 | Kotlin | 0 | 2 | fc264ac9d38f3d39ab7a74321ba33ad598e31c9a | 2,281 | FlexingLyrics | MIT License |
coroutinebinding-material/src/androidTest/java/com/github/satoshun/coroutinebinding/material/bottomnavigation/CoroutineBottomNavigationViewTest.kt | satoshun | 130,614,016 | false | null | package com.github.satoshun.coroutinebinding.material.bottomnavigation
import android.view.ContextThemeWrapper
import androidx.test.annotation.UiThreadTest
import com.github.satoshun.coroutinebinding.AndroidTest
import com.github.satoshun.coroutinebinding.isNull
import com.github.satoshun.coroutinebinding.isSame
impor... | 1 | Kotlin | 0 | 51 | 6f88a6731f8e70af8eeeffcb8de3806c7b4d1a28 | 2,459 | CoroutineBinding | Apache License 2.0 |
app/src/main/kotlin/ir/thatsmejavad/backgroundable/common/ui/AnimatedComposable.kt | javadjafari1 | 642,709,238 | false | {"Kotlin": 431381} | package ir.thatsmejavad.backgroundable.common.ui
import androidx.compose.animation.AnimatedContentTransitionScope
import androidx.compose.animation.AnimatedVisibilityScope
import androidx.compose.animation.EnterTransition
import androidx.compose.animation.ExitTransition
import androidx.compose.animation.core.FastOutSl... | 2 | Kotlin | 2 | 30 | 23d62ddbd08b8996319699e505e11a180fcba62e | 2,362 | Backgroundable | Apache License 2.0 |
app/src/main/java/com/roomedia/babbab/ui/main/MainActivity.kt | roomedia | 403,978,599 | false | {"Kotlin": 14618} | package com.roomedia.babbab.ui.main
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.net.Uri
import android.os.Bundle
import android.util.Base64
import androidx.activity.result.contract.ActivityResultContracts
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.Ap... | 5 | Kotlin | 0 | 0 | bae88f978c0414323c5c146c760820d79b043645 | 4,817 | babbab | MIT License |
festival-kotlin-web/src/main/kotlin/cn/bdqfork/kotlin/web/route/message/resolver/ParameterResolverFactory.kt | bdqfork | 170,458,565 | false | null | package cn.bdqfork.kotlin.web.route.message.resolver
import java.util.*
/**
* @author bdq
* @since 2020/2/13
*/
class ParameterResolverFactory {
private val parameterResolvers: MutableList<AbstractParameterResolver> = ArrayList()
private fun registerResolver(parameterResolver: AbstractParameterResolver) {
... | 0 | null | 19 | 46 | 093db2ce271b2f2bc061e1ddaa873a27c9d34e5d | 1,107 | festival | Apache License 2.0 |
feature/authorization/screen/src/main/java/me/s097t0r1/ktcast/feature/authorization/screens/sign_in/SignInUIState.kt | s097t0r1 | 532,375,742 | false | {"Kotlin": 254344, "FreeMarker": 2844, "Fluent": 172} | package me.s097t0r1.ktcast.feature.authorization.screens.sign_in
import me.s097t0r1.core.mvi.base.state.BaseState
data class SignInUIState(
val isSignInEnabled: Boolean = false,
val isRemeberChecked: Boolean = false,
val emailField: EmailFieldState = EmailFieldState(),
val passwordField: PasswordField... | 1 | Kotlin | 1 | 8 | b77ad8bc65268eb4f5fe280bc6e2e9d02d4a7499 | 653 | ktcast | MIT License |
libraries/tools/kdoc/src/main/kotlin/org/jetbrains/kotlin/doc/templates/IndexTemplate.kt | chirino | 3,596,099 | false | null | package org.jetbrains.kotlin.doc.templates
import kotlin.*
import org.jetbrains.kotlin.template.*
import kotlin.io.*
import kotlin.util.*
import java.util.*
import org.jetbrains.kotlin.doc.model.KModel
class IndexTemplate(val model: KModel) : KDocTemplate() {
override fun render() {
print("""<!DOCTYPE HTML PUBL... | 0 | null | 28 | 71 | ac434d48525a0e5b57c66b9f61b388ccf3d898b5 | 1,775 | kotlin | Apache License 2.0 |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/deadline/CfnMeteredProduct.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 149148378} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.deadline
import io.cloudshiftdev.awscdk.CfnResource
import io.cloudshiftdev.awscdk.IInspectable
impor... | 0 | Kotlin | 0 | 4 | ddf2bfd2275b50bb86a667c4298dd92f59d7e342 | 6,366 | kotlin-cdk-wrapper | Apache License 2.0 |
app/src/main/java/com/taptrack/experiments/rancheria/wristcoinpos/commands/DebitWristbandShortRespCommand.kt | TapTrack | 109,749,769 | false | null | package com.taptrack.experiments.rancheria.wristcoinpos.commands
import com.taptrack.tcmptappy2.MalformedPayloadException
internal class DebitWristbandShortRespCommand : AbstractDebitWristbandCommand {
companion object {
const val COMMAND_CODE: Byte = 0x03
}
constructor() : super()
@Throws(... | 2 | null | 2 | 4 | 6a39211ec6b2ac549eed7e4d43595a330f0fb7cb | 634 | TCMPTappy-Android | Apache License 2.0 |
src/tecrys/svc/world/SectorGen.kt | DesperatePeter | 646,942,220 | false | null | package tecrys.svc.world
import com.fs.starfarer.api.campaign.RepLevel
import com.fs.starfarer.api.campaign.SectorAPI
import com.fs.starfarer.api.campaign.SectorGeneratorPlugin
import org.magiclib.util.MagicSettings
import tecrys.svc.MAGIC_SETTINGS_MOD_KEY
import tecrys.svc.MAGIC_SETTINGS_RELATIONS_KEY
import tecrys.s... | 2 | Kotlin | 0 | 2 | 6eab6980c25edd1992f40ecaa569e91a5a57d9a2 | 1,011 | starsector-symbiotic-void-creatures | MIT License |
modules/tak/compose/icons/src/main/kotlin/dev/jonpoulton/alakazam/tak/compose/icons/dropdown/RAndBDynamicLine.kt | jonapoul | 375,762,483 | false | {"Kotlin": 2898393, "Shell": 670} | package dev.jonpoulton.alakazam.tak.compose.icons.dropdown
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.StrokeJ... | 0 | Kotlin | 0 | 0 | 7769263ac0c6f0976facff732cf533dfd7ec44a3 | 4,411 | alakazam | Apache License 2.0 |
compiler/testData/diagnostics/tests/regressions/Jet17.kt | JakeWharton | 99,388,807 | true | null | // JET-17 Do not infer property types by the initializer before the containing scope is ready
class WithC() {
val a = 1
val b = a
}
| 181 | Kotlin | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 137 | kotlin | Apache License 2.0 |
ksiren/src/main/java/com/brightspace/ksiren/KSirenEntityFetchClient.kt | DataGraham | 207,395,860 | true | {"Kotlin": 59324} | package com.brightspace.ksiren
/**
* Created by mpomeroy on 11/2/17.
*/
abstract class KSirenEntityFetchClient {
abstract fun executeCall(href:String): KSirenJsonReader
}
| 0 | Kotlin | 0 | 0 | 80c59d18d66e3d8c76a33b196ce304b628cadc8d | 175 | ksiren | Apache License 2.0 |
app/src/main/java/com/lordinatec/minesweepercompose/gameplay/views/FieldView.kt | joven-health-mike | 839,055,407 | false | {"Kotlin": 98801} | /*
* Copyright Lordinatec LLC 2024
*/
package com.lordinatec.minesweepercompose.gameplay.views
import android.content.res.Configuration
import androidx.compose.foundation.layout.Box
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.collectAsSta... | 10 | Kotlin | 0 | 1 | 932fc682bccbe7d48a43f2b3409faac87f9912ab | 2,385 | MinesweeperCompose | MIT License |
src/main/kotlin/com/skillw/rpgmaker/module/world/SimpleWorld.kt | q210520993 | 802,703,847 | false | {"Kotlin": 205053, "Java": 73654} | package com.skillw.rpgmaker.module.world
import com.skillw.rpgmaker.core.map.component.Registrable
import com.skillw.rpgmaker.module.world.manager.WorldManagerImpl
import net.minestom.server.instance.Instance
class SimpleWorld(override val instance: Instance, val worldInfo: WorldInfo): RPGWorld,
Registrable<Strin... | 0 | Kotlin | 0 | 3 | 0d625f1dd98222442309ff668f145444f3a8a80e | 645 | RPGMaker | MIT License |
src/test/kotlin/homework4/AvlTreeTest.kt | samorojy | 340,891,499 | false | null | package homework4
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test
internal class AvlTreeTest {
private val tree = AvlTree<Int, String>()
@Test
fun addValue() {
tree.addValue(1, "Kotlin")
tree.addValue(2, "C#")
assertEquals(setOf(Pair(1, "Kotlin"), Pair(... | 1 | Kotlin | 0 | 0 | 86f12486bb17a5873d8140d457d470801746a1d6 | 1,591 | spbu_kotlin_course | Apache License 2.0 |
app/src/main/java/com/example/dogglers/adapter/DogCardAdapter.kt | legenduzo | 418,277,151 | false | {"Kotlin": 29160} | /*
* Copyright (C) 2021 The Android Open Source Project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 0 | Kotlin | 0 | 0 | c705c6fa4a69ae361372c43930e095ee28067321 | 3,368 | Dogglers | Apache License 2.0 |
shared/src/test/java/com/google/samples/apps/iosched/shared/domain/sessions/LoadPinnedSessionsJsonUseCaseTest.kt | google | 18,347,476 | false | null | /*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 77 | null | 6259 | 21,755 | 738e1e008096fad5f36612325275e80c33dbe436 | 3,587 | iosched | Apache License 2.0 |
app/src/main/java/com/kartikcd/mediumx/ui/feed/LocalFeedFragment.kt | KartikCD | 377,774,842 | false | null | package com.kartikcd.mediumx.ui.feed
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.ItemTouchHelp... | 0 | Kotlin | 0 | 0 | 6750ab701537c50cb8db8a0f233d0e85a43b3b8e | 3,500 | MediumX | MIT License |
app/src/main/java/softspark/com/inventorypilot/home/presentation/ui/sales/saleDetail/SaleDetailFragment.kt | Landony04 | 836,511,304 | false | {"Kotlin": 293638} | package softspark.com.inventorypilot.home.presentation.ui.sales.saleDetail
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.ContextCompat
import androidx.core.view.MenuHost
imp... | 1 | Kotlin | 0 | 0 | 6a19be8140dc305a2b9062dc92d2f450dc1c0cbf | 4,765 | inventory-pilot | MIT License |
core/domain/src/main/java/com/githukudenis/comlib/core/domain/usecases/GetGenresUseCase.kt | DenisGithuku | 707,847,935 | false | {"Kotlin": 289725} | package com.githukudenis.comlib.core.domain.usecases
import com.githukudenis.comlib.core.model.DataResult
import com.githukudenis.comlib.core.model.genre.Genre
import com.githukudenis.comlib.data.repository.BooksRepository
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import java.util.concurr... | 3 | Kotlin | 0 | 0 | 634d4b435c9869c1bae9a62d8265d4d03679235a | 908 | comlib-android-client | Apache License 2.0 |
bilimiao-comm/src/main/java/com/a10miaomiao/bilimiao/comm/entity/search/SearchArchiveInfo.kt | 10miaomiao | 142,169,120 | false | null | package com.a10miaomiao.bilimiao.comm.entity.search
data class SearchArchiveInfo (
var archive: List<SearchVideoInfo>,
) | 44 | null | 38 | 977 | 1d59b82ba30b4c2e83c781479d09c48c3a82cd47 | 125 | bilimiao2 | Apache License 2.0 |
app/src/main/java/com/friendly_machines/frbpdoctor/online/weather/WeatherResponse.kt | daym | 744,679,396 | false | {"Kotlin": 453101} | package com.friendly_machines.frbpdoctor.online.weather
data class WeatherResponse(
val latitude: Double,
val longitude: Double,
val generationtime_ms: Double,
val utc_offset_seconds: Int,
val timezone: String,
val timezone_abbreviation: String,
val elevation: Double,
val current_units:... | 0 | Kotlin | 1 | 1 | d2bc5a833d755bef3bb8886c54fd09b539fb14c9 | 461 | frbpdoctor | BSD 2-Clause FreeBSD License |
app/src/main/java/exirium/pe/authflowapp/core/data/ApiUtils.kt | gianpaul | 811,396,647 | false | {"Kotlin": 66641} | package exirium.pe.authflowapp.core.data
import retrofit2.Response
/**
* `ApiUtils` is a utility object that provides a function for making safe API calls.
* It includes error handling and response transformation.
*/
object ApiUtils {
suspend fun <T, R> safeApiCall(
call: suspend () -> Response<T>,
... | 0 | Kotlin | 0 | 1 | c225f7a8d17a19e2b90a1170eccf3c4244a73ff0 | 584 | TechnicalChallengeAuthentication | MIT License |
src/main/kotlin/com/kishor/kotlin/algo/problems/arrayandstrings/Duplicate.kt | kishorsutar | 276,212,164 | false | null | package com.kishor.kotlin.algo.problems.arrayandstrings
fun main() {
println(numKLenSubstrNoRepeats("kishork", 2))
}
fun numKLenSubstrNoRepeats(S: String, K: Int): Int {
val n = S.length
if (n < K) return 0
var count = 0
for (i in 0 until n - K) {
val substring = S.substring(i, i+K)
... | 0 | Kotlin | 0 | 0 | 6672d7738b035202ece6f148fde05867f6d4d94c | 719 | DS_Algo_Kotlin | MIT License |
src/main/kotlin/ink/ptms/adyeshach/common/script/action/player/ActionPlaceholder.kt | l89669 | 318,693,239 | true | {"Gradle": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Java Properties": 1, "Java": 4, "YAML": 5, "JSON": 1, "Kotlin": 277} | package ink.ptms.adyeshach.common.script.action.player
import ink.ptms.adyeshach.common.script.ScriptContext
import io.izzel.kether.common.api.*
import io.izzel.taboolib.module.locale.TLocale
import java.util.concurrent.CompletableFuture
import java.util.function.Function
/**
* @author IzzelAliz
*/
class ActionPlac... | 0 | Kotlin | 0 | 0 | 43b752c5860a5dbc18481b70e615ecf77cb013a6 | 1,610 | Adyeshach | MIT License |
app/src/main/kotlin/batect/model/events/TemporaryFileDeletionFailedEvent.kt | HYDPublic | 119,497,078 | true | {"Kotlin": 988909, "Python": 3315, "Shell": 2655, "HTML": 400, "Java": 256} | /*
Copyright 2017-2018 <NAME>.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | 0 | Kotlin | 0 | 0 | bebfc745e814168ea6ffce49ffe5e8b221fb96bd | 1,130 | batect | Apache License 2.0 |
shared/src/commonMain/kotlin/com/ostreet/cmp/cmpnav/ui/composable/Button.kt | OStreetApps | 699,985,909 | false | {"Kotlin": 68177, "Ruby": 5066, "Swift": 661, "Shell": 226} | package com.ostreet.cmp.cmpnav.ui.composable
import androidx.compose.material3.Button
import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.sp
@Composable
fun BasicTextButton(te... | 0 | Kotlin | 0 | 0 | addf687e499f1691984ec70c41f8f0a0cc4f3d96 | 662 | cmp-nav | Apache License 2.0 |
app/src/test/java/uk/gov/onelogin/core/delete/domain/MultiCleanerTest.kt | govuk-one-login | 671,139,547 | false | {"Kotlin": 611350, "Shell": 12866, "Ruby": 1762} | package uk.gov.onelogin.core.delete.domain
import kotlin.test.AfterTest
import kotlin.test.BeforeTest
import kotlin.test.Test
import kotlin.test.assertTrue
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.StandardTestDispatcher
import kotlinx.coro... | 2 | Kotlin | 0 | 4 | 8158433162764dc72a99006c51c8e84206e101bc | 2,654 | mobile-android-one-login-app | MIT License |
apps/hendelselogg-backup/src/test/kotlin/no/nav/paw/arbeidssoekerregisteret/backup/brukerstoette/BrukerstoetteServiceKtTest.kt | navikt | 794,874,233 | false | {"Kotlin": 930882, "Dockerfile": 143} | package no.nav.paw.arbeidssoekerregisteret.backup.brukerstoette
import io.kotest.core.spec.style.FreeSpec
import io.kotest.matchers.shouldBe
import no.nav.paw.arbeidssoekerregisteret.backup.api.brukerstoette.models.Tilstand
import no.nav.paw.arbeidssoekerregisteret.backup.api.brukerstoette.models.TilstandApiKall
impor... | 3 | Kotlin | 0 | 1 | 986751058741c92b74ec73c7faead2ab1ee0510f | 2,927 | paw-arbeidssoekerregisteret-monorepo-intern | MIT License |
core/designsystem/src/main/kotlin/com/anbui/recipely/core/designsystem/components/StandardProgressBar.kt | AnBuiii | 667,858,307 | false | null | package com.anbui.recipely.presentation.ui.components
import androidx.compose.animation.core.FastOutSlowInEasing
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.tween
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.heigh... | 3 | null | 2 | 6 | d794cff96a955346d983eb2953c1a5691d9df13a | 1,480 | Recipely | Apache License 2.0 |
lpDevice/src/main/java/com/angcyo/laserpacker/bean/LPVariableBean.kt | angcyo | 229,037,684 | false | {"Kotlin": 3430781, "JavaScript": 5542, "HTML": 1598} | package com.angcyo.laserpacker.bean
import com.angcyo.jxl.Jxl
import com.angcyo.laserpacker.bean.LPVariableBean.Companion.TYPE_DATE
import com.angcyo.laserpacker.bean.LPVariableBean.Companion.TYPE_EXCEL
import com.angcyo.laserpacker.bean.LPVariableBean.Companion.TYPE_NUMBER
import com.angcyo.laserpacker.bean.LPVariabl... | 0 | Kotlin | 4 | 4 | 9e5646677153f5fba31c31a1bc8ce5753b84660a | 11,426 | UICoreEx | MIT License |
music/player/src/main/kotlin/dev/schlaubi/mikmusic/util/TrackUtil.kt | DRSchlaubi | 409,332,765 | false | {"Kotlin": 328660, "Java": 5426, "Dockerfile": 201, "Shell": 197, "PowerShell": 96} | package dev.schlaubi.mikmusic.util
import dev.arbjerg.lavalink.protocol.v4.Track
import kotlin.time.DurationUnit
import kotlin.time.toDuration
/**
* Formats a simple message for a [Track].
*
* @param repeat whether to add the repeat emoji or not
*/
fun Track.format(repeat: Boolean = false) = with(info) {
"[`$... | 16 | Kotlin | 12 | 36 | 5b57b3e6e8a06324da478231f6bd7035a0c1feb2 | 497 | mikbot | MIT License |
tonapi-tl/src/adnl/message/AdnlMessageConfirmChannel.kt | ton-community | 448,983,229 | false | {"Kotlin": 1194581} | @file:Suppress("PropertyName")
package org.ton.api.adnl.message
import kotlinx.io.bytestring.ByteString
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import org.ton.tl.ByteStringBase64Serializer
import org.ton.tl.TlConstructor
import org.ton.tl.TlReader
import org.ton.tl.TlWriter
i... | 21 | Kotlin | 24 | 80 | 7eb82e9b04a2e518182ebfc56c165fbfcc916be9 | 1,528 | ton-kotlin | Apache License 2.0 |
src/jvmMain/kotlin/com/rodev/jbpkmp/presentation/screens/editor_screen/components/ToolBar.kt | r0astPiGGy | 665,522,977 | false | null | package com.rodev.jbpkmp.presentation.screens.editor_screen.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidt... | 0 | Kotlin | 0 | 3 | 11dfc41d60c3482fb100ed8d2a8e5f77569836b2 | 1,180 | JustBlueprints | MIT License |
js/js.translator/testData/box/regression/typeChecks/toStringExtension.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... | package foo
class A
fun A?.toString() = "OK"
fun box() = (null as A?).toString() | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 83 | kotlin | Apache License 2.0 |
ktor-core/src/org/jetbrains/ktor/application/ApplicationEnvironment.kt | cbeust | 64,515,203 | true | {"Kotlin": 928027, "FreeMarker": 6356, "CSS": 5404, "HTML": 1964, "JavaScript": 1451, "Shell": 158} | package org.jetbrains.ktor.application
import org.jetbrains.ktor.config.*
import org.jetbrains.ktor.logging.*
import java.util.concurrent.*
import java.util.concurrent.atomic.*
/**
* Represents an environment in which [Application] runs
*/
interface ApplicationEnvironment {
/**
* [ClassLoader] used to load... | 0 | Kotlin | 0 | 1 | 8dc7ac666a336cba0f23a72cc31b8c0b14ad4f09 | 2,278 | ktor | Apache License 2.0 |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/sns/TopicAttributes.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 149148378} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.sns
import io.cloudshiftdev.awscdk.common.CdkDslMarker
import io.cloudshiftdev.awscdk.common.CdkObjec... | 0 | Kotlin | 0 | 4 | eb3eef728b34da593a3e55dc423d4f5fa3668e9c | 3,558 | kotlin-cdk-wrapper | Apache License 2.0 |
wallet_app/app/src/main/java/com/example/walletapp/di/RetrofitClient.kt | keep-starknet-strange | 831,085,793 | false | {"Kotlin": 104797, "Cairo": 7258, "Java": 61} | package com.example.walletapp.di
import com.example.walletapp.data.coins.CoinGeckoApi
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
object RetrofitClient {
private const val BASE_URL = "https://api.coingecko.com/api/v3/"
val apiService: CoinGeckoApi by lazy {
Retrofi... | 23 | Kotlin | 23 | 21 | 3fadffd22c29d79a528ce83c7b053b08026d847b | 502 | starknet-phone | MIT License |
confluence-plugin/src/main/java/com/networkedassets/git4c/boundary/PreviewFileResultRequest.kt | rpaasche | 321,741,515 | true | {"Kotlin": 798728, "JavaScript": 351426, "Java": 109291, "Groovy": 55451, "CSS": 37375, "ANTLR": 19544, "Gherkin": 15007, "HTML": 14268, "Shell": 4490, "Ruby": 1378, "Batchfile": 1337, "PowerShell": 716} | package com.networkedassets.git4c.boundary
import com.networkedassets.git4c.boundary.outbound.FileContent
import com.networkedassets.git4c.core.usecase.async.BackendRequestForAsyncResult
class PreviewFileResultRequest(requestId: String) : BackendRequestForAsyncResult<FileContent>(requestId) | 0 | Kotlin | 0 | 0 | e55391b33cb70d66bbf5f36ba570fb8822f10953 | 294 | git4c | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.