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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
lib/tensorflow-bridge/api/src/main/java/tech/antee/junkiot/tensorflow_bridge/audio/services/claps/ClapsDetectionState.kt | AnteeOne | 606,828,083 | false | null | package tech.antee.junkiot.tensorflow_bridge.audio.services.claps
sealed interface ClapsDetectionState {
object Empty : ClapsDetectionState
object Clap : ClapsDetectionState
}
| 1 | Kotlin | 0 | 0 | e878576c2f1d7d1649d457890ecdc8a933030f57 | 185 | junkiot-android-app | MIT License |
presentation/src/main/java/org/lotka/xenonx/presentation/extension/ContextExt.kt | armanqanih | 836,177,770 | false | {"Kotlin": 108174} | package org.lotka.xenonx.presentation.extension
import android.content.ContentUris
import android.content.Context
import android.net.Uri
import android.os.Environment
import android.provider.DocumentsContract
import android.provider.MediaStore
import android.util.Log
import org.lotka.xenonx.domain.util.util.FileUtil
i... | 0 | Kotlin | 0 | 0 | 5b42f3c7ee99e61a42f271f1873ef384bf4e94aa | 2,575 | NoteApp | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/prisonerfromnomismigration/alerts/AlertsDataRepairResource.kt | ministryofjustice | 452,734,022 | false | {"Kotlin": 2957292, "Shell": 2955, "Mustache": 1803, "Dockerfile": 1377} | package uk.gov.justice.digital.hmpps.prisonerfromnomismigration.alerts
import com.microsoft.applicationinsights.TelemetryClient
import io.swagger.v3.oas.annotations.Operation
import org.springframework.http.HttpStatus
import org.springframework.security.access.prepost.PreAuthorize
import org.springframework.web.bind.a... | 1 | Kotlin | 1 | 2 | c2246f3388fdbd46f6dba28c26940048607f9704 | 1,455 | hmpps-prisoner-from-nomis-migration | MIT License |
app/src/main/java/com/example/woof/ui/components/Images.kt | MaharramSadikhli | 835,693,426 | false | {"Kotlin": 25824} | package com.example.woof.ui.components
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.dimensionResource
import android... | 0 | Kotlin | 0 | 0 | 9ab74419f658631999e210641d875aaa97861eec | 716 | WoofApp | Apache License 2.0 |
app/src/main/java/com/hoc/comicapp/ui/home/NewestAdapter.kt | hoc081098 | 170,987,604 | false | null | package com.hoc.comicapp.ui.home
import android.view.ViewGroup
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions
import com.hoc.comicapp.GlideRequests
import com.hoc.comicapp.R
import com.hoc.comic... | 9 | null | 46 | 286 | 77d75578220442762f2b199b619222e89aac974d | 2,936 | ComicReaderApp_MVI_Coroutine_RxKotlin_Jetpack | MIT License |
app/src/main/java/com/revature/findlawyer/data/room_database/UserTable.kt | Gale6 | 473,278,613 | false | {"Kotlin": 159194} | package com.revature.findlawyer.data.room_database
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.revature.findlawyer.data.room_database.Appointment
@Entity(tableName = "user")
data class UserTable (
@PrimaryKey(autoGenerate = false)
var username:String... | 0 | Kotlin | 0 | 0 | 6f4c4325f0bbe9b40ffc8088e5573df3f4448434 | 690 | FindLawyer | Apache License 2.0 |
app/src/main/java/com/example/sunkai/heritage/logic/CollectionHandler.kt | sunkaiiii | 92,040,914 | false | {"Kotlin": 292444} | package com.example.sunkai.heritage.logic
import androidx.lifecycle.LiveData
import com.example.sunkai.heritage.database.dao.CollectionDao
import com.example.sunkai.heritage.database.entities.Collection
import com.example.sunkai.heritage.tools.EHeritageApplication
import kotlinx.coroutines.GlobalScope
import kotlinx.c... | 0 | Kotlin | 0 | 6 | bda95ace70e3dc8fcc14a98431401374aec2d4ef | 1,356 | heritage-online-android | Apache License 2.0 |
src/main/kotlin/me/odinclient/features/settings/Setting.kt | odtheking | 657,580,559 | false | null | package me.odinclient.features.settings
import me.odinclient.features.Module
import kotlin.properties.PropertyDelegateProvider
import kotlin.properties.ReadWriteProperty
import kotlin.reflect.KProperty
/**
* Super class for all module settings.
* Functionality is added in the implementations.
*
* @author Aton
*/... | 3 | null | 6 | 7 | 5ef98713e6fed4c0d46b736c1cab5c5c49acd487 | 1,460 | OdinClient | The Unlicense |
app/src/main/kotlin/com/thekhaeng/materialstyletemplate/widgets/PreCachingLayoutManager.kt | nontravis | 87,284,931 | false | {"Kotlin": 105356, "Java": 1197} | package com.thekhaeng.materialstyletemplate.widgets
import android.content.Context
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
/**
* Created by「 <NAME> 」on 12 May 2018 :)
*/
class PreCachingLayoutManager : LinearLayoutManager {
companion object {
... | 1 | Kotlin | 36 | 174 | 804e1cd36159a778a27ad4c6162b12d725c99b93 | 1,177 | material-design-guideline | Apache License 2.0 |
common/src/main/java/com/future/common/CommonViewModel.kt | zhan2046 | 96,447,778 | false | {"Kotlin": 167119} | package com.future.common
import android.os.Bundle
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
class CommonViewModel : ViewModel() {
companion object {
const val FRAG_IMAGE_DETAIL = "FRAG_IMAGE_DETAIL"
const val FRAG_MOVIE_DETAIL = "FRAG_MOVIE_DETAIL"
c... | 0 | Kotlin | 90 | 528 | 0a939121e5a553e47073e967ca66c4c6bc34c9ed | 1,122 | awaker | Apache License 2.0 |
app/src/main/java/com/deliveryhero/godroid/tech/exam/core/ViewModelFactory.kt | deliveryhero | 409,219,210 | false | {"Kotlin": 18831} | package com.deliveryhero.godroid.tech.exam.core
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import javax.inject.Inject
import javax.inject.Provider
class ViewModelFactory @Inject constructor(
private val creators: Map<Class<out ViewModel>, @JvmSuppressWildcards Provider<ViewMod... | 0 | Kotlin | 1 | 2 | cdcc0afb399b453b5389d49446dbcd4910d1a90c | 744 | log-vendor-android-challenge | The Unlicense |
server-core/src/main/kotlin/com/lightningkite/lightningserver/files/ExternalServerFileSerializer.kt | lightningkite | 512,032,499 | false | {"Kotlin": 2206475, "TypeScript": 38628, "JavaScript": 118} | package com.lightningkite.lightningserver.files
import com.lightningkite.lightningdb.ServerFile
import com.lightningkite.lightningserver.core.ContentType
import com.lightningkite.lightningserver.exceptions.BadRequestException
import com.lightningkite.lightningserver.http.HttpContent
import kotlinx.coroutines.runBlocki... | 2 | Kotlin | 1 | 5 | f404cc57cbdbe2a90b4e59d4ecd5ad22e008a730 | 3,412 | lightning-server | MIT License |
IPassPlusSdk/src/main/java/com/sdk/ipassplussdk/model/response/iPass/ipass_post_data/TransactionInfo.kt | yazanalqasem | 808,584,767 | false | {"Kotlin": 308101, "Java": 4759} | package com.sdk.ipassplussdk.model.response.ipass.ipass_post_data
data class TransactionInfo(
val ComputerName: String,
val DateTime: String,
val SystemInfo: String,
val TransactionID: String,
val UserName: String,
val Version: String
) | 0 | Kotlin | 0 | 0 | 1fc3247607811f7f52e1d401c252b82e2c98c3a8 | 261 | iPass2.0NativeAndroidSDK | Apple MIT License |
app/src/main/java/com/alexru/dufanyi/data/store/SeriesStore.kt | alexru26 | 826,473,885 | false | {"Kotlin": 101723} | package com.alexru.dufanyi.data.store
import com.alexru.dufanyi.data.dao.SeriesDao
import com.alexru.dufanyi.data.entity.SeriesEntity
import javax.inject.Inject
import javax.inject.Singleton
@Singleton
class SeriesStore @Inject constructor(
private val seriesDao: SeriesDao
) {
suspend fun addSeries(series: S... | 4 | Kotlin | 0 | 0 | 4a6fc4cca0c6fb0099afc88333c7021a47cbeeae | 1,029 | DuFanYi | MIT License |
app/src/main/java/cz/airbank/airbankapplication/repository/TransactionRepository.kt | ivochvojka | 151,829,533 | false | null | package cz.airbank.airbankapplication.repository
import cz.airbank.airbankapplication.model.TransactionDetail
import cz.airbank.airbankapplication.model.TransactionDetailWrapper
import cz.airbank.airbankapplication.model.Transactions
import cz.airbank.airbankapplication.remote.RemoteService
import io.reactivex.Single
... | 0 | Kotlin | 0 | 0 | 60b881f3b0de30bbbda6992073a82cbe2e402f24 | 950 | airbank | MIT License |
buildSrc/src/main/kotlin/Libs.kt | dipien | 40,906,173 | false | {"Java": 508042, "Kotlin": 2907, "Shell": 2559, "HTML": 1750} | object Libs {
// https://github.com/google/gson/blob/master/CHANGELOG.md
const val GSON = "com.google.code.gson:gson:2.8.6"
}
| 3 | Java | 1 | 2 | be2c0ef8d7814d1bef96971480cfaf2bee201162 | 134 | github-api | Apache License 2.0 |
wear/compose/compose-foundation/src/main/java/androidx/wear/compose/foundation/Expandable.kt | androidx | 256,589,781 | false | {"Kotlin": 112114129, "Java": 66594571, "C++": 9132142, "AIDL": 635065, "Python": 325169, "Shell": 194520, "TypeScript": 40647, "HTML": 35176, "Groovy": 27178, "ANTLR": 26700, "Svelte": 20397, "CMake": 15512, "C": 15043, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright 2023 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... | 29 | Kotlin | 945 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 13,797 | androidx | Apache License 2.0 |
app/app/src/main/java/com/seljabali/practiceproblems/ui/stocks/StocksFragment.kt | seljabali | 213,567,334 | false | null | package com.seljabali.practiceproblems.ui.stocks
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.seljabali.practiceproblems.BaseFragment
import com.seljabali.practiceproblems.R
import kotlinx.android.synthetic.main.fragment_stocks.*
class S... | 0 | Kotlin | 0 | 0 | 46b8d88f2291782a9148330e4f8d740cbd2ea371 | 2,696 | practice-problems-android | Creative Commons Zero v1.0 Universal |
app/shared/state-machine/ui/public/src/commonMain/kotlin/build/wallet/statemachine/recovery/socrec/view/ViewingRecoveryContactUiStateMachine.kt | proto-at-block | 761,306,853 | false | {"C": 10474259, "Kotlin": 7954899, "Rust": 2637832, "Swift": 864356, "HCL": 349275, "Python": 338898, "Shell": 136166, "TypeScript": 118945, "C++": 69203, "Meson": 64811, "JavaScript": 36398, "Just": 32977, "Ruby": 13559, "Dockerfile": 5934, "Makefile": 3915, "Open Policy Agent": 1552, "Procfile": 80} | package build.wallet.statemachine.recovery.socrec.view
import build.wallet.bitkey.account.FullAccount
import build.wallet.bitkey.relationships.TrustedContact
import build.wallet.statemachine.core.BodyModel
import build.wallet.statemachine.core.ScreenModel
import build.wallet.statemachine.core.StateMachine
/**
* Stat... | 3 | C | 16 | 113 | 1af1bc74d51ecf1dff2f5355e3f33d000957b19b | 729 | bitkey | MIT License |
src/main/kotlin/no/nav/amt/person/service/controller/PersonController.kt | navikt | 618,357,446 | false | null | package no.nav.amt.person.service.controller
import no.nav.amt.person.service.controller.auth.AuthService
import no.nav.amt.person.service.controller.auth.Issuer
import no.nav.amt.person.service.controller.dto.*
import no.nav.amt.person.service.controller.request.ArrangorAnsattRequest
import no.nav.amt.person.service.... | 1 | Kotlin | 0 | 0 | 9f7c2ba133d048f3c52d1f899e0eb86cee5af84b | 2,521 | amt-person-service | MIT License |
app/src/main/java/io/github/coffeegerm/brew_it/dagger/AppComponent.kt | huntj88 | 111,273,548 | true | {"Kotlin": 26895} | package io.github.coffeegerm.brew_it.dagger
import dagger.Component
import io.github.coffeegerm.brew_it.BrewItApplication
import io.github.coffeegerm.brew_it.data.DrinksRepository
import io.github.coffeegerm.brew_it.ui.drinks.DrinksFragment
import io.github.coffeegerm.brew_it.ui.main.MainActivity
import io.github.coff... | 0 | Kotlin | 0 | 0 | 4d92e4c24a938891823b7395195eca95e28b1750 | 929 | Brew-It | Apache License 2.0 |
src/main/kotlin/dev/arli/openapi/model/ServerVariable.kt | alipovatyi | 487,519,792 | false | {"Kotlin": 451322} | package dev.arli.openapi.model
typealias ServerVariableBuilder = ServerVariable.Builder.() -> Unit
data class ServerVariable(
val enum: Set<String>,
val default: String,
val description: String?
) {
class Builder(
private val enum: Set<String> // SHOULD NOT BE EMPTY
) {
var defaul... | 0 | Kotlin | 1 | 1 | 3637b43dc2e255f263b559a5a80ebf80f3e78d96 | 722 | ktor-openapi | Apache License 2.0 |
app-quality-insights/api/testSrc/com/android/tools/idea/insights/inspection/CrashToLineNaiveMapperTest.kt | JetBrains | 60,701,247 | false | {"Kotlin": 43855938, "Java": 36698280, "HTML": 1216565, "Starlark": 735324, "C++": 216476, "Python": 101594, "C": 71515, "Lex": 66026, "NSIS": 58516, "AIDL": 32502, "Shell": 28591, "CMake": 21034, "JavaScript": 18437, "Batchfile": 7774, "Smali": 7580, "RenderScript": 4411, "Makefile": 2298, "IDL": 269, "QMake": 18} | /*
* Copyright (C) 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 2 | Kotlin | 230 | 876 | 9c0a89784cca3c01ab99cf251b71a26cdb87cc47 | 2,860 | android | Apache License 2.0 |
app/src/main/java/com/example/githubuserapp/model/SearchUsersResponse.kt | shidqimlna | 276,256,152 | false | null | package com.example.githubuserapp.model
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
data class SearchUsersResponse(
val totalCount: Int? = null,
val incompleteResults: Boolean? = null,
val items: ArrayList<UserItem>
) : Parcelable | 0 | Kotlin | 1 | 2 | 49dca85c5989403649dab1daffd3636afb343575 | 280 | Github-user-app | MIT License |
app/src/main/java/com/marcouberti/video/playground/ui/gllights/shape/TwoSphere.kt | marcouberti | 317,791,818 | false | null | package com.marcouberti.video.playground.ui.gllights.shape
import android.opengl.GLES32
import com.marcouberti.video.playground.checkGlError
import com.marcouberti.video.playground.ui.gllights.loadShader
import java.nio.ByteBuffer
import java.nio.ByteOrder
import java.nio.FloatBuffer
import java.nio.IntBuffer
import j... | 0 | Kotlin | 1 | 2 | 99fbdbadc60a5186e716879e7aa7b95c05730f3a | 10,815 | video-editing-playground | Apache License 2.0 |
app/src/main/java/com/muzzley/app/profiles/RecipeInteractor.kt | habitio | 191,952,436 | false | null | package com.muzzley.app.profiles
import android.content.Context
import android.net.ConnectivityManager
import com.muzzley.R
import com.muzzley.app.recipes.RecipeView
import com.muzzley.model.discovery.*
import com.muzzley.services.NetworkInfoService
import com.muzzley.services.UPnPService
import com.muzzley.services.U... | 1 | null | 1 | 1 | 57174e1ca5e0d72ebc01d0750e278fc493b44e42 | 5,343 | habit-whitelabel-app-android | MIT License |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/stepfunctions/tasks/EmrCreateClusterScriptBootstrapActionConfigPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.stepfunctions.tasks
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.String
import kotlin.col... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 2,127 | awscdk-dsl-kotlin | Apache License 2.0 |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/stepfunctions/tasks/EmrCreateClusterScriptBootstrapActionConfigPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.stepfunctions.tasks
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.String
import kotlin.col... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 2,127 | awscdk-dsl-kotlin | Apache License 2.0 |
vector/src/main/java/im/vector/app/features/widgets/permissions/WidgetPermissionsHelper.kt | tchapgouv | 340,329,238 | false | null | /*
* Copyright (c) 2020 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 55 | null | 418 | 9 | 9bd50a49e0a5a2a17195507ef3fe96594ddd739e | 1,558 | tchap-android | Apache License 2.0 |
adaptive-lib-ktor/src/jvmTest/kotlin/fun/adaptive/ktor/worker/ExceptionTest.kt | spxbhuhb | 788,711,010 | false | {"Kotlin": 2177491, "Java": 23254, "HTML": 7707, "JavaScript": 3880, "Shell": 687} | /*
* Copyright © 2020-2024, <NAME> and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package `fun`.adaptive.ktor.worker
import `fun`.adaptive.adat.Adat
import `fun`.adaptive.auth.context.publicAccess
import `fun`.adaptive.exposed.inMemoryH2
import `fun`.adaptive.ktor.ktor
import `f... | 28 | Kotlin | 0 | 3 | d918ce69019eed365dd47b63ea953d1c04b0f89f | 2,632 | adaptive | Apache License 2.0 |
tmp/arrays/youTrackTests/4188.kt | DaniilStepanov | 228,623,440 | false | null | // Original bug: KT-36192
fun main() {
if (currentTagOrNull != null) {
println(currentTagOrNull)
}
}
private var tagStack = listOf(1, 2)
val currentTagOrNull
get() = tagStack.lastOrNull()
| 1 | null | 12 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 211 | bbfgradle | Apache License 2.0 |
data/src/main/java/com/gemidroid/data/datasource/localdb/converters/WeatherTypeConverter.kt | GemiDroid | 547,443,821 | false | null | package com.gemidroid.data.datasource.localdb.converters
import androidx.room.TypeConverter
import com.gemidroid.data.datasource.localdb.entities.WeatherEntity
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
class WeatherTypeConverter {
@TypeConverter
fun fromEntity(value: WeatherEntity?)... | 0 | Kotlin | 0 | 0 | dc991babc0a446b64476bc7066360c3af656dc05 | 675 | Weather-App | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/events/RunCommandParametersPropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.events
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.events.CfnRule
@Generated
public fun buildRunCommandParametersProperty(initializer: @AwsCdkDsl
CfnRule.RunCommandParametersProp... | 1 | Kotlin | 0 | 0 | e08d201715c6bd4914fdc443682badc2ccc74bea | 463 | aws-cdk-kt | Apache License 2.0 |
src/main/kotlin/problems/S01c03p02ReverseComplement.kt | jimandreas | 377,843,697 | false | {"Kotlin": 3876989} | @file:Suppress("MayBeConstant", "unused")
package problems
import algorithms.reverseComplement
/**
* 1.3 Some Hidden Messages are More Surprising than Others
Reverse Complement Problem: Find the reverse complement of a DNA string.
Input: A DNA string Pattern.
Output: Patternrc , the reverse complement of Pattern... | 0 | Kotlin | 0 | 0 | 2e8476c0442d1d1e38bf5cbca8ca9437270b4af7 | 8,959 | stepikBioinformaticsCourse | Apache License 2.0 |
schema-management/schema-rsocket-consumer/src/main/java/com/orbitalhq/schema/consumer/rsocket/RSocketSchemaStore.kt | orbitalapi | 541,496,668 | false | {"TypeScript": 9344934, "Kotlin": 5669840, "HTML": 201985, "SCSS": 170620, "HCL": 55741, "Java": 29373, "JavaScript": 24697, "Shell": 8800, "Dockerfile": 7001, "Smarty": 4741, "CSS": 2966, "Mustache": 1392, "Batchfile": 983, "MDX": 884, "PLpgSQL": 337} | package com.orbitalhq.schema.consumer.rsocket
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
import io.netty.buffer.ByteBufAllocator
import io.netty.buffer.EmptyByteBuf
import io.rsocket.util.DefaultPayload
import com.orbitalhq.schema.api.SchemaSet
import com.or... | 9 | TypeScript | 10 | 292 | 2be59abde0bd93578f12fc1e2ecf1f458a0212ec | 2,430 | orbital | Apache License 2.0 |
igdbclient-ktor/src/commonMain/kotlin/IgdbKtorEngine.kt | illarionov | 660,855,100 | false | null | /*
* Copyright (c) 2023, the Igdbclient project authors and contributors. Please see the AUTHORS file for details.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package ru.pixnews.igdbclient.ktor
import ru.pixnews.igdbclient.IgdbHttpEngine
import ru.pixnew... | 1 | null | 0 | 5 | ecadd5e98afb6b93acb101a951197bb367f521aa | 712 | igdbclient | Apache License 2.0 |
src/test/kotlin/tgmentionsbot/CommandTest.kt | winogradoff | 306,044,611 | false | {"Kotlin": 87414, "Roff": 409, "Procfile": 103} | package tgmentionsbot
import assertk.assertThat
import assertk.assertions.hasSize
import org.junit.jupiter.api.Test
internal class CommandTest {
@Test
fun `no command duplicates by key`() {
val groupedByKey: Map<String, List<Command>> =
Command.values()
.asSequence()
... | 1 | Kotlin | 5 | 5 | eb507d27110aa09073362ae5cbbbfc5050c22bd2 | 628 | tg-mentions-bot | Apache License 2.0 |
src/main/kotlin/io/github/tmcreative1/playwright/remote/engine/processor/MessageProcessor.kt | TMcreative1 | 344,872,041 | false | {"Kotlin": 1474337, "JavaScript": 10814, "HTML": 10152, "CSS": 2547} | package io.github.tmcreative1.playwright.remote.engine.processor
import com.google.gson.JsonElement
import com.google.gson.JsonObject
import io.github.tmcreative1.playwright.remote.core.enums.MethodType.CREATE
import io.github.tmcreative1.playwright.remote.core.enums.MethodType.DISPOSE
import io.github.tmcreative1.pla... | 0 | Kotlin | 0 | 1 | a4b4d3fe199f0a3e7d740feded801ecd5e2b9992 | 9,117 | playwright-remote | MIT License |
app/src/main/java/com/example/cupcake/widget/BoxButtonWidget.kt | vargasgabriel | 327,771,029 | true | {"Kotlin": 30046} | package com.example.cupcake.widget
import android.content.Context
import android.content.res.Resources
import android.util.AttributeSet
import android.view.View
import android.widget.CheckBox
import android.widget.LinearLayout
import android.widget.RadioButton
import androidx.annotation.NonNull
import androidx.annotat... | 0 | Kotlin | 0 | 0 | a268375e498f31af45d771bd921acf9f7b42277a | 3,022 | android-basics-kotlin-cupcake-app | Apache License 2.0 |
kotlin-mui-icons/src/main/generated/mui/icons/material/CameraRear.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/CameraRear")
@file:JsNonModule
package mui.icons.material
@JsName("default")
external val CameraRear: SvgIconComponent
| 12 | null | 5 | 983 | a99345a0160a80a7a90bf1adfbfdc83a31a18dd6 | 202 | kotlin-wrappers | Apache License 2.0 |
src/test/kotlin/eu/europa/ec/eudi/openid4vci/examples/OfferBasedIssuanceUsingAuthorizationFlow.kt | eu-digital-identity-wallet | 693,064,778 | false | {"Kotlin": 476372} | /*
* Copyright (c) 2023 European Commission
*
* 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 o... | 5 | Kotlin | 5 | 12 | ab6b723b1046123da1be71ede0e59f2fc67de94e | 6,988 | eudi-lib-jvm-openid4vci-kt | Apache License 2.0 |
src/main/kotlin/core/resources/JSONObjectMapper.kt | saber71 | 845,560,398 | false | {"Kotlin": 81680} | package heraclius.core.resources
/**
* JSON对象映射器抽象类
*
* 该类作为基础映射器,用于子类实现将JSON字符串转换为特定类型对象的功能
*/
abstract class JSONObjectMapper<V> {
/**
* 执行JSON字符串到特定类型对象的映射
*
* @param json 需要映射的JSON字符串
* @return 映射后的特定类型对象
*/
abstract fun doMap(json: String): V
}
| 0 | Kotlin | 0 | 0 | ea1cf6e0fb39a40f52404cd71e2012c2117d5a3c | 288 | whispers-of-warlocks | MIT License |
app/src/commonMain/kotlin/sample/presentation/BaseView.kt | iamBedant | 157,497,697 | false | null | package sample.presentation
/**
* Created by @iamBedant on 13/11/18.
*/
interface BaseView {
fun showError(error: String)
} | 2 | Kotlin | 3 | 50 | 9e0f3f80cd6cdb1c22e53bd15188bb5836a4c112 | 130 | Multiplatform | MIT License |
app/src/androidTest/java/com/wei/amazingtalker/ui/NavigationUiRobot.kt | azrael8576 | 584,299,514 | false | {"Kotlin": 409436} |
import androidx.annotation.StringRes
import androidx.compose.foundation.layout.BoxWithConstraints
import androidx.compose.material3.windowsizeclass.ExperimentalMaterial3WindowSizeClassApi
import androidx.compose.material3.windowsizeclass.WindowSizeClass
import androidx.compose.ui.test.assertIsDisplayed
import androidx... | 8 | Kotlin | 0 | 9 | a35d73bbf4c86339615b2828643babcdabfd0350 | 4,429 | amazing-talker | Apache License 2.0 |
app/src/androidTest/java/com/wei/amazingtalker/ui/NavigationUiRobot.kt | azrael8576 | 584,299,514 | false | {"Kotlin": 409436} |
import androidx.annotation.StringRes
import androidx.compose.foundation.layout.BoxWithConstraints
import androidx.compose.material3.windowsizeclass.ExperimentalMaterial3WindowSizeClassApi
import androidx.compose.material3.windowsizeclass.WindowSizeClass
import androidx.compose.ui.test.assertIsDisplayed
import androidx... | 8 | Kotlin | 0 | 9 | a35d73bbf4c86339615b2828643babcdabfd0350 | 4,429 | amazing-talker | Apache License 2.0 |
app/src/main/java/com/kawal/mvvm/data/network/DistrictApi.kt | abdulsalam01 | 409,858,978 | false | {"Kotlin": 38022} | package com.kawal.mvvm.data.network
import com.kawal.mvvm.BuildConfig
import com.kawal.mvvm.data.model.District
import kotlinx.coroutines.Deferred
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.QueryMap
interface DistrictApi {
@GET(BuildConfig.PREFIX + BuildC... | 0 | Kotlin | 0 | 0 | 77d1469f90287ce3e0fe967cf1e825e7f58a2041 | 526 | kawal-mvvm-app | MIT License |
libraries/compose/src/main/java/de/schnettler/scrobbler/compose/widget/Spacer.kt | nschnettler | 260,203,355 | false | null | package de.schnettler.scrobbler.compose.widget
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.width
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.Dp
import androidx.compose.foundation.layout.Spacer as ComposeSp... | 10 | null | 5 | 57 | 523d0b739901b971fd41e09258dcab6dcb1c8e58 | 660 | Compose-Scrobbler | Apache License 2.0 |
src/main/java/util/YourNewKotlinCodeUsingRunnable.kt | vicboma1 | 45,669,265 | false | null | package java.util
/**
* Created by vicboma on 15/11/15.
*/
class YourNewKotlinCodeUsingRunnable(){
fun run(runnable: Runnable) {
runnable.run()
}
}
| 3 | Kotlin | 27 | 123 | 7f0b16cc5cb38a24f3dae3d65b7978e00a1bbe9b | 168 | Kotlin-Koans | MIT License |
odinmain/src/main/kotlin/me/odinmain/utils/skyblock/KuudraUtils.kt | odtheking | 657,580,559 | false | {"Kotlin": 957390, "Java": 106846, "GLSL": 17728} | package me.odinmain.utils.skyblock
import me.odinmain.OdinMain.mc
import me.odinmain.events.impl.ChatPacketEvent
import me.odinmain.events.impl.PostEntityMetadata
import me.odinmain.features.impl.kuudra.FreshTimer
import me.odinmain.utils.ServerUtils.getPing
import me.odinmain.utils.clock.Executor
import me.odinmain.u... | 4 | Kotlin | 6 | 41 | 631b297e1c74272c409f7db1cbf86c8c334e7915 | 4,961 | Odin | MIT License |
k4kotlin-core/src/main/java/com/livinglifetechway/k4kotlin/core/String.kt | kirtan403 | 95,310,397 | false | null | package com.livinglifetechway.k4kotlin.core
/**
* Checks if a string is a valid email
* @return a boolean representing true if email is valid else false
*/
fun String.isEmail() = android.util.Patterns.EMAIL_ADDRESS.matcher(this).matches()
/**
* Checks if String is Number.
* Checks against regex `^[0-9]+$`
* @re... | 1 | Kotlin | 14 | 210 | 9c3a7b2dd5b18896e43e36fb279a805da622685c | 492 | K4Kotlin | Apache License 2.0 |
src/main/kotlin/io/github/phenax/h/AbstractView.kt | phenax | 110,346,137 | false | null | package io.github.phenax.h
import io.github.phenax.h.node.*
/**
* View
*/
abstract class AbstractView {
// Renders the dom node that is returned
abstract fun render(): DOMNode
protected open fun _render(): DOMNode = render()
// Render to node and html methods
fun renderToNode(): DOMNode = _render()
fun ren... | 2 | Kotlin | 6 | 14 | fb657f9e624a836c11b4286081fddd424f2ce6dd | 4,787 | h | Apache License 2.0 |
src/main/kotlin/org/lanternpowered/api/util/property/InitOnceProperty.kt | LanternPowered | 35,904,382 | false | null | /*
* This file is part of LanternServer, licensed under the MIT License (MIT).
*
* Copyright (c) LanternPowered <https://www.lanternpowered.org>
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a c... | 15 | null | 10 | 109 | ed947a3c58574f513e940800b0094652766a092b | 2,111 | Lantern | MIT License |
idea/idea-completion/testData/basic/common/ExtensionWithManyTypeParamsInReceiver.kt | JakeWharton | 99,388,807 | false | null | // FIR_IDENTICAL
// FIR_COMPARISON
open class Base
class ManySome<T, U>
fun <P1, P2>ManySome<P1, P2>.testExactGeneralGeneral() = "Some"
fun <P1, P2>ManySome<P1, Int>.testExactGeneralInt() = "Some"
fun <P1, P2>ManySome<Int, Int>.testExactIntInt() = "Some"
fun <P1 : Base, P2>ManySome<P1, Int>.testSubBaseIntInt() = "Some... | 1 | null | 30 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 595 | kotlin | Apache License 2.0 |
app/src/main/java/inc/grayherring/com/thedavidmedinashowapp/ui/pooptracking/detail/PoopDetailFragment.kt | Dmedina88 | 168,897,672 | false | null | package inc.grayherring.com.thedavidmedinashowapp.ui.pooptracking.detail
import android.os.Bundle
import android.view.LayoutInflater
import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
import android.view.View
import android.view.ViewGroup
import android.view.animation.AnticipateOver... | 0 | Kotlin | 0 | 0 | d1a102756e8f65d6cafce4cd58c9cb3b8e7a641e | 5,902 | T.D.M.S | Apache License 2.0 |
ladon-core/src/main/java/de/mc/ladon/server/core/persistence/entities/api/ChangeType.kt | mindmill | 108,753,071 | false | {"Maven POM": 5, "Ignore List": 1, "Shell": 1, "YAML": 2, "Markdown": 1, "Java": 17, "Kotlin": 115, "SQL": 2, "Text": 1, "Java Properties": 2, "HTML": 3, "SVG": 2, "CSS": 7, "JavaScript": 8, "Less": 13, "SCSS": 13} | package de.mc.ladon.server.core.persistence.entities.api
/**
* @author <NAME>
* 29.08.16
*/
enum class ChangeType {
PUT, DELETE
} | 1 | null | 1 | 1 | 5b0f3bbba74fadde720f8e4da3317f128ee25c88 | 138 | ladon-s3-cassandra | Academic Free License v1.1 |
health/connect/connect-client/src/test/java/androidx/health/connect/client/request/AggregateGroupByPeriodRequestTest.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2024 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... | 29 | null | 1011 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 3,109 | androidx | Apache License 2.0 |
lib/src/main/java/com/vander/scaffold/ui/widget/InfiniteScrollDecoration.kt | vudangnt | 165,397,865 | false | null | package com.vander.scaffold.ui.widget
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.Rect
import android.graphics.drawable.Animatable
import android.graphics.drawable.Drawable
import android.support.v4.content.C... | 1 | Kotlin | 3 | 1 | 7ecd4cabdc87f7b01928b4950298b73f85e91834 | 4,088 | scaffold | MIT License |
library/src/main/java/com/mooveit/library/providers/definition/AddressProvider.kt | moove-it | 79,579,060 | false | null | package com.mooveit.library.providers.definition
interface AddressProvider : Provider {
fun city(): String
fun streetAddress(): String
fun buildingNumber(): String
fun zipCode(): String
fun state(): String
fun stateAbbreviation(): String
} | 18 | null | 48 | 525 | 12b87899d62c5fa701141f8f98cb7265ab58bc15 | 265 | fakeit | MIT License |
src/main/kotlin/org/rust/ide/fixes/ReplaceIncDecOperatorFix.kt | intellij-rust | 42,619,487 | false | null | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.fixes
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiElement
import org.rust.RsBundle
import org.rust.lang.core.psi.*
import... | 1,841 | null | 380 | 4,528 | c6657c02bb62075bf7b7ceb84d000f93dda34dc1 | 3,367 | intellij-rust | MIT License |
plugins/space/src/main/kotlin/com/intellij/space/chat/ui/SpaceChatAvatarType.kt | code-general | 320,182,339 | false | {"Text": 4177, "XML": 4957, "Ant Build System": 13, "YAML": 400, "Shell": 549, "Markdown": 452, "Ignore List": 89, "Git Attributes": 9, "EditorConfig": 226, "Batchfile": 32, "SVG": 2233, "Java": 69048, "C++": 36, "HTML": 2364, "Kotlin": 7262, "DTrace": 1, "Gradle": 1195, "Java Properties": 192, "INI": 295, "JFlex": 30,... | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.space.chat.ui
import com.intellij.util.ui.JBValue
internal enum class SpaceChatAvatarType(val size: JBValue) {
MAIN_CHAT(JBValue.UIInteger("space.chat.ava... | 1 | null | 1 | 1 | b09673ba8b96e0bb272dda9b509ddf27a3c1c5ca | 403 | intellij-community | Apache License 2.0 |
download/src/main/java/cn/a10miaomiao/download/DownloadBinder.kt | 10miaomiao | 142,169,120 | false | null | package cn.a10miaomiao.download
import android.os.Binder
class DownloadBinder(
var downloadService: DownloadService
) : Binder() | 18 | Kotlin | 15 | 510 | a3941f6da72d5071d394ce1845edb31376183375 | 138 | bilimiao2 | Apache License 2.0 |
example/kotlin/jimmer-sql-graphql-kt/src/main/kotlin/org/babyfish/jimmer/example/kt/graphql/entities/input/BookInput.kt | WUYAN45 | 587,527,933 | false | {"Markdown": 22, "Shell": 10, "Batchfile": 8, "Java": 798, "Kotlin": 332, "SQL": 10, "INI": 11, "JavaScript": 4, "CSS": 3, "Gradle Kotlin DSL": 16, "HTML": 2} | package org.babyfish.jimmer.example.kt.graphql.entities.input
import org.babyfish.jimmer.ImmutableConverter
import org.babyfish.jimmer.example.kt.graphql.entities.Book
import org.babyfish.jimmer.kt.makeIdOnly
import org.babyfish.jimmer.kt.map
import org.babyfish.jimmer.kt.mapList
import org.babyfish.jimmer.spring.mode... | 1 | null | 1 | 1 | 7aad5d5e0f12f712cd65812d1aeae6192ed5a662 | 1,105 | jimmer | MIT License |
kotlin/builder/src/io/bazel/kotlin/builder/utils/KotlinCompilerPluginArgsEncoder.kt | Schahen | 143,167,749 | false | null | /*
* Copyright 2018 The Bazel Authors. 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 a... | 1 | null | 1 | 1 | 2ae94372644b2789198e3608881088895b1403b6 | 4,184 | rules_kotlin | Apache License 2.0 |
app/src/main/java/fr/corenting/edcompanion/models/exceptions/DataNotInitializedException.kt | corenting | 86,805,660 | false | {"Gradle": 3, "INI": 1, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Java Properties": 1, "YAML": 2, "Proguard": 1, "XML": 106, "Kotlin": 101, "Java": 65} | package fr.corenting.edcompanion.models.exceptions
import java.io.IOException
class DataNotInitializedException : IOException("Data not initialized exception")
| 2 | Java | 3 | 22 | 797b45b004b196d08a39f920d0d574bb8dd75e84 | 162 | EDCompanion | MIT License |
Corona-Warn-App/src/test/java/de/rki/coronawarnapp/datadonation/safetynet/DeviceAttestationTest.kt | corona-warn-app | 268,027,139 | false | null | package de.rki.coronawarnapp.datadonation.safetynet
import io.kotest.matchers.shouldBe
import org.junit.jupiter.api.Test
import testhelpers.BaseTest
class DeviceAttestationTest : BaseTest() {
@Test
fun `request has sane defaults`() {
val impl = object : DeviceAttestation.Request {
overrid... | 6 | null | 514 | 2,495 | d3833a212bd4c84e38a1fad23b282836d70ab8d5 | 471 | cwa-app-android | Apache License 2.0 |
app/src/main/java/me/lx/rv/loadmore/LoadMoreTestAdapter.kt | luoxiong94 | 204,841,812 | false | null | package me.lx.rv.loadmore
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
/**
* author: luoXiong
* e-mail: 382060748@qq.com
* date: 2019/12/31 21:14
* version: 1.0
* desc:
*/
class LoadMoreTestAdapter(var innerAdapter:RecyclerView.Adapter<RecyclerView.ViewHolder>): RecyclerVi... | 1 | Kotlin | 1 | 10 | 70c4fccbab705f21c5b72653d8fd0276a344d854 | 2,457 | adapter-databinding | Apache License 2.0 |
core/src/main/kotlin/org/mock/duck/smartlog/core/SmartLog.kt | mock-duck | 83,891,666 | false | null | package org.mock.duck.smartlog.core
import android.os.StrictMode
import android.util.Log
class SmartLog {
var config: Config? = null
fun configure(message: String, logMode: LogMode, printer: Printer, isStrictMode: Boolean) {
config = Config(message, logMode, printer, isStrictMode)
if (config... | 0 | Kotlin | 0 | 0 | 0d9c919c66ebf4562c62f669ec03138600adbe5e | 1,303 | SmartLog | Apache License 2.0 |
app/src/main/java/com/zrnns/gglauncher/youtube/model/SearchResult.kt | zrn-ns | 268,013,703 | false | null | package com.zrnns.gglauncher.youtube.model
import java.io.Serializable
import java.time.Duration
import java.util.*
class SearchResult(val title: String,
val publishedAt: Date,
val thumbnailUrl: String,
val channelName: String,
val duration:... | 1 | Kotlin | 1 | 6 | dbec6cc8f68727dcc9bbc8a0ccffd832b57a6905 | 384 | GGLauncher | MIT License |
matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/room/powerlevels/PowerLevelsHelper.kt | matrix-org | 287,466,066 | false | null | /*
* Copyright 2020 The Matrix.org Foundation C.I.C.
*
* 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 ... | 75 | null | 6 | 97 | 55cc7362de34a840c67b4bbb3a14267bc8fd3b9c | 4,503 | matrix-android-sdk2 | Apache License 2.0 |
utils/src/jvmMain/kotlin/it/unibo/tuprolog/utils/PyUtils.kt | tuProlog | 230,784,338 | false | {"Kotlin": 3949669, "Java": 18690, "ANTLR": 10366, "CSS": 1535, "JavaScript": 894, "Prolog": 818} | @file:JvmName("PyUtils")
package it.unibo.tuprolog.utils
import it.unibo.tuprolog.utils.impl.IterableWrapper
import it.unibo.tuprolog.utils.impl.IteratorWrapper
import it.unibo.tuprolog.utils.impl.SequenceWrapper
import kotlin.jvm.JvmName
fun <T> iterator(iterator: Iterator<T>): MutableIterator<T> = IteratorWrapper(... | 92 | Kotlin | 14 | 93 | 3223ffc302e5da0efe2b254045fa1b6a1a122519 | 508 | 2p-kt | Apache License 2.0 |
opencola-server/core/network/src/main/kotlin/io/opencola/network/message/MessagePayload.kt | johnmidgley | 441,008,781 | false | {"Kotlin": 1130580, "Java": 851281, "Dart": 181759, "Clojure": 111662, "CSS": 61393, "HTML": 42666, "Shell": 17124, "Swift": 14391, "JavaScript": 10218, "PowerShell": 8360, "Ruby": 1586, "Dockerfile": 654, "Objective-C": 38} | /*
* Copyright 2024 OpenCola
*
* 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 ... | 18 | Kotlin | 1 | 3 | b296f54f81e529bdb8bf7b01c36e20aa20f579ff | 3,081 | opencola | Apache License 2.0 |
android/src/main/kotlin/com/mastercard/compass/cp3/lib/flutter_wrapper/route/UserRegistrationAPIRoute.kt | Mastercard | 590,025,341 | false | {"Kotlin": 257357, "Dart": 225674} | package com.mastercard.compass.cp3.lib.flutter_wrapper.route
import android.app.Activity
import android.content.Intent
import android.util.Log
import androidx.compose.material3.ButtonDefaults
import com.mastercard.compass.base.ResponseStatus
import com.mastercard.compass.cp3.lib.flutter_wrapper.AdditionalInfo
import c... | 6 | Kotlin | 4 | 0 | b995645196340fa009e02970d9f3d54ec4f59b67 | 17,983 | community-pass-flutter-wrapper | Apache License 2.0 |
AnimationComposeLibrary/src/main/java/com/joyner/animationcomposelibrary/color/AlphaAnimation.kt | joyner-perez | 571,052,016 | false | {"Kotlin": 48410} | package com.joyner.animationcomposelibrary.color
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import com.joyner.animationcomposelibrary.core.DefaultValuesAnimation
import com.joyner.animationcomposelibrary.core.getAnimati... | 0 | Kotlin | 0 | 1 | 6969c6818320aa4fc025d3e3fe797f5ee1c1fda7 | 1,230 | AnimationComposeLibrary | MIT License |
app/src/main/java/org/simple/clinic/monthlyreports/complete/MonthlyReportCompleteUiRenderer.kt | simpledotorg | 132,515,649 | false | null | package org.simple.clinic.monthlyreports.complete
import org.simple.clinic.mobius.ViewRenderer
class MonthlyReportCompleteUiRenderer(
private val ui: MonthlyReportCompleteUi
) : ViewRenderer<MonthlyReportCompleteModel> {
override fun render(model: MonthlyReportCompleteModel) {
if (model.questionnaireRespon... | 13 | null | 73 | 236 | ff699800fbe1bea2ed0492df484777e583c53714 | 423 | simple-android | MIT License |
app/src/main/java/com/tolib/weather/ui/WeatherAppPreferences.kt | djtolib | 813,023,499 | false | {"Kotlin": 34085} | package com.tolib.weather.ui
import android.content.Context
import com.google.gson.Gson
import com.tolib.weather.DEFAULT_CITY
import com.tolib.weather.DEFAULT_UNIT
import com.tolib.weather.data.model.ForecastResponse
import com.tolib.weather.data.model.WeatherResponse
class WeatherAppPreferences(private val context: ... | 0 | Kotlin | 0 | 0 | eb6490ac66e0b2c01bc226cc99d27916492637cd | 2,101 | Weather | MIT License |
app/src/jvmMain/kotlin/com/willowtreeapps/fuzzywuzzy/diffutils/algorithms/pattern.kt | willowtreeapps | 181,967,687 | false | null | package com.willowtreeapps.fuzzywuzzy.diffutils.algorithms
actual val pattern: String = "(?U)[^\\p{Alnum}]"
| 4 | Kotlin | 5 | 62 | 64f9d3c409d6808024297dc7258edcc87793a7d8 | 109 | fuzzywuzzy-kotlin | Apache License 2.0 |
solar/src/main/java/com/chiksmedina/solar/outline/homefurniture/Condicioner.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.outline.homefurniture
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCa... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 11,010 | SolarIconSetAndroid | MIT License |
data/reissuetoken/src/main/java/com/hankki/data/reissuetoken/di/DataSourceModule.kt | Team-Hankki | 816,081,730 | false | {"Kotlin": 587452} | package com.hankki.data.reissuetoken.di
import com.hankki.data.reissuetoken.datasource.ReissueTokenDataSource
import com.hankki.data.reissuetoken.datasourceImpl.ReissueTokenDataSourceImpl
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax... | 3 | Kotlin | 0 | 43 | e83ea4cf5cfd0b23d71da164090c29ba0e253b18 | 594 | hankki-android | Apache License 2.0 |
src/main/kotlin/org/jetbrains/kotlinx/dataframe/api/DataFrameStatistics.kt | Kotlin | 259,256,617 | false | null | package org.jetbrains.kotlinx.dataframe.api
import org.jetbrains.kotlinx.dataframe.AnyCol
import org.jetbrains.kotlinx.dataframe.Column
import org.jetbrains.kotlinx.dataframe.ColumnsSelector
import org.jetbrains.kotlinx.dataframe.DataFrame
import org.jetbrains.kotlinx.dataframe.DataRow
import org.jetbrains.kotlinx.dat... | 10 | null | 4 | 94 | 41a099b4d9b563d0518e1550e764211f43e34702 | 17,569 | dataframe | Apache License 2.0 |
src/main/kotlin/org/jetbrains/kotlinx/dataframe/api/DataFrameStatistics.kt | Kotlin | 259,256,617 | false | null | package org.jetbrains.kotlinx.dataframe.api
import org.jetbrains.kotlinx.dataframe.AnyCol
import org.jetbrains.kotlinx.dataframe.Column
import org.jetbrains.kotlinx.dataframe.ColumnsSelector
import org.jetbrains.kotlinx.dataframe.DataFrame
import org.jetbrains.kotlinx.dataframe.DataRow
import org.jetbrains.kotlinx.dat... | 10 | null | 4 | 94 | 41a099b4d9b563d0518e1550e764211f43e34702 | 17,569 | dataframe | Apache License 2.0 |
core/src/main/kotlin/org/jetbrains/research/kex/state/transformer/MustAliasAnalysis.kt | vldF | 388,108,685 | true | {"Kotlin": 1262060, "Java": 10196, "LSL": 2357, "Shell": 171} | package org.jetbrains.research.kex.state.transformer
import org.jetbrains.research.kex.asm.state.PredicateStateAnalysis
import org.jetbrains.research.kex.descriptor.concrete
import org.jetbrains.research.kex.descriptor.concreteClass
import org.jetbrains.research.kex.ktype.KexType
import org.jetbrains.research.kex.ktyp... | 0 | Kotlin | 0 | 0 | 6b7719ff4e03bdbc9ac8111f639ef7eb3ad241a1 | 7,854 | kex | Apache License 2.0 |
app/src/main/java/com/example/flixster_app/MoviesFragment.kt | Boschio | 540,932,356 | false | null | package com.example.flixster_app
import android.app.AlertDialog
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.core.widget.ContentLoadingProgressBar
import androidx.fragment.app.Fragm... | 1 | Kotlin | 0 | 0 | 4624a1f0e935d07d7491244600365734295cbaa1 | 4,054 | Flixster-app | Apache License 2.0 |
modules/about/vm/src/test/kotlin/nasa/about/vm/TestBuildConfig.kt | jonapoul | 794,260,725 | false | {"Kotlin": 551249} | package nasa.about.ui
import alakazam.android.core.IBuildConfig
internal object TestBuildConfig : IBuildConfig {
override val applicationId = ""
override val buildTime = TestInstant
override val debug = false
override val gitId = "abcd1234"
override val manufacturer = "Acme"
override val model = "Thing"
... | 1 | Kotlin | 0 | 1 | b6532df97aec7741b2e90d6f2263bb26b3091286 | 561 | nasa-android | Apache License 2.0 |
app/src/main/java/com/example/digiit/navigationlogin/HomeLogin.kt | cedric190703 | 595,939,564 | false | null | package com.example.digiit.navigationlogin
import android.widget.Toast
import androidx.compose.foundation.*
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.*
import androidx.compose.runtime.Composable
import androidx.compose.runti... | 0 | Kotlin | 0 | 0 | d0c88ac136a596aebda725379e351b2e8633f9b0 | 5,545 | Digiit | MIT License |
app/src/main/java/com/wireguard/android/util/AuthenticationResult.kt | msfjarvis | 143,062,973 | false | null | /*
* Copyright © 2017-2019 WireGuard LLC.
* Copyright © 2018-2019 <NAME> <<EMAIL>>. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package com.wireguard.android.util
import androidx.biometric.BiometricPrompt
internal sealed class AuthenticationResult {
internal data class Success(val cryptoObje... | 3 | null | 27 | 159 | 18d78ad28cfafac9838bd6b5d36762c3987ff0e8 | 747 | viscerion | Apache License 2.0 |
app/src/main/java/es/kix2902/santoral/ui/main/MainPresenter.kt | kix2902 | 189,758,430 | false | null | package es.kix2902.santoral.ui.main
import android.text.format.DateUtils
import es.kix2902.santoral.data.DataRepository
import java.util.*
class MainPresenter(private val view: MainActivity) {
private val repository = DataRepository.getInstance(view)
private var calendar = Calendar.getInstance()
fun l... | 0 | Kotlin | 0 | 4 | 910a5e1fab93b5279d32e83d8ca9ec2e8712cf20 | 1,922 | Santoral | MIT License |
src/test/kotlin/advent2019/day16/Day16Test.kt | davidpricedev | 225,621,794 | false | null | package advent2019.day16
import advent2019.util.repeat
import advent2019.util.toPerCharIntList
import io.kotlintest.data.forall
import io.kotlintest.shouldBe
import io.kotlintest.specs.FreeSpec
import io.kotlintest.tables.row
import kotlin.math.PI
class Day16Test : FreeSpec(
{
"Part1" - {
"lis... | 0 | Kotlin | 0 | 0 | 2283647e5b4ed15ced27dcf2a5cf552c7bd49ae9 | 2,642 | adventOfCode2019 | Apache License 2.0 |
core/data/src/main/java/com/example/core/data/repository/ShopRepository.kt | llsit | 827,324,299 | false | {"Kotlin": 296104} | package com.example.core.data.repository
import com.example.core.common.utils.Constants.Firebase.FIREBASE_ITEMS_COLLECTION
import com.example.core.common.utils.Constants.Firebase.FIREBASE_ITEM_COLLECTION
import com.example.core.common.utils.Constants.Firebase.FIREBASE_PRICE_FIELD
import com.example.core.common.utils.C... | 0 | Kotlin | 0 | 0 | 49a6c318a7514e46a2c97b281eb7e074b731907c | 4,581 | ItemNote | MIT License |
commons/src/commonMain/kotlin/org/jetbrains/letsPlot/commons/intern/spatial/projections/IdentityProjection.kt | JetBrains | 176,771,727 | false | null | /*
* Copyright (c) 2022. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package org.jetbrains.letsPlot.commons.intern.spatial.projections
import org.jetbrains.letsPlot.commons.geometry.DoubleRectangle
import org.jetbrains.letsPlot.commons.geometr... | 93 | Kotlin | 47 | 889 | 2fb1fe8e812ed0b84cd32954331a76775e75d4d2 | 891 | lets-plot | MIT License |
app/src/main/java/com/example/todoapp/ui/util/components/AppDivider.kt | Mobile-Developement-School-23 | 652,254,012 | false | null | package com.example.todoapp.ui.util.components
import androidx.compose.material.Divider
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import com.example.todoapp.ui.util.theme.ExtendedTheme
@Composable
fun AppDivider(modifier: Modifier = Modifier) {
... | 0 | Kotlin | 0 | 0 | 27bbeb03445d18f0026b1b56bbba87118d14b488 | 451 | android-todo-app-rakhmukova | Apache License 2.0 |
presentation/src/main/kotlin/io/petros/prices/presentation/di/dagger/AppModule.kt | ParaskP7 | 150,170,958 | false | null | package io.petros.prices.presentation.di.dagger
import android.content.Context
import dagger.Module
import dagger.Provides
import io.petros.prices.data.di.dagger.NetworkModule
import io.petros.prices.data.di.dagger.RepositoriesModule
import io.petros.prices.data.di.dagger.SchedulersModule
import io.petros.prices.prese... | 0 | Kotlin | 0 | 3 | dbe3acde562c181fb82fabd014b9e4a4ba405c92 | 567 | sample-code-prices | Apache License 2.0 |
src/Day01.kt | vivekpanchal | 572,801,707 | false | {"Kotlin": 11850} | import kotlin.math.max
fun main() {
fun part1(input: List<String>): Int {
//region using maps
// val elf = mutableMapOf<Int, Int>()
// var elfCount = 1
// var inventory = 0
// var isElf=true
// input.forEach {
// if (it.isNotEmpty()) {
// if (!i... | 0 | Kotlin | 0 | 0 | f21a2dd08be66520e9c9de14611e50c14ea017f0 | 2,416 | Aoc-kotlin | Apache License 2.0 |
src/main/kotlin/group/phorus/service/commons/dtos/validationGroups/ValidationGroup.kt | phorus-group | 858,843,298 | false | {"Kotlin": 31064, "Gherkin": 3784} | package group.phorus.service.commons.dtos.validationGroups
interface Create
interface Update
| 0 | Kotlin | 0 | 0 | 4aba2610be1952b15cc76a28261e62abd3b17a2f | 94 | service-commons | Apache License 2.0 |
app/src/main/java/com/liangguo/cameraxcomposedemo/logic/ViewState.kt | ldh-star | 459,188,844 | false | null | package com.liangguo.cameraxcomposedemo.logic
import androidx.camera.core.ImageCapture.FLASH_MODE_OFF
import androidx.camera.core.ZoomState
import androidx.compose.runtime.mutableStateListOf
import androidx.lifecycle.MutableLiveData
import kotlinx.coroutines.flow.MutableStateFlow
/**
* @author ldh
*
* Compose界面的数... | 0 | Kotlin | 0 | 0 | c0774b3460dac32ed15096b6e4a34979dfbb8c21 | 1,820 | CameraXComposeDemo | Apache License 2.0 |
core/billing/src/main/kotlin/app/logdate/core/billing/model/BackupPlanOption.kt | WillieCubed | 187,304,507 | false | {"Kotlin": 458147, "Java": 1084} | package app.logdate.core.billing.model
enum class BackupPlanOption(
val sku: String,
val title: String,
val description: String,
val price: String,
) {
BASIC(
sku = "logdate_backup_plan_basic",
title = "Basic",
description = "Max 10 GB of text, photos, videos, and voice note... | 0 | Kotlin | 0 | 0 | 51a51bd8c264aecc9190f67ec1fbb56e37b7e9fc | 715 | logdate-mobile | MIT License |
app/composeapp/src/main/java/com/xanthenite/isining/composeapp/utils/NetworkUtils.kt | ajcatindig | 534,358,909 | false | {"Kotlin": 484017} | package com.xanthenite.isining.composeapp.utils
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.platform.LocalContext
import com.xanthenite.isining.core.connectivity.ConnectionState
import com.xanthenite.isining.utils.connectivityManager
import com.xanthen... | 1 | Kotlin | 2 | 4 | c91e1d2240fe7f189f001813726e1171e0856047 | 1,020 | iSining | Apache License 2.0 |
feature/metis/conversation/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/feature/metis/conversation/service/storage/ReplyTextStorageService.kt | ls1intum | 537,104,541 | false | {"Kotlin": 1958386, "Dockerfile": 1306, "Shell": 1187} | package de.tum.informatics.www1.artemis.native_app.feature.metis.conversation.service.storage
interface ReplyTextStorageService {
suspend fun getStoredReplyText(
serverHost: String,
courseId: Long,
conversationId: Long,
postId: Long?
): String
suspend fun updateStoredReply... | 12 | Kotlin | 0 | 6 | dd4b99ab6a143b669d3db20af45dbe533c650bd4 | 460 | artemis-android | MIT License |
lib-gson/src/main/java/net/codefeet/lemmyandroidclient/gen/types/ModRemoveCommentView.kt | Flex4Reddit | 648,927,752 | false | null | package net.codefeet.lemmyandroidclient.gen.types
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize
@Parcelize
public data class ModRemoveCommentView(
@SerializedName("mod_remove_comment")
public val modRemoveComment: ModRemoveComment,
public val m... | 0 | Kotlin | 0 | 0 | 8028bbf4fc50d7c945d20c7034d6da2de4b7c0ac | 477 | lemmy-android-client | MIT License |
app/src/main/java/com/vctapps/bustracker/data/setting/remote/RemoteSettingsDatasource.kt | victor-vct | 98,001,028 | false | {"Gradle": 3, "Text": 1, "Ignore List": 2, "Markdown": 1, "Java Properties": 1, "Proguard": 1, "Java": 3, "XML": 13, "Kotlin": 28} | package com.vctapps.bustracker.data.setting.remote
import com.vctapps.bustracker.domain.entity.Settings
import io.reactivex.Maybe
interface RemoteSettingsDatasource{
fun getDeviceSettings() : Maybe<Settings>
} | 0 | Kotlin | 2 | 10 | 2173e3ee29fa3937e1798e0328fe646447aa1fd8 | 217 | bus-tracker | MIT License |
runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/ByteStreamFactory.kt | smithy-lang | 294,823,838 | false | {"Kotlin": 4171610, "Smithy": 122979, "Python": 1215} | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package aws.smithy.kotlin.runtime.content
import aws.smithy.kotlin.runtime.io.SdkByteReadChannel
import aws.smithy.kotlin.runtime.io.SdkSource
import aws.smithy.kotlin.runtime.io.source
fun interface By... | 36 | Kotlin | 26 | 82 | ad18e2fb043f665df9add82083c17877a23f8610 | 1,115 | smithy-kotlin | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.