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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/app/domain/datasources/remote/authentication/RemoteAuthenticationDatasource.kt | bed72 | 664,335,364 | false | null | package app.domain.datasources.remote.authentication
import app.domain.alias.SignUpType
import app.domain.parameters.authentication.SignUpParameter
import app.domain.parameters.authentication.SignInParameter
interface RemoteAuthenticationDatasource {
suspend fun signUp(parameters: SignUpParameter): SignUpType
... | 0 | Kotlin | 0 | 0 | d247a689128721751ded77bb2e0d60f45fe3d403 | 384 | KingsCross | Apache License 2.0 |
app/src/main/kotlin/eu/ezytarget/processingtemplate/realms/tesseract/TesseractRealmBuilder.kt | easytarget2000 | 266,631,921 | false | {"Kotlin": 125275} | package eu.ezytarget.processingtemplate.realms.tesseract
import eu.ezytarget.processingtemplate.realms.Realm
import eu.ezytarget.processingtemplate.realms.RealmBuilder
object TesseractRealmBuilder : RealmBuilder {
override fun build(): Realm = TesseractRealm()
} | 0 | Kotlin | 0 | 0 | 78f5aa56882a8cb16017781bd0060ba36ba1793b | 268 | kotlin-processing-template | ANTLR Software Rights Notice |
android/khajit/app/src/main/java/com/project/khajit_app/activity/ui/other_profile/OtherUserProfile.kt | bounswe | 170,124,936 | false | null | package com.project.khajit_app.activity.ui.other_profile
import android.graphics.Color
import androidx.lifecycle.ViewModelProviders
import android.os.Bundle
import android.text.method.ScrollingMovementMethod
import android.util.Log
import android.view.KeyEvent
import androidx.fragment.app.Fragment
import android.view.... | 32 | Kotlin | 2 | 9 | 9572fd307345b3f842c2c2ff4426857086484ed5 | 17,235 | bounswe2019group1 | MIT License |
yelp-fusion-android/src/main/java/com/jieheng/yelpfusion/model/Open.kt | JieHeng | 193,074,711 | false | null | package com.jieheng.yelpfusion.model
import com.google.gson.annotations.SerializedName
data class Open (
@SerializedName("is_overnight") val isOvernight : Boolean,
@SerializedName("start") val start : Int,
@SerializedName("end") val end : Int,
@SerializedName("day") val day : Int
) | 0 | Kotlin | 0 | 0 | 6094bf6a3d5214a61abd25e283af3a43e274047d | 300 | yelp-fusion-android | The Unlicense |
projects/manage-supervision-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/api/model/personalDetails/Document.kt | ministryofjustice | 500,855,647 | false | {"Kotlin": 3955601, "HTML": 68645, "D2": 30565, "Ruby": 25392, "Shell": 15576, "SCSS": 6240, "HCL": 2712, "Dockerfile": 2414, "JavaScript": 1344, "Python": 268} | package uk.gov.justice.digital.hmpps.api.model.personalDetails
import java.time.ZonedDateTime
data class Document(
val id: String,
val name: String,
val lastUpdated: ZonedDateTime?
)
| 9 | Kotlin | 0 | 2 | 47407ee1233a7a3dcee0aff33f328f100ba17ba5 | 197 | hmpps-probation-integration-services | MIT License |
biometric/src/main/java/dev/skomlach/biometric/compat/engine/internal/face/miui/impl/Miui3DFaceManagerImpl.kt | sergeykomlach | 317,847,167 | false | null | /*
* Copyright (c) 2023 <NAME> aka Salat-Cx65; Original project https://github.com/Salat-Cx65/AdvancedBiometricPromptCompat
* All rights reserved.
*
* 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 ... | 9 | null | 5 | 94 | 9555725a28227e28079a6dbc5da7c91d8b9634bb | 55,009 | AdvancedBiometricPromptCompat | Apache License 2.0 |
react-table-kotlin/src/jsMain/kotlin/tanstack/table/core/isSubRowSelected.kt | karakum-team | 393,199,102 | false | null | // Automatically generated - do not modify!
@file:JsModule("@tanstack/table-core")
@file:JsNonModule
package tanstack.table.core
import kotlinx.js.ReadonlyRecord
external fun <TData : RowData> isSubRowSelected(
row: Row<TData>,
selection: ReadonlyRecord<String, Boolean>,
table: Table<TData>,
): Any /* B... | 0 | null | 8 | 36 | 95b065622a9445caf058ad2581f4c91f9e2b0d91 | 347 | types-kotlin | Apache License 2.0 |
app/src/main/java/com/quixom/apps/deviceinfo/views/CPUView.kt | code4lifevn | 116,898,728 | true | {"Java": 481337, "Kotlin": 113550} | package com.quixom.apps.deviceinfo.views
import android.view.Gravity
import android.widget.LinearLayout
import com.quixom.apps.deviceinfo.fragments.CPUFragment
import org.jetbrains.anko.*
/**
* Created by akif on 9/25/17.
*/
class CPUView : AnkoComponent<CPUFragment> {
private lateinit var ankoContext: AnkoCon... | 0 | Java | 1 | 0 | ae60e9bdfd01e1c6a7541f2526845535e9f5848f | 682 | DeviceInfo | Apache License 2.0 |
compose/ui/ui-test/src/commonMain/kotlin/androidx/compose/ui/test/TestOwner.kt | androidx | 256,589,781 | false | null | /*
* Copyright 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 applica... | 30 | null | 974 | 5,229 | ff4bb04d5ec21e510422eba7ee2240d6e71576be | 4,100 | androidx | Apache License 2.0 |
font-awesome/src/commonMain/kotlin/compose/icons/fontawesomeicons/solid/KissWinkHeart.kt | DevSrSouza | 311,134,756 | false | null | package compose.icons.fontawesomeicons.solid
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Butt
import androidx.compose.ui.graphics.StrokeJoin.Miter
import androidx.compose.... | 17 | null | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 4,507 | compose-icons | MIT License |
font-awesome/src/commonMain/kotlin/compose/icons/fontawesomeicons/solid/KissWinkHeart.kt | DevSrSouza | 311,134,756 | false | null | package compose.icons.fontawesomeicons.solid
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Butt
import androidx.compose.ui.graphics.StrokeJoin.Miter
import androidx.compose.... | 17 | null | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 4,507 | compose-icons | MIT License |
app/src/main/java/com/guru/composecookbook/ui/learnwidgets/AppBars.kt | Gurupreet | 293,227,683 | false | null | package com.guru.composecookbook.ui.learnwidgets
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowB... | 10 | Kotlin | 8 | 3,360 | d02d2cc827b8cab804ef75821d2755d50ce448c9 | 6,431 | ComposeCookBook | MIT License |
app/src/main/java/com/example/dashboard_cba/utils/Constants.kt | JuanseVidales | 671,575,527 | false | null | /**
* Objeto [Constants] que contiene constantes utilizadas en la aplicación.
*/
object Constants {
/**
* ID del canal de notificaciones utilizado para mostrar las notificaciones de la aplicación.
* Este valor se utiliza para identificar el canal de notificaciones al crearlo.
*/
const val chann... | 0 | Kotlin | 0 | 1 | 23a773e0842d2166c6291b378b26d40ac58ad2a9 | 343 | Proyecto_Kotlin | MIT License |
EarthGardener/app/src/main/java/team/gdsc/earthgardener/domain/nickname/CheckNicknameData.kt | EarthGardener | 454,439,830 | false | {"Kotlin": 10400} | package team.gdsc.earthgardener.domain.nickname
data class CheckNicknameData(
val message: String,
val status: Int
)
| 20 | Kotlin | 0 | 1 | a06cbf7c45ea2181475a0fccd8c77f04cee58970 | 126 | EarthGardener-Android | MIT License |
sample/src/main/kotlin/br/com/zup/beagle/sample/BeagleUiSampleApplication.kt | ZupIT | 391,144,851 | false | null | /*
* Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* 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... | 4 | null | 3 | 9 | 812a330777edd79a123495e9f678dc8f25a019f7 | 837 | beagle-android | Apache License 2.0 |
mvvm/src/main/java/com/taonce/mvvm/util/LogUtils.kt | Taonce | 200,171,135 | false | null | package com.moyoi.library_base.utils
import android.util.Log
/**
* 常用的日志打印类
*/
const val COMMON_TAG = "WanAndroid"
private const val IS_SHOW_LOG: Boolean = true
fun showDebug(
msg: String,
tag: String = COMMON_TAG
) {
if (IS_SHOW_LOG) {
Log.d(tag, zipLogMsg(msg))
}
}
fun showError(
m... | 1 | null | 6 | 25 | 3f01a173447f7d4d1628115021c48e2224e71a3b | 1,818 | MVVM-T | MIT License |
examples/androidx-samples/src/main/java/org/koin/sample/sandbox/navigation/NavFragmentA.kt | InsertKoinIO | 93,515,203 | false | null | package org.koin.sample.androidx.navigation
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import androidx.navigation.fragment.findNavController
import org.koin.androidx.navigation.koi... | 78 | null | 711 | 8,934 | f870a02fd32a2cf1ff8b69406ebf555c26ffe39f | 1,134 | koin | Apache License 2.0 |
platform/external-system-impl/testSrc/com/intellij/openapi/externalSystem/autoimport/AutoImportTest.kt | hieuprogrammer | 284,920,751 | true | 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.autoimport
import com.intellij.openapi.externalSystem.autoimport.ExternalSystemProjectTrackerSettings.AutoReloadType.*
import com.inte... | 1 | null | 2 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 34,595 | intellij-community | Apache License 2.0 |
src/test/kotlin/ru/yoomoney/tech/grafana/dsl/metrics/prometheus/functions/FloorTest.kt | yoomoney | 158,901,967 | false | {"Kotlin": 378524, "Shell": 644} | package ru.yoomoney.tech.grafana.dsl.metrics.prometheus.functions
import org.amshove.kluent.shouldBeEqualTo
import org.testng.annotations.Test
import ru.yoomoney.tech.grafana.dsl.metrics.prometheus.asInstantVector
class FloorTest {
@Test
fun `should apply floor function to prometheusMetric`() {
// giv... | 2 | Kotlin | 8 | 53 | 58ab4e2e70e544c4160b97b4dc64e73235a4bd00 | 472 | grafana-dashboard-dsl | MIT License |
vtp-pensjon-application/src/main/kotlin/no/nav/pensjon/vtp/mocks/oppgave/gask/behandleoppgave/v1/BehandleOppgaveServiceMockImpl.kt | navikt | 254,055,233 | false | null | package no.nav.pensjon.vtp.mocks.oppgave.gask.behandleoppgave.v1
import no.nav.pensjon.vtp.annotations.SoapService
import no.nav.pensjon.vtp.mocks.oppgave.gask.sak.v1.GsakRepo
import no.nav.pensjon.vtp.testmodell.exceptions.NotImplementedException
import no.nav.tjeneste.virksomhet.behandleoppgave.v1.BehandleOppgaveV1
... | 14 | Kotlin | 0 | 2 | cd270b5f698c78c1eee978cd24bd788163c06a0c | 4,285 | vtp-pensjon | MIT License |
components/bridge/impl/src/main/java/com/flipperdevices/bridge/impl/manager/service/FlipperVersionApiImpl.kt | flipperdevices | 288,258,832 | false | null | package com.flipperdevices.bridge.impl.manager.service
import android.bluetooth.BluetoothGatt
import android.bluetooth.BluetoothGattCharacteristic
import androidx.datastore.core.DataStore
import com.flipperdevices.bridge.api.manager.ktx.state.FlipperSupportedState
import com.flipperdevices.bridge.api.manager.service.F... | 9 | null | 78 | 999 | ef27b6b6a78a59b603ac858de2c88f75b743f432 | 3,938 | Flipper-Android-App | MIT License |
packaging-gradle-plugin/src/com/hendraanggrian/packaging/WindowsPackSpec.kt | hendraanggrian | 120,912,663 | false | null | package com.hendraanggrian.packaging
import org.gradle.api.provider.Property
/** Platform-specific options than can be configured using `windows { ... }` within [PackSpec]. */
@PackSpecMarker
interface WindowsPackSpec : PackSpec {
//region Platform dependent option for creating the application launcher
/** C... | 3 | Kotlin | 1 | 18 | d8d82578ae76da81c92c05cc5963976af48afa1f | 1,215 | packaging-gradle-plugin | Apache License 2.0 |
serialk_gson/src/main/java/com/mozhimen/serialk/gson/UtilKStrJson.kt | mozhimen | 812,481,724 | false | {"Kotlin": 16695} | package com.mozhimen.serialk.gson
import org.json.JSONArray
/**
* @ClassName UtilKStrJson
* @Description TODO
* @Author Mozhimen / <NAME>
* @Date 2024/6/10 0:33
* @Version 1.0
*/
fun <T> String.strJson2tList(clazz: Class<T>): ArrayList<T?>? =
UtilKStrJson.strJson2tList(this, clazz)
////////////////////////... | 0 | Kotlin | 1 | 1 | 3b4bb6c34fa6029e63e2a02a396ad08ea1b5ae21 | 590 | ASerialKit | Apache License 2.0 |
samples/kaspresso-sample/src/androidTest/kotlin/com/kaspersky/kaspressample/docloc_tests/advanced/AdvancedScreenshotSampleTestLegacy.kt | eakurnikov | 255,060,909 | true | {"Kotlin": 700193, "Java": 10748, "Makefile": 387} | package com.kaspersky.kaspressample.docloc_tests.advanced
import android.graphics.Color
import androidx.fragment.app.testing.launchFragmentInContainer
import com.kaspersky.kaspressample.docloc.ScreenshotSampleFragment
import com.kaspersky.kaspressample.docloc.ScreenshotSampleView
import com.kaspersky.kaspresso.annotat... | 5 | Kotlin | 0 | 0 | 57f4fa7b9aa99d350fa4433cef6ecce58a2e58a7 | 1,556 | Kaspresso | Apache License 2.0 |
plugins/kotlin/j2k/new/tests/testData/newJ2k/settings/publicByDefault.kt | JetBrains | 2,489,216 | false | null | // !PUBLIC_BY_DEFAULT: true
class J {
fun foo() {}
var bar = 42
}
| 214 | null | 4829 | 15,129 | 5578c1c17d75ca03071cc95049ce260b3a43d50d | 74 | intellij-community | Apache License 2.0 |
plugins/hh-garcon/src/main/kotlin/ru/hh/plugins/garcon/actions/collect_kakao_views/CollectWidgetsIntoPageObjectDialog.kt | hhru | 159,637,875 | false | null | package ru.hh.plugins.garcon.actions.collect_kakao_views
import com.intellij.ide.util.PropertiesComponent
import com.intellij.openapi.project.Project
import com.intellij.openapi.ui.DialogWrapper
import com.intellij.psi.PsiElement
import com.intellij.psi.xml.XmlFile
import com.intellij.ui.RecentsManager
import com.inte... | 24 | null | 18 | 97 | 2d6c02fc814eff3934c17de77ef7ade91d3116f5 | 4,313 | android-multimodule-plugin | MIT License |
zowe-cli/src/jsMain/kotlin/zowe/cli/zosjobs/download/download_output/Output.definition.kt | lppedd | 761,812,661 | false | {"Kotlin": 1887051} | @file:JsModule("@zowe/cli")
package zowe.cli.zosjobs.download.download_output
import zowe.imperative.cmd.doc.ICommandDefinition
external val OutputDefinition: ICommandDefinition
| 0 | Kotlin | 0 | 3 | 0f493d3051afa3de2016e5425a708c7a9ed6699a | 181 | kotlin-externals | MIT License |
app/src/main/java/xyz/teamgravity/todo/data/local/converter/TodoConverter.kt | raheemadamboev | 330,992,280 | false | null | package xyz.teamgravity.todo.data.local.converter
import androidx.room.TypeConverter
import java.util.*
class TodoConverter {
@TypeConverter
fun dateToLong(value: Date): Long {
return value.time
}
@TypeConverter
fun longToDate(value: Long): Date {
return Date(value)
}
} | 1 | null | 1 | 6 | 4a5538781b0312183861058638f6a0fbeb65347a | 314 | todo-app | Apache License 2.0 |
android/app/src/main/java/com/thedevgang/liga/presentation/ui/players/PlayersViewModel.kt | RZEROSTERN | 272,800,715 | false | null | package com.thedevgang.liga.presentation.ui.players
import androidx.lifecycle.ViewModel
class PlayersViewModel : ViewModel() {
// TODO: Implement the ViewModel
}
| 0 | Kotlin | 0 | 0 | 930eb79fdd81130ead2c5d1f1dc01dc3f400e142 | 168 | thedevgang_liga | MIT License |
android/Library/Owner/app/src/main/java/com/pradyotprakash/libraryowner/app/utils/Assets.kt | pradyotprksh | 385,586,594 | false | {"Kotlin": 1895342, "Dart": 1052279, "Python": 311069, "Swift": 145439, "C++": 90451, "CMake": 74709, "Go": 45704, "HTML": 19243, "Ruby": 12424, "C": 5700, "Shell": 817, "JavaScript": 781, "CSS": 588, "Objective-C": 342, "Makefile": 318, "Dockerfile": 32} | package com.pradyotprakash.libraryowner.app.utils
import com.pradyotprakash.libraryowner.R
import com.pradyotprakash.libraryowner.app.utils.Constants.defaultLanguage
sealed class Assets(
val resourceId: Int = -1,
val path: String = "",
val imageDescription: String = ""
) {
object AppIcon :
Ass... | 0 | Kotlin | 9 | 15 | f2bef232d7b45c68f94985a0ac2542f3bb2d8f19 | 525 | development_learning | MIT License |
vector/src/main/java/vmodev/clearkeep/viewmodels/FeedBackFragmentViewModel.kt | telred-llc | 194,596,139 | false | {"Java": 5914133, "Kotlin": 3855534, "JavaScript": 179733, "HTML": 22037, "Shell": 17049} | package vmodev.clearkeep.viewmodels
import androidx.lifecycle.LiveData
import vmodev.clearkeep.repositories.FeedbackRepository
import vmodev.clearkeep.rests.models.responses.FeedbackResponse
import vmodev.clearkeep.viewmodelobjects.Resource
import vmodev.clearkeep.viewmodels.interfaces.AbstractFeedBackFragmentViewMode... | 5 | Java | 1 | 3 | 2d20e94e9711b51aee89fa569efd61449cc7e9c3 | 666 | clearkeep-android | Apache License 2.0 |
cesium-kotlin/src/jsMain/kotlin/cesium/engine/ConstantSpline.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6272741} | // Automatically generated - do not modify!
@file:JsModule("@cesium/engine")
@file:Suppress(
"EXTERNAL_CLASS_CONSTRUCTOR_PROPERTY_PARAMETER",
)
package cesium.engine
/**
* A spline that evaluates to a constant value. Although this follows the [Spline] interface,
* it does not maintain an internal array of tim... | 0 | Kotlin | 8 | 36 | 95b065622a9445caf058ad2581f4c91f9e2b0d91 | 2,550 | types-kotlin | Apache License 2.0 |
src/main/kotlin/org/intellij/plugin/mdx/lang/psi/MdxTemplateDataElementType.kt | valentinnodan | 279,243,243 | false | null | package org.intellij.plugin.mdx.lang.psi
import com.intellij.lang.javascript.types.JEEmbeddedBlockElementType
import com.intellij.lang.javascript.types.JSEmbeddedContentElementType
import com.intellij.lexer.Lexer
import com.intellij.openapi.util.TextRange
import com.intellij.psi.templateLanguages.TemplateDataElementTy... | 13 | Kotlin | 2 | 8 | 52a51db1e1b6158d52e27f12277f56ca20c228f0 | 3,120 | mdx-intellij-plugin | MIT License |
app/src/main/java/com/anangkur/movieku/consumer/feature/detail/DetailActionListener.kt | anangkur | 198,078,584 | false | {"Kotlin": 52406} | package com.anangkur.movieku.consumer.feature.detail
import com.anangkur.movieku.consumer.data.model.Result
interface DetailActionListener {
fun onAddFavourite(data: Result)
fun onRemoveFavourite(data: Result)
} | 0 | Kotlin | 0 | 0 | 6a66a0c48b9e1d95ec1f29c42e2d28d2d894c656 | 221 | movie-ku-consumer | MIT License |
core-legacy/src/main/java/com/dipien/core/gson/GsonBuilderFactory.kt | dipien | 83,250,302 | false | {"Java": 154407, "Kotlin": 153960, "Shell": 2559, "HTML": 1750} | package com.dipien.core.gson
import com.dipien.core.date.DateConfiguration
import com.google.gson.GsonBuilder
object GsonBuilderFactory {
fun createGsonBuilder(): GsonBuilder {
val gsonBuilder = GsonBuilder()
gsonBuilder.setDateFormat(DateConfiguration.getDefaultDateTimeFormat())
gsonBuil... | 3 | Java | 1 | 3 | 755109b4b63969287b64f42973bdb287ab06c13f | 461 | kotlin-libraries | Apache License 2.0 |
src/main/kotlin/me/senseiwells/replay/recorder/ChunkSender.kt | senseiwells | 643,690,788 | false | {"Kotlin": 226706, "Java": 62719} | package me.senseiwells.replay.recorder
import it.unimi.dsi.fastutil.ints.IntOpenHashSet
import it.unimi.dsi.fastutil.ints.IntSet
import me.senseiwells.replay.ServerReplay
import me.senseiwells.replay.chunk.ChunkRecorder
import me.senseiwells.replay.mixin.rejoin.ChunkMapAccessor
import me.senseiwells.replay.mixin.rejoi... | 1 | Kotlin | 8 | 91 | 04aad600db3705026759d91eba96554493d7dfbd | 7,773 | ServerReplay | MIT License |
feature/profile/src/main/java/com/niyaj/profile/components/AccountInfoBox.kt | skniyajali | 644,752,474 | false | {"Kotlin": 4922890, "Shell": 4104, "Batchfile": 1397, "Java": 232} | /*
* Copyright 2024 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 42 | Kotlin | 0 | 1 | 49485fe344b9345cd0cce0e0961742226dbd8ea1 | 2,928 | PoposRoom | Apache License 2.0 |
videoplayerapp/src/main/java/com/example/android/videoplayersample/MediaCatalog.kt | googlearchive | 127,076,887 | false | null | /*
* Copyright 2018 Google LLC. All rights reserved.
*
* 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 applica... | 1 | null | 50 | 146 | 14898c2271bfb53be8d9ab250f2107a28ec20ac5 | 2,680 | android-VideoPlayer | Apache License 2.0 |
plugins/client/graphql-kotlin-client-generator/src/main/kotlin/com/expediagroup/graphql/plugin/client/generator/types/generatePropertySpecs.kt | ssullivan | 344,931,918 | false | null | /*
* Copyright 2020 Expedia, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 0 | null | 0 | 1 | 4a89a8b183defa6a1f25494f2f9f90753f2723b2 | 3,276 | graphql-kotlin | Apache License 2.0 |
analysis/kt-references/src/org/jetbrains/kotlin/idea/references/KtForLoopInReference.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.references
import com.intellij.openapi.util.TextRange
import org.jetbrains.... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,086 | kotlin | Apache License 2.0 |
src/main/kotlin/Main.kt | aurelioklv | 737,580,684 | false | {"Kotlin": 83511} | package com.aurelioklv
import com.aurelioklv.enigma.component.ReflectorType
import com.aurelioklv.enigma.component.RotorType
import com.aurelioklv.enigma.util.Factory
fun main() {
val enigmaI = Factory.createEnigma(
Factory.createPlugboard(wiringString = "vbnmhjklasdfqwertyui"),
rotorTypes = listO... | 0 | Kotlin | 0 | 0 | 2110e20ab9e5d2160b0e32bda137b0f63a93ecc3 | 2,157 | enigma | MIT License |
src/main/kotlin/no/nav/helse/spurte_du/Api.kt | navikt | 728,230,541 | false | {"Kotlin": 40967, "Dockerfile": 168} | package no.nav.helse.spurte_du
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.auth.*
import io.ktor.server.request.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import io.ktor.server.util.*
import no.nav.helse.spurte_du.SpurteDuPrinsipal.Companion.logg
import java.... | 3 | Kotlin | 0 | 0 | 88e7dd0cc4d11c794012b41d86f4f682cb3eb210 | 5,880 | spurtedu | MIT License |
src/main/kotlin/no/nav/helse/spurte_du/Api.kt | navikt | 728,230,541 | false | {"Kotlin": 40967, "Dockerfile": 168} | package no.nav.helse.spurte_du
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.auth.*
import io.ktor.server.request.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import io.ktor.server.util.*
import no.nav.helse.spurte_du.SpurteDuPrinsipal.Companion.logg
import java.... | 3 | Kotlin | 0 | 0 | 88e7dd0cc4d11c794012b41d86f4f682cb3eb210 | 5,880 | spurtedu | MIT License |
objects/src/commonMain/kotlin/ru/krindra/vkkt/objects/callback/CallbackVideoCommentDelete.kt | krindra | 780,080,411 | false | {"Kotlin": 1336107} | package ru.krindra.vkkt.objects.callback
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
*
* @param id
* @param ownerId
* @param userId
* @param videoId
*/
@Serializable
data class CallbackVideoCommentDelete (
@SerialName("id") val id: Int,
@SerialName("user_id"... | 0 | Kotlin | 0 | 1 | 58407ea02fc9d971f86702f3b822b33df65dd3be | 433 | VKKT | MIT License |
ion-schema/src/main/kotlin/com/amazon/ionschema/util/CloseableIterator.kt | amazon-ion | 148,685,964 | false | {"Kotlin": 804755, "Inno Setup": 15625, "Java": 795, "Shell": 631} | /*
* Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or in ... | 40 | Kotlin | 14 | 27 | 7a9ee6d06e9cfdaa530310f5d9be9f5a52680d3b | 844 | ion-schema-kotlin | Apache License 2.0 |
src/main/kotlin/com/jetbrains/sorrel/plugin/packagesearch/api/model/StandardV2Version.kt | JetBrains-Research | 300,825,939 | false | {"Kotlin": 588227, "Java": 4072} | package com.jetbrains.sorrel.plugin.packagesearch.api.model
import com.google.gson.annotations.SerializedName
data class StandardV2Version(
@SerializedName("version")
val version: String,
@SerializedName("last_changed")
val lastChanged: Long?,
@SerializedName("stable")
... | 1 | Kotlin | 4 | 21 | 5f020a313dd2395a9ebe748eb0e0980d6fe08e63 | 876 | sorrel | Apache License 2.0 |
build/icons/compose/vitaminicons/fill/Barcode.kt | Decathlon | 511,157,831 | false | {"Kotlin": 4443549, "HTML": 226066, "Swift": 163852, "TypeScript": 60822, "CSS": 53872, "JavaScript": 33103, "Handlebars": 771} | package com.decathlon.vitamin.compose.vitaminicons.fill
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin... | 1 | Kotlin | 5 | 33 | c2c9cfa43128d412b7b2841cabd76952a13db2e1 | 3,471 | vitamin-design | Apache License 2.0 |
src/main/kotlin/by/dev/madhead/doktor/confluence/ConfluenceException.kt | jenkinsci | 102,877,358 | true | null | package by.dev.madhead.doktor.confluence
class ConfluenceException(override val message: String, cause: Throwable?) : Throwable(message, cause) {
constructor(message: String) : this(message, null)
}
| 0 | Kotlin | 3 | 20 | 25b51884853d8be0d524673a40eaccc87a7b91d8 | 201 | doktor-plugin | Apache License 2.0 |
app/src/main/java/com/example/hotpopcorn/view/main/MainActivity.kt | kamil-matula | 359,783,715 | false | null | package com.example.hotpopcorn.view.main
import android.content.Intent
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.SearchView
import androidx.lifecycle.ViewModelProvider
import a... | 0 | Kotlin | 0 | 0 | b08066819a92d7228f2a0a1a40f69564298418b0 | 4,932 | HotPopcorn | MIT License |
mobile_app1/module994/src/main/java/module994packageKt0/Foo150.kt | uber-common | 294,831,672 | false | null | package module692packageKt0;
annotation class Foo150Fancy
@Foo150Fancy
class Foo150 {
fun foo0(){
module692packageKt0.Foo149().foo4()
}
fun foo1(){
foo0()
}
fun foo2(){
foo1()
}
fun foo3(){
foo2()
}
fun foo4(){
foo3()
}
} | 6 | Java | 6 | 72 | 9cc83148c1ca37d0f2b2fcb08c71ac04b3749e5e | 267 | android-build-eval | Apache License 2.0 |
koin-projects/examples/hello-ktor/src/test/kotlin/org/koin/sample/ApplicationJobRoutesTest.kt | ermolnik | 212,771,350 | false | null | package org.koin.sample
import io.ktor.application.Application
import io.ktor.http.HttpMethod
import io.ktor.http.HttpStatusCode
import io.ktor.server.testing.handleRequest
import io.ktor.server.testing.withTestApplication
import org.junit.Test
import org.koin.test.AutoCloseKoinTest
import kotlin.test.assertEquals
imp... | 0 | null | 1 | 4 | 86c0398775463ac6be1301a4de0d2282e690462e | 1,617 | koin | Apache License 2.0 |
modules/effects/arrow-effects/src/main/kotlin/arrow/effects/MonadSuspend.kt | scame | 120,785,791 | true | {"Kotlin": 1404949, "CSS": 118096, "HTML": 9871, "JavaScript": 7457, "Java": 4423, "Shell": 3057} | package arrow.effects
import arrow.HK
import arrow.TC
import arrow.core.Either
import arrow.core.Tuple2
import arrow.core.toT
import arrow.effects.data.internal.BindingCancellationException
import arrow.typeclass
import arrow.typeclasses.MonadError
import kotlin.coroutines.experimental.startCoroutine
/** The context ... | 0 | Kotlin | 0 | 0 | 4208bc074cc0bb7e952e60501261808b93b6b797 | 2,296 | arrow | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/prisonertonomisupdate/activities/ActivitiesApiServiceTest.kt | ministryofjustice | 445,140,246 | false | {"Kotlin": 1195589, "Mustache": 1803, "Dockerfile": 1118} | @file:OptIn(ExperimentalCoroutinesApi::class)
package uk.gov.justice.digital.hmpps.prisonertonomisupdate.activities
import com.github.tomakehurst.wiremock.client.WireMock.equalTo
import com.github.tomakehurst.wiremock.client.WireMock.getRequestedFor
import com.github.tomakehurst.wiremock.client.WireMock.urlEqualTo
im... | 1 | Kotlin | 0 | 2 | e45536fb628694160e9ce7ac052b2e9053da65b2 | 29,947 | hmpps-prisoner-to-nomis-update | MIT License |
library/src/main/java/com/wahidabd/library/utils/rx/operators/ApiErrorOperators.kt | wahidabd | 609,474,062 | false | null | package com.wahidabd.library.utils.rx.operators
import com.wahidabd.library.data.libs.UnsuccessfulResponseHandler
import com.wahidabd.library.data.model.ApiError
import com.wahidabd.library.utils.exception.ApiException
import retrofit2.Response
/**
* Created by Wahid on 3/13/2023.
* Github wahidabd.
*/
fun <T :... | 1 | Kotlin | 0 | 0 | 9f1a38df839fa2705bea5682552d293c77dd0d4a | 1,856 | one-library | MIT License |
api/shops/src/main/kotlin/org/rsmod/api/shops/restock/ShopRestockProcess.kt | rsmod | 293,875,986 | false | {"Kotlin": 1969385} | package org.rsmod.api.shops.restock
import com.github.michaelbull.logging.InlineLogger
import jakarta.inject.Inject
import org.rsmod.api.utils.format.formatAmount
import org.rsmod.game.MapClock
import org.rsmod.game.inv.Inventory
public class ShopRestockProcess @Inject constructor(private val mapClock: MapClock) {
... | 0 | Kotlin | 64 | 93 | da10560f220f4a9ff2f034e0879dc69b103465cc | 2,993 | rsmod | ISC License |
fashion-tryon-compose/src/main/kotlin/com/aiuta/fashionsdk/tryon/compose/ui/internal/navigation/NavigationAppBarState.kt | aiuta-com | 759,918,511 | false | {"Kotlin": 467654, "Shell": 562} | package com.aiuta.fashionsdk.tryon.compose.ui.internal.navigation
internal enum class NavigationAppBarState {
EMPTY,
GENERAL,
HISTORY,
}
internal enum class NavigationAppBarActionState {
EMPTY,
SELECT_PHOTOS,
HISTORY,
}
| 0 | Kotlin | 0 | 2 | df7e33c5e2814fb1693d0f3a078a48d3deef4ebd | 250 | android-sdk | Apache License 2.0 |
modules/logging/src/test/kotlin/org/springframework/fu/module/logging/LogbackDslTest.kt | jnizet | 136,587,970 | false | null | /*
* Copyright 2002-2018 the original author or 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 ap... | 0 | null | 0 | 3 | a5e28c413d4e30578d59d235c890fa06ad1f1d30 | 4,556 | spring-fu | Apache License 2.0 |
src/day12/Day12.kt | daniilsjb | 726,047,752 | false | {"Kotlin": 38701} | package day12
import java.io.File
fun main() {
val data = parse("src/day12/Day12.txt")
println("🎄 Day 12 🎄")
println()
println("[Part 1]")
println("Answer: ${part1(data)}")
println()
println("[Part 2]")
println("Answer: ${part2(data)}")
}
private data class Row(
val springs... | 0 | Kotlin | 0 | 0 | 74c9854a3e5f9534c05dabbbf4af96d38984c511 | 2,060 | advent-of-code-2023 | MIT License |
Android/App_qixiashan/App/src/main/java/com/zktony/android/ui/upgradeMode.kt | OriginalLight | 556,213,614 | false | {"Kotlin": 6123849, "C#": 376657, "Vue": 164353, "Rust": 101266, "C++": 63250, "TypeScript": 62359, "Python": 28781, "CMake": 18271, "C": 16214, "Less": 2885, "Dockerfile": 1898, "HTML": 648, "JavaScript": 450} | package com.zktony.android.ui
import android.content.Context
import android.graphics.Color.rgb
import android.os.Build
import android.os.storage.StorageManager
import android.util.Log
import android.widget.Toast
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.ExperimentalFoundationAp... | 0 | Kotlin | 0 | 1 | bcf0671b9e4ad199e579764f29683c1c575369d2 | 28,120 | ZkTony | Apache License 2.0 |
app/src/main/java/com/harshalv/jetpackcompose/model/MockData.kt | harshalkvibhandik | 737,453,397 | false | {"Kotlin": 55814} | package com.harshalv.jetpackcompose.model
import android.icu.text.SimpleDateFormat
import android.util.Log
import com.harshalv.jetpackcompose.R
import java.util.Calendar
import java.util.Date
import java.util.Locale
object MockData {
val topNewsList = listOf<NewsData>(
NewsData(
1,
... | 0 | Kotlin | 0 | 0 | 27118a34fc5fccf6672a7ade14b389c58ab683bf | 6,083 | Android_Jetpack_Compose_Learning | MIT License |
app/src/main/java/com/example/mrakopediareader/api/Queue.kt | pokatomnik | 280,012,339 | false | {"Kotlin": 96333, "Java": 1116} | package com.example.mrakopediareader.api
import android.content.Context
import com.android.volley.Request
import com.android.volley.RequestQueue
import com.android.volley.RetryPolicy
import com.android.volley.toolbox.JsonArrayRequest
import com.android.volley.toolbox.JsonObjectRequest
import com.android.volley.toolbox... | 2 | Kotlin | 1 | 1 | c805ac4e25a6e1b4945918286d3faf292245ef7e | 1,799 | mrakopedia-reader | MIT License |
loader/src/main/java/com/pyamsoft/pydroid/loader/glide/GlideLoader.kt | pyamsoft | 48,562,480 | false | null | /*
* Copyright 2020 <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 wr... | 0 | null | 3 | 6 | 969fa1c129149f7f2bba06b3d072f3368faa8ba7 | 3,224 | pydroid | Apache License 2.0 |
sudoklify-tokenizer/src/commonTest/kotlin/dev/teogor/sudoklify/tokenizer/JEncodedCellTest.kt | teogor | 656,370,747 | false | {"Kotlin": 298485, "Shell": 404} | /*
* Copyright 2024 Teogor (<NAME>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 0 | Kotlin | 3 | 13 | 7b7dc5ab246a93bb09f10c9aa167abbae1cfd5bd | 2,689 | sudoklify | Apache License 2.0 |
node/src/integration-test/kotlin/net/corda/node/NodeKeystoreCheckTest.kt | tomtau | 262,343,298 | false | null | package net.corda.node
import net.corda.core.crypto.Crypto
import net.corda.core.internal.div
import net.corda.core.utilities.getOrThrow
import net.corda.node.services.config.configureDevKeyAndTrustStores
import net.corda.nodeapi.internal.crypto.CertificateType
import net.corda.nodeapi.internal.crypto.X509Utilities
im... | 61 | null | 1 | 1 | f524ed9af7027004abfa91c0bd3a31d645ef0b3b | 3,176 | corda | Apache License 2.0 |
modules/core/arrow-core-extensions/src/main/kotlin/arrow/core/extensions/function0.kt | tdelev | 175,006,167 | true | {"Kotlin": 2235102, "CSS": 148033, "JavaScript": 66118, "HTML": 18206, "Java": 4465, "Shell": 3043, "Ruby": 1606} | package arrow.core.extensions
import arrow.core.*
import arrow.core.extensions.eval.monad.monad
import arrow.core.extensions.function0.monad.monad
import arrow.extension
import arrow.typeclasses.*
import arrow.typeclasses.suspended.monad.Fx
@extension
interface Function0Semigroup<A> : Semigroup<Function0<A>> {
fun ... | 0 | Kotlin | 0 | 0 | ce8099d05215a7ead8789b32af3ea9de67c1496f | 2,938 | arrow | Apache License 2.0 |
app/src/main/java/com/github/unborn2016/mykotlindemo/BaseApplication.kt | unborn2016 | 383,642,227 | false | null | package com.github.unborn2016.mykotlindemo
import android.annotation.SuppressLint
import android.app.Application
import android.content.Context
/**
* Created by Unborn on 2021/7/7.
*/
class BaseApplication : Application() {
companion object {
const val TOKEN = "123"
@SuppressLint("StaticFieldL... | 0 | Kotlin | 0 | 0 | f5b92692740fb2cd7f2f2195ff012bd788867019 | 470 | MyKotlinDemo | Apache License 2.0 |
olm/src/commonMain/kotlin/io/github/matrixkt/olm/Account.kt | Dominaezzz | 205,671,029 | false | null | package io.github.matrixkt.olm
import kotlin.random.Random
/**
* Account class used to create Olm sessions in conjunction with [Session] class.
*
* [Account] provides APIs to retrieve the Olm keys.
*
* Detailed implementation guide is available at [Implementing End-to-End Encryption in Matrix clients](http://ma... | 3 | Kotlin | 8 | 28 | 522e067eec51883f4859753c5ad9240a9535544f | 3,226 | matrix-kt | Apache License 2.0 |
legacy/core/src/commonMain/kotlin/atom/Buttons.kt | CLOVIS-AI | 582,955,979 | false | {"Kotlin": 313130, "JavaScript": 1822, "Dockerfile": 1464, "Shell": 556, "HTML": 372, "CSS": 280} | package opensavvy.decouple.core.atom
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.runtime.setValue
import kotlinx.coroutines.CoroutineScope
import opensavvy.decouple.core.UI
import opensavvy.decouple.c... | 0 | Kotlin | 0 | 2 | b97efa62f6c0d5800722001234cf8dd6c2dd6511 | 4,132 | Decouple | Apache License 2.0 |
klock/src/commonMain/kotlin/com/soywiz/klock/wrapped/WDate.kt | korlibs | 108,193,127 | false | null | package com.soywiz.klock.wrapped
import com.soywiz.klock.*
import com.soywiz.klock.annotations.*
import com.soywiz.klock.internal.Serializable
@KlockExperimental
val Date.wrapped get() = WDate(this)
/**
* Wrapped Version, that is not inline. You can use [value] to get the wrapped inline class.
*
* Represents a tr... | 19 | Kotlin | 52 | 679 | 9bbef7aca8018d7b64d971a777d03b9bac07686e | 3,177 | klock | Creative Commons Zero v1.0 Universal |
src/rocks/danielw/udemy/chapter3/Equality.kt | DanielW1987 | 193,260,876 | false | null | package rocks.danielw.chapter3
import rocks.danielw.model.Employee
fun main() {
val employee1 = Employee(1, "John", "Doe")
val employee2 = Employee(2, "Jane", "Johnson")
val employee3 = Employee(2, "Jane", "Johnson")
val employee4 = employee1
println(employee1 == employee2) // false => as expected
print... | 1 | null | 1 | 1 | 7388d301565de075b4377d3d3ff0d43d9f18fb4b | 481 | kotlin-udemy-course | Apache License 2.0 |
app/src/main/java/alektas/telecomapp/domain/entities/signals/Signal.kt | Alektas | 214,780,544 | false | null | package alektas.telecomapp.domain.entities.signals
interface Signal {
/**
* Возвращает словарь со всеми значения сигнала на всем измеренном временном участке.
* Ключ - время измерения, значение - величина (напряжение/ток/мощность) сигнала в момент времени.
*/
fun getPoints(): Map<Double, Double>... | 0 | Kotlin | 0 | 0 | 1e83fbe6daa496f4c4f47d41f404d3e66fb200ff | 2,661 | Telecom-System | Apache License 2.0 |
compiler/testData/codegen/box/hashPMap/manyNumbers.kt | JakeWharton | 99,388,807 | false | null | // TARGET_BACKEND: JVM
// WITH_REFLECT
import java.util.*
import kotlin.reflect.jvm.internal.pcollections.HashPMap
import kotlin.test.*
fun digitSum(number: Int): Int {
var x = number
var ans = 0
while (x != 0) {
ans += x % 10
x /= 10
}
return ans
}
val N = 1000000
fun box(): St... | 157 | null | 5209 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 1,077 | kotlin | Apache License 2.0 |
src/main/kotlin/com/github/bjansen/intellij/pebble/editor/PebbleEditorHighlighterProvider.kt | bjansen | 78,885,057 | false | {"Kotlin": 170841, "Java": 36124, "ANTLR": 7881, "HTML": 343} | package com.github.bjansen.intellij.pebble.editor
import com.github.bjansen.intellij.pebble.psi.PebbleParserDefinition.Companion.tokens
import com.github.bjansen.pebble.parser.PebbleLexer
import com.intellij.openapi.editor.colors.EditorColorsScheme
import com.intellij.openapi.editor.ex.util.LayerDescriptor
import com.... | 24 | Kotlin | 8 | 89 | 9c1ce60e93546e186984b8f29bf5ca7c96570627 | 2,247 | pebble-intellij | MIT License |
app/src/main/java/com/padcmyanmar/myapplication/utils/HealthCareConstants.kt | YaminThwe | 140,179,244 | false | {"Kotlin": 15693} | package com.padcmyanmar.myapplication.utils
class HealthCareConstants
{
//static
companion object {
const val ACCESS_TOKEN = "<KEY>"
const val API_BASE="http://padcmyanmar.com/padc-5/mm-healthcare/"
const val GET_NEWS="GetHealthcareInfo.php"
}
} | 0 | Kotlin | 0 | 0 | 723c6c85bc88f0521cfe4872ad4369d4cbe70e23 | 282 | MIUI_FORUM_YMT | MIT License |
test-utils/src/main/kotlin/dev/restate/e2e/utils/ContainerLogger.kt | restatedev | 489,007,488 | false | {"Kotlin": 71921, "TypeScript": 71722, "Java": 63785, "Shell": 2387, "Dockerfile": 413} | // Copyright (c) 2023 - Restate Software, Inc., Restate GmbH
//
// This file is part of the Restate SDK Test suite tool,
// which is released under the MIT license.
//
// You can find a copy of the license in file LICENSE in the root
// directory of this repository or package, or at
// https://github.com/restatedev/sdk... | 4 | Kotlin | 3 | 3 | 6da138c6afc25b70ce5be7cbb444b178a7f325c9 | 2,384 | e2e | MIT License |
app/src/main/java/org/lineageos/aperture/models/GestureActions.kt | LineageOS | 544,998,745 | false | null | /*
* SPDX-FileCopyrightText: 2023 The LineageOS Project
* SPDX-License-Identifier: Apache-2.0
*/
package com.statix.flash.utils
/**
* Available gesture actions.
*/
enum class GestureActions {
SHUTTER,
ZOOM,
VOLUME,
NOTHING;
}
| 5 | null | 52 | 88 | db5101d1b0f50b92ba557bce6c88e6ce009697a9 | 249 | android_packages_apps_Aperture | Apache License 2.0 |
src/DayXX.kt | Flame239 | 570,094,570 | false | {"Kotlin": 60685} | private fun input(): List<String> {
return readInput("DayXX")
}
private fun part1(input: List<String>): Int {
return input.size
}
private fun part2(input: List<String>): Int {
return input.size
}
fun main() {
measure { part1(input()) }
measure { part2(input()) }
}
| 0 | Kotlin | 0 | 0 | 27f3133e4cd24b33767e18777187f09e1ed3c214 | 288 | advent-of-code-2022 | Apache License 2.0 |
data/src/main/java/com/hackertronix/model/countries/Latest.kt | hackertronix | 249,216,550 | false | null | package com.hackertronix.model.countries
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
@Entity
data class Latest(
@PrimaryKey(autoGenerate = true)
val id: Int = 0,
@Json(name = "confirmed")
... | 3 | Kotlin | 4 | 3 | 74fc478600a30a2edb5eec3909756d7584a3bafc | 458 | 91-DIVOC | Apache License 2.0 |
app/src/main/java/com/example/petstore/data/network/model/mapper/PetStoreMappers.kt | zillow | 216,824,627 | false | null | package com.example.petstore.data.network.model.mapper
import com.example.petstore.data.network.model.PetNetworkModel
import com.example.petstore.data.network.model.StoreInfoNetworkModel
import com.example.petstore.data.network.model.StorePetNetworkModel
import com.example.petstore.domain.model.PetDomainModel
import c... | 0 | Kotlin | 0 | 1 | 723706fe12988de16bfcb9c7a8f3e8e1376c63ce | 764 | openapi-tutorial-android | Apache License 2.0 |
app/src/main/java/com/oguzdogdu/wallieshd/presentation/detail/DetailViewModel.kt | oguzsout | 616,912,430 | false | null | package com.oguzdogdu.wallieshd.presentation.detail
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.oguzdogdu.domain.model.favorites.FavoriteImages
import com.oguzdogdu.domain.repository.DataStore
import com.oguzdogdu.domain.usecase.auth.GetCheckUserAuthStateUseCase
import com.o... | 0 | null | 6 | 8 | e6f899f32c4e914fc9e585c28f7d54bfd05398fd | 10,269 | Wallies | MIT License |
app/src/main/java/com/example/sunnyweather/ui/place/PlaceAdapter.kt | qwer2236112382 | 458,119,552 | false | {"Kotlin": 25454} | package com.example.sunnyweather.ui.place
import android.content.Intent
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.RecyclerView
import com.exam... | 0 | Kotlin | 0 | 0 | 24dede2d8b590bae63b063c995fca547e820ead5 | 2,881 | SunnyWeather | Apache License 2.0 |
library/process/src/nativeMain/kotlin/io/matthewnelson/kmp/process/internal/ReadStream.kt | 05nelsonm | 750,560,085 | false | {"Kotlin": 301826, "Java": 262} | /*
* Copyright (c) 2024 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 2 | Kotlin | 1 | 25 | ec5e3262c27aa9098eb2c52a9a7275cd2697318b | 2,295 | kmp-process | Apache License 2.0 |
src/main/kotlin/org/cdb/homunculus/components/PasswordEncoder.kt | CodeDrillBrigade | 714,769,385 | false | {"Kotlin": 122651, "Dockerfile": 336} | package org.cdb.homunculus.components
/**
* Functional interface that defines the method to hash a password and verify the hash.
*/
interface PasswordEncoder {
/**
* Hashes a password with a random salt.
*
* @param password the password to hash.
* @return the generated hash.
*/
fun hashAndSaltPassword(pa... | 0 | Kotlin | 0 | 0 | 64aa91cd4513b17ace0e3fe833a11f9a715e4712 | 834 | Homunculus | MIT License |
app/src/main/java/com/theone/music/viewmodel/MusicInfoViewModel.kt | Theoneee | 490,112,111 | false | null | package com.theone.music.viewmodel
import android.util.Log
import androidx.lifecycle.viewModelScope
import com.theone.music.data.model.CollectionEvent
import com.theone.music.data.model.Music
import com.theone.music.data.repository.DataRepository
import com.theone.common.callback.databind.BooleanObservableField
import... | 2 | Kotlin | 1 | 17 | f8773f948b20f0a90930ceb6d6c68ad16833f65c | 2,744 | HifiNi | Apache License 2.0 |
test/libs/src/main/java/id/apwdevs/app/libs/util/RecyclerTestAdapter.kt | AlexzPurewoko | 354,045,461 | false | null | package id.apwdevs.app.libs.util
import android.annotation.SuppressLint
import android.util.Log
import android.view.View
import android.view.ViewGroup
import androidx.paging.PagingDataAdapter
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import id.apwdevs.app.data.source... | 5 | Kotlin | 0 | 0 | e80db0e7f11c7d24e86e410eae052ce6e10f9d1f | 1,560 | movie_catalogue | MIT License |
imagekit/src/test/java/com/imagekit/android/preprocess/ImageUploadPreprocessorTest.kt | imagekit-developer | 191,357,009 | false | null | package com.imagekit.android.preprocess
import android.app.Application
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.Point
import com.imagekit.android.ImageKit
import org.junit.After
import org.junit.Assert.*
import org.junit.Before
import org.junit.Test
import org.junit.... | 3 | Kotlin | 3 | 15 | ec89f96c18775670486f10c9ee911a47b7bdf2a6 | 3,516 | imagekit-android | MIT License |
app/src/main/java/me/bytebeats/compose/bitcoin/util/ktx/NetworkStates.kt | bytebeats | 431,009,469 | false | null | package me.bytebeats.compose.bitcoin.util.ktx
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.transform
import me.bytebeats.compose.bitcoin.network.NetworkState
/**
* Created by bytebeats on 2021/11/23 : 17:06
* E-mail: <EMAIL>
* Quote: Peasant. Educated. Worker
*/
fun <T, R> NetworkState<T>.m... | 0 | Kotlin | 2 | 3 | 9f10a8c79b4b67785b76a43f9fd54a41773bee73 | 1,402 | compose-bitcoin | MIT License |
src/com/wuyr/google_library_query/NetworkRequstter.kt | GB1025049030 | 264,075,266 | true | {"Kotlin": 8199, "Java": 1812} | @file:Suppress("UNCHECKED_CAST")
package com.wuyr.google_library_query
import com.google.gson.Gson
import java.net.URL
import java.nio.charset.Charset
import javax.net.ssl.HttpsURLConnection
import javax.swing.DefaultListModel
/**
* @author wuyr
* @github https://github.com/wuyr/GoogleLibraryVersionQuerier
* @sin... | 0 | null | 0 | 0 | 9194b6280d1e2ba29e858d810b00274d8cded608 | 2,333 | GoogleLibraryVersionQuerier | Apache License 2.0 |
SliderInTableCell/src/main/kotlin/example/App.kt | aterai | 158,348,575 | false | null | package example
import java.awt.*
import javax.swing.*
import javax.swing.table.DefaultTableModel
import javax.swing.table.TableCellEditor
import javax.swing.table.TableCellRenderer
fun makeUI(): Component {
val columnNames = arrayOf("Integer", "Integer", "Boolean")
val data = arrayOf(
arrayOf(50, 50, false),... | 0 | null | 5 | 9 | 47a0c684f64c3db2c8b631b2c20c6c7f9205bcab | 2,984 | kotlin-swing-tips | MIT License |
src/main/kotlin/Config.kt | sambady | 213,947,783 | false | null | package DuckyLuckTgBot
import com.natpryce.konfig.*
import java.io.File
object Config : Configuration {
override fun <T> getOrNull(key: Key<T>): T? = config.getOrNull(key)
override fun list(): List<Pair<Location, Map<String, String>>> = config.list()
override fun locationOf(key: Key<*>): PropertyLocation?... | 0 | Kotlin | 0 | 0 | 5216e99ed37b3f798bc4f1005f6e986a8ed26def | 958 | duckylucktgbot | MIT License |
libandroid-navigation/src/main/java/com/mapbox/services/android/navigation/v5/internal/navigation/NavigationLifecycleMonitor.kt | luugiathuy | 227,537,256 | true | {"Java": 1432132, "Kotlin": 647817, "Python": 4645, "Makefile": 3213, "JavaScript": 3107, "Shell": 1903, "Prolog": 611} | package com.mapbox.services.android.navigation.v5.internal.navigation
import android.app.Activity
import android.app.Application
import android.content.res.Configuration
import android.os.Bundle
import java.util.ArrayList
internal class NavigationLifecycleMonitor(
application: Application
) : Application.Activity... | 0 | null | 0 | 1 | f1e5d047665617c4ef32a3b4b5c9ab29d0ecaa93 | 4,160 | mapbox-navigation-android | Apache License 2.0 |
libs/commons-database/src/main/kotlin/gov/cdc/ocio/database/dynamo/AnyAttributeConverter.kt | CDCgov | 679,761,337 | false | {"Kotlin": 606270, "Python": 14605, "TypeScript": 7647, "Java": 4266, "JavaScript": 2382} | package gov.cdc.ocio.database.dynamo
import software.amazon.awssdk.enhanced.dynamodb.AttributeConverter
import software.amazon.awssdk.enhanced.dynamodb.AttributeValueType
import software.amazon.awssdk.enhanced.dynamodb.EnhancedType
import software.amazon.awssdk.enhanced.dynamodb.internal.converter.attribute.JsonItemAt... | 4 | Kotlin | 0 | 2 | c8b369ba84918cd90d29a25d581d42c4d2cc346e | 1,911 | data-exchange-processing-status | Apache License 2.0 |
api/src/main/kotlin/me/filizes/prison/api/data/world/Position.kt | FILIZES | 845,464,403 | false | {"Kotlin": 38620} | package me.filizes.prison.api.data.world
data class Position(
val world: String,
val x: Int,
val y: Int,
val z: Int
) | 0 | Kotlin | 0 | 0 | 916203e1dd071a171ec2b963b41b5005931620fc | 134 | PrisonGame | MIT License |
e2e-tests/src/jvmTest/kotlin/dev/aoddon/connector/BasicServiceValidation.kt | AlessandroOddone | 277,954,349 | false | null | package dev.aoddon.connector
import com.tschuchort.compiletesting.SourceFile.Companion.kotlin
import dev.aoddon.connector.http.EXPECTED_RETURN_TYPES_MESSAGE_PART
import dev.aoddon.connector.util.runTestCompilation
import org.junit.Test
class BasicServiceValidationTest {
@Test fun `@Service abstract class target is ... | 1 | Kotlin | 0 | 0 | 91d8581d65e3e65b5ec0c5f19d0ab902de3afea1 | 6,297 | connector | Apache License 2.0 |
stretchez/src/main/java/me/shangdelu/stretchez/ui/main/ui/dashboard/StretchPlanListFragment.kt | ShangDeLu | 554,451,333 | false | null | package me.shangdelu.stretchez.ui.main.ui.dashboard
import android.graphics.Color
import android.os.Bundle
import android.view.*
import android.widget.TextView
import androidx.coordinatorlayout.widget.CoordinatorLayout
import androidx.core.view.MenuHost
import androidx.core.view.MenuProvider
import androidx.fragment.a... | 0 | Kotlin | 0 | 0 | f4c536f0cf9425fdccc462434ee4d32fc7ffbc7c | 8,561 | StretchEz | Apache License 2.0 |
compiler/testData/diagnostics/tests/multiplatform/java/implicitJavaActualization_multipleActuals.ll.kt | JetBrains | 3,432,266 | false | null | // MODULE: m1-common
// FILE: common.kt
expect class Foo(i: Int) {
fun foo()
}
// MODULE: m2-jvm()()(m1-common)
// FILE: Foo.java
public class Foo {
public Foo(int i) {}
public void foo() {}
}
// FILE: jvm.kt
class <!PACKAGE_OR_CLASSIFIER_REDECLARATION!>Foo<!><T>(t: T) {
fun foo() {}
}
| 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 308 | kotlin | Apache License 2.0 |
src/main/com/intellij/lang/jsgraphql/ide/project/schemastatus/GraphQLTreeNodeNavigationUtil.kt | JetBrains | 47,924,453 | false | null | /*
* Copyright (c) 2018-present, <NAME>
* All rights reserved.
* <p>
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.intellij.lang.jsgraphql.ide.project.schemastatus
import com.intellij.json.JsonFileType
import com.intelli... | 138 | null | 97 | 880 | fcd80eea779e595bc5e5b7aa2f1dc3c69b179d97 | 1,673 | js-graphql-intellij-plugin | MIT License |
privacy-config/privacy-config-impl/src/main/java/com/duckduckgo/privacy/config/impl/features/unprotectedtemporary/RealUnprotectedTemporary.kt | duckduckgo | 78,869,127 | false | {"Kotlin": 14333964, "HTML": 63593, "Ruby": 20564, "C++": 10312, "JavaScript": 8463, "CMake": 1992, "C": 1076, "Shell": 784} | /*
* Copyright (c) 2021 DuckDuckGo
*
* 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 ... | 68 | Kotlin | 901 | 3,823 | 6415f0f087a11a51c0a0f15faad5cce9c790417c | 1,672 | Android | Apache License 2.0 |
RxKit/src/main/java/com/tamsiree/rxkit/RxSPTool.kt | Tamsiree | 69,093,112 | false | null | package com.tamsiree.rxkit
import android.content.Context
/**
* SharedPreferences工具类
*
* @author tamsiree
* @date 2016/1/24
*/
object RxSPTool {
private const val JSON_CACHE = "JSON_CACHE"
/**
* 存入自定义的标识的数据 可以近似的看作网络下载数据的缓存
* 单条方式存入
*
* @param context 使用的上下文
* @param tag 存入内... | 70 | null | 2855 | 12,025 | fa5f88c24594a562c2a9047c40ceeb94de297428 | 5,614 | RxTool | Apache License 2.0 |
core/kotlinx-coroutines-core/test/test/TestCoroutineContextTest.kt | objcode | 159,731,828 | false | null | /*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.coroutines.test
import kotlinx.coroutines.*
import org.junit.*
import org.junit.Test
import kotlin.coroutines.*
import kotlin.test.*
class TestCoroutineContextTest {
private val injectedC... | 1 | null | 99 | 5 | 46741db4b0c2863475d5cc6fc75eafadd8e6199d | 11,188 | kotlinx.coroutines | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.