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/mrwhoknows/csgeeks/ui/home_page/login/LoginFragment.kt | mrwhoknows55 | 284,306,294 | false | null | package com.mrwhoknows.csgeeks.ui.home_page.login
import android.content.Context
import android.os.Bundle
import android.util.Log
import android.view.View
import android.view.inputmethod.InputMethodManager
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import com.google.and... | 0 | null | 2 | 5 | ba7c5af6f98c579cbba7ad9706150cadd7be4141 | 3,895 | csgeeks-blog-app | MIT License |
v1/src/main/kotlin/com/example/forsubmit/domain/post/controller/PostController.kt | jhhong0509 | 433,380,334 | false | {"Kotlin": 84514, "Groovy": 81151, "Vim Snippet": 690} | package com.example.forsubmit.domain.post.controller
import com.example.forsubmit.domain.post.payload.request.CreatePostRequest
import com.example.forsubmit.domain.post.payload.request.UpdatePostRequest
import com.example.forsubmit.domain.post.payload.response.DeletePostResponse
import com.example.forsubmit.domain.pos... | 5 | Kotlin | 4 | 29 | 3f8effaca61e6d8f328e3aca7356cbd1d67335b4 | 1,782 | Kopring-Best-Practice | Apache License 2.0 |
examples/welcome/login/src/main/java/com/motorro/statemachine/login/di/LoginEntryPoint.kt | motorro | 512,762,123 | false | {"Kotlin": 102349} | /*
* Copyright 2022 <NAME>.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, so... | 1 | Kotlin | 5 | 42 | 5f6cbf2d867f027ce852fe90d38cc077d22308f7 | 1,082 | CommonStateMachine | Apache License 2.0 |
app/src/main/java/com/chocolate/triviatitans/TriviaGameNavGraph.kt | team-chocolate-cake | 661,943,976 | false | null | package com.chocolate.triviatitans
import android.provider.DocumentsContract.Root
import androidx.compose.runtime.Composable
import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navig... | 0 | Kotlin | 3 | 1 | 94e74e9943f25d94a64311d898baf4b07fabfc63 | 1,932 | TriviaTitans | MIT License |
native/swift/swift-export-standalone/testData/package_flattening/input_root/foo.kt | JetBrains | 3,432,266 | false | {"Kotlin": 78866546, "Java": 6826073, "Swift": 4062833, "C": 2609426, "C++": 1970234, "Objective-C++": 171723, "JavaScript": 138329, "Python": 59488, "Shell": 35024, "TypeScript": 22800, "Objective-C": 22132, "Lex": 21352, "Groovy": 17400, "Batchfile": 11746, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9857, "EJS": 5241... | package org.kotlin.foo
typealias Typealias = Int
class Clazz
fun function(arg: Int) = arg
var variable: Int = 0
val constant: Int = 0 | 178 | Kotlin | 5638 | 48,021 | 093e432a97b4e7af469bc55a3d321dec964bc6de | 138 | kotlin | Apache License 2.0 |
ok-marketplace-mp-transport-mp/src/commonMain/kotlin/ru/otus/otuskotlin/marketplace/transport/kmp/models/demands/MpResponseDemandList.kt | otuskotlin | 323,966,359 | false | null | package ru.otus.otuskotlin.marketplace.transport.kmp.models.demands
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import ru.otus.otuskotlin.marketplace.transport.kmp.models.common.*
@Serializable
@SerialName("MpResponseDemandList")
data class MpResponseDemandList(
override val ... | 0 | Kotlin | 0 | 1 | 5f05fe658504dfa5d7300e3f0f523d250ff6ce31 | 782 | 202012-otuskotlin-marketplace | MIT License |
src/main/kotlin/main/RepoWatcher.kt | flobaader | 119,988,956 | false | null | package main
import model.KnownRepo
import networking.GitHubChecker
import networking.SQLConnection
import networking.trigger
import java.util.*
import kotlin.concurrent.timer
/**
* This is the main Application class
*/
class RepoWatcher {
companion object {
@JvmStatic
fun main(args: Array<Stri... | 0 | Kotlin | 0 | 0 | 310851d87382be3a26226c9749366f70e1469b97 | 1,784 | githubcommittrigger | Apache License 2.0 |
inappmessaging/src/main/java/com/rakuten/tech/mobile/inappmessaging/runtime/data/customjson/CustomJsonDeserializer.kt | rakutentech | 253,402,688 | false | {"Kotlin": 738651, "Shell": 1497, "Ruby": 63} | package com.rakuten.tech.mobile.inappmessaging.runtime.data.customjson
import com.google.gson.JsonDeserializationContext
import com.google.gson.JsonDeserializer
import com.google.gson.JsonElement
import com.rakuten.tech.mobile.inappmessaging.runtime.utils.InAppLogger
import java.lang.reflect.Type
internal class Custo... | 1 | Kotlin | 10 | 7 | 355909da73f163ef90ff72944447d7a3cbe5ae9f | 1,354 | android-inappmessaging | MIT License |
src/main/kotlin/me/camdenorrb/kportals/commands/sub/SubCmd.kt | camdenorrb | 85,821,749 | false | null | package me.camdenorrb.kportals.commands.sub
import me.camdenorrb.kportals.KPortals
import org.bukkit.command.CommandSender
/**
* Created by camdenorrb on 3/20/17.
*/
abstract class SubCmd(val arg: String, val usage: String, val permission: String) {
abstract fun execute(sender: CommandSender, plugin: KPortals, a... | 0 | Kotlin | 0 | 2 | d2d7312596758972bfbe89c120a0d176359e322a | 350 | KPortals | MIT License |
app/src/main/java/com/muvi/view/widget/StackViewWidget.kt | ezralazuardy | 210,104,940 | false | null | /*
* Created by <NAME> on 10/14/19 9:55 AM
* Copyright (c) 2019 . All rights reserved.
* Last modified 10/14/19 9:54 AM
*/
package com.muvi.view.widget
import android.app.PendingIntent
import android.appwidget.AppWidgetManager
import android.appwidget.AppWidgetProvider
import android.content.ComponentName
import ... | 0 | Kotlin | 0 | 2 | 59a4b017246faddf8912fb0d93eb429c78f57115 | 3,602 | muvi | MIT License |
plugin/src/main/kotlin/org/jlleitschuh/gradle/ktlint/KtlintExtension.kt | Octogonapus | 153,191,798 | true | {"Kotlin": 52599} | package org.jlleitschuh.gradle.ktlint
import org.gradle.api.model.ObjectFactory
import org.gradle.api.provider.ListProperty
import org.gradle.api.provider.Property
import org.gradle.api.provider.SetProperty
import org.jlleitschuh.gradle.ktlint.reporter.ReporterType
/**
* Extension class for configuring the [KtlintPl... | 0 | Kotlin | 0 | 0 | 617987c0170b034b941b87ffbe6ea8b86d459a30 | 1,982 | ktlint-gradle | MIT License |
app/src/main/java/com/project/acehotel/core/di/interceptor/AuthInterceptor.kt | AceHotelProject | 732,506,429 | false | {"Kotlin": 760501} | package com.project.acehotel.core.di.interceptor
import com.project.acehotel.core.data.source.local.datastore.DatastoreManager
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.runBlocking
import okhttp3.Interceptor
import okhttp3.Response
import timber.log.Timber
import javax.inject.Inject
class AuthInt... | 0 | Kotlin | 0 | 0 | 785f99aa5c1d5be4e2d3505ee877fee5a33ba823 | 864 | AceHotel-App | MIT License |
app/src/main/java/com/ayatkhraisat/mvp_example/data/MoviesDataSource.kt | AyatKhraisat | 158,123,741 | false | null | package com.ayatkhraisat.mvp_example.data
import android.util.Log
import androidx.paging.PageKeyedDataSource
import com.ayatkhraisat.mvp_example.models.Model
import com.ayatkhraisat.mvp_example.network.MoviesService
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
import javax.inject.Inject
... | 0 | Kotlin | 2 | 5 | bd8bd152431505fff2168af177f2e2554016af76 | 2,541 | MVP-Architecture | Apache License 2.0 |
platform/runner-extension/telegram/src/main/kotlin/io/hamal/extension/telegram/Extension.kt | hamal-io | 622,870,037 | false | {"Kotlin": 2114763, "C": 1398432, "TypeScript": 279976, "Lua": 100966, "C++": 40651, "Makefile": 11728, "Java": 7564, "JavaScript": 3406, "CMake": 2810, "CSS": 1626, "HTML": 1239, "Shell": 977} | package io.hamal.extension.telegram
import io.hamal.lib.kua.Sandbox
import io.hamal.lib.kua.extend.ExtensionConfig
import io.hamal.lib.kua.extend.extension.RunnerExtension
import io.hamal.lib.kua.extend.extension.RunnerExtensionFactory
import io.hamal.lib.kua.type.StringType
object TelegramScriptFactory : RunnerExte... | 26 | Kotlin | 0 | 0 | 64288303fd12b334787c7bbb15afbaa99f716125 | 651 | hamal | Creative Commons Zero v1.0 Universal |
src/main/kotlin/covid/misc/VisualizerApp.kt | christophpickl | 344,232,553 | false | null | package covid.misc
import javafx.application.Application
import javafx.scene.Group
import javafx.scene.Node
import javafx.scene.Scene
import javafx.scene.control.Button
import javafx.scene.layout.StackPane
import javafx.scene.layout.VBox
import javafx.scene.media.AudioSpectrumListener
import javafx.scene.media.Media
i... | 0 | Kotlin | 0 | 0 | 1f2811ff07418aa793819c394045d764bfa2bbe8 | 5,730 | covid-playground | The Unlicense |
template/app/src/main/kotlin/app/ui/navigation/adaptive/AdaptiveNavigation.kt | kotlitecture | 738,057,168 | false | {"Kotlin": 316837, "HTML": 891} | @file:OptIn(ExperimentalMaterial3AdaptiveNavigationSuiteApi::class)
package app.ui.navigation.adaptive
import androidx.compose.material3.Text
import androidx.compose.material3.adaptive.navigationsuite.ExperimentalMaterial3AdaptiveNavigationSuiteApi
import androidx.compose.material3.adaptive.navigationsuite.Navigation... | 0 | Kotlin | 0 | 0 | 2f09ff83c7864fb15aca22ac7a9419b7881e5d15 | 1,329 | template-android-compose | MIT License |
jvm-library/buildSrc/src/Releases.kt | hendraanggrian | 204,931,838 | false | null | import org.gradle.api.provider.MapProperty
import org.gradle.api.provider.Property
import org.gradle.api.provider.SetProperty
import org.gradle.api.publish.maven.MavenPom
import org.gradle.api.publish.maven.MavenPomDeveloper
const val DEVELOPER_ID = "hendraanggrian"
const val DEVELOPER_NAME = "Hendra Anggrian"
const v... | 0 | Kotlin | 1 | 4 | c567392dae98a0d58c28faea2a23941af6d84ec4 | 631 | kt-project-templates | Apache License 2.0 |
app/src/main/java/me/androidbox/pokemon/data/requests/PokemonDetailInteractorImp.kt | steve1rm | 286,256,755 | false | null | package me.androidbox.pokemon.data.requests
import io.reactivex.Single
import me.androidbox.pokemon.data.service.PokemonService
import me.androidbox.pokemon.domain.interactors.PokemonDetailInteractor
import me.androidbox.pokemon.domain.models.PokemonModel
import java.util.concurrent.TimeUnit
class PokemonDetailIntera... | 1 | Kotlin | 0 | 0 | 8c3167e33241c5eb3f3fd484425b02a010788c1f | 753 | pokemons | MIT License |
HankyongSample/app/src/main/java/com/hankyong/hankyongsample/presentation/SplashActivity.kt | json-mentor | 737,809,644 | false | {"Kotlin": 51006} | package com.hankyong.hankyongsample.presentation
import android.annotation.SuppressLint
import android.content.Context
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import com.hankyong.hankyongsample.databinding.Act... | 0 | Kotlin | 0 | 0 | 1f7516532ff330309e3ed9775918975fec86d072 | 1,434 | Hankyong | Apache License 2.0 |
KotlinSamples-master/src/main/kotlin/chapter7/actor/interaction/actor_samples.kt | PacktPublishing | 142,565,876 | false | null | package chapter7.actor.interaction
import kotlinx.coroutines.experimental.CoroutineStart
import kotlinx.coroutines.experimental.channels.actor
import kotlinx.coroutines.experimental.newFixedThreadPoolContext
import kotlinx.coroutines.experimental.runBlocking
/**
* Interacting with an actor.
*/
fun main(args: Array<... | 0 | Kotlin | 10 | 34 | b80e6baaab137696080b1698e235f2bfcc72de57 | 1,158 | Learning-Concurrency-in-Kotlin | MIT License |
devfun-httpd/src/main/java/com/nextfaze/devfun/httpd/HttpD.kt | suclike | 98,347,273 | true | {"Kotlin": 378699, "Prolog": 1350, "CSS": 355} | package com.nextfaze.devfun.httpd
import android.app.Activity
import android.content.Context
import android.os.Build
import android.os.Handler
import android.os.Looper
import android.support.v7.app.AlertDialog
import com.google.auto.service.AutoService
import com.nextfaze.devfun.annotations.DeveloperCategory
import co... | 0 | Kotlin | 0 | 0 | af96685910e76a00161b26e1962130dace7e80a9 | 12,576 | dev-fun | Apache License 2.0 |
kandy-echarts/src/main/kotlin/org/jetbrains/kotlinx/kandy/echarts/layers/aes/lineAndAreaAes.kt | Kotlin | 502,039,936 | false | null | /*
* Copyright 2020-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package org.jetbrains.kotlinx.kandy.echarts.layers.aes
import org.jetbrains.kotlinx.kandy.ir.aes.Aes
//______________________________________LINE AES_____________________________________________
internal val ... | 78 | Kotlin | 0 | 98 | 0e54a419c188b5e6dbee8a95af5213c7ac978bb6 | 1,297 | kandy | Apache License 2.0 |
example/src/main/kotlin/snitch/example/database/repositories/users/PostgresUsersRepository.kt | memoizr | 322,370,926 | false | null | package snitch.example.database.repositories.users
import org.jetbrains.exposed.sql.insert
import org.jetbrains.exposed.sql.select
import snitch.example.database.Users
import snitch.example.types.CreateUserAction
import snitch.example.types.Email
import snitch.example.types.Hash
import snitch.example.types.UserId
impo... | 0 | Kotlin | 2 | 34 | 501b43074653207279fe3646a8f8519520967c3b | 959 | snitch | Apache License 2.0 |
feature/main/src/main/kotlin/com/masselis/tpmsadvanced/feature/main/ioc/VehicleModule.kt | VincentMasselis | 501,773,706 | false | {"Kotlin": 611164} | package com.masselis.tpmsadvanced.feature.main.ioc
import com.masselis.tpmsadvanced.data.vehicle.model.Vehicle
import com.masselis.tpmsadvanced.feature.main.usecase.VehicleStateFlowUseCase
import dagger.Module
import dagger.Provides
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.SupervisorJob
impor... | 10 | Kotlin | 3 | 9 | 41773455c3b0489e9eb5aae821bbf434d1faaa46 | 626 | TPMS-advanced | Apache License 2.0 |
app/src/main/java/de/metzgore/beansplan/util/di/components/RemindersFragmentComponent.kt | metzgore | 71,047,344 | false | null | package de.metzgore.beansplan.util.di.components
import dagger.Binds
import dagger.Module
import dagger.android.AndroidInjector
import dagger.multibindings.ClassKey
import dagger.multibindings.IntoMap
import de.metzgore.beansplan.reminders.RemindersFragment
@Module(subcomponents = [(RemindersFragmentSubComponent::cl... | 0 | Kotlin | 2 | 3 | 46fcce056ee9039d76a5d3e1fa8ca602bcca9e80 | 553 | BeansPlan | Apache License 2.0 |
src/test/kotlin/no/nav/samordning/hendelser/feed/FeedControllerAuthTest.kt | navikt | 156,209,069 | false | null | package no.nav.samordning.hendelser.feed
import no.nav.pensjonsamhandling.maskinporten.validation.test.AutoConfigureMaskinportenValidator
import no.nav.pensjonsamhandling.maskinporten.validation.test.MaskinportenValidatorTokenGenerator
import no.nav.samordning.hendelser.feed.FeedController.Companion.SCOPE
import org.j... | 0 | Kotlin | 0 | 1 | 6958ece51fef3400af952fec9d395bb7260eb8ba | 3,482 | samordning-hendelse-api | MIT License |
android/app/src/main/java/com/algorand/android/modules/swap/assetswap/ui/usecase/AssetSwapInitialPreviewUseCase.kt | perawallet | 364,359,642 | false | {"Swift": 8753304, "Kotlin": 7709389, "Objective-C": 88978, "Shell": 7715, "Ruby": 4727, "C": 596} | /*
* Copyright 2022 Pera Wallet, LDA
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,... | 22 | Swift | 62 | 181 | 92fc77f73fa4105de82d5e87b03c1e67600a57c0 | 5,567 | pera-wallet | Apache License 2.0 |
common/src/commonMain/kotlin/com/mcxross/cohesive/common/ds/tree/PreOrderTreeIterator.kt | mcxross | 514,846,313 | false | null | package com.mcxross.cohesive.common.ds.tree
expect class PreOrderTreeIterator<T>(root: TreeNode<T>) : Iterator<TreeNode<T>> | 0 | Kotlin | 0 | 0 | 0ce0ca84f551231d07dae06e94fe71e52ce25de4 | 124 | cohesive | Apache License 2.0 |
data/RF03933/rnartist.kts | fjossinet | 449,239,232 | false | {"Kotlin": 8214424} | import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
rfam {
id = "RF03933"
name = "consensus"
use alignment numbering
}
}
theme {
details {
value = 3
}
color {
location {
1 to 4... | 0 | Kotlin | 0 | 0 | 3016050675602d506a0e308f07d071abf1524b67 | 1,998 | Rfam-for-RNArtist | MIT License |
app/src/main/java/com/lagradost/shiro/ui/result/ResultsViewModel.kt | deceptions | 410,639,357 | false | null | package com.lagradost.shiro.ui.result
import ANILIST_SHOULD_UPDATE_LIST
import ANILIST_TOKEN_KEY
import DataStore.getKey
import DataStore.mapper
import DataStore.setKey
import MAL_SHOULD_UPDATE_LIST
import MAL_TOKEN_KEY
import RESULTS_PAGE_OVERRIDE_ANILIST
import RESULTS_PAGE_OVERRIDE_MAL
import android.content.Contex... | 44 | Kotlin | 6 | 92 | 6f8d6a26f9cc380899582b4aa642fca9998a9d08 | 12,293 | no | MIT License |
server/src/main/kotlin/com/heerkirov/hedge/server/enums/MetaType.kt | HeerKirov | 298,201,781 | false | null | package com.heerkirov.hedge.server.enums
enum class MetaType {
TAG, // = 0
TOPIC, // = 1
AUTHOR // = 2
} | 0 | TypeScript | 0 | 1 | 8140cd693759a371dc5387c4a3c7ffcef6fb14b2 | 122 | Hedge-v2 | MIT License |
src/main/kotlin/cn/gionrose/facered/task/TaskHolder.kt | 13022631363 | 681,233,772 | false | null | package cn.gionrose.facered.task
import org.bukkit.entity.Player
/**
* 任务所有者
* 任务所有者持有正在运行的任务列表
* 由于他是所有者 故它来操作任务的开始和结束是情理之中
*/
class TaskHolder (val player: Player)
{
val runningTask = arrayListOf<CraftTask>()
fun clear ()
{
runningTask.clear()
}
fun taskSize (): Int
{
... | 0 | Kotlin | 0 | 0 | 8b0c21f0735b743ebc8f1d43e81ea4bf40770b67 | 818 | Processcraft | Apache License 2.0 |
MXVideoLib/src/main/java/com/mx/video/listener/MXVolumeTouchListener.kt | zhangmengxiong | 386,496,265 | false | null | package com.mx.video.listener
import android.content.Context
import com.mx.video.utils.MXVolumeHelp
internal abstract class MXVolumeTouchListener(context: Context) : MXBaseTouchListener {
private val volumeHelp = MXVolumeHelp(context)
private val maxVolume = volumeHelp.getMaxVolume()
private var startVolu... | 1 | Kotlin | 1 | 7 | 9b1fe8ea6514ce073203e1cb51770bc54c3529ce | 1,344 | MXVideo | Apache License 2.0 |
src/main/kotlin/com/ikuzMirel/data/friends/FriendDataSourceImpl.kt | IkuzItsuki | 590,383,882 | false | null | package com.ikuzMirel.data.friends
import com.ikuzMirel.data.user.User
import org.bson.types.ObjectId
import org.litote.kmongo.coroutine.CoroutineDatabase
import org.litote.kmongo.eq
class FriendDataSourceImpl(
db: CoroutineDatabase
): FriendDataSource {
private val userFriends = db.getCollection<User>()
... | 0 | Kotlin | 0 | 0 | bf3b10d91a5389fc0664ded70b5f773a479ad739 | 1,235 | Flick-Ktor | Apache License 2.0 |
app/src/main/java/thekolo/de/quicktilesforikeatradfri/ui/DevicesFragment.kt | koloo91 | 106,603,480 | false | null | package thekolo.de.quicktilesforikeatradfri.ui
import android.app.Fragment
import android.content.Context
import android.os.Bundle
import android.support.v7.widget.DividerItemDecoration
import android.support.v7.widget.LinearLayoutManager
import android.util.Log
import android.view.LayoutInflater
import android.view.... | 0 | Kotlin | 0 | 4 | 7c92c4ddd0f12a061e476aeb90bbf8d9e050d7dc | 4,531 | Widgets-for-Ikea-Tradfri | MIT License |
presentation/work/src/main/java/com/gyorgyzoltan/sprayApp/work/overview/list/WorkListItem.kt | pandulapeter | 279,548,090 | false | null | package com.gyorgyzoltan.sprayApp.work.overview.list
import com.gyorgyzoltan.sprayApp.main.shared.list.ListItem
internal interface WorkListItem : ListItem | 0 | Kotlin | 0 | 2 | 9a5238105eafc74373f496d26f97cf095daa4696 | 156 | spray-app | Apache License 2.0 |
wearApp/src/main/java/dev/johnoreilly/confetti/wear/auth/GoogleSignOutScreenState.kt | joreilly | 436,024,503 | false | {"Kotlin": 890305, "Swift": 38931, "HTML": 23893, "HCL": 9137, "CSS": 8489, "Ruby": 3629} | package dev.johnoreilly.confetti.wear.auth
enum class GoogleSignOutScreenState {
Idle,
Loading,
Success,
Failed
} | 49 | Kotlin | 91 | 784 | d43e98fa3cd6eee949c3a0e57cf35d76dc49f083 | 130 | Confetti | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/list/PuppyListNetwork.kt | arkivanov | 342,410,429 | 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 | 5 | 753201f65d7a00f0c6b9eedc3a06680d36eec162 | 3,241 | android-dev-challenge-compose-1 | Apache License 2.0 |
base/src/main/java/org/robojackets/apiary/base/repository/ServerInfoRepository.kt | RoboJackets | 369,067,791 | false | {"Kotlin": 234535, "Ruby": 6715} | package org.robojackets.apiary.base.repository
import com.skydoves.sandwich.ApiResponse
import dagger.hilt.android.scopes.ActivityRetainedScoped
import org.robojackets.apiary.base.model.ServerInfoContainer
import org.robojackets.apiary.base.service.ServerInfoApiService
import javax.inject.Inject
@ActivityRetainedScop... | 24 | Kotlin | 0 | 0 | 8478042da4fb7e27b723d26b976e7d6ef6dd82bd | 554 | apiary-mobile | Apache License 2.0 |
data/RF01209/rnartist.kts | fjossinet | 449,239,232 | false | {"Kotlin": 8214424} | import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
rfam {
id = "RF01209"
name = "consensus"
use alignment numbering
}
}
theme {
details {
value = 3
}
color {
location {
1 to 4... | 0 | Kotlin | 0 | 0 | 3016050675602d506a0e308f07d071abf1524b67 | 544 | Rfam-for-RNArtist | MIT License |
app/src/main/java/com/paprolafsmnew/features/marketing/model/GetMarketingDetailsResponse.kt | DebashisINT | 676,852,117 | false | {"Kotlin": 13694213, "Java": 996851} | package com.paprolafsmnew.features.marketing.model
import com.paprolafsmnew.base.BaseResponse
/**
* Created by Pratishruti on 05-03-2018.
*/
class GetMarketingDetailsResponse:BaseResponse() {
lateinit var material_details:List<MarketingDetailData>
lateinit var marketing_img:List<MarketingDetailImageData>
} | 0 | Kotlin | 0 | 0 | be98678f759713d2d5f0b9ec4bc9aa35a54d51e9 | 320 | PaprolaMarketing | Apache License 2.0 |
data/space/src/main/java/com/ku_stacks/ku_ring/space/repository/KuringSpaceRepositoryImpl.kt | ku-ring | 412,458,697 | false | {"Kotlin": 651475} | package com.ku_stacks.ku_ring.space.repository
import com.ku_stacks.ku_ring.remote.space.KuringSpaceClient
import javax.inject.Inject
class KuringSpaceRepositoryImpl @Inject constructor(
private val kuringSpaceClient: KuringSpaceClient,
) : KuringSpaceRepository {
override suspend fun getMinimumAppVersion(): ... | 6 | Kotlin | 1 | 23 | 5580b0c1c5a9f82d44399df6e8f96ae64cbdd79d | 392 | KU-Ring-Android | Apache License 2.0 |
app/src/main/java/com/ngikut/u_future/screen/splash/SplashScreen.kt | fahmigutawan | 631,299,852 | false | null | package com.ngikut.u_future.screen.splash
import android.window.SplashScreen
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout... | 0 | Kotlin | 0 | 0 | 456db2f0d0c79304fb362b5c8df4bc92caa2ceee | 4,017 | Jetpack-UFuture | MIT License |
src/main/kotlin/com/igorini/mrdrafty/card/ClearTheDeck.kt | igorini | 159,063,909 | false | null | package com.igorini.mrdrafty.card
/** Represents a card "Clear The Deck" */
class ClearTheDeck : Card() {
override fun name() = "Clear The Deck"
override fun imageUrl() = ""
override fun color() = CardColor.RED
override fun type() = CardType.SPELL
override fun rarity() = CardRarity.COMMON
overr... | 0 | Kotlin | 0 | 1 | 6e59b9a1073788311b69210b05b8fe0ebb2a7e95 | 348 | mr-drafty | Apache License 2.0 |
MyEcMall-K/BaseLibrary/src/main/java/cn/nieking/baselibrary/widgets/BannerImageLoader.kt | NieQing | 132,399,328 | false | {"Kotlin": 241813, "Java": 7791} | package cn.nieking.baselibrary.widgets
import android.content.Context
import android.widget.ImageView
import cn.nieking.baselibrary.utils.GlideUtils
import com.youth.banner.loader.ImageLoader
class BannerImageLoader : ImageLoader() {
override fun displayImage(context: Context, path: Any, imageView: ImageView) {
... | 0 | Kotlin | 0 | 0 | 07b22622f98c8bfd8b26ea1303d48f6d66cc4b4b | 396 | MyEcMall-K | Apache License 2.0 |
app/src/main/java/com/kopai/shinkansen/view/blend/config/BlendConfigFragment.kt | kopiai | 805,653,375 | false | {"Kotlin": 147674} | package com.kopai.shinkansen.view.blend.config
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import com.kopai.shinkansen.R
class BlendConfigFragment : Fragment() {
com... | 0 | Kotlin | 0 | 0 | 47442dcfa5771aa09b8c9d74ef42921ac3f4f88d | 838 | kopai-android | MIT License |
feature/add-record/src/main/kotlin/com/kevlina/budgetplus/feature/add/record/ui/Calculator.kt | kevinguitar | 517,537,183 | false | {"Kotlin": 686482} | package com.kevlina.budgetplus.feature.add.record.ui
import android.content.Context
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column... | 2 | Kotlin | 0 | 9 | 9c964e063efdf797f84f58fcc3e8b17da75f8309 | 9,971 | budgetplus-android | MIT License |
cesium-kotlin/src/jsMain/kotlin/cesium/engine/GroundPrimitive.factory.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6328455} | // Automatically generated - do not modify!
package cesium.engine
import js.objects.jso
inline fun GroundPrimitive(
block: GroundPrimitive.ConstructorOptions.() -> Unit,
): GroundPrimitive =
GroundPrimitive(options = jso(block))
| 1 | Kotlin | 8 | 35 | 6c553c67c6cbf77a802c137d010b143895c7da60 | 240 | types-kotlin | Apache License 2.0 |
application/src/main/kotlin/notes/view/Menubar.kt | Oliver-Fenton | 721,902,234 | false | {"Kotlin": 134039, "Java": 980, "Dockerfile": 164} | // Copyright (c) 2023. <NAME>, <NAME>, <NAME>, <NAME>.
package notes.view
import javafx.application.Platform
import javafx.scene.control.*
import javafx.scene.image.Image
import javafx.scene.image.ImageView
import javafx.scene.input.KeyCode
import javafx.scene.input.KeyCodeCombination
import notes.shared.Constants
im... | 0 | Kotlin | 0 | 0 | 5d4a2c0cc5526c1c698854076b94aa79ff9bde14 | 10,758 | notes | MIT License |
core/src/main/kotlin/pw/mihou/unit/coders/interfaces/Encoders.kt | ShindouMihou | 810,486,376 | false | {"Kotlin": 19879} | package pw.mihou.unit.coders.interfaces
interface Encoder {
fun encode(content: Any): String
} | 0 | Kotlin | 0 | 0 | 120497aee585aa1761cb4f89a20d909534699070 | 99 | unit | Intel Open Source License |
diff.main.kts | blendthink | 421,413,290 | false | null | #!/usr/bin/env kotlin
@file:Suppress("EXPERIMENTAL_API_USAGE")
@file:Repository("https://repo1.maven.org/maven2/")
@file:DependsOn("eu.jrie.jetbrains:kotlin-shell-core:0.2.1")
import eu.jrie.jetbrains.kotlinshell.shell.*
fun result(command: String): String {
val builder = StringBuilder()
shell {
pip... | 0 | Kotlin | 0 | 1 | d9824a88480fe74bb2719a3a73007e3229284f63 | 2,325 | android-diff-action | MIT License |
shared/src/iosMain/kotlin/org/flepper/currencyconvertor/di/Context.kt | develNerd | 543,065,385 | false | null | package org.flepper.currencyconvertor.di
import platform.darwin.NSObject
actual typealias Context = NSObject
/**
* Expect Class to be implemented on both platforms to get the application context
* */
actual class KMMContext actual constructor(context: Context) {
actual var application: Context = context
}
| 0 | Kotlin | 0 | 6 | 0350e4991acd4cae1b852bb67133caa70665000b | 316 | FL-CurrencyConvertor-Kotlin-Multiplatform-Mobile | MIT License |
2015/kt/src/test/kotlin/org/adventofcode/extractNumbers.kt | windmaomao | 225,344,109 | false | {"JavaScript": 538717, "Ruby": 89779, "Kotlin": 58408, "Rust": 21350, "Go": 19106, "TypeScript": 9930, "Haskell": 8908, "Dhall": 3201, "PureScript": 1488, "HTML": 1307, "CSS": 1092} | package org.adventofcode
fun String.extractNumbers(
includeNegative: Boolean = false
): List<Int> {
val reg = if (includeNegative) "-?\\d+" else "\\d+"
return reg.toRegex()
.findAll(this)
.map { it.value.toInt() }
.toList()
}
| 5 | JavaScript | 0 | 0 | 1d64d7fffa6fcfc6825e6aa9322eda76e790700f | 245 | adventofcode | MIT License |
core/di/src/main/java/uk/nightlines/core/di/ComponentHolder.kt | dns21395 | 603,470,891 | false | null | package uk.nightlines.core.di
import androidx.lifecycle.ViewModel
class ComponentHolder<T>(val component: T) : ViewModel()
| 0 | Kotlin | 0 | 2 | 3b954816bfc81881e8839d417745d19e74a794fd | 125 | ModoMultimodule | Apache License 2.0 |
android/app/src/main/java/com/algorand/android/modules/swap/introduction/ui/mapper/SwapIntroductionPreviewMapper.kt | perawallet | 364,359,642 | false | {"Swift": 8753304, "Kotlin": 7709389, "Objective-C": 88978, "Shell": 7715, "Ruby": 4727, "C": 596} | /*
* Copyright 2022 Pera Wallet, LDA
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,... | 22 | Swift | 62 | 181 | 92fc77f73fa4105de82d5e87b03c1e67600a57c0 | 1,156 | pera-wallet | Apache License 2.0 |
src/backend/ci/core/notify/biz-notify/src/main/kotlin/com/tencent/devops/notify/wework/pojo/UploadMediaResp.kt | TencentBlueKing | 189,153,491 | false | {"Kotlin": 30176725, "Vue": 6739254, "JavaScript": 1256623, "Go": 616850, "Lua": 567159, "TypeScript": 461781, "SCSS": 365654, "Shell": 157561, "Java": 153049, "CSS": 106299, "HTML": 96201, "Python": 39238, "Less": 24714, "Makefile": 10630, "Smarty": 10297, "Dockerfile": 5097, "Batchfile": 4908, "PowerShell": 1626, "VB... | package com.tencent.devops.notify.wework.pojo
import com.fasterxml.jackson.annotation.JsonProperty
data class UploadMediaResp(
@JsonProperty("created_at")
val createdAt: String?,
@JsonProperty("errcode")
val errCode: Int?,
@JsonProperty("errmsg")
val errMsg: String?,
@JsonProperty("media_i... | 719 | Kotlin | 498 | 2,382 | dd483c38bdbe5c17fa0e5e5bc3390cd1cd40757c | 400 | bk-ci | MIT License |
base/src/main/kotlin/com/hieunv/mvvmarch/base/preferences/SharedPrefsModule.kt | lvhieut | 694,577,582 | false | {"Kotlin": 115915} | package com.hieunv.mvvmarch.base.preferences
import com.hieunv.mvvmarch.base.preferences.auth.AuthSharedPrefs
import com.hieunv.mvvmarch.base.preferences.auth.AuthSharedPrefsDataSource
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ApplicationComponent
@Mod... | 1 | Kotlin | 0 | 0 | 92b56b13990606a02c9a8d9f94ff15d1c37516b5 | 626 | Base_mvvm_clone | MIT License |
app/src/main/java/com/ingjuanocampo/enfila/domain/data/source/contact/ClientLocalSource.kt | ingjuanocampo | 387,043,993 | false | {"Kotlin": 247926} | package com.ingjuanocampo.enfila.domain.data.source.contact
class ClientLocalSource
| 2 | Kotlin | 0 | 0 | 12309564fe50d599d2319d697b009d8d310f1bb5 | 85 | EnFila-Android | MIT License |
cryptocurrencychallenge/src/main/java/com/yoti/android/cryptocurrencychallenge/data/repository/CryptoRepositoryImpl.kt | zakaria-hajja | 420,542,603 | false | null | package com.yoti.android.cryptocurrencychallenge.data.repository
import com.yoti.android.cryptocurrencychallenge.data.datasource.RemoteDataSource
import com.yoti.android.cryptocurrencychallenge.domain.repository.CryptoRepository
class CryptoRepositoryImpl(private val dataSource: RemoteDataSource) : CryptoRepository {... | 0 | Kotlin | 0 | 0 | 5f061c1149d3baf79f1f94639e082f83d223cffd | 499 | cryptocurrency | MIT License |
_sample/sample-app/src/main/java/com/declarative/ui/pattern/SampleApplication.kt | SeongUgJung | 311,954,386 | false | {"Kotlin": 30446} | package com.declarative.ui.pattern
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class SampleApplication : Application() {
} | 0 | Kotlin | 0 | 0 | 55239dda550d070134a6f717f44e466d825aa048 | 169 | DeclarativeUIPattern | MIT License |
app/src/main/java/com/github/apognu/otter/Otter.kt | Skehmatics | 268,192,895 | true | {"Kotlin": 180762} | package com.github.apognu.otter
import android.app.Application
import androidx.appcompat.app.AppCompatDelegate
import com.github.apognu.otter.utils.Command
import com.github.apognu.otter.utils.Event
import com.github.apognu.otter.utils.Request
import com.preference.PowerPreference
import kotlinx.coroutines.channels.Br... | 0 | null | 0 | 0 | d5c1b89d3daf6e3dce7d3a3e6fd437c5755ef514 | 1,260 | otter | MIT License |
app/src/main/java/de/luckyworks/compose/charts/sample/ui/line/LineChartDataModel.kt | lacky1991 | 462,792,840 | false | {"Kotlin": 105296} | package de.luckyworks.compose.charts.sample.ui.line
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import de.luckyworks.compose.charts.line.LineChartData
import de.luckyworks.compose.charts.line.LineChartData.Point
import de.luckyworks.c... | 11 | Kotlin | 0 | 1 | c6b333fd18d38e49e0107aa4e847dd97180ed28f | 1,897 | compose-charts | Apache License 2.0 |
src/main/kotlin/xyz/chlamydomonos/hyphacraft/blocks/TumidusioHyphaHiddenBlock.kt | Chlamydomonos | 832,406,228 | false | {"Kotlin": 139172, "Java": 3138} | package xyz.chlamydomonos.hyphacraft.blocks
import net.minecraft.world.level.block.Block
import net.minecraft.world.level.block.Blocks
import net.minecraft.world.level.block.state.BlockState
import net.minecraft.world.level.block.state.StateDefinition
import xyz.chlamydomonos.hyphacraft.blocks.utils.ModProperties
cla... | 0 | Kotlin | 0 | 0 | ee09cd02a3a0d2e1dbf751849280e55ab9cd5dd1 | 543 | HyphaCraft | MIT License |
app/src/main/java/com/adeen/notesappkotlin/viewmodel/NoteViewModelFactory.kt | Adeen-Ayub-Vine | 865,577,580 | false | {"Kotlin": 18116} | package com.adeen.notesappkotlin.viewmodel
import android.app.Application
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.adeen.notesappkotlin.repository.NoteRepository
class NoteViewModelFactory(val app: Application, private val noteRepository: NoteRepository): ViewModelPro... | 0 | Kotlin | 0 | 0 | fb3802c61ede88b14e764f5724beb32d83f9b517 | 465 | Notes-App-Kotlin | MIT License |
app/src/main/java/com/igorg/sicredevent/presentation/base/adapter/ListItem.kt | igorpk10 | 544,523,016 | false | null | package com.igorg.sicredevent.presentation.base.adapter
interface ListItem {
val key: Long
fun areItemsTheSame(other: ListItem) = this.key == other.key
fun areContentsTheSame(other: ListItem) = this == other
}
| 0 | Kotlin | 0 | 0 | b27436c49fc49ac301d10e0de254483b1d93cc06 | 225 | sicredEventos | MIT License |
kompress/common/test/me/devnatan/kompress/ZLIB.kt | DevNatan | 678,151,355 | false | {"Kotlin": 4362} | package me.devnatan.kompress
import kotlin.test.Test
import kotlin.test.assertEquals
class ZLIB {
@Test
fun `zlib inflate and deflate`() {
val text = "Hello, this is a test string."
val compressed = zlibDeflate(text.encodeToByteArray())
assertEquals(
expected = "[31, -117,... | 1 | Kotlin | 0 | 2 | baf84813b18bde817ed711d1496a2bec59b21ffe | 734 | kompress | MIT License |
app/src/main/kotlin/com/absinthe/kage/connect/tcp/IPacketWriter.kt | zhaobozhen | 223,542,983 | false | null | package com.absinthe.kage.connect.tcp
interface IPacketWriter {
fun writePacket(packet: Packet)
fun shutdown()
} | 1 | Kotlin | 5 | 25 | 71dc5f8ee51b3b566723455fbc4b019845c2a347 | 121 | Kage | Apache License 2.0 |
app/src/main/java/com/egeysn/githubapp/data/local/UserDatabase.kt | egeysn | 620,311,795 | false | null | package com.egeysn.githubapp.data.local
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.egeysn.githubapp.data.local.entities.FavEntity
import com.egeysn.githubapp.data.local.entities.UserEntity
@Database(
entities = [UserEntity::class, FavEntity::clas... | 0 | Kotlin | 0 | 0 | fbb8fe0b0bb71bada7741ff2d58d3905e31ef35b | 490 | AndroidSampleGithubApp | Apache License 2.0 |
app/src/main/java/com/erdemserhat/harmonyhaven/data/local/entities/JwtTokenEntity.kt | erdemserhat | 752,867,053 | false | {"Kotlin": 445738} | package com.erdemserhat.harmonyhaven.data.local.entities
import androidx.room.Entity
import androidx.room.PrimaryKey
/**
* Represents a JWT token entity in the 'jwt_token' table of the database.
*
* This data class defines the structure of a JWT token record stored in the database.
* Each property maps to a colu... | 6 | Kotlin | 1 | 16 | b817eb5ce99bccc2bc81042040d50382d5d82b57 | 669 | HarmonyHavenAndroidClient | Apache License 2.0 |
kotest-framework/kotest-framework-engine/src/jvmTest/kotlin/com/sksamuel/kotest/engine/tags/RuntimeTagExtensionTest.kt | kotest | 47,071,082 | false | null | package com.sksamuel.kotest.engine.tags
import io.kotest.assertions.fail
import io.kotest.core.Tag
import io.kotest.core.config.ProjectConfiguration
import io.kotest.core.extensions.RuntimeTagExpressionExtension
import io.kotest.core.extensions.RuntimeTagExtension
import io.kotest.core.annotation.Isolate
import io.kot... | 98 | Kotlin | 570 | 3,789 | a341cdfccdc85162bfc31cfe6365768d9ab0f113 | 1,613 | kotest | Apache License 2.0 |
hw5/src/main/kotlin/ru/itmo/base/DrawingApi.kt | KirillKurdyukov | 538,702,916 | false | null | package ru.itmo.base
import kotlin.math.sign
interface DrawingApi {
fun drawCircle(p: Point, r: Double = VERTEX_RADIUS)
fun drawLine(x: Point, y: Point)
fun drawGraph()
}
class Point(
_x: Double,
_y: Double
) {
val x = _x
get() = field * WIDTH / 2 + WIDTH / 2 + (-1 * field.sign) * (... | 0 | Kotlin | 1 | 1 | 7f93a94c1ec72cc033e57d44c15439f584b02814 | 559 | software-design | MIT License |
app/src/main/java/com/recordapp/record/RecordAudioRecordViewActivity.kt | yihu5566 | 204,427,289 | false | null | package com.recordapp.record
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.os.Environment
import android.util.Log
import android.view.View
import android.widget.Button
import android.widget.TextView
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.... | 0 | Kotlin | 0 | 0 | 72704389c50f4670615079d1b03cecc2bea79471 | 8,100 | AndroidRecordApp | Apache License 2.0 |
feature/movie-details-compose/src/main/kotlin/io/petros/movies/movie_details_compose/di/koin/MovieDetailsModule.kt | ParaskP7 | 148,126,048 | false | null | package io.petros.movies.movie_details_compose.di.koin
import io.petros.movies.movie_details_compose.MovieDetailsViewModel
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module
private fun viewModelModule() = module {
viewModel { MovieDetailsViewModel(get()) }
}
@Suppress("unused")
fun movi... | 0 | Kotlin | 21 | 130 | c86a669c4c21a2702a63404e6abf2547c3cec3fd | 379 | sample-code-movies | Apache License 2.0 |
app/src/main/java/com/eye/eye/MainActivity.kt | HelloWorldFeng | 282,585,640 | false | null | package com.eye.eye
import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentTransaction
import androidx.lifecycle.Observer
import androidx.work.WorkInfo
import androidx.work.WorkManager
import com.eye.eye.ev... | 0 | Kotlin | 0 | 0 | 4ca1b3b66266366b3ad6a2b64d8341f3fd946324 | 8,323 | Eye | Apache License 2.0 |
app/src/main/java/loodos/droid/bitcointicker/ui/auth/AuthViewModel.kt | BatuhanGunes | 360,654,341 | false | null | package loodos.droid.bitcointicker.ui.auth
import android.content.Intent
import android.view.View
import androidx.lifecycle.ViewModel
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.disposables.CompositeDisposable
import io.reactivex.schedulers.Schedulers
import loodos.droid.bitcointicker.... | 0 | Kotlin | 1 | 0 | 40507e84762ef9a69c12de52d183119780401109 | 2,916 | BitcoinTicker | Apache License 2.0 |
example/src/androidTest/kotlin/com/buildkite/test/collector/android/example/ExampleTestCollector.kt | buildkite | 519,058,398 | false | {"Kotlin": 42008, "Shell": 1804} | package com.buildkite.test.collector.android.example
import com.buildkite.test.collector.android.InstrumentedTestCollector
/**
* Configures `ExampleTestCollector` with Buildkite test collector configurations.
* Values are derived from local/CI environment variables and set in [BuildConfig] at build time.
*/
class ... | 3 | Kotlin | 3 | 4 | dfd4711359973409da8d7c359dad7f88ca5257b8 | 493 | test-collector-android | MIT License |
app/src/main/java/hu/hm/icguide/ui/maps/MapFragment.kt | mherczku | 413,102,440 | false | {"Kotlin": 92979} | package hu.hm.icguide.ui.maps
import android.Manifest
import android.annotation.SuppressLint
import android.app.AlertDialog
import android.content.pm.PackageManager
import android.location.Location
import android.location.LocationManager
import android.os.Bundle
import android.view.View
import androidx.activity.result... | 0 | Kotlin | 0 | 0 | 3cda7ddd6994ffd62ea05f46c758f69452b9e761 | 7,546 | iceCreamGuide | Apache License 2.0 |
app/src/main/java/com/bourdi_bay/portfolioquickglance/SwipeToDeleteCallback.kt | bourdibay | 185,835,876 | false | null | package com.bourdi_bay.portfolioquickglance
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.ItemTouchHelper
import androidx.recyclerview.widget.Recyc... | 0 | Kotlin | 0 | 0 | 49c785158789dafc06208ab90a7d354e9324e73c | 2,815 | PortfolioQuickGlance | Apache License 2.0 |
masterswitch/src/main/java/com/smp/masterswitchpreference/MasterSwitchSwitchPreference.kt | svenoaks | 284,879,301 | false | null | package com.smp.masterswitchpreference
import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.widget.TextView
import androidx.appcompat.widget.SwitchCompat
import androidx.core.graphics.drawable.DrawableCompat
import androidx.preference.PreferenceViewHolder
import andro... | 3 | Kotlin | 2 | 6 | cc3557da9dd804f7378a98a9c394610eac4d9b67 | 2,217 | MasterSwitchPreference | Apache License 2.0 |
kotlin-typescript/src/jsMain/generated/typescript/isJSDocSeeTag.contract.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12635434, "JavaScript": 423801} | // Automatically generated - do not modify!
package typescript
import kotlin.contracts.contract
@Suppress(
"NOTHING_TO_INLINE",
"CANNOT_CHECK_FOR_EXTERNAL_INTERFACE",
"CANNOT_CHECK_FOR_ERASED",
"ERROR_IN_CONTRACT_DESCRIPTION"
)
inline fun isJSDocSeeTag(node: Node): Boolean /* node is JSDocSeeTag */ ... | 38 | Kotlin | 162 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 432 | kotlin-wrappers | Apache License 2.0 |
app/src/main/java/com/udacity/shoestore/models/ShoeListViewModel.kt | ajaysinghthakur | 469,336,714 | false | {"Kotlin": 14154} | package com.udacity.shoestore.models
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import timber.log.Timber
class ShoeListViewModel: ViewModel() {
private var _shoeList = MutableLiveData<MutableList<Shoe>>()
val shoeList: LiveData<MutableLis... | 0 | Kotlin | 0 | 0 | 0a33f1b1787f2c3717d82489ef2bc2e57bf7f925 | 837 | ShoeStore | MIT License |
kotlin-ir-plugin/src/main/kotlin/com/bnorm/template/AnonymousClasses.kt | faucct | 568,360,231 | false | {"Kotlin": 49642, "Java": 7663} | package com.bnorm.template
import kotlin.reflect.KClass
@Target(AnnotationTarget.FUNCTION)
@Retention(AnnotationRetention.RUNTIME)
annotation class AnonymousClasses(@get:JvmName("v") val value: Array<KClass<*>>)
| 0 | Kotlin | 0 | 0 | b9a3fcd93f82069a0fd6baa43daa9312e0734e8f | 214 | kotlin-persistent-coroutines | Apache License 2.0 |
app/src/main/java/com/shellmonger/apps/mynotes/ui/NoteDetailActivity.kt | harryhan24 | 135,485,673 | false | null | /*
Copyright 2018 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | 0 | Kotlin | 0 | 0 | ca9233cc2ba944c9592b790bd27cd9a041d77697 | 2,232 | android-kotlin-notes | Apache License 2.0 |
app/src/main/java/jez/synthesis/features/sequencer2/Sequencer2VM.kt | Ninjars | 577,448,399 | false | {"Kotlin": 71773, "C++": 29687, "CMake": 2461, "Java": 2222, "C": 603} | package jez.synthesis.features.sequencer2
import androidx.compose.runtime.Stable
import androidx.compose.ui.unit.IntOffset
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.bumble.appyx.navmodel.backstack.BackStack
import jez.synthesis.Consumer
import jez.synthesis.audiotrack.Samp... | 0 | Kotlin | 0 | 0 | 65fae930d4ff21f8cdeab9d3517ffb75d96c26db | 2,670 | Synthesis | Apache License 2.0 |
Android/ghvzApp/app/src/main/java/com/app/playhvz/screens/rewards/AmountSelectorDialog.kt | google | 95,704,578 | false | null | /*
* Copyright 2020 Google 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 37 | Kotlin | 30 | 24 | 9e02fb706af61a336bda852f467a35f49bdcfec7 | 2,971 | playhvz | Apache License 2.0 |
feature/home/main/src/main/java/com/civciv/app/home/main/di/MavericksViewModelModule.kt | fatih-ozturk | 638,702,981 | false | {"Kotlin": 242210, "Shell": 932} | /*
* Copyright 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 1 | Kotlin | 0 | 1 | f2279d5fca8fe3416028905176467d17f82bc2e2 | 1,183 | Civciv | Apache License 2.0 |
src/main/kotlin/com/deflatedpickle/flatlaf/intellijthemes/FlatCatppuccinMochaIJTheme.kt | DeflatedPickle | 668,457,152 | false | null | package com.deflatedpickle.flatlaf.intellijthemes
object FlatCatppuccinMochaIJTheme : CatppuccinTheme("mocha") {
fun setup() = setup(FlatCatppuccinMochaIJTheme)
fun installLafInfo() = installLafInfo(name, FlatCatppuccinMochaIJTheme::class.java)
override fun getName() = "Catppuccin - Mocha"
} | 0 | Kotlin | 0 | 0 | cc543effb3f2b1d34ad001df0a605fcf43723a71 | 305 | FlatCatppuccinIJTheme | MIT License |
src/main/kotlin/com/easy/springboot/simpleloginbackend/SimpleLoginBackEndApplication.kt | fjxFork | 157,513,112 | true | {"Kotlin": 2098, "HTML": 225} | package com.easy.springboot.simpleloginbackend
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
@SpringBootApplication
class SimpleLoginBackEndApplication
fun main(args: Array<String>) {
runApplication<SimpleLoginBackEndApplication>(*args)
}
| 0 | Kotlin | 0 | 0 | e1568134b17b85c24700f8542218982092508cbc | 315 | simple-login-back-end | ISC License |
src/jvmMain/kotlin/org/jetbrains/jewel/samples/standalone/Main.kt | abd3lraouf | 829,257,789 | false | {"Kotlin": 112511} | package org.jetbrains.jewel.samples.standalone
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.graphics.ImageBitmap
import androidx.compose.ui.graphics.painter.Painter
import androidx.compose.ui.res.ResourceLoader
import androidx.compose.ui.res.loadImageBitmap
import androidx.compose.ui.... | 0 | Kotlin | 0 | 0 | 4e54ab8504e43c8cb79aab78431c185f435d1ff0 | 3,765 | project-builder | Apache License 2.0 |
app/src/main/java/org/coepi/android/domain/CenMatcher.kt | yibter | 260,080,429 | true | {"Kotlin": 137981} | package org.coepi.android.domain
import kotlinx.coroutines.Dispatchers.Default
import kotlinx.coroutines.async
import kotlinx.coroutines.awaitAll
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.runBlocking
import org.coepi.android.cen.Cen
import org.coepi.android.cen.CenKey
import org.coepi.android.... | 0 | null | 0 | 0 | e64a035f5b7a154733ef09db0d8d7c0d5cb5efa2 | 1,927 | app-android | MIT License |
src/main/kotlin/com/vk/admstorm/configuration/problems/actions/ShowProblemDescriptionAction.kt | VKCOM | 454,408,302 | false | null | package com.vk.admstorm.configuration.problems.actions
import com.intellij.ide.IdeTooltip
import com.intellij.ide.IdeTooltipManager
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.PlatformCoreDataKeys
import com.intellij.openapi.project.DumbAwareAction
import com.intelli... | 33 | Kotlin | 3 | 9 | 24e4616dce11e8f71ac68502085d2768d355d6c0 | 2,004 | admstorm | MIT License |
lib/src/commonMain/kotlin/app/moviebase/trakt/api/TraktRecommendationsApi.kt | MoviebaseApp | 410,270,468 | false | null | package app.moviebase.trakt.api
import app.moviebase.trakt.TraktExtended
import app.moviebase.trakt.core.getByPaths
import app.moviebase.trakt.core.parameterExtended
import app.moviebase.trakt.core.parameterLimit
import app.moviebase.trakt.core.parameterPage
import app.moviebase.trakt.model.TraktShow
import io.ktor.cl... | 4 | Kotlin | 1 | 7 | bff8881f5db9935596c44fcb7b855043169c640b | 794 | trakt-api | Apache License 2.0 |
lib/src/commonMain/kotlin/app/moviebase/trakt/api/TraktRecommendationsApi.kt | MoviebaseApp | 410,270,468 | false | null | package app.moviebase.trakt.api
import app.moviebase.trakt.TraktExtended
import app.moviebase.trakt.core.getByPaths
import app.moviebase.trakt.core.parameterExtended
import app.moviebase.trakt.core.parameterLimit
import app.moviebase.trakt.core.parameterPage
import app.moviebase.trakt.model.TraktShow
import io.ktor.cl... | 4 | Kotlin | 1 | 7 | bff8881f5db9935596c44fcb7b855043169c640b | 794 | trakt-api | Apache License 2.0 |
RunningApp/app/src/main/java/com/sandy/runningapp/ui/fragments/SettingsFragment.kt | SANDY-9 | 612,978,825 | false | null | package com.sandy.runningapp.ui.fragments
import android.content.SharedPreferences
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import com.google.android.material.snackbar.Snackbar
import com.sandy.runningapp.R
import com.sandy.runningapp.other.KEY_NAME
import com.sandy.runni... | 0 | Kotlin | 0 | 0 | e0816a39903f415aa09837bd689e71c17439b9e6 | 1,951 | Project_MyRuns | Apache License 2.0 |
app/main/arenaoppslag/perioder/PerioderRepo.kt | navikt | 690,073,639 | false | {"Kotlin": 33311, "Shell": 697, "Dockerfile": 150} | package arenaoppslag.perioder
import java.time.LocalDate
import javax.sql.DataSource
class PerioderRepo(private val dataSource: DataSource) {
fun hentGrunnInfoForAAPMotaker(personId: String, fraOgMedDato: LocalDate, tilOgMedDato: LocalDate): PerioderResponse =
dataSource.connection.use { con ->
... | 0 | Kotlin | 0 | 0 | 2fea2fa18a27c6022b631d3398d4f6e97d262ba4 | 420 | aap-arenaoppslag | MIT License |
PopcornView/src/main/java/com/gold24park/popcornview/popcornview/StartPosition.kt | gold24park | 628,258,890 | false | null | package com.gold24park.popcornview.popcornview
enum class XAxisPosition {
LEFT, CENTER, RIGHT
}
enum class YAxisPosition {
TOP, CENTER, BOTTOM
}
data class StartPosition(
private val xAxis: XAxisPosition,
private val yAxis: YAxisPosition
) {
fun getVector2D(width: Int, height: Int): Vector2D {
... | 0 | Kotlin | 0 | 0 | 4590002a01827945ed1756e513ece7c84a7e141a | 739 | PopcornView | MIT License |
app/src/main/java/org/calamarfederal/messyink/feature_counter/presentation/counter_history/CounterHistoryScreen.kt | John-Tuesday | 632,184,075 | false | null | package org.calamarfederal.messyink.feature_counter.presentation.counter_history
import androidx.compose.animation.core.LinearOutSlowInEasing
import androidx.compose.animation.core.tween
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.ExperimentalLayoutApi
import ... | 0 | Kotlin | 0 | 0 | 24d79bfabcf688dfe2e9415def95b429dc83e66b | 8,513 | messy-ink | MIT License |
core/src/Game/com/lyeeedar/Screens/SettingsScreen.kt | Lyeeedar | 175,580,264 | false | null | package com.lyeeedar.Screens
import com.badlogic.gdx.scenes.scene2d.ui.Label
import com.badlogic.gdx.scenes.scene2d.ui.Table
import com.lyeeedar.MainGame
import com.lyeeedar.UI.NavigationBar
import com.lyeeedar.Util.Statics
class SettingsScreen : AbstractScreen()
{
override fun create()
{
val shopTable = Table()
... | 0 | Kotlin | 0 | 0 | 3b0cb3093e0eb937eb2a198d7eac0b7fa15bce25 | 549 | Gacha | Apache License 2.0 |
app/src/main/java/com/example/stocktickers/adapters/StocksListItem.kt | juliemaria | 403,168,116 | false | null | package com.example.stocktickers.adapters
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.example.repository.model.Details
import com.example.stocktickers.R
import com.example.stocktickers.databinding.StockListItemBinding
import com.example.s... | 0 | Kotlin | 0 | 0 | 91bf95893e64f0b770a0e2cfce82bd00ed24ae4b | 2,029 | stock_tickers | Apache License 2.0 |
app/src/main/java/com/lab27/daggerTutorialApp/ui/CatListAdapter.kt | 27kim | 234,323,807 | false | null | package com.lab27.daggerTutorialApp.ui
import android.graphics.drawable.ColorDrawable
import android.support.v4.content.ContextCompat
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.lab27.daggerTutorialApp.R
import com.l... | 0 | Kotlin | 0 | 0 | ee5e310ce320e006d506f3e2f2f16a3b941502f8 | 1,607 | Dagger_Tutorial | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.