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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dsl-annotation-processor/src/main/kotlin/dev/vihang/neo4jstore/dsl/model/annotation/processor/EntityRelationSymbolProcessor.kt | vihangpatil | 255,573,656 | false | null | package dev.vihang.neo4jstore.dsl.model.annotation.processor
import com.google.devtools.ksp.KspExperimental
import com.google.devtools.ksp.getAnnotationsByType
import com.google.devtools.ksp.processing.Dependencies
import com.google.devtools.ksp.processing.Resolver
import com.google.devtools.ksp.processing.SymbolProce... | 0 | Kotlin | 0 | 2 | e210f023a25762cc0da31e12ac5bb98209f950d1 | 10,242 | neo4j-store | Apache License 2.0 |
src/main/kotlin/com/simpleservice/repository/noticeBoard/PostRepository.kt | mrgamza | 637,117,330 | false | null | package com.simpleservice.repository.noticeBoard
import com.simpleservice.entity.noticeBoard.Post
import org.springframework.data.jpa.repository.JpaRepository
interface PostRepository : JpaRepository<Post, Long> {
fun findByTitle(title: String): List<Post>
}
| 0 | Kotlin | 0 | 0 | eded14c0541d58d645676bacf8604cefd5b428d7 | 265 | simple-service | MIT License |
modules/execution/tests/execution/ErrorTests.kt | fluidsonic | 226,815,725 | false | null | @file:Suppress("LocalVariableName")
package testing
import io.fluidsonic.graphql.*
import kotlin.test.*
class ErrorTests {
@Test
fun testErrorForInvalidFieldInNonValidatedQuery() = runBlockingTest {
val schema = GraphQL.schema { Query {} }
val document = "{ foo }"
val executor = GExecutor.default(schema =... | 1 | Kotlin | 2 | 4 | 69260613a5b9e94807d71fab410d09a1202993b3 | 705 | fluid-graphql | Apache License 2.0 |
charset-ext/src/com/fleeksoft/charset/cs/ext/IBM939.kt | fleeksoft | 874,918,183 | false | {"Kotlin": 8845941} | package com.fleeksoft.charset.cs.ext
import com.fleeksoft.charset.Charset
import com.fleeksoft.charset.CharsetDecoder
import com.fleeksoft.charset.CharsetEncoder
import com.fleeksoft.charset.cs.DoubleByte
class IBM300 : Charset("x-IBM300") {
fun contains(cs: Charset): Boolean {
return (cs is IBM300)... | 1 | Kotlin | 0 | 2 | a16af685a558ad177749c12d7840a7b67aece66c | 119,293 | charset | MIT License |
actionviews/src/main/java/com/tanchuev/actionviews/viewmodel/rx/observer/BaseCompletableObserver.kt | tanchuev | 136,659,251 | false | {"Kotlin": 44579} | package com.tanchuev.actionviews.mvp.rx.observer
import io.reactivex.functions.Action
import io.reactivex.functions.Consumer
import io.reactivex.observers.DisposableCompletableObserver
/**
* @author tanchuev
*/
class BaseCompletableObserver : DisposableCompletableObserver {
private var onComplete: Action? = n... | 0 | Kotlin | 0 | 8 | 7ab13e9f91e493d9408953d569d393607ee26ab7 | 1,035 | ActionViews-ViewModel | MIT License |
app/src/main/java/com/project/monopad/data/model/network/response/MovieVideoResponse.kt | team-MonoPad | 297,945,477 | false | null | package com.project.monopad.data.model.network.response
data class MovieVideoResponse(
val id: Int,
val results: List<MovieVideoResultResponse>
)
| 1 | Kotlin | 4 | 4 | 57a0e7b43faf98d16f03301c23d84b80e44f4787 | 156 | MonoPad | Apache License 2.0 |
settings-datastore-encryption/src/androidTest/java/de/charlex/settings/datastore/encryption/AndroidSettingsDataStoreInMemoryEncryptionTest.kt | ch4rl3x | 309,776,447 | false | {"Kotlin": 82402} | package de.charlex.settings.datastore.encryption
import de.charlex.settings.datastore.SettingsDataStore
import org.junit.Before
class AndroidSettingsDataStoreInMemoryEncryptionTest : SettingsDataStoreEncryptionTest() {
@Before
fun setup() {
settings = SettingsDataStore.createInMemory()
}
}
| 1 | Kotlin | 4 | 6 | 2add09be03854ef795564402496ffda6b16160bb | 314 | settings | Apache License 2.0 |
ui/ui-tooling/src/androidTest/java/androidx/ui/tooling/preview/ParameterProviderComposable.kt | syntaxxxxx | 373,241,135 | false | null | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 1 | null | 1 | 1 | fa4711838092061ca02409b998a59f12ef0b7143 | 1,474 | androidx | Apache License 2.0 |
player/src/commonMain/kotlin/de/julianostarek/motif/player/PlayerState.kt | jlnstrk | 550,456,917 | false | null | package de.julianostarek.motif.player
public sealed interface PlayerState {
public val track: PlayerTrack?
public val state: PlaybackState
public val position: Long
public val repeatMode: RepeatMode
public val shuffleMode: ShuffleMode
public enum class PlaybackState {
STOPPED, PAUSED, ... | 0 | Kotlin | 0 | 1 | bd4376470c8f4281a1e8fd4641ea5339f66425ad | 458 | motif | Apache License 2.0 |
app/src/main/java/com/utn/appsure/fragment/MainListFragment.kt | UTN-FRBA-Mobile | 294,838,357 | false | null | package com.utn.appsure.fragment
import android.content.Intent
import android.os.Bundle
import android.view.*
import androidx.core.os.bundleOf
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.navigation.fragment.NavHostFragment.findNavController
import androidx.recyclerview.widg... | 3 | Kotlin | 0 | 0 | 392544996b6af6fa49b0b0d1132651f22129639f | 3,301 | AppSure | MIT License |
graph/adapter-output-spring-data-neo4j-sdn6/src/main/kotlin/eu/tib/orkg/prototype/statements/adapter/output/neo4j/spring/internal/Neo4jPredicateRepository.kt | TIBHannover | 197,416,205 | false | null | package eu.tib.orkg.prototype.statements.adapter.output.neo4j.spring.internal
import eu.tib.orkg.prototype.statements.domain.model.PredicateId
import java.util.*
import org.springframework.data.domain.Page
import org.springframework.data.domain.Pageable
import org.springframework.data.neo4j.repository.Neo4jRepository
... | 0 | Kotlin | 1 | 4 | 84e17adb51e35e7123e1d853d49ae1d8ea95d400 | 2,063 | orkg-backend | MIT License |
app/shared/state-machine/data/impl/src/commonMain/kotlin/build/wallet/statemachine/data/firmware/FirmwareDataStateMachineImpl.kt | proto-at-block | 761,306,853 | false | null | package build.wallet.statemachine.data.firmware
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.remember
import build.wallet.compose.coroutines.rememberStableCoroutineScope
import build.wallet.firmw... | 3 | null | 6 | 98 | 1f9f2298919dac77e6791aa3f1dbfd67efe7f83c | 5,513 | bitkey | MIT License |
src/main/kotlin/cn/yiiguxing/plugin/translate/action/actions.kt | YiiGuxing | 60,159,997 | false | null | package cn.yiiguxing.plugin.translate.action
import cn.yiiguxing.plugin.translate.util.Settings
import com.intellij.openapi.actionSystem.ActionPlaces
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.CommonDataKeys
import com.intellij.openapi.editor.Editor
val AnActionEve... | 55 | null | 784 | 9,758 | 3a5cf29b7765e48ff828c23e3bb960aa72a583d4 | 953 | TranslationPlugin | MIT License |
feature-location/src/main/java/de/niklasbednarczyk/nbweather/feature/location/screens/daily/LocationDailyFragment.kt | NiklasBednarczyk | 529,683,941 | false | null | package de.niklasbednarczyk.nbweather.feature.location.screens.daily
import androidx.compose.runtime.Composable
import androidx.fragment.app.viewModels
import dagger.hilt.android.AndroidEntryPoint
import de.niklasbednarczyk.nbweather.core.ui.fragment.NBFragmentPager
import de.niklasbednarczyk.nbweather.core.ui.fragmen... | 22 | Kotlin | 0 | 0 | b2d94e99336b908a48e784febda56a4750039cb2 | 1,228 | NBWeather | MIT License |
src/test/kotlin/no/nav/eessi/pensjon/oppgaverouting/Pbuc03Test.kt | navikt | 178,813,650 | false | null | package no.nav.eessi.pensjon.oppgaverouting
import io.mockk.every
import io.mockk.mockk
import no.nav.eessi.pensjon.eux.model.BucType.*
import no.nav.eessi.pensjon.eux.model.buc.SakType
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertNotEquals
import org.junit.jupit... | 2 | null | 2 | 6 | ecffc4ad04aa9da50a0a7de401e5b9eb5ea34f95 | 2,986 | eessi-pensjon-journalforing | MIT License |
src/main/kotlin/com/refinedmods/refinedstorage/apiimpl/util/FluidStackList.kt | thinkslynk | 290,596,653 | true | {"Kotlin": 695976, "Shell": 456} | package com.refinedmods.refinedstorage.apiimpl.util
import com.google.common.collect.ArrayListMultimap
import com.refinedmods.refinedstorage.api.util.IStackList
import com.refinedmods.refinedstorage.api.util.StackListEntry
import com.refinedmods.refinedstorage.api.util.StackListResult
import com.refinedmods.refinedsto... | 1 | Kotlin | 0 | 2 | c92afa51af0e5e08caded00882f91171652a89e3 | 4,395 | refinedstorage | MIT License |
src/test/kotlin/no/nav/helse/spokelse/UtbetalingsreferanseTest.kt | navikt | 243,372,530 | false | {"Kotlin": 158989, "Dockerfile": 169} | package no.nav.helse.spokelse
import kotliquery.queryOf
import kotliquery.sessionOf
import org.intellij.lang.annotations.Language
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import java.util.*
internal class UtbetalingsreferanseTest : AbstractE2ETest() {
@Test
fun `... | 0 | Kotlin | 0 | 1 | bd0c28df5bb14243be23678f506357ccefd2f8a9 | 1,080 | helse-spokelse | MIT License |
src/main/kotlin/org/rust/ide/inspections/RsVariableMutableInspection.kt | intellij-rust | 42,619,487 | false | null | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.inspections
import com.intellij.codeInspection.ProblemsHolder
import com.intellij.psi.PsiElement
import com.intellij.psi.search.LocalSearchScope
import com.intellij.psi.search.searches.Refer... | 1,774 | null | 361 | 4,334 | 34f7803a55f542d7c72553c5c84742093d79937c | 2,469 | intellij-rust | MIT License |
common/src/main/kotlin/net/jidb/to/base/library/BlockItemLibrary.kt | joshmanisdabomb | 792,058,607 | false | {"Kotlin": 111218, "Java": 2164} | package net.jidb.to.base.library
import dev.architectury.registry.registries.DeferredRegister
import net.minecraft.core.registries.Registries
import net.minecraft.world.item.BlockItem
import net.minecraft.world.item.Item
import net.minecraft.world.level.block.Block
open class BlockItemLibrary(modid: String, private v... | 0 | Kotlin | 0 | 0 | 54cefdc269787edec41b894423a265c2b1ff6a68 | 1,108 | to-lay-the-foundations | BSD Zero Clause License |
app/src/main/java/com/darienalvarez/codechallenge/ui/features/transaction/TransactionDetailsViewModel.kt | darienalvarez | 488,352,158 | false | {"Kotlin": 39735} | package com.darienalvarez.codechallenge.ui.features.transaction
import com.darienalvarez.codechallenge.ui.core.BaseViewModel
class TransactionDetailsViewModel: BaseViewModel() {
} | 0 | Kotlin | 0 | 0 | 159b84769ffa587b5c822f73ee205f37c0c5ee3b | 183 | Code-Challenge | Apache License 2.0 |
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Teradata.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.simpleicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
impor... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 2,178 | compose-icons | MIT License |
common/src/commonMain/kotlin/com/artemchep/keyguard/provider/bitwarden/usecase/MarkAllWatchtowerAlertAsReadImpl.kt | AChep | 669,697,660 | false | {"Kotlin": 5516822, "HTML": 45876} | package com.artemchep.keyguard.provider.bitwarden.usecase
import com.artemchep.keyguard.common.io.IO
import com.artemchep.keyguard.common.io.effectMap
import com.artemchep.keyguard.common.usecase.MarkAllWatchtowerAlertAsRead
import com.artemchep.keyguard.core.store.DatabaseManager
import org.kodein.di.DirectDI
import ... | 66 | Kotlin | 31 | 995 | 557bf42372ebb19007e3a8871e3f7cb8a7e50739 | 769 | keyguard-app | Linux Kernel Variant of OpenIB.org license |
presentation/src/main/java/com/jota/sunshine/view/adapter/ForecastAdapter.kt | DavidPizarro | 459,618,953 | true | {"Kotlin": 56310, "Java": 2222} | package com.jota.sunshine.view.adapter
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.jota.sunshine.Constants.SYMBOL_C
import com.jota.sunshine.Constants.SYMBOL_HOUR
import com.jota.sunshine.R
import com.jota.sunshine.m... | 0 | null | 0 | 0 | 6c1565f8549a34340e700e06eefc9ac5cb984a1d | 2,073 | Android-Kotlin-CleanArchitecture | Apache License 2.0 |
viewmodel-savedstate/src/nonAndroidMain/kotlin/com/hoc081098/kmp/viewmodel/parcelable/WriteWith.kt | hoc081098 | 593,616,264 | false | {"Kotlin": 289858, "Swift": 1584, "Shell": 377, "HTML": 297} | package com.hoc081098.kmp.viewmodel.parcelable
@Retention(AnnotationRetention.SOURCE)
@Target(AnnotationTarget.TYPE)
public actual annotation class WriteWith<P : Parceler<*>> actual constructor()
| 5 | Kotlin | 4 | 96 | bd453f25c3054dbc5a309a097e889bf8865e9d18 | 197 | kmp-viewmodel | MIT License |
viewmodel-savedstate/src/nonAndroidMain/kotlin/com/hoc081098/kmp/viewmodel/parcelable/WriteWith.kt | hoc081098 | 593,616,264 | false | {"Kotlin": 289858, "Swift": 1584, "Shell": 377, "HTML": 297} | package com.hoc081098.kmp.viewmodel.parcelable
@Retention(AnnotationRetention.SOURCE)
@Target(AnnotationTarget.TYPE)
public actual annotation class WriteWith<P : Parceler<*>> actual constructor()
| 5 | Kotlin | 4 | 96 | bd453f25c3054dbc5a309a097e889bf8865e9d18 | 197 | kmp-viewmodel | MIT License |
src/main/kotlin/model/DoubleType.kt | toolisticon | 493,962,736 | false | {"Kotlin": 195501} | package io.toolisticon.avro.kotlin.model
import io.toolisticon.avro.kotlin.model.wrapper.AvroSchema
import io.toolisticon.avro.kotlin.model.wrapper.SchemaSupplier
import io.toolisticon.avro.kotlin.value.AvroFingerprint
import io.toolisticon.avro.kotlin.value.AvroHashCode
import io.toolisticon.avro.kotlin.value.Name
im... | 7 | Kotlin | 0 | 4 | 9c2c11b79fcd4d75eaa8b4070d73ea0b825b1b5b | 966 | avro-kotlin | Apache License 2.0 |
app/src/main/java/com/gbros/tabslite/data/IntPlaylistEntry.kt | More-Than-Solitaire | 249,057,023 | false | {"Kotlin": 209758} | package com.gbros.tabslite.data
import android.os.Parcelable
interface IntPlaylistEntry: Parcelable {
val entryId: Int
val playlistId: Int
val tabId: Int
val nextEntryId: Int?
val prevEntryId: Int?
val dateAdded: Long
var transpose: Int
} | 19 | Kotlin | 3 | 36 | a915fb6302d5674503bc412e24a1b0c5e2fc0aca | 268 | Tabs-Lite | Apache License 2.0 |
src/main/kotlin/spatialcrafting/compat/rei/ReiSpatialCraftingPlugin.kt | shedaniel | 206,078,998 | true | {"Kotlin": 224542, "ZenScript": 1781} | package spatialcrafting.compat.rei
import me.shedaniel.rei.api.DisplayHelper
import me.shedaniel.rei.api.RecipeDisplay
import me.shedaniel.rei.api.RecipeHelper
import me.shedaniel.rei.api.plugins.REIPluginV0
import net.fabricmc.loader.api.SemanticVersion
import net.minecraft.recipe.Recipe
import net.minecraft.util.Ide... | 0 | Kotlin | 0 | 0 | 66651294b3db27023b9a30154c6c3dbe730aefef | 2,362 | SpatialCrafting | MIT License |
app/src/main/java/com/hashone/media/gallery/OldCropActivity.kt | hashonetech | 652,445,581 | false | {"Kotlin": 154588, "Java": 56477} | package com.hashone.media.gallery
import android.app.Activity
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import com.bumptech.glide.Glide
import com.hashone.commons.extensions.serializable
import com.hashone.media.gallery.model.Medi... | 0 | Kotlin | 0 | 0 | 186e5999e57a9614dfc74291e2cf6aa5719902b7 | 2,809 | media-gallery | Apache License 2.0 |
simprokmachine-android/src/main/java/com/simprok/simprokmachine/android/implementation/ComponentData.kt | simprok-dev | 483,140,101 | false | null | package com.simprok.simprokmachine.android.implementation
internal sealed interface ComponentData<Input, Output> {
sealed interface ToMachines<Input, Output>: ComponentData<Input, Output> {
data class ParentInput<Input, Output>(
val input: Input
): ToMachines<Input, Output>
c... | 0 | Kotlin | 0 | 0 | 453ea51670150bc8322a0b44d34a121a794b8b7a | 536 | simprokmachine-android | MIT License |
fxgl/src/test/kotlin/com/almasb/fxgl/asset/CharInfo.kt | nagyist | 179,004,282 | true | {"YAML": 2, "Maven POM": 13, "Markdown": 5, "Text": 13, "Ignore List": 1, "XML": 22, "Kotlin": 170, "Java": 232, "kvlang": 2, "Java Properties": 7, "CSS": 4, "JavaScript": 11, "JSON": 6, "Shell": 1} | /*
* FXGL - JavaFX Game Library. The MIT License (MIT).
* Copyright (c) AlmasB (<EMAIL>).
* See LICENSE for details.
*/
package com.almasb.fxgl.app
/**
*
*
* @author <NAME> (<EMAIL>)
*/
data class CharInfo
@JvmOverloads constructor(var hp: Int = 0,
var mana: Double = 0.0,
... | 0 | Java | 0 | 0 | 932a7ec7b4b801c398301631419091797b4133d2 | 402 | FXGL | MIT License |
client/android/divkit-demo-app/src/main/java/com/yandex/divkit/demo/div/editor/DivEditorActivityStateKeeper.kt | divkit | 523,491,444 | false | {"Kotlin": 7327303, "Swift": 5164616, "Svelte": 1148832, "TypeScript": 912803, "Dart": 630920, "Python": 536031, "Java": 507940, "JavaScript": 152546, "CSS": 37870, "HTML": 23434, "C++": 20911, "CMake": 18677, "Shell": 8895, "PEG.js": 7210, "Ruby": 3723, "C": 1425, "Objective-C": 38} | package com.yandex.divkit.demo.div.editor
import androidx.lifecycle.ViewModel
class DivEditorActivityStateKeeper : ViewModel() {
var state: DivEditorState = DivEditorState.InitialState
} | 5 | Kotlin | 128 | 2,240 | dd102394ed7b240ace9eaef9228567f98e54d9cf | 192 | divkit | Apache License 2.0 |
currency/src/androidMain/kotlin/ru/art2000/calculator/currency/vm/CurrenciesEditModel.kt | ARTI1208 | 136,049,964 | false | {"Kotlin": 485027, "Swift": 26079, "Ruby": 2360} | package ru.art2000.calculator.currency.vm
import kotlinx.coroutines.flow.Flow
import ru.art2000.calculator.currency.model.CurrencyItem
import ru.art2000.extensions.collections.LiveList
internal interface CurrenciesEditModel {
val visibleItems: Flow<List<CurrencyItem>>
val selectedVisibleItems: LiveList<Curr... | 17 | Kotlin | 0 | 3 | dfd14503e4df7ccad3df89a3069a210370edd4c8 | 708 | RTCalculator | MIT License |
app/src/main/java/dev/shorthouse/coinwatch/ui/theme/Type.kt | shorthouse | 655,260,745 | false | {"Kotlin": 359954} | package dev.shorthouse.coinwatch.ui.theme
import androidx.compose.material3.Typography
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.sp
val AppTypography = Typography(
headlineMedium = TextS... | 0 | Kotlin | 0 | 9 | ec946062b37a8c675798db0af440394a3c253d1d | 1,278 | CoinWatch | Apache License 2.0 |
app/src/main/java/de/devmil/paperlaunch/model/IContextAccess.kt | devmil | 36,468,332 | false | null | package de.devmil.paperlaunch.model
import android.content.Intent
import android.graphics.drawable.Drawable
/**
* @brief interface for accessing data that gets provided via the context
* this interface can be used to push the Context dependency to the edge
* and keep the core (j)unit testable
*/
int... | 9 | null | 3 | 31 | c46ea69987e45951c5901d4e4a526a466dd95e6a | 938 | PaperLaunch | Apache License 2.0 |
lib/src/main/kotlin/ca/ewert/notarytoolkotlin/response/SubmissionInfo.kt | Ewert-Technologies | 703,676,619 | false | {"Kotlin": 303947, "Java": 6643, "Lua": 1324} | package ca.ewert.notarytoolkotlin.response
import java.time.Instant
/**
* Information about the status of a submission.
*
* @property createdDate The date that the submission process was started. May be `null`
* if the `createdDate` value returned by the Notary API can't be parsed.
* In this case, use [createdDa... | 1 | Kotlin | 0 | 3 | a1ea792555a168673043d4bbc17eb1691ab6f8b8 | 1,094 | notarytool-kotlin | MIT License |
ksoc-client-shared/src/iosX64Main/kotlin/com/kotlineering/ksoc/client/koin/platformModule.kt | redefinescience | 613,084,470 | false | null | package com.kotlineering.ksoc.client.koin
import org.koin.dsl.module
actual fun platformModule() = module {
}
| 6 | Kotlin | 0 | 0 | ffda4017261729c2792d946c5a514dd1eb31532c | 113 | ksoc-client | Apache License 2.0 |
MapboxSearch/sdk/src/test/java/com/mapbox/search/SearchEngineSettingsTest.kt | mapbox | 438,355,708 | false | {"Kotlin": 2247142, "Java": 38877, "Python": 18980, "Shell": 17499} | package com.mapbox.search
import com.mapbox.common.location.LocationProvider
import com.mapbox.search.common.tests.CopyVerifier
import com.mapbox.search.common.tests.ReflectionObjectsFactory
import com.mapbox.search.common.tests.ToStringVerifier
import com.mapbox.search.tests_support.MockedTypesObjectCreators
import c... | 18 | Kotlin | 9 | 33 | bbe22d4d17e8bab22b64c7327fafdd56be7a03e4 | 4,844 | mapbox-search-android | Apache License 2.0 |
alura/Zielony/src/main/kotlin/_arraysT.kt | udfds | 237,824,664 | false | {"Text": 2, "Ignore List": 10, "Markdown": 12, "Shell": 11, "Maven POM": 7, "Dockerfile": 6, "INI": 19, "Java": 65, "SQL": 5, "HTML": 11, "YAML": 6, "JSON": 20, "Gradle": 6, "Batchfile": 1, "JavaScript": 45, "Procfile": 1, "C#": 7, "XML": 1, "Go": 18, "Kotlin": 61, "HCL": 1, "robots.txt": 1, "SVG": 1, "CSS": 3, "Python... | import java.math.BigDecimal
import java.math.RoundingMode
fun main() {
val arrayA = Array<BigDecimal>(5) { BigDecimal.ZERO }
arrayA[0] = "1500.55".toBigDecimal()
arrayA[1] = "2000.0".toBigDecimal()
println(arrayA.contentToString())
val arrayB = toArrayBigDecimal("1500.55", "2000.0", "5000.00", "... | 3 | Python | 0 | 0 | b1ac335aa409ee57c2eb0fd94fc7c9af35182524 | 1,680 | Stands | Apache License 2.0 |
src/main/kotlin/com/github/insanusmokrassar/AutoPostTelegramBot/plugins/GarbageCollector.kt | shevavm | 238,618,704 | true | {"Kotlin": 149317} | package com.github.insanusmokrassar.AutoPostTelegramBot.plugins
import com.github.insanusmokrassar.AutoPostTelegramBot.base.database.tables.PostsMessagesTable
import com.github.insanusmokrassar.AutoPostTelegramBot.base.database.tables.PostsTable
import com.github.insanusmokrassar.AutoPostTelegramBot.base.models.FinalC... | 0 | null | 0 | 0 | 58a9c3465e481c7b6c08492e008b6f93b9208f56 | 5,014 | AutoPostTelegramBot | Apache License 2.0 |
browser-kotlin/src/jsMain/kotlin/web/mathml/MathMLElement.events.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6272741} | // Automatically generated - do not modify!
package web.mathml
import web.animations.AnimationEvent
import web.clipboard.ClipboardEvent
import web.cssom.TransitionEvent
import web.dom.Node
import web.events.Event
import web.events.EventInstance
import web.uievents.DragEvent
import web.uievents.PointerEvent
/**
* [M... | 0 | Kotlin | 8 | 36 | 95b065622a9445caf058ad2581f4c91f9e2b0d91 | 7,804 | types-kotlin | Apache License 2.0 |
finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/PaymentService.kt | Finch-API | 581,317,330 | false | null | // File generated from our OpenAPI spec by Stainless.
@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
package com.tryfinch.api.services.blocking.hris
import com.tryfinch.api.core.RequestOptions
import com.tryfinch.api.models.HrisPaymentListPage
import com.tryfinch.api.model... | 1 | null | 1 | 5 | 2c6a4101439a510053c378c50c216f14e9d77154 | 608 | finch-api-java | Apache License 2.0 |
app/src/main/java/xyz/klinker/messenger/utils/multi_select/ConversationsMultiSelectDelegate.kt | zacharee | 295,825,167 | false | null | package xyz.klinker.messenger.utils.multi_select
import android.content.res.ColorStateList
import android.graphics.Color
import android.os.Handler
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.view.ActionMode
import android.view.Menu
import android.view.MenuItem
import com.bignerdranch.andr... | 1 | null | 7 | 4 | f957421823801b617194cd68e31ba31b96e6100b | 9,020 | pulse-sms-android | Apache License 2.0 |
app/src/main/java/com/weatherxm/ui/devicedetails/forecast/ForecastFragment.kt | WeatherXM | 728,657,649 | false | {"Kotlin": 1140177} | package com.weatherxm.ui.devicedetails.forecast
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.google.firebase.analytics.FirebaseAnalytics
import com.weatherxm.R
import com.weatherxm.data.Status
import com.weatherxm.databinding.FragmentDevi... | 2 | Kotlin | 2 | 9 | 6b843a0d67e76bce106cf1b2a7ef5795cb2b78d4 | 5,016 | wxm-android | Apache License 2.0 |
kzen-lib-common/src/commonMain/kotlin/tech/kzen/lib/common/model/structure/resource/ResourceDirectory.kt | alexoooo | 130,935,552 | false | null | package tech.kzen.lib.common.model.structure.resource
import tech.kzen.lib.common.util.Digest
import tech.kzen.lib.common.util.Digestible
data class ResourceDirectory(
val value: String
): Digestible {
override fun digest(sink: Digest.Sink) {
sink.addUtf8(value)
}
} | 1 | Kotlin | 0 | 0 | 8ab3df76b2e2e721e104ec88a03196feab67c5a3 | 289 | kzen-lib | MIT License |
compose/material3/material3/src/androidInstrumentedTest/kotlin/androidx/compose/material3/MaterialWindowInsetsActivity.kt | androidx | 256,589,781 | 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... | 29 | null | 784 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 1,157 | androidx | Apache License 2.0 |
leetcode/990-SatisfiabilityOfEqualityEquations/Solution.kt | everyevery | 17,393,217 | false | null | class Solution {
class Some () {
val parent = IntArray(26) {it}
val rank = IntArray(26) {it}
fun union(a: Int, b: Int): Unit {
val pa = find(a)
val pb = find(b)
if (rank[a] > rank[b]) {
parent[pb] = pa
rank[pa] += rank[pb]
... | 1 | Roff | 3 | 1 | ea0908420b38c87b9c99a3f9971f141849968b88 | 2,247 | algorithm_code | MIT License |
examples/server/ktor-server/src/main/kotlin/com/expediagroup/graphql/examples/server/ktor/KtorServer.kt | ExpediaGroup | 148,706,161 | false | null | /*
* Copyright 2021 Expedia, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 32 | null | 309 | 1,547 | d13be150d6c642837e5544bac204f6062d5ae109 | 1,698 | graphql-kotlin | Apache License 2.0 |
dogs-initial/src/main/java/com/lambdaschool/dogsinitial/Model/ErrorDetail.kt | JakeEsveldDevelopment | 190,442,389 | true | {"Kotlin": 11955, "HTML": 989} | package com.lambdaschool.dogsinitial.Model
import com.lambdaschool.dogsinitial.Exception.ValidationError
import java.sql.Timestamp
import java.text.SimpleDateFormat
import java.util.*
import kotlin.collections.HashMap
class ErrorDetail(val title: String,
val status: Int,
val detail... | 0 | Kotlin | 0 | 0 | 2d6649262fe792dda0e8f40d8bc47206634e3544 | 422 | java-dogs-logging | MIT License |
app/src/main/java/com/pankaj6apr/newsdaily/common/util/Category.kt | pankaj6apr | 709,202,756 | false | {"Kotlin": 31456} | package com.pankaj6apr.newsdaily.common.util
import com.google.gson.annotations.SerializedName
enum class Category(val category: String) {
@SerializedName("general")
GENERAL("General"),
@SerializedName("business")
BUSINESS("Business"),
@SerializedName("entertainment")
ENTERTAINMENT("Entertainm... | 0 | Kotlin | 0 | 0 | e0ef41b987e5ef040ba68cb21ad01449a87f1f4e | 550 | news | The Unlicense |
android/app/src/main/kotlin/com/commons/interfaces/LineColorPickerListener.kt | AkioUnity | 233,186,718 | false | null | package com.commons.interfaces
interface LineColorPickerListener {
fun colorChanged(index: Int, color: Int)
}
| 1 | Kotlin | 1 | 2 | b97a2be548342359c047a498beffbc976ccf854b | 115 | Calendar-Widget | MIT License |
subprojects/delivery/legacy-signer/src/main/kotlin/com/avito/plugin/SignServicePlugin.kt | avito-tech | 230,265,582 | false | null | package com.avito.plugin
import com.android.build.api.artifact.SingleArtifact
import com.android.build.api.variant.ApplicationAndroidComponentsExtension
import com.android.build.api.variant.ApplicationVariant
import com.android.build.api.variant.Variant
import com.avito.android.Problem
import com.avito.android.asRunti... | 6 | Kotlin | 36 | 327 | b8d12a06a169ae60d89d24f66978a7dc23833282 | 5,661 | avito-android | MIT License |
app/src/main/java/com/example/pe_assignment/cancer/TimelineinfoboardFragment.kt | FishCatCake | 559,949,594 | false | {"Kotlin": 91899} | package com.example.pe_assignment.cancer
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.ImageButton
import androidx.navigation.findNavController
import com.exampl... | 0 | Kotlin | 0 | 0 | 921b06247642c550bb280470645996cc0e8a40cd | 1,334 | SWE401-PEIII-Project | MIT License |
android/app/src/main/java/com/algorand/android/ui/accountoptions/AccountOptionsViewModel.kt | AllanMangeni | 412,352,101 | true | {"Kotlin": 1709104} | /*
* Copyright 2019 Algorand, Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, s... | 1 | Kotlin | 0 | 1 | d47f08026fa797ea6474622ce5d1990666a241e9 | 1,998 | algorand-wallet | Apache License 2.0 |
android/app/src/main/java/com/algorand/android/ui/accountoptions/AccountOptionsViewModel.kt | AllanMangeni | 412,352,101 | true | {"Kotlin": 1709104} | /*
* Copyright 2019 Algorand, Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, s... | 1 | Kotlin | 0 | 1 | d47f08026fa797ea6474622ce5d1990666a241e9 | 1,998 | algorand-wallet | Apache License 2.0 |
src/main/kotlin/com/github/cetonek/bigbiznis/domain/service/FetchNationalBudgetUseCase.kt | cetonek | 393,110,614 | false | null | package com.github.cetonek.bigbiznis.domain.service
import com.github.cetonek.bigbiznis.domain.entity.persisted.BudgetBalance
import com.github.cetonek.bigbiznis.domain.repository.BudgetBalanceRepository
import com.github.cetonek.bigbiznis.domain.entity.persisted.PublicDebt
import com.github.cetonek.bigbiznis.domain.r... | 0 | Kotlin | 0 | 0 | fa70fd5c1edfca1ba22b0cee54a02413184cce2b | 1,313 | big-biznis | MIT License |
android/src/main/java/org/fossasia/badgemagic/bindings/EditBadgeViewBindings.kt | LoopGlitch26 | 263,618,871 | false | null | package org.fossasia.badgemagic.bindings
import android.widget.ImageView
import androidx.databinding.BindingAdapter
import androidx.databinding.ObservableBoolean
import androidx.databinding.ObservableField
import org.fossasia.badgemagic.R
import org.fossasia.badgemagic.data.draw_layout.DrawMode
import org.fossasia.bad... | 0 | null | 0 | 2 | cdf3291ce46a9ac16071752912aba845d5178871 | 1,158 | badge-magic-android | Apache License 2.0 |
app/src/main/java/com/truekenyan/cocktail/request/APIClient.kt | Kevin-Kip | 163,204,846 | false | null | package com.truekenyan.cocktail.request
object APIClient {
private const val BASE_URL = "https://www.thecocktaildb.com/api/json/v1/1/"
fun getAPIService(): APIService = RetrofitClient.getClient(BASE_URL).create(APIService::class.java)
} | 0 | Kotlin | 0 | 5 | 7369f6b6cd6bab000ef7e5f2df8297a7839105f1 | 245 | Cocktail | MIT License |
packages/expo-modules-core/android/src/main/java/expo/modules/kotlin/AppContext.kt | derekstavis | 184,342,737 | false | null | package expo.modules.kotlin
import android.app.Activity
import android.content.Context
import android.content.Intent
import com.facebook.react.bridge.ReactApplicationContext
import expo.modules.core.interfaces.ActivityProvider
import expo.modules.core.interfaces.services.EventEmitter
import expo.modules.interfaces.bar... | 568 | null | 3108 | 2 | e377f0cd22db5cd7feb8e80348cd7064db5429b1 | 4,830 | expo | MIT License |
android/quest/src/test/java/org/smartregister/fhircore/quest/util/mappers/MeasureReportPatientViewDataMapperTest.kt | opensrp | 339,242,809 | false | null | /*
* Copyright 2021-2024 Ona Systems, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 198 | null | 56 | 56 | 64a55e6920cb6280cf02a0d68152d9c03266518d | 2,774 | fhircore | Apache License 2.0 |
swing/src/main/java/wannabe/swing/renderer/Square.kt | pforhan | 14,547,654 | false | null | package wannabe.swing.renderer
import wannabe.swing.SwingProjected
import java.awt.Graphics
class Square : SwingRenderer() {
override fun draw(
g: Graphics,
p: SwingProjected
) {
g.drawRect(p.left, p.top, p.size, p.size)
}
}
| 12 | Kotlin | 0 | 1 | 4fecd52959262ae7d8ee7aa76d26b82e110e9d9a | 245 | wannabe | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/welcometoprison/model/prison/prisonersearch/PrisonerSearchApiClient.kt | ministryofjustice | 397,318,042 | false | null | package uk.gov.justice.digital.hmpps.welcometoprison.model.prison.prisonersearch
import org.springframework.beans.factory.annotation.Qualifier
import org.springframework.stereotype.Component
import org.springframework.web.reactive.function.client.WebClient
import uk.gov.justice.digital.hmpps.welcometoprison.model.pris... | 0 | Kotlin | 0 | 0 | 6a808861c1b7db82eddfcfacd9bc254d2fba7735 | 2,328 | hmpps-welcome-people-into-prison-api | MIT License |
ui-sdk/src/main/java/com/ably/tracking/ui/animation/CoreLocationAnimator.kt | ably | 313,556,297 | false | null | package com.ably.tracking.ui.animation
import android.os.SystemClock
import android.view.animation.LinearInterpolator
import com.ably.tracking.Location
import com.ably.tracking.LocationUpdate
import kotlin.math.min
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines... | 101 | Kotlin | 6 | 9 | dca56bac165ebc1474cf2afb863728c2aad4aeb4 | 7,569 | ably-asset-tracking-android | Apache License 2.0 |
app/src/main/java/com/kylecorry/trail_sense/shared/QuickActionType.kt | kylecorry31 | 215,154,276 | false | null | package com.kylecorry.trail_sense.shared
import android.content.Context
import com.kylecorry.andromeda.torch.Torch
import com.kylecorry.trail_sense.R
enum class QuickActionType(val id: Int) {
None(-1),
Backtrack(0),
Flashlight(1),
Clouds(2),
Temperature(3),
Ruler(5),
Maps(7),
Whistle(8... | 405 | null | 49 | 737 | 153242055d6c74a8dbfadd80bbc59793369f7cc2 | 2,909 | Trail-Sense | MIT License |
auth/src/main/java/love/nuoyan/android/auth/AbsAuthBuildForOPPO.kt | WenJieGitHub | 531,445,002 | false | null | package love.nuoyan.android.auth
import android.app.Activity
abstract class AbsAuthBuildForOPPO : AbsAuthBuild() {
/** 程序启动后主页面调用 */
abstract fun onActivityCreate(activity: Activity)
/** 程序退出时调用, 目前要求不添加 */
abstract fun exit(activity: Activity)
/**
* 支付
* @param orderId 订单号
* @par... | 0 | Kotlin | 0 | 1 | 065be78b4108ade14d4f5c79cabfe48468ddee8b | 835 | AndroidAuth | Apache License 2.0 |
app/src/main/java/dev/ronnie/pokeapiandroidtask/fragments/PokemonListFragment.kt | ReasonablePhantom | 621,960,779 | false | null | package dev.ronnie.pokeapiandroidtask.fragments
import android.annotation.SuppressLint
import android.content.Context
import android.os.Bundle
import android.view.View
import android.view.inputmethod.EditorInfo
import android.view.inputmethod.InputMethodManager
import android.widget.TextView
import androidx.core.conte... | 0 | Kotlin | 0 | 0 | c2879a9f61de40bd9adcb6531a5b1e7cb295f7cd | 8,910 | Poke-Api-Task | Apache License 2.0 |
src/main/kotlin/no/skatteetaten/aurora/gobo/graphql/vault/PermissionsInput.kt | Skatteetaten | 135,263,220 | false | {"Kotlin": 729888, "HTML": 1433, "Shell": 426} | package no.skatteetaten.aurora.gobo.graphql.vault
data class AddVaultPermissionsInput(
val affiliationName: String,
val vaultName: String,
val permissions: List<String>
)
data class RemoveVaultPermissionsInput(
val affiliationName: String,
val vaultName: String,
val permissions: List<String>
)... | 0 | Kotlin | 0 | 3 | 9a28e1d711756479696672f139568fdeadb74ac1 | 321 | gobo | Apache License 2.0 |
common/src/main/kotlin/net/jidb/to/base/library/AdvancedLibrary.kt | joshmanisdabomb | 792,058,607 | false | {"Kotlin": 111218, "Java": 2164} | package net.jidb.to.base.library
abstract class AdvancedLibrary<I, V>(modid: String) : Library<I, V>(modid), AdvancedLibraryBuilder<I, V> | 0 | Kotlin | 0 | 0 | 54cefdc269787edec41b894423a265c2b1ff6a68 | 138 | to-lay-the-foundations | BSD Zero Clause License |
lib-flag-feature/src/main/java/com/smallraw/lib/featureflag/FeatureFlagProvider.kt | QuincySx | 262,699,409 | false | null | /*
* Copyright 2021 Smallraw Labs Ltd.
*
* 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 agree... | 1 | C | 6 | 26 | 0beea2170ea56e2dd224fe0e174d5ac2951632ca | 1,470 | ChainWallet | Apache License 2.0 |
core/src/main/kotlin/nz/co/jedsimson/lgp/core/evolution/operators/mutation/micro/MicroMutationStrategy.kt | JedS6391 | 88,687,241 | false | null | package nz.co.jedsimson.lgp.core.evolution.operators.mutation.micro
import nz.co.jedsimson.lgp.core.environment.EnvironmentFacade
import nz.co.jedsimson.lgp.core.environment.choice
import nz.co.jedsimson.lgp.core.environment.dataset.Target
import nz.co.jedsimson.lgp.core.environment.events.Diagnostics
import nz.co.jed... | 5 | Kotlin | 4 | 17 | a4f11315b07435fec14c20a186913af8404d247b | 10,629 | LGP | MIT License |
app/src/main/java/com/example/natural_disaster_risk_level_prediction_android_app/api/WeatherApi.kt | hakuko2009 | 547,808,898 | false | {"Kotlin": 46363} | package com.example.natural_disaster_risk_level_prediction_android_app.api
import com.example.natural_disaster_risk_level_prediction_android_app.configuration.Settings
import com.example.natural_disaster_risk_level_prediction_android_app.model.CurrentWeather
import com.example.natural_disaster_risk_level_prediction_an... | 0 | Kotlin | 0 | 0 | f99f52d3354bdf444de5f59937b87c481ecb8313 | 1,991 | Natural-Disaster-Risk-Level-Prediction-Android-App | Apache License 2.0 |
app/src/main/java/nerd/tuxmobil/fahrplan/congress/models/Session.kt | johnjohndoe | 12,616,092 | true | {"Gradle": 10, "Markdown": 8, "Java Properties": 1, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Text": 2, "YAML": 4, "Kotlin": 314, "Java": 6, "INI": 1, "Proguard": 2, "XML": 208, "Gradle Kotlin DSL": 1, "SVG": 29} | package nerd.tuxmobil.fahrplan.congress.models
import info.metadude.android.eventfahrplan.commons.temporal.Moment
import info.metadude.android.eventfahrplan.commons.temporal.Moment.Companion.MILLISECONDS_OF_ONE_MINUTE
import nerd.tuxmobil.fahrplan.congress.schedule.Conference
import org.threeten.bp.ZoneOffset
/**
* ... | 63 | Kotlin | 99 | 27 | 4b91d7dcdfbc8de965a928b3ebfbfe595ec06b3f | 5,375 | CampFahrplan | Apache License 2.0 |
plugins/kotlin/completion/testData/basic/common/highOrderFunctions/HigherOrderFunction1.kt | ingokegel | 72,937,917 | true | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
fun foo(p: (String, Char) -> Unit){}
fun test() {
foo<caret>
}
// IGNORE_K2
// EXIST: { lookupString:"foo", itemText: "foo", tailText: "(p: (String, Char) -> Unit) (<root>)", typeText:"Unit", i... | 284 | null | 5162 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 496 | intellij-community | Apache License 2.0 |
app/src/main/java/c23/ps325/communicare/viewmodel/DataStoreViewModel.kt | C23-PS325 | 647,107,389 | false | null | package c23.ps325.communicare.viewmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.asLiveData
import androidx.lifecycle.viewModelScope
import c23.ps325.communicare.repository.PrefRepository
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutine... | 0 | Kotlin | 0 | 0 | fe825caa840ff846e4aa065530aa4cf988ac5c19 | 1,079 | communicare-mobile-apps | MIT License |
src/test/kotlin/com/news/app/article/ArticleServiceTest.kt | shohelasad | 700,488,693 | false | {"Kotlin": 57166, "Dockerfile": 158} | package com.news.app.article
import com.news.app.dto.ArticleRequest
import com.news.app.entity.Article
import com.news.app.entity.User
import com.news.app.exception.ResourceNotFoundException
import com.news.app.repository.ArticleRepository
import com.news.app.repository.UserRepository
import com.news.app.service.Artic... | 0 | Kotlin | 0 | 0 | 5e210befb088e93389100d37e6121298580a687f | 9,243 | Kotlin-Rest-APIs | MIT License |
example-extensions/src/main/java/com/zhuinden/simplestackextensionsample/features/profile/ProfileFragment.kt | Zhuinden | 269,079,017 | false | null | package com.zhuinden.simplestackextensionsample.features.profile
import android.os.Bundle
import android.view.View
import android.widget.Toast
import com.zhuinden.simplestackextensions.fragments.KeyedFragment
import com.zhuinden.simplestackextensionsample.R
class ProfileFragment : KeyedFragment(R.layout.profile_fragm... | 1 | Kotlin | 1 | 4 | 80950c65f700cd1d9620e06e7b2afa289ccb46d3 | 542 | simple-stack-extensions | Apache License 2.0 |
plugins-verifier-service/src/main/kotlin/org/jetbrains/plugins/verifier/service/service/verifier/DefaultVerifierServiceProtocol.kt | JetBrains | 3,686,654 | false | null | /*
* Copyright 2000-2020 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package org.jetbrains.plugins.verifier.service.service.verifier
import com.google.gson.Gson
import com.google.gson.annotations.SerializedName
impo... | 6 | null | 42 | 178 | 4deec2e4e08c9ee4ce087697ef80b8b327703548 | 5,361 | intellij-plugin-verifier | Apache License 2.0 |
ecs/src/river/exertion/kcop/ecs/component/ImmersionTimerComponent.kt | exertionriver | 589,248,613 | false | null | package river.exertion.kcop.ecs.component
import com.badlogic.ashley.core.Entity
import river.exertion.kcop.base.Id
import river.exertion.kcop.asset.immersionTimer.ImmersionTimer
import river.exertion.kcop.asset.immersionTimer.ImmersionTimerPair
import river.exertion.kcop.ecs.EngineHandler
class ImmersionTimerCompone... | 0 | Kotlin | 0 | 1 | c5e5fe70f3e605814ff141f8514d42301d39562b | 1,685 | kcop | MIT License |
intellij-plugin/educational-core/src/com/jetbrains/edu/learning/compatibility/utils.kt | JetBrains | 43,696,115 | false | {"Kotlin": 4929631, "HTML": 3417303, "Python": 18771, "Java": 13512, "CSS": 12216, "JavaScript": 302, "Shell": 71} | package com.jetbrains.edu.learning.compatibility
import com.intellij.util.PlatformUtils
// BACKCOMPAT: 2023.2. Use `PlatformUtils.isRustRover()` instead
@Suppress("UnstableApiUsage")
fun isRustRover(): Boolean = PlatformUtils.getPlatformPrefix() == "RustRover" | 6 | Kotlin | 44 | 135 | b00e7100e8658a07e79700a20ffe576872d494db | 262 | educational-plugin | Apache License 2.0 |
shared/src/iosMain/kotlin/com/github/jetbrains/rssreader/core/CFlow.kt | Kotlin | 295,411,072 | false | null | package studio.sekai.matterstatemachine
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach
fun interface Closeable {
fun close()
}
class CFlo... | 7 | null | 87 | 993 | 29bb2c1240139922c4d060d6a53ebff247455c10 | 686 | kmm-production-sample | MIT License |
app/src/main/java/com/sildian/apps/togetrail/trail/model/dataRequests/TrailLikeDataRequest.kt | Sildian | 230,769,024 | false | {"Kotlin": 660492} | package com.sildian.apps.togetrail.trail.model.dataRequests
import com.sildian.apps.togetrail.common.baseDataRequests.SpecificDataRequest
import com.sildian.apps.togetrail.hiker.model.support.CurrentHikerInfo
import com.sildian.apps.togetrail.hiker.model.dataRepository.HikerRepository
import com.sildian.apps.togetrail... | 1 | Kotlin | 0 | 0 | cb8e1d926f5e2f0765fe22789ee66cd1ffa7f2be | 1,454 | TogeTrail-Android | Apache License 2.0 |
sample/src/main/java/com/example/sample/ui/MainScreen.kt | crow-misia | 429,544,850 | false | {"Kotlin": 143278} | package com.example.sample.ui
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.material3.Button
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.c... | 1 | Kotlin | 0 | 0 | bf46c3f734cc7c11bd19889316054e9fbbda02de | 1,451 | aws-sdk-android-ktx | Apache License 2.0 |
src/main/kotlin/dev/vusi/ktor/authsample/feature/FirebaseAuth.kt | vusimoy0 | 444,361,402 | false | {"Kotlin": 8242} | package dev.vusi.ktor.authsample.feature
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.auth.FirebaseToken
import io.ktor.application.*
import io.ktor.auth.*
import io.ktor.http.auth.*
import io.ktor.request.*
import io.ktor.response.*
import kotlinx.coroutines.Dispatchers
import kotlinx.corou... | 0 | Kotlin | 0 | 1 | 6b05a1d70b2245fdcbddb1d9bf6b8652b1ed541d | 3,832 | ktor-firebase-auth-sample | Apache License 2.0 |
sample_architecture_components/src/main/java/io/github/hurshi/sample_architecture_components/scopes/FragmentScope.kt | hurshi | 166,996,254 | false | null | package io.github.hurshi.sample_architecture_components.scopes
import javax.inject.Scope
@Scope
@kotlin.annotation.Retention(AnnotationRetention.RUNTIME)
annotation class AppScope | 1 | null | 1 | 1 | 2d7f33a8967ce7dd847d7fa483742c047a42cd33 | 181 | SimplifyDagger | Apache License 2.0 |
app/src/main/java/com/breezefieldsalesnexara/features/photoReg/adapter/PhotoAttendanceListner.kt | DebashisINT | 853,206,720 | false | {"Kotlin": 15915533, "Java": 1027888} | package com.breezefieldsalesnexara.features.photoReg.adapter
import com.breezefieldsalesnexara.features.photoReg.model.UserListResponseModel
interface PhotoAttendanceListner {
fun getUserInfoOnLick(obj: UserListResponseModel)
fun getUserInfoAttendReportOnLick(obj: UserListResponseModel)
} | 0 | Kotlin | 0 | 0 | 1f5486857f0f6669d5af4587f2f1c0548697d73d | 299 | Nexara | Apache License 2.0 |
src/commonTest/kotlin/tool/UsableToolTest.kt | xemantic | 864,220,889 | false | {"Kotlin": 52348} | package com.xemantic.anthropic.tool
import com.xemantic.anthropic.message.CacheControl
import com.xemantic.anthropic.message.ToolResult
import com.xemantic.anthropic.schema.Description
import com.xemantic.anthropic.schema.JsonSchema
import com.xemantic.anthropic.schema.JsonSchemaProperty
import io.kotest.assertions.as... | 1 | Kotlin | 0 | 7 | 935ee0467a2aa29e0fe807d831211e1767653739 | 3,118 | anthropic-sdk-kotlin | MIT License |
app/src/main/kotlin/io/github/plastix/kotlinboilerplate/ui/detail/DetailPresenter.kt | nathanjones | 66,391,980 | true | {"Kotlin": 49926} | package io.github.plastix.kotlinboilerplate.ui.detail
import io.github.plastix.kotlinboilerplate.ui.base.Presenter
interface DetailPresenter : Presenter<DetailView> {
} | 0 | Kotlin | 0 | 1 | 9fde5823ef6015489aa14195ee8564266dd62963 | 170 | Kotlin-Android-Boilerplate | MIT License |
app/src/main/java/com/fkuper/metronome/utils/receivers/TimeChangedReceiver.kt | fkuper | 729,506,173 | false | {"Kotlin": 142954} | package com.fkuper.metronome.utils.receivers
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import com.fkuper.metronome.utils.PracticeNotificationsAlarmHandler
class TimeChangedReceiver : BroadcastReceiver() {
override fun onReceive(context: Context?, intent... | 0 | Kotlin | 0 | 0 | e76354d53990b1e114dc3c27d1ad444ea2eb3456 | 584 | Metronome | MIT License |
src/main/kotlin/net/doemges/kogniswarm/tool/model/Item.kt | florentine-doemges | 632,041,145 | false | null | package net.doemges.kogniswarm.tool.model
data class Item(val title: String, val link: String) | 13 | Kotlin | 0 | 3 | 510ce6aab47d50d356fa6f4bf4ebd0717e3fafd5 | 95 | KogniSwarm | Apache License 2.0 |
compiler/testData/diagnostics/tests/backingField/ReadInAnonymous.kt | staltz | 38,581,975 | false | null | class ReadByAnotherPropertyInitializer() {
val a = 1
{
val <!UNUSED_VARIABLE!>x<!> = $a
}
}
| 0 | null | 0 | 1 | 88a261234860ff0014e3c2dd8e64072c685d442d | 112 | kotlin | Apache License 2.0 |
dTrip-main/app/src/main/java/com/zzp/dtrip/body/CmpFaceBody.kt | Dcelysia | 865,949,432 | false | {"Kotlin": 188427, "Java": 96523} | package com.zzp.dtrip.body
data class CmpFaceBody(val bytes: String)
| 0 | Kotlin | 0 | 0 | 3e3774c4b36d6f07f1714f7876103c9d08910475 | 70 | 2024-shumei-app | Apache License 2.0 |
compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/NullableNothingIsExactlyNull.kt | staltz | 38,581,975 | 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, ... | fun test() {
val out : Int? = null
val x : Nothing? = null
if (out != x)
<!DEBUG_INFO_SMARTCAST!>out<!>.plus(1)
if (out == x) return
<!DEBUG_INFO_SMARTCAST!>out<!>.plus(1)
}
| 0 | Java | 0 | 1 | ff00bde607d605c4eba2d98fbc9e99af932accb6 | 188 | kotlin | Apache License 2.0 |
app/src/main/java/com/halilkrkn/chatchef/data/firebase/FirebaseResult.kt | halilkrkn | 801,687,576 | false | {"Kotlin": 114335} | package com.halilkrkn.chatchef.data.firebase
sealed class FirebaseResult <out T> {
data class Success<out R>(val data: R?) : FirebaseResult<R>()
data class Error(val message:String) : FirebaseResult<Nothing>()
data object Loading : FirebaseResult<Nothing>()
} | 0 | Kotlin | 5 | 0 | d995d1a5aa596f0a50bcf6c5e08c61461b941c09 | 272 | Papara-Group-Project | Apache License 2.0 |
src/main/kotlin/com/github/bin/service/RoomConfig.kt | bin-tenkuu | 612,612,529 | false | null | package com.github.bin.service
import com.github.bin.entity.Room
import com.github.bin.model.Message
import com.github.bin.util.JsonUtil.toJson
import org.springframework.web.socket.TextMessage
import org.springframework.web.socket.WebSocketSession
import java.io.Closeable
import java.util.concurrent.ConcurrentHashMap... | 0 | Kotlin | 0 | 0 | 913dcc3ff2ef8e468a59c5dd4b31217207d81985 | 1,247 | simple-coc | Apache License 2.0 |
cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/graph/scopes/BlockScope.kt | Fraunhofer-AISEC | 225,386,107 | false | null | /*
* Copyright (c) 2019, Fraunhofer AISEC. All rights reserved.
*
* 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 require... | 113 | null | 62 | 281 | 4b2d95b66ccd87ac7e97e1f23ace67265a533ab8 | 1,700 | cpg | Apache License 2.0 |
app/src/main/java/dev/gmarques/bancodedados/presenter/fragmento_principal/DialogoEscolherInstanciaParaAdicionar.kt | GilianMarques | 598,830,131 | false | null | package dev.gmarques.bancodedados.presenter.fragmento_principal
import android.util.Log
import android.widget.LinearLayout
import androidx.appcompat.app.AlertDialog
import androidx.core.view.setPadding
import androidx.fragment.app.Fragment
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import dev... | 0 | Kotlin | 0 | 0 | 411e3a70650b78811c510723aa3b79efdd3c938a | 1,773 | BancoDeDados | MIT License |
src/main/kotlin/io/github/guttenbase/exceptions/UnhandledColumnTypeException.kt | guttenbase | 644,774,036 | false | {"Kotlin": 572150, "PLpgSQL": 271} | package io.github.guttenbase.exceptions
import io.github.guttenbase.connector.GuttenBaseException
/**
* Thrown when we find a column type we cannot handle (yet).
*
*
*
* © 2012-2034 akquinet tech@spree
*
*
* @author <NAME>
*/
class UnhandledColumnTypeException(reason: String) : GuttenBaseException(reas... | 0 | Kotlin | 0 | 1 | a764c192be197f033c74f888c40c2bfb7f8b9d05 | 396 | guttenbase | Apache License 2.0 |
Consumer/app/src/main/java/com/spundev/appplugin/consumer/model/PetData.kt | spun | 323,320,748 | false | null | package com.spundev.appplugin.consumer.model
import com.spundev.appplugin.pluginapi.data.ApiPet
data class PetData(val id: Long, val name: String, val age: Int, val species: String) {
val description: String
get() {
return "$name is a $age years old $species"
}
companion object {... | 0 | Kotlin | 0 | 0 | b2276bbabc6a3ee427d2b9b5ab717466b98cb6ee | 573 | android-plugins-ref | MIT License |
plugins/contracts/contracts-subplugins/testData/checkedExceptions/throwWithContract.kt | demiurg906 | 125,360,148 | true | {"Kotlin": 31706399, "Java": 7644320, "JavaScript": 152543, "HTML": 68656, "Lex": 18275, "IDL": 10060, "ANTLR": 9803, "Shell": 6769, "Groovy": 5466, "CSS": 4679, "Batchfile": 4437} | // !LANGUAGE: +ContextualEffects +UseCallsInPlaceEffect +AllowContractsForCustomFunctions
// !DIAGNOSTICS: -EXPERIMENTAL_API_USAGE_ERROR
// !RENDER_DIAGNOSTICS_MESSAGES
import kotlin.contracts.*
import org.jetbrains.kotlin.contracts.contextual.*
import org.jetbrains.kotlin.contracts.contextual.exceptions.*
import java... | 0 | Kotlin | 0 | 0 | 9731c7eab974cd9dfab9dc48c71bc5988f3eb97c | 1,197 | kotlin | Apache License 2.0 |
app/src/test/kotlin/io/orangebuffalo/simpleaccounting/business/customers/CustomersApiTest.kt | orange-buffalo | 154,902,725 | false | {"Kotlin": 1125040, "TypeScript": 575303, "Vue": 277186, "SCSS": 30742, "JavaScript": 6817, "HTML": 633, "CSS": 10} | package io.orangebuffalo.simpleaccounting.business.customers
import io.orangebuffalo.simpleaccounting.tests.infra.SimpleAccountingIntegrationTest
import io.orangebuffalo.simpleaccounting.tests.infra.api.*
import io.orangebuffalo.simpleaccounting.tests.infra.database.PreconditionsFactory
import io.orangebuffalo.simplea... | 69 | Kotlin | 0 | 1 | 338561f53e937c14a46d17b29ceedee7f90af197 | 7,633 | simple-accounting | Creative Commons Attribution 3.0 Unported |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.