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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sdk/src/main/java/com/mapbox/maps/renderer/WorkerHandlerThread.kt | tokyow | 355,219,500 | true | {"Gradle Kotlin DSL": 19, "Markdown": 21, "JSON": 7, "Java Properties": 2, "Shell": 4, "Ignore List": 12, "Batchfile": 1, "Git Attributes": 1, "EditorConfig": 1, "Makefile": 1, "YAML": 3, "INI": 17, "Kotlin": 572, "XML": 191, "JavaScript": 2, "Java": 39, "Proguard": 3, "Gradle": 5, "CMake": 1, "C++": 1, "Python": 5, "E... | package com.mapbox.maps.renderer
import android.os.Handler
import android.os.HandlerThread
import androidx.annotation.VisibleForTesting
import com.mapbox.common.Logger
internal class WorkerHandlerThread {
@VisibleForTesting(otherwise = VisibleForTesting.PRIVATE)
internal lateinit var handlerThread: HandlerThread... | 0 | null | 0 | 0 | e4d2553af0c994ca8ba6897ed3a5d6c6dbc4681b | 1,160 | mapbox-maps-android | Apache License 2.0 |
android/DartsScorecard/domain/src/main/java/nl/entreco/domain/repository/ProfileStatRepository.kt | Entreco | 110,022,468 | false | {"Markdown": 3, "Text": 3, "Ignore List": 10, "YAML": 2, "SVG": 35, "HTML": 1, "PHP": 1, "CSS": 1, "Gradle": 15, "Java Properties": 2, "Shell": 1, "Batchfile": 1, "Proguard": 7, "Kotlin": 637, "XML": 222, "JSON": 2, "Java": 2} | package nl.entreco.domain.repository
import androidx.annotation.WorkerThread
import nl.entreco.domain.profile.ProfileStat
interface ProfileStatRepository {
@WorkerThread
fun fetchForPlayer(playerId: Long): ProfileStat
} | 7 | null | 1 | 1 | a031a0eeadd0aa21cd587b5008364a16f890b264 | 230 | Darts-Scorecard | Apache License 2.0 |
app/src/main/kotlin/pl/angulski/salarytracker/app/salary/ui/list/LoadingDelegateAdapter.kt | matiangul | 130,270,750 | false | {"Gradle": 7, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Markdown": 1, "Proguard": 3, "Java": 4, "XML": 23, "Kotlin": 45, "JSON": 2} | package pl.angulski.salarytracker.app.salary.ui.list
import android.support.v7.widget.RecyclerView
import android.view.ViewGroup
import pl.angulski.mobile.extension.inflate
import pl.angulski.mobile.view.recycler.ViewType
import pl.angulski.mobile.view.recycler.ViewTypeDelegateAdapter
import pl.angulski.salarytracker.... | 2 | null | 1 | 1 | 9d7848923a0dc97364964b0722ab4c7a84be081a | 703 | SalaryTracker | MIT License |
okio/src/commonTest/kotlin/okio/CommonOkioKotlinTest.kt | square | 17,812,502 | false | {"Kotlin": 1559919, "Java": 43685, "Shell": 1180} | /*
* Copyright (C) 2019 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 89 | Kotlin | 1178 | 8,795 | 0f6c9cf31101483e6ee9602e80a10f7697c8f75a | 1,200 | okio | Apache License 2.0 |
app/src/main/java/com/liuzhenlin/videos/Configs.kt | lzls | 125,976,852 | false | null | /*
* Created on 2021-10-22 10:13:39 AM.
* Copyright © 2021 刘振林. All rights reserved.
*/
@file:JvmName("Configs")
package com.liuzhenlin.videos
/**
* @author 刘振林
*/
@Suppress("SimplifyBooleanWithConstants")
@JvmField
internal val DEBUG_APP_UPDATE = BuildConfig.DEBUG && false
internal const val TOLERANCE_VIDEO_D... | 8 | Java | 16 | 41 | 771c5e07ab4431765a05d6fa66c8e000fe9e0a2f | 434 | Videos | Apache License 2.0 |
quality/src/test/kotlin/net/twisterrob/gradle/quality/tasks/ConsoleReportTaskIntgTest.kt | TWiStErRob | 116,494,236 | false | {"Kotlin": 866785, "HTML": 57841, "Java": 16637, "XSLT": 13875, "JavaScript": 8666, "CSS": 6638, "Groovy": 3434, "Batchfile": 353} | package net.twisterrob.gradle.quality.tasks
import net.twisterrob.gradle.BaseIntgTest
import net.twisterrob.gradle.checkstyle.test.CheckstyleTestResources
import net.twisterrob.gradle.common.AGPVersions
import net.twisterrob.gradle.pmd.test.PmdTestResources
import net.twisterrob.gradle.test.GradleRunnerRule
import net... | 91 | Kotlin | 5 | 18 | c5fcea0800ac2d13e951991a9c40ee789583e044 | 8,477 | net.twisterrob.gradle | The Unlicense |
libs/ui/src/main/kotlin/com/illiarb/tmdbclient/libs/ui/ext/Menu.kt | ilya-rb | 152,124,194 | false | null | package com.illiarb.tmdbclient.libs.ui.ext
import android.view.Menu
import androidx.core.view.forEach
fun Menu.tintMenuItemsWithColor(color: Int) {
forEach {
it.icon?.let { icon ->
it.icon = icon.mutate().apply {
setTint(color)
}
}
}
} | 0 | null | 1 | 5 | 2a316e72c6ce68759627e52a749b7f02d91b2787 | 269 | Tmdb-Client | MIT License |
app/src/main/java/com/staxpayments/sample/viewmodel/StaxViewModel.kt | fattmerchantorg | 135,478,151 | false | {"Kotlin": 227316, "Java": 725} | package com.staxpayments.sample.viewmodel
import android.app.AlertDialog
import android.content.Context
import androidx.lifecycle.ViewModel
import com.fattmerchant.android.InitParams
import com.fattmerchant.android.Omni
import com.fattmerchant.omni.TransactionUpdateListener
import com.fattmerchant.omni.UserNotificatio... | 2 | Kotlin | 6 | 1 | 5e8a09bf896bc93d1e75fde8d35ba18530ad5a25 | 13,402 | fattmerchant-android-sdk | Apache License 2.0 |
simplified-tests-android/src/androidTest/java/org/nypl/simplified/tests/android/books/profiles/ProfileAccountLoginTaskTest.kt | jonathangreen | 292,624,474 | true | {"Kotlin": 2602716, "Java": 665605, "JavaScript": 10239, "Shell": 5927, "HTML": 557, "CSS": 159} | package org.nypl.simplified.tests.android.books.profiles
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.filters.SmallTest
import org.junit.runner.RunWith
import org.nypl.simplified.tests.books.profiles.ProfileAccountLoginTaskContract
import org.slf4j.Logger
import org.slf4j.LoggerFactory
@R... | 0 | Kotlin | 0 | 0 | d832b391188c86858158ef702f308c6b507ddb61 | 542 | Simplified-Android-Core | Apache License 2.0 |
src/main/kotlin/com/revolut/jooq/Docker.kt | vryzhuk | 222,970,686 | false | {"Gradle Kotlin DSL": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "YAML": 1, "Markdown": 1, "INI": 2, "SQL": 5, "Groovy": 3, "Java": 1, "Kotlin": 8} | package com.revolut.jooq
import com.github.dockerjava.api.DockerClient
import com.github.dockerjava.api.model.ExposedPort
import com.github.dockerjava.api.model.HostConfig.newHostConfig
import com.github.dockerjava.api.model.Ports
import com.github.dockerjava.api.model.Ports.Binding.bindPort
import com.github.dockerja... | 1 | null | 1 | 1 | b6244462d419b24f79413f68df1f74782056d316 | 3,273 | jooq-plugin | Apache License 2.0 |
dkplayer-java/src/main/java/xyz/doikki/videoplayer/sys/SysDKPlayerFactory.kt | Jisucloud | 563,157,256 | true | {"Batchfile": 1, "Shell": 2, "Markdown": 3, "Java Properties": 2, "Proguard": 5, "Kotlin": 50, "Java": 203} | package xyz.doikki.videoplayer.sys
import android.content.Context
import xyz.doikki.videoplayer.DKPlayerFactory
/**
* 创建[SysDKPlayer]的工厂类,不推荐,系统的MediaPlayer兼容性较差,建议使用IjkPlayer或者ExoPlayer
* todo 本身可以采用lambda实现,但是不利于调试时通过classname获取Player的名字
*/
class SysDKPlayerFactory : DKPlayerFactory {
override fun create(co... | 0 | Java | 0 | 0 | 43d319d6000357610461848eccc9af40099655a5 | 395 | DKVideoPlayer | Apache License 2.0 |
stripecardscan/src/main/java/com/stripe/android/stripecardscan/framework/util/File.kt | stripe | 6,926,049 | false | null | package com.stripe.android.stripecardscan.framework.util
import android.content.Context
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import java.io.File
import java.io.FileInputStream
import java.io.IOException
import java.security.MessageDigest
import java.security.NoSuchAlgorithmExcept... | 88 | null | 644 | 935 | bec4fc5f45b5401a98a310f7ebe5d383693936ea | 2,161 | stripe-android | MIT License |
app/src/main/java/com/tomclaw/nimpas/util/Colors.kt | solkin | 148,905,097 | false | {"Kotlin": 208927, "Java": 64027} | package com.tomclaw.nimpas.util
import androidx.annotation.ColorRes
import com.tomclaw.nimpas.R
import java.util.Random
data class ColorPair(
@ColorRes val first: Int,
@ColorRes val second: Int
)
private val COLORS = listOf(
ColorPair(R.color.color_yellow, R.color.color_yellow_light),
... | 1 | Kotlin | 1 | 2 | 681bd0768d7f23906da62c2e266521c48e58ec01 | 781 | nimpas-android | MIT License |
app/src/main/java/com/shaun/myblogger/adapters/home_recyclerView.kt | sunny52525 | 281,939,456 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "JSON": 3, "Proguard": 1, "Kotlin": 22, "XML": 65, "Java": 1} | package com.shaun.myblogger.adapters
import android.content.res.Resources
import android.graphics.Color
import android.text.Spannable
import android.text.style.QuoteSpan
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
impo... | 1 | null | 1 | 1 | 8fb6fa42431216b93c80bf4f8c9d43ce685409df | 5,621 | my-blogger | MIT License |
src/main/kotlin/com/dialazine/server/readers/StoryReader.kt | caraesten | 462,453,001 | false | {"Kotlin": 12919} | package com.dialazine.server.readers
import com.dialazine.server.models.Story
import com.dialazine.server.models.ZineConfig
interface StoryReader : Iterable<ByteArray>
class StoryReaderImpl(val zineConfig: ZineConfig, val story: Story) : StoryReader {
override fun iterator(): Iterator<ByteArray> {
return... | 0 | Kotlin | 1 | 5 | c328f9fe0d8871fa55450b9366c0eb05cd2b145e | 889 | dial_a_zine2 | MIT License |
FampayProject/app/src/main/java/com/example/fampayproject/models/Card.kt | adrishyantee | 516,402,046 | false | {"Kotlin": 37894} | package com.example.fampayproject.models
data class Card(
val bg_color: String,
val bg_image: BgImage,
val cta: List<Cta>,
val description: String,
val formatted_description: FormattedDescription,
val formatted_title: FormattedTitle,
val icon: Icon,
val name: String,
val title: Stri... | 0 | Kotlin | 0 | 1 | 16fbf1375e92fccb8aed8a77817c9cf383f24033 | 385 | Fampay | MIT License |
src/main/kotlin/edu/uiowa/domain/game/models/type/GameType.kt | matthewdargan | 162,233,314 | false | null | package edu.uiowa.domain.game.models.type
/**
* The enum class of the different types of game modes.
*/
enum class GameType {
PLAYER_VS_PLAYER, AI_VS_PLAYER, AI_VS_AI
} | 0 | Kotlin | 0 | 0 | 5f79540550132904a6b45a109c81ae4c40794b54 | 175 | TicTacToe-JavaFX | MIT License |
laminat/src/main/java/au/com/dius/pact/matchers/MatchingConfig.kt | nonec | 261,168,957 | true | {"Java": 143149, "Kotlin": 142179} | package au.com.dius.pact.matchers
import org.apache.http.entity.ContentType
object MatchingConfig {
private val xmlRegex = Regex("application/.*xml.*")
private val jsonRegex = Regex("application/.*json.*")
private var bodyMatchers = mapOf<Regex, BodyMatcher>(
// TODO: Pair(xmlRegex, XmlBodyMatch... | 0 | Java | 3 | 0 | bb00d7cf133be1c285dc157d8d64aa67f169e65a | 1,005 | laminat | Apache License 2.0 |
app/src/main/java/com/task/noteapp/ui/activity/MainActivity.kt | leventyayla | 473,742,507 | false | {"Kotlin": 15145} | package com.task.noteapp.ui.activity
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.activity.viewModels
import androidx.navigation.findNavController
import com.task.noteapp.R
import com.task.noteapp.databinding.ActivityMainBinding
import com.task.noteapp.db.entities.Note
impor... | 0 | Kotlin | 0 | 0 | 427cd4df05416ece568f0dccebe14f44d531b636 | 1,743 | LocalNote | Apache License 2.0 |
TestAndroidAll/src/main/java/com/lorenwang/test/android/activity/customToolsAndroid/CheckActivity.kt | Loren-Wang | 164,838,761 | false | {"Java": 3140552, "Kotlin": 581207, "JavaScript": 23273, "HTML": 1721, "CSS": 930} | package com.lorenwang.test.android.activity.customToolsAndroid
import android.lorenwang.tools.app.AtlwToastHintUtil
import android.lorenwang.tools.base.AtlwCheckUtil
import android.lorenwang.tools.file.AtlwFileOptionUtil
import android.view.View
import com.lorenwang.test.android.R
import com.lorenwang.test.android.bas... | 5 | Java | 1 | 4 | 3669d165ef0b1667b37155978de4c1dd9660b903 | 4,794 | LorenWangCustomTools | Apache License 2.0 |
app/src/main/java/com/ablylabs/pubcrawler/ui/MainActivity.kt | ably-labs | 407,255,690 | false | {"Kotlin": 60824, "Java": 28697} | package com.ablylabs.pubcrawler.ui
import android.app.Activity
import android.content.Intent
import android.graphics.BitmapFactory
import android.os.Bundle
import android.util.Log
import android.view.Menu
import android.view.MenuItem
import android.view.View
import android.widget.*
import androidx.activity.result.cont... | 3 | Kotlin | 0 | 2 | 3cb941ddf3832c45af9c4b75424f4cc60b0cfbb2 | 7,991 | PubCrawler | Apache License 2.0 |
app/src/main/java/com/willowtree/vocable/settings/AddUpdateCategoryViewModel.kt | willowtreeapps | 188,443,410 | false | null | package com.willowtree.vocable.settings
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.willowtree.vocable.BaseViewModel
import com.willowtree.vocable.presets.PresetsRepository
import com.willowtree.vocable.room.Category
import com.willowtree.vocable.utils.LocalizedResourceUtili... | 60 | Kotlin | 9 | 93 | dbd868562b7a7c9de2859099321a87889486a66e | 4,430 | vocable-android | MIT License |
app/src/main/java/com/app/otakudesu/AnimeAdapter.kt | salehrashid | 526,092,506 | false | {"Kotlin": 6734} | package com.app.otakudesu
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.app.otakudesu.data.OnGoingItem
import com.app.otakudesu.databinding.RowAnimeItemBinding
import com.bumptech.glide.Glide
class AnimeAdapter : RecyclerView.Adapter<Anime... | 0 | Kotlin | 0 | 0 | ed0ec995c01414b3c0740fcb39f1be86b049ff9c | 1,225 | Practice_Otakudesu | Apache License 2.0 |
src/main/kotlin/com/github/insanusmokrassar/AutoORM/core/drivers/tables/filters/PageFilter.kt | InsanusMokrassar | 88,080,591 | false | null | package com.github.insanusmokrassar.AutoORM.core.drivers.tables.filters
class PageFilter(var page: Int = 0, var size : Int = 1) | 1 | Kotlin | 0 | 0 | 5c8bdfe5aa40b4c394e100a5d45cdcacd8c862a2 | 128 | AutoORM | MIT License |
MVIPractice/domain/src/main/java/com/kimmandoo/domain/usecase/login/ClearTokenUseCase.kt | kimmandoo | 810,895,614 | false | {"Kotlin": 300640} | package com.kimmandoo.domain.usecase.login
interface ClearTokenUseCase {
suspend operator fun invoke(): Result<Unit>
} | 0 | Kotlin | 0 | 0 | 9a8ea13862807e5064362abaab34cef720c379cf | 123 | android-drill | MIT License |
kutil/src/jsMain/kotlin/net/kigawa/kutil/kutil/api/SignalHandler.js.kt | kigawa01 | 421,088,101 | false | {"Kotlin": 56829, "Java": 914} | package net.kigawa.kutil.kutil.api
@Suppress("unused")
actual object SignalHandler {
actual fun shutdownHook(hook: () -> Unit) {
}
} | 2 | Kotlin | 0 | 0 | 12cc2caa61c89ea57c96323bab4a79b905f1f14c | 137 | kutil | MIT License |
mulighetsrommet-arena-adapter/src/test/kotlin/no/nav/mulighetsrommet/arena/adapter/events/processors/TiltakEventProcessorTest.kt | navikt | 435,813,834 | false | null | package no.nav.mulighetsrommet.arena.adapter.events.processors
import io.kotest.assertions.arrow.core.shouldBeLeft
import io.kotest.assertions.arrow.core.shouldBeRight
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.should
import io.kotest.matchers.shouldBe
import io.ktor.client.engine.*
import io.k... | 0 | Kotlin | 1 | 4 | 03c6fe32e0d35716be0f6200beabd99df3d0036c | 6,163 | mulighetsrommet | MIT License |
src/main/kotlin/dev/rushii/arsc/builders/TypeBuilder.kt | rushiiMachine | 563,992,057 | false | {"Kotlin": 33698} | package dev.rushii.arsc.builders
import dev.rushii.arsc.*
/**
* Gets or creates a new resource type based on the name to modify with [block].
* Generates an ID automatically.
*/
public fun ArscPackage.type(name: ArscTypeName, block: ArscType.() -> Unit): ArscType {
val type = types.computeIfAbsent(name) {
ArscT... | 0 | Kotlin | 0 | 1 | 455ddf47c33abec805b1a00230b390dba8ff862e | 1,624 | arsc | Apache License 2.0 |
example/android/app/src/main/kotlin/com/example/hover_demo/MainActivity.kt | swaraj344 | 312,741,825 | true | {"Dart": 20949, "HTML": 1117, "Swift": 404, "Kotlin": 127, "Objective-C": 38} | package com.example.hover_demo
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | af6cfbe2146eb41d2b7e7d4356bc26069d962ee3 | 127 | hovering | MIT License |
app/src/main/java/com/example/mobiletest/repository/Repository.kt | johnlaura | 863,267,035 | false | {"Kotlin": 18537} | package com.example.mobiletest.repository
import androidx.lifecycle.liveData
import com.example.mobiletest.utilities.singleevent.Event
import kotlin.coroutines.CoroutineContext
/**
* MobileTest
* Do one thing to change the world
* create by johnlion at 2024/9/25
*/
open class Repository {
open fun <T> emitEve... | 0 | Kotlin | 0 | 0 | 60a6f1d67d2535762fa81c25d2dd08c6f02bc0cb | 595 | MobileTest | Apache License 2.0 |
Jetchat/app/src/main/java/com/example/compose/jetchat/functions/ListFavoritesFunction.kt | conceptdev | 648,744,747 | false | null | package com.example.compose.jetchat.functions
import android.content.Context
import android.provider.BaseColumns
import android.util.Log
import com.aallam.openai.api.chat.Parameters
import com.example.compose.jetchat.data.DroidconContract
import com.example.compose.jetchat.data.DroidconDbHelper
import com.example.comp... | 1 | Kotlin | 0 | 5 | b7ccac49282dcaf9be877435de84aaec4eac53e0 | 2,906 | droidcon-sf-23 | Apache License 2.0 |
app/src/main/java/com/example/helpcity/OccurrenceActivity.kt | helderpgoncalves | 341,641,651 | false | null | package com.example.helpcity
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import android.widget.Toast
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.ItemTouchHelper
import androidx.recyclerview.widget.Linea... | 0 | Kotlin | 0 | 1 | fff554361afefbd4a8ae3fe3a6485f44bc6851bd | 5,888 | HelpCity | MIT License |
android/quest/src/main/java/org/smartregister/fhircore/quest/ui/patient/register/PatientRegisterViewModel.kt | d-tree-org | 425,769,415 | true | {"Kotlin": 2134741} | /*
* Copyright 2021 Ona Systems, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 0 | Kotlin | 1 | 0 | a22005a443284f468fbceb459724eec3da975b43 | 10,781 | fhircore | Apache License 2.0 |
core/src/main/java/com/wolking/core/data/shared/CoroutineDispatchers.kt | paulowolking | 509,890,806 | false | null | package com.wolking.core.data.shared
import kotlinx.coroutines.Dispatchers
import javax.inject.Inject
import javax.inject.Singleton
import kotlin.coroutines.CoroutineContext
interface CoroutineDispatchers {
val ioContext: CoroutineContext
val uiContext: CoroutineContext
val defaultContext: CoroutineContex... | 8 | Kotlin | 0 | 2 | 3a98ef920ffd4b6ee7b7c27ca06cb2b5fa4695ae | 655 | investing-android | Apache License 2.0 |
src/main/kotlin/com/eve/engine/esi4k/model/MailLabels.kt | EveEngine | 254,506,280 | false | null | package com.eve.engine.esi4k.model
import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonGetter
import com.fasterxml.jackson.annotation.JsonProperty
open class MailLabels (
@JsonProperty("labels") val labels: List<MailLabel>? = null,
@JsonProperty("total_unrea... | 0 | Kotlin | 0 | 0 | 6aba2e43a8dc11b2c435d08b91dc9ed4baf9ea9b | 1,391 | esi4k | Apache License 2.0 |
ui/common/src/commonMain/kotlin/ly/david/musicsearch/ui/common/screen/Screens.kt | lydavid | 458,021,427 | false | null | package ly.david.musicsearch.ui.common.screen
import com.slack.circuit.runtime.screen.PopResult
import com.slack.circuit.runtime.screen.Screen
import ly.david.musicsearch.shared.domain.network.MusicBrainzEntity
import ly.david.musicsearch.ui.common.topappbar.Tab
@Parcelize
data class SearchScreen(
val query: Stri... | 115 | null | 0 | 45 | 3ab7303fca3a33f1a64e88ef3b411198fb25477c | 1,430 | MusicSearch | Apache License 2.0 |
permission/src/main/java/halo/android/permission/setting/SettingRequestActivity.kt | jiubadao | 135,992,841 | true | {"Kotlin": 57169, "Java": 4084} | package halo.android.permission.setting
import android.content.Context
import android.content.Intent
import android.util.Log
import halo.android.permission.common.BaseRequestActivity
/**
* the request caller by activity
* Activity形式实现的请求权限者
*/
class SettingRequestActivity : BaseRequestActivity() {
companion... | 0 | Kotlin | 0 | 0 | 57521e6c413cfc64594b8c6cb06ef726a16fe8a1 | 1,842 | HaloPermission | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/ShieldMinus.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 | 3,063 | icons | MIT License |
app/src/main/java/com/example/test/utils/JobsTypeDiffCallback.kt | rahman248 | 504,381,047 | false | null | package com.example.test.utils
import android.os.Bundle
import androidx.annotation.Nullable
import androidx.recyclerview.widget.DiffUtil
import com.example.test.data.repo.model.response.JobMdl
class JobsTypeDiffCallback : DiffUtil.Callback() {
private var mOldList: List<JobMdl>? = null
private var mNewList:... | 0 | Kotlin | 0 | 0 | f1cc20afffeed786d514bdffa5ad56b4a6eddd37 | 3,354 | pjs | The Unlicense |
src/main/kotlin/dev/luna5ama/mdsfgen/SignedDistance.kt | Luna5ama | 654,146,121 | false | null | package dev.luna5ama.mdsfgen
import kotlin.math.abs
/**
* Represents a signed distance and alignment,
* which together can be compared to uniquely determine the closest edge segment.
*/
data class SignedDistance(var distance: Float, var dot: Float) {
constructor() : this(-Float.MAX_VALUE, 1.0f)
fun reset(... | 0 | Kotlin | 0 | 0 | 3cfbd1346fadb35eb48de34eb1205c0e9a4db61e | 723 | msdfgen-kt | MIT License |
workflow-core/src/test/java/com/squareup/workflow1/WorkerWorkflowTest.kt | SontagBae | 526,085,781 | true | {"Kotlin": 735917, "Shell": 1911, "Ruby": 1461, "Java": 806} | /*
* Copyright 2020 Square Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | null | 0 | 1 | 86f6dcbb995c2f5a6c98ca7dbea12d5a9531bac6 | 2,521 | workflow-kotlin | Apache License 2.0 |
spesialist-modell/src/main/kotlin/no/nav/helse/modell/saksbehandler/handlinger/Handling.kt | navikt | 244,907,980 | false | {"Kotlin": 2432927, "PLpgSQL": 29508, "HTML": 1741, "Dockerfile": 168} | package no.nav.helse.modell.saksbehandler.handlinger
import no.nav.helse.modell.saksbehandler.Saksbehandler
interface Handling {
fun utførAv(saksbehandler: Saksbehandler)
fun loggnavn(): String
}
interface Overstyring: Handling {
fun gjelderFødselsnummer(): String
} | 3 | Kotlin | 1 | 0 | a1cda546ae5cedd9c3925561643edde9401953f6 | 281 | helse-spesialist | MIT License |
app/src/main/java/cz/dmn/cpska/ui/splash/SplashMvp.kt | kletzander | 141,282,285 | false | {"Kotlin": 138837} | package cz.dmn.cpska.ui.splash
import android.support.annotation.StringRes
import cz.dmn.cpska.mvp.MvpPresenter
import cz.dmn.cpska.mvp.MvpView
import cz.dmn.cpska.mvp.PresenterState
interface SplashMvp {
interface View: MvpView {
fun close()
fun error(@StringRes messageId: Int)
}
interf... | 0 | Kotlin | 0 | 0 | 17a0b9e855458b73ac014bb7aab9698f89b741d2 | 374 | cpska-android | MIT License |
compose-backstack/src/test/java/com/zachklipp/compose/backstack/PercentageLayoutOffsetTest.kt | hasali19 | 363,680,090 | true | {"Kotlin": 79103} | @file:Suppress("DEPRECATION")
package com.zachklipp.compose.backstack
import androidx.compose.runtime.mutableStateOf
import androidx.compose.ui.unit.IntOffset
import androidx.compose.ui.unit.IntSize
import androidx.compose.ui.unit.LayoutDirection
import com.zachklipp.compose.backstack.BackstackTransition.Slide
import... | 0 | Kotlin | 0 | 0 | eb5c602cbd9cbfb089c192c7cfd119df29768199 | 1,992 | compose-backstack | Apache License 2.0 |
validk/src/test/kotlin/io/validk/NullableTest.kt | resoluteworks | 769,642,346 | false | {"Kotlin": 36321, "Makefile": 549} | package io.validk
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe
class NullableTest : StringSpec({
"validate if not null" {
data class Person(val name: String, val email: String?)
val validation = Validation {
Person::name { notBlank() }
Pe... | 0 | Kotlin | 0 | 0 | ee5fc6c750615e0311837dfa20f8a1cbfd85cd86 | 2,117 | validk | Apache License 2.0 |
core/domain/src/main/java/com/hanbikan/nook/core/domain/usecase/GetActiveUserUseCase.kt | hanbikan | 737,877,468 | false | {"Kotlin": 352009} | package com.hanbikan.nook.core.domain.usecase
import com.hanbikan.nook.core.domain.model.User
import com.hanbikan.nook.core.domain.repository.AppStateRepository
import com.hanbikan.nook.core.domain.repository.UserRepository
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.Flow
import ... | 0 | Kotlin | 0 | 0 | a11874424d5923fb4f1ce32ccf0e83ae6d6dc9f9 | 929 | Nook | Apache License 2.0 |
src/main/kotlin/br/com/webbudget/application/payloads/registration/CostCenterPayloads.kt | web-budget | 354,665,828 | false | null | package br.com.webbudget.application.payloads.registration
import br.com.webbudget.application.payloads.support.SpecificationSupport
import br.com.webbudget.application.payloads.support.StatusFilter
import br.com.webbudget.domain.entities.registration.CostCenter
import java.util.UUID
import javax.persistence.criteria.... | 5 | Kotlin | 1 | 1 | 93a1f125740adf3033f1ebef31095c10af11ef44 | 1,449 | back-end | Apache License 2.0 |
backend/src/main/kotlin/com/quizapp/controller/QuestionController.kt | JacekKaczmarek10 | 806,260,511 | false | {"Kotlin": 45985, "JavaScript": 25158, "HTML": 1721, "Dockerfile": 286} | package com.quizapp.controller
import com.quizapp.dto.AnswerDto
import com.quizapp.dto.QuestionDto
import com.quizapp.service.QuestionService
import jakarta.persistence.EntityNotFoundException
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.http.HttpStatus
import org.springfram... | 0 | Kotlin | 0 | 0 | 601ba01d89fca3008e9e84044827ab55e0fa9e81 | 3,568 | vocabulary-learning-tool | Apache License 2.0 |
changerecording/src/main/kotlin/ObservableModelTransformationType.kt | jGleitz | 239,469,794 | false | null | package de.joshuagleitze.transformationnetwork.changerecording
import de.joshuagleitze.transformationnetwork.metametamodel.Model
import de.joshuagleitze.transformationnetwork.modeltransformation.ModelTransformationType
interface ObservableModelTransformationType : ModelTransformationType {
override fun create(lef... | 3 | Kotlin | 0 | 1 | d5d0bd7722abe3260bc204f128337c25c0fb340e | 386 | transformationnetwork-simulator | MIT License |
spenn-selve/src/test/kotlin/no/nav/helse/spenn/RapidInspektør.kt | navikt | 176,742,371 | false | null | package no.nav.helse.spenn
import com.fasterxml.jackson.databind.JsonNode
import no.nav.helse.rapids_rivers.isMissingOrNull
import org.junit.jupiter.api.fail
internal class RapidInspektør(private val inspektør: no.nav.helse.rapids_rivers.testsupport.TestRapid.RapidInspector) {
val size get() = inspektør.size
... | 1 | null | 1 | 2 | 598ec269a48405dd5612aceeb06cc636b366356c | 717 | helse-spenn | MIT License |
app/src/main/java/com/example/play_app/AppInfoActivity.kt | hololee | 290,515,299 | false | null | package com.coala.play_app
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_app_info.*
class AppInfoActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setCon... | 2 | Kotlin | 3 | 0 | ccb360adf348f93a2b01f2987f1ba6220d65b7fc | 447 | PLAY_APP | MIT License |
uikit/src/main/java/com/debug/uikit/UiKitButton.kt | grishaster80 | 631,188,692 | false | null | package com.debug.uikit
import android.content.Context
import android.util.AttributeSet
import android.widget.TextView
import androidx.constraintlayout.widget.ConstraintLayout
class UiKitButton @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = 0
) : ConstraintLa... | 0 | Kotlin | 0 | 0 | c8f87f4f7370d4ae178bb2f3f439ea627db6b6ec | 895 | Competition | MIT License |
app/src/main/java/com/example/blank/di/ViewModelModule.kt | olahdome | 264,719,519 | false | null | package com.example.blank.di
import androidx.lifecycle.ViewModel
import co.zsmb.rainbowcake.dagger.ViewModelKey
import com.example.blank.ui.barcoderecognition.BarcodeRecognitionViewModel
import com.example.blank.ui.blank.BlankViewModel
import com.example.blank.ui.foodrecognition.FoodRecognitionFragment
import com.exam... | 1 | Kotlin | 0 | 0 | cd6f5f95f8aa10a7b38acddc8ad47f381e94fb3e | 2,389 | SmartScaleRainbowCakeKotlin | Apache License 2.0 |
src/main/kotlin/org/valkyrienskies/physics_api/constraints/RotDampingConstraintData.kt | ValkyrienSkies | 377,763,637 | false | null | package org.valkyrienskies.physics_api.constraints
import org.joml.Quaterniondc
import org.valkyrienskies.physics_api.PhysicsBodyId
/**
* Dampens the relative angular velocity between two bodies.
*/
data class RotDampingConstraintData(
override val physicsBodyId0: PhysicsBodyId,
override val physicsBodyId1:... | 0 | Kotlin | 0 | 0 | ce7fb72a5751e69c2d517f8b385c9a98da3080c6 | 1,136 | Valkyrien-Skies-Physics-API | Apache License 2.0 |
app/src/main/java/com/boolder/boolder/domain/model/AreaBikeRoute.kt | boolder-org | 566,723,758 | false | {"Kotlin": 532905} | package com.boolder.boolder.domain.model
data class AreaBikeRoute(
val areaId: Int,
val areaName: String,
val bikingTime: Int
)
| 11 | Kotlin | 12 | 26 | dd93a7b9c29ee0eec80b63a62de4b5eea7203f6e | 141 | boolder-android | MIT License |
core/src/main/kotlin/org/eduardoleolim/organizadorpec660/core/agency/domain/Agency.kt | eduardoleolim | 673,214,659 | false | {"Kotlin": 832185, "Shell": 2116} | package org.eduardoleolim.organizadorpec660.core.agency.domain
import org.eduardoleolim.organizadorpec660.core.municipality.domain.MunicipalityId
import org.eduardoleolim.organizadorpec660.core.statisticType.domain.StatisticTypeId
import java.util.*
/**
* The agencies provide monthly summary reports of statistics fo... | 0 | Kotlin | 0 | 0 | 53b907727b83302043a89693c0c825edc91262b3 | 7,138 | organizador-pec-6-60 | Creative Commons Attribution 4.0 International |
src/main/kotlin/io/emeraldpay/dshackle/upstream/starknet/StarknetLowerBoundStateDetector.kt | drpcorg | 509,408,072 | false | {"Kotlin": 1458037, "Groovy": 586862, "Java": 148989, "JavaScript": 5522, "Shell": 646, "Makefile": 497, "Dockerfile": 103} | package io.emeraldpay.dshackle.upstream.starknet
import io.emeraldpay.dshackle.Chain
import io.emeraldpay.dshackle.upstream.lowerbound.LowerBoundData
import io.emeraldpay.dshackle.upstream.lowerbound.LowerBoundDetector
import io.emeraldpay.dshackle.upstream.lowerbound.LowerBoundType
import reactor.core.publisher.Flux
... | 1 | Kotlin | 13 | 38 | cc5531bab99d5022c50213c5a0169289e6782361 | 711 | dshackle | Apache License 2.0 |
goblin-core/src/main/java/org/goblinframework/core/config/ConfigManagerMXBean.kt | xiaohaiz | 206,246,434 | false | {"Java": 807217, "Kotlin": 650572, "FreeMarker": 27779, "JavaScript": 968} | package org.goblinframework.core.config
import org.goblinframework.core.system.RuntimeMode
import java.lang.management.PlatformManagedObject
interface ConfigManagerMXBean : PlatformManagedObject {
fun getConfigLocationScanner(): ConfigLocationScannerMXBean
fun getMappingLocationScanner(): MappingLocationScanner... | 0 | Java | 6 | 9 | b1db234912ceb23bdd81ac66a3bf61933b717d0b | 402 | goblinframework | Apache License 2.0 |
sisterhood-core/src/commonMain/kotlin/sisterhood/domain/hentaiinfo/entities/HentaiMetadata.kt | trinity-library | 821,523,435 | false | {"Kotlin": 49468, "JavaScript": 21486} | package sisterhood.domain.hentai.entities
import sisterhood.domain.Entity
import sisterhood.domain.Name
import sisterhood.domain.valueobjects.HentaiLanguage
sealed class HentaiMetadata : Entity() {
abstract val language: HentaiLanguage
abstract val title: Name
}
| 0 | Kotlin | 0 | 0 | f268a68a3c7196f3c8781c11d5128304e3159aed | 273 | sisterhood | MIT License |
src/main/kotlin/no/nav/sosialhjelp/innsyn/digisossak/oppgaver/DokumentasjonkravResponse.kt | navikt | 184,267,271 | false | {"Kotlin": 753473, "Dockerfile": 427} | package no.nav.sosialhjelp.innsyn.digisossak.oppgaver
import com.fasterxml.jackson.annotation.JsonFormat
import no.nav.sbl.soknadsosialhjelp.vedlegg.JsonVedlegg
import no.nav.sosialhjelp.innsyn.domain.Oppgavestatus
import java.time.LocalDate
data class DokumentasjonkravResponse(
val dokumentasjonkravElementer: Li... | 3 | Kotlin | 0 | 0 | 51d207f1001690bc288cb3c9c31fb4cf5641e537 | 823 | sosialhjelp-innsyn-api | MIT License |
app/src/main/java/com/example/gastoviagem/MainActivity.kt | whoisnicolasadm | 565,595,040 | false | null | package com.example.gastoviagem
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.Toast
import com.example.gastoviagem.databinding.ActivityMainBinding
class MainActivity : AppCompatActivity(), View.OnClickListener {
private lateinit var binding... | 0 | Kotlin | 0 | 0 | fd0b843b0d27785ce69aadafc5c7ca111e2e2c4f | 1,713 | Gasto-Viagem | MIT License |
definitions/src/commonMain/kotlin/com/divpundir/mavlink/definitions/ualberta/UalbertaDialect.kt | divyanshupundir | 484,943,163 | false | null | package com.divpundir.mavlink.definitions.ualberta
import com.divpundir.mavlink.api.AbstractMavDialect
import com.divpundir.mavlink.api.GeneratedMavDialect
import com.divpundir.mavlink.definitions.common.CommonDialect
@GeneratedMavDialect
public data object UalbertaDialect : AbstractMavDialect(
setOf(
CommonDia... | 1 | null | 7 | 48 | 647efb2f1a1d00ae410a0a5ad08e2111fe17214e | 478 | mavlink-kotlin | Apache License 2.0 |
guides/micronaut-oracle-cloud-streaming/chess-listener/kotlin/src/main/kotlin/example/micronaut/chess/repository/H2GameRepository.kt | micronaut-projects | 326,986,278 | false | null | package example.micronaut.chess.repository
import io.micronaut.context.annotation.Primary
import io.micronaut.context.annotation.Requires
import io.micronaut.context.env.Environment.DEVELOPMENT
import io.micronaut.data.jdbc.annotation.JdbcRepository
import io.micronaut.data.model.query.builder.sql.Dialect.H2
@Primary... | 89 | null | 7 | 6 | e508781eed11b12cb630705365dc63ed3860f441 | 440 | micronaut-guides | Matrix Template Library License |
basics/recyclerview-selection/app/src/main/java/org/sinou/android/sandbox/templates/basic/recyclerview/selection/ui/main/MainViewModel.kt | bsinou | 431,630,358 | false | {"Kotlin": 337512, "Java": 58840} | package org.sinou.android.sandbox.templates.basic.recyclerview.selection.ui.main
import androidx.lifecycle.ViewModel
class MainViewModel : ViewModel() {
// TODO: Implement the ViewModel
}
| 0 | Kotlin | 0 | 0 | 4c6bb276995d63abb7e2f3f74d770ef247f2da54 | 194 | android-sandbox | Apache License 2.0 |
build-logic/src/main/kotlin/common.kt | vitalir2 | 603,790,041 | false | null | import com.android.build.api.dsl.CommonExtension
internal object AndroidConstants {
const val COMPILE_SDK = 33
const val TARGET_SDK = 33
const val MIN_SDK = 23
}
internal fun CommonExtension<*, *, *, *>.setupVersions() {
compileSdk = AndroidConstants.COMPILE_SDK
defaultConfig {
minSdk = An... | 1 | Kotlin | 0 | 0 | 1428a1c08fb8388d48a29a53a1e71f6382199f41 | 351 | renting-mobile | Apache License 2.0 |
stonadsstatistikk/src/main/kotlin/no/nav/helse/spre/stonadsstatistikk/UtbetaltRiver.kt | navikt | 462,807,350 | false | null | package no.nav.helse.stonadsstatistikk
import com.fasterxml.jackson.databind.JsonNode
import no.nav.helse.rapids_rivers.*
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import java.time.LocalDate
import java.time.LocalDateTime
import java.util.*
private val log: Logger = LoggerFactory.getLogger("stonadsstatis... | 0 | Kotlin | 0 | 0 | f4675644aeb6a2a6b826d49c57a1d70f7dd415e0 | 3,812 | helse-spre-stonadsstatistikk | MIT License |
src/main/kotlin/com/amulet/cavinist/web/query/WineryQuery.kt | antoine-mulet | 254,576,347 | false | null | package com.amulet.cavinist.web.query
import com.amulet.cavinist.service.wine.WineryService
import com.amulet.cavinist.web.data.output.wine.WineryOutput
import com.amulet.cavinist.web.graphql.RequestContext
import com.expediagroup.graphql.spring.operations.Query
import org.springframework.stereotype.Component
import j... | 0 | Kotlin | 0 | 1 | 7a12a3b7d8463b87b5a3d661802ba62429c53746 | 746 | cavinist | Apache License 2.0 |
lib/src/main/kotlin/net/crimsonwoods/easydatabinding/models/Theme.kt | crimsonwoods | 340,419,022 | false | null | package net.crimsonwoods.easydatabinding.models
import androidx.annotation.StyleRes
data class Theme(
@StyleRes val resId: Int
) {
companion object {
@JvmStatic
fun of(@StyleRes resId: Int): Theme = Theme(resId)
}
}
| 6 | Kotlin | 0 | 8 | 99e2fe32393403f3b461d419d491934ab1bf667f | 246 | EasyDataBinding | MIT License |
core/ui/src/main/kotlin/com/seosh817/ui/ContentsLoading.kt | seosh817 | 722,390,551 | false | {"Kotlin": 353175} | package com.seosh817.ui
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.... | 12 | Kotlin | 0 | 3 | 774dd544024d1605ec5ac5b99c50fb686f6d7027 | 1,882 | MovieHub | Apache License 2.0 |
app/src/main/java/com/fmt/github/data/db/Room.kt | fmtjava | 198,789,136 | false | {"Roff": 296363, "Kotlin": 135173, "Dart": 33487, "Java": 32440, "Groovy": 7571, "HTML": 955, "Shell": 789} | package com.fmt.github.data.db
import androidx.room.Room
import com.fmt.github.AppContext
private const val DB_NAME = "open_github_db"
val room = Room.databaseBuilder(AppContext, AppDataBase::class.java, DB_NAME).build()
val userDao = room.getUserDao() | 0 | Roff | 65 | 372 | 8e92f839146f23bfeaa0d7ab2e93924d8815a0b3 | 256 | Jetpack_GitHub | MIT License |
shared/src/commonMain/kotlin/domain/usecases/GenerateImageUseCase.kt | erenalpaslan | 697,706,268 | false | {"Kotlin": 144492, "Swift": 1139, "Shell": 228} | package domain.usecases
import common.BaseUseCase
import domain.repository.OpenAIRepository
import entity.image.ImageGenerationResponse
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.IO
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.flowOn
import... | 0 | Kotlin | 0 | 1 | 7d5a345396901361ca2c24bbe7901fae1459a7a1 | 1,109 | Fusion | Apache License 2.0 |
src/main/java/InlineAnalyzer.kt | yole | 62,942,823 | false | null | package ru.yole.jitwatch
import org.adoptopenjdk.jitwatch.core.JITWatchConstants.*
import org.adoptopenjdk.jitwatch.journal.AbstractJournalVisitable
import org.adoptopenjdk.jitwatch.journal.JournalUtil
import org.adoptopenjdk.jitwatch.model.IMetaMember
import org.adoptopenjdk.jitwatch.model.IParseDictionary
import org... | 7 | Kotlin | 17 | 168 | 7f122a223d98b2debc6f48be9cf6a3c2fea72c1a | 4,732 | jitwatch-intellij | Apache License 2.0 |
src/main/kotlin/dev/slint/ideaplugin/lang/psi/SlintNamedElement.kt | kizeevov | 700,879,080 | false | {"Kotlin": 39285, "Lex": 4139, "HTML": 63} | package dev.slint.ideaplugin.lang.psi
import com.intellij.psi.NavigatablePsiElement
import com.intellij.psi.PsiNamedElement
interface SlintNamedElement : SlintElement, PsiNamedElement, NavigatablePsiElement | 1 | Kotlin | 0 | 9 | efd8d05d1e6ca4369e86476c3b647ec0759d7103 | 208 | slint-idea-plugin | MIT License |
src/main/kotlin/dev/slint/ideaplugin/lang/psi/SlintNamedElement.kt | kizeevov | 700,879,080 | false | {"Kotlin": 39285, "Lex": 4139, "HTML": 63} | package dev.slint.ideaplugin.lang.psi
import com.intellij.psi.NavigatablePsiElement
import com.intellij.psi.PsiNamedElement
interface SlintNamedElement : SlintElement, PsiNamedElement, NavigatablePsiElement | 1 | Kotlin | 0 | 9 | efd8d05d1e6ca4369e86476c3b647ec0759d7103 | 208 | slint-idea-plugin | MIT License |
customview/src/main/java/com/iamkamrul/input/TextInputUtils.kt | kamrul3288 | 592,197,452 | false | {"Kotlin": 107928} | package com.iamkamrul.input
import android.util.Patterns
internal enum class CountryCode{BD}
internal enum class InputValidationType{
Phone, Email, Password, EmptyCheck
}
internal enum class PasswordMinLength{
Five, Six, Eight
}
internal fun String.isValidEmail():Boolean{
return !(this.isNotEmpty() &... | 0 | Kotlin | 0 | 1 | 4a3ea08893e298f68ac0e2a611e5f0b0a0e2d301 | 372 | customview-android | Apache License 2.0 |
plugins/jvm-core/src/testFixtures/kotlin/foo/bar/impl/FooBarImpl.kt | gmazzo | 575,122,672 | false | {"Kotlin": 104744, "Java": 3485} | package foo.bar.impl
import foo.bar.FooBar
object FooBarImpl : FooBar
| 0 | Kotlin | 0 | 4 | 4db83fba672cbc76bae086523794ebc0ec2d1ba7 | 72 | gradle-codeowners-plugin | MIT License |
wgpu4k/src/jvmTest/kotlin/io.ygdrasil.wgpu/mapper/ImageCopyTextureTaggedMapperTest.kt | wgpu4k | 773,068,055 | false | {"Kotlin": 1190676, "HTML": 1638, "Dockerfile": 1039, "Shell": 308} | package io.ygdrasil.wgpu.mapper
import io.kotest.core.spec.style.FreeSpec
import io.kotest.matchers.shouldBe
import io.kotest.matchers.shouldNotBe
import io.ygdrasil.wgpu.ImageCopyTextureTagged
import io.ygdrasil.wgpu.Origin3D
import io.ygdrasil.wgpu.Texture
import io.ygdrasil.wgpu.internal.jvm.confined
import io.ygdr... | 7 | Kotlin | 6 | 41 | 822c304afaa72411ae42e86f20c7b5c62b5f9815 | 1,330 | wgpu4k | MIT License |
packages/graalvm/src/main/kotlin/elide/runtime/intrinsics/js/node/path/Path.kt | elide-dev | 506,113,888 | false | {"Kotlin": 4156801, "Rust": 130170, "Java": 51233, "Python": 7851, "JavaScript": 6037, "Ruby": 2474, "C": 1926, "RenderScript": 578, "Shell": 160, "Pkl": 102, "TypeScript": 78, "Swift": 23} | /*
* Copyright (c) 2024 Elide Technologies, Inc.
*
* Licensed under the MIT license (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* https://opensource.org/license/mit/
*
* Unless required by applicable law or agreed to in writing,... | 39 | Kotlin | 16 | 97 | 652036fb4e8394e8ad1aced2f4bbfaa9e00a5181 | 4,768 | elide | MIT License |
shared/src/commonMain/kotlin/com/seiko/greenqrscanner/ui/scene/settings/SettingsScene.kt | qdsfdhvh | 650,389,325 | false | {"Kotlin": 266749, "Ruby": 1100, "Swift": 628, "Shell": 228} | package com.seiko.greenqrscanner.ui.scene.settings
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
imp... | 12 | Kotlin | 0 | 3 | 65be33474fa91c635bd7236144b00231a404b0e2 | 3,907 | green-qrscanner | Apache License 2.0 |
compiler-plugin/src/main/kotlin/me/him188/kotlin/jvm/blocking/bridge/compiler/BridgeCompilerConfigurationKeys.kt | Him188 | 275,324,436 | false | null | package me.him188.kotlin.jvm.blocking.bridge.compiler
import org.jetbrains.kotlin.config.CompilerConfigurationKey
object JvmBlockingBridgeCompilerConfigurationKeys {
@JvmStatic
val ENABLE_FOR_MODULE =
CompilerConfigurationKeyWithName<String>("enableForModule")
}
// don't data
class CompilerConfigurat... | 0 | Kotlin | 6 | 70 | c9c679a000756464c8508f575b023e8d174d263c | 391 | kotlin-jvm-blocking-bridge | Apache License 2.0 |
composeApp/src/commonMain/kotlin/com/malliaridis/tui/domain/stratagems/store/StratagemListStore.kt | malliaridis | 781,833,057 | false | {"Kotlin": 218283, "Swift": 1167} | package com.chipmunksmedia.helldivers.remote.domain.stratagems.store
import com.chipmunksmedia.helldivers.remote.model.Direction
import com.chipmunksmedia.helldivers.remote.model.Stratagem
interface StratagemListStore {
sealed interface Intent {
/**
* Intent that updates the [State.filter] when... | 1 | Kotlin | 0 | 3 | 740442033e99b21bb7ed2dd8796cc6460a49ea2d | 848 | tactical-user-interface | MIT License |
app/src/main/java/eu/kanade/tachiyomi/data/track/kitsu/dto/KitsuListSearch.kt | mihonapp | 743,704,912 | false | {"Kotlin": 2928512} | package eu.kanade.tachiyomi.data.track.kitsu.dto
import eu.kanade.tachiyomi.data.track.TrackerManager
import eu.kanade.tachiyomi.data.track.kitsu.Kitsu
import eu.kanade.tachiyomi.data.track.kitsu.KitsuApi
import eu.kanade.tachiyomi.data.track.kitsu.KitsuDateHelper
import eu.kanade.tachiyomi.data.track.model.TrackSearc... | 262 | Kotlin | 406 | 9,222 | 339dc33f5833b224c01577da3da081deecdbbca2 | 2,735 | mihon | Apache License 2.0 |
app/src/main/java/com/myth/ticketmasterapp/presentation/adapter/HomeFragmentAdapter.kt | MichaelGift | 634,539,469 | false | {"Kotlin": 93804} | package com.myth.ticketmasterapp.presentation.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.lifecycle.Observer
import androidx.navigation.findNavController
import androidx.recyclerview.widget.AsyncListDiffer
import androidx... | 0 | Kotlin | 1 | 0 | 398821b347414a3f5ea711143b5fcc6f266738a7 | 5,530 | Event-Finder-App | MIT License |
app/src/main/java/com/ead/project/dreamer/data/models/ChapterNotify.kt | darkryh | 490,353,600 | false | {"Kotlin": 766116, "Java": 2316} | package com.ead.project.dreamer.data.models
data class ChapterNotify(
val title : String,
val number : Int
)
| 0 | Kotlin | 1 | 2 | 34fe195fe9fec58c7a2b71b8646c1e8c5988a281 | 118 | Dreamer | MIT License |
sample/src/androidTest/java/com/airbnb/android/showkasetest/MyTestRootModule.kt | airbnb | 257,758,318 | false | {"Kotlin": 715619} | package com.airbnb.android.showkasetest
import com.airbnb.android.showkase.annotation.ShowkaseRoot
import com.airbnb.android.showkase.annotation.ShowkaseRootModule
@ShowkaseRoot
class MyTestRootModule: ShowkaseRootModule
| 50 | Kotlin | 106 | 2,073 | 9c3d6fc313d63b8f555fc65232ac15f798aede9a | 223 | Showkase | Apache License 2.0 |
composeApp/src/commonMain/kotlin/ch/healthssi/pharmacy/data/MedData.kt | deak-ai | 813,263,417 | false | {"Kotlin": 18781, "Dockerfile": 578, "HTML": 344, "CSS": 102} | package ch.healthssi.pharmacy.data
import kotlinx.serialization.Serializable
@Serializable
data class MedicamentRefDataDTO(
val atype: String,
val gtin: String,
val swmcAuthnr: String,
val nameDe: String,
val nameFr: String,
val atc: String? = null,
val authHolderName: String,
val aut... | 0 | Kotlin | 0 | 1 | ee9fc128edfe443a7513e756d4b917a805b54225 | 852 | healthssi-pharmacy | MIT License |
android/src/main/kotlin/com/sample/edgedetection/scan/ScanActivity.kt | grabss | 373,114,764 | true | {"Kotlin": 115213, "Swift": 4452, "Dart": 2307, "Ruby": 2262, "Objective-C": 727} | package com.sample.edgedetection.scan
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Handler
import android.os.Looper
import android.provider.BaseColumns
... | 0 | Kotlin | 0 | 0 | 71fb44a7b007d8a9cbc0e5df3a92fe7ddba84327 | 11,068 | edge_detection | Apache License 2.0 |
kontainers-common/src/main/kotlin/io/microkt/kontainers/domain/readiness/FixedDelayReadinessProbe.kt | microkt | 464,678,346 | false | {"Kotlin": 153658} | package io.microkt.kontainers.domain.readiness
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.delay
import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.withContext
class FixedDelayReadinessProbe(
private val time: Long
) : ReadinessProbe {
override fun waitUntilReady(timeout: Long... | 3 | Kotlin | 0 | 2 | 1bac86c920f233bd92f26a0cff62222f4e146e5b | 448 | kontainers | Apache License 2.0 |
src/main/kotlin/com/hupubao/dockit/parser/MethodCommentParser.kt | ysdxz207 | 160,659,252 | false | null | package com.hupubao.dockit.parser
import com.github.javaparser.ast.Node
import com.github.javaparser.ast.body.MethodDeclaration
import com.github.javaparser.javadoc.JavadocBlockTag
import com.github.javaparser.javadoc.description.JavadocInlineTag
import com.hupubao.dockit.constants.TemplatePlaceholder
import com.hupub... | 0 | Kotlin | 14 | 9 | 2563d98fcde9cd61e30385d35c224a4e3508fa08 | 6,338 | dockit | Apache License 2.0 |
compiler/fir/analysis-tests/testData/resolve/localObject.kt | JetBrains | 3,432,266 | false | null | fun <T> run(block: () -> T): T = block()
interface Foo {
fun foo(): Int
}
fun tesLambda(x: Int) = run {
val obj = object : Foo {
override fun foo(): Int {
return x + 1
}
}
2
}
class TestProperty {
val intConst: Int = 1
var x = 1
set(value) {
va... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 868 | kotlin | Apache License 2.0 |
dao/src/main/kotlin/tables/runs/analyzer/ProcessedDeclaredLicensesMappedDeclaredLicensesTable.kt | eclipse-apoapsis | 760,319,414 | false | {"Kotlin": 2994047, "Dockerfile": 24090, "Shell": 6277} | /*
* Copyright (C) 2023 The ORT Server Authors (See <https://github.com/eclipse-apoapsis/ort-server/blob/main/NOTICE>)
*
* 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://w... | 18 | Kotlin | 2 | 9 | 0af70d6382a86f0ebc35d9b377f4229c6a71637a | 1,471 | ort-server | Apache License 2.0 |
shared/src/main/kotlin/com/lightningkite/lightningdb/ModificationSerialization.kt | lightningkite | 512,032,499 | false | {"Kotlin": 1793008, "HTML": 1026357, "Swift": 236803, "TypeScript": 196880, "JavaScript": 9072, "CSS": 5394, "Ruby": 1489, "Shell": 635} | @file:OptIn(ExperimentalSerializationApi::class, InternalSerializationApi::class)
package com.lightningkite.lightningdb
import com.lightningkite.khrysalis.IsEquatable
import com.lightningkite.khrysalis.fatalError
import kotlinx.serialization.*
import kotlin.reflect.KClass
import kotlinx.serialization.builtins.ListSer... | 1 | Kotlin | 1 | 3 | a42210560ff0d0148cb91b3fdf3b37f460b01ff3 | 15,419 | lightning-server | MIT License |
src/main/kotlin/dev/sasikanth/android/resource/poet/ResourceDsl.kt | msasikanth | 590,505,826 | false | {"Kotlin": 24322} | package dev.sasikanth.android.resource.poet
import dev.sasikanth.android.resource.poet.boolean.BooleanItem
import dev.sasikanth.android.resource.poet.color.ColorItem
import dev.sasikanth.android.resource.poet.common.TAG_RESOURCES
import dev.sasikanth.android.resource.poet.dimen.DimenItem
import dev.sasikanth.android.r... | 9 | Kotlin | 0 | 40 | 45ccb40dd569c7a3b2c11ae809847c98b8fa1300 | 3,900 | android-resource-poet | Apache License 2.0 |
components/keyscreen/shared/src/main/java/com/flipperdevices/keyscreen/shared/content/ComposableIButtonContent.kt | flipperdevices | 288,258,832 | false | null | package com.flipperdevices.keyscreen.shared.content
import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.runtime.Composable
import androidx.compose.ui.res.stringResource
import com.flipperdevices.bridge.dao.api.model.parsed.FlipperKeyParsed
import com.flipperdevices.keyscreen.shared.R
import k... | 15 | Kotlin | 109 | 740 | a2a4433d225401eea6e67820f16e51fcede22d1f | 700 | Flipper-Android-App | MIT License |
src/commonMain/kotlin/io/github/mrasterisco/sortedlist/SortedMutableList.kt | MrAsterisco | 263,331,636 | false | null | @file:Suppress("RedundantVisibilityModifier")
package io.github.mrasterisco.sortedlist
public interface SortedMutableList<T> : MutableList<T>, RandomAccess | 0 | Kotlin | 0 | 3 | 1cccb54aa08e88b79d06e596bfbad514e677eff4 | 157 | SortedList | MIT License |
app/src/main/java/com/zjh/ktwanandroid/domain/model/Integral.kt | aii1991 | 521,137,839 | false | {"Kotlin": 508643, "Java": 46216} | package com.zjh.ktwanandroid.domain.model
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
/**
* @author zjh
* 2022/6/17
*/
@Parcelize
data class Integral(var coinCount: Int,//当前积分
var rank: Int,
var userId: Int,
var username: String) : Parcelable | 0 | Kotlin | 0 | 0 | 49d8c85b5ed3fb4fe067c2cce589242324bd15d0 | 267 | kt-wanandroid | MIT License |
realm/realm-library/src/androidTestObjectServer/kotlin/io/realm/mongodb/sync/FlexibleSyncConfigurationTests.kt | realm | 4,084,908 | false | {"Gradle": 38, "Git Config": 1, "Markdown": 11, "Dockerfile": 2, "INI": 18, "Shell": 22, "Text": 5, "Ignore List": 4, "Batchfile": 8, "Groovy": 2, "Java Properties": 5, "XML": 146, "Proguard": 8, "HTML": 1, "Java": 676, "Kotlin": 212, "C++": 88, "CMake": 1, "YAML": 13, "JSON": 60, "Python": 1, "JavaScript": 14, "SVG": ... | /*
* Copyright 2022 Realm Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 400 | Java | 1747 | 11,450 | e564a45fbeabb4710ac5fcd231c107642dd4aa83 | 9,756 | realm-java | Apache License 2.0 |
mvvm/src/main/java/ro/dobrescuandrei/mvvm/details/BaseDetailsViewModel.kt | fossabot | 221,451,047 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 10, "Proguard": 2, "XML": 30, "Kotlin": 66, "Java": 3} | package ro.dobrescuandrei.mvvm.details
import io.reactivex.Single
import ro.dobrescuandrei.mvvm.list.BaseListViewModel
import ro.dobrescuandrei.mvvm.utils.DummyFilter
abstract class BaseDetailsViewModel<MODEL : Any> : BaseListViewModel<Any, DummyFilter>(DummyFilter())
{
lateinit var model : MODEL
abstract fu... | 1 | null | 1 | 1 | 9252b410fad8a87e1c786cea808e251317cff234 | 433 | DobDroidMVVM | Apache License 2.0 |
app/src/main/java/me/ibrahimsn/wallet/ui/send/SendActivity.kt | ibrahimsn98 | 188,556,561 | false | null | package me.ibrahimsn.wallet.ui.send
import android.os.Bundle
import androidx.navigation.NavController
import androidx.navigation.Navigation
import kotlinx.android.synthetic.main.activity_home.tvTitle
import kotlinx.android.synthetic.main.activity_send.*
import me.ibrahimsn.wallet.R
import me.ibrahimsn.wallet.base.Base... | 0 | Kotlin | 11 | 37 | e8ee5997813979fade2cf8496b0ec1bc3fbec7fa | 825 | android-eth-wallet | MIT License |
app/src/main/java/br/com/lambdateam/mycar/model/utils/Extensions.kt | kbmbarreto | 655,773,950 | false | null | package br.com.lambdateam.mycar.model.utils
import android.content.Context
import android.os.CountDownTimer
import android.view.View
import android.view.inputmethod.InputMethodManager
import android.widget.EditText
import androidx.core.widget.doAfterTextChanged
import java.text.NumberFormat
import java.text.SimpleDate... | 0 | Kotlin | 0 | 0 | 313a9961b8602990333c3ff40533b42ca9a3433b | 1,738 | mycar_app | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.