path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/trifork/timandroid/token/TokenFragment.kt | trifork | 431,052,684 | false | {"Kotlin": 51367} | package com.trifork.timandroid.token
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.lifecycleScope
import androidx.navigation.fragment.navArgs
import com.trifork.timandroid.R
import com.t... | 1 | Kotlin | 1 | 0 | 535991fedd2c69006cc4df7891675653ab35cd99 | 1,716 | TIM-Example-Android | MIT License |
kotter/src/commonMain/kotlin/com/varabyte/kotter/platform/internal/system/ShutdownHook.kt | varabyte | 397,769,020 | false | {"Kotlin": 488088} | package com.varabyte.kotter.platform.internal.system
internal expect fun onShutdown(dispose: () -> Unit)
| 12 | Kotlin | 16 | 507 | 53f5313ea424c81c69bf397754326df910a6508e | 106 | kotter | Apache License 2.0 |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/s3/RedirectProtocol.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 142794926} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.s3
public enum class RedirectProtocol(
private val cdkObject: software.amazon.awscdk.services.s3.Re... | 0 | Kotlin | 0 | 4 | b1af417dc38eb29bba6244f8da914964c5e7fa3d | 963 | kotlin-cdk-wrapper | Apache License 2.0 |
cogboard-app/src/main/kotlin/com/cognifide/cogboard/security/JwtAuthHandlerFactory.kt | wttech | 199,830,591 | false | {"JavaScript": 338125, "Kotlin": 178733, "HTML": 2154, "Shell": 951, "Dockerfile": 433} | package com.cognifide.cogboard.security
import com.cognifide.cogboard.utils.ExtensionFunctions.toJWT
import io.knotx.server.api.security.AuthHandlerFactory
import io.vertx.core.json.JsonObject
import io.vertx.ext.auth.KeyStoreOptions
import io.vertx.reactivex.core.Vertx
import io.vertx.reactivex.ext.auth.jwt.JWTAuth
i... | 56 | JavaScript | 9 | 15 | fc2e392bc072ea5738b6172a5b1f01609b4e6f13 | 767 | cogboard | Apache License 2.0 |
katan-api/src/main/kotlin/me/devnatan/katan/api/io/FileSystemAccessor.kt | KatanPanel | 182,468,654 | false | null | /*
* Copyright 2020-present <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 ... | 0 | Kotlin | 7 | 48 | 4ba33e0ff126134e6d02b672bbccf72bf2defad5 | 774 | Katan | Apache License 2.0 |
api/src/main/kotlin/io/github/legion2/tosca_orchestrator/orchestrator/artifact/ReconcilerInterface.kt | Legion2 | 350,881,803 | false | null | package io.github.legion2.tosca_orchestrator.orchestrator.artifact
object ReconcilerLifecycleInterface {
const val name = "Reconciler"
const val reconcileOperation = "reconcile"
const val deletionOperation = "delete"
}
| 6 | Kotlin | 0 | 3 | fb4ef1a7bf3d79d258da2b6779381a87e0c435e9 | 232 | ritam | Apache License 2.0 |
android-core/src/main/kotlin/org/mint/android/rule/input/RegexInputGenerator.kt | ing-bank | 620,378,707 | false | null | package org.mint.android.rule.input
import com.github.curiousoddman.rgxgen.RgxGen
import org.mint.android.AndroidState
data class RegexInputGenerator(val regex: String) : (AndroidState) -> String {
private val rgx = RgxGen(regex)
override fun invoke(s: AndroidState): String = rgx.generate()
}
| 0 | Kotlin | 2 | 4 | abf96d311b3ebb1bba2a331a353126c653225be9 | 305 | mint | MIT License |
src/main/kotlin/no/nav/syfo/huskelapp/domain/Oppfolgingsgrunn.kt | navikt | 696,687,106 | false | {"Kotlin": 117434, "Dockerfile": 226} | package no.nav.syfo.huskelapp.domain
enum class Oppfolgingsgrunn {
TA_KONTAKT_SYKEMELDT,
TA_KONTAKT_ARBEIDSGIVER,
TA_KONTAKT_BEHANDLER,
VURDER_DIALOGMOTE_SENERE,
FOLG_OPP_ETTER_NESTE_SYKMELDING,
VURDER_TILTAK_BEHOV,
VURDER_ARBEIDSUFORHET,
FRISKMELDING_TIL_ARBEIDSFORMIDLING,
ANNET,
}... | 1 | Kotlin | 0 | 0 | 28604244b7aa972f6b14feed03f98fd59e65d4a3 | 321 | ishuskelapp | MIT License |
sqldelight-gradle-plugin/src/test/integration-multiplatform/src/androidMain/kotlin/com/squareup/sqldelight/integration/android.kt | mycoola-zz | 162,573,643 | true | {"Kotlin": 554975, "Java": 9356, "Shell": 1970, "HTML": 57} | package com.squareup.sqldelight.integration
import com.squareup.sqldelight.db.SqlDatabase
import com.squareup.sqldelight.sqlite.driver.SqliteJdbcOpenHelper
import java.util.concurrent.Executors
import java.util.concurrent.Future
import java.util.concurrent.TimeUnit
actual fun createSqlDatabase(): SqlDatabase {
retu... | 0 | Kotlin | 0 | 0 | 19bd1645268b11d7433a47a0af8e653a07181f61 | 860 | sqldelight | Apache License 2.0 |
app/src/main/java/com/oratakashi/covid19/ui/theme/ThemeDialogFragment.kt | oratakashi | 248,692,046 | false | null | package com.oratakashi.covid19.ui.theme
import android.os.Bundle
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.v... | 0 | Kotlin | 0 | 6 | 2558cb2d6baf24ef7f93cfe00dd12decf3d35eba | 1,718 | COVID19_Tracker | Apache License 2.0 |
app/src/main/java/com/merative/healthpass/models/OfflineModeException.kt | digitalhealthpass | 563,978,682 | false | {"Kotlin": 1047923, "HTML": 79495, "Python": 22113, "Java": 1959} | package com.merative.healthpass.models
import retrofit2.HttpException
import retrofit2.Response
class OfflineModeException(response: Response<*>) : HttpException(response) | 0 | Kotlin | 0 | 0 | 2b086f6fad007d1a574f8f0511fff0e65e100930 | 173 | dhp-android-app | Apache License 2.0 |
android/app/src/main/kotlin/com/example/flutter_firstapp/MainActivity.kt | JordiDeSanta | 338,121,067 | false | {"Dart": 3836, "Swift": 404, "Kotlin": 133, "Objective-C": 38} | package com.example.flutter_firstapp
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | 1149b1f304cbd9f6309a79d4bdb23ae9ac80d33d | 133 | Flutter-First-App | MIT License |
data/local/src/commonMain/kotlin/io/spherelabs/data/local/db/otp/OtpDigitEntity.kt | getspherelabs | 687,455,894 | false | {"Kotlin": 645187, "Ruby": 6822, "Swift": 1167, "Shell": 226} | package io.spherelabs.data.local.db.otp
enum class OtpDigitEntity(val number: Long) {
SIX(6),
EIGHT(8);
companion object {
operator fun invoke(number: Long): OtpDigitEntity? {
return fromRaw(number)
}
private fun fromRaw(number: Long): OtpDigitEntity? {
ret... | 25 | Kotlin | 21 | 134 | 09ce4d285d7dc88e265ca0534272f20c7254b82c | 380 | anypass-kmp | Apache License 2.0 |
app/src/main/java/com/newbiechen/nbreader/ui/page/read/ReadActivity.kt | newbiechen1024 | 239,496,581 | false | null | package com.newbiechen.nbreader.ui.page.read
import android.app.ProgressDialog
import android.content.Context
import android.content.Intent
import android.graphics.drawable.Drawable
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.widget.TextView
import androidx.drawe... | 5 | Kotlin | 8 | 37 | e423b13915578ab95c1683bfa7a70e59f19f2eab | 12,029 | NBReader | Apache License 2.0 |
PoliFitnessApp/app/src/main/java/com/uca/polifitnessapp/data/db/dao/UserDao.kt | PoliFitness-App | 638,055,292 | false | null | package com.uca.polifitnessapp.data.db.dao
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import androidx.room.Transaction
import androidx.room.Update
import com.uca.polifitnessapp.data.db.models.UserModel
@Dao
inter... | 0 | Kotlin | 0 | 0 | f034cc0e75e4e3646172c951fb565dafa37dc1ab | 1,298 | PoliFitnessApp | MIT License |
app/src/main/java/com/jpb/scratchtappy/usp/mdcomp.kt | jpbandroid | 517,991,180 | false | null | package com.jpb.scratchtappy.usp
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.jpb.scratchtappy.usp.MDComponent
class mdcomp : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout... | 9 | Kotlin | 0 | 1 | 1c734e8770e9482c79449654a918e33a4d8243d7 | 498 | USP | Apache License 2.0 |
frontend/kobweb-core/src/jsMain/kotlin/com/varabyte/kobweb/core/PageContext.kt | varabyte | 389,223,226 | false | null | package com.varabyte.kobweb.core
import androidx.compose.runtime.*
import com.varabyte.kobweb.navigation.Router
import kotlinx.browser.window
/**
* Various contextual information useful for a page.
*
* Access it using [rememberPageContext] either in the page itself or within any composable nested inside of it.
*
... | 85 | Kotlin | 21 | 570 | 54bb2756f40fc119179aaa0f0ad2b358d78affff | 2,352 | kobweb | Apache License 2.0 |
app/src/main/java/com/example/androidhub/ui/adapter/ImageAdapter.kt | Zhangw1998 | 241,874,696 | false | null | package com.example.androidhub.ui.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.example.androidhub.R
import com.example.androidhub.bean.ImageData
import kotlinx.android.synthe... | 0 | Kotlin | 0 | 0 | 38473aa4a9d8505a4299ee867faef09e25dd2d9c | 1,178 | AndroidHub | Apache License 2.0 |
app/src/main/java/com/traveloka/chatbot/core/domain/usecase/ChatUseCase.kt | harhar-sumbogo | 492,164,774 | false | {"Kotlin": 41851} | package com.traveloka.chatbot.core.domain.usecase
import androidx.lifecycle.LiveData
import com.traveloka.chatbot.core.data.Result
import com.traveloka.chatbot.core.domain.model.MessageModel
interface ChatUseCase {
fun createUser(token: String): LiveData<String>
fun createGroup(token: String): LiveData<Resul... | 0 | Kotlin | 1 | 3 | b30ed94216b273cb117404bc638e7f230a671d33 | 508 | ChatBotTraveloka | Apache License 2.0 |
shared/src/commonMain/kotlin/de/paulweber/spenderino/viewmodel/ViewModel.kt | pumapaul | 456,565,521 | false | {"Kotlin": 315206, "Swift": 77223, "Ruby": 57} | package de.paulweber.spenderino.viewmodel
import co.touchlab.kermit.Logger
import de.paulweber.spenderino.utility.CFlow
import de.paulweber.spenderino.utility.wrap
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.fl... | 0 | Kotlin | 0 | 3 | 61bf26f94940b6a84840f28b62817eefa9f21231 | 2,101 | Spenderino | MIT No Attribution |
app/src/main/java/com/example/echangeapp/domain/usecases/ReadAvailableCurrencyAmountUseCase.kt | dtx12 | 273,499,039 | false | null | package com.example.echangeapp.domain.usecases
import com.example.echangeapp.domain.models.Currency
import com.example.echangeapp.domain.models.CurrencyAmount
import com.example.echangeapp.domain.repositories.AvailableCurrencyRepository
import javax.inject.Inject
class ReadAvailableCurrencyAmountUseCase @Inject const... | 0 | Kotlin | 0 | 0 | 61b3a2265811262ce413a246230fa7418cd7e2c8 | 499 | ExchangeTestTask | MIT License |
modules/manual/src/main/kotlin/com.r3.corda.finance.manual/types/ManualPayment.kt | dazraf | 174,323,076 | true | {"Kotlin": 192264} | package com.r3.corda.finance.manual.types
import com.r3.corda.finance.obligation.contracts.types.Payment
import com.r3.corda.finance.obligation.contracts.types.PaymentReference
import com.r3.corda.finance.obligation.contracts.types.PaymentStatus
import com.r3.corda.lib.tokens.money.FiatCurrency
import net.corda.core.c... | 0 | Kotlin | 0 | 0 | 8af0e751139b76a77714f8d84ec302337cbccf50 | 731 | corda-settler | Apache License 2.0 |
agora.post/src/commonMain/kotlin/org/agorahq/agora/post/viewmodel/PostViewModel.kt | agorahq | 228,175,670 | false | null | package org.agorahq.agora.post.viewmodel
import org.agorahq.agora.core.api.view.ViewModel
data class PostViewModel(
val id: String,
val ownerId: String,
val abstract: String,
val excerpt: String,
val title: String,
val tags: String,
val content: String,
... | 28 | Kotlin | 0 | 0 | a7aeabc25d31e11090f37733de2b8ec138d1de3b | 445 | agora | Apache License 2.0 |
libraries/csm.cloud.common.event-consumer/src/main/kotlin/com/bosch/pt/csm/cloud/common/businesstransaction/jpa/JpaEventOfBusinessTransactionRepository.kt | boschglobal | 805,348,245 | false | {"Kotlin": 13156190, "HTML": 274761, "Go": 184388, "HCL": 158560, "Shell": 117666, "Java": 52634, "Python": 51306, "Dockerfile": 10348, "Vim Snippet": 3969, "CSS": 344} | /*
* ************************************************************************
*
* Copyright: <NAME> Power Tools GmbH, 2018 - 2022
*
* ************************************************************************
*/
package com.bosch.pt.csm.cloud.common.businesstransaction.jpa
import java.time.LocalDateTime
im... | 0 | Kotlin | 3 | 9 | 9f3e7c4b53821bdfc876531727e21961d2a4513d | 1,034 | bosch-pt-refinemysite-backend | Apache License 2.0 |
src/main/kotlin/com/example/dmzj_api/vo/ResultVO.kt | suppiac | 510,615,371 | false | null | package com.example.dmzj_api.vo
data class ResultVO(
var code: Int = 0,
var msg: String = "",
var res: Any? = null,
) | 0 | Kotlin | 1 | 2 | a3c6641befa809fef2ebe74796db123d607c416f | 130 | dmzj_api | Apache License 2.0 |
common/src/desktopTest/kotlin/components/projectselection/ProjectSelectionComponentTest.kt | Wavesonics | 499,367,913 | false | null | package components.projectselection
import com.akuleshov7.ktoml.Toml
import com.arkivanov.decompose.ComponentContext
import com.arkivanov.essenty.lifecycle.Lifecycle
import com.darkrockstudios.apps.hammer.common.data.ExampleProjectRepository
import com.darkrockstudios.apps.hammer.common.data.projectsrepository.Project... | 0 | Kotlin | 0 | 2 | 0284e04ded922c95867d7dcc7296e016fca4ce51 | 4,610 | hammer-editor | MIT License |
service/src/main/java/io/axoniq/handonaxon/conferencetracker/model/Conference.kt | Hands-on-Axon | 701,250,533 | false | {"Kotlin": 7602} | package io.axoniq.handonaxon.conferencetracker.model
import io.axoniq.handonaxon.conferencetracker.api.*
import org.axonframework.commandhandling.CommandHandler
import org.axonframework.common.IdentifierFactory
import org.axonframework.eventsourcing.EventSourcingHandler
import org.axonframework.modelling.command.Aggre... | 0 | Kotlin | 0 | 0 | 823e28bad902318eb1044e459aa8587df80c1726 | 2,266 | conference-tracker-sample | Apache License 2.0 |
app/src/main/java/com/mohmmed/mosa/eg/news/domain/usecase/news/NewsUseCases.kt | M4A28 | 817,807,588 | false | {"Kotlin": 98711} | package com.mohmmed.mosa.eg.news.domain.usecase.news
data class NewsUseCases(
val getNews: GetNews,
val searchNews: SearchNewsUseCases,
val upsertArticle: UpsertArticle,
val deleteArticle: DeleteArticle,
val selectArticle: SelectArticle,
val selectArticles: SelectArticles
)
| 0 | Kotlin | 0 | 1 | 46e8d13441058464d9542c0c3babfd58e0ccdeaf | 300 | News | MIT License |
app/src/main/java/com/zeroone/recyclo/ui/dashboard/waste/WasteFragment.kt | mohammad-firmansyah | 642,413,824 | false | null | package com.zeroone.recyclo.ui.dashboard.waste
import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.google.android.material.floatingactionbutton.FloatingActionButton
import com.z... | 0 | Kotlin | 0 | 0 | 1dae6245009f40723cc8f0bd4976c1d53a7c5026 | 2,415 | ReCyclo | MIT License |
04_collections/01.List.kt | alidehkhodaei | 617,526,016 | false | null | package `04_collections`
fun main() {
// List
val list = listOf(1, 2, 3, 4, 5)
val list2 = mutableListOf(1, 2, 3, 4, 5)
val numbers = mutableListOf(1, 2, 3)
numbers.add(4) // Adds the specified element to the end of the list
numbers.remove(3) // Removes the first occurrence of the specified el... | 0 | Kotlin | 4 | 55 | a9c9fe2922d5a8c6ad839de2064e56582a851bfc | 435 | kotlin-cheatsheet | MIT License |
src/main/kotlin/nrxus/droptoken/persistence/DropToken.kt | nrxus | 245,327,294 | false | null | package nrxus.droptoken.persistence
import javax.persistence.*
@Entity
class DropToken(
@ElementCollection
val originalPlayers: List<String>,
@ElementCollection
val currentPlayers: MutableList<String>,
@Column(nullable = false)
var state: State,
@Column(nulla... | 0 | Kotlin | 0 | 0 | 4c969c69d213425cfd0117ca512a4d500b8eccf8 | 1,341 | drop-token | MIT License |
src/main/kotlin/bpm/mc/registries/ModTiles.kt | sincyn | 850,591,647 | false | {"Kotlin": 1001776} | package bpm.mc.registries
import bpm.Bpm
import bpm.booostrap.ModRegistry
import bpm.mc.block.EnderControllerTileEntity
import net.minecraft.core.registries.Registries
import net.minecraft.world.level.block.entity.BlockEntityType
import net.neoforged.bus.api.IEventBus
import net.neoforged.neoforge.registries.DeferredR... | 1 | Kotlin | 1 | 0 | 0975bc4ac8c5d128db93525c4602e42cd321f281 | 856 | bpm | MIT License |
src/main/kotlin/bpm/mc/registries/ModTiles.kt | sincyn | 850,591,647 | false | {"Kotlin": 1001776} | package bpm.mc.registries
import bpm.Bpm
import bpm.booostrap.ModRegistry
import bpm.mc.block.EnderControllerTileEntity
import net.minecraft.core.registries.Registries
import net.minecraft.world.level.block.entity.BlockEntityType
import net.neoforged.bus.api.IEventBus
import net.neoforged.neoforge.registries.DeferredR... | 1 | Kotlin | 1 | 0 | 0975bc4ac8c5d128db93525c4602e42cd321f281 | 856 | bpm | MIT License |
app/src/main/java/com/softaai/dsa_kotlin/priorityqueue/AbstractPriorityQueue.kt | amoljp19 | 537,774,597 | false | {"Kotlin": 139041} | package com.softaai.dsa_kotlin.priorityqueue
/**
* Created by amoljp19 on 11/18/2022.
* softAai Apps.
*/
abstract class AbstractPriorityQueue<T> : Queue<T> {
abstract val heap : Heap<T>
get
override val count: Int
get() = heap.count
override val isEmpty: Boolean
get() = heap.isE... | 0 | Kotlin | 0 | 1 | 3dabfbb1e506bec741aed3aa13607a585b26ac4c | 521 | DSA_KOTLIN | Apache License 2.0 |
app/src/main/java/com/pawegio/homebudget/login/LoginFragment.kt | pawegio | 193,266,818 | false | {"Kotlin": 132199, "Shell": 858} | package com.pawegio.homebudget.login
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import org.koin.androidx.viewmodel.ext.android.getViewModel
import splitties.views.onClick
class LoginFragment : Fragment() {
... | 2 | Kotlin | 6 | 7 | 7ab504bdec5ea253d6c3fe015801be669f2c0e88 | 810 | HomeBudget | Apache License 2.0 |
module_base/src/main/java/kylec/me/base/user/UserDao.kt | lovelyefyyucui | 228,560,285 | false | {"Kotlin": 97529, "Java": 41712} | package kylec.me.base.user
import com.vicpin.krealmextensions.delete
import com.vicpin.krealmextensions.query
import com.vicpin.krealmextensions.save
/**
* Created by KYLE on 2019/5/9 - 10:55
*/
object UserDao {
fun queryUser(username: String) = query<User> { equalTo("username", username) }.firstOrNull()
... | 0 | null | 0 | 0 | 0e2a293792d90548f2253c38e59b647aafd0605a | 448 | KJWanAndroid | Apache License 2.0 |
build-logic/convention/src/main/kotlin/UiFeatureModulePlugin.kt | Reach2027 | 741,563,053 | false | {"Kotlin": 61951} | import com.reach.modernandroid.configureComposeLibraries
import org.gradle.api.Plugin
import org.gradle.api.Project
class UiFeatureModulePlugin : Plugin<Project> {
override fun apply(target: Project) {
with(target) {
pluginManager.apply {
apply("reach.android.library")
... | 0 | Kotlin | 0 | 1 | f20bc1d1bdc1a9df5b748e3e3bce875f6a76e2df | 383 | ModernAndroid | Apache License 2.0 |
app/src/main/java/dev/dvdciri/sampleapp/postdetails/mapper/PostDetailsToUiModelsMapper.kt | dvdciri | 174,832,272 | false | null | package dev.dvdciri.sampleapp.postdetails.mapper
import dev.dvdciri.sampleapp.domain.model.PostDetails
import dev.dvdciri.sampleapp.post.mapper.PostToPostUiModelMapper
import dev.dvdciri.sampleapp.ui.ItemUiModel
class PostDetailsToUiModelsMapper
constructor(
private val userToAuthorUiModelMapper: UserToAuthorUiM... | 2 | Kotlin | 0 | 1 | 8e091dd06f4b639f1dc62448d9f6cbb15efc6ed0 | 664 | SampleApp-Android | Apache License 2.0 |
app/src/main/java/com/funny/app/gif/memes/ui/maker/model/MineViewModel.kt | yibulaxi | 616,417,403 | false | {"Java": 1087519, "Kotlin": 361539} | package com.funny.app.gif.memes.ui.maker.model
import com.funny.app.gif.memes.ui.maker.PickActivity
import com.xm.lib.base.inters.IBaseView
import com.xm.lib.base.model.BaseViewModelKt
import com.xm.lib.manager.IntentManager
class MineViewModel: BaseViewModelKt<IBaseView>() {
override fun onCreated() {
}
... | 1 | null | 1 | 1 | 16c57fc7e91d945966c0876e404f33e75a89c8e9 | 424 | GifSearch | Apache License 2.0 |
src/main/java/auth/api/BitbucketOAuth2Client.kt | rupebac | 127,289,581 | false | {"Java": 16240, "Kotlin": 11941, "JavaScript": 8480, "HTML": 3346} | package auth.api
import org.apache.http.NameValuePair
import org.apache.http.client.entity.UrlEncodedFormEntity
import org.apache.http.client.methods.HttpPost
import org.apache.http.impl.client.HttpClientBuilder
import org.apache.http.message.BasicNameValuePair
import org.apache.http.protocol.HTTP
import org.apache.ht... | 1 | null | 1 | 1 | 72e10cf4359c6d5ae44399d7c9df04778176451c | 2,554 | hard-worker-activity-stream | MIT License |
mobile-app/src/main/kotlin/org/vivlaniv/nexohub/entities/cards/NewDeviceCard.kt | vityaman-edu | 759,345,689 | false | {"Kotlin": 214062} | package org.vivlaniv.nexohub.entities.cards
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.fo... | 7 | Kotlin | 0 | 0 | 467b9f68b6a85ae20e91345aeabf8cc742ff73ed | 2,423 | nexo-hub | The Unlicense |
o11nplugin-contrail-workflow-dsl/src/main/kotlin/net/juniper/contrail/vro/workflows/dsl/DataBinding.kt | tungstenfabric | 237,744,206 | false | null | /*
* Copyright (c) 2018 Juniper Networks, Inc. All rights reserved.
*/
package net.juniper.contrail.vro.workflows.dsl
import net.juniper.contrail.vro.config.listElementProperty
import net.juniper.contrail.vro.workflows.model.ParameterQualifier
import net.juniper.contrail.vro.workflows.model.ParameterType
import net... | 6 | Kotlin | 3 | 0 | 2a041934116d2d92a04f554222ea1512a9f09ffb | 2,246 | tf-vro-plugin | Apache License 2.0 |
src/main/kotlin/com/newardassociates/pptbuilder/text/TextProcessor.kt | tedneward | 231,859,399 | false | null | package com.newardassociates.pptbuilder.text
import com.newardassociates.pptbuilder.Presentation
import com.newardassociates.pptbuilder.Processor
import com.newardassociates.pptbuilder.Section
import com.newardassociates.pptbuilder.Slide
import java.io.FileWriter
class TextProcessor(options: Options) : Processor(opti... | 4 | Kotlin | 2 | 6 | f4d70cd1edaa7098a0f31a32eef8c0570f7dd218 | 912 | pptbuilder | Apache License 2.0 |
app/src/main/java/com/myth/ticketmasterapp/data/eventmodels/Embedded.kt | MichaelGift | 634,539,469 | false | {"Kotlin": 113077} | package com.myth.ticketmasterapp.data.eventmodels
data class Embedded(
val events: List<Event>
) | 0 | Kotlin | 1 | 0 | 398821b347414a3f5ea711143b5fcc6f266738a7 | 101 | Event-Finder-App | MIT License |
compiler/src/main/kotlin/se/ansman/kotshi/Options.kt | ansman | 95,685,398 | false | {"Kotlin": 410998, "Shell": 128} | package se.ansman.kotshi
object Options {
const val createAnnotationsUsingConstructor = "kotshi.createAnnotationsUsingConstructor"
const val useLegacyDataClassRenderer = "kotshi.useLegacyDataClassRenderer"
const val generatedAnnotation = "kotshi.generatedAnnotation"
val possibleGeneratedAnnotations = ... | 3 | Kotlin | 43 | 746 | 45b2eceb8b38cb2362ca4854f1f50b1d97f603eb | 424 | kotshi | Apache License 2.0 |
src/test/kotlin/io/ankburov/videocontentserver/integration/MpegDashContentStorageEndpointTest.kt | AnkBurov | 130,724,056 | false | {"JavaScript": 28929, "Kotlin": 26659, "CSS": 17226, "HTML": 9298} | package io.ankburov.videocontentserver.integration
import io.ankburov.videocontentserver.model.MpegDto
import org.apache.commons.lang3.StringUtils
import org.junit.Assert
import org.junit.Test
import org.junit.runner.RunWith
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.... | 0 | JavaScript | 1 | 6 | cf6225d0aa15d5f01763a70a194c348622fe3083 | 1,474 | Video-content-server | MIT License |
android/src/main/kotlin/dsishokov/yandex_sign/YandexSignPlugin.kt | Ishokov-Dzhafar | 200,657,506 | false | {"Dart": 3606, "Swift": 3132, "Ruby": 3122, "Kotlin": 2472, "Objective-C": 373} | package dsishokov.yandex_sign
import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel
import io.flutter.plugin.common.MethodChannel.MethodCallHandler
import io.flutter.plugin.common.MethodChannel.Result
import io.flutter.plugin.common.PluginRegistry.Registrar
import android.util.Base64... | 1 | Dart | 0 | 2 | 68e6c553706b5065b2afbed0bdd727cadf022cc0 | 2,098 | yandex_sign | MIT License |
app/src/main/java/com/az/learncompose/pokedex/ui/view/pokemonlist/PokemonListView.kt | azhar1038 | 380,442,537 | false | null | package com.az.learncompose.pokedex.ui.view.pokemonlist
import android.graphics.Bitmap
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
impor... | 0 | Kotlin | 0 | 0 | 5aeaa3fb01723fc0c39d55c6de97cdf11d49e04b | 8,215 | Pokedex-V1 | MIT License |
app/src/main/java/com/dicoding/moviesdb_compose/ui/component/NavigationBottomBar.kt | AlvinPradanaAntony | 644,579,788 | false | null | package com.dicoding.moviesdb_compose.ui.component
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.*
import androidx.compose.material.icons.Icons
import androidx.compose.mater... | 0 | Kotlin | 0 | 0 | cae5a63e27ec15d50de240e3dbf71576e072a97a | 4,280 | MovieDB_Compose | Apache License 2.0 |
cxrv/src/test/kotlin/com/xiaocydx/cxrv/multitype/MutableMultiTypeTest.kt | xiaocydx | 460,257,515 | false | {"Kotlin": 1363378} | /*
* Copyright 2022 xiaocydx
*
* 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 w... | 0 | Kotlin | 0 | 9 | 83ca90dc5c8ac6892c1cdfdb026b8afb187e48fd | 5,109 | CXRV | Apache License 2.0 |
src/main/kotlin/com/lykke/matching/engine/services/MultiLimitOrderService.kt | Ecoblockchain | 83,384,454 | true | {"Kotlin": 357467, "Java": 39764, "Protocol Buffer": 3149} | package com.lykke.matching.engine.services
import com.lykke.matching.engine.daos.LimitOrder
import com.lykke.matching.engine.daos.TradeInfo
import com.lykke.matching.engine.logging.MetricsLogger
import com.lykke.matching.engine.messages.MessageWrapper
import com.lykke.matching.engine.messages.ProtocolMessages
import c... | 0 | Kotlin | 0 | 0 | 064d092cc845e0c35ded5b750dd928aa0e86f644 | 5,336 | MatchingEngine | MIT License |
Commuzy-Frontend/app/src/main/java/com/example/commuzy/SignInActivity.kt | Sun-zhenghao-BU | 717,859,913 | false | {"Kotlin": 105289} | package com.example.commuzy
import android.content.Intent
import android.os.Bundle
import android.text.TextUtils
import android.util.Log
import android.view.WindowManager
import android.widget.Button
import com.example.commuzy.databinding.ActivitySignInBinding
import android.widget.Toast
import androidx.core.content... | 1 | Kotlin | 0 | 0 | 6f899e66ce4061cac4962971957ba8b49ae683bc | 5,431 | ComMuzy | MIT License |
app/src/main/java/com/anesabml/producthunt/ui/postDetails/adapter/ProductLinkImageItemViewHolder.kt | anesabml | 259,275,022 | false | {"Kotlin": 96195} | package com.anesabml.producthunt.ui.postDetails.adapter
import androidx.recyclerview.widget.RecyclerView
import coil.api.load
import com.anesabml.lib.extension.hide
import com.anesabml.producthunt.databinding.ItemProductLinkImageBinding
import com.anesabml.producthunt.model.Media
class ProductLinkImageItemViewHolder(... | 0 | Kotlin | 2 | 11 | 36c26c92b4114c357f507c547062b782f52758e3 | 624 | hunt | MIT License |
common/src/main/kotlin/org/valkyrienskies/tournament/blocks/RedstoneConnectingBlock.kt | alex-s168 | 648,266,124 | false | {"Kotlin": 311448, "Java": 42190} | package org.valkyrienskies.tournament.blocks
import net.minecraft.core.Direction
import net.minecraft.world.level.block.state.BlockState
interface RedstoneConnectingBlock {
fun canConnectTo(state: BlockState, direction: Direction): Boolean
} | 4 | Kotlin | 10 | 8 | 48f2da03fab0f937805231929b7c145c69b1dab1 | 247 | VS_tournament_continued | Apache License 2.0 |
example/in-memory/eda/test/specification/src/test/kotlin/org/sollecitom/chassis/core/example/inmemory/eda/test/specification/InMemoryEventDrivenArchitectureTests.kt | sollecitom | 669,483,842 | false | {"Kotlin": 842185, "Java": 30834} | package org.sollecitom.chassis.core.example.inmemory.eda.test.specification
import assertk.assertThat
import assertk.assertions.isEqualTo
import kotlinx.coroutines.CoroutineStart.UNDISPATCHED
import kotlinx.coroutines.async
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.delay
import kotlinx.corouti... | 0 | Kotlin | 0 | 2 | 4b008030b4035ec5975aa4dd092e5c95c9462f3f | 10,913 | chassis | MIT License |
webshareinfo/src/main/java/com/kevin/webshareinfo/WebShareInfo.kt | xuehuayous | 320,485,074 | false | null | package com.kevin.webshareinfo
import android.webkit.WebView
import org.json.JSONException
import org.json.JSONObject
/**
* WebShareInfo
*
* @author <EMAIL>, Created on 2020-12-11 14:27:30
* Major Function:<b>WebShareInfo</b>
* <p/>
* Note: If you modify this class please fill in the fol... | 0 | Kotlin | 0 | 2 | cbd504e2aeffba99762aa67c595395524fe3e2f2 | 3,698 | Android-WebShareInfo | Apache License 2.0 |
kotlinc-plugin/src/main/kotlin/org/jetbrains/research/ktglean/indexers/ClassDeclarationsIndexer.kt | e2e4b6b7 | 476,404,280 | false | {"Kotlin": 85849, "ANTLR": 2903} | package org.jetbrains.research.ktglean.indexers
import org.jetbrains.kotlin.fir.analysis.checkers.context.CheckerContext
import org.jetbrains.kotlin.fir.declarations.FirRegularClass
import org.jetbrains.research.ktglean.factories.GleanClassFactory
import org.jetbrains.research.ktglean.indexers.base.FirRegularClassInde... | 0 | Kotlin | 0 | 4 | 84b9d903f16cf9300bf5d0c0930b37b7e480b0dd | 796 | KtGlean | Apache License 2.0 |
app/src/main/java/com/example/glidetest/DetailActivity.kt | dangkhai98nd | 193,250,850 | false | null | package com.example.glidetest
import android.annotation.SuppressLint
import android.app.Activity
import android.app.ProgressDialog
import android.graphics.Color
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.DefaultItemAnimator
import androidx.recyclerview.... | 0 | Kotlin | 0 | 0 | 7ebbeab3ca4637f8178f979750861d2d7972f49f | 12,119 | MovieApp | Apache License 2.0 |
code/backend/Odin/src/main/kotlin/pt/isel/odin/http/controllers/department/models/UpdateDepartmentOutputModel.kt | Rafael4DC | 767,594,795 | false | {"Kotlin": 380088, "TypeScript": 256706, "C#": 13106, "PowerShell": 1924, "JavaScript": 1734, "HTML": 263} | package pt.isel.odin.http.controllers.department.models
import pt.isel.odin.http.controllers.fieldstudy.models.GetFieldStudyOutputModel
import pt.isel.odin.model.Department
/**
* Represents the output model for updating a department.
*
* @property id The department id.
* @property name The department name.
* @pr... | 61 | Kotlin | 0 | 2 | 89098f83607781fa838773eae7cef1781cd85a07 | 801 | AssemblyOdin | MIT License |
app/src/main/java/com/example/dumb_charades/screens/title/TitleFragment.kt | Ranawatt | 253,177,607 | false | null | package com.example.dumb_charades.screens.title
import androidx.lifecycle.ViewModelProviders
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.navigation.fi... | 0 | Kotlin | 0 | 1 | 45edc3cd758f83d505b3784d6d653ce5542d6319 | 1,405 | Dumb-Charades | The Unlicense |
app/src/main/java/com/rerere/iwara4a/api/paging/LikeSource.kt | Sagar19RaoRane | 400,201,403 | true | {"Kotlin": 419813} | package com.rerere.iwara4a.api.paging
import android.util.Log
import androidx.paging.PagingSource
import androidx.paging.PagingState
import com.rerere.iwara4a.model.index.MediaPreview
import com.rerere.iwara4a.model.session.SessionManager
import com.rerere.iwara4a.repo.MediaRepo
private const val TAG = "LikeSource"
... | 0 | null | 0 | 0 | 5409dba4a563ac2bfb930640fc4c898fa6a79484 | 1,322 | iwara4a | Apache License 2.0 |
sessionize/lib/src/commonMain/kotlin/co/touchlab/sessionize/file/FileLoader.kt | archiegq21 | 373,171,044 | true | {"Kotlin": 222919, "Swift": 80064, "HTML": 7463, "Python": 3852, "Ruby": 2327, "Objective-C": 537, "Shell": 36} | package co.touchlab.sessionize.file
fun interface FileLoader {
fun load(filePrefix: String, fileType: String): String?
} | 0 | Kotlin | 0 | 0 | 8c3ec05448d586037c924f245f77fcd0150f0476 | 125 | DroidconKotlin | Apache License 2.0 |
src/main/kotlin/org/valkyrienskies/core/collision/CollisionResultTimeToCollision.kt | ValkyrienSkies | 329,044,944 | false | null | package org.valkyrienskies.core.collision
import org.joml.Vector3d
import org.joml.Vector3dc
data class CollisionResultTimeToCollision internal constructor(
internal var _initiallyColliding: Boolean,
internal var _collisionAxis: Vector3d,
internal var _timeToCollision: Double
) : CollisionResultTimeToColl... | 2 | Kotlin | 0 | 1 | a9623e844643f6fa3cb38cbaed6ef1f349aaa205 | 1,265 | vs-core | Apache License 2.0 |
src/main/kotlin/me/fzzyhmstrs/imbued_deco/registry/RegisterEntity.kt | fzzyhmstrs | 753,897,475 | false | {"Kotlin": 63800, "Java": 4059} | package me.fzzyhmstrs.imbued_deco.registry
import me.fzzyhmstrs.amethyst_imbuement.AI
import me.fzzyhmstrs.fzzy_core.coding_util.FzzyPort
import me.fzzyhmstrs.fzzy_core.entity_util.EntityBuilder
import me.fzzyhmstrs.imbued_deco.entity.ImbuedHopperBlockEntity
import me.fzzyhmstrs.imbued_deco.entity.PlaceablePotionBlock... | 0 | Kotlin | 0 | 0 | 23868d0ab09c78af9b1a8c6afd05b2934e1bf629 | 1,219 | id | MIT License |
app/src/test/java/com/openwallet/ui/activity/fragment/profile/faq/FaqViewModelTest.kt | hsbc | 742,467,592 | false | {"Kotlin": 502702, "Java": 40426} | package com.openwallet.ui.activity.fragment.profile.faq
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.lifecycle.MutableLiveData
import com.openwallet.base.BaseViewModel
import com.openwallet.ext.request
import com.openwallet.network.ApiRepository
import com.openwallet.network.ApiSe... | 0 | Kotlin | 0 | 1 | b72ac403ce1e38139ab42548967e08e6db347ddd | 2,707 | OpenWallet-aOS | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/FishBones.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Mite... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 4,487 | icons | MIT License |
app/src/main/java/io/korti/muffle/viewmodel/AddMufflePointActivityViewModel.kt | korti11 | 224,637,960 | false | null | /*
* Copyright 2020 Korti
*
* 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 a... | 5 | Kotlin | 0 | 0 | d97e3dc9ab8f275a1b3f036c47d3a779be631177 | 3,833 | muffle | Apache License 2.0 |
app/src/main/java/com/implementing/cozyspace/domain/usecase/diary/GetAllDiaryEntryUseCase.kt | Brindha-m | 673,871,291 | false | {"Kotlin": 635264} | package com.implementing.cozyspace.domain.usecase.diary
import com.implementing.cozyspace.domain.repository.diary.DiaryRepository
import com.implementing.cozyspace.model.Diary
import com.implementing.cozyspace.util.Order
import com.implementing.cozyspace.util.OrderType
import kotlinx.coroutines.flow.Flow
import kotlin... | 0 | Kotlin | 0 | 2 | 2f6c1b06d5cc7b7957843b17d0cb6551cb6cf6fd | 1,567 | DoodSpace-Todos.Notes.Doodles | Apache License 2.0 |
shared/src/commonMain/kotlin/Screen.kt | mohamad-abuzaid | 816,930,223 | false | {"Kotlin": 153863, "JavaScript": 1271, "HTML": 643, "Swift": 576, "Shell": 228, "Ruby": 101} | import model.Recipe
/**
* Created by "<NAME>" on 25/05/2023.
* Email: <EMAIL>
*/
sealed interface Screens {
data object RecipesList : Screens
data class RecipeDetails(
val recipe: Recipe
) : Screens
} | 1 | Kotlin | 0 | 0 | 225772a8d2880ef812340b82248ea57bc50abf89 | 224 | KMP-Recipes | Apache License 2.0 |
app/src/main/kotlin/com/akagiyui/drive/component/DatabaseLogAppender.kt | AkagiYui | 647,653,830 | false | {"Kotlin": 227183, "Java": 87795, "HTML": 812, "Dockerfile": 658} | package com.akagiyui.drive.component
import ch.qos.logback.classic.spi.ILoggingEvent
import ch.qos.logback.core.AppenderBase
import org.springframework.stereotype.Component
/**
* 日志数据库记录器
*
* @author AkagiYui
*/
@Component
class DatabaseLogAppender : AppenderBase<ILoggingEvent>() {
override fun append(p0: ILo... | 4 | Kotlin | 2 | 9 | 6ff345645dfa83944ca4d36c02f9fa7b2162697f | 382 | KenkoDrive | MIT License |
Solutions/solution_twentyOne_kotlin.kt | akebu6 | 424,142,622 | false | null | fun main() {
val (s, sn) = readln().split(" ")
val n = sn.toInt()
println(s.drop(n) + s.take(n))
}
| 3 | Kotlin | 11 | 1 | cbdfc945ab9a13a2fb5847e7118d5027c94fd5e9 | 112 | Code-Practice | MIT License |
character/ui-character-details/src/main/java/com/example/ui_character_details/ui/CharacterDetailsEvent.kt | shahzadansari | 649,266,330 | false | {"Kotlin": 48647} | package com.example.ui_character_details.ui
sealed class CharacterDetailsEvent {
data class GetCharacterFromCache(val id: Int) : CharacterDetailsEvent()
object RemoveHeadFromQueue : CharacterDetailsEvent()
}
| 0 | Kotlin | 3 | 43 | cb6dd154e9c8bc5e8210465e587ef212df7b81b9 | 217 | RickAndMorty | MIT License |
backend/src/main/kotlin/men/brakh/bsuirstudent/domain/ParentAware.kt | N1ghtF1re | 184,453,033 | false | null | package men.brakh.bsuirstudent.domain;
/**
* Interface which have to implement child entities.
* @param <T> Parent identifier's type.
*/
interface ParentAware<T>: BaseEntity<T> {
val parentId: T
}
| 0 | Kotlin | 0 | 9 | a4cd806c4658eb2aa736aa40daf47b19d39df80f | 205 | Bsuir-Additional-Api | Apache License 2.0 |
src/main/kotlin/infrastructure/provider/ManagerProviderImpl.kt | SmartOperatingBlock | 602,467,135 | false | null | /*
* Copyright (c) 2023. Smart Operating Block
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
package infrastructure.provider
import infrastructure.database.DatabaseManager
import infrastructure.digitaltwins... | 1 | Kotlin | 0 | 1 | 610ebd9dd89b48ba68a310c3bcddd58bb407fab5 | 815 | building-management-microservice | MIT License |
peekaboo-ui/src/androidMain/kotlin/com/preat/peekaboo/ui/gallery/repository/PeekabooGalleryRepositoryImpl.kt | onseok | 721,608,337 | false | {"Kotlin": 114387} | /*
* Copyright 2024 onseok
*
* 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... | 5 | Kotlin | 12 | 99 | 961403aa03c2d0be1f8259debf87aaac699e62b2 | 1,600 | peekaboo | Apache License 2.0 |
demo/src/main/java/com/dima6120/demo/shaders/ShaderManager.kt | dima6120 | 298,513,503 | false | null | package com.dima6120.demo.shaders
import android.content.Context
import com.dima6120.oglHelper.Shader
import com.dima6120.oglHelper.ShaderManagerBase
import com.dima6120.oglHelper.enums.ShaderType
class ShaderManager : ShaderManagerBase() {
override fun loadShaders(context: Context) {
loadShadersFromAsset... | 0 | Kotlin | 0 | 0 | d997580dd751d6ba82a6ad5ffbb56a7099aa63ba | 785 | OGLHelper | Apache License 2.0 |
librender/src/main/java/com/xyq/librender/utils/TextureHelper.kt | sifutang | 519,498,265 | false | {"C": 3029226, "Shell": 440458, "Roff": 269462, "Kotlin": 187172, "Makefile": 136105, "C++": 123528, "Awk": 42864, "CMake": 29005, "M4": 19284, "Java": 13131, "DIGITAL Command Language": 10718, "Assembly": 8352, "Batchfile": 3562, "GLSL": 2822, "Module Management System": 2083, "Dockerfile": 988} | package com.xyq.librender.utils
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.opengl.GLES30
import android.opengl.GLUtils
import android.util.Log
class TextureHelper {
companion object {
private const val TAG = "TextureHelper"
p... | 0 | C | 8 | 28 | f21ce990df19745e691fba007046190888639d22 | 3,055 | ffmpeg-demo | Apache License 2.0 |
src/main/kotlin/net/greemdev/mod/util/MixinUtil.kt | GreemDev | 452,819,836 | false | null | package net.greemdev.mod.util
import java.util.*
import java.util.concurrent.ThreadLocalRandom
fun String.chopRest(str: String): String = if (contains(str))
substring(0, this.indexOf(str))
else this
object MixinUtil {
@JvmStatic
fun isInRange(value: Int, lower: Int, upper: Int, inclusiveUpper: Boolean)... | 0 | Kotlin | 0 | 1 | a03c67a20b53400df9f867af2731adba81751976 | 1,966 | ModpackCore | MIT License |
ByteBank - Heritage, Polimorfism and Interface/src/br/com/brenofarias/bytebank/model/SavingsAccount.kt | BrenoFariasdaSilva | 435,834,837 | false | null | package br.com.brenofarias.bytebank.model
class SavingsAccount(
owner: Client,
number: Int
) : Account(
owner = owner,
number = number
) {
override fun withdraw(value: Double): Boolean {
if (this.balance >= value) {
this.balance -= value
return true
}
... | 0 | Kotlin | 0 | 0 | 5baf6b864de5b347d1efb763a513614a8580daf1 | 341 | Kotlin | MIT License |
core/src/main/kotlin/io/github/gunkim/game/application/service/BoardService.kt | gunkim | 374,385,822 | false | null | package io.github.gunkim.game.application.service
import io.github.gunkim.game.application.usecase.board.MoveUseCase
import io.github.gunkim.game.domain.Gamers
import io.github.gunkim.game.domain.Rooms
import io.github.gunkim.game.domain.Users
import io.github.gunkim.game.domain.vo.MoveType
import org.springframework.... | 0 | Kotlin | 0 | 1 | 1846af9d73e136570ab96a367080a0964925d3ce | 739 | 2048-online | MIT License |
features/home/src/main/kotlin/com/redmadrobot/home/presentation/HomeViewModel.kt | RedMadRobot | 329,271,152 | false | null | package com.redmadrobot.home.presentation
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.redmadrobot.base_cards.toCardViewState
import com.redmadrobot.core.extensions.safeLaunch
import com.redmadrobot.core_navigation.navigation.Router
... | 0 | Kotlin | 1 | 9 | 12803311fa77b76ad1156f62bae1ebbf3c4cfd94 | 2,344 | android-mad-showcase | MIT License |
app/src/main/java/com/sundbybergsit/cromfortune/ui/home/OpinionatedStockOrderWrapperListAdapter.kt | Sundbybergs-IT | 2,808,467 | false | null | package com.sundbybergsit.cromfortune.ui.home
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.annotation.ColorInt
import androidx.core.content.ContextCompat
import androidx.core.os.ConfigurationCompa... | 18 | Kotlin | 0 | 0 | e58b98d17c6c4f7d360f8274ad25c709c7505e1f | 5,903 | Crom-Fortune | The Unlicense |
app/src/main/java/xyz/leomurca/sporteventtracker/ui/theme/Color.kt | leomurca | 815,376,543 | false | {"Kotlin": 46715} | package xyz.leomurca.sporteventtracker.ui.theme
import androidx.compose.ui.graphics.Color
val Orange = Color(0xFFFFab30)
val FlameOrange = Color(0xFFE7410F)
val ElectricBlue = Color(0xFF0094FF)
val DarkGray = Color(0xFF343434)
val Black = Color(0xFF000000)
val White = Color(0xFFFFFFFF)
| 0 | Kotlin | 0 | 0 | f0b1eafb2810b9c7f9595fd04562503a7b4ad6e5 | 289 | sport-event-tracker | MIT License |
app/src/main/java/com/jordantuffery/githubreader/viewcontroler/ReposActivity.kt | TufferyJordan | 131,753,901 | false | null | package com.jordantuffery.githubreader.viewcontroler
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.ArrayAdapter
import com.jordantuffery.githubreader.GithubInterface
import com.jordantuffery.githubreader.R
import com.jordantuffery.githubreader.model.RepoDetails
import k... | 0 | Kotlin | 0 | 0 | 93ccbc7c11561fabd0dc5abdefa5c4ada092a381 | 1,041 | github-app | Apache License 2.0 |
src/main/kotlin/me/w2x/rest/repository/UserRepository.kt | wancaibida | 327,922,315 | false | null | package me.w2x.rest.repository
import me.w2x.rest.entity.User
import org.springframework.data.repository.CrudRepository
/**
* Created by <NAME> on 1/20/21.
*/
interface UserRepository : CrudRepository<User, String> {
fun findByUsername(username: String): User?
} | 0 | Kotlin | 0 | 0 | ec70a7afad6db264da96ef8c8d6ae8f878381024 | 271 | spring-rest-token | Apache License 2.0 |
lib/src/main/java/co/uk/androidsolution/lib/model/OnboardingModel.kt | bastami82 | 219,193,739 | false | null | package co.uk.androidsolution.lib.model
import androidx.annotation.Keep
import org.parceler.Parcel
import org.parceler.ParcelConstructor
@Keep
@Parcel(Parcel.Serialization.BEAN)
data class OnboardingModel @ParcelConstructor constructor(
val slides: List<SlideModel>,
val portraitOnly: Boolean = true,
val s... | 0 | Kotlin | 0 | 5 | 04f5a957881e8e9ab44c5c4adb6fb524800cd79d | 352 | Easy-onBoarding | Apache License 2.0 |
app/src/main/java/com/example/filler/gui/shared/Utils.kt | oriolagobat | 494,453,008 | false | null | package com.example.filler.gui.shared
import android.app.Activity
import android.content.Context
import android.content.SharedPreferences
import android.view.View
import android.view.Window
import android.view.inputmethod.InputMethodManager
import android.widget.EditText
import androidx.appcompat.app.AppCompatActivity... | 1 | Kotlin | 0 | 1 | 27f15dfa611d15b9a15888bf87a408b992c3ef04 | 2,476 | Filler-Game-2 | MIT License |
app/src/main/java/com/breezelinktelecom/features/login/ShopFeedbackDao.kt | DebashisINT | 851,532,207 | false | {"Kotlin": 15739075, "Java": 1026627} | package com.breezelinktelecom.features.login
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import com.breezelinktelecom.app.AppConstant
import com.breezelinktelecom.app.domain.ProductListEntity
@Dao
interface ShopFeedbackDao {
@Insert
fun insert(vararg obj: ShopFeedbackEntit... | 0 | Kotlin | 0 | 0 | 6b0e10f53cfab02f3790b9064bd705ee3dc87fef | 687 | LinkTelecom | Apache License 2.0 |
spring-framework-basic/src/main/kotlin/com/person/vincent/conditional/MacOSCondition.kt | lufei4 | 147,490,906 | true | {"Kotlin": 64874, "HTML": 1458, "PLpgSQL": 1360} | package com.person.vincent.conditional
import org.springframework.context.annotation.Condition
import org.springframework.context.annotation.ConditionContext
import org.springframework.core.type.AnnotatedTypeMetadata
/**
* Author: vincent
* Date: 2018-01-22 11:34:00
* Comment: 重写 matches 方法来判定是否是 Mac OS 操作系统
*/
c... | 0 | Kotlin | 0 | 0 | 1f544d82dfb81c9b87d4900c1601aa76b29a1b9e | 536 | spring-boot-with-kotlin-examples | Apache License 2.0 |
spring-framework-basic/src/main/kotlin/com/person/vincent/conditional/MacOSCondition.kt | lufei4 | 147,490,906 | true | {"Kotlin": 64874, "HTML": 1458, "PLpgSQL": 1360} | package com.person.vincent.conditional
import org.springframework.context.annotation.Condition
import org.springframework.context.annotation.ConditionContext
import org.springframework.core.type.AnnotatedTypeMetadata
/**
* Author: vincent
* Date: 2018-01-22 11:34:00
* Comment: 重写 matches 方法来判定是否是 Mac OS 操作系统
*/
c... | 0 | Kotlin | 0 | 0 | 1f544d82dfb81c9b87d4900c1601aa76b29a1b9e | 536 | spring-boot-with-kotlin-examples | Apache License 2.0 |
kucukBitmapOlustur.kt | ekremgunes | 561,780,613 | false | null | fun kucukBitmapOlustur(kullanicininBitmap : Bitmap , MaximumBoyut :Int): Bitmap? {
var width = kullanicininBitmap.width
var height = kullanicininBitmap.height
val bitmapOran = width.toDouble() / height.toDouble()
if(bitmapOran > 1 ){
//görsel yataydır
width = M... | 0 | Kotlin | 0 | 2 | 3d6ed5d119bd7f57655c52c9b8d37b7fa6f294f0 | 686 | Kotlin-Basics | MIT License |
clck/app/src/main/java/com/example/primaryengine/framework/AudioK.kt | MaximRybinsky | 351,463,250 | false | null | package com.example.primaryengine.framework
interface AudioK {
fun newMusic(filename : String) : MusicK
fun newSound(filename: String) : SoundK
} | 0 | Kotlin | 0 | 0 | 3001a77afd2bf0a45423465f8d1f9a1f3c9081f7 | 155 | AppleClicker | MIT License |
src/main/kotlin/kotlinmud/event/impl/PlayerLoggedInEvent.kt | brandonlamb | 275,313,206 | true | {"Kotlin": 435931, "Dockerfile": 133, "Shell": 126} | package kotlinmud.event.impl
import kotlinmud.io.model.Client
import kotlinmud.player.model.MobCard
class PlayerLoggedInEvent(val client: Client, val mobCard: MobCard)
| 0 | null | 0 | 0 | fc03c6230b9b3b66cd63994e74ddd7897732d527 | 170 | kotlinmud | MIT License |
ui/src/commonMain/kotlin/ru/mironov/logistics/ui/screens/parceldata/ParcelDataViewModel.kt | mironoff2007 | 655,211,419 | false | {"Kotlin": 210350, "Ruby": 1788, "Swift": 708, "Shell": 228} | package ru.mironov.logistics.ui.screens.parceldata
import com.mironov.database.parcel.ParcelsDbSource
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.launch
import kotlinx.serialization.decodeFromString
import... | 0 | Kotlin | 0 | 0 | 5755168e0eb42a1fdc03fea493f57d578b5ee08d | 1,617 | logistics_kmm | Apache License 2.0 |
features/directory/src/main/kotlin/app/dapk/st/directory/DirectoryViewModel.kt | ShadowJonathan | 471,471,233 | true | {"Kotlin": 586327, "Java": 13756, "Shell": 763, "Prolog": 113} | package app.dapk.st.directory
import androidx.lifecycle.viewModelScope
import app.dapk.st.directory.DirectoryScreenState.Content
import app.dapk.st.directory.DirectoryScreenState.EmptyLoading
import app.dapk.st.viewmodel.DapkViewModel
import app.dapk.st.viewmodel.MutableStateFactory
import app.dapk.st.viewmodel.defaul... | 0 | null | 0 | 0 | 2ab2253e7a1335f8c25b5e69be0dc1ec9c254958 | 1,199 | small-talk | Apache License 2.0 |
api/src/main/kotlin/de/hanno/hpengine/model/Instance.kt | hannomalie | 330,376,962 | false | {"Kotlin": 1006958, "GLSL": 659737, "JavaScript": 3160, "Shell": 137, "Batchfile": 65} | package de.hanno.hpengine.model
import de.hanno.hpengine.Parentable
import de.hanno.hpengine.Transform
import de.hanno.hpengine.lifecycle.Updatable
import de.hanno.hpengine.model.animation.AnimationController
import de.hanno.hpengine.model.material.Material
import de.hanno.hpengine.transform.AABB
class Instance(
... | 0 | Kotlin | 0 | 0 | 7f3a721922067409d52f522c49178c5d3bd8003b | 1,167 | hpengine | MIT License |
src/main/kotlin/com/springkt/demo/model/entity/User.kt | gemingjia | 708,003,205 | false | {"Kotlin": 7547} | package com.springkt.demo.model.entity
import java.time.LocalDateTime
/**
* @author Ge Mingjia
* @date 2023/10/21
*/
data class User(
val id: Int,
val userAccount: String,
val userPassword: String,
val userName: String?,
val userAvatar: String?,
val userProfile: String?,
val userRole: S... | 0 | Kotlin | 0 | 2 | ec65a94c9ef825098b3d112a42776e2bf5c8d6ae | 424 | springboot-kotlin-initialize | MIT License |
app/src/main/java/com/example/androiddevchallenge/di/modules/RepositoryModule.kt | klikiooo | 794,901,581 | false | {"Kotlin": 80357} |
package com.example.androiddevchallenge.di.modules
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
@Module
@InstallIn(SingletonComponent::class)
interface RepositoryModule {
// @Binds
// fun providePetRepository(petRepository: PetRepository) : PetRepository
}... | 0 | Kotlin | 0 | 0 | 591c94eb691459b30069fbdc36e61ac343de96ab | 321 | ad | The Unlicense |
app/src/main/kotlin/com/myweatherapp/ui/view/detail/DetailActivity.kt | uniflow-kt | 215,817,717 | false | null | package com.myweatherapp.ui.view.detail
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.google.android.material.snackbar.Snackbar
import com.myweatherapp.R
import com.myweatherapp.domain.model.weather.DailyForecastId
import com.myweatherapp.domain.model.weather.getColorFromCode
impo... | 0 | Kotlin | 3 | 13 | 4d4aa55e3a784f261d4c5711376f9435e04d2718 | 2,149 | weatherapp-uniflow | Apache License 2.0 |
src/main/kotlin/com/aoverin/invest/services/StockMarketApi.kt | a-overin | 776,842,962 | false | {"Kotlin": 29524, "Procfile": 81} | package com.aoverin.invest.services
import com.aoverin.invest.models.StockCost
import com.aoverin.invest.models.StockInfo
import java.time.LocalDate
interface StockMarketApi {
fun getStockCostByDateAndCode(code: String, date: LocalDate): StockCost?
fun getStockInfoByDateAndCode(code: String, date: LocalDate... | 0 | Kotlin | 0 | 0 | c158362f77d0f0addf999d1551064a4d8adf6b30 | 335 | invest-v2 | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.