path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/example/movplayv3/ui/components/items/MovplayResultPresentableItem.kt | Aldikitta | 514,876,509 | false | {"Kotlin": 850016} | package com.example.movplayv3.ui.components.items
import android.annotation.SuppressLint
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layo... | 1 | Kotlin | 12 | 77 | 8344e2a5cf62289c2b56494bf4ecd5227e26de31 | 2,764 | MovplayV3 | Apache License 2.0 |
app/app/src/main/java/xyz/mirage/app/presentation/navigation/Navigation.kt | sentrionic | 378,704,735 | false | null | package xyz.mirage.app.presentation.navigation
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.material.rememberScaffoldState
import androidx.compose.runtime.Composable
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.platform.LocalContext
import android... | 0 | Kotlin | 2 | 1 | 8f50fc8244f16b43b8e054e79bcd50e98765a0e1 | 16,065 | Mirage | MIT License |
buildSrc/src/main/java/Packages.kt | danherrera | 264,077,416 | true | {"Kotlin": 370612} | object Packages {
const val group = "subroh0508.net.kotlinmaterialui"
const val version = "0.3.16"
}
| 0 | null | 0 | 0 | 88ed1ad1d5a1a57206ea41753925ef69e473f317 | 109 | kotlin-material-ui | MIT License |
data/src/main/java/com/sk/splash/data/mappers/RemotePhotoMapper.kt | swapnilkadlag | 451,129,390 | false | {"Kotlin": 139048} | package com.sk.splash.data.mappers
import com.sk.splash.data.models.UIPhoto
import com.sk.splash.remote.models.RemotePhoto
interface RemotePhotoMapper : Mapper<RemotePhoto, UIPhoto>
class RemotePhotoMapperImpl(
private val photoUrlsMapper: RemotePhotoUrlsMapper,
) : RemotePhotoMapper {
override fun map(from:... | 0 | Kotlin | 0 | 4 | a71916fafd8031a3652bce1f77bc79e3c09ca288 | 561 | splash | Apache License 2.0 |
app/src/main/java/com/akter/videostoryview/VideoStoryAdapter.kt | akteruzzaman816 | 691,469,438 | false | {"Kotlin": 11015} | package com.akter.videostoryview
import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import com.akter.videostoryview.databinding.RowVideoShopFullViewBinding
class VideoStor... | 0 | Kotlin | 0 | 0 | 62e11e87e61882eb9a15f8209600b4148cfbaefe | 1,338 | VideoStoryView | Apache License 2.0 |
infra/src/fanpoll/infra/auth/AuthConst.kt | csieflyman | 359,559,498 | false | {"Kotlin": 785294, "JavaScript": 17435, "HTML": 6167, "PLpgSQL": 5563, "Dockerfile": 126} | /*
* Copyright (c) 2021. fanpoll All rights reserved.
*/
package fanpoll.infra.auth
object AuthConst {
const val API_KEY_HEADER_NAME = "X-API-KEY"
const val SESSION_ID_HEADER_NAME = "sid"
} | 1 | Kotlin | 9 | 74 | 1a7d54115dbc42c6a02230f527d9ad56862b4a0b | 202 | multi-projects-architecture-with-Ktor | MIT License |
app/src/main/java/org/listenbrainz/android/ui/screens/yim/YearInMusicActivity.kt | metabrainz | 550,726,972 | false | {"Kotlin": 1481175, "Ruby": 423} | package org.listenbrainz.android.ui.screens.yim
import android.os.Bundle
import android.widget.Toast
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.viewModels
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import ... | 25 | Kotlin | 31 | 99 | 573ab0ec6c5b87ea963f013174159ddfcd123976 | 1,769 | listenbrainz-android | Apache License 2.0 |
shared/src/commonMain/kotlin/Colors.kt | dilipraja | 705,292,719 | false | {"Kotlin": 10004, "Swift": 592, "Shell": 228} | import androidx.compose.material.Colors
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
open class Colors {
companion object {
@get:Composable
val Colors.maroon: Color
get() = Color(0xFF88022B)
@get:Composable
val Colors.yellow: Colo... | 0 | Kotlin | 0 | 0 | 38e09517e02a5f46daebfddaf8c1144b72fca22c | 853 | compose-example | Apache License 2.0 |
mesh-data/src/main/java/com/technocreatives/beckon/mesh/data/Address.kt | technocreatives | 364,517,134 | false | null | package com.technocreatives.beckon.mesh.data
import com.technocreatives.beckon.mesh.data.serializer.HexToIntSerializer
import com.technocreatives.beckon.mesh.data.serializer.SubscriptionAddressSerializer
import com.technocreatives.beckon.mesh.data.serializer.UuidSerializer
import com.technocreatives.beckon.mesh.data.u... | 1 | Kotlin | 1 | 8 | 2e252df19c02104821c393225ee8d5abefa07b74 | 1,017 | beckon-android | Apache License 2.0 |
app/src/androidTest/java/com/xeniac/fifaultimateteamcoin_dsfut_sell_fut/feature_onboarding/presentation/OnboardingScreenTest.kt | WilliamGates99 | 543,831,202 | false | {"Kotlin": 898249} | package com.xeniac.fifaultimateteamcoin_dsfut_sell_fut.feature_onboarding.presentation
import android.content.Context
import android.content.Intent
import androidx.activity.compose.setContent
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.assertTextEquals
import androidx.compose.ui.t... | 0 | Kotlin | 0 | 1 | a0b03bf204e6e681bbe587fdc928bff81e7e67e6 | 15,115 | FUTSale | Apache License 2.0 |
app/src/main/java/vn/loitp/a/cv/dragView/MenuDragViewActivity.kt | tplloi | 126,578,283 | false | null | package vn.loitp.a.cv.dragView
import android.content.Intent
import android.os.Bundle
import androidx.core.view.isVisible
import com.loitp.annotation.IsFullScreen
import com.loitp.annotation.LogTag
import com.loitp.core.base.BaseActivityFont
import com.loitp.core.ext.setSafeOnClickListener
import com.loitp.core.ext.se... | 0 | Kotlin | 0 | 10 | 333bebaf3287b1633f35d29b8adaf25b19c1859f | 1,599 | base | Apache License 2.0 |
themes/new-ui/new-ui-standalone/src/main/kotlin/org/jetbrains/jewel/themes/expui/standalone/style/AreaColors.kt | JetBrains | 440,164,967 | false | null | package org.jetbrains.jewel.themes.expui.standalone.style
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.runtime.Composable
import androidx.compose.runtime.compositionLocalOf
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Brush
i... | 17 | Kotlin | 8 | 318 | 817adc042a029698983c9686d0f1497204bfdf14 | 4,211 | jewel | Apache License 2.0 |
platform/lang-impl/src/com/intellij/ide/actions/searcheverywhere/FixedTabsListCustomizationStrategy.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.ide.actions.searcheverywhere
abstract class FixedTabsListCustomizationStrategy(private val shownIds: List<String>): TabsCustomizationStrategy {
override fun getSeparateTabCont... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 511 | intellij-community | Apache License 2.0 |
extensions/kotlin/src/main/java/com/extensions/kotlin/components/tuples/TupleOf2.kt | VitaliyDoskoch | 263,280,184 | false | null | package com.extensions.kotlin.components.tuples
open class TupleOf2<T1, T2>(
var first: T1,
var second: T2
) : Tuple() {
companion object {
@Suppress("UNCHECKED_CAST")
fun <T1, T2> fromList(list: List<Any?>): TupleOf2<T1, T2> {
return TupleOf2(list[0] as T1, list[1] as T2)
... | 0 | Kotlin | 0 | 0 | 6300ecd0e4f57dbbabcaffb76968a18d76912708 | 1,824 | Movies | MIT License |
core/ui/src/main/java/com/qure/ui/extentions/TedLatLng.kt | hegleB | 613,354,773 | false | {"Kotlin": 509795} | package com.qure.ui.extentions
import com.naver.maps.geometry.LatLng
import ted.gun0912.clustering.geometry.TedLatLng
fun TedLatLng.toLatlng(): LatLng {
return LatLng(this.latitude, this.longitude)
}
fun TedLatLng.toReverseLatlng(): LatLng {
return LatLng(this.longitude, this.latitude)
}
fun TedLatLng.toRev... | 0 | Kotlin | 0 | 1 | f15b4e12dcfad492ef6b7c8a5748928027ccd2e4 | 398 | FishingMemory | The Unlicense |
core/ui/src/main/java/com/qure/ui/extentions/TedLatLng.kt | hegleB | 613,354,773 | false | {"Kotlin": 509795} | package com.qure.ui.extentions
import com.naver.maps.geometry.LatLng
import ted.gun0912.clustering.geometry.TedLatLng
fun TedLatLng.toLatlng(): LatLng {
return LatLng(this.latitude, this.longitude)
}
fun TedLatLng.toReverseLatlng(): LatLng {
return LatLng(this.longitude, this.latitude)
}
fun TedLatLng.toRev... | 0 | Kotlin | 0 | 1 | f15b4e12dcfad492ef6b7c8a5748928027ccd2e4 | 398 | FishingMemory | The Unlicense |
tmp/arrays/youTrackTests/4099.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-32501
fun <T> expect(expected: T, actual: () -> T) {
}
var String.someProp: String?
get() = toString()
set(value) {}
fun main() {
val s = ""
expect(null) { s.someProp }
s.someProp = "foo"
expect("foo") { s.someProp }
}
| 1 | null | 12 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 266 | bbfgradle | Apache License 2.0 |
kosogor/src/main/kotlin/tanvd/kosogor/defaults/Wrapper.kt | TanVD | 171,291,006 | false | null | package tanvd.kosogor.defaults
import org.gradle.api.Project
import org.gradle.api.tasks.wrapper.Wrapper
import org.gradle.api.tasks.wrapper.Wrapper.DistributionType
/** The proxy configuration of `wrapper` */
data class WrapperConfig(var version: String = "6.8.1",
var distributionType: Distr... | 1 | Kotlin | 5 | 21 | 8ad8ea01e1c75f98c1834dfb9d11fe0724fda1db | 918 | kosogor | Apache License 2.0 |
location/src/test/java/org/odk/collect/location/tracker/ForegroundServiceLocationTrackerTest.kt | getodk | 40,213,809 | false | null | package org.odk.collect.location.tracker
import android.app.Application
import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.google.android.gms.location.LocationListener
import org.hamcrest.MatcherAssert.assertThat
import org.hamcrest.Matchers.equalTo
import... | 8 | null | 66 | 717 | 63050fdd265c42f3c340f0ada5cdff3c52a883bc | 5,354 | collect | Apache License 2.0 |
lib/src/commonTest/kotlin/Selectors.kt | monstar-lab-oss | 250,022,335 | false | null | import com.fuzz.kedux.createSelector
val nameSelector = createSelector<GlobalState, String>() { state -> state.name }
val namedChangedSelector = createSelector<GlobalState, Boolean>() { state -> state.nameChanged }
val locationSelector = createSelector<GlobalState, Location?>() { state -> state.location }
val locat... | 3 | Kotlin | 0 | 7 | 76d3919d84d03430ad78f673ccdafa4687cb919f | 556 | kedux | MIT License |
app/src/main/java/com/rudione/tranquilhaven/ui/authorization/fragments/AccountOptionsFragment.kt | Rudione | 579,201,331 | false | null | package com.rudione.tranquilhaven.ui.authorization.fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import com.rudione.tranquilhaven.R
import com.rudio... | 0 | Kotlin | 0 | 0 | 1198febe3bf8eaa52414457c5c96bfeb0f2f7834 | 1,304 | TranquilHaven | MIT License |
core/src/com/yopox/ld47/graphics/Fonts.kt | yopox | 300,811,828 | false | null | package com.yopox.ld47.graphics
import com.badlogic.gdx.Gdx
import com.badlogic.gdx.graphics.g2d.Batch
import com.badlogic.gdx.graphics.g2d.BitmapFont
import com.badlogic.gdx.graphics.g2d.GlyphLayout
import com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator
import com.badlogic.gdx.math.Vector2
object Fonts ... | 0 | null | 1 | 4 | 19867902caed4d99e0939eda0bcf19c22eabae6d | 1,464 | LD47 | Creative Commons Zero v1.0 Universal |
semanticlogger-kotlin/src/main/kotlin/de/roamingthings.semanticlogger/SemanticLogger.kt | roamingthings | 159,050,031 | false | null | /*
* Copyright © 2018 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 0 | Kotlin | 0 | 0 | f2ea9171d5c07c5b313578517448842850b8f0f9 | 8,038 | semanticlogger | Apache License 2.0 |
testing/src/main/kotlin/com/trib3/testing/LeakyMock.kt | trib3 | 191,460,324 | false | {"Shell": 1, "Maven POM": 10, "Text": 3, "Ignore List": 1, "EditorConfig": 1, "YAML": 4, "Markdown": 11, "Kotlin": 118, "Java Properties": 1, "HTML": 3, "XML": 5, "JavaScript": 3, "CSS": 1, "Java": 42, "Nginx": 1} | package com.trib3.testing
import org.easymock.Capture
import org.easymock.EasyMock
import org.easymock.EasyMockSupport
import org.easymock.internal.LastControl
/**
* Extension function to add a `mock<T>()` method to [EasyMockSupport]
* for less repetition when creating mocks.
*/
inline fun <reified T> EasyMockSupp... | 33 | Kotlin | 3 | 9 | 84916958ee1eec919b710737bbf505bec3f663ed | 6,056 | leakycauldron | Apache License 2.0 |
src/main/kotlin/pw/aru/bot/music/entities/MusicTrack.kt | annathelibri | 127,363,282 | false | {"Kotlin": 561547, "HTML": 2926, "Dockerfile": 475, "Shell": 430} | package pw.aru.bot.music.entities
import com.sedmelluq.discord.lavaplayer.track.AudioTrack
import pw.aru.bot.music.internal.TrackData
data class MusicTrack(
val track: AudioTrack,
val data: TrackData
) : AudioTrack by track | 0 | Kotlin | 0 | 0 | 479b02aa4a813d716c4e1b61088bfed1408d8955 | 233 | arudiscord | Apache License 2.0 |
onsenui-kitchensink/src/main/kotlin/com/example/PresentationPage.kt | adamint | 331,784,168 | true | {"Kotlin": 790864, "JavaScript": 29894, "HTML": 14557, "CSS": 3495, "Handlebars": 402} | package com.example
import pl.treksoft.kvision.core.onEvent
import pl.treksoft.kvision.html.Align
import pl.treksoft.kvision.html.p
import pl.treksoft.kvision.onsenui.core.Navigator
import pl.treksoft.kvision.onsenui.core.backButton
import pl.treksoft.kvision.onsenui.core.page
import pl.treksoft.kvision.onsenui.toolba... | 0 | null | 0 | 0 | 3bd7767240f299ffd9233bac4963ad31c13750d5 | 783 | kvision-examples | MIT License |
video-common-ui/src/test/java/com/kaleyra/video_common_ui/notification/receiver/hms/HmsPushNotificationReceiverTest.kt | KaleyraVideo | 686,975,102 | false | {"Kotlin": 3508517, "Shell": 7470, "Python": 6756, "Java": 1213} | package com.kaleyra.video_common_ui.notification.receiver.hms
import android.content.Intent
import androidx.work.OneTimeWorkRequest
import androidx.work.WorkManager
import com.kaleyra.video_common_ui.KaleyraVideoSharedPrefs
import com.kaleyra.video_common_ui.PushNotificationHandlingStrategy
import com.kaleyra.video_ut... | 0 | Kotlin | 0 | 1 | cddad1557475a5326f29bed3ad8926bbef27d79d | 4,712 | VideoAndroidSDK | Apache License 2.0 |
src/main/kotlin/ch/unil/pafanalysis/analysis/hints/DefaultStepHints.kt | UNIL-PAF | 811,731,184 | false | {"Kotlin": 492802, "R": 1119} | package ch.unil.pafanalysis.analysis.hints
import ch.unil.pafanalysis.analysis.model.StepHint
class DefaultStepHints {
val defaultList = listOf<StepHint>(
StepHint("load-dataset", "Add description", "Add description of experiment (for example experiment hypothesis from LIMS)."),
StepHint("edit-gr... | 0 | Kotlin | 0 | 0 | ab5e3d5486ae66f6d60c3f8fd6f78fae4afc226b | 2,265 | taram-backend | MIT License |
plugin-bazel-agent/src/test/kotlin/jetbrains/buildServer/agent/JacksonJsonSerializerTest.kt | JetBrains | 143,697,750 | false | {"Kotlin": 450284, "Java": 15926, "Starlark": 4160, "Gherkin": 3553, "ANTLR": 1773, "Batchfile": 968, "CSS": 636} | /*
* Copyright 2000-2023 JetBrains 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 agre... | 7 | Kotlin | 10 | 13 | 47f69a5fd7f6f7e851f3373890067d31183330c6 | 2,226 | teamcity-bazel-plugin | Apache License 2.0 |
java/dagger/hilt/android/plugin/main/src/main/kotlin/dagger/hilt/android/plugin/util/CopyTransform.kt | haaami01 | 670,141,242 | true | {"Java": 5756996, "Kotlin": 593381, "Starlark": 456435, "Shell": 23205, "Python": 2010} | /*
* Copyright (C) 2022 The Dagger Authors.
*
* 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 ag... | 0 | Java | 0 | 1 | e9116f01618f0411871707ab7c986a19e946495e | 1,756 | dagger | Apache License 2.0 |
content-types/content-types-core-services/src/main/kotlin/org/orkg/contenttypes/domain/actions/literaturelists/LiteratureListAuthorUpdateValidator.kt | TIBHannover | 197,416,205 | false | {"Kotlin": 5606089, "Cypher": 219418, "Python": 4881, "Shell": 2767, "Groovy": 1936, "HTML": 240} | package org.orkg.contenttypes.domain.actions.literaturelists
import org.orkg.contenttypes.domain.actions.AuthorValidator
import org.orkg.contenttypes.domain.actions.UpdateLiteratureListCommand
import org.orkg.contenttypes.domain.actions.UpdateLiteratureListState
import org.orkg.graph.output.ResourceRepository
import o... | 0 | Kotlin | 0 | 4 | cf8b0262867de295a9cec4478b28406d5727b235 | 1,023 | orkg-backend | MIT License |
node-kotlin/src/jsMain/kotlin/node/crypto/LargeNumberLike.kt | karakum-team | 393,199,102 | false | {"Kotlin": 7083457} | // Automatically generated - do not modify!
package node.crypto
typealias LargeNumberLike = Any /* NodeJS.ArrayBufferView | SharedArrayBuffer | ArrayBuffer | bigint */
| 0 | Kotlin | 6 | 26 | 3ca49a8f44fc8b46e393ffe66fbd81f8b4943c18 | 170 | types-kotlin | Apache License 2.0 |
plugin/src/org/jetbrains/haskell/debugger/utils/HaskellUtils.kt | Atsky | 12,811,746 | false | null | package org.jetbrains.haskell.debugger.utils
import com.intellij.openapi.project.Project
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.psi.PsiManager
import org.jetbrains.haskell.fileType.HaskellFile
import com.intellij.openapi.application.ApplicationManager
import java.util.concurrent.locks.Reentran... | 47 | null | 22 | 205 | a9be4e8c41202cba50f6f9aa72eb912f1fa92b8c | 2,121 | haskell-idea-plugin | Apache License 2.0 |
app/src/main/java/com/ebnrdwan/task/presentation/details/ArticleDetailsFragment.kt | ebnrdwan | 236,335,124 | false | null | package com.ebnrdwan.task.presentation.details
import android.content.Context
import android.os.Bundle
import android.view.Menu
import android.view.MenuInflater
import androidx.fragment.app.activityViewModels
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProvider
import androidx.navigation.frag... | 0 | Kotlin | 1 | 1 | 9090b4b9a1f6d6ee7541b86bc9610e97bad403fa | 3,212 | NY-Times | Apache License 2.0 |
src/main/kotlin/me/melijn/melijnbot/objects/music/AudioLoader.kt | J3ermuda | 262,919,578 | false | {"Gradle": 2, "INI": 2, "Text": 2, "Ignore List": 1, "Markdown": 5, "Java": 2, "XML": 1, "JSON": 1, "GraphQL": 4, "Kotlin": 416} | package me.melijn.melijnbot.objects.music
import com.sedmelluq.discord.lavaplayer.player.AudioLoadResultHandler
import com.sedmelluq.discord.lavaplayer.tools.FriendlyException
import com.sedmelluq.discord.lavaplayer.track.AudioPlaylist
import com.sedmelluq.discord.lavaplayer.track.AudioTrack
import com.wrapper.spotify... | 1 | null | 1 | 1 | 24834c6226d1e7f315056f224f2daaab5a66ff06 | 20,445 | Melijn | MIT License |
app/src/main/java/com/playlab/marvelcomicsinfo/model/MarvelRemoteKeys.kt | joaoplay16 | 483,471,720 | false | {"Kotlin": 100069, "Java": 663} | package com.playlab.marvelcomicsinfo.model
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.playlab.marvelcomicsinfo.util.Constants.MARVEL_REMOTE_KEYS_TABLE
@Entity(tableName = MARVEL_REMOTE_KEYS_TABLE)
data class MarvelRemoteKeys(
@PrimaryKey(autoGenerate = false)
val id: String,
va... | 0 | Kotlin | 0 | 5 | 6b08b9d81263080a845ce0797a9ba0d862b2c1a1 | 473 | marvel-comics-info | Apache License 2.0 |
app/src/main/java/com/playlab/marvelcomicsinfo/model/MarvelRemoteKeys.kt | joaoplay16 | 483,471,720 | false | {"Kotlin": 100069, "Java": 663} | package com.playlab.marvelcomicsinfo.model
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.playlab.marvelcomicsinfo.util.Constants.MARVEL_REMOTE_KEYS_TABLE
@Entity(tableName = MARVEL_REMOTE_KEYS_TABLE)
data class MarvelRemoteKeys(
@PrimaryKey(autoGenerate = false)
val id: String,
va... | 0 | Kotlin | 0 | 5 | 6b08b9d81263080a845ce0797a9ba0d862b2c1a1 | 473 | marvel-comics-info | Apache License 2.0 |
app/src/main/java/com/example/translateit/ui/theme/Color.kt | AmrMagdyElmoogy | 692,908,594 | false | {"Kotlin": 45052} | package com.example.translateit.ui.theme
import androidx.compose.ui.graphics.Color
val md_theme_light_primary = Color(0xFF006491)
val md_theme_light_onPrimary = Color(0xFFFFFFFF)
val md_theme_light_primaryContainer = Color(0xFFC9E6FF)
val md_theme_light_onPrimaryContainer = Color(0xFF001E2F)
val md_theme_light_seconda... | 0 | Kotlin | 0 | 0 | a1829b750dfee9d573d966b21a9786fd34b7b95d | 3,204 | TranslateIT | Apache License 2.0 |
src/test/kotlin/com/severett/kotlin_ras/KotlinRASTest.kt | severne-lucanet | 109,382,646 | false | null | /**
* Copyright 2017 Severn Everett
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 0 | Kotlin | 0 | 0 | 3c646a7dd9707c790da8f36bc79d0ade707c80ba | 10,768 | kotlin_ras | Apache License 2.0 |
puree/src/main/java/com/cookpad/puree/kotlin/PureeLogger.kt | cookpad | 378,795,944 | false | null | package com.cookpad.puree.kotlin
import android.util.Log
import androidx.annotation.VisibleForTesting
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.OnLifecycleEvent
import com.cookpad.puree.kotlin.output.PureeBufferedOutput
import com.cookpad.puree.kotlin.out... | 1 | Kotlin | 2 | 2 | e2c79160d5780ae536b12e8a8716a619a0b83e07 | 8,757 | puree-kotlin | MIT License |
app/src/main/java/com/gauvain/seigneur/goqo/presentation/viewmodel/MainViewModel.kt | GauvainSeigneur | 265,851,273 | false | null | package com.gauvain.seigneur.goqo.presentation.viewmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.LivePagedListBuilder
import androidx.paging.PagedList
import com.gauvain.seigneur.goqo.domain.model.toData
import com.gauvain.s... | 0 | Kotlin | 0 | 0 | 044fc0c1fe0ef58e4f63c69d680c160722c7f718 | 1,306 | GoQo | Apache License 2.0 |
app/src/main/kotlin/com/mhp/showcase/navigation/DefaultRouter.kt | MHP-A-Porsche-Company | 100,703,518 | false | null | package com.mhp.showcase.navigation
import android.content.Context
import android.content.Intent
import android.content.Intent.FLAG_ACTIVITY_NEW_TASK
import android.net.Uri
import com.mhp.showcase.ShowcaseApplication
import com.mhp.showcase.navigation.Router.RouteTarget
import com.mhp.showcase.util.Constants
import ja... | 0 | Kotlin | 0 | 2 | e3a9884a090be8cdb909981f4267fdb61cf91455 | 1,597 | CDUI-Showcase-Android | MIT License |
library/src/main/java/com/minminaya/policy/AbsRoundViewPolicy.kt | minminaya | 190,903,546 | false | null | package com.mrbattery.policy
import android.content.Context
import android.util.AttributeSet
import android.view.View
import com.mrbattery.dip2px
/**
* 圆角策略抽象类
* @author minminaya
* @email <EMAIL>
* @time Created by 2019/6/8 0:27
*
*/
abstract class AbsRoundViewPolicy(
view: View,
context: Context,
... | 5 | null | 14 | 96 | 8ea78567ba31f0b576b3e6fe71caed048e0767d2 | 1,182 | GenaralRoundLayout | MIT License |
app/src/androidTest/kotlin/ItemDaoTest.kt | Bekzat-Chauvbayev | 729,098,378 | false | {"Kotlin": 65117} | import android.app.Application
import android.content.Context
import androidx.room.Room
import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.example.inventory.data.InventoryDatabase
import com.example.inventory.data.Item
import com.example.inventory.data.Item... | 0 | Kotlin | 0 | 0 | d09dd6937fbf2af31c0a45e3be20273e008a42f7 | 1,889 | Persist-data-with-Room | Apache License 2.0 |
gallerypicker/src/main/java/top/kikt/gallerypicker/ui/GridDividerDecoration.kt | CaiJingLong | 150,243,289 | false | null | package top.kikt.gallerypicker.ui
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.Rect
import android.support.annotation.ColorInt
import android.support.v7.widget.GridLayoutManager
import android.support.v7.widget.RecyclerView
import android.support.v7.widget.StaggeredGridLayoutMan... | 0 | Kotlin | 0 | 0 | ab46938be6d977dce491d486112fa13c84d19fa5 | 5,481 | android_image_selector | MIT License |
Android/app/src/test/java/com/didichuxing/doraemondemo/KotlinBaseUnitTest.kt | didi | 144,705,602 | false | {"Markdown": 26, "Ruby": 5, "Text": 5, "Ignore List": 26, "XML": 404, "OpenStep Property List": 14, "Objective-C": 804, "JSON": 140, "Objective-C++": 1, "C": 8, "Swift": 25, "HTML": 10, "JavaScript": 102, "Vue": 53, "CSS": 2, "Less": 2, "Shell": 19, "Gradle": 27, "Java Properties": 6, "Batchfile": 2, "EditorConfig": 1,... | package com.didichuxing.doraemondemo
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.launch
import okio.ByteString.Companion.encodeUtf8
import org.junit.Test
import java.io.File
import java.io.FileOutputStream
import java.lang.reflect.Proxy
import java.util.*
/**
* Example local unit test, which w... | 252 | Java | 3074 | 20,003 | 166a1a92c6fd509f6b0ae3e8dd9993f631b05709 | 937 | DoKit | Apache License 2.0 |
implementation/src/main/kotlin/io/github/tomplum/aoc/forest/toboggan/ForestMap.kt | TomPlum | 317,142,882 | false | null | package io.github.tomplum.aoc.forest.toboggan
import io.github.tomplum.aoc.extensions.product
import io.github.tomplum.libs.logging.AdventLogger
import io.github.tomplum.libs.math.map.AdventMap2D
import io.github.tomplum.libs.math.point.Point2D
/**
* Due to the local geology, trees in this area only grow on exact in... | 1 | Kotlin | 0 | 0 | 73b3eacb7cb8a7382f8891d3866eda983b6ea7a9 | 2,278 | advent-of-code-2020 | Apache License 2.0 |
src/main/kotlin/T3.kt | KilluaSSR | 763,466,025 | false | {"Kotlin": 106189, "Go": 1048} | class SolutionT3 {
fun lengthOfLongestSubstring(s:String): Int {
var left = 0
var longest = 0
var right = 0
val window = HashMap<Char,Int>()
while(right<s.length){
val c = s[right]
right++
window.put(c,window.getOrDefault(c,0)+1)
... | 0 | Kotlin | 0 | 1 | 879d82d074d91dd3548aeaa94c5ea54bd8cada2c | 643 | LeetcodeKotlin | MIT License |
usvm-core/src/test/kotlin/org/usvm/TestApplicationGraph.kt | UnitTestBot | 586,907,774 | false | {"Kotlin": 2623144, "Java": 476836} | package org.usvm
import org.usvm.statistics.ApplicationGraph
data class TestInstruction(val method: String, val offset: Int)
internal interface TestMethodGraphBuilder {
fun entryPoint(offset: Int)
fun exitPoint(offset: Int)
fun edge(from: Int, to: Int)
fun bidirectionalEdge(from: Int, to: Int)
fu... | 36 | Kotlin | 4 | 9 | 819268c3c77c05d798891be826164bbede63fdfb | 4,062 | usvm | Apache License 2.0 |
Crash/src/main/java/com/omega_r/base/crash/CrashInitProvider.kt | Omega-R | 179,444,423 | false | {"Gradle": 9, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 8, "Batchfile": 1, "Markdown": 1, "Proguard": 3, "Java": 2, "XML": 25, "Kotlin": 110, "INI": 1} | package com.omega_r.base.crash
import android.app.Application
import android.content.ContentProvider
import android.content.ContentValues
import android.database.Cursor
import android.net.Uri
import com.omega_r.base.crash.CrashSender.Companion
class CrashInitProvider: ContentProvider() {
override fun onCreate():... | 10 | Kotlin | 1 | 0 | ea5318c368ff0bfee77085e5ec5d944de2453265 | 988 | OmegaBase | MIT License |
PushNotification/app/src/main/java/com/juhwan/anyang_yi/present/views/home/social/KakaoAdapter.kt | juhwankim-dev | 324,930,598 | false | null | package com.juhwan.anyang_yi.present.views.home.social
import android.content.Intent
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.juhwan.anyang_yi.databinding.ItemKakaoBinding
import com.juhwan.anyang_yi.domain.model.Kakao
import com.juhwa... | 1 | Kotlin | 1 | 5 | ae17bf81ec4bdf7a8704710b742b44cfc84a6b04 | 1,494 | pushNotificationApp | Apache License 2.0 |
domene/main/no/nav/aap/domene/vilkår/Paragraf_11_27FørsteLedd.kt | navikt | 447,233,076 | false | null | package no.nav.aap.domene.vilkår
import no.nav.aap.domene.UlovligTilstandException.Companion.ulovligTilstand
import no.nav.aap.domene.Vedtak
import no.nav.aap.domene.entitet.Fødselsdato
import no.nav.aap.domene.vilkår.Paragraf_11_27FørsteLedd.*
import no.nav.aap.domene.vilkår.Totrinnskontroll.Companion.gjenopprett
imp... | 1 | Kotlin | 0 | 3 | 328104918b73503f92b63b875cb774a5a93efbf9 | 9,790 | aap-vedtak | MIT License |
idea/idea-frontend-fir/testData/symbolPointer/classSecondaryConstructors.kt | IVIanuu | 244,839,230 | false | null | class A() {
constructor(x: Int): this()
constructor(y: Int, z: String) : this(y)
}
// SYMBOLS:
KtFirConstructorSymbol:
annotatedType: [] A
annotations: []
containingClassIdIfNonLocal: A
isPrimary: true
origin: SOURCE
symbolKind: MEMBER
valueParameters: []
visibility: PUBLIC
KtFirFunctionValueParam... | 1 | null | 1 | 1 | f49cf2d5cabf8fb9833ec95e1151a00b8b53d087 | 2,084 | kotlin | Apache License 2.0 |
src/main/kotlin/org/digma/intellij/plugin/ui/jcef/BaseMessageRouterHandler.kt | digma-ai | 472,408,329 | false | {"Kotlin": 1198585, "Java": 780476, "C#": 114216, "FreeMarker": 15244, "HTML": 12089, "Shell": 5404} | package org.digma.intellij.plugin.ui.jcef
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databind.ObjectMapper
import com.intellij.ide.BrowserUtil
import com.intellij.openapi.components.service
import com.intellij.openapi.diagnostic.Logger
import com.intellij.openapi.fileEditor.impl.HTMLEd... | 393 | Kotlin | 6 | 18 | fc5e9e843a7c8f3e4fda1fb57ebe60f6c3e022aa | 8,026 | digma-intellij-plugin | MIT License |
render/jpql/src/main/kotlin/com/linecorp/kotlinjdsl/render/jpql/serializer/impl/JpqlNotInSerializer.kt | line | 442,633,985 | false | null | package com.linecorp.kotlinjdsl.render.jpql.serializer.impl
import com.linecorp.kotlinjdsl.Internal
import com.linecorp.kotlinjdsl.iterable.IterableUtils
import com.linecorp.kotlinjdsl.querymodel.jpql.predicate.impl.JpqlNotIn
import com.linecorp.kotlinjdsl.render.RenderContext
import com.linecorp.kotlinjdsl.render.jpq... | 6 | null | 86 | 705 | 3a58ff84b1c91bbefd428634f74a94a18c9b76fd | 1,319 | kotlin-jdsl | Apache License 2.0 |
compiler/testData/ir/irText/declarations/delegatedProperties.kt | JakeWharton | 99,388,807 | false | null | // WITH_RUNTIME
val test1 by lazy { 42 }
class C(val map: MutableMap<String, Any>) {
val test2 by lazy { 42 }
var test3 by map
}
var test4 by hashMapOf<String, Any>() | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 177 | kotlin | Apache License 2.0 |
template/app/src/iosMain/kotlin/MainViewController.kt | kotlitecture | 790,159,970 | false | {"Kotlin": 482571, "Swift": 543, "JavaScript": 313, "HTML": 234} | import androidx.compose.ui.window.ComposeUIViewController
import kotli.app.App
fun MainViewController() = ComposeUIViewController { App() } | 0 | Kotlin | 3 | 55 | b96c8867f393bedba65b2f6f8a40e806bf07bcd9 | 140 | template-multiplatform-compose | MIT License |
app/src/main/kotlin/com/mstoyanov/musiclessons/model/Weekday.kt | mstoyanovca | 121,074,676 | false | {"Kotlin": 114541} | package com.mstoyanov.musiclessons.model
import java.io.Serializable
enum class Weekday(private var value: String) : Serializable {
MONDAY("Monday"),
TUESDAY("Tuesday"),
WEDNESDAY("Wednesday"),
THURSDAY("Thursday"),
FRIDAY("Friday"),
SATURDAY("Saturday"),
SUNDAY("Sunday");
fun display... | 0 | Kotlin | 1 | 0 | 0219f81ef221ae85f96a6329dc8c1358f75dccb8 | 367 | music-lessons | MIT License |
sdk-core/src/main/java/com/ownid/sdk/internal/OwnIdActivity.kt | OwnID | 414,235,878 | false | null | package com.ownid.sdk.internal
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import androidx.annotation.VisibleForTesting
import com.ownid.sdk.InternalOwnIdAPI
import com.ownid.sdk.exception.FlowCanceled
import com.ownid.sdk.exc... | 0 | Kotlin | 0 | 1 | d71f58341c1485ccb69214bccd8c418de1b1de20 | 5,365 | ownid-android-sdk | Apache License 2.0 |
app/src/androidTest/java/com/vignesh/todo/common/repository/local/db/dao/TDTodoStatusDaoTest.kt | vigneshsskv | 486,442,436 | false | null | package com.vignesh.todo.common.repository.local.db.dao
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.test.filters.SmallTest
import com.google.common.truth.Truth
import com.vignesh.todo.common.dj.LNCommonRepositoryModuleTest
import com.vignesh.todo.common.repository.local.db.TDData... | 0 | Kotlin | 0 | 0 | 00d977f0c7f53b2053424ee6bf97b9ea4797056b | 2,687 | Todo-Android-hilt | MIT License |
app/src/main/java/mil/nga/msi/ui/map/settings/layers/geopackage/MapGeopackageLayerSettingsScreen.kt | ngageoint | 588,211,646 | false | {"Kotlin": 1876117} | package mil.nga.msi.ui.map.settings.layers.geopackage
import android.net.Uri
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Close
impo... | 0 | Kotlin | 0 | 0 | 24d0765298274e7aa2d80ec0f147306a61d909ef | 8,594 | marlin-android | MIT License |
app/src/main/java/com/wanderlei/movieapp/search_movie_feature/domain/source/MovieSearchRemoteDataSource.kt | WanderleiSantos | 802,153,403 | false | {"Kotlin": 58636} | package com.wanderlei.movieapp.search_movie_feature.domain.source
import com.wanderlei.movieapp.core.data.remote.response.SearchResponse
import com.wanderlei.movieapp.core.paging.MovieSearchPagingSource
interface MovieSearchRemoteDataSource {
fun getSearchMoviePagingSources(query: String): MovieSearchPagingSource... | 0 | Kotlin | 0 | 0 | 26f9c3e77832833ea60c3a356c4838beb607da25 | 396 | movie-app-jetpack-compose | MIT License |
sqldelight-studio-plugin/src/main/kotlin/com/squareup/sqldelight/intellij/SqlDelightManager.kt | iosphere | 122,855,496 | false | null | /*
* Copyright (C) 2016 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... | 1 | null | 1 | 1 | f859416ce2d0f1b8b4ca5565dcb0c25b7e5cec15 | 3,728 | sqldelight | Apache License 2.0 |
core/ui/src/main/kotlin/com/t8rin/imagetoolboxlite/core/ui/icons/material/Stacks.kt | T8RIN | 767,600,774 | 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 ... | 5 | null | 84 | 8 | f8fe322c2bde32544e207b49a01cfeac92c187ce | 4,726 | ImageToolboxLite | Apache License 2.0 |
app/src/main/java/de/seemoo/at_tracking_detection/util/BindingAdapter.kt | seemoo-lab | 385,199,222 | false | {"Kotlin": 491934, "Ruby": 1078} | package de.seemoo.at_tracking_detection.util
import android.annotation.SuppressLint
import android.bluetooth.le.ScanResult
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import androidx.databinding.BindingAdapter
import androidx.recyclerview.widget.RecyclerView
import com.googl... | 20 | Kotlin | 99 | 1,848 | 2b0e247158376e3169601e44eb286f7fbedae2de | 3,988 | AirGuard | Apache License 2.0 |
src/player/main/sp/it/pl/ui/item_node/FieldedPredicateItemNode.kt | sghpjuikit | 18,862,317 | false | null | package sp.it.pl.ui.item_node
import java.util.function.Consumer
import java.util.function.Predicate
import java.util.function.Supplier
import javafx.geometry.Pos
import javafx.scene.control.ComboBox
import javafx.scene.control.Tooltip
import javafx.scene.layout.HBox
import javafx.scene.layout.Priority.ALWAYS
import s... | 11 | null | 2 | 22 | 0a2f29ad192bb224a5737bac012f772c8025e348 | 5,077 | player | RSA Message-Digest License |
app/src/main/java/microteam/data/remote/KtorClientWebService.kt | yugal-nandurkar | 876,869,030 | false | {"Kotlin": 114257} |
package microteam.data.remote
import io.ktor.client.HttpClient
import io.ktor.client.call.body
import io.ktor.client.request.request
import io.ktor.client.statement.HttpResponse
class KtorClientWebService : WebService {
override suspend fun getXMlString(url: String): String {
val client = HttpClient()
... | 0 | Kotlin | 0 | 0 | 1a68295d839ec5bbd9ce131fe139d4fe63a6ea13 | 711 | microteam-android-news | MIT License |
domain/src/main/kotlin/com/lomeone/domain/user/entity/UserRole.kt | comstering | 583,942,276 | false | {"Kotlin": 67783, "Smarty": 1861} | package com.lomeone.domain.user.entity
import com.lomeone.domain.common.entity.AuditEntity
import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.EnumType
import jakarta.persistence.Enumerated
import jakarta.persistence.GeneratedValue
import jakarta.persistence.GenerationType
im... | 10 | Kotlin | 0 | 0 | d72d2123d3a2019c3ae8c1236d991905f3368d4e | 1,133 | lomeone-server | MIT License |
app/src/androidTest/java/com/example/countryapplication/ui/CountryScreenUiTest.kt | ArnoudBury | 736,748,076 | false | {"Kotlin": 247251} | package com.example.countryapplication.ui
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.onNodeWithText
import com.example.countryapplication.model.Car
import com.example.countryapplication.model.CoatOfArms
import com.example.c... | 0 | Kotlin | 0 | 0 | 4ed765c89955b19b70809eb1ce654539fe15036f | 8,486 | Android_Arnoud_Bury_G3A2 | MIT License |
src/jsMain/kotlin/external/pkijs/index.pkijs.src.Time.module_pkijs.kt | ehn-dcc-development | 356,229,028 | false | null | @file:JsModule("pkijs/src/PrivateKeyUsagePeriod")
@file:JsNonModule
@file:Suppress(
"INTERFACE_WITH_SUPERCLASS",
"OVERRIDING_FINAL_MEMBER",
"RETURN_TYPE_MISMATCH_ON_OVERRIDE",
"CONFLICTING_OVERLOADS"
)
package pkijs.src.PrivateKeyUsagePeriod
import kotlin.js.Date
@JsName("default")
open external clas... | 4 | Kotlin | 24 | 22 | e4ab29a52bda50e407028cc9489ad066404d3a29 | 672 | hcert-kotlin | Apache License 2.0 |
todo-sample/src/main/java/com/toggl/komposable/sample/todo/edit/EditStoreViewModel.kt | toggl | 316,494,344 | false | {"Kotlin": 90172} | package com.toggl.komposable.sample.todo.edit
import androidx.lifecycle.ViewModel
import com.toggl.komposable.architecture.Store
import com.toggl.komposable.sample.todo.ViewStateProvider
import com.toggl.komposable.sample.todo.data.EditableTodoItem
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coro... | 5 | Kotlin | 17 | 223 | 49c47a30dcb71fd35d9c70fa468cf91820b34f33 | 847 | komposable-architecture | Apache License 2.0 |
usecases/src/main/java/com/ibnsina/usecases/usecases/implementation/NotesUseCaseImpl.kt | IslamAssem | 377,119,536 | false | null | package com.ibnsina.usecases.usecases.implementation
import com.ibnsina.entites.note.Note
import com.ibnsina.usecases.repositories.abstraction.Repository
import com.ibnsina.usecases.usecases.abstraction.NotesUseCase
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject
class NotesUseCaseImpl @Inject construc... | 1 | null | 1 | 1 | 398a87f346813db2e3f5db87bdba655c5dc3536d | 533 | Notes-Task | Apache License 2.0 |
app/src/main/java/com/ayia/nightmodekt/ThemeChanger.kt | ayiaware | 258,361,493 | false | {"Kotlin": 5944} | package com.ayia.nightmodekt
import androidx.appcompat.app.AppCompatDelegate
class ThemeChanger{
operator fun invoke(theme: Theme) = change(theme)
private fun change(theme: Theme) {
when (theme) {
Theme.LIGHT_MODE -> AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO... | 0 | Kotlin | 1 | 4 | c8c4144b69daeaab1a24dfa1213efbe3319a8d89 | 559 | DarkMode-Kotlin | Apache License 2.0 |
packages/@simpli/cli-server/generator/injected/src/test/module/MailTest.kt | simplitech | 128,203,547 | false | {"JavaScript": 268743, "Kotlin": 98448, "TypeScript": 58773, "CSS": 41352, "HTML": 37252, "Vue": 25233, "SCSS": 12513, "Shell": 1097, "Dockerfile": 945} | <%_ var packageAddress = options.serverSetup.packageAddress _%>
<%_ var moduleName = options.serverSetup.moduleName _%>
package <%-packageAddress%>.<%-moduleName%>
import <%-packageAddress%>.<%-moduleName%>.mail.RecoverPasswordMail
import org.junit.Test
/**
* Test Mail services
* @author Simpli CLI generator
*/
cl... | 59 | JavaScript | 0 | 4 | 8c6a7f85da614627e205fca68125317d2732adcc | 750 | simpli-cli | MIT License |
testutil/src/commonMain/kotlin/io/github/pdvrieze/xmlutil/testutil/assertXmlEquals.kt | pdvrieze | 143,553,364 | false | null | /*
* Copyright (c) 2022.
*
* This file is part of xmlutil.
*
* This file is licenced to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You should have received a copy of the license with the source distribution.
* Alternatively, y... | 16 | Kotlin | 25 | 276 | 5de8121b45d851fbbe730aa124c2b8054df70beb | 3,968 | xmlutil | Apache License 2.0 |
modo-compose/src/main/java/com/github/terrakok/modo/Screen.kt | ikarenkov | 336,628,876 | false | {"Kotlin": 93642} | package com.github.terrakok.modo
import android.os.Parcelable
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
/**
* Basic interface for a Modo screen. Inherit for it directly if your screen is not going to have any nested screens.
* Use [ContainerScreen] for screens with nested screen... | 9 | Kotlin | 17 | 277 | 916088f2425e4eef544c5309c6bf51dd76500dd5 | 838 | Modo | MIT License |
app/src/main/java/com/dnegu/pokemonapichallenge/home/data/model/response/GenerationVi.kt | dnegu | 682,408,796 | false | null | package com.dnegu.pokemonapichallenge.home.data.model.response
data class GenerationVi(
val omegaruby_alphasapphire: OmegarubyAlphasapphire,
val x_y: XY
) | 0 | Kotlin | 0 | 0 | e122c3a433dc3aab9617ceba0011ff2fd29b1628 | 163 | PokemonApiChallenge | MIT License |
app/src/main/java/com/a10miaomiao/bilimiao/page/user/UserChannelDetailViewModel.kt | 10miaomiao | 142,169,120 | false | null | package com.a10miaomiao.bilimiao.page.user
import android.content.Context
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.a10miaomiao.bilimiao.MainNavGraph
import com.a10miaomiao.bilimiao.comm.MiaoBindingUi
import com.a10miaomiao.bilimiao.co... | 44 | null | 38 | 977 | 1d59b82ba30b4c2e83c781479d09c48c3a82cd47 | 3,922 | bilimiao2 | Apache License 2.0 |
bitcoincore/src/main/kotlin/io/horizontalsystems/bitcoincore/network/messages/MempoolMessage.kt | horizontalsystems | 147,199,533 | false | null | package io.space.bitcoincore.network.messages
class MempoolMessage : IMessage {
override fun toString(): String {
return "MempoolMessage()"
}
}
class MempoolMessageSerializer : IMessageSerializer {
override val command: String = "mempool"
override fun serialize(message: IMessage): ByteArray? ... | 20 | null | 55 | 96 | 110018d54d82bb4e3c2a1d6b0ddd1bb9eeff9167 | 435 | bitcoin-kit-android | MIT License |
gi/src/commonMain/kotlin/org/anime_game_servers/multi_proto/gi/data/activity/crystal_link/CrystalLinkActivityDetailInfo.kt | Anime-Game-Servers | 642,871,918 | false | {"Kotlin": 1651536} | package org.anime_game_servers.multi_proto.gi.data.activity.crystal_link
import org.anime_game_servers.core.base.Version.GI_2_6_0
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.annotations.proto.ProtoModel
@AddedIn(GI_2_6_0)
@ProtoModel
internal interface CrystalLi... | 0 | Kotlin | 2 | 6 | 7639afe4f546aa5bbd9b4afc9c06c17f9547c588 | 421 | anime-game-multi-proto | MIT License |
lib/src/main/kotlin/com/github/xingray/kotlinbase/interfaces/consumer/index/ByteIndexConsumer.kt | XingRay | 869,362,227 | false | {"Kotlin": 405003} | package com.github.xingray.kotlinbase.interfaces.consumer.index
fun interface ByteIndexConsumer {
fun accept(value: Byte, index: Int)
}
| 0 | Kotlin | 0 | 0 | 8a88144b806f51c5c3d9f197b344f70a84adbe7b | 141 | kotlin-base | Apache License 2.0 |
BoundServices/app/src/main/java/github/nisrulz/example/boundservices/MainActivity.kt | nisrulz | 52,518,462 | false | {"Java": 272459, "Python": 207106, "Kotlin": 186873, "Shell": 7563, "CMake": 227, "C": 200, "HTML": 174} | package github.nisrulz.example.boundservices
import android.content.ComponentName
import android.content.Intent
import android.content.ServiceConnection
import android.os.*
import androidx.appcompat.app.AppCompatActivity
import github.nisrulz.example.boundservices.databinding.ActivityMainBinding
class MainActivity : ... | 7 | Java | 668 | 1,738 | 3ca3cffbfc1d1f8e64681ff8b16269884aa4bc00 | 2,019 | android-examples | Apache License 2.0 |
customize/canvas/src/main/java/com/tzt/custom/canvas/widget/PieView.kt | tzt1994 | 263,828,419 | false | null | package com.tzt.studykt.customView.canvasdraw.widget
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.util.AttributeSet
import android.view.View
/**
* Description:
*
* @author tangzhentao
* @since 2020/4/26
*/
class BarView:... | 0 | Kotlin | 1 | 5 | b3ede59ae12d614fc827dddb5c506cb103cc3211 | 1,436 | customizeKt | Apache License 2.0 |
app/src/main/java/com/chronoscoper/android/securescreen/BootReceiver.kt | vaginessa | 115,281,514 | true | {"Kotlin": 19269, "Java": 1193} | /*
* Copyright 2017 KoFuk
*
* 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 wri... | 0 | Kotlin | 0 | 0 | a4deaef8eefdc5f37940ab89307509b14337dcd7 | 2,075 | SecureScreen | Apache License 2.0 |
android/testSrc/com/android/tools/idea/testartifacts/instrumented/testsuite/view/DetailsViewDeviceSelectorListViewTest.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Java | 187 | 751 | 16d17317f2c44ec46e8cd2180faf9c349d381a06 | 3,038 | android | Apache License 2.0 |
app/src/main/java/aodev/blue/rxsandbox/model/operator/observable/combine/ObservableMerge.kt | esnaultdev | 146,037,889 | false | null | package aodev.blue.rxsandbox.model.operator.observable.combine
import aodev.blue.rxsandbox.model.Config
import aodev.blue.rxsandbox.model.ObservableT
import aodev.blue.rxsandbox.model.operator.Operator
class ObservableMerge<T : Any> : Operator {
fun apply(input: List<ObservableT<T>>): ObservableT<T> {
r... | 0 | Kotlin | 0 | 1 | 57579e059dca90ea2b10e818a478ce391c1fd07f | 1,709 | RxSandbox | MIT License |
adaptive-ui/src/commonMain/kotlin/fun/adaptive/grapics/canvas/fragment/CanvasSvg.kt | spxbhuhb | 788,711,010 | false | {"Kotlin": 1962108, "Java": 21683, "HTML": 5903, "JavaScript": 2910, "Shell": 687} | /*
* Copyright © 2020-2024, Simplexion, Hungary and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package `fun`.adaptive.grapics.canvas.fragment
import `fun`.adaptive.foundation.AdaptiveActual
import `fun`.adaptive.foundation.AdaptiveExpect
import `fun`.adaptive.foundation.AdaptiveF... | 20 | Kotlin | 0 | 2 | 49b455fab4b5b5ce7d15960e81a3b10f7bf805cb | 1,916 | adaptive | Apache License 2.0 |
app/src/main/java/com/elementary/tasks/reminder/build/valuedialog/controller/core/AbstractValueAndTypeController.kt | naz013 | 165,067,747 | false | {"Kotlin": 2971145, "HTML": 20925} | package com.elementary.tasks.reminder.build.valuedialog.controller.core
import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.ViewGroup
import com.elementary.tasks.core.views.common.ValueAndTypePickerView
import com.elementary.tasks.databinding.BuilderItemValueAndTypeBinding
imp... | 0 | Kotlin | 3 | 6 | a6eecfda739be05a4b84e7d47284cd9e2bc782d6 | 1,959 | reminder-kotlin | Apache License 2.0 |
domain/src/commonMain/kotlin/com/github/hadilq/youtubeapp/domain/entity/Error.kt | hadilq | 277,937,773 | false | null | package com.github.hadilq.youtubeapp.domain.entity
sealed class Error
sealed class TokenExpiration : Error() {
abstract val throwable: Throwable
}
data class UserRecoverableAuthIOError(override val throwable: Throwable, val intent: Intent) : TokenExpiration()
data class GooglePlayServicesAvailabilityError(
overr... | 0 | Kotlin | 0 | 13 | 110bfadd44cc7cc5c46f7e1ff0dfa57cf5386935 | 478 | youtube-app | Apache License 2.0 |
dynamic/src/main/java/com/github/rviannaoliveira/dynamic/compose/presentation/ui/text/DynamicTextComposeRender.kt | rviannaoliveira | 418,187,280 | false | {"Kotlin": 45741, "C++": 20938, "CMake": 18713, "Dart": 16722, "HTML": 1836, "C": 1425, "Swift": 1158, "Objective-C": 38} | package com.github.rviannaoliveira.dynamic.compose.presentation.ui.text
import androidx.compose.runtime.Composable
import com.github.rviannaoliveira.dynamic.compose.presentation.builder.DynamicComposeBuilder
import com.github.rviannaoliveira.dynamic.core.data.convertToVO
import com.github.rviannaoliveira.dynamic.core.... | 0 | Kotlin | 0 | 0 | db6a7fefa627814db581d8f756cc353f3344a89f | 1,007 | DynamicView | MIT License |
app/src/main/java/bapspatil/flickoff/ViewModelProviderFactory.kt | bapspatil | 102,198,607 | false | null | package bapspatil.flickoff
/*
** Created by Bapusaheb Patil {@link https://bapspatil.com}
*/
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
class ViewModelProviderFactory<V : Any>(private val viewModel: V) : ViewModelProvider.Factory {
override fun <T : ViewModel> create(model... | 3 | Kotlin | 6 | 32 | f69aa21ab00443da552e1a9085295dfc52f5ae18 | 519 | FlickOff | Apache License 2.0 |
app/src/main/java/org/oppia/app/profile/AddProfileActivityPresenter.kt | IronClad1607 | 248,988,006 | false | null | package org.oppia.app.profile
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.provider.MediaStore
import android.text.Editable
import android.text.TextWatcher
import android.view.inputmethod.InputMethodManager
import android.widget.ImageVie... | 0 | null | 0 | 1 | d6e58b45cc176170afa91d251e6d88b820a44a16 | 9,243 | oppia-android | Apache License 2.0 |
app/src/main/java/com/ncs/o2/UI/Auth/usecases/ValidationEmail.kt | arpitmx | 647,358,015 | false | {"Kotlin": 1823079} | package com.ncs.o2.UI.Auth.usecases
import android.util.Patterns
import com.ncs.o2.Domain.Models.ValidationResult
/*
File : ValidationEmail.kt -> com.ncs.o2.UI.Auth.usecases
Description : Class for validating email
Author : <NAME> (VC uname : apple)
Link : https://github.com/arpitmx
From : Bitpolarity x Noshbae (@P... | 1 | Kotlin | 2 | 2 | 710356e5dbafa5e6955a4755531f1195b82fcf72 | 942 | Oxygen | Apache License 2.0 |
libs/test/src/main/kotlin/com/illiarb/tmdbclient/libs/test/tools/TestFeatureFlagStore.kt | ilya-rb | 152,124,194 | false | null | package com.illiarb.tmdbclient.libs.test.tools
import com.illiarb.tmdbclient.libs.tools.FeatureFlagStore
class TestFeatureFlagStore : FeatureFlagStore {
override fun isFeatureEnabled(featureName: FeatureFlagStore.FeatureFlag): Boolean =
when (featureName) {
FeatureFlagStore.FeatureFlag.AUTH -> false
... | 0 | Kotlin | 1 | 5 | 2a316e72c6ce68759627e52a749b7f02d91b2787 | 389 | Tmdb-Client | MIT License |
app/src/main/java/kz/sozdik/login/domain/model/LoginResult.kt | sozdik-kz | 290,830,901 | false | null | package kz.sozdik.login.domain.model
sealed class LoginResult {
class Token(val token: String) : LoginResult()
object Error : LoginResult()
} | 5 | Kotlin | 5 | 43 | cfbdffe47253c14ec75d0fba166d1077e028328c | 150 | sozdik-android | MIT License |
platform/external-system-impl/src/com/intellij/openapi/externalSystem/service/execution/ExternalSystemEventDispatcher.kt | boreas320 | 208,223,215 | false | null | // Copyright 2000-2019 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.openapi.externalSystem.service.execution
import com.intellij.build.BuildEventDispatcher
import com.intellij.build.BuildProgressListener
import com.intellij.b... | 1 | null | 1 | 1 | f00ecbdee0408928d3b6581c817fbf3760f7e913 | 3,997 | intellij-community | Apache License 2.0 |
src/main/kotlin/dev/d1s/server/configuration/ContentNegotiation.kt | d1snin | 570,945,817 | false | null | /*
* Copyright 2022-2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 0 | 1 | d603d2c30148201a127ba2f742abd70446d4f9ae | 1,289 | ktor-jvm-server-template | Apache License 2.0 |
src/main/kotlin/no/nav/klage/texts/domain/MaltekstseksjonVersion.kt | navikt | 490,279,544 | false | {"Kotlin": 194618, "Dockerfile": 134} | package no.nav.klage.texts.domain
import jakarta.persistence.*
import java.io.Serializable
import java.time.LocalDateTime
import java.util.*
@Entity
@Table(name = "maltekstseksjon_version", schema = "klage")
@NamedEntityGraphs(
NamedEntityGraph(
name = "MaltekstseksjonVersion.full",
attributeNodes... | 2 | Kotlin | 0 | 0 | e403d77e8045ece7cdef4db0e11f497927f1bf7e | 6,847 | kabal-text-templates | MIT License |
data/pictures/pictures-impl/src/test/kotlin/com/houlis/haris/picfind/data/pictures/impl/MapperTest.kt | HarisHoulis | 595,512,452 | false | {"Kotlin": 89542, "Shell": 135} | package com.houlis.haris.picfind.data.pictures.impl
import com.houlis.haris.picfind.data.pictures.api.model.BasePath
import com.houlis.haris.picfind.data.pictures.api.model.Picture
import org.junit.jupiter.api.Test
import strikt.api.expectThat
import strikt.assertions.isEqualTo
internal class MapperTest {
privat... | 9 | Kotlin | 0 | 0 | c98fc267e78ee24c37621afe8191ba43cbc1d5ba | 1,469 | PicFind | Apache License 2.0 |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/StickerAdd.kt | Konyaco | 574,321,009 | false | null |
package com.konyaco.fluent.icons.filled
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Filled.StickerAdd: ImageVector
get() {
if (_stickerAdd != null) {
... | 1 | Kotlin | 3 | 83 | 9e86d93bf1f9ca63a93a913c990e95f13d8ede5a | 3,409 | compose-fluent-ui | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.