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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data/base/src/main/java/ly/david/data/network/MusicBrainzResource.kt | lydavid | 458,021,427 | false | null | package ly.david.data.network
import com.squareup.moshi.Json
const val RESOURCE_AREA = "area"
const val RESOURCE_ARTIST = "artist"
const val RESOURCE_COLLECTION = "collection"
const val RESOURCE_EVENT = "event"
const val RESOURCE_GENRE = "genre"
const val RESOURCE_INSTRUMENT = "instrument"
const val RESOURCE_LABEL = ... | 54 | Kotlin | 0 | 4 | 052613fefaeb5a687ee36d0f3889d9a120224994 | 5,563 | MusicSearch | Apache License 2.0 |
src/main/kotlin/com/ivieleague/dejanko/orm/TypedResultSet.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.LazyMapList
import java.lang.Exception
import kotlin.reflect.KClass
typealias RowDataParser<T> = (ResultSet) -> (RowData) -> T
class TypedResultSet<T>(val resultSet: Resu... | 0 | Kotlin | 0 | 0 | 831febf88f9def35107cf8379fd88c16e677a72d | 1,482 | dejanko | MIT License |
plugin/src/main/kotlin/com/pablisco/gradle/automodule/utils/_Settings.kt | pablisco | 240,808,425 | false | null | package com.pablisco.gradle.automodule.utils
import org.gradle.api.initialization.Settings
/**
* Adds an extension to [Settings] as well as every project.
*/
fun <T: Any> Settings.addGlobalExtension(name: String, extension: T) {
extensions.add(name, extension)
gradle.allprojects { extensions.add(name, exten... | 2 | Kotlin | 8 | 96 | 4d5c307e41c7955acedc7c2c05f41ea712e121aa | 329 | auto-module | MIT License |
src/main/kotlin/dev/vstz/item/CraftableItem.kt | versustunez | 650,197,872 | false | null | package dev.vstz.item
import dev.vstz.generator.CraftingObject
import net.minecraft.data.server.recipe.RecipeJsonProvider
import net.minecraft.item.Item
import java.util.function.Consumer
class CraftableItem(
settings: Item.Settings,
var showName: String = "unnamed-item",
val generator: (exporter: Consum... | 0 | Kotlin | 0 | 0 | 94c82b94caf0fd146114000edf70292497c247fa | 870 | DatQuarry | Creative Commons Zero v1.0 Universal |
src/main/kotlin/io/github/projectmapk/jackson/module/kogera/SpreadWrapperDelegates.kt | ProjectMapK | 488,347,906 | false | null | package io.github.projectmapk.jackson.module.kogera
import java.lang.reflect.Constructor
import java.lang.reflect.Method
internal fun <T> Constructor<T>.call(args: Array<*>): T = SpreadWrapper.newInstance(this, args)
internal fun Method.call(instance: Any?, args: Array<*>): Any? = SpreadWrapper.invoke(this, instance,... | 7 | null | 1 | 89 | 7d9dbcd2fcdbc48631c01b51a919fe03ac6bb47e | 656 | jackson-module-kogera | Apache License 2.0 |
android/src/main/kotlin/dev/steenbakker/nordicdfu/NordicDfuPlugin.kt | shaileshbakshi | 470,106,161 | false | {"Dart": 20193, "Kotlin": 16156, "Swift": 8078, "Ruby": 2089, "Objective-C": 690} | package dev.steenbakker.nordicdfu
import android.app.NotificationManager
import android.content.Context
import android.os.Build
import android.os.Handler
import io.flutter.FlutterInjector
import io.flutter.embedding.engine.plugins.FlutterPlugin
import io.flutter.embedding.engine.plugins.FlutterPlugin.FlutterPluginBind... | 0 | Dart | 0 | 0 | bfd98c13434f91e5e28f3a95983fcdcbbf2ca5d9 | 10,991 | nordic_dfu | MIT License |
app/src/main/java/com/example/simpleweather/models/AppViewModel.kt | p-dim-popov | 443,565,179 | false | {"Kotlin": 31931} |
package com.example.simpleweather.models
import android.app.Application
import android.util.Log
import androidx.lifecycle.*
import androidx.work.*
import com.example.simpleweather.network.LocationDefinition
import com.example.simpleweather.network.WeatherApi
import com.example.simpleweather.network.getCurrentWeather
... | 0 | Kotlin | 0 | 0 | 093d75514924fac710331609f0a9d4c433d9bcb5 | 4,529 | SimpleWeather | Apache License 2.0 |
src/main/kotlin/org/noordawod/kotlin/restful/repository/impl/HtmlCompressorRepositoryImpl.kt | ndawod | 238,316,713 | false | {"Kotlin": 207275} | /*
* The MIT License
*
* Copyright 2022 <NAME>. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
... | 0 | Kotlin | 0 | 0 | 46fee6f843e094144d0897b1ebdd8e2a37864e94 | 3,940 | kotlin-restful | MIT License |
samples/web3wallet/src/main/kotlin/com/walletconnect/web3/wallet/ui/common/generated/CloseButton.kt | WalletConnect | 435,951,419 | false | null | package com.walletconnect.web3.wallet.ui.common.generated
import androidx.compose.foundation.Image
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.painterResource
import com.walletconnect.web3.wallet.sample.R
@Composable
fun CloseButton(modifier: Modifier ... | 131 | Kotlin | 51 | 148 | f54e9ebe97869065b15e307d16be8e5bee7635d0 | 447 | WalletConnectKotlinV2 | Apache License 2.0 |
uilib/src/main/java/dev/entao/kan/creator/RelativeCreator.kt | yangentao | 227,030,009 | false | null | @file:Suppress("unused")
package dev.entao.kan.creator
import android.content.Context
import android.view.View
import android.view.ViewGroup
import android.widget.RelativeLayout
import androidx.fragment.app.Fragment
import dev.entao.kan.base.act
import dev.entao.kan.ext.genId
/**
* Created by entaoyang@163.com on 2... | 0 | Kotlin | 0 | 0 | 6fe708427ab0b717a0f18c1d9a926dff69a7aa9c | 1,189 | ui | MIT License |
src/main/kotlin/club/someoneice/ricedumpling/init/ItemList.kt | AmarokIce | 684,902,993 | false | null | package club.someoneice.ricedumpling.init
import club.someoneice.ricedumpling.RiceDumpling
import club.someoneice.ricedumpling.api.AbstractLeaves
import club.someoneice.ricedumpling.api.AbstractSeasoning
import club.someoneice.ricedumpling.api.AbstractStuffing
import club.someoneice.ricedumpling.common.item.ItemRiceDu... | 0 | Kotlin | 0 | 0 | 1be38ef8f6833689fce9c540f875888076310c39 | 6,324 | RiceDumplings | Academic Free License v3.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/calculatereleasedatesapi/unuseddeductions/service/UnusedDeductionsServiceTest.kt | ministryofjustice | 387,841,000 | false | {"Kotlin": 876306, "Shell": 5975, "Dockerfile": 1337} | package uk.gov.justice.digital.hmpps.calculatereleasedatesapi.unuseddeductions.service
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
import org.mockito.InjectMocks
import org.mockito.junit.jupiter.MockitoExtension
import org.mockito.kotlin.mock
import org.mockito.kotlin.verify
imp... | 2 | Kotlin | 0 | 4 | fae5d02d05eeeea051b0d1899ef75eedf3240474 | 5,505 | calculate-release-dates-api | MIT License |
kingmc-common-api/src/main/kotlin/kingmc/util/resource/FileResource.kt | Kingsthere | 603,292,992 | false | {"Kotlin": 316584, "Java": 717} | package kingmc.util.resource
import java.io.File
import java.io.InputStream
import java.net.URL
open class FileResource(val file: File) : URLResource(file.toURI().toURL()) {
/**
* Gets this resource as a [URL] instance
*/
override fun asURL(): URL {
return url
}
/**
* Gets thi... | 0 | Kotlin | 0 | 1 | df84d9d5b97e320eaea946fbf7ccda3ee3783fed | 454 | kingmc-common | MIT License |
app/src/main/java/com/example/productmanagment/ViewProducts.kt | Priyaverma0596 | 269,779,065 | false | null | package com.example.productmanagment
import android.graphics.Color
import android.os.Bundle
import android.widget.AdapterView
import android.widget.ListView
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.example.productmanagment.MyApplication.Companion.products
class ViewProduc... | 0 | Kotlin | 1 | 2 | 058656ce20dff15f15de9e027b0d5d46f7412135 | 1,215 | ProductManagment | The Unlicense |
request/src/main/kotlin/com/healthmetrix/recontact/request/controller/JiraIssueEventController.kt | smart4health | 593,625,118 | false | null | package com.healthmetrix.recontact.request.controller
import com.healthmetrix.recontact.commons.ApiResponse
import com.healthmetrix.recontact.commons.CohortInfoChanged
import com.healthmetrix.recontact.commons.asEntity
import org.springframework.context.ApplicationEventPublisher
import org.springframework.http.HttpSta... | 0 | Kotlin | 0 | 2 | b82b70285bd7714b2e8705b4133a5f140250949a | 1,846 | dataprovision-recontact-service | MIT License |
app/src/main/java/com/nicholssoftware/astate3/framework/di/RepositoryModule.kt | nichojo89 | 594,892,355 | false | null | package com.nicholssoftware.astate3.framework.di
import android.app.Application
import com.nicholssoftware.astate3.framework.RoomContactDataSource
import com.nicholssoftware.core.repository.ContactsDataSource
import com.nicholssoftware.core.repository.ContactsRepository
import dagger.Module
import dagger.Provides
@Mo... | 0 | Kotlin | 0 | 0 | 859ad33b1dd67e5f4316f58d355e12bd86f907c0 | 467 | Clean-Architecture-Contacts | MIT License |
app/src/test/java/com/example/emafoods/feature/generatefood/domain/usecase/GenerateFoodUseCaseTest.kt | vladr7 | 625,532,633 | false | {"Kotlin": 531389} |
import com.example.emafoods.core.presentation.models.FoodViewData
import com.example.emafoods.feature.addfood.presentation.category.CategoryType
import com.example.emafoods.feature.generatefood.domain.usecase.GenerateFoodUseCase
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.runTest... | 0 | Kotlin | 0 | 4 | a65fc01c1f64f5cbf939812d4e54efba6a973842 | 6,141 | EmaFoods | Apache License 2.0 |
app/src/main/java/io/github/tonnyl/mango/ui/user/UserProfileFragment.kt | cppmule | 115,583,214 | true | {"Kotlin": 356336, "HTML": 31219} | /*
* Copyright (c) 2017 Lizhaotailang
*
* 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, publi... | 0 | Kotlin | 0 | 0 | 958210959ea4bacaaeefc43de796429856bc941b | 5,183 | Mango | MIT License |
common/src/main/kotlin/org/valkyrienskies/engine/EngineMod.kt | lilong00 | 673,983,359 | false | null | package org.valkyrienskies.engine
import org.valkyrienskies.core.impl.config.VSConfigClass
object EngineMod {
const val MOD_ID = "vs_engine"
@JvmStatic
fun init() {
EngineBlocks.register()
EngineBlockEntities.register()
EngineItems.register()
EngineScreens.register()
... | 0 | Kotlin | 0 | 0 | d5967ff44888ad1d56a84095132306b1b7ec61a8 | 551 | vs_engine | Apache License 2.0 |
app/src/main/java/com/login/demo/di/NetworkModule.kt | teamSolutionAnalysts | 507,778,254 | false | {"Kotlin": 114748, "Java": 1080} | package com.login.demo.di
import com.jakewharton.retrofit2.adapter.kotlin.coroutines.CoroutineCallAdapterFactory
import com.login.base.utils.ApiConstant
import com.login.demo.remote.IApiService
import org.koin.dsl.module
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
val networkModule ... | 0 | Kotlin | 0 | 0 | a0b288cd96a406ba62aff9ca8344ff6b779954bf | 727 | android-snippet | Apache License 2.0 |
common/src/main/java/com/ekoapp/ekosdk/uikit/base/EkoBaseViewModel.kt | amadeus-n | 467,842,651 | true | {"Kotlin": 1114879} | package com.ekoapp.ekosdk.uikit.base
import androidx.databinding.Observable
import androidx.lifecycle.ViewModel
import com.ekoapp.ekosdk.EkoClient
import com.ekoapp.ekosdk.permission.EkoPermission
import com.ekoapp.ekosdk.uikit.model.EventIdentifier
import com.ekoapp.ekosdk.uikit.model.EventType
import com.ekoapp.ekos... | 0 | null | 0 | 0 | d4fe097da96f71ab281c9b39fafdaa901aed377c | 2,647 | ASC-UIKit-Android | Microsoft Public License |
src/main/kotlin/me/devoxin/flight/api/hooks/DefaultCommandEventAdapter.kt | devoxin | 152,618,713 | false | {"Kotlin": 109332} | package me.devoxin.flight.api.hooks
import me.devoxin.flight.api.CommandFunction
import me.devoxin.flight.api.context.Context
import me.devoxin.flight.api.context.MessageContext
import me.devoxin.flight.api.entities.CheckType
import me.devoxin.flight.api.exceptions.BadArgument
import net.dv8tion.jda.api.Permission
imp... | 0 | Kotlin | 7 | 26 | e30e5216457e732cfd9340799fe803603959ee42 | 1,663 | Flight | Apache License 2.0 |
jetbrains-core/src/software/aws/toolkits/jetbrains/core/credentials/profiles/ProfileAssumeRoleProvider.kt | drakejin | 427,033,420 | true | {"Kotlin": 4082243, "C#": 95783, "Java": 35575, "Dockerfile": 1985} | // Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.jetbrains.core.credentials.profiles
import software.amazon.awssdk.auth.credentials.AwsCredentials
import software.amazon.awssdk.auth.credentials.AwsCredentialsProvider
import... | 0 | null | 0 | 0 | fec0dbb39f5dfabf2f3abc617805c2a592bd3714 | 3,102 | aws-toolkit-jetbrains | Apache License 2.0 |
ratings/src/test/kotlin/com/decathlon/ratings/VitaminRatingsPrimaryTest.kt | Decathlon | 492,727,156 | false | {"Kotlin": 5008802} | package com.decathlon.ratings
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Scaffold
import androidx.compose.material.Text
import and... | 14 | Kotlin | 24 | 232 | 7cbe1b995f9037593f13a8457650b1a7bc270597 | 3,820 | vitamin-compose | Apache License 2.0 |
app/src/androidTest/java/com/kkbox/yunwenlin/smartPlayer/CategoryTest.kt | LinYunWen | 108,524,467 | false | null | package com.kkbox.yunwenlin.smartPlayer
import android.support.test.InstrumentationRegistry
import org.junit.Assert.assertEquals
import org.junit.Test
class CategoryTest {
val testCategory = Category()
init {
val context = InstrumentationRegistry.getTargetContext()
MainActivity.moodStation = ... | 0 | Kotlin | 0 | 12 | 318d12a36828c83ccb6310773d6214ebc9ab60c7 | 1,036 | smart-player | Apache License 2.0 |
data/src/main/java/com/soethan/data/network/model/CurrencyApiItem.kt | soethan98 | 362,074,808 | false | null | package com.soethan.data.network.model
data class CurrencyApiItem(
val currencyCode: String,
val currencyRate: String
) | 0 | Kotlin | 0 | 0 | cb933349567ea0de8f69f964d086f5721fa0c7e8 | 128 | MMCurrencyExchange | Apache License 2.0 |
data/src/main/java/com/soethan/data/network/model/CurrencyApiItem.kt | soethan98 | 362,074,808 | false | null | package com.soethan.data.network.model
data class CurrencyApiItem(
val currencyCode: String,
val currencyRate: String
) | 0 | Kotlin | 0 | 0 | cb933349567ea0de8f69f964d086f5721fa0c7e8 | 128 | MMCurrencyExchange | Apache License 2.0 |
telegram-bot/src/main/kotlin/eu/vendeli/tgbot/types/SentWebAppMessage.kt | vendelieu | 496,567,172 | false | {"Kotlin": 460733, "CSS": 356} | package eu.vendeli.tgbot.types
data class SentWebAppMessage(val inlineMessageId: String? = null)
| 1 | Kotlin | 2 | 98 | f466e59c663d7319d1bcb9fd526e52c666c5927f | 98 | telegram-bot | Apache License 2.0 |
lecture06/src/main/kotlin/io/rybalkinsd/kotlinbootcamp/example/ExampleApplication.kt | rybalkinsd | 143,287,871 | false | null | package io.rybalkinsd.kotlinbootcamp.example
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
@SpringBootApplication
class ExampleApplication
fun main(args: Array<String>) {
runApplication<ExampleApplication>(*args)
} | 69 | Kotlin | 37 | 49 | 687f918f7eef2faf86fdcb4cdfde6e2f9e3faec1 | 290 | kotlin-boot-camp | MIT License |
src/main/kotlin/de/terrestris/keycloak/ldap/LdapDnMapper.kt | terrestris | 356,157,445 | false | null | package de.terrestris.keycloak.ldap
import org.jboss.logging.Logger
import org.keycloak.component.ComponentModel
import org.keycloak.models.GroupModel
import org.keycloak.models.RealmModel
import org.keycloak.models.RoleModel
import org.keycloak.models.UserModel
import org.keycloak.storage.ldap.LDAPStorageProvider
imp... | 2 | Kotlin | 0 | 0 | e6632067fc8c41a3d737796a9112851aaa0842d0 | 3,022 | keycloak-dn-mapper | Apache License 2.0 |
core/navigation/src/commonMain/kotlin/com/kweku/armah/core/navigation/AppDestinations.kt | Kweku-A | 677,116,230 | false | {"Kotlin": 251815, "Ruby": 34506, "Swift": 708, "Shell": 228} | package com.kweku.armah.core.navigation
import cafe.adriel.voyager.core.registry.ScreenProvider
sealed class DashboardDestinations : ScreenProvider {
data object DashboardScreen : DashboardDestinations()
data class BooksScreen(val examId: String) : DashboardDestinations()
data class BookQuizzesScreen(val ... | 0 | Kotlin | 0 | 0 | 827c7c4922e90ef8e40ef6dfa0cae978c5cda0f3 | 1,236 | Dokimos-Examiner | Apache License 2.0 |
app/src/main/java/br/com/lucaspires/tibiainfotracker/presentation/app/TibiaApp.kt | lucaspiresdba | 363,201,525 | false | null | package br.com.lucaspires.tibiainfotracker.presentation.app
import android.app.Application
import br.com.lucaspires.tibiainfotracker.AppConstants.FIREBASE_DATABASE_REFERENCE_CITIES
import br.com.lucaspires.tibiainfotracker.AppConstants.FIREBASE_DATABASE_REFERENCE_WORLDS
import br.com.lucaspires.tibiainfotracker.BuildC... | 5 | Kotlin | 0 | 1 | f13dcded23bb3f21d605e71f003099d228d97daf | 1,120 | tibiainfotracker_public | Apache License 2.0 |
app/src/main/java/project/eric/grocerylist/list/GroceryListViewModel.kt | ericngg | 579,520,001 | false | {"Kotlin": 20571} | package project.eric.grocerylist.list
import android.app.Application
import android.util.Log
import android.widget.Toast
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers... | 0 | Kotlin | 0 | 0 | fbf80bccc606ff7b04fb0a6e8d357f2047ce3b1b | 3,573 | GroceryList | Apache License 2.0 |
app/src/androidTest/kotlin/org/andstatus/todoagenda/util/RawResourceUtils.kt | andstatus | 162,867,215 | true | {"Gradle": 4, "INI": 2, "Shell": 2, "Text": 10, "Ignore List": 1, "Batchfile": 1, "YAML": 1, "Markdown": 2, "XML": 112, "Kotlin": 146, "Java Properties": 1, "JSON": 13} | /*
* Based on the example:
* http://stackoverflow.com/questions/4087674/android-read-text-raw-resource-file
*/
package org.andstatus.todoagenda.util
import android.content.Context
import java.io.ByteArrayOutputStream
import java.io.IOException
import java.nio.charset.Charset
object RawResourceUtils {
@Throws(... | 45 | Kotlin | 18 | 114 | 8f76393817f77ec190d7661fb49951fc0abdf169 | 1,189 | todoagenda | Apache License 2.0 |
void-lib/void-separate-modules/void-toolkit/src/test/kotlin/cn/toutatis/toolkit/file/ArchiveTest.kt | ToutatisGc | 450,618,569 | false | {"Text": 2, "Ignore List": 5, "Markdown": 31, "JSON with Comments": 3, "JSON": 17, "Dotenv": 5, "JavaScript": 23, "HTML": 2, "robots.txt": 2, "SVG": 23, "TSX": 16, "SCSS": 5, "CSS": 14, "YAML": 16, "EditorConfig": 1, "Vue": 172, "Less": 27, "Maven POM": 65, "Java": 313, "Kotlin": 179, "INI": 5, "Java Properties": 2, "X... | package cn.toutatis.toolkit.file
import cn.toutatis.xvoid.toolkit.file.FileToolkit
import org.apache.commons.compress.archivers.zip.ZipArchiveEntry
import org.apache.commons.compress.archivers.zip.ZipArchiveInputStream
import org.junit.Test
import java.io.BufferedReader
import java.io.FileInputStream
import java.io.In... | 0 | Java | 1 | 5 | a2bc2a7393a7b177afa0903ddd4838098d9b1e6c | 1,272 | VOID | Apache License 2.0 |
app/src/main/java/com/fsmpriyankaenterprises/features/login/model/WhatsappApiData.kt | DebashisINT | 650,050,446 | false | {"Kotlin": 13676459, "Java": 996082} | package com.fsmpriyankaenterprises.features.login.model
import com.fsmpriyankaenterprises.app.domain.VisitRevisitWhatsappStatus
data class WhatsappApiData(val user_id:String,var shop_whatsapp_api_list:ArrayList<VisitRevisitWhatsappStatus>)
data class WhatsappApiFetchData(val status:String,var message:String,var user... | 0 | Kotlin | 0 | 0 | 552beca3a452d888198af07fffc8b0dbff9c7c48 | 396 | PriyankaEnterprises | Apache License 2.0 |
sync/sync-impl/src/test/java/com/duckduckgo/sync/impl/ui/SyncConnectViewModelTest.kt | hojat72elect | 822,396,044 | false | {"Kotlin": 11627106, "HTML": 65873, "Ruby": 16984, "C++": 10312, "JavaScript": 5520, "CMake": 1992, "C": 1076, "Shell": 784} |
package com.duckduckgo.sync.impl.ui
import androidx.test.ext.junit.runners.AndroidJUnit4
import app.cash.turbine.test
import com.duckduckgo.common.test.CoroutineTestRule
import com.duckduckgo.sync.TestSyncFixtures
import com.duckduckgo.sync.TestSyncFixtures.jsonConnectKeyEncoded
import com.duckduckgo.sync.TestSyncFi... | 0 | Kotlin | 0 | 0 | 54351d039b85138a85cbfc7fc3bd5bc53637559f | 8,039 | DuckDuckGo | Apache License 2.0 |
designer/testSrc/com/android/tools/idea/actions/CreateSampleDataDirectoryTest.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | null | 230 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 2,142 | android | Apache License 2.0 |
packages/base/src/jvmTest/kotlin/elide/runtime/LoggingFactoryTest.kt | elide-dev | 506,113,888 | false | null | package elide.runtime
import kotlin.test.Test
import kotlin.test.assertNotNull
/** Tests for acquiring [Logger] instances on the JVM. */
class LoggingFactoryTest {
@Test fun testAcquireRootLogger() {
assertNotNull(
Logging.root(),
"should be able to acquire root logger on JVM"
)
}
@Test fun... | 36 | Kotlin | 4 | 33 | 91800dbbf291e65a91d451ed50c9673d82efd174 | 802 | elide | MIT License |
packages/base/src/jvmTest/kotlin/elide/runtime/LoggingFactoryTest.kt | elide-dev | 506,113,888 | false | null | package elide.runtime
import kotlin.test.Test
import kotlin.test.assertNotNull
/** Tests for acquiring [Logger] instances on the JVM. */
class LoggingFactoryTest {
@Test fun testAcquireRootLogger() {
assertNotNull(
Logging.root(),
"should be able to acquire root logger on JVM"
)
}
@Test fun... | 36 | Kotlin | 4 | 33 | 91800dbbf291e65a91d451ed50c9673d82efd174 | 802 | elide | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/nomisvisitsmappingservice/prisonperson/PrisonPersonMigrationMappingRequest.kt | ministryofjustice | 454,373,167 | false | {"Kotlin": 1367141, "Dockerfile": 1370} | package uk.gov.justice.digital.hmpps.nomisvisitsmappingservice.prisonperson
import com.fasterxml.jackson.annotation.JsonInclude
import io.swagger.v3.oas.annotations.media.Schema
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(description = "Prison person mapping")
data class PrisonPersonMigrationMappingRequest(
... | 0 | Kotlin | 1 | 0 | 9820c81a59085a57f9567147745cd67a4dabdc56 | 887 | hmpps-nomis-mapping-service | MIT License |
services/docker-network-service/src/main/kotlin/org/katan/service/dockerNetwork/ConnectionImpl.kt | DevNatan | 548,003,957 | true | {"Kotlin": 238347, "Dockerfile": 521} | package org.katan.service.dockerNetwork
import kotlinx.serialization.Serializable
import org.katan.model.net.Connection
@Serializable
internal data class ConnectionImpl(override val host: String, override val port: Int) : Connection {
override fun toString(): String {
return "$host:$port"
}
}
| 0 | null | 0 | 0 | 4d48c3a74cc847568eb85da781649fd545e1c97e | 313 | Katan | Apache License 2.0 |
src/main/kotlin/be/webtechie/MainKotlin.kt | FDelporte | 857,335,082 | false | {"Kotlin": 1414, "Java": 1332} | package be.webtechie
import javafx.application.Application
import javafx.application.Platform
import javafx.geometry.Pos
import javafx.scene.Scene
import javafx.scene.control.Button
import javafx.scene.control.Label
import javafx.scene.layout.BorderPane
import javafx.scene.layout.VBox
import javafx.stage.Stage
class ... | 0 | Kotlin | 0 | 0 | 2ea419fb0bb2e0a87039d097df4fe14858a1aafe | 1,414 | javafx-with-java-versus-kotlin | MIT License |
modules/services/player/src/commonMain/kotlin/com/makeevrserg/kmmplayground/SongPlayer.kt | makeevrserg | 583,260,374 | false | null | package com.makeevrserg.kmmplayground
interface SongPlayer {
/**
* Pause player
*/
fun pause()
/**
* Stops player
*/
fun stop()
/**
* Resume paused song
*/
fun resume()
/**
* Play song from url
*/
fun play(url: String)
} | 0 | Kotlin | 0 | 0 | d45757f0d948a4bd36e190d1b696e1e7fdb4bffa | 296 | KMM-Playground | MIT License |
app/src/main/java/com/hello/curiosity/ui/scenes/color/ColorPresentation.kt | HelloCuriosity | 531,667,914 | false | {"Kotlin": 184347, "Shell": 3150, "Makefile": 946} | package com.hello.curiosity.ui.scenes.color
import androidx.compose.ui.graphics.Color
data class ColorPresentation(
val title: String,
val color: Color,
)
| 8 | Kotlin | 0 | 4 | 7da1e7f005d9898f96e91cbec03a89f0d548bd74 | 165 | curiosity | MIT License |
analysis/analysis-api-platform-interface/src/org/jetbrains/kotlin/analysis/api/platform/KotlinPlatformComponent.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | /*
* Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.analysis.api.platform
/**
* A **platform component** as defined by the Platform... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,624 | kotlin | Apache License 2.0 |
app/src/main/java/com/moreflow/museumsample/presentation/MuseumListFragment.kt | wooram-yang | 583,855,609 | false | null | package com.moreflow.museumsample.presentation
import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.viewModels
import androidx.lifecycle.Observer
import android... | 0 | Kotlin | 0 | 0 | bd9cd72e4f25ade33139d65850715a8c79702160 | 3,540 | MuseumSample | MIT License |
src/main/kotlin/com/madrapps/eventbus/subscribe/SubscribeLineMarkerProvider.kt | TrendingTechnology | 205,156,500 | true | {"Kotlin": 24878} | package com.madrapps.eventbus.subscribe
import com.intellij.codeInsight.daemon.LineMarkerInfo
import com.intellij.codeInsight.daemon.LineMarkerProvider
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.application.ReadAction
import com.intellij.openapi.editor.markup.GutterIconRende... | 0 | Kotlin | 0 | 0 | 04f076077d3f13c460e352c59811bb9d27d21f12 | 4,079 | eventbus-plugin | Apache License 2.0 |
src/main/kotlin/com/madrapps/eventbus/subscribe/SubscribeLineMarkerProvider.kt | TrendingTechnology | 205,156,500 | true | {"Kotlin": 24878} | package com.madrapps.eventbus.subscribe
import com.intellij.codeInsight.daemon.LineMarkerInfo
import com.intellij.codeInsight.daemon.LineMarkerProvider
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.application.ReadAction
import com.intellij.openapi.editor.markup.GutterIconRende... | 0 | Kotlin | 0 | 0 | 04f076077d3f13c460e352c59811bb9d27d21f12 | 4,079 | eventbus-plugin | Apache License 2.0 |
src/main/kotlin/yandex/cloud/toolkit/ui/explorer/CloudExplorerRootNode.kt | yandex-cloud | 386,235,739 | false | {"Kotlin": 506192, "HTML": 1351} | package yandex.cloud.toolkit.ui.explorer
import com.intellij.ui.treeStructure.SimpleNode
import yandex.cloud.toolkit.api.explorer.CloudExplorer
import yandex.cloud.toolkit.ui.node.SelectProfileNode
class CloudExplorerRootNode(val explorer: CloudExplorer) : SimpleNode(explorer.project) {
override fun getChildren(... | 11 | Kotlin | 4 | 65 | 2f8eaa54aad978e5ab452e5d05ba573f68b72943 | 559 | ide-plugin-jetbrains | MIT License |
example/transfer/type/money/src/main/kotlin/ru/adavliatov/atomy/example/transfer/type/error/errors.kt | alexdavliatov | 225,302,521 | false | null | package ru.adavliatov.atomy.example.transfer.type.error
import ru.adavliatov.atomy.common.type.error.HttpWrapperErrors.InvalidArgumentError
import ru.adavliatov.atomy.example.transfer.type.*
import ru.adavliatov.atomy.example.transfer.type.error.code.*
import ru.adavliatov.atomy.example.transfer.type.error.code.MoneyE... | 2 | Kotlin | 0 | 0 | 339bb62939fb32775f7a448aa860d8b2643767a5 | 894 | atomy | Apache License 2.0 |
apps/etterlatte-utbetaling/src/main/kotlin/no/nav/etterlatte/utbetaling/UtbetalingRoutes.kt | navikt | 417,041,535 | false | {"Kotlin": 5788367, "TypeScript": 1519740, "Handlebars": 21334, "Shell": 12214, "HTML": 1734, "Dockerfile": 676, "CSS": 598, "PLpgSQL": 556} | package no.nav.etterlatte.utbetaling
import io.ktor.http.HttpStatusCode
import io.ktor.server.application.call
import io.ktor.server.application.log
import io.ktor.server.response.respond
import io.ktor.server.routing.Route
import io.ktor.server.routing.application
import io.ktor.server.routing.post
import io.ktor.ser... | 13 | Kotlin | 0 | 6 | abd4600c70b4188d7d6272ea2d650421ffdfcfb6 | 1,250 | pensjon-etterlatte-saksbehandling | MIT License |
apps/etterlatte-utbetaling/src/main/kotlin/no/nav/etterlatte/utbetaling/UtbetalingRoutes.kt | navikt | 417,041,535 | false | {"Kotlin": 5788367, "TypeScript": 1519740, "Handlebars": 21334, "Shell": 12214, "HTML": 1734, "Dockerfile": 676, "CSS": 598, "PLpgSQL": 556} | package no.nav.etterlatte.utbetaling
import io.ktor.http.HttpStatusCode
import io.ktor.server.application.call
import io.ktor.server.application.log
import io.ktor.server.response.respond
import io.ktor.server.routing.Route
import io.ktor.server.routing.application
import io.ktor.server.routing.post
import io.ktor.ser... | 13 | Kotlin | 0 | 6 | abd4600c70b4188d7d6272ea2d650421ffdfcfb6 | 1,250 | pensjon-etterlatte-saksbehandling | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/ecs/CfnClusterCapacityProviderAssociationsDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.ecs
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.String
import kotlin.Unit
import software.amazon.awscdk.services.ecs.CfnClusterCapacityProviderAssociations
import software.amazon.awscdk.services.ecs.CfnClusterCapacityProviderAs... | 1 | Kotlin | 0 | 0 | e9a0ff020b0db2b99e176059efdb124bf822d754 | 1,273 | aws-cdk-kt | Apache License 2.0 |
kotlin-mui-icons/src/main/generated/mui/icons/material/TableBarTwoTone.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/TableBarTwoTone")
@file:JsNonModule
package mui.icons.material
@JsName("default")
external val TableBarTwoTone: SvgIconComponent
| 12 | null | 5 | 983 | a99345a0160a80a7a90bf1adfbfdc83a31a18dd6 | 212 | kotlin-wrappers | Apache License 2.0 |
module-domain/src/main/kotlin/io/klaytn/finder/domain/mysql/set3/nft/NftBurnRepository.kt | klaytn | 678,353,482 | false | {"Kotlin": 1725962, "Solidity": 71874, "Shell": 3957} | package io.klaytn.finder.domain.mysql.set3.nft
import io.klaytn.finder.domain.mysql.BaseRepository
import io.klaytn.finder.domain.mysql.EntityId
import io.klaytn.finder.infra.db.DbTableConstants
import org.springframework.data.domain.Pageable
import org.springframework.data.jpa.repository.Query
import org.springframew... | 3 | Kotlin | 0 | 0 | 61f4120199b502be838e6139fd5e9994ca26f16f | 2,376 | finder-api | MIT License |
app/src/main/java/com/codepath/flixster/FlixsterFragment.kt | thotranexe | 601,369,677 | false | null | package com.codepath.flixster
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.core.widget.ContentLoadingProgressBar
import androidx.fragment.app.Fragment
import androidx.recyclerview.w... | 1 | Kotlin | 0 | 0 | bba0b0cbc44490c1b262f3050d9bc08152019f76 | 4,234 | flixster | Apache License 2.0 |
app/src/main/java/com/example/weather/data/model/CurrentWeather.kt | bachhoan88 | 432,735,453 | false | {"Kotlin": 118213} | package com.example.weather.data.model
import com.example.weather.data.base.DataModel
import com.google.gson.annotations.SerializedName
data class CurrentWeather(
@SerializedName("id") val id: Int,
@SerializedName("name") val name: String,
@SerializedName("cod") val cod: Int,
@SerializedName("coord") ... | 0 | Kotlin | 17 | 32 | 8a29cfb93a18b2d5e149048813f058703385dc28 | 791 | MAD-Clean-Architecture | Apache License 2.0 |
src/main/kotlin/org/itheima/game/model/Water.kt | pessonljxpd | 112,436,426 | false | null | package org.itheima.game.model
import org.itheima.game.Config
import org.itheima.kotlin.game.core.Painter
/**
* 水墙
*
* @author Shelly
* @date 2017/11/29
*/
class Water(override val x: Int, override val y: Int) : View {
/**
* 重载View的成员变量并赋值
*/
override var width: Int = Config.block
override... | 0 | Kotlin | 0 | 0 | b3bebebc2912d6844e6b5791f3eed13a0e7fbde5 | 463 | Game_Tank | Apache License 2.0 |
app/src/main/java/com/cryptocurrencytracker/demo/helper/Constants.kt | GokhanDurmaz | 336,504,819 | false | null | package com.cryptocurrencytracker.demo.helper
/**
* Created by gokhan on 2/7/21.
*/
const val BASE_URL = "https://api.coingecko.com/"
const val MIME_TYPE = "text/html"
const val ENCODING = "utf-8"
const val COIN_FLOAT_VIEW_DELAY: Long = 5000
| 0 | Kotlin | 0 | 0 | 36367239e579ae4dcdf67226a676af6c3f5f2b6f | 246 | CryptoCurrencyTracker | Apache License 2.0 |
retrofit-kx-ksp/src/main/kotlin/io/github/retrofitx/ksp/ProcessingFailureException.kt | agamula90 | 600,692,053 | false | {"Kotlin": 193895} | package io.github.retrofitx.ksp
class ProcessingFailureException(override val message: String): RuntimeException(message) | 0 | Kotlin | 0 | 3 | 8c9fcfc6f6e08aaf524675c4ba588d7b25da4a10 | 122 | retrofit-kx | Apache License 2.0 |
src/commonTest/kotlin/requests/BookmarkApiTestFactory.kt | MrNuggelz | 866,645,099 | false | {"Kotlin": 166720} | package io.github.mrnuggelz.opensubsonic.requests
import io.github.mrnuggelz.opensubsonic.responses.SongId
import io.kotest.core.spec.style.stringSpec
import kotlinx.datetime.Instant
import responseexpectations.songIllwiththeSkills
import responseexpectations.songStayOutHere
val bookmarkAPITestFactory = stringSpec {
... | 0 | Kotlin | 0 | 1 | b822e7775c4f1271bc821db17e6b8ecc500d5346 | 1,519 | OpenSubsonicClient | Apache License 2.0 |
src/commonTest/kotlin/requests/BookmarkApiTestFactory.kt | MrNuggelz | 866,645,099 | false | {"Kotlin": 166720} | package io.github.mrnuggelz.opensubsonic.requests
import io.github.mrnuggelz.opensubsonic.responses.SongId
import io.kotest.core.spec.style.stringSpec
import kotlinx.datetime.Instant
import responseexpectations.songIllwiththeSkills
import responseexpectations.songStayOutHere
val bookmarkAPITestFactory = stringSpec {
... | 0 | Kotlin | 0 | 1 | b822e7775c4f1271bc821db17e6b8ecc500d5346 | 1,519 | OpenSubsonicClient | Apache License 2.0 |
eth-deposit/src/main/kotlin/com/d3/eth/deposit/endpoint/EthSignature.kt | d3ledger | 184,047,300 | false | null | /*
* Copyright D3 Ledger, Inc. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package com.d3.eth.deposit.endpoint
/**
* Class represents type of signature required for ETH smart contract
*/
typealias EthSignature = String
| 2 | Kotlin | 3 | 2 | 5c246c32991e4a30194cc320b77641190f1497e5 | 244 | d3-eth | Apache License 2.0 |
squash-core/test/org/jetbrains/squash/tests/data/Hierarchy.kt | orangy | 59,228,714 | false | null | package org.jetbrains.squash.tests.data
import org.jetbrains.squash.connection.*
import org.jetbrains.squash.definition.*
import org.jetbrains.squash.statements.*
import org.jetbrains.squash.tests.*
object HierarchyTable : TableDefinition() {
val id = integer("id").autoIncrement().primaryKey()
val name = varc... | 27 | Kotlin | 17 | 258 | dc025481b7104a5e234d6df370d715b6b37c81eb | 1,341 | squash | Apache License 2.0 |
core/src/jsMain/kotlin/de/p7s1/qa/sevenfacette/kafka/KRecord.kt | munichbughunter | 237,981,305 | false | {"Kotlin": 272591, "HTML": 8356, "Shell": 1041} | package de.p7s1.qa.sevenfacette.kafka
/**
* TODO: Add Description
*
* @author <NAME>
*/
data class KRecord(var key: String?, var value: String?, var offset: Int, var partition: Int) {}
| 5 | Kotlin | 1 | 29 | 22038f9fd038e9ac9530fd6b89e970cc7f9ec0f7 | 190 | SevenFacette | MIT License |
design4/storage-service/src/main/kotlin/com/tempstorage/storagesvc/service/storage/FileStorageServiceImpl.kt | awarenessxz | 363,068,047 | false | null | package com.tempstorage.storagesvc.service.storage
import com.tempstorage.storagesvc.config.StorageSvcProperties
import com.tempstorage.storagesvc.controller.storage.StorageUploadMetadata
import com.tempstorage.storagesvc.exception.ApiException
import com.tempstorage.storagesvc.exception.ErrorCode
import com.tempstora... | 0 | Kotlin | 0 | 1 | 7461984eec1effc91abc78206a9971cdfbd7df4d | 8,159 | TempFileDrop | Apache License 2.0 |
src/main/java/ir/firoozehcorp/gameservice/core/apiWebRequest/ApiRequest.kt | AR-Ghodrati | 246,913,293 | false | null | /*
* <copyright file="ApiRequest.kt" company="Firoozeh Technology LTD">
* Copyright (C) 2020. Firoozeh Technology LTD. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License ... | 0 | Kotlin | 0 | 0 | 2977427a328b7accb7972a03e4bd401a09693b72 | 33,208 | GameService-Kotlin-SDK | Apache License 2.0 |
app/src/main/java/com/swayy/musicpark/data/remote/dto/album/Images.kt | gideonrotich | 557,405,183 | false | {"Kotlin": 274873} | package com.swayy.musicpark.data.remote.dto.album
data class Images(
val href: String
) | 0 | Kotlin | 6 | 58 | aa7ce4d7d4481a76b28de61a82d27958f92192d0 | 92 | MusicPark | MIT License |
app/src/main/java/com/anangkur/mediku/data/model/menstrual/MenstrualPeriodResume.kt | anangkur | 236,449,731 | false | null | package com.anangkur.mediku.data.model.menstrual
data class MenstrualPeriodResume(
val year: String = "",
val month: String = "",
val firstDayPeriod: String = "",
val lastDayPeriod: String = "",
val firstDayFertile: String = "",
val lastDayFertile: String = "",
val firstDayFertileDay: Int =... | 2 | Kotlin | 1 | 4 | 4b4e184a5ea9368c0901262ce9899bad6c56fb87 | 450 | Medi-Ku | MIT License |
updater-deob/src/main/java/org/runestar/client/updater/deob/common/ComputeFrames.kt | widget- | 249,041,961 | true | {"Markdown": 31, "Maven POM": 21, "Text": 2, "Kotlin": 587, "Java": 37, "XML": 2, "YAML": 1} | package org.runestar.client.updater.deob.common
import org.objectweb.asm.ClassWriter
import org.objectweb.asm.Type
import org.objectweb.asm.tree.ClassNode
import org.runestar.client.updater.deob.Transformer
import org.runestar.client.updater.deob.util.readJar
import org.runestar.client.updater.deob.util.writeJar
impor... | 0 | Kotlin | 0 | 0 | b7e09ae47bcf037818a4f9fc55e0c2506dc96a12 | 2,343 | client-1 | MIT License |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/route53/targets/ApiGatewayv2DomainProperties.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 142794926} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.route53.targets
import io.cloudshiftdev.awscdk.common.CdkObject
import io.cloudshiftdev.awscdk.servic... | 1 | Kotlin | 0 | 4 | e15f2e27e08adeb755ad44b2424c195521a6f5ba | 2,581 | kotlin-cdk-wrapper | Apache License 2.0 |
app/src/main/java/com/heronet/sellnetbeta/ui/screen/AboutScreen.kt | heronet | 381,562,805 | false | null | package com.heronet.sellnetbeta.ui.screen
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.text.selection.SelectionContainer... | 0 | Kotlin | 0 | 0 | 24d1287c43631c56f96b8a89625f2af5f66b4420 | 1,923 | sellnet-android-old-jc | MIT License |
idea/idea-completion/testData/smart/vararg/1.kt | JakeWharton | 99,388,807 | false | null | fun foo(vararg strings: String){ }
fun bar(s: String, arr: Array<String>){
foo(<caret>)
}
// EXIST: s
// EXIST: { lookupString: "arr", itemText: "*arr" }
| 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 160 | kotlin | Apache License 2.0 |
app/src/main/kotlin/org/jdc/template/ux/acknowledgement/AcknowledgementViewModel.kt | jeffdcamp | 12,853,600 | false | {"Kotlin": 391400, "HTML": 58007} | package org.jdc.template.ux.acknowledgement
import android.app.Application
import androidx.lifecycle.ViewModel
import co.touchlab.kermit.Logger
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import org.jdc.template.ui.navigation.ViewModelNav
import org.jdc.template.u... | 0 | Kotlin | 40 | 99 | a50a83a046765c6ba8d0c60a5241e7aba7fe8c59 | 1,256 | android-template | Apache License 2.0 |
wearapp/src/main/java/com/thewizrd/simpleweather/wearable/AQIComplicationService.kt | SimpleAppProjects | 82,603,731 | false | null | package com.thewizrd.simpleweather.wearable
import android.graphics.drawable.Icon
import androidx.wear.watchface.complications.data.*
import androidx.wear.watchface.complications.datasource.ComplicationRequest
import com.thewizrd.shared_resources.controls.AirQualityViewModel
import com.thewizrd.shared_resources.utils.... | 2 | Java | 3 | 9 | 794bbaf5e1ea914781485cc5e10fce2f2308b4d2 | 5,776 | SimpleWeather-Android | Apache License 2.0 |
src/main/kotlin/com/koproxy/controller/ProxyController.kt | vitaliykushneruk | 684,112,273 | false | null | package com.koproxy.controller
import com.koproxy.utils.ProxyUtil
import com.koproxy.utils.proxy.Proxy
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
@RestController
@RequestMapping("... | 0 | Kotlin | 0 | 0 | 1bb369e9893a9a85354bbb6e7459d9612eb072ea | 496 | koproxy | MIT License |
tea-time-travel-plugin/src/main/java/com/oliynick/max/tea/core/debug/app/feature/server/GsonSerializers.kt | Xlopec | 188,455,731 | false | null | /*
* Copyright (C) 2021. <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 0 | Kotlin | 0 | 10 | 343f1c7ea7755db989c752722a02cf85236cf9e2 | 2,671 | Tea-bag | MIT License |
TelegramBotAPI/src/commonMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/chat/extended/ExtendedGroupChatImpl.kt | sleshJdev | 289,571,865 | true | {"Kotlin": 718048} | package com.github.insanusmokrassar.TelegramBotAPI.types.chat.extended
import com.github.insanusmokrassar.TelegramBotAPI.types.*
import com.github.insanusmokrassar.TelegramBotAPI.types.chat.ChatPermissions
import com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts.extended.ExtendedGroupChat
import com.gith... | 0 | null | 0 | 0 | cc0498a89a28ae8205f6f854534ec6f31be36cda | 1,243 | TelegramBotAPI | Apache License 2.0 |
app-components/src/main/java/ru/shafran/common/customers/details/generator/CardGeneratorComponent.kt | SuLG-ik | 384,238,863 | false | null | package ru.shafran.common.customers.details.generator
import ru.shafran.common.customers.details.edit.CustomerEditor
import ru.shafran.common.customers.details.edit.CustomerEditorComponent
import ru.shafran.network.customers.data.EditableCustomerData
class CardGeneratorComponent(
override val data: EditableCustom... | 0 | Kotlin | 0 | 1 | aef4a3083c87e2bd2de1eaff2b9925a5dc226fe2 | 509 | ShafranCards | Apache License 2.0 |
health/health-services-client/src/main/java/androidx/health/services/client/impl/ServiceBackedPassiveMonitoringClient.kt | RikkaW | 389,105,112 | true | {"Java": 49060640, "Kotlin": 36832495, "Python": 336507, "AIDL": 179831, "Shell": 150493, "C++": 38342, "ANTLR": 19860, "HTML": 10802, "TypeScript": 6933, "CMake": 3330, "JavaScript": 1343} | /*
* Copyright (C) 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Java | 0 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 5,543 | androidx | Apache License 2.0 |
platform/lang-impl/src/com/intellij/util/indexing/roots/ModuleIndexableFilesIteratorImpl.kt | cpovirk | 407,239,569 | false | {"Text": 6384, "XML": 6453, "YAML": 418, "Ant Build System": 11, "Shell": 562, "Markdown": 574, "Ignore List": 95, "Git Attributes": 10, "EditorConfig": 233, "Batchfile": 27, "SVG": 2409, "Java": 76568, "Kotlin": 42386, "Java Properties": 198, "HTML": 2906, "INI": 427, "JFlex": 31, "CSS": 59, "Groovy": 3462, "XSLT": 11... | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.util.indexing.roots
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.module.Module
import com.intellij.openapi.module.M... | 1 | null | 1 | 1 | 30eb439398b10f1209403c6e3ab0632db6212e22 | 3,823 | intellij-community | Apache License 2.0 |
leitnerbox/repository/database/local/room/dao/CardDao.kt | morync | 198,999,267 | false | null | package com.kecsot.leitnerbox.repository.database.local.room.dao
import androidx.room.*
import com.kecsot.leitnerbox.repository.database.local.room.entity.CardEntity
import io.reactivex.Single
@Dao
interface CardDao {
@Query("SELECT * FROM cards WHERE id = :deckId LIMIT 1")
fun getById(deckId: Long): Singl... | 0 | Kotlin | 0 | 0 | 7a05fb782936ec6d4832add38c6026b43762c373 | 1,536 | Leitner-Box-Flashcard | MIT License |
src/aws/lambdas/incremental_distribution/cta/src/main/java/uk/nhs/nhsx/virology/events.kt | turlodales | 289,705,241 | true | {"Kotlin": 1762543, "HCL": 516174, "Ruby": 402118, "Python": 95997, "HTML": 10538, "Java": 6060, "Shell": 5028, "Dockerfile": 3728, "Makefile": 780, "JavaScript": 554} | package uk.nhs.nhsx.virology
import uk.nhs.nhsx.core.events.Event
import uk.nhs.nhsx.core.events.EventCategory.Error
import uk.nhs.nhsx.core.events.EventCategory.Info
import uk.nhs.nhsx.core.events.EventCategory.Warning
import uk.nhs.nhsx.core.exceptions.TransactionException
import uk.nhs.nhsx.core.headers.MobileAppVe... | 0 | Kotlin | 0 | 0 | 8c67d6e23c7fc79f039c4012238d82131900a4d4 | 3,751 | covid19-app-system-public | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/AppsSort.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
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.compose.ui.gr... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 4,403 | icons | MIT License |
app/src/main/java/com/seyfullahpolat/websocket/service/RetrofitClient.kt | seyfullahpolat | 205,956,835 | false | null | package com.seyfullahpolat.websocket.service
import com.seyfullahpolat.websocket.BuildConfig
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
import java.util.concurrent.TimeUnit
class RetrofitClient {
val http... | 0 | Kotlin | 0 | 1 | a2d9c8bc80b6deacbed8c4d347771ab409839d53 | 1,252 | socketApp | MIT License |
codebase/android/core-database/src/main/java/com/makeappssimple/abhimanyu/financemanager/android/core/database/source/usecase/InsertSourcesUseCase.kt | Abhimanyu14 | 429,663,688 | false | null | package com.makeappssimple.abhimanyu.financemanager.android.core.database.source.usecase
import com.makeappssimple.abhimanyu.financemanager.android.core.database.source.model.Source
import com.makeappssimple.abhimanyu.financemanager.android.core.database.source.repository.SourceRepository
import com.makeappssimple.abh... | 0 | Kotlin | 0 | 0 | 29afaec0cf4e95ba4d6c0dcc32cba3fea6a088cb | 864 | finance-manager | Apache License 2.0 |
jetbrains-ultimate/tst/software/aws/toolkits/jetbrains/services/redshift/RedshiftUtilsTest.kt | JetBrains | 223,485,227 | true | {"Gradle Kotlin DSL": 21, "Markdown": 16, "Java Properties": 2, "Shell": 1, "Text": 12, "Ignore List": 3, "Batchfile": 1, "Git Attributes": 1, "EditorConfig": 3, "YAML": 28, "XML": 96, "Kotlin": 1102, "JSON": 54, "Java": 9, "SVG": 64, "TOML": 1, "INI": 1, "CODEOWNERS": 1, "Maven POM": 4, "Dockerfile": 14, "JavaScript":... | // Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.jetbrains.services.redshift
import com.intellij.testFramework.ProjectRule
import org.assertj.core.api.Assertions.assertThat
import org.junit.Rule
import org.junit.Test
import... | 6 | Kotlin | 4 | 9 | ccee3307fe58ad48f93cd780d4378c336ee20548 | 1,682 | aws-toolkit-jetbrains | Apache License 2.0 |
app/src/main/java/com/anatideo/kotlingofpatterns/creational/builder/BuilderUsage.kt | anatideo | 211,854,992 | false | null | package com.anatideo.kotlingofpatterns.creational.builder
import android.location.Location
class BuilderUsage {
fun getDummyPlace(): Place {
/**
* As you can see, It's not possible to create an instance of Place without using
* its Builder because its constructor is private
*/
/... | 0 | Kotlin | 0 | 0 | 20e7c95a43079b46c6268d03df59f1886be8dc04 | 795 | kotlingofpatterns | Apache License 2.0 |
app/shared/f8e-client/fake/src/commonMain/kotlin/build/wallet/f8e/auth/RotateAuthKeysServiceMock.kt | proto-at-block | 761,306,853 | false | null | package build.wallet.f8e.auth
import app.cash.turbine.Turbine
import app.cash.turbine.plusAssign
import build.wallet.bitkey.app.AppAuthPublicKeys
import build.wallet.bitkey.app.AppGlobalAuthKey
import build.wallet.bitkey.f8e.FullAccountId
import build.wallet.bitkey.hardware.HwAuthPublicKey
import build.wallet.crypto.P... | 3 | null | 16 | 98 | 1f9f2298919dac77e6791aa3f1dbfd67efe7f83c | 1,279 | bitkey | MIT License |
sam-java-core/src/main/kotlin/software/elborai/api/services/blocking/FileService.kt | DefinitelyATestOrg | 787,029,081 | false | {"Kotlin": 13368521, "Shell": 3638, "Dockerfile": 366} | // File generated from our OpenAPI spec by Stainless.
@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
package software.elborai.api.services.blocking
import software.elborai.api.core.RequestOptions
import software.elborai.api.models.File
import software.elborai.api.models.Fi... | 1 | Kotlin | 0 | 0 | 896c77d132ececb8926a3b29f08ea09c98355ecd | 1,248 | sam-java | Apache License 2.0 |
src/test/kotlin/icfp2019/analyzers/ShortestPathsUsingFloydWarshallTest.kt | waabiisaabii | 193,326,065 | false | {"JavaScript": 797310, "Kotlin": 116879, "CSS": 9434, "HTML": 5859, "Shell": 70} | package icfp2019.analyzers
import icfp2019.model.GameState
import icfp2019.model.Point
import icfp2019.model.RobotId
import icfp2019.toProblem
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
class ShortestPathsUsingFloydWarshallTest {
@Test
fun testShortestDistanceToPoint() {
... | 13 | JavaScript | 12 | 0 | a1060c109dfaa244f3451f11812ba8228d192e7d | 893 | icfp-2019 | The Unlicense |
android-iconivoid-material/src/main/java/io/github/diegoflassa/iconivoid/fonts/MaterialIcons.kt | diegoflassa | 292,420,870 | true | {"Kotlin": 218187} | package io.github.diegoflassa.iconivoid.fonts
import io.github.diegoflassa.iconivoid.Icon
@Suppress("unused", "EnumEntryName")
enum class MaterialIcons(private val character: Char) : Icon {
md_3d_rotation('\ue84d'),
md_access_alarm('\ue190'),
md_access_alarms('\ue191'),
md_access_time('\ue192'),
m... | 0 | Kotlin | 0 | 0 | 702727ac6eb4eff6deef6ba76093972a3d8cc2bb | 24,448 | android-iconivoid | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/abstract/noAbstractSuperclass.kt | JetBrains | 2,489,216 | false | null | // "Create abstract function 'Foo.bar'" "false"
// ERROR: Unresolved reference: bar
open class A
class Foo : A() {
fun foo() {
<caret>bar()
}
} | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 161 | intellij-community | Apache License 2.0 |
app/src/main/java/com/amazon/ivs/broadcast/ui/fragments/settings/settingsfragment/SettingsFragment.kt | aws-samples | 408,961,293 | false | null | package com.amazon.ivs.broadcast.ui.fragments.settings.settingsfragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.amazon.ivs.broadcast.App
import com.amazon.ivs.broadcast.R
import com.amazon.ivs.broadcast.common.*
import com.amazon.ivs... | 0 | Kotlin | 4 | 9 | 084a2f8f3448041add862156f3fa95ffe3314d8b | 8,057 | amazon-ivs-broadcast-for-android-demo | MIT No Attribution |
idea/testData/inspectionsLocal/removeToStringInStringTemplate/caretInSelector.kt | JakeWharton | 99,388,807 | false | null | fun foo(a: Int, b: Int) = a + b
fun test(): String {
return "Foo: ${foo(0, 4).<caret>toString()}"
} | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 104 | kotlin | Apache License 2.0 |
MapboxSearch/sdk/src/main/java/com/mapbox/search/adapter/BaseSearchMultipleSelectionCallbackAdapter.kt | mapbox | 438,355,708 | false | {"Kotlin": 2247142, "Java": 38877, "Python": 18980, "Shell": 17499} | package com.mapbox.search.adapter
import com.mapbox.search.SearchMultipleSelectionCallback
import com.mapbox.search.base.BaseResponseInfo
import com.mapbox.search.base.BaseSearchMultipleSelectionCallback
import com.mapbox.search.base.result.BaseSearchResult
import com.mapbox.search.base.result.BaseSearchSuggestion
imp... | 18 | Kotlin | 7 | 33 | bbe22d4d17e8bab22b64c7327fafdd56be7a03e4 | 1,032 | mapbox-search-android | Apache License 2.0 |
intermediatesolution/movie-aggregator-service-rt/src/test/kotlin/microservice/workshop/movieaggregatorservicert/MovieAggregatorServiceRtApplicationTests.kt | jeffgbutler | 216,110,594 | false | null | package microservice.workshop.movieaggregatorservicert
import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest
@SpringBootTest
class MovieAggregatorServiceRtApplicationTests {
@Test
fun contextLoads() {
}
}
| 0 | Kotlin | 0 | 2 | dad5683a75976a914978cacf110ac6010651312f | 252 | microservice-workshop-kotlin | MIT License |
shared/src/commonMain/kotlin/com/kevinschildhorn/fotopresenter/ui/screens/login/LoginScreenAtoms.kt | KevinSchildhorn | 522,216,678 | false | {"Kotlin": 205070, "Swift": 580} | package com.kevinschildhorn.fotopresenter.ui.screens.login
import com.kevinschildhorn.atomik.atomic.atoms.TextViewAtom
import com.kevinschildhorn.atomik.atomic.atoms.interfaces.SimpleColorAtom
import com.kevinschildhorn.atomik.atomic.atoms.interfaces.SimpleTextAtom
import com.kevinschildhorn.atomik.atomic.molecules.Ou... | 0 | Kotlin | 0 | 0 | ece2b809ceba73cc1971f55265182043a449ce5a | 2,381 | FoToPresenter | Apache License 2.0 |
compiler/testData/codegen/box/inlineClasses/result.kt | JetBrains | 3,432,266 | false | null | // In this test, stdlib class `public value class Result<out T>` within `kotlin` package is replaced with a custom non-generic class
// NATIVE exception: java.util.NoSuchElementException: Collection contains no element matching the predicate
// during `KonanSymbols.kotlinResultGetOrThrow`, since function `Result<T>.ge... | 180 | null | 5642 | 48,082 | 2742b94d9f4dbdb1064e65e05682cb2b0badf2fc | 814 | kotlin | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.