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/com/cjbooms/fabrikt/model/KotlinTypeInfo.kt | cjbooms | 229,844,927 | false | null | package com.cjbooms.fabrikt.model
import com.cjbooms.fabrikt.cli.CodeGenTypeOverride
import com.cjbooms.fabrikt.generators.MutableSettings
import com.cjbooms.fabrikt.model.OasType.Companion.toOasType
import com.cjbooms.fabrikt.util.KaizenParserExtensions.getEnumValues
import com.cjbooms.fabrikt.util.KaizenParserExtens... | 5 | null | 41 | 99 | 81a003c45e518573a871621aef1a48599735c86f | 5,637 | fabrikt | Apache License 2.0 |
src/test/kotlin/ApplicationLocal.kt | navikt | 206,805,010 | false | null | package no.nav.familie.ef.sak
import no.nav.familie.ef.sak.database.DbContainerInitializer
import no.nav.familie.ef.sak.infrastruktur.config.ApplicationConfig
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration
im... | 8 | Kotlin | 2 | 0 | d1d8385ead500c4d24739b970940af854fa5fe2c | 1,201 | familie-ef-sak | MIT License |
app/src/main/java/com/codelab/basiclayouts/ui/screens/author/AuthorMainScreen.kt | zjh101550-boop | 796,965,228 | false | {"Kotlin": 87078} | package com.codelab.basiclayouts.ui.screens.author
import com.codelab.basiclayouts.R
/*
* Copyright 2022 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... | 0 | Kotlin | 0 | 0 | 5fdc3f1bdcfacdb8ccd76be6865ec9d6c674b4be | 12,137 | storyApp_compose_kt | Apache License 2.0 |
app/src/main/java/pl/droidcon/app/agenda/AgendaItemPresenter.kt | droidconpl | 103,277,279 | false | {"Kotlin": 123751} | package pl.droidcon.app.agenda
import android.widget.ImageView
import io.reactivex.Observable
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.disposables.CompositeDisposable
import io.reactivex.rxkotlin.addTo
import io.reactivex.schedulers.Schedulers
import pl.droidcon.app.agenda.interacto... | 1 | Kotlin | 0 | 0 | 116caf6e0c93d8dde2b19e7037ee6ad49b39e939 | 1,779 | droidcon-mobile-app | Apache License 2.0 |
feature-wallet-impl/src/main/java/jp/co/soramitsu/feature_wallet_impl/data/repository/WalletRepositoryImpl.kt | trustex | 385,920,487 | true | {"Kotlin": 1715024} | package jp.co.soramitsu.feature_wallet_impl.data.repository
import jp.co.soramitsu.common.data.mappers.mapSigningDataToKeypair
import jp.co.soramitsu.common.data.network.HttpExceptionHandler
import jp.co.soramitsu.common.utils.mapList
import jp.co.soramitsu.common.utils.networkType
import jp.co.soramitsu.core.model.No... | 0 | null | 0 | 0 | fbbe4a87199a2ff6a1590fc22f8f67972aa18c2f | 12,063 | fearless-Android | Apache License 2.0 |
app/src/main/java/io/horizontalsystems/bankwallet/modules/addtoken/AddTokenService.kt | fahimaltinordu | 312,207,740 | false | null | package io.horizontalsystems.bankwallet.modules.addtoken
import io.horizontalsystems.bankwallet.core.IAccountManager
import io.horizontalsystems.bankwallet.core.IAddTokenBlockchainService
import io.horizontalsystems.bankwallet.core.ICoinManager
import io.horizontalsystems.bankwallet.core.IWalletManager
import io.horiz... | 1 | null | 2 | 4 | d3094c4afaa92a5d63ce53583bc07c8fb343f90b | 2,432 | WILC-wallet-android | MIT License |
checks/src/main/kotlin/com/zhenai/lib/checks/utils/FunctionUtils.kt | dengqu | 202,319,834 | false | {"Roff": 9456617, "Java": 249902, "Kotlin": 173095, "Assembly": 12227, "FreeMarker": 729} | package com.zhenai.lib.checks.utils
import com.zhenai.lib.core.slang.api.FunctionDeclarationTree
import com.zhenai.lib.core.slang.api.ModifierTree
import com.zhenai.lib.core.slang.api.ModifierTree.Kind.OVERRIDE
import com.zhenai.lib.core.slang.api.ModifierTree.Kind.PRIVATE
class FunctionUtils {
companion object ... | 0 | Roff | 1 | 5 | c564aad5211bd45da11ab81f0b32fd31c0ed9ea3 | 990 | KotlinLintPlugin | Apache License 2.0 |
intellij-plugin/Edu-Python/src/com/jetbrains/edu/python/learning/PyNewConfigurator.kt | JetBrains | 43,696,115 | false | null | package com.jetbrains.edu.python.learning
import com.intellij.openapi.project.Project
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.util.PlatformUtils
import com.jetbrains.edu.learning.checker.TaskCheckerProvider
import com.jetbrains.edu.learning.compatibility.isDataSpellSupported
import com.jetbrain... | 6 | null | 48 | 135 | b00e7100e8658a07e79700a20ffe576872d494db | 1,711 | educational-plugin | Apache License 2.0 |
scanner_cli/src/test/kotlin/org/archguard/scanner/ctl/loader/AnalyserDispatcherTest.kt | archguard | 460,910,110 | false | {"Kotlin": 1763628, "Java": 611399, "TypeScript": 11395, "C#": 5593, "Dockerfile": 2549, "C": 1223, "Shell": 926, "JavaScript": 400, "Go": 291, "Scala": 97, "Python": 42, "Rust": 32} | package org.archguard.scanner.ctl.loader
import chapi.domain.core.CodeDataStruct
import io.mockk.clearAllMocks
import io.mockk.every
import io.mockk.mockk
import io.mockk.mockkObject
import org.archguard.scanner.core.Analyser
import org.archguard.scanner.core.context.AnalyserType
import org.archguard.scanner.core.cont... | 6 | Kotlin | 89 | 575 | 049f3cc8f2c0e2c34e65bb0049f645caa5be9bf8 | 2,697 | archguard | MIT License |
libs/ledger/ledger-consensual-data/src/main/kotlin/net/corda/ledger/consensual/data/transaction/ConsensualComponentGroup.kt | corda | 346,070,752 | false | null | package net.corda.ledger.consensual.data.transaction
/**
* Specifies Consensual transaction component groups' enum.
* For which each property corresponds to a transaction component group.
* The position in the enum class declaration (ordinal) is used for component-leaf ordering when computing the
* Merkle tree.
*... | 71 | Kotlin | 9 | 28 | fa43ea7a49afb8ed2d1686a6e847c8a02d376f85 | 1,036 | corda-runtime-os | Apache License 2.0 |
libs/ledger/ledger-consensual-data/src/main/kotlin/net/corda/ledger/consensual/data/transaction/ConsensualComponentGroup.kt | corda | 346,070,752 | false | null | package net.corda.ledger.consensual.data.transaction
/**
* Specifies Consensual transaction component groups' enum.
* For which each property corresponds to a transaction component group.
* The position in the enum class declaration (ordinal) is used for component-leaf ordering when computing the
* Merkle tree.
*... | 71 | Kotlin | 9 | 28 | fa43ea7a49afb8ed2d1686a6e847c8a02d376f85 | 1,036 | corda-runtime-os | Apache License 2.0 |
src/main/kotlin/no/nav/personbruker/dittnav/metrics/periodic/reporter/metrics/db/count/DbCountingMetricsProbe.kt | navikt | 275,789,479 | false | null | package no.nav.personbruker.dittnav.metrics.periodic.reporter.metrics.db.count
import no.nav.personbruker.dittnav.metrics.periodic.reporter.config.EventType
import org.slf4j.LoggerFactory
class DbCountingMetricsProbe {
private val log = LoggerFactory.getLogger(DbCountingMetricsProbe::class.java)
suspend fun... | 0 | Kotlin | 0 | 0 | 2efab6c0115dacb23a872666d374e7aecd524d38 | 600 | dittnav-periodic-metrics-reporter | MIT License |
app/src/main/java/com/token/tokenator/model/Type.kt | JoshLudahl | 324,939,046 | false | null | package com.token.tokenator.model
enum class Type {
LOWERCASE,
NUMERIC,
SPECIAL,
UPPERCASE
}
| 9 | null | 1 | 1 | cadd5ac767df666e96de2694cce76c778e316682 | 110 | Tokenator | FSF All Permissive License |
es-notebooks/src/main/kotlin/com/amazon/opendistroforelasticsearch/notebooks/model/UpdateNotebookResponse.kt | opendistro-for-elasticsearch | 164,948,871 | false | null | /*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
/*
* Copyright 2020 Amaz... | 6 | TypeScript | 11 | 23 | 089261766971bbaa3bcf58bc7109928d124d67f3 | 4,350 | kibana-notebooks | Apache License 2.0 |
app/src/main/java/com/example/sensebox/data/database/BoxDao.kt | cayas-software | 705,603,273 | false | {"Kotlin": 80773} | package com.example.sensebox.data.database
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.example.sensebox.data.model.Box
import com.example.sensebox.data.model.FavBox
import kotlinx.coroutines.flow.Flow
imp... | 0 | Kotlin | 0 | 0 | de5a518c86cc86f9c96c243b4955fa0110d810c6 | 814 | SenseBoxCompose | Apache License 2.0 |
library/src/main/kotlin/io/github/tomplum/libs/input/types/LongInput.kt | TomPlum | 317,517,927 | false | {"Kotlin": 161096} | package io.github.tomplum.libs.input.types
import io.github.tomplum.libs.input.InputReader
/**
* A [Long] input wrapper returned by [InputReader].
*/
class LongInput(input: List<String>) : Input<Long>(input.map { it.toLong() }) | 1 | Kotlin | 0 | 0 | 32ec1c13ee874f5b2c3893547bc9adf3d8f81cd5 | 231 | advent-of-code-libs | Apache License 2.0 |
kotlin/kotlin-dbms/src/test/kotlin/com/hypo/driven/simpledb/file/FileTest.kt | kackey0-1 | 542,333,436 | false | null | package com.hypo.driven.simpledb.file
import java.io.File
import java.io.IOException
import java.io.RandomAccessFile
import kotlin.test.Test
class FileTest {
@Test
fun `test_file_manager`() {
val fileManager = FileManager(File("filetest"), 400)
val block = BlockId("testfile", 2)
val p... | 3 | Kotlin | 0 | 0 | d9dffb6a17f624ea0dec86434906fa58be98970b | 1,606 | from-scrach | Apache License 2.0 |
tmp/arrays/youTrackTests/4186.kt | DaniilStepanov | 228,623,440 | false | {"Git Config": 1, "Gradle": 6, "Text": 3, "INI": 5, "Shell": 2, "Ignore List": 3, "Batchfile": 2, "Markdown": 2, "Kotlin": 15942, "JavaScript": 4, "ANTLR": 2, "XML": 12, "Java": 4} | // Original bug: KT-36279
fun <T> allConditionalPredicates(subject: T, conditionalPredicates: Map<() -> Boolean, (T) -> Boolean>) =
conditionalPredicates
.filter { it.key() }
.all { it.value(subject) }
| 1 | null | 12 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 224 | bbfgradle | Apache License 2.0 |
components/ledger/ledger-utxo-flow/src/test/kotlin/net/corda/ledger/utxo/impl/token/selection/factories/TokenBalanceQueryExternalEventFactoryTest.kt | corda | 346,070,752 | false | {"Kotlin": 20585419, "Java": 308202, "Smarty": 115357, "Shell": 54409, "Groovy": 30246, "PowerShell": 6470, "TypeScript": 5826, "Solidity": 2024, "Batchfile": 244} | package net.corda.ledger.utxo.token.selection.impl.factories
import net.corda.data.KeyValuePairList
import net.corda.data.flow.event.external.ExternalEventContext
import net.corda.data.ledger.utxo.token.selection.data.TokenAmount
import net.corda.data.ledger.utxo.token.selection.data.TokenBalanceQuery
import net.corda... | 110 | Kotlin | 27 | 69 | d478e119ab288af663910f9a2df42a7a7b9f5bce | 3,770 | corda-runtime-os | Apache License 2.0 |
test/src/me/anno/tests/engine/ui/Crash.kt | AntonioNoack | 456,513,348 | false | {"Kotlin": 9748753, "C": 236481, "GLSL": 9454, "Java": 6888, "Lua": 4404} | package me.anno.tests.engine.ui
import me.anno.config.DefaultConfig.style
import me.anno.engine.ui.render.PlayMode
import me.anno.engine.ui.render.RenderView1
import me.anno.gpu.GFX
import me.anno.mesh.Shapes.flatCube
import me.anno.studio.StudioBase
import me.anno.ui.Window
fun main() {
// this printed lots of e... | 0 | Kotlin | 3 | 17 | bca49870309dc54c57daba1888c8faa2a3165025 | 742 | RemsEngine | Apache License 2.0 |
core/kotlin/app/src/test/kotlin/com/vxlisp/vx/data/CsvTest.kt | Vyridian | 622,934,367 | false | {"HTML": 13334653, "C++": 7610480, "Kotlin": 5373772, "C#": 5371384, "Java": 5262028, "JavaScript": 2000275, "Go": 787342, "Batchfile": 6051, "Makefile": 2191, "Shell": 1934} |
package com.vxlisp.vx.data
import com.vxlisp.vx.*
object vx_data_csvTest {
fun f_textblock_csv_from_string(context : vx_core.Type_context) : vx_test.Type_testcase {
var output : vx_test.Type_testcase = vx_core.vx_new(
vx_test.t_testcase,
":passfail", false,
":testpkg", "vx/data/csv",
"... | 0 | HTML | 0 | 23 | 8e1d4a9fc905610ef7005d5751d52d1331cbf2b5 | 13,718 | vxlisp | MIT License |
marketkit/src/main/java/io/horizontalsystems/marketkit/models/CoinCategory.kt | horizontalsystems | 408,718,031 | false | null | package io.definenulls.marketkit.models
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize
import java.math.BigDecimal
@Parcelize
data class CoinCategory(
val uid: String,
val name: String,
val description: Map<String, String>,
@Serialized... | 1 | null | 23 | 9 | 103bf39cf42b8538ce7fb35bc189b95542ef8680 | 718 | market-kit-android | MIT License |
src/commonMain/kotlin/com/inari/firefly/physics/contact/ContactMap.kt | AndreasHefti | 387,557,032 | false | null | package com.inari.firefly.physics.contact
import com.inari.firefly.core.*
import com.inari.firefly.core.api.ComponentIndex
import com.inari.firefly.core.api.EntityIndex
import com.inari.firefly.graphics.tile.ETile
import com.inari.firefly.graphics.view.*
import com.inari.firefly.physics.movement.MovementSystem
import ... | 6 | Kotlin | 0 | 11 | e0376a8445dc8f1becc4fa74a177b34f7a817f46 | 5,882 | flyko-lib | Apache License 2.0 |
src/main/kotlin/year_2020/Day01.kt | krllus | 572,617,904 | false | {"Kotlin": 86547} | package year_2020
import Day
import solve
class Day01 : Day(day = 1, year = 2020, "Report Repair") {
private val targetSum = 2020
override fun part1(): Int {
val set = mutableSetOf<Int>()
for (number in inputAsInts) {
val difference = targetSum - number
if(set.contain... | 0 | Kotlin | 0 | 0 | f77cf4694a4b392251d57be0638c256a8609de8b | 1,449 | advent-of-code | Apache License 2.0 |
app/src/main/java/com/jumpingphantom/flow/core/data/entity/Subcategory.kt | JumpingPhantom | 811,400,534 | false | {"Kotlin": 109236} | package com.jumpingphantom.flow.core.data.entity
import androidx.annotation.DrawableRes
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.jumpingphantom.flow.core.data.common.Category
@Entity(tableName = "subcategories")
data class Subcategory (
@PrimaryKey(autoGenerate = true) val id: Int,
... | 0 | Kotlin | 0 | 0 | 7c82814773d647043401c8e67781af0cae0947a9 | 407 | Flow | MIT License |
src/main/kotlin/com/github/thinkami/railroads/ui/RailroadIcon.kt | thinkAmi | 773,281,486 | false | {"Kotlin": 59121, "Ruby": 544} | package com.github.thinkami.railroads.ui
import com.intellij.icons.AllIcons
import icons.RubyIcons
class RailroadIcon {
companion object {
val Unknown = AllIcons.General.TodoQuestion
val NodeController = AllIcons.Nodes.Class
val NodeMethod = AllIcons.Nodes.Method
val NodeMountedEn... | 8 | Kotlin | 0 | 5 | 2e72efa0a78d8f19150abeb85afc0d0fe7f375fd | 483 | railroads | MIT License |
src/jsMain/kotlin/presentation/features/chat/clientChatScreen/ChatScreen.kt | Tanexc | 667,134,735 | false | null | package presentation.features.chat.clientChatScreen
import androidx.compose.foundation.VerticalScrollbar
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.fou... | 0 | Kotlin | 0 | 2 | 8a13415a06b1b359897805721e9886c367be7fd2 | 9,357 | ComposeWebCakes | Apache License 2.0 |
python/python-psi-impl/src/com/jetbrains/python/codeInsight/completion/PyDictLiteralCompletionContributor.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2022 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.jetbrains.python.codeInsight.completion
import com.intellij.codeInsight.completion.*
import com.intellij.codeInsight.lookup.LookupElementBuilder
import com.intellij.p... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 7,362 | intellij-community | Apache License 2.0 |
window/window-core/src/commonMain/kotlin/androidx/window/core/layout/WindowSizeClassUtil.kt | androidx | 256,589,781 | false | {"Kotlin": 98393993, "Java": 63366352, "C++": 9124958, "AIDL": 590909, "Python": 308602, "Shell": 186243, "TypeScript": 40586, "HTML": 29764, "Groovy": 24103, "Svelte": 20307, "ANTLR": 19860, "C": 16935, "CMake": 15482, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright 2024 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... | 27 | Kotlin | 900 | 4,945 | 40fc0be87bd96490fd0285c8b82b0b8febfd1bf5 | 4,092 | androidx | Apache License 2.0 |
matrix-sdk-android/src/rustCrypto/java/org/matrix/android/sdk/internal/crypto/store/db/RealmCryptoStoreMigration.kt | tchapgouv | 340,329,238 | false | null | /*
* Copyright 2020 The Matrix.org Foundation C.I.C.
*
* 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... | 75 | null | 6 | 9 | b248ca2dbb0953761d2780e4fba756acc3899958 | 4,141 | tchap-android | Apache License 2.0 |
app/src/main/java/com/szlachta/medialibrary/network/tvshows/TvShowsRepository.kt | bartlomiej-szlachta | 252,731,965 | false | null | package com.szlachta.medialibrary.network.tvshows
import androidx.lifecycle.MutableLiveData
import com.szlachta.medialibrary.model.ItemsList
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
import java.util.stream.Collectors
class TvShowsRepository private constructor() {
companion object... | 0 | Kotlin | 0 | 0 | eacb7f3d4ec8ede458813bed2389f471e8aecaba | 1,669 | media-library | MIT License |
slack-lint-checks/src/main/java/slack/lint/DaggerIssuesDetector.kt | slackhq | 419,446,800 | false | {"Kotlin": 736750, "Java": 1150, "Shell": 797} | // Copyright (C) 2021 Slack Technologies, LLC
// SPDX-License-Identifier: Apache-2.0
package slack.lint
import com.android.tools.lint.client.api.UElementHandler
import com.android.tools.lint.detector.api.Category
import com.android.tools.lint.detector.api.Detector
import com.android.tools.lint.detector.api.Issue
impor... | 18 | Kotlin | 13 | 232 | 4568cc3f9fabc3b3465fb1b9ac315a1557846651 | 10,309 | slack-lints | Apache License 2.0 |
app/src/main/java/com/marknkamau/justjava/ui/main/MainViewModel.kt | MarkNjunge | 86,477,705 | false | null | package com.marknkamau.justjava.ui.main
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.marknjunge.core.data.model.Resource
import com.marknjunge.core.data.repository.ProductsRepository
import com.markn... | 1 | null | 36 | 74 | e3811f064797d50fadef4033bf1532b3c2ceef8d | 914 | JustJava-Android | Apache License 2.0 |
src/main/kotlin/com/lykke/matching/engine/outgoing/messages/v2/builders/CashTransferEventBuilder.kt | MyJetWallet | 334,417,928 | true | {"Kotlin": 1903525, "Java": 39278} | package com.lykke.matching.engine.outgoing.messages.v2.builders
import com.lykke.matching.engine.outgoing.messages.v2.enums.MessageType
import com.lykke.matching.engine.outgoing.messages.v2.events.CashTransferEvent
import com.lykke.matching.engine.outgoing.messages.v2.events.common.BalanceUpdate
import com.lykke.match... | 0 | Kotlin | 1 | 0 | fad1a43743bd7b833bfa4f1490da5e5350b992ff | 1,546 | MatchingEngine | MIT License |
toolKit/src/main/java/com/kokocinski/toolkit/androidExtensions/listeners/PageChangedListener.kt | hkokocin | 112,010,707 | false | null | package com.kokocinski.toolkit.androidExtensions.listeners
import android.support.v4.view.ViewPager
class PageChangedListener(
private val onPageSelected: (Int) -> Unit = {},
private val onPageScrollStateChanged: (Int) -> Unit = {},
private val onPageScrolled: (Int, Float, Int) -> Unit = {_, _... | 0 | Kotlin | 0 | 3 | 01ba60102467691c578993f6095b59072c8a11fb | 726 | IdleTimer | MIT License |
toolKit/src/main/java/com/kokocinski/toolkit/androidExtensions/listeners/PageChangedListener.kt | hkokocin | 112,010,707 | false | null | package com.kokocinski.toolkit.androidExtensions.listeners
import android.support.v4.view.ViewPager
class PageChangedListener(
private val onPageSelected: (Int) -> Unit = {},
private val onPageScrollStateChanged: (Int) -> Unit = {},
private val onPageScrolled: (Int, Float, Int) -> Unit = {_, _... | 0 | Kotlin | 0 | 3 | 01ba60102467691c578993f6095b59072c8a11fb | 726 | IdleTimer | MIT License |
notifications/src/main/kotlin/io/zerobase/smarttracing/notifications/EmailSender.kt | zerobase-io | 249,016,150 | false | null | package io.zerobase.smarttracing.notifications
interface EmailSender {
fun sendEmail(subject: String,
toAddress: String,
body: String,
contentType: String = "text/html; charset=UTF-8",
attachment: List<Attachment>
)
}
| 19 | Kotlin | 8 | 6 | e0514f99c78bae6883e1bf50da5ee6a5c87f0a7f | 299 | smart-tracing-api | Apache License 2.0 |
app/src/main/kotlin/com/semrad/order/OrderSettings.kt | bjsemrad | 873,946,490 | false | {"Kotlin": 11735, "Nix": 459, "Shell": 10} | package com.semrad.order
class OrderSettings {
var liftGateRequired: Boolean = false
var packingListInEachBox: Boolean = false
} | 0 | Kotlin | 0 | 0 | 66772c77de60a4c18e2bf893f5faa51c2aba24e2 | 137 | temporal-order-demo-kotlin | MIT License |
src/test/kotlin/no/nav/familie/dokument/storage/StorageControllerTest.kt | navikt | 222,470,666 | false | {"Kotlin": 109855, "HTML": 31392, "Dockerfile": 153} | package no.nav.familie.dokument.storage
import io.mockk.Runs
import io.mockk.every
import io.mockk.just
import io.mockk.mockk
import io.mockk.slot
import no.nav.familie.dokument.pdf.PdfService
import no.nav.familie.dokument.storage.attachment.AttachmentStorage
import no.nav.familie.dokument.storage.encryption.Hasher
i... | 4 | Kotlin | 0 | 0 | d07c4826ebdff9b6f0b29628b499cbe80d20924b | 2,827 | familie-dokument | MIT License |
platform/statistics/devkit/testSrc/com/intellij/internal/statistic/actions/devkit/StatisticsEventLogToolWindowTest.kt | ingokegel | 72,937,917 | false | null | // 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.intellij.internal.statistic.actions
import com.intellij.execution.process.ProcessOutputType
import com.intellij.internal.statistic.eventLog.LogEvent
import com.intell... | 191 | null | 4372 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 7,220 | intellij-community | Apache License 2.0 |
app/src/main/java/com/example/petstate/databasetools/EmpModel.kt | whizydan | 483,489,445 | false | {"Kotlin": 148329, "Java": 62813} | package com.example.petstate
//creating a Data Model Class
class EmpModelClass (var userId: Int,
val userName:String ,
val userEmail: String
) | 0 | Kotlin | 3 | 0 | 149a02e51f6870c05b8d09f7318534e94e319ead | 184 | Petstate | Apache License 2.0 |
cinescout/account/presentation/src/main/kotlin/cinescout/account/presentation/action/ManageAccountAction.kt | fardavide | 280,630,732 | false | null | package cinescout.account.presentation.action
import cinescout.auth.domain.model.TraktAuthorizationCode
sealed interface ManageAccountAction {
object LinkToTrakt : ManageAccountAction
data class NotifyTraktAppAuthorized(val code: TraktAuthorizationCode) : ManageAccountAction
object UnlinkFromTrakt : Mana... | 8 | Kotlin | 2 | 6 | dcbd0a0b70d6203a2ba1959b797038564d0f04c4 | 338 | CineScout | Apache License 2.0 |
admoblibrary/src/main/java/com/vapp/admoblibrary/ads/remote/BaseAdView.kt | khaisao | 766,449,406 | false | {"Kotlin": 472014, "Java": 220234} | package com.vapp.admoblibrary.ads.remote
import android.app.Activity
import android.content.Context
import android.os.Handler
import android.os.Looper
import android.view.ViewGroup
import android.widget.FrameLayout
import androidx.annotation.CallSuper
import com.vapp.admoblibrary.ads.remote.BannerPlugin.Companion.log
... | 0 | Kotlin | 0 | 0 | 6415fd8218bf2fcb5cc650a7e097000c274d7205 | 3,037 | AppLock | Apache License 2.0 |
app/src/main/java/dev/marcocattaneo/sleep/di/DiExtensions.kt | mcatta | 469,373,328 | false | {"Kotlin": 201059} | /*
* Copyright 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 8 | Kotlin | 5 | 8 | 132451c3de7dc9812084191f8c99d957c38b29f9 | 1,620 | sleep | Apache License 2.0 |
KotlinTest/src/DataUserTest.kt | gubaojian | 354,480,658 | false | {"PureBasic": 9241771, "Java": 96109, "Kotlin": 23751, "C": 3386} | package datatest
data class User(val name:String, val age:Int)
fun main(args:Array<String>){
val jack = User(name="Jack", age = 1)
val olderJack = jack.copy(age = 2)
println(jack)
println(olderJack)
var jane = User("Jane", 35)
val (name,age) = jane
println("$name, $age years of age")
} | 0 | PureBasic | 0 | 0 | 480cd02ccad81c3dccc7a785e51eed22590711ca | 313 | ServerTechTest | Apache License 2.0 |
platform/workspace/storage/src/com/intellij/platform/workspace/storage/impl/RefsTable.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2020 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.intellij.workspaceModel.storage.impl
import com.google.common.collect.BiMap
import com.google.common.collect.HashBiMap
import com.intellij.openapi.diagnostic.thisLogg... | 7 | null | 5023 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 27,279 | intellij-community | Apache License 2.0 |
platform/script-debugger/backend/src/debugger/VmBase.kt | androidports | 115,100,208 | false | null | /*
* Copyright 2000-2016 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... | 6 | null | 11 | 4 | 6e4f7135c5843ed93c15a9782f29e4400df8b068 | 1,121 | intellij-community | Apache License 2.0 |
modules/presentation/src/main/java/kr/co/knowledgerally/ui/coach/CoachViewModel.kt | YAPP-Github | 475,728,173 | false | {"Kotlin": 454888} | package kr.co.knowledgerally.ui.coach
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.flow.filterIsInstance
import kotlinx.coroutines.flow.first
import kotlin... | 2 | Kotlin | 1 | 4 | 01db68b42594360a9285af458eb812ad83acef70 | 1,982 | 20th-ALL-Rounder-Team-2-Android | Apache License 2.0 |
src/main/kotlin/chapter02/Chapter02_2Main.kt | Sene68 | 582,619,559 | false | {"Kotlin": 29951} | package chapter02
fun main() {
val string1: String? = "Apple"
val string2: String? = null
val string3: String? = "Banana"
val resultA11 = startsWithA(string1)
//val resultA12 = startsWithA(string2)
val resultA13 = startsWithA(string3)
println("resultA11 : $resultA11")
//println("resul... | 0 | Kotlin | 0 | 0 | 55adb5e92e8cb07bee9b4f8bf09aea503adc83b4 | 524 | java-to-kotlin | Apache License 2.0 |
libs/http/src/main/java/me/mo3in/kroid/http/HttpClient.kt | Kican | 144,122,131 | false | {"Kotlin": 78914, "Java": 1843} | package me.mo3in.kroid.http
import me.mo3in.kroid.commons.services.KServiceConfig
import okhttp3.OkHttpClient
import retrofit2.Retrofit
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
import retrofit2.converter.gson.GsonConverterFactory
import java.util.concurrent.Executor
import java.util.concurrent.Execut... | 1 | Kotlin | 0 | 4 | 8cf0c0d20c96c6e375533758903518f7aca4e2e2 | 1,196 | Kroid | MIT License |
presentation/src/test/java/com/anytypeio/anytype/presentation/objects/appearance/LinkAppearanceInEditorTest.kt | anyproto | 647,371,233 | false | {"Kotlin": 11623123, "Java": 69306, "Shell": 11350, "Makefile": 1334} | package com.anytypeio.anytype.presentation.objects.appearance
import com.anytypeio.anytype.core_models.Block.Content.Link
import com.anytypeio.anytype.core_models.ObjectType
import com.anytypeio.anytype.core_models.Relations
import com.anytypeio.anytype.presentation.MockBlockContentFactory.StubLinkContent
import com.a... | 45 | Kotlin | 43 | 528 | c708958dcb96201ab7bb064c838ffa8272d5f326 | 6,825 | anytype-kotlin | RSA Message-Digest License |
app/src/androidTest/java/com/steleot/jetpackcompose/playground/compose/ui/TextIndentScreenTest.kt | Vivecstel | 338,792,534 | false | null | package com.steleot.jetpackcompose.playground.compose.ui
import androidx.compose.ui.test.junit4.createAndroidComposeRule
import com.steleot.jetpackcompose.playground.MainActivity
import com.steleot.jetpackcompose.playground.compose.theme.TestTheme
import org.junit.Rule
import org.junit.Test
class TextIndentScreenTest... | 0 | Kotlin | 16 | 161 | d853dddc7b00735dc9067f3325a2662977a01348 | 592 | Jetpack-Compose-Playground | Apache License 2.0 |
mockk/src/main/kotlin/io/mockk/impl/RecordingCallRecorderState.kt | raosuj | 113,252,883 | true | {"Kotlin": 219752, "Java": 47524, "HTML": 2876, "CSS": 348, "Shell": 303} | package io.mockk.impl
import io.mockk.InternalPlatform
import io.mockk.Invocation
import io.mockk.Matcher
import io.mockk.MockKException
import kotlin.reflect.KClass
internal abstract class RecordingCallRecorderState(recorder: CallRecorderImpl) : CallRecorderState(recorder) {
private var callRoundBuilder: CallRou... | 0 | Kotlin | 0 | 0 | 2d46ac176678f2fa24be2389396646b43e4e3dc0 | 3,115 | mockk | Apache License 2.0 |
src/main/kotlin/com/templ/templ/TemplFormatter.kt | templ-go | 713,014,034 | false | {"Kotlin": 49966, "Java": 46747, "Lex": 10177, "templ": 5228} | package com.templ.templ
import com.intellij.execution.configurations.GeneralCommandLine
import com.intellij.execution.process.CapturingProcessAdapter
import com.intellij.execution.process.OSProcessHandler
import com.intellij.execution.process.ProcessEvent
import com.intellij.formatting.FormattingContext
import com.int... | 10 | Kotlin | 11 | 68 | 723bc0371dc0dc88883b042ef248f7378fdb538b | 2,772 | templ-jetbrains | MIT License |
libp2p/src/main/kotlin/io/libp2p/security/noise/NoiseXXSecureChannel.kt | libp2p | 189,293,403 | false | null | package io.libp2p.security.noise
import com.google.protobuf.ByteString
import com.southernstorm.noise.protocol.DHState
import com.southernstorm.noise.protocol.HandshakeState
import com.southernstorm.noise.protocol.Noise
import io.libp2p.core.P2PChannel
import io.libp2p.core.PeerId
import io.libp2p.core.crypto.PrivKey
... | 33 | null | 76 | 272 | 1cde874089d45f90e2f6ca20f39a77b69cd7e66e | 13,178 | jvm-libp2p | Apache License 2.0 |
src/main/kotlin/io/realworld/conduit/article/domain/Article.kt | Davidonium | 217,222,926 | false | null | package io.realworld.conduit.article.domain
import io.realworld.conduit.profile.domain.Profile
import java.time.OffsetDateTime
data class ArticleId(val value: Int = 0)
class Article(
val id: ArticleId,
val slug: String,
val title: String,
val description: String,
val body: String,
val created... | 0 | Kotlin | 1 | 3 | 3204f521806dfde901f415cdd4fcdfd5446a6524 | 790 | realworld-kotlin-javalin-jooq | MIT License |
app/src/main/java/com/bayraktar/healthybackandneck/ui/Food/TablayoutAdapters/FruitFragment.kt | OzerBAYRAKTAR | 681,364,096 | false | {"Kotlin": 364437} | package com.bayraktar.healthybackandneck.ui.Food.TablayoutAdapters
import android.content.Context
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.app.AppCompatActivity
import androidx.frag... | 0 | Kotlin | 0 | 0 | ffff5bab67a36818fa49b9993b33d1f8842e3ac6 | 8,889 | HealthyBackandNeck | MIT License |
examples/media/userflowpolicy/src/main/kotlin/com/example/ivi/example/media/userflowpolicy/ExampleMediaSourceBrowseUserFlow.kt | tomtom-international | 545,425,009 | false | {"Kotlin": 11258} | package com.example.ivi.example.media.userflowpolicy
import com.tomtom.ivi.appsuite.media.api.common.core.SourceId
import com.tomtom.ivi.appsuite.media.api.common.frontend.MediaFrontendContext
import com.tomtom.ivi.appsuite.media.api.common.frontend.policies.BrowseSourceUserFlow
import com.tomtom.ivi.appsuite.media.ap... | 0 | Kotlin | 5 | 6 | bc16c957e7b74cb9204e3ea11603994e358e4eda | 1,039 | tomtom-digital-cockpit-sdk-examples | FSF All Permissive License |
app/shared/state-machine/ui/public/src/commonTest/kotlin/build/wallet/statemachine/limit/SetSpendingLimitUiStateMachineImplTests.kt | proto-at-block | 761,306,853 | false | {"C": 10474259, "Kotlin": 8243078, "Rust": 2779264, "Swift": 893661, "HCL": 349246, "Python": 338898, "Shell": 136508, "TypeScript": 118945, "C++": 69203, "Meson": 64811, "JavaScript": 36398, "Just": 32977, "Ruby": 13559, "Dockerfile": 5934, "Makefile": 3915, "Open Policy Agent": 1552, "Procfile": 80} | package build.wallet.statemachine.limit
import app.cash.turbine.plusAssign
import build.wallet.coroutines.turbine.turbines
import build.wallet.f8e.auth.HwFactorProofOfPossession
import build.wallet.limit.MobilePayEnabledDataMock
import build.wallet.limit.MobilePayServiceMock
import build.wallet.limit.SpendingLimit
imp... | 3 | C | 16 | 113 | 694c152387c1fdb2b6be01ba35e0a9c092a81879 | 4,242 | bitkey | MIT License |
features/popular/src/main/java/com/lcabral/artseventh/features/popular/presentation/viewmodel/PopularViewModel.kt | LucianaCabral | 706,897,860 | false | {"Kotlin": 155389} | package com.lcabral.artseventh.features.popular.presentation.viewmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.lcabral.artseventh.core.domain.model.Movie
import com.lcabral.artseventh.core.domai... | 0 | Kotlin | 0 | 0 | db5146b7ff83227568a255c2d38c4df2380f408f | 1,996 | ArtSeventh | MIT License |
features/popular/src/main/java/com/lcabral/artseventh/features/popular/presentation/viewmodel/PopularViewModel.kt | LucianaCabral | 706,897,860 | false | {"Kotlin": 155389} | package com.lcabral.artseventh.features.popular.presentation.viewmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.lcabral.artseventh.core.domain.model.Movie
import com.lcabral.artseventh.core.domai... | 0 | Kotlin | 0 | 0 | db5146b7ff83227568a255c2d38c4df2380f408f | 1,996 | ArtSeventh | MIT License |
core/src/main/java/com/nabla/sdk/core/data/device/DeviceRepositoryImpl.kt | nabla | 478,468,099 | false | null | package com.nabla.sdk.core.data.device
import com.apollographql.apollo3.ApolloClient
import com.apollographql.apollo3.api.Optional
import com.benasher44.uuid.Uuid
import com.nabla.sdk.core.data.apollo.ApolloResponseExt.dataOrThrowOnError
import com.nabla.sdk.core.data.exception.GraphQLException
import com.nabla.sdk.co... | 0 | null | 1 | 18 | ca83926d41a2028ca992d4aa66f4d387152c6cb4 | 4,908 | nabla-android | MIT License |
src/main/kotlin/no/nav/syfo/aareg/Arbeidsavtale.kt | navikt | 656,574,894 | false | {"Kotlin": 188879, "Dockerfile": 257} | package no.nav.syfo.aareg
import java.io.Serializable
data class Arbeidsavtale(
var antallTimerPrUke: Double? = null,
var arbeidstidsordning: String? = null,
var beregnetAntallTimerPrUke: Double? = null,
var bruksperiode: Bruksperiode? = null,
var gyldighetsperiode: Gyldighetsperiode? = null,
... | 6 | Kotlin | 0 | 0 | 155d819fa82a81eb94e9be29e9a8119d26cfc0b3 | 622 | oppfolgingsplan-backend | MIT License |
features/details/src/main/java/com/mnh/features/details/DetailsViewModel.kt | mnhmasum | 788,996,547 | false | {"Kotlin": 68870} | package com.mnh.features.details
import androidx.lifecycle.ViewModel
import com.mnh.ble.model.DeviceInfo
import com.mnh.features.details.usecase.PeripheralDetailsUseCase
import com.napco.utils.DataState
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject
@... | 0 | Kotlin | 1 | 0 | 6bc769188450ab30a6425c69262e47f7796cf430 | 793 | ble-device-scanner | Apache License 2.0 |
protocol/osrs-223/src/main/kotlin/net/rsprox/protocol/ServerPacketDecoderService.kt | blurite | 822,339,098 | false | {"Kotlin": 1453055} | package net.rsprox.protocol
import net.rsprot.buffer.JagByteBuf
import net.rsprot.compression.HuffmanCodec
import net.rsprot.protocol.message.IncomingMessage
import net.rsprox.cache.api.CacheProvider
import net.rsprox.protocol.game.outgoing.decoder.prot.ServerMessageDecoderRepository
import net.rsprox.protocol.session... | 2 | Kotlin | 4 | 9 | 41535908e6ccb633c8f2564e8961efa771abd6de | 857 | rsprox | MIT License |
app/src/main/java/com/thedeveloperworldisyours/mytasks/database/Task.kt | thedeveloperworldisyours | 151,304,041 | false | null | package com.thedeveloperworldisyours.mytasks.database
import android.arch.persistence.room.ColumnInfo
import android.arch.persistence.room.Entity
import android.arch.persistence.room.PrimaryKey
/**
* Created by javiergonzalezcabezas on 3/10/18.
*/
@Entity(tableName = "task")
data class Task(@ColumnInfo(name = "comp... | 0 | Kotlin | 0 | 0 | 722221d711041dbe03fa3499606bd443d4317d9d | 530 | RoomAnko | Apache License 2.0 |
src/main/kotlin/no/nav/klage/dokument/clients/clamav/ScanResult.kt | navikt | 297,650,936 | false | null | package no.nav.klage.clients.clamav
import com.fasterxml.jackson.annotation.JsonAlias
data class ScanResult(
@JsonAlias("Filename")
val filename: String,
@JsonAlias("Result")
val result: ClamAvResult
)
enum class ClamAvResult {
FOUND, OK, ERROR
}
| 3 | Kotlin | 1 | 2 | 168c8c4b9ed5192ac6870f88b6e82a665b29a4b9 | 270 | kabal-api | MIT License |
data/src/main/java/app/tivi/data/repositories/popularshows/PopularShowsRepository.kt | smtcrms | 196,380,817 | false | null | /*
* Copyright 2018 Google LLC
*
* 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 i... | 0 | Kotlin | 0 | 1 | 40dea42e7a819ccba3ab8e35bc0d0db2b8437305 | 3,105 | tivi | Apache License 2.0 |
form/src/main/java/com/thejuki/kformmaster/widget/datepicker/IKFWheelHourPicker.kt | TheJuki | 121,467,673 | false | {"Gradle Kotlin DSL": 4, "XML": 66, "Markdown": 42, "Java Properties": 3, "Shell": 2, "Text": 1, "Ignore List": 3, "Batchfile": 2, "YAML": 5, "Proguard": 2, "Kotlin": 122, "Java": 1, "JSON": 1} | package com.thejuki.kformmaster.widget.datepicker
import org.threeten.bp.LocalDate
/**
* Wheel Hour Picker Interface
*
* @author **soareseneves** ([GitHub](https://github.com/soareseneves))
* @version 1.0
*/
interface IKFWheelHourPicker {
var selectedHour: Int
var selectedDate: LocalDate
var allHours... | 16 | Kotlin | 45 | 195 | d58338e52b22db38daf282183b9d962b9b9587e2 | 331 | KFormMaster | Apache License 2.0 |
work/src/main/kotlin/net/kotlinx/kotest/modules/lambdaDispatcher/LambdaDispatcherDefaultListener.kt | mypojo | 565,799,715 | false | {"Kotlin": 1495826, "Jupyter Notebook": 13540, "Java": 9531} | package net.kotlinx.kotest.modules.lambdaDispatcher
import com.google.common.eventbus.Subscribe
import mu.KotlinLogging
import net.kotlinx.aws.lambda.dispatch.LambdaDispatcherDeadEvent
import net.kotlinx.aws.lambda.dispatch.LambdaDispatcherFailEvent
import net.kotlinx.aws.lambda.dispatch.synch.LambdaDispatcherCommandE... | 0 | Kotlin | 0 | 1 | 1b361a5ae8aae718f0e81768452e6803c0990e71 | 1,498 | kx_kotlin_support | MIT License |
work/src/main/kotlin/net/kotlinx/kotest/modules/lambdaDispatcher/LambdaDispatcherDefaultListener.kt | mypojo | 565,799,715 | false | {"Kotlin": 1495826, "Jupyter Notebook": 13540, "Java": 9531} | package net.kotlinx.kotest.modules.lambdaDispatcher
import com.google.common.eventbus.Subscribe
import mu.KotlinLogging
import net.kotlinx.aws.lambda.dispatch.LambdaDispatcherDeadEvent
import net.kotlinx.aws.lambda.dispatch.LambdaDispatcherFailEvent
import net.kotlinx.aws.lambda.dispatch.synch.LambdaDispatcherCommandE... | 0 | Kotlin | 0 | 1 | 1b361a5ae8aae718f0e81768452e6803c0990e71 | 1,498 | kx_kotlin_support | MIT License |
browser-kotlin/src/jsMain/kotlin/web/html/HTMLTitleElement.kt | karakum-team | 393,199,102 | false | null | // Automatically generated - do not modify!
package web.html
abstract external class HTMLTitleElement :
HTMLElement {
/** Retrieves or sets the text of the object as a string. */
var text: String
}
| 0 | Kotlin | 6 | 22 | 00321b7e81352bc3d7243dd6631e1fb178f528c8 | 212 | types-kotlin | Apache License 2.0 |
app/src/main/java/com/ifanr/tangzhi/model/SearchLog.kt | cyrushine | 224,551,311 | false | {"Kotlin": 673925, "Java": 59856, "Python": 795} | package com.ifanr.tangzhi.model
import com.ifanr.tangzhi.ext.getSafeBoolean
import com.ifanr.tangzhi.ext.getSafeString
import com.minapp.android.sdk.database.Record
/**
* 搜索历史
*/
data class SearchLog (
val key: String,
val followed: Boolean? = null,
val status: String = BaseModel.STATUS_APPROVED
) {
... | 0 | Kotlin | 0 | 0 | ab9a7a2eba7f53eca918e084da9d9907f7997cee | 886 | tangzhi_android | Apache License 2.0 |
komapper-tx-jdbc/src/main/kotlin/org/komapper/tx/jdbc/JdbcIsolationLevel.kt | komapper | 349,909,214 | false | null | package org.komapper.tx.jdbc
import java.sql.Connection
enum class JdbcIsolationLevel constructor(val value: Int) {
READ_UNCOMMITTED(Connection.TRANSACTION_READ_UNCOMMITTED),
READ_COMMITTED(Connection.TRANSACTION_READ_COMMITTED),
REPEATABLE_READ(Connection.TRANSACTION_REPEATABLE_READ),
SERIALIZABLE(Co... | 3 | Kotlin | 0 | 33 | 52f1fff537ee9da900d11d3229f13b274982dd52 | 358 | komapper | Apache License 2.0 |
price_calculator/src/main/kotlin/pl/edu/pg/rsww/pricecalculator/Geolocation.kt | YetAnotherSpieskowcy | 769,413,515 | false | {"Kotlin": 114779, "HTML": 16945, "Python": 13559, "Dockerfile": 7202, "Makefile": 3009, "JavaScript": 2688, "Shell": 1336} | package pl.edu.pg.rsww.pricecalculator
public class Geolocation(lat: Float, long: Float) {
val latitude: Float = lat
val longitude: Float = long
}
| 0 | Kotlin | 1 | 0 | 75efcf04e0245ae87fca20a45bc04d4ba05de7f2 | 156 | travel-agency-app | Apache License 2.0 |
src/main/kotlin/ru/razornd/twitch/clips/twitch/TwitchClient.kt | RazorNd | 599,688,021 | false | null | /*
* 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 wr... | 0 | Kotlin | 0 | 0 | 06d58f73b004a78b5ada939140dfc1b1ea3d0ead | 3,135 | clips-stats-getter | Apache License 2.0 |
arms/src/main/java/com/jess/arms/base/delegate/AppLifecycles.kt | petma | 192,675,016 | true | {"Kotlin": 331292} | /*
* Copyright 2017 JessYan
*
* 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 ... | 0 | Kotlin | 0 | 0 | 64ac1d9e092ef637f67b57a7effac7e0a6d029f9 | 1,138 | MVPArms | Apache License 2.0 |
blog/src/main/kotlin/com/liux/blog/controller/OtherController.kt | lx0758 | 334,699,858 | false | null | package com.liux.blog.controller
import com.liux.blog.renderMarkdown
import com.liux.blog.service.ArticleService
import com.liux.blog.service.ThemeService
import com.liux.blog.toDateString
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.GetMapping
import org... | 0 | Kotlin | 0 | 0 | 5f39095253b5f2d171f4cc07c8a0a3a5135520f4 | 2,482 | Blog | MIT License |
skylight-android/src/androidTest/java/dev/drewhamilton/skylight/android/test/FakeDarkModeApplicator.kt | drewhamilton | 193,222,970 | false | {"Gradle": 5, "Markdown": 4, "Java Properties": 1, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "XML": 29, "INI": 2, "Java": 1, "Kotlin": 23, "TOML": 1, "YAML": 2, "Proguard": 1} | package dev.drewhamilton.skylight.android.test
import dev.drewhamilton.skylight.android.DarkModeApplicator
class FakeDarkModeApplicator : DarkModeApplicator {
var appliedMode: DarkModeApplicator.DarkMode? = null
private set
override fun applyMode(mode: DarkModeApplicator.DarkMode) {
appliedMo... | 0 | Kotlin | 0 | 1 | a9de3bacf53845bc619378cc52a03b33a1d45d8c | 338 | SkylightAndroid | Apache License 2.0 |
service/src/main/kotlin/io/provenance/explorer/domain/entities/ExplorerCache.kt | provenance-io | 332,035,574 | false | {"Kotlin": 1046875, "PLpgSQL": 316369, "Shell": 679, "Python": 642} | package io.provenance.explorer.domain.entities
import io.provenance.explorer.OBJECT_MAPPER
import io.provenance.explorer.domain.core.sql.jsonb
import io.provenance.explorer.model.ChainAum
import io.provenance.explorer.model.ChainMarketRate
import io.provenance.explorer.model.CmcHistoricalQuote
import io.provenance.exp... | 31 | Kotlin | 3 | 6 | bba7b8e7ed8279e41718704df7ad90c45e9c50c0 | 13,347 | explorer-service | Apache License 2.0 |
app/src/main/java/com/celzero/bravedns/RethinkDnsApplication.kt | fux0r2009 | 405,350,739 | true | {"Kotlin": 863559, "Java": 63406} | package com.celzero.bravedns
import android.app.Application
import android.os.StrictMode
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
import org.koin.core.context.startKoin
/*
* Copyright 2020 RethinkDNS and its authors
*
* Licensed under the Apache License, Versio... | 0 | null | 0 | 0 | edc51e0269a2b12c9550ac9eccc29125552c76d3 | 1,746 | rethink-app | Apache License 2.0 |
app/src/main/java/com/github/dhaval2404/itunesplayer/data/remote/NetworkResponse.kt | Dhaval2404 | 318,816,023 | false | null | package com.github.dhaval2404.itunesplayer.data.remote
/**
* Network Response
*
* @author Dhaval Patel
* @version 1.0
* @since 06 December 2020
*/
sealed class NetworkResponse<out T : Any> {
data class Success<out T : Any>(val data: T) : NetworkResponse<T>()
data class Error(val error: String, val stat... | 0 | Kotlin | 0 | 3 | d210f5c54d3205c092fb3f670eb2c0f270b5a9e7 | 364 | iTunesPlayer | Apache License 2.0 |
src/main/kotlin/astminer/storage/ast/CsvAstStorage.kt | kisate | 368,867,777 | true | {"Kotlin": 213019, "Java": 199813, "ANTLR": 76421, "C++": 25952, "JavaScript": 7698, "Python": 2535, "Dockerfile": 951, "Shell": 852} | package astminer.storage.ast
import astminer.cli.LabeledResult
import astminer.common.model.Node
import astminer.common.preOrder
import astminer.common.storage.*
import astminer.storage.Storage
import java.io.File
import java.io.PrintWriter
/**
* Stores multiple ASTs by their roots and saves them in .csv format.
* ... | 1 | null | 0 | 1 | a5c27c21c8523e9f7c471e90a369e84c74b3729b | 2,092 | astminer | MIT License |
app/src/main/java/com/l3udy/basicmvpkotlin/model/User.kt | SetiaBudy-Me | 508,501,582 | false | null | package com.l3udy.basicmvpkotlin.model
data class User(
var email: String? = null,
var password: String? = null
)
| 0 | Kotlin | 0 | 1 | 07efed1855b3d03af28fefbe368c9a9d5c364b3d | 123 | basic-mvp-kotlin-architecture-example | Apache License 2.0 |
app/src/main/java/com/example/appstore/data/repository/ProfileOrdersRepository.kt | rezakardan | 779,591,568 | false | {"Kotlin": 353707, "Java": 16027} | package com.example.appstore.data.repository
import com.example.appstore.data.server.ApiService
import javax.inject.Inject
class ProfileOrdersRepository@Inject constructor(private val api:ApiService) {
suspend fun profileOrders(status:String)=api.profileOrders(status)
} | 0 | Kotlin | 0 | 0 | c64368f08faae5b50d158dadb79a8a1a3cd3e140 | 277 | AppStore__Git | MIT License |
android-sdk/src/test/java/webtrekk/android/sdk/domain/external/TrackCustomMediaTest.kt | Webtrekk | 166,987,236 | false | null | package webtrekk.android.sdk.domain.external
import io.mockk.Called
import io.mockk.coVerify
import io.mockk.mockkClass
import kotlinx.coroutines.runBlocking
import webtrekk.android.sdk.api.RequestType
import webtrekk.android.sdk.domain.internal.CacheTrackRequestWithCustomParams
import webtrekk.android.sdk.util.cacheT... | 1 | Kotlin | 1 | 12 | 8ba7b8b3e95082b378af31b6277d94bd883e6ac5 | 2,432 | webtrekk-android-sdk-v5 | MIT License |
buildSrc/src/main/kotlin/net/meilcli/librarian/gradle/extensions/ProjectExtensions.kt | MeilCli | 250,963,046 | false | null | package net.meilcli.pipe.gradle.extensions
import com.android.build.gradle.BaseExtension
import org.gradle.api.Project
import java.io.File
fun Project.applyLintSetting() {
val extension = project.extensions.findByName("android") as? BaseExtension ?: return
extension.lintOptions {
xmlReport = true
... | 24 | Kotlin | 1 | 4 | 35598bea44864f96e62a6abdccb274b4b3ca1622 | 524 | Librarian | MIT License |
src/main/kotlin/icu/windea/pls/config/cwt/config/CwtOptionValueConfig.kt | DragonKnightOfBreeze | 328,104,626 | false | null | package icu.windea.pls.config.config
import com.intellij.psi.*
import icu.windea.pls.cwt.psi.*
data class CwtOptionValueConfig(
override val pointer: SmartPsiElementPointer<CwtValue>, //NOTE 未使用
override val info: CwtConfigGroupInfo,
val value: String,
val booleanValue: Boolean? = null,
val intValue: Int? = null... | 2 | null | 2 | 7 | 037b9b4ba467ed49ea221b99efb0a26cd630bb67 | 510 | Paradox-Language-Support | MIT License |
kotlin-remix-run-router/src/jsMain/generated/remix/run/router/DetectErrorBoundaryFunction.kt | JetBrains | 93,250,841 | false | null | @file:Suppress(
"NON_EXTERNAL_DECLARATION_IN_INAPPROPRIATE_FILE",
)
package remix.run.router
/**
* Function provided by the framework-aware layers to set `hasErrorBoundary`
* from the framework-aware `errorElement` prop
*
* @deprecated Use `mapRouteProperties` instead
*/
typealias DetectErrorBoundaryFunctio... | 28 | Kotlin | 170 | 1,209 | 2c81d207ab67e7bd8d85571a8b2c88812ef4a3cf | 364 | kotlin-wrappers | Apache License 2.0 |
kotlin-remix-run-router/src/jsMain/generated/remix/run/router/DetectErrorBoundaryFunction.kt | JetBrains | 93,250,841 | false | null | @file:Suppress(
"NON_EXTERNAL_DECLARATION_IN_INAPPROPRIATE_FILE",
)
package remix.run.router
/**
* Function provided by the framework-aware layers to set `hasErrorBoundary`
* from the framework-aware `errorElement` prop
*
* @deprecated Use `mapRouteProperties` instead
*/
typealias DetectErrorBoundaryFunctio... | 28 | Kotlin | 170 | 1,209 | 2c81d207ab67e7bd8d85571a8b2c88812ef4a3cf | 364 | kotlin-wrappers | Apache License 2.0 |
src/test/kotlin/nl/bjornvanderlaan/springwebfluxkotlinfunctional/router/MockedRepositoryIntegrationTest.kt | BjornvdLaan | 425,080,434 | false | {"Kotlin": 20028} | package nl.bjornvanderlaan.springwebfluxkotlinfunctional.router
import com.ninjasquad.springmockk.MockkBean
import io.mockk.coEvery
import io.mockk.coVerify
import io.mockk.every
import io.mockk.slot
import kotlinx.coroutines.flow.flow
import nl.bjornvanderlaan.springwebfluxkotlinfunctional.handler.CatHandler
import n... | 0 | Kotlin | 4 | 9 | e20379de0f4ae688c036941ce85fcce2ab140304 | 6,605 | spring-boot-webflux-kotlin-h2-example | MIT License |
v1_29/src/main/java/de/loosetie/k8s/dsl/manifests/ValidatingAdmissionPolicyBinding.kt | loosetie | 283,145,621 | false | {"Kotlin": 8925107} | package de.loosetie.k8s.dsl.manifests
import de.loosetie.k8s.dsl.K8sTopLevel
import de.loosetie.k8s.dsl.K8sDslMarker
import de.loosetie.k8s.dsl.K8sManifest
import de.loosetie.k8s.dsl.HasMetadata
@K8sDslMarker
interface ValidatingAdmissionPolicy_admissionregistration_k8s_io_v1alpha1: K8sTopLevel, HasMetadata {
/** ... | 0 | Kotlin | 0 | 2 | 57d56ab780bc3134c43377e647e7f0336a5f17de | 1,670 | k8s-dsl | Apache License 2.0 |
src/main/kotlin/no/njoh/pulseengine/modules/graphics/RenderState.kt | NiklasJohansen | 239,208,354 | false | null | package no.njoh.pulseengine.modules.graphics
class RenderState
{
var rgba = 0f
var depth = 0f
init
{
setRGBA(1f, 1f, 1f, 1f)
}
fun increaseDepth()
{
depth += DEPTH_INC
}
fun resetDepth(value: Float)
{
depth = value
}
fun setRGBA(r: Float, g: F... | 0 | Kotlin | 0 | 0 | d2c0d09732fed1f2221ee17e5a28f0e50857b333 | 702 | PulseEngine | MIT License |
backend/src/main/kotlin/men/brakh/bsuirstudent/notification/sender/GlobalNotificationSender.kt | N1ghtF1re | 184,453,033 | false | null | package men.brakh.bsuirstudent.notification.sender
import men.brakh.bsuirstudent.application.exception.BadRequestException
import men.brakh.bsuirstudent.domain.iis.student.Student
import men.brakh.bsuirstudent.notification.repository.NotificationTokenRepository
import org.slf4j.LoggerFactory
import org.springframework... | 0 | Kotlin | 0 | 9 | a4cd806c4658eb2aa736aa40daf47b19d39df80f | 1,210 | Bsuir-Additional-Api | Apache License 2.0 |
src/main/kotlin/br/com/leodelmiro/lista/ListaChavesGrpcEndpoint.kt | leodelmiro | 354,864,787 | true | {"Kotlin": 108698} | package br.com.leodelmiro.lista
import br.com.leodelmiro.*
import br.com.leodelmiro.compartilhado.chavepix.ChavePixRepository
import br.com.leodelmiro.compartilhado.exceptions.interceptor.ErrorHandler
import com.google.protobuf.Timestamp
import io.grpc.stub.StreamObserver
import java.time.ZoneId
import java.util.*
imp... | 0 | Kotlin | 0 | 0 | 32c2dc367648ce0dbf8aeb5275f444e08d6f39e7 | 1,930 | orange-talents-02-template-pix-keymanager-grpc | Apache License 2.0 |
day11/kotlin/corneil/src/main/kotlin/solution.kt | timgrossmann | 225,318,089 | false | {"Gradle": 17, "Shell": 21, "Dockerfile": 5, "AsciiDoc": 245, "Text": 188, "Ignore List": 24, "Batchfile": 2, "Git Attributes": 1, "Go": 5, "Java": 22, "Haskell": 14, "JSON with Comments": 17, "JavaScript": 17, "JSON": 25, "PHP": 9, "JetBrains MPS": 21, "XML": 9, "Kotlin": 33, "C++": 18, "Ruby": 24, "Python": 101, "INI... | package com.github.corneil.aoc2019.day11
import com.github.corneil.aoc2019.day11.DIRECTION.EAST
import com.github.corneil.aoc2019.day11.DIRECTION.NORTH
import com.github.corneil.aoc2019.day11.DIRECTION.SOUTH
import com.github.corneil.aoc2019.day11.DIRECTION.WEST
import com.github.corneil.aoc2019.intcode.Program
import... | 1 | null | 1 | 1 | bb19fda33ac6e91a27dfaea27f9c77c7f1745b9b | 3,153 | aoc-2019 | MIT License |
liveview-android/src/test/java/com/dockyard/liveviewtest/liveview/components/LazyRowShotTest.kt | liveview-native | 459,214,950 | false | {"Kotlin": 1098756, "Elixir": 68578} | package com.dockyard.liveviewtest.liveview.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import a... | 44 | Kotlin | 3 | 68 | 7836c95b109b06ea676e499ac75bb9be9d443cbb | 4,381 | liveview-client-jetpack | MIT License |
src/test/kotlin/concurrency/VirtualThreadTest.kt | objektwerks | 353,663,201 | false | null | package concurrency
import java.util.concurrent.ExecutionException
import java.util.concurrent.Executors
import org.junit.Test
/**
* Configure in gradle: --enable-preview --add-modules jdk.incubator.concurrent
* Virtual Threads: openjdk.org/jeps/425
* Article: www.marcobehler.com/guides/java-project-loom
*/
clas... | 0 | Kotlin | 0 | 0 | 8fa77fe8a15e8d145a63e3769a00951605ee53db | 793 | kotlin | Apache License 2.0 |
kpages/src/jvmMain/kotlin/PreferenceJvm.kt | Monkopedia | 316,826,954 | false | null | /*
* Copyright 2020 Jason Monk
*
* 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 ... | 0 | Kotlin | 0 | 0 | c766f5a0834a4e621170bd62be2737ba6c8d77bf | 4,862 | kpages | Apache License 2.0 |
src/main/kotlin/io/andrewohara/utils/mappers/jacksonYaml.kt | oharaandrew314 | 367,413,369 | false | null | package io.andrewohara.utils.mappers
import com.fasterxml.jackson.databind.DeserializationFeature
import com.fasterxml.jackson.dataformat.yaml.YAMLMapper
import com.fasterxml.jackson.module.kotlin.KotlinModule
import io.andrewohara.utils.config.ConfigLoader
import io.andrewohara.utils.config.mapper as configMapper
imp... | 0 | Kotlin | 0 | 3 | f4e9be4e13884dac2f3c8aeebf190ea893a5012d | 1,555 | service-utils | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.