path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/no/njoh/pulseengine/modules/graphics/renderers/UniColorLineBatchRenderer.kt | NiklasJohansen | 239,208,354 | false | null | package no.njoh.pulseengine.modules.graphics.renderers
import no.njoh.pulseengine.modules.graphics.*
import org.lwjgl.opengl.GL11.*
class UniColorLineBatchRenderer(
private val initialCapacity: Int,
private val gfxState: RenderState
) : LineRendererInterface, BatchRenderer {
private var rgbaColor: Float ... | 0 | Kotlin | 0 | 0 | d2c0d09732fed1f2221ee17e5a28f0e50857b333 | 2,007 | PulseEngine | MIT License |
integration-tests/gradle/gradle85-test/single-platform/src/androidTest/kotlin/io/realm/test/singleplatform/CrudTests.kt | realm | 235,075,339 | false | {"Kotlin": 4564631, "C++": 126122, "SWIG": 26070, "Shell": 23822, "C": 5126, "CMake": 2858, "Ruby": 1586, "Java": 1470} | /*
* Copyright 2022 Realm 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 in wr... | 243 | Kotlin | 57 | 942 | 50797be5a0dfde9b4eb5c00a528c04b49d5706d6 | 2,474 | realm-kotlin | Apache License 2.0 |
app/src/main/java/io/github/mumu12641/util/Constant.kt | mumu12641 | 747,696,876 | false | {"Kotlin": 121331, "C++": 2397, "Python": 2374, "C": 1226, "CMake": 885} | package io.github.mumu12641.util
import io.github.mumu12641.App.Companion.context
import io.github.mumu12641.R
object Route {
val WELCOME = context.getString(R.string.welcome)
val HOME = context.getString(R.string.app_name)
val HISTORY = context.getString(R.string.history)
val PROFILE = context.getStr... | 0 | Kotlin | 0 | 2 | ccc777f0d301a8a0ba54283ac3b6edbac17a365c | 343 | Heart | MIT License |
module_main/src/main/java/com/yang/module_main/repository/MainRepository.kt | jlglyyx | 474,820,911 | false | {"Kotlin": 640514, "HTML": 233} | package com.yang.module_main.repository
import com.yang.lib_common.base.repository.BaseRepository
import com.yang.lib_common.remote.di.response.MResult
import com.yang.module_main.api.MainApiService
import com.yang.module_main.data.model.DynamicData
import okhttp3.RequestBody
import javax.inject.Inject
class MainRepo... | 0 | Kotlin | 0 | 0 | 87fdd734e4a3f2d061c4e0de01275f019a3dc642 | 1,719 | yl | Apache License 2.0 |
app-web-kt/src/main/kotlin/ui/player/LinkContents.kt | Tajmoti | 391,138,914 | false | null | package ui.player
import com.tajmoti.libtulip.dto.StreamingSiteLinkDto
import kotlinx.browser.window
import react.Props
import react.dom.*
import react.fc
import ui.shared.BadgeType
import ui.shared.LanguageBadge
import ui.shared.PillBadge
internal external interface LinkContentsProps : Props {
var link: Streamin... | 6 | Kotlin | 0 | 0 | c653ebf97b1a43c505b1debb7aa636b06db1ff33 | 1,234 | Tulip | MIT License |
sphinx/application/network/concepts/queries/concept-network-query-message/src/main/java/chat/sphinx/concept_network_query_message/model/PutMemberResponseDto.kt | stakwork | 340,103,148 | false | {"Kotlin": 4019370, "Java": 403469, "JavaScript": 4745, "HTML": 4706, "Shell": 2453} | package chat.sphinx.concept_network_query_message.model
import chat.sphinx.concept_network_query_chat.model.ChatDto
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class PutMemberResponseDto(
val chat: ChatDto,
val message: MessageDto,
) | 90 | Kotlin | 11 | 18 | a28cbb8174ef7874d156f31e22023b014cba6029 | 275 | sphinx-kotlin | MIT License |
src/test/kotlin/com/sbg/vindinium/kindinium/model/GameTest.kt | SoulBeaver | 23,961,494 | false | null | package com.sbg.vindinium.kindinium.model
import com.google.gson.Gson
import com.sbg.vindinium.kindinium.streamToString
import kotlin.test.assertEquals
import org.jetbrains.spek.api.Spek
class GameTest: Spek() {{
val gson = Gson()
given("A JSON representation of a Game") {
val json = javaClass.getCla... | 0 | Kotlin | 1 | 4 | 9150d6619229db4932494e95c92f6911a7dd3443 | 871 | kindinium | Apache License 2.0 |
app/src/main/java/com/infbyte/amuzic/ui/activities/MainActivity.kt | shubertm | 647,623,010 | false | {"Kotlin": 99503} | package com.infbyte.amuzic.ui.activities
import android.Manifest
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.widget.Toast
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.result.contract.ActivityResultContr... | 0 | Kotlin | 0 | 1 | a6381cc97b0cecca190812134ab5fff07e966376 | 9,894 | Amuzic | MIT License |
ui/src/main/java/com/edwin/randompicture/ui/di/scope/PerFragment.kt | EdwinRomelta | 154,439,136 | false | null | package com.edwin.randompicture.ui.di.scope
import javax.inject.Scope
@Scope
@Retention(AnnotationRetention.RUNTIME)
annotation class PerApplication | 1 | null | 1 | 2 | 4ec4eff34efe189cc8db49907de7fc92ad11e929 | 150 | random-picture-android | MIT License |
app/src/main/java/ir/sdrv/mobilletsample/app/modules/GithubApiModule.kt | saeiddrv | 214,408,385 | false | null | package ir.sdrv.mobilletsample.app.modules
import com.google.gson.FieldNamingPolicy
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import ir.sdrv.mobilletsample.BuildConfig
import ir.sdrv.mobilletsample.data.remote.api.GithubApi
import ir.sdrv.mobilletsample.domain.api.GithubApiClient
import ir.sdrv.mo... | 0 | Kotlin | 0 | 15 | 77ee2451b6d41119e67227f02055595f8a3a7e5d | 2,604 | github-api-android-sample | MIT License |
analysis/symbol-light-classes/src/org/jetbrains/kotlin/light/classes/symbol/modifierLists/InitializedModifiersBox.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | /*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.light.classes.symbol.modifierLists
internal class InitializedModifiersBox(privat... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 518 | kotlin | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsbookavideolinkapi/client/migration/MigrationClient.kt | ministryofjustice | 789,053,149 | false | {"Kotlin": 1138044, "Dockerfile": 1492, "Shell": 1007} | package uk.gov.justice.digital.hmpps.hmppsbookavideolinkapi.client.migration
import org.slf4j.LoggerFactory
import org.springframework.cache.annotation.Cacheable
import org.springframework.stereotype.Component
import org.springframework.web.reactive.function.client.WebClient
import org.springframework.web.reactive.fun... | 1 | Kotlin | 0 | 0 | 644def120ba861a797dbf546973230b52322f6e0 | 5,882 | hmpps-book-a-video-link-api | MIT License |
kotlin-gradle-extensions/src/main/kotlin/com/rickbusarow/kgx/systemProperties.kt | rickbusarow | 684,172,148 | false | {"Kotlin": 314329, "Shell": 4127} | /*
* Copyright (C) 2024 <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 ... | 2 | Kotlin | 0 | 6 | f7fdf973ef95828c19810d9f311575d8d77133db | 2,523 | kotlin-gradle-extensions | Apache License 2.0 |
engine/game/src/test/kotlin/org/rsmod/game/stat/PlayerSkillXPTableGetXPTest.kt | rsmod | 293,875,986 | false | {"Kotlin": 1817705} | package org.rsmod.game.stat
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import org.rsmod.game.stat.PlayerSkillXPTable.getXPFromLevel
class PlayerSkillXPTableGetXPTest {
@Test
fun `compute xp for level 1`() {
val expectedXp = 0
val actualXp = getXPFrom... | 0 | Kotlin | 64 | 95 | 3ba446ed70bcde0870ef431e1a8527efc6837d6c | 908 | rsmod | ISC License |
game/src/main/kotlin/gg/rsmod/game/message/decoder/OpLoc5Decoder.kt | 2011Scape | 578,880,245 | false | {"Kotlin": 8904349, "Dockerfile": 1354} | package gg.rsmod.game.message.decoder
import gg.rsmod.game.message.MessageDecoder
import gg.rsmod.game.message.impl.OpLoc5Message
/**
* @author Tom <rspsmods@gmail.com>
*/
class OpLoc5Decoder : MessageDecoder<OpLoc5Message>() {
override fun decode(
opcode: Int,
opcodeIndex: Int,
values: ... | 39 | Kotlin | 143 | 34 | e5400cc71bfa087164153d468979c5a3abc24841 | 653 | game | Apache License 2.0 |
platform/service-container/testSrc/com/intellij/serviceContainer/ServiceContainerTest.kt | ingokegel | 284,920,751 | true | null | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.serviceContainer
import com.intellij.openapi.components.ComponentManager
import com.intellij.openapi.extensions.DefaultPluginDescriptor
import com.intellij.o... | 1 | null | 1 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 1,923 | intellij-community | Apache License 2.0 |
telegram-bot-core/src/main/kotlin/io/github/dehuckakpyt/telegrambot/model/telegram/internal/AnswerWebAppQuery.kt | DEHuckaKpyT | 670,859,055 | false | {"Kotlin": 1719026} | package io.github.dehuckakpyt.telegrambot.model.telegram.`internal`
import com.fasterxml.jackson.`annotation`.JsonProperty
import io.github.dehuckakpyt.telegrambot.model.telegram.InlineQueryResult
import kotlin.String
/**
* @author KScript
*/
internal data class AnswerWebAppQuery(
@get:JsonProperty("web_app_que... | 1 | Kotlin | 3 | 24 | 5912e61857da3f63a7bb383490730f47f7f1f8c6 | 442 | telegram-bot | Apache License 2.0 |
beagle/src/test/kotlin/br/com/zup/beagle/android/operation/builtin/comparison/GtOperationTest.kt | ZupIT | 391,144,851 | false | null | /*
* Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* 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... | 2 | Kotlin | 6 | 9 | 812a330777edd79a123495e9f678dc8f25a019f7 | 4,419 | beagle-android | Apache License 2.0 |
src/main/kotlin/pl/jwizard/core/util/ValidatedUserDetails.kt | jwizard-bot | 512,298,084 | false | {"Kotlin": 272965} | /*
* Copyright (c) 2024 by JWizard
* Originally developed by <NAME> <https://miloszgilga.pl>
*/
package pl.jwizard.core.util
data class ValidatedUserDetails(
val isNotOwner: Boolean,
val isNotManager: Boolean,
val isNotDj: Boolean,
) {
fun concatLogicOr() = !isNotOwner || !isNotManager || !isNotDj
fun concatP... | 1 | Kotlin | 0 | 2 | d177ef4ba3b65c87581afff5be8832bcef43012c | 372 | jwizard-core | Apache License 2.0 |
identity/src/commonMain/kotlin/com/android/identity/securearea/KeyAttestation.kt | openwallet-foundation-labs | 248,844,077 | false | {"Kotlin": 3394056, "Java": 591834, "Swift": 28030, "JavaScript": 23206, "HTML": 3872, "Shell": 372, "CSS": 200, "C": 104} | package com.android.identity.securearea
import com.android.identity.cbor.annotation.CborSerializable
import com.android.identity.crypto.EcPublicKey
/**
* Base class for key attestations.
*
* Key attestations are used to prove to a remote party that a key was generated in
* a specific Secure Area. Each [SecureArea... | 97 | Kotlin | 78 | 153 | 26ef8b36ee5f32568e2cc17b80b8427b08df8be3 | 857 | identity-credential | Apache License 2.0 |
app/src/main/java/com/mytest/composetest/performance/PerformanceActivity.kt | pionio2 | 409,655,599 | false | {"Kotlin": 199306} | package com.mytest.composetest.performance
import android.os.Build
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.viewModels
import androidx.annotation.RequiresApi
import androidx.compose.foundation.layout.padding
import android... | 0 | Kotlin | 0 | 1 | c303ea93f25e94d4aa08485d1f2ab965a6d54a37 | 3,363 | composeTest | Apache License 2.0 |
app/src/main/java/id/ekoyudhi/projectfinal/helper/MyDatabaseOpenHelper.kt | ekoyudhi | 499,711,492 | false | null | package id.ekoyudhi.projectfinal.helper
import android.content.Context
import android.database.sqlite.SQLiteDatabase
import id.ekoyudhi.projectfinal.model.FavMatches
import id.ekoyudhi.projectfinal.model.FavTeams
import org.jetbrains.anko.db.*
class MyDatabaseOpenHelper(ctx: Context) : ManagedSQLiteOpenHelper(ctx, "F... | 0 | Kotlin | 0 | 0 | 98105b5d5e98d2ad629d4efc4fe8da55da206320 | 3,080 | dicoding-footballapps | MIT License |
mediator/src/main/kotlin/no/nav/dagpenger/saksbehandling/maskinell/BehandlingKlient.kt | navikt | 571,475,339 | false | {"Kotlin": 135103, "Mustache": 8476, "PLpgSQL": 2764, "HTML": 699, "Dockerfile": 77} | package no.nav.dagpenger.saksbehandling.maskinell
import no.nav.dagpenger.behandling.opplysninger.api.models.BehandlingDTO
import java.util.UUID
interface BehandlingKlient {
suspend fun hentBehandling(behandlingId: UUID, saksbehandlerToken: String): Pair<BehandlingDTO, Map<String, Any>>
suspend fun bekreftBe... | 0 | Kotlin | 0 | 0 | 1f2a649592fc31522c37f8d4fc76630aae838afa | 379 | dp-saksbehandling | MIT License |
app/src/main/java/com/transcodium/wirepurse/EmailLoginActivity.kt | iagyei | 165,226,708 | false | null | package com.transcodium.wirepurse
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import com.transcodium.wirepurse.classes.Account
import com.transcodium.wirepurse.classes.AppAlert
import com.transcodium.wirepurse.classes.Progress
import kotlinx.android.synthetic.main.activity_email_... | 1 | null | 1 | 1 | a4074defab03573dce30226cbb309eb1d7ea70c1 | 2,858 | WirePurse-Android | Apache License 2.0 |
src/main/kotlin/it/krzeminski/githubactionstyping/parsing/ManifestParsing.kt | typesafegithub | 502,427,408 | false | {"Kotlin": 49359, "Dockerfile": 192} | package it.krzeminski.githubactionstyping.parsing
import com.charleskorn.kaml.Yaml
import kotlinx.serialization.Serializable
import kotlinx.serialization.decodeFromString
@Serializable
data class Manifest(
val inputs: Map<String, Unit> = emptyMap(),
val outputs: Map<String, Unit> = emptyMap(),
)
private val ... | 7 | Kotlin | 2 | 35 | 49eb4c281cd14ed055ab3a47dabec4e48581fb58 | 523 | github-actions-typing | Apache License 2.0 |
app/src/main/java/com/wisnu/kurniawan/composetodolist/features/setting/ui/SettingScreen.kt | wisnukurniawan | 409,054,048 | false | null | package com.wisnu.kurniawan.composetodolist.features.setting.ui
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.lazy.items
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compo... | 0 | Kotlin | 4 | 73 | 784a7b86014f4d0b3ee0d2055aaa64f731bcbfd6 | 2,227 | Compose-ToDo | Apache License 2.0 |
app/src/main/java/com/prashant830/firstjetpack/Model/SendSmsModel.kt | Prashant830 | 619,812,197 | false | null | package com.prashant830.firstjetpack.Model
data class SendSmsModel(
val messages: List<Message>
) | 0 | Kotlin | 0 | 0 | 7d9f2816188d2a8aff2d88365e7e9f9fb9ae42a7 | 102 | SmsSendingApp-WithJetPackCompose | MIT License |
app/src/main/kotlin/ru/cinema/app/plugins/Auth.kt | alexBlack01 | 541,182,433 | false | {"Kotlin": 279406, "Procfile": 34} | package ru.cinema.app.plugins
import com.auth0.jwt.JWTVerifier
import com.auth0.jwt.interfaces.Payload
import io.ktor.server.application.Application
import io.ktor.server.auth.AuthenticationConfig
import io.ktor.server.auth.authentication
import io.ktor.server.auth.jwt.jwt
import org.koin.core.qualifier.named
import o... | 0 | Kotlin | 0 | 0 | 97e1909d029b245c9e1d95a70746a7483073107b | 2,147 | cinema-backend | Apache License 1.1 |
src/main/kotlin/net/bjoernpetersen/musicbot/spi/plugin/Provider.kt | BjoernPetersen | 89,800,012 | false | null | package net.bjoernpetersen.musicbot.spi.plugin
import mu.KotlinLogging
import net.bjoernpetersen.musicbot.api.loader.NoResource
import net.bjoernpetersen.musicbot.api.loader.SongLoadingException
import net.bjoernpetersen.musicbot.api.player.Song
import net.bjoernpetersen.musicbot.api.plugin.ActiveBase
import net.bjoer... | 22 | null | 2 | 5 | 6174262490a182bc9033a331523c36af117b8c3d | 5,235 | MusicBot | MIT License |
src/main/kotlin/org/kalasim/Monitors.kt | cybernetics | 328,781,400 | true | {"Jupyter Notebook": 476274, "Kotlin": 211305, "R": 3312} | @file:Suppress("EXPERIMENTAL_API_USAGE", "EXPERIMENTAL_OVERRIDE")
package org.kalasim
import com.github.holgerbrandl.jsonbuilder.json
import org.apache.commons.math3.distribution.EnumeratedDistribution
import org.apache.commons.math3.stat.Frequency
import org.apache.commons.math3.stat.descriptive.DescriptiveStatistic... | 0 | null | 0 | 0 | 5d395ad27ae66eb4a06041325e29fa014990a012 | 16,376 | kalasim | MIT License |
compiler/testData/codegen/box/inference/pcla/oneParameter/oneTypeVariable/oneTypeInfoOrigin/typeInfoSinks/ImmutableExtensionProperties.kt | JetBrains | 3,432,266 | false | null | fun box(): String {
testMaterialize()
return "OK"
}
/* TESTS */
// PTV is in producing position (materialize-case)
fun testMaterialize() {
fun consume(arg: UserKlass) {}
build {
consume(value)
}
}
/* REQUIRED DECLARATIONS */
class Buildee<CT>
val <EFT> Buildee<EFT>.value: EFT get() = Us... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 476 | kotlin | Apache License 2.0 |
server/src/main/kotlin/com/joshmlwood/crudadmindemo/service/dto/AdminHotelDTO.kt | jmlw | 260,100,893 | false | null | package com.joshmlwood.crudadmindemo.service.dto
import com.joshmlwood.crudadmindemo.admin.Cardinality
import com.joshmlwood.crudadmindemo.admin.PrimaryKey
import com.joshmlwood.crudadmindemo.admin.Relation
data class AdminHotelDTO(
@PrimaryKey
var id: Long = 0L,
var name: String = "",
var address: St... | 1 | Kotlin | 0 | 1 | a7776a625769182ab3deb4adc54c023ad685cd8a | 433 | crud-admin-demo | MIT License |
app/src/main/java/com/qingmei2/sample/ui/main/home/HomeRepository.kt | ngima | 234,334,329 | false | null | package com.qingmei2.sample.ui.main.home
import android.annotation.SuppressLint
import androidx.annotation.AnyThread
import androidx.annotation.MainThread
import androidx.paging.DataSource
import androidx.room.withTransaction
import com.qingmei2.architecture.core.base.repository.BaseRepositoryBoth
import com.qingmei2.... | 1 | null | 1 | 1 | da57f583c1cedd860b7c6abc39092413c133c245 | 3,623 | MVVM-Architecture | Apache License 2.0 |
core-preferences/src/test/kotlin/com/marcohc/terminator/core/preferences/ReactivePreferencesImplTest.kt | marcohc | 228,077,707 | false | null | package com.marcohc.terminator.core.preferences
import com.gojuno.koptional.None
import com.gojuno.koptional.Some
import com.gojuno.koptional.toOptional
import io.reactivex.Completable
import io.reactivex.Single
import io.reactivex.disposables.CompositeDisposable
import io.reactivex.disposables.Disposable
import io.re... | 0 | Kotlin | 0 | 2 | bef69c75478f9ecd40a182fa83c7c95eb1251aec | 16,058 | terminator | MIT License |
app/src/main/java/com/tigerspike/flickrfeed/di/ActivityScope.kt | knighthedspi | 216,192,104 | false | null | package com.tigerspike.flickrfeed.di
import javax.inject.Scope
/**
* Activity instance 's Scope
*/
@Scope
@Retention(AnnotationRetention.RUNTIME)
annotation class ActivityScope
| 0 | Kotlin | 0 | 2 | 6d4e9e856adca7da912d01f6c24dc703c7fdc7a1 | 182 | FlickrFeed | Apache License 2.0 |
data/src/main/java/com/kouelaa/evolutionc19/data/repository/GlobalRepositoryImpl.kt | kheirus | 246,685,428 | false | null | package com.kouelaa.evolutionc19.data.repository
import com.kouelaa.evolutionc19.data.datasources.remote.GlobalDataSource
import com.kouelaa.evolutionc19.domain.entities.Global
/**
* Created by kheirus on 2020-02-11.
*/
class GlobalRepositoryImpl(
private val globalDataSource: GlobalDataSource
) : GlobalReposi... | 0 | Kotlin | 1 | 17 | 86390ea0f3c6faad0ce21625444b03a22fe2f334 | 427 | Evolution-C19 | MIT License |
app/src/main/java/org/engrave/packup/worker/DeadlineAttachedFileDownloader.kt | li3zhen1 | 314,136,387 | false | {"Gradle": 3, "XML": 217, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "INI": 2, "Proguard": 1, "JSON": 4, "Kotlin": 118, "Java": 1} | package org.engrave.packup.worker
import android.content.Context
import androidx.hilt.Assisted
import androidx.hilt.work.WorkerInject
import androidx.work.CoroutineWorker
import androidx.work.WorkerParameters
import org.engrave.packup.api.pku.course.downloadDeadlineAttachedFiles
import org.engrave.packup.data.account.... | 0 | Kotlin | 0 | 3 | ebdd80824557e7767c2b7af076ccf2607f317fbb | 1,404 | Packup-Android | MIT License |
array/src/commonMain/kotlin/array/builtins/sort.kt | lokedhs | 236,192,362 | false | null | package array.builtins
import array.*
fun compareAPLArrays(a: APLValue, b: APLValue, pos: Position? = null): Int {
val aDimensions = a.dimensions
val bDimensions = b.dimensions
// Lower rank arrays always compare less than higher rank
aDimensions.size.compareTo(bDimensions.size).let { result ->
... | 0 | null | 2 | 42 | da36cfa80b2344840c6f9a468447dc82d76520e0 | 3,753 | array | MIT License |
dist/src/main/kotlin/kr/toxicity/hud/util/Adventures.kt | toxicity188 | 766,189,896 | false | {"Kotlin": 93471, "Java": 3747} | package kr.toxicity.hud.util
import kr.toxicity.hud.api.component.WidthComponent
import net.kyori.adventure.key.Key
import net.kyori.adventure.text.Component
import net.kyori.adventure.text.format.NamedTextColor
import net.kyori.adventure.text.format.TextDecoration
import net.kyori.adventure.text.minimessage.MiniMessa... | 0 | Kotlin | 0 | 1 | d8cba20e5bf67bdb3aca55c84166dc112a270ba7 | 2,174 | MythicHud | MIT License |
lib-wallet-hd/src/main/java/com/smallraw/wallet/hd/HDPublicKey.kt | Tinide | 314,498,832 | true | {"C": 642386, "Kotlin": 428035, "Java": 33202, "CMake": 10356, "C++": 9050} | package com.smallraw.wallet.hd
class HDPublicKey() {
var index = 0
var external = true
var publicKey: ByteArray = byteArrayOf()
constructor(index: Int, external: Boolean, key: HDKey) : this() {
this.index = index
this.external = external
this.publicKey = key.getPubKey()?: byt... | 0 | null | 0 | 0 | 9d128d8d70a3ca0f9f9e9a0af3f8d6f027678355 | 339 | ChainWallet | Apache License 2.0 |
core/src/main/java/com/guet/flexbox/build/Utils.kt | zjw-swun | 220,694,704 | true | {"Java Properties": 5, "Gradle": 6, "Shell": 1, "Markdown": 1, "Batchfile": 1, "Text": 1, "Ignore List": 5, "XML": 19, "Kotlin": 30, "Java": 121, "JSON": 1, "Proguard": 3} | @file:JvmName("-Utils")
package com.guet.flexbox.build
import android.content.ComponentCallbacks
import android.content.Context
import android.content.res.Configuration
import android.content.res.Resources
import androidx.annotation.ColorInt
import com.guet.flexbox.el.ELException
import lite.beans.Introspector
import... | 0 | null | 0 | 0 | b5185cb6a5b8ca5ece1bd4c3bb28c494c8b6b5cd | 5,212 | Gbox-Android | Apache License 2.0 |
src/test/kotlin/no/nav/amt/person/service/utils/StringUtils.kt | navikt | 618,357,446 | false | {"Kotlin": 356332, "PLpgSQL": 635, "Dockerfile": 156} | package no.nav.amt.person.service.utils
object StringUtils {
fun nullableStringJsonValue(str: String?): String {
return if (str == null) {
"null"
} else {
"\"$str\""
}
}
}
| 0 | Kotlin | 0 | 0 | a99a93eb640cc7f9cd16ac2375579b5aeffd49d7 | 188 | amt-person-service | MIT License |
skiko/src/jvmTest/kotlin/org/jetbrains/skiko/SurfaceTest.kt | sellmair | 416,502,518 | true | {"C++": 1337733, "Kotlin": 1165199, "Objective-C++": 20873, "Dockerfile": 2426, "JavaScript": 929, "C": 704, "Shell": 555} | package org.jetbrains.skiko
import org.jetbrains.skia.Bitmap
import org.jetbrains.skia.ContentChangeMode
import org.jetbrains.skia.IRect
import org.jetbrains.skia.ImageInfo
import org.jetbrains.skia.Surface
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith
import kotlin.test.as... | 0 | null | 0 | 0 | 9ccc6234799558386ccfa00630600e02c8eb62f9 | 2,302 | skiko | Apache License 2.0 |
app/src/main/java/ru/ilvar/busboard3/StopDetailActivity.kt | ilvar | 154,740,642 | false | null | package ru.ilvar.busboard3
import android.content.Intent
import android.os.Bundle
import android.support.design.widget.Snackbar
import android.support.v7.app.AppCompatActivity
import android.support.v4.app.NavUtils
import android.view.MenuItem
import kotlinx.android.synthetic.main.activity_stop_detail.*
/**
* An act... | 0 | Kotlin | 0 | 0 | c1db8901682585c8167565523ad0a2795dfb5705 | 2,966 | guaguaTodo | MIT License |
ksp-viewmodel-koin/src/main/java/io/github/yakuraion/destinationscompose/kspviewmodelkoin/parameters/ViewModelParameterConverter.kt | yakuraion | 701,847,856 | false | {"Kotlin": 41419, "Shell": 520} | package io.github.yakuraion.destinationscompose.kspviewmodelkoin.parameters
import com.google.devtools.ksp.symbol.KSValueParameter
import io.github.yakuraion.destinationscompose.kspcore.parameters.ParameterConverter
class ViewModelParameterConverter : ParameterConverter<ViewModelParameter> {
override fun convert... | 0 | Kotlin | 0 | 0 | 361ddaa62e9ebe7f140b4d063af2f3da5451e680 | 502 | destinations-compose | MIT License |
app/src/main/java/com/jama/kenyablooddonationsystem/utils/EventsDiffUtillCallback.kt | jama5262 | 209,278,398 | false | null | package com.jama.kenyablooddonationsystem.utils
import androidx.recyclerview.widget.DiffUtil
import com.jama.kenyablooddonationsystem.models.EventModel
class EventsDiffUtillCallback(
private var oldList: MutableList<EventModel>,
private var newList: MutableList<EventModel>
) : DiffUtil.Callback() {
overr... | 0 | Kotlin | 4 | 8 | d79aa93e51970fc0fe0187673a1621ced10da1cb | 800 | blood-donation-system-android | MIT License |
app/src/main/java/com/aowen/monolith/ui/screens/builds/addbuild/AddBuildViewModel.kt | heatcreep | 677,508,642 | false | {"Kotlin": 676876} | package com.aowen.monolith.ui.screens.builds.addbuild
import androidx.lifecycle.ViewModel
import com.aowen.monolith.data.HeroRole
import com.aowen.monolith.data.ItemDetails
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import javax.inject.Inject
data class AddBuild... | 19 | Kotlin | 0 | 2 | 2a32d85c5fe8a5cb652b32eb21e65ad9fa6c1fc0 | 2,945 | predecessor-monolith | MIT License |
src/main/kotlin/settings/ui/SdkAddDialog.kt | cmcpasserby | 40,443,319 | false | null | package settings.ui
import MayaBundle as Loc
import com.intellij.openapi.project.Project
import com.intellij.openapi.projectRoots.Sdk
import com.intellij.openapi.ui.DialogWrapper
import com.jetbrains.python.sdk.PyDetectedSdk
import com.jetbrains.python.sdk.add.PySdkPathChoosingComboBox
import com.jetbrains.python.sdk.... | 5 | null | 44 | 163 | 5b235c2850deec603f9295ed711aba2c249bf163 | 1,514 | MayaCharm | MIT License |
validation/src/commonMain/kotlin/predicates/StringPredicates.kt | KetcKtsD | 306,414,191 | false | {"Kotlin": 68558} | @file:Suppress("unused", "NOTHING_TO_INLINE")
package tech.ketc.ktil.validation.predicates
import tech.ketc.ktil.*
import tech.ketc.ktil.validation.*
class EmailPredicate : Predicate<String> {
companion object {
private val emailRegex =
"^[a-zA-Z0-9.!#\$%&'*+\\\\/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?... | 0 | Kotlin | 0 | 0 | 61e725b04c486f18004966f0dff1bced1a477732 | 1,496 | ktil | Apache License 2.0 |
client/src/wasmJsMain/kotlin/hu/bme/aut/ixnoyb/kotlinclothingwebshop/client/root/ui/theme/Theme.wasmJs.kt | Balintus00 | 631,205,444 | false | {"Kotlin": 778352, "Jupyter Notebook": 202103, "Swift": 1556, "Dockerfile": 485, "HTML": 444} | package hu.bme.aut.ixnoyb.kotlinclothingwebshop.client.root.ui.theme
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.ColorScheme
import androidx.compose.runtime.Composable
@Composable
internal actual fun getColorScheme(): ColorScheme = if (isSystemInDarkTheme()) {
darkSche... | 2 | Kotlin | 0 | 0 | 083046fdf62edc1da0cae6898120bba8487601f6 | 589 | kotlin-clothing-webshop | MIT License |
client/src/wasmJsMain/kotlin/hu/bme/aut/ixnoyb/kotlinclothingwebshop/client/root/ui/theme/Theme.wasmJs.kt | Balintus00 | 631,205,444 | false | {"Kotlin": 778352, "Jupyter Notebook": 202103, "Swift": 1556, "Dockerfile": 485, "HTML": 444} | package hu.bme.aut.ixnoyb.kotlinclothingwebshop.client.root.ui.theme
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.ColorScheme
import androidx.compose.runtime.Composable
@Composable
internal actual fun getColorScheme(): ColorScheme = if (isSystemInDarkTheme()) {
darkSche... | 2 | Kotlin | 0 | 0 | 083046fdf62edc1da0cae6898120bba8487601f6 | 589 | kotlin-clothing-webshop | MIT License |
src/main/kotlin/galuzzi/kodegen/java/support/Documented.kt | agaluzzi | 84,907,006 | false | {"Kotlin": 86688, "Java": 5077} | /*
* Copyright 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... | 1 | Kotlin | 1 | 1 | 6e093cfdabf9e3f80e9de45d3777fb63845a56d5 | 1,096 | kodegen | Apache License 2.0 |
app/src/main/java/com/example/part_instegram/PackageFragment/ProfileFragment.kt | adulegendary | 473,253,633 | false | {"Kotlin": 18760} | package com.example.part_instegram.PackageFragment
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.widget.Button
import com.example.part_instegram.LoginActivity
import com.example.part_instegram.Post
import com.example.part_instegram.R
import com.parse.FindCallback
import ... | 2 | Kotlin | 0 | 0 | 05906f009fb24b5e0c258a825047adddd7c0727b | 1,386 | ParseActivity | Apache License 2.0 |
app/src/main/kotlin/ca/etsmtl/applets/etsmobile/domain/FetchGradesCoursesUseCase.kt | ApplETS | 112,960,632 | false | null | package ca.etsmtl.applets.etsmobile.domain
import androidx.lifecycle.LiveData
import androidx.lifecycle.MediatorLiveData
import androidx.lifecycle.Transformations
import androidx.annotation.VisibleForTesting
import ca.etsmtl.applets.etsmobile.R
import ca.etsmtl.applets.etsmobile.presentation.App
import ca.etsmtl.apple... | 5 | Kotlin | 0 | 5 | b5afdd8fa110a5975a6ad096e172ce2b5f9eca51 | 5,318 | Notre-Dame-Android | Apache License 2.0 |
src/test/kotlin/no/nav/tms/minesaker/api/saf/journalposter/transformers/DokumentvariantTransformerTest.kt | navikt | 331,032,645 | false | {"Kotlin": 196568, "Dockerfile": 219} | package no.nav.tms.minesaker.api.saf.journalposter.transformers
import io.kotest.matchers.shouldBe
import io.kotest.matchers.types.shouldBeInstanceOf
import no.nav.tms.minesaker.api.saf.sakstemaer.SakstemaException
import no.nav.tms.minesaker.api.saf.journalposter.v1.Dokumentvariant
import no.nav.tms.minesaker.api.saf... | 3 | Kotlin | 1 | 0 | bca9103c64083fff47eb7ddedf19923f7a816660 | 1,188 | mine-saker-api | MIT License |
src/test/kotlin/io/github/ackeecz/danger/commitlint/checkers/SubjectCapitalizedRuleCheckerTest.kt | AckeeCZ | 276,617,694 | false | null | package io.github.ackeecz.danger.commitlint.checkers
import com.google.common.truth.Truth
import io.github.ackeecz.danger.commitlint.Commit
import io.github.ackeecz.danger.commitlint.CommitMessage
import org.junit.Test
class SubjectCapitalizedRuleCheckerTest {
private val lowerCasedMsg = "add bug"
private va... | 0 | Kotlin | 0 | 3 | 5b5242058aac330d893769726e853f39bce306ac | 1,731 | danger-kotlin-commit-lint | Apache License 2.0 |
app/src/main/kotlin/com/absinthe/libchecker/view/detail/AppBundleBottomSheetView.kt | zhaobozhen | 248,400,799 | false | null | package com.absinthe.libchecker.view.detail
import android.content.Context
import android.view.ViewGroup
import android.widget.LinearLayout
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.absinthe.libchecker.R
import com.absinthe.libchecker.recyclervi... | 24 | Kotlin | 126 | 1,442 | 5e74f5473eea926d745dae5e27c5d2af4c808b00 | 1,811 | LibChecker | Apache License 2.0 |
profile/profile-core/src/main/kotlin/co/nilin/opex/profile/core/data/profile/Profile.kt | opexdev | 370,411,517 | false | {"Kotlin": 1443488, "HTML": 43145, "Java": 19673, "PLpgSQL": 17262, "Shell": 7915, "Dockerfile": 5680, "HCL": 823} | package co.nilin.opex.profile.core.data.profile
import co.nilin.opex.profile.core.data.limitation.Limitation
import co.nilin.opex.profile.core.data.linkedbankAccount.LinkedAccountResponse
import com.fasterxml.jackson.annotation.JsonInclude
import java.time.LocalDateTime
import java.util.*
@JsonInclude(JsonInclude.Inc... | 23 | Kotlin | 13 | 23 | 9c58721f0df3e8ae21f8c60adba830e5091901d0 | 1,136 | core | MIT License |
app/src/main/java/com/gmail/uwriegel/superfit/http/server.kt | uwriegel | 99,416,992 | false | {"Kotlin": 52646, "TypeScript": 7042, "CSS": 3079, "HTML": 1785} | package com.gmail.uwriegel.superfit.http
import com.gmail.uwriegel.superfit.events.TrackData
import com.gmail.uwriegel.superfit.sensor.ServiceCallback
import com.gmail.uwriegel.superfit.tracking.DataSource
import com.gmail.uwriegel.superfit.tracking.LocationData
import com.gmail.uwriegel.superfit.tracking.Track
import... | 0 | Kotlin | 0 | 0 | f855f24c33b21e2be87557d6f081f1e4f00ad9fb | 3,841 | SuperFit-deprecated | MIT License |
app/src/main/java/com/gmail/uwriegel/superfit/http/server.kt | uwriegel | 99,416,992 | false | {"Kotlin": 52646, "TypeScript": 7042, "CSS": 3079, "HTML": 1785} | package com.gmail.uwriegel.superfit.http
import com.gmail.uwriegel.superfit.events.TrackData
import com.gmail.uwriegel.superfit.sensor.ServiceCallback
import com.gmail.uwriegel.superfit.tracking.DataSource
import com.gmail.uwriegel.superfit.tracking.LocationData
import com.gmail.uwriegel.superfit.tracking.Track
import... | 0 | Kotlin | 0 | 0 | f855f24c33b21e2be87557d6f081f1e4f00ad9fb | 3,841 | SuperFit-deprecated | MIT License |
app/src/main/java/com/cs461/g6/mealportiontracker/core/CSV.kt | CS461-G1-G6 | 697,690,361 | false | {"Kotlin": 543222, "Java": 460871} | package com.cs461.g6.mealportiontracker.core
import android.content.Context
import androidx.appcompat.app.AppCompatActivity
import java.io.BufferedReader
import java.io.IOException
import java.io.InputStream
import java.io.InputStreamReader
data class FoodItem(
val name: String,
val calories: Double,
val ... | 8 | Kotlin | 0 | 0 | bd9f616bb3b6f25f80bbc4c9d4b4d5df325fbdfc | 1,956 | mealportiontracker | Apache License 2.0 |
app/src/main/java/com/example/mcard/repository/models/other/HistoryEntity.kt | Ilyandr | 548,715,167 | false | null | package com.example.mcard.repository.models.other
import androidx.annotation.Keep
import com.google.gson.annotations.SerializedName
@Keep
data class HistoryEntity(
@SerializedName("shopName") val shopName: String = "",
@SerializedName("shopAddress") val shopAddress: String = "",
@SerializedName("timeAdd")... | 0 | Kotlin | 0 | 1 | a5287fc7b7488994f9cfd840cd8c92f11607ef8d | 348 | MCard-indicative | MIT License |
AtomicKotlin/Programming Basics/Summary 1/Examples/src/UnitReturn.kt | fatiq123 | 726,462,263 | false | {"Kotlin": 370528, "HTML": 6544, "JavaScript": 5252, "Java": 4416, "CSS": 3780, "Assembly": 94} | // Summary1/UnitReturn.kt
fun main() {
val result = println("returns Unit")
println(result)
}
/* Output:
returns Unit
kotlin.Unit
*/ | 0 | Kotlin | 0 | 0 | 3d351652ebe1dd7ef5f93e054c8f2692c89a144e | 137 | AtomicKotlinCourse | MIT License |
forum/forum-api/src/main/java/ru/softeg/slartus/forum.api/ForumService.kt | slartus | 21,554,455 | false | null | package ru.softeg.slartus.forum.api
import ru.softeg.slartus.forum.api.ForumItem
interface ForumService {
suspend fun getGithubForum(): List<ForumItem>
suspend fun getSlartusForum(): List<ForumItem>
suspend fun markAsRead(forumId: String)
fun getForumUrl(forumId: String?): String
} | 16 | null | 17 | 86 | 03dfdb68c1ade272cf84ff1c89dc182f7fe69c39 | 300 | 4pdaClient-plus | Apache License 2.0 |
idea/idea-analysis/src/org/jetbrains/kotlin/idea/references/KotlinReferenceContributor.kt | javaljj | 52,061,310 | true | {"Java": 16009659, "Kotlin": 12242000, "JavaScript": 177557, "Protocol Buffer": 42440, "HTML": 27393, "Lex": 16598, "ANTLR": 9689, "CSS": 9358, "Groovy": 5566, "Shell": 4638, "Batchfile": 3703, "IDL": 3441} | /*
* Copyright 2010-2015 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... | 0 | Java | 0 | 1 | ff00bde607d605c4eba2d98fbc9e99af932accb6 | 3,503 | kotlin | Apache License 2.0 |
app/src/main/java/project/dheeraj/cinewatch/data/model/Video.kt | dheerajkotwani | 349,171,972 | false | null | package project.dheeraj.cinewatch.data.model
/**
* Created by <NAME> on 27-03-2021.
*/
data class Video (
val id : String,
val iso_639_1 : String,
val iso_3166_1 : String,
val key : String,
val name : String,
val site : String,
val size : Int,
val type : String
) | 1 | Kotlin | 9 | 31 | b8b952cc38266f18d4f6a139d18096251f4ef132 | 298 | CineWatch | MIT License |
projects/core/src/main/kotlin/site/siredvin/peripheralworks/data/ModUaLanguageProvider.kt | SirEdvin | 489,471,520 | false | {"Kotlin": 622258, "Java": 4072} | package site.siredvin.peripheralworks.data
import net.minecraft.data.PackOutput
import site.siredvin.peripheralworks.common.setup.Blocks
import site.siredvin.peripheralworks.common.setup.Items
import site.siredvin.peripheralworks.computercraft.peripherals.PeripheraliumHubPeripheral
import site.siredvin.peripheralworks... | 12 | Kotlin | 3 | 9 | 6efb33b67104c4c38edb189e397aa15948ba883b | 8,229 | UnlimitedPeripheralWorks | MIT License |
app/src/main/java/com/muedsa/tvbox/room/AppDatabase.kt | muedsa | 869,997,551 | false | {"Kotlin": 264631} | package com.muedsa.tvbox.room
import androidx.room.Database
import androidx.room.RoomDatabase
import com.muedsa.tvbox.room.dao.EpisodeProgressDao
import com.muedsa.tvbox.room.dao.FavoriteMediaDao
import com.muedsa.tvbox.room.model.EpisodeProgressModel
import com.muedsa.tvbox.room.model.FavoriteMediaModel
@Database(en... | 0 | Kotlin | 0 | 0 | b7add9c5b98a943eb504428e71ee08fc961a54fd | 561 | TvBox | MIT License |
kotlin-mui-icons/src/main/generated/mui/icons/material/LocalPrintshop.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/LocalPrintshop")
package mui.icons.material
@JsName("default")
external val LocalPrintshop: SvgIconComponent
| 12 | null | 5 | 983 | a99345a0160a80a7a90bf1adfbfdc83a31a18dd6 | 192 | kotlin-wrappers | Apache License 2.0 |
src/commonMain/kotlin/kson/models/Backgrounds.kt | DrZoddiak | 462,390,338 | false | {"Kotlin": 39104} | package kson.models
import kotlinx.serialization.Serializable
import kson.models.common.Queryable
import kson.models.common.APIReference
import kson.models.common.Choice
import kson.models.common.IRef
@Serializable
data class Backgrounds(
override val index: String,
override val name: String,
override val... | 0 | Kotlin | 0 | 1 | b9ee2e0a1bc2db4e619aa916aaafb61a6f5539da | 882 | KsonMulti | MIT License |
kittybot/src/main/kotlin/org/bezsahara/kittybot/telegram/classes/chats/members/ChatMemberRestricted.kt | bezsahara | 846,146,531 | false | {"Kotlin": 752625} | package org.bezsahara.kittybot.telegram.classes.chats.members
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import org.bezsahara.kittybot.telegram.classes.users.User
/**
* Represents a chat member that is under certain restrictions in the chat. Supergroups only.
*
* *[link](h... | 0 | Kotlin | 1 | 5 | a0b831c9f4ad00f681b2bfba5376e321766a8cfe | 3,160 | TelegramKitty | MIT License |
compiler-plugins/parcelize/src/org/jetbrains/kotlin/parcelize/ide/IdeParcelizeResolveExtension.kt | JetBrains | 278,369,660 | 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.parcelize.ide
import com.intellij.psi.PsiElement
import org.jetbrains.kotlin.par... | 0 | Kotlin | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 547 | intellij-kotlin | Apache License 2.0 |
core/src/main/kotlin/PlatformWarm.kt | cs124-illinois | 584,151,809 | false | null | package edu.illinois.cs.cs125.jeed.core
import java.lang.invoke.LambdaMetafactory
import java.lang.invoke.StringConcatFactory
import java.lang.runtime.ObjectMethods
/*
* Static members in libraries are a challenge for confined task isolation. Third-party libraries can be reloaded,
* but JDK (platform) classes canno... | 4 | null | 9 | 2 | b8b3c67c68d15febeefa2344171d7e987cc5acf3 | 1,260 | jeed | MIT License |
app/src/main/java/com/ekalips/cahscrowd/data/user/remote/RemoteUserDataSource.kt | Ekalips | 125,216,504 | false | null | package com.ekalips.cahscrowd.data.user.remote
import com.ekalips.cahscrowd.data.user.model.BaseUser
import com.ekalips.cahscrowd.data.user.model.ThisUser
import com.ekalips.cahscrowd.network.Api
import com.ekalips.cahscrowd.network.body.GetUsersBody
import com.ekalips.cahscrowd.network.request.AuthBody
import com.eka... | 0 | Kotlin | 0 | 0 | bf60ebbdf3149afbf60e935d599c2a62bdd83da2 | 1,872 | CashCrowd | Apache License 2.0 |
src/main/kotlin/ua/kurinnyi/jaxrs/auto/mock/mocks/StubsDefinition.kt | Kurinnyi | 153,566,842 | false | {"Kotlin": 122821} | package ua.kurinnyi.jaxrs.auto.mock.mocks
import ua.kurinnyi.jaxrs.auto.mock.mocks.model.GroupCallback
import ua.kurinnyi.jaxrs.auto.mock.mocks.model.CompleteMocksData
interface StubsDefinition {
fun getStubs(): CompleteMocksData = CompleteMocksData()
fun getPriority(): Int = 0
fun getGroupsCallbacks(): L... | 0 | Kotlin | 1 | 5 | 3de2d6d387d424eff111996db018c15ba7544dde | 399 | Jax-Rs-Auto-Mock | MIT License |
app/src/main/java/com/niyaj/popos/features/cart_order/di/CartOrderModule.kt | skniyajali | 579,613,644 | false | null | package com.niyaj.popos.features.cart_order.di
import com.niyaj.popos.applicationScope
import com.niyaj.popos.features.app_settings.domain.repository.SettingsRepository
import com.niyaj.popos.features.cart_order.data.repository.CartOrderRepositoryImpl
import com.niyaj.popos.features.cart_order.domain.repository.CartOr... | 4 | Kotlin | 0 | 1 | 6e00bd5451336314b99f6ae1f1f43eea0f2079ad | 1,758 | POS-Application | MIT License |
library/src/main/java/me/zhanghai/compose/preference/ScrollIndicators.kt | zhanghai | 715,053,318 | false | {"Kotlin": 91636} | package me.zhanghai.compose.preference
import androidx.compose.foundation.gestures.Orientation
import androidx.compose.foundation.gestures.ScrollableDefaults
import androidx.compose.foundation.gestures.ScrollableState
import androidx.compose.material3.LocalContentColor
import androidx.compose.ui.Modifier
import androi... | 0 | Kotlin | 0 | 6 | 33c4f19c8bc091b431f6fc84811bc96b8a00ce9a | 4,881 | ComposePreference | Apache License 2.0 |
android/app/src/main/kotlin/com/example/experiments/MainActivity.kt | vikivyas | 315,682,124 | true | null | package com.example.experiments
import android.os.Bundle
import io.flutter.app.FlutterActivity
import io.flutter.plugins.GeneratedPluginRegistrant
class MainActivity: FlutterActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
GeneratedPluginRegistrant.regist... | 0 | null | 0 | 0 | f8953b86f01c026b07743da300bc5c9b0c72340d | 339 | Flutter-Dialogflow-Experiments | MIT License |
src/backend/storage/core/auth/biz-auth/src/main/kotlin/com/tencent/bkrepo/auth/util/query/PermissionQueryHelper.kt | Florence-y | 466,159,327 | true | {"Kotlin": 32055720, "Java": 5630945, "Vue": 5114034, "Go": 2452911, "JavaScript": 1705688, "Lua": 782810, "Dart": 551043, "TypeScript": 401445, "Shell": 395465, "SCSS": 382534, "C++": 149772, "HTML": 134571, "CSS": 92893, "Python": 50689, "C": 33502, "Smarty": 27962, "Less": 24714, "Objective-C": 18613, "Dockerfile": ... | package com.tencent.bkrepo.auth.util.query
import com.tencent.bkrepo.auth.model.TPermission
import org.springframework.data.mongodb.core.query.Criteria
import org.springframework.data.mongodb.core.query.Query
object PermissionQueryHelper {
fun buildPermissionCheck(
projectId: String?,
repoName: S... | 0 | Kotlin | 0 | 2 | 58baee8fabd09ff8e42885162a3b894bab1577da | 1,025 | bk-ci | MIT License |
app/src/main/java/com/example/mydogcat/model/PetDetails.kt | HugoJordan7 | 795,128,642 | false | {"Kotlin": 42764} | package com.example.mydogcat.model
import com.google.gson.annotations.SerializedName
import java.io.Serializable
data class PetDetails(
val id: String,
val width: Int,
val height: Int,
val url: String,
val breeds: List<Breed>? = null
): Serializable
data class Breed(
var height: Height? = nul... | 0 | Kotlin | 0 | 0 | 98cc3ff7f727d2b934c41e9e4913a2b5a81745f0 | 788 | MyDogCat | MIT License |
app/src/main/java/com/example/mydogcat/model/PetDetails.kt | HugoJordan7 | 795,128,642 | false | {"Kotlin": 42764} | package com.example.mydogcat.model
import com.google.gson.annotations.SerializedName
import java.io.Serializable
data class PetDetails(
val id: String,
val width: Int,
val height: Int,
val url: String,
val breeds: List<Breed>? = null
): Serializable
data class Breed(
var height: Height? = nul... | 0 | Kotlin | 0 | 0 | 98cc3ff7f727d2b934c41e9e4913a2b5a81745f0 | 788 | MyDogCat | MIT License |
src/exchange/src/main/kotlin/com/exchange/exchange/domain/market/MarketDataController.kt | exchange-all | 727,231,684 | false | {"Kotlin": 138277, "Java": 26832, "TypeScript": 5623, "Shell": 4239, "Lua": 906} | package com.exchange.exchange.domain.market
import io.swagger.v3.oas.annotations.tags.Tag
import org.springframework.http.codec.ServerSentEvent
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.RequestMap... | 17 | Kotlin | 0 | 2 | 884b575efba9c5f4658c8a5d194bcbacaf073a5f | 1,295 | exchange-api | Apache License 2.0 |
instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/utils/MapboxNavigationRule.kt | k4anubhav | 439,334,238 | true | {"Kotlin": 4189704, "Java": 26254, "Python": 11580, "Makefile": 6163, "Shell": 5704} | package com.mapbox.navigation.instrumentation_tests.utils
import com.mapbox.navigation.core.MapboxNavigationProvider
import org.junit.rules.TestWatcher
import org.junit.runner.Description
/**
* Before each test run verifies that [MapboxNavigation] doesn't exist.
*
* After each test run ensures that [MapboxNavigati... | 0 | null | 1 | 1 | 3751b1323b3e585976a5476176810049061ca1ec | 613 | mapbox-navigation-android | Apache License 2.0 |
bukkit/src/main/kotlin/com/heroslender/hmf/bukkit/BukkitContext.kt | heroslender | 341,310,824 | false | null | package com.heroslender.hmf.bukkit
import com.heroslender.hmf.bukkit.map.MapCanvas
import com.heroslender.hmf.bukkit.modifiers.ClickEventData
import com.heroslender.hmf.core.Menu
import com.heroslender.hmf.core.RenderContext
interface BukkitContext : RenderContext {
override val canvas: MapCanvas
override var... | 2 | Kotlin | 4 | 57 | f205b21bb7024899bd3ca14a44fb6f30493bce7f | 392 | menu-framework | MIT License |
stream_component/src/main/java/com/xyoye/stream_component/ui/activities/remote_file/RemoteFileActivity.kt | marchyang | 357,508,500 | true | {"Kotlin": 1231654, "Java": 542941} | package com.xyoye.stream_component.ui.activities.remote_file
import android.view.KeyEvent
import android.view.Menu
import android.view.MenuItem
import androidx.core.view.isGone
import androidx.core.view.isVisible
import com.alibaba.android.arouter.facade.annotation.Autowired
import com.alibaba.android.arouter.facade.a... | 0 | null | 0 | 0 | f979cd72b2b95b8f352595fb0d43e15656890dbc | 6,101 | DanDanPlayForAndroid | Apache License 2.0 |
seouling/src/main/java/mobile/seouling/com/application/data/vo/MySeoul.kt | seouling | 202,506,383 | false | null | package mobile.seouling.com.application.data.vo
import com.google.gson.annotations.SerializedName
data class MySeoul(
@SerializedName("checked") val checked: List<CheckedSpot>,
@SerializedName("not_checked") val notChecked: List<Spot>,
@SerializedName("amount_count") val amount: Int,
@... | 0 | Kotlin | 2 | 0 | 2b87bc5949b66f584b5e66919d09fca11d0c7b92 | 621 | seouling-android | Apache License 2.0 |
app/src/main/java/org/p2p/wallet/referral/ReferralFragment.kt | p2p-org | 306,035,988 | false | {"Kotlin": 4709924, "HTML": 3064848, "Java": 296719, "Groovy": 1601, "Shell": 1252, "JavaScript": 807} | package org.p2p.wallet.referral
import androidx.core.view.isVisible
import android.os.Bundle
import android.view.View
import org.koin.android.ext.android.get
import org.p2p.wallet.R
import org.p2p.wallet.common.mvp.BaseMvpFragment
import org.p2p.wallet.databinding.FragmentReferralBinding
import org.p2p.wallet.utils.po... | 6 | Kotlin | 18 | 33 | bdce0fdac847a83678d2111788d55f0e2de7a165 | 1,882 | key-app-android | MIT License |
src/main/kotlin/ar/edu/unq/grupo7/pronosticosdeportivos/model/tournaments/Tournament.kt | EnzoGalarza | 531,255,235 | false | {"Kotlin": 142905} | package ar.edu.unq.grupo7.pronosticosdeportivos.model.tournaments
import ar.edu.unq.grupo7.pronosticosdeportivos.model.dto.UserTournamentDTO
import ar.edu.unq.grupo7.pronosticosdeportivos.model.exceptions.DuplicateUserInTournament
import ar.edu.unq.grupo7.pronosticosdeportivos.model.exceptions.IllegalCriteriaException... | 0 | Kotlin | 1 | 0 | 0058c949b07d12be1c2bfaae3f845ffd97467e58 | 4,463 | TTIP-PronosticosDeportivos-Backend | MIT License |
app/src/main/java/com/androidstarter/ui/orders/OrdersVM.kt | syedtehrimabbas | 526,100,544 | false | {"Kotlin": 577048, "Java": 48172} | package com.androidstarter.ui.orders
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.androidstarter.base.validator.IValidator
import com.androidstarter.base.validator.Validator
import com.androidstarter.base.viewmodel.HiltBaseViewModel
import com.androidstarter.data.sessions.Ses... | 0 | Kotlin | 0 | 0 | 3a3fec976a694e309ee7332050308506f48984e0 | 2,119 | dida-procop-android | MIT License |
green-feature/src/main/kotlin/com/ansfartz/greenfeature/GreenScreen.kt | ansfartz | 697,284,214 | false | {"Kotlin": 21068} | package com.ansfartz.greenfeature
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.width
import androidx.compose.material3.Button
i... | 0 | Kotlin | 0 | 0 | e45d82e1ce2ee49521b8e2619f4f03171858c1ca | 2,465 | MultiModuleApp | MIT License |
components/instagram/src/main/kotlin/ski/rss/instagram/rss/InstagramRss.kt | tygern | 303,565,941 | false | null | package ski.rss.instagram.rss
import ski.rss.instagram.feed.InstagramPost
import ski.rss.instagram.feed.InstagramProfile
import ski.rss.rss.ImagePosition
import ski.rss.rss.Item
import ski.rss.rss.Rss
fun rssFromProfile(profile: InstagramProfile) = Rss(
title = profile.name,
description = profile.description,... | 0 | Kotlin | 0 | 1 | 6f55435025d198a5ee2b90124dcef1111f66d69f | 752 | rssski | MIT License |
Business/JetpackBusiness/src/main/java/com/yc/jetpack/study/workmanager/BlurViewModel.kt | yangchong211 | 105,117,953 | false | null |
package com.yc.jetpack.study.workmanager
import android.app.Application
import android.content.ContentResolver
import android.content.Context
import android.net.Uri
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import androidx.work.Constraints
impor... | 15 | null | 743 | 3,157 | 83c22ffbd61186aa86d29a325755e5f796d1e117 | 3,309 | YCAppTool | Apache License 2.0 |
kotlin/kotlin-formal/examples/fuzzer/unreachableMarker.kt270499899.kt_minimized.kt | antlr | 5,958,314 | false | null | inline fun bar(block: (() -> String)): String {
return (block)!!()
}
inline fun bar2(): String {
return bar({return "def"})
} | 529 | null | 3668 | 9,910 | 6581f29d0cb63e3e337cd6dacec6602e34aa88d3 | 125 | grammars-v4 | MIT License |
mvvm-flow-material/src/main/kotlin/dev/icerock/moko/mvvm/flow/material/TextInputLayoutBindings.kt | icerockdev | 204,883,322 | false | {"Kotlin": 215111, "Swift": 20782, "Shell": 2671, "Ruby": 893, "Objective-C": 529} | /*
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
package dev.icerock.moko.mvvm.flow.material
import androidx.lifecycle.LifecycleOwner
import com.google.android.material.textfield.TextInputLayout
import dev.icerock.moko.mvvm.flow.CStateFlow
import dev.icerock.mok... | 52 | Kotlin | 94 | 972 | ad0f844e08c29345eeb092ae55f004ca5a4b065e | 983 | moko-mvvm | Apache License 2.0 |
samples/client/3_1_0_unit_test/kotlin/src/main/kotlin/org/openapijsonschematools/client/components/schemas/EnumWith1DoesNotMatchTrue.kt | openapi-json-schema-tools | 544,314,254 | false | {"Git Config": 1, "Ignore List": 17, "Maven POM": 7, "Dockerfile": 1, "Text": 15, "Git Attributes": 1, "Markdown": 2937, "Java": 2292, "OASv3-json": 4, "OASv2-json": 1, "OASv3-yaml": 193, "JSON": 65, "YAML": 55, "XML": 5, "OASv2-yaml": 2, "Python": 7593, "Handlebars": 848, "Mustache": 18, "Kotlin": 710, "INI": 10, "She... | package org.openapijsonschematools.client.components.schemas
import java.math.BigDecimal
import org.openapijsonschematools.client.configurations.JsonSchemaKeyword
import org.openapijsonschematools.client.configurations.SchemaConfiguration
import org.openapijsonschematools.client.exceptions.ValidationException
import or... | 1 | Java | 11 | 128 | 9006de722f74b7ca917e4e5d38e4cd6ab5ea6e78 | 7,566 | openapi-json-schema-generator | Apache License 2.0 |
onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/RoutesForLocationService.kt | OneBusAway | 864,202,238 | false | null | // File generated from our OpenAPI spec by Stainless.
@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
package org.onebusaway.services.blocking
import org.onebusaway.core.RequestOptions
import org.onebusaway.models.RoutesForLocationListParams
import org.onebusaway.models.Rou... | 0 | null | 0 | 1 | 81a22faf155835ea66702dd772c099cd3b5c0df4 | 596 | java-sdk | Apache License 2.0 |
src/main/kotlin/no/nav/henvendelsesarkiv/db/UpdateService.kt | navikt | 144,120,896 | false | null | package no.nav.henvendelsesarkiv.db
import no.nav.henvendelsesarkiv.model.ArkivStatusType
import no.nav.henvendelsesarkiv.model.Arkivpost
import no.nav.henvendelsesarkiv.model.Vedlegg
import org.springframework.jdbc.core.JdbcTemplate
import java.sql.Timestamp
import java.time.LocalDateTime
import java.util.*
private ... | 0 | Kotlin | 0 | 0 | f2977d0690d922ee68a65d118be1d95d51a10413 | 5,368 | henvendelsesarkiv-2 | MIT License |
ryft-ui/src/main/java/com/ryftpay/android/ui/model/googlepay/PaymentMethod.kt | RyftPay | 455,334,679 | false | {"Kotlin": 409762} | package com.ryftpay.android.ui.model.googlepay
import org.json.JSONObject
internal abstract class PaymentMethod {
internal abstract fun toApiV2RequestJson(
billingAddressRequired: Boolean,
tokenizationSpecification: TokenizationSpecification?
): JSONObject
companion object {
inte... | 0 | Kotlin | 0 | 0 | 19ccde00d3a43556c3793719bba51214a0ee0bae | 397 | ryft-android | MIT License |
src/main/kotlin/no/nav/helse/oppgave/api/OppgaveApis.kt | navikt | 170,875,044 | false | null | package no.nav.helse.oppgave.api
import io.ktor.application.call
import io.ktor.http.HttpHeaders
import io.ktor.http.HttpStatusCode
import io.ktor.request.ApplicationRequest
import io.ktor.request.header
import io.ktor.request.receive
import io.ktor.response.ApplicationResponse
import io.ktor.response.respond
import i... | 0 | Kotlin | 0 | 0 | 849d351ef66a219841daa3ceb5f219d796e9b77a | 1,519 | pleiepenger-oppgave | MIT License |
app/src/main/java/eu/darken/androidstarter/main/ui/anotherfrag/AnotherFragment.kt | d4rken | 367,445,682 | false | null | package eu.darken.androidstarter.main.ui.anotherfrag
import android.os.Bundle
import androidx.fragment.app.viewModels
import dagger.hilt.android.AndroidEntryPoint
import eu.darken.androidstarter.R
import eu.darken.androidstarter.common.smart.SmartFragment
import eu.darken.androidstarter.common.viewbinding.viewBindingL... | 0 | Kotlin | 1 | 6 | a1e534c69c20d0cdd2580bf17a91eda884a3bbd5 | 802 | android-starter-v4 | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.