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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
beckon-mesh/src/main/java/com/technocreatives/beckon/mesh/extensions/ByteArray.kt | technocreatives | 364,517,134 | false | null | package com.technocreatives.beckon.mesh.extensions
//fun ByteArray.toHex(): String =
// joinToString(separator = "") { eachByte -> "%02x".format(eachByte) }
| 1 | Kotlin | 2 | 8 | 2e252df19c02104821c393225ee8d5abefa07b74 | 162 | beckon-android | Apache License 2.0 |
server-logic/src/main/kotlin/com/github/vatbub/matchmaking/server/logic/handlers/GetConnectionIdHandler.kt | vatbub | 162,929,659 | false | null | /*-
* #%L
* matchmaking.server
* %%
* Copyright (C) 2016 - 2018 Frederik Kammel
* %%
* 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... | 11 | Kotlin | 5 | 32 | 7ece6b79c6ea15dcf636851a61fde6dc6615188d | 2,086 | matchmaking | Apache License 2.0 |
kyplot/src/main/kotlin/tomasvolker/kyplot/model/drawing/Stem.kt | TomasVolker | 114,266,369 | false | null | package tomasvolker.kyplot.model.drawing
import tomasvolker.kyplot.model.LineStyle
import tomasvolker.kyplot.model.MarkerStyle
import tomasvolker.kyplot.model.PlotDsl
data class Line(
val x: Iterable<Number>,
val y: Iterable<Number>,
override val label: String = "",
val lineStyle: LineStyle = LineStyl... | 8 | Kotlin | 1 | 3 | 1e9d64140ec70b692b1b64ecdcd8b63cf41f97af | 951 | numeriko | Apache License 2.0 |
line-awesome/src/commonMain/kotlin/compose/icons/lineawesomeicons/MapMarkerSolid.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.lineawesomeicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 2,965 | compose-icons | MIT License |
app/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/NIP90ContentDiscoveryScreen.kt | vitorpamplona | 587,850,619 | false | {"Kotlin": 4969371, "HTML": 836484, "Java": 189063, "Shell": 1488} | /**
* Copyright (c) 2024 <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, publish, di... | 125 | Kotlin | 146 | 1,052 | 5812e290c9dc7444c2ebc33ced8326b749647796 | 11,084 | amethyst | MIT License |
reword/src/main/java/dev/b3nedikt/reword/transformer/ToolbarViewTransformer.kt | ashu5398 | 311,227,303 | true | {"Kotlin": 41254, "Java": 6609, "Shell": 901} | package dev.b3nedikt.reword.transformer
import android.os.Build
import android.widget.Toolbar
import androidx.annotation.RequiresApi
/**
* A transformer which transforms [Toolbar]: it transforms the text set as title.
*/
@RequiresApi(Build.VERSION_CODES.LOLLIPOP)
internal object ToolbarViewTransformer : AbstractVie... | 0 | null | 0 | 0 | 5c48d47538a43875a4178ed852eade5ae50d52fb | 1,149 | reword | Apache License 2.0 |
ui/src/main/java/com/mhacks/app/ui/qrscan/QRScanActivity.kt | a-ye13 | 207,436,130 | true | {"Kotlin": 302268, "Java": 2165} | @file:Suppress("DEPRECATION")
package com.mhacks.app.ui.qrscan
import android.Manifest
import android.annotation.SuppressLint
import android.content.DialogInterface
import android.content.Intent
import android.content.IntentFilter
import android.content.pm.PackageManager
import android.content.res.ColorStateList
impo... | 0 | null | 0 | 0 | edf4ae94b7be31f25bf47a77062c74e80430c663 | 19,127 | mhacks-android | MIT License |
app/src/main/java/com/codelab/basiclayouts/clases/aligns/AlingYourBodyRow.kt | Rueda2360 | 757,559,037 | false | {"Kotlin": 72965} | package com.codelab.basiclayouts.clases.aligns
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.lazy.LazyRow
import androidx.compose.foundation.lazy.items
import androidx.compose.runtime.Composable
import androidx.compose.u... | 0 | Kotlin | 0 | 0 | 3839b9de9675d15d945f7ef4901a8ef63d225cd5 | 778 | loginKotlin | Apache License 2.0 |
implementation/src/test/kotlin/io/github/tomplum/aoc/airport/train/ticket/TicketRuleTest.kt | TomPlum | 317,142,882 | false | null | package io.github.tomplum.aoc.airport.train.ticket
import assertk.assertThat
import assertk.assertions.isFalse
import assertk.assertions.isTrue
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.Test
class TicketRuleTest {
@Nested
inner class Apply {
@Test
fun isLowerBoundStart()... | 1 | Kotlin | 0 | 0 | 73b3eacb7cb8a7382f8891d3866eda983b6ea7a9 | 1,463 | advent-of-code-2020 | Apache License 2.0 |
kotlinx-coroutines-core/jvm/test/ConcurrentTestUtilities.kt | Kotlin | 61,722,736 | false | {"Kotlin": 3835333, "Java": 34700, "Python": 3107, "Shell": 2685} | package kotlinx.coroutines.exceptions
actual inline fun yieldThread() { Thread.yield() }
actual fun currentThreadName(): String = Thread.currentThread().name
| 295 | Kotlin | 1850 | 13,033 | 6c6df2b850382887462eeaf51f21f58bd982491d | 160 | kotlinx.coroutines | Apache License 2.0 |
app/src/main/java/co/devhack/reciperecommendergemini/ui/screens/MainActivity.kt | jggomez | 780,232,657 | false | {"Kotlin": 35244} | package co.devhack.reciperecommendergemini.ui.screens
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import a... | 0 | Kotlin | 0 | 1 | 7244571d0ffd25e055b97eb571eea09afabd2516 | 4,711 | RecipeRecommenderGeminiAndroid | Apache License 2.0 |
app/src/main/java/com/example/naufal/crudmysql/model/ResultStatus.kt | naufalislam | 278,373,402 | false | null | package com.example.naufal.crudmysql.model
class ResultStatus {
val pesan : String? = null
val status : Int? = null
} | 0 | Kotlin | 0 | 1 | 437a39a9043551de6d79fbb296dbb1b493a63d58 | 126 | CRUD_KotlinMVP | Apache License 2.0 |
src/main/kotlin/io/online/itbank/services/auth/JwtUserDetailsService.kt | tomasanchez | 530,007,034 | false | null | package io.online.itbank.services.auth
import org.springframework.security.core.userdetails.UserDetails
import org.springframework.security.core.userdetails.UserDetailsService
import org.springframework.stereotype.Service
@Service
class JwtUserDetailsService(private val jwtUserService: JwtUserService) : UserDetailsSe... | 0 | Kotlin | 0 | 0 | c435fbe2ceace9ec5db212154b0ba7c547a73d7c | 544 | kotlitbank | Creative Commons Zero v1.0 Universal |
data/src/main/kotlin/data/tinder/recommendation/RecommendationUserCommonConnectionEntity_PhotoEntity.kt | alouanemed | 106,109,153 | false | null | package data.tinder.recommendation
import android.arch.persistence.room.Entity
import android.arch.persistence.room.Index
@Entity(indices = arrayOf(Index("recommendationUserCommonConnectionEntityId")),
primaryKeys = arrayOf("recommendationUserCommonConnectionEntityId",
"recommendationUserCommo... | 0 | Kotlin | 0 | 0 | 678ad00d08630cfcff8de1bbea2a9000927c8e68 | 548 | dinger | MIT License |
authentication/src/main/kotlin/com/proggramik/authentication/repository/UserCredentialRepository.kt | lukszy-dev | 350,106,143 | false | {"Kotlin": 74585} | package com.proggramik.authentication.repository
import com.proggramik.authentication.domain.PasswordCredential
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.stereotype.Repository
@Repository
interface UserCredentialRepository : JpaRepository<PasswordCredential, Long> {
f... | 0 | Kotlin | 5 | 3 | d5de1f0866ce7dcb39ad52360415aa40d5131010 | 373 | ecommerce-microservices | MIT License |
app/src/main/java/com/hfut/schedule/logic/network/ServiceCreator.kt | Chiu-xaH | 705,508,343 | false | {"Kotlin": 14005} | package com.hfut.schedule.logic.network
import android.content.Context
import com.chiuxah.weather.MyApplication
import com.hfut.schedule.logic.network.OkHttp.AddCookiesInterceptor
import com.hfut.schedule.logic.network.OkHttp.SaveCookiesInterceptor
import okhttp3.OkHttpClient
import retrofit2.Retrofit
import retrofit2... | 0 | Kotlin | 0 | 0 | be7d1b887b6faa2dc000f9392dc2195a6fb0111b | 1,051 | HFUT-Schedule | Apache License 2.0 |
app/src/main/java/jp/hazuki/yuzubrowser/utils/view/recycler/OutSideClickableRecyclerView.kt | ggshuini | 112,413,852 | true | {"Java Properties": 3, "Gradle": 5, "Shell": 1, "Markdown": 1, "Batchfile": 1, "Text": 4, "Ignore List": 3, "XML": 387, "Java": 302, "INI": 2, "Proguard": 2, "HTML": 24, "CSS": 3, "JavaScript": 1, "Kotlin": 232} | /*
* Copyright (C) 2017 Hazuki
*
* 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... | 0 | Java | 0 | 0 | 3e35eefa2ddb085e8d01aa6891d5ddc4a4e8110e | 1,310 | YuzuBrowser | Apache License 2.0 |
app/src/androidTest/java/tgo1014/listofarts/utils/ViewModelMainCoroutineRule.kt | lukma | 702,989,427 | false | {"Kotlin": 133997} | package com.lukmadev.apps.weather.util
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.test.TestDispatcher
import kotlinx.coroutines.test.UnconfinedTestDispatcher
import kotlinx.coroutines.test.resetMain
import kotlinx.coroutines.test.setMain
import org.junit.rules.TestWatcher
import org.junit.runner.D... | 0 | Kotlin | 0 | 0 | c5ff1bad2c76d745624c2a1830b334b1f0c5146b | 725 | listOfArts | Apache License 2.0 |
app/src/main/java/com/example/franchisemanagement/ui/LoginActivity.kt | Njumbi | 341,182,394 | false | null | package com.example.franchisemanagement.ui
import android.app.ProgressDialog
import android.content.Context
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.text.TextUtils
import android.util.Log
import android.view.View
import android.widget.Toast
i... | 0 | Kotlin | 0 | 1 | 8f37e7b3ab84dbee5d76d83209070020ad738da8 | 4,054 | management_franchise | MIT License |
src/lexical/AnalyzerException.kt | beigirad | 138,376,107 | false | null | package lexical
/**
* Created by Farhad's-Macbook on 6/22/18.
*/
class AnalyzerException(val msg: String,val errorPosition: Int) : Exception(msg) | 1 | null | 1 | 1 | 65aa0369a7ab30080c49a122f27be5039bdae6cb | 149 | CompilerWorkshop | MIT License |
features/publish/src/main/java/com/ujizin/leafy/publish/viewmodel/PublishViewModel.kt | ujizin | 442,024,281 | false | null | package com.ujizin.leafy.publish.viewmodel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.ujizin.leafy.domain.usecase.plant.AddDraftPlant
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onCompletion
impor... | 7 | null | 1 | 4 | 27e28e5984a0fef94d3aa8d7c813ba1851cfd4f3 | 744 | Leafy | Apache License 2.0 |
src/main/kotlin/de/derniklaas/buildbugs/BuildBugsCommand.kt | derNiklaas | 737,881,211 | false | {"Kotlin": 24805, "Java": 2229} | package de.derniklaas.buildbugs
import de.derniklaas.buildbugs.utils.Utils
import org.incendo.cloud.annotations.Argument
import org.incendo.cloud.annotations.Command
import org.incendo.cloud.annotations.suggestion.Suggestions
import org.incendo.cloud.context.CommandContext
import org.incendo.cloud.suggestion.Suggestio... | 1 | Kotlin | 0 | 2 | 494cbf9feb8c6dc97e9587a2bd22397d9967f542 | 3,340 | build-bugs | MIT License |
_pending/android-super-hero-app/features/characters/characters-ui/src/main/java/com/carlosrd/superhero/ui/characters/feature/home/adapter/CharactersPagedListAdapter.kt | luannguyen252 | 371,359,679 | false | null | package com.carlosrd.superhero.ui.characters.feature.home.adapter
import android.util.Log
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.paging.PagingDataAdapter
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.Recycl... | 0 | Kotlin | 0 | 1 | a9b5aef8662a1808042c820c3dfac02e1efd5800 | 3,479 | my-android-journey | MIT License |
embrace-android-delivery/src/main/kotlin/io/embrace/android/embracesdk/internal/delivery/intake/IntakeServiceImpl.kt | embrace-io | 704,537,857 | false | {"Kotlin": 2879745, "C": 189341, "Java": 162931, "C++": 13140, "CMake": 4261} | package io.embrace.android.embracesdk.internal.delivery.intake
import io.embrace.android.embracesdk.internal.ErrorHandler
import io.embrace.android.embracesdk.internal.delivery.StoredTelemetryMetadata
import io.embrace.android.embracesdk.internal.delivery.scheduling.SchedulingService
import io.embrace.android.embraces... | 23 | Kotlin | 8 | 134 | 06fb424ba2746c22e8e47e549a9f00ae8f85d72d | 1,607 | embrace-android-sdk | Apache License 2.0 |
SensorMonitor/app/src/main/java/jp/nagano/northfield/sensormonitor/sensor/AppSensorEventListener.kt | northfieldzz | 549,048,262 | false | null | package jp.nagano.northfield.sensormonitor.sensor
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import android.widget.TextView
class AppSensorEventListener(
private val status: TextView,
private val sensor: SensorInterface
) : SensorEventListene... | 0 | Kotlin | 0 | 0 | 601c824a1974e8620540104162a1333f94ce666c | 555 | MobileSamples | MIT License |
app/src/main/java/lt/getpet/getpet/dagger/module/ActivityModule.kt | GotPet | 153,828,011 | false | {"Kotlin": 78573} | package lt.getpet.getpet.dagger.module
import dagger.Module
import dagger.android.ContributesAndroidInjector
import lt.getpet.getpet.*
@Module
abstract class ActivityModule {
@ContributesAndroidInjector()
abstract fun mainActivity(): MainActivity
@ContributesAndroidInjector()
abstract fun getPetActi... | 0 | Kotlin | 1 | 0 | f1603cc232dd76a406c76231b229e2150f9ae70a | 616 | getpet-android | Apache License 2.0 |
src/main/kotlin/com/pixel_Alireza/data/model/response/auth/AuthResponse.kt | AlirezaMohammadi-git | 653,681,143 | false | null | package com.pixel_Alireza.data.response.auth
import kotlinx.serialization.Serializable
@Serializable
data class SignInResponse(
val res: Boolean,
val token: String? = null,
val message: String? = null
)
@Serializable
data class SignUpResponse(
val res: Boolean,
val message: String
)
@Serializab... | 0 | Kotlin | 0 | 1 | 786afb5afa5c4fe9f6ffbb1f2c500d2976327e72 | 423 | CiStore-Server | Apache License 2.0 |
platform/external-system-impl/src/com/intellij/openapi/externalSystem/dependency/analyzer/DependencyAnalyzerView.kt | SysBind | 202,502,390 | false | null | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.externalSystem.dependency.analyzer
import com.intellij.openapi.externalSystem.dependency.analyzer.DependencyContributor.Dependency
... | 1 | null | 1 | 1 | 0eb0bc0905884e3fa5027883af926427e21a3cea | 561 | intellij-community | Apache License 2.0 |
domain/src/main/java/com/movietime/domain/model/MoviePreview.kt | milanga | 471,352,982 | false | {"Kotlin": 239459} | package com.movietime.domain.model
import java.util.Date
data class MoviePreview(
val title: String,
val originalTitle: String,
val originalLanguage: String,
override val id: Int,
override val posterUrl: String,
val backdropUrl: String,
override val rating: Float,
val voteCount: Int,
... | 0 | Kotlin | 0 | 0 | e933ed07b5972fdef1b38a6a6693add2681a59e6 | 566 | MovieTime | Apache License 2.0 |
app/src/main/java/com/naftarozklad/views/activities/GroupsActivity.kt | bshvets8 | 115,192,251 | false | null | package com.naftarozklad.views.activities
import android.os.Bundle
import android.support.design.widget.Snackbar
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.DividerItemDecoration
import android.support.v7.widget.LinearLayoutManager
import android.view.Menu
import android.view.MenuI... | 0 | Kotlin | 0 | 0 | 1cfa23ba5ea09539f684bdecee22c445a1d2e00d | 3,977 | NaftaRozkladAndroid | MIT License |
src/test/kotlin/com/kylecorry/sol/science/geography/projections/AzimuthalEquidistantProjectionTest.kt | kylecorry31 | 294,668,785 | false | {"Kotlin": 809606, "Java": 18119, "Python": 298} | package com.kylecorry.sol.science.geography.projections
import assertk.assertThat
import com.kylecorry.sol.math.Vector2
import com.kylecorry.sol.tests.assertVector
import com.kylecorry.sol.tests.isCloseTo
import com.kylecorry.sol.units.Bearing
import com.kylecorry.sol.units.Coordinate
import org.junit.jupiter.api.Test... | 12 | Kotlin | 4 | 8 | 0b29079346334c0e6c86d9414874df9b4415f001 | 5,700 | sol | MIT License |
app/src/main/java/com/rk/xededitor/MainActivity/treeview2/PrepareRecyclerView.kt | RohitKushvaha01 | 761,046,569 | false | {"Java": 1999002, "Kotlin": 439352} | package com.rk.xededitor.MainActivity.treeview2
import android.view.View
import android.view.ViewGroup
import android.widget.HorizontalScrollView
import android.widget.LinearLayout
import androidx.recyclerview.widget.RecyclerView
import com.rk.xededitor.MainActivity.MainActivity
import com.rk.xededitor.Settings.Settin... | 9 | Java | 13 | 234 | 5695ec9af9b7af641b68ebb5c4a44ad0f677af07 | 2,372 | Xed-Editor | MIT License |
smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/ClientConfigProperty.kt | kggilmer | 464,574,719 | true | {"Kotlin": 1738709, "Shell": 372} | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
package software.amazon.smithy.kotlin.codegen.rendering
import software.amazon.smithy.codegen.core.Symbol
import software.amazon.smithy.kotlin.codegen.core.*
import software.amazon.smithy.kotlin.codegen... | 0 | Kotlin | 0 | 0 | df9c0461526e2c74e53407687f2310f463dd486d | 12,181 | smithy-kotlin | Apache License 2.0 |
app/src/main/java/com/steve_md/smartmkulima/ui/fragments/others/crop_cycle/CropCycleFinancialRecordsAnalyticsFragment.kt | MuindiStephen | 559,873,955 | false | {"Kotlin": 629551, "Java": 83493, "CMake": 595, "C++": 247} | package com.steve_md.smartmkulima.ui.fragments.others.crop_cycle
import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.AdapterView
import android.widget.ArrayAdapter
im... | 1 | Kotlin | 1 | 5 | 812cf78cd77301cbc96fbeecd347c520cb973b53 | 8,835 | Agri-Sasa | MIT License |
app/src/main/java/com/whatshelp/ui/chat/ChatFragment.kt | ktvipin27 | 419,768,934 | false | {"Kotlin": 107836} | package com.whatshelp.ui.chat
import android.app.AlertDialog
import android.graphics.Color
import android.os.Bundle
import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
import android.view.View
import androidx.fragment.app.activityViewModels
import androidx.fragment.app.viewModels
imp... | 0 | Kotlin | 0 | 0 | 96c500f587b20d5566000aa978e9f340661c2434 | 11,702 | WhatsHelp | Apache License 2.0 |
app/src/test/kotlin/com/example/videogames/IntegrationTests.kt | raoulsson | 600,711,983 | false | null | package com.example.videogames
/**
* @see: https://www.baeldung.com/kotlin/spring-boot-testing
*/
/*
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@ActiveProfiles("unit-testing")
class IntegrationTests(@Autowired val restTemplate: TestRestTemplate) {
@BeforeAll
fun setup() {
printl... | 0 | Kotlin | 0 | 0 | 0999cfbdf83a6a13681757ea1f502cd4799fd019 | 1,099 | gradle-kotlin-spring | MIT License |
kotlin-typescript/src/main/generated/typescript/OuterExpressionKinds.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:Suppress(
"NAME_CONTAINS_ILLEGAL_CHARS",
)
package typescript
// language=JavaScript
@JsName("""(/*union*/{Parentheses: 1, TypeAssertions: 2, NonNullAssertions: 4, PartiallyEmittedExpressions: 8, Assertions: 6, All: 15, ExcludeJSDocTypeAssertion: 16}/*union*/)"""... | 10 | Kotlin | 145 | 983 | 7ef1028ba3e0982dc93edcdfa6ee1edb334ddf35 | 523 | kotlin-wrappers | Apache License 2.0 |
apps/etterlatte-behandling/src/test/kotlin/DatabaseContextTest.kt | navikt | 417,041,535 | false | {"Kotlin": 6707217, "TypeScript": 1675603, "Handlebars": 25499, "Shell": 12438, "HTML": 1734, "CSS": 598, "PLpgSQL": 556, "Dockerfile": 547} | package no.nav.etterlatte
import io.mockk.mockk
import kotliquery.Session
import no.nav.etterlatte.common.ConnectionAutoclosing
import no.nav.etterlatte.libs.ktor.token.HardkodaSystembruker
import java.sql.Connection
import javax.sql.DataSource
/*
Denne gjør at vi slipper å wrapper alle db kalle med instransactio... | 8 | Kotlin | 0 | 6 | e84b73f3decfa2cadfb02364fbd71ca96efbd948 | 1,654 | pensjon-etterlatte-saksbehandling | MIT License |
redwood-treehouse-host/src/commonTest/kotlin/app/cash/redwood/treehouse/FakeTreehouseWidgetSystem.kt | cashapp | 305,409,146 | false | null | /*
* Copyright (C) 2023 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... | 117 | null | 73 | 1,648 | 3f14e622c2900ec7e0dfaff5bd850c95a7f29937 | 950 | redwood | Apache License 2.0 |
app/src/test/java/com/example/sportssocial/AthleteRepositoryUnitTest.kt | bradlekr7 | 510,032,874 | false | {"Kotlin": 75790} | package com.example.sportssocial
import com.example.sportssocial.data.api.RetrofitClient
import com.example.sportssocial.data.model.dao.AthleteDao
import com.example.sportssocial.data.model.dao.NewsArticleDao
import com.example.sportssocial.data.repo.AthleteRepository
import com.example.sportssocial.data.repo.Firestor... | 0 | Kotlin | 0 | 0 | c04a3100b89e4b706a9d6c4d31ad9df7dc8b7167 | 811 | P3w-CameraIntegration | MIT License |
app/src/main/java/com/example/androiddevchallenge/ui/detail/DetailScreen.kt | sergiomeza | 343,928,200 | false | null | package com.example.androiddevchallenge.ui.detail
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyRow
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.ma... | 0 | Kotlin | 0 | 0 | 298c0217918ac18cead64eea7f7c36c1ce26f2d1 | 5,786 | PuppiesChallengeWeek1 | Apache License 2.0 |
main/src/main/kotlin/io/androidalatan/lifecycle/template/main/MainActivity.kt | android-alatan | 606,930,016 | false | null | package io.androidalatan.lifecycle.template.main
import androidx.compose.runtime.Composable
import io.androidalatan.lifecycle.handler.compose.activity.ComposeLifecycleDaggerActivity
import io.androidalatan.lifecycle.handler.compose.cache.composeCached
import javax.inject.Inject
class MainActivity : ComposeLifecycleDa... | 0 | Kotlin | 0 | 1 | 325d2b639743899acbf6a5acb2c55f4dd410b466 | 489 | LifecycleComponentTemplate | MIT License |
ychat/src/commonTest/kotlin/co/yml/ychat/di/NetworkProviderTest.kt | yml-org | 590,561,356 | false | null | package co.yml.ychat.di
import co.yml.ychat.di.provider.NetworkProvider
import io.ktor.client.engine.mock.MockEngine
import io.ktor.client.engine.mock.respond
import io.ktor.client.request.request
import io.ktor.http.Headers
import io.ktor.http.HttpHeaders
import io.ktor.http.HttpStatusCode
import io.ktor.http.headers... | 1 | Kotlin | 2 | 72 | 0da7ababedec465eefcdf3608b6c3e8f6dc36c16 | 1,235 | ychat | Apache License 2.0 |
src/main/kotlin/com/lifly/schedule/desktop/logic/model/CourseBean.kt | sasaju | 459,430,775 | false | {"Kotlin": 196545} | package com.lifly.schedule.desktop.logic.model
import org.jetbrains.exposed.dao.*
import org.jetbrains.exposed.dao.id.EntityID
import org.jetbrains.exposed.sql.Column
import org.jetbrains.exposed.sql.Table
/** 课程data类
* APP中极为关键的一个类
* @param campusName 校区
* @param color 颜色配置,实例:#ff51555
* @param colorIndex 为适配主题... | 0 | Kotlin | 0 | 7 | 36b68d5fceb1ab8d696abb82001056ec6d21b040 | 2,051 | ScheduleForDesktop | Apache License 2.0 |
src/commonMain/kotlin/org/mifek/wfc/utils/MiscellaneousExtensions.kt | JakubMifek | 326,496,922 | false | null | package org.mifek.wfc.utils
import org.mifek.wfc.datastructures.Quadruple
import kotlin.math.min
import kotlin.random.Random
/**
* Product of int array elements
*/
fun IntArray.product(): Int {
return this.reduce { acc, it -> acc * it }
}
fun IntArray.toIndex(sizes: IntArray): Int {
var res = 0
var i =... | 1 | null | 1 | 2 | 2def49100bc33b4e4897ff980dd9d97052665241 | 2,386 | WFC-Kotlin | MIT License |
screenshots/src/main/java/me/vavra/screenshots/ShowkaseNavigation.kt | davidvavra | 440,886,190 | false | {"Kotlin": 7515} | package me.vavra.screenshots
import android.app.Activity
import com.airbnb.android.showkase.models.Showkase
object ShowkaseNavigation {
fun goToShowkase(activity: Activity) {
activity.startActivity(Showkase.getBrowserIntent(activity))
}
} | 2 | Kotlin | 6 | 39 | 0efa7a45821cefa6715babbd83d04332fed01460 | 256 | showkase-screenshot-tests | MIT License |
plugins/kotlin/gradle/gradle-tooling/impl/src/org/jetbrains/kotlin/idea/gradleTooling/arguments/CompilerArgumentsCacheMapperImpl.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.gradleTooling.arguments
import org.jetbrains.kotlin.idea.projectModel.CompilerArgumentsCacheMapper
import java.util.*
abstrac... | 214 | null | 4829 | 15,129 | 5578c1c17d75ca03071cc95049ce260b3a43d50d | 1,170 | intellij-community | Apache License 2.0 |
test/TestMax3.kt | nick-ivanov | 115,955,519 | false | null | package org.borealis8.kotlinalgorithms
import org.junit.Test as test
import org.junit.Assert.*
class TestMax3 {
@org.junit.Test fun testMax3SmallBiggerBig() {
val max = Max3(10.0, 11.0, 12.0)
assertEquals(max, 12.0, 0.1)
}
}
| 0 | Kotlin | 0 | 2 | daf25f62485c266e77df9bef8ded075a16908e99 | 252 | kotlin-algorithms | Apache License 2.0 |
app/src/main/java/io/github/takusan23/photransfer/ui/screen/HomeScreen.kt | takusan23 | 422,632,293 | false | {"Kotlin": 154967, "HTML": 1735} | package io.github.takusan23.photransfer.ui.screen
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.ui.platform.LocalContext
import io.github.takusan23.photransfer.set... | 0 | Kotlin | 0 | 0 | 56f59e18729ea429228e74242b4526d97ddf3093 | 1,341 | PhoTransfer | Apache License 2.0 |
app/src/main/java/com/steleot/jetpackcompose/playground/compose/materialicons/TwoToneScreen.kt | Vivecstel | 338,792,534 | false | null | package com.steleot.jetpackcompose.playground.compose.materialicons
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.grid.GridCells
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
import androidx.compose.foun... | 2 | null | 46 | 346 | 0161d9c7bf2eee53270ba2227a61d71ba8292ad0 | 2,854 | Jetpack-Compose-Playground | Apache License 2.0 |
analysis/low-level-api-fir/testData/lazyResolveByReference/companionObject.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... | // MODULE: lib
// MODULE_KIND: LibraryBinary
// FILE: lib.kt
package library
class ClassWithImplicitConstructorAndCompanion {
companion object {
}
}
// MODULE: main(lib)
// FILE: main.kt
package test
import library.ClassWithImplicitConstructorAndCompanion
fun usage() {
val a: ClassWit<caret>hImplicitCo... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 343 | kotlin | Apache License 2.0 |
ggdsl-api/src/test/kotlin/org/jetbrains/kotlinx/ggdsl/dsl/unit/ColumnScaledTest.kt | Kotlin | 502,039,936 | false | null | /*
* Copyright 2020-2022 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package org.jetbrains.kotlinx.ggdsl.dsl.unit
import org.jetbrains.kotlinx.ggdsl.dsl.Symbol
import org.jetbrains.kotlinx.ggdsl.dsl.internal.typed
import org.jetbrains.kotlinx.ggdsl.dsl.internal.typedList
import ... | 55 | Kotlin | 2 | 29 | 647ebddd2e09173facf6be67cd4ba5a7c81f6d2a | 3,682 | ggdsl | Apache License 2.0 |
src/main/kotlin/ch3/ex3.26.kt | arnab-ray | 785,146,542 | false | {"Kotlin": 30133} | package ch3
import io.kotlintest.shouldBe
import io.kotlintest.specs.WordSpec
fun depth(tree: Tree<Int>): Int =
when (tree) {
is Leaf -> 0
is Branch -> 1 + maxOf(depth(tree.left), depth(tree.right))
}
class Exercise26 : WordSpec({
"tree depth" should {
"determine the maximum depth... | 0 | Kotlin | 0 | 0 | 20d6933e9840e9bdae16d25e7b07ba334c2567a1 | 985 | functional-kotlin | MIT License |
src/androidMain/kotlin/com/dxc/utils/System.kt | dxc-technology | 259,322,339 | false | {"Kotlin": 598967, "Objective-C": 537589, "Objective-C++": 442889, "C": 238203, "Ruby": 12614, "Shell": 7187, "Swift": 1114} | package com.dxc.utils
import android.system.Os
import java.lang.System
actual class System {
actual companion object {
actual fun currentTimeMillis(): Long {
return java.lang.System.currentTimeMillis()
}
actual fun getEnv(key: String): String? {
return System.gete... | 3 | Kotlin | 6 | 5 | 9bede83e0358b16d6dc9459ccc2fd85541027b6c | 799 | ssi-mobile-sdk | Apache License 2.0 |
graphql-dgs/src/main/kotlin/com/netflix/graphql/dgs/internal/method/MethodDataFetcherFactory.kt | Netflix | 317,375,887 | false | null | /*
* Copyright 2022 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 82 | null | 255 | 2,705 | 866760f8a3cf86bda5e2a9ef14cab6936b2b3a80 | 1,666 | dgs-framework | Apache License 2.0 |
keel-eureka/src/main/kotlin/com/netflix/spinnaker/keel/eureka/LocalInstanceIdSupplier.kt | gal-yardeni | 220,116,349 | true | {"Kotlin": 1350979, "Java": 9170, "Shell": 2086} | package com.netflix.spinnaker.keel.eureka
import com.netflix.spinnaker.keel.info.InstanceIdSupplier
import java.net.InetAddress
object LocalInstanceIdSupplier : InstanceIdSupplier {
override fun get(): String = InetAddress.getLocalHost().hostName
}
| 0 | Kotlin | 0 | 0 | a9e868687f54bfedb20462092e017d1407d48e4f | 253 | keel | Apache License 2.0 |
library/src/main/java/com/schibsted/spain/barista/internal/failurehandler/SpyFailureHandler.kt | PaulWoitaschek | 189,291,312 | false | {"Gradle": 5, "Markdown": 6, "Java Properties": 1, "Shell": 2, "Ignore List": 4, "Batchfile": 1, "Gradle Kotlin DSL": 3, "XML": 62, "Kotlin": 92, "Java": 107, "INI": 2, "CODEOWNERS": 1, "YAML": 3, "SVG": 1} | package com.adevinta.android.barista.internal.failurehandler
import android.view.View
import androidx.test.espresso.FailureHandler
import androidx.test.espresso.getFailureHandler
import org.hamcrest.Matcher
open class SpyFailureHandler : FailureHandler {
val capturedFailures = mutableListOf<EspressoFailure>()
o... | 1 | null | 1 | 1 | a0e209c77ddbea96b4f420897820890f7c74d6c5 | 1,123 | Barista | Apache License 2.0 |
app/src/main/java/com/schedule/ui/presentation/MainScaffold.kt | FredNekrasov | 760,139,354 | false | {"Kotlin": 109148} | package com.schedule.ui.presentation
import androidx.compose.foundation.layout.*
import androidx.compose.material3.*
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.navigation.NavHostController
import androidx.navigation.compose.curren... | 0 | Kotlin | 0 | 0 | 73e90ff38e831c6fbfa175f4e4ffe780ed572500 | 1,477 | Android-app-for-viewing-schedules | MIT License |
app/src/main/java/com/schedule/ui/presentation/MainScaffold.kt | FredNekrasov | 760,139,354 | false | {"Kotlin": 109148} | package com.schedule.ui.presentation
import androidx.compose.foundation.layout.*
import androidx.compose.material3.*
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.navigation.NavHostController
import androidx.navigation.compose.curren... | 0 | Kotlin | 0 | 0 | 73e90ff38e831c6fbfa175f4e4ffe780ed572500 | 1,477 | Android-app-for-viewing-schedules | MIT License |
src/main/kotlin/example/examplemod/ExampleMod.kt | thedarkcolour | 272,338,191 | false | null | package example.examplemod
import example.examplemod.block.ModBlocks
import example.examplemod.block.ModItems
import net.minecraft.client.Minecraft
import net.neoforged.bus.api.SubscribeEvent
import net.neoforged.fml.common.EventBusSubscriber
import net.neoforged.fml.common.Mod
import net.neoforged.fml.event.lifecycle... | 1 | null | 17 | 45 | 8c8892f928225bf7ac622f335f16554155a0eed9 | 2,454 | KotlinModdingSkeleton | MIT License |
exposed-dao/src/main/kotlin/org/jetbrains/exposed/dao/InnerTableLink.kt | JetBrains | 11,765,017 | false | null | package org.jetbrains.exposed.dao
import org.jetbrains.exposed.dao.id.EntityID
import org.jetbrains.exposed.sql.*
import org.jetbrains.exposed.sql.transactions.TransactionManager
import kotlin.properties.ReadWriteProperty
import kotlin.reflect.KProperty
@Suppress("UNCHECKED_CAST")
class InnerTableLink<SID : Comparabl... | 346 | null | 693 | 8,319 | 95712943cc3550e4018342d725b42371808be845 | 3,807 | Exposed | Apache License 2.0 |
guardian/src/main/java/com/guardianconnect/GRDConnectSubscriber.kt | GuardianFirewall | 613,794,030 | false | {"Kotlin": 240944, "Shell": 5798} | package com.guardianconnect
import android.util.Log
import com.google.gson.Gson
import com.guardianconnect.api.IOnApiResponse
import com.guardianconnect.api.Repository
import com.guardianconnect.model.api.*
import com.guardianconnect.util.Constants.Companion.GRD_CONNECT_SUBSCRIBER
import com.guardianconnect.util.Const... | 9 | Kotlin | 1 | 2 | ea7c1256355033bbb3c07b958d6702d263520c6f | 16,142 | GuardianConnect-Android | MIT License |
app/src/main/java/io/gebes/composer/views/showcases/InfiniteList.kt | Gebes | 388,589,806 | false | null | package io.gebes.composer.views.showcases
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.LazyListState
import androidx.com... | 0 | Kotlin | 0 | 2 | c2d8d44bf84e315b1a8ae08e178f02a4665c479f | 1,602 | Composer | MIT License |
app/src/main/java/com/hadilq/mastan/di/RealRootDependencies.kt | hadilq | 715,823,678 | false | {"Kotlin": 689784, "Nix": 4671} | /**
* Copyright 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 in writi... | 0 | Kotlin | 0 | 3 | f17caa73c487d927d651e788215aa30b8b9cf842 | 3,672 | Mastan | Apache License 2.0 |
SentinelArmor/src/main/java/com/androidacestudio/sentinelarmor/AndroidSentinelImpl.kt | shivanandyadav11 | 860,772,214 | false | {"Kotlin": 172249} | package com.androidacestudio.sentinelarmor
import android.content.Context
/**
* AndroidSentinelImpl
*
* This class is the concrete implementation of the [AndroidSentinel] interface.
* It orchestrates a comprehensive security analysis of an Android application by
* executing a series of specific security checks.
... | 0 | Kotlin | 0 | 1 | 36e0adeaa8a559b690a9fc88322490b371c2925c | 4,327 | AndroidSentinel | MIT License |
src/main/kotlin/ru/yoomoney/gradle/plugins/backend/build/sonarqube/SonarqubeSettings.kt | yoomoney | 334,236,333 | false | {"Kotlin": 114478} | package ru.yoomoney.gradle.plugins.backend.build.sonarqube
/**
* Типизированные настройки плагина статического анализатора SonarQube
*
* @author Petr Zinin pgzinin@yoomoney.ru
* @since 14.02.2022
*/
class SonarqubeSettings {
/**
* Флаг, включающий статический анализатор
*/
var enabled: Boolean =... | 0 | Kotlin | 2 | 3 | 9cd5e40a523bf67a089b4c1b5746d8ce20cc13e7 | 1,622 | java-plugin | MIT License |
src/main/kotlin/me/steven/indrev/blocks/misc/BiomassComposterBlock.kt | GabrielOlvH | 265,247,813 | false | null | package me.steven.indrev.blocks.misc
import alexiil.mc.lib.attributes.AttributeList
import alexiil.mc.lib.attributes.AttributeProvider
import alexiil.mc.lib.attributes.fluid.FluidAttributes
import alexiil.mc.lib.attributes.fluid.FluidInvUtil
import alexiil.mc.lib.attributes.item.ItemAttributes
import me.steven.indrev.... | 36 | Kotlin | 32 | 135 | cc92c8b57afd867ee4b69828410da83ff6ba113f | 5,066 | Industrial-Revolution | Apache License 2.0 |
domain/src/main/java/com/kproject/simplechat/domain/repository/preferences/DataStoreRepository.kt | jsericksk | 437,991,571 | false | null | package com.kproject.simplechat.domain.repository.preferences
import kotlinx.coroutines.flow.Flow
interface DataStoreRepository {
suspend fun getPreferenceAsync(key: String, defaultValue: Any): Flow<Any>
fun getPreferenceSync(key: String, defaultValue: Any): Any
suspend fun savePreference(key: String, ... | 0 | Kotlin | 1 | 7 | f59e552e2056fa4fc5b54eca535b24c3055d84e8 | 333 | Simple-Chat | MIT License |
MobileChallenge/app/src/main/java/com/example/mobilechallenge/view/adapters/ItemCartAdapter.kt | juniior-juf | 274,750,032 | true | {"Kotlin": 54947} | package com.example.mobilechallenge.view.adapters
import com.example.mobilechallenge.R
import com.example.mobilechallenge.data.models.ItemCart
class ItemCartAdapter(private val handler: HandlerAdapter) : BaseAdapter() {
private var items = emptyList<ItemCart>()
fun setItemList(items: List<ItemCart>) {
... | 0 | Kotlin | 0 | 1 | db956b25f340757248641bd16f8253ee958e6f4e | 732 | mobile-android-challenge | MIT License |
app/src/main/java/com/example/jetpack_compose_all_in_one/lessons/lesson_3/PersonRepository.kt | myofficework000 | 626,474,700 | false | {"Kotlin": 1392414} | package com.example.jetpack_compose_all_in_one.lessons.lesson_3
interface PersonRepository {
fun getPersonList(): List<Person>
} | 21 | Kotlin | 22 | 222 | 4de5418608d6917b5c97fac7d868454c424daa26 | 133 | Jetpack-Compose-All-in-one-Guide | MIT License |
app/src/main/java/com/vstorchevyi/codewars/di/feature/user/UserFeatureModule.kt | LStudioO | 653,597,932 | false | null | package com.vstorchevyi.codewars.di.feature.user
import com.core.utils.logger.AppLogger
import com.core.utils.platform.environment.EnvironmentInfo
import com.feature.user.api.UserFeatureDeps
import com.feature.user.di.userFeatureInternalModule
import org.koin.dsl.module
fun userFeatureModule() = module {
factory<... | 0 | Kotlin | 0 | 2 | 4b7ad630dbd4838b66e560f463b025e79327bebd | 569 | CodeWarsChallengeViewer | Apache License 2.0 |
app/src/main/java/io/github/drumber/kitsune/ui/settings/SettingsFragment.kt | Drumber | 406,471,554 | false | {"Kotlin": 685905, "Ruby": 1828} | package io.github.drumber.kitsune.ui.settings
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.activity.result.ActivityResultLauncher
import androidx.activity.result.contract.ActivityResultContracts
import and... | 9 | Kotlin | 1 | 26 | ff52e107da12d191d789d116c98bfac24c973cd9 | 15,957 | Kitsune | Apache License 2.0 |
app/src/main/java/com/jichinx/open/demo/abadge/MainActivity.kt | JichinX | 798,640,308 | false | {"Kotlin": 7496} | package com.jichinx.open.demo.abadge
import android.os.Bundle
import android.widget.Toast
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.jichinx.open.abadge.BadgeManager
import com.ji... | 0 | Kotlin | 0 | 0 | c2bc019c59eb41967adb9f05253a3bc872745c36 | 1,420 | Abadge | Apache License 2.0 |
core/compose-ui/src/main/kotlin/xyz/qwexter/compose_ui/Theme.kt | qwexter | 345,752,908 | false | null | package xyz.qwexter.compose_ui
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
import xyz.qwexter.compose_ui.PlantsColors
import xyz.qwexter.compose_ui.PlantsShapes
import xyz.qwexter.compose_ui.PlantsTypography
@Composable
fun PlantsTheme(
content: @Composable () -> Unit... | 2 | Kotlin | 0 | 0 | c6c5ec88436948c6046ea95d269d8727b0d0798c | 479 | plantscare | MIT License |
demo/composeApp/src/commonMain/kotlin/com/kmpalette/demo/dominant/DominantPhotoColorScreen.kt | jordond | 690,222,635 | false | null | package com.kmpalette.demo.dominant
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.FlowR... | 5 | null | 5 | 93 | 25939de79c9c9de925c5e0b0f02eb7087d945652 | 6,783 | kmpalette | MIT License |
components/archive/category/src/main/java/com/flipperdevices/archive/category/composable/ComposableDeleted.kt | flipperdevices | 288,258,832 | false | null | package com.flipperdevices.archive.category.composable
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Ro... | 2 | null | 31 | 293 | 522f873d6dcf09a8f1907c1636fb0c3a996f5b44 | 3,123 | Flipper-Android-App | MIT License |
kompass-core/src/jvmMain/kotlin/io/sellmair/kompass/core/internal/Lock.kt | sellmair | 113,365,232 | false | null | package io.sellmair.kompass.core.internal
import java.util.concurrent.locks.ReentrantLock
import kotlin.concurrent.withLock
internal actual class Lock {
private val reentrantLock = ReentrantLock()
actual operator fun <T> invoke(action: () -> T): T = reentrantLock.withLock(action)
} | 9 | Kotlin | 12 | 345 | 0f46ef4d70a686ac231ef320844af7389f1cd0b1 | 295 | kompass | MIT License |
feature/hall-of-fame/src/commonMain/kotlin/com/opencritic/halloffame/di/Module.kt | MAX-POLKOVNIK | 797,563,657 | false | {"Kotlin": 604244, "Swift": 213504, "Objective-C": 8050} | package com.opencritic.halloffame.di
import com.opencritic.halloffame.data.HallOfFameRepositoryImpl
import com.opencritic.halloffame.domain.GetHallsOfFameInteractor
import com.opencritic.halloffame.domain.HallOfFameRepository
import com.opencritic.halloffame.ui.HallsOfFameViewModel
import com.opencritic.mvvm.viewModel... | 0 | Kotlin | 0 | 4 | 99c3df65e8620fe5f2d5c16ade0d593357869fa5 | 577 | OpenCritic | Apache License 2.0 |
compiler/testData/codegen/box/ranges/nullableLoopParameter/rangeLiteral.kt | JakeWharton | 99,388,807 | false | null | // IGNORE_BACKEND: JS_IR
fun box(): String {
var result = 0
for (i: Int? in 1..3) {
result = sum(result, i)
}
return if (result == 6) "OK" else "fail: $result"
}
fun sum(i: Int, z: Int?): Int {
return i + z!!
} | 179 | null | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 239 | kotlin | Apache License 2.0 |
_router/router-api/src/main/java/io/androidalatan/router/api/journey/builder/JourneyBuilder.kt | android-alatan | 466,507,427 | false | null | package io.androidalatan.router.api.journey.builder
import android.app.Activity
import android.app.Service
import android.content.Intent
import androidx.fragment.app.Fragment
interface JourneyBuilder {
fun activity(destination: Class<out Activity>): ActivityJourneyBuilder
fun activityIntent(intent: Intent? = ... | 3 | Kotlin | 5 | 56 | 35b0ec7a89f8254db0af1830ac1de8a7124c6f09 | 504 | LifecycleComponents | MIT License |
eva-persistence-jdbc/src/test/kotlin/com/razz/eva/persistence/jdbc/executor/JdbcQueryExecutorSpec.kt | razz-team | 477,827,497 | false | null | package com.razz.eva.persistence.jdbc.executor
import com.razz.eva.persistence.jdbc.JdbcConnectionElement
import com.razz.eva.persistence.jdbc.JdbcConnectionProvider
import com.razz.eva.persistence.jdbc.JdbcTransactionManager
import io.kotest.assertions.throwables.shouldThrow
import io.kotest.core.spec.style.BehaviorS... | 7 | null | 0 | 49 | 3231491c91e417f11fad4557650f0fcdc60f741e | 7,208 | eva | Apache License 2.0 |
entity-service/src/test/kotlin/com/egm/stellio/entity/service/EntityOperationServiceTests.kt | stellio-hub | 257,818,724 | false | null | package com.egm.stellio.entity.service
import com.egm.stellio.entity.model.NotUpdatedDetails
import com.egm.stellio.entity.model.UpdateResult
import com.egm.stellio.entity.repository.Neo4jRepository
import com.egm.stellio.entity.web.BatchEntityError
import com.egm.stellio.entity.web.BatchEntitySuccess
import com.egm.s... | 50 | Kotlin | 8 | 16 | 38bc7189a5fec1b14a46e86fc35e1ee7d842d8c0 | 13,397 | stellio-context-broker | Apache License 2.0 |
kotlin-electron/src/jsMain/generated/electron/core/FeedURLOptions.kt | JetBrains | 93,250,841 | false | null | package electron.core
external interface FeedURLOptions {
var url: String
/**
* HTTP request headers.
*
* @platform darwin
*/
var headers: js.core.ReadonlyRecord<String, String>?
/**
* Can be `json` or `default`, see the Squirrel.Mac README for more information.
*
... | 40 | null | 174 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 397 | kotlin-wrappers | Apache License 2.0 |
modulo-02-controles-de-fluxo-no-kotlin/src/main/kotlin/UsoDoWhile.kt | ffelicio82-android | 577,000,005 | false | null | /*
* While
*
* Assim como no Java, o Kotlin possui a instrução while para percorrer os dados.
* Além do while, o Kotlin também possui o do/while
* Eles servem para o mesmo propósito, mas a diferença entre eles é que o do/while executa a instrução ao menos uma vez.
*/
fun main() {
var a : Int = 10
while(a... | 0 | Kotlin | 0 | 0 | 36358bdf1d6608d7ea9d7bd66fc3075902b03eff | 1,274 | curso-dev-kotlin | Apache License 2.0 |
compiler/testData/evaluate/usesVariableAsConstant/OtherTypes.kt | JakeWharton | 99,388,807 | false | null | package test
enum class MyEnum { A, B }
fun foo(): Boolean = true
val x = 1
// val prop1: false
val prop1 = MyEnum.A
// val prop2: null
val prop2 = foo()
// val prop3: true
val prop3 = "$x"
// val prop4: false
val prop4 = intArrayOf(1, 2, 3)
// val prop5: true
val prop5 = intArrayOf(1, 2, x, x)
| 181 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 304 | kotlin | Apache License 2.0 |
simplexml-ksp-test/kmm/src/commonTest/kotlin/ua/vald_zx/simplexml/ksp/test/list/ListTests.kt | ValdZX | 372,240,045 | false | {"Kotlin": 236365} | package ua.vald_zx.simplexml.ksp.test.list
import ua.vald_zx.simplexml.ksp.SimpleXml
import ua.vald_zx.simplexml.ksp.test.custompackage.TestSerializersEnrolment
import kotlin.js.JsName
import kotlin.test.BeforeTest
import kotlin.test.Test
import kotlin.test.assertEquals
class ListTests {
@BeforeTest
fun init... | 0 | Kotlin | 0 | 1 | 6fe7aad73f82b8719a9aafd9285a354cf79de8ef | 10,694 | SimpleXmlKsp | Apache License 2.0 |
relive-simulator-core/src/commonMain/kotlin/xyz/qwewqa/relive/simulator/core/gen/data/GenFieldEffectData.kt | qwewqa | 390,928,568 | false | null | package xyz.qwewqa.relive.simulator.core.gen
/*
1:
_id_: 1
buff_type1: 1
buff_type1_target_id: 1002
buff_type1_value_list:
- 30
- 40
- 50
- 60
- 70
buff_type2: 13
buff_type2_target_id: 1002
buff_type2_value_list:
- 10
- 15
- 20
- 25
- 30
buff_type3: 15
buff_type3_target_id: 1002
... | 2 | Kotlin | 11 | 7 | e32dab696f56ead176e35fca40add33ad1e7f742 | 148,363 | relight | MIT License |
app/src/main/java/pk/gop/pulse/cadastralSurvey/domain/use_case/auth/UpdatePasswordUseCase.kt | HabbashMahmood | 801,361,247 | false | {"Kotlin": 748621, "HTML": 14557, "C++": 3323, "CMake": 1826} | package pk.gop.pulse.cadastralSurvey.domain.use_case.auth
import pk.gop.pulse.cadastralSurvey.common.SimpleResource
import pk.gop.pulse.cadastralSurvey.domain.repository.AuthRepository
import javax.inject.Inject
class UpdatePasswordUseCase @Inject constructor(
private val repository: AuthRepository
) {
suspen... | 0 | Kotlin | 0 | 0 | c3e71cf1f094f0a0ded76af417b36861f0af3433 | 456 | CadastralSurveyApp | MIT License |
app/src/main/java/com/botigocontigo/alfred/areas/Area.kt | UTN-FRBA-Mobile | 146,629,720 | false | null | package com.botigocontigo.alfred.areas
data class Task(
val id: Int,
var name: String,
var descripcionCorta: String,
var descripcionLarga: String,
var logo: String)
| 0 | Kotlin | 4 | 1 | 558eb3967b3026bf66ae12d25b98c8055b3a9949 | 206 | Alfred | MIT License |
lib/xlsx/src/commonMain/kotlin/zakadabar/lib/xlsx/internal/model/File.kt | spxbhuhb | 290,390,793 | false | null | /*
* Copyright © 2020-2021, <NAME> and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package zakadabar.lib.xlsx.internal.model
internal class File {
val content = mutableListOf<Part>()
val contentType = + ContentType()
val rels = + Rels()
val workBookRels = + Rels(... | 5 | null | 3 | 24 | 00859b62570bf455addc9723015ba2c48b77028b | 1,008 | zakadabar-stack | Apache License 2.0 |
core-android/src/main/java/ru/mail/march/interactor/InteractorViewModel.kt | mailru | 263,284,417 | false | null | package ru.mail.march.interactor
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import ru.mail.march.channel.LiveDataChannelFactory
class InteractorViewModel<I : Interactor>(
val interactor: I,
val channelFactory: LiveDataChannelFactory
) : ViewModel() {
init {
inter... | 2 | Kotlin | 1 | 11 | a4c2bfef724dc0e584dd2d656bcd063d25e659c7 | 461 | March | MIT License |
utils/http/src/main/kotlin/io/river/util/http/Http.kt | River-Kt | 539,201,163 | false | null | package io.river.util.http
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.future.await
import kotlinx.coroutines.jdk9.asPublisher
import kotlinx.coroutines.jdk9.collect
import java.net.http.HttpClient
import java.net.http.HttpRequest
import java.net.http.HttpRequest.B... | 11 | Kotlin | 1 | 7 | 0d31565394650e8fca318fd103e6009db6c3e93f | 2,876 | river | MIT License |
libs/ui/src/main/kotlin/com/illiarb/tmdbclient/libs/ui/v2/theme/Font.kt | ilya-rb | 152,124,194 | false | null | package com.illiarb.tmdbclient.libs.ui.v2.theme
import androidx.compose.material.Typography
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.font.font
import androidx.compose.ui.text.font.fontFamily
import androidx.compose.ui.unit.sp
import com.i... | 0 | Kotlin | 1 | 5 | 2a316e72c6ce68759627e52a749b7f02d91b2787 | 2,782 | Tmdb-Client | MIT License |
components/keyscreen/impl/src/main/java/com/flipperdevices/keyscreen/impl/composable/actions/ComposableDelete.kt | flipperdevices | 288,258,832 | false | null | package com.flipperdevices.keyscreen.impl.composable.actions
import androidx.compose.runtime.Composable
import com.flipperdevices.core.ui.R as DesignSystem
import com.flipperdevices.keyscreen.impl.R
import com.flipperdevices.keyscreen.impl.model.DeleteState
@Composable
fun ComposableDelete(deleteState: DeleteState, o... | 2 | Kotlin | 31 | 293 | 522f873d6dcf09a8f1907c1636fb0c3a996f5b44 | 973 | Flipper-Android-App | MIT License |
app/src/main/java/com/forcetower/uefs/feature/shared/ViewPagerPager.kt | marcelobiao | 184,821,890 | true | {"Kotlin": 1857200, "Java": 257698, "Shell": 376} | /*
* Copyright (c) 2019.
* João Paulo Sena <joaopaulo761@gmail.com>
*
* This file is part of the UNES Open Source Project.
*
* UNES is licensed under the MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Soft... | 0 | Kotlin | 0 | 0 | 8c27cac95ffde6aae6a07156be0aad3d6039767e | 3,463 | Melon | MIT License |
domain/src/main/java/com/company/domain/model/ApiResponse.kt | Ahmed63c | 461,240,851 | false | null | package com.company.domain.model
import com.google.gson.annotations.SerializedName
data class WrapperResponse(
@field:SerializedName("results")
val results: ArrayList<Articles>? = null
)
data class Articles(
@SerializedName("id")
val mId: Long? = null,
@SerializedName("byline")
val mBylin... | 0 | Kotlin | 0 | 0 | d407ca66ea6e9a34803227b56f232e0b207308d1 | 683 | NyTimes | Apache License 2.0 |
android/app/src/main/kotlin/com/example/remote/MainActivity.kt | ShivanshuKGupta | 627,900,529 | false | {"Dart": 83759, "C++": 23379, "CMake": 18776, "Python": 16581, "HTML": 1837, "Swift": 1528, "C": 1425, "Batchfile": 1323, "Kotlin": 352, "Objective-C": 38} | package com.example.remote
import android.os.Bundle
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.plugin.common.MethodChannel
import dev.darttools.flutter_android_volume_keydown.FlutterAndroidVolumeKeydownActivity
class MainActivity : FlutterAnd... | 1 | Dart | 0 | 11 | 5e68cdc8505c14eaeb3acb3f175207979bcae408 | 352 | remote | MIT License |
sqlite/src/main/kotlin/com/andretietz/retroauth/SQLiteCredentialStore.kt | andretietz | 37,072,673 | false | null | package com.andretietz.retroauth
import com.andretietz.retroauth.sqlite.CredentialTable
import com.andretietz.retroauth.sqlite.DataTable
import com.andretietz.retroauth.sqlite.DatabaseCredential
import com.andretietz.retroauth.sqlite.DatabaseData
import com.andretietz.retroauth.sqlite.DatabaseUser
import com.andretiet... | 0 | Kotlin | 39 | 408 | 43a88b18e65f56fefa015613d75a50e704804924 | 2,896 | retroauth | Apache License 2.0 |
src/main/java/de/tum/www1/orion/build/instructor/OrionRunConfigurationProvider.kt | ls1intum | 203,402,411 | false | null | package de.tum.www1.orion.build.instructor
import com.intellij.execution.RunnerAndConfigurationSettings
interface OrionRunConfigurationProvider {
fun provideBuildAndTestRunConfiguration(workingDir: String): RunnerAndConfigurationSettings?
} | 8 | null | 5 | 30 | df684f46c9faeb0e41dd46e9a1d673097d0ab09f | 246 | Orion | MIT License |
smartdoc-dashboard/src/test/kotlin/smartdoc/dashboard/testcase/UserTest.kt | Maple-mxf | 283,354,797 | false | {"Kotlin": 3578500, "Java": 741741, "Dockerfile": 1079, "Shell": 1000, "Python": 714} | package smartdoc.dashboard.testcase
import org.junit.Test
import org.junit.runner.RunWith
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.data.mongodb.core.MongoTemplate
import org.springframework.data.mongodb.core.que... | 21 | Kotlin | 2 | 2 | 3cdf9de7593c78c819b3dadc9b583e736041d55f | 1,417 | rest-doc | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.