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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
android_menu_view/src/main/java/com/dasbikash/menu_view/utils/MenuViewItemAdapter.kt | dasBikash84 | 241,341,526 | false | null | package com.dasbikash.menu_view.utils
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.appcompat.app.AlertDialog
import androidx.recyclerview.widget.ListAdapter
import com.dasbikash.android_view_utils.custom_views.pop_up_menu.MenuViewItemDiffCallback
import com.dasbikash.menu_view.Menu... | 0 | Kotlin | 0 | 0 | 7bd346ef089c9baeaea87d4afe1d63e0a2138278 | 1,259 | android-menu-view | Apache License 2.0 |
screenshot-testing-core/src/androidTest/kotlin/io/github/usefulness/testing/screenshot/ViewHelpersTest.kt | usefulness | 521,878,526 | false | {"Kotlin": 132314, "CSS": 2614, "JavaScript": 1833} | package io.github.usefulness.testing.screenshot
import android.content.Context
import android.widget.ArrayAdapter
import android.widget.ListView
import android.widget.TextView
import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import io.github.usefulness.testing.scre... | 1 | Kotlin | 1 | 2 | 98deafc8ab364bacd5593a293cac18989d433c58 | 2,944 | screenshot-tests-for-android | Apache License 2.0 |
src/main/kotlin/_0110_BalancedBinaryTree.kt | ryandyoon | 664,493,186 | false | null | import data.TreeNode
import kotlin.math.abs
import kotlin.math.max
// https://leetcode.com/problems/balanced-binary-tree/
fun isBalanced(root: TreeNode?): Boolean {
return depthIfBalanced(root) != -1
}
private fun depthIfBalanced(node: TreeNode?): Int {
if (node == null) return 0
val leftDepth = depthIfBa... | 0 | Kotlin | 0 | 0 | fcc7f06b080e25ec5fcf9d19e6a733bdb2b89670 | 547 | leetcode-kotlin | MIT License |
src/main/kotlin/design_patterns/Сhain Of Responsibilities.kt | DmitryTsyvtsyn | 418,166,620 | false | null | package design_patterns
/**
*
* pattern: Chain of responsibility
*
* description: a design pattern consisting of “a source of command objects and a series of processing objects”.
* Each processing object in the chain is responsible for a certain type of command, and the processing is done,
* it forwards the comm... | 0 | null | 134 | 743 | 371aa2126fb3ddc4c817c82aa20f53d3b2bf4863 | 1,669 | Kotlin-Algorithms-and-Design-Patterns | MIT License |
src/test/kotlin/com/valhallagame/valhalla/bankserviceserver/BankServiceTest.kt | saiaku-gaming | 157,013,928 | false | null | package com.valhallagame.valhalla.bankserviceserver
import com.valhallagame.valhalla.bankserviceserver.repository.BankItemRepository
import com.valhallagame.valhalla.bankserviceserver.service.BankItemService
import org.junit.runner.RunWith
import org.springframework.beans.factory.annotation.Autowired
import org.spring... | 0 | Kotlin | 0 | 0 | e0eb78792a4693c253b673fa2536d36cee569d2e | 1,016 | bank-service-server | MIT License |
src/main/kotlin/kayak/Environment.kt | matero | 97,347,341 | false | null | package kayak
import kayak.json.CompactJsonWriter
import kayak.json.JsonFormatter
import kayak.json.JsonWriter
import kayak.json.PrettyJsonWriter
/** Environment in which barman is running. */
enum class Environment {
/** development environment, this is the default. */
DEVELOPMENT,
/** unit testing environm... | 0 | Kotlin | 0 | 0 | 6f2c1556f601f1fb8f71a90fb868b1e56ae43ecc | 2,882 | kayak | MIT License |
app/src/androidTest/java/com/example/android/dagger/di/TestStorageModule.kt | Wilsona4 | 450,428,332 | false | {"Kotlin": 54053} | package com.example.android.dagger.di
import androidx.test.services.storage.TestStorage
import com.example.android.dagger.storage.FakeStorage
import com.example.android.dagger.storage.Storage
import dagger.Binds
import dagger.Module
@Module
interface TestStorageModule {
@Binds
abstract fun provideStorage(stor... | 0 | Kotlin | 0 | 0 | 0fcb9fadd724b53bf6b1edc854d93478f51d84bf | 348 | dagger-lab | Apache License 2.0 |
src/main/kotlin/ch/uzh/ifi/seal/bencher/analysis/callgraph/CGCommand.kt | chrstphlbr | 227,602,878 | false | null | package ch.uzh.ifi.seal.bencher.analysis.callgraph
import arrow.core.None
import arrow.core.Option
import arrow.core.getOrHandle
import ch.uzh.ifi.seal.bencher.CommandExecutor
import java.nio.file.Path
class CGCommand(
private val cgExec: CGExecutor,
private val cgPrinter: CGPrinter,
private v... | 0 | Kotlin | 2 | 1 | 523451f9650fee91e9a14ea9d9767ba181c55cef | 542 | bencher | Apache License 2.0 |
app/src/main/java/com/etasdemir/ethinspector/ui/block/components/BlockInfoCard.kt | etasdemir | 584,191,764 | false | null | package com.etasdemir.ethinspector.ui.block.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose... | 0 | Kotlin | 0 | 1 | 6d1c42bb7558e6f82578f2a013b63af25d10c91e | 2,634 | eth-inspector | MIT License |
plugins/editorconfig/test/org/editorconfig/core/EditorConfigAutomatonBuilderTest.kt | hieuprogrammer | 284,920,751 | false | null | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.editorconfig.core
import junit.framework.TestCase.assertEquals
import org.junit.Test
class EditorConfigAutomatonBuilderTest {
@Test
fun `test getGlob on simple t... | 214 | null | 4829 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 1,700 | intellij-community | Apache License 2.0 |
app/src/main/java/com/hamzaazman/finalspace/util/networkBoundResource.kt | hamzaazman | 572,226,620 | false | {"Kotlin": 62216} | package com.hamzaazman.finalspace.util
import com.hamzaazman.finalspace.data.network.ConnectivityObserver
import com.hamzaazman.finalspace.di.MyApplication.Companion.networkResult
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.channelFlow
import kotlinx.coroutines.flow.collect
import kotlinx.corout... | 0 | Kotlin | 1 | 6 | d1a346f494078c61333f249274559721134cf2cd | 2,236 | FinalSpace | Apache License 2.0 |
sqlmanager/src/main/java/net/eduard/api/lib/database/impl/MySQLEngine.kt | IIxstral | 386,482,903 | true | {"INI": 2, "Gradle Kotlin DSL": 10, "Shell": 1, "Markdown": 1, "Git Attributes": 1, "Batchfile": 1, "Text": 1, "YAML": 4, "Ignore List": 1, "Java": 84, "Kotlin": 178} | package net.eduard.api.lib.database.impl
import net.eduard.api.lib.database.DBManager
import net.eduard.api.lib.database.annotations.TableName
import net.eduard.api.lib.database.api.DatabaseColumn
import net.eduard.api.lib.database.api.DatabaseEngine
import net.eduard.api.lib.database.deserialization
import net.eduard... | 0 | null | 0 | 0 | 780990c4ed423a53444e3606287f2d46814e0b1d | 7,198 | EduardAPI | MIT License |
src/backend/job/biz-job/src/main/kotlin/com/tencent/bkrepo/job/controller/user/UserEmbeddingController.kt | TencentBlueKing | 548,243,758 | false | {"Kotlin": 13657594, "Vue": 1261332, "JavaScript": 683823, "Shell": 124343, "Lua": 100415, "SCSS": 34137, "Python": 25877, "CSS": 17382, "HTML": 13052, "Dockerfile": 4483, "Smarty": 3661, "Java": 423} | package com.tencent.bkrepo.job.controller.user
import com.tencent.bkrepo.common.api.exception.ErrorCodeException
import com.tencent.bkrepo.common.api.message.CommonMessageCode
import com.tencent.bkrepo.common.security.permission.Principal
import com.tencent.bkrepo.common.security.permission.PrincipalType
import com.te... | 363 | Kotlin | 38 | 70 | 54b0c7ab20ddbd988387bac6c9143b594681e73c | 1,301 | bk-repo | MIT License |
src/main/kotlin/internal/Extensions.kt | spring-media | 149,258,929 | false | null | package internal
import com.android.build.gradle.AppExtension
import com.android.ddmlib.AndroidDebugBridge
import org.gradle.api.GradleException
fun AndroidDebugBridge.devicesCanBeFound() {
if (this.devices.isEmpty()) {
throw NoDevicesConnectedException()
}
}
fun AppExtension.createAndroidDebugBridg... | 3 | Kotlin | 0 | 9 | 421f0777379d0b3e1d4e51a7f641aaa7bc446b81 | 531 | apps-android-testdevicemanager | MIT License |
app/src/main/java/com/naufal/submissionawal/ui/ContentUser.kt | Fallid | 704,787,362 | false | {"Kotlin": 29335} | package com.naufal.submissionawal.ui
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.os.Build
import android.os.Bundle
import android.view.View
import android.widget.Toast
import androidx.annotation.RequiresApi
import androidx.annotation.StringRes
im... | 0 | Kotlin | 0 | 0 | ebeb379881af204056656078ee0c3b52a8a9c61a | 6,630 | GitHub-User-Finder | MIT License |
shared/src/commonMain/kotlin/presentation/greeting/state/GreetingUiState.kt | AdeDom | 683,700,167 | false | null | package presentation.greeting.state
import data.models.sdui.ComposableData
data class GreetingUiState(
val isLoading: Boolean = false,
val data: ComposableData? = null
)
| 0 | Kotlin | 0 | 0 | 73596e3117b18195a69a348dd82f70450216185f | 180 | my-compose | Apache License 2.0 |
compiler/testData/codegen/box/callableReference/function/extensionFunctionInSAMInterface.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... | // IGNORE_BACKEND: NATIVE
// ISSUE: KT-68388
var result = ""
fun interface SamInterface {
fun Int.accept(i: String): String
}
fun Int.foo(i: String): String = i
fun bar(a: Int, i: String): String = i
val a = SamInterface(Int::foo)
val b = SamInterface(::bar)
fun box(): String {
with(a) {
result += 1... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 410 | kotlin | Apache License 2.0 |
app/src/main/java/io/github/wulkanowy/services/sync/works/GradeWork.kt | v0idzz | 267,255,870 | false | null | package io.github.wulkanowy.services.sync.works
import android.app.PendingIntent
import android.app.PendingIntent.FLAG_UPDATE_CURRENT
import android.content.Context
import androidx.core.app.NotificationCompat
import androidx.core.app.NotificationCompat.DEFAULT_ALL
import androidx.core.app.NotificationCompat.PRIORITY_H... | 10 | null | 0 | 1 | 085158721e13230fa2bf5c56ec104121060e27f4 | 5,306 | wulkanowy | Apache License 2.0 |
src/main/kotlin/io/kixi/kd/schema/RegexMatcher.kt | kixi-io | 271,490,853 | false | {"Gradle Kotlin DSL": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "EditorConfig": 1, "Markdown": 1, "INI": 1, "Kotlin": 26, "Java": 6, "ANTLR": 2, "YAML": 2} | package io.kixi.kd.schema
class RegexMatcher(val regex: Regex) : Matcher {
override fun matches(obj:Any?) = if(obj==null) false else regex.matches(obj.toString())
override fun toString() = "regex(${regex})"
} | 5 | Java | 1 | 3 | 7f74f060c281f00a7528e9e1e115494ca3de8709 | 217 | Ki.KD-JVM | MIT License |
steps/json-steps/src/test/kotlin/json_support/utils/MapMergerTest.kt | testerum | 241,460,788 | false | null | package json_support.utils
import com.testerum.model.expressions.json.util.MapMerger
import json_support.utils.map_dsl.createMap
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import java.util.LinkedHashMap
class MapMergerTest {
// todo: add more tests
@Test
fun test... | 33 | null | 3 | 22 | 0a53c71b5f659e41282114127f595aad5ab1e4fb | 1,477 | testerum | Apache License 2.0 |
plugins/stats-collector/src/com/intellij/stats/personalization/session/LookupElementFactorsStorage.kt | kirmerzlikin | 196,253,481 | false | {"Text": 3923, "XML": 4545, "Ant Build System": 14, "Shell": 467, "Markdown": 297, "Ignore List": 79, "Git Attributes": 9, "Batchfile": 30, "SVG": 1945, "Java": 63349, "C++": 15, "HTML": 2714, "Kotlin": 3974, "DTrace": 1, "Gradle": 69, "Java Properties": 92, "INI": 234, "JFlex": 27, "Groovy": 3042, "XSLT": 109, "JavaSc... | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.stats.personalization.session
interface LookupElementFactorsStorage {
fun lastUsedLookupFactors(): Map<String, Any>
fun lastUsedElementFactors(): Map<Str... | 1 | null | 1 | 1 | b5f5b5f38904b32c459203633e4ea17dc2736827 | 416 | intellij-community | Apache License 2.0 |
OpenEdXMobile/src/main/java/org/edx/mobile/inapppurchases/InAppPurchasesService.kt | manojkumarhr | 597,407,681 | true | {"Java": 2541281, "HTML": 585518, "Kotlin": 249475, "Python": 35951, "Makefile": 2673, "Shell": 2137, "JavaScript": 1319, "CSS": 1273} | package org.edx.mobile.inapppurchases
import com.google.inject.Inject
import org.edx.mobile.http.provider.RetrofitProvider
import org.edx.mobile.model.iap.AddToBasketResponse
import org.edx.mobile.model.iap.CheckoutResponse
import org.edx.mobile.model.iap.ExecuteOrderResponse
import retrofit2.Call
import retrofit2.htt... | 0 | null | 0 | 0 | cf7779a9fdd9918a14d568be9288df481b8f3169 | 1,432 | edx-app-android-fork1 | Apache License 2.0 |
compiler/fir/analysis-tests/testData/resolve/suppress/withSuppression.kt | JetBrains | 3,432,266 | false | null | const val x = "123"
@Suppress("CONST_VAL_WITH_GETTER")
get() = field
val y = "789"
const val z = @Suppress("CONST_VAL_WITH_NON_CONST_INITIALIZER") y
@Target(AnnotationTarget.TYPE)
annotation class Ann
fun foo(): @Suppress("REPEATED_ANNOTATION") @Ann @Ann Int = 42
typealias Alias<T> = @Suppress("TYPEALIAS_S... | 155 | Kotlin | 5608 | 45,423 | 2db8f31966862388df4eba2702b2f92487e1d401 | 536 | kotlin | Apache License 2.0 |
src/main/kotlin/com/easy/springboot/demo_spring_mvc/controller/UserController.kt | KotlinSpringBoot | 118,502,201 | false | null | package com.easy.springboot.demo_spring_mvc.controller
import com.easy.springboot.demo_spring_mvc.dao.UserDao
import com.easy.springboot.demo_spring_mvc.entity.User
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bin... | 1 | Kotlin | 1 | 2 | da70e8fe9df6b3c103680221cd061b0997b08e6f | 956 | demo_spring_mvc | Apache License 2.0 |
compiler/testData/debug/localVariables/inlineScopes/oldFormatToNew/inlineScopes10.kt | JetBrains | 3,432,266 | false | null | // MODULE: library
// FILE: library.kt
inline fun bar(crossinline block: () -> Unit) {
object {
fun baz(param: Int) {
val b = 2
block()
inlineCall {
val g = 7
}
block()
inlineCall {
val g = 7
... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 3,585 | kotlin | Apache License 2.0 |
android/app/src/androidTest/java/com/trustwallet/core/app/blockchains/ethereum/TestEthereumAbi.kt | blockchain | 250,030,285 | true | null | package com.Dakarwallet.core.app.blockchains.ethereum
import com.Dakarwallet.core.app.utils.toHexByteArray
import org.junit.Assert.assertEquals
import org.junit.Test
import wallet.core.jni.EthereumAbi
class TestEthereumAbiDecoder {
init {
System.loadLibrary("DakarWalletCore")
}
@Test
fun tes... | 3 | C++ | 7 | 9 | 47f875c2d2c376986f650be0646a75beddb007a5 | 1,466 | wallet-core | MIT License |
PurposefulCommunity/app/src/main/java/com/bounswe/purposefulcommunity/Fragments/Community/CommunityFeedActivity.kt | yilmazvolkan | 215,142,781 | false | null | package com.bounswe.purposefulcommunity.Fragments.Community
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import android.view.animation.Animation
import android.view.animation.AnimationUtils
import android.widget.Toast
import... | 1 | null | 1 | 3 | cce8b454712517799e9823bc75dc396495cf38a7 | 6,230 | purposefulCommunityPlatform | MIT License |
hcaptcha/src/main/java/com/stripe/hcaptcha/webview/HCaptchaWebViewHelper.kt | stripe | 6,926,049 | false | null | package com.stripe.hcaptcha.webview
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Color
import android.os.Build
import android.os.Handler
import android.util.Log
import android.view.View
import android.view.ViewGroup
import android.webkit.C... | 88 | null | 644 | 1,277 | 174b27b5a70f75a7bc66fdcce3142f1e51d809c8 | 6,217 | stripe-android | MIT License |
app/src/main/java/io/github/mattpvaughn/pixelly/view/CanvasExt.kt | mattttvaughn | 262,209,155 | false | null | package io.github.mattpvaughn.pixelly.view
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Paint
/**
* Method allowing drawing of rects with coordinates + size. Draws a rectangle of dimens [width]
* by [height] which is [x] pixels from the left of the canvas and [y] pixels from... | 0 | Kotlin | 0 | 0 | 58baccf9c8539ce212b041c56ee0733b88364239 | 699 | Pixelly | MIT License |
annotationprocessortesting-kt/src/main/java/com/tickaroo/tikxml/annotationprocessing/propertyelement/constructor/PropertyItemConstructorDataClass.kt | Tickaroo | 46,920,047 | false | null | /*
* Copyright (C) 2015 <NAME>
* Copyright (C) 2015 Tickaroo, 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 r... | 47 | null | 46 | 420 | cd5d868cf5988c66755f9ff6da043abc27a0fa6f | 1,493 | tikxml | Apache License 2.0 |
app/src/main/java/com/takusemba/cropme/internal/ActionListener.kt | GameFaceChat | 254,919,372 | false | null | /*
* Copyright (c) 2021 -<NAME> - All Rights Reserved
*
* 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... | 32 | Kotlin | 3 | 4 | 3be066826d7e659dbe32c62c954c8b1f4af205e9 | 1,487 | GameFace-Android | MIT License |
app/src/main/java/com/takusemba/cropme/internal/ActionListener.kt | GameFaceChat | 254,919,372 | false | null | /*
* Copyright (c) 2021 -Srihari Vishnu - All Rights Reserved
*
* 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, modif... | 32 | Kotlin | 3 | 4 | 3be066826d7e659dbe32c62c954c8b1f4af205e9 | 1,495 | GameFace-Android | MIT License |
app/src/main/java/com/frogobox/appuikit/model/Layout.kt | frogobox | 397,485,184 | false | null | package com.frogobox.nutritionapp.model
/*
* Created by faisalamir on 20/05/21
* FrogoUIKit
* -----------------------------------------
* Name : <NAME>
* E-mail : <EMAIL>
* Github : github.com/amirisback
* -----------------------------------------
* Copyright (C) 2021 FrogoBox Inc.
* All rights ... | 1 | null | 4 | 7 | be4e192cf0b2815f743b8b53ef15d3c6c16d0868 | 427 | frogo-android-ui-kit | Apache License 2.0 |
app/src/main/java/com/tntra/pargo2/model/collabroom/CollabRoomCreateModel.kt | milan656 | 395,915,799 | false | {"Gradle": 3, "YAML": 1, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 2, "Python": 1, "JSON": 1, "Proguard": 1, "Java": 21, "XML": 111, "Kotlin": 157} | package com.tntra.pargo2.model.collabroom
data class CollabRoomCreateModel(
val collab_room: CollabRoom,
val message: String,
val success: Boolean
) | 1 | null | 1 | 1 | d4747dfaf535e0500d2ca3d10aec6289b536c791 | 161 | pargo | MIT License |
app/src/main/java/com/example/nuki_sesami_app/state/DoorAction.kt | michelm | 818,401,612 | false | {"Kotlin": 92740} | package com.example.nuki_sesami_app.state
enum class DoorAction(val value: Int) {
None(0),
Open(1),
Close(2);
companion object {
fun from(value: Int): DoorAction {
return entries.firstOrNull { it.value == value } ?: None
}
fun from(value: String): DoorAction {
... | 0 | Kotlin | 0 | 0 | 490c53067ff58a06a0e667e690ad5cba7ce4c406 | 406 | nuki-sesami-app | MIT License |
geary-papermc-features/src/main/kotlin/com/mineinabyss/geary/papermc/features/GearyPaperMCFeatures.kt | MineInAbyss | 592,086,123 | false | {"Kotlin": 258814} | package com.mineinabyss.geary.papermc.features
import com.mineinabyss.geary.addons.GearyPhase
import com.mineinabyss.geary.addons.dsl.GearyAddonWithDefault
import com.mineinabyss.geary.modules.geary
import com.mineinabyss.geary.papermc.features.common.event_bridge.entities.EntityDamageBridge
import com.mineinabyss.gea... | 1 | Kotlin | 0 | 5 | e2fffea48d58db4ea9aa1a58ef46171b29a8a7eb | 1,939 | geary-papermc | MIT License |
core/design-system/src/main/java/com/goms/design_system/component/dialog/GomsOneButtonDialog.kt | team-haribo | 740,096,241 | false | {"Kotlin": 575273} | package com.goms.design_system.component.dialog
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.fou... | 4 | Kotlin | 0 | 8 | 080d5be699e6df594ff4f03192eba8a76dd0e82f | 4,247 | GOMS-Android-V2 | MIT License |
couchbase-entity/src/main/java/com/kaufland/generation/model/MapSupportGeneration.kt | SchwarzIT | 92,849,438 | false | null | package com.kaufland.generation.model
import com.kaufland.model.entity.BaseEntityHolder
import com.kaufland.util.TypeUtil
import com.squareup.kotlinpoet.FunSpec
import com.squareup.kotlinpoet.KModifier
object MapSupportGeneration {
fun toMap(holder: BaseEntityHolder): FunSpec {
val toMapBuilder = FunSpec... | 0 | Kotlin | 0 | 9 | 4cb0ef258f932c9334eafa736768f7ff60fd4d97 | 491 | andcouchbaseentity | MIT License |
app/src/main/java/com/brian/weather/network/DataTransferObjects.kt | bmaum321 | 538,279,308 | false | {"Kotlin": 143916} | package com.brian.weather.network
import com.brian.weather.model.CurrentWeatherData
import com.brian.weather.model.LocationData
import com.brian.weather.model.WeatherEntity
import com.squareup.moshi.JsonClass
/**
* DataTransferObjects go in this file. These are responsible for parsing responses from the server
* or... | 0 | Kotlin | 0 | 0 | 92959115f0aadc9831f2a1c15076cd8fd961ebc7 | 881 | Weather-App--XML | Apache License 2.0 |
LearnKotlin/app/src/main/java/sg/edu/nus/learnkotlin/ActivityVariableDeclaration.kt | aficat | 207,585,289 | false | null | package sg.edu.nus.learnkotlin
import android.content.Intent
import android.graphics.Color
import android.graphics.Typeface
import android.os.Bundle
import android.support.design.widget.BottomNavigationView
import android.support.v7.app.AppCompatActivity
import android.text.Spannable
import android.text.SpannableStrin... | 0 | Kotlin | 0 | 0 | ccc06fecb092de4e94fbed09d8438db1524d905f | 9,145 | LearnKotlin | MIT License |
src/main/kotlin/br/com/devsrsouza/redissed/RedissedCommands.kt | DevSrSouza | 182,216,423 | false | null | package br.com.devsrsouza.redissed
interface RedissedCommands {
/**
* Set the [key] in redis with [value]
*/
operator fun set(key: String, value: String)
/**
* Returns the value of [key] from redis or `null` if does not exist
*/
operator fun get(key: String): String?
/**
... | 1 | Kotlin | 0 | 28 | 2058397dcac370aea35996750f063763b34be71a | 861 | Redissed | Apache License 2.0 |
boat-core/src/main/kotlin/xyz/srclab/common/lang/Loaders.kt | srclab-projects | 247,777,997 | false | null | @file:JvmName("Loaders")
package xyz.srclab.common.lang
import xyz.srclab.common.collect.map
import java.io.ByteArrayInputStream
import java.io.IOException
import java.io.InputStream
import java.io.Reader
import java.net.URL
import java.nio.ByteBuffer
import java.nio.charset.Charset
import java.util.*
/**
* @throws... | 0 | Kotlin | 0 | 4 | 192aee01efccc76dcaf18d6d34ebac9726302a83 | 6,527 | boat | Apache License 2.0 |
sample/src/main/java/de/trbnb/mvvmbase/sample/list/Item.kt | trbnb | 63,249,401 | false | null | package de.trbnb.mvvmbase.sample.list
import java.util.UUID
class Item(val id: UUID = UUID.randomUUID(), val text: String)
| 0 | Kotlin | 4 | 14 | a3b6d841263d5d0e54b9802334035940f2d0f75f | 125 | MvvmBase | Apache License 2.0 |
src/main/kotlin/io/github/light0x00/lightjson/internal/Stringify.kt | light0x00 | 618,861,123 | false | null | package io.github.light0x00.lightjson.internal
import java.util.stream.Collector
import java.util.stream.Collectors
import java.util.stream.Stream
import kotlin.reflect.KVisibility
import kotlin.reflect.full.memberProperties
/**
* @author light
* @since 2023/3/26
*/
class Stringify(obj: Any?) {
private val bui... | 0 | Kotlin | 0 | 0 | 527695909ebff1f37e9d8965550442f55149a878 | 2,368 | light-json | MIT License |
src/backend/common/common-bksync/src/test/kotlin/com/tencent/bkrepo/common/bksync/FileBlockChannelTest.kt | TencentBlueKing | 548,243,758 | false | {"Kotlin": 13715127, "Vue": 1261493, "JavaScript": 683823, "Shell": 124343, "Lua": 101021, "SCSS": 34137, "Python": 25877, "CSS": 17382, "HTML": 13052, "Dockerfile": 4483, "Smarty": 3661, "Java": 423} | package com.tencent.bkrepo.common.bksync
import java.io.ByteArrayOutputStream
import java.nio.channels.Channels
import org.junit.jupiter.api.AfterEach
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
class FileBlockChannelTest {
private val tempFile = createTempFile()
private val bl... | 383 | Kotlin | 38 | 70 | 817363204d5cb57fcd6d0cb520210fa7b33cd5d6 | 1,587 | bk-repo | MIT License |
streaming/src/com/android/tools/idea/streaming/StreamingUtils.kt | JetBrains | 60,701,247 | false | {"Kotlin": 43855938, "Java": 36698280, "HTML": 1216565, "Starlark": 735324, "C++": 216476, "Python": 101594, "C": 71515, "Lex": 66026, "NSIS": 58516, "AIDL": 32502, "Shell": 28591, "CMake": 21034, "JavaScript": 18437, "Batchfile": 7774, "Smali": 7580, "RenderScript": 4411, "Makefile": 2298, "IDL": 269, "QMake": 18} | /*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 2 | Kotlin | 230 | 876 | 9c0a89784cca3c01ab99cf251b71a26cdb87cc47 | 6,395 | android | Apache License 2.0 |
dsl/src/main/kotlin/com/code42/jenkins/pipelinekt/dsl/step/scripted/NotifyBitbucketDsl.kt | dgoetsch | 231,449,993 | true | {"Kotlin": 281138} | package com.code42.jenkins.pipelinekt.dsl.step.scripted
import com.code42.jenkins.pipelinekt.core.step.Step
import com.code42.jenkins.pipelinekt.dsl.DslContext
import com.code42.jenkins.pipelinekt.internal.step.scripted.NotifyBitbucket
fun DslContext<Step>.notifyBitbucket() {
add(NotifyBitbucket)
}
| 0 | Kotlin | 0 | 0 | 24285f52eb36ce313df339491eaf71976d8108f1 | 306 | pipelinekt | MIT License |
app/src/main/java/com/sanyao/machin/ui/page/common/AppScaffold.kt | Weightang | 437,207,878 | false | {"Kotlin": 86710, "Java": 26852} | package com.sanyao.machin.ui.page.common
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.material.Scaffold
import androidx.compose.material.rememberScaffoldState
import androidx.compose.material3.Icon
import androidx.compose.material3.M... | 0 | Kotlin | 0 | 0 | 126cb4148af53bf68f787652817b6932720d9867 | 1,904 | machining | MIT License |
shared/build/generated/sqldelight/code/BloomDatabase/commonMain/com/joelkanyi/focusbloom/database/shared/BloomDatabaseImpl.kt | samAricha | 742,657,034 | false | {"Kotlin": 431069, "Java": 225730, "Shell": 17634, "Batchfile": 6761, "C": 58, "Assembly": 25} | package com.joelkanyi.focusbloom.database.shared
import app.cash.sqldelight.TransacterImpl
import app.cash.sqldelight.db.AfterVersion
import app.cash.sqldelight.db.QueryResult
import app.cash.sqldelight.db.SqlDriver
import app.cash.sqldelight.db.SqlSchema
import com.joelkanyi.focusbloom.database.BloomDatabase
import d... | 0 | Kotlin | 0 | 0 | b1c9ab69721f303f5e0f6d00d14e9937d92333b4 | 2,166 | Organiks1_KMP_Server | Apache License 2.0 |
src/commonTest/kotlin/baaahs/visualizer/FakeItemVisualizer.kt | baaahs | 174,897,412 | false | {"Kotlin": 3453370, "C": 1529197, "C++": 661363, "GLSL": 404582, "HTML": 55183, "JavaScript": 53132, "CMake": 30499, "CSS": 4340, "Shell": 2381, "Python": 1450} | package baaahs.visualizer
import baaahs.Color
import baaahs.device.PixelArrayDevice
import baaahs.fixtures.FixtureConfig
import baaahs.io.ByteArrayReader
import baaahs.model.FakeModelEntity
import baaahs.ui.Observable
import baaahs.visualizer.entity.ItemVisualizer
import kotlin.math.min
data class FakeItemVisualizer(... | 99 | Kotlin | 13 | 40 | acdd13a4d34ebdcea0b7452bee6e187954db3fd0 | 1,683 | sparklemotion | MIT License |
app/shared/emergency-access-kit/impl/src/commonMain/kotlin/build/wallet/emergencyaccesskit/EmergencyAccessKitRepositoryImpl.kt | proto-at-block | 761,306,853 | false | null | package build.wallet.emergencyaccesskit
import build.wallet.cloud.store.CloudError
import build.wallet.cloud.store.CloudFileStore
import build.wallet.cloud.store.CloudStoreAccount
import build.wallet.emergencyaccesskit.EmergencyAccessKitRepositoryError.RectifiableCloudError
import build.wallet.emergencyaccesskit.Emerg... | 0 | null | 6 | 98 | 1f9f2298919dac77e6791aa3f1dbfd67efe7f83c | 1,987 | bitkey | MIT License |
src/test/kotlin/dynamicProgramming/WeightedJobSchedulingTest.kt | TheAlgorithms | 177,334,737 | false | null | package dynamicProgramming
import org.junit.Test
class WeightedJobSchedulingTest{
@Test
fun testForBasicCases(){
assert(findMaxProfit(listOf(Job(0,1,30),Job(0,2,10),Job(0,3,50),Job(1,4,60),Job(2,3,120),Job(2,5,90),Job(3,6,40),Job(4,7,70)))==220)
}
@Test
fun testForSameOptimalOutput(){
... | 57 | null | 293 | 977 | e57a8888dec4454d39414082bbe6a672a9d27ad1 | 392 | Kotlin | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/nomisvisitsmappingservice/jpa/repository/AdjudicationHearingMappingRepository.kt | ministryofjustice | 454,373,167 | false | null | package uk.gov.justice.digital.hmpps.nomisvisitsmappingservice.jpa.repository
import org.springframework.data.repository.kotlin.CoroutineCrudRepository
import org.springframework.stereotype.Repository
import uk.gov.justice.digital.hmpps.nomisvisitsmappingservice.jpa.AdjudicationHearingMapping
@Repository
interface Ad... | 0 | Kotlin | 0 | 0 | 90219dc591c95c26632bc44684af27bdae9f9d3a | 464 | hmpps-nomis-mapping-service | MIT License |
app/src/main/java/com/kylecorry/trail_sense/shared/extensions/SolExtensions.kt | kylecorry31 | 215,154,276 | false | {"Kotlin": 2317561, "Python": 17455, "HTML": 16563, "Shell": 5160, "CSS": 4886, "JavaScript": 2574, "Batchfile": 2553} | package com.kylecorry.trail_sense.shared.extensions
import com.kylecorry.sol.math.SolMath.roundNearest
import com.kylecorry.sol.math.geometry.Size
import com.kylecorry.sol.science.geology.CoordinateBounds
import com.kylecorry.sol.science.geology.Geofence
fun Size.toAndroidSize(): android.util.Size {
return androi... | 430 | Kotlin | 51 | 771 | dbbc736ffbfafd38d91371106b8906de2ed32a6b | 1,267 | Trail-Sense | MIT License |
features/merge/data_models/SelectedSoundDetails.kt | abhinavsingh1998 | 852,891,458 | false | {"Kotlin": 79019} | package com.example.soundmixer.features.merge.data_models
data class SelectedSoundDetails(
val ids: List<Int>,
val names: List<String>,
val filePaths : List<String>
)
| 0 | Kotlin | 0 | 0 | 705ee5c477735d25557797f3916e338497cdc64c | 180 | Sound_mixer | MIT License |
main/src/main/java/com/pyamsoft/sleepforbreakfast/main/MainPage.kt | pyamsoft | 614,569,547 | false | {"Kotlin": 554574, "Shell": 457} | /*
* Copyright 2024 pyamsoft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 0 | Kotlin | 0 | 2 | d33f2f5ca57e5e5e4432a0f75ef7d826f8351bf7 | 2,457 | sleepforbreakfast | Apache License 2.0 |
app/src/main/java/com/example/todoapp/fragments/BindingAdapters.kt | WhatToDo-NJUST | 501,872,994 | false | null | package com.example.todoapp.fragments
import android.util.Log
import android.view.Menu
import android.view.MenuItem
import android.view.View
import android.widget.*
import androidx.cardview.widget.CardView
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.databinding.BindingAdapter
import androi... | 0 | Kotlin | 1 | 1 | 05f2c8e45ee6bb1b74a41137c021335a3fda7976 | 4,632 | ToDo-kt | MIT License |
kjob-core/src/main/kotlin/it/justwrote/kjob/extension/extension.kt | justwrote | 260,458,357 | false | null | package kjob.core.extension
import kjob.core.KJob
abstract class BaseExtension(override val id: ExtensionId<*>): Extension {
open class Configuration: Extension.Configuration()
}
interface ExtensionId<Ex: Extension> {
fun name(): String = this.javaClass.simpleName
}
interface Extension {
open class Conf... | 2 | Kotlin | 9 | 67 | 880b175516ce5f3e9edbb0b6fe7b50820c332026 | 631 | kjob | Apache License 2.0 |
Mobile/Demos/TicTacToe/android/app/src/main/java/palbp/laboratory/demos/tictactoe/game/play/ui/BoardView.kt | palbp | 463,200,783 | false | {"Kotlin": 793883, "C": 16710, "Assembly": 891, "Dockerfile": 610, "Swift": 594, "Makefile": 383} | package palbp.laboratory.demos.tictactoe.game.play.ui
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import andro... | 1 | Kotlin | 0 | 5 | 9067753258a6a71bcd79cd59401edd58df66db71 | 2,722 | laboratory | MIT License |
protocol/src/main/kotlin/com/github/traderjoe95/mls/protocol/tree/Operations.kt | Traderjoe95 | 757,448,383 | false | {"Kotlin": 1143520} | @file:Suppress("kotlin:S1481")
package com.github.traderjoe95.mls.protocol.tree
import arrow.core.raise.Raise
import arrow.core.raise.nullable
import com.github.traderjoe95.mls.protocol.crypto.ICipherSuite
import com.github.traderjoe95.mls.protocol.error.IsSameClientError
import com.github.traderjoe95.mls.protocol.er... | 0 | Kotlin | 0 | 1 | 70bd7110b08713ae9425bbad6e6da13fa6fed8f3 | 6,360 | mls-kotlin | MIT License |
kotlin/src/com/daily/algothrim/leetcode/XorQueries.kt | idisfkj | 291,855,545 | false | {"Kotlin": 552877, "Java": 40553} | package com.daily.algothrim.leetcode
/**
* 1310. 子数组异或查询
*
* 有一个正整数数组 arr,现给你一个对应的查询数组 queries,其中 queries[i] = [Li, Ri]。
*
* 对于每个查询 i,请你计算从 Li 到 Ri 的 XOR 值(即 arr[Li] xor arr[Li+1] xor ... xor arr[Ri])作为本次查询的结果。
*
* 并返回一个包含给定查询 queries 所有结果的数组。
*/
class XorQueries {
companion object {
@JvmStatic
... | 0 | Kotlin | 16 | 93 | 0de4209a2374ccdd619d62a64f715ce1065eb5f4 | 1,419 | daily_algorithm | Apache License 2.0 |
app/src/test/kotlin/no/nav/aap/CreateMermaidDiagram.kt | navikt | 518,015,555 | false | null | package no.nav.aap
import io.micrometer.core.instrument.simple.SimpleMeterRegistry
import no.nav.aap.app.topology
import no.nav.aap.dto.kafka.SykepengedagerKafkaDto
import no.nav.aap.kafka.streams.topology.Mermaid
import org.apache.kafka.clients.producer.MockProducer
import org.junit.jupiter.api.Test
import java.io.Fi... | 1 | Kotlin | 0 | 0 | 0235733a7754289792bd48d1817bf48a6250fb5f | 928 | aap-sykepengedager | MIT License |
parser/src/test/java/com/jayasuryat/mendable/parser/impl/ComposableTabularReportFileParserImplTest.kt | jayasuryat | 573,750,182 | false | {"Kotlin": 182007} | /*
* 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 | 6 | 186 | 097de7c18987788ea7fd106e6ca551d073613df8 | 2,252 | mendable | Apache License 2.0 |
Android/app/src/main/java/com/routine/data/model/Todo.kt | instinctools | 240,461,606 | false | {"Swift": 84130, "Kotlin": 55452, "JavaScript": 47195, "Dart": 24609, "Objective-C": 4200, "Ruby": 2844, "Java": 2615, "Starlark": 1910} | package com.routine.data.model
import android.graphics.Color
import com.routine.common.calculateTargetDate
import com.routine.data.db.entity.TodoEntity
import com.routine.common.pickColorBetween
import com.routine.common.prettyPeriod
import org.joda.time.DateTime
data class Todo(
val id: String,
val t... | 7 | Swift | 1 | 4 | c421772adfc0ceaa0765cd8d6b966769595d0d28 | 1,874 | routine | Apache License 2.0 |
components/src/androidMain/kotlin/com/alexrdclement/uiplayground/components/MediaControlBar.android.kt | alexrdclement | 661,077,963 | false | {"Kotlin": 224028, "Swift": 900} | package com.alexrdclement.uiplayground.components
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.tooling.preview.Preview
impor... | 0 | Kotlin | 0 | 0 | a99ee143215098889afaf4fa97d3399f9dc65383 | 1,413 | UiPlayground | Apache License 2.0 |
core/data/src/main/java/org/the_chance/honeymart/data/source/remote/models/WishListDto.kt | TheChance101 | 647,400,117 | false | {"Kotlin": 1218713} | package org.the_chance.honeymart.data.source.remote.models
import com.google.gson.annotations.SerializedName
data class WishListDto(
@SerializedName("id")
val productId: Long? = null,
@SerializedName("name")
val name: String? = null,
@SerializedName("price")
val price: Double? = null,
@Ser... | 3 | Kotlin | 7 | 21 | 50200e0ec0802cdadc282b09074a19c96df3220c | 453 | Honey-Mart-Android-Client | Apache License 2.0 |
io/avro/src/test/kotlin/io/bluetape4k/avro/AbstractAvroTest.kt | debop | 625,161,599 | false | {"Kotlin": 7504333, "HTML": 502995, "Java": 2273, "JavaScript": 1351, "Shell": 1301, "CSS": 444, "Dockerfile": 121, "Mustache": 82} | package io.bluetape4k.avro
import io.bluetape4k.junit5.faker.Fakers
import io.bluetape4k.logging.KLogging
abstract class AbstractAvroTest {
companion object: KLogging() {
@JvmStatic
val faker = Fakers.faker
}
}
| 0 | Kotlin | 0 | 1 | ce3da5b6bddadd29271303840d334b71db7766d2 | 239 | bluetape4k | MIT License |
src/main/kotlin/us/frollo/frollosdk/model/coredata/cdr/CDRPermission.kt | frollous | 261,670,220 | false | null | package us.frollo.frollosdk.model.coredata.cdr
import com.google.gson.annotations.SerializedName
import us.frollo.frollosdk.model.IAdapterModel
/** Represent a CDR permission (Ex: Transaction Details) */
data class CDRPermission(
/** The ID of the permission */
@SerializedName("id") val permissionId: String,... | 6 | null | 0 | 2 | 0d616cba73516453ed1183d903521204d871df85 | 766 | frollo-android-sdk | Apache License 2.0 |
src/commonTest/kotlin/net/henryhc/redstone/reflection/types/ReferenceTypeTest.kt | henryhchchc | 519,921,422 | false | {"Kotlin": 99384, "Java": 790} | package net.henryhc.redstone.reflection.types
import net.henryhc.redstone.reflection.elements.references.DanglingTypeReference
import net.henryhc.redstone.reflection.elements.types.ObjectType
import net.henryhc.redstone.reflection.elements.types.ClassType
import net.henryhc.redstone.reflection.elements.types.Reference... | 0 | Kotlin | 0 | 2 | dfeb1f098a77d739b35dfb7427469f2f010ce5d6 | 1,442 | redstone-kt | MIT License |
code/app/src/main/java/com/istudio/media3/data/Tracks.kt | devrath | 789,075,516 | false | {"Kotlin": 44509} | package com.istudio.media3.data
import com.istudio.media3.demos.audio.model.TrackItem
interface Tracks {
fun trackList() : List<TrackItem>
} | 0 | Kotlin | 0 | 0 | 4a27cca9d9a8c4cead27c82f1f77cf5d6493750f | 146 | MediaAlchemySuite | Apache License 2.0 |
app/src/main/java/com/tanjiajun/pagingdemo/ui/NetworkStateAdapter.kt | TanJiaJunBeyond | 389,342,355 | false | null | package com.tanjiajun.pagingdemo.ui
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.paging.LoadState
import androidx.paging.LoadStateAdapter
import androidx.recyclerview.widget.RecyclerView
import com.tanjiajun.paging... | 0 | Kotlin | 0 | 1 | 2ad76bc3e0edf18f1dca8da09a00c7c9a26c3573 | 1,596 | PagingDemo | Apache License 2.0 |
game-data/src/main/java/io/github/japskiddin/sudoku/game_data/Mappers.kt | Japskiddin | 766,410,608 | false | {"Kotlin": 17674} | package io.github.japskiddin.sudoku.game_data
import io.github.japskiddin.sudoku.datastore.GameLevelDSO
import io.github.japskiddin.sudoku.game_data.models.GameLevel
internal fun GameLevelDSO.toGameLevel(): GameLevel {
TODO("Not implemented")
} | 0 | Kotlin | 0 | 0 | ce7cbd70bf71e7a663cc0611ed18654e4740a10c | 250 | SudokuGame | Apache License 2.0 |
app/src/main/java/com/bazai/mvvm_practice/data/db/SchoolDatabase.kt | BazaiHassan | 731,991,091 | false | {"Kotlin": 20458} | package com.bazai.mvvm_practice.data.db
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.bazai.mvvm_practice.data.model.Student
import com.bazai.mvvm_practice.utils.Constants.DATABASE_NAME
@Database(entities = [Student::class], version... | 0 | Kotlin | 0 | 0 | 5e9404ef9182b28ade7b88f5e0f4b6a71d2f7626 | 442 | mvvm-di-room-retroft | MIT License |
kmongo-annotation-processor/target/generated-sources/kapt/test/org/litote/kmongo/model/InternalDataClass_.kt | emrul | 156,459,778 | true | {"Kotlin": 981195, "Java": 1657, "Shell": 177} | package org.litote.kmongo.model
import kotlin.Long
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Collection
import kotlin.collections.Map
import kotlin.reflect.KProperty1
import org.litote.kmongo.property.KCollectionPropertyPath
import org.litote.kmongo.property.KMapPropertyPath
import org.lito... | 0 | Kotlin | 0 | 0 | 92c26ca8d0e36a1fefb708104301411d2f052e11 | 1,872 | kmongo | Apache License 2.0 |
app/src/main/java/com/qisan/wanandroid/vm/WxChatChildViewModel.kt | Jeremyzwc | 493,134,082 | false | {"Kotlin": 298769} | package com.qisan.wanandroid.vm
import androidx.lifecycle.LiveData
import androidx.lifecycle.asLiveData
import androidx.lifecycle.viewModelScope
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.PagingData
import androidx.paging.cachedIn
import com.qisan.wanandroid.datasource.Squa... | 0 | Kotlin | 11 | 74 | 785edb5d407fb845fbeab049e3f8542e6fc7cdce | 827 | WanAndroidAppKotlinMVVM | Apache License 2.0 |
engine/src/commonMain/kotlin/mogot/gl/TestShader.kt | caffeine-mgn | 223,796,620 | false | null | package mogot.gl
fun getNoColorShader(gl:GL):Shader {
return Shader(gl,
vertex =
"""#version 450 core
layout (location = 0) in vec2 aPos;
layout (location = 2) in vec2 aTexCoords;
out vec2 TexCoords;
void main()
... | 6 | Kotlin | 0 | 4 | e673acfcb20e2d62d8e68c43d395731bd9d9d882 | 580 | mogot | Apache License 2.0 |
gi/src/commonMain/kotlin/org/anime_game_servers/multi_proto/gi/data/dungeon/entry/DailyDungeonEntryInfo.kt | Anime-Game-Servers | 642,871,918 | false | {"Kotlin": 679531} | package org.anime_game_servers.multi_proto.gi.data.dungeon.entry
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.Version.*
import org.anime_game_servers.core.base.annotations.proto.CommandType
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@A... | 1 | Kotlin | 3 | 6 | b342ff34dfb0f168a902498b53682c315c40d44e | 584 | anime-game-multi-proto | MIT License |
app/src/main/java/me/blog/korn123/easydiary/adapters/TimelineItemAdapter.kt | WAining | 217,524,917 | true | {"Kotlin": 583300} | package me.blog.korn123.easydiary.adapters
import android.app.Activity
import android.content.Context
import android.graphics.Typeface
import android.media.Image
import android.text.SpannableString
import android.text.style.StyleSpan
import android.util.Log
import android.view.View
import android.view.ViewGroup
import... | 0 | null | 0 | 0 | 2e83fc637cae8096c46c3d55e9675fb59aaf046b | 5,926 | aaf-easydiary | Creative Commons Attribution 3.0 Unported |
src/main/kotlin/hk/edu/polyu/comp2411/assignment/entity/UserBaseEntity.kt | stevefan1999 | 220,017,650 | false | null | package hk.edu.polyu.comp2411.assignment.entity
import hk.edu.polyu.comp2411.assignment.entity.enum.Gender
import java.time.LocalDate
import javax.persistence.*
@Entity(name = "UserBaseEntity")
@Table(name = "users")
@Inheritance(strategy = InheritanceType.JOINED)
abstract class UserBaseEntity {
@Id
@Column(n... | 0 | Kotlin | 0 | 0 | c2148b52646ce6e94439cb5fde3d4e50c9558e9f | 1,682 | COMP2411_Assignment2 | The Unlicense |
app/src/main/java/com/jiahaoliuliu/googlemapsroute/DestinationFragment.kt | jiahaoliuliu | 255,250,593 | false | null | package com.jiahaoliuliu.googlemapsroute
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import com.google.android.gms.maps.CameraUpdateFactory
import com.google.android.gms.maps... | 0 | Kotlin | 0 | 0 | fcb3526d9c1e340dda7eab72bee53b625752aa9c | 7,675 | GoogleMapsRoute | Apache License 2.0 |
src/main/kotlin/com/plohar/kamailio/api/vo/in/uacreg/UacRegDataInVo.kt | pintulohargcetts | 823,589,503 | false | {"Kotlin": 104534, "Shell": 837, "Dockerfile": 527} | /*
* 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
* dis... | 0 | Kotlin | 0 | 5 | 3762c2ba1ba49762bfecac2f6eed658359b84632 | 5,429 | kamailio-modules-api | Apache License 2.0 |
test-case-factory/src/test/java/com/barteklipinski/testcasefactory/integration/IntegrationTest.kt | blipinsk | 439,698,827 | false | null | package com.barteklipinski.testcasefactory.integration
import com.barteklipinski.testcasefactory.*
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.runners.JUnit4
import strikt.api.expectThat
import strikt.assertions.any
import strikt.assertions.hasSize
import strikt.assertions.isEqualTo
@RunWit... | 0 | Kotlin | 0 | 3 | 9820d6ed81cfa9cd595a45cd0c600afe89d2d6e1 | 34,321 | test-case-factory | Apache License 2.0 |
solar/src/main/java/com/chiksmedina/solar/lineduotone/medicine/JarOfPills.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.broken.medicine
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.StrokeCap.Companion.... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 5,256 | SolarIconSetAndroid | MIT License |
src/commonTest/kotlin/piacenti/dslmaker/dsl/HighlighterTest.kt | piacenti | 346,152,697 | false | {"Kotlin": 508046, "ANTLR": 11207, "JavaScript": 44} | package piacenti.dslmaker.dsl
import piacenti.dslmaker.GenericParser2
import piacenti.dslmaker.decodeHtml
import piacenti.dslmaker.dsl.XMLToken.ELEMENT
import piacenti.dslmaker.dsl.XMLToken.START
import piacenti.dslmaker.encodeHtml
import piacenti.dslmaker.structures.ASTNode
import piacenti.dslmaker.validateEquals
imp... | 5 | Kotlin | 0 | 2 | 646378862e296284be8a0cc4d3849e3dfd37fd77 | 6,840 | dsl-maker | Apache License 2.0 |
src/test/kotlin/year2023/day25/ProblemTest.kt | Ddxcv98 | 573,823,241 | false | {"Kotlin": 164514} | package year2023.day25
import kotlin.test.Test
import kotlin.test.assertEquals
class ProblemTest {
private val problem = Problem()
@Test
fun part1() {
assertEquals(54, problem.part1())
}
@Test
fun part2() {
assertEquals(0, problem.part2())
}
}
| 0 | Kotlin | 0 | 0 | 0164fa1eca1660fcaeb15a9e17e5ce779d2f7b61 | 292 | advent-of-code | The Unlicense |
runner/src/main/kotlin/com/daylifecraft/minigames/minigames/MiniGamesInstancesCleaner.kt | daylifecraft | 786,506,082 | false | {"Kotlin": 565827, "Java": 16608, "Dockerfile": 751} | package com.daylifecraft.minigames.minigames
import com.daylifecraft.common.TaskManager.addTask
import java.util.concurrent.TimeUnit
private const val EXECUTION_PERIOD = 60L
class MiniGamesInstancesCleaner {
fun setup() {
addTask(
initialDelay = 1,
period = EXECUTION_PERIOD,
TimeUnit.SECONDS,... | 1 | Kotlin | 1 | 6 | 122cf57dae33768f0370007ce88745a6d67c4788 | 391 | minigames | Apache License 2.0 |
app/src/main/java/ir/fatemelyasii/weather/MyApp.kt | FatemehElyasi | 774,910,355 | false | {"Kotlin": 8675} | package ir.fatemelyasii.weather
import android.app.Application
import okhttp3.OkHttpClient
import org.koin.core.context.startKoin
import org.koin.dsl.module
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
class MyApp:Application() {
override fun onCreate() {
super.onCrea... | 0 | Kotlin | 0 | 0 | c9a693f4a289a410a0908cda7729e77e9589ff18 | 888 | Weather_App | MIT License |
app/src/main/java/com/mw/beam/beamwallet/core/ExchangeManager.kt | BeamMW | 156,687,787 | false | {"Kotlin": 1454975, "Java": 16801, "Shell": 4651, "IDL": 1} | package com.mw.beam.beamwallet.core
import com.mw.beam.beamwallet.core.entities.Currency
import com.mw.beam.beamwallet.core.entities.ExchangeRate
import com.mw.beam.beamwallet.core.helpers.PreferencesManager
class ExchangeManager {
companion object {
private var INSTANCE: ExchangeManager? = null
... | 4 | Kotlin | 21 | 36 | 7e9d9c0df49f3cb35bb58152c285cc7b618a28ba | 1,803 | android-wallet | Apache License 2.0 |
src/main/kotlin/org/cufy/ktor_graphql_template/enumeration/Roles.kt | cufyorg | 512,802,532 | false | {"Kotlin": 28413} | package org.cufy.ktor_graphql_template.enumeration
import org.cufy.ktor_graphql_template.model.Accessible
import org.cufy.openperm.Role
// TODO: Configure the kinds of roles that a privilege
// can validate.
/**
* A role to check if the privilege has read
* rights to some document.
*/
data class ReadRole(
... | 0 | Kotlin | 0 | 2 | 689f5965dcbac707aa99a5dee1b45d428358fe87 | 938 | ktor-graphql-template | Apache License 2.0 |
src/commonMain/kotlin/com/twelfthmile/kyuga/expectations/L.kt | messai-engineering | 242,071,355 | false | null | package com.twelfthmile.kyuga.expectations
expect fun log(msg: String) | 4 | Kotlin | 0 | 0 | 308f0f89bdf02424ae236e56b38f722ca47b063d | 71 | Kyuga | MIT License |
platform/src/test/kotlin/researchstack/backend/application/service/dashboard/GetChartServiceTest.kt | S-ResearchStack | 520,365,362 | false | {"Kotlin": 1297198, "Dockerfile": 202, "Shell": 59} | package researchstack.backend.application.service.dashboard
import io.mockk.coEvery
import io.mockk.mockk
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.runTest
import org.junit.jupiter.api.Tag
import org.junit.jupiter.api.Test
import researchstack.backend.DashboardTestUtil
import r... | 1 | Kotlin | 9 | 29 | 214dc84476e2de6948c3fc5225cebca0707bfb91 | 1,792 | backend-system | Apache License 2.0 |
app/src/main/java/com/shicheeng/copymanga/data/MainTopicDataModel.kt | shizheng233 | 475,870,275 | false | {"Kotlin": 796959, "Java": 9136} | package com.shicheeng.copymanga.data
data class MainTopicDataModel(
val name: String,
val type: Int,
val brief: String,
val pathWord: String,
val coverUrl: String,
val datetimeCreated: String,
val period: String,
val journal: String,
) | 15 | Kotlin | 0 | 278 | 6057a27ca3d74daf5947b6c1c3974071cd9d186c | 268 | CopyMangaJava | MIT License |
pluto-plugins/plugins/layout-inspector/lib/src/main/java/com/pluto/plugins/layoutinspector/internal/inspect/canvas/GridCanvas.kt | androidPluto | 390,471,457 | false | {"Kotlin": 744352, "Shell": 646} | package com.pluto.plugins.layoutinspector.internal.inspect.canvas
import android.graphics.Canvas
import android.graphics.Paint
import android.view.View
import com.pluto.plugins.layoutinspector.R
import com.pluto.utilities.extensions.color
import com.pluto.utilities.extensions.dp2px
import com.pluto.utilities.settings.... | 23 | Kotlin | 64 | 657 | 5562cb7065bcbcf18493820e287d87c7726f630b | 1,413 | pluto | Apache License 2.0 |
shared/src/commonMain/kotlin/com/somabits/spanish/regularity/RegularityChecker.kt | chiljamgossow | 581,781,635 | false | null | package com.somabits.spanish.regularity
import com.somabits.spanish.verb.Conjugation
import com.somabits.spanish.verb.VerbForm
class ConjugationRegularityChecker(
val conjugation: Conjugation,
private val regularConjugation: Conjugation? = conjugation.findCorrespondingRegularConjugation()
) {
val isRegula... | 0 | Kotlin | 0 | 0 | c7ad185c72a01cd0723427ef9d757f07284f5a7a | 5,930 | Spanish | MIT License |
app/src/main/java/com/soneso/lumenshine/model/wrapper/UserWrapper.kt | Soneso | 144,008,654 | false | null | package com.soneso.lumenshine.model.wrapper
import com.soneso.lumenshine.model.entities.RegistrationStatus
import com.soneso.lumenshine.networking.dto.auth.ConfirmTfaResponse
import com.soneso.lumenshine.networking.dto.auth.ConfirmTfaSecretChangeResponse
import com.soneso.lumenshine.networking.dto.auth.GetRegistration... | 0 | Kotlin | 2 | 1 | a088d0107dbe769c2814b199dddea0177a9aabec | 1,027 | lumenshine-android-wallet | Apache License 2.0 |
src/main/kotlin/io/github/sunshinewzy/sunstcore/utils/SMessager.kt | Sunshine-wzy | 511,270,536 | false | null | package io.github.sunshinewzy.sunstcore.utils
import org.bukkit.ChatColor
import org.bukkit.entity.Player
import org.bukkit.plugin.java.JavaPlugin
class SMessager(val name: String) {
constructor(plugin: JavaPlugin, color: ChatColor = ChatColor.WHITE) : this(color.toString() + plugin.name)
fun s... | 0 | Kotlin | 0 | 0 | 920d4ccd6e242a614a646f64c1558358b8d11639 | 410 | SunSTCore | Creative Commons Zero v1.0 Universal |
bidon/src/main/java/org/bidon/sdk/auction/usecases/BidRequestUseCase.kt | bidon-io | 654,165,570 | false | null | package org.bidon.sdk.auction.usecases
import org.bidon.sdk.adapter.DemandId
import org.bidon.sdk.auction.AdTypeParam
import org.bidon.sdk.auction.models.BiddingResponse
/**
* Created by Aleksei Cherniaev on 31/05/2023.
*/
internal interface BidRequestUseCase {
suspend fun invoke(
adTypeParam: AdTypePar... | 0 | Kotlin | 0 | 0 | 440f8824115bd71f949ce6aac075d830af89eca3 | 553 | bidon_sdk_android | Apache License 2.0 |
shared/src/commonMain/kotlin/co/touchlab/droidcon/domain/repository/impl/SqlDelightRoomRepository.kt | touchlab | 140,843,272 | false | null | package co.touchlab.droidcon.domain.repository.impl
import co.touchlab.droidcon.db.RoomQueries
import co.touchlab.droidcon.domain.entity.Room
import co.touchlab.droidcon.domain.repository.RoomRepository
import co.touchlab.droidcon.domain.repository.impl.BaseRepository
import com.squareup.sqldelight.runtime.coroutines.... | 2 | null | 77 | 931 | 100f83d3c6ad66c23321cfdceef84139cbba89fd | 1,622 | DroidconKotlin | Apache License 2.0 |
app/src/main/java/com/bed/seller/presentation/ui/dashboard/offers/viewholder/ImageOfferViewHolder.kt | bed72 | 674,410,644 | false | {"Kotlin": 130793, "Shell": 492} | package com.bed.seller.presentation.ui.dashboard.offers.viewholder
import android.view.ViewGroup
import android.widget.ImageView
import android.view.LayoutInflater
import com.bed.seller.databinding.ItemImageComponentBinding
import com.bed.seller.presentation.commons.loaders.ImageLoader
import com.bed.seller.presenta... | 0 | Kotlin | 0 | 1 | 6a0e120a877d678263d61466cdf2733eb58216d9 | 1,120 | Hogwarts | MIT License |
core/src/main/java/io/github/keep2iron/pejoy/ui/AlbumFragment.kt | keep2iron | 191,921,434 | false | null | package io.github.keep2iron.pejoy.ui
import android.Manifest
import android.annotation.TargetApi
import android.app.Activity
import android.app.Application
import android.content.Intent
import android.content.pm.PackageManager
import android.graphics.PorterDuff
import android.graphics.drawable.GradientDrawable
import ... | 0 | Kotlin | 2 | 7 | 0f9ea9515fd2d04dea777ab65eb2576e98de0c81 | 14,949 | pejoy | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.