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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
compiler/tests-spec/testData/diagnostics/linked/expressions/comparison-expressions/p-5/pos/1.1.kt | JetBrains | 3,432,266 | false | null | // FIR_IDENTICAL
// !LANGUAGE: +NewInference
// !DIAGNOSTICS: -UNUSED_VARIABLE -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_PARAMETER -UNUSED_EXPRESSION
// SKIP_TXT
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-218
* MAIN LINK: expressions, comparison-expressions -> paragraph 5 ... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,224 | kotlin | Apache License 2.0 |
app/src/main/java/com/sph/sgnetworkdata/userInterface/NetworkDataDetailFragment.kt | 123Yogendra | 224,653,827 | false | null | package com.sph.sgnetworkdata.userInterface
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
import com.sph.sgnetworkdata.R
import com.sph.sgnetworkdata.network.model.Record
import... | 0 | Kotlin | 0 | 0 | 4d7d3ff7b56e65d11dd31e6e8f0559634b7352db | 1,705 | SGNetworkData | Apache License 2.0 |
app/src/main/java/com/thinkdevs/cryptomarket/adapter/BitCoinAdapter.kt | kevinjam | 125,894,653 | false | null | package com.thinkdevs.cryptomarket.adapter
import android.content.Context
import android.content.Intent
import android.graphics.Color
import androidx.constraintlayout.widget.ConstraintLayout
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import... | 2 | Kotlin | 0 | 0 | 9790b8bba7e43b11fb3641a06021ba9624abb4d6 | 18,900 | CryptoMarket | Apache License 2.0 |
core/network/src/main/kotlin/com/najudoryeong/mineme/core/network/model/HomeMainResource.kt | NaJuDoRyeong | 689,891,643 | false | {"Kotlin": 395682} | /*
* Copyright 2023 KDW03
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | Kotlin | 0 | 0 | 4a9a4178e6ba6adc9507bad01a7e62609d5aca98 | 1,371 | mineme_AOS_new | Apache License 2.0 |
src/main/kotlin/no/njoh/pulseengine/core/scene/interfaces/Initiable.kt | NiklasJohansen | 239,208,354 | false | {"Kotlin": 846455, "GLSL": 39054, "PostScript": 178} | package no.njoh.pulseengine.core.scene.interfaces
import no.njoh.pulseengine.core.PulseEngine
/**
* Gives the entity the ability to be initiated.
*/
interface Initiable
{
/**
* Called once when the entity is created.
*/
fun onCreate() { }
/**
* Called once when the scene starts.
*/
... | 0 | Kotlin | 0 | 1 | c45a8028e1cef5259b76281a7d6083bcbfc51915 | 363 | PulseEngine | MIT License |
src/main/kotlin/uk/co/ben_gibson/git/link/ui/Icons.kt | cdambo | 419,691,103 | true | {"Kotlin": 89867} | package uk.co.ben_gibson.git.link.ui
import com.intellij.openapi.util.IconLoader
object Icons {
val GITLAB = IconLoader.getIcon("/icons/gitlab.svg", javaClass)
val BITBUCKET = IconLoader.getIcon("/icons/bitbucket.svg", javaClass)
val GOGS = IconLoader.getIcon("/icons/gogs.svg", javaClass)
val AZURE = ... | 0 | Kotlin | 0 | 0 | 2a82df9f0c0d3c83fc599c89745357af8e648dbd | 570 | GitLink | MIT License |
runtime/serde/common/src/aws/smithy/kotlin/runtime/serde/SdkSerializable.kt | smithy-lang | 294,823,838 | false | null | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package aws.smithy.kotlin.runtime.serde
import aws.smithy.kotlin.runtime.InternalApi
@InternalApi
public interface SdkSerializable {
public fun serialize(serializer: Serializer)
}
// FIXME - baby s... | 36 | null | 26 | 82 | ad18e2fb043f665df9add82083c17877a23f8610 | 1,176 | smithy-kotlin | Apache License 2.0 |
libautomata/src/main/java/com/mathewsachin/libautomata/ScreenshotManager.kt | Fate-Grand-Automata | 245,391,245 | false | null | package com.mathewsachin.libautomata
import com.mathewsachin.libautomata.dagger.ScriptScope
import com.mathewsachin.libautomata.extensions.ITransformationExtensions
import javax.inject.Inject
/**
* A static class responsible for taking screenshots via a [IScreenshotService]. The screenshots are
* scaled and cropped... | 66 | null | 103 | 407 | eb88f240c75569bf8414caa91af705e1dd870c6f | 3,065 | FGA | MIT License |
mulighetsrommet-api/src/main/kotlin/no/nav/mulighetsrommet/api/utils/SanityFilters.kt | navikt | 435,813,834 | false | null | package no.nav.mulighetsrommet.api.utils
import no.nav.mulighetsrommet.api.clients.vedtak.Innsatsgruppe
fun byggLokasjonsFilter(lokasjoner: List<String>): String {
if (lokasjoner.isEmpty()) return ""
return """
&& lokasjon in ${lokasjoner.toSanityListe()}
""".trimIndent()
}
fun byggEnhetOgFy... | 6 | Kotlin | 1 | 4 | 6640d59e1270e6819f7dd7431511a668969255f2 | 2,368 | mulighetsrommet | MIT License |
app/src/main/java/com/example/data/datasource/network/base/AbstractModule.kt | CroogeADL | 204,532,737 | false | null | package com.example.data.datasource.network.base
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlin.coroutines.CoroutineContext
abstract class AbstractModule<T>(protected val service: T) : CoroutineScope {
override val coroutineContext: CoroutineContext
get() = Di... | 0 | Kotlin | 0 | 0 | 0d966fefd6791fbaf3c457158e72cdfef26346c6 | 336 | mvp-architecture-complete | MIT License |
app/src/main/java/com/renaisn/reader/ui/book/import/local/ImportBookViewModel.kt | RenaisnNce | 598,532,496 | false | null | package com.renaisn.reader.ui.book.import.local
import android.app.Application
import android.net.Uri
import androidx.documentfile.provider.DocumentFile
import com.renaisn.reader.base.BaseViewModel
import com.renaisn.reader.constant.AppLog
import com.renaisn.reader.constant.AppPattern.bookFileRegex
import com.renaisn.... | 1 | Kotlin | 1 | 4 | 4ac03e214e951f7f4f337d4da1f7e39fa715d1c0 | 5,190 | Renaisn_Android | MIT License |
app/src/main/java/jp/seo/station/ekisagasu/ui/dialog/LogOutputConfDialog.kt | Seo-4d696b75 | 247,417,963 | false | null | package jp.seo.station.ekisagasu.ui.dialog
import android.app.AlertDialog
import android.app.Dialog
import android.os.Bundle
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.DialogFragment
import androidx.fragment.app.viewModels
import dagger.hilt.android.AndroidEntryPoint
import jp.seo.station... | 1 | Kotlin | 0 | 0 | 99cda72b3a3b68a99254ce578595f5270674f536 | 1,494 | checkhelper | MIT License |
platform/platform-impl/src/com/intellij/ide/impl/trustedProjects/LocatedProject.kt | errandir | 27,763,579 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.ide.impl.trustedProjects
import com.intellij.openapi.project.Project
import java.nio.file.Path
class LocatedProject(
val projectRoots: List<Path>,
val project: Project?
) {... | 1 | null | 1 | 1 | 1d359da14d759f924f64811b84c8aeccb1d1188c | 1,015 | intellij-community | Apache License 2.0 |
src/main/kotlin/dev/akif/exchangerates/CurrencyRepository.kt | makiftutuncu | 745,133,540 | false | {"Kotlin": 4899} | package dev.akif.exchangerates
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.stereotype.Repository
@Repository
class CurrencyRepository {
companion object {
private val log: Logger = LoggerFactory.getLogger(CurrencyRepository::class.java)
}
fun all(): Set<Strin... | 4 | Kotlin | 0 | 0 | 6074b4338dde981f7ae42b20a60446f72b64a7bd | 421 | periodik-example | MIT License |
firestore/app/src/main/java/com/google/firebase/example/fireeats/kotlin/FilterDialogFragment.kt | SagarBChauhan | 216,040,454 | false | null | package com.google.firebase.example.fireeats.kotlin
import android.content.Context
import android.os.Bundle
import android.support.v4.app.DialogFragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.google.firebase.example.fireeats.R
import com.google.firebase.exa... | 18 | null | 1 | 5 | d886d348a681f41f02e78d720cb74fb8c162e339 | 4,420 | quickstart-android | Creative Commons Attribution 4.0 International |
API/src/main/kotlin/net/sourcebot/api/command/argument/SourceAdapter.kt | TheSourceCodeLLC | 271,902,483 | false | null | package net.sourcebot.api.command.argument
import me.hwiggy.kommander.InvalidSyntaxException
import me.hwiggy.kommander.arguments.Adapter
import me.hwiggy.kommander.arguments.BoundAdapter
import me.hwiggy.kommander.arguments.or
import net.dv8tion.jda.api.JDA
import net.dv8tion.jda.api.entities.Guild
import net.dv8tion... | 5 | null | 8 | 11 | 785254fd3cff07b5781f9ed4d0cc95d643c2b2b0 | 4,649 | Source | MIT License |
Corona-Warn-App/src/androidTest/java/de/rki/coronawarnapp/ui/submission/SubmissionTestResultAvailableFragmentTest.kt | corona-warn-app | 268,027,139 | false | null | package de.rki.coronawarnapp.ui.submission
import androidx.lifecycle.MutableLiveData
import androidx.test.ext.junit.runners.AndroidJUnit4
import dagger.Module
import dagger.android.ContributesAndroidInjector
import de.rki.coronawarnapp.coronatest.CoronaTestProvider
import de.rki.coronawarnapp.coronatest.type.BaseCoron... | 6 | null | 516 | 2,495 | d3833a212bd4c84e38a1fad23b282836d70ab8d5 | 4,384 | cwa-app-android | Apache License 2.0 |
lint-checks/src/main/java/com/uber/lintchecks/SystemCurrentTimeMillisDetector.kt | uber | 183,370,095 | false | null | /*
* Copyright (C) 2019. Uber Technologies
*
* 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... | 2 | Kotlin | 8 | 62 | 1cc2d30171896525c8a1974f99e3f090037ba453 | 2,558 | lint-checks | Apache License 2.0 |
jdk_17_maven/cs/rest/familie-tilbake/src/test/kotlin/no/nav/familie/tilbake/behandling/FagsakServiceTest.kt | WebFuzzing | 94,008,854 | false | {"Java": 22427324, "Kotlin": 8594997, "JavaScript": 4556501, "HTML": 2139000, "TypeScript": 701370, "CSS": 427693, "Gherkin": 416527, "C#": 314846, "Handlebars": 199012, "Python": 134818, "Jupyter Notebook": 94581, "Perl": 82062, "Shell": 53769, "Less": 29035, "Starlark": 23296, "XSLT": 18724, "Awk": 17751, "EJS": 1319... | package no.nav.familie.tilbake.behandling
import io.kotest.assertions.throwables.shouldThrow
import io.kotest.matchers.booleans.shouldBeFalse
import io.kotest.matchers.booleans.shouldBeTrue
import io.kotest.matchers.nulls.shouldBeNull
import io.kotest.matchers.shouldBe
import io.kotest.matchers.shouldNotBe
import no.n... | 7 | Java | 16 | 26 | 1777aafb22c6fc7c1bc7db96c86b6ea70e38a36e | 13,851 | EMB | Apache License 2.0 |
app/src/main/java/com/ctech/eaty/ui/home/viewmodel/HorizontalAdsItemViewModel.kt | dbof10 | 116,687,959 | false | null | package com.ctech.eaty.ui.home.viewmodel
data class HorizontalAdsItemViewModel(val id: Int, val adId: String) | 2 | null | 11 | 49 | 2e3445debaedfea03f9b44ab62744046fe07f1cc | 110 | hunt-android | Apache License 2.0 |
CustomUiSubtitleViewKotlin/src/main/java/com/bitmovin/player/samples/custom/ui/subtitleview/MainActivity.kt | bitmovin | 84,928,314 | false | null | package com.bitmovin.player.samples.custom.ui.subtitleview
import android.os.Bundle
import android.view.ViewGroup
import androidx.appcompat.app.AppCompatActivity
import com.bitmovin.player.PlayerView
import com.bitmovin.player.SubtitleView
import com.bitmovin.player.api.Player
import com.bitmovin.player.api.PlayerConf... | 0 | null | 37 | 54 | be08c4474ad2dccc33c084092fb5e19c3d302b21 | 2,722 | bitmovin-player-android-samples | Lucent Public License Version 1.0 |
demo/src/main/kotlin/xyz/yggdrazil/midgard/math/fortune/Edge.kt | ygdrasil-io | 69,387,299 | false | {"CSS": 22156, "HTML": 4434, "JavaScript": 48} | package xyz.yggdrazil.midgard.math.fortune
import xyz.yggdrazil.midgard.math.geometry.Point
import xyz.yggdrazil.midgard.math.geometry.Rectangle
import java.util.*
/**
* The line segment connecting the two Sites is part of the Delaunay
* triangulation; the line segment connecting the two Vertices is part of the
* ... | 0 | CSS | 0 | 0 | a6fc81ccdcd08a3682fe462ca1123991fe1ff664 | 7,545 | World-generator | MIT License |
app/src/androidTest/java/vtsen/hashnode/dev/androidnews/ComposeTest.kt | vinchamp77 | 455,775,581 | false | {"Kotlin": 172657} | /*
* Copyright 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 in writin... | 18 | Kotlin | 8 | 62 | 992c997733a3495bfa09977c6f6329e77b415e5d | 1,677 | AndroidNews | Apache License 2.0 |
saved-sites/saved-sites-impl/src/main/java/com/duckduckgo/savedsites/impl/bookmarks/BookmarksQueryListener.kt | duckduckgo | 78,869,127 | false | null | /*
* Copyright (c) 2023 DuckDuckGo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 71 | null | 901 | 3,823 | 6415f0f087a11a51c0a0f15faad5cce9c790417c | 3,206 | Android | Apache License 2.0 |
app/src/main/java/com/stfalcon/new_uaroads_android/features/tracks/service/TracksServiceSubComponent.kt | stfalcon-studio | 49,490,060 | false | null | /*
* Copyright (c) 2017 stfalcon.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 1 | null | 6 | 24 | 1332f62043a91206f0c6fdbade6ac31e6864b8cc | 1,048 | uaroads_android | Apache License 2.0 |
pager/src/sharedTest/kotlin/com/google/accompanist/pager/PagerTest.kt | jianku | 398,699,472 | false | null | /*
* Copyright 2021 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 0 | null | 0 | 2 | 4e24003060bbd65f90d2a86641c800d76a35bde2 | 13,481 | accompanist | Apache License 2.0 |
jps-plugin/testData/incremental/withJava/other/conflictingPlatformDeclarations/fun1.kt | JakeWharton | 99,388,807 | false | null | @file:JvmName("Utils")
@file:JvmMultifileClass
package test
fun function(list: List<Any>) {
} | 179 | null | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 95 | kotlin | Apache License 2.0 |
transformationlayout/src/main/kotlin/com/skydoves/transformationlayout/TransformationActivity.kt | skydoves | 243,753,387 | false | {"Kotlin": 85324} | /*
* Designed and developed by 2020 weltech (weltech)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 5 | Kotlin | 187 | 2,185 | 6383bcba9363a8b869d5e264133272c6ab0b4c3e | 1,168 | TransformationLayout | Apache License 2.0 |
transformationlayout/src/main/kotlin/com/skydoves/transformationlayout/TransformationActivity.kt | skydoves | 243,753,387 | false | {"Kotlin": 85324} | /*
* Designed and developed by 2020 weltech (weltech)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 5 | Kotlin | 187 | 2,185 | 6383bcba9363a8b869d5e264133272c6ab0b4c3e | 1,168 | TransformationLayout | Apache License 2.0 |
src/main/kotlin/no/nav/familie/ef/sak/vedtak/historikk/AndelHistorikkUtil.kt | navikt | 206,805,010 | false | {"Kotlin": 3869315, "Gherkin": 163948, "Dockerfile": 180} | package no.nav.familie.ef.sak.vedtak.historikk
import no.nav.familie.ef.sak.vedtak.domain.AktivitetType
import no.nav.familie.ef.sak.vedtak.domain.PeriodetypeBarnetilsyn
import no.nav.familie.ef.sak.vedtak.domain.VedtaksperiodeType
import no.nav.familie.kontrakter.felles.ef.StønadType
object AndelHistorikkUtil {
... | 7 | Kotlin | 2 | 0 | d1d8385ead500c4d24739b970940af854fa5fe2c | 2,786 | familie-ef-sak | MIT License |
src/main/kotlin/org/abimon/eternalJukebox/data/database/JDBCDatabase.kt | UnderMybrella | 83,624,855 | false | {"HTML": 283980, "Kotlin": 199402, "JavaScript": 45048, "CSS": 8097, "Dockerfile": 1483, "Shell": 644, "Ruby": 188, "Batchfile": 78} | package org.abimon.eternalJukebox.data.database
import com.zaxxer.hikari.HikariConfig
import com.zaxxer.hikari.HikariDataSource
object JDBCDatabase: HikariDatabase() {
override val ds: HikariDataSource
init {
Class.forName("com.mysql.jdbc.Driver")
.getDeclaredConstructor()
.ne... | 109 | HTML | 147 | 787 | f4ef7a2014154467b7ed37b3caa9a47e7a4bf011 | 1,987 | EternalJukebox | MIT License |
openai-core/src/commonMain/kotlin/com.aallam.openai.api/moderation/ModerationRequest.kt | Aallam | 345,180,734 | false | null | package com.aallam.openai.api.moderation
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* Request to classify if text violates OpenAI's Content Policy.
*/
@Serializable
public class ModerationRequest(
/**
* The input text to classify.
*/
@SerialName("input") ... | 3 | Kotlin | 5 | 102 | 41e1406464748b9fe800d47fa10ab967f3b2b4e8 | 686 | openai-kotlin | MIT License |
openai-core/src/commonMain/kotlin/com.aallam.openai.api/moderation/ModerationRequest.kt | Aallam | 345,180,734 | false | null | package com.aallam.openai.api.moderation
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* Request to classify if text violates OpenAI's Content Policy.
*/
@Serializable
public class ModerationRequest(
/**
* The input text to classify.
*/
@SerialName("input") ... | 3 | Kotlin | 5 | 102 | 41e1406464748b9fe800d47fa10ab967f3b2b4e8 | 686 | openai-kotlin | MIT License |
feature/stocks/src/main/java/com/roquebuarque/smartstocks/stocks/di/StockModule.kt | RBJUR | 385,636,037 | false | null | package com.roquebuarque.smartstocks.stocks.di
import com.google.gson.Gson
import com.roquebuarque.smartstocks.stocks.domain.provider.StockService
import com.tinder.scarlet.Scarlet
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inj... | 0 | Kotlin | 0 | 3 | 09861c8858cd456227be862880c08fa66c6ba6a3 | 670 | SmartStocks | The Unlicense |
tests/spring-boot/src/test/kotlin/io/github/radeklos/cloudlock/test/springboot/DummyControllerTest.kt | radeklos | 566,824,559 | false | null | package io.github.radeklos.cloudlock.test.springboot
import io.kotest.core.spec.style.FunSpec
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.web.servlet.MockMvc
import org.springframework.te... | 12 | Kotlin | 0 | 0 | 785934d9000aa94e06925e17ee4534ace0cc80af | 620 | cloudlock | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppschallengesupportinterventionplanapi/entity/ContributoryFactor.kt | ministryofjustice | 797,799,207 | false | {"Kotlin": 459135, "Mermaid": 28674, "Shell": 1890, "Dockerfile": 1372} | package uk.gov.justice.digital.hmpps.hmppschallengesupportinterventionplanapi.entity
import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.FetchType
import jakarta.persistence.GeneratedValue
import jakarta.persistence.GenerationType
import jakarta.persistence.Id
import jakarta.... | 2 | Kotlin | 0 | 0 | 7f16233d45d78d0a9392deca75d5cc8fcb9f23c7 | 1,463 | hmpps-challenge-support-intervention-plan-api | MIT License |
app/src/main/java/com/softaai/dsa_kotlin/mergesort/MergeSort.kt | amoljp19 | 537,774,597 | false | {"Kotlin": 139041} | package com.softaai.dsa_kotlin.mergesort
/**
* Created by amoljp19 on 11/22/2022.
* softAai Apps.
*/
fun <T : Comparable<T>> List<T>.mergeSort() : List<T>{
if(this.size < 2) return this
val middle = this.size / 2
val left = this.subList(0, middle).mergeSort()
val right = this.subList(middle, this... | 0 | Kotlin | 0 | 1 | 3dabfbb1e506bec741aed3aa13607a585b26ac4c | 1,261 | DSA_KOTLIN | Apache License 2.0 |
gui-app/src/main/kotlin/dev/robocode/tankroyale/gui/extensions/PathExt.kt | robocode-dev | 457,523,927 | false | {"Kotlin": 529081, "Java": 419155, "C#": 407446, "SCSS": 1367, "TypeScript": 1071, "Shell": 83} | package dev.robocode.tankroyale.gui.extensions
import java.nio.file.Path
object PathExt {
fun Path.getFileExtension(): String? {
val filename = toString()
val lastIndex = filename.lastIndexOf('.')
if (lastIndex == -1) {
return null
}
return filename.substring(l... | 4 | Kotlin | 17 | 97 | a5e74e40b3d7eab271f77202754a133b2af48f25 | 341 | tank-royale | Apache License 2.0 |
library/src/main/java/io/github/toyota32k/bindit/AlphaBinding.kt | toyota-m2k | 643,389,596 | false | {"Kotlin": 303845} | @file:Suppress("unused")
package io.github.toyota32k.binder
import android.view.View
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.LiveData
class AlphaBinding(
override val data:LiveData<Float>
) : BaseBinding<Float>(BindingMode.OneWay) {
override fun onDataChanged(v: Float?) {
i... | 0 | Kotlin | 0 | 0 | aafe02366dbca3142fb72c7639c3b647eb16846d | 879 | bind-it | Apache License 2.0 |
src/main/kotlin/notifications/framework/Platform.kt | MarcelBraghetto | 113,415,227 | false | null | package com.aimicor.navcompose.android
/*
MIT License
Copyright (c) 2024 Aimicor Ltd.
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 right... | 0 | null | 1 | 3 | 74b1a7064baa4b1af0184c7751c7df697cf6b842 | 1,550 | AmazonSNSDemo | MIT License |
kcrud-base/src/main/kotlin/kcrud/base/scheduling/listener/JobTriggerListener.kt | perracodex | 682,128,013 | false | null | /*
* Copyright (c) 2024-Present <NAME>. All rights reserved.
* This work is licensed under the terms of the MIT license.
* For a copy, see <https://opensource.org/licenses/MIT>
*/
package kcrud.base.scheduler.listeners
import kcrud.base.infrastructure.utils.Tracer
import kcrud.base.scheduler.annotation.JobSchedul... | 0 | null | 0 | 2 | 1ee4c849845715d7a719e51acded637e6c3a6821 | 1,394 | Kcrud | MIT License |
shared/src/commonMain/kotlin/com/mod/marveluniverse/domain/utils/flows/CommonMutableStateFlow.kt | Moujarkash | 596,891,616 | false | null | package com.mod.marveluniverse.domain.utils.flows
import kotlinx.coroutines.flow.MutableStateFlow
expect class CommonMutableStateFlow<T>(mutableStateFlow: MutableStateFlow<T>): MutableStateFlow<T>
fun <T> MutableStateFlow<T>.toCommonMutableStateFlow() = CommonMutableStateFlow(this) | 0 | Kotlin | 0 | 0 | 7666e686e1395485e9a2f2ed17efa793a679ee2e | 285 | Marvel-Universe- | MIT License |
jtransc-utils/src/com/jtransc/injector/Injector.kt | jtransc | 51,313,992 | false | null | package com.jtransc.injector
import com.jtransc.annotation.JTranscKeep
import com.jtransc.annotation.JTranscKeepConstructors
import com.jtransc.error.invalidOp
import java.lang.reflect.InvocationTargetException
@Suppress("UNCHECKED_CAST")
class Injector() {
val maps = hashMapOf<Class<*>, () -> Any>(
Injector::clas... | 59 | null | 66 | 619 | 6f9a2166f128c2ce5fb66f9af46fdbdbcbbe4ba4 | 2,900 | jtransc | Apache License 2.0 |
composeApp/src/commonMain/kotlin/navigation/presentation/NavigationScreen.kt | FawnRescue | 727,288,106 | false | {"Kotlin": 265110, "Swift": 594} | package navigation.presentation
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Icon
import androidx.compose.material3.NavigationBar
import androidx.compose.material3.NavigationBarIte... | 0 | Kotlin | 0 | 0 | 617413fdd26e153e23cc8476a31673668fcb7b37 | 12,265 | frontend | MIT License |
common/src/androidMain/kotlin/com/surrus/common/actual.kt | joreilly | 222,286,745 | false | null | package com.surrus.common
import android.content.Context
lateinit var appContext: Context
actual fun getApplicationFilesDirectoryPath(): String =
appContext.filesDir.absolutePath
| 1 | Kotlin | 23 | 342 | a95cf5c3b78157b95da2dd93fcec1e1f144d5c37 | 187 | BikeShare | Apache License 2.0 |
core/common/src/main/kotlin/tachiyomi/core/common/preference/Preference.kt | mihonapp | 743,704,912 | false | null | package tachiyomi.core.preference
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.StateFlow
interface Preference<T> {
fun key(): String
fun get(): T
fun set(value: T)
fun isSet(): Boolean
fun delete()
fun defaultValue(): T
... | 280 | null | 447 | 9,867 | f3a2f566c8a09ab862758ae69b43da2a2cd8f1db | 1,616 | mihon | Apache License 2.0 |
src/main/kotlin/brreg/Miljø.kt | navikt | 464,402,802 | false | null | package brreg
import org.apache.kafka.clients.CommonClientConfigs
import org.apache.kafka.clients.producer.ProducerConfig
import org.apache.kafka.common.config.SslConfigs
import org.apache.kafka.common.serialization.StringSerializer
import java.io.Serializable
object Miljø {
val LAST_NED_ALLE_VIRKSOMHETER = getEn... | 0 | Kotlin | 0 | 0 | b775aa1d4bea6bd9d7472fae496beeecff3e0a6b | 3,118 | pia-brreg-oppdaterer | MIT License |
src/main/kotlin/no/nav/syfo/util/XMLDateTimeAdapter.kt | navikt | 145,608,534 | false | null | package no.nav.syfo
import com.migesok.jaxb.adapter.javatime.LocalDateTimeXmlAdapter
import com.migesok.jaxb.adapter.javatime.LocalDateXmlAdapter
import java.time.LocalDate
import java.time.LocalDateTime
import java.time.ZoneOffset
import javax.xml.bind.DatatypeConverter
class XMLDateTimeAdapter : LocalDateTimeXmlAda... | 1 | Kotlin | 1 | 1 | 74ecceb3ad47819b789711f5520675a003caf63b | 827 | syfosmmottak | MIT License |
work/workmanager-testing/src/androidTest/java/androidx/work/testing/TestWorkerBuilderTest.kt | RikkaW | 389,105,112 | false | null | /*
* Copyright 2019 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... | 23 | null | 843 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 5,996 | androidx | Apache License 2.0 |
shared/src/commonMain/kotlin/feature_home/presentation/HomeScreenEvent.kt | tolgaprm | 712,824,422 | false | {"Kotlin": 153117, "Swift": 657, "Shell": 228} | package feature_home.presentation
import core.domain.movie.Movie
import core.domain.tvseries.TvSeries
sealed interface HomeScreenEvent {
data class OnMovieSelected(val movie: Movie) : HomeScreenEvent
data class OnTvSeriesSelected(val tvSeries: TvSeries) : HomeScreenEvent
} | 3 | Kotlin | 0 | 0 | b5f393e09e4c99cc039627cde691a3de9245cc95 | 283 | MovaApp-compose-multiplatform | Apache License 2.0 |
compiler/testData/codegen/boxMultiFile/samePartNameDifferentFacades/box.kt | msdgwzhy6 | 51,743,245 | true | {"Markdown": 33, "XML": 666, "Ant Build System": 45, "Ignore List": 7, "Git Attributes": 1, "Kotlin": 21040, "Java": 4546, "Protocol Buffer": 7, "Text": 4675, "JavaScript": 63, "JAR Manifest": 3, "Roff": 46, "Roff Manpage": 11, "INI": 17, "HTML": 154, "Groovy": 23, "Java Properties": 14, "Maven POM": 49, "Gradle": 74, ... | package test
fun box(): String = foo() + bar() | 0 | Java | 0 | 1 | ff00bde607d605c4eba2d98fbc9e99af932accb6 | 47 | kotlin | Apache License 2.0 |
spring-simplicity-kotlin-sample/src/main/kotlin/org/pensatocode/simplicity/sample/mapper/CollegeMapper.kt | alexpensato | 102,654,783 | false | null | /*
* Copyright 2017-2020 <NAME> <<EMAIL>>
*
* 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 ... | 0 | Kotlin | 0 | 0 | df0f7e8c9e366f00ab3e686eb0bb457b37c5ed03 | 1,435 | spring-boot-repositories-kotlin-samples | Apache License 2.0 |
tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/dice/Dice.kt | InsanusMokrassar | 163,152,024 | false | null | package dev.inmo.tgbotapi.types.dice
import dev.inmo.tgbotapi.types.*
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class Dice(
@SerialName(valueField)
val value: DiceResult,
@SerialName(emojiField)
val animationType: DiceAnimationType
) : ReplyIn... | 9 | Kotlin | 29 | 99 | 8206aefbb661db936d4078a8ef7cc9cecb5384e4 | 347 | TelegramBotAPI | Apache License 2.0 |
core/src/main/kotlin/cn/netdiscovery/command/extension/CommandExecutor+Extension.kt | fengzhizi715 | 183,575,200 | false | null | package cn.netdiscovery.command.extension
import cn.netdiscovery.command.*
import java.io.File
import java.util.concurrent.CompletableFuture
import java.util.concurrent.TimeUnit
/**
*
* @FileName:
* cn.netdiscovery.command.extension.`CommandExecutor+Extension`
* @author: <NAME>
* @date: 2020-10-07 22:23... | 0 | Kotlin | 1 | 6 | 992da93f755be23b012d1fdff75e27fc1f962299 | 1,123 | kcommand | Apache License 2.0 |
feature/feature_common/src/main/java/black/bracken/picsorter/feature_common/ext/TextEdit.kt | blackbracken | 189,738,510 | false | null | package black.bracken.picsorter.feature_common.ext
import android.text.Editable
import android.text.TextWatcher
import android.widget.EditText
fun EditText.setOnTextChanged(listener: (String) -> Unit) = this.addTextChangedListener(
object : TextWatcher {
override fun beforeTextChanged(seq: CharSequence, ... | 14 | Kotlin | 0 | 4 | f9f5cdd6e652f4f63e5c71ca1c533c6f176ebfc2 | 561 | pic-sorter | MIT License |
feature/feature_common/src/main/java/black/bracken/picsorter/feature_common/ext/TextEdit.kt | blackbracken | 189,738,510 | false | null | package black.bracken.picsorter.feature_common.ext
import android.text.Editable
import android.text.TextWatcher
import android.widget.EditText
fun EditText.setOnTextChanged(listener: (String) -> Unit) = this.addTextChangedListener(
object : TextWatcher {
override fun beforeTextChanged(seq: CharSequence, ... | 14 | Kotlin | 0 | 4 | f9f5cdd6e652f4f63e5c71ca1c533c6f176ebfc2 | 561 | pic-sorter | MIT License |
ui/src/main/java/com/gmail/bogumilmecel2/ui/components/base/SheetLayout.kt | BogumilMecel | 499,018,800 | false | {"Kotlin": 808610} | package com.gmail.bogumilmecel2.ui.components.base
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.ModalBottomSheetLayout
import androidx.compose.material.ModalBottomSheetState
import androidx.compose.material.ModalBo... | 0 | Kotlin | 0 | 0 | f1036ca805dec913c5ca444d8efab87686442f39 | 1,262 | FitnessAppV2 | Apache License 2.0 |
test-app/src/androidTest/java/com/avito/android/ui/test/SwipeRefreshScreen.kt | avito-tech | 120,176,958 | false | null | package com.avito.android.ui.test
import androidx.test.espresso.matcher.ViewMatchers.withId
import com.avito.android.test.page_object.ListElement
import com.avito.android.test.page_object.PageObject
import com.avito.android.test.page_object.SwipeRefreshElement
import com.avito.android.ui.R
class SwipeRefreshScreen : ... | 0 | Kotlin | 14 | 38 | 3fa67bd425cb7ae38b2c4687e8e8ee9e6104ff2e | 488 | android-ui-testing | MIT License |
kmqtt-broker/src/commonMain/kotlin/mqtt/broker/ClientConnection.kt | davidepianca98 | 235,132,697 | false | null | package mqtt.broker
import currentTimeMillis
import generateRandomClientId
import mqtt.*
import mqtt.broker.cluster.RemoteSession
import mqtt.broker.interfaces.EnhancedAuthenticationProvider
import mqtt.packets.ConnectAcknowledgeFlags
import mqtt.packets.MQTTPacket
import mqtt.packets.Qos
import mqtt.packets.mqtt.*
im... | 1 | null | 8 | 82 | c6d0587bedad9c003a08ff1dea3a8908b45a9552 | 31,080 | KMQTT | MIT License |
filekit-core/src/jvmMain/kotlin/io/github/vinceglb/filekit/core/platform/xdg/XdgFilePickerPortal.kt | vinceglb | 782,211,616 | false | null | package io.github.vinceglb.filekit.core.platform.xdg
import com.sun.jna.Native
import io.github.vinceglb.filekit.core.platform.PlatformFilePicker
import kotlinx.coroutines.CompletableDeferred
import org.freedesktop.dbus.DBusMatchRule
import org.freedesktop.dbus.DBusPath
import org.freedesktop.dbus.Tuple
import org.fre... | 7 | null | 16 | 548 | 12c167d5bf53f99f76dba86bcab6a6c8b7306740 | 8,528 | FileKit | MIT License |
feature/listing/src/main/java/com/utsman/listing/di/provide.kt | irmansyah | 317,537,024 | true | {"Kotlin": 124069} | /*
* Created by <NAME> on 28/11/20 3:54 PM
* Copyright (c) 2020 . All rights reserved.
*/
package com.utsman.listing.di
import com.utsman.data.repository.list.InstalledAppsRepository
import com.utsman.data.repository.list.PagingAppRepository
import com.utsman.listing.domain.InstalledAppUseCase
import com.utsman.li... | 0 | null | 0 | 0 | 6e3ed614f5fcfb81a0c879e5aa96e4e4d2a63e68 | 1,305 | store-apps-mvvm-clean-architecture | Apache License 2.0 |
app/src/main/java/br/fatec/miltonio/objetos/semestre_6/Governanca.kt | sleiph | 281,927,072 | false | null | package br.fatec.miltonio.objetos.semestre_6
import br.fatec.miltonio.R
import br.fatec.miltonio.modelo.Materia
import br.fatec.miltonio.modelo.Pergunta
import br.fatec.miltonio.modelo.Resposta
class Governanca {
val materia = Materia(
53,
R.string.categ_sem6_ggt,
R.string.categ_sem6_ggt_p... | 0 | Kotlin | 0 | 3 | f82a4ae1c19fafc005cb14908ad6b53a0808a421 | 944 | Miltonio | The Unlicense |
src/main/kotlin/glsl/plugin/annotator/GlslHighlightingAnnotator.kt | walt-grace | 529,402,279 | false | {"GLSL": 240725, "Kotlin": 195223, "HTML": 102021, "Lex": 65452, "Java": 50510, "JavaScript": 668} | package glsl.plugin.annotator
import com.intellij.lang.annotation.AnnotationHolder
import com.intellij.lang.annotation.Annotator
import com.intellij.lang.annotation.HighlightSeverity
import com.intellij.openapi.editor.colors.TextAttributesKey
import com.intellij.psi.PsiElement
import glsl.plugin.code.highlighting.Glsl... | 4 | GLSL | 10 | 31 | ccf570f25a39d030c48b39ea0997b646e3ba2846 | 2,679 | glsl-plugin-idea | Apache License 2.0 |
app/src/main/java/ee/oyatl/ime/make/modifiers/ModifierKeyStateSet.kt | Lee0701 | 662,239,170 | false | {"Kotlin": 210510} | package ee.oyatl.ime.make.modifiers
import android.view.KeyEvent
data class ModifierKeyStateSet(
val shift: ModifierKeyState = ModifierKeyState(),
val alt: ModifierKeyState = ModifierKeyState(),
val control: ModifierKeyState = ModifierKeyState(),
val meta: ModifierKeyState = ModifierKeyState()
) {
... | 6 | Kotlin | 1 | 1 | e8b1f55203276c83555ed91a82095e16bb52470c | 1,006 | make-keyboard | Apache License 2.0 |
regex/Asterisk.kt | rudy3091 | 312,625,249 | false | null | // 정규식 탐색 결과 출력함수
fun walkThrough(matchResult: MatchResult?) {
var m = matchResult
if (m?.value != null) {
print("${m.value}, ")
}
while (m?.next() != null) {
m = m.next()
print("${m?.value}, ")
}
println()
}
// POSIX 표준 정규식
fun main(args: Array<String>) {
var str = "babaabaaabaaaab"
var regex = """a*b"... | 0 | Kotlin | 0 | 0 | 260977e937b3d22017dc96df8d72aa9212883d8b | 1,508 | kotlin-til | Apache License 2.0 |
repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/cache/KVCache.kt | InsanusMokrassar | 295,712,640 | false | {"Kotlin": 1180314, "Python": 2464, "Shell": 1071} | package dev.inmo.micro_utils.repos.cache.cache
import dev.inmo.micro_utils.repos.*
interface KVCache<K, V> : KeyValueRepo<K, V> {
companion object
}
| 15 | Kotlin | 3 | 32 | fecd719239c1aeec1e6454eb7b36645e7b594aff | 155 | MicroUtils | Apache License 2.0 |
reakt/web/src/main/kotlin/reakt/composites/ModuleSection.kt | aSoft-Ltd | 314,091,136 | false | null | package reakt
import kotlinx.css.*
import react.RBuilder
import styled.css
import styled.styledDiv
import theme.clazz
import kotlinx.extensions.onDesktop
import kotlinx.extensions.onMobile
class ModuleSection(
val heading: String,
val modules: List<String>
)
fun RBuilder.ModuleSection(ms: ModuleSection) = Gr... | 1 | Kotlin | 1 | 1 | b6dd915deeea57e13e7977e4b7300c9021990d8b | 816 | reakt | MIT License |
serenity-app/src/test/kotlin/us/nineworlds/serenity/ui/video/player/ExoplayerVideoActivityTest.kt | NineWorlds | 7,139,471 | false | null | package us.nineworlds.serenity.ui.video.player
import android.net.Uri
import android.view.KeyEvent
import com.google.android.exoplayer2.Player
import com.google.android.exoplayer2.SimpleExoPlayer
import com.google.android.exoplayer2.source.MediaSource
import com.google.android.exoplayer2.trackselection.TrackSelectionA... | 25 | null | 65 | 177 | 155cfb76bb58f2f06ccac8e3e45151221c59560d | 6,588 | serenity-android | MIT License |
compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/plugin/FirAbstractAnnotationResolveTransformer.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.fir.resolve.transformers.plugin
import org.jetbrains.kotlin.fir.FirAnnotationCon... | 157 | Kotlin | 5209 | 42,102 | 65f712ab2d54e34c5b02ffa3ca8c659740277133 | 5,223 | kotlin | Apache License 2.0 |
libraries/core/src/test/java/com/raxdenstudios/commons/ext/NumberExtensionTest.kt | raxden | 32,153,256 | false | {"Kotlin": 182622, "Java": 14061, "Shell": 563} | package com.raxdenstudios.commons.core.ext
import org.junit.Assert.assertEquals
import org.junit.Test
internal class NumberExtensionTest {
@Test
fun `Given a Byte null, When orDefault is called Then return default value`() {
val nullValue: Byte? = null
assertEquals(Byte.ZERO, nullValue.orDef... | 1 | Kotlin | 2 | 3 | 957b6a7d6239d3fb75fae5c7d738a0c0f62de2aa | 1,981 | android-commons | Apache License 2.0 |
reaktive/src/commonMain/kotlin/com/badoo/reaktive/completable/Concat.kt | gotamafandy | 234,538,666 | true | {"Kotlin": 805740, "Swift": 3813, "HTML": 1108, "Ruby": 150} | package com.badoo.reaktive.completable
import com.badoo.reaktive.base.subscribeSafe
import com.badoo.reaktive.disposable.Disposable
import com.badoo.reaktive.utils.atomic.AtomicInt
fun Iterable<Completable>.concat(): Completable =
completable { emitter ->
val sources = toList()
if (sources.isEmpt... | 0 | null | 0 | 0 | aec3e70186f91e38d9c411031b97b8acc220af75 | 1,143 | Reaktive | Apache License 2.0 |
app/src/main/java/io/github/mcasper3/prep/recipeviewer/RecipeViewerView.kt | mcasper3 | 90,561,284 | false | null | package io.github.mcasper3.prep.recipeviewer
import io.github.mcasper3.prep.base.LceView
interface RecipeViewerView : LceView
| 15 | Kotlin | 0 | 0 | 397ba370ae5e71e245a60a0763cfb33c2b52a132 | 128 | Prep | Apache License 2.0 |
extension/kotest-property-test/src/test/kotlin/io/github/serpro69/kfaker/tests/KotestPropertyArbsTest.kt | serpro69 | 174,969,439 | false | null | @file:FakerArb(Faker::class, BFaker::class, EduFaker::class)
package io.github.serpro69.kfaker.tests
import io.github.serpro69.kfaker.Faker
import io.github.serpro69.kfaker.arb
import io.github.serpro69.kfaker.books.BooksFaker
import io.github.serpro69.kfaker.books.arb
import io.github.serpro69.kfaker.books.booksFake... | 23 | null | 42 | 452 | 20c85c54f4508ee633d2196ec4e43de591eeea60 | 4,759 | kotlin-faker | MIT License |
graphs/eacs/src/test/kotlin/com/anaplan/engineering/azuki/graphs/analysis/undirected/ShortestPath.kt | anaplan-engineering | 458,253,960 | false | {"Kotlin": 390046, "Groovy": 6043, "Shell": 1385, "CSS": 957} | package com.anaplan.engineering.azuki.graphs.analysis.undirected
import com.anaplan.engineering.azuki.core.runner.AnalysisScenario
import com.anaplan.engineering.azuki.graphs.dsl.GraphScenario
import com.anaplan.engineering.azuki.graphs.graphA
class ShortestPath : GraphScenario() {
@AnalysisScenario
fun gra... | 3 | Kotlin | 3 | 2 | c5fc96c2edef276d1e7fd0077511094488dac663 | 1,066 | azuki | MIT License |
feature-product/api/src/commonMain/kotlin/apps/amo/paywall/feature/product/api/model/ProductChargeType.kt | amomama | 754,027,977 | false | {"Kotlin": 173783, "Swift": 2049} | package apps.amo.paywall.feature.product.api.model
enum class ProductChargeType {
OneTimePayment,
Lifetime,
Subscription,
Unknown,
}
| 2 | Kotlin | 0 | 0 | f66c7245f5e8644cac5c3185b60f10a99f4bce13 | 150 | AmoPaywallBuilder | Apache License 2.0 |
mui-icons-kotlin/src/jsMain/kotlin/mui/icons/material/Filter6TwoTone.kt | karakum-team | 387,062,541 | false | {"Kotlin": 3060426, "TypeScript": 2249, "HTML": 724, "CSS": 86} | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/Filter6TwoTone")
package mui.icons.material
@JsName("default")
external val Filter6TwoTone: SvgIconComponent
| 0 | Kotlin | 5 | 35 | 83952a79ffff62f5409461a2928102d0ff95d86b | 192 | mui-kotlin | Apache License 2.0 |
helperlib/src/main/java/com/itachi1706/helperlib/deprecation/TextViewDep.kt | itachi1706 | 230,937,973 | false | {"Kotlin": 44930} | package com.itachi1706.helperlib.deprecation
import android.content.Context
import android.os.Build
import android.widget.TextView
/**
* Created by Kenneth on 30/12/2019.
* for com.itachi1706.helperlib.deprecation in Helper Library
*/
@Suppress("DEPRECATION")
object TextViewDep {
@JvmStatic
fun setTextAppe... | 1 | Kotlin | 0 | 1 | cdc21fa6bfa0486241a2d2a98d91bf2c6a0ec95a | 536 | AndroidHelperLib | MIT License |
app/src/main/java/com/example/androiddevchallenge/ui/components/TopCard.kt | Trak-X | 343,113,094 | false | null | /*
* Copyright 2021 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | 426fc10e1e304ce9959127b83193e09ff82fb5d4 | 1,812 | Petoption | Apache License 2.0 |
ui/log/src/main/kotlin/me/gegenbauer/catspy/log/ui/customize/ParseOpParamsEditor.kt | Gegenbauer | 609,809,576 | false | null | package me.gegenbauer.catspy.log.ui.customize
import me.gegenbauer.catspy.log.serialize.*
import me.gegenbauer.catspy.strings.STRINGS
import java.awt.Dimension
import javax.swing.JComponent
import javax.swing.JPanel
fun interface EditEventListener {
fun onEditDone(component: JComponent)
}
interface EditEventSour... | 3 | null | 4 | 23 | a868d118c42a9ab0984bfd51ea845d3dcfd16449 | 16,150 | CatSpy | Apache License 2.0 |
aws/sdk-codegen/src/test/kotlin/software/amazon/smithy/rustsdk/customize/IsTruncatedPaginatorTest.kt | smithy-lang | 308,027,791 | false | {"Rust": 4428309, "Kotlin": 3842117, "Smithy": 151231, "Python": 62946, "Shell": 49728, "TypeScript": 30713, "Dockerfile": 9790, "JavaScript": 5975, "Harbour": 5848, "Makefile": 5633, "CSS": 982, "RenderScript": 116} | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package software.amazon.smithy.rustsdk.customize
import org.junit.jupiter.api.Test
import software.amazon.smithy.model.shapes.ShapeId
import software.amazon.smithy.model.shapes.StructureShape
import sof... | 300 | Rust | 188 | 504 | 8d8e7ab7aa6c3b388ffb2365a29ab03f87c24507 | 6,718 | smithy-rs | Apache License 2.0 |
feature/bestiary/domain/src/commonMain/kotlin/com/nesterov/veld/domain/FetchCreatureListUseCase.kt | anaesthez | 793,406,212 | false | {"Kotlin": 213998, "Ruby": 1684, "Swift": 522, "HTML": 275} | package com.nesterov.veld.domain
import com.nesterov.veld.common.RequestResult
class FetchCreatureListUseCase(private val repository: BestiaryRepository) {
suspend operator fun invoke(): RequestResult<List<CreatureDomainModel>> =
repository.fetchCreatureList()
} | 0 | Kotlin | 0 | 0 | 4273e340299452c008884a3634b6df1deb25b797 | 276 | veld | MIT License |
idea/src/org/jetbrains/jet/plugin/intentions/branchedTransformations/intentions/SafeAccessToIfThenIntention.kt | chashnikov | 14,658,474 | false | null | /*
* Copyright 2010-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 1 | null | 0 | 1 | 88a261234860ff0014e3c2dd8e64072c685d442d | 2,521 | kotlin | Apache License 2.0 |
androidsns/app/src/main/java/com/example/android_sns/User.kt | mwjng | 568,067,280 | false | null | package com.example.android_sns
class User (
val image : Int, // 이미지
val writer: String, // 글쓴사람 이메일
val id : String, // 글마다 id 부여
val title : String, // 글 제목
val name : String, // 글쓴사람 닉네임
val content : String, // 글내용
val like : Int, // 좋아요 갯수
val d... | 1 | Kotlin | 1 | 0 | b40ebab3538bd5d31c31c56ea1090f2d3a490b68 | 355 | Android_SNS | MIT License |
app/src/main/java/io/j99/app/template/di/builder/MainActivityFragmentProvider.kt | henjue | 224,099,805 | false | null | package io.j99.app.template.di.builder
import dagger.Module
import dagger.android.ContributesAndroidInjector
import io.j99.app.template.ui.main.view.HomePageFragment
/**
* activity对应的fragment
* 如果该activity有fragment的话
*/
@Module
abstract class MainActivityFragmentProvider {
@ContributesAndroidInjector
abst... | 0 | Kotlin | 0 | 0 | 7d226ec0884b894865dea8b8bf33fcd6c7f18e3e | 374 | app-template | MIT License |
runtime-android/10.2.x/kotlin-extensions/graphic-extensions/GraphicExt.kt | Esri | 19,163,372 | false | null | /**
* A function that animates the movement of a marker graphic to provide a
* nice transition of a marker to a new location.
*/
fun Graphic.animatePointGraphic(handler: Handler, destination: Point) {
handler.removeCallbacksAndMessages(null)
val start = SystemClock.uptimeMillis()
val duration: Long = 1000... | 8 | null | 164 | 266 | 4fcb1d5cc33de34cce3762d335290bc0356e2e2e | 2,460 | developer-support | Apache License 2.0 |
mediakit/src/main/java/com/jadyn/mediakit/function/CodeCFunction.kt | shanyaodan | 186,106,040 | true | {"Kotlin": 143623, "Java": 16430} | package com.jadyn.mediakit.function
import android.media.MediaCodec
import android.media.MediaCodecInfo
import android.media.MediaFormat
import android.util.Log
import android.util.Size
import java.nio.ByteBuffer
/**
*@version:
*@FileDescription:硬编码相关辅助类
*@Author:jing
*@Since:2019/2/12
*@ChangeList:
*/
/*
* 处理... | 0 | Kotlin | 0 | 0 | 6e3229fff6bc1415c1c663166412acfaf84f4050 | 3,185 | MediaLearn | Apache License 2.0 |
Novalles/src/main/java/com/flexeiprata/novalles/utils/writingtools/FunHeaderBuilder.kt | FlexeiPrata | 512,871,297 | false | null | package com.flexeiprata.novalles.utils.writingtools
internal fun funHeaderBuilder(
extension: String? = null,
name: String,
returnType: String,
vararg args: String
): String {
return StringBuilder().apply {
append("fun ")
extension?.let { append("$extension.") }
append(name... | 0 | Kotlin | 0 | 4 | d871e0e744a35f16c28f22ad9e9429b366e12466 | 2,006 | Novalles | Apache License 2.0 |
composeApp/src/commonMain/kotlin/data/Note.kt | edsonDeCavalho | 812,314,880 | false | {"Kotlin": 57707, "Swift": 721, "HTML": 305} | package data
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
/**
* Classe representant une note
*/
@Entity(tableName = "notes")
data class Note(
@PrimaryKey(autoGenerate = true)
@ColumnInfo(name = "id")
var id : Long =0,
@ColumnInfo(name = "title")
val... | 0 | Kotlin | 0 | 1 | d2d9d329068c2f326e23519f6327fefa3777d795 | 448 | Demo_KMP_Room_database | MIT License |
intellij-plugin/Edu-Python/src/com/jetbrains/edu/python/learning/PyCourseBuilder.kt | JetBrains | 43,696,115 | false | {"Kotlin": 5014435, "Java": 42267, "Python": 19649, "HTML": 14893, "CSS": 10327, "JavaScript": 302, "Shell": 71} | package com.jetbrains.edu.python.learning
import com.intellij.openapi.project.Project
import com.intellij.openapi.roots.ProjectRootManager
import com.jetbrains.edu.learning.EduCourseBuilder
import com.jetbrains.edu.learning.LanguageSettings
import com.jetbrains.edu.learning.RefreshCause
import com.jetbrains.edu.learni... | 7 | Kotlin | 49 | 150 | 9cec6c97d896f4485e76cf9a2a95f8a8dd21c982 | 1,548 | educational-plugin | Apache License 2.0 |
src/nl/hannahsten/texifyidea/psi/impl/LatexParameterTextImplMixin.kt | Hannah-Sten | 62,398,769 | false | null | package nl.hannahsten.texifyidea.psi.impl
import com.intellij.extapi.psi.ASTWrapperPsiElement
import com.intellij.lang.ASTNode
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiReference
import nl.hannahsten.texifyidea.lang.commands.LatexGlossariesCommand
import nl.hannahsten.texifyidea.psi.*
import nl.han... | 99 | null | 87 | 891 | 986550410e2fea91d1e93abfc683db1c8527c9d9 | 7,799 | TeXiFy-IDEA | MIT License |
core-kotlin-modules/core-kotlin-collections/src/test/kotlin/com/baeldung/splitlist/SplitListIntoPartsUnitTest.kt | Baeldung | 260,481,121 | false | {"Kotlin": 1855665, "Java": 48276, "HTML": 4883, "Dockerfile": 292} | package com.baeldung.splitlist
import org.junit.jupiter.api.Test
import kotlin.test.assertEquals
class SplitListIntoPartsUnitTest {
private val evenList = listOf(0, "a", 1, "b", 2, "c");
private val unevenList = listOf(0, "a", 1, "b", 2, "c", 3);
private fun verifyList(resultList: List<List<Any>>) {
... | 14 | Kotlin | 294 | 465 | f1ef5d5ded3f7ddc647f1b6119f211068f704577 | 3,669 | kotlin-tutorials | MIT License |
kudoku/src/test/kotlin/io/github/ilikeyourhat/kudoku/integration/type/Square1x1Test.kt | ILikeYourHat | 139,063,649 | false | null | package com.github.ilikeyourhat.kudoku.integration.type
class Square1x1Test: SudokuTypesTest() {
override val puzzle = """
square_1x1
_
""".trimIndent()
override val solution = """
square_1x1
1
""".trimIndent()
}
| 6 | null | 1 | 1 | fa522856ed4dd07d5a49e2789fbc880494e83efd | 288 | SudokuSolver | Apache License 2.0 |
menus/AntKot/app/src/main/java/com/antkot/TopTabActivity.kt | themores | 97,689,860 | false | null | package com.antkot
import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v4.app.FragmentPagerAdapter
import android.support.v7.app.AppCompatActivity
import com.antkot.tabs.HomeFragment
import com.antkot.tabs.MessageFragment
import kotlinx.android.synthetic.main.activity_top_tab.*
clas... | 1 | Kotlin | 1 | 1 | d519249de1d10a5f724eed192822e71f71f7510e | 1,210 | KotlinDemo | Apache License 2.0 |
src/main/kotlin/pl/alpheratzteam/obfuscator/util/StringUtil.kt | alpheratzteam | 204,757,128 | false | null | package pl.alpheratzteam.deobfuscator.util
import java.lang.StringBuilder
import java.util.stream.Collectors
import java.util.stream.IntStream
import java.util.concurrent.ThreadLocalRandom
/**
* @author Unix
* @since 17.12.2020
*/
object StringUtil {
private val chars = "abcdefghijklmnopqrstuvwxyz1234567890"... | 1 | null | 14 | 96 | a03cc48293a7feb1826581fe5e175cf7ef3ce95c | 1,827 | obfuscator | MIT License |
MapboxSearch/sdk/src/test/java/com/mapbox/search/utils/extension/BoundingBoxExtensionTest.kt | mapbox | 438,355,708 | false | {"Kotlin": 2247142, "Java": 38877, "Python": 18980, "Shell": 17499} | package com.mapbox.search.utils.extension
import com.mapbox.geojson.BoundingBox
import com.mapbox.geojson.Point
import com.mapbox.search.base.utils.extension.mapToCore
import com.mapbox.test.dsl.TestCase
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.TestFactory
internal class BoundingBoxExtensi... | 18 | Kotlin | 7 | 33 | bbe22d4d17e8bab22b64c7327fafdd56be7a03e4 | 1,641 | mapbox-search-android | Apache License 2.0 |
src/main/java/io/github/intellij/dlanguage/codeinsight/DCompletionContributor.kt | ErnyTech | 146,434,208 | false | {"Gradle": 2, "Java Properties": 4, "Markdown": 4, "Shell": 1, "Text": 595, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "YAML": 1, "INI": 4, "Java": 667, "D": 948, "Makefile": 23, "DTrace": 5, "JSON": 3, "Kotlin": 117, "XML": 10, "JFlex": 2, "HTML": 11} | package io.github.intellij.dlanguage.codeinsight
import com.intellij.codeInsight.completion.*
import com.intellij.codeInsight.lookup.LookupElement
import com.intellij.codeInsight.lookup.LookupElementBuilder
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.progress.ProgressManager
import com.intell... | 1 | null | 1 | 1 | b0fcc09ebe4287d60a1d35ba9e4387564e30a42d | 2,778 | intellij-dlanguage | MIT License |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/BootstraplessSynthesizerDsl.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 70198112} | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package io.cloudshiftdev.awscdkdsl
import io.cloudshiftdev.awscdkdsl.common.CdkDslMarker
import kotli... | 3 | Kotlin | 0 | 3 | 256ad92aebe2bcf9a4160089a02c76809dbbedba | 2,472 | awscdk-dsl-kotlin | Apache License 2.0 |
incubator.clients.kroviz/src/test/kotlin/org/apache/isis/client/kroviz/IconManagerTest.kt | joerg-rade | 163,651,410 | false | null | package org.apache.isis.client.kroviz.ui
import org.apache.isis.client.kroviz.utils.IconManager
import kotlin.test.Test
import kotlin.test.assertEquals
class IconManagerTest {
@Test
fun testFind() {
//given
val name = "OK"
val expected = "fas fa-check"
//when
val actua... | 20 | null | 1 | 10 | 07e7ed9aa6dabc7e8a9a0100451d89ae18e46950 | 406 | kroviz | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/events/BasicAuthParametersPropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.events
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.events.CfnConnection
@Generated
public fun buildBasicAuthParametersProperty(initializer: @AwsCdkDsl
CfnConnection.BasicAuthPara... | 1 | Kotlin | 0 | 0 | a1cf8fbfdfef9550b3936de2f864543edb76348b | 487 | aws-cdk-kt | Apache License 2.0 |
model/src/main/kotlin/org/digma/intellij/plugin/model/rest/insights/SpanScalingInsight.kt | digma-ai | 472,408,329 | false | null | package org.digma.intellij.plugin.model.rest.insights
import com.fasterxml.jackson.annotation.JsonCreator
import org.digma.intellij.plugin.model.InsightType
import java.beans.ConstructorProperties
import java.util.*
import kotlin.collections.ArrayList
data class SpanScalingInsight
@JsonCreator(mode = JsonCreator.Mode... | 144 | Kotlin | 2 | 2 | 313aba39169fd1aca71955f3934c7260dd36c695 | 1,576 | digma-intellij-plugin | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.