path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/com/github/fantom/codeowners/grouping/usage/CodeownersGroupingRule.kt | fan-tom | 325,829,611 | false | {"Kotlin": 239288, "Lex": 5866, "HTML": 966} | package com.github.fantom.codeowners.grouping.usage
import com.github.fantom.codeowners.CodeownersIcons
import com.github.fantom.codeowners.CodeownersManager
import com.github.fantom.codeowners.OwnersReference
import com.intellij.injected.editor.VirtualFileWindow
import com.intellij.openapi.components.service
import c... | 34 | Kotlin | 9 | 22 | 8440a8f966e0dadf5ab728925d87772497c5577a | 2,957 | intellij-codeowners | MIT License |
compose/src/main/java/de/jensklingenberg/jetpackcomposeplayground/ui/samples/common/Themes.kt | ravishankarsingh1996 | 223,398,680 | false | null | /*
* Copyright 2019 Google, 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... | 1 | null | 1 | 4 | 2d87fa9dbdd7f89b0d0e3e97f143910e5a3a9e54 | 1,605 | Jetpack-Compose-Playground | MIT License |
sdk/src/main/java/com/exponea/sdk/services/ExponeaPushReceiver.kt | VivekShekhawatPunchh | 330,746,464 | true | {"Kotlin": 601157} | package com.exponea.sdk.services
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.net.Uri
import com.exponea.sdk.Exponea
import com.exponea.sdk.models.NotificationAction
import co... | 0 | null | 0 | 0 | f7ac1275fb28bca428d31b7d5a38415379d04bb6 | 4,005 | exponea-android-sdk | Apache License 2.0 |
app/src/main/java/com/umairadil/smartdownloaderapp/data/PinsResponse.kt | umair13adil | 157,314,695 | false | null | package com.umairadil.smartdownloaderapp.data
data class PinsResponse(
var id: String?,
var width: Int?,
var height: Int?,
var color: String?,
var likes: Int?,
var user: User?,
var urls: URLs?
)
data class User(
var id: String?,
var name: String?... | 0 | Kotlin | 2 | 1 | 380c1ff5b1ef0c325e45430e44f8b9e46f64582e | 634 | SmartLoader | The Unlicense |
compiler/testData/codegen/boxInline/suspend/inlineSuspendOfSuspend.kt | JakeWharton | 99,388,807 | false | null | // FILE: test.kt
// COMMON_COROUTINES_TEST
// WITH_RUNTIME
// NO_CHECK_LAMBDA_INLINING
import COROUTINES_PACKAGE.*
// Block is allowed to be called inside the body of owner inline function
// suspend calls possible inside lambda matching to the parameter
suspend inline fun test(c: suspend () -> Unit) {
c()
}
//... | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 1,224 | kotlin | Apache License 2.0 |
compiler/testData/codegen/boxInline/suspend/inlineSuspendOfSuspend.kt | JakeWharton | 99,388,807 | false | null | // FILE: test.kt
// COMMON_COROUTINES_TEST
// WITH_RUNTIME
// NO_CHECK_LAMBDA_INLINING
import COROUTINES_PACKAGE.*
// Block is allowed to be called inside the body of owner inline function
// suspend calls possible inside lambda matching to the parameter
suspend inline fun test(c: suspend () -> Unit) {
c()
}
//... | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 1,224 | kotlin | Apache License 2.0 |
app/src/main/java/com/fido/common/base/popup/ScaleAlphaFromCenterStrategy.kt | SevenUpup | 588,455,697 | false | {"Kotlin": 924080, "Java": 425445, "Groovy": 7694, "Shell": 426} | package com.fido.common.base.popup
import com.fido.common.base.popup.interf.IPopupAnimationStrategy
import com.lxj.xpopup.enums.PopupAnimation
/**
* @author: FiDo
* @date: 2024/6/11
* @des:
*/
class ScaleAlphaFromCenterStrategy : IPopupAnimationStrategy {
override fun getAnimation(): PopupAnimation {
... | 0 | Kotlin | 0 | 2 | 01b0e239a3097da6dadc35606ab1a0eb0154db75 | 2,627 | common_utils | MIT License |
src/main/kotlin/com/restfeel/config/SwaggerConfig.kt | Jason-Chen-2017 | 86,101,660 | false | null | package com.restfeel.config
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import springfox.documentation.builders.ApiInfoBuilder
import springfox.documentation.builders.PathSelectors
import springfox.documentation.builders.RequestHandlerSelectors
import ... | 3 | HTML | 48 | 66 | 41a5066917d9a94b92be69e67f32fc08c46a9f52 | 2,858 | restfeel | Apache License 2.0 |
app/src/main/java/in/obvious/android/starter/counter/CounterEffectHandler.kt | Honey14 | 263,303,380 | false | null | package `in`.obvious.android.starter.counter
import com.spotify.mobius.Connectable
import com.spotify.mobius.Connection
import com.spotify.mobius.functions.Consumer
class CounterEffectHandler<F, E> : Connectable<F, E> {
override fun connect(output: Consumer<E>): Connection<F> {
return object : Connection... | 0 | Kotlin | 0 | 0 | d5135c1f562cb811a4930ae9d70e718e4354d67a | 429 | LoginScreen | MIT License |
travelmaker_android/app/src/main/java/com/gumibom/travelmaker/ui/main/notification/MainFcmNotifySentAdapter.kt | Leewoogun | 767,396,774 | false | {"Kotlin": 481004, "Java": 174550, "HTML": 4622, "Dockerfile": 516} | package com.gumibom.travelmaker.ui.main.notification
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.gumibom.travelmaker.data.dto.r... | 0 | Kotlin | 0 | 0 | 04e4d7a7a2b613db4a4c9181d015b23b58ea7f70 | 1,754 | TravelMaker | Apache License 1.1 |
android/horizontalcalender/src/main/java/com/example/horizontalcalender/theme/Theme.kt | k105la | 612,971,795 | false | null | package com.example.horizontalcalender.theme
import androidx.compose.ui.graphics.Color
val LightBlue = Color(0xFFD6F2FF)
val DodgerBlue = Color(0xff1c8cfc) | 0 | Kotlin | 0 | 0 | c47712258396cfa960f764e8dc37fd2b65dcd5bf | 157 | tinyrem | MIT License |
composeApp/src/iosMain/kotlin/dev/anvith/binanceninja/di/HomeViewControllerComponent.kt | humblerookie | 734,842,239 | false | {"Kotlin": 157941, "Swift": 4768} | /*
* 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... | 2 | Kotlin | 1 | 1 | 351e3924e3333663d2b43fe3b8e97139c97a7a6c | 894 | binance-ninja | Apache License 2.0 |
solar/src/main/java/com/chiksmedina/solar/boldduotone/security/PasswordMinimalisticInput.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.boldduotone.security
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 4,244 | SolarIconSetAndroid | MIT License |
livingdoc-repositories/src/main/kotlin/org/livingdoc/repositories/cache/CacheConfiguration.kt | LivingDoc | 85,412,044 | false | null | package org.livingdoc.repositories.cache
/**
* Contains the configuration for caching documents.
*
* Repositories that want to use the caching can use this to configure their
* configuration.
*/
class CacheConfiguration(
var path: String = "build/livingdoc/cache",
var cachePolicy: String = CacheHelper.CAC... | 34 | null | 16 | 14 | f3d52b8bacbdf81905e4b4a753d75f584329b297 | 332 | livingdoc | Apache License 2.0 |
app/src/main/java/com/revolgenx/anilib/user/viewmodel/StatsStaffViewModel.kt | AniLibApp | 244,410,204 | false | {"Kotlin": 1593083, "Shell": 52} | package com.revolgenx.anilib.user.viewmodel
import com.revolgenx.anilib.user.service.UserStatsService
class StatsStaffViewModel(userStatsService: UserStatsService) : UserStatsViewModel(userStatsService) {
} | 36 | Kotlin | 3 | 76 | b3caec5c00779c878e4cf22fb7d2034aefbeee54 | 209 | AniLib | Apache License 2.0 |
android-app/src/test/java/com/vsevolodganin/clicktrack/primitiveaudio/PrimitiveFloatAudioDataTest.kt | vganin | 293,315,190 | false | {"Kotlin": 627064, "C++": 4113, "Ruby": 2549, "Swift": 526, "CMake": 281} | package com.vsevolodganin.clicktrack.primitiveaudio
import com.google.testing.junit.testparameterinjector.TestParameter
import com.google.testing.junit.testparameterinjector.TestParameterInjector
import org.junit.Test
import org.junit.runner.RunWith
import java.io.InputStream
import java.nio.ByteBuffer
import java.nio... | 7 | Kotlin | 1 | 22 | e0de3d92ee1921eda2053064fd4ae082b831caa9 | 2,310 | click-track | Apache License 2.0 |
app/src/main/java/com/llastkrakw/nevernote/feature/note/datas/entities/RecordRef.kt | llastkrakw | 349,524,573 | false | null | package com.llastkrakw.nevernote.feature.note.datas.entities
import android.os.Parcelable
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.llastkrakw.nevernote.core.constants.RECORD_FOR_THIS_NOTE_ID
import com.llastkrakw.nevernote.core.constants.RECORD_PATH
import ... | 0 | Kotlin | 0 | 35 | 03a6061e4d7c09c2bbf504b2f85e6253c02fc4fa | 812 | NeverNote | MIT License |
app/src/main/java/com/akvelon/bitbuckler/model/repository/analytics/models/AnalyticsEventNames.kt | akvelon | 635,643,587 | false | null | /**
* All rights reserved by Akvelon Inc.
*
* Created by <NAME> (<EMAIL>)
* on 10 March 2021
*/
package com.akvelon.bitbuckler.model.repository.analytics.models
object AnalyticsEventNames {
object CommitDetails {
const val OPENED = "commit_details_opened"
}
object PrDetails {
const ... | 0 | Kotlin | 0 | 1 | b95918f9b8902c03dcbaf55071a1f51270b115e3 | 2,886 | Bitbuckler-Android | MIT License |
src/main/kotlin/ru/krindra/vknorthtypes/friends/FriendsGetListsResponse.kt | kravandir | 745,597,090 | false | {"Kotlin": 633233} | package ru.krindra.vknorthtypes.friends
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable()
data class FriendsGetListsRawResponse (
@SerialName("count") val count: Int,
@SerialName("items") val items: List<FriendsFriendsList>,
)
@Serializable()
data class Friends... | 0 | Kotlin | 0 | 0 | 508d2d1d59c4606a99af60b924c6509cfec6ef6c | 387 | VkNorthTypes | MIT License |
RetenoSdkCore/src/main/java/com/reteno/core/data/local/model/interaction/InteractionDb.kt | reteno-com | 545,381,514 | false | null | package com.reteno.core.data.local.model.interaction
data class InteractionDb(
val interactionId: String,
val status: InteractionStatusDb,
val time: String,
val token: String
) | 0 | Kotlin | 0 | 0 | 1812b2381e1a250db9318975a29bf2d249496462 | 193 | reteno-mobile-android-sdk | MIT License |
src/main/kotlin/com/dharma/algo/Controller/FundamentalController.kt | rowanfoo | 409,441,365 | false | null | package com.dharma.algo.Controller
import com.dhamma.pesistence.entity.data.Fundamental
import com.dhamma.pesistence.entity.data.QFundamental
import com.dhamma.pesistence.entity.repo.FundamentalRepo
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.*
@CrossO... | 0 | Kotlin | 0 | 0 | de50e39fd83fd92e07da6cab2708d07a70e0dafb | 1,049 | ta4j | Open LDAP Public License v2.8 |
kt/godot-library/src/main/kotlin/godot/gen/godot/EditorProperty.kt | utopia-rise | 289,462,532 | false | null | // THIS FILE IS GENERATED! DO NOT EDIT IT MANUALLY!
@file:Suppress("PackageDirectoryMismatch", "unused", "FunctionName", "RedundantModalityModifier",
"UNCHECKED_CAST", "JoinDeclarationAndAssignment", "USELESS_CAST",
"RemoveRedundantQualifierName", "NOTHING_TO_INLINE")
package godot
import godot.annotation.God... | 50 | Kotlin | 25 | 301 | 0d33ac361b354b26c31bb36c7f434e6455583738 | 8,340 | godot-kotlin-jvm | MIT License |
core/src/main/kotlin/chat/rocket/core/internal/model/DeletePayload.kt | RocketChat | 108,411,604 | false | null | package chat.rocket.core.internal.model
import se.ansman.kotshi.JsonSerializable
@JsonSerializable
data class DeletePayload(
val roomId: String,
val msgId: String,
val asUser: Boolean = false
)
| 29 | null | 64 | 67 | bb5fb852cc79050b8d52172337c15eb7002b9b12 | 208 | Rocket.Chat.Kotlin.SDK | MIT License |
app/src/main/java/com/doskoch/template/error/GlobalErrorHandlerImpl.kt | VitaliyDoskoch | 263,280,184 | false | {"Kotlin": 233695, "Shell": 270} | package com.doskoch.template.error
import com.doskoch.template.core.components.error.CoreError
import com.doskoch.template.core.components.error.GlobalErrorHandler
import com.doskoch.template.core.components.event.EventQueue
import timber.log.Timber
class GlobalErrorHandlerImpl : GlobalErrorHandler, EventQueue.Produc... | 0 | Kotlin | 0 | 2 | 477c3dbb8ab046b3ab9204912535516c8487e254 | 734 | Template | MIT License |
app/src/main/java/com/example/inventory/ItemDetailFragment.kt | Sajini-Sadanand | 436,445,553 | false | null | /*
* Copyright (C) 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Kotlin | 0 | 0 | ddc1d7f2da11b59ddc6c161578411d0590fa8b0c | 3,645 | invertory_sample_app | Apache License 2.0 |
px-services/src/main/java/com/mercadopago/android/px/internal/util/ParcelableUtil.kt | mercadopago | 49,529,486 | false | null | package com.mercadopago.android.px.internal.util
import android.os.Parcel
import android.os.Parcelable
interface KParcelable : Parcelable {
override fun describeContents() = 0
override fun writeToParcel(parcel: Parcel, flags: Int)
}
inline fun <reified T> parcelableCreator(crossinline create: (Parcel) -> T) ... | 44 | null | 77 | 98 | b715075dd4cf865f30f6448f3c00d6e9033a1c21 | 484 | px-android | MIT License |
video/src/main/java/com/topview/purejoy/video/ui/horizontal/HorizontalBottomBanner.kt | giagor | 421,858,760 | false | {"Kotlin": 800571, "AIDL": 3111} | package com.topview.purejoy.video.ui.horizontal
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.material.Slider
import androidx.compose.material.SliderDefaults
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androi... | 1 | Kotlin | 1 | 5 | f58ca9570486871066d99fc5e0827af66d6f0c3b | 3,119 | PureJoy | MIT License |
src/main/kotlin/dev/koding/argon/extensions/FilterExtension.kt | KodingDev | 445,145,171 | false | null | package dev.koding.argon.extensions
import com.kotlindiscord.kord.extensions.commands.Arguments
import com.kotlindiscord.kord.extensions.commands.application.slash.EphemeralSlashCommand
import com.kotlindiscord.kord.extensions.commands.application.slash.ephemeralSubCommand
import com.kotlindiscord.kord.extensions.comm... | 1 | null | 1 | 3 | d9a8577fb92fdb93dfeb2a572bc6fc88912d3e90 | 3,016 | argon | The Unlicense |
bbfgradle/tmp/results/BACKUP_JVM-Xuse-ir/BACKEND_rzaleac_FILE.kt | DaniilStepanov | 346,008,310 | false | null | // Bug happens on JVM -Xuse-ir
//File: tmp/tmp0.kt
fun f1(par0: Int) {
TODO()
par0++
}
| 1 | null | 1 | 1 | e772ef1f8f951873ebe7d8f6d73cf19aead480fa | 89 | kotlinWithFuzzer | Apache License 2.0 |
app/src/main/java/de/aaronoe/cinematic/model/oldAuth/RequestTokenOld.kt | aaronoe | 79,679,261 | false | null | package de.aaronoe.cinematic.model.oldAuth
import com.google.gson.annotations.SerializedName
/**
* Created by aaron on 10.07.17.
*/
data class RequestTokenOld(@SerializedName("request_token") val requestToken : String,
@SerializedName("expires_at") val expiration : String,
... | 3 | null | 27 | 73 | 9ce3ed32654354b7e67a61c0d6334e57e1ac4875 | 355 | Cinematic | MIT License |
scheduling/src/main/java/com/nabla/sdk/scheduling/data/apollo/GqlTypeHelper.kt | nabla | 478,468,099 | false | {"Kotlin": 1146406, "Java": 20507} | package com.nabla.sdk.scheduling.data.apollo
import com.nabla.sdk.scheduling.graphql.PastAppointmentsQuery
import com.nabla.sdk.scheduling.graphql.UpcomingAppointmentsQuery
import com.nabla.sdk.scheduling.graphql.fragment.AppointmentsPageFragment
internal object GqlTypeHelper {
fun UpcomingAppointmentsQuery.Data.... | 0 | Kotlin | 2 | 18 | 57e42d4bfc7bbb5202cf472e8c9279a23de090cc | 906 | nabla-android | MIT License |
technocracy.foundation/src/main/kotlin/net/cydhra/technocracy/foundation/content/world/OilLakeGen.kt | tth05 | 198,904,996 | true | {"Kotlin": 1367573, "GLSL": 13066} | package net.cydhra.technocracy.foundation.content.world
import net.cydhra.technocracy.foundation.content.blocks.oilBlock
import net.cydhra.technocracy.foundation.content.blocks.oilStone
import net.cydhra.technocracy.foundation.util.WeightedBlock
import net.minecraft.block.Block
import net.minecraft.block.state.IBlockS... | 0 | Kotlin | 0 | 1 | 057d12813fbcb73a11b202caae0631020b2fa303 | 3,496 | Technocracy | MIT License |
src/main/kotlin/io/articulus/fhir/model/dstu3/Media.kt | Articulus-Tech | 160,540,104 | false | null | //
// Generated from FHIR Version 3.0.1.11917 on 2018-12-05T09:46:12.706
//
// 2018, Articulus
//
package io.articulus.fhir.model.dstu3
import kotlin.collections.List
/**
* A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference
*
* ... | 0 | Kotlin | 0 | 3 | 90b7b912048fc61ad3696497d1ceaf76459852cb | 2,154 | kotlin-fhir-model | Apache License 2.0 |
app/src/main/java/com/breezebaruch/features/reimbursement/api/ReimbursementConfigRepo.kt | DebashisINT | 863,564,790 | false | {"Kotlin": 15819808, "Java": 1028932} | package com.breezebaruch.features.reimbursement.api
import com.breezebaruch.features.reimbursement.model.ReimbursementConfigResponseModel
import io.reactivex.Observable
/**
* Created by Saikat on 24-01-2019.
*/
class ReimbursementConfigRepo(val apiService: ReimbursementConfigApi) {
fun getReimbursementConfig(us... | 0 | Kotlin | 0 | 0 | 5ff295242877825b98ac559a3a10320a77130181 | 476 | BaruchEngineering | Apache License 2.0 |
src/test/java/diff/equality/strategies/LCSCollectionEqualityStrategyTest.kt | sebasjm | 96,539,368 | false | null | package diff.equality.strategies
import diff.equality.EqualityStrategy
import diff.patch.coords.RootCoordinate
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
/**
* Created by sebasjm on 14/07/17.
*/
class LCSCollectionEqualit... | 0 | Kotlin | 0 | 0 | 863ca5b4b689470abce99cbf9602dcf5afc7e533 | 3,630 | deepdiff | Apache License 2.0 |
src/test/java/diff/equality/strategies/LCSCollectionEqualityStrategyTest.kt | sebasjm | 96,539,368 | false | null | package diff.equality.strategies
import diff.equality.EqualityStrategy
import diff.patch.coords.RootCoordinate
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
/**
* Created by sebasjm on 14/07/17.
*/
class LCSCollectionEqualit... | 0 | Kotlin | 0 | 0 | 863ca5b4b689470abce99cbf9602dcf5afc7e533 | 3,630 | deepdiff | Apache License 2.0 |
twitlin/src/common/test/kotlin/com/sorrowblue/twitlin/geo/GeoApiTest.kt | SorrowBlue | 278,215,181 | false | null | package com.sorrowblue.twitlin.geo
import com.sorrowblue.twitlin.Twitlin
import com.sorrowblue.twitlin.objects.PlaceId
import kotlin.test.Test
import kotlin.test.assertNotNull
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.runTest
import test.AbstractTest
import test.resultLog
@Exp... | 0 | Kotlin | 0 | 1 | a6f80a270cec89c91239837d590fe92ec869c4ff | 927 | Twitlin | MIT License |
app/src/main/java/app/tutorbyte/fragments/webd/NoteswebdFragment.kt | deep-t4run | 724,439,602 | false | {"Kotlin": 200507} | package app.tutorbyte.fragments.webd
import android.annotation.SuppressLint
import android.content.IntentFilter
import android.net.ConnectivityManager
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.webkit.WebChromeClient
import android.... | 0 | Kotlin | 0 | 0 | 0f908dc55233221e5d711d77a019772f791fda58 | 2,794 | CollegeHub-android | MIT License |
app/src/main/java/in/aayushgoyal/hackernews/Story.kt | aayush-goyal | 157,972,449 | false | null | package `in`.aayushgoyal.hackernews
import java.io.Serializable
class Story(val by: String,
val descendants: Int = 0,
val id: Long,
val kids: Array<Long>,
val parent: Long = 0,
val score: Int = 0,
val time: Long,
val text: String = ""... | 0 | Kotlin | 1 | 9 | 39f766a908cc691ebe65c3119a07bfc3ad81da69 | 436 | HackerNews | Apache License 2.0 |
src/main/kotlin/com/book/recipe/route/RecipeRouting.kt | becgabi | 363,655,691 | false | null | package com.book.recipe.route
import com.book.recipe.data.Recipe
import com.book.recipe.data.SearchRequest
import com.book.recipe.service.RecipeService
import com.book.recipe.util.getIdParamOrNull
import com.book.recipe.util.respondBadRequest
import io.ktor.application.*
import io.ktor.http.*
import io.ktor.request.*
... | 0 | Kotlin | 0 | 0 | 67887851a82a96206e9bcea9102b0a11c6382b31 | 1,743 | recipe-book | MIT License |
bugsnag-android-core/src/androidTest/java/com/bugsnag/android/FileStoreTest.kt | thesingularitygroup | 317,773,077 | true | {"Java": 462608, "Kotlin": 354558, "C": 345902, "Gherkin": 73181, "C++": 47149, "Ruby": 16774, "Shell": 5849, "CMake": 5011, "Makefile": 2701} | package com.bugsnag.android
import android.content.Context
import androidx.test.core.app.ApplicationProvider
import org.junit.Assert.assertEquals
import org.junit.Assert.assertTrue
import org.junit.Test
import java.io.File
import java.io.FileNotFoundException
import java.lang.Exception
import java.lang.RuntimeExceptio... | 3 | null | 0 | 0 | f6bc90b411e5ad50e77438975c3e8b70cd0720f0 | 2,351 | bugsnag-android | MIT License |
omisego-core/src/main/java/co/omisego/omisego/qrcode/scanner/OMGQRScannerPreviewDecoder.kt | omgnetwork | 116,833,092 | false | null | @file:Suppress("DEPRECATION")
package co.omisego.omisego.qrcode.scanner
/*
* OmiseGO
*
* Created by Phuchit Sirimongkolsathien on 19/8/2018 AD.
* Copyright © 2017-2018 OmiseGO. All rights reserved.
*/
import android.content.res.Configuration
import android.graphics.Rect
import android.hardware.Camera
import co.... | 0 | Kotlin | 8 | 18 | de12e344d6437b9c23df35d158fb247bac6c8055 | 5,996 | android-sdk | Apache License 2.0 |
foundation/src/main/kotlin/com/neva/javarel/foundation/api/lang/Serializer.kt | neva-dev | 52,150,334 | false | null | package com.neva.javarel.foundation.api.lang
import java.io.*
import java.util.Base64
object Serializer {
fun unserialize(str: String): Any {
val data = Base64.getDecoder().decode(str)
val ois = ObjectInputStream(
ByteArrayInputStream(data))
val o = ois.readObject()
... | 8 | Kotlin | 0 | 8 | 6b75efa9d3e83c5eec23ed7cd4368e901f1f54dc | 622 | javarel-framework | Apache License 2.0 |
modules/shared/src/main/kotlin/dev/mbo/serveradmin/shared/system/DiskSpaceUtil.kt | mbogner | 800,093,225 | false | {"Kotlin": 57691, "PLpgSQL": 4157, "Shell": 634} | package dev.mbo.serveradmin.shared.system
import java.io.File
object DiskSpaceUtil {
fun readDiskSpace(): Map<String, DiskSpace> {
return File.listRoots().associate {
it.absolutePath to DiskSpace(
free = it.freeSpace,
total = it.totalSpace,
usab... | 1 | Kotlin | 1 | 0 | 95eee12330b9e388ae46c5959e510f94ed125d27 | 373 | server-admin | Apache License 2.0 |
core/src/main/java/com/prodev/muslimq/core/data/source/local/database/ShalatDatabase.kt | dapoi | 522,927,477 | false | null | package com.prodev.muslimq.core.data.source.local.database
import androidx.room.Database
import androidx.room.RoomDatabase
import com.prodev.muslimq.core.data.source.local.model.ShalatEntity
@Database(
entities = [ShalatEntity::class],
version = 1,
exportSchema = false
)
abstract class ShalatDatabase : Ro... | 1 | null | 5 | 26 | cabaca757aa9a287c5d0ed1c0f942d627c56a3e6 | 376 | Muslim-Q | MIT License |
feature/ranking/src/main/kotlin/com/stepmate/ranking/rank/RankingViewModel.kt | step-Mate | 738,437,093 | false | {"Kotlin": 753362} | package com.stepmate.ranking.rank
import android.util.Log
import androidx.compose.runtime.Stable
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import com.stepmate.core.SnackBarMessage
import com... | 3 | Kotlin | 0 | 0 | e0cdff7e18cd678f597921b60dfcfc7d978cbbde | 10,892 | Android | Apache License 2.0 |
chapter4/src/main/kotlin/com/microservices/chapter4/Chapter4Application.kt | jongfeel | 574,124,368 | false | null | package com.microservices.chapter4
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
@SpringBootApplication
class Chapter4Application
fun main(args: Array<String>) {
runApplication<Chapter4Application>(*args)
}
| 0 | Kotlin | 0 | 0 | d9f5c72dea44d7bd14ca6349354f72d6ab5e5126 | 280 | kotlin_study | MIT License |
chapter4/src/main/kotlin/com/microservices/chapter4/Chapter4Application.kt | jongfeel | 574,124,368 | false | null | package com.microservices.chapter4
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
@SpringBootApplication
class Chapter4Application
fun main(args: Array<String>) {
runApplication<Chapter4Application>(*args)
}
| 0 | Kotlin | 0 | 0 | d9f5c72dea44d7bd14ca6349354f72d6ab5e5126 | 280 | kotlin_study | MIT License |
data/src/main/java/me/giacoppo/examples/kotlin/mvp/data/source/tmdb/TMDBRetrofitService.kt | GiuseppeGiacoppo | 94,652,537 | false | null | package me.giacoppo.examples.kotlin.mvp.data.source.tmdb
import me.giacoppo.examples.kotlin.mvp.modules.NetworkModule
import retrofit2.Retrofit
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
import retrofit2.converter.gson.GsonConverterFactory
/**
* Provider of TMDBDataSource
*
* @author <NAME>
*/
cla... | 0 | null | 10 | 28 | 76212151a8530f1848a27471786024826c2ce8e1 | 1,000 | Android-Clean-Architecture-with-Kotlin | Apache License 2.0 |
src/main/kotlin/jetbrains/buildServer/server/querylang/ast/FilterModifiers.kt | JetBrains | 285,547,183 | false | {"Kotlin": 340073, "ANTLR": 10846, "Java": 10814} | package jetbrains.buildServer.server.querylang.ast
import jetbrains.buildServer.server.querylang.ast.wrappers.AllElementValidator
import jetbrains.buildServer.server.querylang.ast.wrappers.MAllContainer
import jetbrains.buildServer.server.querylang.ast.wrappers.MWithInheritedContainer
import jetbrains.buildServer.serv... | 4 | Kotlin | 5 | 3 | 5f83223c23bc282b2cec4a04c736de91716e72be | 2,251 | teamcity-search-ql | Apache License 2.0 |
sample/simple/feature/main/src/main/kotlin/com/freeletics/khonshu/sample/feature/main/MainStateMachine.kt | freeletics | 375,363,637 | false | null | package com.freeletics.khonshu.sample.feature.main
import com.freeletics.khonshu.statemachine.StateMachine
import javax.inject.Inject
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flowOf
sealed interface MainState
object Init : MainState
sealed interface MainAction
class MainStateMachine @Inje... | 8 | null | 9 | 95 | 88b5836a4291f42635456e6af709b243daa8a854 | 492 | khonshu | Apache License 2.0 |
app/src/main/java/com/oliverspryn/android/oauthbiometrics/domain/usecases/storage/DeletePersistentAuthStateUseCase.kt | oliverspryn | 468,386,599 | false | {"Kotlin": 116365} | package com.oliverspryn.android.oauthbiometrics.domain.usecases.storage
import androidx.datastore.preferences.core.stringPreferencesKey
import com.oliverspryn.android.oauthbiometrics.utils.PersistentDataStore
import io.reactivex.rxjava3.core.Completable
import javax.inject.Inject
class DeletePersistentAuthStateUseCas... | 0 | Kotlin | 0 | 2 | b7a1da9b4260122fca64d7141653deb7f794e250 | 569 | android-oauth-biometrics | MIT License |
advanced-topics/src/main/kotlin/com/sanie/exceptions/ExceptionHandlingExample.kt | Ahmad-alsanie | 755,098,872 | false | {"Kotlin": 13268} | package com.sanie.exceptions
import kotlinx.coroutines.*
fun main() = runBlocking {
// try-catch with launch
val jobWithTryCatch = launch {
try {
println("Launching a coroutine that will fail...")
throw IllegalArgumentException("Something went wrong in the launched coroutine!")... | 0 | Kotlin | 0 | 0 | e27eaa45a61e2fd9e295b7a85e8407ce7dc40417 | 1,391 | kotlin-coroutines-made-simple | MIT License |
server/src/main/kotlin/com/github/ntoj/app/server/controller/PermissionController.kt | ntoj | 660,947,801 | false | {"Kotlin": 236117, "TypeScript": 227822, "Dockerfile": 4185, "Groovy": 1156, "SCSS": 373, "JavaScript": 355, "HTML": 301, "Shell": 84} | package com.github.ntoj.app.server.controller
import cn.dev33.satoken.annotation.SaCheckPermission
import com.github.ntoj.app.server.ext.success
import com.github.ntoj.app.server.model.entities.PERM_DEFAULT
import com.github.ntoj.app.server.model.entities.PERM_GUEST
import com.github.ntoj.app.server.model.entities.Per... | 15 | Kotlin | 5 | 9 | a2951b2ea35a8d3ce5fdcc76bf24ba72d97422f6 | 2,429 | ntoj | MIT License |
usecases/src/test/java/com/mariomanzano/nasaexplorer/usecases/FindPODUseCaseTest.kt | MarioManzanoCulebras | 463,844,402 | false | null | package com.mariomanzano.nasaexplorer.usecases
import com.devexperto.architectcoders.testshared.samplePOD
import kotlinx.coroutines.flow.flowOf
import kotlinx.coroutines.runBlocking
import org.junit.Assert.assertEquals
import org.junit.Test
import org.mockito.kotlin.doReturn
import org.mockito.kotlin.mock
class FindP... | 50 | Kotlin | 0 | 3 | 9c9d2475aabc7f106446cc7f65b390d5b4903530 | 668 | Nasa-Explorer | Apache License 2.0 |
app/src/main/java/com/game/collider/components/GameView.kt | holman57 | 387,668,866 | false | null | package com.game.collider.components
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Rect
import android.util.Log
import android.view.MotionEvent
import android.view.SurfaceHolder
import android.view.SurfaceView
... | 1 | Kotlin | 1 | 1 | bfcdddde03902828a4324affac91547da75d6787 | 2,651 | collider | MIT License |
app/src/main/java/com/example/superwe/ActionAdapter.kt | PhoenixMiao | 607,780,081 | false | null | package com.example.superwe
import android.content.Context
import android.content.Intent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.TextView
import androidx.core.content.ContextCompat.startActivity
import androidx.recycle... | 0 | Kotlin | 0 | 0 | d84c0f6c767b4b7068a678be6263bab2c1c0257e | 2,039 | SuperWe | Mulan Permissive Software License, Version 2 |
bot/admin/test/core/src/main/kotlin/model/TestPlanUpdate.kt | theopenconversationkit | 84,538,053 | false | {"Kotlin": 6173880, "TypeScript": 1286450, "HTML": 532576, "Python": 376720, "SCSS": 79512, "CSS": 66318, "Shell": 12085, "JavaScript": 1849} | /*
* Copyright (C) 2017/2019 e-voyageurs technologies
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 163 | Kotlin | 127 | 475 | 890f69960997ae9146747d082d808d92ee407fcb | 1,889 | tock | Apache License 2.0 |
src/main/kotlin/com/github/epadronu/balin/core/BrowserImpl.kt | ecopete | 145,035,232 | true | {"Kotlin": 72465} | /******************************************************************************
* Copyright 2016 <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/li... | 0 | Kotlin | 0 | 0 | ab06fbd62e9ad5f36c604f477844af9a43dbf922 | 2,240 | balin | Apache License 2.0 |
library/src/main/java/com/thefinestartist/finestwebview/listeners/BroadCastManager.kt | TheFinestArtist | 9,234,481 | false | null | package com.thefinestartist.finestwebview.listeners
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import androidx.localbroadcastmanager.content.LocalBroadcastManager
/**
* Created by TheFinestArtist on 1/26/16.
*/
class Broa... | 131 | Kotlin | 545 | 2,325 | 513c2e95bbdd6364489f0396f318293f84a6d998 | 6,647 | FinestWebView-Android | The Unlicense |
Ad Astra Gestoría App/app/src/main/java/com/jjas/proyectofinalciclo/OnItemClickListener.kt | JJAS2022 | 809,875,235 | false | {"Kotlin": 117991} | package com.jjas.proyectofinalciclo
import androidx.fragment.app.Fragment
interface OnItemClickListener {
fun onItemClick(fragment: Fragment)
} | 0 | Kotlin | 0 | 0 | 9e7cedcdebc7a3ba780505bb77d8c2d02d771fa5 | 149 | Proyecto-Final-Ciclo | MIT License |
app/src/main/java/com/frogobox/testnoframework/MainActivity.kt | caravancodes | 444,285,828 | false | {"HTML": 435541, "SCSS": 157102, "CSS": 96509, "Less": 78481, "JavaScript": 75206, "Kotlin": 49108, "Witcher Script": 2215} | package com.frogobox.testnoframework
import android.app.SearchManager
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.Menu
import android.view.MenuItem
import android.view.View
import androidx.appcompat.widget.SearchView
import androidx.... | 0 | HTML | 0 | 0 | 8c37353730628c5908fe236e00ae04d1c657c808 | 4,348 | nf-testcase-app-no-framework | Apache License 2.0 |
src/infrastructure/storage/src/testFixtures/kotlin/support/container/MySqlContainerProperties.kt | YAPP-Github | 634,126,325 | false | null | package support.container
object MySqlContainerProperties {
const val imageName = "mysql:8.0"
const val PORT = 3306
const val PASSWORD = "<PASSWORD>"
const val DATABASE = "yapp22"
}
| 4 | Kotlin | 1 | 5 | 4b7cba48a16e0ec305ddea49d278c99200cce11c | 199 | DangleDangle-server | Apache License 2.0 |
app/src/main/java/com/oneswitch/features/viewAllOrder/model/NewOrderDataModel.kt | DebashisINT | 479,421,399 | false | null | package com.oneswitch.features.viewAllOrder.model
import com.oneswitch.app.domain.NewOrderColorEntity
import com.oneswitch.app.domain.NewOrderGenderEntity
import com.oneswitch.app.domain.NewOrderProductEntity
import com.oneswitch.app.domain.NewOrderSizeEntity
import com.oneswitch.features.stockCompetetorStock.model.Co... | 0 | Kotlin | 0 | 0 | e8a10afc0beca231a299cca19185ad2f8187c907 | 678 | OneSwitch | Apache License 2.0 |
src/main/kotlin/eZmaxApi/models/EzsigndocumentMinusGetFormDataMinusV1MinusResponseMinusMPayload.kt | eZmaxinc | 271,950,932 | false | null | /**
* eZmax API Definition
*
* This API expose all the functionnalities for the eZmax and eZsign applications.
*
* The version of the OpenAPI document: 1.1.6
* Contact: <EMAIL>
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manual... | 0 | Kotlin | 0 | 0 | 55c05a61da3d803765de30120dc46b86811cfe23 | 1,865 | eZmax-SDK-kotlin | MIT License |
samples/schema/petstore/ktorm/src/main/kotlin/org/openapitools/database/models/Pet.kt | oxidecomputer | 334,329,847 | false | null | /**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-ge... | 5 | null | 6547 | 5 | f8770d7c3388d9f1a5069a7f37378aeadcb81e16 | 3,120 | openapi-generator | Apache License 2.0 |
core/src/main/kotlin/com/hwik/hcl/core/ext/StringEx.kt | hclarchive | 747,564,978 | false | {"Kotlin": 153991, "HTML": 87752, "JavaScript": 61527, "CSS": 26091} | package com.hwik.hcl.core.ext
fun String.toUtf8HexString(): String {
return this.toByteArray(Charsets.UTF_8).joinToString("") {
"%02x".format(it)
}
}
| 0 | Kotlin | 0 | 0 | 92c2dea29648d5f343c94c8f10d18133403f9621 | 167 | hwik-user-web-official | MIT License |
buildSrc/src/main/kotlin/imaginate/build_credentials.kt | gradle | 615,333,701 | false | null | package imaginate
import nu.studer.gradle.credentials.domain.CredentialsContainer
import org.gradle.api.Project
import org.gradle.api.provider.Property
import org.gradle.kotlin.dsl.the
interface BuildCredentials {
abstract val stableDiffusionApiKey: Property<String>
}
internal
val Project.buildCredentials: Build... | 0 | Kotlin | 0 | 9 | d2c0e5a71d4304eb8fd94aa65ea7019ffd5fe311 | 470 | imaginate | Apache License 2.0 |
android/jetpack-compose/app/src/main/java/com/example/android/bazel/MainActivity.kt | bazelbuild | 34,527,691 | false | null | package com.example.android.bazel
import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import andr... | 69 | null | 505 | 821 | 35eafcfcd74f001b401838350ef0d72a8519df6e | 1,227 | examples | Apache License 2.0 |
idea/testData/inspectionsLocal/simplifyAssertNotNull/qualifiedAccess.kt | JakeWharton | 99,388,807 | true | null | // PROBLEM: none
// WITH_RUNTIME
class C(val v: String?) {
fun foo(p: Array<String?>) {
val v = p[0]
<caret>assert(this.v != null)
}
}
| 0 | Kotlin | 4 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 160 | kotlin | Apache License 2.0 |
src/main/kotlin/com/demonwav/mcdev/buildsystem/gradle/GradleBuildSystem.kt | robertizotov-zz | 101,105,621 | false | null | /*
* Minecraft Dev for IntelliJ
*
* https://minecraftdev.org
*
* Copyright (c) 2017 minecraft-dev
*
* MIT License
*/
package com.demonwav.mcdev.buildsystem.gradle
import com.demonwav.mcdev.buildsystem.BuildSystem
import com.demonwav.mcdev.creator.MinecraftProjectCreator
import com.demonwav.mcdev.platform.Base... | 1 | null | 1 | 1 | 9b91deed668fce98cd21474b9135ec9b92212c2b | 20,882 | MinecraftDevIntelliJ | MIT License |
aws-spring-docker/src/main/kotlin/com/ale/awsspringdocker/models/v1/Person.kt | Alessandro-Neves | 512,077,831 | false | null | package com.ale.awsspringdocker.models.v1
import jakarta.persistence.*
/* Não podemos usar val em data class porque o JPA não foi desenhado
para trabalhar com objetos imutáveis
*/
@Entity
@Table(name = "person_table")
data class
Person(
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
var id: L... | 2 | Kotlin | 0 | 0 | 5cb926010fa223ee5575f6d0c815528b7890a668 | 718 | kotlin.aws-spring-boot.db | Apache License 2.0 |
kotest-framework/kotest-framework-engine/src/jvmTest/kotlin/com/sksamuel/kotest/engine/spec/isolation/pertest/StringSpecInstancePerTestTest.kt | kotest | 47,071,082 | false | {"Kotlin": 4736924, "CSS": 352, "Java": 145} | package com.sksamuel.kotest.engine.spec.isolation.pertest
import io.kotest.core.spec.IsolationMode
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe
private var tests = mutableSetOf<String>()
private var specs = mutableSetOf<Int>()
class StringSpecInstancePerTestTest : StringSpec({
a... | 5 | Kotlin | 648 | 4,435 | 2ce83d0f79e189c90e2d7bb3d16bd4f75dec9c2f | 810 | kotest | Apache License 2.0 |
tikrana-commons/src/main/kotlin/plenix/tikrana/util/Failure.kt | xrrocha | 541,767,473 | false | {"Kotlin": 46588} | package plenix.tikrana.util
import java.util.logging.Level
import java.util.logging.Logger
sealed class Failure(level: String, context: String, cause: Throwable? = null) {
val message = "$level error: $context${cause?.let { " (${cause.message ?: cause})" } ?: ""}"
private val exception by lazy { RuntimeExcep... | 0 | Kotlin | 0 | 0 | 45d9f5b7ee7c85901e754b4c9120c933658ff796 | 989 | tikrana | Apache License 2.0 |
libraries/log/core/src/main/kotlin/com/log/vastgui/core/pipeline/SimplePipelineContext.kt | SakurajimaMaii | 353,212,367 | false | {"Kotlin": 1130329, "Java": 29482} | /*
* Copyright 2021-2024 VastGui
*
* 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 | Kotlin | 6 | 64 | 75f69cb6996e93a2b2b48e7b8e609616bcd5e1f9 | 2,377 | Android-Vast-Extension | Apache License 2.0 |
shared/core/arch/src/commonMain/kotlin/io/edugma/core/arch/mvi/viewmodel/BaseViewModelFull.kt | Edugma | 474,423,768 | false | null | package io.edugma.core.arch.mvi.viewmodel
import co.touchlab.kermit.Logger
import io.edugma.core.arch.mvi.ActionProducer
import io.edugma.core.arch.mvi.BaseMutator
import io.edugma.core.arch.mvi.StateStore
import io.edugma.core.arch.mvi.impl.SimpleActionProducer
import io.edugma.core.arch.mvi.impl.SimpleStateStore
imp... | 1 | Kotlin | 0 | 2 | d84fec0ecc682a97ae4ac385c5e1a9a8565df4a8 | 1,411 | app | MIT License |
gson_processor/src/main/java/mohamedalaa/mautils/gson_processor/utils/_Javapoet.kt | MohamedAlaaEldin636 | 178,618,838 | false | null | /*
* Copyright (c) 2019 <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 i... | 0 | Kotlin | 0 | 0 | 16d6a8fdbf0d851c74485bdc1a609afaf3bb76f9 | 1,486 | MAUtils | Apache License 2.0 |
shared/src/commonMain/kotlin/business/datasource/network/main/responses/FlashSaleDTO.kt | razaghimahdi | 714,632,664 | false | null | package business.datasource.network.main.responses
import business.domain.main.FlashSale
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class FlashSaleDTO(
@SerialName("expired_at") val expiredAt: String? = null,
@SerialName("products") val products: List... | 0 | null | 9 | 97 | 6047cf13ab86a9dd74c8ea4bcba7a9771ec8ad0e | 488 | Shopping-By-KMP | MIT License |
ksmt-yices/ksmt-yices-core/src/main/kotlin/io/ksmt/solver/yices/KYicesSolverConfiguration.kt | UnitTestBot | 501,947,851 | false | {"Kotlin": 2667398, "C++": 97881, "Shell": 3660, "C": 3122, "CMake": 962} | package org.ksmt.solver.yices
import com.sri.yices.Config
import org.ksmt.solver.KSolverConfiguration
import org.ksmt.solver.KSolverUniversalConfigurationBuilder
import org.ksmt.solver.KSolverUnsupportedParameterException
interface KYicesSolverConfiguration : KSolverConfiguration {
fun setYicesOption(option: Stri... | 9 | Kotlin | 9 | 29 | fdd016da62d0a543148f9ec7a4d5fd002c5cc317 | 1,442 | ksmt | Apache License 2.0 |
src/main/kotlin/me/luna/trollhack/util/inventory/slot/Defined.kt | NotMonika | 509,752,527 | false | {"Kotlin": 2035807, "Java": 168054, "GLSL": 91098} | @file:Suppress("NOTHING_TO_INLINE")
package me.luna.trollhack.util.inventory.slot
import net.minecraft.entity.player.EntityPlayer
import net.minecraft.inventory.Container
import net.minecraft.inventory.Slot
inline val EntityPlayer.allSlots: List<Slot>
get() = inventoryContainer.getSlots(1..45)
inline val Entity... | 0 | Kotlin | 0 | 0 | 543ac418b69e0c7359cde487e828b4c3d2260241 | 1,933 | MorisaHack | Do What The F*ck You Want To Public License |
app/src/main/java/com/example/fit5046paindiary/PainAdapter.kt | heygum | 376,277,521 | false | null | package com.example.fit5046paindiary
import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.LinearLayout
import android.widget.TextView
import androidx.cardview.widget.CardView
import androidx.recyclerview.widget.RecyclerVi... | 0 | Kotlin | 0 | 1 | fc07792d7c04c4a68aae4666108b504685077ae1 | 2,259 | FIT5046PainDiary | MIT License |
core/src/main/java/io/opentelemetry/android/instrumentation/AndroidInstrumentationRegistry.kt | open-telemetry | 669,220,109 | false | {"Java": 500879, "Kotlin": 149317} | /*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.android.instrumentation
/**
* Stores and provides all the available instrumentations.
*/
interface AndroidInstrumentationRegistry {
/**
* Provides a single instrumentation if available.
*
... | 64 | Java | 27 | 126 | 063acd9d1bdfccb478a4460475021caf43a33bb7 | 1,327 | opentelemetry-android | Apache License 2.0 |
library/renetik-android-ui/src/main/java/renetik/android/ui/extensions/CSViewInterface+UI.kt | renetik | 69,289,476 | false | null | package renetik.android.ui.extensions
import android.os.Build
import android.view.View
import android.view.ViewGroup
import android.widget.AdapterView
import android.widget.CompoundButton
import android.widget.EditText
import android.widget.TextView
import androidx.annotation.IdRes
import androidx.drawerlayout.widget.... | 1 | null | 2 | 3 | c8f952b7cef72fb4563505fc5d13d9f2a34957b9 | 6,843 | renetik-android-framework | MIT License |
app/src/main/java/es/icp/base_retrofit/utils/HttpCodes.kt | icpmoviles | 571,492,379 | false | {"Kotlin": 24967} | package es.icp.base_retrofit.utils
object HttpCodes {
const val OK = 200
const val CREATED = 201
const val ACCEPTED = 202
const val NOT_CONTENT = 204
const val BAD_REQUEST = 400
const val UNAUTHORIZED = 401
const val NOT_FOUND = 404
const val REQUEST_TIMEOUT = 408
const val PRECOND... | 0 | Kotlin | 0 | 0 | a3dd3ea000755b9139e0d2bb62574ebebb4c064c | 615 | Base_Retrofit | Apache License 2.0 |
library_tab/src/main/java/com/crimson/library/tab/widget/MsgViewExt.kt | crimson0829 | 249,108,464 | false | null | package com.crimson.library.tab.widget
import android.view.View
import android.view.ViewGroup
import android.widget.RelativeLayout
/**
* @author crimson
* @date 2020/3/21
* MsgView 扩展函数
*/
/**
* 展示
*/
fun MsgView.show(num: Int) {
val lp =
layoutParams as? RelativeLayout.LayoutParams
val dm =... | 0 | Kotlin | 2 | 11 | 7e7256c6cab33b5aaddcd960b4682e0dc66a86cf | 1,586 | AdvancedTabLayout | Apache License 2.0 |
src/main/kotlin/me/lensvol/blackconnect/BlackdClient.kt | lensvol | 261,833,378 | false | null | package me.lensvol.blackconnect
import com.intellij.openapi.diagnostic.Logger
import java.io.IOException
import java.net.ConnectException
import java.net.HttpURLConnection
import java.net.SocketTimeoutException
import java.net.URL
import javax.net.ssl.SSLException
sealed class BlackdResponse {
object NoChangesMad... | 30 | Kotlin | 7 | 74 | d5b728dc7f07b97ed4e19c067f9b6ad6a7052b02 | 8,210 | intellij-blackconnect | MIT License |
app/src/main/java/com/bk/signer_tool/digital_signer/ProgressCallback.kt | Al-khateebBahaa | 606,754,979 | false | null | package com.bk.signer_tool.digital_signer
interface ProgressCallback {
fun controlProgressCallback(isVisible: Boolean)
} | 0 | Kotlin | 1 | 20 | 96d39f51261321a42e2ae615c7a8e9a24991b5ad | 126 | PDF-Signer | Apache License 2.0 |
src/main/kotlin/com/societegenerale/githubcrawler/output/CIdroidReadyJsonFileOutput.kt | amitaucs | 138,293,132 | true | {"Kotlin": 84086, "Java": 43670} | package com.societegenerale.githubcrawler.output
import com.societegenerale.githubcrawler.model.Repository
import org.slf4j.LoggerFactory
import java.io.BufferedWriter
import java.io.File
import java.io.IOException
import java.nio.charset.StandardCharsets
import java.nio.file.Files
import java.nio.file.OpenOption
impo... | 0 | Kotlin | 0 | 0 | 794fae0c6a4f800e5ecba987a71519721807d00c | 3,371 | github-crawler | Apache License 2.0 |
CommonUIViews/app/src/main/java/github/informramiz/commonuiviews/main/topology/TopologyViewModel.kt | informramiz | 287,529,169 | false | null | package github.informramiz.commonuiviews.main.topology
import androidx.lifecycle.ViewModel
class TopologyViewModel : ViewModel() {
// TODO: Implement the ViewModel
} | 0 | Kotlin | 0 | 0 | f66a1f4d20a8e89bf803d166eeeea9e0a810bc54 | 171 | common-ui-views | MIT License |
build/assets/compose/vitaminassets/payments/Kbc.kt | Decathlon | 511,157,831 | false | {"Kotlin": 4443549, "HTML": 226066, "Swift": 163852, "TypeScript": 60822, "CSS": 53872, "JavaScript": 33103, "Handlebars": 771} | package com.decathlon.vitamin.compose.vitaminassets.payments
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphi... | 25 | Kotlin | 5 | 33 | c2c9cfa43128d412b7b2841cabd76952a13db2e1 | 6,022 | vitamin-design | Apache License 2.0 |
tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/media/TelegramMediaAnimation.kt | InsanusMokrassar | 163,152,024 | false | null | package dev.inmo.tgbotapi.types.media
import dev.inmo.tgbotapi.abstracts.TextedOutput
import dev.inmo.tgbotapi.requests.abstracts.InputFile
import dev.inmo.tgbotapi.requests.abstracts.fileIdToSend
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.message.textsources.TextSourcesList
import dev.inmo.tgbota... | 18 | null | 29 | 358 | 482c375327b7087699a4cb8bb06cb09869f07630 | 2,460 | ktgbotapi | Apache License 2.0 |
src/main/kotlin/io.github/cottonmc/leylines/container/WraithInserterGuiController.kt | CottonMC | 187,841,934 | false | null | package io.github.cottonmc.leylines.container
import io.github.cottonmc.cotton.gui.CottonScreenController
import io.github.cottonmc.cotton.gui.widget.WGridPanel
import io.github.cottonmc.cotton.gui.widget.WItemSlot
import io.github.cottonmc.cotton.gui.widget.WLabel
import io.github.cottonmc.leylines.Constants
import i... | 8 | null | 1 | 1 | 0f3d9dc91416f2d437efe3e26f7839fbcf1411b2 | 3,891 | LeyLines | MIT License |
app/src/main/java/com/hulkrent/app/ui/host/step_one/StepOneViewModel.kt | Hulk-Cars | 772,120,218 | false | {"Kotlin": 2511410, "Java": 358761} | package com.hulkrent.app.ui.host.step_one
import android.location.Address
import android.location.Geocoder
import android.os.Handler
import android.os.Looper
import android.util.Log
import androidx.databinding.ObservableField
import androidx.lifecycle.MutableLiveData
import com.android.volley.Request
import com.androi... | 0 | Kotlin | 0 | 0 | 9886a3455e3d404110a85cdaaf5bbff449390814 | 83,786 | Hulk-Rent-Android | Artistic License 1.0 w/clause 8 |
src/main/kotlin/channels/BufferedChannels.kt | bddesai | 705,919,683 | false | {"Kotlin": 17654} | package channels
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
fun main() = runBlocking {
// channel with capacity of 4
val channel = Channel<Int>(4)
// sends 10 values to channel.
// It will pause aft... | 0 | Kotlin | 0 | 0 | 57b6d3fbc23d648cf1540d49452572c6174b1130 | 682 | Coroutines-Flow-Playground | Apache License 2.0 |
src/main/java/challenges/cracking_coding_interview/moderate/q3_intersection/Tester.kt | MalekKamel | 342,007,920 | false | {"Kotlin": 835322} | package challenges.cracking_coding_interview.moderate.q3_intersection
object Tester {
fun equalish(a: Double, b: Double): Boolean {
return Math.abs(a - b) < .001
}
fun checkIfPointOnLineSegments(start: Point, middle: Point, end: Point): Boolean {
if (equalish(start.x, middle.x) && equalish... | 0 | Kotlin | 0 | 1 | a465bff204ef63ecfbea5c520303ed5312ccf6e8 | 2,780 | ProblemSolving | Apache License 2.0 |
app/src/main/java/com/mjdi/thumbrief/service/ImeService.kt | mjdi | 718,451,571 | false | {"Kotlin": 24824} | package com.mjdi.thumbrief.service
import android.content.res.Configuration
import android.inputmethodservice.InputMethodService
import android.view.KeyEvent
import android.view.View
import android.view.Window
import android.view.inputmethod.EditorInfo
import android.view.inputmethod.InputConnection
import android.vie... | 0 | Kotlin | 0 | 0 | b3454d00b69a87b17e5fc4778a58a50c7b742d90 | 2,814 | thumbrief | MIT License |
app/src/main/java/com/ck/car2/graphs/RootNavGraph.kt | ck227 | 545,379,350 | false | null | package com.ck.car2.graphs
import androidx.compose.foundation.layout.navigationBarsPadding
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import com.ck.c... | 0 | Kotlin | 0 | 0 | 6048276fcfa016aaa15e639d235523e5a8b4c7a6 | 1,586 | CarByCompose | Apache License 2.0 |
lib/src/main/java/com/kotlin/inaction/chapter_9/9_3_2_1_ClassTypeAndSubType.kt | jhwsx | 167,022,805 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 3, "Proguard": 1, "Kotlin": 426, "XML": 14, "Java": 86, "desktop": 1} | package com.kotlin.inaction.chapter_9
/**
*
* @author wzc
* @date 2019/8/13
*/
//val xx: String = ""
//val xx: String? = null
/**
* 总结:
* 1,类和类型的区别是什么?
* 一个 Kotlin 类都可以用于构造至少两种类型:不可空类型和可空类型。
* 2, 对于非泛型类, 类的名称可以直接当做类型使用.
*/
| 1 | null | 1 | 1 | 1e28292ee86cf8ce42b90c78b1c17cb143801a73 | 235 | KotlinInAction | MIT License |
kotest-assertions/kotest-assertions-core/src/commonMain/kotlin/io/kotest/matchers/collections/bounds.kt | kotest | 47,071,082 | false | {"Kotlin": 4570269, "CSS": 352, "Java": 145} | package io.kotest.matchers.collections
import io.kotest.assertions.print.print
import io.kotest.matchers.Matcher
import io.kotest.matchers.MatcherResult
import io.kotest.matchers.should
infix fun <T : Comparable<T>, I : Iterable<T>> I.shouldHaveUpperBound(t: T): I {
toList().shouldHaveUpperBound(t)
return this
... | 160 | Kotlin | 643 | 4,414 | 1360aa5a85e5e44bdf85ef04718ad24019ca47bf | 1,895 | kotest | Apache License 2.0 |
src/main/kotlin/g0601_0700/s0680_valid_palindrome_ii/Solution.kt | javadev | 190,711,550 | false | {"Kotlin": 4870729, "TypeScript": 50437, "Python": 3646, "Shell": 994} | package g0601_0700.s0680_valid_palindrome_ii
// #Easy #String #Greedy #Two_Pointers #2023_02_16_Time_296_ms_(79.17%)_Space_36.7_MB_(75.00%)
class Solution {
fun validPalindrome(s: String): Boolean {
var l = 0
var r = s.length - 1
while (l < r) {
if (s[l] != s[r]) {
... | 0 | Kotlin | 20 | 43 | e8b08d4a512f037e40e358b078c0a091e691d88f | 756 | LeetCode-in-Kotlin | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.