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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
androidApp/features/issue/src/main/java/com/star_zero/dagashi/features/issue/IssueNavDestination.kt | STAR-ZERO | 294,861,954 | false | null | package com.star_zero.dagashi.features.issue
import androidx.navigation.NavController
import androidx.navigation.NavType
import androidx.navigation.navArgument
import com.star_zero.dagashi.core.ui.DagashiNavDestination
import com.star_zero.dagashi.shared.model.Milestone
object IssueNavDestination : DagashiNavDestinat... | 21 | Kotlin | 2 | 34 | c8244a09235cb898f2392c56ed8931efe518e424 | 1,560 | DagashiApp | Apache License 2.0 |
core/src/main/java/com/fightpandemics/core/data/repository/LoginRepositoryImpl.kt | anurjalal | 331,179,525 | true | {"Kotlin": 248043, "Ruby": 6476, "Shell": 116} | package com.fightpandemics.core.data.repository
import com.fightpandemics.core.data.local.AuthTokenLocalDataSource
import com.fightpandemics.core.data.model.login.*
import com.fightpandemics.core.data.remote.login.LoginRemoteDataSource
import com.fightpandemics.core.domain.repository.LoginRepository
import com.fightpa... | 0 | Kotlin | 0 | 0 | daf8075f37fee04a3685577b09d99db28328daf9 | 5,078 | FightPandemics-android | MIT License |
04-classes-objects/src/main/kotlin/classes.kt | iproduct | 277,474,020 | false | {"JavaScript": 3237497, "Kotlin": 545267, "Java": 110766, "HTML": 83688, "CSS": 44893, "SCSS": 32196, "Dockerfile": 58} | package course.kotlin
import oracle.jrockit.jfr.openmbean.ProducerDescriptorType
import javax.inject.Inject
class Person { /*...*/ }
class Empty
class Person2 constructor(firstName: String) { /*...*/ }
class Person3(firstName: String) { /*...*/ }
class InitOrderDemo(name: String) {
val firstProperty = "First ... | 0 | JavaScript | 1 | 4 | 89884f8c29fffe6c6f0384a49ae8768c8e7ab509 | 3,545 | course-kotlin | Apache License 2.0 |
app/src/main/kotlin/codes/chrishorner/socketweather/data/NetworkComponents.kt | chris-horner | 229,036,471 | false | null | package codes.chrishorner.socketweather.data
interface NetworkComponents {
val api: WeatherApi
/**
* Listen for fundamental changes in environment config.
* (Like changing between mock and real endpoints in debug builds).
*/
fun addEnvironmentChangeAction(action: () -> Unit)
}
| 5 | Kotlin | 10 | 91 | 8de593bbe29a0bdb86a1ec69d3889ea3c5eb8c14 | 296 | SocketWeather | Apache License 2.0 |
app/src/main/java/com/prembros/facilis/implementation/SelectionActivity.kt | premacck | 144,760,443 | false | null | package com.prembros.facilis.implementation
import android.os.Bundle
import com.prembros.facilis.activity.BaseCardActivity
import com.prembros.facilis.blurpopup.SampleBlurPopup
import com.prembros.facilis.cardwithlist.CardWithListFragment
import com.prembros.facilis.dialog.*
import com.prembros.facilis.listofcards.Lis... | 0 | Kotlin | 5 | 35 | 83b3f1fcba97f4305ba852985b76d932df0d97da | 1,983 | facilis | MIT License |
src/main/kotlin/cn/net/nikai/kotlint/demo1/util/FunctionUse.kt | nikai1006 | 133,214,620 | false | {"Gradle": 2, "INI": 1, "Text": 1, "Ignore List": 1, "Markdown": 1, "Java": 1, "Kotlin": 17} | package cn.net.nikai.kotlint.demo1.util
import cn.net.nikai.kotlint.demo1.index
fun main(args: Array<String>) {
println(index("bye,my baby!",","))
} | 1 | null | 1 | 1 | 33e56f3803335a58fe98fb8e5f9d73313cc45b09 | 154 | gradle_kotlin | Apache License 2.0 |
module/parser/src/commonTest/kotlin/org/cru/godtools/tool/model/ColorTest.kt | CruGlobal | 310,338,913 | false | {"Kotlin": 466219, "ANTLR": 1330, "Ruby": 58} | package org.cru.godtools.shared.tool.parser.model
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertNull
class ColorTest {
@Test
fun testParseColor() {
assertEquals(TestColors.RED, "rgba(255,0,0,1)".toColorOrNull())
assertEquals(TestColors.GREEN, "rgba(0,255,0,1)... | 8 | Kotlin | 1 | 0 | 0c87adc329e2bebeeebe2651a98071bc6896e3d5 | 1,651 | kotlin-mpp-godtools-tool-parser | MIT License |
EcoSwapAndroid/src/main/java/com/darrenthiores/ecoswap/android/presentation/sustainability/SustainabilityScreen.kt | darrenthiores | 688,372,873 | false | {"Kotlin": 770054, "Swift": 362583} | package com.darrenthiores.ecoswap.android.presentation.sustainability
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.... | 0 | Kotlin | 0 | 0 | 6da03175466a0458ba4a28392f7371f8a429d4cf | 4,659 | EcoSwap | MIT License |
client/app/src/main/java/com/example/healthc/data/remote/api/SearchFoodService.kt | Solution-Challenge-HealthC | 601,915,784 | false | null | package com.example.healthc.data.remote.api
import com.example.healthc.BuildConfig
import com.example.healthc.data.dto.food.ingredient.SearchFoodIngredientDto
import com.example.healthc.data.dto.food.object_detect.SearchFoodCategoryDto
import com.example.healthc.data.dto.food.product.SearchProductIdDto
import com.exam... | 4 | Kotlin | 1 | 2 | d74bff575502c4360e9735e8d558b907240ed4fe | 2,286 | HealthC_Android | MIT License |
app/src/main/java/com/company/swiftchatsupportlibrary/MainActivity.kt | KoderLabs | 300,534,855 | false | null | package com.company.swiftchatsupportlibrary
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.Button
import com.swift.chat.library.SwiftChatActivity
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(s... | 1 | null | 1 | 1 | 25e4dde54d7a96b5ed8dc2decae50aa1ac046bea | 510 | swiftsales-android-sdk | MIT License |
connectors-gdax/src/main/kotlin/fund/cyber/markets/connectors/gdax/connector/GdaxMessageParser.kt | zetayue | 123,229,092 | true | {"Kotlin": 142170, "JavaScript": 15976, "HTML": 6781, "Shell": 464} | package fund.cyber.markets.connectors.gdax.connector
import com.fasterxml.jackson.databind.JsonNode
import fund.cyber.markets.connectors.common.ContainingUnknownTokensPairMessage
import fund.cyber.markets.connectors.common.ExchangeMessage
import fund.cyber.markets.connectors.common.OrdersUpdateType
import fund.cyber.m... | 0 | Kotlin | 0 | 0 | 5ec8086ab33b1d44a4280cecda461de86966982a | 6,452 | cyber-markets | MIT License |
app/app/src/main/java/ir/paadino/scheduling/ui/picker/TimePickerFragment.kt | the-this-pointer | 805,291,931 | false | {"Kotlin": 27219, "Java": 27202, "Lua": 20035} | package ir.paadino.scheduling.ui.picker
import android.app.Dialog
import android.app.TimePickerDialog
import android.os.Bundle
import android.text.format.DateFormat
import android.widget.TimePicker
import androidx.fragment.app.DialogFragment
import java.util.*
class TimePickerFragment: DialogFragment(), TimePickerDia... | 0 | Kotlin | 0 | 0 | bbed16d9d202e475be43b8eeca1b5e3e73b6a1f8 | 868 | timer-board-esp8266-v1 | MIT License |
src/main/kotlin/dev/toastmc/toastclient/api/util/render/DrawableUtil.kt | RemainingToast | 330,479,309 | false | null | package dev.toastmc.toastclient.api.util.render
import dev.toastmc.toastclient.api.util.ToastColor
import dev.toastmc.toastclient.api.util.lit
import net.minecraft.client.util.math.MatrixStack
import java.awt.Rectangle
object DrawableUtil : DrawableExtensions {
fun drawRect(matrices: MatrixStack, rect: Rectangle... | 1 | null | 15 | 26 | 5f7b86676fcea6bbee57e6a2caa8a7c87fe01e70 | 1,815 | ToastClient | MIT License |
app/src/main/java/dagger2/recipes/multibinding/di/activity/ActivityScope.kt | aldoborrero | 77,408,537 | false | null | package dagger2.recipes.multibinding.di.activity
import javax.inject.Scope
@Scope
annotation class ActivityScope
| 0 | Kotlin | 0 | 14 | 6fc9d6f9ae8525c65892af413928a7d1372605b8 | 115 | Dagger2MultibindingKotlin | Apache License 2.0 |
app/src/main/java/com/codepath/bestsellerlistapp/BestSellerBook.kt | mm2623 | 604,434,355 | false | null | package com.codepath.bestsellerlistapp
import com.google.gson.annotations.SerializedName
import android.support.annotation.Keep
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* The Model for storing a single book from the NY Times API
*
* SerializedName tags MUST match the J... | 1 | Kotlin | 0 | 0 | 8b5034a0792f36bd499fa8429c16d4261bad345a | 1,141 | Flixster-Plus-Part-2 | Apache License 2.0 |
protocol/src/main/resources/kotlin/ProtocolRegistrationTemplate.kt | zfoo-project | 368,807,271 | false | {"Java": 3652398, "JavaScript": 1383136, "C#": 723491, "TypeScript": 692771, "Ruby": 598749, "Scala": 584832, "GDScript": 573704, "Python": 558193, "Dart": 552953, "Lua": 117632, "C++": 114345, "Kotlin": 105570, "Rust": 87054, "PHP": 68941, "Swift": 68496, "Go": 64286, "Shell": 14014, "Hack": 881, "CMake": 511} | class ${protocol_name}Registration : IProtocolRegistration {
override fun protocolId(): Short {
return ${protocol_id}
}
override fun write(buffer: ByteBuffer, packet: Any?) {
if (packet == null) {
buffer.writeInt(0)
return
}
val message = packet as ${... | 20 | Java | 400 | 1,814 | a26547586fd7bae65c70694edde300f818d0c361 | 787 | zfoo | Apache License 2.0 |
app/src/main/java/com/example/matchmentor/model/UserProfile.kt | RodrigoJrDev | 795,927,508 | false | {"Kotlin": 80720} | package com.example.matchmentor.model
import androidx.room.Entity
import com.google.gson.annotations.SerializedName
@Entity(tableName = "usuarios")
data class UserProfile(
@SerializedName("nome") val name: String,
@SerializedName("sobrenome") val lastName: String,
@SerializedName("idade") val age: Int?,
... | 0 | Kotlin | 0 | 0 | 424b3963b6e230f40d29a6e42bb7f0cf501c842c | 697 | MatchTech | MIT License |
app/src/main/java/edu/uwp/appfactory/rusd/ui/notifications/NotificationsSectionsAdapter.kt | jervan | 117,732,969 | false | null | package edu.uwp.appfactory.rusd.ui.notifications
import android.databinding.DataBindingUtil
import android.view.LayoutInflater
import android.view.ViewGroup
import com.android.databinding.library.baseAdapters.BR
import edu.uwp.appfactory.rusd.R
import edu.uwp.appfactory.rusd.data.model.Notification
import edu.uwp.appf... | 0 | Kotlin | 0 | 0 | 6cc24da4b3e18a7104d994d205cbba2281b19876 | 3,166 | rusd-android | MIT License |
app/src/main/java/com/breezefsmaddischemicocorporation/features/leaveapplynew/ClickonStatus.kt | DebashisINT | 641,390,752 | false | null | package com.breezefsmaddischemicocorporation.features.leaveapplynew
import com.breezefsmaddischemicocorporation.features.addAttendence.model.Leave_list_Response
interface ClickonStatus {
fun OnApprovedclick(obj: Leave_list_Response)
fun OnRejectclick(obj: Leave_list_Response)
} | 0 | Kotlin | 0 | 0 | 6260e8fa18b665a7a64810e5c7ebcf5e1a3ce106 | 289 | AddisChemicoCorporation | Apache License 2.0 |
src/main/kotlin/no/nav/bidrag/reskontro/dto/consumer/ReskontroConsumerOutput.kt | navikt | 706,010,925 | false | {"Kotlin": 65196, "Dockerfile": 235} | package no.nav.bidrag.reskontro.dto.consumer
import java.math.BigDecimal
data class ReskontroConsumerOutput(
val innParametre: ReskontroConsumerInput,
val skyldner: Skyldner? = null,
val bidragssak: Bidragssak? = null,
val transaksjoner: List<Transaksjon>? = null,
val retur: Retur? = null,
val... | 0 | Kotlin | 0 | 0 | d5dba1c0e6f31ae0acaf1eb7de3282e4e94ee485 | 3,012 | bidrag-reskontro | MIT License |
01_android/app/src/main/java/com/example/myapplication/EUsuarioBDD.kt | 2021-b-aplicaciones-moviles-computacion | 427,369,154 | false | {"Kotlin": 105010} | package com.example.myapplication
class EUsuarioBDD(
var id:Int,
var nombre: String,
var descripcion: String
){
} | 0 | Kotlin | 0 | 0 | 226ace88d2db3647dc7e52da4dd2915de706f4a8 | 126 | movcom-jimenez-reino-sergio-andres | MIT License |
miniapp/src/main/java/com/rakuten/tech/mobile/miniapp/display/Displayer.kt | dineshkv | 254,309,891 | true | {"Kotlin": 100898} | package com.rakuten.tech.mobile.miniapp.display
import android.content.Context
import com.rakuten.tech.mobile.miniapp.MiniAppDisplay
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
internal class Displayer(private val context: Context) {
suspend fun createMiniAppDisplay(basePath: Stri... | 0 | null | 0 | 0 | d445176f4cc5823f65b30f2fe49e4307e25dd5d5 | 511 | android-miniapp | MIT License |
bbfgradle/tmp/results/diffABI/dihoysb_FILE.kt | DaniilStepanov | 346,008,310 | false | null | // Bug happens on JVM , JVM -Xuse-ir
// FILE: tmp0.kt
import kotlin.reflect.*
import kotlin.collections.*
import kotlin.sequences.*
fun String.foo() : String =TODO()
fun box() : String =TODO()
internal interface Idd <T, S> : Comparator<ULong>, MutableMap<Byte, Collection<Char>>{
override val size: kotlin.Int
o... | 1 | null | 1 | 1 | e772ef1f8f951873ebe7d8f6d73cf19aead480fa | 854 | kotlinWithFuzzer | Apache License 2.0 |
app/src/main/java/com/example/jetpack_compose_all_in_one/third_party_lib/chat_gpt/remote/NetworkResult.kt | myofficework000 | 626,474,700 | false | {"Kotlin": 1392414} | package com.example.jetpack_compose_all_in_one.third_party_lib.chat_gpt.remote
sealed class NetworkResult<T: Any>{
data class Success<T: Any>(val data: T?): NetworkResult<T>()
data class Error<T: Any>(val code: Int, val mess: String?): NetworkResult<T>()
data class Exception<T: Any>(val e: Throwable): Netw... | 21 | Kotlin | 22 | 222 | 4de5418608d6917b5c97fac7d868454c424daa26 | 383 | Jetpack-Compose-All-in-one-Guide | MIT License |
PlaitPlugin/asm/src/main/java/com/ckenergy/trace/PlaintMachineTransform.kt | ckenergy | 497,486,366 | false | null | package com.ckenergy.trace
import com.android.build.api.transform.*
import com.android.build.gradle.internal.pipeline.TransformManager
import com.android.utils.FileUtils
import com.ckenergy.trace.extension.PlaitExtension
import com.ckenergy.trace.extension.PlaitMethodList
import com.ckenergy.trace.extension.PlaintConf... | 0 | Kotlin | 0 | 4 | 6f0cd5926b6a6b4b74b483e02559f0263ccbdf25 | 16,107 | PlaitMachine | Apache License 2.0 |
platforms/forge-1.18.2/src/main/java/org/anti_ad/mc/ipnext/debug/GenerateTagVanillaTxtButtonInfoDelegate.kt | blackd | 351,481,591 | false | null | package org.anti_ad.mc.ipnext.debug
import net.minecraft.core.HolderSet
import net.minecraftforge.registries.ForgeRegistries
import org.anti_ad.mc.common.Log
import org.anti_ad.mc.common.TellPlayer
import org.anti_ad.mc.common.extensions.div
import org.anti_ad.mc.common.extensions.name
import org.anti_ad.mc.common.gui... | 12 | Kotlin | 12 | 47 | d8ff23dd59d58b22b4dc1684f081b7139a0dd42e | 2,803 | Inventory-Profiles | MIT License |
app/src/main/java/com/example/androiddevchallenge/ui/screen/Home.kt | patxibocos | 347,321,437 | false | null | /*
* Copyright 2021 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 | b89d3904918c5d57fa5615d5a02d603cfd9866c8 | 6,445 | android-dev-challenge-compose-week-3 | Apache License 2.0 |
app/src/main/java/com/g/pocketmal/ui/utils/CollapseAnimator.kt | glodanif | 847,288,195 | false | {"Kotlin": 517413, "Java": 112995} | package com.g.pocketmal.ui.utils
import android.app.Activity
import android.view.View
import android.view.animation.Animation
import android.view.animation.Transformation
import android.widget.LinearLayout
object CollapseAnimator {
fun expandView(activity: Activity, animatedView: View, onExpanded: (() -> Unit)? ... | 0 | Kotlin | 1 | 8 | 1a7fe52c2dc59dd3bf4eaeb3d9bb64d469e10845 | 2,189 | Pocket_MAL | MIT License |
luak/src/commonMain/kotlin/org/luaj/vm2/ast/ParList.kt | korlibs | 595,720,892 | false | null | /*******************************************************************************
* Copyright (c) 2010 Luaj.org. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software wit... | 2 | null | 5 | 9 | c3257906b473bb1cd2b2aa12e0c045b4df68851a | 1,585 | korge-luak | MIT License |
app/src/main/java/com/example/jetphotos/data/dto/SearchResult.kt | arfinhosainn | 529,504,086 | false | null | package com.example.jetphotos.data.dto
data class SearchResult(
val results: List<Unsplash>
)
| 0 | Kotlin | 0 | 0 | f156ca366a255322fabf5e0ec8c600691236d333 | 99 | JetPhotos | Apache License 2.0 |
rulebook-codenarc/src/test/kotlin/com/hanggrian/rulebook/codenarc/VariableNameDisallowingRuleTest.kt | hanggrian | 556,969,715 | false | {"Kotlin": 303482, "Python": 79976, "Java": 19336, "CSS": 1653, "Groovy": 321} | package com.hanggrian.rulebook.codenarc
import com.google.common.truth.Truth.assertThat
import com.hanggrian.rulebook.codenarc.VariableNameDisallowingRule.Companion.MSG
import com.hanggrian.rulebook.codenarc.internals.Messages
import org.codenarc.rule.AbstractRuleTestCase
import kotlin.test.Test
import kotlin.test.ass... | 0 | Kotlin | 0 | 1 | 94a3a554563534ace2c06ea48f872bd096d5db82 | 1,271 | rulebook | Apache License 2.0 |
tests/aockt/y2022/Y2022D09Test.kt | Jadarma | 624,153,848 | false | {"Kotlin": 372823} | package aockt.y2022
import io.github.jadarma.aockt.test.AdventDay
import io.github.jadarma.aockt.test.AdventSpec
@AdventDay(2022, 9, "Rope Bridge")
class Y2022D09Test : AdventSpec<Y2022D09>({
partOne {
val exampleInput = """
R 4
U 4
L 3
D 1
R 4
... | 0 | Kotlin | 0 | 3 | 3cb11ebf18c4c7d31057da96482b85c14c92ca67 | 685 | advent-of-code-kotlin-solutions | The Unlicense |
src/main/kotlin/com/geogrind/geogrindbackend/exceptions/sessions/SessionConflictException.kt | GeoGrind | 703,185,030 | false | {"Kotlin": 275271, "Shell": 2624, "HTML": 1687, "Dockerfile": 488} | package com.geogrind.geogrindbackend.exceptions.sessions
class SessionConflictException(userAccountId: String) : RuntimeException("User with $userAccountId already has a current session!") | 14 | Kotlin | 0 | 2 | c0387735b3795aff0bd7e406117cccb03baecc8c | 189 | GeoGrind-Backend | Apache License 2.0 |
app/src/main/java/com/example/notably/ui/archive/ArchiveFragment.kt | hieuna20168192 | 430,419,748 | false | null | package com.example.notably.ui.archive
import android.os.Bundle
import androidx.core.view.isGone
import androidx.fragment.app.activityViewModels
import androidx.fragment.app.viewModels
import androidx.recyclerview.widget.LinearLayoutManager
import com.example.notably.R
import com.example.notably.adapter.ArchiveNotesAd... | 0 | Kotlin | 0 | 0 | 42c0131123c2ca30a27468ba639d53bf29b274ed | 2,529 | Notably | Apache License 2.0 |
src/main/java/files/AbstractFile.kt | Acrylic125 | 306,867,175 | false | null | package files
import com.fasterxml.jackson.databind.ObjectMapper
import files.editor.DefaultFileEditor
import files.editor.FileEditor
import java.io.File
import java.io.IOException
import java.util.logging.Level
import java.util.logging.Logger
abstract class AbstractFile(path: String, private val mapper: ObjectMapper... | 0 | Kotlin | 0 | 0 | 1319a81d4c4bd5ea64414ad662539e1154776fa2 | 1,378 | AcrylicLib | MIT License |
app/src/main/java/com/breezeisabgolfsm/features/marketing/api/marketingresponse/GetMarketingDetailsRepo.kt | DebashisINT | 764,494,737 | false | {"Kotlin": 14193578, "Java": 1003903} | package com.breezeisabgolfsm.features.marketing.api.marketingresponse
import com.breezeisabgolfsm.features.marketing.model.GetMarketingDetailsResponse
import io.reactivex.Observable
/**
* Created by Pratishruti on 28-02-2018.
*/
class GetMarketingDetailsRepo(val apiService: GetMarketingDetailsApi) {
fun getMark... | 0 | Kotlin | 0 | 0 | ad2738b0b422111993af86ef236826c9c679abda | 477 | SatIsabgol | Apache License 2.0 |
app/src/main/java/io/github/lee0701/mboard/module/inputengine/DirectInputEngine.kt | Lee0701 | 501,429,969 | false | null | package io.github.lee0701.mboard.module.inputengine
import android.graphics.drawable.Drawable
import android.view.KeyCharacterMap
import io.github.lee0701.mboard.module.component.InputViewComponent
import io.github.lee0701.mboard.preset.softkeyboard.Keyboard
import io.github.lee0701.mboard.service.KeyboardState
class... | 0 | Kotlin | 0 | 0 | 22635bece43f1b7fd85bd0115734d0c0cfe0fad8 | 1,927 | mBoard | Apache License 2.0 |
feature_coin_list/src/main/java/com/ryankoech/krypto/feature_coin_list/data/dto/CoinLocalDto.kt | RyanKoech | 557,763,586 | false | {"Kotlin": 333059, "Shell": 283, "Batchfile": 281} | package com.ryankoech.krypto.feature_coin_list.data.dto
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.ryankoech.krypto.feature_coin_list.domain.entity.Coin
const val TANLENAME_COIN_DTO = "table_coin_dto"
@Entity(tableName = TANLENAME_COIN_DTO)
data class CoinLocalDto(
val id : String,
... | 14 | Kotlin | 4 | 8 | 7674da6abd9bb9c8c9d3907a4eef61e164dd51e9 | 1,450 | android-krypto | MIT License |
chat-core/src/test/kotlin/com/demo/chat/test/config/TestPubSubBeans.kt | marios-code-path | 181,180,043 | false | {"Kotlin": 924762, "Shell": 36602, "C": 3160, "HTML": 2714, "Starlark": 278} | package com.demo.chat.test.config
import com.demo.chat.config.PubSubServiceBeans
import com.demo.chat.service.core.TopicPubSubService
import org.mockito.BDDMockito
class TestPubSubBeans<T, V> : PubSubServiceBeans<T, V> {
val mockedService: TopicPubSubService<T, V> = BDDMockito.mock(TopicPubSubService::class.java)... | 2 | Kotlin | 1 | 9 | 2ae59375cd44e8fb58093b0f24596fc3111fd447 | 427 | demo-chat | MIT License |
app/src/androidMain/kotlin/kosh/app/firebase/DefaultAnalyticsRepo.kt | niallkh | 855,100,709 | false | {"Kotlin": 1849939, "Swift": 768} | package kosh.app.firebase
import co.touchlab.kermit.Logger
import kosh.domain.analytics.AnalyticsRepo
| 0 | Kotlin | 0 | 3 | 8c4e7087fd09f5d766b17560528abe055655ae24 | 104 | kosh | MIT License |
easycrop/src/main/java/com/mr0xf00/easycrop/Touch.kt | mr0xf00 | 554,777,929 | false | null | package com.invictus.kidsGrowthTracker.utils.easycrop
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import androidx.compose.ui.composed
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.geometry.Rect
import androidx.comp... | 2 | Kotlin | 0 | 9 | a223d1e145a389d15e4f9e05123a2b407613cd5e | 3,133 | easycrop | Apache License 2.0 |
media/src/iosMain/kotlin/dev/icerock/moko/media/picker/ios/MediaPickerControllerProtocol.kt | icerockdev | 204,862,829 | false | null | /*
* Copyright 2019 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
package dev.icerock.moko.media.picker.ios
import dev.icerock.moko.media.Bitmap
import dev.icerock.moko.media.FileMedia
import dev.icerock.moko.media.Media
import dev.icerock.moko.media.picker.MediaSource
import de... | 9 | Kotlin | 8 | 24 | df6816453ff49765c5409319f0ed83fe7b19657d | 1,084 | moko-media | Apache License 2.0 |
groupchannel-nickname/src/main/java/com/sendbird/chat/sample/groupchannel/nickname/ui/main/MainActivity.kt | sendbird | 468,608,032 | false | null | package com.sendbird.chat.sample.groupchannel.nickname.ui.main
import androidx.fragment.app.Fragment
import com.sendbird.chat.module.ui.base.BaseMainActivity
import com.sendbird.chat.sample.groupchannel.nickname.ui.groupchannel.GroupChannelListFragment
class MainActivity : BaseMainActivity() {
override fun getFra... | 5 | Kotlin | 9 | 8 | fd8285a6244bc048e693d3df6f4ef0e767b6765c | 388 | sendbird-chat-sample-android | MIT License |
app/src/main/java/com/komeyama/shader_study_android/ui/ext/FloatArrayExtensions.kt | Komeyama | 376,831,724 | false | null | package com.komeyama.shader_study_android.ui.ext
import com.komeyama.shader_study_android.ui.utils.ByteBufferUtils
import java.nio.ByteBuffer
import java.nio.FloatBuffer
fun FloatArray.allocateDirect(): FloatBuffer {
return ByteBufferUtils.allocateDirectBuffer(this.size * 4, ByteBuffer::asFloatBuffer) {
(... | 0 | Kotlin | 0 | 0 | dd3e76f2538b54fd71c28a9c7667f4f7cc2fd275 | 356 | shader-study-android | MIT License |
app/src/main/java/com/store/nike/ui/theme/Color.kt | cyph3rcod3r | 532,545,359 | false | {"Kotlin": 30023} | /*
* Copyright 2021 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... | 1 | Kotlin | 2 | 45 | 8647bac577376778e3d308c85d9cce68ce11c84c | 1,259 | Nike-Store | Apache License 2.0 |
app/src/main/java/com/tistory/deque/previewmaker/kotlin/manager/PreviewBitmapManager.kt | 5seunghoon | 131,147,097 | false | {"Kotlin": 185276} | package com.tistory.deque.previewmaker.kotlin.manager
import android.content.Context
import android.net.Uri
import android.provider.MediaStore
import com.tistory.deque.previewmaker.kotlin.util.EzLogger
import java.io.FileNotFoundException
import java.io.IOException
import android.media.ExifInterface
import android.gra... | 3 | Kotlin | 0 | 15 | 49331895147b3c1f4520cf8ec0e4cf4c22714b08 | 8,756 | PreviewMaker | Apache License 2.0 |
src/main/kotlin/me/mocha/spongeplugin/seotda/wool/SeotdaWool.kt | namuare | 331,910,193 | false | null | package me.mocha.spongeplugin.seotda.wool
import org.spongepowered.api.data.DataQuery
import org.spongepowered.api.data.key.Key
import org.spongepowered.api.data.key.Keys
import org.spongepowered.api.item.ItemTypes
import org.spongepowered.api.item.inventory.ItemStack
import org.spongepowered.api.text.Text
import java... | 1 | Kotlin | 0 | 0 | 6754fb44ad04bec1e60613d90dcdf8f7ffed3a29 | 1,035 | Seotda | MIT License |
src/main/kotlin/dev/william/samples/kotlin/jpademo/entity/Person.kt | williamokano | 196,680,378 | false | null | package dev.william.samples.kotlin.jpademo.entity
import javax.persistence.*
@Entity
@Table(name = "people")
@Inheritance(strategy = InheritanceType.JOINED)
abstract class Person(
@field:Id
open val id: String,
open val name: String
)
@Entity
@Table(name = "juridic_people")
data class JuridicPerson(
... | 0 | Kotlin | 0 | 1 | a15d00a7e7139208cf82dbf69a0e3f5f14ce1872 | 615 | spring2-kotlin-data-jpa-demo | MIT License |
src/main/kotlin/xyz/pheonic/musicbot/command/ClearAll.kt | pheonic | 142,715,348 | false | null | package xyz.pheonic.musicbot.command
import mu.KotlinLogging
import net.dv8tion.jda.api.events.message.guild.GuildMessageReceivedEvent
import xyz.pheonic.musicbot.GuildMusicManager
class ClearAll : Command {
private val logger = KotlinLogging.logger { }
override val internalName: String
get() = "clear... | 0 | Kotlin | 1 | 4 | 5a3a1b258bb08dba054e4529b0789fd52ca77b97 | 738 | MusicBot | MIT License |
app/src/main/java/com/dramtar/billscollecting/presenter/TypeChartData.kt | Dramtar | 544,515,289 | false | null | package com.dramtar.billscollecting.presenter
data class TypeChartData(
val date: String,
val sum: Double,
val formattedSum: String,
val percentage: Float,
val formattedPercentage: String
)
| 0 | Kotlin | 0 | 1 | 7ed7aa9bb9fce7fdadc051d52742b9c86fb9a854 | 211 | Bills-Collecting | Apache License 2.0 |
app/src/main/java/com/valhalla/lolchampviewer/net/models/Stats.kt | zed13 | 264,632,149 | false | null | package com.valhalla.lolchampviewer.net.models
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class Stats(
@SerialName("hp") val hp: Double,
@SerialName("hpperlevel") val hpPerLevel: Double,
@SerialName("mp") val mp: Double,
@SerialName("mpperlevel... | 0 | Kotlin | 0 | 0 | 796e875693caff8c965878a326cae4d4e3b15d50 | 1,220 | TheGreenDragon | Apache License 2.0 |
totem-plugin/src/main/kotlin/sh/miles/totem/util/serialized/TotemItemAdapter.kt | PineappleDevelopmentGroup | 758,071,914 | false | {"Kotlin": 41171, "Java": 7303} | package sh.miles.totem.util.serialized
import com.google.gson.JsonDeserializationContext
import com.google.gson.JsonElement
import com.google.gson.JsonSerializationContext
import org.bukkit.inventory.ItemStack
import sh.miles.pineapple.PineappleLib
import sh.miles.pineapple.item.ItemSpec
import sh.miles.pineapple.util... | 0 | Kotlin | 0 | 0 | f6b1c7f521af7d785b5a91f1d6d545b3e776204a | 2,138 | Totem | Apache License 2.0 |
app/src/main/java/br/fmu/bioreino/viewModel/util/Comunicator.kt | CaioLuppo | 537,231,024 | false | null | package br.fmu.bioreino.viewModel.util
import android.os.Bundle
import android.widget.Toolbar
import androidx.fragment.app.Fragment
import br.fmu.bioreino.model.entities.Curso
interface Comunicator {
fun enviaCurso(curso: Curso)
fun enviaCategoria(categoria: String)
fun changeFragment(fragment: Fragment, ... | 0 | Kotlin | 0 | 2 | d8c8b5b9c324e3c8e5e6255348627f8c37546520 | 444 | BioReinoApp | MIT License |
it-blog-bot/src/main/kotlin/com/lurking/cobra/blog/bot/impl/flow/recomend/PublicationRecommendationFlow.kt | ekgreen | 432,851,339 | false | {"Kotlin": 185548} | package com.lurking.cobra.blog.bot.impl.flow.recomend
import com.goodboy.telegram.bot.api.ParseMode
import com.goodboy.telegram.bot.api.keyboard.InlineKeyboardButton
import com.goodboy.telegram.bot.api.keyboard.InlineKeyboardMarkup
import com.goodboy.telegram.bot.api.methods.Api
import com.goodboy.telegram.bot.api.met... | 0 | Kotlin | 2 | 0 | 0f8e59450fb2da05aa38769cc38285af7754d09c | 5,338 | the-lurking-cobra-in-borsh-blog | Apache License 2.0 |
core/src/main/kotlin/io/github/clasicrando/kdbc/core/stream/EndOfStream.kt | ClasicRando | 722,364,579 | false | {"Kotlin": 1024058, "Dockerfile": 1005, "Shell": 913} | package io.github.clasicrando.kdbc.core.stream
import io.github.clasicrando.kdbc.core.exceptions.KdbcException
/** [Exception] thrown when a stream has ended because the host terminated the connection */
class EndOfStream : KdbcException("Reached end of stream")
| 4 | Kotlin | 0 | 9 | 08679d4d012e1a1eea1564bd290129a7dc3f0c0b | 265 | kdbc | Apache License 2.0 |
junit5/src/main/kotlin/io/dbkover/junit5/annotation/DBKoverDataSet.kt | dbkover | 504,521,758 | false | null | package io.dbkover.junit5.annotation
import java.lang.annotation.*
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
@Retention(AnnotationRetention.RUNTIME)
@MustBeDocumented
@Inherited
annotation class DBKoverDataSet(
@Deprecated(message = "Deprecated for adding multi file support", ReplaceWith("paths")... | 1 | Kotlin | 0 | 4 | 13371c269fd6ec01b3b751460657d4cffa4b888b | 689 | dbkover | Apache License 2.0 |
src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github/failing/Github160DisableAnnotations.kt | stejas | 348,199,268 | true | {"Kotlin": 204094, "Logos": 6128, "Java": 1603} | package com.fasterxml.jackson.module.kotlin.test.github.failing
import com.fasterxml.jackson.databind.MapperFeature
import com.fasterxml.jackson.databind.exc.MismatchedInputException
import com.fasterxml.jackson.module.kotlin.jacksonMapperBuilder
import com.fasterxml.jackson.module.kotlin.readValue
import com.fasterxm... | 0 | null | 0 | 0 | 1f1c315120598e68a7f58078965acfd32f767c9f | 848 | jackson-module-kotlin | Apache License 2.0 |
app/src/main/java/id/del/ac/delstat/presentation/chat/activity/DetailChatRoomActivity.kt | matthewalfredoo | 487,180,171 | false | {"Kotlin": 521336} | package id.del.ac.delstat.presentation.chat.activity
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.util.Log
import android.view.MenuItem
import android.view.View
import androidx.core.widget.doOnTextChanged
import androidx.life... | 0 | Kotlin | 0 | 1 | 94f508452aa302caf7d40d25c6fd4868a40fbf49 | 7,021 | DelStat | MIT License |
sources/cli/src/org/jetbrains/amper/tasks/CommonRunSettings.kt | JetBrains | 709,379,874 | false | {"Kotlin": 1917051, "Java": 288926, "Shell": 107894, "Batchfile": 66223, "Lex": 16216, "Swift": 14457, "Ruby": 4736, "Dockerfile": 1327} | /*
* 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.amper.tasks
data class CommonRunSettings(
val programArgs: List<String> = emptyList(),
) | 0 | Kotlin | 30 | 988 | 6a2c7f0b86b36c85e9034f3de9bfe416516b323b | 244 | amper | Apache License 2.0 |
db-exporter-json/src/main/kotlin/com/wire/integrations/hold/exports/dao/DatabaseSetup.kt | wireapp | 339,717,282 | false | null | package com.wire.integrations.hold.exports.dao
import com.wire.integrations.hold.exports.dto.DatabaseConfiguration
import org.jetbrains.exposed.sql.Database
import org.jetbrains.exposed.sql.transactions.transaction
/**
* Object with methods for managing the database.
*/
object DatabaseSetup {
/**
* Connec... | 0 | Kotlin | 0 | 0 | f5a3eeaa7ea6f7062ae898b4664e3dbfd338ee13 | 1,091 | hold-exports | MIT License |
app/src/main/java/com/danieer/galvez/openpay/presentation/di/ActivityBuilder.kt | Moldycord | 718,743,955 | false | {"Kotlin": 57301} | package com.danieer.galvez.openpay.presentation.di
import com.danieer.galvez.openpay.presentation.ui.activity.HomeActivity
import com.danieer.galvez.openpay.presentation.ui.activity.MovieDetailActivity
import dagger.Module
import dagger.android.ContributesAndroidInjector
@Module
abstract class ActivityBuilder {
... | 0 | Kotlin | 0 | 0 | 9d202812fc805b641ddc4444312405c29a68d8d5 | 503 | OpenPay | Apache License 2.0 |
feature/settings/src/main/java/cn/jailedbird/feature/settings/exposeimpl/SettingExposeImpl.kt | JailedBird | 576,180,318 | false | {"Kotlin": 131943, "Java": 2738} | package cn.jailedbird.feature.settings.exposeimpl
import android.content.Context
import cn.jailedbird.feature.settings.SettingsActivity
import cn.jailedbird.feature.settings.expose.SettingExpose
import javax.inject.Inject
class SettingExposeImpl @Inject constructor() : SettingExpose {
override fun startSettingAc... | 0 | Kotlin | 0 | 8 | e9b06706eec0cd8cf9a2674381a04f38428e877b | 394 | ModuleExpose | Apache License 2.0 |
app/src/main/java/com/alpriest/energystats/ui/summary/SummaryView.kt | alpriest | 606,081,400 | false | {"Kotlin": 878318} | package com.alpriest.energystats.ui.summary
import android.annotation.SuppressLint
import android.content.Context
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.comp... | 6 | Kotlin | 3 | 3 | 8885c6dffc214581702645b2b0f923a0fc93b483 | 9,208 | EnergyStats-Android | MIT License |
src/integration/wirespec/src/jvmMain/kotlin/community/flock/wirespec/Wirespec.kt | flock-community | 506,356,849 | false | {"Kotlin": 611564, "Shell": 7126, "TypeScript": 5819, "Witcher Script": 4248, "Java": 2714, "Dockerfile": 625, "Makefile": 555, "JavaScript": 140} | package community.flock.wirespec
import java.lang.reflect.ParameterizedType
import java.lang.reflect.Type
object Wirespec {
interface Enum
interface Endpoint
interface Refined {
val value: String
}
enum class Method { GET, PUT, POST, DELETE, OPTIONS, HEAD, PATCH, TRACE }
@JvmRecord
... | 20 | Kotlin | 1 | 16 | d96b9fa18a136496d10c9a30a55f30d5ab78a28a | 1,297 | wirespec | Apache License 2.0 |
app/src/main/java/jp/mihailskuzmins/sugoinihongoapp/persistence/repos/room/WordQuizRepo.kt | MihailsKuzmins | 240,947,625 | false | null | package jp.mihailskuzmins.sugoinihongoapp.persistence.repos.room
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import jp.mihailskuzmins.sugoinihongoapp.models.wordStudy.WordQuizType
import jp.mihailskuzmins.sugoinihongoapp.persistence.models.room.WordQuizEntity
import jp.mihailskuzmin... | 1 | null | 1 | 1 | 57e19b90b4291dc887a92f6d57f9be349373a444 | 3,281 | sugoi-nihongo-android | Apache License 2.0 |
ScriptForge/src/commonMain/kotlin/com/oruel/scriptforge/Runner.kt | orueI | 792,187,836 | false | {"Kotlin": 25898} | package com.oruel.scriptforge
import com.oruel.scriptforge.compiler.Compiler
import com.oruel.scriptforge.engine.AstEngine
import com.oruel.scriptforge.engine.ScriptForgeScriptEngine
import com.oruel.scriptforge.token.ScriptForgeTokenTypesProvider
import com.oruel.scriptforge.token.TokenTypesProvider
fun ScriptForgeR... | 0 | Kotlin | 0 | 0 | 69babfd8831adc5455a55b09ade088d781137845 | 1,011 | ScriptForge | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/Smoke.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 | 4,776 | icons | MIT License |
server/src/main/kotlin/org/example/project/security/TokenConfig.kt | ashutoshkailkhura | 715,660,759 | false | {"Kotlin": 186744, "Swift": 594} | package org.example.project.security
data class TokenConfig(
val issuer: String,
val audience: String,
val expiresIn: Long,
val secret: String
) | 0 | Kotlin | 0 | 0 | b5cb1929876bedea4f68f04d3e60213a32e4994e | 161 | kmp-app-fullstack | The Unlicense |
src/main/kotlin/org/teamlyon/harmony/impl/PlaygroundImpl.kt | PizzaCrust | 247,298,217 | false | null | package org.teamlyon.harmony.impl
import org.teamlyon.harmony.*
import org.teamlyon.harmony.net.*
class PlaygroundImpl(private val apiToken: String, pgSlug: String): Playground {
private val playgroundQuery: DetailedPlaygroundQuery = getMayhemRestService().queryFromStore(apiToken, StoredGPLQueries
.D... | 1 | Kotlin | 0 | 0 | 9efce62acd079bd35f792e03a076c9a8917b1431 | 5,595 | Harmony | MIT License |
accelerators/corda/service-bus-integration/corda-local-network/src/main/kotlin/net/corda/workbench/cordaNetwork/tasks/NetworkBootstrapperTask.kt | Azure-Samples | 175,045,447 | false | null | package net.corda.workbench.cordaNetwork.tasks
import net.corda.workbench.commons.taskManager.BaseTask
import net.corda.workbench.commons.taskManager.ExecutionContext
import net.corda.workbench.commons.taskManager.TaskContext
import net.corda.workbench.cordaNetwork.runCommand
/**
* Runs the network bootstrapper, st... | 18 | Kotlin | 116 | 138 | 5b55efd24d2239a7a2d57fb395b0a230e687dc73 | 708 | blockchain-devkit | MIT License |
mccoroutine-bukkit-api/src/main/java/com/github/shynixn/mccoroutine/contract/CommandService.kt | physics91 | 406,987,828 | true | {"Kotlin": 114224, "Java": 2714} | package com.github.shynixn.mccoroutine.contract
import com.github.shynixn.mccoroutine.SuspendingCommandExecutor
import com.github.shynixn.mccoroutine.SuspendingTabCompleter
import org.bukkit.command.PluginCommand
interface CommandService {
/**
* Registers a suspend command executor.
*/
fun registerS... | 0 | null | 0 | 0 | 8ee9364127b42fd1903db8a17de5f6726ba284b4 | 581 | MCCoroutine-1 | MIT License |
app/src/main/java/com/abanoub/weather/data/repository/WeatherRepositoryImpl.kt | iAbanoubSamir | 604,891,325 | false | null | package com.abanoub.weather.data.repository
import android.os.Build
import androidx.annotation.RequiresApi
import com.abanoub.weather.data.mappers.toWeatherInfo
import com.abanoub.weather.data.remote.WeatherApi
import com.abanoub.weather.domain.repository.WeatherRepository
import com.abanoub.weather.domain.util.Resour... | 0 | Kotlin | 0 | 0 | 3bcd82d04ca7e6e96cc99e3f9d41d04c35c5cfb9 | 968 | WeatherMVI | Apache License 2.0 |
src/test/kotlin/com/github/poolParty/pullPartyBot/handler/interaction/callback/DeleteNodeSuggestionCallbackTest.kt | pool-party | 276,690,235 | false | null | package com.github.poolParty.pullPartyBot.handler.interaction.callback
import com.github.poolParty.pullPartyBot.handler.interaction.AbstractBotTest
import kotlin.test.Test
internal class DeleteNodeSuggestionCallbackTest : AbstractBotTest() {
@Test
fun `delete node suggestion test`() {
-"/create party... | 2 | Kotlin | 0 | 8 | 1815ce56b70e5ba6b9d708c00099969fc026d8a6 | 520 | pull-party-bot | MIT License |
src/main/kotlin/com/github/texousliu/opengitmoji/model/GitmojiPattern.kt | texousliu | 541,365,038 | false | {"Kotlin": 27786} | package com.github.texousliu.opengitmoji.model
class GitmojiPattern(var regex : String, var enable : Boolean) : Cloneable {
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (other is GitmojiPattern) {
return this.regex == other.regex
}
retu... | 0 | Kotlin | 0 | 1 | 884a0257f25267e62d3244fc0d6cd74170829717 | 640 | open-gitmoji | MIT License |
src/main/kotlin/org/jglrxavpok/audiokode/ThreadedSoundEngine.kt | jglrxavpok | 92,394,058 | false | null | package org.jglrxavpok.audiokode
class ThreadedSoundEngine: SoundEngine() {
var stopped = false
override fun init() {
super.init()
val thread = Thread {
while(!stopped) {
this.update()
}
}
thread.priority = Thread.MAX_PRIORITY
th... | 0 | Kotlin | 1 | 1 | aa1606587b68809c15b796ebf2293352d43b010b | 455 | Audiokode | MIT License |
app/src/main/java/com/veen/cars/views/fragment/MainScreenFragmentViewModel.kt | veenkumar | 461,456,378 | false | null | package com.veen.cars.views.fragment
import android.app.Application
import android.content.Intent
import android.content.pm.PackageManager
import android.view.View
import androidx.lifecycle.AndroidViewModel
import com.veen.cars.R
import com.veen.cars.model.AppInfo
class MainScreenFragmentViewModel(application: Applic... | 1 | Kotlin | 0 | 0 | d56614cd2d8199dab253da76e5258558eae9fdf0 | 1,225 | CarsLauncher | The Unlicense |
core/src/main/java/com/ternaryop/photoshelf/util/sort/Sortable.kt | dafi | 11,529,505 | false | null | package com.ternaryop.photoshelf.util.sort
/**
* Created by dave on 12/06/16.
* Sort items and toggle the direction
*/
interface Sortable<T> {
val isDefaultAscending: Boolean
var isAscending: Boolean
fun sort(items: MutableList<T>)
}
| 0 | Kotlin | 1 | 1 | 43ff1cebcd2cfc565ff8b02201de79a31e4fe4d4 | 250 | photoshelf | MIT License |
app/src/main/java/com/yuhang/novel/pirate/ui/store/adapter/StoreRankingAdapter.kt | yuhanghate | 200,383,190 | false | null | package com.yuhang.novel.pirate.ui.store.adapter
import android.view.ViewGroup
import androidx.viewbinding.ViewBinding
import com.alibaba.android.vlayout.layout.LinearLayoutHelper
import com.yuhang.novel.pirate.base.BaseAdapterV2
import com.yuhang.novel.pirate.base.BaseViewHolder
import com.yuhang.novel.pirate.ui.comm... | 1 | null | 1 | 2 | 8c72fc787a2927efb10c8c03b714195c7b1a6c76 | 931 | Pirate | Apache License 2.0 |
app/src/main/java/com/engineerfred/kotlin/next/presentation/screens/authGraphScreens/passwordScreen/EnterPasswordScreen.kt | EngFred | 780,343,776 | false | {"Kotlin": 734480} | package com.engineerfred.kotlin.next.presentation.screens.authGraphScreens.passwordScreen
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.S... | 0 | Kotlin | 0 | 0 | f24c3f0a0e5753ceeb2df4ab09d596b7981a3a52 | 6,722 | Blogify-app | MIT License |
app/src/main/java/com/damai/helper/Extensions.kt | zjutcaicai | 678,843,163 | false | null | package com.damai.helper
import android.accessibilityservice.AccessibilityService
import android.accessibilityservice.AccessibilityService.GLOBAL_ACTION_BACK
import android.accessibilityservice.AccessibilityService.GLOBAL_ACTION_RECENTS
import android.accessibilityservice.GestureDescription
import android.annotation.S... | 0 | Kotlin | 0 | 2 | 1d66cb747c52ecb2f79708e2efbb2a2cf11e89c1 | 10,119 | damaiTick | MIT License |
kotlin-boot/src/main/kotlin/nc/App.kt | nadavc | 32,712,079 | false | {"Java": 9968, "Kotlin": 1535} | package nc
import com.fasterxml.jackson.module.kotlin.KotlinModule
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.context.annotation.Bean
@SpringBootApplication
open class App {
companion object {
@JvmStatic... | 1 | null | 1 | 1 | 33e72d19b0938988c94182bee70339db7cc4a719 | 493 | nadavc-blog-code | Do What The F*ck You Want To Public License |
app/src/main/java/io/xapk/apkinstaller/utils/bean/xapk/ApksBean.kt | cade335 | 220,771,143 | false | {"Kotlin": 249734, "Java": 9328} | package io.xapk.apkinstaller.utils.bean.xapk
import android.os.Parcelable
import io.xapk.apkinstaller.utils.bean.ApkAssetType
import kotlinx.android.parcel.Parcelize
@Parcelize
data class ApksBean(
var packageName: String,
var label: String,
var iconPath: String,
var apkAssetType: ApkA... | 1 | null | 1 | 2 | d41e2446466d6fc56b9d3f404a8c875cd776fe5c | 507 | xapk-installer | MIT License |
app/src/main/java/com/example/chouaib/access_autism/ActivityAsdFeatures2_3.kt | access-autism | 121,647,072 | false | null | package com.example.chouaib.access_autism
import android.content.Intent
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.view.View
class ActivityAsdFeatures2_3 : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceS... | 1 | null | 1 | 1 | 389b527c981a81a61918705c6f428fed0428e289 | 548 | android-client | Apache License 2.0 |
kt/api-generator/src/main/kotlin/godot/codegen/models/BuiltinClassSizes.kt | utopia-rise | 289,462,532 | false | {"Kotlin": 1649742, "GDScript": 536482, "C++": 487057, "C": 13191, "C#": 10278, "Shell": 7888, "Python": 3941, "Java": 3219, "CMake": 941} | package godot.codegen.models
import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonProperty
data class BuiltinClassSizes @JsonCreator constructor (
@JsonProperty("build_configuration") val buildConfiguration : String,
@JsonProperty("sizes") val sizes : List<Size>
)
| 63 | Kotlin | 44 | 634 | ac2a1bd5ea931725e2ed19eb5093dea171962e3f | 318 | godot-kotlin-jvm | MIT License |
compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/FirBuilderInferenceSession.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.fir.resolve.inference
import org.jetbrains.kotlin.config.LanguageFeature
import ... | 162 | null | 5729 | 46,436 | c902e5f56504e8572f9bc13f424de8bfb7f86d39 | 20,053 | kotlin | Apache License 2.0 |
app/src/main/java/com/openconference/model/database/LocationAutoValue.kt | OpenConference | 59,640,503 | false | null | package com.openconference.model.database
import android.content.ContentValues
import android.database.Cursor
import com.openconference.model.Location
import com.openconference.model.database.dao.LocationDaoSqlite
import com.gabrielittner.auto.value.cursor.ColumnName
import com.google.auto.value.AutoValue
import rx.fu... | 11 | Kotlin | 13 | 98 | b429bbf59b284ff25840f8d608d5fa9e270d4bc8 | 924 | OpenConference-android | Apache License 2.0 |
app/src/main/java/xyz/godi/popularmovies/utils/MovieUtils.kt | sabiou | 150,808,046 | false | null | package xyz.godi.popularmovies.utils
/**
* Created by Farouk on 19/06/20.
*/
object MoviesUtils {
private const val BASE_POSTER_PATH = "https://image.tmdb.org/t/p/w342"
private const val BASE_BACKDROP_PATH = "https://image.tmdb.org/t/p/w780"
private const val YOUTUBE_VIDEO_URL = "https://www.youtube.com/... | 6 | Kotlin | 0 | 8 | 601461e2662c2e2b05ff8fe0df10ba7057a92885 | 871 | popular-movies-Udacity-Nanodegree | Apache License 2.0 |
app/unit-tests/src/org/commcare/android/tests/application/AppUpdateTest.kt | dimagi | 20,939,877 | false | {"Java": 3952611, "JavaScript": 466293, "Kotlin": 338683, "Python": 33986, "Shell": 1376, "Ruby": 894, "CSS": 824} | package org.commcare.android.tests.application
import android.content.Context
import android.util.Log
import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import io.mockk.every
import io.mockk.mockkObject
import org.commcare.CommCareApplication
import org.commcare.Comm... | 51 | Java | 27 | 38 | b2e4ef9d6d322fb464bc805f42d4cc1fb84d5e72 | 8,142 | commcare-android | Apache License 2.0 |
App/app/src/test/java/at/tugraz/vaccinationpassport/AddVaccinesTest.kt | sw21-tug | 351,002,683 | false | null | package at.tugraz.vaccinationpassport
import at.tugraz.vaccinationpassport.backend.Server
import at.tugraz.vaccinationpassport.backend.api.Repository
import at.tugraz.vaccinationpassport.backend.api.RetrofitInstance
import at.tugraz.vaccinationpassport.backend.api.data.LoginDetails
import at.tugraz.vaccinationpassport... | 5 | null | 5 | 1 | 04a904fada50a3a710e3163634ce38cf4b83d4c7 | 2,737 | Team_20 | MIT License |
kotlin/src/test/kotlin/com/spoonacular/client/model/ImageAnalysisByURL200ResponseNutritionTest.kt | valpackett | 787,267,296 | true | {"Markdown": 1853, "PowerShell": 1, "Go": 164, "Shell": 20, "Perl": 310, "Haskell": 23, "C#": 321, "PHP": 310, "JavaScript": 306, "Ruby": 313, "TypeScript": 328, "Batchfile": 2, "Java": 486, "INI": 4, "Scala": 1, "Python": 315, "C++": 316, "CMake": 1, "Rust": 156, "Lua": 305, "Kotlin": 321} | /**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package com.spoonacular.client.model
import io.... | 0 | Java | 0 | 0 | b961f48275936e1daa8a8197d09b870b73da44df | 1,743 | spoonacular-api-clients | MIT License |
app/src/test/java/com/todo/util/UiSchedulersTransformerTestImpl.kt | waleedsarwar86 | 134,292,766 | false | null | package com.todo.util
import io.reactivex.CompletableTransformer
import io.reactivex.ObservableTransformer
import io.reactivex.SingleTransformer
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Schedulers
/**
* @author <NAME>
* @since Dec 10, 2017
*/
class UiSchedulersTrans... | 0 | Kotlin | 0 | 1 | 7b7fc8579b426383e50a3254d0c748bc068d6644 | 1,282 | todo-mvp-kt | Apache License 2.0 |
JerichoVictim/JerichoICNDB/src/main/kotlin/de/fhro/inf/sa/jerichoDemo/model/DTOs.kt | prskr | 106,002,057 | false | null | package de.fhro.inf.sa.jerichoDemo.model
import com.fasterxml.jackson.annotation.JsonInclude
/**
* @author Peter Kurfer
* Created on 10/29/17.
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
data class JokeDto(var id: Int = 0, var joke: String = "", var category: String? = "")
@JsonInclude(JsonInclude.Include.NON_... | 1 | null | 1 | 3 | 0e6c163d0be936517de1ecbec5a2a297ef82abce | 654 | SA-Jericho | MIT License |
core/src/main/java/com/ifmvo/togetherad/core/helper/AdHelperBanner.kt | ifmvo | 165,031,164 | false | null | package com.ifmvo.togetherad.core.helper
import android.app.Activity
import android.view.ViewGroup
import com.ifmvo.togetherad.core.R
import com.ifmvo.togetherad.core.TogetherAd
import com.ifmvo.togetherad.core.config.AdProviderLoader
import com.ifmvo.togetherad.core.listener.BannerListener
import com.ifmvo.togetherad... | 5 | null | 174 | 772 | b696b62bc97f8bc6f20aa720455ddd6595319b58 | 3,369 | TogetherAd | MIT License |
app/src/main/java/com/sethchhim/kuboo_client/ui/main/settings/SettingsFragment.kt | befora | 137,512,422 | false | null | package com.sethchhim.kuboo_client.ui.main.settings
class SettingsFragment : SettingsFragmentImp1_Content() | 1 | Kotlin | 39 | 81 | 33e456344172eab96b136e30130c4125096f253d | 108 | Kuboo | Apache License 2.0 |
app/src/main/java/uk/nhs/nhsx/covid19/android/app/analytics/AnalyticsEvent.kt | nhsx-mirror | 289,296,773 | true | {"Kotlin": 2761696, "Shell": 1098, "Ruby": 847, "Batchfile": 197} | package uk.nhs.nhsx.covid19.android.app.analytics
import uk.nhs.nhsx.covid19.android.app.remote.data.VirologyTestKitType
import uk.nhs.nhsx.covid19.android.app.remote.data.VirologyTestResult
sealed class AnalyticsEvent {
object AcknowledgedStartOfIsolationDueToRiskyContact : AnalyticsEvent()
object QrCodeChec... | 0 | Kotlin | 0 | 0 | 296c9decde1b5ed904b760ff77b05afc51f24281 | 2,034 | covid-19-app-android-ag-public | MIT License |
org.librarysimplified.audiobook.manifest.api/src/main/java/org/librarysimplified/audiobook/manifest/api/PlayerPalaceID.kt | ThePalaceProject | 379,956,255 | false | {"Kotlin": 807449, "Java": 2523, "Shell": 968} | package org.librarysimplified.audiobook.manifest.api
/**
* An identifier for a book that was taken from the feed used to deliver the book. There are
* no restrictions on format, and the identifier is not guaranteed to be globally unique.
*/
data class PlayerPalaceID(val value: String) {
override fun toString(): ... | 0 | Kotlin | 1 | 1 | 785eb7ca3ece27982251c8c8c6f1665f3b8b12cb | 357 | android-audiobook | Apache License 2.0 |
app/src/test/java/org/simple/clinic/newentry/DateOfBirthFormatValidatorTest.kt | pratul | 151,071,054 | false | null | package org.simple.clinic.newentry
import com.google.common.truth.Truth.assertThat
import junitparams.JUnitParamsRunner
import junitparams.Parameters
import org.junit.Test
import org.junit.runner.RunWith
import org.simple.clinic.newentry.DateOfBirthFormatValidator.Result
import org.threeten.bp.LocalDate
@RunWith(JUni... | 0 | Kotlin | 0 | 1 | fa311d989cac0a167070f2e1e466191919b659b8 | 1,022 | citest | MIT License |
src/main/kotlin/at/kanzler/codingcompetitionbackend/event/listener/SendTokenEmailListener.kt | KonstiTheProgrammer | 458,492,373 | false | {"Kotlin": 63612, "HTML": 308, "Dockerfile": 113} | package at.kanzler.codingcompetitionbackend.event.listener
import at.kanzler.codingcompetitionbackend.dto.NotificationEmail
import at.kanzler.codingcompetitionbackend.event.SendTokenEmailEvent
import at.kanzler.codingcompetitionbackend.service.MailService
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import o... | 0 | Kotlin | 0 | 0 | 5c7411b072549f21fdd057f6ee9a998a3d641e56 | 1,103 | CodingCompetitionBackend | MIT License |
mattermost/fake/src/test/kotlin/org/http4k/connect/mattermost/FakeMattermostChaosTest.kt | http4k | 295,641,058 | false | {"Kotlin": 1624385, "Handlebars": 10370, "CSS": 5434, "Shell": 3178, "JavaScript": 2076, "Python": 1834, "HTML": 675} | package org.http4k.connect.mattermost
import org.http4k.connect.FakeSystemContract
import org.http4k.core.Method
import org.http4k.core.Request
import java.util.UUID
class FakeMattermostChaosTest : FakeSystemContract(FakeMattermost()) {
override val anyValid = Request(Method.POST, "/hooks/${UUID.randomUUID()}")
}... | 7 | Kotlin | 17 | 37 | 3522f4a2bf5e476b849ec367700544d89e006f71 | 321 | http4k-connect | Apache License 2.0 |
app/src/main/java/org/blitzortung/android/location/LocationEvent.kt | KubaDeX | 49,097,832 | true | {"Kotlin": 220517, "Java": 62} | package org.blitzortung.android.location
import android.location.Location
import org.blitzortung.android.protocol.Event
class LocationEvent(val location: Location? = null) : Event {
}
| 0 | Kotlin | 0 | 0 | 1197dbf9693b588f92ce8bdb1254507274838a8a | 187 | bo-android | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.