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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
composeApp/src/commonMain/kotlin/presentation/list/ListContent.kt | yeldar-nurpeissov | 817,743,263 | false | {"Kotlin": 12745, "Swift": 621, "HTML": 347, "CSS": 102} | package presentation.list
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.*
import androidx.compose.material.*
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import com.arkivanov.d... | 0 | Kotlin | 1 | 1 | 99077f1248481967c0661f0391df76512c945899 | 1,113 | decompose-quick-guide | Apache License 2.0 |
app/src/main/java/com/bikcode/rickandmortycompose/domain/use_case/GetSelectedCharacterUC.kt | Bikcodeh | 412,662,765 | false | {"Kotlin": 120155} | package com.bikcode.rickandmortycompose.domain.use_case
import com.bikcode.rickandmortycompose.domain.model.Character
import com.bikcode.rickandmortycompose.domain.repository.CharacterRepository
import javax.inject.Inject
class GetSelectedCharacterUC @Inject constructor(private val characterRepository: CharacterRepos... | 0 | Kotlin | 1 | 0 | 65f77b49df3ed70b7469dc69deaed8bc56fdef9a | 484 | RickAndMortyCompose | MIT License |
app/src/main/java/com/example/calculatorapp/enums.kt | thisishisham1 | 689,881,117 | false | {"Kotlin": 35118} | package com.example.calculatorapp
enum class ButtonType {
LOW, MEDIUM, HIGH
} | 0 | Kotlin | 0 | 0 | e59aaf88d41c8578faa1bb002153e1b2b3fc90d8 | 82 | Calculator-App | MIT License |
app/src/main/kotlin/no/nav/paw/arbeidssokerregisteret/app/funksjoner/SkrivNyTilstandTilDb.kt | navikt | 698,089,423 | false | {"Kotlin": 30219} | package no.nav.paw.arbeidssokerregisteret.app.funksjoner
import no.nav.paw.arbeidssokerregisteret.app.PeriodeTilstandV1
import org.apache.kafka.streams.processor.api.Processor
import org.apache.kafka.streams.processor.api.ProcessorContext
import org.apache.kafka.streams.processor.api.Record
import org.apache.kafka.str... | 0 | Kotlin | 0 | 0 | 0791af57c6bd7cdac3adbd7034cc99a0e9dae58c | 1,957 | paw-arbeidssokerregisteret-event-prosessor | MIT License |
app/src/main/java/com/macisdev/mileageapp/database/NoteDao.kt | miguelamacias | 442,502,832 | false | {"Kotlin": 138545} | package com.macisdev.mileageapp.database
import androidx.lifecycle.LiveData
import androidx.room.*
import com.macisdev.mileageapp.model.Note
@Dao
interface NoteDao {
@Query("SELECT * FROM Note WHERE id = (:id)")
fun getNote(id: String): LiveData<Note>
@Query("SELECT * FROM Note WHERE vehiclePlateNumber ... | 0 | Kotlin | 1 | 1 | 0e7494a171f4aa49c136a633cea8c780ec6440a7 | 791 | MileageApp | MIT License |
CleanArchitecture/src/main/java/com/jesen/cleanarchitecture/feature_note/domain/use_case/DeleteNote.kt | Jesen0823 | 388,484,600 | false | null | package com.jesen.cleanarchitecture.feature_note.domain.use_case
import com.jesen.cleanarchitecture.feature_note.domain.model.NoteModel
import com.jesen.cleanarchitecture.feature_note.domain.repository.NoteRepository
class DeleteNote(
private val repository: NoteRepository
) {
suspend operator fun invoke(not... | 0 | Kotlin | 4 | 4 | 6a130fe009f7ab3008db0b847d80ca6412278738 | 379 | UseCompose | Apache License 2.0 |
Android/application/app/src/main/java/com/arpadfodor/stolenvehicledetector/android/app/view/utils/MasterFragment.kt | aaronfodor | 249,640,199 | false | {"Jupyter Notebook": 16761258, "Kotlin": 349389, "TeX": 234852, "Lua": 17047, "Makefile": 2005, "Batchfile": 321, "Shell": 9} | package com.arpadfodor.stolenvehicledetector.android.app.view.utils
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.lifecycle.Observer
import androidx.recyclerview.widget.LinearLayoutManager
import com.arpadfodor.stolenvehicledetector.a... | 0 | Jupyter Notebook | 0 | 0 | ff455c0daa2ca3bcf1f38b9f17833db8f0d449a0 | 6,247 | StolenVehicleDetector | MIT License |
src/test/kotlin/io/littlelanguages/mil/compiler/CompilerTests.kt | littlelanguages | 393,599,824 | false | {"Kotlin": 89278, "C": 44308, "Shell": 1631, "Makefile": 328} | package io.littlelanguages.mil.compiler
import io.kotest.core.spec.style.FunSpec
import io.kotest.core.spec.style.scopes.FunSpecContainerContext
import io.kotest.matchers.shouldBe
import io.littlelanguages.data.Either
import io.littlelanguages.data.Left
import io.littlelanguages.data.Right
import io.littlelanguages.mi... | 0 | Kotlin | 0 | 2 | 56bf90123d9e512410e83c254f6fd4efff1c6ea5 | 3,818 | ll-mini-ilisp-kotlin-llvm | MIT License |
src/main/kotlin/com/mt/notion/common/request/Direction.kt | motui | 479,945,371 | false | null | package com.mt.notion.common.request
/**
* Direction
*
* @author it.motui
*/
enum class Direction constructor(private val value: String) {
Ascending("ascending"),
Descending("descending"),
;
override fun toString(): String = value
}
| 0 | Kotlin | 0 | 1 | 80b7b256d8d7c34b15cf79d1e5f539c8ef4736b4 | 256 | notion-sdk-kotlin | MIT License |
app/src/main/java/xyz/fairportstudios/popularin/interfaces/DeleteCommentRequestCallback.kt | rgxcp | 277,228,278 | false | null | package xyz.fairportstudios.popularin.interfaces
interface DeleteCommentRequestCallback {
fun onSuccess()
fun onError(message: String)
} | 0 | Kotlin | 0 | 0 | ac82b65d5f43d07b64aa5010218c663983c839cb | 145 | PopularinKotlin | MIT License |
travelmaker_android/app/src/main/java/com/gumibom/travelmaker/ui/main/myrecord/ItemClickListener.kt | serotonins | 808,489,421 | false | {"Kotlin": 481004, "Java": 174550, "HTML": 4622, "Dockerfile": 516} | package com.gumibom.travelmaker.ui.main.myrecord
import android.view.View
interface ItemClickListener {
fun moveRecordDetail(pamphletId : Long, view : View)
} | 0 | Kotlin | 0 | 0 | eb8dee9dd6979722026a6d20fab96b56c4a63b1b | 164 | TravelMaker | MIT License |
permisos-gradle/src/main/java/cn/nikeo/permisos/gradle/PermisosClassTransformer.kt | nikeorever | 309,748,994 | false | null | package cn.nikeo.permisos.gradle
import javassist.ClassPool
import javassist.CtClass
import javassist.Modifier
import javassist.bytecode.CodeIterator
import javassist.bytecode.Opcode
import org.slf4j.LoggerFactory
import java.io.File
import java.io.FileInputStream
import java.util.zip.ZipInputStream
typealias CodeArr... | 0 | Kotlin | 1 | 3 | f0004212da13d9f0dbc5239dc6fe6b79b874a287 | 7,885 | permisos | Apache License 2.0 |
src/main/kotlin/se/svt/oss/mediaanalyzer/ffprobe/FfprobeAnalyzer.kt | svt | 285,523,429 | false | {"Kotlin": 47704} | // SPDX-FileCopyrightText: 2020 Sveriges Television AB
//
// SPDX-License-Identifier: Apache-2.0
package se.svt.oss.mediaanalyzer.ffprobe
import com.fasterxml.jackson.databind.ObjectMapper
import se.svt.oss.mediaanalyzer.util.ProcessUtil
class FfprobeAnalyzer
@JvmOverloads constructor(private val objectMapper: Objec... | 1 | Kotlin | 2 | 16 | db2df5d7bc692f74a2d3b61320f2cd785723bfa9 | 2,649 | media-analyzer | Apache License 2.0 |
app/src/main/java/caios/android/material_visualizer_sample/MainActivity.kt | matsumo0922 | 482,550,958 | false | {"Kotlin": 9791} | package caios.android.material_visualizer_sample
import android.graphics.Point
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Size
import android.view.Window
import android.view.animation.LinearInterpolator
import androidx.core.view.updatePadding
import androidx.recyclervi... | 0 | Kotlin | 0 | 0 | b2b9c2eaf8a228418fd30fcd14d36b0611773b9f | 1,323 | MaterialVisualizer | MIT License |
examples/auth/flutter-mfa/android/app/src/main/kotlin/com/example/mfa_app/MainActivity.kt | supabase | 214,587,193 | false | {"TypeScript": 8573478, "MDX": 4900669, "JavaScript": 958992, "CSS": 179592, "SCSS": 77562, "PLpgSQL": 17498, "Makefile": 8137, "Dockerfile": 2231, "Python": 1355, "Shell": 798} | package com.example.mfa_app
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 461 | TypeScript | 5585 | 61,023 | 8e4a094f2639202c725d27409d6585e7026b1d6e | 124 | supabase | Apache License 2.0 |
project/common/src/main/kotlin/ink/ptms/artifex/script/ScriptTaskEvaluator.kt | TabooLib | 492,563,163 | false | {"Kotlin": 246610, "Java": 3390} | package ink.ptms.artifex.script
import java.util.function.Consumer
/**
* Artifex
* ink.ptms.artifex.script.ScriptTaskEvaluator
*
* 脚本执行任务
*
* @author 坏黑
* @since 2022/6/13 22:59
*/
interface ScriptTaskEvaluator {
/**
* 是否挂载脚本(默认 false)
*/
fun mount(mount: Boolean): ScriptTaskEvaluator
... | 1 | Kotlin | 7 | 24 | eeb2e09552ad1d7bc67f82d56191be8693b329af | 807 | artifex | Creative Commons Zero v1.0 Universal |
android/src/main/kotlin/com/qkd/kdplayer/KDPlayerService.kt | quangkhuongduy0195 | 436,851,270 | false | null | package com.qkd.kdplayer
import android.app.Notification
import android.app.PendingIntent
import android.app.Service
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.os.Binder
import android.os.Handler
import android.os.IBinder
import android.os.Looper
i... | 0 | Kotlin | 0 | 0 | 3efb828011920a28d33b8012fbbf1c71669573d8 | 12,155 | kdplayer | MIT License |
platform/session/src/main/kotlin/platform/session/di/SessionModule.kt | Alaksion | 743,354,018 | false | {"Kotlin": 36550} | package platform.session.di
import org.kodein.di.DI
import org.kodein.di.bindSingleton
import org.kodein.di.instance
import platform.session.AuthHandler
import platform.session.AuthHandlerImpl
import platform.session.SessionHandler
import platform.session.SessionHandlerImpl
import platform.session.UserSingleton
val s... | 0 | Kotlin | 0 | 0 | 3eb8e517d69c92bfad59e4203ef8a391d6422cdd | 681 | ImagefyAndroid | MIT License |
app/src/main/java/com/example/emafoods/feature/signin/di/SignInModule.kt | vladr7 | 625,532,633 | false | null | package com.example.emafoods.feature.signin.di
import com.example.emafoods.core.domain.network.AuthService
import com.example.emafoods.feature.signin.domain.usecase.AddUserDataToRemoteDatabaseUseCase
import com.example.emafoods.feature.signin.domain.usecase.SignInAnonymousUseCase
import com.example.emafoods.feature.si... | 0 | Kotlin | 0 | 4 | 0362b3c40ba4596a41d68b09e74e4f1c2dc76bf1 | 1,124 | EmaFoods | Apache License 2.0 |
kroki-utils/src/main/kotlin/io/github/kerubistan/kroki/io/RandomInputStream.kt | kerubistan | 186,172,310 | false | {"Kotlin": 195200} | package io.github.kerubistan.kroki.io
import java.io.InputStream
import java.util.*
class RandomInputStream(
private val random: Random = Random(),
private val length: Int = random.nextInt()
) : InputStream() {
private var counter = 0
override fun read(): Int {
return if (counter >= length) {
-1
} else {
... | 0 | Kotlin | 2 | 3 | 1618cca5c1d3736760cb0f807336d90378d450ab | 754 | kroki | Apache License 2.0 |
app/src/main/java/com/anandj/tinker/core/time/LocalDateTimeAdapter.kt | anand-loop | 784,848,046 | false | {"Kotlin": 67870} | package com.anandj.tinker.core.time
import com.squareup.moshi.FromJson
import com.squareup.moshi.ToJson
import java.time.LocalDateTime
import java.time.format.DateTimeFormatter
class LocalDateTimeAdapter {
private val formatter = DateTimeFormatter.ISO_DATE_TIME
@FromJson
fun fromJson(json: String): Local... | 0 | Kotlin | 0 | 0 | e275c17c47c73180b7be4d6feef2dc354823bbbd | 496 | Tinker | Apache License 2.0 |
src/commonMain/kotlin/xyz/eatsteak/kusaint/webdynpro/eventqueue/EventQueueUtils.kt | EATSTEAK | 392,236,459 | false | null | package xyz.eatsteak.kusaint.webdynpro.eventqueue
const val EVENT_SPECTATOR = "~E001"
const val EVENT_DATA_START = "~E002"
const val EVENT_DATA_END = "~E003"
const val EVENT_DATA_COLON = "~E004"
const val EVENT_DATA_COMMA = "~E005"
fun String.toEventQueueString(): String = this.fold(StringBuilder()) { builder, char ... | 5 | Kotlin | 1 | 3 | 705b40d8ef450d97efd95a50ee94c622851a0460 | 744 | kusaint | Apache License 2.0 |
app/src/main/java/com/powelllaboratoriesfsm/features/nearbyshops/presentation/ShopAddressUpdateListener.kt | DebashisINT | 558,285,083 | false | {"Kotlin": 28543924, "Java": 1666150} | package com.powelllaboratoriesfsm.features.nearbyshops.presentation
import android.app.Dialog
import com.powelllaboratoriesfsm.app.domain.AddShopDBModelEntity
/**
* Created by Kinsuk on 16-11-2017.
*/
interface ShopAddressUpdateListener {
fun onUpdateClick(address: AddShopDBModelEntity?)
fun getDialogInst... | 0 | Kotlin | 0 | 0 | f2764306c066accfdacd74ccb38f006546fe1ecc | 374 | PowellLaboratories | Apache License 2.0 |
app/src/main/java/com/breezeiksindustries/features/menuBeat/MenuBeatRepositoryProvider.kt | DebashisINT | 863,536,151 | false | {"Kotlin": 15890094, "Java": 1030472} | package com.breezeiksindustries.features.menuBeat
import com.breezeiksindustries.features.addshop.model.AddShopRequestData
import com.breezeiksindustries.features.addshop.model.AddShopResponse
import io.reactivex.Observable
/**
* Created by Pratishruti on 22-11-2017.
*/
object MenuBeatRepositoryProvider {
fun p... | 0 | Kotlin | 0 | 0 | 77cc3b80d20adbe55363e1825240b8e2c6a44cf3 | 579 | IKSIndustries | Apache License 2.0 |
src/main/kotlin/no/nav/amt/distribusjon/journalforing/JournalforingstatusRepository.kt | navikt | 775,942,443 | false | {"Kotlin": 152205, "PLpgSQL": 635, "Dockerfile": 173} | package no.nav.amt.distribusjon.journalforing
import kotliquery.Row
import kotliquery.queryOf
import no.nav.amt.distribusjon.db.Database
import no.nav.amt.distribusjon.journalforing.model.Journalforingstatus
import java.util.UUID
class JournalforingstatusRepository {
private fun rowmapper(row: Row) = Journalforin... | 0 | Kotlin | 0 | 0 | 7feb526e1406ce3fabc0fa9b0425f116b8527ebd | 1,257 | amt-distribusjon | MIT License |
app/src/main/java/com/controlevacinacao/extiv/Banco.kt | Davi-ChavesN | 876,492,166 | false | {"Kotlin": 29920} | package com.controlevacinacao.extiv
import android.content.Context
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper
class Banco(context: Context): SQLiteOpenHelper(context, "DataBase", null, 1) {
companion object {
@Volatile
private var INSTANCE: Banco... | 0 | Kotlin | 0 | 0 | 7ac74a70de9c13d8c181071d426e5334ba4909b6 | 4,067 | SistemaDeVacinacao | MIT License |
source-code/final-project/app/src/main/java/com/droidcon/workmanager/helper/AppConstants.kt | droidcon-academy | 719,032,898 | false | {"Kotlin": 78870} | package com.droidcon.workmanager.helper
object AppConstants {
const val IMAGE_ID = "IMAGE_ID"
const val IMAGE_PATH = "IMAGE_PATH"
const val IMAGE_RESIZER_PROGRESS = "IMAGE_RESIZER_PROGRESS"
} | 0 | Kotlin | 0 | 0 | 54967001dce9b5ac3bd966ab4fb2cb0bd4afc3f1 | 204 | android-mc-workmanager-compose | Apache License 2.0 |
app/src/main/java/com/ferrariofilippo/saveapp/view/NewTagFragment.kt | ferrariofilippo | 683,187,933 | false | {"Kotlin": 305575} | // Copyright (c) 2024 <NAME>
// Licensed under the MIT License. See the LICENSE.
package com.ferrariofilippo.saveapp.view
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.AutoCompleteTextView
... | 0 | Kotlin | 0 | 1 | 5c6b236f1128af5e7d855d53d90c7f670c0d3806 | 6,282 | SaveApp_Kotlin | MIT License |
app/src/main/kotlin/com/dmko/bulldogvods/features/vods/domain/entities/VodPlaybackPosition.kt | dmitrykochanov | 477,314,891 | false | null | package com.dmko.bulldogvods.features.vods.domain.entities
data class VodPlaybackPosition(
val vodId: String,
val playbackPosition: Long
)
| 0 | Kotlin | 0 | 1 | 0aa6ec12113a0366c81c236cc6288e72ed15798c | 148 | BulldogVods | MIT License |
Server/application/src/communication/ExceptionHandler.kt | aaronfodor | 249,640,199 | false | {"Jupyter Notebook": 16761258, "Kotlin": 349389, "TeX": 234852, "Lua": 17047, "Makefile": 2005, "Batchfile": 321, "Shell": 9} | package com.arpadfodor.stolenvehicledetector.communication
import java.lang.RuntimeException
object ExceptionHandler {
fun isNoException(statusCode: Int) : Boolean{
return when(statusCode){
StatusCodes.SUCCESS -> true
else -> false
}
}
fun throwAppropriateExceptio... | 0 | Jupyter Notebook | 0 | 0 | ff455c0daa2ca3bcf1f38b9f17833db8f0d449a0 | 821 | StolenVehicleDetector | MIT License |
src/main/java/org/radarbase/management/web/rest/criteria/CriteriaRange.kt | RADAR-base | 90,646,368 | false | {"Kotlin": 1000491, "TypeScript": 476028, "HTML": 280734, "Java": 24215, "SCSS": 20166, "Scala": 16198, "JavaScript": 3395, "Dockerfile": 2950, "Shell": 734, "CSS": 425} | /*
* Copyright (c) 2021. The Hyve
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* See the file LICENSE in the root of this repository.
*/
package org.radarbase.management.web.rest.criteria
open class CriteriaRange<T : Com... | 85 | Kotlin | 16 | 21 | 7d5d527beaf6e9d20f7f8bb95dfc110eb46fe300 | 1,263 | ManagementPortal | Apache License 2.0 |
app/src/main/java/ru/solandme/washwait/data/net/owm/OWNetworkDataSourceImpl.kt | solandmedotru | 160,739,363 | false | null | package ru.solandme.washwait.data.net.owm
import android.util.Log
import ru.solandme.washwait.R
import ru.solandme.washwait.data.db.entity.Advices
import ru.solandme.washwait.data.db.entity.Location
import ru.solandme.washwait.data.db.entity.WeatherEntity
import ru.solandme.washwait.data.db.entity.Wind
import ru.solan... | 0 | Kotlin | 1 | 0 | d0dfb638e9c9bd647ef69742ea123385a33d83d4 | 6,043 | WashWaitNew | Apache License 2.0 |
src/main/kotlin/dev/shtanko/algorithms/leetcode/ThirdMax.kt | ashtanko | 203,993,092 | false | {"Kotlin": 6608183, "Shell": 1168, "Makefile": 961} | /*
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 4 | Kotlin | 0 | 19 | d7f842ebc3041ed6a407782d4f5da2e6a53c34df | 1,716 | kotlab | Apache License 2.0 |
core/template/src/main/java/app/xlei/vipexam/template/writing/WritingViewModel.kt | 1939323749 | 720,476,549 | false | {"Kotlin": 503767} | package app.xlei.vipexam.ui.question.writing
import androidx.lifecycle.ViewModel
import app.xlei.vipexam.core.network.module.getExamResponse.Muban
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.a... | 0 | Kotlin | 0 | 0 | aeab06b6250b64f00cded32cc4c582702fc93c1d | 1,337 | vipexam | Apache License 2.0 |
sms/src/main/java/com/beeper/sms/commands/outgoing/Backfill.kt | raymand211092 | 610,818,444 | false | null | package com.beeper.sms.commands.outgoing
import com.beeper.sms.BuildConfig
data class Backfill(
var chat_guid: String,
var messages: List<Message>
){
override fun toString(): String {
return "Backfill(chat_guid='$chat_guid', messages:'${messages.map { it.guid }}')"
}
} | 0 | Kotlin | 0 | 0 | d667c9c4376ab1e4564ccdfd5d579124f14d5cf7 | 295 | android-sms | Apache License 2.0 |
app/src/main/java/jp/gr/java_conf/mmktomato/fluffyplayer/PlayerActivity.kt | mmktomato | 111,898,025 | false | null | package jp.gr.java_conf.mmktomato.fluffyplayer
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.content.ServiceConnection
import android.databinding.DataBindingUtil
import android.media.MediaMetadataRetriever
import android.os.Bundle
import android.os.IBi... | 0 | Kotlin | 0 | 0 | 1a9c6fe3b24a3ff9903255f9a6cfd310c82d0191 | 3,270 | FluffyPlayer | MIT License |
Controls/src/commonMain/kotlin/io/nacular/doodle/controls/theme/range/KeyHandlingUtils.kt | nacular | 108,631,782 | false | {"Kotlin": 3150677} | package io.nacular.doodle.controls.theme.range
import io.nacular.doodle.controls.range.RangeValueSlider
import io.nacular.doodle.controls.range.ValueSlider
import io.nacular.doodle.controls.range.size
import io.nacular.doodle.core.ContentDirection
import io.nacular.doodle.event.KeyEvent
import io.nacular.doodle.event.... | 3 | Kotlin | 26 | 613 | f7414d4c30cdd7632992071234223653e52b978c | 2,454 | doodle | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/GreaterThanEqual.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
im... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,672 | icons | MIT License |
src/main/kotlin/me/jakejmattson/modmail/preconditions/PrefixPrecondition.kt | JakeJMattson | 282,723,425 | false | null | package me.jakejmattson.modmail.preconditions
import me.jakejmattson.discordkt.dsl.precondition
import me.jakejmattson.modmail.services.Configuration
@Suppress("unused")
fun prefixPrecondition(configuration: Configuration) = precondition {
if (guild == null) return@precondition
if (message == null) return@pre... | 0 | Kotlin | 3 | 15 | 854ffde1e15df82307f22251c322d9e16b56f7b3 | 569 | ModMail | MIT License |
app/src/test/java/com/everis/androidintermedio2/LoginTest.kt | carlosiniesta7 | 238,405,612 | false | null | package com.everis.androidintermedio2
import com.example.data2.GetElementRepository
import com.example.domain2.DoLogin
import org.junit.Assert.assertEquals
import org.junit.Test
class LoginTest {
private val repository = GetElementRepository()
private val doLogin = DoLogin(repository)
@Test
fun loginT... | 0 | Kotlin | 0 | 0 | 1ade23717d1a811c9db67f662cb3ce3f34bde4de | 442 | intermedio2-android | Apache License 2.0 |
app/src/main/kotlin/com/hypeapps/instasplit/ui/group_single/GroupSingleViewModel.kt | ntietje1 | 777,278,972 | false | {"Kotlin": 197240} | package com.hypeapps.instasplit.ui.group_single
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.viewModelScope
import androidx.lifecycle.viewmodel.CreationExtras
import com.hypeapps.instasplit.application.App
import com.hypeapps.instasplit.core.InstaSplitReposi... | 0 | Kotlin | 0 | 1 | e3643c4c179bdeb1db4d11d57be9fa303810a47a | 3,326 | InstaSplit | MIT License |
vmdata/src/main/java/com/vmloft/develop/library/data/common/DSPManager.kt | lzan13 | 195,352,610 | false | {"Kotlin": 1107159, "HTML": 2953} | package com.vmloft.develop.library.data.common
import com.vmloft.develop.library.base.common.CSPManager
/**
* Create by lzan13 on 2020/4/25 19:48
* 描述:SharedPreference 管理
*/
object DSPManager {
/**
* 记录登录信息
*/
private val signEntry = "sign"
private val tokenKey = "tokenKey"
private val s... | 4 | Kotlin | 96 | 195 | 48a78c321b0a9c1e9770be53c1564f8c37eb6467 | 5,038 | VMTemplateAndroid | MIT License |
src/test/kotlin/org/paradise/ipaq/integration/IntegrationConfig.kt | TerrenceMiao | 97,383,297 | false | null | package org.paradise.ipaq.integration
import org.apache.commons.io.IOUtils
import org.apache.commons.lang3.StringUtils
import org.mockito.Matchers.any
import org.mockito.Matchers.anyString
import org.mockito.Mockito.*
import org.paradise.ipaq.TestData
import org.springframework.context.annotation.Bean
import org.sprin... | 0 | Kotlin | 0 | 0 | 4a4c5d6b2ad72f85289c6b78470383b3861e1411 | 2,326 | IPAQ | Apache License 2.0 |
extension-client/src/commonMain/kotlin/bruhcollective/itaysonlab/ksteam/models/persona/AvatarHash.kt | iTaysonLab | 585,761,817 | false | {"Kotlin": 488681} | package bruhcollective.itaysonlab.ksteam.models.persona
import bruhcollective.itaysonlab.ksteam.EnvironmentConstants
import kotlin.jvm.JvmInline
@JvmInline
value class AvatarHash internal constructor(internal val hash: String) {
companion object {
val Empty = AvatarHash("")
}
val hasAvatar get() ... | 1 | Kotlin | 1 | 32 | 5b1c17ed54fde891c59ecad8651bb4f15bafcd2d | 541 | kSteam | MIT License |
src/main/kotlin/config/NAccount.kt | Nekoer | 483,529,691 | false | null | package com.hcyacg.config
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class NAccount (
@SerialName("phone")
var phone: String = "",
@SerialName("password")
var password:String = ""
) | 0 | Kotlin | 0 | 0 | a771e4c6e0fea9415c9800e8afcd540052602785 | 257 | mirai-plugins-music | Apache License 2.0 |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/JodaMigration.kt | corona-warn-app | 268,027,139 | false | null | package de.rki.coronawarnapp.util
fun org.joda.time.LocalDate.toJavaTime(): java.time.LocalDate = java.time.LocalDate.of(year, monthOfYear, dayOfMonth)
fun org.joda.time.Instant.toJavaInstant(): java.time.Instant = java.time.Instant.ofEpochMilli(millis)
fun java.time.Duration.toJoda(): org.joda.time.Duration = org.jod... | 120 | Kotlin | 514 | 2,495 | d3833a212bd4c84e38a1fad23b282836d70ab8d5 | 348 | cwa-app-android | Apache License 2.0 |
data/repository/src/main/java/com/netchar/repository/NetworkBoundResource.kt | netchar | 171,912,089 | false | null | /*
* Copyright © 2019 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 1 | Kotlin | 3 | 4 | 2bcccb5a5cc161831a11c7976eb2cb1ba7c90923 | 1,082 | Wallpaperify | Apache License 2.0 |
app/src/main/java/com/brins/locksmith/ui/activity/ChromeImportActivity.kt | BrinsLee | 224,311,693 | false | null | package com.brins.locksmith.ui.activity
import android.content.Intent
import android.net.Uri
import android.os.AsyncTask
import android.os.Bundle
import android.widget.Toast
import com.brins.locksmith.R
import com.brins.locksmith.data.password.PassWordItem
import com.brins.locksmith.ui.dialog.MissPasswordDialogFragmen... | 0 | Kotlin | 0 | 1 | e1fd0e515a410c49c33c6b9e94411ae07936f1e3 | 2,621 | Locksmith | MIT License |
feature-account-impl/src/main/java/io/novafoundation/nova/feature_account_impl/data/signer/SeparateFlowSigner.kt | novasamatech | 415,834,480 | false | {"Kotlin": 7662708, "Java": 14723, "JavaScript": 425} | package io.novafoundation.nova.feature_account_impl.data.signer
import io.novafoundation.nova.common.base.errors.SigningCancelledException
import io.novafoundation.nova.common.utils.MutableSharedState
import io.novafoundation.nova.feature_account_api.presenatation.sign.SignInterScreenCommunicator
import io.novafoundat... | 13 | Kotlin | 5 | 9 | 66a5c0949aee03a5ebe870a1b0d5fa3ae929516f | 1,624 | nova-wallet-android | Apache License 2.0 |
app/src/main/java/com/cwdt/restaurantroulette/group/PendingPreferencesComponent.kt | coleweinman | 777,892,680 | false | {"Kotlin": 101528, "Python": 6570} | package com.cwdt.restaurantroulette.group
import android.os.Build
import androidx.annotation.RequiresApi
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.material3.SnackbarHostState
import androidx.compose.material3.Text
import androidx.compos... | 0 | Kotlin | 0 | 0 | a1fa85ca4ed7392f428e3e0fae1df4b59c00b4c2 | 1,569 | restaurant-roulette | MIT License |
core/util/src/main/java/dev/ryzhoov/util/ui/BaseBottomSheetDialogFragment.kt | v1aditech | 581,266,106 | false | {"Kotlin": 161157} | package dev.ryzhoov.util.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.viewbinding.ViewBinding
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
abstract class BaseBottomSheetDialogFragment<T : ViewBinding> ... | 0 | Kotlin | 0 | 0 | 5b0fc12bf74f19f765d99d5671b0f599bebd17a9 | 776 | napomnix | Apache License 2.0 |
SDK-KT/src/main/kotlin/com/xzakota/wordpress/model/links/Href.kt | xzakota | 873,625,385 | false | {"Kotlin": 56169, "Java": 3477} | package com.xzakota.wordpress.model.links
import com.alibaba.fastjson2.annotation.JSONField
open class Href {
@JSONField(name = "href")
var href : String? = null
}
| 0 | Kotlin | 0 | 0 | e5477bd0130df1fcc9a57062934000511d10ce9e | 174 | WordPressSDK | Apache License 2.0 |
src/main/kotlin/org/teamvoided/template/Template.kt | TeamVoided | 701,375,971 | false | {"Kotlin": 8687, "Java": 546} | package org.teamvoided.template
import io.netty.buffer.Unpooled
import net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking
import net.fabricmc.fabric.api.event.client.player.ClientPreAttackCallback
import net.fabricmc.fabric.api.networking.v1.ServerPlayNetworking
import net.minecraft.network.PacketByteBu... | 0 | Kotlin | 0 | 0 | ef94b1491d133d46a15f2e18fb5ced6d770d8e45 | 1,453 | AstralArsonal | MIT License |
app/src/main/java/com/celzero/bravedns/net/go/GoVpnAdapter.kt | celzero | 270,683,546 | false | null | /*
* Copyright 2021 RethinkDNS and its authors
* Copyright 2019 Jigsaw Operations 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
*
* https://www.apache.org/licenses/LICENSE-2.0
... | 169 | Kotlin | 47 | 557 | 161674b1cdbdd72fefee5edd953179a637e00f6f | 20,426 | rethink-app | Apache License 2.0 |
app/src/main/java/com/perqin/letmego/data/destination/DestinationRepo.kt | perqin | 141,682,322 | false | null | package com.perqin.letmego.data.destination
import androidx.lifecycle.LiveData
import androidx.lifecycle.Transformations
import com.perqin.letmego.App
import com.perqin.letmego.R
import com.perqin.letmego.data.place.Place
import com.perqin.letmego.data.room.appDatabase
/**
* Created by perqinxie on 2018/07/20.
*/
o... | 2 | Kotlin | 0 | 0 | ca98409fbf988990a0be322a6e9abbe390c61d57 | 1,618 | let-me-go | MIT License |
src/main/kotlin/extensions/RandomExtension.kt | Geckostya | 728,324,326 | false | {"Kotlin": 5180} | package extensions
import math.Vec2
import kotlin.random.Random
fun Random.nextVec2(untilX: Int, untilY: Int) = Vec2(nextInt(untilX), nextInt(untilY)) | 0 | Kotlin | 0 | 0 | 01c0d4fc0870c30e544af517fc0b853c0bd33ed8 | 152 | KotlinMathFighter | The Unlicense |
rest/src/main/kotlin/com/gitlab/kordlib/rest/builder/user/CurrentUserModifyBuilder.kt | cybernetics | 314,534,887 | true | {"Kotlin": 995285} | package com.gitlab.kordlib.rest.builder.user
import com.gitlab.kordlib.rest.Image
import com.gitlab.kordlib.common.annotation.KordDsl
import com.gitlab.kordlib.common.entity.optional.Optional
import com.gitlab.kordlib.common.entity.optional.delegate.delegate
import com.gitlab.kordlib.common.entity.optional.map
import ... | 0 | null | 0 | 0 | 3bebe2f796bff84205c9ea6cceae51e2c41dee76 | 963 | kord | MIT License |
backintime-plugin/compiler/src/main/kotlin/com/github/kitakkun/backintime/compiler/backend/utils/IrBuilderUtils.kt | kitakkun | 706,655,959 | false | {"Kotlin": 233626, "Ruby": 574} | package com.github.kitakkun.backintime.compiler.backend.utils
import com.github.kitakkun.backintime.compiler.backend.ValueContainerClassInfo
import org.jetbrains.kotlin.backend.common.extensions.IrPluginContext
import org.jetbrains.kotlin.ir.builders.IrBuilderWithScope
import org.jetbrains.kotlin.ir.builders.irBlock
i... | 6 | Kotlin | 0 | 9 | 52f12b6bcb879bda7105651820391c56075d3e70 | 3,980 | back-in-time-plugin | Apache License 2.0 |
plugin/src/functionalTest/kotlin/caching/ipfs/IpfsBuildCachePluginFunctionalTest.kt | galargh | 431,016,149 | false | {"Shell": 34361, "Kotlin": 17388, "Makefile": 1714, "Dockerfile": 642} | package caching.ipfs
import kotlin.test.Test
import org.gradle.testkit.runner.GradleRunner
import org.junit.Rule
import org.junit.rules.TemporaryFolder
/**
* A simple functional test for the 'caching.ipfs.ipfs-build-cache' plugin.
*/
class IpfsBuildCachePluginFunctionalTest {
@get:Rule val tempFolder = Temporar... | 12 | Shell | 1 | 3 | d4a7c3cd4e84a419845f675c13e6920d207e45d6 | 1,110 | gradle-ipfs-build-cache | MIT License |
engine/src/main/kotlin/de/hanno/hpengine/transform/EntityAddedSystem.kt | hannomalie | 330,376,962 | false | {"Kotlin": 1068277, "GLSL": 681257, "JavaScript": 3160, "Shell": 137, "Batchfile": 65} | package de.hanno.hpengine.transform
import com.artemis.BaseEntitySystem
import com.artemis.BaseSystem
import com.artemis.annotations.All
import com.artemis.utils.IntBag
import de.hanno.hpengine.component.TransformComponent
import de.hanno.hpengine.graphics.state.RenderState
import de.hanno.hpengine.model.EntitiesState... | 0 | Kotlin | 0 | 0 | d0ecc78d2d90033758d480b2383d8d5c3d2febd3 | 1,200 | hpengine | MIT License |
aboutlibraries-core/src/commonMain/kotlin/com/mikepenz/aboutlibraries/entity/Funding.kt | mikepenz | 19,025,014 | false | {"Kotlin": 519334, "JavaScript": 13528, "CSS": 10378, "HTML": 8580, "Ruby": 2019, "Python": 1500, "Shell": 254} | package com.mikepenz.aboutlibraries.entity
/**
* Describes the [Funding] as defined by the dependency.
* This is only supported for projects hosted for dependencies hosted on: https://github.com/mikepenz/AboutLibraries#special-repository-support
* Or can be manually supplied.
*
* @param platform name of the platf... | 8 | Kotlin | 441 | 3,445 | 78ecebfc979b25d9afd1a9e316ed88821487aa23 | 492 | AboutLibraries | Apache License 2.0 |
app/src/main/java/com/panda/pda/app/operation/qms/quality_task_detail/QualityDetailFragment.kt | Givennn | 402,701,983 | false | null | package com.panda.pda.app.operation.qms.quality_task_detail
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import androidx.viewpager2.adapter.FragmentStateAdapter
import by.kirich1409.viewbindingdelegate.viewBinding
import com.google.android.material.tabs.TabLayoutMediator
impo... | 0 | Kotlin | 0 | 0 | 24f6284eed22b1fe91b5462a0cdd5a466d6531ad | 2,609 | pda | MIT License |
buildSrc/src/main/java/Versions.kt | TeiganPenna | 521,852,619 | false | null | import java.util.Locale
object Versions {
// Sdk and tools
const val COMPILE_SDK = 33
const val MIN_SDK = 30
const val TARGET_SDK = 30
const val DETEKT_TWITTER = "0.0.26"
// App dependencies
const val ACCOMPANIST = "0.28.0"
const val ACTIVITY_COMPOSE = "1.6.1"
const val COMPOSE = ... | 2 | Kotlin | 0 | 0 | b4aad40ec8250d8ffcf2f45c9a7b3e31e229ee3a | 1,437 | SpotGym | Apache License 2.0 |
src/test/kotlin/com/cognifide/gradle/common/CommonPluginTest.kt | wttech | 237,183,159 | false | null | package com.cognifide.gradle.common
import org.gradle.testfixtures.ProjectBuilder
import kotlin.test.Test
class CommonPluginTest {
@Test fun `plugin could be set up`() {
// Create a test project and apply the plugin
val project = ProjectBuilder.builder().build()
project.plugins.apply("com.... | 9 | Kotlin | 1 | 1 | d184caf617d63c3ed5fa827db6b936c79ad2bc05 | 447 | gradle-common-plugin | Apache License 2.0 |
src/main/kotlin/com/msg/gcms/domain/image/presentation/data/dto/UploadImagesDto.kt | GSM-MSG | 592,816,374 | false | null | package com.msg.gcms.domain.image.presentation.data.dto
import org.springframework.web.multipart.MultipartFile
data class UploadImagesDto (
val images: List<MultipartFile>
) | 10 | Kotlin | 0 | 8 | d55e8ed3f343acca0c3937cf07b6fcfb8dd30598 | 179 | GCMS-BackEnd | MIT License |
src/main/kotlin/ray/mintcat/barrier/event/BarrierPlayerLeavePolyEvent.kt | FxRayHughes | 469,282,424 | false | {"Kotlin": 64842} | package ray.mintcat.barrier.event
import org.bukkit.entity.Player
import ray.mintcat.barrier.common.BarrierPoly
import taboolib.platform.type.BukkitProxyEvent
class BarrierPlayerJoinPolyEvent(
val player: Player,
val poly: BarrierPoly
) : BukkitProxyEvent() | 1 | Kotlin | 6 | 4 | c2b78a9e72a2eb4ed757ca53e2eaa36d1c3a2fcf | 267 | Barrier | Creative Commons Zero v1.0 Universal |
lib/src/test/kotlin/me/tb/cashuclient/UtilitiesTest.kt | thunderbiscuit | 639,993,752 | false | null | /*
* Copyright 2023 thunderbiscuit and contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the ./LICENSE file.
*/
package me.tb.cashuclient
import fr.acinq.bitcoin.PublicKey
import fr.acinq.secp256k1.Hex
import me.tb.cashuclient.types.SwapRequired
import java.lang.Ill... | 1 | null | 1 | 5 | c32fa92a7323527de822c474a96520d64cdb0a56 | 3,747 | cashu-client | Apache License 2.0 |
EmergencyApp/app/src/main/java/com/dicoding/emergencyapp/data/retrofit/news/NewsApiConfig.kt | briancatraguna | 364,262,679 | false | null | package com.dicoding.emergencyapp.data.retrofit.news
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
class NewsApiConfig {
companion object {
fun getApiService(): NewsApiService{
val loggin... | 1 | Kotlin | 2 | 9 | 5e2d2f6325650bdf5b406876270dd9dbbfda9491 | 877 | SixPackTeamApp | MIT License |
151004/Bashlikov/rv_task01/src/main/kotlin/by/bashlikovvv/domain/repository/ITweetsRepository.kt | 4ndreSha | 786,098,271 | true | {"Markdown": 8, "Text": 9, "Ignore List": 61, "Shell": 22, "Maven POM": 64, "Batchfile": 21, "Java": 2243, "INI": 70, "XML": 192, "JSON": 157, "YAML": 37, "JSON with Comments": 3, "SQL": 14, "Microsoft Visual Studio Solution": 27, "C#": 1212, "Go Checksums": 1, "Go Module": 1, "Go": 20, "Java Properties": 8, "HTML": 3,... | package by.bashlikovvv.domain.repository
import by.bashlikovvv.api.dto.response.TweetDto
interface ITweetsRepository : IBaseRepository<TweetDto, Long> | 0 | Java | 0 | 0 | dc1c5a73e76fe62335aa4615069a19d257f5b3b3 | 152 | DC2024-01-27 | MIT License |
app/src/main/java/com/jbc7ag/apod/network/ImagesNasaProperty.kt | jbc7ag | 398,625,964 | false | null | package com.jbc7ag.apod.network
import android.os.Parcelable
import com.squareup.moshi.Json
import kotlinx.android.parcel.Parcelize
@Parcelize
data class ImagesNasaProperty(
val collection: DataImages,
): Parcelable
@Parcelize
data class DataImages(
val version: String?,
val metadata: Metadata?,
val ... | 0 | Kotlin | 0 | 0 | 77bf6bb25302e22b7f5878622e575618a35bd9d9 | 1,287 | apod | MIT License |
odinmain/src/main/kotlin/me/odinmain/commands/impl/TermsimCommand.kt | odtheking | 657,580,559 | false | {"Kotlin": 957390, "Java": 106846, "GLSL": 17728} | package me.odinmain.commands.impl
import me.odinmain.commands.commodore
import me.odinmain.features.impl.floor7.p3.termsim.*
import me.odinmain.utils.ServerUtils
import me.odinmain.utils.getRandom
import net.minecraft.item.EnumDyeColor
import kotlin.math.round
val termSimCommand = commodore("termsim") {
runs { pi... | 4 | Kotlin | 17 | 41 | 631b297e1c74272c409f7db1cbf86c8c334e7915 | 985 | Odin | MIT License |
app/src/main/java/com/zhangteng/app/mvvm/repository/BaseMvvmDemoFragmentRepository.kt | DL-ZhangTeng | 536,516,272 | false | {"Kotlin": 192886} | package com.zhangteng.app.mvvm.repository
import com.zhangteng.mvvm.base.BaseNetRepository
class BaseMvvmDemoFragmentRepository : BaseNetRepository() {
private val mService by lazy {
//HttpUtils.instance.ConfigGlobalHttpUtils().createService(Api::class.java)
}
} | 0 | Kotlin | 0 | 1 | b8d0d469cc342abf95f874c028e17b25e636f250 | 281 | MVVM | The Unlicense |
ynab-http/src/main/kotlin/dev/danperez/ynab/http/CategoriesService.kt | danielPerez97 | 619,363,218 | false | null | package dev.danperez.ynab.http
import dev.danperez.ynab.json.Response
import dev.danperez.ynab.json.budget.Category
import dev.danperez.ynab.json.budget.CategoryGroup
import retrofit2.http.GET
import retrofit2.http.PATCH
import retrofit2.http.Path
interface CategoriesService
{
/**
* @param budgetId The id of... | 0 | Kotlin | 0 | 0 | c3707ad6b5a934240535aaf9594f297fd38ad9c6 | 2,612 | ynab-kmp | Apache License 2.0 |
app/src/main/java/pl/grajek/actions/util/Extentions.kt | dawids222 | 169,272,010 | false | null | package pl.grajek.actions.util
import android.content.SharedPreferences
import android.support.design.widget.TabLayout
import java.util.*
fun TabLayout.next() {
val tab = getTabAt(selectedTabPosition + 1)
tab?.select()
}
fun TabLayout.previous() {
val tab = getTabAt(selectedTabPosition - 1)
tab?.sele... | 0 | Kotlin | 0 | 0 | dc8c674b0b171ee68698133bcd023b2e26279612 | 685 | Actions | MIT License |
src/main/kotlin/neverwintertoolkit/file/key/KeyFile.kt | jeffmcclure | 775,771,544 | false | {"Kotlin": 588796, "Shell": 226} | package neverwintertoolkit.file.key
import neverwintertoolkit.FileTypeIdMap
import neverwintertoolkit.command.GlobalOptions
import neverwintertoolkit.file.bif.BifFile
import neverwintertoolkit.readString
import neverwintertoolkit.readStringNullTerminated
import neverwintertoolkit.readUInt
import neverwintertoolkit.rea... | 0 | Kotlin | 0 | 0 | cee94ea196ec37bebcfde75f6dc402f088d58bb4 | 8,886 | nwt | MIT License |
app/src/main/kotlin/au/id/rlac/unitconverter/converter/UnitConverter.kt | rlac | 36,999,945 | false | null | package au.id.rlac.unitconverter.converter
import android.content.Context
import au.id.rlac.unitconverter.R
import au.id.rlac.util.android.use
import java.math.BigDecimal
import java.util.*
/**
* Converts a numeric value for one [Measure] to the equivalent value for another [Measure].
*
* A [UnitConverter] has a b... | 0 | Kotlin | 0 | 3 | 5db7673e848db323b6a78eb501d7cf4d65be123b | 4,385 | unitconverter | Apache License 2.0 |
src/main/kotlin/khome/entities/StateAndAttributes.kt | cybernetics | 281,265,077 | true | {"Kotlin": 161626} | package khome.entities
import java.time.Instant
/**
* The State interface
*
* Defines the minimum structure of a valid state object.
*
* @param T the type of the actual state value.
*/
interface State<T> {
val value: T
}
/**
* The Attributes interface
*
* Defines the minimum structure of a valid attribu... | 0 | null | 0 | 0 | 68391c731b7489b3f7a69faaf807f7a95bb17e25 | 474 | khome | MIT License |
src/main/kotlin/dsl/DSLToolbarExtension.kt | isyscore | 336,950,526 | false | {"Kotlin": 220307, "Java": 5620, "HTML": 643} | @file:Suppress("unused", "DuplicatedCode")
package com.isyscore.kotlin.swing.dsl
import com.isyscore.kotlin.swing.component.*
import com.isyscore.kotlin.swing.inline.newClassInstance
import org.apache.batik.anim.dom.SAXSVGDocumentFactory
import org.apache.batik.swing.JSVGCanvas
import org.apache.batik.util.XMLResourc... | 0 | Kotlin | 0 | 2 | 3f5ea19ea036e3c0a5cddb54dc172d7dab9da04c | 10,323 | common-swing | MIT License |
app/src/main/java/com/spaceapp/domain/model/explore_galaxy_data/Comet.kt | AhmetOcak | 552,274,999 | false | {"Kotlin": 365290} | package com.spaceapp.domain.model.explore_galaxy_data
data class Comet(
val cometName: String,
val cometDescription: String,
val cometRadius: Double
)
| 0 | Kotlin | 1 | 2 | f8a8c6d90874fc70566cdbd310231b5ec41baad3 | 164 | Explore-Universe | MIT License |
src/main/kotlin/org/eclipse/uprotocol/cloudevent/serialize/CloudEventSerializers.kt | eclipse-uprotocol | 717,101,886 | false | {"Kotlin": 459377} | /*
* Copyright (c) 2024 General Motors GTO LLC
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apac... | 7 | Kotlin | 3 | 3 | f9a2cffd1e11ef1bf7499cfce779c212df645827 | 1,368 | up-kotlin | Apache License 2.0 |
app/src/main/java/com/example/snapguard/utils/Validator.kt | Vahid-Soudagar | 729,505,282 | false | {"Kotlin": 35793} | package com.example.snapguard.utils
import android.util.Patterns
import android.widget.EditText
import com.google.android.material.textfield.TextInputEditText
import com.google.android.material.textfield.TextInputLayout
/**
* Utility class containing functions for validating email, password, and confirming passwords... | 0 | Kotlin | 0 | 0 | 004af8daa2ee5d88405bce5f637224bc1576f7d5 | 4,429 | SnapGuard | MIT License |
app/src/main/java/gq/kirmanak/mealient/data/share/ShareRecipeRepo.kt | kirmanak | 431,195,533 | false | {"Kotlin": 476781} | package gq.kirmanak.mealient.data.share
interface ShareRecipeRepo {
suspend fun saveRecipeByURL(url: CharSequence): String
} | 16 | Kotlin | 2 | 99 | 6f8a9520f3736ae641e4541d24afb0dcf9623ea0 | 130 | Mealient | MIT License |
commutil/src/main/java/com/fz/common/network/NetworkUtil.kt | peihua8858 | 380,141,169 | false | {"Kotlin": 425329, "Java": 208918} | package com.fz.common.network
import android.content.Context
import androidx.fragment.app.Fragment
import com.fz.common.ContextInitializer
import com.fz.common.R
import com.fz.common.text.isNonEmpty
import com.fz.toast.ToastCompat
fun Context.isConnected(): Boolean {
return Connectivity.isConnected(this)
}
fun C... | 0 | Kotlin | 0 | 3 | cb29a1ca4524de97a0294c57757fe97016efcfe6 | 3,621 | kotlinCommonUtils | Apache License 2.0 |
nms/1_8_R3/src/main/kotlin/me/gamercoder215/battlecards/wrapper/v1_8_R3/Wrapper1_8_R3.kt | GamerCoder215 | 555,359,817 | false | null | package me.gamercoder215.battlecards.wrapper.v1_8_R3
import me.gamercoder215.battlecards.impl.CardAttribute
import me.gamercoder215.battlecards.impl.cards.IBattleCard
import me.gamercoder215.battlecards.util.BattleParticle
import me.gamercoder215.battlecards.wrapper.BattleInventory
import me.gamercoder215.battlecards.... | 0 | Kotlin | 0 | 3 | f037835be5f78b687fc59c5ac33f7eabf29a1318 | 5,542 | BattleCards | Apache License 2.0 |
dslk/src/main/java/com/mozhimen/dslk/properties/TextView.kt | mozhimen | 851,115,225 | false | {"Kotlin": 150390} | package com.mozhimen.dslk.properties
import android.content.res.Resources
import android.graphics.Color
import android.text.Editable
import android.text.InputFilter
import android.text.InputFilter.LengthFilter
import android.view.KeyEvent
import android.widget.TextView
import androidx.core.content.ContextCompat
import... | 0 | Kotlin | 0 | 0 | 167b1f856b12336cb933ff5a6a52c7c38daab907 | 4,110 | ADslKit | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/visitscheduler/controller/validators/VisitorContactValidator.kt | ministryofjustice | 409,259,375 | false | null | package uk.gov.justice.digital.hmpps.visitscheduler.controller.validators
import uk.gov.justice.digital.hmpps.visitscheduler.dto.VisitorDto
import javax.validation.Constraint
import javax.validation.ConstraintValidator
import javax.validation.ConstraintValidatorContext
import javax.validation.Payload
import kotlin.ref... | 3 | Kotlin | 2 | 6 | 01dcad3b0defb675a12da8d0f14cc130766410ff | 1,140 | visit-scheduler | MIT License |
app/src/main/java/fr/isen/amadori/androiderestaurant/fragments/DetailsFragment.kt | Seltux | 332,701,793 | false | null | package fr.isen.amadori.androiderestaurant.fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.squareup.picasso.Picasso
import fr.isen.amadori.androiderestaurant.R
import fr.isen.amadori.androidere... | 0 | Kotlin | 0 | 0 | 0566acd749d55511698d68415880a6d5e50db0ed | 1,348 | AndroidERestaurantAmadori | Apache License 2.0 |
app/src/main/java/com/android_algo/presentation/boids/BoidsFragment.kt | julianczaja | 399,513,595 | false | null | package com.android_algo.presentation.boids
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import com.android_algo.databinding.BoidsFragmentBinding
import com.google.android... | 0 | Kotlin | 1 | 1 | de94518a3eb4440d56779c5106c669feb0a26167 | 2,351 | android_algo | MIT License |
src/main/kotlin/ar/edu/unsam/controller/RepositorController.kt | madescoces | 716,182,897 | false | {"Kotlin": 11029} | package ar.edu.unsam.controller
import ar.edu.unsam.errors.BusinessException
import ar.edu.unsam.errors.NotFoundException
import ar.edu.unsam.model.Repositor
import ar.edu.unsam.model.RepositorDTO
import ar.edu.unsam.service.RepositorService
import io.swagger.v3.oas.annotations.Operation
import org.springframework.bea... | 0 | Kotlin | 0 | 0 | fc1d15a09613df7c6abc9d4f58da7a661d7c934d | 2,435 | grupo3-supermercado-be | MIT License |
shared/core/system/src/webCommonMain/kotlin/io/edugma/core/system/theme/ThemeUtils.android.kt | Edugma | 474,423,768 | false | {"Kotlin": 959067, "JavaScript": 2398, "Swift": 1255, "HTML": 299, "Ruby": 102} | package io.edugma.core.system.theme
import io.edugma.core.api.model.ThemeMode
actual object ThemeUtils {
actual fun setTheme(mode: ThemeMode) {
// TODO web
}
}
| 1 | Kotlin | 0 | 2 | 788e4998105e7229e8d32512cfa457fd9c063a50 | 178 | app | MIT License |
src/main/kotlin/blue/starry/rummager/Env.kt | SlashNephy | 353,593,596 | false | null | package blue.starry.rummager
import kotlin.properties.ReadOnlyProperty
object Env {
val TWITTER_CK by string
val TWITTER_CS by string
val TWITTER_AT by string
val TWITTER_ATS by string
val USE_PRIVATE_API by boolean
val SEARCH_QUERY by string
val SEARCH_INTERVAL_SECONDS by long { 30 }
... | 6 | Kotlin | 0 | 3 | 982499d10de448cf4478601f9340119fdc59d07f | 1,513 | rummager | MIT License |
src/main/kotlin/org/neo4j/graphql/handler/CypherDirectiveHandler.kt | michael-forman | 285,477,008 | true | {"Kotlin": 170037, "Python": 1290} | package org.neo4j.graphql.handler
import graphql.language.Field
import graphql.schema.*
import org.neo4j.graphql.*
class CypherDirectiveHandler(
type: GraphQLFieldsContainer,
private val isQuery: Boolean,
private val cypherDirective: Cypher,
fieldDefinition: GraphQLFieldDefinition)
... | 0 | null | 0 | 0 | 4792d3f41c00c5680b6ff0f66bd8c84057a50468 | 2,120 | neo4j-graphql-java | Apache License 2.0 |
includedBuild/gradleConfiguration/src/main/kotlin/com/badoo/reaktive/configuration/DarwinPlugin.kt | sellmair | 408,352,255 | true | {"Kotlin": 1638373, "Swift": 6396, "HTML": 1097, "Java": 245, "Ruby": 150} | package com.badoo.reaktive.configuration
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
@Suppress("UnstableApiUsage")
class DarwinPlugin : Plugin<Project> {
override fun apply(target: Project) {
configureDarwinCompilation(tar... | 0 | null | 0 | 0 | 3539f128f22806070310bed9a7d96694051226ab | 1,237 | Reaktive | Apache License 2.0 |
app/src/main/java/com/mendelin/tmdb_koin/ui/favorites/FavoritesAdapter.kt | MadalinBalint | 478,475,208 | false | null | package com.mendelin.tmdb_koin.ui.favorites
import android.os.Bundle
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.databinding.ViewDataBinding
import androidx.navigation.findNavController
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
imp... | 0 | Kotlin | 0 | 0 | adc3020a33eebc2ee438434b1ab303d6a4980007 | 4,809 | TmdbAppKoin | Apache License 2.0 |
src/main/kotlin/io/unthrottled/doki/icon/provider/associations/AssociationModels.kt | gitter-badger | 288,093,239 | true | {"Kotlin": 134962} | package io.unthrottled.doki.icon.provider.associations
class IconAssociationDefinition(
val name: String,
val associationPattern: String,
val iconPath: String
)
data class IconAssociation(
val associationRegex: Regex,
val iconPath: String
)
// todo: schema
enum class Associations(val fileName: String) {
... | 0 | null | 0 | 0 | 5fbe5da38d607faccd3b6b3d7f3a52c6013ad1a3 | 475 | doki-theme-jetbrains | MIT License |
app/src/main/java/com/stocksexchange/android/utils/managers/KeyboardManager.kt | libertaria-project | 183,030,087 | true | {"Kotlin": 2210140} | package com.stocksexchange.android.utils.managers
import android.content.Context
import android.view.View
import android.view.inputmethod.InputMethodManager
/**
* Responsible for showing and hiding the keyboard on the screen.
*/
class KeyboardManager private constructor(context: Context) {
companion object {
... | 0 | Kotlin | 0 | 0 | 35a7f9a61f52f68ab3267da24da3c1d77d84e9c3 | 1,417 | Android-app | MIT License |
app/src/main/java/com/fsmmmssaleschampionhoneywell/features/alarm/api/report_confirm_api/ReviewConfirmRepo.kt | DebashisINT | 644,251,838 | false | null | package com.fsmmmssaleschampionhoneywell.features.alarm.api.report_confirm_api
import com.fsmmmssaleschampionhoneywell.base.BaseResponse
import com.fsmmmssaleschampionhoneywell.features.alarm.model.ReviewConfirmInputModel
import io.reactivex.Observable
/**
* Created by Saikat on 21-02-2019.
*/
class ReviewConfirmRe... | 0 | Kotlin | 0 | 0 | de788c0759321b9e93fedfd4dcb4af5afb3f2e4e | 511 | Honeywell | Apache License 2.0 |
app/src/main/java/com/csy/afv/ui/adapter/FindAdapter.kt | evolraelc | 226,625,975 | false | null | package com.csy.afv.ui.adapter
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.BaseAdapter
import android.widget.ImageView
import android.widget.TextView
import com.csy.afv.R
import com.csy.afv.mvp.model.bean.FindBean
import... | 0 | Kotlin | 0 | 1 | de53540d829be7c0a3037811a6f7cec48cabbbb1 | 2,045 | AFV | Apache License 2.0 |
app/src/main/kotlin/io/github/andraantariksa/crates/feature_crates/ui/sign_in/SignInActivity.kt | andraantariksa | 237,919,842 | false | null | package io.github.andraantariksa.crates.feature_crates.ui.sign_in
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import dagger.hilt.android.AndroidEntryPoint
import io.github.andraantariksa.crates.feature_crates.ui.common.theme.CratesTheme
import io.gith... | 0 | Kotlin | 0 | 0 | 2dd0faff903762540794a11c22e66c0eaf20a1f8 | 666 | crates | MIT License |
cosec-spring-boot-starter/src/main/kotlin/me/ahoo/cosec/spring/boot/starter/jwt/JwtProperties.kt | Ahoo-Wang | 567,999,401 | false | {"Kotlin": 588793, "Dockerfile": 594} | /*
* Copyright [2021-present] [<NAME> <<EMAIL>> (https://github.com/Ahoo-Wang)].
* 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... | 1 | Kotlin | 4 | 32 | ea4af7a66c1ab4d6560d7f3ba5d7026cd6904c26 | 1,710 | CoSec | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.