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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
composeApp/src/commonMain/kotlin/io/shortway/kobankat/sample/SimpleLogHandler.kt | JayShortway | 758,647,648 | false | {"Kotlin": 225838, "Ruby": 2360, "Swift": 594} | package io.shortway.kobankat.sample
import io.shortway.kobankat.LogHandler
class SimpleLogHandler(
private val log: (message: String) -> Unit
) : LogHandler {
override fun v(tag: String, msg: String) = log(tag, msg)
override fun d(tag: String, msg: String) = log(tag, msg)
override fun i(tag: String... | 8 | Kotlin | 3 | 9 | f374c234be5b1fc5da36dbf0ddcfe0398d871cf5 | 576 | kobankat | MIT License |
imitate/src/main/java/com/engineer/imitate/KotlinRootActivity.kt | REBOOTERS | 65,188,539 | false | null | package com.engineer.imitate
import android.animation.Animator
import android.animation.AnimatorListenerAdapter
import android.annotation.SuppressLint
import android.content.Intent
import android.content.res.Configuration
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.os.Environ... | 4 | null | 352 | 1,880 | 278998c8da1da2b47778dba3dbd3f2de1e12f2ed | 17,644 | AndroidAnimationExercise | Apache License 2.0 |
libraries/tools/kotlin-gradle-compiler-types/src/generated/kotlin/org/jetbrains/kotlin/gradle/dsl/JsDiagnosticMode.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | // DO NOT EDIT MANUALLY!
// Generated by org/jetbrains/kotlin/generators/arguments/GenerateGradleOptions.kt
// To regenerate run 'generateGradleOptions' task
@file:Suppress("RemoveRedundantQualifierName", "Deprecation", "DuplicatedCode")
package org.jetbrains.kotlin.gradle.dsl
enum class JsDiagnosticMode(val mode: St... | 181 | Kotlin | 5771 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 679 | kotlin | Apache License 2.0 |
QuickRecyclerView/src/main/java/com/wpf/app/quickrecyclerview/data/QuickClickData.kt | walgr | 487,438,913 | false | null | package com.wpf.app.quickrecyclerview.data
import android.view.View
import android.view.ViewGroup
import com.wpf.app.quick.annotations.bind.BindData2View
import com.wpf.app.quickbind.helper.binddatahelper.ItemClick
import com.wpf.app.quickutil.run.RunOnContextWithSelf
import com.wpf.app.quickutil.run.itemClick
import ... | 0 | null | 3 | 29 | 6b4da7f07e347ca6d4fbaa7a555ebcedde1494d6 | 914 | Quick | MIT License |
mobile/src/main/java/be/mygod/vpnhotspot/room/Converters.kt | zacharee | 424,610,602 | false | null | package hanson.xyz.vpnhotspotmod.room
import android.net.MacAddress
import android.text.TextUtils
import androidx.room.TypeConverter
import be.mygod.librootkotlinx.useParcel
import hanson.xyz.vpnhotspotmod.net.MacAddressCompat
import hanson.xyz.vpnhotspotmod.net.MacAddressCompat.Companion.toLong
import timber.log.Timb... | 13 | null | 368 | 9 | 09ae37f5bc5eecab978d4fffab1a1886b00a23d5 | 1,348 | VPNHotspot | Apache License 2.0 |
app/src/main/java/com/therouter/app/serviceprovider/IKotlinServiceProvider.kt | HuolalaTech | 530,172,359 | false | {"Kotlin": 212660, "Java": 110402, "Groovy": 75228, "QMake": 68} | package com.therouter.app.serviceprovider
import android.content.Context
import android.widget.Toast
import com.therouter.inject.ServiceProvider
@ServiceProvider(returnType = IKotlinSerivce::class, params = [Context::class, String::class])
fun create(context: Context, str: String): IKotlinSerivce = object : IKotlinSe... | 6 | Kotlin | 122 | 994 | 74c000d6b582fee4eb78b8987e488a2315693aeb | 426 | hll-wp-therouter-android | Apache License 2.0 |
app/src/main/java/com/simbiri/equityjamii/ui/main_activity/news_page/official_coms/OfficialFragment.kt | SimbaSimbiri | 706,250,529 | false | {"Kotlin": 145092} | package com.simbiri.equityjamii.ui.main_activity.news_page.official_coms
import androidx.lifecycle.ViewModelProvider
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.LinearLayoutM... | 0 | Kotlin | 0 | 0 | e98c23ed36802f4dd997581e824d39d8f53b3b83 | 1,823 | EquiJamii | Apache License 2.0 |
domain/src/main/java/com/mreigar/domain/model/EmailEmoji.kt | mreigosa | 256,570,565 | false | null | package com.mreigar.domain.model
data class EmailEmoji(
val email: EmailPattern,
val emojis: String
) | 1 | Kotlin | 0 | 1 | d9b9433d084d791bc8bfe2bee91704d60b0c626e | 110 | post-app-kotlin | MIT License |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/CloudDown.kt | walter-juan | 868,046,028 | false | null | package com.woowla.compose.icon.collections.tabler.tabler.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
im... | 0 | null | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 2,807 | compose-icon-collections | MIT License |
format-core/src/main/kotlin/org/d7z/objects/format/rules/StringDataFormat.kt | d7z-team | 458,429,900 | false | {"Kotlin": 38063, "Java": 1682} | package org.d7z.objects.format.rules
import org.d7z.objects.format.CovertException
import org.d7z.objects.format.api.IFormat
import org.d7z.objects.format.api.IFormatContext
import kotlin.reflect.KClass
class StringDataFormat : IFormat {
override val types = setOf(String::class, StringBuilder::class, StringBuffer... | 0 | Kotlin | 0 | 0 | 5306ca92310d43be7b9d6e4cbc0ab79d3488e6e1 | 1,000 | object-format | MIT License |
2018/src/GridList/GridListMatrixExtensions.kt | Mattias1 | 116,139,424 | false | null | package gridList
operator fun GridList<Int>.plus(other: GridList<Int>): GridList<Int> {
if (width != other.width || height != other.height) {
throw IllegalArgumentException("GridList sizes are not equal")
}
return GridList(width, height) { x, y -> this[x, y] + other[x, y] }
}
operator fun GridList... | 0 | Kotlin | 0 | 0 | 6bcd889c6652681e243d493363eef1c2e57d35ef | 1,000 | advent-of-code | MIT License |
app/spotifyapi/src/main/java/com/kpstv/spotifyapi/data/models/Search.kt | KaustubhPatange | 269,351,196 | false | null | package com.kpstv.spotifyapi.data.models
import com.google.gson.annotations.SerializedName
data class Search(
val albums: Albums?,
val artists: Artists?,
val episodes: Episodes?,
val playlists: Playlists?,
val shows: Shows?,
val tracks: Tracks?
) {
data class Albums(
val href: Str... | 0 | Kotlin | 0 | 9 | 51410cfa2a8008da06689bd8c82928e4123efd13 | 8,505 | Unofficial-Spotify-SDK | Apache License 2.0 |
src/main/kotlin/org/jetbrains/intellij/model/XmlExtractor.kt | JetBrains | 33,932,778 | false | null | package org.jetbrains.intellij.model
import com.jetbrains.plugin.structure.intellij.utils.JDOMUtil
import org.jetbrains.intellij.transformXml
import org.jetbrains.intellij.warn
import java.io.File
import java.io.InputStream
import javax.xml.bind.JAXBContext
import javax.xml.bind.JAXBException
class XmlExtractor<T>(pr... | 67 | null | 260 | 1,188 | b5c204b012b9484753677ce84a35c70594dd57dc | 1,179 | gradle-intellij-plugin | Apache License 2.0 |
template/shared/data/src/commonMain/kotlin/shared/data/source/encryption/korlibs/KorlibsEncryptionSource.kt | kotlitecture | 790,159,970 | false | {"Kotlin": 545071, "Swift": 543, "JavaScript": 313, "HTML": 234} | package shared.data.source.encryption.korlibs
import shared.data.source.encryption.BasicEncryptionSource
import shared.data.source.encryption.EncryptionMethod
import shared.data.source.encryption.EncryptionSource
/**
* An implementation of the [EncryptionSource] interface using the Korlibs encryption library.
*
* ... | 2 | Kotlin | 3 | 55 | 0ea8aa724e156259d5d5c9c8a423513c61b5156b | 852 | template-multiplatform-compose | MIT License |
lib/src/main/java/com/kirkbushman/araw/models/enums/SubmissionsSorting.kt | KirkBushman | 182,531,355 | false | null | package com.kirkbushman.araw.models.enums
import com.kirkbushman.araw.models.base.Sorting
enum class SubmissionsSorting(
override val requiresTimePeriod: Boolean = false,
override val sortingStr: String
) : Sorting {
HOT(sortingStr = "hot"),
BEST(sortingStr = "best"),
NEW(sortingStr = "new"),
... | 9 | Kotlin | 9 | 84 | aeae071fa8d2a4e378de4a71420dc2a9792591f3 | 419 | ARAW | MIT License |
src/main/kotlin/day1/Day1.kt | Wicked7000 | 573,552,409 | false | {"Kotlin": 106288} | package day1
import Day
import checkWithMessage
import parserCombinators.*
import parserCombinators.newLine
import readInput
import readInputString
import runTimedPart
@Suppress("unused")
class Day1(): Day() {
private fun parseInput(input: String): List<List<Int>> {
val parseTree = parseTillEnd(sequenceOf... | 0 | Kotlin | 0 | 0 | 7919a8ad105f3b9b3a9fed048915b662d3cf482d | 2,218 | aoc-2022 | Apache License 2.0 |
app/src/main/java/com/example/notes/notes/NewNoteFragment.kt | abdo-essam | 692,581,410 | false | {"Kotlin": 23278} | package com.example.notes.notes
import ConvertToDate
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.content.SharedPreferences
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import andro... | 0 | Kotlin | 0 | 0 | c988d4f267d76cfd3ec9c1c164b2f9af30067dcc | 5,588 | Notes | Apache License 2.0 |
app/src/main/java/com/hakmar/employeelivetracking/features/pm_store/di/PmStoreDataModule.kt | enginemre | 584,733,724 | false | null | package com.hakmar.employeelivetracking.features.pm_store.di
import com.hakmar.employeelivetracking.common.domain.repository.DataStoreRepository
import com.hakmar.employeelivetracking.features.pm_store.data.remote.PmStoreApi
import com.hakmar.employeelivetracking.features.pm_store.data.repository.PmStoreRepositoryImpl... | 0 | Kotlin | 0 | 0 | 5e348e0a5aac89b4e60607a14a4ef9bbd68545a5 | 1,389 | employee_live_tracking | The Unlicense |
app/src/main/java/org/ballistic/dreamjournalai/store_billing/data/repository/SubscriptionRepositoryImpl.kt | ErickSorto | 546,852,272 | false | null | package org.ballistic.dreamjournalai.store_billing.data.repository
import com.google.firebase.firestore.FirebaseFirestore
import kotlinx.coroutines.tasks.await
import org.ballistic.dreamjournalai.core.Resource
import org.ballistic.dreamjournalai.store_billing.domain.model.Subscription
import org.ballistic.dreamjournal... | 0 | Kotlin | 0 | 1 | 133a328b5e89c62f53bdfdab7d5e257977fb89b1 | 4,686 | Dream-Journal-AI | MIT License |
machamp-client-spring-boot-starter/src/main/kotlin/io/github/yakovsirotkin/machamp/client/sqlserver/springboot/ClientMachampProperties.kt | YakovSirotkin | 456,107,227 | false | {"Kotlin": 108816, "PLSQL": 472} | package io.github.yakovsirotkin.machamp.client.mysql.springboot
import org.springframework.boot.context.properties.ConfigurationProperties
/**
* Machamp client configuration properties
*/
@ConfigurationProperties(prefix = "machamp")
open class ClientMachampProperties {
val priority = Priority()
var taskTabl... | 2 | Kotlin | 0 | 8 | 9b2e0367519001dd438a5a96d360bd50fef35a9a | 402 | machamp | MIT License |
java/java-tests/testSrc/com/intellij/util/indexing/SharedIndexDumpTest.kt | mymilkbottles | 238,348,396 | true | 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.util.indexing
import com.intellij.index.SharedIndexExtensions
import com.intellij.openapi.progress.EmptyProgressIndicator
import com.intellij.openapi.util.io... | 0 | null | 0 | 0 | d96c2161534f95e7983683a601c69c4628bd0589 | 10,114 | intellij-community | Apache License 2.0 |
app/src/test/java/eu/se_bastiaan/marietje/data/SongsDataManagerTest.kt | se-bastiaan | 32,793,162 | false | {"Java": 203204, "Kotlin": 37089, "Shell": 1455} | package eu.se_bastiaan.marietje.data
import eu.se_bastiaan.marietje.data.model.Songs
import eu.se_bastiaan.marietje.data.remote.SongsService
import eu.se_bastiaan.marietje.test.common.TestDataFactory
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.Mock
import org.mockit... | 0 | Java | 1 | 1 | 56640fc3636ccf00e64e67b12872687217862273 | 2,424 | Marietje-Android | Apache License 2.0 |
app/src/main/kotlin/com/example/tasty/data/local/dao/RecipeDao.kt | stevan-milovanovic | 765,694,666 | false | {"Kotlin": 119318} | package com.example.tasty.data.local.dao
import androidx.paging.PagingSource
import androidx.room.Dao
import androidx.room.Query
import androidx.room.Upsert
import com.example.tasty.data.local.model.Recipe
import com.example.tasty.data.local.model.RecipeTagCrossRef
import com.example.tasty.data.local.model.RecipeWithT... | 0 | Kotlin | 0 | 2 | b8c54ff5679bfafea6a9c44e44b3bf38e43cb9a9 | 2,129 | Tasty | Apache License 2.0 |
lib/sisyphus-common/src/main/kotlin/com/bybutter/sisyphus/string/case/UpperSpaceCaseFormatter.kt | ButterCam | 264,589,207 | false | null | package io.kanro.idea.plugin.protobuf.string.case
object UpperDotCaseFormatter : BaseCaseFormatter() {
override fun formatWord(
index: Int,
word: CharSequence,
): CharSequence {
return word.toString().uppercase()
}
override fun appendDelimiter(builder: StringBuilder) {
... | 9 | null | 11 | 92 | 1f9851c7c45030fa08e018e961110851e029f940 | 348 | sisyphus | MIT License |
plugins/devkit/devkit-core/src/inspections/missingApi/BuildNumberValidator.kt | ingokegel | 72,937,917 | true | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.idea.devkit.inspections.missingApi
import com.intellij.codeInspection.options.StringValidator
import com.intellij.openapi.project.Project
import com.intellij.openapi.util.Build... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 784 | intellij-community | Apache License 2.0 |
app/src/main/java/com/vension/mvp/http/RetrofitFactory.kt | Vension | 127,116,341 | false | null | package com.vension.mvp.http
import com.vension.frame.VFrame
import com.vension.frame.utils.NetworkUtil
import com.vension.frame.utils.VPreference
import com.vension.mvp.http.api.ApiEyesService
import com.vension.mvp.http.api.ApiTouTiaoService
import com.vension.mvp.http.api.GankApiService
import okhttp3.*
import okht... | 1 | null | 1 | 1 | efa939c0325b1b05fad235a1314d87f9d3dc1338 | 9,006 | KV-MVP-Frame | Apache License 2.0 |
app/src/main/java/de/drtobiasprinz/summitbook/fragments/AddSegmentEntryFragment.kt | prinztob | 370,702,913 | false | null | package de.drtobiasprinz.summitbook.fragments
import android.graphics.Color
import android.graphics.Paint
import android.graphics.drawable.Drawable
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.AdapterView
import android.widget.... | 0 | Kotlin | 0 | 0 | 3d9df15193c892f42ad1c04348bc1245df51141a | 24,467 | summitbook | MIT License |
src/test/resources/PostorderTraversal.kt | pipen2 | 114,119,918 | true | {"YAML": 2, "Gradle": 2, "Shell": 1, "Markdown": 1, "Batchfile": 1, "Text": 1, "Ignore List": 1, "XML": 2, "Groovy": 1, "Kotlin": 39, "Java": 42, "Java Properties": 1} | import com.jalgoarena.type.TreeNode
import java.util.*
import com.jalgoarena.type.*
class PostorderTraversal {
fun postorderTraversal(root: TreeNode?): IntArray {
val items = ArrayList<Int>()
postorder(root, items)
return items.toIntArray()
}
private fun postorder(root: TreeNode?,... | 0 | Java | 0 | 0 | 70135d5de26f9eb47905253c84abe7c8c13156be | 508 | JAlgoArena-Judge | Apache License 2.0 |
src/main/kotlin/com/korektur/scheduler/strategy/FixedDelaySchedulingStrategy.kt | korektur | 134,327,082 | false | {"Kotlin": 29594, "Java": 804} | package com.korektur.scheduler.strategy
import java.time.Instant
import java.time.temporal.ChronoUnit.MILLIS
import java.time.temporal.TemporalUnit
/**
* Strategy that calculates next execution time based on fixed delay since end of the last execution.
* @param delay fixed period between the end of the last invocat... | 0 | Kotlin | 0 | 0 | def5b3adce0df5b939615c19eff00b61c2ab192a | 1,090 | distributed-scheduler | Apache License 2.0 |
PushNotification/app/src/main/java/com/juhwan/anyang_yi/domain/usecase/keyword/WriteKeywordUseCase.kt | juhwankim-dev | 324,930,598 | false | null | package com.juhwan.anyang_yi.domain.usecase.keyword
import com.juhwan.anyang_yi.domain.repository.KeywordRepository
import javax.inject.Inject
class WriteKeywordUseCase @Inject constructor(
private val keywordRepository: KeywordRepository
) {
suspend operator fun invoke(keyword: String)
= keywordR... | 1 | Kotlin | 1 | 5 | ae17bf81ec4bdf7a8704710b742b44cfc84a6b04 | 353 | pushNotificationApp | Apache License 2.0 |
src/Day06.kt | GarrettShorr | 571,769,671 | false | null | fun main() {
fun part1(input: List<String>): Int {
println(input)
val potentialMarkers = input[0].windowed(4).map { it.windowed(1).sorted() }
println(potentialMarkers)
for(i in potentialMarkers.indices) {
if(potentialMarkers[i][0] != potentialMarkers[i][1] &&
potentialMarkers[i][1] != ... | 0 | Kotlin | 0 | 0 | 391336623968f210a19797b44d027b05f31484b5 | 1,082 | AdventOfCode2022 | Apache License 2.0 |
src/main/kotlin/no/nav/helse/inntektsmeldingsvarsel/AltinnVarselMapper.kt | navikt | 255,909,562 | false | {"Kotlin": 155970, "HTML": 7618, "Shell": 1622, "Dockerfile": 389} | package no.nav.helse.inntektsmeldingsvarsel
import no.altinn.schemas.services.serviceengine.correspondence._2010._10.ExternalContentV2
import no.altinn.schemas.services.serviceengine.correspondence._2010._10.InsertCorrespondenceV2
import no.altinn.schemas.services.serviceengine.notification._2009._10.NotificationBELis... | 0 | Kotlin | 0 | 0 | 41c17cc53332a3655a366ce7bc8fbb7e1536b24e | 4,487 | im-varsel | MIT License |
audio-sink/src/main/java/io/github/rosariopfernandes/bluetoothingspeaker/remotecontrol/ActionType.kt | thatfiredev | 190,218,019 | true | {"Kotlin": 25856, "Java": 16257} | package io.github.rosariopfernandes.bluetoothingspeaker.remotecontrol
enum class ActionType {
PAIR,
DISCONNECT
} | 1 | Kotlin | 1 | 4 | d21d8de617c84fa69819fdbd99b1cab46381119c | 121 | bluetoothingspeaker | Apache License 2.0 |
onetap-compose/src/main/kotlin/com/vk/id/onetap/compose/onetap/sheet/content/SheetContentAuthFailed.kt | VKCOM | 696,297,549 | false | null | @file:OptIn(InternalVKIDApi::class)
package com.vk.id.onetap.compose.onetap.sheet.content
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Box
import androidx.compose.... | 2 | null | 3 | 8 | ac0870dd548c2c4bb0ac5a7cf4b973e7add590b2 | 4,403 | vkid-android-sdk | MIT License |
typescript/ts-translator/src/org/jetbrains/dukat/ts/translator/TypescriptLowerer.kt | Kotlin | 159,510,660 | false | null | package org.jetbrains.dukat.ts.translator
import IntroduceMissingConstructors
import org.jetbrains.dukat.astCommon.NameEntity
import org.jetbrains.dukat.astModel.SourceSetModel
import org.jetbrains.dukat.commonLowerings.AddExplicitGettersAndSetters
import org.jetbrains.dukat.commonLowerings.AddImports
import org.jetbr... | 244 | null | 42 | 535 | d50b9be913ce8a2332b8e97fd518f1ec1ad7f69e | 6,929 | dukat | Apache License 2.0 |
tmp/arrays/youTrackTests/8300.kt | DaniilStepanov | 228,623,440 | false | {"Git Config": 1, "Gradle": 6, "Text": 3, "INI": 5, "Shell": 2, "Ignore List": 3, "Batchfile": 2, "Markdown": 2, "Kotlin": 15942, "JavaScript": 4, "ANTLR": 2, "XML": 12, "Java": 4} | // Original bug: KT-22317
class Test {
init {
a = 1 // No error, despite of later declaration of 'a'
}
constructor() {
a = 2
}
private var a: Int
init {
a = 3
}
}
| 1 | null | 1 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 216 | bbfgradle | Apache License 2.0 |
plugins/kotlin/project-wizard/idea/src/org/jetbrains/kotlin/tools/projectWizard/IntelliJKotlinNewProjectWizard.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 that can be found in the LICENSE file.
package org.jetbrains.kotlin.tools.projectWizard
import com.intellij.ide.projectWizard.NewProjectWizardConstants.BuildSystem.INTELLIJ
import com.intellij.ide.pr... | 229 | null | 4931 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 2,259 | intellij-community | Apache License 2.0 |
libnavigation-voice/src/main/java/com/mapbox/navigation/voice/api/VoiceApiProvider.kt | mapbox | 87,455,763 | false | {"Kotlin": 8885438, "Makefile": 8762, "Python": 7925, "Java": 4624} | package com.mapbox.navigation.voice.api
import android.content.Context
import com.mapbox.navigation.core.internal.accounts.MapboxNavigationAccounts
import com.mapbox.navigation.ui.utils.internal.resource.ResourceLoaderFactory
import com.mapbox.navigation.voice.options.MapboxSpeechApiOptions
import java.io.File
intern... | 508 | Kotlin | 318 | 621 | 88163ae3d7e34948369d6945d5b78a72bdd68d7c | 949 | mapbox-navigation-android | Apache License 2.0 |
app/src/main/java/com/umang/stumate/general/ClassMatesActivity.kt | saikiran1224 | 308,093,102 | false | null | package com.umang.stumate.general
import android.app.Dialog
import android.content.Intent
import android.opengl.Visibility
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.Button
import android.widget.TextView
import android.widget.Toast
import and... | 0 | Kotlin | 1 | 8 | 7624189eabbb449b00b2df8b89fad04c7649603f | 14,776 | Stumate | MIT License |
http_server_jetty/src/test/kotlin/com/hexagonkt/http/HelloWorldTest.kt | mrpascal1 | 248,485,404 | true | {"Kotlin": 421825, "HTML": 25440, "Scala": 3554, "JavaScript": 2701, "Dockerfile": 2196, "CSS": 1122, "Shell": 894} | package com.hexagonkt.http
import com.hexagonkt.http.client.Client
import com.hexagonkt.http.client.ahc.AhcAdapter
import org.testng.annotations.AfterClass
import org.testng.annotations.BeforeClass
import org.testng.annotations.Test
@Test class HelloWorldTest {
private val client: Client by lazy {
Client... | 0 | Kotlin | 0 | 0 | 9e26bc9400cf73b2c5ba1f77d6e1b732cd059f11 | 697 | hexagon | MIT License |
src/main/kotlin/no/nav/tilleggsstonader/klage/behandling/BehandlingService.kt | navikt | 811,308,518 | false | {"Kotlin": 599532, "Dockerfile": 202} | package no.nav.tilleggsstonader.klage.behandling
import no.nav.familie.prosessering.internal.TaskService
import no.nav.tilleggsstonader.klage.behandling.domain.Behandling
import no.nav.tilleggsstonader.klage.behandling.domain.FagsystemRevurdering
import no.nav.tilleggsstonader.klage.behandling.domain.Klagebehandlingsr... | 2 | Kotlin | 0 | 0 | d924d2e653546832fb135b28595d0eb181d107a3 | 8,002 | tilleggsstonader-klage | MIT License |
app/src/main/java/org/kaqui/mainmenu/VocabularyMenuActivity.kt | btp | 180,280,286 | false | null | package org.kaqui.mainmenu
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.Gravity
import android.widget.TextView
import org.jetbrains.anko.*
import org.kaqui.R
import org.kaqui.menuWidth
import org.kaqui.model.TestType
import org.kaqui.settings.JlptSelectionActivity
import... | 0 | Kotlin | 0 | 0 | 9d828245c1726a9cca8a085d8b736862a1b75457 | 2,641 | kakngo | MIT License |
cobalt.core/src/commonMain/kotlin/org/hexworks/cobalt/core/platform/factory/IdentifierFactory.kt | cobalt | 155,008,361 | false | null | package org.hexworks.cobalt.core.platform.factory
import org.hexworks.cobalt.core.api.Identifier
expect object IdentifierFactory {
fun randomIdentifier(): Identifier
fun fromString(str: String): Identifier
}
| 0 | Kotlin | 5 | 5 | 51fc64a311cfb7fffdd5e1b7ccdb64319f7602f1 | 220 | cobalt | Apache License 2.0 |
app/src/main/java/com/msomodi/imageverse/model/auth/request/RegisterRequest.kt | MarioSomodi | 602,268,671 | false | {"Kotlin": 274194} | package com.msomodi.imageverse.model.auth.request
import kotlinx.serialization.Serializable
@Serializable
data class RegisterRequest(
val username : String,
val name : String,
val surname : String,
val email : String,
val password : String,
val packageId : String,
val profileImage : String... | 0 | Kotlin | 0 | 0 | 879469f59f4417f3a3e3d1de63d31723f81fb2b4 | 402 | Imageverse | MIT License |
intellijPlugin/src/main/kotlin/pw/binom/fbx/file/FbxUtils.kt | caffeine-mgn | 223,796,620 | false | null | package pw.binom.fbx.file
import org.joml.Math
import org.joml.Vector3f
import org.joml.Vector3fc
fun FbxRoot.connectionByValue(value: Long) =
get("Connections").single().get("C").map {
if (it.properties[2] as Long == value)
it.properties[1] as Long
else
... | 6 | Kotlin | 0 | 4 | e673acfcb20e2d62d8e68c43d395731bd9d9d882 | 1,876 | mogot | Apache License 2.0 |
app/src/main/java/me/qcuncle/nowinnews/util/WebViewPool.kt | QCuncle | 768,718,477 | false | {"Kotlin": 313407} | package me.qcuncle.nowinnews.util
import android.annotation.SuppressLint
import android.app.Application
import android.os.Looper
import android.util.Log
import android.webkit.WebResourceRequest
import android.webkit.WebSettings
import android.webkit.WebView
import android.webkit.WebViewClient
import kotlinx.coroutines... | 0 | Kotlin | 0 | 7 | 2105632328876c3c23349470c05a0b7cde226931 | 4,187 | nowinnews | Apache License 2.0 |
src/main/kotlin/enum/Cargo.kt | GabrielDragone | 594,284,484 | false | null | package enum
enum class Cargo {
ASSISTENTE {
override fun getProximoCargo(): Cargo {
return ANALISTA
}
},
ANALISTA {
override fun getProximoCargo(): Cargo {
return ESPECIALISTA
}
},
ESPECIALISTA {
override fun getProximoCargo(): Cargo ... | 0 | Kotlin | 0 | 0 | 6e9ab912d4fb05ceb634b702a5ab123a3341c4f2 | 592 | solid-kotlin-example | MIT License |
app/src/main/java/com/romandevyatov/bestfinance/viewmodels/foreachmodel/TransferHistoryViewModel.kt | RomanDevyatov | 587,557,441 | false | null | package com.romandevyatov.bestfinance.viewmodels.foreachmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.romandevyatov.bestfinance.db.entities.TransferHistory
import com.romandevyatov.bestfinance.repositories.TransferHistoryRepository
impo... | 0 | Kotlin | 0 | 1 | b810131126c84cd6daf6fcfb86b700ece556fd5b | 1,462 | BestFinance | Apache License 2.0 |
dbflow-tests/src/test/java/com/raizlabs/android/dbflow/test/example/Breed.kt | junyuecao | 85,771,215 | true | {"Java": 603671, "Kotlin": 575680} | package com.raizlabs.android.dbflow.test.example
import com.raizlabs.android.dbflow.annotation.PrimaryKey
import com.raizlabs.android.dbflow.annotation.Table
import com.raizlabs.android.dbflow.structure.BaseModel
import com.raizlabs.android.dbflow.test.TestDatabase
/**
* Description:
*/
@Table(database = TestDataba... | 0 | Java | 0 | 0 | 42fdeb4e00d73ef24a8721ff87d394581911611b | 405 | DBFlow | MIT License |
app/src/main/java/com/lee/toollibrary/adapters/ViewAdapter.kt | leenickcode | 145,098,316 | false | {"Java": 518714, "Kotlin": 180501} | package com.lee.toollibrary.adapters
import android.content.Context
import android.view.ViewGroup
import com.lee.mylibrary.BaseRecyclerViewAdapter
import com.lee.mylibrary.UniversalViewHolder
import com.lee.toollibrary.R
import kotlinx.android.synthetic.main.item_views.view.*
/**
* Created by nick on 2018/8/15.
* 自... | 1 | null | 1 | 1 | df867f9a851826d5e1354bb72e605272932cc0c9 | 1,056 | ToolLibrary | Apache License 2.0 |
app/src/main/java/com/dreamsoftware/fudge/component/player/audio/FudgeTvAudioPlayerControllerIndicator.kt | sergio11 | 189,831,547 | false | {"Kotlin": 186613} | package com.dreamsoftware.fudge.component.player.audio
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
import androidx... | 0 | Kotlin | 2 | 4 | 700078433b12fd52452fe6252749825688d29f29 | 1,074 | fudge_tv_compose_library | MIT License |
app/src/main/java/com/example/speedrun/network/model/dto/GamesDataResponseDto.kt | alejandromr92 | 171,358,320 | false | null | package com.example.speedrun.network.model.dto
import com.google.gson.annotations.SerializedName
data class GamesDataResponseDto (
val data: List<GameDataDto>
)
data class GameDataDto(
val id: String,
val assets: GameAssets,
val names: GameNames
)
data class GameNames(
val international: String
... | 0 | Kotlin | 0 | 0 | 56654f13567957711e39b08405f3d305bb997dfc | 860 | SpeedRun | Apache License 2.0 |
app/src/main/java/com/lukaslechner/coroutineusecasesonandroid/playground/structured_concurrency/1_coroutines_need_to_be_started_in_scope.kt | rafaykt | 377,293,866 | false | null | package com.lukaslechner.coroutineusecasesonandroid.playground.structured_concurrency
import kotlinx.coroutines.*
val scope = CoroutineScope(Dispatchers.Default)
fun main() = runBlocking {
val job = scope.launch{
delay(100)
println("Coroutine completed")
}
job.invokeOnCompletion {
... | 0 | Kotlin | 0 | 0 | dd51eb77d03b60c16b854c1cba607854ee3e74fb | 561 | coroutine_mastering | Apache License 2.0 |
feature/pick-color/src/main/java/ru/tech/imageresizershrinker/feature/pick_color/presentation/viewModel/PickColorViewModel.kt | T8RIN | 478,710,402 | false | null | /*
* ImageToolbox is an image editor for android
* Copyright (c) 2024 T8RIN (<NAME>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under ... | 27 | null | 95 | 3,817 | 486410d4a9ea3c832fc5aa63eb5bdc7b1fab871d | 2,723 | ImageToolbox | Apache License 2.0 |
app/src/main/java/app/simple/peri/utils/StringUtils.kt | Hamza417 | 667,998,169 | false | {"Kotlin": 197196, "Java": 27255} | package app.simple.peri.utils
object StringUtils {
fun String?.endsWithAny(vararg strings: String): Boolean {
strings.forEach {
if (this?.endsWith(it) == true) {
return true
}
}
return false
}
} | 3 | Kotlin | 1 | 98 | 406114eb0de0fcc80c1e5c9df86ae44a8eea2eb3 | 268 | Peristyle | Apache License 2.0 |
android/src/com/android/tools/idea/welcome/wizard/MissingSdkAlertStep.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 1,198 | android | Apache License 2.0 |
web/src/jsMain/kotlin/de/jensklingenberg/sheasy/web/model/DrawerItems.kt | Foso | 129,130,317 | false | {"Markdown": 12, "Gradle": 13, "INI": 3, "YAML": 7, "Java Properties": 3, "Proguard": 2, "Shell": 3, "Text": 6, "Ignore List": 5, "Batchfile": 3, "Git Attributes": 1, "Kotlin": 329, "XML": 156, "Java": 2, "CSS": 18, "HTML": 17, "JavaScript": 27, "JSON": 3, "Gradle Kotlin DSL": 1, "JAR Manifest": 1, "OASv2-yaml": 3, "Pl... | package de.jensklingenberg.sheasy.web.model
import de.jensklingenberg.sheasy.web.model.StringRes.Companion.TOOLBAR_ABOUT
import de.jensklingenberg.sheasy.web.model.StringRes.Companion.TOOLBAR_APPS
import de.jensklingenberg.sheasy.web.model.StringRes.Companion.TOOLBAR_HOME
import de.jensklingenberg.sheasy.web.model.Str... | 1 | Kotlin | 4 | 36 | 069989f8c92924b7db3b7744fe54f73e2e138463 | 679 | Sheasy | Apache License 2.0 |
src/main/kotlin/masternetworkmanager/handler/action/UpdateGoboImage.kt | BAC2-Graf-Rohatynski | 208,084,545 | false | null | package masternetworkmanager.handler.action
import masternetworkmanager.slave.modifier.UpdateGoboImage
import apibuilder.network.UpdateGoboImageItem
import databaseclient.action.GoboAction
import enumstorage.database.DatabaseCommand
import masternetworkmanager.handler.interfaces.ICommandHandlerAction
import org.slf4j.... | 0 | Kotlin | 0 | 0 | 4c39c7718fdab9e0cdf4f275f3f9dab9d2f3085f | 1,039 | MasterNetworkManager | MIT License |
code/src/main/kotlin/com/expediagroup/sdk/rapid/models/Area.kt | ExpediaGroup | 774,903,007 | false | {"Kotlin": 1589222} | /*
* Copyright (C) 2022 Expedia, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 6 | Kotlin | 1 | 3 | eb9676760e9f60ef98fb912cee2401f2e50a8019 | 2,461 | rapid-java-sdk | Apache License 2.0 |
testdata/example-print/example-print-01.kt | thumannw | 454,522,002 | true | {"Kotlin": 99539} | // This file was automatically generated from example-print.in.md by Knit tool. Do not edit.
package com.example.examplePrint01
fun main() {
"OW".replace('W', 'K')
.let { println(it) }
}
| 0 | null | 0 | 0 | 35c55522f1982164764e57fe15fbfe11ec519fbe | 198 | kotlinx-knit | Apache License 2.0 |
plugin-azure-server/src/test/kotlin/jetbrains/buildServer/clouds/azure/arm/web/update/UpdateImageControllerTest.kt | JetBrains | 22,468,117 | false | {"Kotlin": 566528, "Java": 114877, "JavaScript": 97208, "CSS": 2805} | package jetbrains.buildServer.clouds.azure.arm.web.update
import io.mockk.MockKAnnotations
import io.mockk.Runs
import io.mockk.every
import io.mockk.impl.annotations.InjectMockKs
import io.mockk.impl.annotations.MockK
import io.mockk.just
import io.mockk.mockk
import jetbrains.buildServer.serverSide.SBuildServer
impo... | 19 | Kotlin | 22 | 48 | 253adaa64d9f541d361f419d91594844cfb26715 | 4,884 | teamcity-azure-agent | Apache License 2.0 |
app/src/test/kotlin/com/adesso/movee/scene/moviedetail/MovieDetailViewModelTest.kt | adessoTurkey | 291,657,858 | false | null | package com.adesso.movee.scene.moviedetail
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import com.adesso.movee.domain.FetchMovieDetailFlowUseCase
import com.adesso.movee.internal.popup.PopupModel
import com.adesso.movee.internal.util.Failure
import com.adesso.movee.scene.moviedetail.model.MovieD... | 1 | Kotlin | 13 | 88 | e5f2d152f9330f7162beff85b37e07fd155407ea | 2,000 | android-boilerplate | Apache License 2.0 |
src/commonMain/kotlin/at/asitplus/io/BaseN.kt | a-sit-plus | 830,902,417 | false | {"Kotlin": 18326} | /* Originally created by Protocol labs, published at GitHub: https://github.com/changjiashuai/kotlin-multibase
under the terms of the MIT License.
Slightly tweaked to allow for multiplatform use in 2024 by A-SIT Plus GmbH
Copyright (c) 2018-2022 Protocol Labs
Permission is hereby granted, free of charge, to any perso... | 0 | Kotlin | 0 | 2 | 710c2f0f72bdf8f5c0991afdb066356e45195b2e | 11,540 | multibase | MIT License |
app/src/main/java/ee/ioc/phon/android/speak/demo/EncoderListDemo.kt | kshravi86 | 136,645,939 | true | {"Markdown": 5, "Shell": 5, "Python": 2, "HTML": 1, "Java": 55, "Kotlin": 11} | package ee.ioc.phon.android.speak.demo
import android.app.ListActivity
import android.os.Bundle
import android.widget.ArrayAdapter
import ee.ioc.phon.android.speak.R
import ee.ioc.phon.android.speechutils.utils.AudioUtils
import java.util.*
class EncoderListDemo : ListActivity() {
public override fun onCreate(sa... | 0 | Java | 0 | 1 | 254951175dd80cf5010055a09a6df97120cab099 | 684 | K6nele | Apache License 2.0 |
postgres-native-sqldelight-driver/src/commonMain/kotlin/app/softwork/sqldelight/postgresdriver/PostgresNativeDriver.kt | hfhbd | 491,982,242 | false | {"Kotlin": 48764} | package app.softwork.sqldelight.postgresdriver
import app.cash.sqldelight.*
import app.cash.sqldelight.db.*
import kotlinx.cinterop.*
import kotlinx.coroutines.*
import kotlinx.coroutines.flow.*
import libpq.*
public class PostgresNativeDriver(
private val conn: CPointer<PGconn>,
private val listenerSupport: ... | 7 | Kotlin | 3 | 29 | 06e6613c442712e175018138a9d8b25d3827712b | 14,548 | postgres-native-sqldelight | Apache License 2.0 |
app/src/main/java/br/com/movieapp/core/paging/MovieSearchPagingSource.kt | wilsonleandro | 724,752,199 | false | {"Kotlin": 153692} | package br.com.movieapp.core.paging
import androidx.paging.PagingSource
import androidx.paging.PagingState
import br.com.movieapp.core.domain.model.MovieSearch
import br.com.movieapp.search.feature.domain.source.MovieSearchRemoteDataSource
class MovieSearchPagingSource(
private val query: String,
private val ... | 0 | Kotlin | 0 | 0 | 0b26342f22b2790cf0dfdcdba3f53fdf1c121bfc | 1,416 | movieapp | MIT License |
app/src/main/java/app/ferdyhaspin/quotes/ui/component/home/quotes/QuotesFragment.kt | ferdyhaspin | 235,545,727 | false | null | package app.ferdyhaspin.quotes.ui.component.home.quotes
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyclerview.widget.LinearLayoutMan... | 0 | Kotlin | 0 | 0 | 549a5dd3342562e2e450d1f04fbf8dad2db4fb37 | 2,503 | quotes | MIT License |
compiler/testData/diagnostics/tests/typealias/kt14518.kt | JakeWharton | 99,388,807 | false | null | // !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER -TOPLEVEL_TYPEALIASES_ONLY
class OuterClass<T1> {
class NestedClass<T2>
typealias NestedType<T> = NestedClass<T>
}
typealias ON1<T1, T2> = OuterClass<!TYPE_ARGUMENTS_FOR_OUTER_CLASS_WHEN_NESTED_REFERENCED!><T1><!>.NestedClass<T2>
typealias ON2<T1, T2> = Oute... | 181 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 451 | kotlin | Apache License 2.0 |
kvision-modules/kvision-bootstrap/src/main/kotlin/io/kvision/dropdown/ContextMenu.kt | rjaros | 120,835,750 | false | null | /*
* Copyright (c) 2017-present <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publ... | 31 | null | 65 | 882 | bde30bbfd3c1a837eeff58a0a81bf7a5d677c72f | 3,729 | kvision | MIT License |
core/data/src/main/java/komu/seki/data/handlers/MediaHandler.kt | shrimqy | 827,172,253 | false | {"Kotlin": 238692} | package komu.seki.data.services
import android.app.NotificationChannel
import android.app.NotificationManager
import android.content.Context
import android.support.v4.media.MediaMetadataCompat
import android.support.v4.media.session.MediaSessionCompat
import android.support.v4.media.session.PlaybackStateCompat
import ... | 1 | Kotlin | 0 | 45 | b4601316ca792a7247ca08fa2a9af43761875a85 | 4,556 | Sekia | Apache License 2.0 |
app/src/main/java/com/stratagile/qlink/ui/activity/reward/module/MyClaimModule.kt | qlcchain | 115,608,966 | false | null | package com.stratagile.qlink.ui.activity.reward.module
import com.stratagile.qlink.data.api.HttpAPIWrapper
import com.stratagile.qlink.ui.activity.base.ActivityScope
import com.stratagile.qlink.ui.activity.reward.MyClaimActivity
import com.stratagile.qlink.ui.activity.reward.contract.MyClaimContract
import com.stratag... | 1 | null | 18 | 46 | 1c8066e4ebbb53c7401751ea3887a6315ccbe5eb | 995 | QWallet-Android | MIT License |
app/src/main/java/com/mytests/testExam/presentation/Authorization.kt | FredNekrasov | 766,574,196 | false | {"Kotlin": 46367} | package com.mytests.testExam.presentation
import androidx.compose.foundation.layout.*
import androidx.compose.runtime.*
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.ui.*
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.input.KeyboardType
import androidx... | 0 | Kotlin | 0 | 1 | e344e47e6cb1ba8f0634e3df75ffa3514270bc59 | 2,388 | my-tests | MIT License |
next/kmp/browser/src/commonMain/kotlin/org/dweb_browser/browser/desk/render/TaskBarAppIcon.kt | BioforestChain | 594,577,896 | false | {"Kotlin": 3446191, "TypeScript": 818538, "Swift": 369625, "Vue": 156647, "SCSS": 39016, "Objective-C": 17350, "HTML": 16184, "Shell": 13534, "JavaScript": 3982, "Svelte": 3504, "CSS": 818} | package org.dweb_browser.browser.desk.render
import androidx.compose.animation.core.Spring
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.spring
import androidx.compose.animation.core.tween
import androidx.compose.foundation.layout.BoxWithConstraints
import androidx.c... | 66 | Kotlin | 5 | 20 | 6db1137257e38400c87279f4ccf46511752cd45a | 4,038 | dweb_browser | MIT License |
app/src/main/java/com/wave/audiorecording/util/OnCopyListener.kt | SimformSolutionsPvtLtd | 359,396,860 | false | null | package com.wave.audiorecording.util
/**
* OnCopyListener
*/
interface OnCopyListener {
val isCancel: Boolean
fun onCopyProgress(percent: Int, progress: Long, total: Long)
fun onCanceled()
fun onCopyFinish()
} | 0 | Kotlin | 5 | 9 | 4b3ffa7bfc8c4718085bfc3c146863c659f8e09f | 228 | SSAudioRecorderWithWaveForm | Apache License 2.0 |
common/src/main/kotlin/com/agmtopy/kocketmq/common/namesrv/RegisterBrokerResult.kt | agmtopy | 376,882,907 | false | null | package com.agmtopy.kocketmq.common.namesrv
import com.agmtopy.kocketmq.common.protocol.body.KVTable
class RegisterBrokerResult {
var haServerAddr: String? = null
var masterAddr: String? = null
var kvTable: KVTable? = null
} | 1 | null | 1 | 1 | 91e15b054ff8f1784d79b96e498894065ba025f8 | 238 | kocketmq | Apache License 2.0 |
jersey/src/test/kotlin/org/ostelco/prime/jersey/auth/AuthTest.kt | ostelco | 112,729,477 | false | null | package org.ostelco.prime.client.api.auth
import io.dropwizard.client.JerseyClientBuilder
import io.dropwizard.testing.ConfigOverride
import io.dropwizard.testing.ResourceHelpers
import io.dropwizard.testing.junit.DropwizardAppRule
import org.assertj.core.api.Assertions.assertThat
import org.assertj.core.api.Assertion... | 23 | null | 13 | 37 | b072ada4aca8c4bf5c3c2f6fe0d36a5ff16c11af | 2,967 | ostelco-core | Apache License 2.0 |
samples/AlertDialog/common/src/desktopMain/kotlin/dev/atsushieno/composempp/samples/alertdialog/DesktopApp.kt | atsushieno | 407,561,858 | false | {"Kotlin": 10923} | package dev.atsushieno.composempp.samples.alertdialog
import androidx.compose.desktop.ui.tooling.preview.Preview
import androidx.compose.runtime.Composable
@Preview
@Composable
fun AppPreview() {
App()
} | 0 | Kotlin | 2 | 6 | d2dada9ad14d778d2a852078e52811004b793974 | 209 | compose-mpp | Apache License 2.0 |
prefpin-annotation/src/main/java/prefpin/OnPrefClick.kt | zacharee | 203,059,924 | true | {"Kotlin": 16843, "Java": 758} | package prefpin
import androidx.annotation.StringRes
import kotlin.reflect.KClass
/**
* Binds a method to the OnPreferenceClick handler of a preference for the specific key.
*/
@Retention(AnnotationRetention.BINARY)
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTE... | 0 | Kotlin | 0 | 1 | 039374c466826c3f2d72c2b3fc0c92d7235b4899 | 396 | prefpin | MIT License |
app/src/main/java/com/fredrikbogg/android_chat_app/util/LiveDataExt.kt | dgewe | 288,984,096 | false | null | package com.fredrikbogg.android_chat_app.util
import androidx.lifecycle.MutableLiveData
fun <T> MutableLiveData<MutableList<T>>.addNewItem(item: T) {
val newList = mutableListOf<T>()
this.value?.let { newList.addAll(it) }
newList.add(item)
this.value = newList
}
fun <T> MutableLiveData<MutableList<T>... | 0 | null | 35 | 87 | cff2f947a4496e46cbaa750b4e3fa768ba2308f0 | 686 | Chat-App-Android | MIT License |
common/ui/compose/src/main/java/app/tivi/common/compose/ui/ExpandingSummary.kt | chrisbanes | 100,624,553 | false | null | /*
* Copyright 2020 Google LLC
*
* 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 i... | 39 | null | 792 | 5,749 | 5dc4d831fd801afab556165d547042c517f98875 | 2,149 | tivi | Apache License 2.0 |
builder/src/main/java/com/kamer/builder/MainNavigationScreenHolder.kt | kamerok | 192,063,678 | false | {"Kotlin": 209086} | package com.kamer.builder
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.animation.EnterTransition
import androidx.compose.animation.ExitTransition
import androidx.compose.animation.core.tween
import androidx.compose.animation.fadeIn
import androidx.compose.animat... | 0 | Kotlin | 0 | 4 | d8dff0a567a7e6209ae8518c8060f252b04679fc | 11,115 | EasyDone | Apache License 2.0 |
app/src/main/java/com/example/gcore_vod_demo/screens/main/tabs/videos/remote/model/UiVideoItem.kt | G-Core | 464,986,406 | false | {"Kotlin": 122519} | package com.example.gcore_vod_demo.screens.main.tabs.videos.remote.model
import android.os.Parcelable
import com.example.gcore_vod_demo.data.remote.video.VideoItemResponse
import kotlinx.parcelize.Parcelize
@Parcelize
data class UiVideoItem(
val id: Int,
val name: String,
var uri: String,
val previewU... | 0 | Kotlin | 1 | 1 | 2a194cd24ef5b5d2cbefe465a2fdd3a00f9b7ee3 | 846 | android-demo-vod-hosting | Apache License 2.0 |
app/src/main/java/ar/com/wolox/android/example/ui/splashcreen/SplashFragment.kt | wolox-training | 337,096,244 | false | null | package ar.com.wolox.android.example.ui.splashcreen
import ar.com.wolox.android.R
import ar.com.wolox.android.databinding.FragmentSplashBinding
import ar.com.wolox.android.example.ui.home.HomeActivity
import ar.com.wolox.android.example.ui.login.LoginActivity
import ar.com.wolox.wolmo.core.fragment.WolmoFragment
impor... | 0 | Kotlin | 0 | 0 | 4687a08577516d021ab24afd86d229ac877617d0 | 922 | ldm-android | MIT License |
library/src/androidTest/java/OperationExpirationTests.kt | wultra | 259,247,352 | false | {"Kotlin": 284396, "Shell": 18200, "Java": 310} | /*
* Copyright 2022 Wultra s.r.o.
*
* 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... | 5 | Kotlin | 0 | 0 | ee125bc9e8c9ebee1ad3e9f3c6d581031fec3ea2 | 5,426 | mtoken-sdk-android | Apache License 2.0 |
sample/todo/common/src/commonMain/kotlin/moe/tlaster/common/App.kt | Tlaster | 349,750,473 | false | {"Kotlin": 182474} | package moe.tlaster.common
import androidx.compose.animation.scaleIn
import androidx.compose.animation.scaleOut
import androidx.compose.animation.slideInVertically
import androidx.compose.animation.slideOutVertically
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.MaterialThem... | 14 | Kotlin | 35 | 583 | 6abfc0b4b6215309c90398876cb750f59b23218a | 4,123 | PreCompose | MIT License |
os-util/src/main/java/org/web25/util/os/OS.kt | Web25 | 94,020,945 | false | null | package org.web25.util.os
import java.io.BufferedReader
import java.io.InputStreamReader
/**
* Created by felix on 6/8/17.
*/
val osname by lazy {
System.getProperty("os.name").toLowerCase()
}
fun <T> onOS(windows: (() -> T)? = null, linux: (() -> T)? = null, mac: (() -> T)? = null, other: ((name: String) -> ... | 0 | Kotlin | 0 | 0 | 6427fa273e799f5af10440221c16e67c78aeb2f1 | 644 | kotlin-util | MIT License |
frontend/src/main/kotlin/engine/Bootstrap.kt | nanodeath | 322,944,408 | false | null | package engine
import kotlinx.html.FlowContent
import kotlinx.html.div
class Bootstrap(val content: FlowContent)
fun FlowContent.bootstrap(cb: Bootstrap.() -> Unit) {
Bootstrap(this).cb()
}
fun Bootstrap.row(classes: String? = null, cb: FlowContent.() -> Unit) {
simpleDivHelper("row", classes, cb = cb)
}
f... | 1 | null | 1 | 4 | 3d697fcb75f623e24f1691d15ae6c15560a4bd7e | 1,664 | kotlin-aws-jamstack | The Unlicense |
dnie/src/main/java/es/fnmtrcm/ceres/certificadoDigitalFNMT/dnie/utils/NFCWatchdogRefresher.kt | CodeNationDev | 757,931,525 | false | {"Kotlin": 1417005, "C": 485745, "C++": 480977, "CMake": 283671, "Java": 166491} | package es.fnmtrcm.ceres.certificadoDigitalFNMT.dnie.utils
import android.nfc.Tag
import android.nfc.tech.IsoDep
import android.os.Handler
import android.os.HandlerThread
import android.util.Log
import java.lang.ref.WeakReference
internal object NFCWatchdogRefresher {
private val TAG = NFCWatchdogRefresher::class... | 0 | Kotlin | 0 | 0 | 9c5d7b9355c406992ff9126d4bd01d49d4778048 | 4,180 | FabricK | MIT License |
app/src/main/java/app/rockstar/feature/songs/list/adapter/SongItemDiffer.kt | UsmonWasTaken | 732,925,673 | false | {"Kotlin": 53881} | /*
* Copyright (c) 2023 The Rockstar authors and contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package app.rockstar.feature.songs.list.adapter
import androidx.recyclerview.widget.DiffUtil
internal object SongItemDiffer : DiffUtil.ItemCallba... | 0 | Kotlin | 0 | 0 | 8ef42719e87a5f2d9fb0f02ece52e7dd48129f96 | 706 | Rockstar | Apache License 2.0 |
app/src/main/java/com/poly/budgethelp/SpendingOverviewActivity.kt | Polystyreeni | 649,404,923 | false | {"Kotlin": 214505, "Java": 8486} | package com.poly.budgethelp
import android.content.Intent
import android.graphics.Color
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.AdapterView
import android.widget.ArrayAdapter
import android.widget.Button
import andr... | 0 | Kotlin | 0 | 0 | e8fc63484c5965db1f459be06aef8ff3e9c73df3 | 17,720 | BudgetHelp | Apache License 2.0 |
core/src/main/kotlin/materialui/components/gridlist/GridListElementBuilder.kt | subroh0508 | 167,797,152 | false | null | package materialui.components.gridlist
import kotlinx.html.Tag
import kotlinx.html.TagConsumer
import materialui.components.MaterialElementBuilder
import materialui.components.getValue
import materialui.components.setValue
import react.ComponentType
class GridListElementBuilder<T: Tag> internal constructor(
type:... | 14 | null | 27 | 81 | a959a951ace3b9bd49dc5405bea150d4d53cf162 | 825 | kotlin-material-ui | MIT License |
payjp-android-cardform/src/test/kotlin/jp/pay/android/testing/PayjpCardFormTestRule.kt | payjp | 111,647,224 | false | {"Gemfile.lock": 1, "Gradle": 13, "YAML": 3, "Java Properties": 12, "Shell": 5, "Text": 1, "Ignore List": 9, "Batchfile": 1, "Markdown": 2, "Ruby": 2, "Proguard": 2, "XML": 61, "Java": 6, "Kotlin": 161, "HTML": 354, "SVG": 4, "CSS": 2, "JavaScript": 8, "JSON": 1} | /*
*
* Copyright (c) 2021 PAY, Inc.
*
* 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, publis... | 1 | Kotlin | 2 | 6 | 6f3cb6184c3def6cae1244fdbdeb8351fb086cf1 | 2,071 | payjp-android | MIT License |
src/test/kotlin/no/nav/syfo/narmesteleder/service/BeOmNyNLServiceTest.kt | navikt | 258,142,447 | false | null | package no.nav.syfo.narmesteleder.service
import io.mockk.clearMocks
import io.mockk.every
import io.mockk.mockk
import io.mockk.mockkStatic
import no.nav.syfo.model.sykmeldingstatus.ArbeidsgiverStatusDTO
import no.nav.syfo.model.sykmeldingstatus.ShortNameDTO
import no.nav.syfo.model.sykmeldingstatus.SporsmalOgSvarDTO... | 0 | Kotlin | 0 | 0 | f80685e2e206d97603f2d1573a5f44724543b453 | 5,787 | syfosmaltinn | MIT License |
buildSrc/src/main/kotlin/fr/xgouchet/buildsrc/settings/KtLintConfig.kt | xgouchet | 92,030,208 | false | null | package fr.xgouchet.buildsrc.settings
import org.gradle.api.Project
import org.jlleitschuh.gradle.ktlint.KtlintExtension
fun Project.ktLintConfig() {
extensionConfig<KtlintExtension> {
debug.set(false)
android.set(true)
outputToConsole.set(true)
ignoreFailures.set(false)
e... | 6 | null | 3 | 83 | 0ab6c3a673fd8771e9fc02f0676a3a886992a1ef | 626 | Elmyr | MIT License |
app/src/main/java/com/android/taitasciore/chhtest/data/entity/mapper/CoinListMapper.kt | phanghos | 137,318,492 | false | {"Kotlin": 114821} | package com.android.taitasciore.chhtest.data.entity.mapper
import com.android.taitasciore.chhtest.data.entity.CoinListEntity
import com.android.taitasciore.chhtest.domain.model.CoinList
import javax.inject.Inject
open class CoinListMapper @Inject constructor(private val coinMapper: CoinMapper) : Mapper<CoinListEntity... | 0 | Kotlin | 0 | 0 | d34428f7cc008c8fa30d9fd5430b2288f56c4327 | 673 | chh-test | MIT License |
app/src/main/java/com/pr0gramm/app/services/preloading/PreloadService.kt | Zz9uk3 | 158,547,370 | true | {"Kotlin": 1141144, "Shell": 6640, "IDL": 3434, "Python": 1124} | package com.pr0gramm.app.services.preloading
import android.app.IntentService
import android.app.PendingIntent
import android.app.Service
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.PowerManager
import androidx.core.app.NotificationCompat
import androidx.core.a... | 0 | Kotlin | 0 | 0 | c173fa90bfef3266b80fece6fc67909cd90eaf0b | 11,835 | Pr0 | MIT License |
core-api/api/src/main/java/love/forte/simbot/api/message/results/Result.kt | simple-robot | 554,852,615 | false | null | /*
*
* * Copyright (c) 2021. ForteScarlet All rights reserved.
* * Project simple-robot
* * File MiraiAvatar.kt
* *
* * You can contact the author through the following channels:
* * github https://github.com/ForteScarlet
* * gitee https://gitee.com/ForteScarlet
* * email <EMAIL>
* * QQ 11... | 0 | Kotlin | 0 | 3 | c5d7c9ca8c81b2bddc250090739d7c7d0c110328 | 3,581 | simple-robot-v2 | Apache License 2.0 |
buildSrc/src/main/java/Compose.kt | hassan0shaban | 289,748,566 | false | null | import Versions.compose_version
object Compose {
const val composJUnitTest = "androidx.compose.ui:ui-test-junit4:${compose_version}"
const val composUiTooling = "androidx.compose.ui:ui-tooling:$compose_version"
const val composeAndroidX = "androidx.compose.ui:ui:$compose_version"
const val composeDialo... | 0 | Kotlin | 0 | 0 | 94b13cdec71a77bb0e2167e2027e66bdf99ba09d | 932 | Insta | Apache License 2.0 |
core/src/main/java/com/nowiwr01p/core/datastore/cities/data/MeetingStatus.kt | nowiwr01w | 584,138,480 | false | null | package com.nowiwr01p.core.datastore.cities.data
enum class MeetingStatus(val type: String) {
WAITING_FOR_PEOPLE("waiting"),
IN_PROGRESS("running"),
ENDED("ended")
} | 0 | Kotlin | 1 | 3 | 0ebdf8f0cc072cf1f07810a6c36e710f373bfc7f | 178 | Protest | MIT License |
app/src/main/java/com/androiddevs/mvvmnewsapp/models/Source.kt | Behnam12872 | 753,072,926 | false | {"Kotlin": 30459} | package com.androiddevs.mvvmnewsapp.models
data class Source(
val id: String?=null,
val name: String
) | 0 | Kotlin | 0 | 0 | c94c466f2b298ad1273a4cc44e9520afe73a40f5 | 111 | NewsApp | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.