path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/org/snd/metadata/providers/viz/model/AgeRating.kt | Snd-R | 463,859,568 | false | null | package snd.komf.providers.viz.model
enum class AgeRating(val age: Int) {
ALL_AGES(0),
TEEN(13),
TEEN_PLUS(15),
MATURE(18)
}
| 30 | null | 9 | 99 | 0584078f460c5d8c7b740bbe77905fab1c0ad105 | 142 | komf | MIT License |
app/src/main/java/moe/matsuri/nb4a/ui/MTUPreference.kt | xchacha20-poly1305 | 735,230,186 | false | {"Kotlin": 870875, "Java": 202335, "Go": 110430, "Shell": 8239, "AIDL": 902, "Makefile": 304} | package moe.matsuri.nb4a.ui
import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.view.inputmethod.EditorInfo
import android.widget.EditText
import androidx.preference.ListPreference
import androidx.preference.PreferenceViewHolder
import com.google.android.material.dia... | 3 | Kotlin | 6 | 93 | d574b8d42903686836d11ae524e378317e584a19 | 1,591 | husi | BSD Source Code Attribution |
src/main/kotlin/fwcd/miniml/graph/Sin.kt | fwcd | 171,545,453 | false | null | package fwcd.miniml.graph
/**
* The trigonometric sine function.
*/
class Sin(
value: ValueNode
) : UnaryElementwise(
value,
"sin",
Math::sin,
Math::cos
)
| 0 | Kotlin | 0 | 4 | 483f4cc7c5ee209f16016ec4c82637b58c06bcd3 | 163 | mini-ml | MIT License |
src/main/kotlin/no/nav/medlemskap/regler/v1/arbeidsforhold/ErArbeidsforholdetOffentligSektor.kt | navikt | 225,422,169 | false | {"Kotlin": 943408, "Gherkin": 426906, "Shell": 151, "Dockerfile": 147} | package no.nav.medlemskap.regler.v1.arbeidsforhold
import no.nav.medlemskap.domene.Datagrunnlag
import no.nav.medlemskap.domene.Ytelse
import no.nav.medlemskap.domene.arbeidsforhold.Arbeidsforhold
import no.nav.medlemskap.domene.arbeidsforhold.Arbeidsforhold.Companion.erArbeidsforholdetOffentligSektor
import no.nav.me... | 10 | Kotlin | 1 | 0 | ef1d25c3b042bfec4fc2f235fb658e97f94479d6 | 1,416 | medlemskap-oppslag | MIT License |
app/src/main/java/com/example/mealprep/ui/creation/StepsCreationScreen.kt | eliseevavika | 610,988,163 | false | null | package com.example.mealprep.fill.out.recipe.card
import androidx.compose.runtime.Composable
import com.example.mealprep.viewmodel.RecipeViewModel
@Composable
fun StepsCreationScreen(viewModel: () -> RecipeViewModel) {
ListStepsScreen(viewModel)
} | 0 | Kotlin | 0 | 0 | ac04da3de4c66c578afb8e549940476b40306252 | 253 | MealPrep | Apache License 2.0 |
app/src/main/java/com/example/android/codelabs/paging/stateflow/StateFlowActivity.kt | ime01 | 339,117,947 | false | null | package com.example.android.codelabs.paging.stateflow
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.activity.viewModels
import androidx.core.view.isVisible
import androidx.lifecycle.lifecycleScope
import com.example.android.codelabs.paging.R
import com.google.android.material... | 0 | Kotlin | 0 | 0 | a78f50199271b6ff68a8d6117761d35879ad22d2 | 1,669 | AAD_EXAM_PREP | Apache License 2.0 |
shared/src/commonMain/kotlin/com/petros/efthymiou/dailypulse/sources/data/SourcesResponse.kt | ricodroid | 863,836,314 | false | {"Kotlin": 36719, "Swift": 9122} | package com.petros.efthymiou.dailypulse.sources.data
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class SourcesResponse(
@SerialName("status")
val status: String,
@SerialName("sources")
val sources: List<SourceRaw>,
) | 0 | Kotlin | 0 | 0 | b376423a76147cc882879e16778023ed12e81d90 | 291 | kmp-template | Apache License 2.0 |
security/backend/src/main/kotlin/ams/abramelin/security/auth/service/JwtProvider.kt | tilau2328 | 156,662,968 | false | null | package ams.abramelin.security.auth.service
import io.jsonwebtoken.*
import org.slf4j.LoggerFactory
import java.util.*
object JwtProvider {
private val logger = LoggerFactory.getLogger(JwtProvider::class.java)
private const val secret = "OhHiIAmASecretDontTellAnyoneAboutMe"
private const val expiration =... | 0 | Kotlin | 0 | 0 | e9889bfd73056ef4c07c48ec1bc85e0e2cda61be | 1,624 | Abramelin | Apache License 2.0 |
kotlin/674.Longest Continuous Increasing Subsequence(最长连续递增序列).kt | learningtheory | 141,790,045 | false | {"Python": 4025652, "C++": 1999023, "Java": 1995266, "JavaScript": 1990554, "C": 1979022, "Ruby": 1970980, "Scala": 1925110, "Kotlin": 1917691, "Go": 1898079, "Swift": 1827809, "HTML": 124958, "Shell": 7944} | /**
<p>
Given an unsorted array of integers, find the length of longest <code>continuous</code> increasing subsequence (subarray).
</p>
<p><b>Example 1:</b><br />
<pre>
<b>Input:</b> [1,3,5,4,7]
<b>Output:</b> 3
<b>Explanation:</b> The longest continuous increasing subsequence is [1,3,5], its length is 3.
Even though... | 0 | Python | 1 | 3 | 6731e128be0fd3c0bdfe885c1a409ac54b929597 | 1,640 | leetcode | MIT License |
app/src/main/java/pl/droidsonrioids/glidesharedtransition/ImageDownloader.kt | nf1213 | 181,011,209 | true | {"Kotlin": 7937} | package pl.droidsonrioids.glidesharedtransition
import android.content.Context
import androidx.work.Worker
import androidx.work.WorkerParameters
import com.bumptech.glide.Glide
class ImageDownloader(context: Context, workerParameters: WorkerParameters): Worker(context, workerParameters) {
override fun doWork(): R... | 0 | Kotlin | 0 | 0 | 55c7f4100fb1413a91a02873c2145da098ed3008 | 693 | GlideSharedTransition | MIT License |
couchbase-lite/src/jvmCommonMain/kotlin/kotbase/internal/DelegatedClass.kt | jeffdgr8 | 518,984,559 | false | null | /*
* Copyright 2022-2023 <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 ... | 1 | null | 1 | 7 | ec8fbeb0d3e6c487ec8fb48ba2ba5388c71a29b1 | 1,309 | kotbase | Apache License 2.0 |
couchbase-lite/src/jvmCommonMain/kotlin/kotbase/internal/DelegatedClass.kt | jeffdgr8 | 518,984,559 | false | null | /*
* Copyright 2022-2023 <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 ... | 1 | null | 1 | 7 | ec8fbeb0d3e6c487ec8fb48ba2ba5388c71a29b1 | 1,309 | kotbase | Apache License 2.0 |
app/src/androidTest/java/br/com/stone/emeraldcomponentsandroid/ShotTestRunner.kt | renanrbs | 274,745,709 | true | {"Kotlin": 254576} | package br.com.stone.emeraldcomponentsandroid
import android.os.Bundle
import androidx.test.runner.AndroidJUnitRunner
import com.facebook.testing.screenshot.ScreenshotRunner
/**
* Created by lucasdiego on 28/09/18.
* Copyright (c) Stone Co. All rights reserved.
* lucas.amaral@stone.com.br
*/
class ShotTestRunner:... | 0 | null | 0 | 0 | fb9e5e52016f40cfa4528645a54b2accb9fddab0 | 631 | emerald-components-android | Apache License 2.0 |
app/src/main/java/com/life4/flowpod/features/source/podcastSource/PodcastSourceViewModel.kt | serhatkarakoca | 567,899,274 | false | {"Kotlin": 384571} | package com.life4.flowpod.features.source.podcastSource
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.life4.core.core.vm.BaseViewModel
import com.life4.flowpod.models.podcast.PodcastResponse
import com.life4.flowpod.models.podcast.categories.PodcastCategories
import com.life4.... | 0 | Kotlin | 0 | 0 | 5f0df5ad62a16af45910730f88cea4cb2a133d69 | 1,886 | Flowpod-News-Podcast | Apache License 2.0 |
app/src/main/java/com/revolgenx/anilib/ui/viewmodel/user/UserProfileViewModel.kt | rev0lgenX | 244,410,204 | false | null | package com.revolgenx.anilib.ui.viewmodel.user
import androidx.lifecycle.MediatorLiveData
import androidx.lifecycle.ViewModel
import com.revolgenx.anilib.data.field.user.UserProfileField
import com.revolgenx.anilib.data.field.user.UserToggleFollowField
import com.revolgenx.anilib.data.model.user.UserFollowerCountModel... | 3 | Kotlin | 1 | 24 | 355d2b5510682d869f18e0113453237af8a1f1cc | 2,444 | AniLib | Apache License 2.0 |
app/src/main/java/com/allentom/diffusion/ui/screens/imagedetail/ImageDetailViewModel.kt | AllenTom | 744,304,887 | false | {"Kotlin": 983586} | package com.allentom.diffusion.ui.screens.imagedetail
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
object ImageDetailViewModel:ViewModel() {
var imageName by mutableStateOf("")
} | 0 | Kotlin | 1 | 64 | 3514c638007144b56de883c804048617dc32b939 | 304 | diffusion-client | MIT License |
app/src/main/kotlin/no/nav/tiltakspenger/vedtak/repository/statistikk/stønad/StatistikkStønadDAO.kt | navikt | 487,246,438 | false | {"Kotlin": 783873, "Shell": 1318, "Dockerfile": 495, "HTML": 45} | package no.nav.tiltakspenger.vedtak.repository.statistikk.stønad
import kotliquery.TransactionalSession
import no.nav.tiltakspenger.saksbehandling.service.statistikk.stønad.StatistikkStønadDTO
import no.nav.tiltakspenger.saksbehandling.service.statistikk.stønad.StatistikkUtbetalingDTO
interface StatistikkStønadDAO {
... | 10 | Kotlin | 0 | 1 | 63b6702ba616e70e219dbc37f19707f7a60ef7d5 | 458 | tiltakspenger-vedtak | MIT License |
shared/src/commonMain/kotlin/home/presentation/components/tasks/TasksComponent.kt | AndreVero | 735,628,501 | false | {"Kotlin": 34264, "Swift": 669, "Shell": 228} | package home.presentation.components.tasks
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.Spring
import androidx.compose.animation.core.spring
import androidx.compose.runtime.Composable
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.gestures.detec... | 0 | Kotlin | 0 | 0 | ec3512844819f6dd56a479d131937d6dca413587 | 6,321 | EasyTask | Apache License 2.0 |
api/src/main/kotlin/nebulosa/api/guiding/GuidePulseRequest.kt | tiagohm | 568,578,345 | false | {"Kotlin": 2747666, "TypeScript": 509060, "HTML": 243311, "JavaScript": 120539, "SCSS": 11332, "Python": 2817, "Makefile": 355} | package nebulosa.api.guiding
import nebulosa.guiding.GuideDirection
import java.time.Duration
data class GuidePulseRequest(
@JvmField val direction: GuideDirection,
@JvmField val duration: Duration,
)
| 21 | Kotlin | 2 | 4 | e144290464c5e6e2e18ad23a036526800428e7f9 | 211 | nebulosa | MIT License |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/di/AndroidModule.kt | fynngodau | 316,435,356 | true | {"Kotlin": 1918111, "HTML": 220745, "Java": 11067} | package de.rki.coronawarnapp.util.di
import android.app.Application
import android.bluetooth.BluetoothAdapter
import android.content.Context
import android.content.SharedPreferences
import androidx.core.app.NotificationManagerCompat
import androidx.work.WorkManager
import dagger.Module
import dagger.Provides
import de... | 0 | Kotlin | 0 | 0 | dfc1d918472a50c2f358b1f3ce54de72696cede7 | 1,418 | cwa-app-android | Apache License 2.0 |
baseLib/src/androidTest/java/me/ycdev/android/lib/common/async/HandlerExecutorTest.kt | lbj38057473 | 242,320,066 | true | {"Kotlin": 442213, "C++": 9501, "Makefile": 370} | package me.ycdev.android.lib.common.async
import android.os.Looper
import android.os.SystemClock
import androidx.test.filters.LargeTest
import org.junit.Test
import java.util.ArrayList
import java.util.concurrent.CountDownLatch
import java.util.concurrent.TimeUnit
import com.google.common.truth.Truth.assertThat
@L... | 0 | null | 0 | 0 | cfcaa183a44d540d4321bfdf48e5e4a5de7df424 | 1,675 | AndroidLib | Apache License 2.0 |
src/main/kotlin/no/nav/bidrag/arbeidsflyt/model/OppdaterOppgaveFraHendelse.kt | navikt | 295,692,779 | false | null | package no.nav.bidrag.arbeidsflyt.model
import no.nav.bidrag.arbeidsflyt.dto.OppdaterOppgave
import no.nav.bidrag.arbeidsflyt.dto.OppgaveData
import no.nav.bidrag.arbeidsflyt.dto.OppgaveHendelse
import no.nav.bidrag.arbeidsflyt.dto.OppgaveType
import no.nav.bidrag.arbeidsflyt.service.JournalpostService
import no.nav.b... | 4 | Kotlin | 0 | 2 | a183291312febaaa0d851da6311686776f2a31b1 | 6,140 | bidrag-arbeidsflyt | MIT License |
commoncomposeui/src/commonTest/kotlin/dev/baseio/slackdata/localdata/FakeKeyValueSource.kt | oianmol | 528,898,439 | false | {"Kotlin": 752408, "Swift": 113141, "Ruby": 11800, "Shell": 587, "Objective-C": 486, "C": 1} | package dev.baseio.slackdata.localdata
import dev.baseio.slackdomain.datasources.local.SKLocalKeyValueSource
class FakeKeyValueSource : SKLocalKeyValueSource {
private val hashMap = HashMap<String, HashMap<String, Any>>()
override fun clear(workspaceId: String?) {
hashMap[workspaceId ?: "default"]?.c... | 3 | Kotlin | 21 | 235 | 143f06c11b757641fd3e67809f57dee9f2ffd04b | 609 | SlackComposeMultiplatform | Apache License 2.0 |
src/main/java/com/barneyb/aoc/aoc2022/day22/Map.kt | barneyb | 553,291,150 | false | null | package com.barneyb.aoc.aoc2022.day22
import com.barneyb.aoc.aoc2022.day22.Turn.LEFT
import com.barneyb.aoc.aoc2022.day22.Turn.RIGHT
import com.barneyb.util.*
import com.barneyb.util.Dir.*
import kotlin.math.sqrt
private fun IntProgression.indexOf(n: Int) =
(n - first) / step
private operator fun IntProgression.... | 0 | Kotlin | 0 | 0 | 8b5956164ff0be79a27f68ef09a9e7171cc91995 | 8,654 | aoc-2022 | MIT License |
app/src/main/java/com/spider/composeapp/di/AppModule.kt | prasanth10697 | 840,429,959 | false | {"Kotlin": 15305} | package com.spider.composeapp.di
import com.spider.composeapp.data.api.ApiService
import com.spider.composeapp.data.datasource.NewsDataSource
import com.spider.composeapp.data.datasource.NewsDataSourceImpl
import com.spider.composeapp.repository.NewsRepository
import com.spider.composeapp.util.AppConstants
import com.... | 0 | Kotlin | 0 | 0 | 0ee571c2b1293349542d8dca0c3253243b031f19 | 1,989 | UI-compose-and-retrofit- | Apache License 2.0 |
game/domain/src/test/kotlin/com/delbel/bullscows/game/domain/core/AnswerTest.kt | matiasdelbel | 252,494,245 | false | null | package com.delbel.bullscows.game.domain.core
import com.google.common.truth.Truth.assertThat
import junit.framework.Assert.fail
import org.junit.Test
class AnswerTest {
@Test
fun `create with valid answer should create it`() {
val answer = Answer(bulls = 2, cows = 2)
assertThat(answer).isEq... | 4 | Kotlin | 0 | 0 | 3ecbbfc6d01793709434334a8a71e81cbc799023 | 1,637 | bulls-and-cows | Apache License 2.0 |
app/src/main/java/com/jammin/myapplication/data/repository/AuthRepositoryImpl.kt | Junction2022 | 526,564,786 | false | {"Kotlin": 140145} | package com.jammin.myapplication.data.repository
import com.jammin.myapplication.data.model.request.auth.SignInRequest
import com.jammin.myapplication.data.model.request.auth.SignUpRequest
import com.jammin.myapplication.data.model.response.auth.RefreshResponse
import com.jammin.myapplication.data.model.response.auth.... | 4 | Kotlin | 0 | 1 | 5cefcbb90842b2a3ef87d6533be6093a18f375d1 | 1,094 | PaperIn_Android | Apache License 2.0 |
app/src/main/java/com/roverphotos/mars/roverphotos/viewmodel/DetailViewModelFactory.kt | mtcn | 161,918,120 | false | null | package com.roverphotos.mars.roverphotos.viewmodel
import android.arch.lifecycle.ViewModel
import android.arch.lifecycle.ViewModelProvider
import com.roverphotos.mars.roverphotos.data.Photo
/**
* Created by metecanduyal on 16.12.2018.
*/
class DetailViewModelFactory (private val photo: Photo?) : ViewModelProvider... | 0 | Kotlin | 0 | 2 | 5630514360fbf2b9611d1f22c22448b0d697a328 | 450 | RoverPhotos | Apache License 2.0 |
src/main/kotlin/br/com/jiratorio/domain/issue/JiraIssue.kt | jirareport | 126,883,660 | false | {"Kotlin": 628412, "Dockerfile": 302} | package br.com.jiratorio.domain.issue
import br.com.jiratorio.domain.changelog.Changelog
import java.time.LocalDateTime
data class JiraIssue(
val key: String,
val issueType: String?,
val leadTime: Long,
val creator: String?,
val created: LocalDateTime,
val startDate: LocalDateTime,
val end... | 12 | Kotlin | 12 | 21 | 845540e238f47fbd05c1f7f6839152545521c63e | 571 | jirareport | MIT License |
customer/src/main/kotlin/br/dev/rodrigocury/customer/domain/Customer.kt | RodrigoCury | 535,456,790 | false | null | package br.dev.rodrigocury.customer.domain
import org.springframework.data.annotation.Id
import org.springframework.data.mongodb.core.mapping.Document
@Document
class Customer {
@Id
var id: String? = null
var firstName: String? = null
var lastName: String? = null
var email: String? = null
}
| 0 | Kotlin | 0 | 0 | f1ce45a60931526fba157bc2008115ef4474bca3 | 314 | cloud-services | MIT License |
src/main/kotlin/me/oriharel/seriesmanager/model/entity/Entity.kt | Heknon | 299,585,607 | false | null | package me.oriharel.seriesmanager.model.entity
interface Entity {
val id: Int
val name: String
} | 0 | Kotlin | 0 | 1 | 5568d7be4c25249af799408c0b8488673ad0ef36 | 105 | SeriesManager | MIT License |
src/main/kotlin/me/nobaboy/nobaaddons/NobaAddons.kt | nobaboy | 867,566,026 | false | {"Kotlin": 99251} | package me.nobaboy.nobaaddons
import com.mojang.logging.LogUtils
import kotlinx.coroutines.*
import me.nobaboy.nobaaddons.api.DungeonAPI
import me.nobaboy.nobaaddons.api.PartyAPI
import me.nobaboy.nobaaddons.api.SkyblockAPI
import me.nobaboy.nobaaddons.commands.NobaCommand
import me.nobaboy.nobaaddons.commands.SWikiCo... | 0 | Kotlin | 1 | 0 | 2b337ee10c5f3668dc33ce0a5ab92501de529645 | 2,690 | NobaAddons | The Unlicense |
app/src/main/java/com/padcmyanmar/kunyi/views/holders/JobViewholder.kt | LinBoBoAung | 142,575,345 | false | null | package com.padcmyanmar.kunyi.views.holders
import android.view.View
import com.padcmyanmar.kunyi.FacebookRegisterAcitivity
import com.padcmyanmar.kunyi.datas.vos.JobVO
import com.padcmyanmar.kunyi.delegates.JobDetailDelegate
import kotlinx.android.synthetic.main.detail_job.view.*
import kotlinx.android.synthetic.main... | 0 | Kotlin | 0 | 0 | 59924504b7d61d94adf302a88acd6a4ed36adb40 | 793 | KuNyi | MIT License |
app/src/main/kotlin/com/tatuas/takotoneco/di/RepositoryModule.kt | tatuas | 459,615,358 | false | {"Kotlin": 43613} | package com.tatuas.takotoneco.di
import com.tatuas.takotoneco.data.api.GitHubService
import com.tatuas.takotoneco.repogitory.GitHubRepository
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import kotlinx.coroutines.CoroutineDispatcher
import ja... | 0 | Kotlin | 0 | 0 | c1062f46cebce345670c0e1c5294660cb204d46e | 570 | takotoneco | MIT License |
paradox-language-support/src/main/kotlin/com/windea/plugin/idea/paradox/localisation/codeInsight/ParadoxLocalisationCompletionContributor.kt | DragonKnightOfBreeze | 271,196,420 | false | null | @file:Suppress("HasPlatformType")
package com.windea.plugin.idea.paradox.localisation.codeInsight
import com.intellij.codeInsight.completion.*
import com.intellij.codeInsight.lookup.*
import com.intellij.patterns.PlatformPatterns.*
import com.intellij.util.*
import com.windea.plugin.idea.paradox.*
import com.windea.p... | 1 | Kotlin | 2 | 4 | abadd50d6fba765e64995f27d525270d4907efed | 1,134 | Idea-Plugins | MIT License |
src/com/hxz/mpxjs/run/VueDebugAware.kt | wuxianqiang | 508,329,768 | false | {"Kotlin": 1447881, "Vue": 237479, "TypeScript": 106023, "JavaScript": 93869, "HTML": 17163, "Assembly": 12226, "Lex": 11227, "Java": 2846, "Shell": 1917, "Pug": 338} | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.hxz.mpxjs.run
import com.intellij.javascript.debugger.JavaScriptDebugAwareBase
import com.hxz.mpxjs.lang.html.VueFileType
internal class VueDebugAware : JavaScriptDe... | 2 | Kotlin | 0 | 4 | e069e8b340ab04780ac13eab375d900f21bc7613 | 355 | intellij-plugin-mpx | Apache License 2.0 |
common/src/main/kotlin/us/wedemy/eggeum/android/common/util/Animation.kt | Wedemy | 615,061,021 | false | {"Kotlin": 459164} | /*
* Designed and developed by Wedemy 2023.
*
* Licensed under the MIT.
* Please see full license: https://github.com/Wedemy/eggeum-android/blob/main/LICENSE
*/
package us.wedemy.eggeum.android.common.util
import android.animation.Animator
import android.animation.AnimatorListenerAdapter
import android.view.View... | 14 | Kotlin | 0 | 13 | c6da1cbe0aa086c0388d1eb65ee3f6e7f1d4c5b6 | 751 | eggeum-android | MIT License |
01_Lenguaje_Programacion/01_KotlinAvanzado/AgendaCore/src/test/kotlin/AgendaTest.kt | malonso-uvg | 832,840,454 | false | {"Kotlin": 153138} | import edu.uvg.ppm2024.*
import kotlin.test.Test
import kotlin.test.assertNotNull
class AgendaTest {
@Test
fun testAgregarContacto() {
val name = "Moises"
val lastname = "Alonso"
val phones = mutableListOf<String>("31209493", "12345678")
val emails = mutableListOf<String>("<EMA... | 0 | Kotlin | 1 | 1 | ae9dfe07cbf94ffa0604a5afd2f0fd95440f1b0c | 802 | uvg2024ppm20 | Apache License 2.0 |
npm-publish-gradle-plugin/src/main/kotlin/util/general.kt | mpetuska | 324,739,843 | false | null | package dev.petuska.npm.publish.util
import org.gradle.api.Action
import org.gradle.api.plugins.ExtensionContainer
import org.gradle.api.provider.Property
import org.gradle.api.provider.Provider
internal fun String?.notFalse() = !(
equals("false", true) ||
equals("0", true) ||
equals("n", true) ||
equal... | 6 | Kotlin | 9 | 97 | 3e5ba2f3b5af6bdc0e10159585eefec7c69c8561 | 969 | npm-publish | Apache License 2.0 |
travako-starter/travako-starter-spring-jpa-default/src/main/java/io/arkitik/travako/starter/spring/jpa/DefaultTravakoSpringJpaStarter.kt | arkitik | 441,685,610 | false | null | package io.arkitik.travako.starter.spring.jpa
import io.arkitik.travako.adapter.leader.LeaderPortContext
import io.arkitik.travako.port.job.JobInstancePortContext
import io.arkitik.travako.port.job.event.JobEventPortContext
import io.arkitik.travako.port.runner.RunnerPortContext
import io.arkitik.travako.port.server.S... | 1 | Kotlin | 0 | 3 | 567a8d28861733b2a8a56c8b052e3cc91977e7e7 | 1,662 | travako | Apache License 2.0 |
src/main/kotlin/me/fluffshark/dgskotlindataloader/loaders/CoroutineDataLoaderRegistry.kt | fluff-shark | 738,809,832 | false | {"Kotlin": 33937} | package me.fluffshark.dgskotlindataloader.loaders
import java.util.concurrent.ConcurrentHashMap
import kotlin.reflect.KClass
import me.fluffshark.dgskotlindataloader.loaders.CoroutineDataLoader
class CoroutineDataLoaderRegistry(
private val provider: CoroutineDataLoaderProvider,
) {
private val loaderMap = Concur... | 0 | Kotlin | 0 | 5 | a445721044b91f13300f231e7612c4634039637a | 1,561 | dgs-kotlin-dataloader-example | MIT License |
converter/src/main/java/com/epicadk/hapiprotoconverter/converter/ParametersConverter.kt | epicadk | 402,074,793 | false | {"Kotlin": 2405480} | package com.epicadk.hapiprotoconverter.converter
import com.epicadk.hapiprotoconverter.converter.AddressConverter.toHapi
import com.epicadk.hapiprotoconverter.converter.AddressConverter.toProto
import com.epicadk.hapiprotoconverter.converter.AgeConverter.toHapi
import com.epicadk.hapiprotoconverter.converter.AgeConver... | 1 | Kotlin | 0 | 3 | 2abe5967a905f6a29ed5736c75e8ffb2cf6d3e78 | 18,093 | hapi-proto-converter | Apache License 2.0 |
app/src/main/java/playground/develop/socialnote/ui/AboutActivity.kt | mars-amn | 197,773,483 | false | {"Kotlin": 252056, "JavaScript": 2212} | package playground.develop.socialnote.ui
import android.content.Intent
import android.content.pm.ApplicationInfo
import android.content.pm.PackageManager
import android.graphics.Paint
import android.net.Uri
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import android... | 0 | Kotlin | 10 | 58 | 811a30081d7cf3555419a618ead5cebc0e28a6d7 | 3,914 | Social-Note | MIT License |
app/src/main/java/com/levis/nimblechallenge/data/network/Api.kt | LevisLuong | 807,424,023 | false | {"Kotlin": 158020} | package com.levis.nimblechallenge.data.network
import com.levis.nimblechallenge.data.network.dtos.BaseDataResponse
import com.levis.nimblechallenge.data.network.dtos.LoginTokenDto
import com.levis.nimblechallenge.data.network.dtos.SurveyDto
import com.levis.nimblechallenge.data.network.request.ForgotPasswordRequest
im... | 0 | Kotlin | 0 | 0 | cb2e6ba5bb17d48d6e4732c0116ff125cab360c7 | 1,474 | NimbleChallenge | Apache License 2.0 |
app/src/main/kotlin/com/contentful/tea/kotlin/settings/SettingsFragment.kt | contentful | 132,734,874 | false | null | package com.contentful.tea.kotlin.settings
import android.Manifest
import android.content.Intent
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Bundle
import android.provider.MediaStore
import android.view.View
import androidx.appcompat.widget.Toolbar
import androidx.core.app.Activit... | 1 | null | 21 | 14 | a0955bf2a732cd10280660fd32ee03392ca762ca | 8,146 | the-example-app.kotlin | Apache License 2.0 |
modules/test/http/src/main/kotlin/dev/jonpoulton/actual/test/http/MockWebServerRule.kt | jonapoul | 766,282,291 | false | {"Kotlin": 233128} | package dev.jonpoulton.actual.test.http
import dev.jonpoulton.actual.core.model.ServerUrl
import okhttp3.mockwebserver.MockResponse
import okhttp3.mockwebserver.MockWebServer
import org.junit.rules.TestWatcher
import org.junit.runner.Description
class MockWebServerRule : TestWatcher() {
private lateinit var server:... | 0 | Kotlin | 0 | 0 | 64a503e36f47edce84cd72f68a6833e90fcce73c | 977 | actual-android | Apache License 2.0 |
examples/ex-line-of-sight/ex-line-of-sight-common/src/main/kotlin/io/data2viz/examples/lineOfSight/LineOfSightModel.kt | wbuchanan | 131,614,774 | true | {"Kotlin": 1388605, "HTML": 41196, "JavaScript": 36763} | package io.data2viz.examples.lineOfSight
import io.data2viz.core.*
import io.data2viz.math.Angle
import io.data2viz.math.PI
import io.data2viz.math.deg
import kotlin.math.atan2
import kotlin.math.cos
import kotlin.math.sin
import kotlin.math.sqrt
data class Segment(val from: Point, val to: Point)
data class Intersect... | 0 | Kotlin | 0 | 0 | 1e34ed8863f3c104363a58be45d738571429be3a | 9,009 | data2viz | Apache License 2.0 |
examples/ex-line-of-sight/ex-line-of-sight-common/src/main/kotlin/io/data2viz/examples/lineOfSight/LineOfSightModel.kt | wbuchanan | 131,614,774 | true | {"Kotlin": 1388605, "HTML": 41196, "JavaScript": 36763} | package io.data2viz.examples.lineOfSight
import io.data2viz.core.*
import io.data2viz.math.Angle
import io.data2viz.math.PI
import io.data2viz.math.deg
import kotlin.math.atan2
import kotlin.math.cos
import kotlin.math.sin
import kotlin.math.sqrt
data class Segment(val from: Point, val to: Point)
data class Intersect... | 0 | Kotlin | 0 | 0 | 1e34ed8863f3c104363a58be45d738571429be3a | 9,009 | data2viz | Apache License 2.0 |
kotlin/src/com/leetcode/16_3SumClosest.kt | programmerr47 | 248,502,040 | false | null | package com.leetcode
import kotlin.math.abs
private class Solution16 {
fun threeSumClosest(nums: IntArray, target: Int): Int {
val sorted = nums.sorted()
var result = sorted[0] + sorted[1] + sorted[2]
for (i1 in sorted.indices) {
for (i2 in i1 + 1 until sorted.size) {
... | 0 | Kotlin | 0 | 0 | 0b5fbb3143ece02bb60d7c61fea56021fcc0f069 | 1,966 | problemsolving | Apache License 2.0 |
features/feature-heros-domain/src/test/java/com/mctech/showcase/feature/heros/domain/interactions/LoadNexPageComicsOfHeroCaseTest.kt | MayconCardoso | 227,483,417 | false | null | package com.mctech.showcase.feature.heros.domain.interactions
import com.mctech.showcase.feature.heros.domain.error.ComicError
import com.mctech.showcase.feature.heros.domain.error.NetworkException
import com.mctech.showcase.feature.heros.domain.service.HeroService
import com.mctech.testing.data_factory.TestDataFactor... | 0 | Kotlin | 0 | 5 | 2236517f7222c827a719087a558f8536a4f8734e | 2,858 | Modularized-Marvel-Showcase | Apache License 2.0 |
src/main/kotlin/dev/crashteam/uzumanalytics/stream/listener/aws/AwsStreamListener.kt | crashteamdev | 647,366,680 | false | {"Kotlin": 397406, "PLpgSQL": 10528, "Dockerfile": 743} | package dev.crashteam.uzumanalytics.stream.listener.aws
import com.amazonaws.services.kinesis.clientlibrary.interfaces.v2.IRecordProcessor
interface AwsStreamListener : IRecordProcessor
| 3 | Kotlin | 0 | 0 | 5c092c9c5560ffdfb29c8bab6f7273ff261e6ac3 | 188 | uzum-analytics | Apache License 2.0 |
app/src/main/java/com/adictosalainformatica/kotlinclean/features/avengerslist/domain/entities/Url.kt | rmiguel1985 | 172,973,839 | false | null | package com.adictosalainformatica.kotlinclean.features.avengerslist.domain.entities
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
data class Url (
@SerializedName("type")
@Expose
val type: String? = null,
@SerializedName("url")
@Expose
val url: Str... | 0 | null | 0 | 3 | e5fbf4993dfb886b4e81002b1d92b7b51ce9382b | 333 | KotlinMvpArchitecture | The Unlicense |
inputview/src/main/java/cn/mtjsoft/inputview/entity/FunctionEntity.kt | mtjsoft | 412,280,826 | false | {"Kotlin": 72266} | package cn.mtjsoft.inputview.entity
import androidx.annotation.ColorRes
import androidx.annotation.DrawableRes
import cn.mtjsoft.inputview.R
import java.io.Serializable
data class FunctionEntity(
@DrawableRes
val imgResId: Int,
val name: String,
@ColorRes
val textColorResId: Int = R.color.black,
... | 0 | Kotlin | 0 | 6 | 308c77c33360066042925259e395e55719554394 | 368 | InputView | Apache License 2.0 |
app/src/main/java/com/mindorks/framework/mvp/ui/login/LoginActivityModule.kt | atanu00 | 117,672,612 | true | {"Kotlin": 65265} | package com.mindorks.framework.mvp.ui.login
import com.mindorks.framework.mvp.ui.login.interactor.LoginInteractor
import com.mindorks.framework.mvp.ui.login.interactor.LoginInteractorImpl
import com.mindorks.framework.mvp.ui.login.presenter.LoginPresenter
import com.mindorks.framework.mvp.ui.login.presenter.LoginPrese... | 0 | Kotlin | 0 | 0 | e028dede0e8686f2164d37fe61f892b058573e28 | 844 | android-kotlin-mvp-architecture | Apache License 2.0 |
app/src/main/java/com/fappslab/seedcake/application/ActivityLifecycle.kt | F4bioo | 693,834,465 | false | {"Kotlin": 401014, "Python": 2583, "Shell": 900} | package com.fappslab.seedcake.application
import android.app.Activity
import android.app.Application
import android.os.Bundle
import com.fappslab.features.common.domain.usecase.GetScreenShieldStateUseCase
import com.fappslab.libraries.security.extension.screenShield
import org.koin.core.component.KoinComponent
import ... | 0 | Kotlin | 0 | 1 | b126728e15261c877943736d592d7d269618a114 | 1,076 | Seedcake | MIT License |
sample/app/src/commonMain/kotlin/com/number869/decomposeSimplifications/ui/screens/category1Default/Category1DefaultScreen.kt | Number869 | 720,841,879 | false | {"Kotlin": 36823, "Shell": 579} | package com.number869.decomposeSimplifications.ui.screens.category1Default
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Button
import a... | 0 | Kotlin | 0 | 0 | b70f9cd4e3a087500cc7119c903c316553e20cf6 | 1,446 | DecomposeSimplifications | Apache License 2.0 |
app/src/main/java/com/fanrong/frwallet/wallet/cwv/model/QueryTransactionRecordModel.kt | iamprivatewallet | 464,003,911 | false | {"JavaScript": 2822760, "Kotlin": 1140535, "Java": 953177, "HTML": 17003} | package com.fanrong.frwallet.wallet.cwv.model
import java.io.Serializable
data class TransactionRecordReq(var dapp_id: String) : Serializable {
var limit: String? = null
var offset: String? = null
var address: String? = null
}
data class TransactionRecordResp(var msg: String) : Serializable {
var t... | 0 | JavaScript | 0 | 1 | be8003e419afbe0429f2eb3fd757866e2e4b9152 | 1,347 | PrivateWallet.Android | MIT License |
src/test/kotlin/com/miquido/parsepub/internal/document/TocDocumentHandlerTest.kt | miquido | 185,740,961 | false | null | package com.miquido.parsepub.internal.document
import com.miquido.parsepub.epubvalidator.ValidationListeners
import com.miquido.parsepub.internal.decompressor.EpubDecompressor
import com.miquido.parsepub.internal.di.ParserModuleProvider
import com.miquido.parsepub.internal.document.toc.TocDocumentHandler
import com.mi... | 0 | Kotlin | 0 | 1 | db2a180b5f8919be6457efeea88d8f18dd7b4a3b | 3,095 | parsepub | Apache License 2.0 |
glimpse/core/src/commonMain/kotlin/cameras/RelativeTargetCamera.kt | glimpse-graphics | 319,730,354 | false | null | /*
* Copyright 2020-2023 Glimpse Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 5 | Kotlin | 0 | 6 | e00a9f22db9e10493e7711d5dd8524eb7b06be77 | 1,902 | glimpse | Apache License 2.0 |
src/jsMain/kotlin/worker/WorkerTask.kt | elizarov | 337,522,862 | false | null | /*
* Copyright 2021 Roman Elizarov. Use of this source code is governed by the Apache 2.0 license.
*/
package polyhedra.js.worker
import kotlinx.serialization.*
import polyhedra.common.poly.*
import polyhedra.common.transform.*
import polyhedra.common.util.*
@Serializable
sealed class WorkerTask<T, R : WorkerResul... | 0 | Kotlin | 0 | 28 | ac15c7fe326e472470562a42f9fd519b24dfb455 | 1,021 | PolyhedraExplorer | Apache License 2.0 |
06_ParametersAndExceptionHandler/rest-with-spring-boot-and-kotlin-erudio/src/test/kotlin/br/com/ednilsonfaria/rest/integrationtests/vo/PersonVO.kt | EdnilsonFaria | 514,319,548 | false | null | package br.com.ednilsonfaria.rest.integrationtests.vo
data class PersonVO(
var id: Long = 0,
var firstName : String = "",
var lastName : String = "",
var address : String = "",
var gender : String = ""
)
| 0 | Kotlin | 0 | 0 | 316b06d153560247ea4aebf3fedd4fbe8afe7094 | 225 | rest-with-spring-boot-and-kotlin-erudio | Apache License 2.0 |
app/src/main/java/com/example/myprojectkotlinuniversity/data/AnimalImagesRepository.kt | MaksymChalyi | 635,904,200 | false | {"Kotlin": 15575} | package com.example.myprojectkotlinuniversity.data
import com.example.myprojectkotlinuniversity.data.remote.ApiFactoryImagesOfDogs
import com.example.myprojectkotlinuniversity.data.remote.model.DogImagesApiModel
object AnimalImagesRepository {
private val imagesApi = ApiFactoryImagesOfDogs.animalImagesApi
s... | 0 | Kotlin | 0 | 0 | 336eda5317596cd8310bcf66242bd5e8a74c27b3 | 643 | FinalProjectKotlinUniversity | MIT License |
composeApp/src/commonMain/kotlin/core/domain/usecase/MediaDetailUseCase.kt | FrankieShao | 815,291,399 | false | {"Kotlin": 347190, "Swift": 657} | package core.domain.usecase
import core.domain.model.MediaModel
import core.domain.model.MediaType
import core.domain.repo.ConfigureRepo
import core.services.remote.MovieGateway
import core.services.remote.TVGateway
/**
* @author <NAME>
* @created 06/06/2024
* Description: This file contains the use case for getti... | 0 | Kotlin | 0 | 0 | 5137399a0b2d5554aa49377ed5d853cfece5dc68 | 2,858 | FlickFusion | MIT License |
feature-staking-impl/src/main/java/jp/co/soramitsu/feature_staking_impl/data/model/Payout.kt | soramitsu | 278,060,397 | false | null | package jp.co.soramitsu.feature_staking_impl.data.model
import java.math.BigInteger
class Payout(
val validatorAddress: String,
val era: BigInteger,
val amount: BigInteger
)
| 4 | null | 14 | 55 | d555e9cf4bd5f0abf8091781c237b6af9e1da850 | 188 | fearless-Android | Apache License 2.0 |
app/src/main/java/com/krm/logger/log/Logger.kt | cadet29manikandan | 242,055,860 | false | null | package com.krm.logger.log
object Logger {
const val VERBOSE = 2
const val DEBUG = 3
const val INFO = 4
const val WARN = 5
const val ERROR = 6
const val ASSERT = 7
private var printer: Printer = LoggerPrinter()
fun printer(printer: Printer) {
Logger.printer =
Utils.c... | 0 | Kotlin | 1 | 0 | 1a3b29d40c463857a54f2f35eee41c65ffff3ed1 | 1,721 | Logger | Apache License 2.0 |
app/src/main/kotlin/de/uni_marburg/mathematik/ds/serval/enums/MapStyles.kt | Thames1990 | 101,338,851 | false | null | package de.uni_marburg.mathematik.ds.serval.enums
import android.support.annotation.RawRes
import android.support.annotation.StringRes
import de.uni_marburg.mathematik.ds.serval.R
/**
* Defines the style of the map.
*
* @property titleRes Resource ID of the title
* @property styleRes Resource ID to the JSON file ... | 2 | Kotlin | 0 | 0 | 9cb9c7de4a6075f800e84a612a07c8e2efaa5c1a | 1,165 | aardvark | MIT License |
shared/src/commonMain/kotlin/presentation/component/ProductBox.kt | razaghimahdi | 714,632,664 | false | null | package presentation.component
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import ... | 0 | null | 2 | 22 | f50c42955b8ff1c5833168579345d3109a5d4184 | 4,380 | Shopping-By-KMP | MIT License |
template/base_feature/src/main/java/ru/surfstudio/standard/ui/recylcer/adapter/PaginationableAdapter.kt | llOldmenll | 200,101,552 | true | {"Kotlin": 1787549, "Java": 826942, "FreeMarker": 54338, "Groovy": 8823, "C++": 1542, "CMake": 285} | package ru.surfstudio.standard.base_ui.recylcer.adapter
import android.support.v7.widget.StaggeredGridLayoutManager
import android.view.View
import android.view.View.GONE
import android.view.View.VISIBLE
import android.view.ViewGroup
import android.widget.TextView
import androidx.core.view.updateLayoutParams
import ru... | 0 | Kotlin | 0 | 0 | 69d435621d90954102af7424b4b309213d9bc95d | 2,994 | SurfAndroidStandard | Apache License 2.0 |
iminling-core/src/main/kotlin/com/iminling/core/config/filter/Filter.kt | konghanghang | 340,850,176 | false | null | package com.iminling.core.config.filter
import com.iminling.core.exception.BizException
import org.springframework.core.Ordered
import org.springframework.core.annotation.AnnotationUtils
import org.springframework.web.method.HandlerMethod
import javax.servlet.http.HttpServletRequest
/**
* @author yslao@outlook.com
... | 0 | Kotlin | 0 | 1 | 9f2cb7d85ad7364ff3aa92bfd5eb15db9b23809a | 754 | base-iminling-core | MIT License |
src/Day07.kt | arturkowalczyk300 | 573,084,149 | false | {"Kotlin": 31119} | //region data classes
enum class PROMPT_TYPE {
COMMAND_CD_ROOT, //move to root
COMMAND_CD_LOWER_LEVEL, //lower level, means deeper in file structure
COMMAND_CD_UPPER_LEVEL, //upper level means returning closer to the root of file system
COMMAND_LS
}
abstract class FileSystemElement(var size: Int, var ... | 0 | Kotlin | 0 | 0 | 69a51e6f0437f5bc2cdf909919c26276317b396d | 7,675 | aoc-2022-in-kotlin | Apache License 2.0 |
codebase/src/main/java/com/singularity_code/codebase/util/Json.kt | SingularityIndonesia | 659,777,906 | false | null | package com.singularity_code.codebase.util
import com.google.gson.Gson
import com.singularity_code.codebase.pattern.JsonConvertible
inline fun <reified T : JsonConvertible> String.toObject(): T =
Gson().fromJson(this, T::class.java) | 0 | null | 0 | 3 | 38e73034980d0a864b910fd37d57615386e822e2 | 238 | AndroidCodebase | MIT License |
src/main/kotlin/de/sambalmueslie/discord/bot/staffsergeant/util/Util.kt | Black-Forrest-Development | 517,332,893 | false | null | package de.sambalmueslie.discord.bot.staffsergeant.util
import io.micronaut.data.repository.PageableRepository
fun <E, ID : Any> PageableRepository<E, ID>.findByIdOrNull(id: ID): E? = this.findById(id).orElseGet { null }
| 1 | Kotlin | 0 | 0 | 74ca1f87eb5b825ab98d8a260dd7a6c0bc91f215 | 224 | staffseargant | Apache License 2.0 |
shared/src/commonMain/kotlin/com/thomaskioko/tvmaniac/datasource/mapper/SeasonsMapper.kt | c0de-wizard | 361,393,353 | false | null | package com.thomaskioko.tvmaniac.datasource.mapper
import com.thomaskioko.tvmaniac.datasource.cache.SelectSeasonsByShowId
import com.thomaskioko.tvmaniac.datasource.cache.Tv_season
import com.thomaskioko.tvmaniac.datasource.network.model.ShowDetailResponse
import com.thomaskioko.tvmaniac.presentation.model.Season
fun... | 3 | Kotlin | 1 | 16 | 051aaba6359199cb8f9815feb6e96e0f5580d589 | 1,201 | tv-maniac | Apache License 2.0 |
Piktographs/src/commonMain/kotlin/com/iktwo/piktographs/ui/CheckboxUI.kt | Iktwo | 732,393,783 | false | {"Kotlin": 150536, "Swift": 544} | package com.iktwo.piktographs.ui
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material... | 0 | Kotlin | 0 | 0 | bae9d54ea7244de2d96718de66497928bb0fbcd0 | 1,410 | Kodices | Apache License 2.0 |
browser-kotlin/src/jsMain/kotlin/web/uievents/InputEvent.types.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6328455} | // Automatically generated - do not modify!
package web.uievents
import seskar.js.JsValue
import web.events.EventType
sealed external class InputEventTypes :
InputEventTypes_deprecated {
@JsValue("beforeinput")
val BEFORE_INPUT: EventType<InputEvent>
@JsValue("input")
val INPUT: EventType<Input... | 1 | Kotlin | 8 | 35 | 6c553c67c6cbf77a802c137d010b143895c7da60 | 329 | types-kotlin | Apache License 2.0 |
app/src/test/java/uk/nhs/nhsx/covid19/android/app/onboarding/PolicyUpdateProviderTest.kt | nhsx-mirror | 289,296,773 | true | {"Kotlin": 2761696, "Shell": 1098, "Ruby": 847, "Batchfile": 197} | package uk.nhs.nhsx.covid19.android.app.onboarding
import io.mockk.every
import io.mockk.mockk
import io.mockk.verify
import org.junit.Test
import uk.nhs.nhsx.covid19.android.app.BuildConfig
import kotlin.test.assertEquals
class PolicyUpdateProviderTest {
private val policyUpdateStorage = mockk<PolicyUpdateStora... | 0 | Kotlin | 0 | 0 | 296c9decde1b5ed904b760ff77b05afc51f24281 | 2,612 | covid-19-app-android-ag-public | MIT License |
src/main/kotlin/wellusion/TransformerExt.kt | wellusion | 257,038,195 | false | null | package wellusion
import org.w3c.dom.Document
import java.io.ByteArrayInputStream
import java.nio.charset.StandardCharsets
import javax.xml.transform.OutputKeys
import javax.xml.transform.Transformer
import javax.xml.transform.TransformerFactory
import javax.xml.transform.stream.StreamSource
abstract class Transforme... | 0 | Kotlin | 0 | 1 | 6c4d0f91439cac8e822a5ec9fea2251f2d53edec | 1,967 | xml-extensions | MIT License |
app/features/updater/src/main/java/tv/orange/features/updater/data/mvp/UpdaterContract.kt | NyanArchive | 503,292,084 | false | null | package tv.orange.features.updater.data.mvp
import tv.orange.features.updater.component.data.model.UpdateData
import java.io.File
interface UpdaterContract {
interface View {
fun close()
fun render(state: State)
fun createTempFile(): File
fun getOtaFile(build: Int): File
fu... | 0 | Kotlin | 0 | 2 | 69f8dcc9df76fe4a48b2fcad8290f8d1cfcc5ff6 | 2,453 | OrangeTV | Apache License 2.0 |
app/src/main/java/com/example/helloworld/MainActivity3.kt | phychee | 581,509,833 | false | null | package com.example.helloworld
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Button
import android.widget.Toast
class MainActivity3 : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
... | 0 | Kotlin | 0 | 0 | 33ff43c301867b139b5e73a557e24626a3c428e2 | 1,057 | HelloWorld | Apache License 2.0 |
app/src/main/java/nicolas/app/ada/newappnotes/MainActivity.kt | nicoruiz94 | 761,960,035 | false | {"Kotlin": 2701} | package nicolas.app.ada.newappnotes
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.room.Room
import nicolas.app.ada.newappnotes.Data.AppDataBase
import nicolas.app.ada.newappnotes.Data.Note
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceStat... | 0 | Kotlin | 0 | 0 | aab3b9505df2dccba03c892ccbf68795acc3ca9e | 634 | nuevo-proyecto- | Apache License 2.0 |
src/main/kotlin/org/crystal/intellij/lang/resolve/cache/CrResolveSlice.kt | asedunov | 353,165,557 | false | {"Kotlin": 1660372, "Java": 554445, "Crystal": 245131, "Lex": 192822, "HTML": 445} | package org.crystal.intellij.lang.resolve.cache
import com.intellij.openapi.util.KeyWithDefaultValue
typealias CrResolveSlice<K, V> = KeyWithDefaultValue<MutableMap<K, V>> | 11 | Kotlin | 4 | 33 | 65aa5125bf54643c24228983b828deccf37ec8c4 | 173 | intellij-crystal-lang | Apache License 2.0 |
theodolite/src/main/kotlin/rocks/theodolite/kubernetes/patcher/NumNestedGroupsLoadGeneratorReplicaPatcher.kt | cau-se | 265,538,393 | false | null | package rocks.theodolite.kubernetes.patcher
import io.fabric8.kubernetes.api.model.HasMetadata
import io.fabric8.kubernetes.api.model.apps.Deployment
import kotlin.math.pow
class NumNestedGroupsLoadGeneratorReplicaPatcher(
private val numSensors: Int,
private val loadGenMaxRecords: Int,
) : AbstractIntPatcher... | 0 | Java | 6 | 30 | a24089fbef1283575e92d4f655bc5497044560dc | 772 | theodolite | Apache License 2.0 |
app/src/main/java/com/kuberam/android/ui/theme/Type.kt | rohitjakhar | 393,230,094 | false | null | package com.kuberam.android.ui.theme
import androidx.compose.material.Typography
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.Font
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.sp
import com.kuberam.andr... | 3 | Kotlin | 6 | 37 | dd1ff326b99dce0299f8a8dc0753734b489d319a | 1,454 | Kuberam | MIT License |
flare/src/commonTest/kotlin/AuthTest.kt | EdwinTieu5642 | 467,799,693 | true | {"Kotlin": 228956, "Swift": 949, "Ruby": 154} | import enchant.flare.*
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.launch
import kotlinx.coroutines.yield
import kotlin.test.*
@OptIn(ExperimentalCoroutinesApi::class)
class AuthTest : FlareTest() {
lateinit var auth: FirebaseAuth
@BeforeTest
fun initializeAuth() {
... | 0 | null | 0 | 0 | dbcaedff152675ce05b6f5fa466b17864063acb4 | 8,263 | flare | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/Stamp.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
i... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,875 | icons | MIT License |
src/main/java/com/p2p/lending/impl/InvestServiceImpl.kt | lordqyxz | 209,478,108 | false | null | package com.p2p.lending.impl
import com.p2p.lending.entity.InvestInfo
import com.p2p.lending.repository.InvestInfoDao
import com.p2p.lending.service.InvestService
import org.springframework.stereotype.Service
import javax.annotation.Resource
@Service
class InvestServiceImpl : InvestService {
@Resource
privat... | 1 | null | 1 | 1 | 166a224e41c4385634adb75c87f493524a679a71 | 899 | lending | MIT License |
compiler/testData/codegen/boxAgainstJava/property/fieldAccessFromExtensionInTraitImpl.kt | erokhins | 14,658,474 | true | {"Java": 14526655, "Kotlin": 6831811, "JavaScript": 897073, "Groovy": 43935, "CSS": 14421, "Shell": 9248} | // KT-4878
import fieldAccessFromExtensionInTraitImpl as D
interface T {
fun Int.foo(d: D) = d.result!!
}
class A : T {
fun bar() = 42.foo(D())
}
fun box() = A().bar()
| 0 | Java | 0 | 1 | ff00bde607d605c4eba2d98fbc9e99af932accb6 | 180 | kotlin | Apache License 2.0 |
app/src/main/java/org/coepi/android/ui/navigation/NavigationCommand.kt | Co-Epi | 249,138,523 | false | null | package com.match.android.ui.navigation
import androidx.navigation.NavDirections
import java.io.Serializable
sealed class NavigationCommand : Serializable {
data class ToDestination(val destinationId: NavDirections) : NavigationCommand()
data class ToDirections(val directions: NavDirections) : NavigationComma... | 14 | Kotlin | 20 | 32 | 54cffa441d27d18ba33d7719a34dc9b5c9125262 | 433 | app-android | MIT License |
clients/kotlin/generated/src/main/kotlin/io/swagger/client/models/HudsonMasterComputer.kt | zhiwei55 | 127,058,165 | true | {"Java": 7756283, "C++": 3985373, "C#": 3367837, "PHP": 2639235, "HTML": 2016332, "Python": 1451773, "Swift": 1288941, "TypeScript": 1232093, "Ruby": 1108711, "JavaScript": 1092066, "Apex": 949936, "Perl": 725589, "Scala": 534194, "Objective-C": 470063, "Eiffel": 428606, "Shell": 359635, "ActionScript": 258239, "Go": 2... | /**
* <NAME>
* Jenkins API clients generated from Swagger / Open API specification
*
* OpenAPI spec version: 0.1.0
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package io.swagger... | 0 | Java | 0 | 0 | 678b5477f5f9f00022b176c34b840055fb1b0a77 | 1,682 | swaggy-jenkins | MIT License |
plugins/grazie/src/main/kotlin/com/intellij/grazie/config/migration/VersionedState.kt | ingokegel | 72,937,917 | true | null | package com.intellij.grazie.config.migration
/**
* Interface to define state with version.
*/
interface VersionedState<E : VersionedState.Version<T>, T : VersionedState<E, T>> {
interface Version<T : VersionedState<*, T>> {
fun migrate(state: T) = state
fun next(): Version<T>?
}
/** Current version of... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 945 | intellij-community | Apache License 2.0 |
src/main/java/exnihilocreatio/api/registries/IOreRegistry.kt | BloodyMods | 99,278,949 | true | {"Java": 720736, "Kotlin": 100099, "Shell": 449} | package exnihilocreatio.api.registries
import exnihilocreatio.items.ore.ItemOre
import exnihilocreatio.items.ore.Ore
import exnihilocreatio.texturing.Color
import exnihilocreatio.util.ItemInfo
interface IOreRegistry : IRegistryList<Ore> {
val itemOreRegistry: List<ItemOre>
/**
* A black list of ores to ... | 58 | Java | 22 | 26 | 75f60692a4257a62ba9f6831866e456d8526ec9d | 1,021 | ExNihiloCreatio | MIT License |
kotlin/samples/tictactoe/common/src/main/java/com/squareup/sample/gameworkflow/GamePlayScreen.kt | AChep | 196,603,311 | true | {"Gemfile.lock": 1, "Ruby": 5, "Markdown": 22, "Text": 1, "Ignore List": 1, "Swift": 44, "YAML": 1, "XML": 40, "JSON": 2, "OpenStep Property List": 5, "Shell": 2, "Gradle": 20, "Java Properties": 10, "Batchfile": 1, "EditorConfig": 1, "Kotlin": 167, "INI": 1, "Java": 1} | /*
* Copyright 2017 Square Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 0 | 1 | 153a756e4fe6cafd3631cd51033db56ccb0a407b | 920 | workflow | Apache License 2.0 |
app/src/main/java/com/bernaferrari/changedetection/ui/ListPaddingDecoration.kt | familqasimov | 135,228,367 | false | null | package com.bernaferrari.changedetection.ui
import android.content.Context
import android.graphics.Rect
import android.support.v7.widget.RecyclerView
import android.util.TypedValue
import android.view.View
/**
* Adds 8dp padding to the top of the first and the Listeners of the last item in the list,
* as specified ... | 1 | null | 1 | 2 | 0000228176ae2e5838e691c402a683517555c68f | 1,390 | ChangeDetection | Apache License 2.0 |
kotest-assertions/src/jvmTest/kotlin/com/sksamuel/kotest/matchers/boolean/BooleanMatchersTest.kt | junron | 214,570,871 | false | {"Gradle": 30, "YAML": 2, "Markdown": 12, "Java Properties": 2, "Shell": 3, "Text": 1, "Ignore List": 1, "Batchfile": 2, "EditorConfig": 1, "INI": 4, "Kotlin": 574, "Maven POM": 1, "XML": 10, "JavaScript": 1, "Java": 1, "JSON": 1} | package com.sksamuel.kotest.matchers.boolean
import io.kotest.core.spec.style.FreeSpec
import io.kotest.matchers.booleans.shouldBeFalse
import io.kotest.matchers.booleans.shouldBeTrue
import io.kotest.matchers.booleans.shouldNotBeFalse
import io.kotest.matchers.booleans.shouldNotBeTrue
import io.kotest.shouldBe
import... | 1 | null | 1 | 1 | 3a00e967d50a43e6200060f7c3df44c730d02610 | 2,737 | kotlintest | Apache License 2.0 |
app/src/main/java/com/example/home/socialservicenetworkapp/SettingsActivity.kt | klukhnov | 153,464,724 | false | null | package com.example.home.socialservicenetworkapp
import android.app.Activity
import android.app.ProgressDialog
import android.content.Intent
import android.content.SharedPreferences
import android.graphics.Color
import android.graphics.Color.BLACK
import android.graphics.PorterDuff
import android.os.Bundle
import andr... | 1 | null | 1 | 1 | 893b39edca73a0a4a9cded37c2b3f6aec301ece5 | 10,645 | FireBaseKotlinApp | MIT License |
idea/tests/testData/resolve/references/TopLevelCompanionObjectVsLocalClassConstructor2.kt | JetBrains | 278,369,660 | false | null | package test
class Conflict(i: Int) {
companion object {
operator fun invoke() {}
}
}
fun test() {
class Conflict
<caret>Conflict()
}
// REF: (in test.test).Conflict | 0 | Kotlin | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 193 | intellij-kotlin | Apache License 2.0 |
core/src/main/kotlin/info/laht/threekt/renderers/shaders/chunk/clipping_planes_vertex.kt | markaren | 196,544,572 | false | null | package info.laht.threekt.renderers.shaders.chunk
internal val __clipping_planes_vertex = """
#if NUM_CLIPPING_PLANES > 0 && ! defined( PHYSICAL ) && ! defined( PHONG ) && ! defined( MATCAP )
vViewPosition = - mvPosition.xyz;
#endif
"""
| 7 | null | 14 | 187 | 8dc6186d777182da6831cf1c79f39ee2d5960cd7 | 244 | three.kt | MIT License |
plugins/kotlin/idea/tests/testData/gradle/androidImportAndCheckHighlighting/hmppWithSeveralHmppDependencies/p1/src/jvmMain/kotlin/JvmMain.kt | JetBrains | 2,489,216 | false | null | @file:Suppress("unused")
import io.ktor.client.*
import io.ktor.utils.io.core.*
import kotlinx.atomicfu.AtomicInt
import kotlinx.atomicfu.update
import kotlinx.coroutines.Deferred
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.runBlocking
import java.util.concurrent.locks.ReentrantLock
class JvmMain:... | 191 | null | 4372 | 13,319 | 4d19d247824d8005662f7bd0c03f88ae81d5364b | 1,761 | intellij-community | Apache License 2.0 |
src/com/ivaneye/ktjvm/model/constant/ConstantClass.kt | ivaneye | 90,348,769 | false | {"XML": 1, "Text": 1, "Ignore List": 1, "Markdown": 1, "Java": 1, "Kotlin": 65} | package com.ivaneye.ktjvm.model.constant
import com.ivaneye.ktjvm.model.ClassInfo
import com.ivaneye.ktjvm.type.U1
import com.ivaneye.ktjvm.type.U2
import com.ivaneye.ktjvm.type.U4
/**
* Created by wangyifan on 2017/5/22.
*/
class ConstantClass(val tag: U1, val nameIndex: U2, val classInfo: ClassInfo) : Constant {
... | 1 | null | 1 | 1 | 0c153fa416cd6380ffcbaa771fcca46968f32974 | 622 | kt-jvm | Apache License 2.0 |
conductor-client/src/main/kotlin/com/openlattice/graph/processing/processors/GraphProcessor.kt | openlattice | 101,697,464 | false | null | package com.openlattice.graph.processing.processors
import com.openlattice.analysis.requests.ValueFilter
import org.apache.olingo.commons.api.edm.FullQualifiedName
interface GraphProcessor {
/**
* @return Pair of FullQualifiedNames of entity type and property type of result of this processor
*/
fun ... | 0 | Kotlin | 3 | 4 | b836eea0a17128089e0dbe6719495413b023b2fb | 877 | openlattice | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.