path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/mindorks/framework/mvp/data/network/ApiHelper.kt | janishar | 115,260,052 | false | {"Kotlin": 103126} | package com.mindorks.framework.mvp.data.network
import io.reactivex.Observable
/**
* Created by jyotidubey on 04/01/18.
*/
interface ApiHelper {
fun performServerLogin(request: LoginRequest.ServerLoginRequest): Observable<LoginResponse>
fun performFBLogin(request: LoginRequest.FacebookLoginRequest): Obser... | 17 | Kotlin | 199 | 702 | 5ac97334d417aff636dd587c82ad97c661c38666 | 616 | android-kotlin-mvp-architecture | Apache License 2.0 |
app/src/main/java/de/jannis_jahr/motioncapturingapp/ui/user/UserFragment.kt | Sinnaj94 | 323,361,585 | false | null | package de.jannis_jahr.motioncapturingapp.ui.user
import android.net.Uri
import android.os.Bundle
import android.view.*
import androidx.fragment.app.Fragment
import de.jannis_jahr.motioncapturingapp.R
import de.jannis_jahr.motioncapturingapp.ui.observers.AddVideoObservable
import de.jannis_jahr.motioncapturingapp.ui.o... | 0 | Kotlin | 0 | 0 | c88729d3761ed334963c19f778f195c027e1429d | 973 | multipose-service-app | MIT License |
src/main/kotlin/icu/windea/pls/script/formatter/ParadoxScriptBlock.kt | DragonKnightOfBreeze | 328,104,626 | false | null | package icu.windea.pls.script.formatter
import com.intellij.formatting.*
import com.intellij.formatting.Indent
import com.intellij.lang.*
import com.intellij.psi.*
import com.intellij.psi.codeStyle.*
import com.intellij.psi.formatter.common.*
import com.intellij.psi.tree.*
import icu.windea.pls.core.*
import icu.winde... | 7 | null | 5 | 41 | 99e8660a23f19642c7164c6d6fcafd25b5af40ee | 5,106 | Paradox-Language-Support | MIT License |
src/de/serienstream/src/eu/kanade/tachiyomi/animeextension/de/serienstream/Serienstream.kt | almightyhak | 817,607,446 | false | null | package eu.kanade.tachiyomi.animeextension.de.serienstream
import android.app.Application
import android.content.SharedPreferences
import android.text.InputType
import android.util.Log
import android.widget.Toast
import androidx.preference.EditTextPreference
import androidx.preference.ListPreference
import androidx.pr... | 55 | null | 28 | 93 | 507dddff536702999357b17577edc48353eab5ad | 17,130 | aniyomi-extensions | Apache License 2.0 |
sbhyi-akts/src/main/java/com/outs/utils/android/IntentExt.kt | Outs3 | 424,166,410 | false | {"Kotlin": 246550} | package com.outs.utils.android
import android.app.Activity
import android.os.Bundle
import androidx.core.os.bundleOf
import androidx.fragment.app.Fragment
/**
* author: Outs3
* e-mail: 3.3nosekai@gmail.com
* date: 2021/4/27 15:37
* desc:
*/
fun Activity.injectIntent() = inject(intent?.extras)
inline fun <reifie... | 0 | Kotlin | 0 | 4 | 4d26addd6af6f63cc9206b2de88f824f3c7ed0cd | 589 | subahayai | MIT License |
app/src/main/java/com/petnagy/navigatordemo/modules/dashboard/PreferenceFragment.kt | petnagy | 185,669,652 | false | null | package com.petnagy.navigatordemo.modules.dashboard
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.lifecycle.Observer
import androidx... | 0 | Kotlin | 0 | 0 | 5e62c771dc4c7a3d606d079c3ea7e6987b15f263 | 3,306 | navigator | Apache License 2.0 |
lcc-content/src/main/kotlin/com/joshmanisdabomb/lcc/abstracts/challenges/MinesweeperAltarChallenge.kt | joshmanisdabomb | 537,458,013 | false | {"Kotlin": 2724329, "Java": 138822} | package com.joshmanisdabomb.lcc.abstracts.challenges
import com.joshmanisdabomb.lcc.block.BombBoardBlock
import com.joshmanisdabomb.lcc.block.entity.SapphireAltarBlockEntity
import com.joshmanisdabomb.lcc.directory.LCCBlocks
import com.joshmanisdabomb.lcc.directory.LCCCriteria
import com.joshmanisdabomb.lcc.extensions... | 0 | Kotlin | 0 | 0 | a836162eaf64a75ca97daffa02c1f9e66bdde1b4 | 14,716 | loosely-connected-concepts | Creative Commons Zero v1.0 Universal |
tea-time-travel-plugin/src/main/java/io/github/xlopec/tea/time/travel/plugin/integration/PluginComponent.kt | Xlopec | 188,455,731 | false | null | /*
* Copyright (C) 2021. <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 0 | Kotlin | 1 | 10 | 1f0d3bbd4f7ad050a2e39e287a7c19d36dc36ede | 3,775 | Tea-bag | MIT License |
twitter-core/src/main/java/com/twitter/sdk/android/core/internal/oauth/OAuthConstants.kt | takke | 195,917,891 | false | {"Gradle": 8, "INI": 2, "Markdown": 4, "Shell": 1, "Text": 2, "Ignore List": 1, "Batchfile": 1, "YAML": 1, "Java Properties": 2, "XML": 79, "Java": 94, "JSON": 13, "Kotlin": 27} | /*
* Copyright (C) 2015 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 1 | null | 1 | 1 | 33c16785b9adeb3e54299dff85280bdfafce4873 | 814 | simple-twitter-auth-android | Apache License 2.0 |
infra/src/main/kotlin/fr/sacane/jmanager/infrastructure/rest/tag/DTO.kt | Sacane | 531,082,439 | false | {"Kotlin": 115428, "Vue": 43310, "TypeScript": 18019, "JavaScript": 602, "CSS": 134} | package fr.sacane.jmanager.infrastructure.rest.tag
data class TagDTO(
val tagId: Long,
val label: String,
val colorDTO: ColorDTO = ColorDTO(0, 0, 0),
val isDefault: Boolean = false
)
data class ColorDTO(
val red: Int,
val green: Int,
val blue: Int
)
data class UserTagDTO(
val userId: ... | 1 | Kotlin | 0 | 0 | 9238109ddfd0f25846eb8b9acb8e2ba19bb79eb5 | 380 | JManager | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/arnscoordinatorapi/oasys/controller/OasysController.kt | ministryofjustice | 858,719,887 | false | {"Kotlin": 270210, "Makefile": 2528, "Dockerfile": 1185} | package uk.gov.justice.digital.hmpps.arnscoordinatorapi.oasys.controller
import io.swagger.v3.oas.annotations.Operation
import io.swagger.v3.oas.annotations.Parameter
import io.swagger.v3.oas.annotations.media.Content
import io.swagger.v3.oas.annotations.media.Schema
import io.swagger.v3.oas.annotations.responses.ApiR... | 2 | Kotlin | 0 | 0 | c7ce9fdb04301a23268b4c1713e2d7bcb24a83d4 | 24,222 | hmpps-assess-risks-and-needs-coordinator-api | MIT License |
idea/testData/intentions/foldInitializerAndIfToElvis/ifStatementPriority.kt | JakeWharton | 99,388,807 | false | null | // WITH_RUNTIME
fun test(a: String?, b: String): String {
val x = if (true) a else b
<caret>if (x == null) throw Exception()
return x
} | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 147 | kotlin | Apache License 2.0 |
domain/src/main/java/br/com/pebmed/domain/base/usecase/BaseUseCase.kt | PEBMED | 199,354,796 | false | null | package br.com.mobiplus.gitclient.domain.base.usecase
abstract class BaseUseCase<RESULT, PARAMS> : UseCase<RESULT, PARAMS> {
override suspend fun runAsync(): RESULT {
throw InvalidUseCaseCall("If you want to run without params and asynchronously, you should extend NoParamsBaseAsyncUseCase")
}
over... | 2 | Kotlin | 5 | 7 | 424c1405cdc4a27a9ae03d6ec4e64dd48e347109 | 672 | android-base-architecture | MIT License |
app/src/main/java/com/syncday/lab/SecondAdapter.kt | Syncday | 679,389,793 | false | null | package com.syncday.lab
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.syncday.lab.databinding.ItemMainBinding
class Secon... | 0 | Kotlin | 0 | 0 | f09212748ca8b548cee2fe20f5a5a0d144ccd53f | 1,333 | Android-XML-Theme-RT | MIT License |
common/src/main/kotlin/io/portone/sdk/server/webhook/WebhookVerificationException.kt | portone-io | 809,427,199 | false | {"Kotlin": 385115, "Java": 331} | package io.portone.sdk.server.webhook
/**
* Thrown to indicate that the webhook verification failed.
*/
public class WebhookVerificationException internal constructor(message: String, cause: Throwable? = null) : Exception(message, cause) {
public companion object {
@Suppress("ConstPropertyName")
... | 0 | Kotlin | 0 | 2 | f984c4cc31aa64aad5cd0fa0497bdd490a0fe33a | 392 | server-sdk-jvm | MIT License |
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/quickfix/MakeFieldPublicFix.kt | ingokegel | 72,937,917 | true | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.quickfix
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
import com.intellij.psi.util.elementType
import org.jetbrains.kotlin.... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 1,914 | intellij-community | Apache License 2.0 |
core/src/main/java/org/linus/core/utils/extension/ModifierExt.kt | Linus-DuJun | 538,978,918 | false | {"Kotlin": 209703} | package org.linus.core.utils.extension
import androidx.compose.foundation.layout.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.composed
import androidx.compose.ui.platform.LocalConfiguration
import androidx.compose.ui.un... | 0 | Kotlin | 0 | 1 | 26abe848e5d01f9342882c5c1770eb607a2b822e | 1,828 | CustomerManagerCompose | Apache License 2.0 |
common/kotlinx-coroutines-core-common/src/Await.kt | objcode | 159,731,828 | false | null | /*
* Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.coroutines
import kotlinx.atomicfu.*
import kotlin.coroutines.*
/**
* Awaits for completion of given deferred values without blocking a thread and resumes normally with the list of values
*... | 295 | null | 2 | 5 | 46741db4b0c2863475d5cc6fc75eafadd8e6199d | 6,486 | kotlinx.coroutines | Apache License 2.0 |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/neptune/CfnDBInstanceDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.neptune
import cloudshift.awscdk.common.CdkDslMarker
import cloudshift.awscdk.dsl.CfnTagDsl
import kotl... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 12,728 | awscdk-dsl-kotlin | Apache License 2.0 |
exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/Alias.kt | JetBrains | 11,765,017 | false | null | package org.jetbrains.exposed.sql
class Alias<out T : Table>(val delegate: T, val alias: String) : Table() {
override val tableName: String get() = alias
val tableNameWithAlias: String = "${delegate.tableName} $alias"
private fun <T : Any?> Column<T>.clone() = Column<T>(this@Alias, name, columnType)
... | 5 | null | 650 | 7,599 | aff82167165d4e35481a74aaa9c4ede3139aedbf | 5,148 | Exposed | Apache License 2.0 |
app/src/main/java/app/eluvio/wallet/screens/property/DynamicPageLayoutState.kt | eluv-io | 719,801,077 | false | {"Kotlin": 842368, "Java": 29738} | package app.eluvio.wallet.screens.property
import androidx.compose.runtime.Immutable
import androidx.compose.ui.text.AnnotatedString
import androidx.media3.exoplayer.source.MediaSource
import app.eluvio.wallet.data.FabricUrl
import app.eluvio.wallet.data.entities.MediaEntity
import app.eluvio.wallet.data.entities.Rede... | 8 | Kotlin | 1 | 0 | 77794a0186781b5d7580fd3ab55c8bc17359367b | 4,963 | elv-wallet-android | MIT License |
kotlin/api/src/test/kotlin/org/diffkt/ops/PowerTest.kt | facebookresearch | 495,505,391 | false | null | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package org.diffkt.ops
import io.kotest.core.spec.style.AnnotationSpec
import io.kotest.matchers.floats.shouldBeExactly
import o... | 62 | Jupyter Notebook | 3 | 55 | 710f403719bb89e3bcf00d72e53313f8571d5230 | 8,284 | diffkt | MIT License |
oauth2-authorization-server-starter/src/main/kotlin/com/labijie/infra/oauth2/serialization/jackson/ITwoFactorUserDetailsSerializer.kt | hongque-pro | 308,310,231 | false | {"Kotlin": 251261} | package com.labijie.infra.oauth2.serialization.jackson
import com.fasterxml.jackson.core.JsonGenerator
import com.fasterxml.jackson.core.JsonToken
import com.fasterxml.jackson.core.type.WritableTypeId
import com.fasterxml.jackson.databind.JsonSerializer
import com.fasterxml.jackson.databind.SerializerProvider
import c... | 0 | Kotlin | 0 | 5 | fb4c08f022db25503eb7fd23549b7acaed2688d3 | 2,694 | infra-oauth2 | Apache License 2.0 |
src/main/kotlin/no/nav/tiltaksarrangor/ingest/jobs/Ryddejobb.kt | navikt | 616,496,742 | false | null | package no.nav.tiltaksarrangor.ingest.jobs
import no.nav.tiltaksarrangor.ingest.jobs.leaderelection.LeaderElection
import no.nav.tiltaksarrangor.repositories.DeltakerRepository
import no.nav.tiltaksarrangor.repositories.DeltakerlisteRepository
import no.nav.tiltaksarrangor.repositories.model.DAGER_AVSLUTTET_DELTAKER_V... | 2 | Kotlin | 0 | 2 | e90af6c6655c35141497074c782a978e41669d11 | 1,583 | amt-tiltaksarrangor-bff | MIT License |
bitapp/src/main/java/com/atech/bit/ui/activity/main/toggleDrawer.kt | BIT-Lalpur-App | 489,575,997 | false | {"Kotlin": 782234} | package com.atech.bit.ui.activity.main
import androidx.compose.material3.DrawerValue
fun toggleDrawer(communicatorViewModel: MainViewModel) =
if (communicatorViewModel.toggleDrawerState.value == DrawerValue.Closed)
DrawerValue.Open else DrawerValue.Closed | 0 | Kotlin | 4 | 13 | e4bd5f23c80901fb6853dc8641c221dbb141c81c | 269 | BIT-App | MIT License |
src/test/kotlin/slak/test/CommonTest.kt | slak44 | 156,277,498 | false | null | package slak.test
import slak.ckompiler.*
import slak.ckompiler.analysis.CFG
import slak.ckompiler.lexer.*
import slak.ckompiler.FSPath
import slak.ckompiler.analysis.CFGFactory
import slak.ckompiler.analysis.CFGOptions
import slak.ckompiler.parser.ExternalDeclaration
import slak.ckompiler.parser.FunctionDefinition
im... | 0 | null | 0 | 19 | 37ae8984e418c1917305a87ac25ebce3a0d9efe7 | 4,713 | ckompiler | MIT License |
core/common/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/common/job_util.kt | ls1intum | 537,104,541 | false | {"Kotlin": 1964466, "Dockerfile": 1306, "Shell": 1187} | package de.tum.informatics.www1.artemis.native_app.core.common
import androidx.work.BackoffPolicy
import androidx.work.Constraints
import androidx.work.Data
import androidx.work.ListenableWorker
import androidx.work.NetworkType
import androidx.work.OneTimeWorkRequest
import androidx.work.OneTimeWorkRequestBuilder
impo... | 9 | Kotlin | 0 | 6 | 40c2f09bbedf5b561a0fa34f73a53154e77f13ef | 1,053 | artemis-android | MIT License |
core/common/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/common/job_util.kt | ls1intum | 537,104,541 | false | {"Kotlin": 1964466, "Dockerfile": 1306, "Shell": 1187} | package de.tum.informatics.www1.artemis.native_app.core.common
import androidx.work.BackoffPolicy
import androidx.work.Constraints
import androidx.work.Data
import androidx.work.ListenableWorker
import androidx.work.NetworkType
import androidx.work.OneTimeWorkRequest
import androidx.work.OneTimeWorkRequestBuilder
impo... | 9 | Kotlin | 0 | 6 | 40c2f09bbedf5b561a0fa34f73a53154e77f13ef | 1,053 | artemis-android | MIT License |
composeApp/src/commonMain/kotlin/data/service/networkingFactories.kt | poetofcode | 766,501,233 | false | {"Kotlin": 57786} | package data.service
import io.ktor.client.*
interface NetworkingFactory {
fun createHttpClient() : HttpClient
fun createApi() : FreshApi
}
class NetworkingFactoryImpl : NetworkingFactory {
override fun createHttpClient(): HttpClient {
return HttpClientFactory(
baseUrl = BASE_... | 4 | Kotlin | 0 | 0 | 59bc1548153d02a8907548e86a774044a97ffc0c | 725 | FreshApp | Apache License 2.0 |
core/src/commonMain/kotlin/maryk/core/properties/references/ObjectReferencePropertyReference.kt | marykdb | 290,454,412 | false | null | package maryk.core.properties.references
import maryk.core.extensions.bytes.calculateVarIntWithExtraInfoByteSize
import maryk.core.extensions.bytes.writeVarIntWithExtraInfo
import maryk.core.models.IsRootDataModel
import maryk.core.properties.definitions.IsFixedStorageBytesEncodable
import maryk.core.properties.defini... | 1 | null | 1 | 8 | 5deaf02648955657790192934d9647094a6cec58 | 2,863 | maryk | Apache License 2.0 |
wear/wear/src/androidTest/java/androidx/wear/widget/ArcLayoutTest.kt | RikkaW | 389,105,112 | 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... | 29 | null | 937 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 31,498 | androidx | Apache License 2.0 |
app/src/main/java/shvyn22/flexingfreegames/util/Constants.kt | shvyn22 | 505,396,757 | false | {"Kotlin": 107488} | package shvyn22.flexingfreegames.util
const val BASE_URL = "https://www.freetogame.com/api/"
const val DATABASE_NAME = "appDatabase"
const val DATASTORE_FILENAME = "preferences"
val PLATFORMS = listOf("all", "pc", "browser")
val SORT_TYPES = listOf("release-date", "popularity", "alphabetical", "relevance")
val CATEG... | 0 | Kotlin | 0 | 2 | cf61370993c8c7fb40a8722e7d46bd807b407732 | 1,024 | FlexingFreeGames | MIT License |
core/src/commonMain/kotlin/com/maxkeppeker/sheets/core/CoreView.kt | maxkeppeler | 523,345,776 | false | null | /*
* Copyright (C) 2022-2023. <NAME> (https://www.maxkeppeler.com)
*
* 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... | 8 | null | 6 | 816 | 2af41f317228e982e261522717b6ef5838cd8b58 | 2,160 | sheets-compose-dialogs | Apache License 2.0 |
demo/src/desktopMain/kotlin/org/pushingpixels/aurora/demo/svg/flags/gb.kt | kirill-grouchnikov | 297,981,405 | false | null | package org.pushingpixels.aurora.demo.svg.flags
import androidx.compose.ui.geometry.*
import androidx.compose.ui.graphics.*
import androidx.compose.ui.graphics.drawscope.DrawScope
import androidx.compose.ui.graphics.drawscope.Fill
import androidx.compose.ui.graphics.drawscope.Stroke
import androidx.compose.ui.graphics... | 8 | null | 7 | 570 | c9aa4a852fa2843a72473e710f3cf9a4ebd63f6d | 9,097 | aurora | Apache License 2.0 |
data/src/main/java/com/me/data/repository/CommentRepositoryImpl.kt | MohamedHatemAbdu | 205,669,482 | false | null | package com.me.data.repository
import com.me.data.datasource.CommentCacheDataSource
import com.me.data.datasource.CommentRemoteDataSource
import com.me.domain.entities.CommentEntity
import com.me.domain.repositories.CommentRepository
import io.reactivex.Flowable
class CommentRepositoryImpl(
val commentCacheDataSo... | 0 | Kotlin | 1 | 2 | ed6c429aafb94510fb0ec2e7a0e4744ed705e4bb | 901 | fake-posts-sample | Apache License 2.0 |
TeacherHelperAndroid/shared/src/commonMain/kotlin/com/tzeentch/teacherhelper/utils/UiState.kt | Tzeentch-Hack | 687,878,509 | false | {"Kotlin": 101434, "Python": 45413, "Swift": 342} | package com.tzeentch.teacherhelper.utils
import com.tzeentch.teacherhelper.dto.DetailsDto
import com.tzeentch.teacherhelper.dto.RequestDto
sealed class AuthUiState {
object Init : AuthUiState()
object Loading : AuthUiState()
object ToOptionalScreen : AuthUiState()
}
sealed class MainUiState {
obje... | 0 | Kotlin | 0 | 0 | b339a459c79f35da54ce0a492f3edb2d32ee349d | 855 | TeacherHelper | MIT License |
app/src/main/java/com/nikitosii/studyrealtorapp/util/annotation/AnnotationUtil.kt | meanswar | 702,052,508 | false | {"Kotlin": 730795, "HTML": 262565} | package com.nikitosii.studyrealtorapp.util.annotation
import com.nikitosii.studyrealtorapp.flow.base.BaseViewModel
object AnnotationUtil {
fun findViewModelClass(any: Any): Class<out BaseViewModel> {
return any.javaClass.getAnnotation(RequiresViewModel::class.java)!!.value.java
}
fun hasInject(an... | 2 | Kotlin | 0 | 0 | 20c281e8954fe900812e1923600ff0fd9b82d2b4 | 492 | StudyRealtorApp | MIT License |
presentation/src/main/java/com/anytypeio/anytype/presentation/templates/TemplateBlankViewModel.kt | anyproto | 647,371,233 | false | {"Kotlin": 11623123, "Java": 69306, "Shell": 11350, "Makefile": 1334} | package com.anytypeio.anytype.presentation.templates
import androidx.lifecycle.viewModelScope
import com.anytypeio.anytype.core_models.Block
import com.anytypeio.anytype.core_models.Id
import com.anytypeio.anytype.core_models.ObjectType
import com.anytypeio.anytype.core_models.ObjectTypeIds
import com.anytypeio.anytyp... | 45 | Kotlin | 43 | 528 | c708958dcb96201ab7bb064c838ffa8272d5f326 | 4,362 | anytype-kotlin | RSA Message-Digest License |
src/main/kotlin/com/hwx/led_panel/capture/Scanner.kt | zalman778 | 463,221,048 | false | {"Kotlin": 62523, "Dockerfile": 432} | package com.hwx.led_panel.capture
import be.tarsos.dsp.AudioDispatcher
import be.tarsos.dsp.AudioEvent
import be.tarsos.dsp.AudioProcessor
import be.tarsos.dsp.io.jvm.JVMAudioInputStream
import be.tarsos.dsp.util.fft.FFT
import com.hwx.led_panel.Config
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flo... | 0 | Kotlin | 0 | 0 | c1170aa36f3f2b4b2c4597a741fde7764d1235ef | 4,525 | led_panel | MIT License |
interceptor-http2-test-grpc/src/test/kotlin/GrpcTest.kt | Drill4J | 598,096,157 | false | null | /**
* Copyright 2020 - 2022 EPAM Systems
*
* 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 agree... | 3 | null | 0 | 1 | b20b9a97e2bd96a22b47cd2b07ffa264f9ab7b28 | 2,596 | lib-jvm-shared | Apache License 2.0 |
app/src/main/java/com/example/ktdemo/MainActivity.kt | DevaLee | 578,107,401 | false | null | package com.example.ktdemo
import android.annotation.SuppressLint
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.provider.Settings.Global
import android.view.View
import android.view.ViewTreeObserver
import android.widget.Button
import android.widg... | 0 | Kotlin | 0 | 0 | c09e99edfceac1a041875843637864f3b1293e4a | 7,146 | ktdemo | MIT License |
skellig-performance-junit-runner/src/main/kotlin/org/skellig/performance/runner/junit/annotation/SkelligPerformanceOptions.kt | skellig-framework | 263,021,995 | false | {"Kotlin": 1283314, "CSS": 525991, "Java": 270216, "FreeMarker": 66859, "HTML": 11313, "ANTLR": 6165} | package org.skellig.performance.runner.junit.annotation
import org.skellig.teststep.runner.context.SkelligTestContext
import java.lang.annotation.Inherited
import kotlin.reflect.KClass
/**
* Annotation used to provide performance options for a Skellig test.
*
* @property testName The name of the performance test s... | 8 | Kotlin | 0 | 3 | ed375268b0e444f1928f22f4ac27603e9d1fb66b | 984 | skellig-core | Apache License 2.0 |
compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/lower/FileClassLowering.kt | JakeWharton | 99,388,807 | false | null | /*
* Copyright 2010-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 12 | null | 4 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 1,911 | kotlin | Apache License 2.0 |
app/src/main/java/cn/wthee/pcrtool/ui/tool/storyevent/StoryEventListViewModel.kt | wthee | 277,015,110 | false | null | package cn.wthee.pcrtool.ui.tool.storyevent
import androidx.compose.runtime.Immutable
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import cn.wthee.pcrtool.data.db.repository.EventRepository
import cn.wthee.pcrtool.data.db.view.StoryEventData
import cn.wthee.pcrtool.ui.LoadingState
impor... | 1 | null | 5 | 90 | c60547933372fbbc595da93c7b0ea30319bbf124 | 3,029 | pcr-tool | Apache License 2.0 |
src/backend/codecc/quartz/biz-quartz/src/main/kotlin/com/tencent/bk/codecc/quartz/service/impl/JobManageServiceImpl.kt | zijiaone | 256,159,886 | true | {"Kotlin": 12267630, "Vue": 3567501, "Java": 1436323, "JavaScript": 907817, "CSS": 428463, "TSQL": 316166, "Lua": 144868, "Go": 136780, "HTML": 46195, "TypeScript": 32681, "Shell": 29974, "Python": 3714, "PLSQL": 2378, "Batchfile": 2174, "Makefile": 669} | package com.tencent.bk.codecc.quartz.service.impl
import com.tencent.bk.codecc.quartz.dao.JobCompensateRepository
import com.tencent.bk.codecc.quartz.dao.JobInstanceRepository
import com.tencent.bk.codecc.quartz.model.JobCompensateEntity
import com.tencent.bk.codecc.quartz.model.JobInstanceEntity
import com.tencent.bk... | 0 | Kotlin | 0 | 0 | 14b4167ee2cde66f4900dc67af73020a5401055a | 4,783 | bk-ci | MIT License |
app/src/main/java/com/paradise/ptpt/one/ui/running/reference/ReferenceRunningFragment.kt | sksowk156 | 624,277,724 | false | {"Kotlin": 573107} | package com.paradise.ptpt.one.ui.running.reference
import android.util.Log
import android.view.View
import androidx.lifecycle.Observer
import androidx.recyclerview.widget.LinearLayoutManager
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.auth.ktx.auth
import com.google.firebase.database.Databa... | 0 | Kotlin | 0 | 1 | f498af23b88d27870467efca989a12a2be7b851a | 3,872 | Hellth | Apache License 2.0 |
vector/src/main/java/im/vector/app/features/roomdirectory/picker/RoomDirectoryItem.kt | tchapgouv | 340,329,238 | false | null | /*
* Copyright 2019 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 agreed to i... | 55 | Kotlin | 418 | 9 | 9bd50a49e0a5a2a17195507ef3fe96594ddd739e | 2,777 | tchap-android | Apache License 2.0 |
compiler/testData/diagnostics/tests/resolve/invoke/kt9805.kt | JakeWharton | 99,388,807 | false | null | class A {
val foo: B.() -> Unit get() = null!!
}
class B
fun test(a: A, b: B) {
with(b) {
a.<!INAPPLICABLE_CANDIDATE!>foo<!>() // here must be error, because a is not extension receiver
a.foo(this)
(a.foo)()
(a.foo)(this)
}
}
| 181 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 275 | kotlin | Apache License 2.0 |
app/src/main/java/dev/kxxcn/maru/view/register/RegisterFragment.kt | kxxcn | 281,122,468 | false | null | package dev.kxxcn.maru.view.register
import android.app.DatePickerDialog
import android.os.Bundle
import android.view.LayoutInflater
import android.view.MotionEvent
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.viewModels
import androidx.lifecycle.Observer
import androidx.lifecycl... | 0 | Kotlin | 0 | 0 | c301d8155cc13e459eb20acfc0fb89ab56d9c3dc | 5,596 | maru | Apache License 2.0 |
VCL/src/main/java/io/velocitycareerlabs/impl/data/usecases/GenerateOffersUseCaseImpl.kt | velocitycareerlabs | 525,006,413 | false | {"Kotlin": 799091} | /**
* Created by Michael Avoyan on 10/05/2021.
*
* Copyright 2022 Velocity Career Labs inc.
* SPDX-License-Identifier: Apache-2.0
*/
package io.velocitycareerlabs.impl.data.usecases
import io.velocitycareerlabs.api.entities.*
import io.velocitycareerlabs.api.entities.error.VCLError
import io.velocitycareerlabs.im... | 2 | Kotlin | 0 | 1 | 98a70d770d5a334aea2e0e8996e409f39170f053 | 2,691 | WalletAndroid | Apache License 2.0 |
ses-plugin-server/src/test/kotlin/jetbrains/buildServer/sesPlugin/bounceHandler/DisableEmailOnBounceTest.kt | JetBrains | 105,000,686 | false | null | /*
* Copyright 2000-2021 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 4 | Kotlin | 2 | 2 | 388be7a713de4f028c5f7c8b6c5d00a3258b0dfa | 2,624 | TeamCity.SESPlugin | Apache License 2.0 |
src/main/kotlin/epgx/models/PgTable.kt | hamza1311 | 267,640,230 | true | {"Kotlin": 24784} | package epgx.models
import epgx.models.values.TsVector
import epgx.types.Generated
import epgx.types.JsonbColumnType
import epgx.types.TsVectorColumnType
import org.jetbrains.exposed.sql.Column
import org.jetbrains.exposed.sql.Expression
import org.jetbrains.exposed.sql.SqlExpressionBuilder
import org.jetbrains.expos... | 0 | Kotlin | 0 | 0 | 02be2def0d4e78b8d4c62caf39b6d138cdd4c896 | 1,980 | exposed-postgres-extensions | MIT License |
app/shared/state-machine/ui/public/src/commonTest/kotlin/build/wallet/statemachine/settings/full/device/DeviceSettingsUiStateMachineImplTests.kt | proto-at-block | 761,306,853 | false | null | package build.wallet.statemachine.settings.full.device
import app.cash.turbine.plusAssign
import build.wallet.availability.AppFunctionalityStatus
import build.wallet.availability.AppFunctionalityStatusProviderMock
import build.wallet.availability.F8eUnreachable
import build.wallet.coachmark.CoachmarkServiceMock
import... | 3 | null | 16 | 98 | 1f9f2298919dac77e6791aa3f1dbfd67efe7f83c | 11,885 | bitkey | MIT License |
presentation/src/main/kotlin/com/kazakago/blueprint/presentation/hierarchy/githuborgs/GithubOrgRow.kt | KazaKago | 60,256,062 | false | null | package com.kazakago.blueprint.presentation.view.hierarchy.github
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
import androidx.comp... | 9 | null | 1 | 4 | 91dddf287b8df6e8a69d34627ef55f6556240bb0 | 2,673 | blueprint_android | Apache License 2.0 |
OpenNSFW/src/main/java/com/zwy/opennsfw/core/Config.kt | kenuoseclab | 262,616,728 | true | {"Kotlin": 94284} | package com.zwy.opennsfw.core
import android.content.Context
data class Config(
/**
* 是否开启GPU加速
*/
var isOpenGPU: Boolean = true,
var numThreads: Int = 1,
var context: Context?
) | 0 | Kotlin | 0 | 0 | 1f2b750ead5a4823e9de9467cef05149ccf9b847 | 206 | open_nsfw_android | Apache License 2.0 |
feature/discover/view/implementation/src/main/kotlin/com/savvasdalkitsis/uhuruphotos/feature/discover/view/implementation/ui/SearchField.kt | savvasdalkitsis | 485,908,521 | false | null | /*
Copyright 2022 <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 writing, software
distribu... | 51 | null | 16 | 258 | 5cab4fea988d3f0f077552d079a250267d8c2c97 | 6,136 | uhuruphotos-android | Apache License 2.0 |
src/main/kotlin/no/nav/k9/vaktmester/Meldinger.kt | navikt | 310,015,240 | false | {"Kotlin": 68944, "Dockerfile": 193} | package no.nav.k9.vaktmester
import org.json.JSONArray
import org.json.JSONObject
import org.slf4j.LoggerFactory
import java.lang.Thread.currentThread
import java.time.ZonedDateTime
internal object Meldinger {
private val logger = LoggerFactory.getLogger(Meldinger::class.java)
private val filnavn = System.get... | 2 | Kotlin | 1 | 0 | 9172c646bfd65e78331a333ba011350021a90b44 | 4,674 | k9-vaktmester | MIT License |
authorizer-app-backend/src/main/java/org/radarbase/authorizer/doa/RestSourceUserRepositoryImpl.kt | RADAR-base | 142,870,020 | false | null | /*
* Copyright 2020 The Hyve
*
* 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... | 43 | null | 1 | 2 | 24d5b4602910ead721969377cc3630c1c906c502 | 8,323 | RADAR-Rest-Source-Auth | Apache License 2.0 |
app/src/main/java/com/example/android/dagger/settings/SettingsViewModel.kt | googlecodelabs | 271,125,046 | false | null | /*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 6 | null | 32 | 93 | f6cbebeccec3188d4becffaf28fd24284ac77ad7 | 1,083 | android-dagger-to-hilt | Apache License 2.0 |
app/src/main/java/org/ergoplatform/android/transactions/ChooseSpendingWalletFragmentDialog.kt | Anoninuk | 412,749,887 | false | null | package org.ergoplatform.android.transactions
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.NavOptions
import androidx.navigation.fragment.NavHostFragment
import org.ergoplatform.android.*
import org.ergoplatform.android.da... | 0 | null | 0 | 1 | 3c8d9d94aeea79eca831382f09d5b896d6a1652e | 3,689 | ergo-wallet-android | Apache License 2.0 |
app/spotifyapi/src/main/java/com/kpstv/spotifyapi/data/methods/SearchApi.kt | KaustubhPatange | 269,351,196 | false | null | package com.kpstv.spotifyapi.data.methods
import com.kpstv.spotifyapi.ResponseAction
import com.kpstv.spotifyapi.SpotifyClient
import com.kpstv.spotifyapi.data.models.Search
import com.kpstv.spotifyapi.enumerations.Type
import java.net.URLEncoder
class SearchApi(
private val client: SpotifyClient
) {
/**
... | 0 | Kotlin | 0 | 9 | 51410cfa2a8008da06689bd8c82928e4123efd13 | 1,219 | Unofficial-Spotify-SDK | Apache License 2.0 |
app/src/main/java/com/sniped/ui/main/detail/validator/MinLengthValidator.kt | ovitrif | 149,505,913 | false | null | package com.sniped.ui.main.detail.validator
import com.sniped.ui.validator.Validator
class MinLengthValidator(private val value: String) : Validator {
override fun isValid() = value.count() > 3
}
| 0 | Kotlin | 2 | 2 | ccf51fb07455ab975a5b0cfbc855f0eba0ec6792 | 203 | android-sniped | MIT License |
src/test/kotlin/partitions/File.kt | freemlang | 658,320,863 | false | {"Kotlin": 16229} | package partitions
import org.freem.compiler.frontend.Partition
import org.freem.compiler.frontend.PartitionField
class File private constructor(
val name: String,
val package_: Package,
val imports: List<Package>,
) {
companion object: Partition<File> {
override fun PartitionField.initialize(... | 0 | Kotlin | 0 | 0 | c8ca97bfe00fb777545135df7c074d51b6af61f5 | 387 | freem | Apache License 2.0 |
app/src/main/kotlin/dev/mbo/dbq/task/dbqueue/jsonschema/JsonSchemaValidator.kt | mbogner | 487,622,806 | false | {"Kotlin": 77379, "PLpgSQL": 4569} | /*
* Copyright 2022 mbo.dev
*
* 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... | 0 | Kotlin | 0 | 0 | d89d18513f04f69a61e2a955db496548349e19a1 | 1,323 | dbq | Apache License 2.0 |
lib-test/src/main/java/io/sellmair/kompass/app/Identified.kt | nairobi222 | 181,482,076 | false | null | package io.sellmair.kompass.app
import android.graphics.Color
enum class Target {
FragmentOne,
FragmentTwo,
FragmentThree,
FragmentFour,
FragmentFive,
FragmentSix,
FragmentSeven,
FragmentEight,
FragmentNine,
FragmentTen,
ViewOne,
ViewTwo,
ViewThree,
ViewFour,
... | 1 | null | 1 | 1 | 855e3905f5367a41c00c7a45e5eaf35905c8f893 | 710 | kompass | Apache License 2.0 |
feature/qrcode/src/main/kotlin/com/masselis/tpmsadvanced/qrcode/interfaces/QRCodeViewModel.kt | VincentMasselis | 501,773,706 | false | null | package com.masselis.tpmsadvanced.qrcode.interfaces
import androidx.camera.view.CameraController
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.masselis.tpmsadvanced.core.feature.usecase.CurrentVehicleUseCase
import com.masselis.tpmsadvanced.data.vehicle.model.Vehicle
import co... | 6 | null | 1 | 1 | 6c0624dc94da5a1ce54c03eb156aa8f489ebf82f | 3,861 | TPMS-advanced | Apache License 2.0 |
commons/ui/src/main/java/es/littledavity/commons/ui/navigation/NavigationCommand.kt | Benderinos | 260,322,264 | false | null | /*
* Copyright 2021 dalodev
*/
package es.littledavity.commons.ui.navigation
import androidx.navigation.NavDirections
import androidx.navigation.fragment.FragmentNavigator
sealed class NavigationCommand {
data class To(val directions: NavDirections, val extras: FragmentNavigator.Extras? = null) : NavigationComm... | 0 | Kotlin | 0 | 1 | 4f7f9d251c4da8e130a9f2b64879867bfecb44e8 | 474 | ChorboAgenda | Apache License 2.0 |
ktor-server/ktor-server-plugins/ktor-server-forwarded-header/jvmAndNix/src/io/ktor/server/plugins/forwardedheaders/ForwardedHeaders.kt | ktorio | 40,136,600 | false | null | /*
* Copyright 2014-2022 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
@file:Suppress("DEPRECATION_ERROR")
package io.ktor.server.plugins.forwardedheaders
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.application.hooks.*
import... | 269 | Kotlin | 962 | 9,709 | 9e0eb99aa2a0a6bc095f162328525be1a76edb21 | 6,304 | ktor | Apache License 2.0 |
feature-staking-impl/src/main/java/io/novafoundation/nova/feature_staking_impl/presentation/validators/parcel/StakeTargetDetailsParcelModel.kt | novasamatech | 415,834,480 | false | {"Kotlin": 7667771, "Java": 14723, "JavaScript": 425} | package io.novafoundation.nova.feature_staking_impl.presentation.validators.parcel
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
class StakeTargetDetailsParcelModel(
val accountIdHex: String,
val isSlashed: Boolean,
val stake: StakeTargetStakeParcelModel,
val identity... | 17 | Kotlin | 6 | 9 | 67cd6fd77aae24728a27b81eb7f26ac586463aaa | 359 | nova-wallet-android | Apache License 2.0 |
app/src/main/java/com/laotoua/dawnislandk/util/GlobalExtensions.kt | yudanhezhongweijie | 250,138,603 | false | null | /*
* Copyright 2020 Fishballzzz
* *
* * 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... | 4 | null | 6 | 53 | fb4d00107a7c66abb9222c175f2090a782da92e4 | 3,817 | DawnIslandK | Apache License 2.0 |
urbanairship-core/src/test/java/com/urbanairship/channel/ChannelBatchUpdateManagerTest.kt | urbanairship | 58,972,818 | false | null | package com.urbanairship.channel
import android.content.Context
import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.urbanairship.PreferenceDataStore
import com.urbanairship.audience.AudienceOverrides
import com.urbanairship.audience.AudienceOverridesProvide... | 2 | null | 122 | 111 | 21d49c3ffd373e3ba6b51a706a4839ab3713db11 | 13,378 | android-library | Apache License 2.0 |
kvision-modules/kvision-material/src/jsMain/kotlin/io/kvision/material/slot/TextSlots.kt | rjaros | 120,835,750 | false | {"Kotlin": 3524783, "CSS": 25183, "JavaScript": 16390, "HTML": 2425} | /*
* Copyright (c) 2017-present <NAME>
* Copyright (c) 2024 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the righ... | 17 | Kotlin | 65 | 1,235 | 7daa34594be70c037bfbaeefbfd1e3d7629e1e0b | 1,907 | kvision | MIT License |
grow.kotlin/arieldossantos/src/main/kotlin/com/growth/response/GrowthListCountResponse.kt | jeffotoni | 384,337,098 | false | null | package com.growth.response
data class GrowthListCountResponse(
val msg: String,
val testValue: Double? = null,
val count: Int = 0
)
| 2 | Go | 17 | 40 | 6e1c5906bfc25a4ffcb2ce74d18c786e449c9bef | 146 | growth | MIT License |
mvvm-dagger/src/main/java/com/nphau/android/shared/screens/UIBehaviour.kt | ThanhHuong98 | 432,947,065 | false | {"Kotlin": 165721, "Java": 1330, "Shell": 87} | package com.imstudio.android.shared.screens
import android.os.Bundle
interface UIBehaviour {
fun showError(message: String?)
fun onSyncViews(savedInstanceState: Bundle?)
fun onSyncEvents()
fun onSyncData()
fun makeVibrator()
fun doNotCare()
fun showLoading(isShow: Boolean, timeout: ... | 0 | null | 0 | 1 | ac0402ae4734285ef5e647d1f53a1f9f4a8d98cd | 337 | android.clean-architecture.mvvm | Apache License 2.0 |
idea/src/org/jetbrains/kotlin/idea/filters/InlineFunctionHyperLinkInfo.kt | JetBrains | 278,369,660 | false | null | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.debugger
import com.intellij.execution.filters.FileHyperlinkInfo
import com.intellij.execution.filters.HyperlinkInfoBase
impo... | 191 | null | 4372 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 3,573 | intellij-kotlin | Apache License 2.0 |
saved-sites/saved-sites-impl/src/main/java/com/duckduckgo/savedsites/impl/sync/SavedSiteSyncPausedViewModel.kt | duckduckgo | 78,869,127 | false | {"Kotlin": 14333964, "HTML": 63593, "Ruby": 20564, "C++": 10312, "JavaScript": 8463, "CMake": 1992, "C": 1076, "Shell": 784} | /*
* Copyright (c) 2023 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 ... | 67 | Kotlin | 901 | 3,823 | 6415f0f087a11a51c0a0f15faad5cce9c790417c | 2,754 | Android | Apache License 2.0 |
app/src/main/java/ac/id/unikom/codelabs/navigasee/utilities/service/foregroundconnect/LocationManager.kt | mnkadafi | 621,252,553 | false | null | package ac.id.unikom.codelabs.navigasee.utilities.service.foregroundconnect
import ac.id.unikom.codelabs.navigasee.MyApplication
import ac.id.unikom.codelabs.navigasee.data.source.UpdateStatusRepository
import ac.id.unikom.codelabs.navigasee.utilities.helper.Preferences
import android.os.Looper
import android.util.Log... | 0 | Kotlin | 0 | 0 | 8c796c51ce1096bfbc8b9f71ae33395c56065fc3 | 4,950 | Voiye | Apache License 2.0 |
app/src/main/java/org/wikipedia/suggestededits/SuggestionsActivity.kt | wikimedia | 13,862,999 | false | null | package org.wikipedia.suggestededits
import android.content.Context
import android.content.Intent
import android.os.Bundle
import org.wikipedia.Constants
import org.wikipedia.Constants.INTENT_EXTRA_ACTION
import org.wikipedia.Constants.INTENT_EXTRA_INVOKE_SOURCE
import org.wikipedia.activity.SingleFragmentActivity
imp... | 34 | null | 599 | 2,250 | 32b9315d26af6cab3f5bfde990ab8b6ee5444786 | 1,519 | apps-android-wikipedia | Apache License 2.0 |
inspector/src/main/kotlin/com/jakeout/gradle/inspector/InspectorConfig.kt | jakeouellette | 35,901,832 | false | null | package com.jakeout.gradle.inspector
import org.gradle.api.Task
import java.io.File
data class InspectorConfig(
val cleanUpEachTask: Boolean,
val compareBuild: Boolean,
val showInspection: Boolean,
val incrementalDir: File,
val inspectionRoot: File,
val projectBuildDir:... | 7 | JavaScript | 10 | 218 | 7ee81d50bdee4763ce6298a95ae589032ab4d749 | 980 | inspector | MIT License |
app/src/main/java/com/app/hcmut/mymovie/feature/movies/MoviesActivity.kt | youknowbaron | 186,788,809 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 45, "XML": 53, "Java": 1, "JSON": 3} | package com.app.hcmut.mymovie.feature.movies
import android.content.Intent
import android.graphics.Typeface
import android.os.Bundle
import android.util.Log
import android.widget.TextView
import androidx.core.content.ContextCompat
import androidx.core.view.GravityCompat
import androidx.viewpager.widget.ViewPager
impor... | 1 | null | 1 | 1 | cf0f30ef0e0c7efb71aa0c7a7307a5788421ee8e | 11,269 | Ass-MAD-FefaCinema | Apache License 2.0 |
src/main/kotlin/simplecalculator/Calculator.kt | xfl03 | 128,039,781 | false | null | package simplecalculator
import simplecalculator.util.Operator
import simplecalculator.util.ExpressionUtil
import simplecalculator.util.Fraction
import java.math.BigInteger
import java.text.ParseException
import java.util.*
/**
* Calculator Class
* @param expression
*/
class Calculator(private val expression: Stri... | 0 | Kotlin | 0 | 1 | cdfdcd953d47fc2bedd2b2ffcd76528d4e2fd617 | 5,392 | SimpleCalculator | MIT License |
lpDevice/src/main/java/com/angcyo/laserpacker/device/firmware/FirmwareModel.kt | angcyo | 229,037,684 | false | {"Kotlin": 3467917, "JavaScript": 5542, "HTML": 1598} | package com.angcyo.laserpacker.device.firmware
import androidx.annotation.AnyThread
import androidx.lifecycle.ViewModel
import com.angcyo.bluetooth.fsc.*
import com.angcyo.bluetooth.fsc.laserpacker.LaserPeckerModel
import com.angcyo.bluetooth.fsc.laserpacker.command.DataCmd
import com.angcyo.bluetooth.fsc.laserpacker.... | 0 | Kotlin | 4 | 4 | fa83a724273f8b45f5879942a562df6455bf1b4b | 5,240 | UICoreEx | MIT License |
executor/instantiator/src/commonTest/kotlin/io/github/charlietap/chasm/executor/instantiator/runtime/allocation/memory/MemoryAllocatorTest.kt | CharlieTap | 743,980,037 | false | {"Kotlin": 2038087, "WebAssembly": 45714} | package io.github.charlietap.chasm.executor.instantiator.runtime.allocation.memory
import io.github.charlietap.chasm.executor.instantiator.allocation.memory.MemoryAllocatorImpl
import io.github.charlietap.chasm.executor.memory.factory.LinearMemoryFactory
import io.github.charlietap.chasm.executor.runtime.instance.Memo... | 5 | Kotlin | 3 | 67 | dd6fa51262510ecc5ee5b03866b3fa5d1384433b | 1,706 | chasm | Apache License 2.0 |
src/main/java/me/ducpro/minecontroller/exceptions/InvalidParameterException.kt | DucPr0 | 495,636,657 | false | {"Kotlin": 23842} | package me.ducpro.minecontroller.exceptions
import java.lang.RuntimeException
class InvalidParameterException(s: String) : RuntimeException(s) | 0 | Kotlin | 0 | 2 | f88891a754ad948fe8d8a73a127daad0526bf1e2 | 144 | MineController | MIT License |
node-api/src/main/kotlin/net/corda/nodeapi/internal/ArtemisUtils.kt | corda | 70,137,417 | false | null | @file:JvmName("ArtemisUtils")
package net.corda.nodeapi.internal
import net.corda.core.internal.declaredField
import org.apache.activemq.artemis.utils.actors.ProcessorBase
import java.nio.file.FileSystems
import java.nio.file.Path
import java.util.concurrent.Executor
import java.util.concurrent.ThreadFactory
import ja... | 62 | null | 1077 | 3,989 | d27aa0e6850d3804d0982024054376d452e7073a | 1,828 | corda | Apache License 2.0 |
src/main/java/zd/zero/waifu/motivator/plugin/assets/LocalStorageService.kt | diamondlee7 | 308,873,487 | true | {"Kotlin": 139102, "Java": 63057, "CSS": 538, "HTML": 283, "Shell": 80} | package zd.zero.waifu.motivator.plugin.assets
import com.intellij.openapi.application.PathManager
import com.intellij.openapi.diagnostic.Logger
import java.io.IOException
import java.nio.file.Files
import java.nio.file.Path
import java.nio.file.Paths
import java.util.Optional
object LocalStorageService {
private ... | 0 | null | 0 | 0 | eae1e1affaf7c67900bbfb4671016a26ce21a4be | 872 | waifu-motivator-plugin | MIT License |
libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/pm20/KotlinPublicationConfigurator.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2021 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.gradle.plugin.mpp.pm20
interface KotlinPublicationConfigurator<in T : KotlinGrad... | 132 | null | 5074 | 40,992 | 57fe6721e3afb154571eb36812fd8ef7ec9d2026 | 1,161 | kotlin | Apache License 2.0 |
spring-data-mongodb-kotlin-coroutine/src/main/kotlin/org/springframework/data/repository/coroutine/CoroutineCrudRepository.kt | konrad-kaminski | 88,795,239 | false | null | /*
* Copyright 2017 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 applica... | 24 | Kotlin | 66 | 424 | b88cda2c3ac60b0b51533c0cbe76c041437fadc2 | 3,555 | spring-kotlin-coroutine | Apache License 2.0 |
prime-router/src/test/kotlin/fhirengine/translation/SyncSchemaE2ETests.kt | CDCgov | 304,423,150 | false | {"Kotlin": 5464245, "CSS": 3370586, "TypeScript": 1881687, "Java": 1326278, "HCL": 285443, "MDX": 140603, "PLpgSQL": 77695, "Shell": 69067, "HTML": 68387, "SCSS": 66843, "Smarty": 51325, "RouterOS Script": 17080, "Python": 13724, "Makefile": 8166, "JavaScript": 8003, "Dockerfile": 3127} | package gov.cdc.prime.router.fhirengine.translation
import assertk.assertThat
import assertk.assertions.hasSize
import assertk.assertions.isEmpty
import assertk.assertions.isNull
import com.github.ajalt.clikt.testing.test
import gov.cdc.prime.router.azure.BlobAccess
import gov.cdc.prime.router.azure.ValidateSchemasFun... | 1,478 | Kotlin | 40 | 71 | ad7119e2c47671e0e69b942dafd804876f104414 | 3,557 | prime-reportstream | Creative Commons Zero v1.0 Universal |
src/main/kotlin/Main.kt | jbaruch | 849,431,675 | false | {"Kotlin": 14296} | package jbaru.ch.telegram.hubitat
import com.github.kotlintelegrambot.bot
import com.github.kotlintelegrambot.dispatch
import com.github.kotlintelegrambot.dispatcher.command
import com.github.kotlintelegrambot.dispatcher.handlers.CommandHandlerEnvironment
import com.github.kotlintelegrambot.entities.ChatId
import io.k... | 0 | Kotlin | 2 | 0 | 34ab4f0e06912b4fd1778bf0e23c7125205f9032 | 5,896 | tg-hubitat-bot | Apache License 2.0 |
src/main/kotlin/Main.kt | jbaruch | 849,431,675 | false | {"Kotlin": 14296} | package jbaru.ch.telegram.hubitat
import com.github.kotlintelegrambot.bot
import com.github.kotlintelegrambot.dispatch
import com.github.kotlintelegrambot.dispatcher.command
import com.github.kotlintelegrambot.dispatcher.handlers.CommandHandlerEnvironment
import com.github.kotlintelegrambot.entities.ChatId
import io.k... | 0 | Kotlin | 2 | 0 | 34ab4f0e06912b4fd1778bf0e23c7125205f9032 | 5,896 | tg-hubitat-bot | Apache License 2.0 |
compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/stages/CheckCallableReferenceExpectedType.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2023 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.fir.resolve.calls
import org.jetbrains.kotlin.KtFakeSourceElementKind
import org... | 7 | null | 5771 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 18,697 | kotlin | Apache License 2.0 |
codegen/src/androidMain/kotlin/com/freeletics/khonshu/codegen/internal/DestinationComponentLookup.kt | freeletics | 375,363,637 | false | null | package com.freeletics.khonshu.codegen.internal
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import com.freeletics.khonshu.navigation.BaseRoute
import com.freeletics.khonshu.navigation.internal.DestinationId
import com.freeletics.khonshu.navigation.internal.NavigationExecutor
import c... | 6 | null | 9 | 95 | eb5bc576d058ba24f6eb8f64c6d42066c664094e | 2,850 | khonshu | Apache License 2.0 |
app/src/androidTest/java/org/simple/clinic/login/LoginUserWithOtpServerIntegrationTest.kt | simpledotorg | 132,515,649 | false | null | package org.simple.clinic.login
import com.google.common.truth.Truth.assertThat
import org.junit.Before
import org.junit.Rule
import org.junit.Test
import org.junit.rules.RuleChain
import org.simple.clinic.TestClinicApp
import org.simple.clinic.login.activateuser.ActivateUserRequest
import org.simple.clinic.rules.Serv... | 3 | null | 73 | 236 | ff699800fbe1bea2ed0492df484777e583c53714 | 1,951 | simple-android | MIT License |
driver/src/main/kotlin/org/jlleitschuh/disclosure/automated/driver/GitHubSecurityAdvisoriesDriver.kt | JLLeitschuh | 339,857,300 | false | null | package org.jlleitschuh.disclosure.automated.driver
interface GitHubSecurityAdvisoriesDriver {
}
| 1 | Kotlin | 0 | 1 | d1848416efefbf487aa2128920c6b9a1df7b752c | 98 | automated-disclosure | MIT License |
src/main/kotlin/com/zeta/system/controller/SysFileController.kt | xia5800 | 449,936,024 | false | null | package com.zeta.system.controller
import com.zeta.system.model.entity.SysFile
import com.zeta.system.model.param.SysFileQueryParam
import com.zeta.system.service.ISysFileService
import io.swagger.annotations.Api
import io.swagger.annotations.ApiOperation
import io.swagger.annotations.ApiParam
import org.springframewo... | 0 | null | 2 | 8 | 8c138e73e864836ddfa5e3eabf05ec05749fda56 | 2,724 | zeta-kotlin | MIT License |
verik-importer/src/main/kotlin/io/verik/importer/ast/element/EModule.kt | frwang96 | 269,980,078 | false | null | /*
* Copyright (c) 2021 <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 ... | 0 | Kotlin | 1 | 5 | f11e0e7404d0461ec8b8c5d5635b2a4f6278a1f6 | 1,291 | verik | Apache License 2.0 |
SKIE/common/configuration/declaration/src/commonMain/kotlin/co/touchlab/skie/configuration/SkieConfigurationFlag.kt | touchlab | 685,579,240 | false | null | @file:Suppress("EnumEntryName")
package co.touchlab.skie.configuration
enum class SkieConfigurationFlag {
Feature_CoroutinesInterop,
Feature_DefaultArgumentsInExternalLibraries,
Build_SwiftLibraryEvolution,
Build_ParallelSwiftCompilation,
Build_ParallelSkieCompilation,
Build_ConcurrentSkieCo... | 9 | null | 8 | 735 | b96044d4dec91e4b85c5b310226c6f56e3bfa2b5 | 992 | SKIE | Apache License 2.0 |
src/main/kotlin/io/github/jcarvalho/musicstore/service/SongService.kt | jcarvalho | 107,180,679 | false | null | package io.github.jcarvalho.musicstore.service
import io.github.jcarvalho.musicstore.repository.SongRepository
import org.springframework.stereotype.Service
@Service
class SongService(private val songRepository: SongRepository) {
fun findByAlbumId(albumId: String) = songRepository.findByAlbumId(albumId)
fun... | 0 | Kotlin | 0 | 1 | 5e26c671c5cac970480c1efad2cefb88cb86e324 | 433 | music-store | MIT License |
compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/NewCommonSuperTypeCalculator.kt | cr8tpro | 189,964,139 | false | null | /*
* Copyright 2010-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 0 | null | 1 | 2 | dca23f871cc22acee9258c3d58b40d71e3693858 | 11,132 | 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.