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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
komga/src/main/kotlin/org/gotson/komga/interfaces/sse/dto/ThumbnailBookSseDto.kt | gotson | 201,228,816 | false | null | package org.gotson.komga.interfaces.sse.dto
data class ThumbnailBookSseDto(
val bookId: String,
val seriesId: String,
)
| 44 | Kotlin | 83 | 1,109 | cc6f4228bae1b6628da0c6bb4a1a5c6d681735cc | 125 | komga | MIT License |
gallery-app/src/commonMain/kotlin/io/ashdavies/gallery/CameraView.kt | ashdavies | 36,688,248 | false | null | package io.ashdavies.gallery
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
@Composable
public expect fun CameraView(
modifier: Modifier = Modifier,
onCapture: (Uri) -> Unit,
)
public expect class Uri
| 21 | Kotlin | 33 | 111 | f25553ba4928fef6b4b2521fb661ceefedf83ae2 | 244 | playground.ashdavies.dev | Apache License 2.0 |
src/test/kotlin/com/faendir/zachtronics/bot/ApplicationTest.kt | F43nd1r | 290,065,466 | false | null | /*
* Copyright (c) 2021
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writ... | 7 | Java | 6 | 4 | f10fb507c64cfd9af5c3c5f655336ad0610facec | 1,040 | zachtronics-leaderboard-bot | Apache License 2.0 |
code/android/app/src/main/java/isel/ps/classcode/domain/LeaveClassroomRequest.kt | i-on-project | 607,828,295 | false | null | package isel.ps.classcode.domain
import isel.ps.classcode.domain.deserialization.ClassCodeLeaveClassroomRequestDeserialization
data class LeaveClassroomRequest(
val leaveClassroom: LeaveClassroom,
val leaveTeamRequests: List<LeaveTeamWithRepoName>,
) {
constructor(deserialization: ClassCodeLeaveClassroomR... | 6 | Kotlin | 0 | 2 | 8b8f7d335376ba6b816cba4952003f3fb10a6520 | 565 | repohouse | Apache License 2.0 |
brd-android/app/src/main/java/com/breadwallet/ui/profile/ProfileAdapter.kt | fabriik | 489,117,365 | false | null | package com.breadwallet.ui.profile
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.breadwallet.R
import com.breadwallet.databinding.ListItemProfileBinding
class ProfileAdapter(
private val items: List<ProfileItem... | 2 | Kotlin | 1 | 1 | 8894f5c38203c64e48242dae9ae9344ed4b2a61f | 1,306 | wallet-android | MIT License |
src/main/java/com/kennycason/call/commands/CommandRunner.kt | kennycason | 59,196,095 | false | null | package com.kennycason.call.commands
import com.kennycason.call.CommandLibrary
import com.kennycason.call.commands.internal.*
import kotlin.system.exitProcess
/**
* Created by kenny on 5/18/16.
*/
class CommandRunner {
val library = CommandLibrary()
val internalCommands = mapOf(
Pair("add", Add... | 2 | Kotlin | 0 | 0 | bdd2e3e6fd7664b25680462d5a956fd31466b87d | 1,857 | call | MIT License |
apprating/src/main/java/com/hosseiniseyro/apprating/C.kt | hosseiniSeyRo | 231,056,398 | false | null | /*
Copyright 2017 StepStone Services
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 writing, softw... | 9 | null | 87 | 9 | ec10d958a41a2c3d58fcda5118f00cc2c18075aa | 999 | android-app-rating | Apache License 2.0 |
army-knife-timber/src/main/java/com/eaglesakura/armyknife/timber/ConsoleTree.kt | eaglesakura | 140,512,537 | false | {"Kotlin": 442196, "Ruby": 2418, "Dockerfile": 2227, "Java": 678} | package com.eaglesakura.armyknife.timber
import android.util.Log
import timber.log.Timber
/**
* Simple console(println) out tree.
*/
class ConsoleTree : Timber.Tree() {
override fun log(priority: Int, tag: String?, message: String, t: Throwable?) {
Log.println(priority, tag, message)
}
} | 3 | Kotlin | 0 | 0 | 6be9a21c69e9f01654e4586615124363d82908a9 | 308 | army-knife | MIT License |
app/src/main/java/com/lazyian/app/TestAdapter.kt | Lazy-Ian | 736,475,348 | false | {"Kotlin": 14538} | package com.lazyian.app
import android.view.LayoutInflater
import android.view.ViewGroup
import com.lazyian.app.databinding.ItemBaseBindBinding
import com.lazyian.tool.base.adapter.BaseBindAdapter
import com.lazyian.tool.base.adapter.holder.BaseViewHolder
/**
* Created by Ian on 2023/12/28
* Email: yixin0212@qq.com... | 0 | Kotlin | 0 | 0 | d5c0306d337e83cbea522f5f5971766b5b178eb3 | 1,162 | lazy-tool | Apache License 2.0 |
app/src/test/java/com/duckduckgo/app/statistics/AtbInitializerTest.kt | duckduckgo | 78,869,127 | false | null | /*
* Copyright (c) 2019 DuckDuckGo
*
* 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 ... | 62 | null | 868 | 3,302 | 9b7fda539c6d1c323a7cd5542767c4c492e628c8 | 3,482 | Android | Apache License 2.0 |
app/app/src/main/java/com/example/genshin_wiki/database/entities/ElementEntity.kt | SlavaPerryAyeKruchkovenko | 600,055,723 | false | null | package com.example.genshin_wiki.database.entities
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
data class ElementEntity(
@ColumnInfo(name = "element_id")@PrimaryKey val id: String,
@ColumnInfo(name = "element_name") val name: String,
@ColumnInfo(name... | 0 | Kotlin | 0 | 0 | bd98b658211d3a73f12c96a356af3ad95f18ddd4 | 359 | Genshin_Wiki | MIT License |
src/Utils.kt | JIghtuse | 572,807,913 | false | null | import java.io.File
import java.math.BigInteger
import java.security.MessageDigest
fun readText(name: String) = File("src", "$name.txt")
.readText()
fun readLine(name: String) = File("src", "$name.txt")
.readLines().first()
/**
* Reads lines from the given input txt file.
*/
fun readInput(name: String) = F... | 0 | Kotlin | 0 | 0 | 8f33c74e14f30d476267ab3b046b5788a91c642b | 895 | aoc-2022-in-kotlin | Apache License 2.0 |
src/main/kotlin/com/alcosi/nft/apigateway/service/gateway/filter/security/validation/attestation/GoogleAttestationOnlineRequestValidationComponent.kt | alcosi | 713,491,219 | false | {"Kotlin": 607536, "HTML": 4727, "PLpgSQL": 1275, "JavaScript": 1127, "CSS": 824} | /*
* Copyright (c) 2023 Alcosi Group Ltd. and affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 0 | Kotlin | 0 | 0 | ffa0409d568c8e4e05ee6aa1c3b83fd2c10954ca | 9,301 | alcosi_blockchain_api_gateway | Apache License 2.0 |
app/src/main/kotlin/com/asadmshah/livecolorpicker/screens/ActivityModule.kt | asadmshah | 90,253,982 | false | null | package com.asadmshah.livecolorpicker.screens
import android.content.Context
import com.asadmshah.livecolorpicker.scopes.ActivityScope
import com.asadmshah.livecolorpicker.widgets.BaseActivity
import dagger.Module
import dagger.Provides
@Module
class ActivityModule(private val activity: BaseActivity) {
@Provides... | 0 | Kotlin | 0 | 1 | 199b2f94e7a9dec6492cbef6dae33236c1d9eb53 | 458 | LiveColorPicker | Apache License 2.0 |
app/src/main/java/fr/free/nrw/commons/customselector/helper/CustomSelectorConstants.kt | commons-app | 42,032,884 | false | null | package fr.free.nrw.commons.customselector.helper
/**
* Stores constants related to custom image selector
*/
object CustomSelectorConstants {
const val BUCKET_ID = "bucket_id"
const val TOTAL_SELECTED_IMAGES = "total_selected_images"
const val PRESENT_POSITION = "present_position"
const val NEW_SELE... | 571 | null | 1179 | 997 | 93f1e1ec299a78dac8a013ea21414272c1675e7b | 483 | apps-android-commons | Apache License 2.0 |
src/main/kotlin/org/generousg/kaidencraft/ServerProxy.kt | wingertge | 95,063,070 | false | null | package org.generousg.kaidencraft
class ServerProxy : CommonProxy() {
} | 0 | Kotlin | 0 | 0 | 668ef71bbd35edd98dcaad6624a357302f0744c3 | 73 | KaidenCraft | MIT License |
analysis/analysis-api/testData/components/compilerPluginGeneratedDeclarationsProvider/compilerPluginGeneratedDeclarations/topLevelFunction_nestedPackage.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... | // WITH_FIR_TEST_COMPILER_PLUGIN
package test.nested
@org.jetbrains.kotlin.plugin.sandbox.DummyFunction
class Test
| 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 116 | kotlin | Apache License 2.0 |
app/src/main/java/com/example/composecontacts/ui/item/ItemDetailsScreen.kt | TonyGnk | 777,370,504 | false | {"Kotlin": 61950} | package com.example.composecontacts.ui.item
import android.graphics.BitmapFactory
import androidx.annotation.StringRes
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.slideInVertically
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
... | 0 | Kotlin | 0 | 0 | 42bbe3eccca5939269accd91cf144115227fcee8 | 8,933 | compose-contacts | MIT License |
app/src/main/java/com/example/sleeptracker/MyApplication.kt | FaiezeneZ | 620,835,302 | false | null | package com.example.sleeptracker
import android.app.Application
class MyApplication : Application() {
val db by lazy { AppDatabase.getInstance(this) }
} | 1 | Kotlin | 0 | 0 | 95812f148652ea3f62b4029a070cea37f9817864 | 158 | SleepTracker | Apache License 2.0 |
src/main/kotlin/net/casual/arcade/border/state/MovingCenterBorderState.kt | CasualUHC | 621,955,934 | false | {"Kotlin": 404322, "Java": 61560} | package net.casual.arcade.border.state
import net.casual.arcade.border.ArcadeBorder
import net.minecraft.util.Mth
public class MovingCenterBorderState(
private val border: ArcadeBorder,
private val centerX: Double,
private val centerZ: Double,
private val targetCenterX: Double,
private val targetC... | 0 | Kotlin | 1 | 1 | 78b4d3fc5192d6416c1f9bcfdf16c8be70a9fb60 | 1,337 | Arcade | MIT License |
sample-app/src/main/java/com/mohsenoid/closetome/sample/MainActivity.kt | mohsenoid | 258,479,070 | false | null | /*
* Copyright 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 2 | null | 1 | 11 | aba1947b0d614fd3969db884763c0980feaa13b5 | 6,839 | close-to-me | Apache License 2.0 |
Mobile/Android/app/src/main/java/com/utn/frba/desarrollomobile/hunter/viewmodel/CreateGameViewModel.kt | UTN-FRBA-Mobile | 294,838,780 | false | {"Swift": 100561, "Kotlin": 99563, "C#": 34727, "Dockerfile": 1390, "Ruby": 470} | package com.utn.frba.desarrollomobile.hunter.viewmodel
import android.graphics.Bitmap
import android.location.Location
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.utn.frba.desarrollomobile.hunter.service.models.Game
class CreateGameViewModel : ViewModel() {
private va... | 0 | Swift | 0 | 0 | 9531a0a1d263fc0af1c168e55e3d4b2a2f32d1d1 | 1,617 | Hunter | MIT License |
frontend/shared/src/commonMain/kotlin/response/AuthResponses.kt | jjohn49 | 780,458,251 | false | {"Kotlin": 38502, "Swift": 2938} | package response
import io.ktor.http.content.NullBody
import kotlinx.serialization.Serializable
import requests.LogInRequest
import requests.RegisterUserRequest
@Serializable
data class RegisterResponse(
override val success: Boolean,
override val body: String?,
override val message: String,
override ... | 0 | Kotlin | 0 | 0 | 4ac492285a3120ac92e2dac9203086c3bb9c1778 | 699 | NutraLog | MIT License |
forminputkotlin/src/main/java/com/omarshehe/forminputkotlin/utils/FormInputContract.kt | OmarShehe | 209,545,533 | false | null | package com.omarshehe.forminputkotlin.utils
interface FormInputContract {
interface Presenter {
/**
* Validate email address
*/
fun isValidEmail(email: CharSequence): Boolean
/**
* Validate phone number
*/
fun isValidPhoneNumber(phoneNumber: Char... | 1 | null | 16 | 41 | 5559355cd184b33dd12a4ae3193b64c19734cd29 | 674 | FormInputs | MIT License |
Example/PrebidDemoKotlin/src/main/java/org/prebid/mobile/prebidkotlindemo/CustomApplication.kt | prebid | 96,361,227 | false | null | /*
* Copyright 2018-2019 Prebid.org, 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 ... | 15 | null | 52 | 33 | 6e6af4be2db961a953a1ed6ca8cef2aa780434c7 | 3,324 | prebid-mobile-android | Apache License 2.0 |
src/main/kotlin/de/eternalwings/bukkit/konversation/PromptBuilder.kt | kumpelblase2 | 413,042,405 | false | null | package de.eternalwings.bukkit.konversation
import de.eternalwings.bukkit.konversation.prompts.SimpleBoolPrompt
import de.eternalwings.bukkit.konversation.prompts.SimpleChainableConvertingPrompt
import de.eternalwings.bukkit.konversation.prompts.SimpleInputPrompt
import de.eternalwings.bukkit.konversation.prompts.Simp... | 0 | Kotlin | 0 | 2 | b2b0ff9cc7616cdc7e93fc7a462e09c4d4a2658d | 12,646 | konversation | MIT License |
src/test/kotlin/no/nav/tilleggsstonader/soknad/soknad/SøknadControllerTest.kt | navikt | 681,542,878 | false | {"Kotlin": 213072, "HTML": 34620, "Shell": 913, "Dockerfile": 171} | package no.nav.tilleggsstonader.soknad.soknad
import com.fasterxml.jackson.module.kotlin.readValue
import io.mockk.every
import no.nav.tilleggsstonader.kontrakter.felles.ObjectMapperProvider.objectMapper
import no.nav.tilleggsstonader.kontrakter.felles.Stønadstype
import no.nav.tilleggsstonader.libs.test.fnr.FnrGenera... | 2 | Kotlin | 0 | 0 | c54960a9becfc29c4564df80b81c57c44861c58c | 4,505 | tilleggsstonader-soknad-api | MIT License |
app/src/main/java/vn/loitp/app/activity/customviews/layout/swipebacklayout/SwipeBackLayoutActivity.kt | tplloi | 126,578,283 | false | null | package vn.loitp.app.activity.customviews.layout.swipebacklayout
import android.os.Bundle
import android.view.View
import android.widget.RadioGroup
import com.annotation.IsFullScreen
import com.annotation.IsSwipeActivity
import com.annotation.LogTag
import com.core.base.BaseFontActivity
import com.core.utilities.LActi... | 0 | Kotlin | 0 | 6 | 55fb45b20a95b924d74f364ecad5101235eba7b8 | 2,563 | basemaster | Apache License 2.0 |
src/main/kotlin/icu/windea/pls/localisation/codeInsight/ParadoxLocalisationDeclarationRangeHandler.kt | DragonKnightOfBreeze | 328,104,626 | false | null | package icu.windea.pls.localisation.codeInsight
import com.intellij.codeInsight.hint.*
import com.intellij.openapi.util.*
import icu.windea.pls.localisation.psi.*
/**
* 本地化(属性)的上下文信息(如:`l_english:`)。
*/
class ParadoxLocalisationDeclarationRangeHandler: DeclarationRangeHandler<ParadoxLocalisationPropertyList> {
ove... | 2 | null | 5 | 41 | 99e8660a23f19642c7164c6d6fcafd25b5af40ee | 448 | Paradox-Language-Support | MIT License |
src/main/kotlin/icu/windea/pls/localisation/codeInsight/ParadoxLocalisationDeclarationRangeHandler.kt | DragonKnightOfBreeze | 328,104,626 | false | null | package icu.windea.pls.localisation.codeInsight
import com.intellij.codeInsight.hint.*
import com.intellij.openapi.util.*
import icu.windea.pls.localisation.psi.*
/**
* 本地化(属性)的上下文信息(如:`l_english:`)。
*/
class ParadoxLocalisationDeclarationRangeHandler: DeclarationRangeHandler<ParadoxLocalisationPropertyList> {
ove... | 2 | null | 5 | 41 | 99e8660a23f19642c7164c6d6fcafd25b5af40ee | 448 | Paradox-Language-Support | MIT License |
security/src/main/kotlin/top/bettercode/summer/security/repository/StoreTokenRepository.kt | top-bettercode | 387,652,015 | false | {"Kotlin": 2939064, "Java": 24119, "JavaScript": 22541, "CSS": 22336, "HTML": 15833} | package top.bettercode.summer.security.repository
import top.bettercode.summer.security.token.StoreToken
import top.bettercode.summer.security.token.TokenId
interface StoreTokenRepository {
fun save(storeToken: StoreToken)
fun remove(storeToken: StoreToken)
fun remove(tokenId: TokenId)
fun remove(toke... | 0 | Kotlin | 0 | 1 | d07ed7250e6dcdbcce51f27f5f22602e9c222b3c | 513 | summer | Apache License 2.0 |
mvi/src/main/kotlin/com/yerastov/assignment/pokedex/mvi/viewModel/BaseViewModel.kt | alterpie | 592,035,814 | false | null | package com.yerastov.assignment.pokedex.mvi.viewModel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.yerastov.assignment.pokedex.mvi.Feature
import com.yerastov.assignment.pokedex.mvi.UiEffect
import com.yerastov.assignment.pokedex.mvi.UiEvent
import com.yerastov.assignment.pok... | 0 | Kotlin | 0 | 0 | f6bb6b082eb8311c12b860b65a33cac54f19c8e9 | 1,094 | Pokedex | Apache License 2.0 |
fxgl/src/test/kotlin/com/almasb/fxgl/settings/GameSettingsTest.kt | valdirluiz | 105,594,315 | true | {"Java": 2597578, "Kotlin": 523313, "CSS": 20772, "Ragel": 10660, "JavaScript": 3897} | /*
* FXGL - JavaFX Game Library. The MIT License (MIT).
* Copyright (c) AlmasB (<EMAIL>).
* See LICENSE for details.
*/
package com.almasb.fxgl.settings
import com.almasb.fxgl.app.ApplicationMode
import com.almasb.fxgl.app.FXGL
import com.almasb.fxgl.app.FXGL.Companion.configure
import com.almasb.fxgl.app.MockApp... | 0 | Java | 0 | 0 | cad7ced19da4693e87828a4a07919a5bb30b45cd | 2,812 | FXGL | MIT License |
app/src/main/java/com/vidyacharan/urbandictionary/data/local/DatabaseService.kt | marzappa | 206,450,479 | false | null | package com.vidyacharan.urbandictionary.data.local
import androidx.room.Database
import androidx.room.RoomDatabase
import com.vidyacharan.urbandictionary.data.model.DefinitionData
@Database(entities = [DefinitionData::class], version = 1)
abstract class DatabaseService : RoomDatabase() {
abstract fun definitionD... | 0 | Kotlin | 0 | 0 | 7c1fc82e2c489e12dd0a779ec3afc568d2ec7b10 | 341 | urban-dictionary | MIT License |
bitapp/src/main/java/com/atech/bit/service/FcmService.kt | aiyu-ayaan | 489,575,997 | false | {"Kotlin": 581061} | /*
* BIT Lalpur App
*
* Created by Ayaan on 3/22/22, 10:45 PM
* Copyright (c) 2022 . All rights reserved.
* Last modified 3/22/22, 10:27 AM
*/
package com.atech.bit.service
import android.Manifest
import android.annotation.SuppressLint
import android.app.PendingIntent
import android.content.Intent
import andr... | 6 | Kotlin | 5 | 13 | a1a0834158159750b71fb6a51d3e007524e2796c | 4,470 | BIT-App | MIT License |
src/test/kotlin/structure/helperClasses/SingleColorTest.kt | Kleiark | 239,992,352 | true | {"Kotlin": 137223} | package structure.helperClasses
import org.junit.Test
import org.junit.Assert.*
class GradientTest {
@Test
fun colorWalls() {
TODO()
}
} | 0 | null | 0 | 0 | f8b0587ad1d170376b2f26d693075c7f0ab1c9a4 | 160 | beatwalls-1 | MIT License |
src/test/enhetstester/kotlin/no/nav/familie/ks/sak/kjerne/behandling/OpprettBehandlingServiceTest.kt | navikt | 533,308,075 | false | {"Kotlin": 2526441, "Shell": 753, "Dockerfile": 141} | package no.nav.familie.ks.sak.kjerne.behandling
import io.mockk.every
import io.mockk.impl.annotations.InjectMockKs
import io.mockk.impl.annotations.MockK
import io.mockk.junit5.MockKExtension
import io.mockk.just
import io.mockk.runs
import io.mockk.verify
import no.nav.familie.kontrakter.felles.oppgave.Oppgavetype
i... | 8 | Kotlin | 1 | 2 | ad2127e0256c2a7199030ed6333caaa0b03f134f | 13,607 | familie-ks-sak | MIT License |
lib/src/androidTest/java/com/otaliastudios/transcoder/integration/IssuesTests.kt | deepmedia | 161,674,156 | false | null | package com.otaliastudios.transcoder.integration
import android.media.MediaMetadataRetriever.METADATA_KEY_DURATION
import android.media.MediaMetadataRetriever
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import com.otaliastudios.transcoder.Transcoder
im... | 88 | null | 2 | 766 | 4ea35f4296bc8fab8d6f44db9a81fe9a6a60d578 | 3,828 | Transcoder | Apache License 2.0 |
plugin-idea/src/main/kotlin/org/jetbrains/spek/idea/SpekJvmConfigurationType.kt | raniejade | 59,394,908 | false | null | package org.jetbrains.spek.idea
class SpekJvmRunConfigurationType: SpekConfigurationType(
"org.spekframework.spek-jvm",
"Spek - JVM"
) {
init {
addFactory(SpekJvmConfigurationFactory(this))
}
}
| 29 | Kotlin | 16 | 50 | ee318debc43e9d84339c84129165f4a560ef4d4a | 220 | spek-idea-plugin | MIT License |
app/src/main/java/de/rauschdo/animals/data/Kind.kt | rauschdo | 752,729,154 | false | {"Kotlin": 246779, "Java": 32524} | package de.rauschdo.animals.data
import com.google.gson.annotations.SerializedName
data class Kind(
@SerializedName("id") val id: Long,
@SerializedName("name") val name: String,
@SerializedName("imageUrls") val imageUrls: List<String>,
@SerializedName("weight") val weight: String,
@SerializedName(... | 0 | Kotlin | 0 | 0 | d193a3850a84cdcc591d2c1940711a84539ca98d | 1,228 | animals | MIT License |
tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/requests/edit/text/EditInlineMessageText.kt | InsanusMokrassar | 163,152,024 | false | null | package dev.inmo.tgbotapi.requests.edit.text
import dev.inmo.tgbotapi.requests.edit.abstracts.*
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.message.textsources.TextSourcesList
import dev.inmo.tgbotapi.types.message.ParseMode
import dev.inmo.tgbotapi.types.message.parseModeField
import dev.inmo.tgbo... | 8 | null | 23 | 327 | 1e679ce50bb88a9ac8c53ba6bb748782d28d2c84 | 2,240 | ktgbotapi | Apache License 2.0 |
telegram-bot/src/test/kotlin/eu/vendeli/api/MessageActionsTest.kt | vendelieu | 496,567,172 | false | {"Kotlin": 505751, "CSS": 356} | package eu.vendeli.api
import BotTestContext
import eu.vendeli.tgbot.api.copyMessage
import eu.vendeli.tgbot.api.deleteMessage
import eu.vendeli.tgbot.api.forwardMessage
import eu.vendeli.tgbot.api.message
import eu.vendeli.tgbot.types.internal.getOrNull
import io.kotest.matchers.booleans.shouldBeTrue
import io.kotest... | 2 | Kotlin | 6 | 106 | 2a6799a87159598db935be0c0a5ceac4dffc0cfa | 2,027 | telegram-bot | Apache License 2.0 |
Base/Main.kt | HudzDev | 869,081,411 | false | {"Kotlin": 9085} | package Hotel
fun main() {
// Função principal que chama a função inicio().
inicio()
}
fun inicio() {
print("Bem vindo ao Hotel Terabithia!\n")
println("Escolha uma opção:")
// A varival escolha armazena a opção escolhida pelo usuário.
// uma variavel local é utilizada apenas dentro da função ... | 0 | Kotlin | 0 | 0 | 996afd212d9e40ebbbd1a974427521bfd6a52e24 | 888 | Hotel-Konoha | MIT License |
app/src/main/kotlin/com/marcoassenza/shoppy/views/fragments/bottomsheets/AddItemToStorageFragment.kt | marco219 | 457,490,574 | false | {"Kotlin": 87795} | package com.marcoassenza.shoppy.views.fragments.bottomsheets
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.activityViewModels
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.flowWithLifecycle
import androidx... | 9 | Kotlin | 0 | 0 | b1c971bb22753a43e42d8954da1564a8c0d330ef | 4,999 | Shoppy | MIT License |
stripe/src/main/java/com/stripe/android/cards/DefaultCardAccountRangeRepositoryFactory.kt | winniegr | 297,231,587 | true | {"Kotlin": 2325056, "Java": 63183, "Ruby": 6208, "Shell": 321} | package com.stripe.android.cards
import android.content.Context
import com.stripe.android.AnalyticsDataFactory
import com.stripe.android.AnalyticsRequest
import com.stripe.android.AnalyticsRequestExecutor
import com.stripe.android.ApiRequest
import com.stripe.android.PaymentConfiguration
import com.stripe.android.Stri... | 0 | null | 0 | 0 | de7139b33c8f6e16b07f860bdfd3ad849db0abcc | 1,788 | stripe-android | MIT License |
ImagePicker/src/main/java/org/xfort/rock/imagepicker/adapter/MediasAdapter.kt | xfort | 390,616,937 | false | null | package org.xfort.rock.imagepicker.adapter
import android.content.ContentResolver
import android.content.ContentUris
import android.database.Cursor
import android.net.Uri
import android.provider.MediaStore
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.C... | 0 | Kotlin | 0 | 1 | 958f25f36fb30475902baf339c14184ece7af338 | 8,088 | RockImagePicker | Apache License 2.0 |
UserCenter/src/main/java/com/kotlin/user/injection/module/UploadModule.kt | xiao125 | 140,819,180 | false | {"Kotlin": 100467, "Java": 6793} | package com.kotlin.user.injection.module
import com.kotlin.user.service.UploadService
import com.kotlin.user.service.impl.UploadServiceImpl
import dagger.Module
import dagger.Provides
/**
* 上传Module
*/
@Module
class UploadModule {
@Provides
fun provideUploadService(uploadService:UploadServiceImpl):UploadSe... | 0 | Kotlin | 0 | 0 | 8b8f75c853651f2952b3b9792e609d050ce5ab54 | 364 | KotlinDemo | Apache License 2.0 |
app-feature/home/src/commonMain/kotlin/dev/sergiobelda/todometer/app/feature/home/ui/HomeState.kt | serbelga | 301,817,067 | false | null | /*
* Copyright 2022 <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... | 8 | null | 37 | 585 | 9a097cd4df924cbf66c0b6af6fa1fed667d30ca0 | 2,135 | Todometer-KMP | Apache License 2.0 |
app/src/main/java/gq/kirmanak/mealient/ui/disclaimer/DisclaimerScreenState.kt | kirmanak | 431,195,533 | false | {"Kotlin": 476781} | package gq.kirmanak.mealient.ui.disclaimer
internal data class DisclaimerScreenState(
val isCountDownOver: Boolean,
val countDown: Int,
)
| 16 | Kotlin | 2 | 99 | 13a73812a16d928eb45147c297a56360ec605089 | 147 | Mealient | MIT License |
lib/src/main/java/com/kodyuzz/lib/flatmap.kt | mustafaatush | 274,828,691 | false | null | package com.kodyuzz.lib
import java.util.*
import java.util.stream.Collectors
import java.util.stream.Stream
fun test() {
var mutableListOf = mutableListOf<String>("a", "g", "b", "z", "c")
var map = mutableListOf.stream().map {
println(it)
it.hashCode() + "!!".hashCode()
}
// println(m... | 0 | Kotlin | 0 | 0 | a946972fe26c3ed8bb2abc69be6a72af976320c1 | 734 | kodyuzz | Apache License 2.0 |
src/main/kotlin/pl/droidsonroids/gradle/jacoco/testkit/JaCoCoTestKitPlugin.kt | nani3105 | 175,873,955 | true | {"Kotlin": 9757} | package pl.droidsonroids.gradle.jacoco.testkit
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.testing.jacoco.plugins.JacocoPlugin.DEFAULT_JACOCO_VERSION
import org.gradle.testing.jacoco.plugins.JacocoPluginExtension
import pl.droidsonroids.gradle.jacoco.testkit.Configurations.currentTestR... | 0 | Kotlin | 0 | 0 | 872b0985c9f2ddec59b60132c799220f8cef9f7c | 1,601 | jacoco-gradle-testkit-plugin | MIT License |
app/src/main/java/com/shopifyorders/presentation/orderprovince/Contract.kt | boiledbuns | 131,926,959 | false | null | package com.shopifyorders.presentation.orderprovince
import com.shopifyorders.data.OrderRepository
import com.shopifyorders.domain.Order
import com.shopifyorders.data.datamodel.ProvinceOrderModel
interface Contract {
interface View {
fun displayProvinceOrders(provinceOrders: List<ProvinceOrderModel>)
... | 0 | Kotlin | 0 | 0 | f15c2f906662ef3db2e6c4c2c1b5e19495aa44a3 | 458 | Shopify-Orders | MIT License |
play/plugin/src/main/kotlin/com/github/triplet/gradle/play/tasks/PublishApk.kt | knordbo | 139,208,051 | true | {"Kotlin": 173958, "Groovy": 16879, "HTML": 390} | package com.github.triplet.gradle.play.tasks
import com.android.build.gradle.api.ApkVariantOutput
import com.android.build.gradle.api.ApplicationVariant
import com.github.triplet.gradle.common.utils.orNull
import com.github.triplet.gradle.play.PlayPublisherExtension
import com.github.triplet.gradle.play.tasks.internal... | 0 | Kotlin | 0 | 0 | 8c010592650232087f1eddbdf0c9413cb244ac59 | 5,494 | gradle-play-publisher | MIT License |
src/main/kotlin/com/krillsson/sysapi/logaccess/file/LogFileReader.kt | Krillsson | 40,235,586 | false | null | package com.krillsson.sysapi.logaccess.file
import org.apache.commons.io.input.ReversedLinesFileReader
import java.io.File
import java.io.FileInputStream
import java.io.IOException
import java.nio.charset.Charset
import java.nio.file.Files
import java.nio.file.Paths
import java.nio.file.attribute.BasicFileAttributes
i... | 7 | null | 3 | 97 | 08d2205b06687f67a24e64a9ed9fc9cf36ff91a4 | 1,899 | sys-API | Apache License 2.0 |
app/src/main/java/com/mk/sheets/compose/ShowcaseDialogSamplesScreen.kt | maxkeppeler | 523,345,776 | false | null | /*
* Copyright (C) 2022-2023. <NAME> (https://www.maxkeppeler.com)
*
* 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... | 8 | null | 38 | 816 | 2af41f317228e982e261522717b6ef5838cd8b58 | 10,002 | sheets-compose-dialogs | Apache License 2.0 |
mediapicker/src/main/java/com/greentoad/turtlebody/mediapicker/core/CursorHelper.kt | Turtlebody | 177,713,614 | false | {"Gradle": 4, "XML": 68, "Markdown": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "INI": 3, "Proguard": 2, "Kotlin": 40, "Java": 3} | package com.greentoad.turtlebody.mediapicker.core
import android.annotation.SuppressLint
import android.content.Context
import android.database.Cursor
import android.provider.MediaStore
import com.greentoad.turtlebody.mediapicker.MediaPicker
/**
* Created by WANGSUN on 27-Mar-19.
*/
object CursorHelper {
/**... | 3 | Kotlin | 15 | 60 | 7ae0520caacc6e7f29cab9a1aebd2e20be832b13 | 2,738 | android-media-picker | MIT License |
app/src/main/java/org/simple/clinic/onboarding/OnboardingEvent.kt | simpledotorg | 132,515,649 | false | null | package org.simple.clinic.onboarding
import org.simple.clinic.widgets.UiEvent
sealed class OnboardingEvent : UiEvent
object GetStartedClicked : OnboardingEvent() {
override val analyticsName = "Onboarding:Get Started Clicked"
}
| 8 | null | 74 | 226 | d2cf8277d37aabb6bce00f74b1467b9e859a37fd | 233 | simple-android | MIT License |
src/main/java/com/blurengine/blur/modules/lobby/LobbyModule.kt | BlurEngine | 48,878,311 | false | null | /*
* Copyright 2016 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 1 | Java | 4 | 27 | 524070c395218857c7ccf49bf916ba2ed45dfdc1 | 9,303 | Blur | Apache License 2.0 |
app/src/main/java/com/hlxh/interactivevideotool/ui/homepage/HomepageFragment.kt | WTXCKAi | 335,287,545 | false | null | package com.hlxh.interactivevideotool.ui.homepage
import android.os.Bundle
import android.util.Log
import android.view.*
import android.view.View.*
import android.widget.CheckBox
import android.widget.CompoundButton
import android.widget.TextView
import android.widget.Toast
import androidx.core.view.children
import an... | 1 | null | 1 | 1 | c5dd4ef12b9d343e221c560bc3e6657a2ad493d9 | 4,843 | InteractiveVideoTool | Apache License 2.0 |
dvbViewerController/src/main/java/org/dvbviewer/controller/data/entities/DVBTarget.kt | RayBa82 | 29,094,366 | false | {"Gradle": 3, "INI": 5, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Groovy": 2, "Markdown": 1, "XML": 118, "Java": 27, "Kotlin": 144, "JSON": 912} | /*
* Copyright © 2013 dvbviewer-controller Project
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 5 | Kotlin | 2 | 11 | 419c94ef1ee2ad124ece7f3c0e98b7a89f006a1c | 774 | DVBViewerController | Apache License 2.0 |
libausbc/src/main/java/com/jiangdg/ausbc/render/env/RotateType.kt | jiangdongguo | 105,255,685 | false | null | /*
* Copyright 2017-2023 Jiangdg
*
* 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... | 447 | null | 792 | 2,323 | ebfd9437eb6e23e30f583a0151474b2fa6267fca | 907 | AndroidUSBCamera | Apache License 2.0 |
gameview/src/main/kotlin/com/mirage/gameview/ObjectRenderer.kt | ardenit | 159,560,530 | false | {"Gradle": 12, "Markdown": 5, "INI": 2, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "YAML": 1, "Kotlin": 148, "Proguard": 1, "XML": 9, "Java Properties": 1, "Lua": 17, "JSON": 27, "Java": 2} | package com.mirage.gameview
import com.mirage.gameview.drawers.DrawersManager
import com.mirage.gameview.utils.compareEntityAndBuilding
import com.mirage.gameview.utils.depthSort
import com.mirage.gameview.utils.getVirtualScreenPointFromScene
import com.mirage.utils.datastructures.Point
import com.mirage.utils.datastr... | 0 | Kotlin | 0 | 0 | f94f8bee518f70f5942aacf66afb5887bbb04988 | 4,624 | shattered-world | Apache License 2.0 |
compose/foundation/foundation/src/androidAndroidTest/kotlin/androidx/compose/foundation/lazy/LazyListsReverseLayoutTest.kt | RikkaW | 389,105,112 | false | null | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 6 | null | 978 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 16,086 | androidx | Apache License 2.0 |
core/src/main/kotlin/com/malinskiy/marathon/report/junit/model/Error.kt | MarathonLabs | 129,365,301 | false | null | package com.malinskiy.marathon.report.junit.model
/**
* @param type The type of error that occurred. e.g., if a java exception is thrown the full class name of the exception
* @param message The error message. e.g., if a java exception is thrown, the return value of getMessage()
*/
data class Error(
val type: S... | 66 | null | 89 | 328 | 77271f081c04093134d8d6ed77e380afd0a362a4 | 382 | marathon | Apache License 2.0 |
app/src/main/java/ru/merkulyevsasha/news/presentation/common/newsadapter/NewsViewAdapter.kt | sashamerkulev | 72,357,607 | false | {"Gradle": 13, "HTML": 2, "Java Properties": 3, "YAML": 1, "Shell": 2, "Ignore List": 8, "Batchfile": 1, "Text": 1, "Markdown": 1, "Proguard": 7, "Java": 13, "XML": 46, "Kotlin": 113} | package ru.merkulyevsasha.news.presentation.common.newsadapter
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import kotlinx.android.synthetic.main.row_news.view.im... | 1 | null | 1 | 1 | fc8ab8149c34bbda3cce9a7002d203ff62f52bd6 | 6,088 | news | Apache License 2.0 |
legacy/ui/legacy/src/main/java/com/fsck/k9/ui/helper/DisplayHtmlUiFactory.kt | thunderbird | 1,326,671 | false | null | package com.fsck.k9.ui.helper
import com.fsck.k9.message.html.DisplayHtml
class DisplayHtmlUiFactory(private val htmlSettingsProvider: HtmlSettingsProvider) {
fun createForMessageView(): DisplayHtml {
return DisplayHtml(htmlSettingsProvider.createForMessageView())
}
fun createForMessageCompose():... | 846 | null | 2467 | 9,969 | 8b3932098cfa53372d8a8ae364bd8623822bd74c | 418 | thunderbird-android | Apache License 2.0 |
idea/tests/testData/codeInsight/hints/types/ParameterType.kt | JetBrains | 278,369,660 | false | null | // MODE: parameter
fun <T> T.wrap(lambda: (T) -> T) {}
fun foo() {
12.wrap { elem<# : Int #> ->
elem
}
}
| 0 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 121 | intellij-kotlin | Apache License 2.0 |
petblocks-core/src/main/kotlin/com/github/shynixn/petblocks/core/logic/business/service/UpdateCheckServiceImpl.kt | Shynixn | 78,876,167 | false | null | package com.github.shynixn.petblocks.bukkit.logic.business.service
import com.github.shynixn.petblocks.api.business.service.UpdateCheckService
import com.github.shynixn.petblocks.bukkit.logic.business.helper.async
import com.google.inject.Inject
import org.bukkit.Bukkit
import org.bukkit.ChatColor
import org.bukkit.pl... | 22 | Kotlin | 23 | 71 | 730e19e9e70dea1dcdafa3a98f9356b9577565db | 4,609 | PetBlocks | Apache License 2.0 |
idea/testData/intentions/loopToCallChain/flatMap/notIterable.kt | JakeWharton | 99,388,807 | true | null | // WITH_STDLIB
// IS_APPLICABLE: false
// IS_APPLICABLE_2: false
fun foo(list: List<String>): Char? {
<caret>for (s in list) {
for (c in s) {
if (c != ' ') return c
}
}
return null
} | 1 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 222 | kotlin | Apache License 2.0 |
mocha-api/src/main/kotlin/io/hammerhead/mocha/dsl/EspressoExpectActionsDsl.kt | hammerheadnav | 83,804,375 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Proguard": 2, "Java": 2, "XML": 20, "Kotlin": 24} | package io.hammerhead.mocha.dsl
import io.hammerhead.mocha.api.expectations.espresso.EspressoAssertion
import io.hammerhead.mocha.api.uiactions.espresso.EspressoExpectDelegator
import io.hammerhead.mocha.api.uiactions.espresso.EspressoUiAction
fun EspressoExpectDelegator.on(init: EspressoUiAction.() -> Unit) = this.o... | 0 | Kotlin | 0 | 0 | 9fddc1f42009990629203f125d04fa00af2c33c6 | 436 | mocha | Apache License 2.0 |
app/src/main/java/app/grapheneos/camera/GallerySliderAdapter.kt | Genetik57 | 492,928,371 | true | {"INI": 2, "Gradle Kotlin DSL": 3, "Shell": 1, "Markdown": 1, "Batchfile": 1, "Text": 1, "Ignore List": 3, "XML": 114, "YAML": 3, "Proguard": 1, "Kotlin": 36, "Java": 3} | package app.grapheneos.camera
import android.content.Intent
import android.graphics.ImageDecoder
import android.net.Uri
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.recyclerview.widget.RecyclerView
import app.grapheneos.camera... | 0 | null | 0 | 0 | b45a3054aa14681372fba6dc5375c8f9760e6be5 | 4,367 | Camera | MIT License |
jadx-plugins/jadx-script/examples/scripts/gui/menu_entry.jadx.kts | skylot | 8,859,474 | false | null | // customize jadx-gui
val jadx = getJadxInstance()
jadx.gui.ifAvailable {
addMenuAction("Decompile All") {
jadx.decompile.all()
}
}
| 336 | Java | 4386 | 35,402 | 3abdd40498c239e9f64386035fe6d7e055a94225 | 138 | jadx | Apache License 2.0 |
navigation/lib-navigation/src/main/java/ru/surfstudio/android/navigation/provider/FragmentNavigationProvider.kt | surfstudio | 139,034,657 | false | {"Kotlin": 2966626, "Java": 1025166, "FreeMarker": 104337, "Groovy": 43020, "C++": 1542, "Ruby": 884, "CMake": 285, "Shell": 33, "Makefile": 25} | package ru.surfstudio.android.navigation.provider
import ru.surfstudio.android.navigation.provider.holder.FragmentNavigationHolder
/**
* Provider that can obtain [FragmentNavigationHolder].
*/
interface FragmentNavigationProvider {
/**
* Obtains [FragmentNavigationHolder] for current visible activity.
... | 5 | Kotlin | 30 | 249 | 6d73ebcaac4b4bd7186e84964cac2396a55ce2cc | 596 | SurfAndroidStandard | Apache License 2.0 |
Main Application/android/app/src/main/kotlin/com/example/custom_emojiboard/MainActivity.kt | awadahmed97 | 293,938,378 | false | null | package com.example.custom_emojiboard
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 1 | null | 1 | 1 | f0ded5d5a6445077bbabb69909de1691545ff9c8 | 134 | custom_emojiboard | MIT License |
javatests/dagger/functional/kotlinsrc/cycle/CycleTest.kt | haaami01 | 371,838,298 | true | {"Java": 5756996, "Kotlin": 593381, "Starlark": 456435, "Shell": 23205, "Python": 2010} | /*
* Copyright (C) 2022 The Dagger Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 0 | Java | 0 | 1 | e9116f01618f0411871707ab7c986a19e946495e | 3,467 | dagger | Apache License 2.0 |
devfun/src/main/java/com/nextfaze/devfun/overlay/Permissions.kt | NextFaze | 90,596,780 | false | null | package com.nextfaze.devfun.overlay
import android.annotation.TargetApi
import android.app.Application
import android.app.Dialog
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import... | 5 | null | 4 | 51 | cbf83014e478426750a2785b1e4e6a22d6964698 | 10,512 | dev-fun | Apache License 2.0 |
base/base_data/src/main/java/org/android/modular/base/data/error/StatusError.kt | ogulcanucarsu | 202,193,887 | false | {"Gradle": 9, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 6, "Batchfile": 1, "Git Attributes": 1, "Markdown": 1, "Proguard": 5, "Java": 8, "XML": 22, "Kotlin": 89, "Gradle Kotlin DSL": 1} | package org.android.modular.base.data.error
import com.google.gson.annotations.SerializedName
data class StatusError(@SerializedName("code") val code: String?, @SerializedName("message") val message: String?) | 0 | Kotlin | 0 | 9 | c7de15c24248c935269ddea42d7c16fb71e008b7 | 210 | Android-Modular-Application-Example | Apache License 2.0 |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/subsystems/DriveConfig.kt | GramGra07 | 782,134,990 | false | {"Kotlin": 180874, "Java": 97088, "Python": 16800} | package org.firstinspires.ftc.teamcode.subsystems
import com.acmerobotics.dashboard.config.Config
import com.qualcomm.hardware.rev.RevHubOrientationOnRobot
import com.qualcomm.robotcore.hardware.PIDFCoefficients
@Config
class DriveConfig {
companion object {
@JvmField
val TICKS_PER_REV = 28.0
... | 0 | Kotlin | 0 | 1 | 9a0ce7f3622b21d3feb0898173f8395fc09cd8f9 | 1,917 | FtcRobotController_2024-25_5115 | BSD 3-Clause Clear License |
src/main/kotlin/dev/josantonius/minecraft/ray/command/RayTabCompleter.kt | josantonius | 640,099,285 | false | null | package dev.josantonius.minecraft.ray
import org.bukkit.Bukkit
import org.bukkit.command.Command
import org.bukkit.command.CommandSender
import org.bukkit.command.TabCompleter
import org.bukkit.entity.Player
import org.bukkit.util.StringUtil
class RayTabCompleter : TabCompleter {
override fun onTabComplete(
... | 0 | Kotlin | 0 | 1 | d66c6835e0c9358381336a77bcf822db9cbdc3b9 | 1,922 | minecraft-ray | MIT License |
shared/src/commonMain/kotlin/composable/dialog/CoinFlipDialog.kt | ntietje1 | 672,375,249 | false | {"Kotlin": 321755, "Swift": 726} | package composable.dialog
import androidx.compose.foundation.Image
import androidx.compose.foundation.gestures.detectTapGestures
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.BoxWithConstraints
import androidx.compose.found... | 0 | Kotlin | 0 | 1 | b43699790df2e74bf29be6d6c32511d8778d6676 | 11,608 | MTG_Life_Total_App | Apache License 2.0 |
server/src/test/kotlin/de/sambalmueslie/openevent/server/announcement/AnnouncementCrudServiceTest.kt | sambalmueslie | 270,265,994 | false | {"Kotlin": 265865, "Dockerfile": 434, "Batchfile": 61} | package de.sambalmueslie.openevent.server.announcement
import de.sambalmueslie.openevent.server.announcement.api.AnnouncementChangeRequest
import de.sambalmueslie.openevent.server.user.UserUtils
import de.sambalmueslie.openevent.server.user.db.UserData
import de.sambalmueslie.openevent.server.user.db.UserRepository
im... | 0 | Kotlin | 0 | 1 | 053fb05dbe4242941659518f93dcac4c34b29126 | 2,274 | open-event | Apache License 2.0 |
wudaozi/src/main/java/com/josephuszhou/wudaozi/view/PreviewActivity.kt | JosephusZhou | 214,570,971 | false | {"Kotlin": 73962, "Java": 5628} | package com.josephuszhou.wudaozi.view
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.view.WindowManager
import android.widget.FrameLayout
import androidx.activity.result.ActivityResultLauncher
import androidx.appcompat.app.AppCompatActivity
im... | 0 | Kotlin | 1 | 6 | 074d81c973f65a3751a876d5f5fe42d5d9c4c07a | 7,395 | WuDaozi | Apache License 2.0 |
Application/src/main/java/com/bihe0832/android/app/permission/AAFPermissionManager.kt | AndroidAppFactory | 222,415,705 | false | null | package com.bihe0832.android.app.permission
import android.Manifest
import android.content.Intent
import android.provider.Settings
import com.bihe0832.android.common.photos.takePhotoPermission
import com.bihe0832.android.framework.ZixieContext
import com.bihe0832.android.lib.notification.NotifyManager
import com.bihe0... | 0 | Java | 14 | 43 | bb7d651c76d0d2539299cc9ae667de17989f3c75 | 1,504 | AndroidAppFactory | MIT License |
ontrack-extension-api/src/test/java/net/nemerosa/ontrack/extension/api/support/TestValidationDataType.kt | nemerosa | 19,351,480 | false | null | package net.nemerosa.ontrack.extension.api.support
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databind.node.NullNode
import net.nemerosa.ontrack.json.JsonUtils
import net.nemerosa.ontrack.model.form.Form
import net.nemerosa.ontrack.model.structure.AbstractValidationDataType
import net.... | 57 | null | 27 | 97 | 7c71a3047401e088ba0c6d43aa3a96422024857f | 3,536 | ontrack | MIT License |
src/main/kotlin/no/nav/personbruker/dittnav/brukernotifikasjonbestiller/config/Eventtype.kt | navikt | 331,545,066 | false | null | package no.nav.personbruker.dittnav.brukernotifikasjonbestiller.config
enum class Eventtype(val eventtype: String) {
BESKJED("beskjed"),
OPPGAVE("oppgave"),
INNBOKS("innboks"),
DONE("done")
}
| 1 | Kotlin | 0 | 0 | 053b220839512ab43de53b780ad3e001038ee6eb | 210 | dittnav-brukernotifikasjonbestiller | MIT License |
GithubUsers/app/src/main/java/com/andzhv/githubusers/request/cache/Cache.kt | adgvcxz | 404,764,273 | true | {"Kotlin": 54161} | package com.andzhv.githubusers.request.cache
import com.andzhv.githubusers.bean.SimpleUserBean
/**
* @param key Cache directory name
* @param unique Cache identifier
* Created by zhaowei on 2021/9/11.
*/
open class Cache<M : Any>(
private val key: String,
private val unique: String,
private val clazz:... | 0 | Kotlin | 0 | 0 | 4754727dc9e38383b45405332b982088549fae04 | 712 | test-mobile | MIT License |
sample/src/main/kotlin/dev/olshevski/navigation/reimagined/sample/ui/demo/ReturnResultsScreen.kt | olshevski | 455,126,442 | false | {"Kotlin": 359651, "Shell": 242} | package dev.olshevski.navigation.reimagined.sample.ui.demo
import android.os.Parcelable
import androidx.compose.material.Button
import androidx.compose.material.OutlinedTextField
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Immutable
import androidx.c... | 5 | Kotlin | 17 | 507 | 665ddfce244666e2a6679b9ca1a5363b49a623b7 | 5,077 | compose-navigation-reimagined | MIT License |
plugins/maven/src/test/java/org/jetbrains/idea/maven/importing/MavenStaticSyncTest.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.idea.maven.importing
import com.intellij.build.SyncViewManager
import com.intellij.build.events.BuildEvent
import com.intellij.maven.testFramework.MavenMultiVersionImportingTes... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 22,259 | intellij-community | Apache License 2.0 |
app/src/main/java/sgtmelon/adventofcode/year15/day9/useCase/GetMinMaxLengthUseCase.kt | SerjantArbuz | 559,224,296 | false | {"Kotlin": 152755} | package sgtmelon.adventofcode.year15.day9.useCase
class GetMinMaxLengthUseCase {
operator fun invoke(
distanceMap: Map<Pair<String, String>, Int>,
permutationsSet: Set<List<String>>
): Pair<Int, Int> {
var min = 0
var max = 0
permutationsSet.forEach {
val l... | 0 | Kotlin | 0 | 0 | 26a57b8431c03e2d09071f7302d6360ba91bfd2f | 1,065 | AdventOfCode | Apache License 2.0 |
app/src/main/java/com/lanyard/pirateerlite/views/MapScrollView.kt | prespondek | 189,057,907 | false | null | /*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 0 | Kotlin | 0 | 0 | 58157ee53575f8c63bc12a6b09b61cd897ca94d1 | 2,409 | PirateerLiteAndroid | Apache License 2.0 |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/appconfig/CfnHostedConfigurationVersion.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 149148378} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.appconfig
import io.cloudshiftdev.awscdk.CfnResource
import io.cloudshiftdev.awscdk.IInspectable
impo... | 1 | Kotlin | 0 | 4 | eb3eef728b34da593a3e55dc423d4f5fa3668e9c | 14,631 | kotlin-cdk-wrapper | Apache License 2.0 |
niddler-plugin/src/main/kotlin/com/chimerapps/niddler/ui/component/NiddlerSessionWindow.kt | Chimerapps | 189,958,781 | false | null | package com.chimerapps.niddler.ui.component
import com.chimerapps.discovery.device.Device
import com.chimerapps.discovery.device.DirectPreparedConnection
import com.chimerapps.discovery.device.PreparedDeviceConnection
import com.chimerapps.discovery.device.idevice.IDevice
import com.chimerapps.discovery.device.idevice... | 6 | Kotlin | 1 | 25 | fc2e13fdc636ea3a025f75a8ed166fcf3157c06d | 23,673 | niddler-ui | Apache License 2.0 |
app/src/main/java/fr/nextoo/androidmvp/firstactivity/FirstActivity.kt | tmorelle | 147,664,344 | false | null | package fr.nextoo.androidmvp.firstactivity
import android.os.Bundle
import fr.nextoo.androidmvp.R
import fr.nextoo.androidmvp.di.base.BaseActivity
import fr.nextoo.androidmvp.di.base.BaseFragment
import fr.nextoo.androidmvp.firstfragment.FirstFragment
import fr.nextoo.androidmvp.ws.WSExample
import kotlinx.android.syn... | 0 | Kotlin | 0 | 3 | a71a2125a994766c2561f8b832e018fcc1748eec | 1,207 | nextoo-android-mvp | Apache License 2.0 |
next/kmp/dwebview/src/commonMain/kotlin/org/dweb_browser/dwebview/base/ViewItem.kt | BioforestChain | 594,577,896 | false | {"Kotlin": 3446191, "TypeScript": 818538, "Swift": 369625, "Vue": 156647, "SCSS": 39016, "Objective-C": 17350, "HTML": 16184, "Shell": 13534, "JavaScript": 3982, "Svelte": 3504, "CSS": 818} | package org.dweb_browser.dwebview.base
import kotlinx.coroutines.CoroutineScope
import org.dweb_browser.dwebview.IDWebView
/*data class ViewItem(
val webviewId: String,
val webView: DWebView,
val state: WebViewState,
val navigator: WebViewNavigator,
val coroutineScope: CoroutineScope,
var hidden: Boolean ... | 66 | Kotlin | 5 | 20 | 6db1137257e38400c87279f4ccf46511752cd45a | 464 | dweb_browser | MIT License |
app/src/test/java/lt/vilnius/tvarkau/fragments/presenters/MyReportListPresenterImplTest.kt | rokasjasonas | 153,193,645 | true | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 2, "Ignore List": 2, "Batchfile": 1, "YAML": 1, "Markdown": 1, "JSON": 1, "Proguard": 1, "Kotlin": 108, "Java": 49, "INI": 1, "XML": 77} | package lt.vilnius.tvarkau.fragments.presenters
import com.nhaarman.mockito_kotlin.*
import io.reactivex.Single.error
import io.reactivex.Single.just
import io.reactivex.schedulers.Schedulers
import lt.vilnius.tvarkau.entity.Problem
import lt.vilnius.tvarkau.fragments.interactors.ReportListInteractor
import lt.vilnius... | 0 | Kotlin | 0 | 0 | e1c151af0360d366c89d9affca408cebee57da2c | 2,218 | tvarkau-vilniu | MIT License |
app/src/main/kotlin/com/dvinc/notepad/presentation/ui/notepad/NotepadViewModel.kt | NexusLove | 227,261,517 | true | {"Kotlin": 68948} | package com.dvinc.notepad.presentation.ui.notepad
import androidx.lifecycle.MutableLiveData
import com.dvinc.notepad.R
import com.dvinc.notepad.domain.usecase.notepad.NotepadUseCase
import com.dvinc.notepad.presentation.mapper.NotePresentationMapper
import com.dvinc.notepad.presentation.model.NoteUi
import com.dvinc.n... | 0 | null | 0 | 0 | c62d3cb5a2bf7934c9c67c80e61c77cdff4f98df | 2,222 | Notepad | MIT License |
kgl-vulkan/src/nativeMain/kotlin/com/kgl/vulkan/structs/MemoryHeap.kt | NikkyAI | 223,607,080 | true | {"Kotlin": 1894114, "C": 1742775} | /**
* 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 w... | 0 | Kotlin | 0 | 0 | 74de23862c29404e7751490331cbafbef310bd63 | 825 | kgl | Apache License 2.0 |
utbot-python/src/main/kotlin/org/utbot/python/framework/codegen/model/PythonCodeGenerator.kt | UnitTestBot | 480,810,501 | false | null | package org.utbot.python.framework.codegen.model
import org.utbot.framework.codegen.generator.CodeGeneratorResult
import org.utbot.framework.codegen.domain.ForceStaticMocking
import org.utbot.framework.codegen.domain.HangingTestsTimeout
import org.utbot.framework.codegen.domain.ParametrizedTestSource
import org.utbot.... | 370 | null | 27 | 87 | ab0bdcb103925cd3ee9964c44dacc1f3b88ce1de | 12,502 | UTBotJava | Apache License 2.0 |
client-android/src/androidTest/java/eventually/test/client/persistence/tasks/TaskEntityDatabaseSpec.kt | sndnv | 292,604,487 | false | null | package eventually.test.client.persistence.tasks
import android.content.Context
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import eventually.client.persistence.tasks.TaskEntity
import eventual... | 0 | Kotlin | 0 | 0 | 5e6cc0fcde69b661534666feecee680627869bec | 2,152 | eventually | Apache License 2.0 |
app/src/main/java/com/drewbitt/trntlist/ui/DetailsActivity.kt | drewbitt | 185,934,336 | false | null | package com.drewbitt.trntlist.ui
import android.os.Bundle
import android.widget.EditText
import com.drewbitt.trntlist.R
import com.drewbitt.trntlist.data.ViewModel
import com.drewbitt.trntlist.data.model.TrntJson
import com.google.android.material.floatingactionbutton.FloatingActionButton
import dagger.android.support... | 0 | Kotlin | 0 | 0 | 0f289e65be623c33d3eb4dc57be8b3dcdcad3869 | 5,742 | TrntList | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.