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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
playground/sandbox-compose/src/test/kotlin/com/sdds/playground/sandbox/ComposeCheckBoxScreenshotTest.kt | salute-developers | 765,665,583 | false | {"Kotlin": 1736676} | package com.sdds.playground.sandbox
import com.github.takahirom.roborazzi.RobolectricDeviceQualifiers
import com.sdds.playground.sandbox.checkbox.SandboxCheckBoxPreviewCheckedSizeSmall
import com.sdds.playground.sandbox.checkbox.SandboxCheckBoxPreviewOffSizeSmall
import com.sdds.playground.sandbox.checkbox.SandboxChec... | 3 | Kotlin | 0 | 1 | a5209f66c4fdd76d1f2373502a2705697aaf70e4 | 2,127 | plasma-android | MIT License |
anissia-app-external-api/src/main/kotlin/anissia/dto/AccountUserDto.kt | qqq-tech | 366,089,141 | true | {"Kotlin": 177106, "HTML": 2740} | package anissia.dto
import anissia.rdb.domain.Account
import anissia.rdb.domain.AccountRole
import java.time.LocalDateTime
data class AccountUserDto (
var email: String = "",
var name: String = "",
var regDt: LocalDateTime = LocalDateTime.now(),
var roles: Set<AccountRole> = setOf(),
) {
companion... | 0 | null | 0 | 0 | d0d1e9858bf2807b9df12c6c40b598eb64350112 | 537 | anissia-core | Creative Commons Attribution 4.0 International |
feature/login/imp/src/main/java/com/vpopov/movienow/feature/login/imp/data/LoginRepository.kt | Va1erii | 461,271,627 | false | null | package com.vpopov.movienow.feature.login.imp.data
import javax.inject.Inject
interface LoginRepository {
fun login()
}
class LoginRepositoryImp @Inject constructor(
private val loginService: LoginService
) : LoginRepository {
override fun login() {
loginService.requestToken()
}
} | 4 | Kotlin | 0 | 0 | ab03f4cc5484548b0d40486fac7b90c1c8e75470 | 308 | movie-now | MIT License |
feature/login/imp/src/main/java/com/vpopov/movienow/feature/login/imp/data/LoginRepository.kt | Va1erii | 461,271,627 | false | null | package com.vpopov.movienow.feature.login.imp.data
import javax.inject.Inject
interface LoginRepository {
fun login()
}
class LoginRepositoryImp @Inject constructor(
private val loginService: LoginService
) : LoginRepository {
override fun login() {
loginService.requestToken()
}
} | 4 | Kotlin | 0 | 0 | ab03f4cc5484548b0d40486fac7b90c1c8e75470 | 308 | movie-now | MIT License |
app/storybook/src/main/java/com/yourssu/storybook/component/SearchTopBarViewModel.kt | yourssu | 364,290,281 | false | null | package com.yourssu.storybook.component
import android.app.Application
import android.view.KeyEvent
import android.widget.TextView
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.yourssu.design.system.atom.Toggle
import com.yourssu.storyb... | 9 | null | 2 | 9 | 58364077175f882def5108e654f51667b9d3af36 | 1,976 | YDS-Android | MIT License |
plugin-dotnet-agent/src/main/kotlin/jetbrains/buildServer/dotnet/discovery/dotnetSdk/DotnetSdksProvider.kt | JetBrains | 49,584,664 | false | {"Kotlin": 2711266, "C#": 319161, "Java": 95520, "Dockerfile": 831, "CSS": 123} |
package jetbrains.buildServer.dotnet.discovery.dotnetSdk
import java.io.File
interface DotnetSdksProvider {
fun getSdks(dotnetExecutable: File): Sequence<DotnetSdk>
} | 3 | Kotlin | 25 | 94 | cdecbf2c7721a40265a031453262614809d5378d | 175 | teamcity-dotnet-plugin | Apache License 2.0 |
libraries/image/src/main/java/de/schnettler/scrobbler/image/di/SpotifyApiModule.kt | nschnettler | 260,203,355 | false | {"Kotlin": 440825} | package de.schnettler.scrobbler.image.di
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import de.schnettler.scrobbler.image.api.SpotifyApi
import de.schnettler.scrobbler.network.spotify.annotation.retrofit.AuthorizedSpotifyRetrofitClient
impor... | 10 | Kotlin | 5 | 57 | 523d0b739901b971fd41e09258dcab6dcb1c8e58 | 580 | Compose-Scrobbler | Apache License 2.0 |
app/src/main/java/com/ono/streamer/di/AppMainModule.kt | MuhammadAounAnwar | 544,583,769 | false | null | package com.ono.streamer.di
import android.app.Application
import android.content.Context
import com.ono.streamer.StreamerClass
import dagger.Binds
import dagger.Module
@Module(includes = [AppActivitiesModule::class, AppNetworkModule::class])
abstract class AppMainModule {
@Binds
abstract fun bindsApp(stream... | 0 | Kotlin | 0 | 0 | 4e6f44b2d6c8052c864d517276cf1c31683eec7b | 437 | Streamer | MIT License |
app/src/main/java/com/ono/streamer/di/AppMainModule.kt | MuhammadAounAnwar | 544,583,769 | false | null | package com.ono.streamer.di
import android.app.Application
import android.content.Context
import com.ono.streamer.StreamerClass
import dagger.Binds
import dagger.Module
@Module(includes = [AppActivitiesModule::class, AppNetworkModule::class])
abstract class AppMainModule {
@Binds
abstract fun bindsApp(stream... | 0 | Kotlin | 0 | 0 | 4e6f44b2d6c8052c864d517276cf1c31683eec7b | 437 | Streamer | MIT License |
app/src/main/java/academy/bangkit/lanting/utils/ViewExt.kt | fhrii | 368,801,393 | false | null | package academy.bangkit.lanting.utils
import academy.bangkit.lanting.R
import android.text.Editable
import android.text.TextWatcher
import android.view.View
import android.widget.EditText
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bumptech.glide.request.target.Target
fun EditText.setOn... | 1 | Kotlin | 1 | 1 | 224efe4e6cda949249e0b543aac56e9d5d57cd35 | 1,034 | lanting | MIT License |
src/test/kotlin/org/ktlib/BootstrapTests.kt | ktlib-org | 713,606,396 | false | {"Kotlin": 102290} | package org.ktlib
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe
class BootstrapTests : StringSpec({
"boostrap called" {
BootstrapRunner.init()
System.getProperty("boostrap-called") shouldBe "true"
}
}) | 0 | Kotlin | 0 | 0 | 9e60ae44885ac075d4df37b24ed7a5485c597166 | 260 | core | Apache License 2.0 |
app/src/test/kotlin/com/github/starter/core/filters/RequestTimingFilters.kt | skhatri | 250,538,313 | false | null | package com.github.starter.core.filters;
class RequestTimingFilters {
private constructor() {
}
companion object {
fun newInstance(log: Boolean): RequestTimingFilter {
return RequestTimingFilter(log);
}
}
}
| 1 | null | 3 | 7 | 3e2728a126b136c24cbb2277df9cbf928b341aff | 254 | microservices-starter-kotlin | Apache License 2.0 |
app/src/test/kotlin/com/github/starter/core/filters/RequestTimingFilters.kt | skhatri | 250,538,313 | false | null | package com.github.starter.core.filters;
class RequestTimingFilters {
private constructor() {
}
companion object {
fun newInstance(log: Boolean): RequestTimingFilter {
return RequestTimingFilter(log);
}
}
}
| 1 | null | 3 | 7 | 3e2728a126b136c24cbb2277df9cbf928b341aff | 254 | microservices-starter-kotlin | Apache License 2.0 |
idea/testData/formatter/EmptyLineBetweenEnumEntries.kt | JakeWharton | 99,388,807 | true | null | enum class E1 { F, S, T }
enum class E2 {
F, S, T
}
enum class E3 {
F, S, T
}
enum class E4 {
F {
},
S, T
}
enum class E5 { F, S {}, T }
enum class E6 {
F, S, T {}
}
enum class E7 {
F {
},
S, T
}
enum class E8 {
A, // A
B // B
}
// SET_TRUE: KEEP_LINE_BREAKS | 0 | Kotlin | 4 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 312 | kotlin | Apache License 2.0 |
client/src/test/kotlin/no/nav/su/se/bakover/client/oppdrag/simulering/SimuleringRequestBuilderTest.kt | navikt | 227,366,088 | false | {"Kotlin": 9509213, "Shell": 4372, "TSQL": 1233, "Dockerfile": 1211} | package no.nav.su.se.bakover.client.oppdrag.simulering
import arrow.core.nonEmptyListOf
import io.kotest.matchers.shouldBe
import no.nav.su.se.bakover.client.oppdrag.utbetaling.UtbetalingRequest
import no.nav.su.se.bakover.client.oppdrag.utbetaling.UtbetalingRequestTest
import no.nav.su.se.bakover.client.oppdrag.utbet... | 1 | Kotlin | 1 | 1 | e0193ea73a8771537b04819641348093f011c1f8 | 13,075 | su-se-bakover | MIT License |
domain/src/main/kotlin/com/seanshubin/condorcet/backend/domain/VoterElectionCandidateRank.kt | SeanShubin | 238,518,165 | false | {"XML": 1, "Maven POM": 22, "Ignore List": 1, "Markdown": 9, "Shell": 4, "Text": 25, "Kotlin": 204, "HTML": 21, "Java": 21, "Python": 1, "SVG": 2, "SQL": 65, "JSON": 2} | package com.seanshubin.condorcet.backend.domain
data class VoterElectionCandidateRank(val voter: String, val election: String, val candidate: String, val rank: Int)
| 1 | null | 1 | 1 | c6dd3e86d9f722829c57d215fcfa7cb18b7955cd | 166 | condorcet-backend | The Unlicense |
identity/src/main/java/com/stripe/android/identity/navigation/IdentityNavGraph.kt | stripe | 6,926,049 | false | null | package com.stripe.android.identity.navigation
import android.util.Log
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.MaterialTheme
import androidx.compose.material.M... | 88 | null | 644 | 1,277 | 174b27b5a70f75a7bc66fdcce3142f1e51d809c8 | 16,832 | stripe-android | MIT License |
compose-multiplatform-navigation/src/androidxCommonMain/kotlin/com/huanshankeji/androidx/navigation/compose/NavHostController.androidxCommon.kt | huanshankeji | 570,509,992 | false | {"Kotlin": 330635} | package com.huanshankeji.androidx.navigation.compose
import androidx.compose.runtime.Composable
import androidx.compose.runtime.State
import androidx.navigation.*
import androidx.navigation.compose.currentBackStackEntryAsState
import androidx.navigation.compose.rememberNavController
@Composable
actual fun NavControll... | 20 | Kotlin | 0 | 16 | 44e6bb560653463549d3a09e011b15f8f4b88743 | 574 | compose-multiplatform-material | Apache License 2.0 |
src/main/kotlin/de/thbingen/epro/osbimpl/model/catalog/Schemas.kt | Bonebreaker9 | 239,772,148 | false | null | package de.thbingen.epro.osbimpl.model.catalog
import com.fasterxml.jackson.annotation.JsonProperty
data class Schemas(
@JsonProperty("service_instance") val serviceInstance: ServiceInstanceSchema?,
@JsonProperty("service_binding") val serviceBinding: ServiceBindingSchema?
) | 1 | Kotlin | 0 | 0 | 50df50bad48b6635f7324d7007da7cc8cdc1fe86 | 293 | EPRO | Apache License 2.0 |
charty/src/main/java/com/himanshoe/charty/bar/model/GroupedBarData.kt | hi-manshu | 523,070,772 | false | null | package com.niyaj.popos.features.components.chart.bar.model
import androidx.compose.ui.graphics.Color
data class GroupedBarData(val barData: List<BarData>, val colors: List<Color> = List(barData.count()) { Color.Transparent })
internal fun List<GroupedBarData>.totalItems(): Int = this.sumOf {
it.barData.count()
... | 4 | null | 36 | 645 | 050fa400cb41716195fe01f16f3b5325e674972b | 408 | Charty | Apache License 2.0 |
bottom-sheet-alert-dialog/src/main/kotlin/com/sixtyninefourtwenty/bottomsheetalertdialog/BaseDialogBuilder.kt | unbiaseduser | 687,410,356 | false | null | package com.sixtyninefourtwenty.bottomsheetalertdialog
import android.content.Context
import android.content.res.Configuration
import android.view.View
import androidx.annotation.StringRes
import com.google.android.material.bottomsheet.BottomSheetBehavior
import com.google.android.material.bottomsheet.BottomSheetDialo... | 0 | Kotlin | 0 | 0 | fe2f5cb484b1db60380faa8e0e3df3c5a951e92d | 2,472 | misc-stuff | MIT License |
main/src/main/java/com/quxianggif/util/glide/GifFunModule.kt | guolindev | 167,902,491 | false | null | /*
* Copyright (C) guolin, <NAME> Inc. Open source codes for study only.
* Do not use for commercial purpose.
*
* 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.apach... | 30 | null | 692 | 3,448 | 26227595483a8f2508f23d947b3fe99721346e0f | 1,602 | giffun | Apache License 2.0 |
src/main/kotlin/leetcode/facebook/Problem560.kt | Magdi | 390,731,717 | false | null | package leetcode.facebook
import java.util.*
import kotlin.collections.HashMap
class Problem560 {
fun subarraySum(nums: IntArray, k: Int): Int {
var sum = 0
val sumCnt = HashMap<Int, Int>()
sumCnt[0] = 1
var ans = 0
nums.forEach {
sum += it
ans += s... | 0 | Kotlin | 0 | 0 | 63bc711dc8756735f210a71454144dd033e8927d | 471 | ProblemSolving | Apache License 2.0 |
src/jvmTest/kotlin/mu/ClassWithLoggingForLocationTesting.kt | MicroUtils | 62,350,009 | false | null | package mu
class ClassWithLoggingForLocationTesting {
companion object : KLogging()
fun log() {
logger.info("test")
}
fun logLazy() {
logger.info { "test" }
}
fun logNull() {
logger.info(null)
}
fun logEntry(): Pair<Int, Int> {
logger.entry(1, 2)
... | 18 | null | 87 | 1,806 | 4188b9c27091eae82d7917e4fe2de69af31f5932 | 542 | kotlin-logging | Apache License 2.0 |
src/test/kotlin/dev/akif/cats/CatServiceTest.kt | makiftutuncu | 605,721,123 | false | null | package dev.akif.cats
import dev.akif.crud.CRUDServiceTest
import org.junit.jupiter.api.DisplayName
import java.util.UUID
@DisplayName("CatService")
class CatServiceTest : CRUDServiceTest<UUID, CatEntity, Cat, CreateCat, UpdateCat, CatMapper, CatRepository, CatService, CatTestData>(
typeName = "Cat",
mapper =... | 2 | Kotlin | 0 | 2 | a391ac45d5ad8c96c42a7e04f33505613abbb6c5 | 529 | kotlin-spring-boot-template | MIT License |
app/src/main/java/io/github/wulkanowy/ui/modules/grade/summary/GradeSummaryPresenter.kt | bujakpvp | 167,613,504 | true | {"Kotlin": 413721, "IDL": 131} | package io.github.wulkanowy.ui.modules.grade.summary
import io.github.wulkanowy.data.db.entities.GradeSummary
import io.github.wulkanowy.data.repositories.GradeRepository
import io.github.wulkanowy.data.repositories.GradeSummaryRepository
import io.github.wulkanowy.data.repositories.PreferencesRepository
import io.git... | 0 | Kotlin | 0 | 0 | 4da812af392ffbdf55960f8bb8d0d0f46721531b | 5,422 | wulkanowy | Apache License 2.0 |
src/main/kotlin/com/github/strindberg/emacssearchandcase/actions/search/PreviousSearchAction.kt | strindberg | 497,232,016 | false | null | package com.github.strindberg.emacssearchandcase.actions.search
import com.github.strindberg.emacssearchandcase.search.PreviousSearchHandler
import com.intellij.openapi.editor.actionSystem.EditorAction
class PreviousSearchAction : ISearchAction, EditorAction(PreviousSearchHandler(false))
| 0 | Kotlin | 0 | 0 | 7344cb8a80aa0ee0092fae088e9819b561dfc8f6 | 291 | emacs-search-and-case | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/sykmelding/SykmeldingService.kt | navikt | 322,575,632 | false | null | package no.nav.syfo.sykmelding
import no.nav.syfo.application.database.DatabaseInterface
import no.nav.syfo.dinesykmeldte.model.Sykmeldt
import no.nav.syfo.dinesykmeldte.util.isActive
import no.nav.syfo.sykmelding.db.getArbeidsgiverSykmeldinger
import no.nav.syfo.sykmelding.model.SykmeldingArbeidsgiver
class Sykmeldi... | 0 | Kotlin | 0 | 0 | d8565bd31a0923fbfecc99c648ab785634366a31 | 1,486 | sykmeldinger-arbeidsgiver | MIT License |
src/main/kotlin/dev/arbjerg/ukulele/command/HelpCommand.kt | rosbo018 | 437,280,917 | true | {"Kotlin": 45984, "Dockerfile": 282, "Batchfile": 197, "Shell": 99} | package dev.arbjerg.ukulele.command
import dev.arbjerg.ukulele.features.HelpContext
import dev.arbjerg.ukulele.jda.Command
import dev.arbjerg.ukulele.jda.CommandContext
import dev.arbjerg.ukulele.jda.CommandManager
import org.springframework.stereotype.Component
@Component
class HelpCommand : Command("help") {
ov... | 0 | Kotlin | 0 | 0 | 79382d0f4178bd8c36a928a409a4fd0d40892595 | 1,369 | ukulele | MIT License |
plugins/kotlin/idea/tests/testData/intentions/convertForEachToForLoop/forEachIndexed/list.kt | ingokegel | 72,937,917 | true | null | // WITH_STDLIB
fun test() {
listOf(1, 2, 3).forEachIndexed<caret> { index, element ->
println("$index: $element")
}
} | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 133 | intellij-community | Apache License 2.0 |
src/ast/BooleanLiteral.kt | weareskyrabbit | 257,030,778 | false | {"Kotlin": 26646} | package ast
import ir.IRPrinter
class BooleanLiteral(private val value: Boolean): Expression {
override fun toS(n: Int): String {
return "$value"
}
override fun toIR(): ir.Operand {
val tmp = IRPrinter.tmp()
IRPrinter.add(ir.Three(tmp, 0x20, ir.Register.ZERO, ir.Immediate(if (value... | 0 | Kotlin | 0 | 0 | 76ca16d8939ac60b243ccf341ca469a7159b24ef | 360 | incremetal3.0 | MIT License |
pact-jvm-matchers/src/main/kotlin/au/com/dius/pact/matchers/MatchingConfig.kt | thombergs | 140,947,341 | false | {"Gradle": 23, "YAML": 4, "Markdown": 24, "INI": 4, "Shell": 1, "Text": 10, "Ignore List": 1, "Batchfile": 1, "Groovy": 207, "Clojure": 5, "Kotlin": 71, "Scala": 75, "Java": 171, "JSON": 628, "XML": 2, "Java Properties": 1, "Dockerfile": 1} | package au.com.dius.pact.matchers
object MatchingConfig {
val bodyMatchers = mapOf(
"application/.*xml" to "au.com.dius.pact.matchers.XmlBodyMatcher",
"text/xml" to "au.com.dius.pact.matchers.XmlBodyMatcher",
"application/.*json" to "au.com.dius.pact.matchers.JsonBodyMatcher",
"application/json-rpc" ... | 1 | null | 1 | 1 | 9dc0901fdbda5de1ed6aada223f82551ab1da245 | 1,068 | pact-jvm | Apache License 2.0 |
datasource/implementation/src/main/java/com/mitteloupe/whoami/datasource/ipaddressinformation/datasource/IpAddressInformationDataSourceImpl.kt | EranBoudjnah | 662,551,018 | false | null | package com.mitteloupe.whoami.datasource.ipaddressinformation.datasource
import com.mitteloupe.whoami.datasource.ipaddressinformation.exception.NoIpAddressInformationDataException
import com.mitteloupe.whoami.datasource.ipaddressinformation.mapper.IpAddressInformationToDataMapper
import com.mitteloupe.whoami.datasourc... | 0 | Kotlin | 10 | 73 | 360ab5b232427ecc4fdf20e272732eb0d3c65e39 | 1,222 | CleanArchitectureForAndroid | MIT License |
web-service/src/main/java/io/acari/event/source/flux/DownloadStreamToFluxFactory.kt | Unthrottled | 152,663,510 | false | {"CSS": 183129, "TypeScript": 39977, "Java": 24405, "Kotlin": 15328, "JavaScript": 9183, "HTML": 8189, "Dockerfile": 870} | package io.acari.event.source.flux
import com.mongodb.reactivestreams.client.Success
import com.mongodb.reactivestreams.client.gridfs.GridFSDownloadStream
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import reactor.core.publisher.Flux
import reactor.core.publisher.FluxSink
import reactor.core.publisher.Mono
... | 1 | CSS | 1 | 1 | f7741fca5eb9e17b449d5c87544600d73e436e33 | 1,702 | event-sourcing-workshop | MIT License |
ui/licenses/src/commonMain/kotlin/app/tivi/settings/licenses/LicensesUiState.kt | chrisbanes | 100,624,553 | false | {"Kotlin": 1003653, "Swift": 24790, "HTML": 23782, "Ruby": 4088, "Shell": 3317, "Python": 1228} | // Copyright 2019, Google LLC, <NAME> and the Tivi project contributors
// SPDX-License-Identifier: Apache-2.0
package app.tivi.settings.licenses
import androidx.compose.runtime.Immutable
import app.tivi.data.licenses.LicenseItem
import com.slack.circuit.runtime.CircuitUiEvent
import com.slack.circuit.runtime.Circuit... | 23 | Kotlin | 876 | 6,626 | e261ffbded01c1439b93c550cd6e714c13bb9192 | 750 | tivi | Apache License 2.0 |
ui/ui-desktop/src/jvmMain/kotlin/androidx/ui/desktop/DesktopParagraph.kt | Sathawale27 | 282,379,594 | true | {"Java Properties": 20, "Shell": 44, "Markdown": 43, "Java": 4516, "HTML": 17, "Kotlin": 3557, "Python": 28, "Proguard": 37, "Batchfile": 6, "JavaScript": 1, "CSS": 1, "TypeScript": 6, "Gradle Kotlin DSL": 2, "INI": 1, "CMake": 1, "C++": 2} | /*
* 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... | 1 | null | 0 | 1 | 549e3e3003cd308939ff31799cf1250e86d3e63e | 6,768 | androidx | Apache License 2.0 |
tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/InlineQueryResultPhotoImpl.kt | Djaler | 311,091,197 | true | {"Kotlin": 816932, "Shell": 373} | package dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult
import dev.inmo.tgbotapi.CommonAbstracts.*
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.results.photo.InlineQueryResultPhoto
import dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstra... | 0 | null | 0 | 0 | 83edda2dfe370fbc35f2e73283cd71e79f101e3c | 3,016 | TelegramBotAPI | Apache License 2.0 |
KotlinExample/src/main/kotlin/programmers/basic/Day19/잘라서배열로저장하기/Solution.kt | sangki930 | 467,437,850 | false | {"Kotlin": 69458} | package programmers.basic.Day19.잘라서배열로저장하기
class Solution {
fun solution(my_str: String, n: Int): Array<String> {
var cnt = (Math.ceil(1.0*my_str.length/n)).toInt()
var answer=Array(cnt,{""})
for(i in 0 until cnt)
answer[i] = my_str.substring(i*n until Math.min(i*n+n,my_str.leng... | 0 | Kotlin | 0 | 0 | a448bbf4b1ea7e9d972b8e3fce7723ce06fc6410 | 354 | Kotlin | Apache License 2.0 |
KotlinExample/src/main/kotlin/programmers/basic/Day19/잘라서배열로저장하기/Solution.kt | sangki930 | 467,437,850 | false | {"Kotlin": 69458} | package programmers.basic.Day19.잘라서배열로저장하기
class Solution {
fun solution(my_str: String, n: Int): Array<String> {
var cnt = (Math.ceil(1.0*my_str.length/n)).toInt()
var answer=Array(cnt,{""})
for(i in 0 until cnt)
answer[i] = my_str.substring(i*n until Math.min(i*n+n,my_str.leng... | 0 | Kotlin | 0 | 0 | a448bbf4b1ea7e9d972b8e3fce7723ce06fc6410 | 354 | Kotlin | Apache License 2.0 |
app/src/main/java/com/vaibhavmojidra/androidkotlindemohilt/Game.kt | VaibhavMojidra | 659,176,213 | false | null | package com.vaibhavmojidra.androidkotlindemo2dagger2singleton
import android.util.Log
import javax.inject.Inject
class Game @Inject constructor(){
init {
Log.i("MyTag","Game class initialized.")
}
fun isGameDownloaded(){
Log.i("MyTag","Game is already downloaded.")
}
}
| 0 | Kotlin | 0 | 0 | a4f1ee14b40dca359c1a6aa440dc1478aa845d41 | 305 | Android-Kotlin---Demo-Hilt | MIT License |
app/src/main/java/com/language/moviecompose/presentation/screen/favorite/views/FavoriteScreen.kt | ahmetufan | 650,070,075 | false | null | package com.language.moviecompose.presentation.screen.favorite.views
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material.Scaffold
import androidx.compo... | 0 | Kotlin | 0 | 1 | 9171e985df47aa4076067a06a6f503d2a89f9571 | 3,161 | JetpackComposeMovie | MIT License |
app/src/main/java/com/egoriku/radiotok/presentation/ui/radio/miniplayer/RadioMiniPlayer.kt | egorikftp | 345,375,226 | false | null | package com.egoriku.radiotok.presentation.ui.radio.miniplayer
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.material.MaterialTheme
import and... | 1 | Kotlin | 3 | 19 | aa650480efb655a31f1b325fc3475d83f28fad99 | 2,492 | RadioTok | Apache License 2.0 |
sunflowerlibrary/src/main/java/com/thanhtv/sunflowerlibrary/extensions/core/Bundle.kt | vanthanhtran245 | 143,992,863 | false | null | package com.thanhtv.sunflowerlibrary.extensions.core
import android.os.Bundle
inline fun Bundle(body: Bundle.() -> Unit): Bundle {
val bundle = Bundle()
bundle.body()
return bundle
}
inline fun Bundle(loader: ClassLoader, body: Bundle.() -> Unit): Bundle {
val bundle = Bundle(loader)
bundle.body... | 1 | null | 1 | 1 | 3b8e5e9398ba0d333551491f574c531b3cb39dc1 | 615 | sunflowerlibrary | MIT License |
app/src/main/java/com/kieronquinn/app/classicpowermenu/ui/screens/settings/faq/SettingsFaqFragment.kt | KieronQuinn | 410,362,831 | false | null | package com.kieronquinn.app.classicpowermenu.ui.screens.settings.faq
import android.os.Bundle
import android.text.style.ForegroundColorSpan
import android.view.View
import androidx.core.content.res.ResourcesCompat
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import androidx.core.vi... | 8 | null | 7 | 693 | e17f14a85f85d4eefabaf847abfadd1af32291c1 | 2,785 | ClassicPowerMenu | Apache License 2.0 |
app/src/main/java/com/rodrigodominguez/mixanimationsmotionlayout/testbutton/TestButtonActivity.kt | rodrigomartind | 265,013,640 | false | null | package com.rodrigodominguez.mixanimationsmotionlayout.testbutton
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.rodrigodominguez.mixanimationsmotionlayout.R
class TestButtonActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onC... | 1 | Kotlin | 63 | 610 | 17e3d8ad36a3b9806c828bd03cc71eb37af789dc | 414 | MixAnimationsMotionLayout | Apache License 2.0 |
examples/src/main/kotlin/errorPlots/RandomDataErrorsX.kt | SciProgCentre | 186,020,000 | false | null | package errorPlots
import space.kscience.dataforge.meta.invoke
import space.kscience.plotly.Plotly
import space.kscience.plotly.makeFile
import space.kscience.plotly.palettes.Xkcd
import space.kscience.plotly.trace
import java.util.*
/**
* - simple scatter with random length of horizontal error bars
* - change err... | 10 | null | 21 | 142 | a7d2611513c5f50c2f4a9c99b9ccb33cb486f07d | 871 | plotly.kt | Apache License 2.0 |
game/src/main/kotlin/gg/rsmod/game/model/collision/CollisionUpdate.kt | 2011Scape | 578,880,245 | false | null | package gg.rsmod.game.model.collision
import gg.rsmod.game.fs.DefinitionSet
import gg.rsmod.game.fs.def.ObjectDef
import gg.rsmod.game.model.Direction
import gg.rsmod.game.model.Tile
import gg.rsmod.game.model.entity.GameObject
import it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap
import it.unimi.dsi.fastutil.... | 8 | null | 33 | 34 | e5400cc71bfa087164153d468979c5a3abc24841 | 4,452 | game | Apache License 2.0 |
lib/testSrc/util.kt | develar | 294,778,365 | false | {"Java": 849117, "Kotlin": 24519} | package org.jetbrains.integratedBinaryPacking
import org.assertj.core.presentation.Representation
import org.assertj.core.presentation.StandardRepresentation
import java.lang.StringBuilder
import kotlin.random.Random
val random = Random(42)
const val arraySeparator = "\n "
val arrayPresentation = object : Represent... | 1 | null | 1 | 1 | 10909112361f331d3fbc92e9906afb05fa51c0cb | 1,068 | integrated-binary-packing | Apache License 2.0 |
sculptor-shared/src/main/kotlin/io/papermc/sculptor/shared/util/patches/Patcher.kt | PaperMC | 776,033,668 | false | {"Kotlin": 99146} | package io.papermc.sculptor.shared.util.patches
import java.nio.file.Path
interface Patcher {
fun applyPatches(baseDir: Path, patchDir: Path, outputDir: Path, failedDir: Path): PatchResult
}
sealed interface PatchResult {
val patches: List<Path>
val failures: List<PatchFailureDetails>
get() = em... | 0 | Kotlin | 0 | 0 | 61852f191965a86915fb3e746620538d3e233dd4 | 1,384 | sculptor | MIT License |
sources/storage/src/main/java/com/mikyegresl/valostat/storage/StorageFactory.kt | sergey-lvovich-kim | 629,918,357 | false | null | package com.mikyegresl.valostat.storage
import android.content.Context
import androidx.datastore.preferences.preferencesDataStore
import com.google.gson.Gson
import com.mikyegresl.valostat.base.manager.FileManager
import com.mikyegresl.valostat.base.storage.AppConfigStorage
import com.mikyegresl.valostat.base.storage.... | 0 | null | 1 | 8 | 43d703892b9b21824508ab11762f3ad6b04b511b | 1,426 | ValoStat | Apache License 2.0 |
app/src/main/kotlin/com/krishnaZyala/faceRecognition/data/database/ListConverter.kt | ataurrahman112222 | 842,168,905 | false | {"Kotlin": 105440} | package com.devs.faceRecognition.data.database
import androidx.room.ProvidedTypeConverter
import androidx.room.TypeConverter
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import com.google.mlkit.vision.face.FaceLandmark
import com.devs.faceRecognition.data.model.FaceInfo
@ProvidedTypeConverter
... | 0 | Kotlin | 0 | 0 | 54b63d5c54b16efec757b6a6ff423056fbde507d | 1,477 | FaceRecognition | MIT License |
app/src/test/java/com/lifecycle/demo/InfoEntity.kt | striveprince | 211,611,448 | false | null | package com.lifecycle.demo
data class InfoEntity<T>(val code: Int,val msg: String,val result: T)
data class Bean(
val id:String,
val issues:String,
val master:String,
val master_name:String,
val max_number:Int,
val observation_uid:String,
val password:String
)
| 0 | Kotlin | 0 | 2 | 651a6ecd744e8124c5002a075a4a8c325bebd977 | 290 | kotlin | Apache License 2.0 |
1490.Clone N-ary Tree.kt | sarvex | 842,260,390 | false | {"Kotlin": 1775678, "PowerShell": 418} | /*
// Definition for a Node.
class Node {
public int val;
public List<Node> children;
public Node() {
children = new ArrayList<Node>();
}
public Node(int _val) {
val = _val;
children = new ArrayList<Node>();
}
public Node(int _val,ArrayList<Node> _children) {
val = _... | 0 | Kotlin | 0 | 0 | 17a80985d970c8316fb694e4952692e598d700af | 647 | kotlin-leetcode | MIT License |
app/src/androidTest/java/com/app/androidPixabay/ui/pixabay/list/PixabayListActivityTest.kt | yash786agg | 241,149,101 | false | null | package com.app.androidPixabay.ui.pixabay.list
import androidx.test.espresso.Espresso.*
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.assertion.ViewAssertions.*
import androidx.test.espresso.matcher.ViewMatchers.*
import androidx.test.filters.LargeTest
import androidx.test.intern... | 0 | Kotlin | 0 | 0 | a2ace2aa34b25afa6fa7adfee0d64868ff6ee2b7 | 2,445 | PixaBay-Android | Apache License 2.0 |
app/src/main/java/com/stsd/selftaughtsoftwaredevelopers/androidsudokusolver/ui/component/DefaultIcon.kt | self-taught-software-developers | 506,259,677 | false | {"Kotlin": 88864} | package com.stsd.selftaughtsoftwaredevelopers.androidsudokusolver.ui.component
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.... | 11 | Kotlin | 3 | 6 | 5e48440745ba653051a0bf403597bdc2e4887098 | 2,117 | SudokuSolver | Apache License 2.0 |
src/main/kotlin/me/jakejmattson/discordkt/api/dsl/Command.kt | DiscordKt | 271,063,846 | false | null | @file:Suppress("unused")
package me.jakejmattson.discordkt.api.dsl
import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import me.jakejmattson.discordkt.api.*
import me.jakejmattson.discordkt.api.arguments.ArgumentType
import me.jakejmattson.discordkt.... | 2 | Kotlin | 9 | 51 | cd7b9cd4e8b1d0270f0f99006e76df2abcf6e905 | 12,670 | DiscordKt | MIT License |
ChartboostMediation/src/main/java/com/chartboost/chartboostmediationsdk/domain/AdInteractionListener.kt | ChartBoost | 647,839,758 | false | {"Kotlin": 711726, "Ruby": 2509} | /*
* Copyright 2022-2024 Chartboost, Inc.
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file.
*/
package com.chartboost.chartboostmediationsdk.domain
/**
* @suppress
*/
interface AdInteractionListener {
fun onImpressionTracked(partnerAd: PartnerAd)
... | 0 | Kotlin | 0 | 0 | 18948613638191a0639eb264ec6e39f3d37bf722 | 547 | chartboost-mediation-android-sdk | MIT License |
mvikotlin/src/commonMain/kotlin/com/arkivanov/mvikotlin/core/store/Executor.kt | arkivanov | 437,014,963 | false | {"Kotlin": 462372, "CSS": 842, "JavaScript": 716, "HTML": 583} | package com.arkivanov.mvikotlin.core.store
import com.arkivanov.mvikotlin.core.annotations.MainThread
import kotlin.js.JsName
/**
* `Executor` is the place for business logic.
* It accepts `Intents` and `Actions` and produces `Messages` and `Labels`.
* **Important**: please pay attention that it must not be a sing... | 7 | Kotlin | 24 | 661 | b8f93f42bc6871e8d114135d8a026bf0de1bec68 | 2,148 | MVIKotlin | Apache License 2.0 |
Meet_the_Kotlin_lecture/src/main/kotlin/net/milosvasic/conferences/bosch/meetup1/Main.kt | milos85vasic | 104,644,926 | false | null | package net.milosvasic.conferences.bosch.meetup1
/**
* Meet the Kotlin:
*
* 1. Variables vs constants
* 2. Nullability
* 3. Collections
* 4. Functions
* 5. Classes, Abstract classes, Interfaces
* 6. Data classes
* 7. Extension functions
* 8. Misc
*/
fun main(args: Array<String>) = println(logo) | 0 | Kotlin | 0 | 2 | 450775f4041dfe5e96df7b06f026ab9b2e3e3537 | 315 | Garage-Lab-Bosch-meetup | Apache License 2.0 |
src/main/kotlin/github/cheng/engine/TelegramBot.kt | YiGuan-z | 702,319,315 | false | {"Kotlin": 88335} | package github.cheng.engine
import com.github.kotlintelegrambot.Bot
import com.github.kotlintelegrambot.dispatch
import com.github.kotlintelegrambot.logging.LogLevel
import github.cheng.TelegramResources
import github.cheng.application.Application
import github.cheng.application.ApplicationEngine
import github.cheng.a... | 0 | Kotlin | 0 | 0 | c6e213acebde1e41b335fee9a4d48f6244165ca9 | 2,917 | telegram-stickers-collect-bot | MIT License |
SceytChatUiKit/src/main/java/com/sceyt/chatuikit/providers/defaults/DefaultAttachmentIconProvider.kt | sceyt | 549,073,085 | false | {"Kotlin": 2713714, "Java": 107920} | package com.sceyt.chatuikit.providers.defaults
import android.content.Context
import android.graphics.drawable.Drawable
import com.sceyt.chatuikit.R
import com.sceyt.chatuikit.data.models.messages.AttachmentTypeEnum
import com.sceyt.chatuikit.data.models.messages.SceytAttachment
import com.sceyt.chatuikit.extensions.g... | 0 | Kotlin | 1 | 2 | ce9c1b95555fadaafcd11f0d073fcdb07ca49600 | 940 | sceyt-chat-android-uikit | MIT License |
src/main/kotlin/me/jakejmattson/kutils/api/arguments/MemberArg.kt | markhc | 271,817,502 | true | {"Kotlin": 126651} | package me.jakejmattson.kutils.api.arguments
import me.jakejmattson.kutils.api.dsl.arguments.*
import me.jakejmattson.kutils.api.dsl.command.CommandEvent
import me.jakejmattson.kutils.api.extensions.stdlib.trimToID
import net.dv8tion.jda.api.entities.Member
open class MemberArg(override val name: String = "Member", p... | 0 | null | 0 | 0 | 473fcd9ca6391bef2512879aa383d010c6195e04 | 1,067 | KUtils | MIT License |
app/src/main/java/org/ballistic/dreamjournalai/feature_dream/presentation/add_edit_dream_screen/components/DateAndTimeButtons.kt | ErickSorto | 546,852,272 | false | null | package org.ballistic.dreamjournalai.feature_dream.presentation.add_edit_dream_screen.components
import android.os.Build
import androidx.annotation.RequiresApi
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import an... | 0 | Kotlin | 0 | 1 | 133a328b5e89c62f53bdfdab7d5e257977fb89b1 | 4,944 | Dream-Journal-AI | MIT License |
composeApp/src/commonMain/kotlin/com/borealnetwork/allen/modules/product/domain/navigation/ProductClientScreen.kt | baudelioandalon | 742,906,893 | false | {"Kotlin": 424981, "Java": 97326, "Swift": 532} | package com.borealnetwork.allen.modules.product.domain.navigation
sealed class ProductClientScreen(val route: String) {
data object SearchClientScreen : ProductClientScreen("search_client_screen")
data object ResultProductsClient : ProductClientScreen("result_products_client_screen")
data object ProductDe... | 0 | Kotlin | 0 | 0 | ad163dde7d0c7a9e2d66eb79f66417bd40d24d92 | 668 | AllenMultiplatform | Apache License 2.0 |
convention-plugin-test-option/src/main/kotlin/EmulatorJobsMatrix.kt | GitLiveApp | 213,915,094 | false | {"Kotlin": 712421, "Ruby": 18024, "JavaScript": 469} | import com.google.gson.GsonBuilder
import org.gradle.api.Project
import java.io.File
import java.util.Properties
class EmulatorJobsMatrix {
private val gson by lazy {
GsonBuilder()
.disableHtmlEscaping()
.setPrettyPrinting()
.create()
}
fun createMatrixJsonFile... | 83 | Kotlin | 155 | 1,138 | 312beedd23283042277ae6d00393ada87d907589 | 4,716 | firebase-kotlin-sdk | Apache License 2.0 |
miruken/src/test/kotlin/com/miruken/callback/PropertiesTest.kt | coridrew | 151,555,181 | true | {"Kotlin": 521215} | package com.miruken.callback
import com.miruken.assertAsync
import com.miruken.concurrent.Promise
import com.miruken.container.Managed
import com.miruken.container.TestContainer
import org.junit.Rule
import org.junit.Test
import org.junit.rules.TestName
import java.util.*
import kotlin.test.*
class PropertiesTest {
... | 0 | Kotlin | 1 | 0 | b39c281286eceda5479c0bf3561db9980fcf7f5a | 6,835 | Miruken-1 | MIT License |
src/main/kotlin/no/nav/amt/person/service/controller/dto/NavBrukerDto.kt | navikt | 618,357,446 | false | {"Kotlin": 318629, "PLpgSQL": 635, "Dockerfile": 156} | package no.nav.amt.person.service.controller.dto
import no.nav.amt.person.service.nav_bruker.NavBruker
import no.nav.amt.person.service.nav_enhet.NavEnhet
import no.nav.amt.person.service.person.model.Adresse
import java.util.UUID
data class NavBrukerDto (
val personId: UUID,
val personident: String,
val fornavn: ... | 0 | Kotlin | 0 | 0 | 9b894eb62ed622a0dc51986b5624565fe5924cee | 908 | amt-person-service | MIT License |
app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/ExtensionHolder.kt | arkon | 127,645,159 | false | null | package eu.kanade.tachiyomi.ui.browse.extension
import android.view.View
import androidx.core.view.isVisible
import coil.clear
import coil.load
import eu.davidea.viewholders.FlexibleViewHolder
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.databinding.ExtensionItemBinding
import eu.kanade.tachiyomi.extension.... | 92 | null | 58 | 9 | 2f07f226b8182699884262ac67139454d5b7070d | 3,237 | tachiyomi | Apache License 2.0 |
core-db/src/main/java/io/novafoundation/nova/core_db/model/chain/ChainRuntimeInfoLocal.kt | novasamatech | 415,834,480 | false | {"Kotlin": 7667771, "Java": 14723, "JavaScript": 425} | package com.dfinn.wallet.core_db.model.chain
import androidx.room.Entity
import androidx.room.ForeignKey
import androidx.room.Index
@Entity(
tableName = "chain_runtimes",
primaryKeys = ["chainId"],
indices = [
Index(value = ["chainId"])
],
foreignKeys = [
ForeignKey(
en... | 17 | Kotlin | 6 | 9 | 67cd6fd77aae24728a27b81eb7f26ac586463aaa | 594 | nova-wallet-android | Apache License 2.0 |
shared/src/androidMain/kotlin/common/GalleryManager.android.kt | razaghimahdi | 714,632,664 | false | null | package permissions
import android.content.ContentResolver
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.PickVisualMediaRequest
import androidx.activity.result.contract.ActivityResultContracts
import androidx.compose.runtime.Composable
import androidx.compose.runtim... | 1 | null | 9 | 97 | 6047cf13ab86a9dd74c8ea4bcba7a9771ec8ad0e | 1,285 | Shopping-By-KMP | MIT License |
src/main/kotlin/rocks/leight/core/api/message/MessageException.kt | marek-hanzal | 242,307,099 | false | null | package rocks.leight.core.api.message
import rocks.leight.core.api.CoreException
open class MessageException(message: String, cause: Throwable? = null) : CoreException(message, cause)
| 2 | Kotlin | 0 | 1 | 38ebc399d6e43ec3a433ae78d1545aae516cce27 | 186 | leight-core | MIT License |
app/src/main/java/com/perol/asdpl/pixivez/core/PicListFragment.kt | ultranity | 258,955,010 | false | null | /*
* MIT License
*
* Copyright (c) 2023 Ultranity
*
* 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... | 6 | null | 33 | 692 | d5caf81746e4f16a1af64d45490a358fd19aec1a | 13,556 | Pix-EzViewer | MIT License |
app/src/main/java/com/ncs/o2/Domain/Models/User.kt | arpitmx | 647,358,015 | false | null | package com.ncs.o2.Domain.Models
import com.google.firebase.Timestamp
import com.google.firebase.firestore.Exclude
import com.ncs.o2.Domain.Utility.Later
/*
File : Contributor.kt -> com.ncs.o2.Models
Description : Model for Contributor
Author : <NAME> (VC uname : apple)
Link : https://github.com/arpitmx
From : Bitp... | 3 | null | 2 | 2 | 5caa232eda2cd52c89277aec67067728f0d3b8dd | 941 | Oxygen | MIT License |
app/src/main/java/com/leichui/shortviedeo/activity/XuanDizhiActivity.kt | kknet | 378,407,063 | true | {"Gradle": 5, "Shell": 1, "Markdown": 1, "Batchfile": 1, "Text": 1, "Ignore List": 2, "XML": 389, "Java Properties": 2, "Proguard": 3, "JSON": 25, "Java": 407, "Kotlin": 80} | package com.leichui.shortviedeo.activity
import android.content.Intent
import android.support.v7.widget.LinearLayoutManager
import com.jude.easyrecyclerview.adapter.RecyclerArrayAdapter
import com.leichui.shortviedeo.base.BaseActivity
import com.leichui.shortviedeo.bean.AddressListBean
import com.leichui.shortviedeo.h... | 0 | null | 1 | 0 | 8f8f69b200886d4b6671bcc0b2eb11a5343fd7fd | 2,373 | VideoChat | Apache License 2.0 |
src/test/kotlin/com/kalikov/game/SpritesZTest.kt | kalikov | 696,277,791 | false | {"Kotlin": 392286} | package com.kalikov.game
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import kotlin.test.assertEquals
class SpritesZTest {
private lateinit var tank: Tank
private lateinit var explosion: Explosion
private lateinit var bullet: ... | 0 | Kotlin | 0 | 0 | 81abd90ae81286f1118d06540c4a45d9c1c88486 | 3,400 | battle-city | MIT License |
libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/tasks/TasksOutputsBackup.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2019 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.gradle.tasks
import org.gradle.api.file.Directory
import org.gradle.api.file.Dir... | 7 | null | 5686 | 46,039 | f98451e38169a833f60b87618db4602133e02cf2 | 6,917 | kotlin | Apache License 2.0 |
app/src/main/java/com/digitalinclined/edugate/ui/fragments/mainactivity/PDFWebViewFragment.kt | thisisvd | 447,564,444 | false | {"Kotlin": 360695} | package com.digitalinclined.edugate.ui.fragments.mainactivity
import android.os.Bundle
import android.util.Base64
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.appcompat.app.ActionBarDrawerToggle
import a... | 0 | Kotlin | 0 | 0 | 5dc3146cadc4b6831cee6847390a2902a2348ef0 | 2,903 | Eduvae-plus | Apache License 2.0 |
app/src/main/java/com/digitalinclined/edugate/ui/fragments/mainactivity/PDFWebViewFragment.kt | thisisvd | 447,564,444 | false | {"Kotlin": 360695} | package com.digitalinclined.edugate.ui.fragments.mainactivity
import android.os.Bundle
import android.util.Base64
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.appcompat.app.ActionBarDrawerToggle
import a... | 0 | Kotlin | 0 | 0 | 5dc3146cadc4b6831cee6847390a2902a2348ef0 | 2,903 | Eduvae-plus | Apache License 2.0 |
sykepenger-model/src/test/kotlin/no/nav/helse/utbetalingstidslinje/ArbeidsgiverperiodesubsumsjonTest.kt | navikt | 193,907,367 | false | {"Kotlin": 6542815, "PLpgSQL": 2738, "Dockerfile": 168} | package no.nav.helse.utbetalingstidslinje
import java.time.LocalDate
import java.util.UUID
import no.nav.helse.Grunnbeløp
import no.nav.helse.etterlevelse.Paragraf
import no.nav.helse.etterlevelse.Subsumsjon
import no.nav.helse.etterlevelse.Subsumsjon.Utfall
import no.nav.helse.etterlevelse.Subsumsjonslogg
import no.n... | 2 | Kotlin | 7 | 3 | fc9b0c7dc3dd3a755f3cc191f35f1c510e62a2cd | 14,388 | helse-spleis | MIT License |
demo/src/main/java/com/iflytek/cyber/evs/demo/utils/PrefUtil.kt | iFLYOS-OPEN | 206,514,105 | false | null | package com.iflytek.cyber.evs.demo.utils
import android.content.Context
object PrefUtil {
private val PREF_NAME = "com.iflytek.cyber.evs.demo.pref"
fun setToPref(context : Context,
key : String,
value : String) {
context.getSharedPreferences(PREF_NAME, Context.MOD... | 0 | null | 5 | 3 | 1e72910bc614e33b4a4d05222625dcd37151a148 | 693 | SDK-EVS-Android | Apache License 2.0 |
src/main/kotlin/com/example/gungjeonjegwa/domain/order/exception/AddressNotFoundException.kt | gungjeonjegwa | 579,803,041 | false | null | package com.example.gungjeonjegwa.domain.order.exception
import com.example.gungjeonjegwa.global.exception.ErrorCode
import com.example.gungjeonjegwa.global.exception.exceptions.BasicException
class AddressNotFoundException : BasicException(ErrorCode.ADDRESS_NOT_FOUND) {
} | 0 | Kotlin | 0 | 0 | 30a77ac8c8ec594a6d1267ae36df365f1622f250 | 275 | GGJG-Backend | MIT License |
src/main/kotlin/bpm/common/property/Property.kt | sincyn | 852,470,964 | false | {"Kotlin": 1211965, "GLSL": 2785} | package bpm.common.property
import bpm.common.network.NetUtils
import org.joml.*
import java.util.*
import java.util.concurrent.ConcurrentHashMap
import kotlin.reflect.full.isSubtypeOf
import kotlin.reflect.full.starProjectedType
/**
* Casts the value type of this property to the specified type [T].
*
* @return A... | 5 | Kotlin | 1 | 0 | caf36397c9aa72a21e2b19f6051d76db66c9f77c | 18,966 | bpm.core | MIT License |
app/src/main/java/cn/sskbskdrin/record/mesh/Mesh.kt | sskbskdrin | 179,249,401 | false | {"C++": 3560091, "Java": 257858, "Kotlin": 50162, "C": 38126, "CMake": 4860} | package cn.sskbskdrin.record.mesh
import java.nio.ByteBuffer
import java.nio.ByteOrder
import java.nio.FloatBuffer
import java.nio.ShortBuffer
import javax.microedition.khronos.opengles.GL10
/**
* Created by ex-keayuan001 on 2018/11/30.
*
* @author ex-keayuan001
*/
public open class Mesh {
// Our vertex buf... | 0 | C++ | 1 | 0 | 612219433faeec74a36c08c9f8f61d3e4078da20 | 9,161 | AudioVideo | Apache License 2.0 |
app/src/test/java/com/sale/hive/content/ProductContent.kt | kelvinkioko | 609,795,163 | false | null | package com.sale.hive.content
import com.sale.hive.content.VotesContent.Content.fridgeVoteOneDTO
import com.sale.hive.content.VotesContent.Content.fridgeVoteOneModel
import com.sale.hive.content.VotesContent.Content.fridgeVoteTwoDTO
import com.sale.hive.content.VotesContent.Content.fridgeVoteTwoModel
import com.sale.h... | 0 | Kotlin | 0 | 0 | 9015d1f68db90e8d64559fcc4a77c9cc6393f3cc | 4,866 | Sale-Hive | Apache License 2.0 |
app/src/main/java/com/pachatary/presentation/common/injection/scheduler/SchedulerProvider.kt | jordifierro | 116,311,809 | false | null | package com.pachatary.presentation.common.injection.scheduler
import io.reactivex.Scheduler
class SchedulerProvider(private val subscriberScheduler: Scheduler,
private val observerScheduler: Scheduler) {
fun subscriber() = subscriberScheduler
fun observer() = observerScheduler
}
| 0 | Kotlin | 0 | 2 | ac6ba680b0d149027bb0e75266f160fce30fd5de | 315 | pachatary-android | Apache License 2.0 |
app/src/main/java/dev/vengateshm/android_kotlin_compose_practice/parallax_scroll_effect/ParallaxComponent.kt | vengateshm | 670,054,614 | false | null | package dev.vengateshm.android_kotlin_compose_practice.parallax_scroll_effect
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
impo... | 0 | null | 0 | 1 | b329264313e7f46cf3b5879d2316071cdfefdb33 | 5,407 | Android-Kotlin-Jetpack-Compose-Practice | Apache License 2.0 |
modules/Plugin_Main/src/main/java/com/example/main/MainActivity.kt | VintLin | 536,855,586 | false | null | package com.example.main
import android.os.Bundle
import com.example.main.BR
import com.example.main.R
import com.example.base.activity.CommonActivity
import com.example.base.jetpack.binding.DataBindingConfig
import com.example.main.viewmodel.MainViewModel
class MainActivity : CommonActivity() {
private lateinit... | 1 | null | 1 | 1 | 974d954f364fb863bc220ba4038703826a1c2534 | 600 | Jetpack-Seed | Apache License 2.0 |
src/main/kotlin/mathlingua/frontend/chalktalk/phase2/ast/group/toplevel/defineslike/MeansSection.kt | DominicKramer | 203,428,613 | false | null | /*
* Copyright 2022 The MathLingua 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 4 | Kotlin | 0 | 67 | c264bc61ac7d9e520018f2652b110c4829876c82 | 2,904 | mathlingua | Apache License 2.0 |
android/src/main/java/com/layerinfinity/matrixuniversalsdk/RNEventEmitter.kt | layerinfinity | 636,077,251 | false | null | package com.layerinfinity.matrixuniversalsdk
import com.facebook.react.bridge.ReactApplicationContext
class RNEventEmitter(private val reactContext: ReactApplicationContext) {
companion object {
// Event types
const val RN_EVENT_ERROR = "OnError"
}
}
| 1 | Kotlin | 0 | 1 | 7a875aeda1a34d8a028cede6529814681638ad51 | 265 | react-native-matrix-universal-sdk | MIT License |
kmmresult-test/src/commonMain/kotlin/at/asitplus/TestExtensions.kt | a-sit-plus | 567,159,135 | false | {"Kotlin": 24340, "Java": 547} | /*
* Copyright 2021 - 2023 A-SIT Plus GmbH. Obviously inspired and partially copy-pasted from kotlin.Result.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE.txt file.
*/
package at.asitplus
import io.kotest.matchers.Matcher
import io.kotest.matchers.MatcherResult
imp... | 1 | Kotlin | 2 | 8 | 78acabccdf7d87f20dac3591392a5c4cb69da29c | 1,295 | KmmResult | Apache License 2.0 |
app/src/main/java/io/horizontalsystems/bankwallet/modules/settings/notifications/NotificationsFragment.kt | fahimaltinordu | 312,207,740 | false | null | package com.starbase.bankwallet.modules.settings.notifications
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.fragment.app.viewModels
import androidx.lifecycle.Observer
... | 128 | null | 141 | 4 | d3094c4afaa92a5d63ce53583bc07c8fb343f90b | 6,913 | WILC-wallet-android | MIT License |
app/src/main/java/org/citruscircuits/viewer/MainViewerActivity.kt | frc1678 | 804,234,032 | false | {"Kotlin": 418437} | package org.citruscircuits.viewer
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.os.Bundle
import android.util.Log
import android.view.Gravity
import android.view.Menu
import android.view.MenuItem
import android.view.View
import android.view.inputmethod... | 0 | Kotlin | 0 | 0 | f38e2f99c1b16f6f5a89342b4619c19082346b09 | 23,156 | viewer-2024-public | MIT License |
conductor-client/src/main/kotlin/com/openlattice/edm/processors/GetPartitionsFromEntitySetEntryProcessor.kt | openlattice | 101,697,464 | false | null | package com.openlattice.edm.processors
import com.openlattice.edm.EntitySet
import com.openlattice.rhizome.DelegatedIntSet
import com.openlattice.rhizome.hazelcast.entryprocessors.AbstractReadOnlyRhizomeEntryProcessor
import java.util.*
class GetPartitionsFromEntitySetEntryProcessor : AbstractReadOnlyRhizomeEntryProc... | 2 | Kotlin | 0 | 2 | de0b93da64826f129db41055a874cebf73ce95d8 | 581 | openlattice | Apache License 2.0 |
app/src/main/java/com/andre/apps/filamentdroid/data/network/UserResponse.kt | andrejoshua | 693,715,679 | false | {"Kotlin": 35695} | package com.andre.apps.filamentdroid.data.network
import com.google.gson.annotations.SerializedName
data class UserResponse(
@SerializedName("id") val id: Long,
@SerializedName("uid") val uid: String,
@SerializedName("first_name") val firstName: String,
@SerializedName("last_name") val lastName: Strin... | 0 | Kotlin | 0 | 0 | ccf4579a2618b66fc39339de29014e347fd48c18 | 1,001 | filament-droid | Apache License 2.0 |
app/src/main/java/io/horizontalsystems/bankwallet/modules/pin/PinInteractor.kt | amitkpandey | 157,035,948 | true | {"Kotlin": 392733, "Ruby": 4476} | package io.horizontalsystems.bankwallet.modules.pin
import io.horizontalsystems.bankwallet.core.IAdapterManager
import io.horizontalsystems.bankwallet.core.IKeyStoreSafeExecute
import io.horizontalsystems.bankwallet.core.IPinManager
import io.horizontalsystems.bankwallet.core.IWordsManager
class PinInteractor(
... | 0 | Kotlin | 0 | 1 | cbcaed74f977fbec7d2ed1b13bb0b08d9a0f8ef6 | 1,543 | bank-wallet-android | MIT License |
app/src/main/java/dev/vengateshm/artbookappandroidtestingudemy/drag_drop/DragDropAdapter.kt | vengateshm | 716,970,555 | false | {"Kotlin": 53714, "Java": 3653} | package dev.vengateshm.artbookappandroidtestingudemy.drag_drop
import android.annotation.SuppressLint
import android.content.ClipData
import android.view.LayoutInflater
import android.view.MotionEvent
import android.view.View
import android.view.View.DragShadowBuilder
import android.view.View.OnTouchListener
import an... | 0 | Kotlin | 0 | 0 | a4bebf307750fe65a20abb6f7efda17c02831f44 | 2,374 | android_testing_udemy_art_book_app | Apache License 2.0 |
source-downloader-core/src/main/kotlin/xyz/shoaky/sourcedownloader/core/DefaultPluginContext.kt | shoaky009 | 607,575,763 | false | null | package xyz.shoaky.sourcedownloader.core
import com.google.common.cache.CacheBuilder
import org.springframework.stereotype.Component
import xyz.shoaky.sourcedownloader.sdk.*
import xyz.shoaky.sourcedownloader.sdk.component.SdComponentSupplier
import java.util.concurrent.ConcurrentHashMap
class DefaultPluginContext(
... | 1 | Kotlin | 0 | 7 | 5d1a3d0ed55f6f935aeee93e96033fd918eca14c | 1,883 | source-downloader | Apache License 2.0 |
mazeview/src/main/java/com/zetzaus/mazeview/extension/ContextExtensions.kt | SebastianLiando | 337,328,176 | false | null | package com.zetzaus.mazeview.extension
import android.content.Context
import android.graphics.Bitmap
import android.util.TypedValue
import androidx.annotation.AttrRes
import androidx.annotation.DrawableRes
import androidx.core.content.ContextCompat
@Throws(IllegalArgumentException::class)
fun Context.getDrawableOrThr... | 0 | Kotlin | 0 | 0 | b0d270f8fa86b4eaa1b6271f2979bf81e5c7e1d5 | 1,129 | maze-mdp | MIT License |
library/src/main/java/com/aminography/primedatepicker/picker/PrimeDatePickerImpl.kt | aminography | 188,271,012 | false | null | package com.aminography.primedatepicker.picker
import android.content.Context
import android.content.DialogInterface
import android.content.res.ColorStateList
import android.graphics.Typeface
import android.os.Bundle
import android.view.View
import android.widget.Toast
import androidx.coordinatorlayout.widget.Coordina... | 23 | null | 45 | 427 | 9ad06c7010963b25943121ef97eab7463db3cdfa | 17,569 | PrimeDatePicker | Apache License 2.0 |
app/src/main/java/com/jonareas/rentapp/data/model/Department.kt | soymegh | 434,097,806 | false | null | package com.jonareas.rentapp.data.model
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "department")
data class Department (
@PrimaryKey(autoGenerate = true)
@ColumnInfo(name = "department_id")
val departmentId: Int = 0,
@ColumnInfo(nam... | 0 | Kotlin | 0 | 0 | 6fa758b84bece723d05546cebcf65449dcc9aaaf | 391 | NewRentApp | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.