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/test/testdata/filetypes/skin/inspections/com/example/KColorArrayHolder.kt | mmmika | 96,202,635 | true | {"Kotlin": 726544, "Java": 50280, "Lex": 3443, "HTML": 754} | package com.example
import com.badlogic.gdx.graphics.Color
import com.example.ColorArrayHolder
class KColorArrayHolder {
val colors = arrayOf(Color.BLACK)
val ccolors = arrayOf(arrayOf(Color.BLUE))
val bool = true
val i = 1
val f = 1.0
val byte: Byte = 1
var nc: Array<Color>? = null
var nnc: Array<C... | 0 | Kotlin | 0 | 0 | f7791fe64f69d345f612586d7cc0d38a41d60bae | 384 | LibGDXPlugin | Apache License 2.0 |
modules/module-compose/src/main/java/com/bbgo/module_compose/theme/Dimens.kt | bbggo | 371,705,786 | false | null | package com.bytebitx.compose.theme
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
val dp05 = 0.5.dp
val dp2 = 2.dp
val dp5 = 5.dp
val dp4 = 4.dp
val dp8 = 8.dp
val dp10 = 10.dp
val dp20 = 20.dp
val sp8 = 8.sp
val sp10 = 10.sp
val sp12 = 12.sp
val sp16 = 16.sp
| 3 | null | 3 | 8 | 9c983af26f5bd9cd5e08b7a6080190305738b435 | 286 | WanAndroid | Apache License 2.0 |
app/src/main/java/com/are/magicboxtwo/data/model/Movie.kt | Andreu35 | 548,239,119 | false | {"Kotlin": 55999} | package com.are.magicboxtwo.data.model
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.io.Serializable
@Entity
data class Movie(
@PrimaryKey val id: Int = 0,
val imdb_id: String = "",
val adult: Boolean = false,
val backdrop_path: String? = "",
val budget: Int = 0,
val... | 0 | Kotlin | 0 | 0 | 91bd4ee7be51f0aa1e91a58d459835b5eebe069d | 848 | MagicBox2 | Apache License 2.0 |
sdk/src/main/kotlin/io/github/wulkanowy/sdk/mapper/HomeworkMapper.kt | wulkanowy | 138,756,468 | false | {"Kotlin": 705036, "HTML": 70768} | package io.github.wulkanowy.sdk.mapper
import io.github.wulkanowy.sdk.pojo.Homework
import io.github.wulkanowy.sdk.pojo.HomeworkAttachment
import io.github.wulkanowy.sdk.scrapper.homework.Homework as ScrapperHomework
internal fun List<ScrapperHomework>.mapHomework() = map {
Homework(
date = it.date.toLoca... | 11 | Kotlin | 5 | 8 | 340245d8ccc2790dcb75219c2839e8bdd8b448a4 | 629 | sdk | Apache License 2.0 |
presentation/src/main/java/org/lotka/xenon/presentation/compose/StandardScaffold.kt | armanqanih | 860,856,530 | false | {"Kotlin": 300166} | package org.lotka.xenon.presentation.compose
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.fo... | 0 | Kotlin | 0 | 0 | 6b639355540fcc96477726f700c8dee702c99a1d | 7,075 | ModernNews | Apache License 2.0 |
ktx-account-annotations/src/main/java/co/windly/ktxaccount/annotation/DefaultBoolean.kt | tommus | 220,719,220 | false | null | package co.windly.ktxaccount.annotation
/**
* Indicates a wrapper methods for given Boolean property should be generated.
* <p>
* One can configure what default value will be used in case if given property was
* not set previously,
*/
@Target(AnnotationTarget.FIELD)
annotation class DefaultBoolean(
/**
* Th... | 1 | Kotlin | 3 | 3 | f379ee6d1528af6a9eea8ccac01a124e835b0d6e | 451 | ktx-account | Apache License 2.0 |
common/src/commonMain/kotlin/io/xorum/codeforceswatcher/network/responses/codeforces/ProblemsResponse.kt | firdausai | 351,858,949 | true | {"Kotlin": 218135, "Swift": 206959, "Ruby": 2648} | package io.xorum.codeforceswatcher.network.responses.codeforces
import io.xorum.codeforceswatcher.features.problems.models.Problem
import kotlinx.serialization.Serializable
@Serializable
data class ProblemsResponse(
val status: String,
val result: Result
)
@Serializable
data class Result(val problems... | 0 | null | 0 | 0 | ada2113b45f4b2d20b7f54f4fd04c7a72599240a | 336 | codeforces_watcher | MIT License |
kotlin/codegen/src/main/java/com/squareup/moshi/kotlin/codegen/metadata.kt | airbnb | 154,227,824 | true | null | /*
* Copyright (C) 2018 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 0 | Java | 7 | 9 | b287596c609e1e6535a3ca3d82acb24ea3b3ff65 | 13,929 | moshi | Apache License 2.0 |
app/src/main/java/com/emirk/appterndeezer/data/remote/dto/album_detail/ArtistX.kt | emirkarabey | 637,855,049 | false | null | package com.emirk.appterndeezer.data.remote.dto.album_detail
import com.google.gson.annotations.SerializedName
data class ArtistX(
@SerializedName("id")
val id: Int,
@SerializedName("name")
val name: String,
@SerializedName("tracklist")
val tracklist: String,
@SerializedName("type")
va... | 0 | Kotlin | 0 | 0 | a165b212489bd7efacb356001e8d246422acdd2b | 336 | AppTernDeezer | Apache License 2.0 |
app/src/main/java/com/nagopy/android/aplin/ui/main/MainActivity.kt | 75py | 43,955,994 | false | {"Kotlin": 92163} | package com.nagopy.android.aplin.ui.main
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.runtime.collectAsState
import com.nagopy.android.aplin.domain.model.PackageModel
import com.nagopy.android.aplin.ui.ads.AdsViewModel
import co... | 5 | Kotlin | 4 | 27 | c98651d6b6fe44c610c59fa479614e0512651e9b | 2,046 | Aplin | Apache License 2.0 |
app/src/main/java/org/stepik/android/view/achievement/ui/resolver/AchievementResourceResolver.kt | StepicOrg | 42,045,161 | false | null | package org.stepik.android.view.achievement.ui.resolver
import android.content.Context
import org.stepic.droid.R
import org.stepic.droid.di.AppSingleton
import org.stepik.android.domain.achievement.model.AchievementItem
import org.stepic.droid.util.liftM2
import javax.inject.Inject
@AppSingleton
class AchievementReso... | 13 | null | 54 | 189 | dd12cb96811a6fc2a7addcd969381570e335aca7 | 5,673 | stepik-android | Apache License 2.0 |
app/src/main/java/com/taitascioredev/android/tvseriesdemo/dagger/searchtvshows/SearchTvShowsModule.kt | phanghos | 119,651,014 | false | null | package com.taitascioredev.android.tvseriesdemo.dagger.searchtvshows
import com.taitascioredev.android.tvseriesdemo.dagger.DataModule
import com.taitascioredev.android.tvseriesdemo.dagger.FragmentScope
import com.taitascioredev.android.tvseriesdemo.data.repository.MovieRepository
import com.taitascioredev.android.tvse... | 0 | Kotlin | 0 | 1 | f2992ac104f0733d0707027e1c025d1f3ed6bf85 | 1,797 | tv-series-demo | MIT License |
foosball/app/src/phone/java/com/instructure/androidfoosball/models/User.kt | instructure | 179,290,947 | false | null | /*
* Copyright (C) 2016 - present Instructure, 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... | 2 | Kotlin | 85 | 99 | 1bac9958504306c03960bdce7fbb87cc63bc6845 | 961 | canvas-android | Apache License 2.0 |
core/src/com/mygdx/game/widgets/InventoryObserver.kt | apiorno | 263,664,301 | false | {"Gradle": 5, "INI": 2, "Shell": 1, "Text": 5, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Kotlin": 83, "XML": 11, "JSON": 29, "Java": 1} | package com.mygdx.game.widgets
interface InventoryObserver {
enum class InventoryEvent {
UPDATED_AP, UPDATED_DP, ITEM_CONSUMED, ADD_WAND_AP, REMOVE_WAND_AP, NONE
}
fun onNotify(value: String, event: InventoryEvent)
} | 1 | null | 1 | 1 | f721d6bc5d11a2fea9f932b94214deccfe1505b2 | 238 | RpgTest | MIT License |
feature/settings/src/main/java/com/google/jetpackcamera/settings/SettingsScreen.kt | google | 591,101,391 | false | {"Kotlin": 414064, "Shell": 724} | /*
* Copyright (C) 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 47 | Kotlin | 23 | 96 | 4005d59356a80cd2d2e2b6056120f8646017361e | 8,074 | jetpack-camera-app | Apache License 2.0 |
compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/ic/IncrementalCache.kt | vmichalak | 364,875,385 | true | {"Kotlin": 69686329, "Java": 7040677, "Swift": 4240529, "C": 2633594, "C++": 2415282, "Objective-C": 580704, "JavaScript": 209639, "Objective-C++": 165277, "Groovy": 103211, "Python": 43460, "Shell": 31275, "TypeScript": 22854, "Lex": 18369, "Batchfile": 11692, "CSS": 11259, "EJS": 5241, "Ruby": 4878, "HTML": 4793, "CM... | /*
* Copyright 2010-2022 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.ir.backend.js.ic
import org.jetbrains.kotlin.backend.common.serialization.IdSign... | 7 | Kotlin | 1 | 1 | 6614714c9465ed122ad8f36b6e8149dbcfcd41bb | 11,461 | kotlin | Apache License 2.0 |
app/src/main/java/com/kemalatli/techchallenge/base/di/AppModule.kt | kemalatli | 209,587,874 | false | null | package com.kemalatli.techchallenge.base.di
import com.kemalatli.techchallenge.data.LoginRepositoryImpl
import com.kemalatli.techchallenge.data.OrdersRepositoryImpl
import com.kemalatli.techchallenge.data.TechPrefs
import com.kemalatli.techchallenge.domain.LoginRepository
import com.kemalatli.techchallenge.domain.Orde... | 0 | Kotlin | 0 | 0 | 03ea28d2a1f7e7832fa4e32bd0a038591e0b2c5d | 1,640 | TechChallenge | MIT License |
src/app/src/test/kotlin/org/vaccineimpact/orderlyweb/tests/database_tests/SettingsRepositoryTests.kt | vimc | 173,126,600 | false | null | package org.vaccineimpact.orderlyweb.tests.database_tests
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.vaccineimpact.orderlyweb.db.JooqContext
import org.vaccineimpact.orderlyweb.db.Tables
import org.vaccineimpact.orderlyweb.db.r... | 6 | Kotlin | 4 | 4 | 4c18736db6263fe8115699f036ab2469081bfb97 | 1,675 | orderly-web | MIT License |
app/src/main/java/com/rodrigolmti/lunch/money/companion/composition/bridge/adapter/HomeFeatureAdapter.kt | Rodrigolmti | 737,641,287 | false | {"Kotlin": 366824, "Ruby": 351} | package com.rodrigolmti.lunch.money.companion.composition.bridge.adapter
import com.rodrigolmti.lunch.money.companion.composition.bridge.mapper.toView
import com.rodrigolmti.lunch.money.companion.composition.domain.model.AssetStatus
import com.rodrigolmti.lunch.money.companion.composition.domain.model.TransactionModel... | 0 | Kotlin | 0 | 4 | 457be1007ee1a642fab38f84ff6ebcd0ebf98753 | 3,347 | lunch_money_companion | Apache License 2.0 |
app/src/androidTest/java/com/mreigar/postapp/espresso/CounterIdleResource.kt | mreigosa | 267,906,034 | false | null | package com.grela.clean
import androidx.test.espresso.IdlingResource
import com.grela.domain.interactor.IdleNotifier
import java.util.concurrent.atomic.AtomicInteger
class CounterIdleResource(private val resourceName: String) : IdlingResource, IdleNotifier {
private val counter = AtomicInteger(0)
private va... | 1 | Kotlin | 0 | 1 | d9b9433d084d791bc8bfe2bee91704d60b0c626e | 1,034 | post-app-kotlin | MIT License |
app/src/main/java/com/wiryadev/bootstrapiconscompose/ui/theme/Color.kt | wiryadev | 380,639,096 | false | null | package com.wiryadev.bootstrapiconscompose.ui.theme
import androidx.compose.ui.graphics.Color
val Purple200 = Color(0xFF8F13FE)
val Purple500 = Color(0xFF6B10F4)
val Purple700 = Color(0xFF5409C3)
val Teal200 = Color(0xFF03DAC5) | 0 | Kotlin | 0 | 2 | 1c199d953dc96b261aab16ac230dc7f01fb14a53 | 229 | bootstrap-icons-compose | MIT License |
vim-engine/src/main/kotlin/com/maddyhome/idea/vim/api/VimMotionGroup.kt | JetBrains | 1,459,486 | false | null | /*
* Copyright 2003-2023 The IdeaVim authors
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE.txt file or at
* https://opensource.org/licenses/MIT.
*/
package com.maddyhome.idea.vim.api
import com.maddyhome.idea.vim.action.motion.leftright.TillCharacterMotionTyp... | 9 | null | 749 | 9,241 | 66b01b0b0d48ffec7b0148465b85e43dfbc908d3 | 6,067 | ideavim | MIT License |
rocket-launcher-core/src/main/kotlin/com/github/funczz/rocket_launcher/core/domain/model/launcher/LauncherEvent.kt | funczz | 438,511,484 | false | {"Kotlin": 67143, "HTML": 2823} | package com.github.funczz.rocket_launcher.core.domain.model.launcher
sealed class LauncherEvent {
class START(val counter: UInt): LauncherEvent()
object DECREMENT: LauncherEvent()
object LAUNCH: LauncherEvent()
object ABORT: LauncherEvent()
object FINISH: LauncherEvent()
} | 0 | Kotlin | 0 | 0 | 329665a170f96a2c3ed76728104d8297e9553201 | 300 | kotlin-rocket-launcher | Apache License 2.0 |
kmdc/kmdc-menu/src/jsMain/kotlin/MDCMenuItem.kt | mpetuska | 430,798,310 | false | null | package dev.petuska.kmdc.menu
import androidx.compose.runtime.Composable
import dev.petuska.kmdc.core.Builder
import dev.petuska.kmdc.core.ComposableBuilder
import dev.petuska.kmdc.core.MDCDsl
import dev.petuska.kmdc.list.MDCListItem
import dev.petuska.kmdc.list.MDCListItemOpts
import dev.petuska.kmdc.list.MDCListItem... | 22 | Kotlin | 8 | 29 | 67b31502b5f76b64f7571821fdd0b78a3df0a68c | 733 | kmdc | Apache License 2.0 |
navigation/src/commonMain/kotlin/com/amarcolini/joos/trajectory/constraints/AngularAccelVelocityConstraint.kt | amarcolini | 424,457,806 | false | null | package com.amarcolini.joos.trajectory.constraints
import com.amarcolini.joos.geometry.Angle
import com.amarcolini.joos.geometry.Pose2d
import com.amarcolini.joos.util.epsilonEquals
import kotlin.math.max
import kotlin.math.min
import kotlin.math.pow
import kotlin.math.sqrt
/**
* A velocity constraint that prevents ... | 1 | null | 2 | 9 | 3ed0c4a444f8934b9bf39a9a95270447696e3a0c | 7,852 | joos | MIT License |
app/src/main/kotlin/net/yuzumone/twltrus/tdr/model/Facility.kt | yuzumone | 95,168,653 | false | {"Kotlin": 57823} | package net.yuzumone.twltrus.tdr.model
data class Facility(
val greeting: Greeting?
) | 0 | Kotlin | 1 | 0 | e1a5f6206eb87204532c93c7ba8c2b97c0e41291 | 94 | TDR_for_Twltrus | Apache License 2.0 |
compiler/testData/diagnostics/tests/CompareToWithErrorType.kt | JakeWharton | 99,388,807 | false | null | // !WITH_NEW_INFERENCE
fun test() {
if (<!UNRESOLVED_REFERENCE!>x<!> <!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>><!> 0) {
}
} | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 125 | kotlin | Apache License 2.0 |
src/test/kotlin/zoneddatetime/ZonedDateTimeParsingExtensionsTest.kt | seljabali | 402,993,185 | false | null | package zoneddatetime
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import javatimefun.zoneddatetime.extensions.toZonedDateTime
import javatimefun.zoneddatetime.extensions.print
import java.lang.RuntimeException
import java.time.ZonedDateTime
class ZonedDateTimeParsingExtensio... | 4 | null | 2 | 57 | 37fad7d1593da28e99924936b7559ca27e5573b1 | 1,792 | java-time-fun | MIT License |
src/me/anno/utils/process/DelayedTask.kt | AntonioNoack | 456,513,348 | false | null | package me.anno.utils.process
import me.anno.Time
import me.anno.maths.Maths.MILLIS_TO_NANOS
import me.anno.studio.Events.addEvent
import me.anno.utils.OS
import kotlin.concurrent.thread
class DelayedTask(
private val function: () -> Unit,
private val delayMillis: Long = 500
) {
constructor(function: () ... | 0 | null | 3 | 9 | 94bc7c74436aa567ec3c19f386dd67af0f1ced00 | 1,402 | RemsEngine | Apache License 2.0 |
src/main/kotlin/io/kotest/generation/actual/SerializerVisitor.kt | AlexCue987 | 728,293,561 | false | {"Kotlin": 180787} | package io.kotest.generation.actual
import io.kotest.generation.common.CodeSnippet
interface SerializerVisitor {
fun serialize(
instance: Any?,
buffer: CodeSnippet,
isLast: Boolean
): Boolean {
if(canHandle((instance))) {
handle(instance, buffer, isLast)
... | 0 | Kotlin | 0 | 0 | c98fdcec436975e3754e190352d2eab8bdaa1d85 | 515 | kotests-mockks-generator | Apache License 2.0 |
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/type/highlighting.kt | lots0logs | 177,218,243 | false | {"Text": 3529, "XML": 4474, "Ant Build System": 14, "Shell": 33, "Markdown": 24, "Ignore List": 34, "Git Attributes": 6, "Batchfile": 26, "SVG": 1874, "Java": 61724, "C++": 15, "HTML": 2676, "Kotlin": 3320, "DTrace": 1, "Gradle": 49, "Java Properties": 89, "Groovy": 2931, "INI": 217, "JFlex": 25, "XSLT": 109, "JavaScri... | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.groovy.codeInspection.type
import com.intellij.codeInspection.LocalQuickFix
import com.intellij.codeInspection.ProblemHighlightType
import com.intel... | 1 | null | 1 | 1 | ef9153d8a369982a9827f05207063664436a7660 | 3,600 | intellij-community | Apache License 2.0 |
app/src/main/java/com/oscarliang/knews/db/NewsDatabase.kt | iamoscarliang | 761,140,560 | false | {"Kotlin": 151931} | package com.oscarliang.knews.db
import androidx.room.Database
import androidx.room.RoomDatabase
import com.oscarliang.knews.model.BreakingNews
import com.oscarliang.knews.model.News
import com.oscarliang.knews.model.NewsSearchResult
@Database(
entities = [News::class, BreakingNews::class, NewsSearchResult::class]... | 0 | Kotlin | 0 | 0 | c03764f4d80338cff8fa98bc59a72ecbd892af6d | 426 | k-news | MIT License |
main/src/main/java/com/google/android/apps/muzei/browse/BrowseProviderFragment.kt | ianhanniballake | 24,799,536 | false | null | /*
* Copyright 2018 Google 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 ... | 40 | null | 959 | 7 | 14a0c0c41e2628375bc5a5e5a135ff933d8b7c27 | 9,146 | muzei | Apache License 2.0 |
consumerapp/src/main/java/com/dnar/consumerapp/ui/main/profile/follow/ProfileFollowViewModel.kt | dimas-nur | 267,992,206 | false | null | package com.dnar.consumerapp.ui.main.profile.follow
import androidx.lifecycle.ViewModel
import com.dnar.consumerapp.data.repositories.ProfileRepository
import javax.inject.Inject
class ProfileFollowViewModel @Inject constructor(
private val repository: ProfileRepository
) : ViewModel() {
// Function : for ge... | 0 | Kotlin | 19 | 58 | 48bc4fb7209d5b116a0794fd26828699bfbaab14 | 668 | dicoding-belajar-fundamental-aplikasi-android | Apache License 2.0 |
components/src/desktopMain/kotlin/com/paligot/movies/components/RatingPreviews.kt | GerardPaligot | 312,828,696 | false | null | package com.paligot.movies.components
import androidx.compose.desktop.ui.tooling.preview.Preview
import androidx.compose.foundation.layout.size
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
@Preview
@Composable
fun RatingGreenPreview() {
Rating(8... | 0 | Kotlin | 0 | 47 | 0ad52c9df8646f78a3496a6916aeb5d254079b87 | 555 | discovering-movies | Apache License 2.0 |
.teamcity/_Self/subprojects/GitHub.kt | JetBrains | 1,459,486 | false | null | package _Self.subprojects
import _Self.buildTypes.GithubTests
import jetbrains.buildServer.configs.kotlin.v2019_2.Project
object GitHub : Project({
name = "Pull Requests checks"
description = "Automatic checking of GitHub Pull Requests"
buildType(GithubTests)
})
| 7 | Kotlin | 692 | 7,422 | 2a6b6f89f42f4d21a2f7c6e534191a3d8ac86428 | 272 | ideavim | MIT License |
src/commonMain/kotlin/org/intellij/markdown/parser/sequentialparsers/DelimiterParser.kt | JetBrains | 27,873,341 | false | {"Kotlin": 1305157, "Lex": 29252, "Ruby": 691, "Shell": 104} | package org.intellij.markdown.parser.sequentialparsers
import org.intellij.markdown.IElementType
abstract class DelimiterParser {
/**
* Finds all tokens that open or close element represented by this parser.
* Invoked by [EmphasisLikeParser.collectDelimiters].
*
* Delimiters matching will be h... | 56 | Kotlin | 75 | 661 | 43c06cb6a9d66caab8b431f738aba3c57aee559f | 4,237 | markdown | Apache License 2.0 |
app/src/main/java/com/example/worldcapitalsquiz/GameScreen.kt | cosmin-oros | 509,459,475 | false | null | package com.example.worldcapitalsquiz
import android.annotation.SuppressLint
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.text.KeyboardOp... | 0 | Kotlin | 0 | 2 | 87732f32a9f51446484de90f111cf1d4085e0d64 | 9,788 | World-Capitals-Quiz-App | MIT License |
plugins/analysis/common/src/main/kotlin/arrow/meta/plugins/analysis/phases/analysis/solver/collect/FromAnnotations.kt | arrow-kt | 217,378,939 | false | null | package arrow.meta.plugins.analysis.phases.analysis.solver.collect
import arrow.meta.plugins.analysis.phases.analysis.solver.RESULT_VAR_NAME
import arrow.meta.plugins.analysis.phases.analysis.solver.ast.context.ResolutionContext
import arrow.meta.plugins.analysis.phases.analysis.solver.ast.context.descriptors.Analysis... | 97 | null | 40 | 316 | 8d2a80cf3a1275a752c18baceed74cb61aa13b4d | 5,999 | arrow-meta | Apache License 2.0 |
library/src/main/java/ss_n/common_ktx/extension/LiveData_Extension.kt | sasa-nori | 245,430,303 | false | null | package ss_n.common_ktx.extension
import androidx.lifecycle.LiveData
import ss_n.common_ktx.test.TestObserver
/**
* Used in unit tests
*/
fun <T> LiveData<T>.testObserver() = TestObserver<T>().also {
observeForever(it)
}
| 10 | Kotlin | 3 | 4 | 8d3eb18676ef343f0f0da47b42f7ba1ac7c508e1 | 229 | common-ktx | Apache License 2.0 |
tools/src/test/kotlin/pw/binom/material/lex/CompileTest.kt | caffeine-mgn | 223,796,620 | false | null | package pw.binom.material.lex
import org.junit.Test
import pw.binom.material.EmptyModuleResolver
import pw.binom.material.SourceModule
import pw.binom.material.compiler.Compiler
import java.io.StringReader
class CompileTest {
@Test
fun incDecTest() {
val compiler = Parser(StringReader("""
boo... | 6 | Kotlin | 0 | 4 | e673acfcb20e2d62d8e68c43d395731bd9d9d882 | 1,949 | mogot | Apache License 2.0 |
app/src/main/java/com/example/recycleview/pojo/TypeX.kt | sidkiamri | 733,158,336 | false | {"Kotlin": 113149} | package com.example.recycleview.pojo
import com.google.gson.annotations.SerializedName
data class TypeX(
@SerializedName("_id")
val id: String,
@SerializedName("type_name")
val typename: String
) | 0 | Kotlin | 0 | 0 | 9bf93bd95847eb157aa8d9df6edea0ef9e54c3ca | 215 | SearchAndRecycle-Android | MIT License |
app/src/main/java/com/zql/travelassistant/http/RetrofitCallback.kt | zliu80 | 596,862,076 | false | {"Kotlin": 142568, "JavaScript": 25356} | package com.zql.travelassistant.http
import android.app.Activity
import com.zql.travelassistant.R
import com.zql.travelassistant.bean.AttractionList
import dev.shreyaspatil.MaterialDialog.AbstractDialog
import dev.shreyaspatil.MaterialDialog.MaterialDialog
import retrofit2.Call
import retrofit2.Callback
import retrofi... | 0 | Kotlin | 0 | 0 | 08e0d5b31cdaec24acd1d2eed85b2b9fe478afec | 375 | Travel-Assistant-Kotlin-Android | MIT License |
server/src/main/kotlin/net/horizonsend/ion/server/features/starship/subsystem/weapon/projectile/ParticleProjectile.kt | HorizonsEndMC | 461,042,096 | false | {"Kotlin": 2639036, "Java": 15809, "Shell": 1414, "JavaScript": 78} | package net.horizonsend.ion.server.features.starship.subsystem.weapon.projectile
import net.horizonsend.ion.server.features.starship.active.ActiveStarship
import net.horizonsend.ion.server.features.starship.damager.Damager
import org.bukkit.Location
import org.bukkit.util.Vector
abstract class ParticleProjectile(
st... | 17 | Kotlin | 26 | 9 | 55b6783a93ab5f288ea2379a2b04d97bbcbf9f4b | 817 | Ion | MIT License |
app/src/main/java/com/moegirlviewer/screen/compare/util/showUndoDialog.kt | koharubiyori | 449,942,456 | false | null | package com.moegirlviewer.screen.compare.util
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.horizontalScroll
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundat... | 1 | Kotlin | 2 | 16 | e09753e76c11932d6f7344302d48f7a214cccf3a | 3,595 | Moegirl-plus-native | MIT License |
app/src/main/java/com/indisparte/moovaride/data/remote/dto/AccountDTO.kt | iamantoniodinuzzo | 698,121,364 | false | {"Kotlin": 170845} | package com.indisparte.moovaride.data.remote.dto
data class AccountDTO(
val activationToken: String,
val creationDate: String,
val credentialsExpired: Boolean,
val enabled: Boolean,
val firstAccess: Boolean,
val id: String,
val passwordReset: Boolean,
val role: List<RoleDTO>,
val u... | 2 | Kotlin | 0 | 0 | ece192351030418549c8f01c11a684d555a66007 | 338 | MoovaRide | Apache License 2.0 |
src/main/kotlin/pl/jwizard/core/audio/player/PlayerManagerFacade.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.audio.player
import com.sedmelluq.discord.lavaplayer.track.AudioTrack
import net.dv8tion.jda.api.entities.channel.concrete.VoiceChannel
import org.springframework.http.HttpMethod
import org.spring... | 2 | Kotlin | 0 | 2 | d177ef4ba3b65c87581afff5be8832bcef43012c | 10,359 | jwizard-core | Apache License 2.0 |
pulsar-proxy/src/main/kotlin/ai/platon/pulsar/proxy/server/ProxyHandles.kt | kflyddn | 248,429,389 | true | {"Text": 48, "Maven POM": 28, "SQL": 4, "Markdown": 5, "Ignore List": 4, "XML": 77, "Kotlin": 175, "Java": 1215, "JSON": 5, "Java Properties": 9, "HTML": 94, "INI": 2, "Java Server Pages": 22, "CSS": 1, "JavaScript": 8, "JAR Manifest": 1, "Shell": 19, "robots.txt": 1, "Rich Text Format": 1} | package ai.platon.pulsar.proxy.server
import ai.platon.pulsar.common.proxy.ProxyEntry
import ai.platon.pulsar.common.proxy.ProxyType
import ai.platon.pulsar.proxy.common.ProtoUtil
import io.netty.bootstrap.Bootstrap
import io.netty.channel.*
import io.netty.channel.socket.nio.NioSocketChannel
import io.netty.handler.c... | 0 | null | 0 | 0 | 728a9c6dbe852edd686c55b234608abe7e9fb419 | 11,518 | pulsar | Apache License 2.0 |
minchat-rest/src/main/kotlin/io/minchat/rest/service/CacheService.kt | MinChat-official | 604,238,971 | false | {"Kotlin": 394469} | //
// THIS CLASS IS GENERATED BY THE generateCacheSerivce gradle task!
// DO NOT MODIFY BY HAND!
//
package io.minchat.rest.service
import io.minchat.common.entity.*
import io.minchat.rest.MinchatRestClient
import io.minchat.rest.entity.*
/**
* Allows fetching MinChat entities using a caching strategy.
*/
class Ca... | 0 | Kotlin | 0 | 3 | 8f70585146311efe9fc49e4e3b93eb8becb92cba | 4,873 | MinChat | Apache License 2.0 |
feature/main/src/main/java/com/t8rin/imagetoolboxlite/feature/main/presentation/components/settings/DragHandleWidthSettingItem.kt | T8RIN | 767,600,774 | false | {"Kotlin": 3806441} | /*
* ImageToolbox is an image editor for android
* Copyright (c) 2024 T8RIN (Malik Mukhametzyanov)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Unless required by applicable law or agreed to in writing, software
* dist... | 5 | Kotlin | 90 | 8 | f8fe322c2bde32544e207b49a01cfeac92c187ce | 2,480 | ImageToolboxLite | Apache License 2.0 |
domene/src/main/kotlin/no/nav/tiltakspenger/meldekort/domene/Meldekortperiode.kt | navikt | 487,246,438 | false | {"Kotlin": 783873, "Shell": 1318, "Dockerfile": 495, "HTML": 45} | package no.nav.tiltakspenger.meldekort.domene
import arrow.core.NonEmptyList
import no.nav.tiltakspenger.libs.periodisering.Periode
import no.nav.tiltakspenger.libs.tiltak.TiltakstypeSomGirRett
import java.time.DayOfWeek
import java.time.LocalDate
/**
* saksbehandler/beslutter Dette er fremdeles til avklaring, men i... | 10 | Kotlin | 0 | 1 | 63b6702ba616e70e219dbc37f19707f7a60ef7d5 | 2,311 | tiltakspenger-vedtak | MIT License |
sample/hack/app/main.kt | SubstanceMobile | 87,648,548 | false | {"Kotlin": 45823} | fun main(args: Array<String>) {
// TODO: Replace with reflection
demo.GtkDemoApp(args)
} | 0 | Kotlin | 0 | 0 | e2b61dcb2c744a21f9f95eb6972480a554e9fea3 | 90 | SDK | Apache License 2.0 |
kamp-view/src/test/kotlin/ch/leadrian/samp/kamp/view/base/TextViewTest.kt | Double-O-Seven | 142,487,686 | false | {"Kotlin": 3854710, "C": 23964, "C++": 23699, "Java": 4753, "Dockerfile": 769, "Objective-C": 328, "Batchfile": 189} | package ch.leadrian.samp.kamp.view.base
import ch.leadrian.samp.kamp.core.api.constants.TextDrawCodes
import ch.leadrian.samp.kamp.core.api.data.Colors
import ch.leadrian.samp.kamp.core.api.entity.Player
import ch.leadrian.samp.kamp.core.api.service.PlayerTextDrawService
import ch.leadrian.samp.kamp.core.api.text.Text... | 1 | Kotlin | 1 | 7 | af07b6048210ed6990e8b430b3a091dc6f64c6d9 | 5,173 | kamp | Apache License 2.0 |
app/src/main/java/com/anip/swamphacks/SponsorActivity.kt | swamphacks | 112,042,979 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "JSON": 1, "Kotlin": 25, "XML": 53, "Java": 7} | package com.anip.swamphacks
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.util.Log
import android.view.MenuItem
import com.anip.swamphacks.adapter.RepresentativeAdapter
import com.anip.swamphacks.helper.DatabaseHelper
import com.anip.swamphacks.model.Reps
import com.anip.swamp... | 0 | Kotlin | 0 | 0 | 00be451eb7e8186021d49fa6fe2cf0920a75d216 | 2,169 | 2018-SwampHacks-Android | Apache License 2.0 |
net/craftventure/database/repository/WarpRepository.kt | Craftventure | 770,049,457 | false | {"Kotlin": 3656616, "Java": 684034} | package net.craftventure.database.repository
import net.craftventure.database.generated.cvdata.Cvdata
import net.craftventure.database.generated.cvdata.tables.daos.WarpDao
import net.craftventure.database.generated.cvdata.tables.pojos.Warp
import net.craftventure.database.generated.cvdata.tables.records.WarpRecord
imp... | 0 | Kotlin | 1 | 21 | 015687ff6687160835deacda57121480f542531b | 888 | open-plugin-parts | MIT License |
api/type/type-builders/src/main/kotlin/org/rsmod/api/type/builders/obj/ObjBuilderResolver.kt | rsmod | 293,875,986 | false | {"Kotlin": 1817705} | package org.rsmod.api.type.builders.obj
import jakarta.inject.Inject
import kotlin.collections.get
import org.rsmod.api.type.builders.TypeBuilder
import org.rsmod.api.type.builders.resolver.TypeBuilderResolver
import org.rsmod.api.type.builders.resolver.TypeBuilderResult
import org.rsmod.api.type.builders.resolver.Typ... | 0 | Kotlin | 64 | 95 | 3ba446ed70bcde0870ef431e1a8527efc6837d6c | 1,673 | rsmod | ISC License |
src/test/kotlin/io/github/projectmapk/jackson/module/kogera/_ported/test/github/Github42.kt | ProjectMapK | 488,347,906 | false | null | package io.github.projectmapk.jackson.module.kogera.zPorted.test.github
import com.fasterxml.jackson.databind.DeserializationFeature
import com.fasterxml.jackson.databind.JsonMappingException
import io.github.projectmapk.jackson.module.kogera.jacksonObjectMapper
import io.github.projectmapk.jackson.module.kogera.readV... | 8 | Kotlin | 3 | 89 | 7d9dbcd2fcdbc48631c01b51a919fe03ac6bb47e | 1,676 | jackson-module-kogera | Apache License 2.0 |
kotlin-mui-icons/src/main/generated/mui/icons/material/CloudUploadTwoTone.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/CloudUploadTwoTone")
@file:JsNonModule
package mui.icons.material
@JsName("default")
external val CloudUploadTwoTone: SvgIconComponent
| 12 | null | 5 | 983 | a99345a0160a80a7a90bf1adfbfdc83a31a18dd6 | 218 | kotlin-wrappers | Apache License 2.0 |
circuitx/effects/src/commonTest/kotlin/com/slack/circuitx/effects/ImpressionEffectTest.kt | slackhq | 523,011,227 | false | null | // Copyright (C) 2022 Slack Technologies, LLC
// SPDX-License-Identifier: Apache-2.0
package com.slack.circuitx.effects
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import app.... | 30 | null | 72 | 1,472 | 14900fea0d5075f0197b47791befdb422e700e8e | 5,521 | circuit | Apache License 2.0 |
samples/r2dbc-sample/src/main/kotlin/me/yaman/can/database/r2dbcsample/repository/CityRepository.kt | canyaman | 420,810,098 | false | {"Kotlin": 18620} | package me.yaman.can.database.r2dbcsample.repository
import me.yaman.can.database.r2dbcsample.entity.City
import org.springframework.data.repository.reactive.ReactiveCrudRepository
import org.springframework.stereotype.Repository
import reactor.core.publisher.Mono
@Repository
interface CityRepository: ReactiveCrudRep... | 1 | Kotlin | 2 | 8 | d0abfbe04223e80863cb83ccb1a0df3c3efb8ccb | 389 | spring-boot-webflux-h2-console | MIT License |
sdk/src/commonMain/kotlin/io/timemates/sdk/files/types/value/FileId.kt | timemates | 575,534,072 | false | null | package io.timemates.sdk.files.types.value
import io.timemates.sdk.common.constructor.CreationFailure
import io.timemates.sdk.common.constructor.Factory
@JvmInline
public value class FileId private constructor(public val string: String) {
public companion object : Factory<FileId, String>() {
override fun ... | 2 | Kotlin | 0 | 9 | ede0c538935ec8f2c452d7cfb4d6747a1a1c81c7 | 548 | sdk | MIT License |
src/main/kotlin/com/martmists/ynet/block/ConnectorBlock.kt | Flamarine | 387,081,749 | false | {"Kotlin": 59094} | package com.martmists.ynet.block
import com.martmists.ynet.YNetMod
import com.martmists.ynet.network.Network
import net.minecraft.block.Block
import net.minecraft.block.BlockState
import net.minecraft.block.ConnectingBlock
import net.minecraft.entity.LivingEntity
import net.minecraft.item.ItemPlacementContext
import n... | 0 | Kotlin | 0 | 0 | 4ecbd5b80a223c2b50a809da35d1f55f172d8626 | 5,012 | YNet | MIT License |
src/main/kotlin/eliminationTreiberStack/EliminationArray.kt | tepa46 | 763,784,345 | false | {"Kotlin": 10126} | package eliminationTreiberStack
import kotlin.random.Random
const val EXCHANGE_ATTEMPTS = 10
class EliminationArray<T>(private val capacity: Int) {
private val exchanger = Array(capacity) { _ -> Exchanger<T>(EXCHANGE_ATTEMPTS) }
fun visit(value: T?): Result<T?> {
val slot = Random.nextInt(capacity)
... | 0 | Kotlin | 0 | 0 | 079f4f68ec3dcbe982c3924d152356c711095d34 | 376 | parallel-programming | MIT License |
neopop/src/main/java/club/cred/neopop/popButton/PopDrawable.kt | CRED-CLUB | 498,671,676 | false | {"Kotlin": 135999} | /*
*
* * Copyright 2022 Dreamplug Technologies Private Limited
* * 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 r... | 5 | Kotlin | 33 | 275 | 67e62066f6152f83d3e429da1e0de9501e817a24 | 11,855 | neopop-android | Apache License 2.0 |
compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/prohibitUseSiteGetTargetAnnotationsOn.kt | JetBrains | 3,432,266 | false | null | // FIR_IDENTICAL
// LANGUAGE: +ProhibitUseSiteGetTargetAnnotations
annotation class Ann
<!REPEATED_ANNOTATION!>@get:Ann<!>
<!REPEATED_ANNOTATION!>@set:Ann<!>
@Ann
var mutableProperty: Int = 42
<!INAPPLICABLE_TARGET_ON_PROPERTY!>@get:Ann<!> get
<!INAPPLICABLE_TARGET_ON_PROPERTY!>@set:Ann<!> set
<!REPEATED_ANNO... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 684 | kotlin | Apache License 2.0 |
projects/core/src/main/kotlin/queue-jvm.kt | mplatvoet | 28,311,735 | false | null | /*
* Copyright (c) 2015 Mark Platvoet<mplatvoet@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy,... | 10 | null | 31 | 659 | 36ff896ed8ea80edbf28706a0f50b6bac3777d78 | 3,602 | kovenant | MIT License |
zircon.jvm/src/main/kotlin/org/hexworks/zircon/api/Modifiers.kt | objectprogr | 158,966,930 | true | {"Kotlin": 1031505, "Java": 16867, "CSS": 1525} | package org.hexworks.zircon.api
import org.hexworks.zircon.api.builder.modifier.BorderBuilder
import org.hexworks.zircon.api.modifier.Border
import org.hexworks.zircon.api.modifier.Glow
import org.hexworks.zircon.api.modifier.Modifier
import org.hexworks.zircon.api.modifier.SimpleModifiers.*
import kotlin.jvm.JvmOverl... | 0 | Kotlin | 0 | 0 | ba53ee6442988ee0f047c43636dfd711f374093b | 1,168 | zircon | MIT License |
src/main/kotlin/io/github/hc1839/crul/math/stat/fitting/LossStatistic.kt | hc1839 | 724,383,874 | false | {"Kotlin": 541316} | package io.github.hc1839.crul.math.stat.fitting
import org.apache.commons.math3.stat.descriptive.UnivariateStatistic
/**
* Statistic of the values of a loss function.
*/
interface LossStatistic : UnivariateStatistic {
/**
* Loss function.
*
* @param predicted
* Predicted value.
... | 0 | Kotlin | 0 | 0 | 736b3c8377ca2f2f4a4e86fde6312e50b7ea2505 | 2,435 | crul | Apache License 2.0 |
misk-crypto/src/main/kotlin/misk/crypto/pgp/internal/PgpEncrypterProvider.kt | cashapp | 113,107,217 | false | {"Kotlin": 3843790, "TypeScript": 232251, "Java": 83564, "JavaScript": 5073, "Shell": 3462, "HTML": 1536, "CSS": 58} | package misk.crypto.pgp.internal
import com.google.inject.Provider
import misk.crypto.KeyAlias
import misk.crypto.KeyReader
import misk.crypto.PgpEncrypterManager
import misk.crypto.pgp.PgpEncrypter
import misk.crypto.pgp.RealPgpEncrypter
import org.bouncycastle.openpgp.PGPPublicKey
import org.bouncycastle.openpgp.PGP... | 169 | Kotlin | 169 | 400 | 13dcba0c4e69cc2856021270c99857e7e91af27d | 1,430 | misk | Apache License 2.0 |
app/src/main/java/com/boringdroid/systemui/utils/IconPackHelper.kt | openfde | 777,502,927 | false | {"Kotlin": 302347, "Java": 116706, "C++": 8520, "CMake": 1647, "AIDL": 1167} | package com.boringdroid.systemui.utils
import android.annotation.SuppressLint
import android.content.ComponentName
import android.content.Context
import android.content.SharedPreferences
import android.content.pm.ActivityInfo
import android.content.pm.PackageManager
import android.content.res.Resources
import android.... | 0 | Kotlin | 0 | 0 | 0e0959b2ce3af98bbab2bbdbca509f0f66820e47 | 14,667 | boringdroidsystemui | Apache License 2.0 |
floating/src/main/java/com/zj/floating/FloatingMenu.kt | zhujiang521 | 265,420,729 | false | null | package com.zj.floating
import android.animation.Animator
import android.animation.AnimatorListenerAdapter
import android.animation.AnimatorSet
import android.animation.ObjectAnimator
import android.annotation.TargetApi
import android.content.Context
import android.content.res.ColorStateList
import android.graphics.Bi... | 6 | null | 218 | 977 | 11111a15f4fa9f43668b4f6356074b531f134baf | 18,975 | PlayAndroid | MIT License |
libtesting-navigation-core-utils/src/main/java/com/mapbox/navigation/testing/utils/http/MockDirectionsRequestHandler.kt | mapbox | 87,455,763 | false | {"Kotlin": 9692008, "Python": 65081, "Java": 36829, "HTML": 17811, "Makefile": 9840, "Shell": 7129} | package com.mapbox.navigation.instrumentation_tests.utils.http
import android.util.Log
import com.mapbox.api.directions.v5.models.RouteOptions
import com.mapbox.geojson.Point
import com.mapbox.navigation.testing.ui.http.BaseMockRequestHandler
import com.mapbox.turf.TurfConstants
import com.mapbox.turf.TurfMeasurement
... | 508 | Kotlin | 319 | 621 | ad73c6011348cb9b24b92a369024ca06f48845ab | 4,059 | mapbox-navigation-android | Apache License 2.0 |
lib/src/test/kotlin/com/maltaisn/recurpicker/RecurrenceFinderTest.kt | cafewill | 239,573,819 | true | {"Kotlin": 216978} | /*
* Copyright 2019 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | null | 0 | 0 | 8780cd543fae6de821d00e9958ae79796438f316 | 17,259 | recurpickerlib | Apache License 2.0 |
app/src/main/java/com/irvan/movieku/database/dao/GenreDao.kt | asaldaftar | 346,210,563 | false | null | package com.irvan.movieku.database.dao
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.irvan.movieku.mvvm.models.GenreModel
@Dao
interface GenreDao {
@Insert(onConflict = OnConflictStrategy.REPLA... | 0 | Kotlin | 0 | 0 | 2044238396e9283afd7c802c0a30f849bfd51ef5 | 822 | MovieKu | MIT License |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/DiceAlt.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
i... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,467 | icons | MIT License |
Mobile/Demos/TicTacToe/android/app/src/main/java/palbp/laboratory/demos/tictactoe/game/play/adapters/MatchFirebase.kt | palbp | 463,200,783 | false | {"Kotlin": 793883, "C": 16710, "Assembly": 891, "Dockerfile": 610, "Swift": 594, "Makefile": 383} | package palbp.laboratory.demos.tictactoe.game.play.adapters
import com.google.firebase.firestore.DocumentSnapshot
import com.google.firebase.firestore.FirebaseFirestore
import com.google.firebase.firestore.ListenerRegistration
import kotlinx.coroutines.channels.ProducerScope
import kotlinx.coroutines.channels.awaitClo... | 1 | Kotlin | 0 | 5 | 9067753258a6a71bcd79cd59401edd58df66db71 | 5,417 | laboratory | MIT License |
app/src/main/java/ir/esmaeili/stopcar/models/dao/CarsDao.kt | BasetEsmaeili | 250,985,369 | false | null | package ir.esmaeili.stopcar.models.dao
import androidx.room.*
import io.reactivex.Flowable
import ir.esmaeili.stopcar.models.Car
@Dao
interface CarsDao {
@Insert
fun insert(car: Car)
@Query("SELECT * FROM cars")
fun getCars(): Flowable<List<Car>>
@Query("SELECT COUNT(car_id) FROM cars")
fun ... | 1 | Kotlin | 3 | 8 | 8287613ca3afb090f52e9bed02671a0375d1c3d9 | 487 | StopCar-Redesigned | Apache License 2.0 |
dcache/src/main/java/dora/cache/data/fetcher/IListFlowDataFetcher.kt | dora4 | 378,306,065 | false | null | package dora.cache.data.fetcher
import dora.cache.data.page.IDataPager
import dora.http.DoraListCallback
import kotlinx.coroutines.flow.StateFlow
/**
* 从[kotlinx.coroutines.flow.StateFlow]数据载体中直接读取内存数据的集合数据抓取器。
*/
interface IListFlowDataFetcher<M> {
/**
* 清空flow data的数据。
*/
fun clearListData()
... | 2 | null | 3 | 28 | 4afa8bc6195b17a3af790c286966a38ae114d7f1 | 740 | dcache-android | MIT License |
src/main/java/com/cumulocity/client/model/ApplicationSettings.kt | SoftwareAG | 525,378,320 | false | {"Kotlin": 769226} | // Copyright (c) 2014-2023 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
// Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Softwa... | 2 | Kotlin | 1 | 3 | 4c09a39aced1c5fb0677eb2a099a2dcda466f4d4 | 1,207 | cumulocity-clients-kotlin | Apache License 2.0 |
src/jvmMain/kotlin/dev/zacsweers/Platform.kt | ZacSweers | 288,008,412 | false | null | package dev.zacsweers
import androidx.compose.runtime.Composable
import com.mikepenz.markdown.compose.LocalMarkdownColors
import com.mikepenz.markdown.compose.LocalMarkdownTypography
import com.mikepenz.markdown.compose.Markdown
import com.tickaroo.tikxml.converter.htmlescape.StringEscapeUtils
import io.ktor.client.Ht... | 6 | null | 1 | 15 | b5598b9af60512b2b9fbcb3fb0d5b4863ca62cc8 | 1,714 | ZacSweers | Apache License 2.0 |
app-tv/src/main/kotlin/app/ss/tv/presentation/player/VideoPlayerActivity.kt | Adventech | 65,243,816 | false | {"Kotlin": 1669895, "Java": 17228, "CSS": 9010, "JavaScript": 7718, "HTML": 2229, "Shell": 544} | /*
* Copyright (c) 2023. Adventech <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge... | 7 | Kotlin | 49 | 171 | 2cc105ea76c7fdf979b0b6ee1098f413c1aa009d | 3,736 | sabbath-school-android | MIT License |
src/commonTest/kotlin/testfixture.kt | jillesvangurp | 271,782,317 | false | null | import search.Document
import search.DocumentIndex
import search.TextFieldIndex
import kotlin.random.Random
data class SampleObject(
val title: String,
val description: String,
val id: String = Random.nextLong(0, Long.MAX_VALUE).toString()
) {
fun toDoc() = Document(
id, mapOf(
"tit... | 0 | Kotlin | 1 | 3 | 6f576df774fc9967be8ae3e58746da7d3480ad9a | 2,297 | ktjsearch | MIT License |
app/src/main/java/dev/tcode/thinmp/view/cell/ShortcutCellView.kt | tcode-dev | 392,735,283 | false | {"Kotlin": 248408} | package dev.tcode.thinmp.view.cell
import android.net.Uri
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Text
import androidx.compose.material3.MaterialTheme
import androidx.c... | 0 | Kotlin | 0 | 7 | ecd7a7585788d0d4355dbfa596aa56f27dec0087 | 2,356 | ThinMP_Android_Kotlin | MIT License |
src/main/kotlin/de/bund/digitalservice/useid/widget/WidgetController.kt | digitalservicebund | 475,364,510 | false | null | package de.bund.digitalservice.useid.widget
import de.bund.digitalservice.useid.config.REQUEST_ATTR_CSP_NONCE
import de.bund.digitalservice.useid.tenant.REQUEST_ATTR_TENANT
import de.bund.digitalservice.useid.tenant.Tenant
import de.bund.digitalservice.useid.tracking.matomo.MatomoEvent
import io.micrometer.core.annota... | 4 | Kotlin | 1 | 6 | af592ec6c839a4b4aa9912973028efe4a774fc6f | 6,274 | useid-backend-service | MIT License |
app/src/main/java/com/yancy/imageutils/test/Test01.kt | Reign9201 | 220,896,678 | false | null | package com.yancy.imageutils.test
/**
* 说明:
* @author Yancy
* @date 2019/11/11
*/
fun main(){
""?.apply {
print(999)
}
} | 3 | C++ | 13 | 56 | 5774f112a0e79560ed8e0a022bc7dca44d25117e | 142 | ImageUtils | Apache License 2.0 |
app/src/main/java/liou/rayyuan/ebooksearchtaiwan/utils/FragmentArgumentsDelegate.kt | YuanLiou | 111,275,765 | false | {"Kotlin": 199712, "Shell": 1384} | package liou.rayyuan.ebooksearchtaiwan.utils
import android.os.Bundle
import androidx.core.os.bundleOf
import androidx.fragment.app.Fragment
import kotlin.properties.ReadWriteProperty
import kotlin.reflect.KProperty
class FragmentArgumentsDelegate<T : Any> : ReadWriteProperty<Fragment, T> {
var value: T? = null
... | 1 | Kotlin | 4 | 40 | d767ad0d5b778b14fc68809e265bec5633b2aaed | 1,157 | TaiwanEbookSearch | MIT License |
adaptive-kotlin-plugin/testData/box/base/delegated/basic.kt | spxbhuhb | 788,711,010 | false | {"Kotlin": 1058159, "CSS": 47382, "Java": 18012, "HTML": 2759, "JavaScript": 896} | /*
* Copyright © 2020-2021, Simplexion, Hungary and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package stuff
import hu.simplexion.adaptive.base.*
import hu.simplexion.adaptive.base.registry.*
import hu.simplexion.adaptive.base.testing.*
@Delegated
fun Adaptive.text() {
manua... | 1 | Kotlin | 0 | 0 | 75ec9b0c6a9f89359a08ce992affab493475ca4c | 2,442 | adaptive | Apache License 2.0 |
app/src/main/java/com/faldez/shachi/data/model/PostTag.kt | faldez | 457,580,136 | false | null | package com.faldez.shachi.data.model
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Fts4
import androidx.room.FtsOptions
@Fts4(tokenizer = FtsOptions.TOKENIZER_UNICODE61, tokenizerArgs = ["tokenchars='"])
@Entity(tableName = "post_tag")
data class PostTag(
@ColumnInfo(name = "pos... | 8 | Java | 1 | 20 | 6491f53f06ae2aeb6cd786fb9f4fe7cb21958540 | 422 | shachi | Apache License 2.0 |
core/src/main/kotlin/GitInfo.kt | 4ds23d | 742,029,131 | false | {"Kotlin": 16997, "Shell": 1133} | package org.example
import org.example.commands.*
import org.example.commands.BranchFilter
import org.example.commands.FindBranchesToMerge
import org.example.commands.FindUnmergeCommits
import org.example.commands.MergeCommand
import org.example.ticket.JiraTicketParser
class GitInfo(private val settings: GitSettings)... | 0 | Kotlin | 0 | 0 | 964ee9c88892f4b36d72524c40229e604e8cdf20 | 2,792 | git-release | MIT License |
app/src/main/java/com/mvk/galleryobvious/ui/detail/utils/FullScreenClickListener.kt | MVK059 | 362,666,215 | false | null | package com.mvk.galleryobvious.ui.detail.utils
/**
* Interface to handle navigation to full screen
*/
interface FullScreenClickListener {
/**
* Handles full screen button click
*
* @param viewPagerPosition View pager position of the full screen image
*/
fun onClick(viewPagerPosition: Int... | 0 | Kotlin | 0 | 0 | 55fa85cfdf9df59ce269d6e4fb9f7fd6ac7f0faa | 323 | Gallery-Obvious | MIT License |
Yum-Client/app/src/main/java/com/anbui/yum/presentation/recipe/component/HeaderItem.kt | AnBuiii | 608,489,464 | false | null | package com.anbui.yum.presentation.recipe.component
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.material.icons.filled.Share
import androidx.c... | 0 | Kotlin | 0 | 3 | 94a9344aeb57403214315191304b81d15d584863 | 1,292 | Yum | MIT License |
src/main/java/org/eln2/serverage/aws/Lambda.kt | age-series | 436,843,388 | false | {"Kotlin": 46365} | package org.eln2.serverage.aws
import org.eln2.serverage.LOGGER
import software.amazon.awssdk.auth.credentials.AwsBasicCredentials
import software.amazon.awssdk.auth.credentials.StaticCredentialsProvider
import software.amazon.awssdk.core.SdkBytes
import software.amazon.awssdk.regions.Region
import software.amazon.aws... | 9 | Kotlin | 4 | 4 | a931be8affe989f683dc4aa75268fa98448461d0 | 14,070 | ServerAge | MIT License |
chapter-11/src/main/kotlin/password_generator/Digits.kt | erdemserhat | 849,476,424 | false | {"Kotlin": 64488, "Java": 629} | package com.erdemserhat.passwnote.password_generator
enum class Digits(val content: String) {
NUMERICAL("0123456789"),
UPPER_CHARACTERISTIC("ABCDEFGHIJKLMNOPQRSTUVWXYZ"),
LOWER_CHARACTERISTIC("abcdefghijklmnopqrstuvwxyz"),
SPECIAL_CHARACTERISTIC("!#\$%&'()*+,-./:;<=>?@[]^_`{|}~")
} | 0 | Kotlin | 0 | 0 | 8feaef58796d650e2f6c9dc659ec022c93fe86ab | 301 | Kotlin-Essentials-Notes | MIT License |
src/main/kotlin/uk/gov/gdx/datashare/services/PrisonerApiService.kt | alphagov | 549,031,617 | false | null | package uk.gov.gdx.datashare.services
import com.amazonaws.xray.spring.aop.XRayEnabled
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
import org.springframework.http.HttpStatus
import org.springframework.stereotype.Service
import org.springframework.web.reactive.function.client.WebClient... | 2 | Kotlin | 0 | 9 | 999d55ced90e778afe0d7ab0ddbc2ae9201b6c82 | 1,153 | gdx-data-share-poc | MIT License |
main/src/test/java/com/work/theIsle/JvmName.kt | Tiannuo | 498,562,269 | false | {"Kotlin": 218272, "Java": 43175} | @file:JvmName("Hero")
package com.work.theIsle
/**
* @Author TIKOU
* @Date 2022/8/15-12:54
* @Email <EMAIL> & <EMAIL>
* @Description
*/
fun testName() {
} | 0 | Kotlin | 2 | 4 | bf02c12830d80c6bcf7441c50c3f685d322fdf53 | 161 | AndroidWork | Apache License 2.0 |
app/src/main/java/com/example/mazena/quicknotes/editNote/EditNoteContract.kt | supermzn | 118,970,376 | false | null | package com.example.mazena.quicknotes.editNote
import com.example.mazena.quicknotes.data.Note
interface EditNoteContract {
interface View {
fun displayNote(note: Note)
}
interface Presenter {
fun loadNote(id: Int)
fun saveNote(updatedTitle: String, updatedDescription: String)
... | 0 | Kotlin | 0 | 0 | 4e415856305047760a98dbee7530ac8bc84a87ae | 326 | quick-notes | MIT License |
domain/src/main/java/com/anytypeio/anytype/domain/launch/GetDefaultObjectType.kt | anyproto | 647,371,233 | false | null | package com.anytypeio.anytype.domain.launch
import com.anytypeio.anytype.core_models.DVFilter
import com.anytypeio.anytype.core_models.DVFilterCondition
import com.anytypeio.anytype.core_models.Id
import com.anytypeio.anytype.core_models.NO_VALUE
import com.anytypeio.anytype.core_models.ObjectType
import com.anytypeio... | 45 | null | 43 | 517 | b0bc38dad1f7719dabae9f7b642142df3856bad7 | 6,072 | anytype-kotlin | RSA Message-Digest License |
src/main/kotlin/com/aeolus/AeolusServiceApplication.kt | team-aeolus | 668,382,094 | false | null | package com.aeolus
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.scheduling.annotation.EnableScheduling
@SpringBootApplication
@EnableScheduling
class AeolusServiceApp... | 0 | Kotlin | 0 | 0 | be9bca77f166baa339962c6f3264beb164f91dfb | 504 | aeolus-service | MIT License |
app/src/main/java/se/insektionen/songbook/ui/SongbookListAdapter.kt | wsv-accidis | 48,762,012 | false | null | package se.insektionen.songbook.ui
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.BaseAdapter
import android.widget.Filter
import android.widget.Filterable
import android.widget.TextView
import androidx.core.content.getSyst... | 1 | Kotlin | 6 | 5 | 1af881525ae108795d3e31fac99ce3ba91613b0c | 4,512 | in-sangbok | Apache License 2.0 |
spesialist-selve/src/main/kotlin/no/nav/helse/modell/kommando/OppdaterSnapshotUtenÅLagreWarningsCommand.kt | navikt | 244,907,980 | false | null | package no.nav.helse.modell.kommando
import no.nav.helse.modell.SnapshotDao
import no.nav.helse.modell.vedtak.snapshot.SpeilSnapshotRestClient
import org.slf4j.LoggerFactory
internal class OppdaterSnapshotUtenÅLagreWarningsCommand(
private val speilSnapshotRestClient: SpeilSnapshotRestClient,
private val snap... | 2 | Kotlin | 0 | 0 | e221266ef6c7edfd3335717925094aea11385c60 | 936 | helse-spesialist | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.