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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
core/src/test/kotlin/com/improve_future/harmonica/core/table/column/BlobColumnTest.kt | KenjiOhtsuka | 132,746,579 | false | {"Kotlin": 227314} | /*
* Harmonica: Kotlin Database Migration Tool
* Copyright (c) 2022 Kenji Otsuka
*
* This software is released under the MIT License.
* http://opensource.org/licenses/mit-license.php
*/
package com.improve_future.harmonica.core.table.column
import com.improve_future.harmonica.core.toHexString
import org.junit.j... | 31 | Kotlin | 17 | 132 | fbb6f54990451e4ffa9d4ad0d9edee4943ebae1a | 1,023 | harmonica | MIT License |
app/src/main/java/com/mengsoftstudio/android/footballmobile/presenters/TeamPresenter.kt | fajaragungpramana | 180,994,708 | false | {"Kotlin": 118062} | package com.mengsoftstudio.android.footballmobile.presenters
import com.mengsoftstudio.android.footballmobile.contracts.TeamContract
import com.mengsoftstudio.android.footballmobile.models.response.Response
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.disposables.CompositeDisposable
imp... | 0 | Kotlin | 0 | 5 | 8f3142f1a0d9102c507e82b63f253f4778e02e82 | 1,474 | android.football | Apache License 2.0 |
app/src/main/java/cucerdariancatalin/contacts/fragments/MyViewPagerFragment.kt | darian-catalin-cucer | 586,519,582 | false | null | package cucerdariancatalin.contacts.fragments
import android.content.Context
import android.content.Intent
import android.util.AttributeSet
import android.view.ViewGroup
import androidx.coordinatorlayout.widget.CoordinatorLayout
import com.google.gson.Gson
import com.reddit.indicatorfastscroll.FastScrollItemIndicator
... | 0 | Kotlin | 0 | 2 | fc3c54b5cd2392fe933177c485c15aef318cb300 | 18,125 | Contacts | MIT License |
ok-phonesell-pa-transport-mp/src/commonMain/kotlin/ru/otus/otuskotlin/phonesell/pa/transport/models/common/IMpDebug.kt | otuskotlin | 327,228,590 | false | null | package ru.otus.otuskotlin.phonesell.pa.transport.models.common
interface IMpDebug {
val mode: MpWorkModeDto?
}
| 0 | Kotlin | 0 | 0 | c4e5b9a30aaba73c5d6c28bb8c6ebab578c8950b | 117 | otuskotlin-202012-phonesell-pa | MIT License |
app/src/main/java/cn/junmov/mirror/voucher/domain/RemoveVoucherUseCase.kt | junmov | 314,679,541 | false | null | package cn.junmov.mirror.voucher.domain
import cn.junmov.mirror.core.data.db.dao.AccountDao
import cn.junmov.mirror.core.data.db.dao.VoucherDao
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import java.time.LocalDateTime
class RemoveVoucherUseCase(private val voucherDao: VoucherDao, priv... | 0 | Kotlin | 0 | 0 | f328452115af11d9db77f8caaf5bda0b46f7a69b | 993 | mirror-android | MIT License |
sdk/src/main/java/com/stytch/sdk/passwords/Passwords.kt | stytchauth | 314,556,359 | false | null | package com.stytch.sdk.passwords
import com.stytch.sdk.AuthResponse
import com.stytch.sdk.BaseResponse
import com.stytch.sdk.Constants.DEFAULT_SESSION_TIME_MINUTES
import com.stytch.sdk.PasswordsCreateResponse
import com.stytch.sdk.PasswordsStrengthCheckResponse
/**
* Passwords interface that encompasses authenticat... | 1 | Kotlin | 0 | 4 | 0c6ff174fd6606794d2e60b94bd8abd38ae59611 | 7,608 | stytch-kotlin | MIT License |
app/src/main/java/com/knowledgeways/idocs/ui/main/searchresult/SearchResultFragment.kt | mishashribak | 832,422,026 | false | {"Kotlin": 606406, "Java": 68502} | package com.knowledgeways.idocs.ui.main.searchresult
import android.graphics.Color
import android.graphics.PorterDuff
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.util.Log
import android.view.View
import android.widget.ArrayAdapter
import androidx.recyclerview.wi... | 0 | Kotlin | 0 | 0 | 12737fd2075734800c60fc9943e90ac4fd27d491 | 6,964 | idox | MIT License |
app/src/test/java/fr/nspu/dev/recordvoicelearning/utils/OrderPeerEnumTest.kt | nspu | 122,243,438 | false | null | package fr.nspu.dev.recordvoicelearning.utils
import org.junit.Assert.assertEquals
import org.junit.Test
/**
* Created by nspu on 18-02-22.
*/
class OrderPeerEnumTest {
@Test
@Throws(Exception::class)
fun toInt() {
val i0 = OrderPeerEnum.KNOWLEDGE_ASCENDING.toInt()
val i1 = OrderPeerEnum... | 0 | Kotlin | 0 | 0 | daacfa6ddb47adf0beded3cc99b3749978e06f89 | 958 | RecordVoiceLearning | MIT License |
engine-adapter/camunda-platform-7-embedded-spring-boot-starter/src/main/kotlin/dev/bpmcrafters/processengineapi/adapter/c7/embedded/springboot/C7EmbeddedInitialPullOnStartupAutoConfiguration.kt | bpm-crafters | 741,987,331 | false | {"Kotlin": 212847} | package dev.bpmcrafters.processengineapi.adapter.c7.embedded.springboot
import dev.bpmcrafters.processengineapi.adapter.c7.embedded.springboot.C7EmbeddedAdapterProperties.Companion.DEFAULT_PREFIX
import dev.bpmcrafters.processengineapi.adapter.c7.embedded.springboot.startup.InitialPullServiceTasksDeliveryBinding
impor... | 7 | Kotlin | 0 | 6 | 6dc6df1e75d4a4b6b9399cb84d07e982133a66a8 | 2,306 | process-engine-api | Apache License 2.0 |
src/main/kotlin/io/michaelrocks/optional/Optional.kt | MichaelRocks | 68,749,929 | false | null | /*
* Copyright (C) 2016 <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... | 0 | Kotlin | 0 | 8 | 8e940fd8afdb24239c775edc05a2c3d153a33a57 | 9,963 | optional | Apache License 2.0 |
app/src/main/java/com/jpventura/github/main/MainContract.kt | jpventura | 248,572,042 | true | {"Kotlin": 165166} | package com.jpventura.github.main
import com.jpventura.domain.bean.Repository
interface MainContract {
interface Router {
fun goToIssuesView(repository: Repository)
fun goToRepositoriesView()
}
}
| 0 | Kotlin | 0 | 0 | e15db6ec3f7fafcb719095b0f6dd04c6e54a5c88 | 225 | desafio-android | Apache License 2.0 |
shot-consumer/app/src/main/java/com/karumi/ui/view/ScrollActivity.kt | pedrovgs | 91,067,584 | false | {"Kotlin": 143672, "Scala": 108967, "Shell": 5978, "Java": 2945, "Groovy": 246} | package com.karumi.ui.view
import androidx.appcompat.widget.Toolbar
import com.github.salomonbrys.kodein.Kodein
import com.github.salomonbrys.kodein.bind
import com.github.salomonbrys.kodein.instance
import com.github.salomonbrys.kodein.provider
import com.karumi.R
import com.karumi.ui.presenter.ScrollPresenter
class... | 55 | Kotlin | 121 | 1,144 | 64f5162023c28acdf5b98490b8492a639668ad63 | 755 | Shot | Apache License 2.0 |
bridgelib/src/main/java/com/brins/bridgelib/daily/DailyMusicBridgeInterface.kt | BrinsLee | 297,821,918 | false | null | package com.brins.bridgelib.daily
import com.brins.bridgelib.BridgeInterface
/**
* Created by lipeilin
* on 2020/11/11
*/
interface DailyMusicBridgeInterface : BridgeInterface {
fun toDailyMusicActivity()
} | 0 | Kotlin | 0 | 1 | 37cbd7448ebfc23475c00462018f6d70c74631e1 | 215 | Music | Apache License 2.0 |
src/main/kotlin/kotlinmdl/style/IMdlTypography.kt | sametkurumahmut | 119,988,311 | false | null | package kotlinmdl.style
interface IMdlTypography : IMdlStyle {
val value: String
}
interface IMdlBodyTypography : IMdlTypography
interface IMdlButtonTypography : IMdlTypography
interface IMdlCaptionTypography : IMdlTypography
interface IMdlDisplayTypography : IMdlTypography
interface IMdlHeadlineTypography :... | 1 | Kotlin | 0 | 1 | 4ae2e6a03572aec5a8ea8bd3355ee031a4a3eb0e | 528 | kotlin-mdl-js | Apache License 2.0 |
core/src/test/kotlin/com.github.prologdb/dbms/FilenameUtilsTest.kt | prologdb | 113,687,585 | false | null | package com.github.prologdb.dbms
import io.kotlintest.matchers.shouldBe
import io.kotlintest.matchers.shouldThrow
import io.kotlintest.specs.FreeSpec
class FilenameUtilsTest : FreeSpec({
"toSaveFilename" - {
"alphanumeric" {
"foobar123".toSaveFileName() shouldBe "foobar123"
}
... | 8 | Kotlin | 0 | 2 | 95988932b52eefb68a4b0f0e43f1484f0c8d0762 | 1,384 | prologdb | MIT License |
app/src/main/java/com/example/noodleolympics/constants/IntegerConstants.kt | naqeebali-shamsi | 680,815,014 | false | null | package com.example.noodleolympics.constants
/**
* Constants related to integer values.
*/
class IntegerConstants {
companion object {
/**
* Represents the number of milliseconds in one minute (60 seconds).
*/
const val oneMinInMilliseconds = 60 * 1000L
}
}
| 0 | Kotlin | 0 | 0 | a02c73ebdc5264f557e8ef4f4d9c960ae6022951 | 304 | NoodleOlympics | Apache License 2.0 |
app/src/main/java/dev/pankaj/cleanarchitecture/data/repository/category/CategoryRepository.kt | pankaj046 | 806,227,972 | false | {"Kotlin": 79661} | package dev.pankaj.cleanarchitecture.data.repository.category
import dev.pankaj.cleanarchitecture.data.dataSource.category.ICategoryDataSource
import dev.pankaj.cleanarchitecture.domain.repository.ICategoryRepository
import dev.pankaj.cleanarchitecture.utils.*
class CategoryRepository(
private val categoryDataSou... | 0 | Kotlin | 0 | 0 | 050fa0aae45e4500c9fc85a04c6b7ee5b6439d71 | 894 | Clean-Architecture | The Unlicense |
app/src/main/java/com/roomedia/dawn_down_alarm/presentation/main/HelpContentFragment.kt | roomedia | 323,765,822 | false | null | package com.roomedia.dawn_down_alarm.presentation.main
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.DrawableRes
import androidx.core.os.bundleOf
import androidx.fragment... | 0 | Kotlin | 0 | 0 | 0f880ce641694d4f9db0ba132fd86cc9c8dfe52b | 2,808 | Noti_Alarm | MIT License |
src/main/kotlin/marisa/relics/ShroomBag.kt | scarf005 | 574,583,770 | false | {"Kotlin": 393468, "TypeScript": 30744} | package marisa.relics
import basemod.abstracts.CustomRelic
import com.badlogic.gdx.graphics.Texture
import com.megacrit.cardcrawl.cards.curses.Parasite
import com.megacrit.cardcrawl.core.Settings
import com.megacrit.cardcrawl.dungeons.AbstractDungeon
import com.megacrit.cardcrawl.relics.AbstractRelic
import com.megacr... | 10 | Kotlin | 7 | 16 | 078d76e05b330c0511200b22487961246c6ded8a | 1,127 | Marisa | MIT License |
app/common/src/commonMain/kotlin/sh/christian/ozone/ui/icons/Reply.kt | christiandeange | 611,550,055 | false | {"Kotlin": 484890, "Shell": 1254, "Swift": 690, "HTML": 306, "JavaScript": 202, "CSS": 129} | package sh.christian.ozone.ui.icons
/*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE... | 1 | Kotlin | 6 | 34 | df457f4fcedca8e621c99689a79b46812023bffd | 1,422 | ozone | MIT License |
src/main/kotlin/ru/shadowsparky/client/Dialog.kt | shadowsparky | 163,730,207 | false | null | /*
* Created by shadowsparky in 2019
*/
package ru.shadowsparky.client
import com.jfoenix.controls.JFXDialog
import com.jfoenix.controls.JFXDialogLayout
import javafx.scene.control.Button
import javafx.scene.control.Label
import javafx.scene.layout.StackPane
import javafx.scene.text.Font
import tornadofx.FX
import ... | 3 | Kotlin | 0 | 0 | 64c7d4fa079eb184fdd485cbe5f3f7dc0fdcde88 | 1,259 | screencast_client | The Unlicense |
app/src/main/java/corp/wmsoft/manim/scene/three_d_scene.kt | westman2000 | 783,369,254 | false | {"Kotlin": 454674} | package corp.wmsoft.manim.scene
//"""A scene suitable for rendering three-dimensional objects and animations."""
open class ThreeDScene : Scene()
// """
// This is a Scene, with special configurations and properties that
// make it suitable for Three Dimensional Scenes.
// """
//
//
//class SpecialThree... | 0 | Kotlin | 0 | 0 | c9343f77896014a3099817449fca27cb9d250b75 | 737 | compose | Apache License 2.0 |
sykepenger-api/src/main/kotlin/no/nav/helse/spleis/dto/Mapping.kt | navikt | 193,907,367 | false | {"Kotlin": 7778827, "PLpgSQL": 846, "Dockerfile": 109} | package no.nav.helse.spleis.dto
import no.nav.helse.person.Person
import no.nav.helse.serde.api.dto.PersonDTO
import no.nav.helse.serde.api.serializePersonForSpeil
import no.nav.helse.spleis.dao.HendelseDao
internal fun håndterPerson(fødselsnummer: Long, person: Person, hendelseDao: HendelseDao): PersonDTO {
val... | 2 | Kotlin | 6 | 3 | 0f7daf0add374d407e21310356648b9b43a4ec6b | 429 | helse-spleis | MIT License |
app/src/main/java/com/voter/adaptivegridview/MainActivity.kt | VintLin | 551,830,745 | false | {"Kotlin": 29946, "Java": 6575} | package com.voter.adaptivegridview
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.main.view.HomeFragment
import com.voter.adaptivegridview.impl.GridRecyclerView
import com.voter.adaptivegridview.view.bean.DemoUtils
import com.voter.adaptivegridview.view.item.ItemViewAdapter... | 0 | Kotlin | 0 | 0 | c346f8aafee9b9d641137a9f8dcac5becb32bd9f | 731 | AdaptiveGridView | Apache License 2.0 |
app/src/main/java/net/vrallev/delgate/MainActivity.kt | vRallev | 176,651,676 | false | null | package net.vrallev.delgate
import android.annotation.SuppressLint
import android.os.Bundle
import android.view.View
import android.widget.Button
import androidx.appcompat.app.AppCompatActivity
class MainActivity : AppCompatActivity() {
private var clickCount by instanceState(defaultValue = 0)
private val bu... | 0 | Kotlin | 0 | 2 | 47b8de90904950b04eec1d04acd0fe8419a06405 | 773 | delegate-meetup | Apache License 2.0 |
app/src/main/java/com/decimalab/simpletask/base/BaseRepository.kt | ShakilAhmedShaj | 318,355,269 | false | null | package com.decimalab.simpletask.base
import androidx.lifecycle.MutableLiveData
import com.decimalab.simpletask.utils.Resource
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import retrofit2.HttpException
/**
* Created by Shakil Ahmed Shaj on 23,September,2020.
* shakilahmedshaj@gmail.c... | 0 | Kotlin | 0 | 1 | 371f22b2cc387b2235003c838fa97a9b80700cbe | 1,240 | Simple_Task_RU | The Unlicense |
example/android/app/src/main/kotlin/com/peeq/live/MyApplication.kt | JoshanTandukar | 440,530,470 | false | {"Dart": 1407140, "Kotlin": 35900, "Objective-C": 22368, "Ruby": 850} | package com.peeqlive
import com.jarvanmo.rammus.RammusPlugin
import io.flutter.plugin.common.PluginRegistry
import io.flutter.app.FlutterApplication
import io.flutter.embedding.engine.loader.FlutterLoader
/***
* Created by mo on 2019-06-25
* 冷风如刀,以大地为砧板,视众生为鱼肉。
* 万里飞雪,将穹苍作烘炉,熔万物为白银。
**/
class MyApplication:Flutte... | 0 | Dart | 0 | 1 | 9426bd7a8a4db25e6d1e541bc438fcb67141f694 | 577 | rammus | Apache License 2.0 |
idscp2/src/main/kotlin/de/fhg/aisec/ids/idscp2/default_drivers/secure_channel/NativeTlsConfiguration.kt | rajesh-ibm-power | 333,355,999 | true | {"Kotlin": 603521, "Java": 571930, "TypeScript": 78380, "HTML": 44870, "Shell": 17139, "CSS": 14035, "Python": 7090, "Handlebars": 5731, "Dockerfile": 3711, "Prolog": 2993, "HCL": 2131, "Harbour": 190} | package de.fhg.aisec.ids.idscp2.default_drivers.secure_channel
import java.nio.file.Path
import java.nio.file.Paths
/**
* NativeTLS SecureChannel configuration class, contains information about NativeTLS stuff
*
* @author <NAME> (<EMAIL>)
*/
class NativeTlsConfiguration {
var serverPort = DEFAULT_SERVER_PORT
... | 0 | Kotlin | 0 | 0 | 11fcc55b0bb38d9fe9b4b968db35e2b7ea322b63 | 4,130 | trusted-connector | Apache License 2.0 |
ychat/src/commonTest/kotlin/infrastructure/MockStorage.kt | codeandtheory | 590,561,356 | false | {"Objective-C": 147180, "Kotlin": 138808, "Swift": 395, "Shell": 355} | package infrastructure
object MockStorage {
fun completionSuccessResult(text: String) = """
{
"id": "1",
"object": "text_completion",
"created": 1675532539,
"model": "text-davinci-003",
"choices": [
{
"text": "\n\n$text",
"ind... | 9 | Objective-C | 10 | 139 | 7f08e78844a779d615cd56b046744e8980e763ab | 3,662 | ychat | Apache License 2.0 |
app/src/main/java/com/arcadone/pokestorie/presentation/HomeUiState.kt | ArcaDone | 804,002,329 | false | {"Kotlin": 88352} | package com.arcadone.pokestorie.presentation
sealed class HomeUiState {
data class Loading(val isConnected: Boolean = false) : HomeUiState()
data class ShowSuccess(val pokemonList: Unit) : HomeUiState()
data class ShowError(val errorMessage: String) : HomeUiState()
} | 0 | Kotlin | 0 | 0 | 37338a5df2deba70ab9a7b9e8bcd39bb797a9086 | 280 | pokeStorie | MIT License |
app/src/main/java/com/example/smartlist/ui/charts/bar_graph/BarGraph.kt | OverLordN7 | 627,347,167 | false | null | package com.example.budgetapplication.ui.components
import android.graphics.Paint
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.tween
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
i... | 0 | null | 0 | 3 | 1b4b3a8cfd1054cfb06d913a6a27f55c58f46b63 | 9,255 | SmartList | The Unlicense |
app/src/main/java/com/demo/app/BlockFragment.kt | czy1121 | 874,719,761 | false | {"Kotlin": 39557} | package com.demo.app
import android.content.res.Resources
import android.graphics.Color
import android.os.Bundle
import android.text.Layout
import android.text.method.LinkMovementMethod
import android.text.style.IconMarginSpan
import android.view.View
import android.widget.TextView
import androidx.core.graphics.drawab... | 0 | Kotlin | 0 | 3 | dded0412663cca0a0ef2cf665d7f0d45655f4466 | 2,525 | span | Apache License 2.0 |
common/src/main/java/com/yuriikonovalov/common/framework/data/local/database/mapper/AccountMapperDb.kt | yuriikonovalov | 563,974,428 | false | {"Kotlin": 872022} | package com.yuriikonovalov.common.framework.data.local.database.mapper
import com.yuriikonovalov.common.application.entities.account.Account
import com.yuriikonovalov.common.framework.data.local.database.model.AccountDb
import javax.inject.Inject
class AccountMapperDb @Inject constructor(
private val currencyMapp... | 0 | Kotlin | 0 | 0 | 8063508f836512fc8f8a0ba18f794bb895ee2449 | 1,222 | budgethub | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/SortSizeUp.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,178 | icons | MIT License |
app/src/main/java/com/forcetower/uefs/feature/siecomp/onboarding/OnboardingFragment.kt | marcelobiao | 184,821,890 | true | {"Kotlin": 1857200, "Java": 257698, "Shell": 376} | /*
* Copyright (c) 2019.
* <NAME> <<EMAIL>>
*
* This file is part of the UNES Open Source Project.
*
* UNES is licensed under the MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in th... | 0 | Kotlin | 0 | 0 | 8c27cac95ffde6aae6a07156be0aad3d6039767e | 4,778 | Melon | MIT License |
libraries/google_maps_places/src/main/java/com/yolisstorm/library/google/maps_places/models/PlaceLocationPoint.kt | YolisStormbreaker | 259,668,401 | false | null | package com.yolisstorm.library.google.maps_places.models
import com.google.android.gms.maps.model.LatLng
import com.google.gson.annotations.SerializedName
import com.google.maps.android.clustering.ClusterItem
import com.yolisstorm.library.extensions.second
import com.yolisstorm.library.extensions.third
import java.uti... | 0 | Kotlin | 0 | 0 | ee295681aae90442674dd305e73614419fc5cf27 | 1,384 | covid_android_showcase | Apache License 2.0 |
KotlinBasic/src/51-also_scope_function.kt | LCS87 | 512,607,953 | false | null | fun main() {
/** Função de Escopo: 'also' 'TAMBÉM REALIZE A SEGUINTE OPERAÇÃO EXTRA'
Propriedade 1: consulte o objeto de contexto usando 'it'
Propriedade 2: O valor de retorno é o 'objeto de contexto' */
// Initialise numbersList
val numbersList: MutableList<Int> = mutableListOf(1, 2... | 0 | Kotlin | 0 | 0 | a168f63e0c418c70865b1810cae69f4eb43592d3 | 897 | Kotlin-Practice | MIT License |
app/src/main/java/avill/ladv/shellcompose/domain/crud_db/InsertPuppy.kt | avill2022 | 624,930,679 | false | null | package avill.ladv.shellcompose.domain.crud_db
import avill.ladv.shellcompose.data.db.DaoAProvider
import avill.ladv.shellcompose.data.model.PuppyDB
import javax.inject.Inject
class InsertPuppy @Inject constructor(private val daoService: DaoAProvider) {
suspend operator fun invoke(puppy: PuppyDB){
daoServ... | 0 | Kotlin | 0 | 0 | a9c6616d94df9bcee276452daf455d5d9ea1e916 | 355 | JetpackProjectShell | MIT License |
composeApp/src/commonMain/kotlin/domain/exception/NoComicsException.kt | KamilSucharski | 783,215,410 | false | {"Kotlin": 39364, "Swift": 594} | package domain.exception
class NoComicsException : RuntimeException() | 0 | Kotlin | 0 | 0 | 5c958505d3f770a2afd27c3ee4597d168faecfac | 70 | i_am_steve_kmm | Apache License 2.0 |
example/hibernate-reactive-javax/src/main/kotlin/com/linecorp/kotlinjdsl/example/hibernate/reactive/javax/jpql/entity/book/Isbn.kt | line | 442,633,985 | false | {"Kotlin": 1959613, "JavaScript": 5144, "Shell": 1023} | package com.linecorp.kotlinjdsl.example.hibernate.reactive.javax.jpql.entity.book
import java.io.Serializable
import javax.persistence.Column
import javax.persistence.Embeddable
/**
* International Standard Book Number
*/
@Embeddable
data class Isbn(
@Column(name = "isbn")
val value: String,
) : Serializabl... | 4 | Kotlin | 86 | 705 | 3a58ff84b1c91bbefd428634f74a94a18c9b76fd | 322 | kotlin-jdsl | Apache License 2.0 |
design-system/compose/src/main/kotlin/com/xavierlnc/aboutme/designsystem/compose/foundations/Dimensions.kt | xavierlnc | 694,670,256 | false | {"Kotlin": 66079} | package com.xavierlnc.aboutme.designsystem.compose.foundations
import androidx.compose.runtime.Immutable
import androidx.compose.runtime.compositionLocalOf
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
internal val LocalDSDimensions = compositionLocalOf<DSDimensions> {
error("No LocalDSDim... | 0 | Kotlin | 0 | 0 | f2eb12f349e50ff36902ac08b570f8477abf98f7 | 1,169 | about-me | Apache License 2.0 |
domain/src/androidMain/kotlin/uk/co/sentinelweb/cuer/core/mappers/DateTimeFormatter.kt | sentinelweb | 220,796,368 | false | {"Kotlin": 2627352, "CSS": 205156, "Java": 98919, "Swift": 85812, "HTML": 19322, "JavaScript": 12105, "Ruby": 2170} | package uk.co.sentinelweb.cuer.core.mappers
import kotlinx.datetime.LocalDate
import kotlinx.datetime.LocalDateTime
import kotlinx.datetime.toJavaLocalDate
import kotlinx.datetime.toJavaLocalDateTime
import java.time.chrono.IsoChronology
import java.time.format.DateTimeFormatter
import java.time.format.DateTimeFormatt... | 94 | Kotlin | 0 | 2 | f74e211570fe3985ba45848b228e91a3a8593788 | 1,355 | cuer | Apache License 2.0 |
pillarbox-analytics/src/androidTest/java/ch/srgssr/pillarbox/analytics/TestComScore.kt | SRGSSR | 519,157,987 | false | null | /*
* Copyright (c) 2023. SRG SSR. All rights reserved.
* License information is available from the LICENSE file.
*/
package ch.srgssr.pillarbox.analytics
import androidx.test.platform.app.InstrumentationRegistry.getInstrumentation
import ch.srgssr.pillarbox.analytics.comscore.ComScore
import org.junit.Assert
import... | 9 | Kotlin | 0 | 7 | d85ab025f68d7bb16be32d3fee70cdedc3bcdd8f | 806 | pillarbox-android | MIT License |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/ArrowsToCircle.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.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
i... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,436 | icons | MIT License |
grammar/src/commonMain/kotlin/element/Stmt.kt | plank-lang | 328,030,547 | false | null | package com.gabrielleeg1.plank.grammar.element
abstract class Stmt internal constructor() : PlankElement {
interface Visitor<T> {
fun visit(stmt: Stmt): T = stmt.accept(this)
fun visitExprStmt(stmt: ExprStmt): T
fun visitReturnStmt(stmt: ReturnStmt): T
fun visitErrorStmt(stmt: ErrorStmt): T
fun... | 11 | Kotlin | 0 | 23 | da5e27b90dbe981398b1b4c8de09d52f81c423e2 | 1,310 | plank | MIT License |
app/src/main/java/com/zig/gps/view/Fastag/FastagFragment.kt | BoltUIX | 560,807,336 | false | {"Kotlin": 69759} | package com.zig.gps.view.Fastag
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.zig.gps.databinding.FastagsBinding
import com.zig.gps.databinding.TrackingBinding
import com.zig.gps.databinding.UserDashbo... | 0 | Kotlin | 0 | 1 | 68ebcaf82231b8cc5151842c75f40503a8417728 | 1,244 | Hilt-Demo-Viewpager-with-tablayout | Apache License 2.0 |
db-async-common/src/main/java/com/github/jasync/sql/db/exceptions/CanceledChannelFutureException.kt | darkredz | 162,313,359 | true | {"Kotlin": 590434, "Java": 15793, "Shell": 3085} | package com.github.jasync.sql.db.exceptions
import io.netty.channel.ChannelFuture
class CanceledChannelFutureException(val channelFuture: ChannelFuture) :
IllegalStateException("This channel future was canceled -> %s".format(channelFuture))
| 0 | Kotlin | 0 | 0 | fc9575cf74c78af87fc8d487a8b809d9b6bef1f2 | 247 | jasync-sql | Apache License 2.0 |
app/src/main/java/com/glover/hearx/utilities/DialogUtil.kt | HeinrichGlover | 723,356,950 | false | {"Kotlin": 94971, "Java": 6801, "Rich Text Format": 1484} | package com.glover.hearx.utilities
import android.app.Activity
import android.app.AlertDialog
import android.content.DialogInterface
import com.glover.hearx.R
object DialogUtil {
private const val MESSAGE_ALERT = 1
private const val CONFIRM_ALERT = 2
private const val DECISION_ALERT = 3
fun messageAle... | 0 | Kotlin | 0 | 0 | cfb13a4301dc63ff83b1a6f03350d4af0b906667 | 3,222 | HearX-Android | Apache License 2.0 |
decompose/src/commonMain/kotlin/com/arkivanov/decompose/router/panels/PanelsNavigation.kt | arkivanov | 437,015,897 | false | {"Kotlin": 700677} | package com.arkivanov.decompose.router.panels
import com.arkivanov.decompose.ExperimentalDecomposeApi
import com.arkivanov.decompose.router.children.NavigationSource
import com.arkivanov.decompose.router.panels.PanelsNavigation.Event
/**
* Represents [PanelsNavigator] and [NavigationSource] at the same time.
*/
@Ex... | 2 | Kotlin | 84 | 2,207 | 8af551e8895951a5082a5d2750335713d673f80b | 973 | Decompose | Apache License 2.0 |
core/src/androidTest/java/com/bruno13palhano/core/repository/tables/LocalProductDataTest.kt | bruno13palhano | 670,001,130 | false | {"Kotlin": 1247394} | package com.bruno13palhano.core.repository.tables
import com.bruno13palhano.cache.ShopDatabase
import com.bruno13palhano.core.data.repository.category.CategoryData
import com.bruno13palhano.core.data.repository.category.DefaultCategoryData
import com.bruno13palhano.core.data.repository.product.DefaultProductData
impor... | 0 | Kotlin | 0 | 2 | f760cbbcf8a9b649759138594e466ee2753c490a | 12,922 | shop-dani-management | MIT License |
core/data/src/main/kotlin/com/papirus/androidbase/core/data/repository/MainRepository.kt | svlilyas | 656,319,202 | false | null | package com.papirus.androidbase.core.data.repository
import androidx.annotation.WorkerThread
import com.papirus.androidbase.core.data.client.MainClient
import com.papirus.androidbase.core.database.db.AppDao
import com.papirus.androidbase.core.model.remote.network.Resource
import com.papirus.androidbase.core.model.remo... | 0 | Kotlin | 0 | 0 | cfb84dd29bf1dd44deed71e83333952596cf9004 | 2,379 | PokeApp | MIT License |
port_store/src/main/kotlin/com/hexagonkt/store/Store.kt | Thiamath | 194,350,081 | true | {"Kotlin": 321767, "HTML": 22455, "Scala": 3558, "JavaScript": 2701, "Groovy": 1844, "Dockerfile": 1694, "CSS": 704} | package com.hexagonkt.store
import kotlin.reflect.KClass
import kotlin.reflect.KProperty1
interface Store<T : Any, K : Any> {
val type: KClass<T>
val key: KProperty1<T, K>
val name: String
val mapper: Mapper<T>
fun createIndex(unique: Boolean, fields: List<Pair<String, IndexOrder>>): String
... | 0 | Kotlin | 0 | 0 | 7f0e4b21a5d1be99525350af22719908323d3419 | 2,413 | hexagon | MIT License |
core/domain/src/main/kotlin/com/ngapps/phototime/core/domain/locations/GetSaveLocationUseCase.kt | ngapp-dev | 752,386,763 | false | {"Kotlin": 1833486, "Shell": 10136} | /*
* Copyright 2024 NGApps Dev (https://github.com/ngapp-dev). 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
*
*... | 0 | Kotlin | 0 | 3 | bc1990bccd9674c6ac210fa72a56ef5318bf7241 | 1,394 | phototime | Apache License 2.0 |
app/src/main/java/com/shid/animelistcleanarchitecture/core/di/DatabaseModule.kt | theshid | 386,695,243 | false | null | package com.shid.animelistcleanarchitecture.core.di
import android.content.Context
import com.shid.animelistcleanarchitecture.framework.database.AnimeDatabase
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.... | 0 | Kotlin | 0 | 0 | 039cd24c14a153d2c0672e41e7a61e04dd87f170 | 578 | Manga-List-CleanArchitecture | The Unlicense |
src/main/kotlin/arrays/MinTotalDistance.kt | ghonix | 88,671,637 | false | null | package arrays
class MinTotalDistance {
fun minTotalDistance(grid: Array<IntArray>): Int {
val rows = ArrayList<Int>()
val cols = ArrayList<Int>()
for (i in grid.indices) {
for (j in grid[i].indices) {
if (grid[i][j] == 1) {
rows.add(i)
... | 0 | Kotlin | 0 | 2 | 25d4ba029e4223ad88a2c353a56c966316dd577e | 1,056 | Problems | Apache License 2.0 |
shared/src/commonMain/kotlin/com/ramitsuri/podcasts/viewmodel/HomeViewModel.kt | ramitsuri | 760,212,962 | false | {"Kotlin": 494806, "Shell": 9565, "Swift": 296} | package com.ramitsuri.podcasts.viewmodel
import com.ramitsuri.podcasts.model.Episode
import com.ramitsuri.podcasts.model.PlayingState
import com.ramitsuri.podcasts.model.Podcast
import com.ramitsuri.podcasts.model.ui.HomeViewState
import com.ramitsuri.podcasts.repositories.EpisodesRepository
import com.ramitsuri.podca... | 0 | Kotlin | 0 | 0 | ee78719c2079a684f49b274dbcf86a00b619a88a | 2,799 | podcasts | MIT License |
example/src/main/java/com/rohitss/mvr/mockapi/MockInterceptor.kt | RohitSurwase | 233,761,097 | false | null | package com.rohitss.mvr.mockapi
import com.rohitss.mvr.BuildConfig
import okhttp3.*
class MockInterceptor : Interceptor {
override fun intercept(chain: Interceptor.Chain): Response {
if (BuildConfig.DEBUG) {
val uri = chain.request().url().uri().toString()
val responseString = whe... | 1 | null | 47 | 95 | a38b2afba74716ae18b6556dcd104de8d3947f01 | 1,398 | AAC-MVI-Architecture | Apache License 2.0 |
fontawesome/src/de/msrd0/fontawesome/icons/FA_CALENDAR.kt | msrd0 | 363,665,023 | false | null | /* @generated
*
* This file is part of the FontAwesome Kotlin library.
* https://github.com/msrd0/fontawesome-kt
*
* This library is not affiliated with FontAwesome.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 0 | Kotlin | 0 | 0 | 2fc4755051325e730e9d012c9dfe94f5ea800fdd | 1,931 | fontawesome-kt | Apache License 2.0 |
app/src/main/java/com/yueban/yopic/ui/base/BaseViewActivity.kt | yueban | 162,973,285 | false | {"Kotlin": 164160} | package com.yueban.yopic.ui.base
import android.os.Bundle
import androidx.annotation.LayoutRes
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import androidx.lifecycle.Lifecycle
import com.gyf.barlibrary.ImmersionBar
import com.trello.lifecycle2.android.lifecycle.AndroidLifecyc... | 0 | Kotlin | 0 | 6 | dd2e23efadc4bd7c36f67670772f7ba3c7a55828 | 2,204 | YoPic | Apache License 2.0 |
backend/src/test/kotlin/com/github/davinkevin/podcastserver/find/finders/rss/RSSFinderTest.kt | davinkevin | 13,350,152 | false | {"HTML": 15231888, "Kotlin": 1215645, "TypeScript": 162710, "JavaScript": 96744, "Java": 22047, "Less": 21773, "SCSS": 5172, "Shell": 3271, "Dockerfile": 2495} | package com.github.davinkevin.podcastserver.find.finders.rss
import com.github.davinkevin.podcastserver.MockServer
import com.github.davinkevin.podcastserver.extension.assertthat.assertAll
import com.github.davinkevin.podcastserver.fileAsString
import com.github.davinkevin.podcastserver.service.image.CoverInformation
... | 0 | HTML | 42 | 188 | 7f4272b889325a1689c9dd10c8bf43fbd9a2beb5 | 5,953 | Podcast-Server | Apache License 2.0 |
app/src/main/kotlin/io/github/nuhkoca/libbra/binding/adapters/ImageBindingAdapter.kt | nuhkoca | 252,193,036 | false | null | /*
* Copyright (C) 2020. <NAME>. 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
*
* Unless required by applic... | 7 | null | 11 | 54 | acaa2caee0308d44d7251c06859827661ec86787 | 2,400 | libbra | Apache License 2.0 |
mediapicker/src/main/java/com/greentoad/turtlebody/mediapicker/core/CursorHelper.kt | anugotta | 183,917,020 | true | {"Kotlin": 105603, "Java": 3636} | package com.greentoad.turtlebody.mediapicker.core
import android.annotation.SuppressLint
import android.content.Context
import android.database.Cursor
import android.provider.MediaStore
/**
* Created by WANGSUN on 27-Mar-19.
*/
object CursorHelper {
/**
* cursor for images and videos
*/
@Suppre... | 0 | Kotlin | 0 | 0 | 3d88c738c6441636206bc00c3cebe16b997683e2 | 2,492 | android-media-picker | MIT License |
aa_activities/app/src/main/java/com/example/myapplication/GameActivity.kt | vvalouch | 153,629,668 | false | null | package com.example.myapplication
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_game.*
class GameActivity : AppCompatActivity() {
//region 2. maze definition
companion object {
val path = arrayOf(1... | 0 | Kotlin | 0 | 0 | 68f495b3a47ecb6cff94a2b5d67419f77fbb83e3 | 2,682 | AppPort-Android-Academy | Apache License 2.0 |
mdw-studio/src/com/centurylink/mdw/studio/ui/widgets/AssetCell.kt | CenturyLinkCloud | 92,535,002 | false | null | package com.centurylink.mdw.studio.ui.widgets
import com.centurylink.mdw.model.asset.Asset
import com.centurylink.mdw.model.asset.AssetVersion
import com.centurylink.mdw.model.asset.AssetVersionSpec
import com.centurylink.mdw.studio.proj.ProjectSetup
import java.awt.Component
import java.awt.Dimension
import java.awt.... | 17 | Kotlin | 3 | 30 | bb5b78aa6bb88b679ac4b5030995d957b8eff3da | 4,463 | mdw-studio | MIT License |
composeApp/src/commonMain/kotlin/org/example/todos/screen/EditTodoDialog.kt | vasba | 851,429,846 | false | {"Kotlin": 19612, "Swift": 621, "HTML": 331, "CSS": 102} | package org.example.todos.screen
import androidx.compose.foundation.layout.*
import androidx.compose.material3.*
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import org.example.todos.db.TodoItem
import org.example.todos.viewModels.TodoViewModel
@Composable
f... | 0 | Kotlin | 0 | 0 | 271313c8ed86d920fdd67ea7b4c25ccad50d9071 | 1,691 | todos_kmp | MIT License |
src/main/kotlin/com/github/mystery2099/woodenAccentsMod/item/group/ModItemGroups.kt | Mystery2099 | 661,436,370 | false | {"Kotlin": 297671, "Java": 15842} | package com.github.mystery2099.woodenAccentsMod.item.group
import com.github.mystery2099.woodenAccentsMod.WoodenAccentsModRegistry
import net.fabricmc.fabric.api.itemgroup.v1.ItemGroupEvents
import net.minecraft.item.ItemGroup
import net.minecraft.item.ItemStack
object ModItemGroups : WoodenAccentsModRegistry {
... | 0 | Kotlin | 0 | 0 | 84d8861e52224d6cad5f8d0de95a47937bccd97a | 789 | WoodenAccentsMod | Creative Commons Zero v1.0 Universal |
Ali/src/main/java/com/example/ali/RegistroActivity.kt | julianvitor | 754,353,692 | false | {"Kotlin": 46478, "C++": 3306} |
package com.example.ali
import android.content.ContentValues
import android.database.sqlite.SQLiteDatabase
import android.os.Bundle
import android.widget.Button
import android.widget.EditText
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
class RegistroActivity : AppCompatActivity() {
... | 0 | Kotlin | 0 | 0 | e0c7e0d79ac399072c22c6fbf87749cc106c6650 | 3,609 | Empilha | MIT License |
src/lib/kotlin/slatekit-apis/src/main/kotlin/slatekit/apis/Protocol.kt | ddalex | 108,861,476 | true | {"Kotlin": 1461898, "Scala": 1124254, "Batchfile": 17450, "Shell": 3673, "HTML": 303, "CSS": 35, "JavaScript": 28} | package slatekit.apis
/**
* Used to indicate the protocol(s) allowed for the ApiContainer
* @param name
*/
abstract class Protocol(val name: String)
/**
* Used to setup an ApiContainer to allow any protocol
*/
object AllProtocols : Protocol(slatekit.apis.ApiConstants.ProtocolAny)
/**
* Used to setup an Api... | 0 | Kotlin | 0 | 0 | cd1fdcae6bf52c63249e3be894c0ddd1a391e46f | 607 | slatekit | Apache License 2.0 |
kotlinlib/test/resources/mixed-code-hello-world-kotlin/main/src/hello/KotlinHello.kt | com-lihaoyi | 107,214,500 | false | {"Scala": 1856255, "Java": 216592, "CSS": 28576, "HTML": 13489, "Kotlin": 12130, "Shell": 7956, "Batchfile": 6496, "JavaScript": 4146, "C": 245} | /*
* Copyright 2020-Present Original lefou/mill-kotlin repository contributors.
*/
package hello
val KotlinHelloString : String = "Hello from Kotlin!"
fun getHelloStringFromJava() : String {
return JavaHello.JavaHelloString!!;
} | 177 | Scala | 331 | 2,040 | 92a72111fe2d7c130c6fd233c2d9fca7d6b84ec1 | 237 | mill | MIT License |
app/src/main/java/com/cornellappdev/scoop/ui/viewmodel/PostScreenViewModel.kt | cuappdev | 453,555,762 | false | {"Kotlin": 233813} | package com.cornellappdev.scoop.ui.viewmodel
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.cornellappdev.scoop.data.models.RideRequestBody
import com.cornellappdev.scoop.data.models.stringT... | 5 | Kotlin | 0 | 1 | f98ffa565cd32e5d07d37a9807eef385d2608933 | 2,798 | scoop-android | MIT License |
lib-client/src/main/java/com/baptistecarlier/kotlin/datagouvfr/client/model/Dataset.kt | BapNesS | 393,147,318 | false | null | package com.baptistecarlier.kotlin.datagouvfr.client.model
import com.baptistecarlier.kotlin.datagouvfr.client.annotation.MissingFieldMapping
import kotlinx.datetime.LocalDateTime
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* @property acronym An optional dataset acronym
* ... | 3 | Kotlin | 0 | 2 | f4b849f1b4377c781423bc0b4afbe37fd69ed3e7 | 5,279 | kotlin-datagouvfr-client | Apache License 2.0 |
lib-client/src/main/java/com/baptistecarlier/kotlin/datagouvfr/client/model/Dataset.kt | BapNesS | 393,147,318 | false | null | package com.baptistecarlier.kotlin.datagouvfr.client.model
import com.baptistecarlier.kotlin.datagouvfr.client.annotation.MissingFieldMapping
import kotlinx.datetime.LocalDateTime
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* @property acronym An optional dataset acronym
* ... | 3 | Kotlin | 0 | 2 | f4b849f1b4377c781423bc0b4afbe37fd69ed3e7 | 5,279 | kotlin-datagouvfr-client | Apache License 2.0 |
ok-tasktracker-be-common/src/main/kotlin/com/polyakovworkbox/tasktracker/backend/common/models/general/EqualityMode.kt | otuskotlin | 377,711,514 | false | null | package com.polyakovworkbox.tasktracker.backend.common.models.general
enum class EqualityMode {
NONE, LESS_THAN, MORE_THAN, EQUALS
} | 0 | Kotlin | 1 | 1 | 4ca55a569558ce9950c087bb299b17f667ac7cef | 137 | ok-202105-tasktracker-dp | MIT License |
src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FanControlCluster.kt | nrfconnect | 319,609,059 | false | {"C++": 23521097, "Java": 4933921, "Python": 3695626, "C": 2258687, "Kotlin": 1567297, "Objective-C": 1368441, "ZAP": 814351, "Objective-C++": 756316, "Shell": 291692, "CMake": 177064, "Jinja": 103624, "Dockerfile": 70720, "Swift": 30181, "JavaScript": 2379, "Emacs Lisp": 1042, "Tcl": 311} | /*
*
* Copyright (c) 2023 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | 5 | C++ | 53 | 44 | 70be330c014ae2067be1f641b365c19c2a6e4680 | 9,945 | sdk-connectedhomeip | Apache License 2.0 |
app/src/main/java/com/aposiamp/smartliving/data/source/remote/FirebaseDataSource.kt | ApostolisSiampanis | 783,913,411 | false | {"Kotlin": 490999} | package com.aposiamp.smartliving.data.source.remote
import com.aposiamp.smartliving.data.model.DeviceDataDTO
import com.aposiamp.smartliving.data.model.RoomDataDTO
import com.aposiamp.smartliving.data.model.SpaceDataDTO
import com.aposiamp.smartliving.data.utils.await
import com.aposiamp.smartliving.domain.model.Devic... | 0 | Kotlin | 0 | 3 | 8184e402e0121dba16a08675395184bd5413f20f | 4,709 | Smart_Living | MIT License |
materialchecklist/src/main/java/com/dvdb/materialchecklist/recycler/adapter/ChecklistItemAdapter.kt | DamianvdB | 250,746,414 | false | null | /*
* Designed and developed by <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 agr... | 1 | Kotlin | 2 | 13 | 1af2c39326240f0b5f66305d0e2f0758721a41df | 5,345 | MaterialChecklist | Apache License 2.0 |
app/src/main/java/com/lubosoft/smsforwarder/data/room/DayOfWeek.kt | lbobowiec | 201,331,114 | false | null | package com.lubosoft.smsforwarder.data.room
enum class DayOfWeek {
MONDAY,
TUESDAY,
WEDNESDAY,
THURSDAY,
FRIDAY,
SATURDAY,
SUNDAY;
val value: Int
get() = ordinal + 1
companion object {
private val ENUMS = values()
fun of(dayOfWeek: Int): DayOfWeek {
... | 0 | Kotlin | 0 | 0 | 947975c8b1d42c15e01b2b936e47042169472195 | 517 | SmsForwarder | MIT License |
src/main/kotlin/be/duncanc/discordmodbot/bot/commands/Help.kt | DuncanCasteleyn | 98,295,422 | false | null | /*
* Copyright 2018 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 9 | null | 3 | 2 | 0e7ccdbe9531a837c8c230be6a941e81fe6a7d5c | 2,981 | DiscordModBot | Apache License 2.0 |
core/src/commonMain/kotlin/com/narbase/kunafa/core/components/Views.kt | Narbase | 109,277,609 | false | null | package com.narbase.kunafa.core.components
expect class Anchor : View
expect class Button : View
expect class Checkbox : View
expect class Form : View
expect class FieldSet : View
expect class Legend : View
expect class ImageView : View
expect class Radio : View
expect class Table : View
expect class TableBody : View
... | 8 | Kotlin | 6 | 163 | ed8e27eece602862681f61338cc07b677c598104 | 648 | Kunafa | MIT License |
android/src/main/java/io/adapty/react/ui/RNAViewable.kt | adaptyteam | 648,630,841 | false | null | package io.adapty.react.ui
data class RNAViewable<T>(
val payload: T?,
val _view_id: String
) {}
| 0 | TypeScript | 0 | 22 | a4e30581a0b3782cf4e2bb984c9966c0b25f35c7 | 106 | AdaptyUI-React-Native | MIT License |
app/src/main/java/dev/borisochieng/gitrack/ui/fragments/RepositoryIssuesFragment.kt | slowburn-404 | 777,819,284 | false | {"Kotlin": 42832} | package dev.borisochieng.gitrack.ui.fragments
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.findNavController
import androidx.navigation... | 0 | Kotlin | 0 | 0 | c666d7637242a7f88de343914dcb46f6656c0988 | 3,350 | GiTrack | MIT License |
ggraphql-plugin/src/main/kotlin/uk/co/lucidsource/ggraphql/util/GraphQLTypeAspects.kt | lucidsource-uk | 755,554,093 | false | {"Kotlin": 71232} | package uk.co.lucidsource.ggraphql.util
import graphql.language.Argument
import graphql.language.Directive
import graphql.language.FieldDefinition
import graphql.language.InputObjectTypeDefinition
import graphql.language.ObjectTypeDefinition
import graphql.language.StringValue
import graphql.language.Type
object Grap... | 0 | Kotlin | 0 | 0 | 6c9fdf2fec84b787c761c491c7665a5bb67e8727 | 2,592 | ggraphql | MIT License |
app-analyzer-core/src/main/java/com/alexlytvynenko/appanalyzer/internal/entity/RequestEntityParser.kt | alexlytvynenko | 118,427,709 | false | null | package com.alexlytvynenko.appanalyzer.internal.entity
import com.alexlytvynenko.appanalyzer.internal.AppAnalyzerInternal
import org.jetbrains.anko.db.RowParser
/**
* Created by alex_litvinenko on 11.10.17.
*/
internal class RequestEntityParser : RowParser<RequestEntity> {
override fun parseRow(columns: Array<A... | 0 | Kotlin | 0 | 2 | 2b58ed7c05ebf3e37a3ce79c2972e9f1800e7830 | 989 | appAnalyzer | Apache License 2.0 |
app/src/main/java/com/example/galleryapp_compose/ui/camera/CameraConfig.kt | PauloSzT | 642,027,877 | false | null | package com.example.galleryapp_compose.ui.camera
import android.net.Uri
import androidx.camera.core.CameraSelector
import androidx.camera.core.ImageCapture
import androidx.camera.core.ImageCaptureException
import androidx.camera.core.Preview
import androidx.camera.lifecycle.ProcessCameraProvider
import androidx.camera... | 0 | Kotlin | 0 | 0 | ff0020fd13ce6382ebeae42afefb475c4fde4e23 | 2,105 | GalleryApp_compose_navigation | MIT License |
backend/api/src/main/kotlin/io/tolgee/api/v2/controllers/BusinessEventController.kt | tolgee | 303,766,501 | false | null | package io.tolgee.api.v2.controllers
import io.sentry.Sentry
import io.swagger.v3.oas.annotations.Operation
import io.swagger.v3.oas.annotations.tags.Tag
import io.tolgee.component.reporting.BusinessEventPublisher
import io.tolgee.dtos.request.BusinessEventReportRequest
import io.tolgee.dtos.request.IdentifyRequest
im... | 170 | null | 85 | 1,837 | 6e01eec3a19c151a6e0aca49e187e2d0deef3082 | 2,159 | tolgee-platform | Apache License 2.0 |
lib/src/main/kotlin/com/lemonappdev/konsist/api/provider/KoPrimaryConstructorProvider.kt | LemonAppDev | 621,181,534 | false | {"Kotlin": 4854719, "Python": 17926} | package com.lemonappdev.konsist.api.provider
import com.lemonappdev.konsist.api.declaration.KoPrimaryConstructorDeclaration
/**
* An interface representing a Kotlin declaration that provides access to its primary constructor.
*/
interface KoPrimaryConstructorProvider : KoBaseProvider {
/**
* The parent int... | 5 | Kotlin | 26 | 995 | 603d19e179f59445c5f4707c1528a438e4595136 | 539 | konsist | Apache License 2.0 |
src/jsMain/kotlin/AddDeskItem.kt | gvbl | 596,753,383 | false | {"Kotlin": 165187, "CSS": 613, "Dockerfile": 317} | import csstype.*
import emotion.react.css
import kotlinx.coroutines.MainScope
import kotlinx.coroutines.launch
import react.FC
import react.Props
import react.dom.html.ButtonType
import react.dom.html.ReactHTML.button
import react.dom.html.ReactHTML.div
import react.dom.html.ReactHTML.figure
import react.dom.html.React... | 0 | Kotlin | 0 | 0 | 3626d3eb80a34e2230035fa93f3e591e62555306 | 1,980 | otc | MIT License |
core/src/commonTest/kotlin/dev/kryptonreborn/blockfrost/unittest/ipfs/model/PinnedObjectTest.kt | KryptonReborn | 803,884,694 | false | {"Kotlin": 608832, "Swift": 594, "HTML": 323} | package dev.kryptonreborn.blockfrost.unittest.ipfs.model
import dev.kryptonreborn.blockfrost.TestKtorClient.resourceToExpectedData
import dev.kryptonreborn.blockfrost.ipfs.model.ObjectState
import dev.kryptonreborn.blockfrost.ipfs.model.PinnedObject
import kotlin.test.Test
import kotlin.test.assertEquals
class Pinned... | 0 | Kotlin | 1 | 1 | f04fa182b1599042702f6ab36047c9a1826d4522 | 654 | blockfrost-kotlin-sdk | Apache License 2.0 |
app/src/main/java/com/example/project_auction/view/bottomsheet/BottomSheetSetCloseProduct.kt | 4538cgy | 376,812,255 | false | null | package com.example.project_auction.view.bottomsheet
import android.content.Context
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.DialogFragment
import a... | 1 | Kotlin | 1 | 0 | ca8352892909aa1516098fbd859705a11630dcdc | 2,623 | ProjectAuction | Apache License 2.0 |
core-designsystem/src/main/java/com/ddd/carssok/core/designsystem/Typo.kt | DDD-Community | 566,191,080 | false | null | package com.ddd.carssok.core.designsystem
import androidx.compose.ui.text.font.FontWeight
enum class TypoStyle(val textSize: Int, val fontWeight: FontWeight) {
DISPLAY_X_LARGE_44(44, FontWeight.Bold),
DISPLAY_LARGE_32(32, FontWeight.Bold),
DISPLAY_MEDIUM_28(28, FontWeight.Bold),
DISPLAY_SMALL_24(24, F... | 7 | Kotlin | 0 | 0 | 03e80f26a4c4f7e2cbb2992e05e4800253441ea0 | 691 | 28.8-Android | Apache License 2.0 |
app/src/main/java/com/example/trendingtimes/ui/activity/SignUpActivity.kt | adityarai004 | 671,452,116 | false | {"Kotlin": 142912} | package com.example.trendingtimes.ui.activity
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.ImageView
import android.widget.RadioButton
import android.widget.TextView
import android.widget.Toast
import androidx.activ... | 0 | Kotlin | 0 | 1 | 90b2b3f7330fd5368739d55c049760fdfeb4c76b | 9,776 | TrendingTimes | MIT License |
build-logic/convention/src/main/java/com/msg/convention/AndroidHiltConventionPlugin.kt | GSM-MSG | 700,744,250 | false | null | package com.msg.convention
import com.msg.convention.bitgoeul.libs
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.dependencies
class AndroidHiltConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
with(target) {
with(pluginManager)... | 6 | null | 1 | 9 | cbed38f3d2ce2c05385f89d42faf4151278956d6 | 807 | Bitgoeul-Android | MIT License |
openrndr-math/src/test/kotlin/org/openrndr/math/TestVector3.kt | kles4enko | 326,693,046 | true | {"Kotlin": 1452244, "Java": 760295, "ANTLR": 9333, "CSS": 4706, "GLSL": 1846, "Shell": 548} | package org.openrndr.math
import org.spekframework.spek2.Spek
import org.spekframework.spek2.style.specification.describe
object TestVector3 : Spek({
val maxError = 0.0000001
describe("Vector3 Operations") {
it("should normalize 0 length") {
Vector3.ZERO.normalized.closeTo(Vector3.ZERO,... | 0 | null | 0 | 0 | 77ecfaef55c8367480971e6c6b4ec706bc705f47 | 1,064 | openrndr | BSD 2-Clause FreeBSD License |
mutations-demo/src/main/kotlin/SchemaAccessors.kt | gradle | 776,920,728 | false | {"Kotlin": 156389, "Java": 4576} | package org.gradle.client.demo.mutations
import org.gradle.declarative.dsl.schema.AnalysisSchema
import org.gradle.declarative.dsl.schema.DataClass
fun AnalysisSchema.hasAndroidPrototype(): Boolean =
dataClassesByFqName.keys.any { it.qualifiedName == "org.gradle.api.experimental.android.AndroidSoftware" }
val An... | 3 | Kotlin | 0 | 8 | 1e1e1f4d07e3b1ea061c56623e9cf38396ef5b70 | 1,115 | gradle-client | Apache License 2.0 |
src/me/anno/fonts/mesh/TextRepBase.kt | AntonioNoack | 456,513,348 | false | {"Kotlin": 9748753, "C": 236481, "GLSL": 9454, "Java": 6888, "Lua": 4404} | package me.anno.fonts.mesh
import me.anno.cache.ICacheData
import me.anno.ecs.components.mesh.Mesh
import me.anno.fonts.signeddistfields.TextSDF
abstract class TextRepBase : ICacheData {
var minX = Float.POSITIVE_INFINITY
var minY = Float.POSITIVE_INFINITY
var maxX = Float.NEGATIVE_INFINITY
var maxY =... | 0 | Kotlin | 3 | 17 | adca85186e6781391fd2dca12067ef062d22cba4 | 543 | RemsEngine | Apache License 2.0 |
genesis-standard/src/main/kotlin/com/github/kennarddh/mindustry/genesis/standard/handlers/commands/CommandsHandler.kt | kennarddh-mindustry | 727,669,980 | false | {"Kotlin": 127849, "Dockerfile": 256} | package com.github.kennarddh.mindustry.genesis.standard.handlers.commands
import com.github.kennarddh.mindustry.genesis.core.GenesisAPI
import com.github.kennarddh.mindustry.genesis.core.handlers.Handler
import com.github.kennarddh.mindustry.genesis.standard.commands.parameters.types.*
import com.github.kennarddh.mind... | 0 | Kotlin | 0 | 1 | d425871eff70cc043d81678a2fe2ecd89ffdd4b7 | 4,436 | genesis | MIT License |
src/main/kotlin/jmantello/secretrecipeapi/exception/Exceptions.kt | jm-multiverse | 642,580,018 | false | {"Kotlin": 115110, "JavaScript": 5216, "Dockerfile": 375} | package jmantello.secretrecipeapi.exception
open class ResourceNotFoundException(message: String) : RuntimeException(message)
class UserNotFoundException(message: String) : ResourceNotFoundException(message)
class InvalidJwtException(message: String) : RuntimeException(message) | 2 | Kotlin | 0 | 0 | e3777b4f5acaed45f9e163200dce9412e33c5e98 | 279 | secret-recipe | curl License |
app/src/androidTest/java/com/noyanov/usetech_test/UITestSuite.kt | noyanov | 510,501,745 | false | {"Kotlin": 76215} | package com.noyanov.usetech_test
import org.junit.runner.RunWith
import org.junit.runners.Suite
@RunWith(Suite::class)
@Suite.SuiteClasses(
MainActivityTest::class,
FindBookActivityTest::class,
BookDetailsActivityTest::class
)
class UITestSuite
| 0 | Kotlin | 0 | 0 | 4087b86af255da18f50ee4e52709a4ab8e693640 | 259 | usetech_test | MIT License |
src/main/kotlin/com/fabien/invoiceExtraction/mindee/Errors.kt | Fabien-R | 604,586,598 | false | null | package com.fabien.invoiceExtraction.mindee
import arrow.core.Either
import com.fabien.*
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.response.*
import io.ktor.util.pipeline.*
context(PipelineContext<Unit, ApplicationCall>)
suspend inline fun <reified A : Any> Either<InvoiceExtracti... | 3 | Kotlin | 0 | 0 | bfc52f44a63510a92ef709dc39b1205ee59422b1 | 824 | kotlin-playground | MIT License |
app/src/main/java/com/erif/snacking/helper/ScrollAwareBehavior.kt | eriffanani | 605,487,718 | false | {"Java": 57013, "Kotlin": 20349} | package com.erif.snacking.helper
import android.animation.Animator
import android.animation.AnimatorListenerAdapter
import android.animation.TimeInterpolator
import android.annotation.SuppressLint
import android.content.Context
import android.util.AttributeSet
import android.util.Log
import android.view.View
import an... | 1 | null | 1 | 1 | 67012cc5dfc55fc601f04ce4b201ba3c625e0a23 | 6,899 | Snacking2 | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.