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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/ru/iteco/fmhandroid/repository/newsRepository/NewsRepositoryModule.kt | QA-USV | 686,582,243 | false | null | package ru.iteco.fmhandroid.repository.newsRepository
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton
@InstallIn(SingletonComponent::class)
@Module
abstract class NewsRepositoryModule {
@Binds
@Singleton
a... | 0 | null | 0 | 1 | a5c2a6fe8f5deb1359017c9c13d6a20ef409f563 | 395 | My_Final_Project | Apache License 2.0 |
feature/stats/view/implementation/src/main/kotlin/com/savvasdalkitsis/uhuruphotos/feature/stats/view/implementation/ui/Stats.kt | savvasdalkitsis | 485,908,521 | 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 writing, software
distribu... | 51 | Kotlin | 16 | 258 | 5cab4fea988d3f0f077552d079a250267d8c2c97 | 2,367 | uhuruphotos-android | Apache License 2.0 |
mobile/src/main/java/uk/co/appsbystudio/geoshare/setup/InitialSetupView.kt | zacdevil10 | 50,067,543 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 2, "Markdown": 1, "Proguard": 1, "Java": 11, "XML": 97, "JSON": 2, "Kotlin": 149} | package uk.co.appsbystudio.geoshare.setup
interface InitialSetupView {
fun onNext()
fun onBack()
fun onFinish(radius: Int)
fun hasPermissions(): Boolean
fun requestPermissions()
fun onShowProfileDialog()
fun showToast(message: String)
} | 5 | null | 1 | 1 | f66aa94d7f44c8dbf81a6a67a4e0504bbf7e2d32 | 272 | GeoShare_Android | Apache License 2.0 |
kspprocessor/src/main/kotlin/com/typedpath/unittestof/processor/TestableRoots2Kotlin.kt | typedpath | 565,979,433 | false | null | package com.typedpath.unittestof.processor
import com.typedpath.unittestof.testutil.BeanContext
import com.typedpath.unittestof.testutil.CallCentre
import com.typedpath.unittestof.testutil.ServiceProxyContext
import java.util.*
/*
class Bean1TestContext : BeanContext<Bean1>(){
import testutil.BeanContext
val ser... | 0 | Kotlin | 0 | 0 | 47500ee544412bf72a45390853fea18b48a7cbb7 | 10,349 | unittestof | Apache License 2.0 |
src/maia/util/error/UnreachableCode.kt | waikato-maia | 387,324,750 | false | null | package maia.util.error
/**
* Error thrown when code that is asserted to be unreachable,
* is, in fact, reached.
*
* @param reason The explanation of why this line should be unreachable.
*/
class UnreachableCode(
reason: String = "Code that was assumed unreachable was reached. This should not have happened."
... | 0 | Kotlin | 0 | 0 | 63fb603dcf13d94c16c897d53082260060b68694 | 813 | maia-util | Apache License 2.0 |
composites-fiberglass/src/main/kotlin/ru/ldralighieri/composites/fiberglass/column/FiberglassColumn.kt | LDRAlighieri | 589,172,428 | false | {"Kotlin": 83209} | /*
* 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 | 2 | 7 | 4dcefd7a1a2a8bd24398c30499f27a1c9b0fb5ca | 2,799 | Composites | Apache License 2.0 |
stream-chat-android-client/src/main/java/io/getstream/chat/android/client/notifications/handler/NotificationHandlerFactory.kt | GetStream | 177,873,527 | false | {"Kotlin": 8578375, "MDX": 2150736, "Java": 271477, "JavaScript": 6737, "Shell": 5229} | /*
* Copyright (c) 2014-2022 Stream.io Inc. All rights reserved.
*
* Licensed under the Stream License;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://github.com/GetStream/stream-chat-android/blob/main/LICENSE
*
* Unless required by a... | 24 | Kotlin | 273 | 1,451 | 8e46f46a68810d8086c48a88f0fff29faa2629eb | 8,336 | stream-chat-android | FSF All Permissive License |
features/game/ui-logic/src/main/kotlin/io/github/japskiddin/sudoku/feature/game/ui/logic/utils/Utils.kt | Japskiddin | 766,410,608 | false | {"Kotlin": 282363} | package io.github.japskiddin.sudoku.feature.game.ui.logic.utils
import io.github.japskiddin.sudoku.core.game.utils.BoardList
internal fun copyBoard(board: BoardList): BoardList = board.map { items -> items.map { item -> item.copy() } }
| 0 | Kotlin | 0 | 0 | d21af36d52ba731dc70b6d50779a0efe1e5a2c44 | 238 | SudokuGame | Apache License 2.0 |
plugins/kotlin/gradle/gradle-java/src/org/jetbrains/kotlin/idea/gradleJava/configuration/KotlinGradleBuildScriptSupport.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2021 JetBrains s.r.o. and 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.kotlin.idea.configuration
import com.intellij.psi.PsiFile
import org.jetbrains.kotlin.idea.extensions.gradle.GradleBuildScriptSupport
impo... | 191 | null | 4372 | 13,319 | 4d19d247824d8005662f7bd0c03f88ae81d5364b | 1,071 | intellij-community | Apache License 2.0 |
SimpleDice/app/src/main/java/com/gmail/maxfixsoftware/simpledice/ui/FavoriteActivity.kt | bqfix | 195,445,539 | false | null | package com.gmail.maxfixsoftware.simpledice.ui
import android.app.ActivityOptions
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.os.Handler
import android.util.Pair
import android.view.Menu
import android.view.MenuItem
import android.view.View
import android.widget.Toast
... | 0 | Kotlin | 0 | 0 | cec768b4f703c3c7647731c2bbfeb0f1df502015 | 11,497 | SimpleDice | MIT License |
src/main/kotlin/com/sourcegraph/cody/statusbar/CodyOpenSettingsAction.kt | sourcegraph | 702,947,607 | false | {"Kotlin": 690009, "Java": 152855, "TypeScript": 5588, "Shell": 4631, "Nix": 1122, "JavaScript": 436, "HTML": 294} | package com.sourcegraph.cody.statusbar
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.options.ShowSettingsUtil
import com.sourcegraph.cody.config.ui.CodyConfigurable
import com.sourcegraph.common.ui.DumbAwareEDTAction
class CodyOpenSettingsAction : DumbAwareEDTAction("Open Settings... | 358 | Kotlin | 22 | 67 | 437e3e2e53ae85edb7e445b2a0d412fbb7a54db0 | 477 | jetbrains | Apache License 2.0 |
defitrack-rest/defitrack-protocol-services/defitrack-balancer/src/main/java/io/defitrack/protocol/balancer/pooling/BalancerArbitrumPoolingMarketProvider.kt | decentri-fi | 426,174,152 | false | null | package io.defitrack.protocol.balancer.pooling
import io.defitrack.common.network.Network
import org.springframework.stereotype.Component
@Component
class BalancerArbitrumPoolingMarketProvider : BalancerPoolingMarketProvider(
listOf(
"0x7396f99B48e7436b152427bfA3DD6Aa8C7C6d05B",
"0x1c99324edc771c8... | 17 | Kotlin | 6 | 9 | cba6769eaa7a2700ccf5658c3ea9e3db7bdfca36 | 717 | defi-hub | MIT License |
app/src/main/java/com/mati/mimovies/utils/MovieNavigationItems.kt | mr-mati | 697,450,396 | false | {"Kotlin": 147768} | package com.mati.mimovies.utils
sealed class MovieNavigationItems(val route:String){
object SignUpScreen : MovieNavigationItems("signUpScreen")
object SignInScreen : MovieNavigationItems("signInScreen")
object IntroScreen : MovieNavigationItems("introScreen")
object MovieScreen : MovieNavigationItems(... | 0 | Kotlin | 0 | 3 | 6c6d9e005b4d6af11303a8be2b7c29e90b701438 | 602 | MiMovie | MIT License |
app/src/main/java/com/prime/toolz/settings/Settings.kt | iZakirSheikh | 494,154,853 | false | {"Kotlin": 239984, "Java": 178317} | package com.prime.toolz.settings
import androidx.compose.runtime.Immutable
import androidx.compose.runtime.Stable
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.text.ExperimentalTextApi
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
im... | 0 | Kotlin | 0 | 3 | de0dda2cf49d949d3e910f11569e5f6a345fd4a2 | 4,073 | Toolz | Apache License 2.0 |
app/src/main/java/com/lubulwa/tddkotlin/example3/Interval.kt | richmahnn | 224,686,303 | false | null | package com.lubulwa.tddkotlin.example3
class Interval(private val mStart: Int, private val mEnd: Int) {
init {
require(mStart < mEnd) { "Invalid interval range" }
}
fun getStart(): Int = mStart
fun getEnd(): Int = mEnd
}
| 1 | null | 1 | 1 | 96e5146283361db0c9c8c745bc93a5e11f60da2f | 250 | TDD-Kotlin | MIT License |
data/src/main/java/app/delish/data/pref/repository/DataStoreOperations.kt | Elbehiry | 349,764,209 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | null | 60 | 399 | 2e7c8db43976e14d6967c610a2337b56c5016fb5 | 967 | Delish | Apache License 2.0 |
gradle-plugins/compose/src/test/test-projects/misc/jvmOnlyResources/expected/mainResourceAccessors/me/app/jvmonlyresources/generated/resources/Drawable0.main.kt | JetBrains | 293,498,508 | false | null | @file:OptIn(org.jetbrains.compose.resources.InternalResourceApi::class)
package me.app.jvmonlyresources.generated.resources
import kotlin.OptIn
import kotlin.String
import kotlin.collections.MutableMap
import org.jetbrains.compose.resources.DrawableResource
import org.jetbrains.compose.resources.InternalResourceApi
... | 64 | null | 1174 | 16,150 | 7e9832f6494edf3e7967082c11417e78cfd1d9d0 | 960 | compose-multiplatform | Apache License 2.0 |
lib/src/main/java/com/kirkbushman/araw/helpers/AuthScriptHelper.kt | KirkBushman | 182,531,355 | false | null | package com.kirkbushman.araw.helpers
import android.content.Context
import com.kirkbushman.araw.RedditClient
import com.kirkbushman.auth.RedditAuth
import com.kirkbushman.auth.managers.SharedPrefsStorageManager
class AuthScriptHelper(
context: Context,
clientId: String,
clientSecret: String,
usernam... | 9 | null | 9 | 84 | aeae071fa8d2a4e378de4a71420dc2a9792591f3 | 1,447 | ARAW | MIT License |
sqldelight-idea-plugin/src/main/kotlin/app/cash/sqldelight/intellij/GradleSystemListener.kt | cashapp | 44,677,680 | false | null | package com.squareup.sqldelight.intellij
import com.intellij.openapi.externalSystem.model.task.ExternalSystemTaskId
import com.intellij.openapi.externalSystem.model.task.ExternalSystemTaskNotificationListenerAdapter
import com.squareup.sqldelight.core.SqlDelightProjectService
import org.jetbrains.kotlin.idea.framework... | 195 | Kotlin | 373 | 4,449 | d995c74b16c826ae6dbaa899e3d9ece127ebb6fe | 707 | sqldelight | Apache License 2.0 |
day07/main.kt | LOZORD | 441,007,912 | false | {"Kotlin": 29367, "Python": 963} | import java.util.Scanner
fun main(args: Array<String>) {
val initialPositions = Scanner(System.`in`)
.nextLine()
.split(',')
.map { Integer.parseInt(it) }
.toIntArray()
check(initialPositions.isNotEmpty())
if (args.contains("--part1")) {
val median = initialPosition... | 0 | Kotlin | 0 | 0 | 17dd266787acd492d92b5ed0d178ac2840fe4d57 | 918 | aoc2021 | MIT License |
updater-deob/src/main/java/org/runestar/client/updater/deob/rs/mult/MultiplierFinder.kt | forsco | 135,697,131 | true | {"Kotlin": 1058154, "Java": 4007} | package org.runestar.client.updater.deob.rs.mult
import com.fasterxml.jackson.databind.SerializationFeature
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.google.common.collect.Multimap
import com.google.common.collect.MultimapBuilder
import org.kxtra.slf4j.loggerfactory.getLogger
import org... | 0 | Kotlin | 0 | 0 | b15c07570af82377bcd2be48b00a5e9708be08ab | 9,570 | client | MIT License |
app/src/main/java/com/example/pokinfo/viewModels/AbilityViewModel.kt | T1396 | 792,347,025 | false | {"Kotlin": 440915} | package com.example.pokinfo.viewModels
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.example.pokeinfo.data.graphModel.AbilityDetailQuery
import com.example.pokein... | 0 | Kotlin | 0 | 0 | f6cb3ab047fb1b67d08db0eda2f138000402c91a | 7,427 | PokemonApp | Info-ZIP License |
app/src/main/java/divyansh/tech/animeclassroom/animeDetail/AnimeDetailFragment.kt | justdvnsh | 361,118,759 | false | null | package divyansh.tech.animeclassroom.animeDetail
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.Observer
import androidx.na... | 47 | null | 32 | 95 | 53aa9258daa16022cad3b3dd961ceb60be01e67e | 4,305 | AnimeClassroom | MIT License |
jvm/src/main/kotlin/org/ionproject/core/calendar/icalendar/properties/calendar/ProductIdentifier.kt | i-on-project | 242,369,946 | false | null | package org.ionproject.core.calendar.icalendar.properties.calendar
import org.ionproject.core.calendar.icalendar.properties.Property
import org.ionproject.core.calendar.icalendar.types.Text
import org.ionproject.core.calendar.toText
class Method(
text: String
) : Property {
override val value: Text = text.to... | 14 | Kotlin | 0 | 3 | 339407d56e66ec164ecdc4172347272d97cc26b3 | 461 | core | Apache License 2.0 |
libs/string-parser/src/commonMain/kotlin/kotl/parser/Parser.kt | kotlin-telegram | 697,770,526 | false | {"Kotlin": 61657} | package kotl.parser
public fun interface Parser<out T> {
public fun parse(string: String): ParserResult<T>
}
| 0 | Kotlin | 0 | 9 | 24baf9d20f9be26db48d6176e204cba6df1a3899 | 114 | koTL | MIT License |
AndroidFlutterApp/app/src/main/java/ru/gc986/testhybridappandroidflutter/MainActivity.kt | gc986 | 277,557,370 | false | {"Dart": 8906, "Kotlin": 4695} | package ru.gc986.testhybridappandroidflutter
import android.os.Bundle
import android.util.Log
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import io.flutter.embedding.android.FlutterFragment
import io.flutter.plugin.common.MethodChannel
import kotlinx.android.synthetic.main.activity_main... | 0 | Dart | 0 | 0 | 3ae30471d8707f68fcc94371ef2d30c431c50fe7 | 2,710 | FlatterHybridNavigator | Apache License 2.0 |
app/src/main/java/com/np/composesideeffects/practicals/RememberCoroutineScope.kt | nirajphutane | 799,476,164 | false | {"Kotlin": 61202} | package com.np.composesideeffects.practicals
import android.os.Bundle
import android.text.Html
import android.view.View
import android.widget.Toast
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import android... | 0 | Kotlin | 0 | 0 | 10f6f7131fcbcc38439a29705ecae1d4bea2f86a | 6,178 | Jetpack_Compose_Side_Effects | MIT License |
src/test/kotlin/org/opensearch/indexmanagement/indexstatemanagement/transport/action/getpolicy/GetPolicyRequestTests.kt | opensearch-project | 354,094,562 | false | null | /*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
package org.opensearch.indexmanagement.indexstatemanagement.transport.action.getpolicy
import org.opensearch.common.io.stream.BytesStreamOutput
import org.opensearch.core.common.io.stream.StreamInput
import org.opensearch.search.fetch.... | 97 | null | 96 | 53 | c0942eb60921070385d1b10c7453eee5e148e44f | 1,031 | index-management | Apache License 2.0 |
src/main/kotlin/com/codacy/intellij/plugin/services/api/models/ListRepositoryPullRequestsResponse.kt | codacy | 733,924,872 | false | {"Kotlin": 82395, "HTML": 2163} | package com.codacy.intellij.plugin.services.api.models
data class ListRepositoryPullRequestsResponse(
val data: List<GetRepositoryPullRequestResponse>,
val pagination: Pagination
)
| 2 | Kotlin | 0 | 2 | 03598a859d051b95bb22a364cba32b47c7862ee6 | 190 | codacy-intellij-extension | MIT License |
Core/src/commonMain/kotlin/io/nacular/doodle/drawing/Paint.kt | nacular | 108,631,782 | false | null | package io.nacular.doodle.drawing
/**
* Used to fill regions when drawing shapes on a [Canvas].
*
* @author Nicholas Eddy
*/
public abstract class Paint internal constructor() {
/**
* `true` if the Paint is visible. This could be false if the Paint's attributes (i.e. color) make it
* invisible if use... | 5 | null | 26 | 613 | f7414d4c30cdd7632992071234223653e52b978c | 522 | doodle | MIT License |
android/src/main/java/com/systemmedia/SystemMediaPackage.kt | arnielabs | 859,562,266 | false | {"Kotlin": 11174, "TypeScript": 7126, "Ruby": 3175, "Objective-C": 2376, "JavaScript": 1424, "Objective-C++": 1127, "Swift": 294, "C": 103} | package com.systemmedia
import com.facebook.react.ReactPackage
import com.facebook.react.bridge.NativeModule
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.uimanager.ViewManager
class SystemMediaPackage : ReactPackage {
override fun createNativeModules(reactContext: ReactApplica... | 0 | Kotlin | 0 | 0 | a70abf85e793f1ddc076685c392948f65d491fc2 | 540 | react-native-system-media | MIT License |
pleo-antaeus-batch/src/test/kotlin/io/pleo/antaeus/batch/worker/BatchRetryInvoicePaymentWorkerTest.kt | hectorjsmith | 456,267,035 | false | {"Kotlin": 86133, "Shell": 794, "Dockerfile": 249} | package io.pleo.antaeus.batch.worker
import io.mockk.every
import io.mockk.mockk
import io.mockk.slot
import io.mockk.verify
import io.pleo.antaeus.core.external.NotificationService
import io.pleo.antaeus.core.services.BillingService
import io.pleo.antaeus.core.services.InvoiceService
import io.pleo.antaeus.models.Cur... | 0 | Kotlin | 0 | 0 | f34656326ad02f9b8ef38a6e7b78916f0de7e4f0 | 2,716 | antaeus | Creative Commons Zero v1.0 Universal |
decoder/wasm/src/commonTest/kotlin/io/github/charlietap/chasm/decoder/wasm/decoder/instruction/control/BinaryIfDecoderTest.kt | CharlieTap | 743,980,037 | false | null | package io.github.charlietap.chasm.decoder.wasm.decoder.instruction.control
import com.github.michaelbull.result.Ok
import io.github.charlietap.chasm.ast.instruction.MemoryInstruction
import io.github.charlietap.chasm.ast.instruction.NumericInstruction
import io.github.charlietap.chasm.decoder.wasm.decoder.instruction... | 2 | null | 2 | 43 | addbd2285ab2c9a7f0c12bb0d9fd246241f59513 | 2,452 | chasm | Apache License 2.0 |
src/main/kotlin/com/lykke/matching/engine/daos/CopyWrapper.kt | LykkeCity | 52,304,364 | false | null | package com.swisschain.matching.engine.daos
class CopyWrapper<out T : Copyable>(value: T, isNew: Boolean = false) {
val origin: T?
val copy: T
fun applyToOrigin(): T {
if (origin == null) {
return copy
}
copy.applyToOrigin(origin)
return origin
}
init ... | 5 | null | 16 | 31 | 937b360b10d461e444ebc7133dd9ab6b64ae4cb5 | 533 | MatchingEngine | MIT License |
model/src/main/kotlin/CopyrightFinding.kt | andreas-bauer | 165,835,940 | false | null | /*
* Copyright (C) 2017-2019 HERE Europe B.V.
*
* 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... | 0 | null | 0 | 1 | b0b8117a5eccc8c4c2833a1089c91c7eb0c2dcc9 | 2,631 | oss-review-toolkit | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/Mobile.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.outline
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.Mite... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,342 | icons | MIT License |
idea/testData/inspectionsLocal/branched/ifThenToSafeAccess/conditionNotBinaryExpr.kt | JakeWharton | 99,388,807 | false | null | // IS_APPLICABLE: false
operator fun String?.times(a: Int): Boolean = a == 0
fun main(args: Array<String>) {
val foo: String = "foo"
if (foo * 10<caret>) {
foo.length
}
else null
}
| 0 | null | 4 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 206 | kotlin | Apache License 2.0 |
feature/welcome/src/commonMain/kotlin/com/cdcoding/welcome/ui/WelcomeScreen.kt | Christophe-DC | 822,562,468 | false | {"Kotlin": 728291, "Ruby": 4739, "Swift": 617} | package com.cdcoding.welcome.ui
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
im... | 0 | Kotlin | 0 | 0 | e8bff388ccebb64e6810d62a1ea4dddfabe83c71 | 6,040 | secureWallet | Apache License 2.0 |
Chapter10/PopularMovies/app/src/test/java/com/example/popularmovies/MovieRepositoryTest.kt | PacktPublishing | 810,886,298 | false | {"Kotlin": 989730} | package com.example.popularmovies
import com.example.popularmovies.model.Movie
import com.example.popularmovies.network.MovieService
import io.mockk.coEvery
import io.mockk.impl.annotations.MockK
import io.mockk.junit4.MockKRule
import kotlinx.coroutines.runBlocking
import org.junit.Assert.assertEquals
import org.juni... | 0 | Kotlin | 2 | 2 | c8aa1dd9b7dbea064681fbb492619aab4e969fbe | 980 | How-to-Build-Android-Apps-with-Kotlin-Third-Edition | MIT License |
sample/console/src/main/kotlin/dev/gumil/kaskade/sample/Main.kt | gumil | 120,153,669 | false | null | package dev.gumil.kaskade.sample
import dev.gumil.kaskade.stateEmitter
@Suppress("ComplexMethod", "LabeledExpression")
fun main() {
println(
"""
########################
# KASKADE MUSIC PLAYER #
########################
########################
# controls: ... | 10 | Kotlin | 6 | 228 | cd88de5e622c66d3ef4a505b551d23ebe22bc618 | 1,243 | Kaskade | Apache License 2.0 |
cache/src/main/java/co/sentinel/dvpn/cache/data/LastSessionDatastore.kt | sentinel-official | 578,087,836 | false | null | package co.sentinel.dvpn.cache.data
import android.content.Context
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.edit
import androidx.datastore.preferences.core.stringPreferencesKey
import androidx.datastore.preferences.prefer... | 1 | null | 4 | 4 | 58b79967924e5049397c5297bb9b2aefe98060f0 | 1,263 | sentinel-dvpn-for-android | MIT License |
src/main/kotlin/coverstats/server/models/coverage/Models.kt | pawitp | 189,834,428 | false | null | package coverstats.server.models.coverage
import coverstats.server.models.scm.ScmFileType
import java.util.*
// Report for fast access (stored in cache)
data class ProcessedCoverageReport(
val files: Map<String, ProcessedCoverageFile>
)
data class ProcessedCoverageFile(
val path: String,
val type: ScmFil... | 0 | Kotlin | 0 | 0 | d45a3629d971321f2f4320ecf6d582565a6a8203 | 1,298 | coverstats | MIT License |
project/fantasy/app/src/main/java/com/example/fantasy/domain/usecase/GetDateAndWeekUseCase.kt | radical-p | 568,745,863 | false | {"Kotlin": 227219} | package com.example.fantasy.domain.usecase
import android.util.Log
import com.example.fantasy.domain.repository.DateAndWeekRepo
import com.example.fantasy.domain.repository.DateAndWeek
import kotlinx.coroutines.delay
class GetDateAndWeekUseCase(private val DateAndWeekRepo: DateAndWeekRepo) {
suspend fun execute()... | 0 | Kotlin | 0 | 3 | f6d6744cdaa7a600d5b2cd026b89dd48c1ece78b | 392 | Summer-2022-Tapsi-and-Rahnema-Internship | MIT License |
src/main/kotlin/com/fantasy/ladbe/socket/service/BidLogSocketService.kt | fantasy-fans-ko | 420,898,576 | false | {"HTML": 1023453, "Kotlin": 74755} | package com.fantasy.ladbe.socket.service
import com.fantasy.ladbe.handler.exception.BusinessException
import com.fantasy.ladbe.handler.exception.Exceptions
import com.fantasy.ladbe.model.BidLog
import com.fantasy.ladbe.repository.AuctionRepository
import com.fantasy.ladbe.repository.BidLogRepository
import com.fantasy... | 6 | HTML | 0 | 4 | 575112118816e80da943bbbf8237fa6fcb65411b | 1,697 | lad-be | MIT License |
src/main/kotlin/com/github/oduig/auctionswindler/blizzard/generated/Self.kt | Oduig | 201,813,155 | false | null | package com.github.oduig.auctionswindler.blizzard.generated
data class Self(
val href: String
) | 0 | Kotlin | 0 | 0 | fbe50b740e65280122d5677b7ca33d4c760539eb | 100 | auction-swindler | Apache License 2.0 |
data/src/main/java/com/gentalhacode/github/data/features/search/model/DataOwner.kt | thgMatajs | 239,887,486 | false | null | package com.gentalhacode.github.data.features.search.model
import com.gentalhacode.github.model.Owner
/**
* .:.:.:. Created by @thgMatajs on 13/02/20 .:.:.:.
*/
data class DataOwner(
override val name: String,
override val urlPhoto: String) : Owner | 0 | Kotlin | 0 | 5 | f3e8465cdbc92c9375f32c20085afdeac69dd04d | 260 | GitHubSearch | The Unlicense |
opendc-web/opendc-web-proto/src/main/kotlin/org/opendc/web/proto/Workload.kt | atlarge-research | 79,902,234 | false | {"Kotlin": 1128256, "Java": 446828, "JavaScript": 339363, "Python": 46381, "MDX": 36554, "CSS": 18038, "Dockerfile": 3592, "Shell": 280} | /*
* Copyright (c) 2021 AtLarge Research
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pu... | 33 | Kotlin | 47 | 70 | 5a365dbc068f2a8cdfa9813c39cc84bb30e15637 | 1,835 | opendc | MIT License |
libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/internal/testing/tcsmc/TCServiceMessagesClientTest.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | package org.jetbrains.kotlin.gradle.internal.testing.tcsmc
import jetbrains.buildServer.messages.serviceMessages.ServiceMessage
import org.jetbrains.kotlin.gradle.internal.testing.RecordingTestResultProcessor
import org.jetbrains.kotlin.gradle.internal.testing.TCServiceMessagesClient
import org.jetbrains.kotlin.gradle... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,700 | kotlin | Apache License 2.0 |
app/src/main/java/com/jonadaly/brood/db/entities/Chicken.kt | jonadaly | 160,943,818 | false | null | package com.jonadaly.brood.db.entities
import android.arch.persistence.room.*
@Entity(foreignKeys = [
ForeignKey(
entity = Brood::class,
parentColumns = arrayOf("id"),
childColumns = arrayOf("brood_id")
)
], indices = [
Index("brood_id")
])
data class Chicken(
@PrimaryKey(autoG... | 0 | Kotlin | 0 | 0 | c34f0d27fdc85de73306227b1dccec1086cb1216 | 631 | brood-android | Apache License 2.0 |
test/integ/KotlinLayzyDelegate.kt | facebook | 54,664,770 | false | null | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
class FooDelagates {
val lazyValue: String by lazy { expensiveFn() }
fun expensiveFn(): String {
return "Help"
}
}
cl... | 81 | null | 670 | 6,031 | 428d8686918e4a77f6ebe251bdac51f1fc9e5a5e | 443 | redex | MIT License |
backend/src/main/kotlin/com/mobilispect/backend/schedule/transit_land/internal/client/TransitLandStop.kt | alandovskis | 502,662,711 | false | {"Kotlin": 358753, "Shell": 472, "Swift": 345} | @file:OptIn(ExperimentalSerializationApi::class)
@file:Suppress("unused") // Deleting any of the unused fields will be break deserialization.
package com.mobilispect.backend.schedule.transit_land.internal.client
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.Serializable
import... | 4 | Kotlin | 0 | 1 | 7b48fafb75d432509e71107d501b6c7e2563bd00 | 1,493 | mobilispect | Apache License 2.0 |
python-extension/src/nativeMain/kotlin/jetbrains/datalore/plot/pythonExtension/pngj/chunks/PngChunkPLTE.kt | JetBrains | 176,771,727 | false | null | /*
* Copyright (c) 2023. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
@file:Suppress("unused")
package jetbrains.datalore.plot.pythonExtension.pngj.chunks
import jetbrains.datalore.plot.pythonExtension.pngj.ImageInfo
import jetbrains.datalore.p... | 93 | null | 51 | 889 | 2fb1fe8e812ed0b84cd32954331a76775e75d4d2 | 2,673 | lets-plot | MIT License |
app/src/androidMain/kotlin/dev/sergiobelda/todometer/app/glance/theme/TodometerWidgetTheme.kt | serbelga | 301,817,067 | false | null | /*
* Copyright 2023 Sergio Belda
*
* 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... | 8 | null | 37 | 585 | 9a097cd4df924cbf66c0b6af6fa1fed667d30ca0 | 1,399 | Todometer-KMP | Apache License 2.0 |
app/src/main/java/com/firelord/socialx/adapters/ViewPagerAdapter.kt | FireLord | 511,029,411 | false | {"Kotlin": 41463} | package com.firelord.socialx.adapters
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.lifecycle.Lifecycle
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.firelord.socialx.ui.fragments.LoginFragment
import com.firelord.socialx.ui.fragments.SignUpFrag... | 0 | Kotlin | 0 | 0 | 9a2f320278f9f68a171931bb75f2030f4afc33a5 | 814 | socialx | The Unlicense |
app/src/main/java/com/poke/montty/app/data/remote/manager/type/TypeAPIManager.kt | EmmanuelMontt | 765,499,007 | false | {"Kotlin": 19715} | package com.poke.montty.app.data.remote.manager.type
import com.poke.montty.app.data.remote.model.type.list.TypeListResponse
interface TypeAPIManager {
suspend fun getTypeList(offset: Int, limit: Int): TypeListResponse
}
| 0 | Kotlin | 0 | 0 | 7cf872c4dd28aefafe0cf4c1db3dbf7f37c2e504 | 229 | poke-app | Apache License 2.0 |
import-export/android/src/main/kotlin/studio/lunabee/onesafe/importexport/utils/FileDetailsExt.kt | LunabeeStudio | 624,544,471 | false | {"Kotlin": 3214461, "Java": 11987, "Python": 3979} | /*
* Copyright (c) 2024 Lunabee Studio
*
* 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 | Kotlin | 1 | 2 | 4d6199939c91e0d6d31aa5328549a3ac442d046a | 1,106 | oneSafe6_SDK_Android | Apache License 2.0 |
app/src/main/java/com/driuft/random_pets_starter/PetAdapter.kt | gaeldiab | 623,657,139 | false | null | package com.driuft.random_pets_starter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
class PetAdapter (private val petList: List<String>):RecyclerView.Adapter<Pe... | 0 | Kotlin | 0 | 0 | fad862d9dd2d3b237f15a5a696aa5b7f15ad6686 | 1,098 | CODEPATH-PROJECT6-7 | Apache License 2.0 |
shared/src/main/java/de/loosetie/k8s/dsl/impls/ConfigMapVolumeSource.kt | loosetie | 283,145,621 | false | {"Kotlin": 12443871} | package de.loosetie.k8s.dsl.impls
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.annotation.JsonPropertyOrder
import de.loosetie.k8s.dsl.K8sManifest
import de.loosetie.k8s.dsl.HasParent
import de.loosetie.k8s.dsl.manifests.*
@JsonPropertyOrder("name", "defaultMode", "items", "optional... | 0 | Kotlin | 0 | 1 | 3dd2d00220dbf71151d56b75b3bd7f26583b1fd3 | 1,453 | k8s-dsl | Apache License 2.0 |
app/src/main/java/com/kasuminotes/ui/app/exEquip/ExEquipSkill.kt | chilbi | 399,723,451 | false | null | package com.kasuminotes.ui.app.exEquip
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.material.Divider
i... | 0 | Kotlin | 0 | 0 | 30bc201fc1cea999ab4db2f2b9a75843bb83b30d | 4,444 | KasumiNotes | Apache License 2.0 |
src/main/java/dev/blachut/svelte/lang/psi/blocks/SvelteBlock.kt | tomblachut | 184,821,501 | false | {"JavaScript": 467590, "Kotlin": 424107, "Java": 81911, "Lex": 16310, "Svelte": 14923, "HTML": 2052, "TypeScript": 709} | package dev.blachut.svelte.lang.psi.blocks
import com.intellij.lang.ASTNode
import com.intellij.lang.javascript.psi.JSElement
import dev.blachut.svelte.lang.psi.SveltePsiElement
import dev.blachut.svelte.lang.psi.SvelteTag
abstract class SvelteBlock(node: ASTNode) : SveltePsiElement(node), JSElement {
val startTa... | 59 | JavaScript | 38 | 467 | 183c1af2ece3cf35dbd21c03b6b258ebfe105c20 | 485 | svelte-intellij | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/managerecallsapi/component/health/HealthCheckComponentTest.kt | ministryofjustice | 371,053,303 | false | null | package uk.gov.justice.digital.hmpps.managerecallsapi.component.health
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.TestInstance
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.Arguments
import org.junit.jupiter.params.provider.MethodSource
import org.spring... | 3 | Kotlin | 0 | 1 | 708e801435483b0406197fdc61e85ab7c2d2cc82 | 6,642 | manage-recalls-api | MIT License |
src/test/kotlin/kotlinx/fuzzer/testclasses/singleclasstest/TestClass.kt | zuevmaxim | 245,368,264 | false | {"Kotlin": 125295, "Java": 24863, "Shell": 1145} | package kotlinx.fuzzer.testclasses.singleclasstest
import kotlinx.fuzzer.coverage.SingleClassCoverageRunnerTest
import java.nio.ByteBuffer
import kotlin.random.Random
@Suppress("unused", "UNUSED_PARAMETER", "NOTHING_TO_INLINE", "LiftReturnOrAssignment", "LiftReturnOrAssignment")
internal class TestClass {
privat... | 1 | Kotlin | 0 | 3 | 34255b0a35ee479021a165f2bdbe6ffe0b3109c5 | 1,368 | kotlin-fuzzer | MIT License |
src/main/kotlin/io/projectenv/intellijplugin/listeners/ProjectEnvConfigFileListener.kt | Project-Env | 324,322,609 | false | {"Kotlin": 50790} | package io.projectenv.intellijplugin.listeners
import com.intellij.openapi.components.service
import com.intellij.openapi.project.Project
import com.intellij.openapi.vfs.VirtualFileManager
import com.intellij.openapi.vfs.newvfs.BulkFileListener
import com.intellij.openapi.vfs.newvfs.events.VFileEvent
import io.project... | 4 | Kotlin | 1 | 7 | 6bb6816c5f2ab7624d391d293ab99146a34e020b | 1,404 | project-env-intellij-plugin | MIT License |
ProjectEuler/P7.kt | Code-With-Aagam | 455,843,406 | true | {"C++": 2823238, "Kotlin": 190162, "Swift": 170085, "Java": 56114, "Python": 14574, "C": 3440, "Shell": 732, "JavaScript": 719} | fun main() {
val T = readLine()?.toInt() ?: 0
val N = (5e5).toInt()
val isPrime = MutableList(N + 1) { true }
val primeNumbers = mutableListOf<Int>()
for (num in 2 until N + 1) {
if (isPrime[num]) {
primeNumbers.add(num)
for (nextNum in 2 * num until N + 1 step num) {... | 0 | null | 0 | 2 | 610520cc396fb13a03c606b5fb6739cfd68cc444 | 493 | competitive-programming | MIT License |
app/src/main/kotlin/com/baculsoft/kotlin/android/views/base/IPresenter.kt | KotlinID | 72,181,347 | false | null | package com.baculsoft.kotlin.android.views.base
/**
* @author <NAME> (<EMAIL>)
*/
interface IPresenter<in T : IView> {
fun onAttach(view: T)
fun onDetach()
} | 0 | Kotlin | 9 | 11 | d8e7983dcb7f4fa224adea3466af081fe57a4fa3 | 169 | kotlin-android | Apache License 2.0 |
selekt-java/src/integrationTest/kotlin/com/bloomberg/selekt/jvm/SQLiteDatabaseSampleTest.kt | bloomberg | 281,998,984 | false | null | /*
* Copyright 2022 Bloomberg Finance L.P.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 5 | null | 8 | 46 | 519361cfb24c16fdb602fd5b6f156ce4cdabce72 | 1,219 | selekt | Apache License 2.0 |
kotlin/basic/src/test/kotlin/com/shengsiyuan/kotlin/Run_Let_With_Also_Apply.kt | cuixbo | 538,532,557 | true | {"Java": 745660, "Kotlin": 323125, "JavaScript": 80254, "Dart": 24553, "Python": 8877, "HTML": 5008, "Objective-C": 4465, "Starlark": 1916, "Ruby": 776, "CSS": 773, "Thrift": 670, "Swift": 404, "Makefile": 273} | package com.shengsiyuan.kotlin
/**
* run
* 可以將 run 想像成一個獨立出來的 Scope, run 會把最後一行的東西回傳或是帶到下一個 chain
*/
fun run1() {
val whatsMyName = "Francis"
run {
val whatsMyName = "Ajax"
println("Call my name! $whatsMyName")
}
println("What's my name? $whatsMyName")
}
open class Telephone : Parce... | 0 | null | 0 | 0 | 8934028fb0bf69c289b82f737682fa5565f1dd76 | 6,165 | ShengSiYuan | Apache License 2.0 |
app/src/main/java/com/junerver/cloudnote/utils/NetUtils.kt | junerver | 67,023,500 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 29, "XML": 23, "Java": 5} | package com.junerver.cloudnote.utils
import android.Manifest.permission
import android.app.Activity
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.net.ConnectivityManager
import android.net.NetworkInfo
import androidx.annotation.RequiresPermission
/**
... | 0 | Kotlin | 5 | 23 | dced9fc5f03fcf93247f1f79528fbc5fa7b884dc | 1,642 | CloudNote | Apache License 2.0 |
DSLs/kubernetes/dsl/src/main/kotlin-gen/com/fkorotkov/kubernetes/autoscaling/v2beta2/metadata.kt | fkorotkov | 84,911,320 | false | null | // GENERATED
package com.fkorotkov.kubernetes.autoscaling.v2beta2
import io.fabric8.kubernetes.api.model.ListMeta as model_ListMeta
import io.fabric8.kubernetes.api.model.ObjectMeta as model_ObjectMeta
import io.fabric8.kubernetes.api.model.autoscaling.v2beta2.HorizontalPodAutoscaler as v2beta2_HorizontalPodAutoscaler... | 6 | Kotlin | 19 | 317 | ef8297132e6134b6f65ace3e50869dbb2b686b21 | 846 | k8s-kotlin-dsl | MIT License |
app/src/main/kotlin/com/softteco/template/ui/feature/forgotPassword/ForgotPasswordScreen.kt | SoftTeco | 644,768,318 | false | {"Kotlin": 106892, "Shell": 354} | package com.softteco.template.ui.feature.forgotPassword
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
i... | 21 | Kotlin | 6 | 4 | 576c3f81e8a6d274e86b224031d2b78dc92d7a07 | 3,255 | AndroidAppTemplate | MIT License |
shared/src/commonMain/kotlin/ru/kontur/mobile/visualfsm/sample_kmm/feature/auth/fsm/actions/HandleAuthResult.kt | Kontur-Mobile | 535,246,746 | false | null | package ru.kontur.mobile.visualfsm.sample_android.feature.auth.fsm.actions
import ru.kontur.mobile.visualfsm.Transition
import ru.kontur.mobile.visualfsm.sample_android.feature.auth.fsm.AuthFSMState.*
import ru.kontur.mobile.visualfsm.sample_android.feature.auth.data.AuthResult
class HandleAuthResult(val result: Auth... | 0 | Kotlin | 0 | 6 | 3c586754590a7347e4aaed097a1d2a5f934bb1b7 | 1,517 | VisualFSM-Sample-KMM | MIT License |
app/src/main/java/by/d1makrat/microblogging_app/ui/activity/MainActivity.kt | DzmitryLakisau | 143,532,842 | false | null | package by.d1makrat.microblogging_app.ui.activity
import android.app.Activity
import android.app.FragmentManager
import android.content.Intent
import android.os.Bundle
import android.support.design.widget.NavigationView
import android.support.v4.view.GravityCompat
import android.support.v7.app.ActionBarDrawerToggle
im... | 0 | Kotlin | 0 | 1 | a7c99196060e4e3b6605ec8744b841833923a507 | 4,129 | Microblogging-App | Apache License 2.0 |
src/main/kotlin/org/ivcode/core/claimquery/JwtClaimStatementParser.kt | iv-host | 743,368,620 | false | {"Kotlin": 69527, "TypeScript": 52806, "Shell": 3061, "HTML": 1720, "Dockerfile": 841, "CSS": 147} | package org.ivcode.homeportal.utils.claimquery
internal class JwtClaimStatementParser {
fun parse(tokens: List<Token>): Statement {
val tokenWalker = TokenWalker(tokens)
val statement = statementNode(tokenWalker)
val next = tokenWalker.next()
if(next!=null) {
throw Ille... | 2 | Kotlin | 0 | 0 | ca187a0686460439dd2befcf97d921cb45af9e9a | 4,658 | home-portal | Apache License 2.0 |
butterfly/src/main/java/com/morpho/butterfly/lexicons/com/atproto/admin/getInviteCodes.kt | morpho-app | 752,463,268 | false | {"Kotlin": 811512} | package com.atproto.admin
import com.atproto.server.InviteCode
import kotlin.Any
import kotlin.Long
import kotlin.Pair
import kotlin.String
import kotlinx.collections.immutable.toImmutableList
import kotlinx.serialization.Serializable
import radiant.nimbus.api.model.ReadOnlyList
@Serializable
public data class GetInv... | 21 | Kotlin | 0 | 8 | 525b2f18e9cef6d973c66cf2b3684a06d38332ab | 999 | Morpho | Apache License 2.0 |
samples/emoji-search/android-tests/src/main/kotlin/com/example/redwood/emojisearch/android/tests/AbstractEmojiSearchUiTest.kt | cashapp | 305,409,146 | false | null | /*
* Copyright (C) 2023 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 112 | null | 73 | 1,648 | 3f14e622c2900ec7e0dfaff5bd850c95a7f29937 | 2,209 | redwood | Apache License 2.0 |
src/main/kotlin/me/phantomx/pekonime/bot/utils/BotUtils.kt | adi-itgg | 561,369,447 | false | {"Kotlin": 26277} | package me.phantomx.pekonime.bot.utils
import eu.vendeli.tgbot.interfaces.Action
import eu.vendeli.tgbot.interfaces.Event
import eu.vendeli.tgbot.interfaces.sendAsync
import eu.vendeli.tgbot.types.User
import eu.vendeli.tgbot.types.internal.Response
import kotlinx.coroutines.Deferred
val User.mention: String get() =... | 0 | Kotlin | 0 | 1 | 883b3280205fa639ae7f7992e4180bd5bb837b8b | 594 | PekoTelegramBot | MIT License |
src/jsMain/kotlin/main/ConfigPopup.kt | elizarov | 337,522,862 | false | null | package polyhedra.js.main
import polyhedra.common.util.*
import polyhedra.js.components.*
import polyhedra.js.params.*
import react.*
import react.dom.*
fun RBuilder.configPopup(params: RootParams) {
child(ConfigPopup::class) {
attrs {
this.params = params
}
}
}
@Suppress("NON_EXP... | 0 | Kotlin | 0 | 28 | ac15c7fe326e472470562a42f9fd519b24dfb455 | 3,308 | PolyhedraExplorer | Apache License 2.0 |
components/src/commonMain/kotlin/com/paligot/movies/components/Rating.kt | GerardPaligot | 312,828,696 | false | null | package com.paligot.movies.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.BoxWithConstraints
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.wrapContentSize
import ... | 0 | Kotlin | 0 | 47 | 0ad52c9df8646f78a3496a6916aeb5d254079b87 | 2,698 | discovering-movies | Apache License 2.0 |
data/base/src/main/java/io/edugma/data/base/repository/PathRepositoryImpl.kt | Edugma | 474,423,768 | false | null | package io.edugma.data.base.repository
import android.content.Context
import io.edugma.domain.base.repository.PathRepository
class PathRepositoryImpl(
private val appContext: Context,
) : PathRepository {
override fun getDatastorePath(dataStoreFileName: String): String {
return appContext.filesDir.res... | 1 | Kotlin | 0 | 2 | d67e8c33ec49f2f99511bb6612a07486b4b4bd49 | 965 | app | MIT License |
line-awesome/src/commonMain/kotlin/compose/icons/lineawesomeicons/Envelope.kt | DevSrSouza | 311,134,756 | false | null | package compose.icons.lineawesomeicons
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
... | 17 | null | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 1,822 | compose-icons | MIT License |
browser-kotlin/src/jsMain/kotlin/web/events/EventType.kt | karakum-team | 393,199,102 | false | null | // Automatically generated - do not modify!
@file:Suppress(
"NOTHING_TO_INLINE",
)
package web.events
sealed external interface EventType<out T : Event>
inline fun <T : Event> EventType(
value: String,
): EventType<T> =
value.unsafeCast<EventType<T>>()
| 0 | null | 6 | 28 | 2e94b60c9e3838c464ab9da211ca44de54e74133 | 269 | types-kotlin | Apache License 2.0 |
app/src/main/java/com/kaelesty/cryptocurrencies_observer/CoinPricesAdapter.kt | Kaelesty | 668,404,861 | false | null | package com.kaelesty.cryptocurrencies_observer
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView.Adapter
import androidx.recyclerview.widget.Re... | 0 | Kotlin | 0 | 0 | 6d578f05f9a6ba34fced9e587ef421798e79710e | 2,149 | study-android-cryptocurrencies_observer | The Unlicense |
src/test/kotlin/no/nav/reka/river/examples/example_5_capture_fail_from_listener/services/FormatDokumentService.kt | alpet | 657,993,647 | false | {"Kotlin": 227850} | package no.nav.reka.river.examples.example_5_capture_fail_from_listener.services
import no.nav.helse.rapids_rivers.RapidsConnection
import no.nav.helse.rapids_rivers.River
import no.nav.helse.rapids_rivers.isMissingOrNull
import no.nav.reka.river.basic.Løser
import no.nav.reka.river.Key
import no.nav.reka.river.Messag... | 0 | Kotlin | 0 | 0 | 10b272d9b0b96fac21aaba4cb7c9a18dd9f497ba | 1,844 | reka | MIT License |
app/src/main/java/com/awscherb/cardkeeper/data/model/ScannedCodeModel.kt | LateNightProductions | 66,697,395 | false | null | package com.awscherb.cardkeeper.data.model
import com.google.zxing.BarcodeFormat
interface ScannedCodeModel : SavedItem {
val id: Int
val format: BarcodeFormat
val text: String
val title: String
}
| 1 | Kotlin | 19 | 101 | 3c47475b0698dcb3b97bd4bb3b2e897238e213b2 | 215 | CardKeeper | Apache License 2.0 |
core/network/src/main/java/dev/sijanrijal/popularmovies/core/network/services/search/Search.kt | sijanr | 263,267,988 | false | {"Kotlin": 87745} | package dev.sijanrijal.popularmovies.core.network.services.search
import com.google.gson.annotations.SerializedName
data class MovieSearchNetworkModel(
@SerializedName("page") val pageNumber: Int,
@SerializedName("results") val searchResults: List<MovieSearchNetwork>
)
data class MovieSearchNetwork(
@Ser... | 4 | Kotlin | 0 | 0 | 85da1e7726ecef24868626b65025d1c9628e47a3 | 612 | popular-movies | Apache License 2.0 |
app/src/main/java/com/muedsa/tvbox/demoplugin/service/MainScreenService.kt | muedsa | 872,828,287 | false | {"Kotlin": 17815} | package com.muedsa.tvbox.demoplugin.service
import com.muedsa.tvbox.api.data.MediaCard
import com.muedsa.tvbox.api.data.MediaCardRow
import com.muedsa.tvbox.api.service.IMainScreenService
class MainScreenService(
private val danDanPlayApiService: DanDanPlayApiService
) : IMainScreenService {
private var rowS... | 0 | Kotlin | 0 | 0 | 4e5f5fd827989154b7687031f75c2937ac88e579 | 1,572 | TvBoxDemoPlugin | MIT License |
chapter06/microservice/src/main/kotlin/com/microservices/chapter06/microservice/GreetingsController.kt | gomahera-mymoota | 851,482,914 | false | {"Kotlin": 23374, "HTML": 193} | package com.microservices.chapter06.microservice
import org.springframework.beans.factory.annotation.Value
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController
@RestController
class GreetingsController {
@Value("\${microservice.example.greetings... | 0 | Kotlin | 0 | 0 | e1d61889787dc9b2bbb151fff140e85b02ac9207 | 432 | hands-on-microservices-with-kotlin | Apache License 2.0 |
src/main/kotlin/com/petukhovsky/snake/prot/ServerMessage.kt | arthur-snake | 114,157,008 | false | null | package com.petukhovsky.snake.prot
import com.fasterxml.jackson.annotation.JsonInclude
import com.fasterxml.jackson.annotation.JsonSubTypes
import com.fasterxml.jackson.annotation.JsonTypeInfo
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "act")
@JsonSubTypes(
JsonSu... | 4 | Kotlin | 0 | 3 | e24da15441f6b6c673d1f1128ced494f4ed3d313 | 1,129 | server | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/SortCircleDown.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
im... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,357 | icons | MIT License |
src/main/kotlin/com/github/pawelkowalski92/aoc/day05/Runner.kt | pawelkowalski92 | 726,175,728 | false | {"Kotlin": 77190} | package com.github.pawelkowalski92.aoc.day05
import com.github.pawelkowalski92.aoc.day05.garden.AlmanacParser
import com.github.pawelkowalski92.aoc.day05.garden.seed.BasicSeedParser
import com.github.pawelkowalski92.aoc.day05.garden.seed.RangeSeedParser
import com.github.pawelkowalski92.aoc.util.getResource
class Run... | 0 | Kotlin | 0 | 0 | 96879809e9175073ac1d19a93db8d76d90686500 | 1,383 | advent-of-code-2023 | Apache License 2.0 |
library/src/test/kotlin/ru/kontur/kinfra/kfixture/data/objects/random1/Inside.kt | skbkontur | 212,616,062 | false | null | package ru.kontur.kinfra.kfixture.data.objects.random1
data class Inside(
val able: Boolean,
val accurate: Double,
val act: Boolean,
val affect: Boolean,
val after: Boolean,
val age: String,
val alone: Int,
val already: Int,
val around: Boolean,
val article: Boolean,
val awa... | 7 | Kotlin | 1 | 1 | e1845e8c9737c66b63cfa49925ad3bb9c589fbd1 | 4,537 | KFixture | MIT License |
networking/src/main/java/io/iamjosephmj/networking/service/base/RetrofitService.kt | iamjosephmj | 347,596,083 | false | null | /*
* MIT License
*
* Copyright (c) 2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pu... | 0 | Kotlin | 0 | 2 | c98b95542857eab6ecc0deb47382c70ef82c756d | 2,830 | Rx-Clean | MIT License |
proto-router/src/main/kotlin/actor/proto/router/GroupRouterConfig.kt | asynkron | 96,669,281 | false | null | package actor.proto.router
import actor.proto.Context
import actor.proto.PID
abstract class GroupRouterConfig(private var routees: Set<PID>) : RouterConfig() {
override fun onStarted(context: Context, router: RouterState) = router.setRoutees(routees)
}
| 8 | Kotlin | 21 | 211 | 5d42177ff79969000b64a150ac4433dee3209b45 | 260 | protoactor-kotlin | Apache License 2.0 |
recyclerviewscreen/src/main/java/com/example/road/to/effective/snapshot/testing/recyclerviewscreen/dataproviders/memorise/MemoriseProvider.kt | sergio-sastre | 394,010,429 | false | null | package com.example.road.to.effective.snapshot.testing.recyclerviewscreen.dataproviders.memorise
import com.example.road.to.effective.snapshot.testing.recyclerviewscreen.data.Memorise
interface MemoriseProvider {
fun getMemorises(): List<com.example.road.to.effective.snapshot.testing.recyclerviewscreen.data.Memor... | 3 | Kotlin | 11 | 145 | 56055666226fb1c3ddd8aff7f98c7979ff1aa839 | 326 | Android-screenshot-testing-playground | MIT License |
remix/src/commonMain/kotlin/com/woowla/compose/icon/collections/remix/remix/business/PieChartLine.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.remix.remix.business
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.S... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 2,416 | compose-icon-collections | MIT License |
app/src/main/java/com/example/stunthink/data/remote/dto/login/LoginDto.kt | MFachriA | 646,533,160 | false | null | package com.example.stunthink.data.remote.dto.login
data class LoginDto (
val token: String
)
| 0 | Kotlin | 0 | 1 | f50be971748dac420777604e226751933f505756 | 99 | StunThink | Freetype Project License |
privacy-config/privacy-config/src/main/java/com/duckduckgo/privacy/config/store/PrivacyConfigDatabaseModels.kt | hojat72elect | 558,362,610 | false | null | /*
* Copyright (c) 2022 DuckDuckGo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 0 | Kotlin | 0 | 0 | ed9a0dcca1ffae0851cd1fab0cd3981a928d4d4f | 6,146 | SmartBrowser | Apache License 2.0 |
data/src/main/java/com/al/data/db/ExploreDatabase.kt | abdullahHanif | 381,480,403 | false | null | package com.al.data.db
import androidx.room.Database
import androidx.room.RoomDatabase
import com.al.data.db.dao.ImageDao
import com.al.data.model.Image
@Database(entities = [Image::class], version = 1, exportSchema = false)
abstract class ExploreDatabase : RoomDatabase() {
abstract fun imageDao(): ImageDao
... | 0 | Kotlin | 0 | 1 | 0d0069d5cf524029f532b04e46fe5f01d4cc2ea7 | 396 | Explore | Apache License 2.0 |
data/src/main/java/com/al/data/db/ExploreDatabase.kt | abdullahHanif | 381,480,403 | false | null | package com.al.data.db
import androidx.room.Database
import androidx.room.RoomDatabase
import com.al.data.db.dao.ImageDao
import com.al.data.model.Image
@Database(entities = [Image::class], version = 1, exportSchema = false)
abstract class ExploreDatabase : RoomDatabase() {
abstract fun imageDao(): ImageDao
... | 0 | Kotlin | 0 | 1 | 0d0069d5cf524029f532b04e46fe5f01d4cc2ea7 | 396 | Explore | Apache License 2.0 |
one.lfa.updater.main/src/main/java/au/org/libraryforall/updater/main/InventoryFailureListAdapter.kt | AULFA | 189,855,520 | false | null | package au.org.libraryforall.updater.app
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import one.lfa.updater.inventory.api.Inventor... | 2 | null | 1 | 1 | 5cde488e4e9f9e60f5737d9e1a8fc8817f6b22a8 | 1,666 | updater | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.