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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
moshi-sealed/sample/src/main/kotlin/dev/zacsweers/moshix/sealed/sample/SealedInterfaceMessage.kt | ZacSweers | 208,339,277 | 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 9 | null | 37 | 516 | 591928671e6149a429490b441c2c25b4785d1922 | 1,191 | MoshiX | Apache License 2.0 |
platform/platform-impl/src/com/intellij/ide/GeneralSettingsConfigurable.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide
import com.intellij.application.options.editor.CheckboxDescriptor
import com.intellij.application.options.editor.checkBox
import com.in... | 191 | null | 4372 | 13,319 | 4d19d247824d8005662f7bd0c03f88ae81d5364b | 7,391 | intellij-community | Apache License 2.0 |
data/system/src/main/java/com/timecat/data/system/model/api/github.kt | LinXueyuanStdio | 324,885,006 | false | {"Java": 315058, "Kotlin": 259927} | package com.timecat.data.system.model.api
/**
* @author 林学渊
* @email <EMAIL>
* @date 2020-02-13
* @description null
* @usage null
*/
data class GitFile(
var content:String,
var message:String,
var committer:SmallCommitter
)
data class SmallCommitter (
val name : String,
val email : String
)
... | 1 | null | 1 | 1 | 439d511a79cf61d7c1f1edb4962d73243bac9e76 | 1,538 | TimeCatDatabase | Apache License 2.0 |
demo/src/main/java/com/alibaba/ams/emas/demo/ui/info/list/ListViewModel.kt | aliyun | 303,963,850 | false | null | package com.alibaba.ams.emas.demo.ui.info.list
import android.app.Application
import android.content.SharedPreferences
import android.text.TextUtils
import android.util.Log
import android.widget.Toast
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.viewModelScope
import com.alibaba.ams.emas.demo.*... | 3 | null | 9 | 48 | b6b11e2c2812b330eaa1738b9183949f99aebbb3 | 8,944 | alibabacloud-httpdns-android-sdk | MIT License |
libpretixsync/src/main/java/eu/pretix/libpretixsync/utils/InputUtils.kt | pretix | 109,667,583 | false | {"reStructuredText": 1, "Text": 2, "Gradle": 4, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "INI": 1, "Kotlin": 32, "Java": 102, "Protocol Buffer": 1, "JSON": 28, "YAML": 1} | package eu.pretix.libpretixsync.utils
fun cleanInput(raw_input: String, source_type: String): String {
var cleaned = raw_input.replace(Regex("[\\p{C}]"), "�") // remove unprintable characters
if (source_type == "barcode") {
// Remove ECI flag for Latin-1 which is prepended by some barcode scanners to ... | 3 | Java | 5 | 4 | 7738c02ed8a80966dc823a2557e49015e8648495 | 566 | libpretixsync | Apache License 2.0 |
product-service/src/main/kotlin/br/com/maccommerce/productservice/domain/exception/DatabaseException.kt | wellingtoncosta | 251,454,379 | false | null | package br.com.maccommerce.productservice.domain.exception
import br.com.maccommerce.productservice.domain.exception.ApiExceptionType.DATABASE_ERROR
class DatabaseException(
override val message: String = "Could not perform the database operation.",
override val cause: Throwable? = null
) : ApiException(DATAB... | 0 | Kotlin | 0 | 1 | f25c2157e5ffe362e405a145e4889b4e9166897d | 339 | maccommerce | MIT License |
vito/core-impl/src/main/java/com/facebook/fresco/vito/core/impl/BorderRenderer.kt | facebook | 31,533,997 | false | null | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.fresco.vito.core.impl
import android.graphics.Canvas
import android.graphics.Paint
import com.facebook.fres... | 233 | null | 3751 | 17,073 | dbb46cebfffeeabf289db5f4a8d64950ba1e020d | 956 | fresco | MIT License |
lib/src/test/kotlin/io/nitric/api/documents/DocumentReferenceTest.kt | nitrictech | 496,090,998 | false | {"Java": 180864, "Kotlin": 176558} | package io.nitric.api.documents
import com.google.protobuf.Struct
import com.google.protobuf.Value
import io.mockk.coVerify
import io.mockk.every
import io.mockk.mockk
import io.nitric.api.documents.v0.Collection
import io.nitric.api.documents.v0.DocumentReference
import io.nitric.proto.document.v1.*
import kotlinx.co... | 1 | null | 1 | 1 | 437f9ec3be0fa6b53702dac1c14757785f4da916 | 3,676 | jvm-sdk | Apache License 2.0 |
rabbit-gradle-transform/src/main/java/com/susion/rabbit/gradle/core/rxentension/transform.kt | SusionSuc | 210,506,798 | false | null | package com.susion.rabbit.gradle.core.rxentension
import org.gradle.api.logging.Logging
import java.io.ByteArrayOutputStream
import java.io.File
import java.io.InputStream
import java.io.OutputStream
import java.util.jar.JarEntry
import java.util.jar.JarFile
import java.util.jar.JarOutputStream
private val logger = L... | 9 | null | 146 | 998 | f1d1faf9f69b4ec162ae2215e9338dd1d7bdc893 | 3,197 | rabbit-client | MIT License |
buildSrc/src/main/java/ca/tirelesstraveler/DownloadTranslationsTask.kt | Yukkuritaku | 687,794,682 | false | {"INI": 2, "YAML": 2, "Gradle Kotlin DSL": 3, "Shell": 1, "XML": 1, "Markdown": 2, "Batchfile": 1, "Text": 1, "Ignore List": 1, "Java": 33, "JSON": 4, "Kotlin": 2} | /*
* Copyright (c) 2023. TirelessTraveler
*
* 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, p... | 1 | null | 1 | 1 | 7abc838db37edd5f37eb885a255d9f3c45477547 | 4,234 | FancyWarpMenu | MIT License |
keel-api/src/main/kotlin/com/netflix/spinnaker/keel/api/constraints/DefaultConstraintAttributes.kt | spinnaker | 107,462,081 | false | null | package com.netflix.spinnaker.keel.api.constraints
/**
* An empty constraint state attributes object
*/
class DefaultConstraintAttributes : ConstraintStateAttributes("default")
| 3 | Kotlin | 135 | 99 | 956653ad493c386b88621eaf48ddc939a6372574 | 180 | keel | Apache License 2.0 |
spring-batch-metrics/apps/user-service/src/main/kotlin/com/github/daggerok/user/UserApplication.kt | daggerok | 54,295,206 | false | {"Kotlin": 183143, "Java": 9063, "Dockerfile": 482} | package com.github.daggerok.user
import com.github.daggerok.user.api.UserDTO
import java.time.Instant
import java.time.ZoneId
import java.time.ZoneOffset
import java.util.TimeZone
import javax.persistence.Entity
import javax.persistence.GeneratedValue
import javax.persistence.GenerationType.IDENTITY
import javax.persi... | 0 | Kotlin | 0 | 3 | fdbe57533ec1d476890b58ee61e6286cf0c2bef6 | 2,321 | spring-batch-examples | MIT License |
Problems/Algorithms/1584. Min Cost to Connect All Points/MinCost.kt | xuedong | 189,745,542 | false | {"Text": 1, "Ignore List": 1, "Markdown": 1, "Python": 498, "Kotlin": 443, "Java": 343, "Go": 55, "C++": 150, "Rust": 141, "Ruby": 2, "Dart": 1, "Erlang": 1, "Racket": 1, "Elixir": 1, "Scala": 2, "C": 2, "JavaScript": 22, "C#": 2, "Shell": 2, "SQL": 34, "JSON": 1, "Swift": 1, "TSX": 1} | class Solution {
fun minCostConnectPoints(points: Array<IntArray>): Int {
val n = points.size
val heap = PriorityQueue<Pair<Int, Int>>({ a, b -> a.second - b.second })
val visited = BooleanArray(n) { false }
heap.add(Pair(0, 0))
var count = 0
... | 0 | Kotlin | 0 | 1 | 64e27269784b1a31258677ab03da00f341c2fa98 | 1,011 | leet-code | MIT License |
composite-builds/ibc/ibc-api/src/main/java/com/jamesfchen/ibc/router/IRouter.kt | electrolyteJ | 377,399,216 | false | {"Kotlin": 228441, "JavaScript": 195836, "Java": 190927, "Python": 83353, "Groovy": 49616, "HTML": 8989, "EJS": 6840, "Less": 6309, "CSS": 1824, "Shell": 574, "Dockerfile": 389} | package com.jamesfchen.ibc.router
import android.content.Context
import android.os.Bundle
import java.net.URI
/**
* Copyright ® $ 2021
* All right reserved.
*
* author: jamesfchen
* email: <EMAIL>
* since: 六月/30/2021 星期三
*
*/
interface IRouter {
/**
* native bundle 、 react native bundle 、 flutter bu... | 4 | Kotlin | 0 | 1 | f480ecc16aacefacdbae590a929813d159c5566d | 512 | bundles-assembler | Apache License 2.0 |
composite-builds/ibc/ibc-api/src/main/java/com/jamesfchen/ibc/router/IRouter.kt | electrolyteJ | 377,399,216 | false | {"Kotlin": 228441, "JavaScript": 195836, "Java": 190927, "Python": 83353, "Groovy": 49616, "HTML": 8989, "EJS": 6840, "Less": 6309, "CSS": 1824, "Shell": 574, "Dockerfile": 389} | package com.jamesfchen.ibc.router
import android.content.Context
import android.os.Bundle
import java.net.URI
/**
* Copyright ® $ 2021
* All right reserved.
*
* author: jamesfchen
* email: <EMAIL>
* since: 六月/30/2021 星期三
*
*/
interface IRouter {
/**
* native bundle 、 react native bundle 、 flutter bu... | 4 | Kotlin | 0 | 1 | f480ecc16aacefacdbae590a929813d159c5566d | 512 | bundles-assembler | Apache License 2.0 |
UI/src/main/java/com/hf/starwars/RecyclerViewPaginator.kt | biodunalfet | 192,399,583 | false | null | package com.hf.starwars
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.RecyclerView.SCROLL_STATE_IDLE
abstract class RecyclerViewPaginator(recyclerView: RecyclerView) : R... | 1 | Kotlin | 5 | 4 | e01a1561ed87dd638d18f50661c3b3e809944f73 | 1,634 | StarWarsChar | Apache License 2.0 |
app/src/main/java/com/walkud/app/mvp/presenter/CategoryDetailPresenter.kt | Walkud | 161,125,865 | false | {"Gradle": 5, "Java Properties": 1, "Ignore List": 3, "Markdown": 2, "INI": 1, "Proguard": 2, "XML": 72, "Kotlin": 81, "Java": 2} | package com.walkud.app.mvp.presenter
import com.walkud.app.common.ExtraKey
import com.walkud.app.mvp.base.BasePresenter
import com.walkud.app.mvp.model.MainModel
import com.walkud.app.mvp.model.bean.CategoryBean
import com.walkud.app.mvp.model.bean.HomeBean
import com.walkud.app.mvp.ui.activity.CategoryDetailActivity
... | 1 | null | 1 | 1 | a417a3ad732f0c78bfd4a40a68c8ddcc34928d11 | 1,791 | JudyKotlinMvp | Apache License 2.0 |
chats/src/main/java/com/cyberland/messenger/chats/group/ChatGroupNoticeDialog.kt | Era-CyberLabs | 576,196,269 | false | {"Java": 6276144, "Kotlin": 5427066, "HTML": 92928, "C": 30870, "Groovy": 12495, "C++": 6551, "CMake": 2728, "Python": 1600, "AIDL": 1267, "Makefile": 472} | package com.bcm.messenger.chats.group
import android.app.Dialog
import android.os.Bundle
import android.view.*
import android.widget.TextView
import androidx.fragment.app.DialogFragment
import com.bcm.messenger.chats.R
class ChatGroupNoticeDialog : DialogFragment() {
lateinit var content: String
lateinit var... | 1 | null | 1 | 1 | 65a11e5f009394897ddc08f4252969458454d052 | 2,120 | cyberland-android | Apache License 2.0 |
src/test/kotlin/no/nav/familie/ef/sak/service/RegistergrunnlagTest.kt | blommish | 359,371,467 | false | {"YAML": 13, "Ignore List": 2, "CODEOWNERS": 1, "Maven POM": 1, "Dockerfile": 1, "Text": 1, "Markdown": 1, "XML": 4, "JSON": 21, "Kotlin": 394, "Java": 1, "GraphQL": 8, "SQL": 43, "Shell": 1} | package no.nav.familie.ef.sak.service
import com.fasterxml.jackson.annotation.JsonInclude
import no.nav.familie.ef.sak.repository.domain.RegistergrunnlagData
import no.nav.familie.kontrakter.felles.objectMapper
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import java.time.LocalDa... | 1 | null | 1 | 1 | 0e850df593c82a910c68c2393e6d2f30fc49eaa7 | 4,121 | familie-ef-sak | MIT License |
performance/ring/src/main/kotlin/org/jetbrains/ring/AllocationBenchmark.kt | JetBrains | 58,957,623 | false | null | /*
* Copyright 2010-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 org.jetbrains.ring
var counter = 0
open class AllocationBenchmark {
class MyClass {
fun inc() {
counter++
}
}
//Benc... | 0 | null | 625 | 7,100 | 9fb0a75ab17e9d8cddd2c3d1802a1cdd83774dfa | 433 | kotlin-native | Apache License 2.0 |
android/app/src/main/java/com/ismin/projectapp/Station.kt | BAMOUH | 318,660,565 | false | null | package com.ismin.projectapp
import java.io.Serializable
data class Station(var station_id: Long, val stationCode: String, val name: String, val lon: Double, val lat: Double, val mechanical: Int, val ebike: Int, val numDocksAvailable: Int, val last_reported: Long, val lastUpdatedOther: Long ) : Serializable | 1 | null | 1 | 1 | b4756f4b0dadd61ee88b10b79c9e963563890eba | 310 | ismin-2020-project | MIT License |
kotlin-native/runtime/src/main/kotlin/kotlin/native/concurrent/Internal.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2018 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 kotlin.native.concurrent
import kotlin.native.internal.DescribeObjectForDebugging
import kotlin.native.internal.ExportForCppRuntime
import kotlin.native.intern... | 157 | Kotlin | 5478 | 44,267 | 7545472dd3b67d2ac5eb8024054e3e6ff7795bf6 | 4,696 | kotlin | Apache License 2.0 |
baselib/src/main/java/com/fenghuang/baselib/theme/UiUtils.kt | tracyly | 262,531,465 | false | {"Java": 1886821, "Kotlin": 1650417, "HTML": 41991} | package com.fenghuang.baselib.theme
import android.content.Context
import android.graphics.Color
import androidx.core.content.ContextCompat
import com.fenghuang.baselib.R
/**
* 系统UI处理工具类,包括主题,图标等等⑽⑼⑹㈤
*/
object UiUtils {
private var mCurrentTheme: AppTheme? = null
/**
* 设置App的主题
* 默认是来上一次的主题
... | 1 | null | 1 | 1 | b4f57b41ba0018299d47be4d7705f0dfb1b8cf04 | 1,486 | cpb2.0 | Apache License 2.0 |
app/src/main/java/avila/daniel/rickmorty/LifecycleManager.kt | daniaviladomingo | 222,438,821 | false | {"Gradle": 9, "Markdown": 2, "Java Properties": 2, "Shell": 1, "Ignore List": 8, "Batchfile": 1, "INI": 3, "Proguard": 4, "Kotlin": 150, "XML": 50, "Java": 10} | package avila.daniel.rickmorty
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.OnLifecycleEvent
import avila.daniel.domain.ILifecycleObserver
class LifecycleManager(
private val lifecycleObserver: Set<ILifecycleObserver>,
lifecycle: Lifecycle
) : Lifec... | 0 | Kotlin | 0 | 4 | 6193e2f38f585381eda8fed2b97e6e04c6607c2a | 519 | rick_and_morty | Apache License 2.0 |
app/ui/legacy/src/test/java/com/mail/ann/TestApp.kt | ZhangXinmin528 | 516,242,626 | true | {"INI": 1, "Shell": 6, "Gradle": 30, "EditorConfig": 1, "Markdown": 8, "Git Attributes": 1, "Batchfile": 1, "Text": 44, "Ignore List": 4, "Git Config": 1, "XML": 399, "YAML": 6, "Kotlin": 744, "AIDL": 2, "Java": 433, "Java Properties": 1, "SVG": 67, "PostScript": 1, "JSON": 23, "E-mail": 27, "Proguard": 1} | package com.mail.ann
import android.app.Application
import com.mail.ann.preferences.InMemoryStoragePersister
import com.mail.ann.preferences.StoragePersister
import com.mail.ann.storage.storageModule
import org.koin.dsl.module
class TestApp : Application() {
override fun onCreate() {
Core.earlyInit()
... | 0 | Java | 0 | 0 | 3efc82014d57307996329fd057c505d2b88ed044 | 654 | Ann-mail | Apache License 2.0 |
daogenerator/src/main/kotlin/se/plilja/springdaogen/config/JavaVersion.kt | plilja | 164,498,962 | false | null | package se.plilja.springdaogen.config
enum class JavaVersion(val version: String) {
Java8("1.8"),
Java11("11");
companion object {
fun fromVersionNumber(version: String): JavaVersion {
return JavaVersion.values().firstOrNull { it.version == version }
?: throw Illeg... | 1 | null | 1 | 1 | e9ddf578c59eb83cd4ec29dddfd86e387adcfe71 | 400 | spring-dao-codegen | MIT License |
platform/platform-tests/testSrc/com/intellij/openapi/project/impl/ProjectOpeningTest.kt | opticyclic | 5,859,423 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.openapi.project.impl
import com.intellij.ide.impl.OpenProjectTask
import com.intellij.ide.impl.ProjectUtil
import com.intellij.openapi.application.ApplicationManager
import com.... | 1 | null | 1 | 1 | 838997d4d208d92c823cd1919827690be8def9be | 5,399 | intellij-community | Apache License 2.0 |
compiler/tests/org/jetbrains/kotlin/jvm/compiler/ir/IrJvmIrLinkageModeTest.kt | JetBrains | 3,432,266 | false | {"Kotlin": 78963920, "Java": 6943075, "Swift": 4063829, "C": 2609498, "C++": 1947933, "Objective-C++": 170573, "JavaScript": 106044, "Python": 59695, "Shell": 32949, "Objective-C": 22132, "Lex": 21352, "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.jvm.compiler.ir
import org.jetbrains.kotlin.jvm.compiler.JvmIrLinkageModeTest
im... | 184 | Kotlin | 5691 | 48,625 | bb25d2f8aa74406ff0af254b2388fd601525386a | 544 | kotlin | Apache License 2.0 |
data/RF01003/rnartist.kts | fjossinet | 449,239,232 | false | {"Kotlin": 8214424} | import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
rfam {
id = "RF01003"
name = "consensus"
use alignment numbering
}
}
theme {
details {
value = 3
}
color {
location {
11 to ... | 0 | Kotlin | 0 | 0 | 3016050675602d506a0e308f07d071abf1524b67 | 1,533 | Rfam-for-RNArtist | MIT License |
app/src/main/java/com/lanier/rocoguide/ui/page/miscellaneous/OtherPage.kt | taxeric | 517,588,660 | false | null | package com.lanier.rocoguide.ui.page.miscellaneous
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined... | 0 | Kotlin | 1 | 6 | d4c10ffe4dac97c50fcccaba529418644fae96b9 | 3,006 | RocoGuide | MIT License |
app/src/main/java/com/docubox/ui/screens/auth/login/LoginFragment.kt | Vaibhav2002 | 499,822,014 | false | {"Kotlin": 142319} | package com.docubox.ui.screens.auth.login
import android.os.Bundle
import android.view.View
import androidx.core.widget.doAfterTextChanged
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.findNavController
import com.docubox.R
import com.docubox.databind... | 0 | Kotlin | 8 | 38 | 5e8bccbc4c6dd1cb3c004224a4a407ebc913ec12 | 2,422 | DocuBox-AndroidApp | MIT License |
src/client/kotlin/com/theendercore/packed_up/rendering/BackpackRenderer.kt | theendercore | 674,191,573 | false | {"Kotlin": 35568} | package com.theendercore.packed.rendering
import com.theendercore.packed.util.isBackpack
import net.minecraft.client.MinecraftClient
import net.minecraft.client.render.OverlayTexture
import net.minecraft.client.render.VertexConsumerProvider
import net.minecraft.client.render.model.json.ModelTransformationMode
import n... | 0 | Kotlin | 0 | 0 | 4774e757b6cfb76e3df27b11057d4ae58011cd85 | 1,513 | Packed | MIT License |
kotlin-mui-icons/src/main/generated/mui/icons/material/DarkModeOutlined.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/DarkModeOutlined")
package mui.icons.material
@JsName("default")
external val DarkModeOutlined: SvgIconComponent
| 12 | Kotlin | 5 | 983 | 372c0e4bdf95ba2341eda473d2e9260a5dd47d3b | 196 | kotlin-wrappers | Apache License 2.0 |
core/network/src/main/java/org/prography/network/api/dto/response/StoreBlogResponse.kt | Prography-8th-team8 | 625,571,635 | false | {"Kotlin": 177701} | package org.prography.network.api.dto.response
import kotlinx.serialization.Serializable
import org.prography.domain.model.store.StoreBlogModel
@Serializable
data class StoreBlogResponse(
val blogPosts: List<BlogPostResponse>
) {
fun toModel() = StoreBlogModel(
blogPosts = blogPosts.map { it.toModel()... | 5 | Kotlin | 1 | 2 | 56eb28bcb217712d600365ef3faaecfe3eae248a | 331 | Cakk-AOS | Apache License 2.0 |
Common/src/main/java/at/petrak/hexcasting/common/casting/actions/spells/OpAddMotion.kt | FallingColors | 441,721,272 | false | null | package at.petrak.hexcasting.common.casting.operators.spells
import at.petrak.hexcasting.api.casting.ParticleSpray
import at.petrak.hexcasting.api.casting.RenderedSpell
import at.petrak.hexcasting.api.casting.castables.SpellAction
import at.petrak.hexcasting.api.casting.eval.CastingEnvironment
import at.petrak.hexcast... | 173 | null | 80 | 97 | 1aa53ca97faebc7e8fcca3215c58239ab35ad428 | 2,197 | HexMod | MIT License |
app/src/main/java/com/haznedar/uploadimage/util/App.kt | Ryuk-C | 464,173,508 | false | {"Kotlin": 25481} | package com.haznedar.uploadimage.util
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class App : Application() | 0 | Kotlin | 0 | 3 | ff8da33e2a9150eef550e441bd482eea8b3fceee | 154 | UploadImageWithRetrofit | MIT License |
blahblah-fake/src/commonMain/kotlin/io/spherelabs/blahblahfake/path/Path.kt | getspherelabs | 675,959,138 | false | null | package io.spherelabs.blahblahfake.path
import io.spherelabs.blahblahfake.annotation.BlahBlahInternalApi
/**
* [Path] representing a path to a resource.
*/
@BlahBlahInternalApi
public interface Path {
/**
* The value of the path.
*/
public val value: String
}
| 2 | Kotlin | 1 | 8 | 02c8e6d8d32aaa3c98396ac4e39358ac8ff1204c | 282 | blahblah | MIT License |
PluginsAndFeatures/azure-toolkit-for-intellij/rider/src/org/jetbrains/plugins/azure/AzureNotifications.kt | JetBrains | 137,064,201 | true | {"Java": 6824035, "Kotlin": 2388176, "C#": 183917, "Scala": 151332, "Gherkin": 108427, "JavaScript": 98350, "HTML": 23518, "CSS": 21770, "Groovy": 21447, "Shell": 21354, "XSLT": 7141, "Dockerfile": 3518, "Batchfile": 2155} | /**
* Copyright (c) 2018-2023 JetBrains s.r.o.
*
* All rights reserved.
*
* MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitati... | 73 | Java | 10 | 41 | a8b64627376a5144a71725853ba4217b97044722 | 2,550 | azure-tools-for-intellij | MIT License |
tangle-work-api/src/main/kotlin/tangle/work/TangleWorker.kt | RBusarow | 382,741,106 | false | null | /*
* Copyright (C) 2021 Rick Busarow
* 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 ... | 27 | Kotlin | 112 | 76 | e3db551e3285ff46f0eda7d2a4d8d1102cf7c9c9 | 1,544 | Tangle | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/prisonerfromnomismigration/helper/Messages.kt | ministryofjustice | 452,734,022 | false | {"Kotlin": 1280881, "Mustache": 1803, "Dockerfile": 1374} | package uk.gov.justice.digital.hmpps.prisonerfromnomismigration.helper
fun validVisitCancellationMessage() = """{
"MessageId": "ae06c49e-1f41-4b9f-b2f2-dcca610d02cd", "Type": "Notification", "Timestamp": "2019-10-21T14:01:18.500Z",
"Message": "{\"eventId\":\"5958295\",\"eventType\":\"VISIT_CANCELLED\",\"event... | 1 | Kotlin | 0 | 2 | c71ab77d1a2131357b360aa9165ea8ce50823ce4 | 980 | hmpps-prisoner-from-nomis-migration | MIT License |
lint/src/main/java/com/alexshafir/classfieldequality/lint/DataEqualityDetector.kt | AlexShafir | 324,775,719 | false | null | package com.alexshafir.classfieldequality.lint
import com.android.tools.lint.client.api.UElementHandler
import com.android.tools.lint.detector.api.*
import com.intellij.psi.PsiClassObjectAccessExpression
import com.alexshafir.classfieldequality.annotations.FieldEquality
import org.jetbrains.uast.UClass
import org.jetb... | 0 | Kotlin | 0 | 0 | a9323acff54679233d4b1e11ad70c016ea7f0abe | 3,522 | ClassFieldEquality | MIT License |
app/src/test/kotlin/kt/school/starlord/model/system/viewmodel/ErrorViewModelFeatureTest.kt | suhocki | 174,985,255 | false | null | package kt.school.starlord.model.system.viewmodel
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import io.mockk.mockk
import io.mockk.mockkStatic
import io.mockk.unmockkStatic
import io.mockk.verify
import kt.school.starlord.ui.TestCoroutineRule
import kt.school.starlord.ui.observeForTesting
impor... | 19 | Kotlin | 0 | 1 | 09a3bb151a3dfe6982adf7ca246f8b0b077e3644 | 1,111 | starlord | MIT License |
app/src/main/java/com/kl3jvi/sysinfo/SysInfoApplication.kt | kl3jvi | 348,700,775 | false | null | package com.kl3jvi.sysinfo
import android.app.Application
import android.util.Log
import com.getkeepsafe.relinker.ReLinker
import com.kl3jvi.sysinfo.data.provider.CpuDataProvider
import com.kl3jvi.sysinfo.di.allModules
import com.kl3jvi.sysinfo.utils.then
import org.koin.android.ext.koin.androidContext
import org.koin... | 2 | Kotlin | 6 | 26 | 0f52dd067bdda37f07c0c9a4d592f32afa2a44fc | 1,163 | sysinfo_app | MIT License |
server/src/main/kotlin/io/kraftsman/server/data/Database.kt | shengyou | 703,672,453 | false | {"Kotlin": 33834, "Swift": 580} | package io.kraftsman.server.data
import io.kraftsman.multiplatform.data.User
import io.kraftsman.multiplatform.data.apiBaseUrl
val userDatabase = listOf(
User(
id = 1,
username = "shengyou",
password = "0000",
displayName = "Shengyou Fan",
email = "shengyou.fan@jetbrains.co... | 0 | Kotlin | 1 | 4 | 1ad1d6300e5bae2ceeb7db1c5ea09f802c946ed5 | 618 | kotlin-multiplatform-with-compose-demo | Apache License 2.0 |
app/src/main/java/com/rubens/applembretemedicamento/framework/data/repositories/MedicationRepositoryImpl.kt | rubens23 | 630,981,517 | false | {"Kotlin": 335611} | package com.example.appmedicamentos.data.repository
import com.rubens.applembretemedicamento.framework.data.daos.MedicamentoDao
import com.rubens.applembretemedicamento.framework.data.dbrelations.MedicamentoComDoses
import com.rubens.applembretemedicamento.framework.data.entities.ConfiguracoesEntity
import com.rubens... | 0 | Kotlin | 0 | 0 | ca58da50e8261b8bff5eed592a0523f94bc09f98 | 1,600 | DoseCerta | Apache License 2.0 |
core/ui/src/main/kotlin/org/michaelbel/movies/ui/preview/provider/AccountPreviewParameterProvider.kt | michaelbel | 115,437,864 | false | null | package org.michaelbel.movies.ui.preview.provider
import androidx.compose.ui.tooling.preview.PreviewParameterProvider
import org.michaelbel.movies.persistence.database.entity.AccountDb
class AccountPreviewParameterProvider: PreviewParameterProvider<AccountDb> {
override val values = sequenceOf(
AccountDb(... | 7 | null | 31 | 81 | 00b1cd807a4e7c894b0792ebb668e4cbcedc5605 | 547 | movies | Apache License 2.0 |
boat-serialize/src/test/kotlin/test/xyz/srclab/common/serialize/json/TestData.kt | srclab-projects | 247,777,997 | false | null | package test.xyz.srclab.common.serialize.json
data class Data(
val data1: String,
val data2: String,
val data3: String,
) | 0 | Kotlin | 0 | 4 | 192aee01efccc76dcaf18d6d34ebac9726302a83 | 134 | boat | Apache License 2.0 |
src/client/kotlin/net/wiredtomato/burgered/client/compat/emi/VanillaBurgerIngredientEMIRecipe.kt | wired-tomato | 835,870,549 | false | {"Kotlin": 95855, "Java": 1521} | package net.wiredtomato.burgered.client.compat.emi
import dev.emi.emi.api.recipe.BasicEmiRecipe
import dev.emi.emi.api.recipe.VanillaEmiRecipeCategories
import dev.emi.emi.api.render.EmiTexture
import dev.emi.emi.api.stack.EmiIngredient
import dev.emi.emi.api.stack.EmiStack
import dev.emi.emi.api.widget.WidgetHolder
i... | 0 | Kotlin | 0 | 0 | c4f7c275fea3d0517ca6f26c5a295c7fa500752a | 1,484 | burgered | MIT License |
app/src/main/java/com/example/edu/myapplication/data/repository/realm/RealmWeatherRepository.kt | edualonso | 114,924,612 | false | null | package com.example.edu.myapplication.data.repository.realm
import com.example.edu.myapplication.data.model.InternalLocation
import com.example.edu.myapplication.data.repository.WeatherRepository
import io.reactivex.Completable
import io.reactivex.Single
import javax.inject.Inject
import javax.inject.Singleton
/**
*... | 0 | Kotlin | 0 | 0 | aa0676b728f2cb81836aef0fa4d538eed047c634 | 1,217 | architectureComponentsSample | MIT License |
catalogue/apps/demo/src/main/kotlin/com/tidal/sdk/demo/ui/catalogue/CatalogueTestViewModel.kt | tidal-music | 806,866,286 | false | {"Kotlin": 1644272, "Shell": 9249} | package com.tidal.sdk.demo.ui.catalogue
import androidx.lifecycle.ViewModel
import com.tidal.sdk.catalogue.Catalogue
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
class CatalogueTestViewModel(private val catalogue: Catalogue) : ViewModel() {
private val _uiState = Mutab... | 27 | Kotlin | 0 | 22 | 127085338619bab6d540bedf05f7d34a3cd1a9da | 616 | tidal-sdk-android | Apache License 2.0 |
src/main/kotlin/operators/ArrayOperator.kt | corona-warn-app | 445,131,391 | false | null | package de.rki.jfn.operators
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databind.node.ArrayNode
import com.fasterxml.jackson.databind.node.BooleanNode
import com.fasterxml.jackson.databind.node.IntNode
import com.fasterxml.jackson.databind.node.JsonNodeFactory
import com.fasterxml.jack... | 0 | Kotlin | 1 | 1 | e15cd35de0bcc132c894eb39b9d4b34777a79e9b | 9,476 | cwa-kotlin-jfn | Apache License 2.0 |
compiler/testData/diagnostics/testsWithStdLib/typealias/hashMapTypeAlias.kt | JakeWharton | 99,388,807 | true | null | import kotlin.test.*
import java.util.*
typealias HM<Kt, Vt> = HashMap<Kt, Vt>
fun <K, V, M : MutableMap<in K, MutableList<V>>> updateMap(map: M, k: K, v: V): M {
map[k]!!.add(v)
return map
}
val nameToTeam = listOf("Alice" to "Marketing", "Bob" to "Sales", "Carol" to "Marketing")
val namesByTeam = nameToTea... | 181 | Kotlin | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 583 | kotlin | Apache License 2.0 |
app/src/main/java/com/kamrul/noteapplication/di/modules/ActivityModule.kt | mkhrussell | 756,169,018 | false | {"Kotlin": 16627, "Makefile": 4738} | package com.kamrul.noteapplication.di.modules
import com.kamrul.noteapplication.di.annotations.ActivityScope
import com.kamrul.noteapplication.ui.AddEditNoteActivity
import com.kamrul.noteapplication.ui.MainActivity
import dagger.Module
import dagger.android.ContributesAndroidInjector
@Module(includes = [NoteAppModul... | 0 | Kotlin | 0 | 0 | 9b8a0ad24eaa4ef556d57f008356c7c747941d22 | 601 | NoteAppDagger2 | Apache License 2.0 |
android-weather-mvp-clean/data/src/main/kotlin/io/sametkurumahmut/weather/data/mapper/WeatherDetailsMapper.kt | sametkurumahmut | 116,595,636 | false | null | package io.sametkurumahmut.weather.data.mapper
import io.sametkurumahmut.weather.common.mapper.Mapper
import io.sametkurumahmut.weather.data.model.WeatherDetailsEntity
import io.sametkurumahmut.weather.domain.model.WeatherDetails
import javax.inject.Inject
open class WeatherDetailsMapper @Inject constructor()
: M... | 1 | null | 1 | 1 | 329b53e856851d0fd505aa87d4e2aa3d1545ce41 | 654 | weather-mvp-clean | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/Lighthouse.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
im... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 5,687 | icons | MIT License |
app/src/main/java/com/ldf/wanandroidcompose/ui/widget/GeneralAlertDialog.kt | yihu5566 | 646,021,523 | false | null | package com.ldf.wanandroidcompose.ui.widget
import androidx.compose.material.AlertDialog
import androidx.compose.material.Text
import androidx.compose.material.TextButton
import androidx.compose.runtime.Composable
/**
* @Author : dongfang
* @Created Time : 2023-06-26 13:44
* @Description:
*/
@Composable
fun Sim... | 0 | Kotlin | 0 | 1 | a380102cfb649cbb17d7497a0dc49ec689817051 | 1,125 | WanAndroidCompose | Apache License 2.0 |
core/common/src/iosMain/kotlin/com/rbrauwers/newsapp/common/CommonExpecations.ios.kt | rbrauwers | 715,620,789 | false | {"Kotlin": 58896, "Swift": 673} | import kotlinx.datetime.Instant
import platform.Foundation.NSDate
import platform.Foundation.NSDateFormatter
import platform.Foundation.NSDateFormatterLongStyle
import platform.Foundation.NSDateFormatterMediumStyle
import platform.Foundation.NSDateFormatterShortStyle
import platform.Foundation.NSURL
import platform.Fou... | 0 | Kotlin | 0 | 0 | ef5c9289604fb8b190ed7009a37ea6b10b171f67 | 1,302 | news-app-multiplatform | Apache License 2.0 |
Modifying the graph/Add vertices and edges/src/Task.kt | tfij | 361,416,780 | false | null | import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource
fun completeGraph(g: GraphTraversalSource) {
g.addV("Person").property("firstName", "Jenefer").next()
g.addV("Person").property("firstName", "John").next()
addEdge(g, "Adel", "Margareth", "friendOf")
addEdge(g, "Jenefe... | 0 | Kotlin | 0 | 2 | 227ab65e206dfc00bd6a1c5068e541939a97c3ca | 632 | graph-database-course | MIT License |
Modifying the graph/Add vertices and edges/src/Task.kt | tfij | 361,416,780 | false | null | import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource
fun completeGraph(g: GraphTraversalSource) {
g.addV("Person").property("firstName", "Jenefer").next()
g.addV("Person").property("firstName", "John").next()
addEdge(g, "Adel", "Margareth", "friendOf")
addEdge(g, "Jenefe... | 0 | Kotlin | 0 | 2 | 227ab65e206dfc00bd6a1c5068e541939a97c3ca | 632 | graph-database-course | MIT License |
src/main/kotlin/com/papsign/ktor/openapigen/modules/providers/ParameterProvider.kt | sheepdreamofandroids | 244,185,453 | true | {"Kotlin": 137227} | package com.papsign.ktor.openapigen.modules.providers
import com.papsign.ktor.openapigen.generator.ParamBuilder
import com.papsign.ktor.openapigen.modules.OpenAPIModule
import com.papsign.ktor.openapigen.openapi.Parameter
interface ParameterProvider: OpenAPIModule {
fun getParameters(builder: ParamBuilder): List... | 0 | null | 0 | 0 | 5acd9fa5c1211c866f46c8012f7a512da23c041a | 336 | Ktor-OpenAPI-Generator | Apache License 2.0 |
application/src/main/kotlin/net/codebot/application/components/AppSchemas.kt | OHNOalan | 693,360,836 | false | {"Kotlin": 170345, "Java": 493, "Dockerfile": 325} | package net.codebot.application.components
import kotlinx.serialization.Serializable
@Serializable
data class AppLineSchema(
val stroke: String,
val strokeWidth: Double,
val points: List<Double>
)
@Serializable
data class AppRectangleSchema(
val x: Double,
val y: Double,
val width: Double,
... | 0 | Kotlin | 0 | 0 | 5e3650cd67adec148078bb5b78723120ef105ff1 | 1,496 | Whiteboard | Apache License 2.0 |
app/src/main/kotlin/com/rin/compose/kitty/data/S.kt | chachako | 342,547,917 | false | {"Kotlin": 141013} | /*
* Copyright 2021 The Android Open Source Project
* Copyright 2021 RinOrz (凛)
*
* 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
*
... | 1 | Kotlin | 1 | 8 | 566e88f637b73fd85ddd93039c1f666890fd5c1b | 2,723 | compose-kitty | Apache License 2.0 |
src/main/java/com/ahmed3elshaer/trueblack/settings/PluginMetaSettings.kt | ahmed3elshaer | 502,458,408 | false | null | package com.iamnaveenoff.darkCoder.settings
import com.iamnaveenoff.darkCoder.settings.PluginMetaSettings.MetaState
import com.intellij.openapi.components.PersistentStateComponent
import com.intellij.openapi.components.State
import com.intellij.openapi.components.Storage
@State(name = "PluginMetaSettings", storages =... | 0 | null | 3 | 5 | b95c3a4196f0b7fa8b321b6a1214ab699b4d46b7 | 799 | IntelliJ-True-Black-Theme | Apache License 2.0 |
plugins/gradle/java/src/service/completion/GradleVersionCatalogCompletionContributor.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.plugins.gradle.service.completion
import com.intellij.codeInsight.completion.CompletionParameters
import com.intellij.codeInsight.completion.CompletionResultSet
import com.inte... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 5,615 | intellij-community | Apache License 2.0 |
plugin-rust-agent/src/main/kotlin/jetbrains/buildServer/rust/ArgumentsProvider.kt | JetBrains | 45,140,320 | false | {"Kotlin": 144308, "Java": 72670, "CSS": 33} |
package jetbrains.buildServer.rust
import jetbrains.buildServer.agent.BuildRunnerContext
import jetbrains.buildServer.util.StringUtil
/**
* Provides arguments to the utility.
*/
interface ArgumentsProvider {
fun getArguments(runnerContext: BuildRunnerContext): List<String>
fun shouldFailBuildIfCommandFail... | 14 | Kotlin | 4 | 32 | cee3e8e72a60104a858a6a2a792ae7f7abaacea1 | 901 | teamcity-rust-plugin | Apache License 2.0 |
app/src/main/java/com/example/wingspanscores/list/ListViewModel.kt | ganaha | 265,790,767 | false | null | package com.example.wingspanscores.list
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.asLiveData
import com.example.wingspanscores.AppRepository
import com.example.wingspanscores.room.PlayersForList
class ListViewModel(repo... | 0 | Kotlin | 0 | 0 | 3d7383aa9d9fd65339ab5ec8ad10608934ddab08 | 857 | wingspanscores | MIT License |
app/src/main/java/com/simbiri/equityjamii/ui/main_activity/news_page/NewsViewModel.kt | SimbaSimbiri | 706,250,529 | false | {"Kotlin": 130463} | package com.simbiri.equityjamii.ui.main_activity.news_page
import androidx.lifecycle.ViewModel
class NewsViewModel : ViewModel() {
// TODO: Implement the ViewModel
} | 0 | Kotlin | 0 | 0 | 9ce572cfb46311e0a1d2887771af2f6b98a2683b | 171 | EquiJamii | Apache License 2.0 |
feature/auth/src/main/java/com/lighthouse/auth/view/LanguageListActivity.kt | soma-lighthouse | 658,620,687 | false | {"Kotlin": 442318} | package com.lighthouse.auth.view
import android.os.Bundle
import androidx.activity.viewModels
import androidx.navigation.NavController
import androidx.navigation.fragment.NavHostFragment
import com.lighthouse.android.common_ui.base.BindingActivity
import com.lighthouse.auth.R
import com.lighthouse.auth.databinding.Act... | 0 | Kotlin | 0 | 0 | 69b69c41157aad5120ed5726aac483e1f9c615be | 1,080 | FE-lingo-talk | Apache License 2.0 |
app/src/main/java/com/blackcatz/android/hnews/ui/common/HAppBar.kt | vinayagasundar | 157,092,166 | false | {"Kotlin": 17757} | package com.blackcatz.android.hnews.ui.common
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.material3.TopAppBar
import androidx.compose.material3.TopAppBarDefaults
import androidx.compose.runtime... | 1 | Kotlin | 1 | 1 | 8626c6f153309230cae9680df06e95fb9537a1c8 | 1,136 | hnews | Apache License 2.0 |
wasm-wasi-preview1-core/src/commonMain/kotlin/type/SubscriptionFdReadwrite.kt | illarionov | 848,247,126 | false | {"Kotlin": 1028868, "TypeScript": 3148, "CSS": 1042, "FreeMarker": 450, "JavaScript": 89} | /*
* Copyright 2024, the wasi-emscripten-host project authors and contributors. Please see the AUTHORS file
* for details. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
* SPDX-License-Identifier: Apache-2.0
*/
package at.released.weh.wasi.preview1.type
import... | 0 | Kotlin | 0 | 2 | fa3cad09c10d10e83c27607080db65d91b26b661 | 933 | wasi-emscripten-host | Apache License 2.0 |
walletlibrary/src/main/java/com/microsoft/did/sdk/credential/models/CredentialStatus.kt | microsoft | 567,422,889 | false | null | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | 5 | Kotlin | 8 | 9 | d2963ff1e7873755566d473735ea2b3ed7a44ee8 | 566 | entra-verifiedid-wallet-library-android | MIT License |
app/src/main/java/com/example/aniket/bmicalc_kotlin/Common.kt | aniketbhoite | 105,452,676 | false | {"Kotlin": 19103} | package com.example.aniket.bmicalc_kotlin
/**
* Created by aniket on 28-09-2017.
*/
internal object Common {
val LIST_TO_EDIT_ACTIVITY_INTENT_ID: String = "id"
}
| 0 | Kotlin | 2 | 3 | a453300e0eb417b4a25ebd5bfe244401436e62c1 | 169 | BMI-calculator-Kotlin-Room-MVVM | Apache License 2.0 |
java/java-tests/testSrc/com/intellij/java/configurationStore/testUtils.kt | JetBrains | 2,489,216 | false | null | // 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.java.configurationStore
import com.intellij.openapi.application.ex.PathManagerEx
import com.intellij.openapi.components.stateStore
import com.intellij.testFr... | 214 | null | 4829 | 15,129 | 5578c1c17d75ca03071cc95049ce260b3a43d50d | 2,865 | intellij-community | Apache License 2.0 |
dagger/src/main/java/com/thefuntasty/mvvm/dagger/BaseDaggerBottomSheetDialogFragment.kt | angelcam | 185,821,368 | true | {"Kotlin": 135053, "Java": 1496, "Ruby": 1104} | package com.thefuntasty.mvvm.dagger
import android.content.Context
import androidx.databinding.ViewDataBinding
import androidx.fragment.app.Fragment
import com.thefuntasty.mvvm.BaseViewModel
import com.thefuntasty.mvvm.BindingViewModelBottomSheetDialogFragment
import com.thefuntasty.mvvm.ViewState
import dagger.androi... | 0 | Kotlin | 1 | 0 | 525a050e4b15b82f477ac097e73854e20a34ae36 | 1,062 | mvvm-android | MIT License |
trixnity-core/src/commonMain/kotlin/net/folivo/trixnity/core/model/events/m/room/TombstoneEventContent.kt | benkuly | 330,904,570 | false | null | package net.folivo.trixnity.core.model.events.m.room
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import net.folivo.trixnity.core.model.RoomId
import net.folivo.trixnity.core.model.events.StateEventContent
/**
* @see <a href="https://spec.matrix.org/v1.7/client-server-api/#mroomt... | 0 | null | 3 | 30 | 69cc6ff505b218c1c7d8110fb23e95ca1da4c54b | 534 | trixnity | Apache License 2.0 |
app/src/main/java/com/codexo/cryptopeak/ui/CoinFragment.kt | EyuCoder | 392,365,477 | false | {"Kotlin": 40585} | package com.codexo.cryptopeak.ui
import android.os.Build
import android.os.Bundle
import android.view.View
import androidx.annotation.RequiresApi
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.widg... | 11 | Kotlin | 2 | 16 | d808ddae790fb26a9bda77f24864e10d16aef786 | 2,447 | CryptoPeak | Apache License 2.0 |
app/src/main/java/com/codexo/cryptopeak/ui/CoinFragment.kt | EyuCoder | 392,365,477 | false | {"Kotlin": 40585} | package com.codexo.cryptopeak.ui
import android.os.Build
import android.os.Bundle
import android.view.View
import androidx.annotation.RequiresApi
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.widg... | 11 | Kotlin | 2 | 16 | d808ddae790fb26a9bda77f24864e10d16aef786 | 2,447 | CryptoPeak | Apache License 2.0 |
app/src/main/java/com/example/jetpackcompose/theme/DarkModeActivity.kt | TechnoBlogger14o3 | 306,509,612 | true | {"Kotlin": 389260} | package com.example.jetpackcompose.theme
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.foundation.Icon
import androidx.compose.foundation.Text
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundat... | 0 | Kotlin | 0 | 1 | ea6bb98d6e02f7550220e8c94a88ae26b9e8045e | 22,668 | SDUI-By-Jetpack-Compose-Example | Apache License 2.0 |
core/src/main/kotlin/gropius/dto/input/issue/RemoveIssueFromTrackableInput.kt | ccims | 487,996,394 | false | {"Kotlin": 1063765, "TypeScript": 442524, "MDX": 61402, "JavaScript": 25165, "HTML": 17174, "CSS": 4796, "Shell": 2363} | package gropius.dto.input.issue
import com.expediagroup.graphql.generator.annotations.GraphQLDescription
import com.expediagroup.graphql.generator.scalars.ID
import gropius.dto.input.common.Input
@GraphQLDescription("Input for the removeIssueFromTrackable mutation")
class RemoveIssueFromTrackableInput(
@GraphQLDe... | 3 | Kotlin | 1 | 0 | e59acfffdbad9e75c0d697c2553e342c5ada5f36 | 511 | gropius-backend | MIT License |
src/main/kotlin/com/blr19c/falowp/bot/system/scheduling/cron/TriggerContext.kt | falowp-bot | 736,172,318 | false | {"Kotlin": 227438, "HTML": 3910} | package com.blr19c.falowp.bot.system.scheduling.cron
import java.time.Instant
import kotlin.concurrent.Volatile
@Suppress("UNUSED")
class TriggerContext {
@Volatile
private var lastScheduledExecutionTime: Instant? = null
@Volatile
private var lastActualExecutionTime: Instant? = null
@Volatile
... | 0 | Kotlin | 0 | 6 | a2eef9ec7b6f7a51f260b64de548fe291b89266c | 1,955 | falowp-bot-system | Apache License 2.0 |
app/src/main/java/lpzmrc/test/djungle/io/ui/view/MainActivity.kt | lpzmrc | 250,509,107 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 60, "XML": 36, "Java": 1} | package lpzmrc.test.djungle.io.ui.view
import android.os.Bundle
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.isVisible
import androidx.lifecycle.Observer
import androidx.navigation.findNavController
import androidx.navigation.ui.AppBarConfiguration
impor... | 1 | null | 1 | 1 | ec8529fa6e0ec7c9062527eb11ab7305f3d085e6 | 2,452 | test-djungle | The Unlicense |
app/src/main/java/com/jonathanlee/popcorn/util/extension/DensityExtension.kt | jonathanlee06 | 403,033,324 | false | {"Kotlin": 207872} | package com.jonathanlee.popcorn.util.extension
import android.content.res.Resources
import android.util.TypedValue
val Float.dp: Float
get() = convert(this, TypedValue.COMPLEX_UNIT_DIP)
val Int.dp: Int
get() = convert(this.toFloat(), TypedValue.COMPLEX_UNIT_DIP).toInt()
val Float.sp: Float
get() = conve... | 0 | Kotlin | 0 | 4 | d3b4fdf313bd968bdffd50a6fc0ae60f9fb85dd3 | 630 | Popcorn | Apache License 2.0 |
module/bukkit/bukkit-ui/bukkit-ui-legacy/src/main/kotlin/taboolib/module/ui/virtual/VirtualInventoryViewLegacy.kt | TabooLib | 120,413,612 | false | null | package taboolib.module.ui.virtual
import org.bukkit.entity.HumanEntity
import org.bukkit.event.inventory.InventoryType
import org.bukkit.inventory.Inventory
import org.bukkit.inventory.InventoryView
/**
* TabooLib
* taboolib.module.ui.virtual.VirtualInventoryViewLegacy
*
* @author 坏黑
* @since 2023/1/16 04:11
*... | 4 | null | 101 | 307 | 41a840c2623b616607852c9e1343c662a4143216 | 815 | taboolib | MIT License |
harmonysoft-micrometer/src/test/kotlin/tech/harmonysoft/oss/micrometer/registry/StatsRegistryFactoryTest.kt | harmonysoft-tech | 517,062,754 | false | {"Kotlin": 638681, "Gherkin": 24382, "Shell": 555, "JavaScript": 378} | package tech.harmonysoft.oss.micrometer.registry
import io.micrometer.core.instrument.ImmutableTag
import io.micrometer.core.instrument.MeterRegistry
import io.micrometer.core.instrument.Tag
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.mockito.kotlin.any
import org.moc... | 1 | Kotlin | 1 | 2 | b659b05738c8c792da2d6ba70b4cfa0dffb60a7f | 4,605 | harmonysoft-kotlin-libs | MIT License |
browser-kotlin/src/main/kotlin/web/media/recorder/RecordingState.kt | karakum-team | 393,199,102 | false | null | // Automatically generated - do not modify!
@file:Suppress(
"NAME_CONTAINS_ILLEGAL_CHARS",
)
package web.media.recorder
// language=JavaScript
@JsName("""(/*union*/{inactive: 'inactive', paused: 'paused', recording: 'recording'}/*union*/)""")
external enum class RecordingState {
inactive,
paused,
rec... | 0 | Kotlin | 5 | 18 | e71c43c0b93113ea0394025c3f40268cb7c66ca9 | 337 | types-kotlin | Apache License 2.0 |
src/test/kotlin/shirates/core/uitest/ios/driver/commandextension/TestDriveScrollExtensionTest2.kt | ldi-github | 538,873,481 | false | {"Kotlin": 3806568, "JavaScript": 12703, "CSS": 5215} | package shirates.core.uitest.ios.driver.commandextension
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Order
import org.junit.jupiter.api.Test
import shirates.core.configuration.Testrun
import shirates.core.driver.TestDriverEventContext
import shirates.core.driver.commandextension.*
im... | 0 | Kotlin | 0 | 8 | f5ff94f3a36495b71e15e78eafec46ce10623bf0 | 3,587 | shirates-core | Apache License 2.0 |
stream-chat-android-core/src/main/java/io/getstream/chat/android/models/MessageType.kt | GetStream | 177,873,527 | false | {"Kotlin": 8578375, "MDX": 2150736, "Java": 271477, "JavaScript": 6737, "Shell": 5229} | /*
* Copyright (c) 2014-2022 Stream.io Inc. All rights reserved.
*
* Licensed under the Stream License;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://github.com/GetStream/stream-chat-android/blob/main/LICENSE
*
* Unless required by a... | 24 | Kotlin | 273 | 1,451 | 8e46f46a68810d8086c48a88f0fff29faa2629eb | 1,022 | stream-chat-android | FSF All Permissive License |
stream-chat-android-core/src/main/java/io/getstream/chat/android/models/MessageType.kt | GetStream | 177,873,527 | false | {"Kotlin": 8578375, "MDX": 2150736, "Java": 271477, "JavaScript": 6737, "Shell": 5229} | /*
* Copyright (c) 2014-2022 Stream.io Inc. All rights reserved.
*
* Licensed under the Stream License;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://github.com/GetStream/stream-chat-android/blob/main/LICENSE
*
* Unless required by a... | 24 | Kotlin | 273 | 1,451 | 8e46f46a68810d8086c48a88f0fff29faa2629eb | 1,022 | stream-chat-android | FSF All Permissive License |
automotive/src/main/java/com/ixam97/carStatsViewer/database/tripData/TripDao.kt | Ixam97 | 583,674,516 | false | {"Kotlin": 413145} | package com.ixam97.carStatsViewer.database.tripData
import androidx.room.*
@Dao
interface TripDao {
@Upsert
fun upsertDrivingPoint(drivingPoint: DrivingPoint)
@Query("SELECT * FROM DrivingPoint ORDER BY driving_point_epoch_time DESC LIMIT 1")
fun getLatestDrivingPoint(): DrivingPoint?
@Upsert
... | 21 | Kotlin | 35 | 65 | c7d016e2c668b113b47e957d8d1ac513fb379ee0 | 7,119 | CarStatsViewer | MIT License |
app/src/main/java/app/grapheneos/apps/util/InternalSettings.kt | GrapheneOS | 387,670,249 | false | {"Kotlin": 235745, "Java": 18171} | package app.grapheneos.apps.util
object InternalSettings {
val file = getSharedPreferences("internal_settings")
const val KEY_DELETED_v1_NOTIF_CHANNELS = "deleted_v1_notif_channels"
const val KEY_DELETED_v1_FILES = "deleted_v1_files"
const val KEY_SUPPRESS_NOTIFICATION_PERMISSION_DIALOG = "suppress_n... | 11 | Kotlin | 29 | 269 | 1e1b62cc69c9d1da8099336d4fddfab94357cf8c | 353 | AppStore | MIT License |
backpack-compose/src/main/kotlin/net/skyscanner/backpack/compose/Swipeable.kt | Skyscanner | 117,813,847 | false | null | /*
* Backpack for Android - Skyscanner's Design System
*
* Copyright 2018 Skyscanner Ltd
*
* 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-... | 8 | null | 31 | 94 | 9b5448b446c7bc46560e430595829e5f4f090e6b | 1,628 | backpack-android | Apache License 2.0 |
src/main/kotlin/me/mrkirby153/KirBot/command/executors/music/CommandSkip.kt | nbanmp | 109,642,199 | true | {"Kotlin": 207082} | package me.mrkirby153.KirBot.command.executors.music
import me.mrkirby153.KirBot.command.CommandException
import me.mrkirby153.KirBot.command.args.CommandContext
import me.mrkirby153.KirBot.command.executors.CmdExecutor
import me.mrkirby153.KirBot.music.MusicManager
import me.mrkirby153.KirBot.user.Clearance
import me... | 0 | Kotlin | 0 | 0 | d95e405564f8068a2396c90b6945944d5d1d221d | 4,662 | KirBot | MIT License |
app/src/main/java/org/listenbrainz/android/util/Constants.kt | metabrainz | 550,726,972 | false | null | package org.listenbrainz.android.util
import org.listenbrainz.android.util.Constants.SPOTIFY_PACKAGE_NAME
object Constants {
const val RECENTLY_PLAYED_KEY = "recently_played"
const val SPOTIFY_PACKAGE_NAME = "com.spotify.music"
const val YOUTUBE_MUSIC_PACKAGE_NAME = "com.google.android.apps.youtube.music"... | 9 | Kotlin | 21 | 33 | feb70afc38675c50f99c753eba7591b313100bdf | 1,953 | listenbrainz-android | Apache License 2.0 |
app/src/main/java/de/lemke/oneurl/domain/ObserveURLsUseCase.kt | Lemkinator | 699,106,627 | false | {"Kotlin": 311924} | package de.lemke.oneurl.domain
import de.lemke.oneurl.data.URLRepository
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.flowOn
import javax.inject.Inject
class ObserveURLsUseCase @Inject constructor(
private val urlRepository: URLRepository,
) {
operator fun invoke() = urlRepository.obs... | 2 | Kotlin | 1 | 9 | 19abeedb4540a63f35196b6c0ddc12dcac2eee47 | 360 | OneUrl | MIT License |
app/src/main/java/com/ryoyakawai/felicareader/MainActivityInteractor.kt | ryoyakawai | 266,459,021 | false | null | package com.ryoyakawai.felicareader
import com.ryoyakawai.felicareader.api.APIClient
import com.ryoyakawai.felicareader.api.ApiConnection
import com.ryoyakawai.felicareader.api.response.SinglePostResponse
import io.reactivex.Single
import org.json.JSONObject
class MainActivityInteractor {
fun simpleSampleRespons... | 0 | Kotlin | 0 | 0 | 5f8c409ebc42f16b8b01b586d97ae985e3a62d11 | 729 | felicareader_android | Apache License 2.0 |
auth-firebase/src/iosMain/kotlin/com/macaosoftware/plugin/account/FirebaseAccountPlugin.kt | pablichjenkov | 701,156,284 | false | null | package com.macaosoftware.plugin.account
import com.macaosoftware.util.MacaoResult
import kotlin.coroutines.resume
import kotlin.coroutines.suspendCoroutine
class FirebaseAccountPlugin(
private val firebaseAuthKmpWrapper: FirebaseAuthKmpWrapper
) : AccountPlugin {
private val TAG = "FirebaseAuthPlugin"
... | 0 | null | 2 | 29 | a08b45657cdc25eb30d8dacd23ed6ff62e4b805e | 4,986 | macao-marketplace | The Unlicense |
location-all/src/test/java/com/vkondrav/ram/location/all/di/KoinModuleTest.kt | vkondrav | 481,052,423 | false | null | package com.vkondrav.ram.location.all.di
import com.vkondrav.ram.graphql.RamRepository
import com.vkondrav.ram.location.common.domain.RamLocation
import com.vkondrav.ram.navigation.usecase.NavigateToRouteUseCase
import com.vkondrav.ram.room.FavoriteLocationsDao
import com.vkondrav.ram.snackbar.usecase.ShowSnackbarMess... | 0 | Kotlin | 1 | 0 | 78c466563652800d8001a58504a533b764507461 | 1,644 | rick_and_morty_compose | MIT License |
app/src/main/kotlin/com/bradley/wilson/jokes/core/network/NetworkHandler.kt | BradleyIW | 248,956,635 | false | {"Kotlin": 30873} | package com.bradley.wilson.jokes.core.network
import android.content.Context
import com.bradley.wilson.jokes.core.extension.networkInfo
class NetworkHandler(private val context: Context) {
val isConnected get() = context.networkInfo?.isConnected
}
| 0 | Kotlin | 0 | 0 | c2bcf9f6d841160b51f212465524ef2231d9a293 | 254 | Dad-Jokes | Apache License 2.0 |
platform/src/main/kotlin/researchstack/backend/adapter/outgoing/mongo/mapper/FileDataInfoMapper.kt | S-ResearchStack | 520,365,362 | false | {"Kotlin": 1297198, "Dockerfile": 202, "Shell": 59} | package researchstack.backend.adapter.outgoing.mongo.mapper
import org.mapstruct.Mapper
import org.mapstruct.factory.Mappers
import researchstack.backend.adapter.outgoing.mongo.entity.studydata.StudyDataFileEntity
import researchstack.backend.domain.studydata.StudyDataFile
import java.time.ZonedDateTime
@Mapper
abstr... | 1 | Kotlin | 9 | 29 | 214dc84476e2de6948c3fc5225cebca0707bfb91 | 912 | backend-system | Apache License 2.0 |
app/src/main/java/com/elementary/tasks/core/utils/TelephonyUtil.kt | naz013 | 255,411,818 | true | {"Kotlin": 1974833, "Java": 180404, "HTML": 14775} | package com.elementary.tasks.core.utils
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.text.TextUtils
import android.widget.Toast
import androidx.annotation.RequiresPermission
import com.elementary.tasks.R
import java.io.File
object TelephonyUtil {
fun sendNote(f... | 0 | null | 3 | 0 | ed79158ac4df09d18749b03b7e77c5208175b550 | 6,085 | reminder-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.