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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
api/src/main/kotlin/com/mattmx/ktgui/commands/declarative/DeclarativeCommandWrapper.kt | Matt-MX | 530,062,987 | false | {"Kotlin": 255573, "Java": 8369} | package com.mattmx.ktgui.commands.declarative
import com.mattmx.ktgui.commands.declarative.invocation.StorageCommandContext
import com.mattmx.ktgui.commands.declarative.invocation.SuggestionInvocation
import com.mattmx.ktgui.commands.wrapper.CommandWrapper
import org.bukkit.command.CommandSender
import java.util.*
cl... | 3 | Kotlin | 3 | 24 | fdc34fce5eeb41f177f890040a58d6c174168434 | 1,351 | KtPaperGui | Apache License 2.0 |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/StringTrim.kt | Danilo-Araujo-Silva | 271,904,885 | false | null | package com.daniloaraujosilva.mathemagika.library.common.mathematica.functions
import com.daniloaraujosilva.mathemagika.library.common.mathematica.MathematicaFunction
/** \! ".
*```` ... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 4,339 | mathemagika | Apache License 2.0 |
mobilepayments/src/main/java/com/begateway/mobilepayments/ui/intefaces/OnActionbarSetup.kt | begateway | 205,831,098 | false | {"Kotlin": 148511} | package com.begateway.mobilepayments.ui.intefaces
import androidx.appcompat.widget.Toolbar
interface OnActionbarSetup {
fun addToolBar(
toolbar: Toolbar,
title: String?,
onBackPressedAction: (() -> Unit)?
)
} | 1 | Kotlin | 3 | 1 | 3487f3fd9ef17be3197e8e15edf80a452b41f8c5 | 242 | begateway-android-sdk | MIT License |
app/src/full/java/me/tagavari/airmessage/flavor/PlaySecurityBridge.kt | airmessage | 326,065,827 | false | null | package me.tagavari.airmessage.flavor
import android.app.Activity
import android.content.Context
import android.content.Intent
import com.google.android.gms.common.GoogleApiAvailability
import com.google.android.gms.security.ProviderInstaller
import com.google.android.gms.security.ProviderInstaller.ProviderInstallList... | 42 | null | 20 | 156 | 0758ea0273f942881fd8de605aa349b40a1c404c | 1,045 | airmessage-android | Apache License 2.0 |
view/src/main/java/com/tunjid/androidx/view/util/SpringProperties.kt | tunjid | 89,848,117 | false | {"Kotlin": 436389, "Java": 77823} | package com.tunjid.androidx.view.util
import android.annotation.SuppressLint
import android.view.Gravity
import android.view.View
import android.view.ViewGroup
import androidx.core.view.marginBottom
import androidx.core.view.marginLeft
import androidx.core.view.marginRight
import androidx.core.view.marginTop
import an... | 5 | Kotlin | 60 | 595 | efdc0dcf5559984a36a8bed4cff6257f20e6e07d | 2,987 | Android-Extensions | MIT License |
wire-grpc-server-generator/src/test/java/com/squareup/wire/kotlin/grpcserver/MethodDescriptorTest.kt | square | 12,274,147 | false | null | /*
* Copyright (C) 2021 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 163 | null | 621 | 4,142 | 9df9f57a4b7a771a7a3baf7600cc75b64d4a64f5 | 1,863 | wire | Apache License 2.0 |
SingleModuleApp/app/src/main/java/com/github/yamamotoj/singlemoduleapp/package57/Foo05700.kt | yamamotoj | 163,851,411 | false | {"Text": 1, "Ignore List": 30, "Markdown": 1, "Gradle": 34, "Java Properties": 11, "Shell": 6, "Batchfile": 6, "Proguard": 22, "Kotlin": 36021, "XML": 93, "INI": 1, "Java": 32, "Python": 2} | package com.github.yamamotoj.singlemoduleapp.package57
import com.github.yamamotoj.singlemoduleapp.package56.Foo05699
class Foo05700 {
fun method0() {
Foo05699().method5()
}
fun method1() {
method0()
}
fun method2() {
method1()
}
fun method3() {
method2()... | 0 | Kotlin | 0 | 9 | 2a771697dfebca9201f6df5ef8441578b5102641 | 419 | android_multi_module_experiment | Apache License 2.0 |
android-uitests/testSrc/com/android/tools/idea/tests/gui/compose/ComposePreviewFlagDisabledTest.kt | JetBrains | 60,701,247 | false | null | /*
* 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... | 0 | null | 187 | 751 | 16d17317f2c44ec46e8cd2180faf9c349d381a06 | 2,264 | android | Apache License 2.0 |
PennMobile/src/main/java/com/pennapps/labs/pennmobile/classes/FitnessRequest.kt | pennlabs | 16,791,473 | false | {"Gradle": 3, "XML": 248, "Markdown": 2, "Java Properties": 2, "Shell": 1, "Text": 4, "Ignore List": 2, "Batchfile": 1, "INI": 2, "JSON": 3, "Kotlin": 164, "Java": 10, "HTML": 1, "YAML": 1} | package com.pennapps.labs.pennmobile.classes
class FitnessRequest(favoriteFitnessRooms: ArrayList<Int>) {
var rooms: ArrayList<Int> = favoriteFitnessRooms
} | 0 | Kotlin | 5 | 33 | c65247bc2d56f59c329381029d308f89831dbedd | 161 | penn-mobile-android | MIT License |
app/src/main/java/org/wikipedia/analytics/DailyStatsFunnel.kt | dbrant | 590,289,323 | true | {"Kotlin": 2444226, "Java": 125027, "Python": 22955, "Jinja": 533, "Shell": 503} | package org.wikipedia.analytics
import android.content.Context
import android.content.pm.PackageManager
import org.json.JSONObject
import org.wikipedia.WikipediaApp
import org.wikipedia.auth.AccountUtil
import org.wikipedia.json.JsonUtil
import java.util.concurrent.TimeUnit
class DailyStatsFunnel(app: WikipediaApp) :... | 1 | null | 1 | 2 | 5980451d470f952e083c1bb02b227d89503375ac | 1,433 | wikipedia | Apache License 2.0 |
notebooks/notebook-ui/src/org/jetbrains/plugins/notebooks/ui/jupyterToolbar/JupyterToolbar.kt | StingNevermore | 215,873,627 | false | {"Text": 9369, "INI": 518, "YAML": 419, "Ant Build System": 11, "Batchfile": 34, "Dockerfile": 9, "Shell": 633, "Markdown": 741, "Ignore List": 143, "Git Revision List": 1, "Git Attributes": 11, "EditorConfig": 260, "XML": 7809, "SVG": 4412, "Kotlin": 58074, "Java": 83551, "HTML": 3783, "Java Properties": 215, "Gradle"... | package org.jetbrains.plugins.notebooks.ui.jupyterToolbar
import com.intellij.openapi.actionSystem.ActionGroup
import com.intellij.openapi.actionSystem.ActionPlaces
import com.intellij.openapi.actionSystem.impl.ActionToolbarImpl
import com.intellij.ui.JBColor
import com.intellij.ui.RoundedLineBorder
import com.intelli... | 1 | null | 1 | 1 | da982277a1db650154baf710b44f43a4b167413c | 1,472 | intellij-community | Apache License 2.0 |
ComponentImpl/src/main/java/com/xiaojinzi/component/cache/Cache.kt | xiaojinzi123 | 574,764,526 | false | {"Kotlin": 479775, "Java": 27180} | package com.xiaojinzi.component.cache
/**
* 用于缓存框架中所必需的组件,开发者可通过 [CacheType] 为框架提供缓存策略
* 开发者也可以用于自己日常中的使用
*/
interface Cache<K, V> {
interface Factory<K, V> {
/**
* Returns a new cache
*
* @param type 框架中需要缓存的模块类型
* @return [Cache]
*/
fun build(type... | 3 | Kotlin | 11 | 99 | b575c031f91acadc0debbcc96cf96d8235026116 | 1,626 | KComponent | Apache License 2.0 |
plugins/kotlin/code-insight/postfix-templates/testData/expansion/try/javaException.after.kt | ingokegel | 72,937,917 | true | null | import java.lang.Integer.parseInt
import java.lang.NumberFormatException
fun test() {
try {
parseInt("5")
} catch (e: NumberFormatException) {
throw e
}
} | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 183 | intellij-community | Apache License 2.0 |
core/src/test/kotlin/org/ocpsoft/prettytime/PrettyTimeI18n_ET_Test.kt | mverse | 172,166,534 | false | {"Gradle Kotlin DSL": 4, "Text": 2, "Maven POM": 2, "INI": 1, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Kotlin": 118, "Java": 1, "Java Properties": 1} | package org.ocpsoft.prettytime
import org.junit.Assert.assertEquals
import java.util.ArrayList
import java.util.Date
import java.util.Locale
import org.junit.Before
import org.junit.Test
import org.ocpsoft.prettytime.units.JustNow
class PrettyTimeI18n_ET_Test {
private var locale: Locale? = null
@Before
fun... | 1 | null | 1 | 1 | 00b006a5a2a8294f6a5aeccc302f85c79bb8879f | 9,064 | prettytime | Apache License 2.0 |
atomicfu/src/commonTest/kotlin/bytecode_test/PrivateTopLevelReflectionTest.kt | Kotlin | 99,576,820 | false | {"Kotlin": 310810, "Shell": 762, "Java": 487} | @file:JvmName("PrivateTopLevel")
package bytecode_test
import kotlinx.atomicfu.atomic
import kotlin.jvm.JvmName
private val b = atomic(2)
class PrivateTopLevelReflectionTest {
fun update() {
b.compareAndSet(0, 42)
}
} | 57 | Kotlin | 58 | 917 | b94c6bd887ec48a5b172cacc0a1dac3f76c4fdbb | 237 | kotlinx-atomicfu | Apache License 2.0 |
app/src/main/java/com/celzero/bravedns/database/ODoHEndpointRepository.kt | celzero | 270,683,546 | false | {"Kotlin": 2538717, "Java": 7245} | /*
* Copyright 2023 RethinkDNS and its authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 361 | Kotlin | 148 | 2,928 | d618c0935011642592e958d2b420d5d154e0cd79 | 1,479 | rethink-app | Apache License 2.0 |
.teamcity/settings.kts | gradle | 5,220,824 | false | {"Java": 300738, "C++": 88227, "Groovy": 69373, "C": 5237} | /*
* Copyright 2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 40 | Java | 39 | 117 | 3809c7fc5b54b8c78f6f6a5c885c225d1ead7008 | 2,600 | native-platform | Apache License 2.0 |
idea-plugin/src/main/kotlin/com/chutneytesting/idea/ChutneyJsonSchemaV2FileProvider.kt | owerfelli | 791,217,559 | true | {"Markdown": 64, "Batchfile": 2, "Shell": 2, "Gradle Kotlin DSL": 6, "INI": 5, "Java": 984, "HTML": 64, "JavaScript": 6, "Kotlin": 241, "SQL": 4, "Java Properties": 1, "Dockerfile": 3, "CSS": 1, "TypeScript": 250} | package com.chutneytesting.idea
import com.intellij.openapi.application.runReadAction
import com.intellij.openapi.diagnostic.Logger
import com.intellij.openapi.project.Project
import com.intellij.openapi.vfs.VfsUtil
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.openapi.vfs.VirtualFileManager
import c... | 0 | null | 0 | 0 | a7b0bf69921fd29f846763ba4e67e271dbfaad13 | 1,558 | chutney | Apache License 2.0 |
easy/kotlin/c0053_217_contains-duplicate/00_leetcode_0053.kt | drunkwater | 127,843,545 | false | null | // DRUNKWATER TEMPLATE(add description and prototypes)
// Question Title and Description on leetcode.com
// Function Declaration and Function Prototypes on leetcode.com
//217. Contains Duplicate
//Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appear... | 1 | null | 1 | 1 | 8cc4a07763e71efbaedb523015f0c1eff2927f60 | 513 | leetcode | Ruby License |
android-kotlin/idea-android/testData/android/resourceIntention/kotlinAndroidAddStringResource/innerClassInActivity/expected/main.kt | JetBrains | 60,701,247 | false | null | package com.myapp
import android.app.Activity
class MyActivity: Activity() {
inner class Helper {
fun a(): String = "q"
inner class HelperOfHelper {
fun b(): String = getString(R.string.resource_id)
}
}
} | 0 | Kotlin | 220 | 857 | 8d22f48a9233679e85e42e8a7ed78bbff2c82ddb | 251 | android | Apache License 2.0 |
lib_net/src/main/java/com/hzsoft/lib/net/error/mapper/ErrorFactory.kt | zhouhuandev | 346,678,456 | false | null | package com.hzsoft.lib.net.error.mapper
import com.hzsoft.lib.net.error.Error
interface ErrorFactory {
fun getError(errorCode: Int): Error
}
| 0 | null | 53 | 88 | c74e9e5e1059805e4373981633e17616a2328948 | 147 | BaseDemo | Apache License 2.0 |
app/src/main/java/com/google/ar/core/codelabs/scenesemantics/helpers/CodelabView.kt | lucianna | 678,548,918 | true | {"Java Properties": 2, "Gradle": 3, "Shell": 1, "Markdown": 2, "Batchfile": 1, "Text": 1, "Ignore List": 2, "Proguard": 1, "XML": 13, "GLSL": 12, "Kotlin": 7, "Java": 15} | /*
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | null | 0 | 1 | 516fab9c7e229473775afb5ce66ed3f6e7e0b03d | 5,464 | codelab-scene-semantics-geospatial-depth | Apache License 2.0 |
compiler/testData/diagnostics/tests/cast/IsErasedAllowFromOut.kt | gigliovale | 89,726,097 | false | {"Java": 23302590, "Kotlin": 21941511, "JavaScript": 137521, "Protocol Buffer": 56992, "HTML": 49980, "Lex": 18051, "Groovy": 14093, "ANTLR": 9797, "IDL": 7706, "Shell": 5152, "CSS": 4679, "Batchfile": 3721} | fun f(a: MutableList<out Number>) = a is MutableList<out Any>
| 0 | Java | 4 | 6 | ce145c015d6461c840050934f2200dbc11cb3d92 | 62 | kotlin | Apache License 2.0 |
src/main/kotlin/io/unthrottled/amii/discreet/AbstractDiscreetModeListener.kt | ani-memes | 303,354,188 | false | {"Kotlin": 330895, "Java": 45710, "Shell": 207, "Batchfile": 32} | package io.unthrottled.amii.discreet
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.project.ProjectManager
import io.unthrottled.amii.config.Config
import io.unthrottled.amii.config.ConfigListener
import io.unt... | 7 | Kotlin | 14 | 257 | c9a4ef10f6e1a5ce68dc3a007b45cadbc33deed0 | 2,514 | AMII | Apache License 2.0 |
feature_autofill_impl/src/main/kotlin/com/eakurnikov/autoque/autofill/impl/internal/ui/update/UpdatePromptUi.kt | eakurnikov | 208,430,680 | false | null | package com.eakurnikov.autoque.autofill.impl.internal.ui.update
import android.app.Activity
/**
* Created by eakurnikov on 2019-09-14
*/
interface UpdatePromptUi {
val activityContext: Activity
fun finish()
} | 0 | Kotlin | 0 | 1 | 4465eef7368e2c0633b4a47a5d0ec3c0076130ba | 222 | AutoQue | Apache License 2.0 |
feature_autofill_impl/src/main/kotlin/com/eakurnikov/autoque/autofill/impl/internal/ui/update/UpdatePromptUi.kt | eakurnikov | 208,430,680 | false | null | package com.eakurnikov.autoque.autofill.impl.internal.ui.update
import android.app.Activity
/**
* Created by eakurnikov on 2019-09-14
*/
interface UpdatePromptUi {
val activityContext: Activity
fun finish()
} | 0 | Kotlin | 0 | 1 | 4465eef7368e2c0633b4a47a5d0ec3c0076130ba | 222 | AutoQue | Apache License 2.0 |
library/src/main/java/com/pedro/library/srt/SrtStream.kt | pedroSG94 | 79,667,969 | false | {"Java": 1038440, "Kotlin": 655368, "GLSL": 40912} | /*
* Copyright (C) 2023 pedroSG94.
*
* 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... | 224 | Java | 720 | 2,161 | 1a19e743b6c5de536e7f0130a4a0078e434ebad3 | 4,057 | RootEncoder | Apache License 2.0 |
app/src/main/java/me/hufman/androidautoidrive/phoneui/NavIntentActivity.kt | jezikk82 | 214,162,986 | false | {"Git Config": 1, "Gradle": 8, "Java Properties": 2, "Shell": 3, "Text": 1, "Ignore List": 2, "Batchfile": 1, "YAML": 6, "Markdown": 5, "Proguard": 1, "Kotlin": 261, "Java": 2, "XML": 169, "JSON": 3, "INI": 1, "Git Attributes": 1, "SVG": 6, "HTML": 9, "SCSS": 6} | package me.hufman.androidautoidrive.phoneui
import android.animation.ObjectAnimator
import android.graphics.Point
import android.os.Bundle
import android.view.View
import android.view.WindowManager
import android.view.animation.DecelerateInterpolator
import androidx.activity.viewModels
import androidx.appcompat.app.Ap... | 1 | null | 1 | 1 | 0dc1609c2bbd2a6fddebaabc4215f31c5c0b8411 | 3,089 | AndroidAutoIdrive | MIT License |
httpget_test/android/app/src/main/kotlin/com/kkimj/httpgettest/MainActivity.kt | KKimj | 335,965,995 | false | {"Dart": 46391, "JavaScript": 10169, "HTML": 3068, "Ruby": 1354, "Swift": 808, "Kotlin": 255, "Objective-C": 76} | package com.kkimj.httpgettest
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | f6c425d4a23bed24965db409c775b0b09d565754 | 126 | SlientFestival | MIT License |
server/src/main/kotlin/net/horizonsend/ion/server/features/multiblock/starshipweapon/heavy/RocketStarshipWeaponMultiblock.kt | HorizonsEndMC | 461,042,096 | false | null | package net.horizonsend.ion.server.features.multiblock.starshipweapon.heavy
import net.horizonsend.ion.server.features.multiblock.MultiblockShape
import net.horizonsend.ion.server.features.multiblock.starshipweapon.SignlessStarshipWeaponMultiblock
import net.horizonsend.ion.server.features.starship.active.ActiveStarsh... | 23 | null | 36 | 9 | 4c52c237f9ebd4a5bf67b8721a9eb10bb6ff3bdc | 5,116 | Ion | MIT License |
PoliFitnessApp/app/src/main/java/com/uca/polifitnessapp/ui/main/calculator/ui/ValueState.kt | PoliFitness-App | 638,055,292 | false | null | package com.uca.polifitnessapp.ui.main.calculator.ui
data class ValueState(
var value: String = "", // Input del usuario
val error: String? = null, // error si es null
val unitName: String = ""
) {
fun toNumber() = value.toDoubleOrNull()
}
| 0 | Kotlin | 0 | 0 | f034cc0e75e4e3646172c951fb565dafa37dc1ab | 258 | PoliFitnessApp | MIT License |
app/src/main/java/com/yechaoa/wanandroid_kotlin/adapter/ArticleAdapter.kt | imagegithub | 237,267,619 | true | {"Kotlin": 64537} | package com.yechaoa.wanandroid_kotlin.adapter
import android.text.Html
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.yechaoa.wanandroid_kotlin.R
import com.yechaoa.wanandroid_kotlin.bean.ArticleDetail
/**
* Created by yechao on 2020/1/... | 0 | null | 0 | 0 | 72e1da00552e476dad888b1f3392fb559cf27eb6 | 909 | wanandroid_kotlin | Apache License 2.0 |
src/main/kotlin/xyz/jpenilla/announcerplus/command/commands/ParseCommands.kt | jpenilla | 276,753,593 | false | null | /*
* This file is part of AnnouncerPlus, licensed under the MIT License.
*
* Copyright (c) 2020-2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, inclu... | 9 | Kotlin | 5 | 30 | 6bbc5b2d7734ac4d777213ef628ee3f0a8a6d91d | 7,143 | AnnouncerPlus | MIT License |
src/main/kotlin/xyz/jpenilla/announcerplus/command/commands/ParseCommands.kt | jpenilla | 276,753,593 | false | null | /*
* This file is part of AnnouncerPlus, licensed under the MIT License.
*
* Copyright (c) 2020-2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, inclu... | 9 | Kotlin | 5 | 30 | 6bbc5b2d7734ac4d777213ef628ee3f0a8a6d91d | 7,143 | AnnouncerPlus | MIT License |
app/src/main/java/com/voltek/newsfeed/presentation/ui/details/DetailsPresenter.kt | Tisanthan | 136,953,514 | true | {"Kotlin": 130062} | package com.voltek.newsfeed.presentation.ui.details
import com.arellomobile.mvp.InjectViewState
import com.voltek.newsfeed.presentation.base.BasePresenter
import com.voltek.newsfeed.presentation.base.Event
import com.voltek.newsfeed.presentation.entity.ArticleUI
import com.voltek.newsfeed.presentation.navigation.comma... | 0 | Kotlin | 0 | 0 | 78640bd9f2fb2fb4841b3341e635047b929a820b | 1,941 | News-Feed-App | Apache License 2.0 |
src/main/kotlin/ru/alaev/fellowgigachat/chat/persistence/chat/ChatStorage.kt | alaev-dev | 785,830,265 | false | {"Kotlin": 48709, "Shell": 1521, "Dockerfile": 888} | package ru.alaev.fellowgigachat.chat.persistence.chat
import org.springframework.data.domain.Pageable
import ru.alaev.fellowgigachat.domain.ChatMessage
import ru.alaev.fellowgigachat.domain.GroupId
interface ChatStorage {
fun saveMessage(chatMessage: ChatMessage): ChatMessage
fun getMessagesPageable(groupId: ... | 0 | Kotlin | 0 | 3 | 7950815ea163c6576804c7d24f7e1ed424571c11 | 485 | fellow-chat | MIT License |
src/main/kotlin/io/github/magonxesp/booruclient/konachan/KonachanClient.kt | magonxesp | 753,817,659 | false | {"Kotlin": 31666} | package io.github.magonxesp.booruclient.konachan
import io.github.magonxesp.booruclient.Client
import io.github.magonxesp.booruclient.Tag
open class KonachanClient : Client() {
override val baseUrl: String = "https://konachan.net"
class Builder {
private val criteria: MutableMap<String, String> = mutableMapOf()
... | 0 | Kotlin | 0 | 0 | 739d845249b306a28a13b546a128281d22bc0cab | 1,131 | booru-client | MIT License |
presentation/src/main/java/com/yapp/growth/presentation/ui/createPlan/title/TitleContract.kt | YAPP-Github | 475,724,938 | false | {"Kotlin": 517158} | package com.yapp.growth.presentation.ui.createPlan.title
import com.yapp.growth.base.LoadState
import com.yapp.growth.base.ViewEvent
import com.yapp.growth.base.ViewSideEffect
import com.yapp.growth.base.ViewState
class TitleContract {
data class TitleViewState(
val loadState: LoadState = LoadState.SUCCES... | 6 | Kotlin | 0 | 43 | 1dfc20bd4631567ea35def8d2fcb8414139c490d | 1,261 | 20th-Android-Team-1-FE | Apache License 2.0 |
app/src/main/java/cn/cqautotest/sunnybeach/http/api/weather/WeatherApi.kt | anjiemo | 378,095,612 | false | null | package cn.cqautotest.sunnybeach.http.api.weather
import cn.cqautotest.sunnybeach.http.ServiceCreator
import cn.cqautotest.sunnybeach.http.annotation.baseurl.CaiYunBaseUrl
import cn.cqautotest.sunnybeach.model.weather.DailyResponse
import cn.cqautotest.sunnybeach.model.weather.RealtimeResponse
import retrofit2.Call
im... | 0 | null | 18 | 95 | a2402da1cb6af963c829a69d9783053f15d866b5 | 894 | SunnyBeach | Apache License 2.0 |
app/src/main/java/kittoku/osc/preference/custom/common.kt | kittoku | 173,106,265 | false | {"Kotlin": 206581} | package kittoku.osc.preference.custom
import androidx.preference.Preference
import kittoku.osc.preference.OscPrefKey
internal interface OscPreference {
val oscPrefKey: OscPrefKey
val parentKey: OscPrefKey?
val preferenceTitle: String
fun updateView()
}
internal fun <T> T.initialize() where T : Prefe... | 5 | Kotlin | 90 | 352 | 75465d70559e5463647e96d96ec9ef4d7262cffa | 471 | Open-SSTP-Client | MIT License |
src/glureau/kdp/creational/abstractfactory/kotlin/AbstractFactory.kt | glureau | 56,971,247 | false | null | package glureau.kdp.creational.abstractfactory.kotlin
/**
* This is the abstract factory class, grouping together the creational methods
* for each product in the product family. Note that the created products are
* returned with their asbtract interfaces. Modify it as needed!
*/
internal interface AbstractFactory... | 1 | null | 1 | 1 | e7b903640fa3de6974e22e22307f7736029a9924 | 366 | kotlin-design-patterns | The Unlicense |
library_base/src/main/java/com/knight/kotlin/library_base/network/NetworkManager.kt | KnightAndroid | 438,567,015 | false | {"Kotlin": 1520129, "Java": 209228, "HTML": 45916} | package com.knight.kotlin.library_base.network
import android.app.Application
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.net.ConnectivityManager
import android.net.Network
import android.net.NetworkRequest
import android.os.Build
import android.... | 0 | Kotlin | 3 | 6 | d423c9cf863afe8e290c183b250950bf155d1f84 | 4,752 | wanandroidByKotlin | Apache License 2.0 |
app/src/main/java/com/prosabdev/fluidmusic/ui/activities/settings/StorageAccessSettingsActivity.kt | 4kpros | 555,755,264 | false | null | package com.prosabdev.fluidmusic.ui.activities.settings
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.widget.Toast
import android.window.OnBackInvokedDispatcher
import androidx.activity.OnBackPressedCallback
import androidx.activity.result.contract.ActivityResultContract... | 0 | Kotlin | 0 | 0 | 796a34eeba061dbd97d17704b43ff1b49247d2d4 | 10,303 | FluidMusic | Apache License 2.0 |
showcase/src/main/kotlin/com/example/WindowsTab.kt | touitou | 179,586,774 | true | {"Kotlin": 275816, "JavaScript": 33115, "HTML": 9119, "CSS": 156} | package com.example
import pl.treksoft.kvision.form.check.CheckBox.Companion.checkBox
import pl.treksoft.kvision.form.text.TextInput
import pl.treksoft.kvision.form.text.TextInput.Companion.textInput
import pl.treksoft.kvision.form.text.TextInputType
import pl.treksoft.kvision.html.Button.Companion.button
import pl.tr... | 0 | Kotlin | 0 | 0 | f18f0dde18be03ae691b9927a794dfe73eef059f | 2,189 | kvision-examples | MIT License |
src/main/kotlin/model/algorithms/bridgeFinder/BridgeFinder.kt | spbu-coding-2023 | 790,846,883 | false | {"Kotlin": 164686, "Python": 12618, "Shell": 161} | package model.algorithms.bridgeFinder
import model.graphs.graphs.Graph
import java.util.Stack
import kotlin.math.min
open class BridgeFinder<V>(protected val graph: Graph<V>) {
private var verticesCount = 0
private var timer = 0
private lateinit var visited: BooleanArray
private lateinit var bridges:... | 2 | Kotlin | 1 | 0 | 3186df25a0b876cfc853308c2be78aa8d90ae047 | 3,086 | graphs-graphs-6 | MIT License |
sample/kotlin-lib/src/main/kotlin/me/xx2bab/koncat/sample/kotlin/KotlinLibraryAPI.kt | 2BAB | 433,810,120 | false | {"Kotlin": 83292, "Shell": 128} | package me.xx2bab.koncat.sample.kotlin
import me.xx2bab.koncat.sample.interfaze.DummyAPI
class KotlinLibraryAPI : DummyAPI {
override fun onCall(param: String): String {
return "KotlinLibraryAPI is running with param $param ..."
}
}
| 3 | Kotlin | 3 | 57 | 04e6400fe06fb8d099ed31c8f3ed246f8c805ac6 | 254 | Koncat | Apache License 2.0 |
app/src/main/java/jp/kaleidot725/orbit/ui/components/pages/init/InitViewModel.kt | kaleidot725 | 443,815,729 | false | {"Kotlin": 88694} | package jp.kaleidot725.orbit.ui.components.pages.init
import androidx.lifecycle.ViewModel
import jp.kaleidot725.orbit.domain.usecase.FetchAllPokemonUseCase
import jp.kaleidot725.orbit.ui.common.UiStatus
import org.orbitmvi.orbit.ContainerHost
import org.orbitmvi.orbit.syntax.simple.intent
import org.orbitmvi.orbit.syn... | 0 | Kotlin | 6 | 45 | a632df1c8b711dcbd0ed78e7e697e4e018778fe1 | 1,236 | Jetpack-Compose-Orbit-MVI-Demo | MIT License |
agrirouter-sdk-java-api/src/main/kotlin/com/dke/data/agrirouter/api/messaging/AsyncMessageSendingResult.kt | DKE-Data | 146,031,025 | false | {"Maven POM": 5, "Text": 1, "Ignore List": 1, "Markdown": 3, "AsciiDoc": 1, "Java": 143, "JSON": 7, "Kotlin": 54, "YAML": 2, "XML": 1, "SVG": 2} | package com.dke.data.agrirouter.api.messaging
import java.util.concurrent.CompletableFuture
/**
* Marker interface.
*/
interface AsyncMessageSendingResult<T> {
fun accessResult(): CompletableFuture<T>
}
| 5 | Java | 5 | 5 | f781eaa5d726498071bd8e0646fd767f458ef4fa | 213 | agrirouter-sdk-java | Apache License 2.0 |
vector/src/main/java/im/vector/riotx/features/home/HomeActivityViewModel.kt | czeidler | 279,836,835 | true | {"Kotlin": 7322462, "Java": 156109, "HTML": 24137, "Shell": 12524, "FreeMarker": 7743, "Python": 5234, "JavaScript": 1782} | /*
* Copyright (c) 2020 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 0 | null | 0 | 0 | f4314ebdaef94e2b3dac5f91f8a7f46bcfc1f313 | 7,597 | riotX-android | Apache License 2.0 |
orb-java-core/src/test/kotlin/com/withorb/api/models/AmountDiscountTest.kt | orbcorp | 797,930,757 | false | {"Kotlin": 18029630, "Shell": 3618, "Dockerfile": 399} | // File generated from our OpenAPI spec by Stainless.
package com.withorb.api.models
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
class AmountDiscountTest {
@Test
fun createAmountDiscount() {
val amountDiscount =
AmountDiscount.builder()
... | 2 | Kotlin | 0 | 0 | 28f0892d38903635bdc34218aadaf5dff2e094ea | 912 | orb-java | Apache License 2.0 |
kutil-unit-api/src/main/java/net/kigawa/kutil/unitapi/component/UnitDatabaseComponent.kt | kigawa01 | 534,968,547 | false | null | @file:Suppress("unused")
package net.kigawa.kutil.unitapi.component
import net.kigawa.kutil.unitapi.UnitIdentify
import net.kigawa.kutil.unitapi.exception.NoSingleUnitException
import net.kigawa.kutil.unitapi.extention.*
import net.kigawa.kutil.unitapi.options.RegisterOptions
interface UnitDatabaseComponent {
fun ... | 8 | Kotlin | 0 | 0 | d755464ff6490aa72155ccdd2100cdf4d9298b00 | 1,402 | kutil-unit | MIT License |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bold/Grideraser.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.co... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 6,770 | VuesaxIcons | MIT License |
data/watchlist/implementation/src/commonMain/kotlin/com/thomaskioko/tvmaniac/watchlist/implementation/WatchlistComponent.kt | c0de-wizard | 361,393,353 | false | null | package com.thomaskioko.tvmaniac.watchlist.implementation
import com.thomaskioko.tvmaniac.shows.api.WatchlistDao
import com.thomaskioko.tvmaniac.shows.api.WatchlistRepository
import me.tatarka.inject.annotations.Provides
interface WatchlistComponent {
@Provides
fun provideWatchlistDao(bind: WatchlistDaoImpl)... | 9 | Kotlin | 13 | 98 | 8bc3853d84c58520dffe26ddb260a2e7b6482ae9 | 443 | tv-maniac | Apache License 2.0 |
src/main/kotlin/com/github/taraktikos/cucumberclojure/StepDeclaration.kt | taraktikos | 343,203,713 | false | null | package com.github.taraktikos.cucumberclojure
import com.intellij.ide.util.EditSourceUtil
import com.intellij.pom.PomNamedTarget
import com.intellij.psi.PsiElement
/**
* @author <NAME>.
*/
class StepDeclaration(val element: PsiElement, val stepName: String) : PomNamedTarget {
override fun navigate(requestFocus:... | 6 | Kotlin | 0 | 14 | 580d052c2002210f9f898f2de8f4cf1aa293a995 | 720 | cucumber-clojure | MIT License |
usvm-jvm/src/test/kotlin/org/usvm/samples/checkers/DivisionExampleTest.kt | UnitTestBot | 586,907,774 | false | {"Kotlin": 2623226, "Java": 476836} | package org.usvm.samples.checkers
import org.jacodb.api.JcClasspath
import org.jacodb.api.JcParameter
import org.jacodb.api.JcTypedMethod
import org.jacodb.api.cfg.JcAssignInst
import org.jacodb.api.cfg.JcDivExpr
import org.jacodb.api.ext.findClass
import org.jacodb.api.ext.toType
import org.junit.jupiter.api.Test
imp... | 36 | Kotlin | 6 | 9 | 6bafd5c9f8301c179f74f3e8f0e8c9e911aaa5e1 | 3,505 | usvm | Apache License 2.0 |
src/test/kotlin/org/vitrivr/cottontail/storage/serialization/AbstractSerializationTest.kt | pombredanne | 341,129,834 | true | {"Kotlin": 1056564, "Dockerfile": 472, "Shell": 164} | package org.vitrivr.cottontail.storage.serialization
import org.junit.jupiter.params.provider.Arguments
import org.vitrivr.cottontail.TestConstants
import org.vitrivr.cottontail.database.catalogue.Catalogue
import org.vitrivr.cottontail.model.basics.Name
import java.nio.file.Files
import java.util.*
import java.util.s... | 0 | null | 0 | 0 | 6a5c4d7dc84eb7877acb0729c1267e1d3ab8b8f0 | 2,331 | cottontaildb | MIT License |
benchmarks/src/jvmMain/kotlin/space/kscience/kmath/benchmarks/globals.kt | SciProgCentre | 129,486,382 | false | {"Kotlin": 1988014, "ANTLR": 887} | /*
* Copyright 2018-2024 KMath contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package space.kscience.kmath.benchmarks
import org.jetbrains.kotlinx.multik.default.DefaultEngine
import space.kscience.kmath.multik.MultikDoubleAlgebra... | 89 | Kotlin | 55 | 645 | 3e8f44166c4a4ed6e99e1676a7200ed044645224 | 378 | kmath | Apache License 2.0 |
app/src/main/java/com/example/cs567_3d_ui_project/argis/geometry/feature_types/LineFeature.kt | csu-hci-projects | 694,848,698 | false | {"Kotlin": 168968, "Java": 130433, "GLSL": 38243} | package com.example.cs567_3d_ui_project.argis.geometry.feature_types
import com.example.cs567_3d_ui_project.argis.buffers.VertexBuffer
import com.example.cs567_3d_ui_project.argis.geometry.Constants.Companion.BYTES_PER_FLOAT
import com.example.cs567_3d_ui_project.argis.geometry.CylinderGL
import com.example.cs567_3d_u... | 0 | Kotlin | 0 | 0 | ba9b3f53098e2cf35add7c6427de41ef80f920a6 | 1,728 | FA23-Visualization-of-Infrastructure-with-a-3D-GIS-Mobile-Application | MIT License |
src/main/kotlin/fluttersim/actions/JumpAction.kt | michielbos | 760,614,431 | false | {"Kotlin": 30754, "HTML": 1643, "CSS": 193} | package fluttersim.actions
import fluttersim.Game
import fluttersim.gameobjects.Fluttershy
import fluttersim.gameobjects.FluttershysBed
import fluttersim.gameobjects.FluttershysBedScrap
import fluttersim.gameobjects.Pony
class JumpAction : GameAction(listOf("jump")) {
override fun doAction(command: String, paramS... | 0 | Kotlin | 0 | 0 | 19f3b8c26d0cc976bbd7290f8f576ab5598b8d75 | 2,195 | fluttershy-simulator | MIT License |
app/src/main/java/com/example/connected_bluetooth_devices_sample/MainActivity.kt | AndroidDeveloperLB | 556,209,930 | false | null | package com.example.connected_bluetooth_devices_sample
import android.Manifest
import android.os.*
import android.util.Log
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.*
class MainActivity : AppCompatActivity() {
private lateinit var viewModel: MainActivityVi... | 0 | Kotlin | 0 | 0 | 8e120ace65b89b542f615c86bc24ae356630b375 | 1,343 | ConnectedBluetoothDevicesSample | Apache License 2.0 |
Compose-My-Pohang-App/app/src/main/java/com/example/mypohangapp/component/MyPohangTopAppBar.kt | Jaehwa-Noh | 732,567,253 | false | {"Kotlin": 87233, "Swift": 40992} | package com.example.mypohangapp.component
import androidx.compose.foundation.layout.Box
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Icon
import androidx.compose.material... | 0 | Kotlin | 0 | 0 | ce235fc2d744ae3868d2b9a0a251ba1fc04b61a6 | 1,507 | Project-My-Pohang-App | Apache License 2.0 |
data/src/main/java/com/mutualmobile/praxis/data/mapper/EntityMapper.kt | mutualmobile | 221,002,551 | false | null | package com.mutualmobile.praxis.data.mapper
interface EntityMapper<M, ME> {
fun mapToDomain(entity: ME): M
fun mapToData(model: M): ME
}
| 12 | Kotlin | 43 | 298 | 6b3661507f561511cb4552397c691e63897706f8 | 143 | Praxis | Apache License 2.0 |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/dax/CfnCluster.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 140726596} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.dax
import io.cloudshiftdev.awscdk.CfnResource
import io.cloudshiftdev.awscdk.IInspectable
import io.... | 1 | Kotlin | 0 | 4 | e15f2e27e08adeb755ad44b2424c195521a6f5ba | 35,638 | kotlin-cdk-wrapper | Apache License 2.0 |
LayoutsCodelab/app/src/main/java/com/example/layoutscodelab/MultithreadedLearning/CoroutineTest.kt | leeranzhi | 369,533,236 | false | {"JavaScript": 2, "Text": 3, "Markdown": 6, "Gradle": 15, "Java Properties": 8, "Shell": 5, "Ignore List": 14, "Batchfile": 5, "Kotlin": 82, "XML": 68, "Gradle Kotlin DSL": 3, "Proguard": 4, "INI": 1, "Java": 11} | package com.example.layoutscodelab.MultithreadedLearning
import android.app.DownloadManager
import android.net.Uri
import android.view.ViewGroup
import kotlinx.coroutines.*
suspend fun main() {
GlobalScope.launch {
//全局Scope
val a = add(1, 2)//挂起
val b = add(4, 5)//挂起
print(a + b)
... | 1 | null | 1 | 1 | cb3146b258577fac2ed67158d1d6ccef09f49d18 | 869 | LearnCompose | Apache License 2.0 |
workers/reporter/src/test/kotlin/reporter/ReportNameMapperTest.kt | eclipse-apoapsis | 760,319,414 | false | null | /*
* Copyright (C) 2023 The ORT Server Authors (See <https://github.com/eclipse-apoapsis/ort-server/blob/main/NOTICE>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://w... | 82 | null | 8 | 9 | 0af70d6382a86f0ebc35d9b377f4229c6a71637a | 2,799 | ort-server | Apache License 2.0 |
app/src/main/java/com/armandodarienzo/k9board/ui/screens/LanguageSelectionScreen.kt | armyj94 | 783,586,202 | false | {"Kotlin": 149175} | package com.armandodarienzo.k9board.ui.screens
import android.content.Context
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.select... | 0 | Kotlin | 0 | 0 | cc78fd135e5ecd66fc99a5c7c043083af1e9ae47 | 3,107 | K9board | The Unlicense |
RoomDbFlow/app/src/main/java/com/example/roomdbflow/database/dao/ProductDao.kt | AlbertoChamorro | 205,464,937 | false | null | package com.example.roomdbflow.database.dao
import androidx.lifecycle.LiveData
import androidx.room.*
import com.example.roomdbflow.models.Product
@Dao
interface ProductDao {
@Query("SELECT * FROM products where id = :id")
fun get(id: Int): LiveData<Product>
@Insert
suspend fun add(mode: Product)
... | 0 | Kotlin | 0 | 0 | beb0906a693c7a4c966c8d6bdf49e4a8086d9ac8 | 602 | room-kotlin-example | MIT License |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/m2/CfnApplicationDefinitionPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.m2
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.String
import software.amazon.awscdk.serv... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 1,670 | awscdk-dsl-kotlin | Apache License 2.0 |
iteration1/musically/app/src/main/java/com/odesa/musically/services/media/connection/MusicServiceConnectionImpl.kt | Odhiambo-Michael-Allan | 740,198,682 | false | {"Kotlin": 9540063} | package com.odesa.musically.services.media.connection
import android.content.ComponentName
import android.content.Context
import android.support.v4.media.MediaBrowserCompat
import android.support.v4.media.session.MediaControllerCompat
import com.odesa.musically.services.media.connection.MusicServiceConnectionImpl.Medi... | 0 | Kotlin | 0 | 3 | 05ad5e08002a78958ed7763e6685a0e15f635fae | 2,837 | music-matters | Apache License 2.0 |
app/src/main/java/com/sanjeevyadavit/magecart/presentation/products/components/ProductList.kt | sanjeevyadavIT | 550,000,134 | false | null | package com.sanjeevyadavit.magecart.ui.products
import android.util.Log
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.lazy.grid.GridCells
i... | 1 | Kotlin | 1 | 0 | 1c107cfa832dbcc4d4ff9f652328e0878bd1647b | 1,948 | magento-android | MIT License |
app/src/main/java/com/github/odaridavid/weatherapp/designsystem/molecule/Buttons.kt | odaridavid | 596,789,592 | false | {"Kotlin": 155865, "Swift": 4051} | package com.github.odaridavid.weatherapp.designsystem.molecule
import androidx.compose.foundation.background
import androidx.compose.material3.Button
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Mo... | 20 | Kotlin | 26 | 98 | 69720974d785ad3a9fb5861e645db497b2e81b89 | 1,513 | WeatherApp | Apache License 2.0 |
easyfirebaselist/src/main/java/com/mobymagic/easyfirebaselist/EmptyStyle.kt | Elvis10ten | 112,323,744 | false | null | package com.mobymagic.easyfirebaselist
import android.graphics.Color
import android.support.annotation.ColorInt
import android.support.annotation.DrawableRes
data class EmptyStyle(
@DrawableRes val emptyIconRes: Int,
val emptyMessage: String,
@ColorInt val emptyIconTintColor: Int = Color.parse... | 0 | Kotlin | 0 | 1 | d743edf73223e727faca3c7260eb869f0b0efcaf | 422 | EasyFirebaseList | Apache License 2.0 |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/s3/CfnStorageLensAccountLevelPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.s3
import cloudshift.awscdk.common.CdkDslMarker
import software.amazon.awscdk.IResolvable
import softwa... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 5,631 | awscdk-dsl-kotlin | Apache License 2.0 |
features/clients/presentation/src/main/java/com/fredprojects/features/clients/presentation/Extensions.kt | FredNekrasov | 832,214,231 | false | {"Kotlin": 173987} | package com.fredprojects.features.clients.presentation
import com.fredprojects.core.ui.R
import com.fredprojects.features.clients.domain.utils.ActionStatus
internal fun ActionStatus.getString() = when(this) {
ActionStatus.LOADING -> R.string.wait
ActionStatus.SUCCESS -> R.string.success
ActionStatus.CONNE... | 0 | Kotlin | 0 | 1 | 6220fea2fa0b513e93b28ef18647a95612c7d7f0 | 618 | jetpack-compose-projects | MIT License |
app/src/main/java/com/eatssu/android/util/MySharedPreferences.kt | EAT-SSU | 601,871,281 | false | {"Kotlin": 201392} | package com.eatssu.android.util
import android.content.Context
import android.content.SharedPreferences
//자동 로그인을 위한 SharedPreferences
object MySharedPreferences {
private val MY_ACCOUNT: String = "account"
fun setUserEmail(context: Context, input: String) {
val prefs: SharedPreferences =
... | 23 | Kotlin | 0 | 5 | b1acc6b38f733d56da45be42f781c2997d0ed87f | 2,088 | Android | MIT License |
src/test/kotlin/com/sainsburys/k2zpl/builder/ZplBuilderTest.kt | sainsburys-tech | 819,578,325 | false | null | package com.sainsburys.k2zpl.builder
import com.sainsburys.k2zpl.command.ZplCommand
import com.sainsburys.k2zpl.command.options.ZplDpiSetting
import io.kotest.assertions.throwables.shouldThrow
import io.kotest.core.spec.IsolationMode
import io.kotest.core.spec.style.DescribeSpec
import io.kotest.data.forAll
import io.... | 7 | null | 1 | 4 | b07f662578794b30f296c6363df4352f6c2ef4d2 | 3,759 | k2zpl | MIT License |
core/design-system/src/main/java/com/yawl/vermont/designsystem/theme/Color.kt | Yawl-Company | 839,008,394 | false | {"Kotlin": 34670} | package com.yawl.vermont.designsystem.theme
import androidx.compose.ui.graphics.Color
internal val primaryLight = Color(0xFF2F628C)
internal val onPrimaryLight = Color(0xFFFFFFFF)
internal val primaryContainerLight = Color(0xFFCEE5FF)
internal val onPrimaryContainerLight = Color(0xFF001D33)
internal val secondaryLigh... | 0 | Kotlin | 0 | 0 | 61805174e54c54785d60a156d52e04c53adb46dd | 3,714 | vermont | Apache License 2.0 |
app/src/main/java/com/prush/justanotherplayer/ui/main/MainActivity.kt | iamporus | 203,219,989 | false | null | package com.prush.justanotherplayer.ui.main
import android.Manifest
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Bundle
import android.util.Log
import android.view.Menu
import android.view.MenuItem
import com.google.android.material.snackbar.Snackbar
import com.prush.justano... | 0 | Kotlin | 2 | 8 | d0ee1c9d96897c5e8d458094468fc5e390cc08b4 | 4,154 | Yamp | Apache License 2.0 |
app/src/main/java/com/hfut/schedule/ui/ComposeUI/Settings/Test/Debug.kt | Chiu-xaH | 705,508,343 | false | {"Kotlin": 515761} | package com.hfut.schedule.ui.ComposeUI.Settings
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.ExperimentalMaterial3Api
import android... | 0 | Kotlin | 0 | 1 | b2685cbe5ea4e957bb45921d55c70575f23086f4 | 2,255 | HFUT-Schedule | Apache License 2.0 |
app/src/main/kotlin/no/nav/tiltakspenger/vedtak/context/SakContext.kt | navikt | 487,246,438 | false | {"Kotlin": 946725, "Shell": 1318, "Dockerfile": 495, "HTML": 45} | package no.nav.tiltakspenger.vedtak.context
import no.nav.tiltakspenger.libs.persistering.domene.SessionFactory
import no.nav.tiltakspenger.libs.persistering.infrastruktur.PostgresSessionFactory
import no.nav.tiltakspenger.saksbehandling.ports.PersonGateway
import no.nav.tiltakspenger.saksbehandling.ports.SakRepo
impo... | 9 | Kotlin | 0 | 1 | 61d70015b3dcd251a3286f634c9c8f77013449b3 | 1,989 | tiltakspenger-vedtak | MIT License |
app/src/main/java/org/oppia/android/app/devoptions/markchapterscompleted/StorySummaryViewModel.kt | oppia | 148,093,817 | false | null | package org.oppia.android.app.devoptions.markchapterscompleted
/** [MarkChaptersCompletedItemViewModel] for displaying a story. */
class StorySummaryViewModel(val storyTitle: String) : MarkChaptersCompletedItemViewModel()
| 508 | null | 517 | 315 | 95699f922321f49a3503783187a14ad1cef0d5d3 | 223 | oppia-android | Apache License 2.0 |
net/craftventure/audioserver/AudioServer.kt | Craftventure | 770,049,457 | false | {"Kotlin": 3656616, "Java": 684034} | package net.craftventure.audioserver
import net.craftventure.audioserver.commands.CommandAudio
import net.craftventure.audioserver.commands.CommandAudioDebug
import net.craftventure.audioserver.commands.CommandVolume
import net.craftventure.audioserver.config.AudioServerConfig
import net.craftventure.audioserver.event... | 0 | Kotlin | 1 | 21 | 015687ff6687160835deacda57121480f542531b | 9,436 | open-plugin-parts | MIT License |
app/src/main/java/com/ferrariofilippo/saveapp/util/CloudStorageUtil.kt | ferrariofilippo | 683,187,933 | false | {"Kotlin": 294256} | // Copyright (c) 2024 <NAME>
// Licensed under the MIT License. See the LICENSE.
package com.ferrariofilippo.saveapp.util
import android.app.Activity
import android.os.Handler
import android.os.Looper
import androidx.activity.result.IntentSenderRequest
import androidx.work.OneTimeWorkRequestBuilder
import androidx.wo... | 0 | Kotlin | 0 | 1 | fef24c0dd269af50f8ae6615dad1784f3f1a310b | 7,056 | SaveApp_Kotlin | MIT License |
app/src/main/java/com/duravit/features/newcollection/model/NewCollectionListResponseModel.kt | DebashisINT | 486,284,343 | false | null | package com.duravit.features.newcollection.model
import com.duravit.app.domain.CollectionDetailsEntity
import com.duravit.base.BaseResponse
import com.duravit.features.shopdetail.presentation.model.collectionlist.CollectionListDataModel
/**
* Created by Saikat on 15-02-2019.
*/
class NewCollectionListResponseModel ... | 0 | Kotlin | 0 | 0 | 6019d69b3bb9bd413b9fd8c04980128e10988ba5 | 478 | DURAVIT | Apache License 2.0 |
app/src/main/java/com/rickinc/decibels/domain/util/UrlEncoder.kt | Rick-AB | 540,820,468 | false | {"Kotlin": 126933} | package com.rickinc.decibels.domain.util
import java.net.URLDecoder
import java.net.URLEncoder
import java.nio.charset.StandardCharsets
class UrlEncoder {
fun encode(url: String): String {
return URLEncoder.encode(url, StandardCharsets.UTF_8.toString())
}
fun decode(url: String): String {
... | 0 | Kotlin | 0 | 0 | 33b9a8fc4f68af2dddf829d07e664f82edd10655 | 393 | Decibels | Apache License 2.0 |
src/main/kotlin/com/ppolivka/namegenerator/model/KatzBackoffModel.kt | PavlikPolivka | 64,293,775 | false | null | package com.ppolivka.namegenerator.model
import java.util.*
/**
* A Markov model built using string training data.
*
* @param data The training data for the model, an array of words.
* @param order The order of model to use, models of order "n" will look back "n" characters within their context when dete... | 0 | Kotlin | 0 | 2 | f3bbca4609c0697838b98eced107c1cb3d04a4f1 | 3,429 | MarkovChainNameGenerator | MIT License |
app/src/main/java/com/clcmo/marvelchallenge/adapters/LoadingStateAdapter.kt | clcmo | 572,208,998 | false | {"Kotlin": 37997} | package com.clcmo.marvelchallenge.adapters
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.paging.LoadState
import androidx.paging.LoadStateAdapter
import androidx.recyclerview.widget.RecyclerView
import com.clcmo.marvelchallenge.databinding.ViewLoadingStateBinding
class LoadingState... | 6 | Kotlin | 0 | 1 | a2e1c1f10b11949bae17f879943f777581cdce03 | 1,957 | marvel-challenge | MIT License |
src/test/kotlin/org/rust/ide/template/postfix/RefmTypePostfixTemplateTest.kt | intellij-rust | 42,619,487 | false | null | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.template.postfix
class RefmTypePostfixTemplateTest : RsPostfixTemplateTest(RefmTypePostfixTemplate(RsPostfixTemplateProvider())) {
fun `test type reference`() = doTest("""
fn foo... | 1,841 | null | 380 | 4,528 | c6657c02bb62075bf7b7ceb84d000f93dda34dc1 | 410 | intellij-rust | MIT License |
src/main/kotlin/me/camdenorrb/plugkat/cmds/LoadPluginCmd.kt | camdenorrb | 100,557,920 | false | null | package me.camdenorrb.plugkat.cmds
import me.camdenorrb.kspigotbasics.struct.*
import me.camdenorrb.plugkat.ext.enable
import me.camdenorrb.plugkat.ext.file
import me.camdenorrb.plugkat.ext.loadPluginByName
import me.camdenorrb.plugkat.struct.pluginsFolder
import org.bukkit.command.Command
import org.bukkit.command.Co... | 2 | Kotlin | 0 | 3 | bf68435fc558edb0b1f06a1cea6afa80831a12e8 | 1,278 | PlugKat | Apache License 2.0 |
app/src/main/java/com/timebudget/data/RepoBoundaryCallback.kt | MobileEIvanov | 156,843,897 | false | null | package com.timebudget.data
import android.arch.paging.PagedList
import android.util.Log
import com.timebudget.data.database.LocalDataSource
import com.timebudget.entities.TimeTrackEntry
/**
* Created by emil.ivanov on 9/19/18.
* Reference https://codelabs.developers.google.com/codelabs/android-paging/index.html?in... | 0 | Kotlin | 0 | 0 | ef35495a47c98c8dc448b4098df2069af79cb754 | 879 | Time-Budget | Apache License 2.0 |
commons/src/main/kotlin/com/simplemobiletools/commons/receivers/SharedThemeReceiver.kt | VGumbakis | 126,028,507 | false | {"Java": 2432956, "Kotlin": 273499} | package com.simplemobiletools.commons.receivers
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import com.simplemobiletools.commons.extensions.baseConfig
import com.simplemobiletools.commons.extensions.getSharedTheme
import com.simplemobiletools.commons.helpers.My... | 16 | null | 1 | 1 | a9a484d700f16220854688075c548d002dc49147 | 1,622 | Simple-Commons | Apache License 2.0 |
shared/src/commonMain/kotlin/com/expressus/domain/viewModels/ExpressusSavedStateContainer.kt | GuilhE | 483,274,962 | false | {"Kotlin": 123318, "Swift": 43152, "Ruby": 4889} | package com.expressus.domain.viewModels
import com.expressus.domain.viewModels.core.UiStateCacheProxy
import com.expressus.domain.viewModels.core.UiStateCache
import com.russhwolf.settings.Settings
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.flow.Flow
import org.koin.core.component.KoinComponent... | 0 | Kotlin | 10 | 110 | 0c44caf4cb7e14752f8fc4e42eaa165151ad460a | 1,639 | Expressus | Apache License 2.0 |
src/main/kotlin/org/batteryparkdev/kotlindev/PartitonDemo.kt | fcriscuo | 573,547,848 | false | {"Kotlin": 63433} | package org.batteryparkdev.kotlindev
fun main() {
val nums = listOf(1,2,6,11)
val partitioned:Pair<List<Int>,List<Int>> =
nums.partition { it in 2..10 }
println(partitioned)
val (inRange, notInRange) = partitioned
println(inRange)
println(notInRange)
} | 0 | Kotlin | 0 | 0 | 9e7bd1801a4d11b73e46071efdaf8bd3d5c86e47 | 284 | KotlinSandbox | Creative Commons Zero v1.0 Universal |
godot-kotlin/src/nativeGen/kotlin/godot/VisualShaderNodeScalarFunc.kt | raniejade | 166,207,411 | false | null | // DO NOT EDIT, THIS FILE IS GENERATED FROM api.json
package godot
import gdnative.godot_method_bind
import gdnative.godot_string
import godot.core.Allocator
import godot.core.Godot
import godot.core.Variant
import godot.core.VariantArray
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.refl... | 12 | Kotlin | 4 | 51 | 5c1bb2a1f1d2187375bf50c0445b42c88f37989f | 3,859 | godot-kotlin | MIT License |
navigator-compose/samples/basic-sample/src/main/java/com/kpstv/navigation/compose/sample/MainActivity.kt | KaustubhPatange | 356,920,997 | false | null | package com.kpstv.navigation.compose.sample
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Surface
import com.kpstv.navigation.compose.ComposeNavigator
import com.kpstv.navig... | 3 | null | 5 | 97 | d4f7327c4ff77883c4708d2a941e3ecad8f15daf | 1,511 | navigator | Apache License 2.0 |
bmm-core/src/main/kotlin/de/miraculixx/bmm/utils/message/CommonTranslations.kt | MiraculixxT | 556,926,486 | false | {"Kotlin": 100952} | package de.miraculixx.bmm.utils.message
val msgCancel = msgString("common.cancel")
val msgBuild = msgString("common.build")
val msgOr = msgString("common.or")
val msgNotSet = msgString("common.notSet")
val msgUse = msgString("common.use") | 2 | Kotlin | 6 | 12 | 987c8f1cbcddc56dd66e4c4729e4ffb67add16e7 | 239 | bluemap-marker | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/MapLocationTrack.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 7,860 | icons | MIT License |
channels/jaicp/src/main/kotlin/com/justai/jaicf/channel/jaicp/reactions/handlers/SetAsrPropertiesHandler.kt | just-ai | 246,869,336 | false | {"Kotlin": 788204, "Java": 44252} | package com.justai.jaicf.channel.jaicp.reactions.handlers
import com.justai.jaicf.channel.jaicp.dto.config.*
import kotlinx.serialization.json.JsonArray
import kotlinx.serialization.json.JsonObject
import kotlinx.serialization.json.JsonPrimitive
class SetAsrPropertiesHandler(
private val listOfActualHandlers: Lis... | 21 | Kotlin | 39 | 241 | cc076db73e03bf89db2ab94e7f48c8736735706b | 6,264 | jaicf-kotlin | Apache License 2.0 |
src/jvmMain/kotlin/wotw/server/api/SeedGenEndpoint.kt | Mawex | 394,776,502 | true | {"Kotlin": 278402, "CSS": 8362, "JavaScript": 1623, "Dockerfile": 1305, "HTML": 296, "Shell": 265} | package wotw.server.api
import io.ktor.application.*
import io.ktor.features.*
import io.ktor.http.*
import io.ktor.response.*
import io.ktor.routing.*
import org.jetbrains.exposed.sql.transactions.experimental.newSuspendedTransaction
import wotw.io.messages.*
import wotw.server.database.model.Game
import wotw.server.... | 0 | null | 0 | 0 | 8a2c8ee8adbe0c19aefaf6492d725e58a17008a7 | 3,531 | wotw-server | MIT License |
restring/src/main/java/dev/b3nedikt/restring/repository/CachedStringRepository.kt | zayfal | 292,584,185 | true | {"Kotlin": 74260, "Java": 7171, "Shell": 907} | package com.b3nedikt.restring.repository
import com.b3nedikt.restring.PluralKeyword
import com.b3nedikt.restring.StringRepository
import java.util.*
class CachedStringRepository(val cacheRepository: StringRepository,
val persistentRepository: StringRepository
) : StringRepository {
o... | 0 | null | 0 | 0 | 376d5e45db8b31da50c3a490cfd2dc6e17da5230 | 3,313 | restring | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.