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/org/simple/clinic/registration/register/RegistrationLoadingEffect.kt | KelvnPere | 310,601,209 | true | {"Kotlin": 4452962, "Shell": 3616, "Python": 3162} | package org.simple.clinic.registration.register
import org.simple.clinic.facility.Facility
import org.simple.clinic.user.User
sealed class RegistrationLoadingEffect
object LoadRegistrationDetails: RegistrationLoadingEffect()
data class RegisterUserAtFacility(val user: User, val facility: Facility): RegistrationLoad... | 0 | null | 0 | 0 | 79b5055be07a4e9b46b84b0a157bb07f6cc254ad | 384 | simple-android | MIT License |
flipted/app/src/main/java/edu/calpoly/flipted/ui/myProgress/missionDetails/CustomListAdapterTask.kt | CPSECapstone | 337,579,565 | false | null | package edu.calpoly.flipted.ui.myProgress.missionDetails
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.BaseAdapter
import android.widget.ProgressBar
import android.widget.TextView
import androidx.core.content.ContextCompat... | 0 | Kotlin | 0 | 1 | 4e5449655bb0f75908e676279cad28e6297c5cb9 | 2,519 | ambigouslyandroid | MIT License |
app/src/main/kotlin/com/github/shchurov/gitterclient/presentation/ui/RoomView.kt | tantai96nd | 96,689,551 | false | null | package com.github.shchurov.gitterclient.presentation.ui
import com.github.shchurov.gitterclient.domain.models.Message
interface RoomView {
fun getRoomId(): String
fun getRoomName(): String
fun setToolbarTitle(title: String)
fun showInitLoading()
fun hideInitLoading()
fun enablePagingLis... | 0 | Kotlin | 0 | 1 | 4e65f404124986f9606bdab2b7040903085604a4 | 696 | gitter-kotlin-client | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/models/probationoffendersearch/ContactDetails.kt | ministryofjustice | 572,524,532 | false | {"Kotlin": 676647, "Python": 32511, "Shell": 13474, "Dockerfile": 1154, "Makefile": 684} | package uk.gov.justice.digital.hmpps.hmppsintegrationapi.models.probationoffendersearch
open class ContactDetails(
open val addresses: List<Address>? = listOf(),
)
| 0 | Kotlin | 1 | 2 | dc4f9d559aa43e41ee9df5b1695c8f122674d3e9 | 167 | hmpps-integration-api | MIT License |
Retainer/app/src/main/java/com/example/dell/retainer/Content.kt | sad786 | 196,528,384 | false | null | package com.example.dell.retainer
import android.app.Activity
import android.os.Bundle
import android.widget.Toast
import android.widget.TextView
import java.io.*
class Content:Activity()
{
override fun onCreate(savedInstance:Bundle?)
{
super.onCreate(savedInstance)
this.setContentView(R.layout.... | 0 | Kotlin | 0 | 0 | b87caf8ac3668f96629677ed5342b89ac151629a | 826 | AndroidProjects | MIT License |
business/src/test/java/com/architecture/business/weather/WeatherUseCaseImplTest.kt | hoanggiang063 | 275,876,192 | false | null | package com.architecture.business.weather
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import com.architecture.business.core.exception.BusinessException
import com.architecture.business.core.exception.TechnicalException
import com.architecture.business.core.exception.UnknownException
import com.a... | 0 | Kotlin | 0 | 3 | 40ec6d77c381984dc178e01c990ef1a74fe85886 | 3,468 | weatherdemo | Apache License 2.0 |
app/src/main/java/com/samuelokello/kazihub/presentation/common/components/EditTextField.kt | OkelloSam21 | 749,782,789 | false | {"Kotlin": 326914} | package com.samuelokello.kazihub.presentation.shared.components
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material3.OutlinedTextField
import androidx.compose.material... | 0 | Kotlin | 0 | 0 | 6333e167c837eb9ae9d4549a09ca6ae621e12353 | 1,240 | KaziHub | MIT License |
Code/[7] Collections/mapOf Function/src/main.kt | SonarSystems | 162,897,384 | false | null | fun main(args: Array<String>)
{
var map: Map<Int, String> = mapOf<Int, String>(1 to "Hello", 20 to "World", 5 to "!!!");
println(map[20]);
println();
for (key in map.keys)
{
println(map.get(key));
}
println();
var nonGeneric = mapOf(10 to 5, "Hello" to "World");
for (ke... | 0 | Kotlin | 5 | 4 | 7ff04b55314ac2e4f53838991fb26dba701b67a8 | 390 | Kotlin-Programming-Series | The Unlicense |
src/main/kotlin/me/youm/plumblossom/feature/module/ModuleCategory.kt | YOM667 | 587,803,127 | false | null | package me.youm.plumblossom.feature.module
/**
* @author You_M
*/
enum class ModuleCategory {
MOVEMENT,VISUAL,PLAYER,CLIENT,MISC
} | 0 | Kotlin | 0 | 5 | 33ba23757e4d0e2e0efcbe89d194c838736bcd19 | 137 | PlumBlossomClient | Apache License 2.0 |
sample/composeApp/src/commonMain/kotlin/ru/sulgik/mapkit/sample/App.kt | SuLG-ik | 813,953,018 | false | {"Kotlin": 321441} | package ru.sulgik.mapkit.sample
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.OutlinedButton
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable... | 0 | Kotlin | 1 | 17 | 2d292b701adb2c538f8cd3ddf614250f9d6a444d | 2,107 | yandex-mapkit-kmp | Apache License 2.0 |
remix/src/commonMain/kotlin/com/woowla/compose/icon/collections/remix/remix/others/RecycleFill.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.remix.remix.others
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.Str... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 3,545 | compose-icon-collections | MIT License |
app/src/main/java/com/example/android/ballBounce/gameSimulation/gameEntities/BallEntityFactory.kt | trlaw | 330,268,031 | false | null | package com.example.android.ballBounce.gameSimulation.gameEntities
const val NUM_COLORS = 4
const val BASE_COR = 0.6
const val BASE_BALL_RADIUS = 30.0
const val MAX_SPEED = BASE_BALL_RADIUS / (5.0)
open class BallEntityFactory {
var nextColorIndex = 0
open fun create(): BallEntity {
return BallEntity(... | 0 | Kotlin | 0 | 0 | eaa330713095bca6f90cd068201b4ffdad9984ab | 500 | BallBounce | MIT License |
src/SPDEditor.kt | integralfx | 193,193,822 | false | null | import java.io.File
import java.io.FileOutputStream
import java.io.IOException
import java.nio.file.Files
import java.util.Arrays
import kotlin.math.round
class SPDEditor @Throws(IllegalArgumentException::class)
constructor(bytes: UByteArray) {
private val bytes: UByteArray
// 0x06: 1.25v, 1.35v, not 1.50v
... | 0 | Kotlin | 0 | 7 | 9dbb303b71a82e5d67088828126fe141abcdb44b | 11,760 | SPDEditor | MIT License |
kmdc/kmdc-tooltip/src/jsMain/kotlin/MDCTooltipLink.kt | mpetuska | 430,798,310 | false | null | package dev.petuska.kmdc.tooltip
import androidx.compose.runtime.Composable
import dev.petuska.kmdc.core.MDCDsl
import org.jetbrains.compose.web.attributes.href
import org.jetbrains.compose.web.dom.A
import org.jetbrains.compose.web.dom.AttrBuilderContext
import org.jetbrains.compose.web.dom.ContentBuilder
import org.... | 22 | Kotlin | 8 | 29 | 67b31502b5f76b64f7571821fdd0b78a3df0a68c | 1,197 | kmdc | Apache License 2.0 |
src/test/kotlin/no/nav/tiltakspenger/overgangsstonad/efsak/EfSakClientTest.kt | navikt | 591,314,899 | false | null | package no.nav.tiltakspenger.overgangsstonad.efsak
internal class EfSakClientTest {
// @Language("JSON")
// val personHarOvergangsstønad = """{
// "data": {
// "perioder": [
// {"personIdent":"123","fomDato":"2025-01-01","tomDato":"2025-01-10","datakilde":"kilde"}
// ],
// ... | 0 | Kotlin | 0 | 0 | d59a10ea52ebfe13f2dc7c7d485ae92342059691 | 2,907 | tiltakspenger-overgangsstonad | MIT License |
tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/ChatBoostAdded.kt | InsanusMokrassar | 163,152,024 | false | {"Kotlin": 3243076, "Shell": 373} | package dev.inmo.tgbotapi.types.message.ChatEvents
import dev.inmo.tgbotapi.types.boostCountField
import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.PublicChatEvent
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class ChatBoostAdded(
@SerialName(boost... | 13 | Kotlin | 29 | 358 | 482c375327b7087699a4cb8bb06cb09869f07630 | 371 | ktgbotapi | Apache License 2.0 |
browser/json/src/main/kotlin/ch/sourcemotion/vertx/kotlin/eventbus/browser/codec/json/JsonEventBusCodec.kt | wem | 380,808,411 | false | null | package ch.sourcemotion.vertx.kotlin.eventbus.browser.codec.json
import ch.sourcemotion.vertx.kotlin.eventbus.browser.core.codec.EventBusCodec
import ch.sourcemotion.vertx.kotlin.eventbus.browser.core.codec.EventBusCodecs
import kotlinx.serialization.KSerializer
import kotlinx.serialization.json.Json
class JsonEventB... | 0 | Kotlin | 0 | 0 | 3c82178ad26ed37c528e61b902d0403e9847f2d1 | 885 | kotlin-js-vertx-eventbus | MIT License |
app/src/main/java/musicboxd/android/ui/search/charts/ChartsScreenViewModel.kt | MusicBoxd | 793,151,068 | false | {"Kotlin": 235637} | package musicboxd.android.ui.search.charts
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutin... | 0 | Kotlin | 0 | 1 | b6e9451e0bd69aa9b880901fb88e4ae126808a90 | 6,407 | android | MIT License |
app-web/src/main/kotlin/com/usvision/web/configuration/routing.kt | the-sortinghat | 419,233,583 | false | {"Kotlin": 185733, "Dockerfile": 1834, "JavaScript": 293} | package com.usvision.web.configuration
import com.usvision.reports.ReportSupervisor
import com.usvision.web.exceptions.MissingRequiredPathParameterException
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
fun Application.configureRouting(repor... | 3 | Kotlin | 0 | 3 | d5143ab39da2efe586cf185808d387ce902be64f | 1,984 | pattern-detector | MIT License |
src/main/kotlin/org/http4k/intellij/wizard/StackId.kt | http4k | 844,511,114 | false | {"Kotlin": 39585} | package org.http4k.intellij.wizard
import dev.forkhandles.values.NonBlankStringValueFactory
import dev.forkhandles.values.StringValue
class StackId private constructor(value: String) : StringValue(value) {
companion object : NonBlankStringValueFactory<StackId>(::StackId)
}
| 0 | Kotlin | 0 | 3 | 630c7d45ba711d5c2df2d48c0376882cfdda133b | 280 | intellij-plugin | Apache License 2.0 |
configurablecare/app/src/main/java/com/google/fhir/examples/configurablecare/AddPatientViewModel.kt | google | 500,670,991 | false | {"Kotlin": 334314, "Java": 12985} | /*
* Copyright 2022-2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 17 | Kotlin | 27 | 37 | 4b79549db6fd0fc3f87cb9d79c46da2038b67a9f | 8,171 | fhir-app-examples | Apache License 2.0 |
crypto_api/src/commonMain/kotlin/org/kethereum/crypto/api/ec/ECDSASignature.kt | wiyarmir | 469,944,902 | true | {"Kotlin": 724732} | package org.kethereum.crypto.api.ec
import com.ionspin.kotlin.bignum.integer.BigInteger
data class ECDSASignature(val r: BigInteger, val s: BigInteger)
| 0 | Kotlin | 0 | 0 | a602f94b6b90938a958425930cb0058c985790f1 | 154 | KEthereum | MIT License |
app/src/main/java/com/nitish/privacyindicator/repository/AccessLogsRepo.kt | NitishGadangi | 294,875,570 | false | null | package com.nitish.privacyindicator.repository
import com.nitish.privacyindicator.db.AccessLogsDatabase
import com.nitish.privacyindicator.models.AccessLog
class AccessLogsRepo(
val db: AccessLogsDatabase
) {
suspend fun save(accessLog: AccessLog) = db.getAccessLogsDao().upsert(accessLog)
suspend fun... | 27 | Kotlin | 29 | 273 | 8e0db14b9188e2df26d2859dad99b6584fafac9a | 423 | Privacy-Indicator-App | MIT License |
solar/src/main/java/com/chiksmedina/solar/boldduotone/essentionalui/Fuel.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.boldduotone.essentionalui
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... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 5,142 | SolarIconSetAndroid | MIT License |
sharedprefinspector/src/main/java/com/github/dhaval2404/sharedprefinspector/data/entity/SharedPref.kt | rahulupadhyay | 298,191,817 | true | {"Kotlin": 33995} | package com.github.dhaval2404.sharedprefinspector.data.entity
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.github.dhaval2404.sharedprefinspector.constant.Action
import java.util.Date
@Entity(tableName = "shared_pref")
data class SharedPref(
@ColumnInfo(nam... | 0 | null | 0 | 1 | 185754d8bf8369f6524dea83392b270f0b9ec36a | 746 | SharedPrefInspector | Apache License 2.0 |
app/src/main/java/com/nguyen/shelter/model/Comment.kt | dtnguyn | 292,352,460 | false | null | package com.nguyen.shelter.model
import java.util.*
data class Comment (
var id: String,
var blogId: String,
var user: User,
var date: Date,
var content: String,
var isOwner: Boolean = false
)
| 0 | Kotlin | 0 | 2 | 39bb09297edd9f999ed2710ee51608a53254aa8d | 219 | Shelter | The Unlicense |
kotlin-csstype/src/main/generated/csstype/AccentColor.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:Suppress(
"NAME_CONTAINS_ILLEGAL_CHARS",
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
package csstype
// language=JavaScript
@JsName("""({auto: 'auto'})""")
sealed external interface AccentColor {
companion object {
val auto: AccentColor
}
}
| 11 | Kotlin | 141 | 957 | 91f081c19cd5647a1d84f7b3698639fe396a2974 | 314 | kotlin-wrappers | Apache License 2.0 |
serialization/std/src/test/kotlin/io/github/airflux/serialization/std/validator/string/IsNotEmptyValidatorTest.kt | airflux | 336,002,943 | false | null | /*
* Copyright 2021-2023 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 0 | Kotlin | 3 | 3 | 9dfcfe4ec288e27f150beeef12dff45f131d0805 | 2,823 | airflux-serialization | Apache License 2.0 |
SparMePlease/app/src/main/java/com/example/sparmeplease/retro/MoneyAPI.kt | SABERGLOW | 437,119,208 | false | {"Kotlin": 16403} | package com.example.sparmeplease.retro
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query
interface MoneyAPI
{
@GET("/latest")
fun getRates(@Query("from") base: String): Call<MoneyResult>
} | 0 | Kotlin | 1 | 5 | 77e61e7e57a441cdf5f9bc5bfcea3257a2630e14 | 224 | SparMePlease | MIT License |
SparMePlease/app/src/main/java/com/example/sparmeplease/retro/MoneyAPI.kt | SABERGLOW | 437,119,208 | false | {"Kotlin": 16403} | package com.example.sparmeplease.retro
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query
interface MoneyAPI
{
@GET("/latest")
fun getRates(@Query("from") base: String): Call<MoneyResult>
} | 0 | Kotlin | 1 | 5 | 77e61e7e57a441cdf5f9bc5bfcea3257a2630e14 | 224 | SparMePlease | MIT License |
bindings/darwin/darwin/foundation/src/main/kotlin/darwin/NSApplication.kt | ygdrasil-io | 634,882,904 | false | {"Kotlin": 292451, "C": 3541, "Shell": 2951, "Objective-C": 1076, "C++": 567} | package darwin
val NSApplicationClass by lazy { NSClass("NSApplication") }
class NSApplication(id: Long) : NSObject(id) {
fun run() = msgSend("run")
companion object{
fun sharedApplication(): NSApplication = NSApplication(NSApplicationClass.msgSend("sharedApplication"))
}
} | 2 | Kotlin | 1 | 0 | 5889fb009a06f141d238587b7288ef727873253e | 284 | klang | MIT License |
examples/src/tl/td/BotInfo.kt | andreypfau | 719,064,910 | false | {"Kotlin": 62259} | // This file is generated by TLGenerator.kt
// Do not edit manually!
package tl.td
import io.github.andreypfau.tl.serialization.TLCombinatorId
import kotlin.jvm.JvmName
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
@SerialName("botInfo")
@TLCombinatorId(0xA83AB851)
pu... | 0 | Kotlin | 0 | 1 | 11f05ad1f977235e3e360cd6f6ada6f26993208e | 1,762 | tl-kotlin | MIT License |
app/src/main/java/com/peceoqicka/demo/wheelayoutmanager/MainActivity.kt | peceoqicka | 176,448,211 | false | null | package com.peceoqicka.demo.wheelayoutmanager
import android.databinding.DataBindingUtil
import android.databinding.ObservableArrayList
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.peceoqicka.demo.wheelayoutmanager.databinding.ActivityMainBinding
import com.peceoqicka.demo.wheela... | 2 | Kotlin | 0 | 5 | a112452f182bdb1bb67ffd837a11c5673656b11f | 7,840 | WheelLayoutManager | Apache License 2.0 |
app/src/main/java/com/iamageo/weather/domain/location/LocationTracker.kt | iamageo | 512,027,915 | false | null | package com.iamageo.weather.domain.location
import android.location.Location
interface LocationTracker {
suspend fun getCurrentLocation(): Location?
} | 0 | Kotlin | 0 | 2 | d9f3f05caa0444de87d99397a35bfb943d4f9dcf | 156 | WeatherApp | MIT License |
shared/src/commonMain/kotlin/app/duss/easyproject/presentation/ui/dashboard/DashboardComponent.kt | Shahriyar13 | 721,031,988 | false | {"Kotlin": 247935, "Swift": 6282, "Ruby": 2302} | package app.duss.easyproject.presentation.ui.dashboard
import app.duss.easyproject.presentation.ui.dashboard.store.DashboardStore
import app.duss.easyproject.presentation.ui.dashboard.store.DashboardStoreFactory
import com.arkivanov.decompose.ComponentContext
import com.arkivanov.mvikotlin.core.instancekeeper.getStore... | 0 | Kotlin | 0 | 0 | 3b21efcf1c9bcdc2148884458a7c34f75020e071 | 1,898 | Kara_EasyProject_CMP | Apache License 2.0 |
app/src/main/java/com/example/movieapp/ui/ViewState.kt | jaumpelicon | 480,804,537 | false | {"Kotlin": 78030} | package com.example.movieapp.ui
data class ViewState<out T>(val status: Status, val data: T?, val message: String? = null) {
enum class Status {
SUCCESS, FAILURE, LOADING, INITIAL
}
companion object {
fun <T> success(data: T): ViewState<T> {
return ViewState(Status.SUCCESS, dat... | 0 | Kotlin | 0 | 0 | 74a6b54f9c694de5885a92241c2604fa32475be7 | 676 | movie-app | MIT License |
src/main/kotlin/com/ctseducare/kotlin/k04_input_data/CalcularPrecoConsumidor.kt | erosvitor | 712,607,250 | false | {"Kotlin": 27437} | /*
O preço consumidor de um carro novo é a soma do custo de fábrica com a porcentagem do distribuidor
e dos impostos (aplicados ao custo de fábrica). Supondo que a porcentagem do distribuidor seja de
28% e os impostos sobre o custo de fábrica seja de 45%, crie um programa que leia o custo de
fábrica de um deter... | 0 | Kotlin | 0 | 0 | 463553734d5d344a199a28ee300b6d3665727517 | 892 | exercicios-kotlin-fundamentos | MIT License |
plugins/kotlin/base/test/test/org/jetbrains/kotlin/idea/test/ExpectedPluginModeProvider.kt | JetBrains | 2,489,216 | false | {"Text": 9788, "INI": 517, "YAML": 423, "Ant Build System": 11, "Batchfile": 34, "Dockerfile": 10, "Shell": 633, "Markdown": 750, "Ignore List": 141, "Git Revision List": 1, "Git Attributes": 11, "EditorConfig": 260, "XML": 7904, "SVG": 4537, "Kotlin": 60205, "Java": 84268, "HTML": 3803, "Java Properties": 217, "Gradle... | // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.test
import com.intellij.openapi.Disposable
import com.intellij.openapi.util.Disposer
import com.intellij.testFramework.UsefulTestCase
import com.intellij.util.Thro... | 1 | null | 1 | 1 | 0d546ea6a419c7cb168bc3633937a826d4a91b7c | 1,878 | intellij-community | Apache License 2.0 |
clients/ktorm-schema/generated/src/main/kotlin/org/openapitools/database/models/CatalogsFeedValidationDetails.kt | oapicf | 489,369,143 | false | {"Markdown": 13009, "YAML": 64, "Text": 6, "Ignore List": 43, "JSON": 688, "Makefile": 2, "JavaScript": 2261, "F#": 1305, "XML": 1120, "Shell": 44, "Batchfile": 10, "Scala": 4677, "INI": 23, "Dockerfile": 14, "Maven POM": 22, "Java": 13384, "Emacs Lisp": 1, "Haskell": 75, "Swift": 551, "Ruby": 1149, "Cabal Config": 2, ... | /**
* Pinterest REST API
* Pinterest's REST API
*
* The version of the OpenAPI document: 5.12.0
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package org.openapitools.database.models
... | 0 | Java | 0 | 2 | dcd328f1e62119774fd8ddbb6e4bad6d7878e898 | 1,750 | pinterest-sdk | MIT License |
src/main/kotlin/me/kacper/model/Color.kt | kac-kon | 518,861,100 | false | null | package me.kacper.model
import com.fasterxml.jackson.annotation.JsonAlias
import com.fasterxml.jackson.annotation.JsonAutoDetect
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonInclude
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include... | 0 | Kotlin | 0 | 0 | 79c4d9f724557f89d5326c2701f01c6881db4e1a | 1,071 | home-system | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsactivitiesmanagementapi/resource/ActivityCategoryController.kt | ministryofjustice | 533,838,017 | false | {"Kotlin": 3866023, "Shell": 9529, "Dockerfile": 1514} | package uk.gov.justice.digital.hmpps.hmppsactivitiesmanagementapi.resource
import io.swagger.v3.oas.annotations.Operation
import io.swagger.v3.oas.annotations.media.ArraySchema
import io.swagger.v3.oas.annotations.media.Content
import io.swagger.v3.oas.annotations.media.Schema
import io.swagger.v3.oas.annotations.resp... | 2 | Kotlin | 0 | 1 | 084728653c2c5a4c17177c18c116001af30b1029 | 2,398 | hmpps-activities-management-api | MIT License |
leic41n/EchoServer/src/main/kotlin/pt/isel/leic/pc/echo/coroutines/Main_coroutines.kt | isel-leic-pc | 466,188,773 | false | null | package pt.isel.leic.pc.echo.coroutines
import kotlinx.coroutines.CancellationException
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.NonCancellable
import kotlinx.coroutines.asCoroutineDispatcher
import kotlinx.coroutines.cancelAndJoin
import kotlinx.coroutines.launch
import kotlinx.coroutines.ru... | 0 | Kotlin | 0 | 8 | a9c586ee9563cf46340cdfd5de5a9981839a8af9 | 4,402 | s2122v-li43d-li41n | MIT License |
app/src/main/java/com/example/minilydia/data/entity/remote/PictureEntity.kt | icodeyou | 478,231,113 | false | null | package com.example.minilydia.data.entity.remote
data class PictureEntity(
val large: String? = null,
val medium: String? = null,
val thumbnail: String? = null
) | 0 | Kotlin | 0 | 2 | 59f5126d0d8ace6c2cdad22a5456a9debf7b768d | 174 | minilydia | Apache License 2.0 |
src/main/kotlin/com/lithium/kapitalize/Kapitalize.kt | leosarra | 178,259,303 | false | {"Kotlin": 10051} | package com.lithium.kapitalize
import com.lithium.kapitalize.languages.EnglishLanguage
import com.lithium.kapitalize.languages.Language
import com.lithium.kapitalize.languages.SpecialRules
class Kapitalize(private val language: Language = EnglishLanguage(SpecialRules.NONE)) {
fun capitalize(input: String): Strin... | 0 | Kotlin | 0 | 1 | 36b37c614934493c613bff51a1297b2b45ae8af2 | 378 | kapitalize | MIT License |
Patient/app/src/main/java/com/signalDoc_patient/ui/fragment/SignupLoginPhase/LoginFragment.kt | Signal-A-Doc | 253,424,098 | false | null | package com.signalDoc_patient.ui.fragment.SignupLoginPhase
import android.app.Dialog
import android.content.Intent
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.text.method.PasswordTransformationMethod
import android.view.LayoutInflater
import andr... | 0 | Kotlin | 0 | 0 | ba6b7e75164ef04e42122841d47465bd4ad88a9f | 4,848 | android | MIT License |
app/src/main/kotlin/com/apps/longhrk/ui/HRKApp.kt | LongHRK1912 | 835,793,057 | false | {"Kotlin": 780216, "Shell": 15556} | /*
* Copyright 2024 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | c24e5897e5b9fd93f82ccc8139b02d793cb26830 | 10,591 | ReadFile | Apache License 2.0 |
sykepenger-model/src/main/kotlin/no/nav/helse/serde/api/builders/SykdomstidslinjeBuilder.kt | navikt | 193,907,367 | false | null | package no.nav.helse.serde.api.builders
import no.nav.helse.hendelser.*
import no.nav.helse.serde.api.SykdomstidslinjedagDTO
import no.nav.helse.serde.mapping.SpeilDagtype
import no.nav.helse.serde.mapping.SpeilKildetype
import no.nav.helse.sykdomstidslinje.Dag
import no.nav.helse.sykdomstidslinje.Sykdomstidslinje
imp... | 0 | Kotlin | 2 | 4 | 470b02c1f41847ea2afcf2c4fd78ae66229b03d5 | 4,392 | helse-spleis | MIT License |
app/src/main/java/com/yilmaz/hybridtranslationapp/ListTranslationAdapter.kt | burraaook | 679,711,808 | false | null | package com.yilmaz.hybridtranslationapp
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.navigation.Navigation
import androidx.recyclerview.widget.RecyclerView
class ListTranslationAdapter(val translatorList : ArrayList<String>)
... | 0 | Kotlin | 0 | 0 | b26cb47f15da05c2734e3d2e88e17eb82f85755e | 1,981 | hybrid-translation-app | MIT License |
ktorfit/src/main/java/com/jintin/ktorfit/POST.kt | Jintin | 549,049,000 | false | {"Kotlin": 15183} | package com.jintin.ktorfit
@Target(AnnotationTarget.FUNCTION)
@Retention(AnnotationRetention.SOURCE)
annotation class POST(val path: String)
| 0 | Kotlin | 0 | 1 | 18bc1ca6573b2280fa5aa93a221fb90135e955a8 | 142 | Ktorfit | Apache License 2.0 |
services/hanke-service/src/main/kotlin/fi/hel/haitaton/hanke/permissions/Kayttooikeustaso.kt | City-of-Helsinki | 300,534,352 | false | {"Kotlin": 1149104, "Python": 56759, "Mustache": 55964, "Shell": 21528, "Batchfile": 4764, "Dockerfile": 1251, "PLpgSQL": 555} | package fi.hel.haitaton.hanke.permissions
import jakarta.persistence.Entity
import jakarta.persistence.EnumType
import jakarta.persistence.Enumerated
import jakarta.persistence.GeneratedValue
import jakarta.persistence.GenerationType
import jakarta.persistence.Id
import jakarta.persistence.Table
import org.springframe... | 5 | Kotlin | 5 | 2 | cc26ead5048b0cc11bb6729f14707085a46225cf | 1,209 | haitaton-backend | MIT License |
library/src/main/java/com/angcyo/library/annotation/FunctionConfig.kt | angcyo | 229,037,615 | false | {"Kotlin": 6706235, "JavaScript": 5194} | package com.angcyo.library.annotation
/**
* 功能开关配置, 描述当前属性是一个功能
* @author <a href="mailto:<EMAIL>">angcyo</a>
* @since 2022-10-20
*/
@MustBeDocumented
@Retention(AnnotationRetention.SOURCE)
@Target(
AnnotationTarget.PROPERTY,
AnnotationTarget.FIELD,
)
annotation class FunctionConfig(val des: String = "" /... | 0 | Kotlin | 6 | 5 | 83f761e205ed6ce510599bf92ceafc508f5645e7 | 330 | UICore | MIT License |
app/src/test/java/com/github/takahirom/roborazzi/compare/on/github/comment/MainActivityScreenshotTest.kt | takahirom | 636,076,436 | false | {"Kotlin": 6874} | package com.github.takahirom.roborazzi.compare.on.github.comment
import androidx.compose.ui.test.hasTestTag
import androidx.compose.ui.test.junit4.createAndroidComposeRule
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.matcher.ViewMatchers
import androidx.test.ext.junit.runners.AndroidJUni... | 7 | Kotlin | 1 | 9 | 475685723f0ac095911a261235144a28e1038599 | 1,100 | roborazzi-compare-on-github-comment-sample | Apache License 2.0 |
core-ui/src/main/java/com/anytypeio/anytype/core_ui/features/objects/holders/ObjectTypeHolder.kt | anyproto | 647,371,233 | false | {"Kotlin": 11623123, "Java": 69306, "Shell": 11350, "Makefile": 1334} | package com.anytypeio.anytype.core_ui.features.objects.holders
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.anytypeio.anytype.core_ui.R
import com.anytypeio.anytype.core_ui.databinding.ItemObjectTypeHorizontalItemBinding
import com.anytype... | 45 | Kotlin | 43 | 528 | c708958dcb96201ab7bb064c838ffa8272d5f326 | 1,724 | anytype-kotlin | RSA Message-Digest License |
app/src/main/java/com/al/custom_view/small_red_book_start/use_rv/FitImageView.kt | Chen-keeplearn | 262,473,049 | false | null | package com.al.custom_view.small_red_book_start.use_rv
import android.content.Context
import android.graphics.drawable.Drawable
import android.util.AttributeSet
import androidx.appcompat.widget.AppCompatImageView
/**
* 图片宽度充满屏幕,高度按比例生成
*/
class FitImageView @JvmOverloads constructor(
context: Context,
attri... | 0 | Kotlin | 0 | 1 | d0cf46c60d3eceb5c35e295155b575dafc671791 | 892 | CustomView | Apache License 2.0 |
features/analytics/api/src/main/kotlin/io/element/android/features/analytics/api/preferences/AnalyticsPreferencesView.kt | vector-im | 546,522,002 | false | null | /*
* Copyright (c) 2023 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 101 | Kotlin | 25 | 183 | 5f79988c06daa6e5eb27223bc3db821edb0865bc | 3,723 | element-x-android | Apache License 2.0 |
app/src/main/java/danielabbott/personalorganiser/ui/SpinnerChangeDetector.kt | danielabbott | 266,279,538 | false | null | package danielabbott.personalorganiser.ui
import android.view.View
import android.widget.AdapterView
class SpinnerChangeDetector(val onClick: (View) -> Unit) : AdapterView.OnItemSelectedListener {
override fun onNothingSelected(parent: AdapterView<*>?) {
}
private var x = false
override fun onItemSe... | 0 | Kotlin | 0 | 0 | 02beaf1ecaeab1db5656acaf796bc530b3543c47 | 595 | Day-Planner-App | MIT License |
app/src/main/java/com/breezebaruch/features/viewAllOrder/interf/EmptyProductOnClick.kt | DebashisINT | 863,564,790 | false | {"Kotlin": 15819808, "Java": 1028932} | package com.breezebaruch.features.viewAllOrder.interf
import com.breezebaruch.features.viewAllOrder.model.ProductOrder
interface EmptyProductOnClick {
fun emptyProductOnCLick(emptyFound:Boolean)
fun delProductOnCLick(isDel:Boolean)
} | 0 | Kotlin | 0 | 0 | 5ff295242877825b98ac559a3a10320a77130181 | 243 | BaruchEngineering | Apache License 2.0 |
log4k/src/main/java/com/shenhua/libs/log4k/handler/BundleHandler.kt | shenhuanet | 116,492,844 | false | null | package com.shenhua.libs.log4k.handler
import android.os.Bundle
import android.util.Log
import com.google.gson.Gson
import com.shenhua.libs.log4k.LK
import com.shenhua.libs.log4k.core.BaseHandler
import com.shenhua.libs.log4k.core.Box
import com.shenhua.libs.log4k.ext.Constant
import com.shenhua.libs.log4k.ext.Utils
i... | 0 | Kotlin | 0 | 1 | 3bdc1a770d0c93cc610d1dc71da284ede21fba07 | 1,477 | Log4k | Apache License 2.0 |
elmslie-samples/coroutines-loader/src/main/java/vivid/money/elmslie/samples/coroutines/timer/elm/TimerReducer.kt | vivid-money | 328,970,240 | false | null | package vivid.money.elmslie.samples.coroutines.timer.elm
import vivid.money.elmslie.core.store.dsl_reducer.DslReducer
internal object TimerReducer : DslReducer<Event, State, Effect, Command>() {
override fun Result.reduce(event: Event) = when (event) {
is Event.Init -> Unit
is Event.Start -> {
... | 7 | Kotlin | 12 | 94 | fb50f3714da87a912e50bfe95edd6b08eb020b26 | 793 | elmslie | Apache License 2.0 |
src/main/kotlin/com/stannia/plugin/example_plugin/commands/plugin_config/actions/ConfigKeyTabCompleter.kt | stanniamc | 446,668,111 | false | {"Kotlin": 22983, "Java": 1039} | package com.stannia.plugin.example_plugin.commands.plugin_config.actions
import com.stannia.plugin.api.library.commands.types.SimpleServerCommand
import com.stannia.plugin.api.library.commands.types.utils.Args
import com.stannia.plugin.api.library.commands.types.utils.Suggestions
import com.stannia.plugin.api.library.... | 2 | Kotlin | 0 | 0 | 4879110acf994858dba6ea31ef568e1bbbdf501f | 1,225 | plugin-base-kotlin | MIT License |
sample/src/main/java/com/litesoftteam/mvvm/sample/presentation/navigation/MainActivityNavigator.kt | udfvirus | 352,020,196 | false | {"Kotlin": 29982} | /*
* Copyright (C) 2021 Vitaliy Sychov
*
* 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 ag... | 2 | Kotlin | 0 | 1 | 24a5db9c7fd042c5c56e1e3e95882fdfa776a029 | 944 | mvvmframework | Apache License 2.0 |
examples/src/tl/telegram/PhotoSize.kt | andreypfau | 719,064,910 | false | {"Kotlin": 62942} | // This file is generated by TLGenerator.kt
// Do not edit manually!
package tl.telegram
import io.github.andreypfau.tl.serialization.Base64ByteStringSerializer
import io.github.andreypfau.tl.serialization.TLCombinatorId
import kotlin.jvm.JvmName
import kotlinx.io.bytestring.ByteString
import kotlinx.serialization.Ser... | 0 | Kotlin | 0 | 1 | 16de3f335d8005e35543cb7515a810fd9ac4236d | 2,872 | tl-kotlin | MIT License |
app/app/src/main/java/com/solutions/note_it/data/Note.kt | biagioPiraino | 839,976,127 | false | {"Kotlin": 90243, "Vue": 52032, "Go": 41922, "TypeScript": 22926, "HCL": 12288, "HTML": 335, "SCSS": 207} | package com.solutions.note_it.data
import com.google.gson.annotations.SerializedName
data class Note(
@field:SerializedName("id") val id: String = "",
@field:SerializedName("title") val title: String = "",
@field:SerializedName("summary") val summary: String = "",
@field:SerializedName("content") val ... | 0 | Kotlin | 0 | 0 | 06117965f19ba6a028d9ee144cdec76d7dba4b92 | 453 | note-it | MIT License |
app/src/main/java/com/example/lieon/record/view/RecordAccuracyDialog.kt | LIE-ON | 796,529,527 | false | {"Kotlin": 49855} | package com.example.lieon.record.view
import android.app.Dialog
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.view.LayoutInflater
import android.view.WindowManager
import android.widget.SeekBar
import android.widget.T... | 2 | Kotlin | 0 | 0 | f92db6da4ceb8e5cb77fdaa0895381ec4685bcb9 | 2,766 | Lieon_application | Apache License 2.0 |
app/src/main/java/com/ph03nix_x/capacityinfo/MainApp.kt | hobbit19 | 239,760,828 | true | {"Kotlin": 136548} | package com.ph03nix_x.capacityinfo
import android.app.Application
import android.content.res.Configuration
import android.os.Build
import androidx.preference.PreferenceManager
import com.ph03nix_x.capacityinfo.helpers.LocaleHelper
import com.ph03nix_x.capacityinfo.helpers.ThemeHelper.isSystemDarkMode
import com.ph03ni... | 0 | null | 0 | 0 | 26b6304bdf60cf9e10d523c55fa75d20475818a4 | 2,307 | CapacityInfo | Apache License 2.0 |
modulecheck-parsing/android/src/main/kotlin/modulecheck/parsing/android/AndroidStylesParser.kt | RBusarow | 316,627,145 | false | null | /*
* Copyright (C) 2021-2022 <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 t... | 76 | Kotlin | 7 | 95 | 24e7c7667490630d30cf8b59cd504cd863cd1fba | 2,801 | ModuleCheck | Apache License 2.0 |
app/src/main/java/com/frestoinc/sample/featuredelivery/MainApp.kt | frestoinc | 587,570,663 | false | null | package com.frestoinc.sample.featuredelivery
import android.content.Context
import com.google.android.play.core.splitcompat.SplitCompat
import com.google.android.play.core.splitcompat.SplitCompatApplication
import dagger.hilt.android.HiltAndroidApp
import timber.log.Timber
@HiltAndroidApp
class MainApp : SplitCompatA... | 0 | Kotlin | 0 | 0 | ff94bc46be1aad2fe560bbb1fd52bef33a703736 | 606 | FeatureDelivery | Apache License 2.0 |
src/main/kotlin/com/lucas/matches/service/MatchService.kt | lasiqueira | 373,864,866 | false | null | package com.lucas.matches.service
import com.lucas.matches.infrastructure.document.MatchDocument
import com.lucas.matches.infrastructure.repository.MatchRepository
import com.lucas.matches.service.converter.MatchConverter
import com.lucas.matches.service.domain.License
import com.lucas.matches.service.domain.LicenseTy... | 0 | Kotlin | 0 | 0 | 838fc4158fc8ae2513666a19c49df93ffdfa2d57 | 2,383 | matches | X.Net License |
src/test/kotlin/no/nav/syfo/testhelper/TestApiModule.kt | navikt | 696,687,106 | false | {"Kotlin": 102469, "Dockerfile": 226} | package no.nav.syfo.testhelper
import io.ktor.server.application.*
import no.nav.syfo.application.api.apiModule
import no.nav.syfo.client.veiledertilgang.VeilederTilgangskontrollClient
import no.nav.syfo.huskelapp.HuskelappService
import no.nav.syfo.huskelapp.database.HuskelappRepository
fun Application.testApiModule... | 1 | Kotlin | 0 | 0 | afa7aefe4b2a62f07dee9d31d14d1b8ef0a06144 | 1,299 | ishuskelapp | MIT License |
app/src/main/java/com/normanfr/todolist/TaskAlarmReciever.kt | normanfrdev | 834,739,063 | false | {"Kotlin": 23692} | package com.normanfr.todolist
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
class TaskAlarmReceiver : BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent) {
val task = intent.getParcelableExtra<Task>("task")
task?.le... | 0 | Kotlin | 0 | 0 | 63144d325569d3d3e0a71c517cb4854fad7b83fc | 403 | ToDoList | MIT License |
app/src/main/java/com/freeflowgfx/convolution/implementation/FunctionsUnderTest.kt | supercoder3000 | 330,186,248 | false | null | package com.freeflowgfx.convolution.implementation
interface FunctionsUnderTest {
val implementationType: String
fun convolution(signal: FloatArray, filter: FloatArray): FloatArray
}
| 0 | Kotlin | 0 | 0 | 11840a312efc9ebab85def16c6cf902cbf3e9de8 | 192 | benchmarking_android | MIT License |
src/main/kotlin/kotlinmud/action/contextBuilder/OptionalFurnitureContextBuilder.kt | danielmunro | 241,230,796 | false | null | package kotlinmud.action.contextBuilder
import kotlinmud.action.model.Context
import kotlinmud.action.type.Status
import kotlinmud.helper.string.matches
import kotlinmud.io.type.Syntax
import kotlinmud.item.model.Item
class OptionalFurnitureContextBuilder(private val itemsInRoom: List<Item>) : ContextBuilder {
ov... | 0 | Kotlin | 1 | 9 | b7ee0d21ae813990896b1b8c6703da9bd1f1fc5b | 652 | kotlinmud | MIT License |
common/src/main/java/com/wan/common/constant/Const.kt | qinghuaAndroid | 252,683,218 | false | {"Kotlin": 278208, "Java": 73348} | package com.wan.common.constant
/**
* Description: 项目通用常量
* Created by cy on 2019/12/1.
*/
object Const {
/*************************************BASE_URL部分 */
const val BASE_URL = "https://www.wanandroid.com/"
/************************************存储键值部分 */
const val IS_LOGIN = "isLogin"
/********... | 0 | Kotlin | 3 | 3 | 35e86bbc06a3ef306d3355432b8dc6cdb7217c1e | 619 | WanAndroid-MVVM | Apache License 2.0 |
src/main/kotlin/com/londogard/textgen/penalties/Penalty.kt | londogard | 224,923,612 | false | null | package com.londogard.textgen.penalties
/**
* [[Penalty]] is a way to penalize different behaviours given history and possible entries.
* Example: [[NgramPenalty]] or perhaps you want to filter out swearwords? Or a Trademark?
*/
interface Penalty {
/**
* Penalize entries given history returning the update... | 9 | Kotlin | 0 | 2 | ee09162915a81b96d82e391147a87a5fdb0e0477 | 443 | text-gen-kt | Apache License 2.0 |
app/src/main/java/co/zemogaapp/posts/data/entities/PostState.kt | ispam | 301,282,691 | false | null | package co.zemogaapp.posts.data.entities
import co.zemogaapp.common.delegate.RecyclerViewType
import co.zemogaapp.utils.SuccessData
/**
* Created by diego.urrea on 10/3/2020.
*/
sealed class PostState {
object Empty: PostState()
object Error: PostState()
object Continue: PostState()
object DeleteAll... | 0 | Kotlin | 0 | 0 | 07a59750a9aee0dd1f3f5b28f44d83fedf8caeea | 458 | ZemogaApp | Apache License 2.0 |
app/src/main/java/com/certified/audionote/adapter/NoteRecyclerAdapter.kt | certified84 | 435,328,596 | false | null | /*
* Copyright (c) 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 2 | Kotlin | 4 | 50 | 6b404551c76c70ebf7644746217818b91c1187ce | 2,509 | AudioNote | Apache License 2.0 |
src/main/kotlin/it/krzeminski/githubactionstyping/validation/types/Enum.kt | typesafegithub | 502,427,408 | false | {"Kotlin": 49359, "Dockerfile": 192} | package it.krzeminski.githubactionstyping.validation.types
import it.krzeminski.githubactionstyping.parsing.ApiItem
import it.krzeminski.githubactionstyping.validation.ItemValidationResult
fun ApiItem.validateEnum(): ItemValidationResult {
if (this.allowedValues == null) {
return ItemValidationResult.Inva... | 7 | Kotlin | 2 | 35 | 49eb4c281cd14ed055ab3a47dabec4e48581fb58 | 946 | github-actions-typing | Apache License 2.0 |
module-api/src/main/java/langchainkt/model/moderation/Moderation.kt | c0x12c | 655,095,005 | false | {"Kotlin": 322914, "Java": 13181} | package langchainkt.model.moderation
data class Moderation(
private val flagged: Boolean = false,
private val flaggedText: String? = null
) {
fun flagged(): Boolean {
return flagged
}
fun flaggedText(): String? {
return flaggedText
}
companion object {
fun flagged(flaggedText: String): Mod... | 0 | Kotlin | 0 | 0 | 1dc065a3aec804d53259171f6f95206eb2fdb0b6 | 477 | langchainkt | Apache License 2.0 |
backend/src/main/kotlin/com/kontinum/service/business/interface.kt | ToniDarodda | 753,367,631 | false | {"Kotlin": 88726, "TypeScript": 64760, "HTML": 1873} | package com.kontinum.service.business
import com.kontinum.model.BusinessData
import com.kontinum.model.User
import com.kontinum.service.business.dto.*
interface BusinessInterface {
suspend fun createBusiness(data: BusinessCreateDTO): String?
suspend fun loginBusiness(data: BusinessGetDTO): String?
suspe... | 5 | Kotlin | 0 | 0 | 51414d8357d2183a41600ff6145aa7c67b9a9e6a | 567 | Kontinum | MIT License |
gson-adapter/src/main/kotlin/fr/speekha/httpmocker/gson/GsonMapper.kt | EGecius | 200,020,302 | true | {"Kotlin": 185890, "Shell": 959} | /*
* 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 w... | 0 | Kotlin | 0 | 0 | cc3538de6a5b9a25fc5520194df9e2042c32b4e4 | 3,344 | httpmocker | Apache License 2.0 |
AndroidKotlin-JSON/MainActivity.kt | narotamsingh | 162,389,440 | false | null | package com.example.json.kotlin_json
import android.os.AsyncTask
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import kotlinx.android.synthetic.main.activity_main.*
import java.io.InputStreamReader
import java.net.HttpURLConnection
import java.net.URL
import org.json... | 0 | Kotlin | 0 | 0 | 1c0154f9d59058ddc8a88296c03e5c6659a1ec3e | 1,844 | Android-Kotlin | Apache License 2.0 |
player_usecases/src/test/java/com/vmenon/mpo/player/usecases/ListForPlaybackStateChangesTest.kt | hitoshura25 | 91,402,384 | false | {"Kotlin": 574795, "HTML": 14355, "Gherkin": 11761, "Shell": 4889, "Ruby": 4474} | package com.vmenon.mpo.player.usecases
import com.vmenon.mpo.player.domain.MediaPlayerEngine
import com.vmenon.mpo.player.domain.PlaybackState
import com.vmenon.mpo.system.domain.Clock
import com.vmenon.mpo.system.domain.ThreadUtil
import com.vmenon.mpo.test.TestData
import kotlinx.coroutines.ExperimentalCoroutinesApi... | 14 | Kotlin | 0 | 1 | 4a612f2c7b2bb7a569f961c391518756962d6b6f | 4,551 | Media-Player-Omega-Android | Apache License 2.0 |
app/src/main/java/me/manulorenzo/mapthecity/ui/city/CityListActivity.kt | noloman | 231,260,348 | false | {"Kotlin": 54517} | package me.manulorenzo.mapthecity.ui.city
import android.os.Bundle
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_city_list.landscapeLayout
import kotlinx.android.synthetic.main.custom_appbar_layout.toolbar
import me.manulorenzo.mapthecity.R
... | 11 | Kotlin | 0 | 2 | e5a14c8e8eca581b44e078dd79595a16ad4079ad | 2,804 | MapTheCity | MIT License |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/emr/CfnInstanceFleetConfigVolumeSpecificationPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.emr
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.Number
import kotlin.String
import softw... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 2,132 | awscdk-dsl-kotlin | Apache License 2.0 |
src/main/kotlin/io/mverse/kslack/api/methods/request/users/UsersGetPresenceRequest.kt | mverse | 161,946,116 | true | {"Kotlin": 403852} | package io.mverse.kslack.api.methods.request.users
import io.mverse.kslack.api.methods.SlackApiRequest
data class UsersGetPresenceRequest(
/**
* Authentication token. Requires scope: `users:read`
*/
override var token: String? = null,
/**
* User to get presence info on. Defaults to the authed user.
... | 0 | Kotlin | 0 | 0 | 9ebf1dc13f6a3d89a03af11a83074a4d636cb071 | 369 | jslack | MIT License |
src/main/kotlin/com/easykotlin/learn/study7/Book.kt | Youngfellows | 444,085,016 | false | {"HTML": 477285, "Kotlin": 283608, "Java": 24475} | package com.easykotlin.learn.study7
/**
* 数据类: 书本
* var name: 书名
* var page: 页数
* val price: 价钱
*/
final data class Book(
var bookName: String,
var page: Int,
val price: Double,
val author: String,
override var size: Int
) : DBase(size), IBaseA,
IBaseB {
/**
* 重写接口方法
*/
... | 0 | HTML | 0 | 0 | db0669da08cc6e60937902a4b1364391896df9d7 | 1,191 | EasyKotlin | Apache License 2.0 |
context/src/main/kotlin/me/gegenbauer/catspy/context/ContextService.kt | Gegenbauer | 609,809,576 | false | {"Kotlin": 652879} | package me.gegenbauer.catspy.context
/**
* Marks a class as a singleton that is scoped to a context.
*/
interface ContextService {
fun onContextDestroyed(context: Context) {}
} | 0 | Kotlin | 1 | 7 | 70d905761d3cb0cb2e5ee9b80ceec72fca46ee52 | 184 | CatSpy | Apache License 2.0 |
app/src/main/java/com/cooper/wordle/app/ui/game/GameScreen.kt | ScottCooper92 | 453,962,911 | false | {"Kotlin": 82146} | package com.cooper.wordle.app.ui.game
import android.content.res.Configuration
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.wrapContentSize
import andro... | 0 | Kotlin | 0 | 1 | 55afa181f75d4263d9804dd0b40c94bbf159525a | 7,815 | Wordle | Apache License 2.0 |
src/main/kotlin/fr/ncomet/Main.kt | ncomet | 320,680,478 | false | null | package fr.ncomet
import org.apache.poi.ss.usermodel.Cell
import org.apache.poi.ss.usermodel.CellType.*
import org.apache.poi.ss.usermodel.Row
import org.apache.poi.ss.usermodel.Sheet
import org.apache.poi.xssf.usermodel.XSSFWorkbook
import picocli.CommandLine
import picocli.CommandLine.*
import picocli.CommandLine.He... | 0 | Kotlin | 0 | 9 | 6d164f047d91f418b6eeb19d877103707ec39a82 | 6,461 | excel2adoc | MIT License |
app/src/main/java/com/chaquo/myapplication/Account.kt | urynb | 675,164,733 | false | {"Kotlin": 171813, "Python": 88752} | package com.chaquo.myapplication
import android.os.Bundle
import android.util.Log
import android.widget.EditText
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import androidx.room.Room
import com.chaquo.myapplication.databinding.ActivityAccountBinding
import com.chaquo.myapplication.db... | 0 | Kotlin | 0 | 0 | 95cf581a31523b847c9ae49d1afaa22c2ff11f88 | 3,352 | MinerFinder | MIT License |
src/main/kotlin/co/mercenary/creators/kotlin/minio/MinioStatic.kt | mercenary-creators | 224,226,723 | false | null | /*
* Copyright (c) 2019, Mercenary Creators Company. All rights reserved.
*
* 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
*
* Unles... | 0 | Kotlin | 0 | 1 | b786ced3cc52f2bb996130c417d676a79f3ea7cd | 4,083 | mercenary-creators-kotlin-minio | Apache License 2.0 |
app/src/test/java/com/github/pavlospt/refactoredumbrella/test/RenderRecorder.kt | pavlospt | 246,115,298 | false | null | package com.github.pavlospt.refactoredumbrella.test
import java.util.concurrent.CopyOnWriteArrayList
import org.junit.Assert.assertEquals
import org.junit.Assert.assertTrue
class RenderRecorder<T : Any?> {
val renders: CopyOnWriteArrayList<T> = CopyOnWriteArrayList()
fun add(render: T) {
renders.add... | 3 | Kotlin | 9 | 114 | e41d78a21ebd5e1e93e039dbd2153a5aeba4f912 | 1,009 | refactored-umbrella | Apache License 2.0 |
samples/src/main/kotlin/com/mechanica/engine/samples/scenes/SceneDemo.kt | DominicDolan | 210,876,716 | false | {"Kotlin": 437674} | package com.mechanica.engine.samples.scenes
import com.cave.library.angle.degrees
import com.mechanica.engine.config.configure
import com.mechanica.engine.drawer.Drawer
import com.mechanica.engine.game.Game
import com.mechanica.engine.input.Inputs
import com.mechanica.engine.scenes.scenes.Scene
import com.mechanica.en... | 7 | Kotlin | 1 | 0 | 013f2ac3bf156f9d912bfc931a5b8272f764ee7e | 1,467 | Mechanica | MIT License |
src/main/kotlin/org/jetbrains/research/lumberjack/Main.kt | JetBrains-Research | 291,968,852 | false | null | package org.jetbrains.research.lumberjack
import astminer.cli.*
import astminer.common.*
import astminer.parse.java.GumTreeJavaParser
import com.github.ajalt.clikt.core.CliktCommand
import com.github.ajalt.clikt.parameters.options.*
import com.github.ajalt.clikt.parameters.types.int
import java.io.File
class Parser :... | 0 | Kotlin | 0 | 3 | d6a96a6b522f009d9af8213548f6c162da6919fb | 4,896 | lumberjack | MIT License |
core/data/src/main/kotlin/com/matabel/core/data/repository/BtDeviceRepository.kt | anthony-cannon | 642,328,700 | false | null | package com.matabel.core.data.repository
import com.matabel.core.model.BtDevice
import kotlinx.coroutines.flow.Flow
interface BtDeviceRepository {
fun observeAllBtDevices(): Flow<List<BtDevice>>
fun insertAll(btDevices: List<BtDevice>)
} | 0 | Kotlin | 0 | 0 | 226ad1f20a6f35f2a7fb01744a9f04bfd1c47003 | 247 | left-behind | MIT License |
app/src/main/java/awersching/gammelgps/ui/Permissions.kt | awersching | 128,370,115 | false | null | package awersching.gammelgps.ui
import android.Manifest
import android.app.Activity
import android.content.pm.PackageManager
import androidx.core.app.ActivityCompat
class Permissions(private val ctx: Activity) {
private val permissions = arrayOf(
Manifest.permission.ACCESS_FINE_LOCATION,
Manifest... | 0 | Kotlin | 0 | 0 | d8e8a436e2f6a9d22fae447e332ec53188c053ca | 855 | gammel-gps | MIT License |
kotlin-test/src/test/kotlin/org/axonframework/extension/kotlin/test/testObjects.kt | AxonFramework | 219,790,172 | false | {"Kotlin": 59452} | /*
* Copyright (c) 2010-2023. Axon Framework
*
* 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 o... | 7 | Kotlin | 9 | 45 | e6629dd3a6275905400d3bb3a5ed2968dfdf7567 | 1,294 | extension-kotlin | Apache License 2.0 |
android/app/src/main/kotlin/com/demirfatih/flutter_habifa_v2/MainActivity.kt | fthdmirr | 310,353,884 | false | {"Dart": 57669, "Swift": 404, "Kotlin": 137, "Objective-C": 38} | package com.demirfatih.flutter_habifa_v2
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | a500ce7cfe39f3efeac84c743e4872c01b93d6ee | 137 | Pomodoro_Todo_App | MIT License |
kotlin-mui/src/main/generated/mui/material/LinearProgress.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/material/LinearProgress")
@file:JsNonModule
package mui.material
external interface LinearProgressProps :
mui.system.StandardProps,
react.dom.html.HTMLAttributes<org.w3c.dom.HTMLSpanElement> {
/**
* Override or extend the styles applie... | 10 | Kotlin | 145 | 983 | 7ef1028ba3e0982dc93edcdfa6ee1edb334ddf35 | 1,692 | kotlin-wrappers | Apache License 2.0 |
app/src/main/java/in/jatindhankhar/wlosh/ui/MainActivity.kt | jatindhankhar | 120,306,742 | false | null | package `in`.jatindhankhar.wlosh.ui
import `in`.jatindhankhar.wlosh.R
import `in`.jatindhankhar.wlosh.ui.adapters.SimpleFragmentPagerAdapter
import `in`.jatindhankhar.wlosh.ui.fragments.ImagesFragment
import android.content.Context
import android.net.ConnectivityManager
import android.os.Bundle
import android.support.... | 0 | Kotlin | 0 | 4 | 78583e130df7d8da824416b25bbafcf2b98e34b1 | 2,343 | wlosh | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.