path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/cooper/wordle/app/ui/components/WordleAppBar.kt | ScottCooper92 | 453,962,911 | false | {"Kotlin": 82146} | package com.cooper.wordle.app.ui.components
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.Help
import androidx.compose.material3.CenterAlignedTopAppBar
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.material3.Te... | 0 | Kotlin | 0 | 1 | 55afa181f75d4263d9804dd0b40c94bbf159525a | 892 | Wordle | Apache License 2.0 |
sample/src/main/java/com/tomcz/sample/ui/Background.kt | mtomczynski | 391,728,482 | false | null | package com.tomcz.sample.ui
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Path
import androidx.compose.ui.graphics.drawscope.Fill
@Composable
fun BezierBackground... | 3 | null | 2 | 9 | 59c23118f5e918ebf0abc8f659549b8bfa5487d5 | 2,883 | ellipse | MIT License |
feature-wallet-impl/src/main/java/jp/co/soramitsu/feature_wallet_impl/presentation/send/confirm/ConfirmTransferFragment.kt | guangxingmao | 315,566,082 | true | {"Kotlin": 795393} | package jp.co.soramitsu.feature_wallet_impl.presentation.send.confirm
import android.os.Bundle
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.appcompat.app.AlertDialog
import jp.co.soramitsu.common.account.external.actions.setupExternalActions
import jp.co.soramitsu.common.base.BaseFr... | 0 | null | 0 | 0 | e4139ee7cbb9b48b4b622d6a3ddcf4a9e25dabca | 4,799 | fearless-Android | Apache License 2.0 |
router_api/src/main/java/my/itgungnir/grouter/api/RouterManager.kt | Diamond0071 | 188,145,059 | true | {"Kotlin": 59699} | package my.itgungnir.grouter.api
import android.content.Context
import android.content.Intent
import android.net.Uri
import androidx.fragment.app.Fragment
import my.itgungnir.grouter.api.dto.RouterRequest
import my.itgungnir.grouter.api.dto.RouterResponse
import my.itgungnir.grouter.api.interceptor.BaseInterceptor
imp... | 0 | Kotlin | 0 | 0 | 8c61b7fb0358e28bd895ba59d910409eeaf60cf7 | 2,736 | GRouter | Apache License 2.0 |
app/src/main/java/com/example/fooddeliveryapp/AllRestaurantDiffItemCallback.kt | MarvellinusVincent | 729,750,602 | false | {"Kotlin": 100572} | package com.example.fooddeliveryapp
import androidx.recyclerview.widget.DiffUtil
/**
* DiffUtil ItemCallback for comparing [Restaurant] objects in a RecyclerView.
*
* This class is used by the RecyclerView adapter to efficiently update the UI when the
* underlying data set of restaurants changes.
*
* @property ... | 0 | Kotlin | 0 | 0 | cb50631c60328d32eb79940ae7fea346bd572ca6 | 1,354 | Food_Delivery | Apache License 2.0 |
app/src/main/java/com/aditya/googledeveloperscommunityvisualisationtool/roomdatabase/LastWeekDatabase/lastweekroommodel.kt | soCallmeAdityaKumar | 647,671,779 | false | {"Kotlin": 441339} | package com.aditya.googledeveloperscommunityvisualisationtool.roomdatabase.LastWeekDatabase
import android.content.Context
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
class lastwe... | 0 | Kotlin | 1 | 6 | 21eabc0cd5a5041f79cfb78bfe4c20d6ffeaaf80 | 957 | Google-Developers-Community-Visualization-Tool | MIT License |
src/main/kotlin/pcf/crskdev/gitfeed/server/core/util/Hasher.kt | criske | 346,656,578 | false | null | /*
* MIT License
*
* Copyright (c) 2021. <NAME>
*
* 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 without restriction, including without limitation the rights
* to use, copy, mod... | 4 | Kotlin | 0 | 0 | 571320ebf943d88e25f7d203aebbf931ba52f839 | 2,204 | my-git-feed-server | MIT License |
app/src/main/java/com/furkanaskin/app/podpocket/ui/podcast/PodcastViewModel.kt | murat-aydin-zz | 204,484,309 | true | {"Kotlin": 351550, "Java": 13587} | package com.furkanaskin.app.podpocket.ui.podcast
import android.app.Application
import androidx.databinding.ObservableField
import androidx.lifecycle.MutableLiveData
import com.furkanaskin.app.podpocket.Podpocket
import com.furkanaskin.app.podpocket.core.BaseViewModel
import com.furkanaskin.app.podpocket.core.Resource... | 0 | Kotlin | 0 | 0 | 559df127a51c20f7cd6798ee5ae442c5e4e62ed9 | 1,691 | podpocket | MIT License |
platform/backend/core/src/main/kotlin/io/hamal/core/request/handler/extension/UpdateHandler.kt | hamal-io | 622,870,037 | false | {"Kotlin": 2339776, "C": 1398561, "TypeScript": 307292, "Lua": 119439, "C++": 40661, "Makefile": 11728, "Java": 7564, "CMake": 2810, "JavaScript": 2640, "CSS": 1567, "Shell": 977, "HTML": 903} | package io.hamal.core.request.handler.extension
import io.hamal.core.event.InternalEventEmitter
import io.hamal.core.request.handler.cmdId
import io.hamal.lib.common.domain.CmdId
import io.hamal.lib.domain.request.ExtensionUpdateRequested
import io.hamal.repository.api.CodeCmdRepository
import io.hamal.repository.api.... | 33 | Kotlin | 0 | 0 | bf899fa80b23f04ab5cf0c431e5e37d3c1038491 | 1,734 | hamal | Creative Commons Zero v1.0 Universal |
src/test/com/wizeline/workshop/DoubleExtTest.kt | ademar111190 | 101,435,832 | false | null | package com.wizeline.workshop
import org.assertj.core.api.Assertions.assertThat
import org.junit.Test
class DoubleExtTest {
@Test
fun testToDollar_basicValue() {
val dollar = 1.00.toDollar()
assertThat(dollar).isEqualTo("$ 1.00")
}
@Test
fun testToDollar_decimalValue() {
... | 0 | Kotlin | 0 | 0 | 877841009ea9f5088a2d01f1365e0601fd5df547 | 1,985 | Kotlin-Wizeline-Workshop | MIT License |
src/test/kotlin/no/nav/arbeidsgiver/iatjenester/metrikker/utils/DataKvalitetSjekkerKtTest.kt | navikt | 338,342,215 | false | {"Kotlin": 157101, "Dockerfile": 150} | package no.nav.arbeidsgiver.iatjenester.metrikker.utils
import no.nav.arbeidsgiver.iatjenester.metrikker.restdto.MottattIaTjenesteMedVirksomhetGrunndata
import no.nav.arbeidsgiver.iatjenester.metrikker.restdto.Kilde
import no.nav.arbeidsgiver.iatjenester.metrikker.restdto.TypeIATjeneste
import org.junit.jupiter.api.*
... | 0 | Kotlin | 0 | 0 | 7603ec336b52c82f7c392984e26d6f28dcce27f5 | 6,979 | ia-tjenester-metrikker | MIT License |
src/main/kotlin/su/mandora/authlib/yggdrasil/request/AuthenticationRequest.kt | Sumandora | 698,967,147 | false | {"Kotlin": 12351} | package su.mandora.authlib.yggdrasil.request
import kotlinx.serialization.Serializable
import su.mandora.authlib.Agent
@Serializable
data class AuthenticationRequest(
val agent: Agent,
val username: String,
val password: String,
val clientToken: String? = null) {
@Suppress("unused") // Required fo... | 0 | Kotlin | 0 | 0 | 2695cd427f723f777709a122b55aac55aa81bc40 | 373 | AuthLib | MIT License |
src/main/kotlin/info/jdavid/asynk/server/http/handler/HttpHandlerChain.kt | programingjd | 100,194,252 | false | {"Kotlin": 173560, "JavaScript": 818, "CSS": 592, "HTML": 337} | @file:Suppress("EXPERIMENTAL_FEATURE_WARNING")
package info.jdavid.asynk.server.http.handler
import info.jdavid.asynk.http.Headers
import info.jdavid.asynk.http.Method
import info.jdavid.asynk.server.http.base.AbstractHttpHandler
import info.jdavid.asynk.server.http.route.NoParams
import java.lang.RuntimeException
im... | 0 | Kotlin | 0 | 0 | 97c988db1c15d61d10f5b55b04086a93866c43c1 | 4,179 | asynk_server | Apache License 2.0 |
feature/category/src/main/kotlin/ru/resodostudios/cashsense/feature/category/CategoryUiState.kt | f33lnothin9 | 674,320,726 | false | {"Kotlin": 200002} | package ru.resodostudios.cashsense.feature.category
import androidx.annotation.DrawableRes
import ru.resodostudios.cashsense.core.designsystem.icon.CsIcons
data class CategoryUiState(
val id: String = "",
val title: String = "",
@DrawableRes
val iconRes: Int = CsIcons.Category,
val isEditing: Bool... | 0 | Kotlin | 0 | 1 | 7fb8aba2342579e81a52d0fc43008cb1b5824ae9 | 334 | cashsense | Apache License 2.0 |
sdk-lib/src/androidTest/java/pirate/android/sdk/integration/service/ChangeServiceTest.kt | PirateNetwork | 445,659,768 | false | null | package pirate.android.sdk.integration.service
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.filters.SmallTest
import pirate.android.sdk.annotation.MaintainedTest
import pirate.android.sdk.annotation.TestPurpose
import pirate.android.sdk.internal.Twig
import pirate.android.sdk.internal.bloc... | 2 | Kotlin | 0 | 0 | 547fcbb407e373aacc497e41f05a7deac46677b1 | 2,668 | pirate-android-wallet-sdk | MIT License |
app/src/main/java/com/dearmyhealth/modules/bpm/FragmentDeptAddData.kt | Baek-HongYeol | 738,959,458 | false | {"Kotlin": 370153} | package com.dearmyhealth.modules.bpm
import android.app.DatePickerDialog
import android.app.TimePickerDialog
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.DatePicker
import android.widget.EditText
im... | 0 | Kotlin | 0 | 0 | a9c8affadaccfab37684c4534cfbcaec8adc0c93 | 5,543 | DearMyHealth | MIT License |
app/src/main/java/com/alexandre/skiresort/ui/skiresortlist/SkiResortListViewModel.kt | alexandre7777 | 152,983,417 | false | null | package com.alexandre.skiresort.ui.skiresortlist
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import com.alexandre.skiresort.data.SkiResortRepo
import com.alexandre.skiresort.model.SkiResort
class SkiResortListViewModel(skiResortRepo: SkiResortRepo) : ViewModel() {
//list of all the ski... | 0 | Kotlin | 1 | 1 | bd47949bc07bc10f4d621d41959a9031190c8de0 | 415 | ski-resort | MIT License |
composeApp/src/commonMain/kotlin/data/source/preferences/DataStoreFactory.kt | anwar-pasaribu | 798,728,457 | false | {"Kotlin": 370338, "Swift": 585} | package data.source.preferences
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
expect object DataStoreFactory {
fun createDataStore(): DataStore<Preferences>
}
| 0 | Kotlin | 0 | 0 | f2878e0f953fd2003d0c412d6de344a4932c886d | 215 | Tabiat | MIT License |
app/src/main/java/com/sahu/playground/deeplink/DeepLinkUtility.kt | sahruday | 824,622,867 | false | {"Kotlin": 61507} | package com.sahu.playground.deeplink
import android.app.Activity
import android.content.Intent
import android.net.Uri
import android.widget.Toast
import com.sahu.playground.animations.CustomAnimation
import com.sahu.playground.rootDetection.RootDetection
import com.sahu.playground.docUpload.FilePickerActivity
import c... | 0 | Kotlin | 0 | 0 | f0a737920b926eca6e452086327df7a23e34b0e4 | 1,739 | playground | MIT License |
App/app/src/main/java/com/app/notes/ui/activity/EditNoteActivity.kt | ericasaline | 578,992,527 | false | null | package com.app.notes.ui.activity
import android.os.Bundle
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatActivity
import com.app.notes.R
import com.app.notes.database.entity.NoteModel
import com.app.notes.databinding.ActivityEditNoteBinding
import com.app.notes.databinding.DialogInfo... | 0 | Kotlin | 0 | 0 | b116c34c9da0ca0973adf0a477eaf92504f3545e | 4,975 | App-Notes | MIT License |
src-single/QColor.kt | nyabkun | 643,491,259 | false | {"Kotlin": 601504} | // 2023. nyabkun MIT LICENSE
@file:Suppress("UNCHECKED_CAST")
import java.awt.Color
import java.lang.StackWalker.StackFrame
import java.util.concurrent.locks.Lock
import java.util.concurrent.locks.ReentrantLock
import java.util.stream.Stream
import kotlin.concurrent.withLock
import kotlin.math.absoluteValue
import k... | 0 | Kotlin | 0 | 1 | 363b8b2ac476bf65eda2a07acc5546dd769cbc11 | 22,625 | qq-shell-color | MIT License |
shared/src/androidMain/kotlin/co/touchlab/droidcon/Koin.android.kt | touchlab | 140,843,272 | false | null | package co.touchlab.droidcon
import app.cash.sqldelight.db.SqlDriver
import co.touchlab.droidcon.application.service.NotificationService
import co.touchlab.droidcon.domain.repository.impl.SqlDelightDriverFactory
import co.touchlab.droidcon.service.AndroidNotificationService
import co.touchlab.droidcon.util.formatter.A... | 14 | null | 81 | 994 | 7d75c3215f2ba4111dcdbb0597e5a27818be91fe | 1,677 | DroidconKotlin | Apache License 2.0 |
imagek_glide/src/main/java/com/mozhimen/imagek/glide/impls/RoundedBorderTransformation.kt | mozhimen | 762,736,762 | false | {"Kotlin": 64603} | package com.mozhimen.imagek.glide.impls
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Paint
import androidx.annotation.Px
import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool
import com.bumptech.glide.load.resource.bitmap.CircleCrop
import com.mozhimen.imagek.glide.im... | 0 | Kotlin | 3 | 3 | 8b3ef7c7ddfcdef1959f1be48d3ef10ec0e52dd5 | 2,117 | AImageKit | Apache License 2.0 |
amani-sdk-v1/src/main/kotlin/ai/amani/sdk/extentions/FragmentExtentions.kt | AMANI-AI-ORG | 644,307,729 | false | {"Kotlin": 323663} | package ai.amani.sdk.extentions
import ai.amani.BuildConfig
import ai.amani.amani_sdk.R
import ai.amani.sdk.model.UploadResultModel
import android.app.AlertDialog
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.text.SpannableStringBuilder
import android.text.Spanned
import a... | 0 | Kotlin | 0 | 0 | 88e029c4aefbbaf3269212313b218e02aaa85863 | 5,414 | Android.SDK.UI | MIT License |
build-logic/convention/src/main/kotlin/convention/TargetSdk.kt | mrahulbw | 814,992,076 | false | {"Kotlin": 77471} | package convention
import com.android.build.api.dsl.ApplicationExtension
import com.android.build.api.dsl.LibraryExtension
import org.gradle.api.Project
const val targetSdkVersion = 34
internal fun Project.configureAndroidApplication(
extension: ApplicationExtension,
) {
extension.apply {
defaultConf... | 0 | Kotlin | 0 | 0 | 8005ac7972e37082f705740d1cf26899db3922ef | 563 | ToDoTrek | MIT License |
coil-core/src/commonMain/kotlin/coil3/request/RequestDelegate.kt | coil-kt | 201,684,760 | false | {"Kotlin": 1056518, "Shell": 2110, "JavaScript": 209} | package coil3.request
import coil3.annotation.MainThread
import kotlinx.coroutines.CancellationException
internal interface RequestDelegate {
/** Throw a [CancellationException] if this request should be cancelled before starting. */
@MainThread
fun assertActive() {}
/** Register all lifecycle obser... | 36 | Kotlin | 649 | 10,705 | 925633ad600ba27ecabca532751fa76520a240f5 | 732 | coil | Apache License 2.0 |
kdenticon/src/test/kotlin/com/github/thibseisel/kdenticon/rendering/IconGeneratorSpec.kt | thibseisel | 109,754,408 | false | null | /*
* Copyright 2017 <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 ... | 1 | Kotlin | 0 | 2 | 52696593537f83ba3c853894d5d83af0e27a7fdb | 2,067 | Kdenticon | Apache License 2.0 |
immersionbar/src/main/java/com/gyf/immersionbar/components/SimpleImmersionFragment.kt | jacyayj | 391,803,949 | false | null | package com.gyf.immersionbar.components
import android.content.res.Configuration
import android.os.Bundle
import androidx.fragment.app.Fragment
/**
* 为了方便在Fragment使用沉浸式请继承ImmersionFragment,
* 请在immersionBarEnabled方法中实现你的沉浸式代码,
* ImmersionProxy已经做了ImmersionBar.with(mFragment).destroy()了,所以不需要在你的代码中做这个处理了
* 如果不能继承,... | 0 | Kotlin | 0 | 1 | d562ff1c2179d760f7267a5a5077211e8c71d63e | 1,600 | ImmersionBar_Fork | Apache License 2.0 |
kanarinho-core/src/commonMain/kotlin/net/rafaeltoledo/kanarinho/formatter/CpfCnpjFormatter.kt | rafaeltoledo | 619,258,647 | false | null | package net.rafaeltoledo.kanarinho.formatter
import net.rafaeltoledo.kanarinho.formatter.Formatter.Patterns.NUMBERS_ONLY
class CpfCnpjFormatter : Formatter {
private val cpfFormatter = CpfFormatter()
private val cnpjFormatter = CnpjFormatter()
override fun format(rawValue: String): String {
val formatter:... | 2 | Kotlin | 0 | 0 | cd5d184920b5ec88e77a3c7d72064e0ec40fbc12 | 1,096 | kanarinho | Apache License 2.0 |
src/main/kotlin/online/miaostar/configuration/Configurations.kt | jiahua-lan | 451,730,114 | false | {"Kotlin": 52646, "Java": 3621} | package online.miaostar.configuration
import com.fasterxml.jackson.databind.Module
import com.fasterxml.jackson.datatype.hibernate5.Hibernate5Module
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module
import com.fasterxml.jackson.module.kotlin.KotlinFeature
import com.fasterxml.jackson.module.kotlin.KotlinModule
imp... | 0 | Kotlin | 0 | 0 | 9a376bf3410a9ca9f3b9facafd93071f066a8338 | 755 | BootstrapKt | MIT License |
src/main/kotlin/com/statsig/sdk/Utils.kt | statsig-io | 373,285,863 | false | null | package com.statsig.sdk
internal class Utils {
fun getTimeInMillis(): Long {
return System.currentTimeMillis()
}
}
| 0 | Kotlin | 3 | 5 | 1836e95985ec0df33332de9be6b72997b7b6dd1a | 132 | java-server-sdk | ISC License |
ethers-core/src/main/kotlin/io/ethers/core/types/Signature.kt | Kr1ptal | 712,963,462 | false | {"Kotlin": 1226497, "Solidity": 28233} | package io.ethers.core.types
import io.ethers.crypto.Hashing
import io.ethers.crypto.Secp256k1
import io.ethers.rlp.RlpDecodable
import io.ethers.rlp.RlpDecoder
import io.ethers.rlp.RlpEncodable
import io.ethers.rlp.RlpEncoder
import java.math.BigInteger
class Signature(
val r: BigInteger,
val s: BigInteger,
... | 8 | Kotlin | 1 | 5 | 39e4d998c702c1e4d7ffb4bf260dfaae7bdbb040 | 3,721 | ethers-kt | Apache License 2.0 |
core-ffmpeg/src/main/kotlin/cz/kotox/core/ffmpeg/model/video_composition.kt | kotoMJ | 170,925,605 | false | null | package cz.kotox.core.ffmpeg.model
import java.io.Serializable
enum class VideoTextAlignment() {
LEFT,
CENTER,
RIGHT
}
data class TextMeasurement(val textBoxWidth: Float, val lineBaselineList: List<Float>) : Serializable
data class VideoTextItem(
val text: String,
val translationX: Float,// Translation of top ... | 2 | Kotlin | 0 | 0 | 9a1346e49802fec162f4c64f7e17448c12a716f5 | 3,016 | kotox-android | MIT License |
app/src/main/java/eu/kanade/tachiyomi/data/database/models/MangaSimilarImpl.kt | CarlosEsco | 182,704,531 | false | null | package eu.kanade.tachiyomi.data.database.models
class MangaSimilarImpl : MangaSimilar {
override var id: Long? = null
override lateinit var manga_id: String
override lateinit var data: String
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (other == n... | 77 | Kotlin | 70 | 934 | 317243499e4131d3c3ee3604d81f8b69067414a4 | 697 | Neko | Apache License 2.0 |
app/src/main/java/com/dp/logcatapp/activities/SplashActivity.kt | Lilred1957 | 142,264,510 | true | {"Kotlin": 188258, "Java": 19532} | package com.dp.logcatapp.activities
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
open class SplashActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
startActivity(Intent(... | 0 | Kotlin | 0 | 0 | d938d8c81c95a980952bd9aa5a952c047ccddca2 | 449 | LogcatReader | MIT License |
korge/src/korlibs/korge/ui/UIOldScrollBar.kt | korlibs | 80,095,683 | false | {"Kotlin": 4210038, "C": 105670, "C++": 20878, "HTML": 3853, "Swift": 1371, "JavaScript": 1068, "Shell": 439, "CMake": 202, "Batchfile": 41, "CSS": 33} | package korlibs.korge.ui
import korlibs.image.bitmap.*
import korlibs.image.color.*
import korlibs.io.async.*
import korlibs.korge.input.*
import korlibs.korge.render.*
import korlibs.korge.style.*
import korlibs.korge.ui.UIOldScrollBar.*
import korlibs.korge.view.*
import korlibs.korge.view.property.*
import korlibs.... | 464 | Kotlin | 123 | 2,497 | 1a565007ab748e00a4d602fcd78f7d4032afaf0b | 6,562 | korge | Apache License 2.0 |
clients/graphql-kotlin-client-jackson/src/test/kotlin/com/expediagroup/graphql/client/jackson/data/scalars/UUIDConverters.kt | ExpediaGroup | 148,706,161 | false | {"Kotlin": 2410561, "MDX": 720089, "HTML": 12165, "JavaScript": 10447, "CSS": 297, "Dockerfile": 147} | /*
* Copyright 2022 Expedia, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 68 | Kotlin | 345 | 1,739 | d3ad96077fc6d02471f996ef34c67066145acb15 | 1,493 | graphql-kotlin | Apache License 2.0 |
app/src/main/java/com/example/tareaapiweatherdavid/database/Users.kt | davidcachero | 336,208,248 | false | null | package com.example.tareaapiweatherdavid.database
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
data class Users (
@PrimaryKey(autoGenerate = false)
val user: String,
val password: String,
val name: String
) | 0 | Kotlin | 0 | 1 | 87a369473c17f3f55520da16d9edc6c1929f97f4 | 247 | android-api-openWeatherMap | MIT License |
Jokes/app/src/main/java/dev/beewise/jokes/models/joke/Joke.kt | BeeWise | 613,737,271 | false | null | package dev.beewise.jokes.models.joke
import dev.beewise.jokes.models.like.Like
import dev.beewise.jokes.models.like.LikeType
import dev.beewise.jokes.models.user.User
import java.io.Serializable
class Joke(
var id: Int? = null,
var uuid: String? = null,
var text: String? = null,
var answer: String? =... | 0 | Kotlin | 0 | 1 | 658fe6be6e868fb3ffec5e0c684049d88f8febb3 | 2,891 | jokes-android-app | MIT License |
app/composeApp/src/androidMain/kotlin/com/pras/slugcourses/MainActivity.kt | prapooskur | 745,731,543 | false | {"Kotlin": 154130, "Python": 31413, "Swift": 655, "Shell": 179} | package com.pras.slugcourses
import App
import DriverFactory
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalContext
import andro... | 0 | Kotlin | 0 | 2 | 4212c3a346cc01b7df8434bf05e70f8480be3444 | 874 | SlugCourses | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/ChooseAlt.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,227 | icons | MIT License |
libnavui-voice/src/main/java/com/mapbox/navigation/ui/voice/api/VoiceInstructionsFilePlayerProvider.kt | Capotasto | 366,568,071 | true | {"Kotlin": 3040317, "Java": 72446, "Python": 11557, "Makefile": 6255, "Shell": 1686} | package com.mapbox.navigation.ui.voice.api
import android.content.Context
import com.mapbox.navigation.ui.voice.options.VoiceInstructionsPlayerOptions
internal object VoiceInstructionsFilePlayerProvider {
fun retrieveVoiceInstructionsFilePlayer(
context: Context,
accessToken: String,
lang... | 0 | null | 0 | 0 | 2d0c2165ca78a50931d17e3683e754e61da5e54e | 530 | mapbox-navigation-android | MIT License |
template/app/src/main/kotlin/app/ui/navigation/NavigationBarState.kt | kotlitecture | 738,057,168 | false | {"Kotlin": 482607, "HTML": 891} | package app.ui.navigation
import core.ui.navigation.NavigationDestination
import core.ui.state.StoreObject
import core.ui.state.StoreState
/**
* Represents the state of the navigation bar.
*
* @param pages The list of available pages in the navigation bar.
*/
data class NavigationBarState(
val pages: List<Nav... | 0 | Kotlin | 0 | 0 | 505c03c3247d41ea4d5318ad5d93484414a33f5e | 864 | template-android-compose | MIT License |
tests/codegen/waiter-tests/src/test/kotlin/com/test/FunctionAvgTest.kt | smithy-lang | 294,823,838 | false | null | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package com.test
import com.test.model.EntityLists
import com.test.model.GetFunctionAvgEqualsRequest
import com.test.model.GetFunctionAvgEqualsResponse
import com.test.utils.successTest
import com.test.w... | 36 | null | 26 | 82 | ad18e2fb043f665df9add82083c17877a23f8610 | 2,974 | smithy-kotlin | Apache License 2.0 |
src/main/kotlin/verrok/dualist/Helpers/Helpers.kt | Verrok | 238,850,068 | false | null | package verrok.dualist.Helpers
import org.bukkit.Bukkit
import org.bukkit.ChatColor
import java.util.logging.Logger
import kotlin.math.roundToInt
fun ticksFromSeconds(a: Float): Int {
return (a * 20).roundToInt()
}
fun ticksFromSeconds(a: Int): Int {
return a * 20
}
| 0 | Kotlin | 0 | 0 | f5b7ae243c882a12bd34a87eec5a045c6466ce79 | 280 | Dualist | MIT License |
quartz/src/main/java/com/vitorpamplona/quartz/crypto/nip06/Bip32SeedDerivation.kt | vitorpamplona | 587,850,619 | false | {"Kotlin": 5817027, "HTML": 836484, "Java": 189081, "Shell": 1488} | /**
* Copyright (c) 2024 <NAME>
*
* 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 without restriction, including without limitation the rights to use,
* copy, modify, merge, publish, di... | 172 | Kotlin | 157 | 1,154 | 6f31898cdc90f68c914605ce2c3466f05355c36b | 3,915 | amethyst | MIT License |
app/src/main/java/com/farenas/challengeml/ui/home/HomeViewModelFactory.kt | frarenas | 320,912,691 | false | null | package com.farenas.challengeml.ui.home
import androidx.lifecycle.*
import com.farenas.challengeml.data.repo.ProductRepository
class HomeViewModelFactory (
private var productRepository: ProductRepository
) : ViewModelProvider.NewInstanceFactory() {
@Suppress("UNCHECKED_CAST")
override fun <T : ViewModel... | 0 | Kotlin | 0 | 1 | 9c34e60b891b8f3d1fb0c7b95c823ded193859c5 | 417 | challengeML | The Unlicense |
app/src/main/java/com/example/cupcake/ui/HelpScreen.kt | steveb0300 | 796,999,052 | false | {"Kotlin": 41859} | package com.example.cupcake.ui
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.un... | 0 | Kotlin | 0 | 0 | 1a6cb1bb0a336481ea66dc62a259135c85408ec0 | 1,097 | ConvertMeasurements | MIT License |
GlUtilities/src/main/kotlin/com/cout970/glutilities/event/EventWindowIconify.kt | dmitrykolesnikovich | 612,635,848 | true | {"Kotlin": 233867} | package com.cout970.glutilities.event
class EventWindowIconify(window: Long, val iconified: Boolean) : Event(window) {
override fun toString(): String {
return "EventWindowIconify(iconified=$iconified)"
}
} | 0 | null | 0 | 0 | 069683154d3f516e04af8a7088662a68ce4d8fc4 | 223 | kLibraries | MIT License |
app/src/main/java/cc/iceq/rss/RssDetailActivity.kt | iceqing | 451,061,500 | false | null | package cc.iceq.rss
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.Menu
import android.view.MenuItem
import cc.iceq.rss.model.Feed
import cc.iceq.rss.service.ArticleServiceImpl
import cc.iceq.rss.util.ToastUtil
import kotlinx.android.synthetic.main.... | 0 | Kotlin | 1 | 4 | 88a0203ff39bbfc473c4627e0a21bbf6cae78c37 | 2,471 | RSSLand | Apache License 2.0 |
_router/router/src/test/java/io/androidalatan/router/JourneyMapperTest.kt | android-alatan | 466,507,427 | false | null | package io.androidalatan.router
import io.androidalatan.router.api.DeepLinkJourneyGuidance
import io.androidalatan.router.api.GuidanceBuilderFactory
import io.androidalatan.router.api.JourneyGuidance
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
import org.mockito.Mockito
class JourneyMapp... | 3 | Kotlin | 5 | 56 | 35b0ec7a89f8254db0af1830ac1de8a7124c6f09 | 1,207 | LifecycleComponents | MIT License |
app/src/main/java/com/nicolas/freegames/ui/home/components/CardGame.kt | aleixo-dev | 624,853,681 | false | {"Kotlin": 54378} | package com.nicolas.freegames.ui.home.components
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.f... | 4 | Kotlin | 0 | 3 | 62f8fc63b2c98f5d4f73f33ff6597ace3e9d73ea | 2,405 | InfoPlay | Apache License 2.0 |
ui/src/commonMain/kotlin/com/popalay/barnee/ui/icons/Search.kt | Popalay | 349,051,151 | false | null | /*
* Copyright (c) 2023 <NAME>
*
* 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 without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, dis... | 21 | Kotlin | 3 | 15 | 22cd50b851d7be321339e8674099aa01fe7e1c3f | 2,663 | Barnee | MIT License |
DailyMovie/app/src/main/java/com/example/dailymovie/models/MovieModel.kt | jesus33lcc | 794,693,138 | false | {"Kotlin": 55973, "Java": 5856} | package com.example.dailymovie.models
import android.os.Parcel
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize
@Parcelize
data class MovieModel(
@SerializedName("id")
val id: Int,
@SerializedName("title")
val title: String,
@Serial... | 0 | Kotlin | 0 | 0 | 135bcf1bf35433c827ab1b0bcd09150bb8c3dc58 | 518 | DailyMovie | MIT License |
app/src/main/java/nl/appt/database/History.kt | appt-org | 277,572,532 | false | {"Kotlin": 52581} | package nl.appt.database
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "history")
data class History (
@PrimaryKey(autoGenerate = true)
val id: Long = 0,
@ColumnInfo(name = "created_at")
val createdAt: Long = System.currentTimeMillis()... | 0 | Kotlin | 0 | 2 | 7b27473f2bdadc58e5dda8694ef2d362aefd0b95 | 556 | appt-android | MIT License |
rd-kt/rd-gen/src/test/kotlin/com/jetbrains/rd/generator/test/cases/generator/testModels/Extension.kt | JetBrains | 107,686,809 | false | {"C#": 1845849, "Kotlin": 1605734, "C++": 1087156, "CMake": 45400, "Batchfile": 8969, "C": 688, "Shell": 672, "Dockerfile": 152} | package com.jetbrains.rd.generator.test.cases.generator.testModels
import com.jetbrains.rd.generator.nova.*
import com.jetbrains.rd.generator.nova.csharp.CSharp50Generator
import com.jetbrains.rd.generator.nova.kotlin.Kotlin11Generator
import com.jetbrains.rd.generator.test.cases.generator.csharp.CSharpExtensionTest
i... | 36 | C# | 53 | 384 | cbf1373f7a764d0aeccee3146c814a69cea34ae7 | 3,866 | rd | Apache License 2.0 |
Utils/src/main/java/com/el3asas/utils/utils/bottomNavigationUtils.kt | AhmedSheref96 | 472,786,377 | false | null | package com.el3asas.utils.utils
import android.animation.Animator
import android.view.View
import com.google.android.material.bottomappbar.BottomAppBar
import com.google.android.material.floatingactionbutton.FloatingActionButton
fun hideBottomNavigationView(
view: View, fab: FloatingActionButton? = null
) {
... | 0 | Kotlin | 0 | 0 | 5a357ccd2ebda47fd4783afdc326eb715d158aeb | 1,313 | My-Utils | Apache License 2.0 |
strikt-core/src/test/kotlin/strikt/Chained.kt | raniejade | 135,811,047 | true | {"Kotlin": 75266} | package strikt
import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.dsl.describe
import org.jetbrains.spek.api.dsl.it
import strikt.api.expect
import strikt.assertions.isA
import strikt.assertions.isEqualTo
import strikt.assertions.isNotNull
import strikt.assertions.isNull
import strikt.assertions.isUpperC... | 0 | Kotlin | 0 | 0 | 6df04e2187a84ee792738c40b5e59f99a947191a | 901 | strikt | Apache License 2.0 |
shared/src/commonMain/kotlin/com/joetr/sync/sphere/util/Format.kt | j-roskopf | 712,951,839 | false | {"Kotlin": 1502373, "Ruby": 3083, "Shell": 1352, "Swift": 588} | package com.joetr.sync.sphere.util
import kotlinx.datetime.LocalDateTime
expect fun LocalDateTime.format(format: String): String
expect fun formatTime(hour: Int, minute: Int): String
| 0 | Kotlin | 0 | 9 | 060c90e6fbdbd80cd9ec4393ee536fbf1a2d5479 | 186 | SyncSphere | MIT License |
src/main/java/dev/kensa/state/Party.kt | kensa-dev | 515,073,953 | false | {"Kotlin": 285146, "ANTLR": 97482, "JavaScript": 48188, "Java": 38466, "SCSS": 6515, "Makefile": 1815, "HTML": 427} | package dev.kensa.state
interface Party {
fun asString(): String
} | 5 | Kotlin | 1 | 7 | b236cbee0e538f20e3c7d9790ff198141ad1bde7 | 71 | kensa | Apache License 2.0 |
Android/app/src/main/java/com/gsm/alimsam/manager/RetrofitHelper.kt | Im-Tae | 229,648,469 | false | null | package com.gsm.alimsam.manager
import io.reactivex.Observable
import retrofit2.http.GET
import retrofit2.http.Query
interface RetrofitHelper {
@GET("outing/getOutingList?")
fun getOutingData(@Query("date") dateInfo: String, @Query("class") studentInfo: String): Observable<ArrayList<Outing>>
@GET("moving... | 0 | Kotlin | 1 | 0 | b2a89cf88526629d978b41a8e3d0776b7ea87d95 | 463 | Alimsam-Android | MIT License |
serializer/core/src/main/kotlin/strategy/InstanceResponseTypeStrategy.kt | holixon | 713,986,002 | false | {"Kotlin": 168650, "Shell": 2466} | package io.holixon.axon.avro.serializer.strategy
import _ktx.ResourceKtx
import io.toolisticon.kotlin.avro.AvroKotlin
import io.toolisticon.kotlin.avro.model.wrapper.AvroSchema
import io.toolisticon.kotlin.avro.serialization.strategy.GenericRecordSerializationStrategy
import io.toolisticon.kotlin.avro.value.Name.Compa... | 17 | Kotlin | 0 | 6 | 2e05ba4f7ecbd2c8daf47df280c0a80203ffbaca | 1,405 | axon-avro | Apache License 2.0 |
platform/src/main/kotlin/com/samsung/healthcare/platform/enums/ActivityType.kt | S-HealthStack | 520,365,362 | false | null | package com.samsung.healthcare.platform.enums
enum class ActivityType(val value: String) {
TAPPING_SPEED("tappingSpeed"),
REACTION_TIME("reactionTime"),
GUIDED_BREATHING("guided_breathing"),
RANGE_OF_MOTION("rangeOfMotion"),
GAIT_AND_BALANCE("gaitAndBalance"),
STROOP_TEST("stroopTest")
}
| 2 | Kotlin | 2 | 11 | 0c36dfe6f310f7b37c6537e262264f1f3fee2202 | 314 | backend-system | Apache License 2.0 |
tabler-icons/src/commonMain/kotlin/compose/icons/tablericons/MoodConfuzed.kt | DevSrSouza | 311,134,756 | false | null | package compose.icons.tablericons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.compose.ui.graphic... | 17 | null | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 2,712 | compose-icons | MIT License |
plugins/settings-sync/src/com/intellij/settingsSync/config/SettingsSyncPluginsGroup.kt | JetBrains | 2,489,216 | false | null | package com.intellij.settingsSync.config
import com.intellij.ide.plugins.PluginManagerCore
import com.intellij.settingsSync.SettingsSyncBundle.message
import org.jetbrains.annotations.Nls
internal class SettingsSyncPluginsGroup : SettingsSyncSubcategoryGroup {
private val storedDescriptors = HashMap<String, Setting... | 186 | null | 4323 | 13,182 | 26261477d6e3d430c5fa50c42b80ea8cfee45525 | 1,117 | intellij-community | Apache License 2.0 |
sample-site/src/main/java/lib/filters/Mustache.kt | opatry | 327,147,143 | false | null | package lib.filters
import com.github.mustachejava.DefaultMustacheFactory
import net.opatry.nanoc.kt.core.Filter
import net.opatry.nanoc.kt.core.Repository
import java.io.StringReader
import java.io.StringWriter
class Mustache internal constructor(repository: Repository) : Filter(repository, "Mustache") {
privat... | 0 | Kotlin | 0 | 0 | cdf946e5ec4cff6a9653f224979e1e6442a6e9d9 | 715 | nanoc-kt | Apache License 2.0 |
executions/graphql-kotlin-dataloader-instrumentation/src/main/kotlin/com/expediagroup/graphql/dataloader/instrumentation/syncexhaustion/state/SyncExecutionExhaustedState.kt | ExpediaGroup | 148,706,161 | false | {"Kotlin": 2410561, "MDX": 720089, "HTML": 12165, "JavaScript": 10447, "CSS": 297, "Dockerfile": 147} | /*
* Copyright 2024 Expedia, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 68 | Kotlin | 345 | 1,739 | d3ad96077fc6d02471f996ef34c67066145acb15 | 7,924 | graphql-kotlin | Apache License 2.0 |
src/main/kotlin/rocks/marcelgross/wishlist/tag/TagResolver.kt | marcelgross90 | 192,317,933 | false | null | package rocks.marcelgross.wishlist.tag
import com.coxautodev.graphql.tools.GraphQLResolver
import org.springframework.stereotype.Component
import rocks.marcelgross.wishlist.entry.EntryRepository
import rocks.marcelgross.wishlist.user.UserRepository
@Component
class TagResolver(
private val userRepository: UserRep... | 0 | Kotlin | 0 | 0 | 70caa453c16d44ea02762f4eb4fee2300693a3cf | 484 | graphql-playground | Apache License 2.0 |
kord-extensions/src/main/kotlin/com/kotlindiscord/kord/extensions/pagination/pages/Page.kt | Tom-The-Geek | 375,451,054 | true | {"Kotlin": 459547, "Python": 1793, "Groovy": 777} | package com.kotlindiscord.kord.extensions.pagination.pages
import dev.kord.common.Color
import dev.kord.rest.builder.message.EmbedBuilder
/**
* Representation of a single paginator page. You can subclass this to customize it if you wish!
*
* @param description Required: Page body.
* @param title Optional: Embed t... | 0 | null | 0 | 0 | c3c7dcfa33c688058c72076ef383c6f40791b795 | 2,996 | kord-extensions | MIT License |
src/main/kotlin/br/dev/profbrunolopes/common/exceptions/DuplicateRecordException.kt | brunolopesjn | 735,105,869 | false | {"Kotlin": 9030} | package br.dev.profbrunolopes.common.exceptions
class DuplicateRecordException(message: String) : RuntimeException(message) | 0 | Kotlin | 0 | 0 | f8c80e848558721c1c5cee461bbb32a3c8d5282e | 124 | kms | MIT License |
app/src/main/kotlin/com/absinthe/libchecker/utils/Toasty.kt | dingbuoyi | 347,285,270 | true | {"Kotlin": 459503, "Roff": 38010, "Java": 8008} | package com.absinthe.libchecker.utils
import android.annotation.SuppressLint
import android.content.Context
import android.view.Gravity
import android.view.LayoutInflater
import android.widget.TextView
import android.widget.Toast
import androidx.annotation.StringRes
import com.absinthe.libchecker.R
import java.lang.re... | 0 | null | 0 | 0 | 1bc4115a2971e354dfb4595ee48fe60cbbcf1fc7 | 1,437 | LibChecker | Apache License 2.0 |
socket-interface/src/test/kotlin/com/github/prologdb/net/AsyncByteChannelDelimitedProtobufReaderTest.kt | prologdb | 113,687,585 | false | null | package com.github.prologdb.net
import com.github.prologdb.io.util.ByteArrayOutputStream
import com.github.prologdb.net.async.AsyncByteChannelDelimitedProtobufReader
import com.github.prologdb.net.v1.messages.Query
import com.github.prologdb.net.v1.messages.QueryInitialization
import com.github.prologdb.net.v1.message... | 10 | Kotlin | 0 | 2 | 788ab81bf872fa82c86f89bcbae8a13247e77e05 | 4,620 | prologdb | MIT License |
app/src/main/java/com/jcastrejon/rssreader/data/sources/local/LocalDataSource.kt | jcastre | 146,464,216 | false | null | package com.jcastrejon.rssreader.data.sources.local
import arrow.core.Either
import com.jcastrejon.rssreader.data.sources.DataSource
import com.jcastrejon.rssreader.domain.models.DomainError
import com.jcastrejon.rssreader.domain.models.FeedItem
/**
* Implementation of a data source with local persistence
*/
class ... | 0 | Kotlin | 0 | 1 | 4864353d6c0d52e76781642f24e33cd982ed2c01 | 570 | RssReader | Apache License 2.0 |
app/src/main/java/com/hardiktrivedi/letthemusicplay/hilt/AlbumViewModelModule.kt | hardik-trivedi | 381,812,894 | false | null | package com.hardiktrivedi.letthemusicplay.hilt
import com.hardiktrivedi.letthemusicplay.api.AlbumApiService
import com.hardiktrivedi.letthemusicplay.data.repository.AlbumRepository
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ViewModelComponent
import d... | 0 | Kotlin | 0 | 0 | 7d8d9776fe14477017aa0a749a7e617de5794948 | 613 | LetTheMusicPlay | Apache License 2.0 |
http-api-client/src/commonMain/kotlin/au/com/redcrew/apisdkcreator/httpclient/marshaller.kt | RedCrewOS | 370,915,550 | false | null | package au.com.redcrew.apisdkcreator.httpclient
import arrow.core.*
import arrow.core.computations.either
import arrow.core.computations.option
import au.com.redcrew.apisdkcreator.httpclient.kotlin.GenericTypeCurriedFunction
typealias Marshaller = suspend (Any) -> Either<SdkError, UnstructuredData>
typealias Unmarsha... | 0 | Kotlin | 0 | 1 | dc60391269d4961a36b396264dd85c43e6b83ce9 | 7,176 | api-sdk-creator-kotlin | MIT License |
app/src/main/java/com/breezeisabgolfsm/features/averageshop/model/ShopActivityResponse.kt | DebashisINT | 764,494,737 | false | {"Kotlin": 14193578, "Java": 1003903} | package com.breezeisabgolfsm.features.averageshop.model
import com.breezeisabgolfsm.base.BaseResponse
/**
* Created by Pratishruti on 07-12-2017.
*/
class ShopActivityResponse:BaseResponse(){
var toal_shopvisit_count:String?=null
var avg_shopvisit_count:String?=null
var date_list:List<ShopActivityRespon... | 0 | Kotlin | 0 | 0 | ad2738b0b422111993af86ef236826c9c679abda | 339 | SatIsabgol | Apache License 2.0 |
app/src/main/java/ru/tech/cookhelper/domain/repository/UserRepository.kt | T8RIN | 483,296,940 | false | null | package ru.tech.cookhelper.domain.repository
import kotlinx.coroutines.flow.Flow
import ru.tech.cookhelper.core.Action
import ru.tech.cookhelper.domain.model.Post
import ru.tech.cookhelper.domain.model.Recipe
import ru.tech.cookhelper.domain.model.Topic
import ru.tech.cookhelper.domain.model.User
import java.io.File
... | 1 | Kotlin | 10 | 91 | cee8f8d8cd6bfc53e88c461edc1c9aaf43ce18c7 | 1,748 | CookHelper | Apache License 2.0 |
src_old/main/kotlin/glm/Quat.kt | FauxKiwi | 315,724,386 | false | null | package glm
open class QuatT<T>(var re: T, var i: T, var j: T, var k: T) {
inline var w get() = re; set(v) { re = v }
inline var x get() = i; set(v) { i = v }
inline var y get() = j; set(v) { j = v }
inline var z get() = k; set(v) { k = v }
}
class Quat(re: Float, i: Float, j: Float, k: Float) : QuatT... | 0 | Kotlin | 0 | 2 | b384f2a430c0f714237e07621a01f094d9f5ee75 | 1,929 | Pumpkin-Engine | Apache License 2.0 |
src/main/kotlin/io/github/kjm015/newkyle/util/AppConstants.kt | kjm015 | 139,907,145 | false | {"Kotlin": 79040} | package io.github.kjm015.newkyle.util
import java.nio.CharBuffer
/**
* This class contains a lot of the constant values that are used across the application.
* It's mostly a lot of String values for stuff that Kyle says over and over again.
*
* @author kjm015
* @since 01/20/2019
*/
object AppConstants {
co... | 1 | Kotlin | 1 | 5 | 095eadbd21168d81ab2bf4717208017286763be6 | 1,132 | New-Kyle | MIT License |
src/zh/wuqimanga/src/eu/kanade/tachiyomi/extension/zh/wuqimanga/WuqiManga.kt | einstein95 | 488,091,134 | true | {"Kotlin": 4596403, "Shell": 3179} | package eu.kanade.tachiyomi.extension.zh.wuqimanga
import android.app.Application
import android.content.SharedPreferences
import androidx.preference.ListPreference
import androidx.preference.PreferenceScreen
import com.squareup.duktape.Duktape
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.source.C... | 0 | Kotlin | 0 | 0 | bfa9613d2677bec1cbbb2842a6ed3a381265c10d | 6,794 | tachiyomi-extensions | Apache License 2.0 |
adaptive-ui/src/commonMain/kotlin/hu/simplexion/adaptive/ui/common/fragment/field.kt | spxbhuhb | 788,711,010 | false | {"Kotlin": 1965729, "Java": 21738, "HTML": 5913, "JavaScript": 2910, "Shell": 687} | /*
* Copyright © 2020-2024, Simplexion, Hungary and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package hu.simplexion.adaptive.ui.common.fragment
import hu.simplexion.adaptive.foundation.AdaptiveExpect
import hu.simplexion.adaptive.foundation.binding.AdaptiveStateVariableBinding
... | 22 | Kotlin | 0 | 1 | 3914e674d8ce9bedfb3d71628db639fcebf42bc6 | 772 | adaptive | Apache License 2.0 |
src/main/kotlin/org/smarthata/alice/model/smarthome/State.kt | smarthata | 127,398,623 | false | {"Java": 59208, "Kotlin": 48264, "HTML": 3021, "Makefile": 2129} | package org.smarthata.alice.model.smarthome
data class State(
val instance: String,
val value: Boolean? = null,
) | 1 | null | 1 | 1 | 53c35a9946f3179150a06013fe9738f95178cb94 | 122 | smarthata-java-server | Apache License 2.0 |
src/main/kotlin/repository/ImageRepository.kt | kaleidot725 | 824,839,346 | false | {"Kotlin": 51489} | package repository
import androidx.compose.ui.graphics.Color
import com.russhwolf.settings.ObservableSettings
import com.russhwolf.settings.set
import data.PreferenceKeys
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import kotlinx.serialization.encodeToString
import kotlinx.serialization... | 0 | Kotlin | 0 | 0 | 261f8ad2313ab84dde2f093504eb625ef142ed4c | 6,565 | EyeCacthGenerator | MIT License |
src/main/kotlin/com/ivieleague/dejanko/orm/QueryBuilder.kt | UnknownJoe796 | 340,833,944 | false | null | package com.ivieleague.dejanko.orm
import com.github.jasync.sql.db.ResultSet
import com.github.jasync.sql.db.RowData
import com.ivieleague.dejanko.type
import kotlin.math.exp
import kotlin.reflect.KProperty1
class QueryBuilder(val from: DBTable) {
val select = ArrayList<DBColumn<*>>()
val joins = ArrayList<Jo... | 0 | Kotlin | 0 | 0 | 831febf88f9def35107cf8379fd88c16e677a72d | 5,057 | dejanko | MIT License |
multisrc/overrides/dooplay/animeonlineninja/src/extractors/UploadExtractor.kt | tonmoyislam250 | 672,950,261 | false | null | package eu.kanade.tachiyomi.animeextension.es.animeonlineninja.extractors
import eu.kanade.tachiyomi.animesource.model.Video
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.util.asJsoup
import okhttp3.Headers
import okhttp3.OkHttpClient
class UploadExtractor(private val client: OkHttpClient) {
f... | 0 | Kotlin | 0 | 0 | 81583edf7d545a792080de276830bae6553ca48a | 905 | aniyomi-extensions | Apache License 2.0 |
delrey-daemon/src/main/kotlin/dev/d1s/delrey/daemon/di/Module.kt | d1snin | 697,357,995 | false | {"Kotlin": 60727, "Shell": 545, "Dockerfile": 128} | package dev.d1s.delrey.daemon.di
import dev.d1s.delrey.client.masterClient
import dev.d1s.delrey.daemon.DelreyDaemonApplication
import dev.d1s.delrey.daemon.config.ApplicationConfig
import dev.d1s.delrey.daemon.config.ApplicationConfigFactory
import dev.d1s.delrey.daemon.config.DefaultApplicationConfigFactory
import d... | 0 | Kotlin | 0 | 0 | 1b093b1f2c1e8935ffa7fa16fd4a1d6c9d0d4e79 | 1,490 | delrey | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/prisonertonomisupdate/activities/ActivitiesResource.kt | ministryofjustice | 445,140,246 | false | null | package uk.gov.justice.digital.hmpps.prisonertonomisupdate.activities
import io.swagger.v3.oas.annotations.Hidden
import org.springframework.http.HttpStatus
import org.springframework.security.access.prepost.PreAuthorize
import org.springframework.web.bind.annotation.DeleteMapping
import org.springframework.web.bind.a... | 0 | Kotlin | 0 | 2 | cb523828b23bbf57983c5c99c67fee2821ef8a51 | 1,142 | hmpps-prisoner-to-nomis-update | MIT License |
src/main/java/edu/isi/gaia/AIFUtils.kt | maxthomas | 183,950,084 | true | {"Java": 920413, "Kotlin": 135806, "Python": 119219, "Makefile": 2739, "Dockerfile": 1721, "Shell": 1630, "Batchfile": 791} | package edu.isi.gaia
import com.fasterxml.jackson.databind.ObjectMapper
import com.google.common.collect.ImmutableList
import edu.isi.gaia.AIFUtils.SparqlQueries.TYPE_QUERY
import org.apache.jena.query.QueryExecutionFactory
import org.apache.jena.query.QueryFactory
import org.apache.jena.query.QuerySolutionMap
import ... | 0 | Java | 0 | 0 | 9b2708bdb1d8872332273367af854743f9f4856a | 31,780 | AIDA-Interchange-Format | MIT License |
android/app/src/main/java/uk/co/cerihughes/mgm/android/ui/AlbumArtViewModel.kt | ceri-rantmedia | 178,215,911 | false | {"XML": 55, "Text": 1, "Ignore List": 3, "Markdown": 2, "Shell": 6, "Gradle": 3, "Java Properties": 2, "Batchfile": 1, "Proguard": 1, "Kotlin": 33, "JSON": 15, "Maven POM": 1, "Java": 42, "Java Server Pages": 1, "OpenStep Property List": 3, "Swift": 44, "Objective-C": 6, "C": 3} | package uk.co.cerihughes.mgm.android.ui
import android.arch.lifecycle.ViewModel
import android.support.annotation.DrawableRes
import uk.co.cerihughes.mgm.android.R
import uk.co.cerihughes.mgm.android.model.Image
open class AlbumArtViewModel(private val images: List<Image>) : ViewModel() {
@DrawableRes
fun pl... | 1 | null | 1 | 1 | 19645109eb9dd6682edb574b062b12b7a59f981a | 751 | mgm | Apache License 2.0 |
src/jvmMain/kotlin/ru/tanexc/application/presentation/ui/baseUiRoute.kt | Tanexc | 667,134,735 | false | null | package ru.tanexc.application.presentation.ui
import constants.Deployment
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
fun Routing.baseUiRoute() {
get(Deployment.BASE_UI_URL) {
call.respondText(
this::class.java.clas... | 0 | Kotlin | 0 | 2 | d8219c60de5c350c7b6b1d5031166deb0063e557 | 435 | ComposeWebCakes | Apache License 2.0 |
challenges/specialPolynomial/kotlin/specialPolynomial.kt | jimmynguyen | 110,467,401 | false | null | fun main(args:Array<String>) {
val input0 = intArrayOf(2, 10, 1, 3)
val input1 = intArrayOf(5, 111111110, 100, 140)
val expectedOutput = intArrayOf(1, 7, 99, 4)
assert(input0.size == expectedOutput.size, { "# input0 = ${input0.size}, # expectedOutput = ${expectedOutput.size}" })
assert(input1.size == expectedOutpu... | 3 | Java | 1 | 4 | f4924fcffdb4ff14930618bb1a781e4e02e9aa09 | 907 | codefights | MIT License |
src/main/kotlin/com/robotutor/iot/accounts/controllers/BoardController.kt | IOT-echo-system | 768,195,181 | false | {"Kotlin": 109747, "Shell": 609, "HTML": 428, "Dockerfile": 130} | package com.robotutor.iot.accounts.controllers
import com.robotutor.iot.accounts.controllers.views.AddBoardRequest
import com.robotutor.iot.accounts.controllers.views.BoardView
import com.robotutor.iot.accounts.services.BoardService
import com.robotutor.iot.utils.filters.annotations.RequirePolicy
import com.robotutor.... | 0 | Kotlin | 0 | 0 | 649e51497e9e9d281fe47371af24880f3fd559ee | 1,235 | cloud-backend-service | MIT License |
app/src/main/java/com/commit451/gitlab/event/CloseDrawerEvent.kt | Commit451 | 39,787,724 | false | null | package com.commit451.gitlab.event
/**
* Close the drawer!
*/
class CloseDrawerEvent
| 6 | Kotlin | 27 | 248 | 504b5311c00ac2b87ba728d74925c6f46e6c5781 | 88 | LabCoat | Apache License 2.0 |
service/src/main/kotlin/io/provenance/explorer/web/v2/AccountControllerV2.kt | provenance-io | 332,035,574 | false | {"Kotlin": 1058155, "PLpgSQL": 316369, "Shell": 679, "Python": 642} | package io.provenance.explorer.web.v2
import io.provenance.explorer.service.AccountService
import io.swagger.annotations.Api
import io.swagger.annotations.ApiOperation
import io.swagger.annotations.ApiParam
import org.springframework.http.MediaType
import org.springframework.http.ResponseEntity
import org.springframew... | 31 | Kotlin | 3 | 6 | bba7b8e7ed8279e41718704df7ad90c45e9c50c0 | 3,950 | explorer-service | Apache License 2.0 |
app/src/androidTest/java/prieto/fernando/jokesapp/utils/TestConfigurationRule.kt | ferPrieto | 216,438,304 | false | null | package prieto.fernando.jokesapp.utils
import androidx.test.core.app.launchActivity
import org.junit.rules.TestWatcher
import org.junit.runner.Description
import prieto.fernando.jokesapp.view.MainActivity
import prieto.fernando.jokesapp.webmock.injectTestConfiguration
class TestConfigurationRule : TestWatcher() {
... | 0 | Kotlin | 1 | 13 | aecbd0054faa15beb29aac1c694eff9db0179432 | 490 | MVVM-Modularized | Apache License 2.0 |
contracts/src/main/kotlin/com/example/cordacashlessmediclaim/roles/CustomRole.kt | celiakwan | 389,336,585 | false | null | package com.example.cordacashlessmediclaim.roles
import net.corda.core.serialization.CordaSerializable
@CordaSerializable
enum class CustomRole {
INSURER_CLAIMS_OFFICER,
INSURER_FINANCE_CLERK,
HOSPITAL_REGISTRAR,
HOSPITAL_FINANCE_CLERK,
PATIENT
} | 0 | Kotlin | 0 | 0 | 148a7f5fc48dc2447afe0e90edd97bbb5741cbe2 | 268 | corda-bn-cashless-mediclaim | MIT License |
android/app/src/main/kotlin/ui/components/ErrorTryAgain.kt | tunaitis | 749,411,629 | false | {"Kotlin": 95785, "Swift": 35068} | package weatherstations.ui.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
import androidx.compose.fo... | 0 | Kotlin | 0 | 2 | cd4ca8fb1d9da847ca27235b8198f2a8fa2abee0 | 1,483 | weatherstations | MIT License |
test/nl/hannahsten/texifyidea/reference/LatexLabelCompletionTest.kt | dandoh | 239,873,541 | true | {"Gradle": 2, "Java Properties": 1, "Markdown": 8, "Shell": 1, "Text": 2, "Ignore List": 1, "Batchfile": 1, "YAML": 2, "Kotlin": 419, "Java": 126, "TeX": 19, "BibTeX": 2, "INI": 1, "XML": 6, "JFlex": 2, "CODEOWNERS": 1, "SVG": 74, "HTML": 72, "Python": 1} | package nl.hannahsten.texifyidea.reference
import com.intellij.codeInsight.completion.CompletionType
import com.intellij.testFramework.fixtures.BasePlatformTestCase
import nl.hannahsten.texifyidea.file.LatexFileType
import org.junit.Test
class LatexLabelCompletionTest : BasePlatformTestCase() {
override fun getTe... | 0 | null | 0 | 0 | 91abd821a6af6c74c4fc0285fc645bb711346dcb | 2,612 | TeXiFy-IDEA | MIT License |
backend/src/main/kotlin/com/cookbyte/backend/repository/ReviewRepository.kt | matejapetkovska | 708,374,701 | false | {"Kotlin": 48051, "TypeScript": 13194, "CSS": 9369, "HTML": 8357, "JavaScript": 309} | package com.cookbyte.backend.repository
import com.cookbyte.backend.domain.Review
import org.springframework.data.jpa.repository.JpaRepository
interface ReviewRepository: JpaRepository<Review, Long> | 0 | Kotlin | 0 | 0 | bf3407094aac2e3c15bfa0b5e63e30ff9bbb776e | 200 | CookByte | MIT License |
plugins/kotlin/idea/tests/testData/multiplatform/sealedInheritorsInComplexModuleStructure2/common/common.kt | ingokegel | 72,937,917 | false | null | package foo
/*
* - Sealed1 [common], actualized in [main]
* - Sealed2 [common], actualized in [intermediate]
* - Derived11 [common]
* - Derived12 [intermediate]
* - Derived1 [common]
* - Derived2 [intermediate]
* - Derived3 [main]
*/
expect sealed class <!LINE_MARKER("descr='Has actuals in main... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 660 | intellij-community | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.