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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
adaptive-grove/src/commonMain/kotlin/fun/adaptive/grove/designer/utility/hits.kt | spxbhuhb | 788,711,010 | false | null | package `fun`.adaptive.grove.designer.utility
import `fun`.adaptive.foundation.instruction.AdaptiveInstruction
import `fun`.adaptive.ui.AbstractAuiFragment
import `fun`.adaptive.ui.fragment.layout.AbstractContainer
val noHit = object : AdaptiveInstruction {}
/**
* Finds layout items in the container that have [x] a... | 28 | null | 0 | 3 | c0fd95c9654bee332c20f8f9373f1dae9132cf6b | 1,402 | adaptive | Apache License 2.0 |
app/src/main/java/hidden/edu/fragment/MapFragmentBase.kt | Neteraxe | 267,196,648 | false | {"Java": 512516, "Kotlin": 65885, "Batchfile": 174} | package hidden.edu.fragment
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.CompoundButton
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import com.amap.api.lo... | 1 | null | 1 | 1 | 78e7c9114e1060b04db3bfc56bbba924990f5a48 | 8,821 | HiddenTale | MIT License |
app/src/main/java/com/learnopengles/android/lesson7/LessonSevenGLSurfaceView.kt | jimandreas | 213,848,461 | false | {"Gradle": 3, "Java Properties": 1, "Text": 1, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "INI": 1, "XML": 13, "GLSL": 12, "Kotlin": 27, "Java": 11} | package com.learnopengles.android.lesson6
import android.annotation.SuppressLint
import android.content.Context
import android.opengl.GLSurfaceView
import android.util.AttributeSet
import android.view.MotionEvent
class LessonSixGLSurfaceView : GLSurfaceView {
private var mRenderer: LessonSixRenderer? = null
... | 1 | null | 1 | 1 | 2e699232989e701ef42b6aaeee86d12441ea99d7 | 1,511 | AndroidOpenGLESLessons | Apache License 2.0 |
accountant/accountant-app/src/main/kotlin/co/nilin/opex/accountant/app/config/JsonMapperConfig.kt | opexdev | 370,411,517 | false | null | package co.nilin.opex.accountant.app.config
import co.nilin.opex.accountant.core.spi.JsonMapper
import com.fasterxml.jackson.databind.ObjectMapper
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
@Configuration
class JsonMapperConfig {
@Bean
fun g... | 30 | null | 22 | 51 | fedf3be46ee7fb85ca7177ae91b13dbc6f2e8a73 | 880 | core | MIT License |
src/main/kotlin/com/palmlang/palm/lang/common/CompilationContext.kt | PalmLang | 241,457,986 | false | null | package com.palmlang.palm.lang.common
import com.palmlang.palm.lang.builtin.frontend.BuiltinFileHandler
import com.palmlang.palm.lang.common.frontend.*
import com.palmlang.palm.lang.palm.frontend.PalmFileHandler
import java.util.*
class CompilationContext {
val palmHandler = PalmFileHandler(this)
val builtinH... | 0 | Kotlin | 0 | 4 | 97f8a202451966585e2943a2ea8b18cda59f6336 | 10,088 | Palm | Apache License 2.0 |
compiler/testData/diagnostics/tests/multiplatform/headerClass/actualMethodInExpectClass.ll.kt | JetBrains | 3,432,266 | false | null | // MODULE: m1-common
// FILE: common.kt
expect class Foo {
actual fun <!ACTUAL_WITHOUT_EXPECT!>bar<!>()
}
// MODULE: m1-jvm()()(m1-common)
// FILE: jvm.kt
actual class Foo {
actual fun bar() {}
}
| 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 207 | kotlin | Apache License 2.0 |
src/main/java/com/darkprograms/speech/util/Complex.kt | OpenASR | 37,895,115 | false | null | package com.darkprograms.speech.util
/*************************************************************************
* Compilation: javac Complex.java
* Execution: java Complex
*
* Data type for complex numbers.
*
* The data type is "immutable" so once you create and initialize
* a Complex object, you cannot ch... | 23 | Kotlin | 10 | 79 | d08e0d6da7a45bcf26d688483e9de9887775b385 | 3,792 | idear | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/lakeformation/CfnResourceDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package cloudshift.awscdk.dsl.services.lakeformation
import cloudshift.awscdk.common.CdkDslMarker
imp... | 4 | null | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 5,112 | awscdk-dsl-kotlin | Apache License 2.0 |
core/src/commonMain/kotlin/it/unibo/pulvreakt/dsl/deployment/DeviceDeploymentSpecificationScope.kt | pulvreakt | 540,771,410 | false | {"Kotlin": 176718, "JavaScript": 404, "HTML": 93} | package it.unibo.pulvreakt.dsl.deployment
import arrow.core.Either
import arrow.core.Nel
import arrow.core.raise.either
import it.unibo.pulvreakt.core.component.Component
import it.unibo.pulvreakt.core.infrastructure.Host
import it.unibo.pulvreakt.dsl.errors.DeploymentConfigurationError
import it.unibo.pulvreakt.dsl.m... | 1 | Kotlin | 1 | 3 | 850037b3a19ac1f675d42ba715006d895f6a7d90 | 2,382 | pulvreakt | MIT License |
logging/src/main/kotlin/com/gnirps/logging/service/WrappedSlf4jLogger.kt | REDLab-Team | 244,939,758 | false | {"Kotlin": 133738, "Shell": 31569, "Dockerfile": 1643} | package com.gnirps.logging.service
class WrappedSlf4jLogger(private val logger: org.slf4j.Logger) : AbstractLogger() {
override fun trace(content: Any?, eventType: Logger.EventType?) {
logger.trace(formatMessage(content = content, eventType = eventType))
}
override fun debug(content: Any?, eventTy... | 2 | Kotlin | 0 | 2 | dacef8d356902456a590435bf11a848c0b141f8a | 892 | gnirps | MIT License |
compose-guard/core/src/main/kotlin/com/joetr/compose/guard/core/model/composables/ComposablesReport.kt | j-roskopf | 800,960,208 | false | null | /**
* MIT License
*
* Copyright (c) 2024 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, ... | 5 | null | 5 | 80 | 44c8a547b98b600f39b21df3a2fefa781b676db6 | 1,690 | ComposeGuard | MIT License |
idea/testData/quickfix/override/typeMismatchOnOverride/namedFunctionReturnOverrideInsideVariableInitializer.kt | JakeWharton | 99,388,807 | true | null | // "Change return type to 'Boolean'" "true"
interface A {
fun foo(): Boolean
}
fun foo() {
val x = object : A {
override fun foo(): Boolean?<caret> = true
}
}
/* IGNORE_FIR */ | 0 | Kotlin | 30 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 198 | kotlin | Apache License 2.0 |
src/main/kotlin/day18/Day18.kt | alxgarcia | 435,549,527 | false | null | package day18
import java.io.File
sealed interface SnailFishNumber {
val magnitude: Int
}
class SnailNumber(override var magnitude: Int) : SnailFishNumber {
val isSplittable: Boolean
get() = magnitude > 9
override fun toString(): String = magnitude.toString()
fun split(parent: SnailPair): SnailPair =
... | 0 | Kotlin | 0 | 0 | d6b10093dc6f4a5fc21254f42146af04709f6e30 | 4,309 | advent-of-code-2021 | MIT License |
app/src/main/java/com/victor/loclarm/db/model/UserSettings.kt | ManuvelVictor | 828,185,613 | false | {"Kotlin": 50923} | package com.victor.loclarm.db.model
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "user_settings")
data class UserSettings(
@PrimaryKey val id: Int = 0,
val language: String = "English",
val units: String = "Metric",
val ringtone: String = "default",
val volume: I... | 0 | Kotlin | 0 | 0 | cd7a647bf6177045c38d248a3c8861548f40d8ac | 364 | Loclarm | Apache License 2.0 |
src/main/kotlin/com/yapp/web2/common/config/SecurityConfig.kt | YAPP-Github | 561,173,425 | false | null | package com.yapp.web2.common.config
import com.yapp.web2.domain.jwt.interceptor.JwtInterceptor
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.securi... | 4 | null | 1 | 4 | 7e99b279c3d9071bde68fd0d561f23ca32fd9fc9 | 1,368 | 21st-Web-Team-2-BE | Apache License 2.0 |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/ExposurePlus2.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.tabler.tabler.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
im... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 2,456 | compose-icon-collections | MIT License |
src/test/kotlin/be/enyed/report/dsl/DslTryout.kt | dirkdeyne | 159,070,110 | false | null | package be.enyed.report.dsl
/**
* DSL tryout
**/
data class A(val name:String, val b:B, val e:E )
data class B(val name:String, val c:Set<C> )
data class C(val name:String, val d:Set<D> )
data class D(val name:String ="d")
data class E(val name:String ="e")
@DslMarker
annotation class ADsl
@ADsl
class ABuilder() {
... | 0 | Kotlin | 0 | 0 | de817855aa887dcff0caa76a7cb5f98b342edb67 | 1,907 | report-dsl | MIT License |
app/src/main/java/com/stratagile/qlink/ui/adapter/mining/MiningRewardListAdapter.kt | qlcchain | 115,608,966 | false | null | package com.stratagile.qlink.ui.adapter.mining
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.stratagile.qlink.R
import com.stratagile.qlink.entity.CurrencyBean
import com.stratagile.qlink.entity.mining.MiningRewardList
import com.stratagile.qlink.e... | 1 | null | 18 | 46 | 1c8066e4ebbb53c7401751ea3887a6315ccbe5eb | 1,101 | QWallet-Android | MIT License |
app/src/main/java/com/capstone/sahabatsehat/util/ViewModelFactory.kt | Sahabat-Sehat-App | 719,407,700 | false | {"Kotlin": 54370} | package com.capstone.sahabatsehat.util
import android.content.Context
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.capstone.sahabatsehat.preferences.UserPreference
import com.capstone.sahabatsehat.ui.login.LoginViewModel
import com.capstone.sahabatsehat.ui.profile.ProfileV... | 0 | Kotlin | 0 | 0 | 0bc17d9a74ebea278fc59aada20fb8a23a2c7eae | 1,369 | Mobile-Development | Apache License 2.0 |
ktx-radix-development/ktx-radix-development-shared/src/main/java/io/arkitik/ktx/radix/develop/shared/error/Error.kt | arkitik | 305,525,406 | false | null | package io.arkitik.ktx.radix.develop.shared.error
/**
* Created By [*<NAME> *](https://www.linkedin.com/in/iloom/)
* Created At 29, **Thu Oct, 2020**
* Project *ktx-radix* [https://arkitik.io]
*/
data class Error(
override val code: String?,
override val message: String?,
) : ErrorResponse
interface Err... | 1 | Kotlin | 1 | 0 | fc6f66dadecf3ebec5cad051ece06a37828889fb | 381 | ktx-radix | Apache License 2.0 |
app/src/main/java/com/wanandroid/compose/data/bean/ArticleBean.kt | vitaviva | 337,327,738 | false | null | package com.wanandroid.compose.data.bean
/**
* apkLink :
* author : keycoding
* chapterId : 346
* chapterName : JVM
* collect : false
* courseId : 13
* desc :
* envelopePic :
* fresh : false
* id : 2925
* link : https://blog.csdn.net/yfqnihao/article/details/8289363
* niceDate : 2018-05-15
* origin :
* p... | 0 | Kotlin | 0 | 3 | 92205362ee40f86a09abf273ca0877a6f0184707 | 1,257 | wanandroid-compose | MIT License |
plugins/devkit/devkit-kotlin-tests/testData/inspections/tokenSetInParserDefinition/ParserDefinitionWithIllegalTokenSetInitializedInInitBlock.kt | ingokegel | 72,937,917 | false | null | import com.intellij.lang.ParserDefinition
import com.intellij.psi.tree.TokenSet
import com.example.MyLangTokenTypes
class ParserDefinitionWithIllegalTokenSetInitializedInInitBlock : ParserDefinition {
val <warning descr="TokenSet in ParserDefinition references non-platform classes">comments</warning>: TokenSet
in... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 459 | intellij-community | Apache License 2.0 |
geshikt/src/main/kotlin/io/github/sikrinick/geshikt/dsl/component/Container.kt | sikrinick | 602,118,796 | false | {"Kotlin": 146585} | package io.github.sikrinick.geshikt.dsl.component
import io.github.sikrinick.geshikt.dsl.values.HasCellRangeReference
interface Container : Component, HasChildren, HasRows, HasColumns, HasCellRangeReference
interface HasChildren {
val children: List<Component>
}
data class ChildrenList(
override val childre... | 0 | Kotlin | 0 | 1 | 9d60058062df2a2cd7b09cf067beb6fa95ff2711 | 381 | geshikt | Apache License 2.0 |
Mentorias/PraticandoOO/src/main/kotlin/conta/ContaCorrente.kt | P3d50 | 385,913,689 | false | {"Text": 1, "Markdown": 6, "Gradle": 36, "Java Properties": 24, "Shell": 12, "Ignore List": 27, "Batchfile": 12, "Proguard": 12, "Kotlin": 100, "XML": 172, "JSON": 1, "Maven POM": 3, "Java": 1, "Portugol": 8} | package conta
class ContaCorrente(pNumero:Int, pAgencia:String): Conta(pNumero,pAgencia){
override fun taxaDeSaque():Double{
return 0.05
}
} | 0 | Kotlin | 0 | 0 | c01548ce52429782c2185d0872f2405afa6ee4c6 | 157 | Santander-Bootcamp-Kotlin-Mobile-Developer-Digital-Innovation-One-2021 | MIT License |
plugins/kotlin/idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/objectAliasedWithPropertyReference.kt | ingokegel | 72,937,917 | false | null | // "Replace with 'C'" "true"
@Deprecated("", replaceWith = ReplaceWith("C"))
private typealias A = C
object C {
const val x = 1
}
fun f() {
val x = <caret>A.x
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.replaceWith.DeprecatedSymbolUsageFix | 233 | null | 4912 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 264 | intellij-community | Apache License 2.0 |
src/main/kotlin/io/github/intellij/dlanguage/features/documentation/psi/impl/DDocNamedSectionImpl.kt | intellij-dlanguage | 27,922,930 | false | null | package io.github.intellij.dlanguage.features.documentation.psi.impl
import com.intellij.lang.ASTNode
import com.intellij.psi.PsiElement
import io.github.intellij.dlanguage.features.documentation.DDocElementTypes.DDOC_SECTION_CONTENT
import io.github.intellij.dlanguage.features.documentation.DDocElementTypes.DDOC_SECT... | 160 | null | 51 | 328 | 298d1db45d2b35c1715a1b1b2e1c548709101f05 | 601 | intellij-dlanguage | MIT License |
src/main/kotlin/com/refinedmods/refinedstorage/container/transfer/InsertionResult.kt | thinkslynk | 290,596,653 | true | {"Kotlin": 695976, "Shell": 456} | package com.refinedmods.refinedstorage.container.transfer
import net.minecraft.item.ItemStack
internal class InsertionResult {
val type: InsertionResultType
var value: ItemStack? = null
private set
constructor(value: ItemStack?) {
type = InsertionResultType.CONTINUE_IF_POSSIBLE
th... | 1 | Kotlin | 0 | 2 | c92afa51af0e5e08caded00882f91171652a89e3 | 421 | refinedstorage | MIT License |
app/src/main/java/com/ferdyhaspin/githubuserapp/ui/favorite/FavoriteViewModel.kt | ferdyhaspin | 262,837,173 | false | null | package com.ferdyhaspin.githubuserapp.ui.favorite
import androidx.lifecycle.ViewModel
import com.ferdyhaspin.githubuserapp.data.model.User
import com.ferdyhaspin.githubuserapp.data.repository.UserRepository
import com.ferdyhaspin.githubuserapp.util.Coroutines
import javax.inject.Inject
/**
* Created by ferdyhaspin o... | 0 | Kotlin | 0 | 0 | d129fbec737258e0582bb5abe01e54b54916fad0 | 764 | github-user | Apache License 2.0 |
sql/Edu-Sql-Kotlin/src/com/jetbrains/edu/sql/kotlin/SqlKtCourseBuilder.kt | JetBrains | 43,696,115 | false | null | package com.jetbrains.edu.sql.kotlin
import com.jetbrains.edu.kotlin.KtConfigurator
import com.jetbrains.edu.kotlin.KtCourseBuilder
import com.jetbrains.edu.sql.jvm.gradle.SqlGradleCourseBuilderBase
class SqlKtCourseBuilder : SqlGradleCourseBuilderBase() {
override val testTemplateName: String
get() = KtConfigu... | 5 | Kotlin | 47 | 123 | 910b7ffa2fefed85b3a71489a2d8f20e5d2d4c87 | 620 | educational-plugin | Apache License 2.0 |
server/src/main/kotlin/com/thanosfisherman/grpcplayground/server/Database.kt | ThanosFisherman | 528,540,686 | false | {"Kotlin": 66718} | package com.thanosfisherman.grpcplayground.server
import com.thanosfisherman.grpcplayground.protos.Credentials
import com.thanosfisherman.grpcplayground.protos.copy
import java.util.*
class Database {
private val map = mutableMapOf<UUID, MutableList<Credentials.Credential>>()
private var nextId = 1
privat... | 0 | Kotlin | 0 | 9 | 2c6b1177b7ddd096d944faf920f049cdc3af421c | 1,001 | gRPCPlayground | Apache License 2.0 |
src/main/java/com/alcosi/lib/logging/annotations/LogError.kt | alcosi | 698,911,809 | false | {"Kotlin": 405550, "Java": 82765, "HTML": 3451, "JavaScript": 509, "CSS": 203} | /*
* Copyright (c) 2023 Alcosi Group Ltd. and affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 0 | Kotlin | 0 | 0 | 87c39d8bb8f80c0a5e82252e881af2fc6e363b36 | 1,390 | alcosi_commons_library | Apache License 2.0 |
htmltextview/src/main/java/com/android/xamoom/htmltextview/Spans/NumberSpan.kt | xamoom | 99,333,779 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "XML": 17, "Proguard": 2, "Java": 2, "Kotlin": 11, "HTML": 3} | package com.android.xamoom.htmltextview.Spans
import android.graphics.Canvas
import android.graphics.Paint
import android.text.Layout
import android.text.TextPaint
import android.text.style.LeadingMarginSpan
class NumberSpan(leadingMargin: Int, var numberText: String,
textPaint: TextPaint) : LeadingM... | 1 | Kotlin | 0 | 0 | 6cc1143104718e0267f8fcb7040167da2dd52486 | 1,339 | htmltextview | MIT License |
app/src/main/java/dev/alibagherifam/mentha/comoon/FoodImage.kt | alibagherifam | 586,387,395 | false | null | package com.alibagherifam.mentha.comoon
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import coil.compose.AsyncImage
import com.alibagherifam.mentha.R
@Composable
fun FoodImage(modifier: Modif... | 1 | null | 1 | 9 | 35283da73663fbe24a0b15d75a8cfbeb4e203814 | 643 | mentha | Apache License 2.0 |
src/functional-test/kotlin/nsl/sam/functional/entrypointfactory/ChangedDefaultAuthenticationEntryPointFT.kt | neat-solutions-lab | 146,033,971 | false | null | package nsl.sam.functional.entrypointfactory
import nsl.sam.core.annotation.EnableSimpleAuthenticationMethods
import nsl.sam.functional.controller.CustomAuthorizationTestController
import org.assertj.core.api.Assertions
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
imp... | 0 | Kotlin | 0 | 0 | 85b1059a6a37f2163e27bb4bdd8b0596f45e904d | 1,979 | simple-authentication-methods | MIT License |
src/functional-test/kotlin/nsl/sam/functional/entrypointfactory/ChangedDefaultAuthenticationEntryPointFT.kt | neat-solutions-lab | 146,033,971 | false | null | package nsl.sam.functional.entrypointfactory
import nsl.sam.core.annotation.EnableSimpleAuthenticationMethods
import nsl.sam.functional.controller.CustomAuthorizationTestController
import org.assertj.core.api.Assertions
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
imp... | 0 | Kotlin | 0 | 0 | 85b1059a6a37f2163e27bb4bdd8b0596f45e904d | 1,979 | simple-authentication-methods | MIT License |
app/src/main/java/net/engawapg/app/zoomable/MainActivity.kt | usuiat | 582,659,097 | false | null | /*
* Copyright 2022 usuiat
*
* 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 writin... | 3 | null | 6 | 99 | 48863943c8b998f962ed0f1c5ad398b836d84895 | 2,903 | Zoomable | Apache License 2.0 |
app/src/main/java/com/work/workhubpro/ui/screens/projectDetails/projectDetails.kt | sriganeshres | 749,411,530 | false | {"Kotlin": 92776, "Go": 28018, "Makefile": 502} | package com.work.workhubpro.ui.screens.projectDetails
import androidx.compose.foundation.layout.Column
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.navigation.NavController
import com.work.workhubpro.SharedViewModel
@Composable
fun ProjectDetails(name:String,navCon... | 0 | Kotlin | 2 | 0 | 34c26d4d594528a21befcda7c96c6eb23f828334 | 435 | WorkHub-Pro | MIT License |
media-storage/media-storage-adapter-input-serialization/src/main/kotlin/org/orkg/mediastorage/adapter/input/serialization/json/ImageIdSerializer.kt | TIBHannover | 197,416,205 | false | {"Kotlin": 2994730, "Cypher": 216833, "Python": 4881, "Groovy": 1936, "Shell": 1803, "HTML": 240} | package org.orkg.mediastorage.adapter.input.serialization.json
import com.fasterxml.jackson.core.JsonGenerator
import com.fasterxml.jackson.databind.JsonSerializer
import com.fasterxml.jackson.databind.SerializerProvider
import org.orkg.mediastorage.domain.ImageId
class ImageIdSerializer : JsonSerializer<ImageId>() {... | 0 | Kotlin | 1 | 5 | 0186bb4cfe4ef7116ba121327f13d9e4c2e9938a | 503 | orkg-backend | MIT License |
mobile_app1/module346/src/main/java/module346packageKt0/Foo904.kt | uber-common | 294,831,672 | false | null | package module346packageKt0;
annotation class Foo904Fancy
@Foo904Fancy
class Foo904 {
fun foo0(){
module346packageKt0.Foo903().foo5()
}
fun foo1(){
foo0()
}
fun foo2(){
foo1()
}
fun foo3(){
foo2()
}
fun foo4(){
foo3()
}
fun foo5(){
foo4()
}
} | 6 | null | 6 | 72 | 9cc83148c1ca37d0f2b2fcb08c71ac04b3749e5e | 297 | android-build-eval | Apache License 2.0 |
app/src/main/java/com/github/hefengbao/jetpackcomposedemo/ui/feature/scaffold/ScaffoldScreen.kt | hefengbao | 657,967,335 | false | null | package com.github.hefengbao.jetpackcomposedemo.ui.feature.scaffold
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.material.icons.filled.Redo
... | 0 | Kotlin | 0 | 0 | 62d92bfb750c5dc395150868f843e0081de5ff9d | 3,956 | jetpack-compose-demo | MIT License |
src/main/kotlin/org/lanternpowered/server/cause/LanternCauseStack.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 | Java | 10 | 109 | ed947a3c58574f513e940800b0094652766a092b | 12,906 | Lantern | MIT License |
kaspresso/src/main/kotlin/com/kaspersky/kaspresso/systemsafety/SystemDialogSafetyPattern.kt | KasperskyLab | 208,070,025 | false | {"Kotlin": 736940, "Shell": 1880, "Makefile": 387} | package com.kaspersky.kaspresso.systemsafety
import java.util.regex.Pattern
enum class SystemDialogSafetyPattern(val pattern: Pattern) {
PERMISSION_API23(Pattern.compile("\\S*android.packageinstaller\\S*")),
PERMISSION_API30(Pattern.compile("\\S*android.permissioncontroller\\S*")),
OTHER(Pattern.compile("... | 55 | Kotlin | 150 | 1,784 | 9c94128c744d640dcd646b86de711d2a1b9c3aa1 | 348 | Kaspresso | Apache License 2.0 |
src/main/kotlin/com/github/palmerovicdev/architecturegenerator/action/ActionGenerateMvvm.kt | palmerovicdev | 736,756,355 | false | {"Kotlin": 17403} | package com.github.palmerovicdev.architecturegenerator.action
import com.github.palmerovicdev.architecturegenerator.generator.Generator
import com.github.palmerovicdev.architecturegenerator.ui.Hexagonal.FeatureDialog
import com.intellij.openapi.actionSystem.*
import com.intellij.openapi.command.WriteCommandAction
cla... | 8 | Kotlin | 0 | 3 | a88bc2a27163aac4c49fe93c95382cfa68d0c148 | 1,659 | architecture-generator | MIT License |
app/src/main/java/com/devlomi/ayaturabbi/db/quran_ar/QuranDB.kt | 3llomi | 303,486,903 | false | null | package com.devlomi.ayaturabbi.db.quran_ar
import androidx.room.Database
import androidx.room.RoomDatabase
import com.devlomi.ayaturabbi.db.quran_ar.entities.*
@Database(
entities = [
ArabicTextEntity::class, ShareTextEntity::class, VersesContentEntity::class
], version = 1, exportSchema = false
)
ab... | 0 | Kotlin | 5 | 7 | e1124952e0de13177415334849fa94ddf754f7b2 | 471 | AyatuRabbi_Quran | Apache License 2.0 |
mvikotlin/src/commonMain/kotlin/com/arkivanov/mvikotlin/core/binder/BinderLifecycleMode.kt | badoo | 135,858,329 | false | null | package com.arkivanov.mvikotlin.core.binder
/**
* Defines how a [Binder] is attached to a [Lifecycle][com.arkivanov.mvikotlin.core.lifecycle.Lifecycle]
*/
enum class BinderLifecycleMode {
CREATE_DESTROY, START_STOP, RESUME_PAUSE
}
| 10 | null | 70 | 825 | 39de85b944a52cd1878478e2c5c4921f8896920d | 239 | MVIKotlin | Apache License 2.0 |
feature-account-impl/src/main/java/jp/co/soramitsu/account/impl/presentation/importing/source/model/ImportSourceModel.kt | soramitsu | 278,060,397 | false | {"Kotlin": 5738459, "Java": 18796} | package jp.co.soramitsu.account.impl.presentation.importing.source.model
import android.net.Uri
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
import androidx.lifecycle.LiveData
import androidx.lifecycle.MediatorLiveData
import androidx.lifecycle.MutableLiveData
import jp.co.soramitsu.acco... | 15 | Kotlin | 30 | 89 | 1de6dfa7c77d4960eca2d215df2bdcf71a2ef5f2 | 8,345 | fearless-Android | Apache License 2.0 |
src/main/kotlin/com/chaosprojectbr/usermanagerservice/domain/repositories/UserRepository.kt | chaos-project-br | 667,160,108 | false | null | package com.chaosprojectbr.usermanagerservice.domain.repositories
import com.chaosprojectbr.usermanagerservice.domain.entities.User
import org.springframework.data.mongodb.repository.MongoRepository
import org.springframework.stereotype.Repository
import java.util.*
@Repository
interface UserRepository : MongoReposit... | 0 | Kotlin | 0 | 1 | a7afaed2cde06c5fcac3575a0079481c011d79fd | 390 | user-manager-service | MIT License |
src/Day08.kt | robotfooder | 573,164,789 | false | {"Kotlin": 25811} | data class Grid(val cells: List<Cell>) {
fun getLeftNeighbors(cell: Cell): List<Cell> {
return cells.filter { it.row == cell.row && it.col < cell.col }
}
fun getRightNeighbors(cell: Cell): List<Cell> {
return cells.filter { it.row == cell.row && it.col > cell.col }
}
fun getTopNei... | 0 | Kotlin | 0 | 0 | 9876a52ef9288353d64685f294a899a58b2de9b5 | 2,809 | aoc2022 | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsmanageadjudicationsapi/gateways/LegacySyncService.kt | ministryofjustice | 416,301,250 | false | null | package uk.gov.justice.digital.hmpps.hmppsmanageadjudicationsapi.gateways
import org.springframework.stereotype.Service
import uk.gov.justice.digital.hmpps.hmppsmanageadjudicationsapi.config.FeatureFlagsService
@Service
class LegacySyncService(
private val legacyNomisGateway: LegacyNomisGateway,
private val featu... | 1 | Kotlin | 0 | 3 | d0495310b909bde1bd21f78edcac586fa2ff87b4 | 3,970 | hmpps-manage-adjudications-api | MIT License |
src/main/kotlin/com/github/rafaelldi/tyeplugin/runtimes/Extensions.kt | rafaelldi | 342,595,811 | false | null | package com.github.rafaelldi.tyeplugin.runtimes
import com.github.rafaelldi.tyeplugin.model.*
import com.github.rafaelldi.tyeplugin.services.TyeApplicationManager
fun TyeApplication.toRuntime(applicationManager: TyeApplicationManager): TyeApplicationRuntime =
TyeApplicationRuntime(this, applicationManager)
fun T... | 4 | Kotlin | 1 | 5 | 6ffc7e74345a8ef926bd6c63d46e4a7cb639f5a1 | 880 | tye-plugin | MIT License |
konan/utils/src/org/jetbrains/kotlin/konan/util/Util.kt | cr8tpro | 189,964,139 | true | {"Kotlin": 37481242, "Java": 7489008, "JavaScript": 157778, "HTML": 74773, "Lex": 23159, "TypeScript": 21255, "IDL": 10895, "ANTLR": 9803, "CSS": 8084, "Shell": 7727, "Groovy": 6940, "Batchfile": 5362, "Swift": 2253, "Ruby": 668, "Objective-C": 293, "Scala": 80} | /*
* Copyright 2010-2019 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.util
import kotlin.system.measureTimeMillis
import org.jetbrains.kotlin.konan.fi... | 0 | Kotlin | 1 | 2 | dca23f871cc22acee9258c3d58b40d71e3693858 | 2,430 | kotlin | Apache License 2.0 |
app/src/main/java/com/migu/android/linkyou/event/ChildTouchListener.kt | migu316 | 774,883,955 | false | {"Kotlin": 210274} | package com.migu.android.linkyou.event
import android.view.MotionEvent
import android.view.View
import android.view.View.OnClickListener
import android.view.View.OnTouchListener
import android.view.ViewConfiguration
import kotlin.math.abs
class ChildTouchListener(private val view: View) : OnTouchListener {
privat... | 0 | Kotlin | 0 | 0 | 73a20f02fd91d0142a6a42d46a02d8ada77c138d | 1,091 | LinkYou | Apache License 2.0 |
examples/subusers/EnableOrDisableUser.kt | desiderantes | 148,538,242 | false | null | import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databind.ObjectMapper
import com.sendgrid.*
import java.io.IOException
import java.util.HashMap
//////////////////////////////////////////////////////////////////
// Enable/disable a subuser
// PATCH /subusers/{subuser_name}
object EnableO... | 0 | Kotlin | 0 | 0 | 9f188c75d3b3cfa4dc04ea6e5ac8eaf0430af4dd | 953 | sendgrid-kotlin | MIT License |
XML/Unscramble/app/src/main/java/com/example/android/unscramble/ui/game/ListofWords.kt | pherasymchuk | 723,622,473 | false | {"Kotlin": 1058862} | /*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 0 | Kotlin | 0 | 1 | c832502ce12740626a8bd56d7350ffabd64cd30f | 7,591 | GoogleCodelabsApps | MIT License |
app/src/main/java/com/github/rezita/homelearning/ui/theme/Color.kt | rezita | 722,617,292 | false | {"Kotlin": 277118, "JavaScript": 48136} | package com.github.rezita.homelearning.ui.theme
import androidx.compose.ui.graphics.Color
val md_theme_light_primary = Color(0xFF3C52CB)
val md_theme_light_onPrimary = Color(0xFFFFFFFF)
val md_theme_light_primaryContainer = Color(0xFFDEE0FF)
val md_theme_light_onPrimaryContainer = Color(0xFF000F5C)
val md_theme_light... | 0 | Kotlin | 0 | 0 | e8539948299064137d80ed6ec3ba71523e44fddc | 3,445 | HomeLearning | Apache License 2.0 |
safeToRunBuilder/src/main/kotlin/com/safetorun/builder/SafeToRunBuilderException.kt | Safetorun | 274,838,056 | false | {"Kotlin": 315254, "Shell": 228} | package com.safetorun.builder
internal class SafeToRunBuilderException(message: String, exception: java.lang.Exception? = null) :
Throwable(message, exception)
| 22 | Kotlin | 1 | 37 | bc56dd28a1fecf945a54cd1e74119b696dc2ed8e | 165 | safe_to_run | Apache License 2.0 |
app/src/main/java/net/cxifri/crypto/AESTwofishSerpentEngine.kt | quarck | 149,788,209 | false | null | /*
* Copyright (C) 2018 <NAME> (<EMAIL>)
*
* 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 ... | 1 | null | 1 | 1 | 974be361ee2c3443edf2eed7b79ea7c7a47b5709 | 4,461 | cxifri | Apache License 2.0 |
ui/src/main/kotlin/com/aptopayments/sdk/core/platform/BaseDialogFragment.kt | AptoPayments | 197,800,853 | false | null | package com.aptopayments.sdk.core.platform
import android.app.Dialog
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.view.Gravity
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.app.... | 1 | Kotlin | 0 | 0 | 257af71aa439b3e90c150ae258c78eaa1a6ae817 | 2,958 | apto-ui-sdk-android | MIT License |
ui/src/main/kotlin/com/aptopayments/sdk/core/platform/BaseDialogFragment.kt | AptoPayments | 197,800,853 | false | null | package com.aptopayments.sdk.core.platform
import android.app.Dialog
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.view.Gravity
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.app.... | 1 | Kotlin | 0 | 0 | 257af71aa439b3e90c150ae258c78eaa1a6ae817 | 2,958 | apto-ui-sdk-android | MIT License |
example/android/app/src/main/java/br/com/zup/beaglehackday/beagle/widgets/ImageDetail.kt | analuizabonetti | 294,534,707 | true | {"Swift": 53338, "Kotlin": 48278, "Makefile": 319, "Ruby": 243} | /*
* Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 0 | null | 0 | 0 | 40f5b645e2b58ee798e97df9d20c4b2e7763fe32 | 1,889 | beagle-adoption-demo | Apache License 2.0 |
src/main/kotlin/tf_api/keras/activations/Activation.kt | ileasile | 259,931,183 | false | null | package tf_api.keras.activations
import org.tensorflow.Operand
import org.tensorflow.op.Ops
interface Activation<T : Number> {
fun apply(tf: Ops, features: Operand<T>): Operand<T>
} | 1 | null | 1 | 1 | 6c7220abface65fdaae0579cdb44b470aff39838 | 187 | Kotof | Apache License 2.0 |
app/src/main/java/org/pkbu/Android/ElectronicInvestigationsCRM/CaseFileEdit.kt | ggroce | 276,509,679 | false | null | package org.pkbu.Android.ElectronicInvestigationsCRM
import android.app.DatePickerDialog
import android.content.Context
import android.content.DialogInterface
import android.graphics.Bitmap
import android.graphics.Color
import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.ColorDrawable
impo... | 3 | Kotlin | 0 | 1 | 96048ce0ba33c1b074299ee991bc4b559eef71cb | 10,883 | pkbu-electronic-investigations-crm-android | MIT License |
desktop/src/main/kotlin/com/patriker/syncnote/ui/components/TopBar.kt | esp-er | 536,074,176 | false | {"Kotlin": 343988, "Shell": 1457} | package com.patriker.syncnote.ui.components
import androidx.compose.foundation.*
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.*
import androidx.compose.mat... | 0 | Kotlin | 0 | 1 | 6f5cb41d1008ca4046171d492edd57b5549db74c | 12,534 | syncnote | MIT License |
server/src/main/kotlin/net/eiradir/server/pathfinding/INodeGraph.kt | Eiradir | 635,460,745 | false | null | package net.eiradir.server.pathfinding
import com.badlogic.gdx.math.Vector3
interface INodeGraph<TKey, TNode> : IConnectionGraph<TKey, TNode> {
fun getNodeKey(node: TNode): TKey
fun getNodeAt(position: Vector3, searchMode: NodeSearchMode = NodeSearchMode.Downwards): TNode?
fun isValidEndNode(node: TNode):... | 12 | Kotlin | 0 | 0 | fd732d283c6c72bbd0d0127bb86e8daf7e5bf3cd | 330 | eiradir-server | MIT License |
imageeditor/src/main/java/com/github/vfeng/image/model/ECImage.kt | v-jibfen | 381,221,081 | false | null | package com.github.vfeng.image.model
import android.graphics.*
import android.net.Uri
import android.text.TextUtils
import android.util.Log
import com.github.vfeng.image.ECImageMode
import com.github.vfeng.image.utils.ImageUtils
import com.github.vfeng.image.utils.LogUtils
import com.github.vfeng.image.view.clip.IMGCl... | 1 | Kotlin | 1 | 1 | ec818456236384baa9b51dc861d10be8d650b480 | 14,120 | FImageEditor | Apache License 2.0 |
vertx-consul-service/src/main/kotlin/io/vertx/kotlin/ext/consul/ServiceList.kt | tsegismont | 156,562,152 | true | {"XML": 2, "Maven POM": 4, "Shell": 1, "Ignore List": 1, "EditorConfig": 1, "AsciiDoc": 5, "Text": 1, "YAML": 1, "Java": 18, "JSON": 3, "Kotlin": 45} | package io.vertx.kotlin.ext.consul
import io.vertx.ext.consul.ServiceList
import io.vertx.ext.consul.Service
fun ServiceList(
index: Long? = null,
list: Iterable<io.vertx.ext.consul.Service>? = null): ServiceList = io.vertx.ext.consul.ServiceList().apply {
if (index != null) {
this.setIndex(index)
}
if... | 0 | Java | 0 | 0 | ab2732d6e3eee1c1b28f711bca35e640eaac5cba | 377 | vertx-client-services | Apache License 2.0 |
session/presentation/src/main/kotlin/com/delbel/bullscows/session/presentation/best/adapter/MarginItemDecoration.kt | matiasdelbel | 252,494,245 | false | null | package com.delbel.bullscows.session.presentation.best.adapter
import android.graphics.Rect
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.RecyclerView.*
import com.delbel.bullscows.session.presentation.R
internal class MarginItemDecoration : ItemDecorati... | 4 | Kotlin | 0 | 0 | 3ecbbfc6d01793709434334a8a71e81cbc799023 | 651 | bulls-and-cows | Apache License 2.0 |
cupertino-icons-extended/src/commonMain/kotlin/io/github/alexzhirkevich/cupertino/icons/filled/SpeakerWave2.kt | alexzhirkevich | 636,411,288 | false | null | /*
* Copyright (c) 2023-2024. Compose Cupertino project and open source contributors.
*
* 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... | 18 | null | 31 | 848 | 54bfbb58f6b36248c5947de343567903298ee308 | 4,986 | compose-cupertino | Apache License 2.0 |
codebase/android/app/src/main/java/com/makeappssimple/abhimanyu/stackoverflowanswers/android/bugreport/focus/AutoFocus.kt | Abhimanyu14 | 413,893,476 | false | {"Kotlin": 511664} | package com.makeappssimple.abhimanyu.stackoverflowanswers.android.bugreport.focus
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material3.TextField
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.remember
import... | 0 | Kotlin | 0 | 0 | eba5bd62d8f4f19477e9bea0a347bde0a117d947 | 1,152 | stackoverflow-answers | Apache License 2.0 |
app/src/main/java/info/motoaccident/controllers/LocationController.kt | rjhdby | 59,946,342 | false | null | package info.motoaccident.controllers
import android.Manifest
import android.app.Activity
import android.content.Context
import android.content.pm.PackageManager
import android.support.design.widget.Snackbar
import android.support.v4.app.ActivityCompat
import android.util.Log
import com.google.android.gms.location.Loc... | 0 | Kotlin | 1 | 2 | 71b31e8d4991876f7c59ea8a6ea47478621a0cf6 | 3,660 | MotoAccident.Info | MIT License |
app/src/main/java/info/motoaccident/controllers/LocationController.kt | rjhdby | 59,946,342 | false | null | package info.motoaccident.controllers
import android.Manifest
import android.app.Activity
import android.content.Context
import android.content.pm.PackageManager
import android.support.design.widget.Snackbar
import android.support.v4.app.ActivityCompat
import android.util.Log
import com.google.android.gms.location.Loc... | 0 | Kotlin | 1 | 2 | 71b31e8d4991876f7c59ea8a6ea47478621a0cf6 | 3,660 | MotoAccident.Info | MIT License |
packet/src/main/java/dev/keiji/openpgp/packet/PacketTrust.kt | keiji | 591,966,950 | false | {"Kotlin": 555464} | package dev.keiji.openpgp.packet
import dev.keiji.openpgp.toHex
import java.io.InputStream
import java.io.OutputStream
/**
* Trust Packet (Tag 12).
*
* Trust packet is used only within keyrings and is not normally exported.
* Trust packets SHOULD NOT be emitted to output streams that are transferred to other user... | 3 | Kotlin | 0 | 0 | 92cad92ef3afea6b5f19365d671e141897e34305 | 1,502 | openpgp | Apache License 2.0 |
reactiveandroid-ui/src/main/kotlin/com/github/kittinunf/reactiveandroid/reactive/view/ImageViewRx.kt | kittinunf | 50,813,818 | false | null | package com.github.kittinunf.reactiveandroid.reactive.view
import android.graphics.Bitmap
import android.graphics.drawable.Drawable
import android.net.Uri
import android.widget.ImageView
import com.github.kittinunf.reactiveandroid.FieldDelegate
import com.github.kittinunf.reactiveandroid.reactive.AndroidBindingConsume... | 5 | null | 12 | 79 | 117cb3e9738df17bb4c8b9f73d2a21bc5b97f6f5 | 1,268 | ReactiveAndroid | MIT License |
features/search/search-presentation/src/main/java/com/anmolsahi/presentation/ui/searchscreen/SearchViewModel.kt | sahianmol1 | 680,504,355 | false | {"Kotlin": 348458, "Shell": 4486} | package com.anmolsahi.presentation.ui.searchscreen
import android.util.Log
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.anmolsahi.common.di.IoDispatcher
import com.anmolsahi.commonui.mappers.asDomain
import com.anmolsahi.commonui.mappers.asUiModel
import com.anmolsahi.commonu... | 6 | Kotlin | 1 | 1 | 66da5b4273299297a0944f89433aa2db8403d9e3 | 5,869 | Bronco-for-Reddit | MIT License |
nebulosa-time/src/main/kotlin/nebulosa/time/IERSA.kt | tiagohm | 568,578,345 | false | {"Kotlin": 2712371, "TypeScript": 513759, "HTML": 249483, "JavaScript": 120539, "SCSS": 11332, "Python": 2817, "Makefile": 445} | package nebulosa.time
import java.io.InputStream
/**
* @see <a href="https://maia.usno.navy.mil/ser7/finals2000A.all">Table</a>
*/
class IERSA : IERS() {
/**
* @see <a href="https://maia.usno.navy.mil/ser7/readme.finals2000A">Reference</a>
*/
enum class Column(
override val byteStart: Int... | 29 | Kotlin | 2 | 4 | 723ede857d8fbf608562e93030719ae26dd0aad1 | 3,232 | nebulosa | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsstrengthsbasedneedsassessmentsapi/oasys/datamapping/v1/FinancialManagementTest.kt | ministryofjustice | 623,389,131 | false | {"Kotlin": 394166, "Makefile": 4171, "Dockerfile": 1146, "JavaScript": 323} | package uk.gov.justice.digital.hmpps.hmppsstrengthsbasedneedsassessmentsapi.oasys.datamapping.v1
import uk.gov.justice.digital.hmpps.hmppsstrengthsbasedneedsassessmentsapi.oasys.datamapping.Field
import uk.gov.justice.digital.hmpps.hmppsstrengthsbasedneedsassessmentsapi.oasys.datamapping.Given
import uk.gov.justice.di... | 1 | Kotlin | 1 | 0 | 2a3dd3f713bd4a465587aadd1dec0e6d8bb13bd7 | 4,480 | hmpps-strengths-based-needs-assessments-api | MIT License |
core/src/main/java/com/github/ainul/core/data/remote/service/ListenApiService.kt | ai-null | 372,631,269 | false | null | package com.github.ainul.core.data.remote.service
import com.github.ainul.core.data.remote.model.reponse.SearchResponse
import com.github.ainul.core.utils.Endpoint
import retrofit2.http.GET
import retrofit2.http.Query
interface ListenApiService {
@GET(Endpoint.Search.search)
fun search(@Query(value = "q") key... | 0 | Kotlin | 0 | 0 | 031dc7e52a8964658b6d866f904f911a6358ae23 | 351 | suara-fm | MIT License |
src/plugin-api/main/uk/co/reecedunn/intellij/plugin/processor/log/LogFileContentType.kt | rhdunn | 62,201,764 | false | null | /*
* Copyright (C) 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 47 | Kotlin | 4 | 25 | d363dad28df1eb17c815a821c87b4f15d2b30343 | 5,858 | xquery-intellij-plugin | Apache License 2.0 |
egklib/src/commonTest/kotlin/electionguard/keyceremony/RunKeyCeremonyTest.kt | danwallach | 425,905,229 | false | null | package electionguard.keyceremony
import electionguard.core.productionGroup
import electionguard.verifier.runVerifier
import kotlin.test.Test
class RunKeyCeremonyTest {
@Test
fun testKeyCeremonyJson() {
main(
arrayOf(
"-in",
"src/commonTest/data/startConfig... | 35 | Kotlin | 2 | 5 | 11055fdebb54b7e490f9befc567623b07626f151 | 1,120 | electionguard-kotlin-multiplatform | MIT License |
component_bus_annotation/src/main/java/cn/moltres/component_bus/annotation/ComponentAnnotation.kt | WenjieGithub | 693,521,078 | false | {"Kotlin": 29559} | package cn.moltres.component_bus.annotation
@Retention(AnnotationRetention.BINARY)
@Target(AnnotationTarget.CLASS)
annotation class Component(val componentName: String)
@Retention(AnnotationRetention.BINARY)
@Target(AnnotationTarget.FUNCTION)
annotation class Action(val actionName: String, val interceptorName: Array<... | 0 | Kotlin | 0 | 9 | 1226d15788cb8b0e240eb93c0b0c82e5a43de903 | 334 | ComponentBus | Apache License 2.0 |
app/src/main/java/com/soethan/mmcurrencyexchange/util/DateUtil.kt | soethan98 | 362,074,808 | false | null | package com.soethan.mmcurrencyexchange.util
import timber.log.Timber
import java.text.SimpleDateFormat
import java.util.*
object DateFormatter {
private val formatter = SimpleDateFormat("dd/MM/yyyy hh:mm a", Locale.US)
fun format(time: Long): String {
val cal = Calendar.getInstance()
cal.tim... | 0 | Kotlin | 0 | 0 | cb933349567ea0de8f69f964d086f5721fa0c7e8 | 406 | MMCurrencyExchange | Apache License 2.0 |
app/src/main/java/me/spica/spicaweather2/view/view_group/RefreshViewLayout.kt | yangSpica27 | 720,276,419 | false | {"Kotlin": 424276, "Java": 8338} | package me.spica.spicaweather2.view.view_group
import android.content.Context
import android.graphics.Color
import android.view.Gravity
import android.view.ViewGroup
import androidx.appcompat.widget.AppCompatImageView
import androidx.appcompat.widget.AppCompatTextView
import androidx.core.view.marginBottom
import andr... | 0 | Kotlin | 1 | 9 | c820893d93f955cfb5f7228f22af9216c6caa9de | 2,350 | SpicaWeather2 | MIT License |
app/src/main/java/com/lorenzovainigli/foodexpirationdates/view/composable/screen/Screen.kt | lorenzovngl | 608,766,656 | false | {"Kotlin": 207106} | package com.lorenzovainigli.foodexpirationdates.view.composable.screen
sealed class Screen(val route: String) {
data object MainScreen : Screen("main_screen")
data object InsertScreen : Screen("insert_screen")
data object AboutScreen : Screen("about_screen")
data object SettingsScreen : Screen("setting... | 17 | Kotlin | 21 | 92 | 730f5668f94613a128ebf492435111bda81cd525 | 332 | FoodExpirationDates | MIT License |
src/main/kotlin/com/mdrobnak/lalrpop/psi/LpElementType.kt | AzureMarker | 288,502,993 | false | null | package com.mdrobnak.lalrpop.psi
import com.intellij.psi.tree.IElementType
import com.mdrobnak.lalrpop.LpLanguage
class LpElementType(debugName: String) : IElementType(debugName, LpLanguage) | 12 | Kotlin | 1 | 9 | a594121ffade3e8d60e5b9ba0967f7541999b57e | 192 | intellij-lalrpop | MIT License |
src/main/kotlin/no/nav/helse/prosessering/v1/overforeDager/PreprossesertOverforeDagerV1Metrics.kt | sturleh | 309,326,337 | true | {"Kotlin": 122234, "Handlebars": 8370, "HTML": 1413, "Shell": 380, "Dockerfile": 158} | package no.nav.helse.prosessering.v1.overforeDager
import io.prometheus.client.Counter
import io.prometheus.client.Histogram
private val antallDagerHistogram = Histogram.build()
.buckets(1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0,10.0,11.0,12.0,13.0,14.0,15.0)
.name("antall_dager_histogram")
.help("Antall dager ... | 0 | null | 0 | 0 | 39540b6ccd2698f4c1ba28cb3ad74795302371fa | 2,346 | omsorgsdageroverforingsoknad-prosessering | MIT License |
api/src/main/kotlin/com/seedcompany/cordtables/components/tables/admin/roles/Util.kt | CordField | 409,237,733 | false | null | package com.seedcompany.cordtables.components.tables.admin.roles
import org.springframework.stereotype.Component
import kotlin.collections.List
@Component("RoleUtil")
class RoleUtil {
val nonMutableColumns:List<String> = listOf("id", "modified_at", "created_at", "created_by", "modified_by")
} | 93 | Kotlin | 1 | 3 | 7e5588a8b3274917f9a5df2ffa12d27db23fb909 | 300 | cordtables | MIT License |
domain/src/main/java/io/photopixels/domain/usecases/RemoveGoogleAuthTokenUseCase.kt | scalefocus | 800,965,364 | false | {"Kotlin": 318358, "Shell": 1723} | package io.photopixels.domain.usecases
import io.photopixels.domain.repository.AuthRepository
import javax.inject.Inject
class RemoveGoogleAuthTokenUseCase @Inject constructor(private val authRepository: AuthRepository) {
suspend fun invoke() {
authRepository.clearGoogleAuthToken()
}
}
| 1 | Kotlin | 0 | 1 | 9220a0c95d022cf12c1d3e4b355c89f3717324ea | 306 | photopixels-android | Apache License 2.0 |
engine/src/test/java/dev/martianzoo/tfm/engine/cards/PolyphemosTest.kt | MartianZoo | 565,478,564 | false | null | package dev.martianzoo.tfm.engine.cards
import dev.martianzoo.data.Player.Companion.PLAYER1
import dev.martianzoo.engine.Engine
import dev.martianzoo.tfm.canon.Canon
import dev.martianzoo.tfm.data.GameSetup
import dev.martianzoo.tfm.engine.TestHelpers.assertCounts
import dev.martianzoo.tfm.engine.TfmGameplay.Companion... | 35 | Kotlin | 2 | 8 | dd2908659aa7c7a18a72e8ca862111952fca0433 | 843 | solarnet | Apache License 2.0 |
app/src/main/java/com/mynoteapp/common/Constants.kt | Rahul251202 | 837,733,326 | false | {"Kotlin": 35747} | package com.mynoteapp.common
object Constants {
const val NOTE_DB_NAME = "note_database"
const val DS_NAME = "settings"
const val PRIORITY_PREF_NAME = "priority"
} | 0 | Kotlin | 0 | 0 | cf9acbc85b868741c0cbddece12281c0f671432d | 176 | MyNoteApp | MIT License |
modules/lib/app_database/src/main/kotlin/kekmech/ru/lib_app_database/migrations/BaseMigration.kt | tonykolomeytsev | 203,239,594 | false | null | package kekmech.ru.lib_app_database.migrations
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
import kekmech.ru.lib_app_database.api.PartialMigration
/**
* Aggregator of [PartialMigration]s from domain modules
*
* @see PartialMigration
*/
internal open class BaseMigration... | 20 | null | 4 | 41 | 15c3c17e33d0ffffc0e269ad0cd6fe47b0bc971a | 698 | mpeiapp | MIT License |
apina-core/src/main/kotlin/fi/evident/apina/java/reader/TypeBuildingSignatureVisitor.kt | EvidentSolutions | 36,000,351 | false | null | package fi.evident.apina.java.reader
import fi.evident.apina.java.model.type.JavaType
import org.objectweb.asm.Opcodes
import org.objectweb.asm.signature.SignatureVisitor
import java.util.*
import java.util.function.Supplier
/**
* [SignatureVisitor] implementation that visits the type hierarchy to build generic type... | 9 | null | 9 | 27 | a2ab2f05bb02a4c6a562b46d2b5c64725bd7d41c | 2,626 | apina | MIT License |
app/src/main/java/com/almazov/diacompanion/meal/FoodInMealListAdapter.kt | AndreyCKDS | 538,835,857 | false | null | package com.almazov.diacompanion.meal
import android.annotation.SuppressLint
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.RecyclerView
import com.almazov.diacompani... | 0 | null | 1 | 2 | 8476de2a720273fdab303475231a27b73cc4d154 | 3,430 | DIACompanion | Creative Commons Zero v1.0 Universal |
app/src/main/java/uk/co/dekoorb/android/cryptowatch/ui/detail/CurrencyPagerAdapter.kt | edbrook | 118,527,767 | false | null | package uk.co.dekoorb.android.cryptowatch.ui.detail
import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentStatePagerAdapter
/**
* Created by ed on 29/01/18.
*/
class CurrencyPagerAdapter(fm: FragmentManager): FragmentStatePagerAdapter(fm) {
p... | 0 | Kotlin | 0 | 0 | d83bba7ec1db3f87dfd29f10b4907a55e78e28c5 | 830 | android-CryptoWatch | MIT License |
src/main/kotlin/com/github/malloxde/methodmarker/settings/AppSettingsState.kt | mallox-de | 529,870,570 | false | {"Kotlin": 13283} | package com.github.malloxde.methodmarker.settings
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.components.PersistentStateComponent
import com.intellij.openapi.components.State
import com.intellij.openapi.components.Storage
import com.intellij.util.xmlb.XmlSerializerUtil
/**
... | 0 | Kotlin | 0 | 0 | b0c643b9a7eb75c904e56de2ebab4290918a0301 | 1,131 | method-marker | Apache License 2.0 |
app/src/main/java/com/project/acehotel/core/domain/hotel/model/HotelRecap.kt | AceHotelProject | 732,506,429 | false | {"Kotlin": 760501} | package com.project.acehotel.core.domain.hotel.model
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class HotelRecap(
val revenue: Int,
val branchCount: Int,
val checkinCount: Int,
val totalBooking: Int,
) : Parcelable
| 0 | Kotlin | 0 | 0 | 785f99aa5c1d5be4e2d3505ee877fee5a33ba823 | 270 | AceHotel-App | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/CoffeePot.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,044 | icons | MIT License |
platform/lang-impl/src/com/intellij/find/actions/ActivateFindToolWindowAction.kt | mimi89999 | 305,569,849 | false | null | // 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.find.actions
import com.intellij.icons.AllIcons
import com.intellij.ide.actions.ToolWindowEmptyStateAction
import com.intellij.lang.LangBundle
import com.int... | 1 | null | 1 | 1 | 469bd22c59438dc1ee3a7cf734fcb343612b17c5 | 1,249 | intellij-community | Apache License 2.0 |
sketch/src/androidTest/java/com/github/panpf/sketch/test/decode/internal/DefaultBitmapDecoderTest.kt | fltwlulu | 188,455,050 | false | null | package com.github.panpf.sketch.test.decode.internal
import android.graphics.Bitmap
import android.graphics.Bitmap.Config.ARGB_8888
import android.graphics.Bitmap.Config.RGB_565
import android.graphics.ColorSpace
import android.graphics.ColorSpace.Named.ADOBE_RGB
import android.graphics.ColorSpace.Named.SRGB
import an... | 1 | null | 1 | 1 | c9ff98d80c36d7c4ba5c28bbf358dc8ee53278b1 | 50,096 | sketch | MIT License |
src/commonMain/kotlin/io/rebble/libpebblecommon/services/MusicService.kt | pebble-dev | 264,919,199 | false | {"Kotlin": 215724} | package io.rebble.libpebblecommon.services
import io.rebble.libpebblecommon.ProtocolHandler
import io.rebble.libpebblecommon.packets.MusicControl
import io.rebble.libpebblecommon.protocolhelpers.PebblePacket
import io.rebble.libpebblecommon.protocolhelpers.ProtocolEndpoint
import kotlinx.coroutines.channels.Channel
c... | 1 | Kotlin | 4 | 3 | 4f2c5866a084f5ae829498f9ce5ecf7f9ff2b562 | 894 | libpebblecommon | Apache License 2.0 |
app/src/main/java/coolpharaoh/tee/speicher/tea/timer/views/new_tea/suggestions/BlackTeaSuggestions.kt | pase13voxi | 189,609,464 | false | null | package coolpharaoh.tee.speicher.tea.timer.views.new_tea.suggestions
import android.app.Application
import coolpharaoh.tee.speicher.tea.timer.R
class BlackTeaSuggestions(private val application: Application) : Suggestions {
override val amountTsSuggestions: IntArray
get() = application.resources.getIntAr... | 0 | Kotlin | 0 | 0 | ef4cfd9c13fdf1efa3f10b2f9e8df2f2ba00497e | 1,154 | TeaMemory | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.