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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
applications/users/src/main/kotlin/com/goshop/usersapp/Security.kt | vitorsalgado | 268,378,096 | false | null | package com.goshop.usersapp
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.security.config.web.server.ServerHttpSecurity
import org.springframework.security.web.server.SecurityWebFilterChain
@Configuration
class Security {
@B... | 0 | Kotlin | 0 | 0 | 7d58206e692836eb4cd956b555f02753f3cdf85e | 493 | e-commerce-microservices-experiment | MIT License |
app/src/androidTest/java/com/kylecorry/trail_sense/tools/metaldetector/ToolMetalDetectorTest.kt | kylecorry31 | 215,154,276 | false | {"Kotlin": 2866681, "Python": 25183, "HTML": 18863, "CSS": 5120, "JavaScript": 3814, "Shell": 2762, "Batchfile": 267} | package com.kylecorry.trail_sense.tools.metaldetector
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.test.core.app.ActivityScenario
import com.kylecorry.trail_sense.R
import com.kylecorry.trail_sense.main.MainActivity
import com.kylecorry.trail_sense.test_utils.TestUtils
import com.... | 494 | Kotlin | 74 | 1,202 | 05344e0950bcabce4b2da514f6785cfcab3ebf55 | 2,351 | Trail-Sense | MIT License |
Carrot/app/src/main/java/com/example/carrot/View/AddItemActivity.kt | kiboook | 399,769,315 | true | {"Kotlin": 37286} | package com.example.carrot.View
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
imp... | 0 | Kotlin | 0 | 0 | 927c12432890cdbb6a82653fbf5b93cc8e17c980 | 12,245 | Carrot | MIT License |
modules/utilities/src/main/kotlin/arc/utilities/context/GlobalContext.kt | jimlyas | 530,131,916 | false | null | package arc.utilities.context
import android.annotation.SuppressLint
import android.content.Context
import arc.utilities.context.GlobalContext.context
/**
*
* Static object as Singleton to contain current application's [Context]
* @author jimlyas
* @since 0.1.0
* @property context [Context] of current applicatio... | 1 | Kotlin | 0 | 2 | dbe93edffddb44853a5120d757996486d542f8ab | 1,209 | arc | MIT License |
src/main/kotlin/kossh/util/StreamUtils.kt | jkelly467 | 142,593,902 | false | {"Kotlin": 102111} | package kossh.util
import java.io.OutputStream
class Producer(val output: OutputStream) {
private fun sendChar(char: Int) {
output.write(char)
output.flush()
}
private fun sendString(cmd: String) {
output.write(cmd.toByteArray())
nl()
output.flush()
}
fun se... | 4 | Kotlin | 12 | 29 | fc4ab7654cd980672535dee028c623bdf4bd767a | 693 | kossh | MIT License |
blog-core/src/main/java/i/blog/tasks/BlogInitTask.kt | StaticBlog4K | 385,427,812 | false | {"Gradle Kotlin DSL": 5, "Java Properties": 1, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Markdown": 4, "Kotlin": 14, "Java": 3, "INI": 1} | package i.blog.tasks
class BlogInitTask
| 1 | null | 1 | 1 | ddfd960bd681d709a880278a16f3e08583986902 | 41 | BlogProject | MIT License |
app/src/main/java/com/malibin/morse/presentation/search/SearchViewModel.kt | cha7713 | 463,427,946 | true | {"Kotlin": 121634, "PureBasic": 2910} | package com.malibin.morse.presentation.search
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.malibin.morse.data.entity.Room
import com.malibin.morse.data.... | 0 | null | 0 | 0 | 8103c56b8079224aba8eedc7a4a4af40a1b92b4c | 1,009 | morse_android_stove_camp | Apache License 2.0 |
shared/src/iosMain/kotlin/io/github/alaksion/unsplashwrapper/platform/localstorage/IosLocalStorage.kt | Alaksion | 738,783,181 | false | {"Kotlin": 26462, "Ruby": 2156} | package io.github.alaksion.unsplashwrapper.platform.localstorage
import platform.Foundation.NSUserDefaults
import platform.Foundation.setValue
actual class LocalStorageImpl : LocalStorage {
private val userDefaults by lazy {
NSUserDefaults.standardUserDefaults()
}
override fun putString(value: S... | 0 | Kotlin | 0 | 0 | dc80e3c5c64e527df91bdc507fcb66894e23be1b | 630 | UnsplashWrapper | MIT License |
app/src/main/kotlin/site/paulo/localchat/ui/utils/Utils.kt | paulofernando | 86,396,589 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 73, "XML": 46, "Java": 8} | /*
* Copyright 2017 Paulo Fernando
*
* 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 ... | 8 | Kotlin | 0 | 1 | c007c2a454edd88e5a1896c8fec94a7ca639dbd2 | 1,245 | localchat | Apache License 2.0 |
app/src/main/kotlin/site/paulo/localchat/ui/utils/Utils.kt | paulofernando | 86,396,589 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 73, "XML": 46, "Java": 8} | /*
* Copyright 2017 <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... | 8 | Kotlin | 0 | 1 | c007c2a454edd88e5a1896c8fec94a7ca639dbd2 | 1,237 | localchat | Apache License 2.0 |
app/src/main/java/com/covid/covid19/home/di/HomeDomainModule.kt | madhu2b4u | 253,091,856 | false | null | package com.covid.covid19.home.di
import com.covid.covid19.home.data.repository.HomeRepository
import com.covid.covid19.home.data.repository.HomeRepositoryImpl
import com.covid.covid19.home.domain.HomeUseCaseImpl
import com.covid.covid19.home.domain.HomeUseCase
import dagger.Binds
import dagger.Module
@Module
abstrac... | 1 | null | 1 | 1 | fbc2b34de8349146ea49c5c6a5fa5133f8b18f4d | 564 | Covid19 | Apache License 2.0 |
carioca-report/report-android-compose/src/main/kotlin/com/rubensousa/carioca/report/android/compose/ComposeHierarchyInspector.kt | rubensousa | 853,775,838 | false | {"Kotlin": 336232} | /*
* Copyright 2024 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 2 | Kotlin | 0 | 1 | bc33dbf0f8b288e1950483c5711eebc1c910f8ac | 8,100 | Carioca | Apache License 2.0 |
bedrock/wrapper/BedrockWrapperSerializerV9_10.kt | nathanswanson | 411,085,734 | false | {"Markdown": 1, "Text": 1, "Ignore List": 1, "Kotlin": 28, "Maven POM": 2, "Java": 353} | package protocol.bedrock.wrapper
import protocol.bedrock.BedrockPacketCodec.getId
import protocol.bedrock.BedrockPacketCodec.tryEncode
import protocol.bedrock.BedrockPacketCodec.tryDecode
import protocol.bedrock.BedrockPacket.packetId
import protocol.bedrock.BedrockPacket.senderId
import protocol.bedrock.BedrockPacket... | 1 | null | 1 | 1 | eb7ed4680080edc5de19c4e5ca5aa2d9782568ea | 4,973 | Protocol | Apache License 2.0 |
bedrock/wrapper/BedrockWrapperSerializerV9_10.kt | nathanswanson | 411,085,734 | false | {"Markdown": 1, "Text": 1, "Ignore List": 1, "Kotlin": 28, "Maven POM": 2, "Java": 353} | package protocol.bedrock.wrapper
import protocol.bedrock.BedrockPacketCodec.getId
import protocol.bedrock.BedrockPacketCodec.tryEncode
import protocol.bedrock.BedrockPacketCodec.tryDecode
import protocol.bedrock.BedrockPacket.packetId
import protocol.bedrock.BedrockPacket.senderId
import protocol.bedrock.BedrockPacket... | 1 | null | 1 | 1 | eb7ed4680080edc5de19c4e5ca5aa2d9782568ea | 4,973 | Protocol | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/personrecord/jpa/entity/AddressEntity.kt | ministryofjustice | 608,040,205 | false | {"Kotlin": 385798, "PLpgSQL": 24947, "Dockerfile": 1361, "Makefile": 302} | package uk.gov.justice.digital.hmpps.personrecord.jpa.entity
import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.GeneratedValue
import jakarta.persistence.GenerationType
import jakarta.persistence.Id
import jakarta.persistence.JoinColumn
import jakarta.persistence.ManyToOne
i... | 0 | Kotlin | 2 | 1 | 4647d6b90fa693e9d386b0286f58e82154ad1667 | 1,723 | hmpps-person-record | MIT License |
app/src/main/java/com/example/project_1/Managers/MessageControllers/DispatchQueue.kt | altaliufun2019 | 172,730,021 | false | {"Java": 11709, "Kotlin": 6970} | package com.example.project_1.Managers.MessageControllers
import android.os.Handler
import android.os.HandlerThread
import android.os.Looper
import java.lang.Exception
import java.util.concurrent.CountDownLatch
class DispatchQueue(mThreadName: String) : Thread() {
private lateinit var handler: Handler
private... | 1 | null | 1 | 1 | 60fa7bcbccff8c9d3fadd59cbbe209e7f456afd6 | 844 | project_01.1 | Apache License 2.0 |
app/src/main/java/com/ubuntuyouiwe/nexus/domain/model/user_messaging_data/UserMessagingData.kt | ubuntuyiw | 670,182,275 | false | {"Kotlin": 645882} | package com.ubuntuyouiwe.nexus.domain.model.user_messaging_data
data class UserMessagingData(
val isFromCache: Boolean = false,
val hasPendingWrites: Boolean = false,
val totalMessages: Int = 0
)
| 0 | Kotlin | 0 | 9 | 4edd0040e8983f79eca4cce71ca3e60cc4ee31b7 | 209 | Nexus | Apache License 2.0 |
src/main/kotlin/pl/sokolik/bartosz/dividendradar/adapter/file/DividendRadarExcelWriter.kt | bartoszsokolik | 507,140,863 | false | {"Kotlin": 34289, "Shell": 668, "JavaScript": 273} | package pl.sokolik.bartosz.dividendradar.adapter.file
import org.apache.poi.ss.usermodel.CellType
import org.apache.poi.ss.usermodel.Row
import org.apache.poi.ss.usermodel.Workbook
import org.apache.poi.xssf.usermodel.XSSFWorkbook
import org.springframework.stereotype.Component
import pl.sokolik.bartosz.dividendradar.... | 0 | Kotlin | 0 | 0 | 3560e78c0ea098f37c1d7cf644d74d2ba5121ffe | 4,655 | dividendradar | Apache License 2.0 |
app/src/main/kotlin/dsl/crossconf/MainActivity.kt | mobile-sergey | 838,398,147 | false | {"Kotlin": 3896} | package dsl.crossconf
import android.annotation.SuppressLint
import android.os.Bundle
import android.widget.Button
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
class MainActivity : AppCompatActivity() {
@SuppressLint("MissingInflatedId")
override fun onCreate(savedInstanceSta... | 0 | Kotlin | 0 | 0 | a3c6ffa668ad0a97e3f103ff01ec1fc3e5b4a43b | 651 | CrossConf_DSL | MIT License |
app/src/main/java/com/hannesdorfmann/data/loader/ItemsLoader.kt | sockeqwe | 45,409,840 | true | null | package com.hannesdorfmann.data.news
import android.support.v4.util.ArrayMap
import com.hannesdorfmann.data.backend.BackendManager
import com.hannesdorfmann.data.loader.router.RouteCaller
import com.hannesdorfmann.data.loader.router.Router
import com.hannesdorfmann.data.loader.page.FirstPage
import com.hannesdorfmann.... | 0 | Java | 9 | 70 | 282df0ee870cb54fad1a32d9c19c709d18014682 | 1,333 | plaid | Apache License 2.0 |
compiler/fir/tree/src/org/jetbrains/kotlin/fir/declarations/impl/FirModifiableFunction.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.fir.declarations.impl
import org.jetbrains.kotlin.fir.declarations.FirFunction
i... | 0 | Kotlin | 1 | 2 | dca23f871cc22acee9258c3d58b40d71e3693858 | 584 | kotlin | Apache License 2.0 |
chi-compiler/src/test/kotlin/gh/marad/chi/core/Matchers.kt | marad | 424,295,144 | false | {"Kotlin": 316466, "Java": 241258, "ANTLR": 7061, "Batchfile": 2689} | package gh.marad.chi.core
import gh.marad.chi.core.parser.ChiSource
import io.kotest.matchers.should
import io.kotest.matchers.shouldBe
import io.kotest.matchers.types.shouldBeTypeOf
fun Expression.shouldBeAtom(value: String, type: Type, sourceSection: ChiSource.Section? = null): Atom =
shouldBeTypeOf<Atom>().als... | 26 | Kotlin | 0 | 11 | d93f2df6472476a0de365edc5f146826ce608c58 | 1,227 | chi-compiler-kotlin | MIT License |
src/jvmTest/kotlin/com/bkahlert/kommons/test/junit/UniqueIdTest.kt | bkahlert | 323,048,013 | false | null | package com.bkahlert.kommons.test.junit
import com.bkahlert.kommons.runtime.CallStackElement
import com.bkahlert.kommons.test.TesterTest.PlainAssertionsTest
import com.bkahlert.kommons.test.testEach
import com.bkahlert.kommons.test.toStringIsEqualTo
import org.junit.jupiter.api.DynamicContainer
import org.junit.jupite... | 7 | Kotlin | 0 | 9 | 35e2ac1c4246decdf7e7a1160bfdd5c9e28fd066 | 2,014 | kommons | MIT License |
korge/common/src/main/kotlin/com/soywiz/korge/KorgeVersion.kt | wiltonlazary | 83,857,620 | true | {"Kotlin": 609504, "Java": 182756, "ActionScript": 7295, "HTML": 174} | package com.soywiz.korge
internal const val KORGE_VERSION = "0.19.2" | 0 | Kotlin | 0 | 0 | 2d3c7ed5b63f64cea73537707d7937be24168d6d | 69 | korge | Apache License 2.0 |
sample/src/main/kotlin/com/github/ajalt/flexadapter/sample/MainActivity.kt | KeepSafe | 108,800,793 | true | {"Kotlin": 57225} | package com.github.ajalt.flexadapter.sample
import android.content.Intent
import android.os.Bundle
import android.support.annotation.DrawableRes
import android.support.annotation.StringRes
import android.support.design.widget.Snackbar
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.Gri... | 0 | Kotlin | 0 | 1 | 4393b9179384fecd82b929032ac31fbd4b8dc4ca | 6,342 | flexadapter | Apache License 2.0 |
KotlinFundamentalsPratices/src/main/kotlin/me/will/kotlinfundamentals/MovieTicketPrice.kt | pure-study | 762,555,171 | false | {"Kotlin": 55090} | package me.will.kotlinfundamentals
fun main() {
val child = 5
val adult = 28
val senior = 87
val isMonday = true
println("The movie ticket price for a person aged $child is \$${ticketPrice(child, isMonday)}.")
println("The movie ticket price for a person aged $adult is \$${ticketPrice(adult, ... | 0 | Kotlin | 0 | 0 | 3c471b47374a43398719a72fbffeed995c3bf8e2 | 731 | android-basic-learning-unit-2 | Apache License 2.0 |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/iot/CfnTopicRuleIotAnalyticsActionPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.iot
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.Boolean
import kotlin.String
import soft... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 2,839 | awscdk-dsl-kotlin | Apache License 2.0 |
android/app/src/main/java/com/example/stacklounge/query/Client.kt | KPUCE2021SP | 387,674,842 | false | null | package com.example.stacklounge.query
import android.content.Context
import com.apollographql.apollo.ApolloClient
val apolloClient = ApolloClient.builder()
.serverUrl("http://localhost:8000/graphql")
.build() | 8 | null | 3 | 1 | a875d6791ee9807db190b958b4eaade85bd2fb06 | 218 | LiC | Apache License 2.0 |
AndroidTransitionsProject/app/src/main/java/com/shevart/androidtransitions/screenstransition/sharedelements/fragments/FragmentsSharedElementsActivity.kt | shevart | 129,292,376 | false | null | package com.shevart.androidtransitions.screenstransition.sharedelements.fragments
import android.os.Bundle
import android.support.transition.Fade
import android.support.v4.app.SharedElementCallback
import android.view.View
import com.shevart.androidtransitions.R
import com.shevart.androidtransitions.base.AbsActivity
i... | 0 | Kotlin | 0 | 9 | 41071f419effae08a9cf542bd5ff63a0999baa9f | 2,521 | AndroidTransitions | Apache License 2.0 |
AndroidTransitionsProject/app/src/main/java/com/shevart/androidtransitions/screenstransition/sharedelements/fragments/FragmentsSharedElementsActivity.kt | shevart | 129,292,376 | false | null | package com.shevart.androidtransitions.screenstransition.sharedelements.fragments
import android.os.Bundle
import android.support.transition.Fade
import android.support.v4.app.SharedElementCallback
import android.view.View
import com.shevart.androidtransitions.R
import com.shevart.androidtransitions.base.AbsActivity
i... | 0 | Kotlin | 0 | 9 | 41071f419effae08a9cf542bd5ff63a0999baa9f | 2,521 | AndroidTransitions | Apache License 2.0 |
shared/src/commonMain/kotlin/App.kt | logo17 | 697,428,459 | false | {"Kotlin": 19962, "Ruby": 1631, "Swift": 592, "Shell": 228} | import androidx.compose.runtime.Composable
import moe.tlaster.precompose.navigation.NavHost
import moe.tlaster.precompose.navigation.rememberNavigator
import navigation.Routes
import org.jetbrains.compose.resources.ExperimentalResourceApi
import presentation.login.LoginScreen
import ui.theme.CustomTheme
@Composable
fu... | 0 | Kotlin | 0 | 0 | d06f7cc747ee11cb5c92c0a416e84c9b2b696c97 | 717 | KMM_Compose_Multiplatform | Apache License 2.0 |
app/src/main/java/io/github/wulkanowy/ui/modules/login/form/LoginFormFragment.kt | bujakpvp | 167,613,504 | true | {"Kotlin": 413721, "IDL": 131} | package io.github.wulkanowy.ui.modules.login.form
import android.annotation.SuppressLint
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.View.GONE
import android.view.View.VISIBLE
import android.view.ViewGroup
import android.view.inputmethod.EditorInfo.IME_ACTIO... | 0 | Kotlin | 0 | 0 | 4da812af392ffbdf55960f8bb8d0d0f46721531b | 4,957 | wulkanowy | Apache License 2.0 |
kotlin/ktor/pokedex/src/test/kotlin/com/pradyotprkshpokedex/features/games/GamesRouterTest.kt | pradyotprksh | 385,586,594 | false | {"Kotlin": 2946772, "Dart": 1066884, "Python": 321205, "Rust": 180589, "Swift": 149624, "C++": 113494, "JavaScript": 103891, "CMake": 94132, "HTML": 57188, "Go": 45704, "CSS": 18615, "SCSS": 17864, "Less": 17245, "Ruby": 13609, "Dockerfile": 9772, "C": 8043, "Shell": 7657, "PowerShell": 3045, "Nix": 2616, "Makefile": 1... | package com.pradyotprkshpokedex.features.games
import com.pradyotprkshpokedex.utils.testBuilder
import io.ktor.client.request.get
import io.ktor.http.HttpStatusCode
import kotlin.test.Test
import kotlin.test.assertEquals
class GamesRouterTest {
@Test
fun testGenerationRoutes() = testBuilder {
client.a... | 0 | Kotlin | 11 | 24 | da2054de505260bdfa5ffa6d67674f0fa5ba8d3c | 2,136 | development_learning | MIT License |
app/src/androidTest/java/org/simple/clinic/storage/migrations/Migration58AndroidTest.kt | simpledotorg | 132,515,649 | false | {"Kotlin": 6129044, "Shell": 1660, "HTML": 545} | package org.simple.clinic.storage.migrations
import com.google.common.truth.Truth.assertThat
import org.junit.Before
import org.junit.Test
import org.simple.clinic.TestClinicApp
import org.simple.clinic.TestData
import org.simple.clinic.assertValues
import org.simple.clinic.insert
import org.simple.clinic.patient.Sync... | 3 | Kotlin | 73 | 236 | ff699800fbe1bea2ed0492df484777e583c53714 | 4,498 | simple-android | MIT License |
presentation/src/main/java/com/semicolon/walkhub/viewmodel/hub/HubUserViewModel.kt | Walkhub | 443,006,389 | false | null | package com.semicolon.walkhub.viewmodel.hub
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.semicolon.domain.entity.rank.OurSchoolUserRankEntity
import com.semicolon.domain.entity.rank.UserRankEntity
im... | 5 | Kotlin | 1 | 29 | 5070c2c33365f2db6f57975078e1ecd7594f66fa | 8,591 | walkhub_android | MIT License |
adaptive-core/src/commonMain/kotlin/fun/adaptive/backend/setting/dsl/dsl.kt | spxbhuhb | 788,711,010 | false | {"Kotlin": 2431816, "Java": 25628, "HTML": 8024, "JavaScript": 3880, "Shell": 687} | package hu.simplexion.adaptive.server.setting.dsl
import hu.simplexion.adaptive.server.setting.provider.DelegatingSettingProvider
import hu.simplexion.adaptive.server.setting.provider.InlineSettingProvider
import kotlin.reflect.KClass
inline fun <reified T : Any> setting(noinline path: () -> String): SettingDelegate<... | 34 | Kotlin | 0 | 3 | a423e127a406395002bbc663bb2fea6fcad749f1 | 1,467 | adaptive | Apache License 2.0 |
app/src/main/java/com/doctor/yumyum/common/base/BaseDialog.kt | YAPP-19th | 399,058,480 | false | {"Kotlin": 245963} | package com.doctor.yumyum.common.base
import android.app.Dialog
import android.os.Bundle
import androidx.annotation.LayoutRes
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import androidx.fragment.app.DialogFragment
import android.R
import android.content.Context
import androi... | 2 | Kotlin | 1 | 11 | ac42ba43f3ef499d1580059dec04d5f87ffe878f | 1,516 | Yumyum-Doctor-Android | Apache License 2.0 |
Section05/app/src/main/java/com/packt/video05/CustomView.kt | PacktPublishing | 157,178,105 | false | null | package com.packt.video05
import android.content.Context
import androidx.core.content.ContextCompat
import android.util.AttributeSet
import android.widget.Button
class CustomView(context: Context, attrs: AttributeSet) : Button(context, attrs){
init {
context.theme.obtainStyledAttributes(
attr... | 0 | Kotlin | 2 | 8 | 437a900eb9b57be896dd7df75781a214113e9eee | 1,118 | -Hands-on-Android-Application-Components-Styles-Themes | MIT License |
src/main/kotlin/org/piecesapp/client/models/PrecreatedExternalProviderApiKey.kt | pieces-app | 726,212,140 | false | {"Kotlin": 1451671} | /**
* Pieces Isomorphic OpenAPI
* Endpoints for Assets, Formats, Users, Asset, Format, User.
*
* The version of the OpenAPI document: 1.0
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/... | 9 | Kotlin | 2 | 6 | 9371158b0978cae518a6f2584dd452a2556b394f | 947 | pieces-os-client-sdk-for-kotlin | MIT License |
02-start-async-menuBar-application/src/main/kotlin/components/menuBar/MenuBarImpl.kt | kotlin-es | 75,533,048 | false | null | package components.progressBar
import java.util.*
import javax.swing.JMenu
import javax.swing.JMenuBar
import javax.swing.JMenuItem
/**
* Created by vicboma on 05/12/16.
*/
class MenuBarImpl internal constructor() : JMenuBar(), MenuBar {
companion object {
fun create(): MenuBar {
return Men... | 0 | Kotlin | 0 | 2 | 28797619791209a43fbf05586e3e274e86da0133 | 1,982 | kotlin-JFrame-standalone | MIT License |
02-start-async-menuBar-application/src/main/kotlin/components/menuBar/MenuBarImpl.kt | kotlin-es | 75,533,048 | false | null | package components.progressBar
import java.util.*
import javax.swing.JMenu
import javax.swing.JMenuBar
import javax.swing.JMenuItem
/**
* Created by vicboma on 05/12/16.
*/
class MenuBarImpl internal constructor() : JMenuBar(), MenuBar {
companion object {
fun create(): MenuBar {
return Men... | 0 | Kotlin | 0 | 2 | 28797619791209a43fbf05586e3e274e86da0133 | 1,982 | kotlin-JFrame-standalone | MIT License |
app/src/main/java/org/treeo/treeo/models/ValidateResponseData.kt | fairventures-worldwide | 498,242,730 | false | {"Kotlin": 586304, "C++": 87995, "Java": 3688, "CMake": 2149} | package org.treeo.treeo.models
data class ValidateResponseData(
val phoneNumber: String,
val valid: Boolean,
val errorStatus: String,
) | 0 | Kotlin | 0 | 0 | 2e3e780e325cb97c72a79d9d22fc7ac053fee350 | 148 | treeo2-mobile-app-open | Apache License 2.0 |
vscode/src/jsMain/kotlin/vscode/AuthenticationForceNewSessionOptions.kt | lppedd | 761,812,661 | false | {"Kotlin": 1887051} | package vscode
/**
* Optional options to be used when calling [vscode.authentication.getSession] with the flag `forceNewSession`.
*/
external interface AuthenticationForceNewSessionOptions {
/**
* An optional message that will be displayed to the user when we ask to re-authenticate. Providing additional context... | 0 | Kotlin | 0 | 3 | 0f493d3051afa3de2016e5425a708c7a9ed6699a | 457 | kotlin-externals | MIT License |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/submission/SubmissionBlockingDialog.kt | si-covid-19 | 286,833,811 | false | null | package de.rki.coronawarnapp.ui.submission
import android.content.Context
import androidx.appcompat.app.AlertDialog
import de.rki.coronawarnapp.R
class SubmissionBlockingDialog(
val context: Context
) {
private val dialog by lazy {
AlertDialog.Builder(context).apply {
setCancelable(false)... | 6 | Kotlin | 8 | 15 | 5a3b4be63b5b030da49216a0132a3979cad89af1 | 605 | ostanizdrav-android | Apache License 2.0 |
app/src/main/java/com/stanica/speedoxtream/ui/settings/userinfo/UserInfoPresenter.kt | Danini2308 | 587,394,185 | false | {"Java Properties": 13, "Gradle": 50, "Shell": 9, "Markdown": 7, "Batchfile": 8, "Text": 5, "Ignore List": 5, "JSON": 77, "Python": 1, "Proguard": 26, "XML": 397, "Java": 441, "Kotlin": 59, "SVG": 1, "HTML": 1} | package com.stanica.speedoxtream.ui.settings.userinfo
/**
* Interface used to retrieve user information.
*
* @author stanica
* @date 11/04/2021
*/
interface UserInfoPresenter {
/**
* Retrieves the required user information
*/
fun retrieveUserInfo()
} | 1 | null | 1 | 1 | fc502b55a4cc434e9c04e2ce7e12f966ced4e07c | 276 | SpeedoXtream | Apache License 2.0 |
integration-tests/common-test/src/test/kotlin/me/tatarka/inject/test/ComponentArgsTest.kt | evant | 194,859,139 | false | {"Gradle Kotlin DSL": 20, "Markdown": 8, "INI": 2, "Shell": 1, "Text": 1, "Ignore List": 13, "Batchfile": 1, "EditorConfig": 1, "Kotlin": 113, "TOML": 1, "YAML": 4, "Java": 2, "XML": 2} | package me.tatarka.inject.test
import assertk.assertThat
import assertk.assertions.isEqualTo
import kotlin.test.Test
class ComponentArgsTest {
@Test
fun generates_a_component_that_accepts_args() {
val component = ArgComponent::class.create("test", { it }, { this })
assertThat(component.simple... | 28 | Kotlin | 49 | 1,118 | b67d149651c2cbf3e504b4d8e608769e232fecd0 | 985 | kotlin-inject | Apache License 2.0 |
defitrack-rest/defitrack-ens/src/main/java/io/defitrack/ens/service/EnsNameService.kt | decentri-fi | 426,174,152 | false | null | package io.defitrack.ens.service
import io.defitrack.common.network.Network
import io.defitrack.common.utils.AsyncUtils.lazyAsync
import io.defitrack.ens.contract.EnsRegistrarContract
import io.defitrack.ens.contract.EnsRegistryContract
import io.defitrack.ens.contract.EnsResolverContract
import io.defitrack.evm.contr... | 58 | null | 7 | 9 | e65843453e4c44f5c2626870ceb923eb7ab3c4d0 | 3,207 | defi-hub | MIT License |
app/src/main/java/com/hb/jetgithub/domain/models/GithubRepositoryModel.kt | HamdiBoumaiza | 292,381,811 | false | null | package com.hb.jetgithub.domain.models
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
data class GithubRepositoryModel(
var owner: GithubUserModel,
var id: Int,
var name: String,
var description: String,
var htmlUrl: String
) : Parcelable {
constructor() : this... | 0 | Kotlin | 0 | 0 | 7dcc9d359a62585f02dc3893ad3d927250664d02 | 356 | JetGithub | Apache License 2.0 |
src/main/kotlin/no/nav/pensjon/kalkulator/opptjening/InntektUtil.kt | navikt | 596,104,195 | false | null | package no.nav.pensjon.kalkulator.opptjening
import java.math.BigDecimal
object InntektUtil {
fun sistePensjonsgivendeInntekt(grunnlag: Opptjeningsgrunnlag): BigDecimal =
grunnlag.inntekter
.filter { it.type == Opptjeningstype.SUM_PENSJONSGIVENDE_INNTEKT && it.beloep != BigDecimal.ZERO }
... | 1 | Kotlin | 0 | 0 | a642602ae4997fb9d88f97464a85a6c3d9c33a89 | 406 | pensjonskalkulator-backend | MIT License |
2020/src/test/kotlin/com/github/afranken/aoc/Day202001Test.kt | afranken | 434,026,010 | false | {"Kotlin": 28937} | package com.github.afranken.aoc
import com.github.afranken.aoc.Day202001.NOT_FOUND
import com.github.afranken.aoc.Day202001.part1
import org.assertj.core.api.Assertions.assertThat
import java.io.File
import java.io.IOException
import java.net.URISyntaxException
import kotlin.test.Test
object Day202001Test {
priva... | 0 | Kotlin | 0 | 0 | 0140f68e60fa7b37eb7060ade689bb6634ba722b | 1,433 | advent-of-code-kotlin | Apache License 2.0 |
src/main/kotlin/org/openrewrite/MarkdownRecipeDescriptor.kt | openrewrite | 344,576,583 | false | null | package org.openrewrite
import java.util.TreeSet
data class MarkdownRecipeDescriptor (
val name: String,
val description: String,
val docLink: String,
val options: TreeSet<RecipeOption>,
val isImperative: Boolean = true,
val artifactId: String = "",
): Comparable<MarkdownRecipeDescriptor> {
... | 5 | Kotlin | 7 | 2 | b3060b5b8202a84da05d360b4b9e7e102f9f76ad | 642 | rewrite-recipe-markdown-generator | Apache License 2.0 |
app/src/main/java/com/achawki/sequencetrainer/converter/Converter.kt | achawki | 382,692,328 | false | {"Kotlin": 55837} | package com.achawki.sequencetrainer.converter
import androidx.room.TypeConverter
import com.achawki.sequencetrainer.common.SequenceStatus
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
class Converter {
@TypeConverter
fun toSequenceStatus(value: String) = enumValueOf<SequenceStatus>(valu... | 0 | Kotlin | 0 | 0 | ed7541fecbe46a42dd27d8cbdb6030fef451c303 | 856 | number-sequence-trainer-android | Apache License 2.0 |
synchronizer/src/main/kotlin/xlitekt/synchronizer/builder/PlayerHighDefinitionUpdatesBuilder.kt | runetopic | 448,110,155 | false | null | package xlitekt.synchronizer.builder
import org.jctools.maps.NonBlockingHashMapLong
import xlitekt.game.actor.player.Player
import xlitekt.game.actor.render.block.invokeHighDefinitionPlayerRenderingBlocks
import xlitekt.game.world.World
/**
* @author <NAME>
*/
class PlayerHighDefinitionUpdatesBuilder : UpdatesBuild... | 0 | Kotlin | 3 | 8 | c896a2957470769a212961ba3e4331f04fc785df | 803 | xlitekt | MIT License |
src/main/kotlin/net/monachrom/scientia/util/Identifiers.kt | jiang-kevin | 351,641,421 | false | null | package net.monachrom.scientia.util
import net.minecraft.util.Identifier
object Identifiers {
val USE_FABRIC = Identifier(Constants.MOD_ID, "use_fabric")
} | 0 | Kotlin | 0 | 0 | 6c89334ecc1d27622a710f55af6b357fbea0188b | 161 | scientia | Creative Commons Zero v1.0 Universal |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsregisterstonomisupdate/resource/SyncResourceTest.kt | ministryofjustice | 342,167,625 | false | null | package uk.gov.justice.digital.hmpps.hmppsregisterstonomisupdate.resource
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.TestInstance
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.MethodSource
import org.mockito.kotlin.whenever
import org.springframework.b... | 0 | Kotlin | 1 | 0 | 5f77be20a989e04961800fefea57baab6ac31707 | 3,231 | hmpps-registers-to-nomis-update | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsregisterstonomisupdate/resource/SyncResourceTest.kt | ministryofjustice | 342,167,625 | false | null | package uk.gov.justice.digital.hmpps.hmppsregisterstonomisupdate.resource
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.TestInstance
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.MethodSource
import org.mockito.kotlin.whenever
import org.springframework.b... | 0 | Kotlin | 1 | 0 | 5f77be20a989e04961800fefea57baab6ac31707 | 3,231 | hmpps-registers-to-nomis-update | MIT License |
core/src/main/java/kekmech/ru/core/usecases/LogOutUseCase.kt | NuvaltsevAA | 249,189,732 | true | {"Kotlin": 355287, "Shell": 46} | package kekmech.ru.core.usecases
interface LogOutUseCase {
operator fun invoke()
} | 0 | null | 0 | 0 | 94bd394725e495a13f818e94f674a5353dd29bcb | 87 | mpeiapp | MIT License |
app/src/main/java/ir/hosseinabbasi/cevt/utils/rx/RxDisposables.kt | Drjacky | 140,293,074 | false | {"Kotlin": 37289} | package ir.hosseinabbasi.cevt.utils.rx
import io.reactivex.disposables.Disposable
/**
* Created by Dr.jacky on 7/9/2018.
*/
interface RxDisposables {
fun add(disposable: Disposable)
fun clear()
} | 0 | Kotlin | 0 | 3 | e120f409c3ea09908172851673233a2661b6d3fb | 208 | Cevt | The Unlicense |
domain/src/test/java/com/jbkalit/domain/usecase/FeedUseCaseTest.kt | jbkalit | 366,999,274 | false | null | package com.jbkalit.domain.usecase
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import com.jbkalit.domain.repository.post.PostRepositoryContract
import com.jbkalit.domain.usecase.feed.FeedUseCase
import com.jbkalit.domain.usecase.feed.FeedUseCaseContract
import com.jbkalit.domain.mock.feed
import... | 0 | Kotlin | 0 | 1 | fbf808718f0648b7bf9046ede6a6c3c60463a1e7 | 1,202 | PostApp | Apache License 2.0 |
liquibase-demo/src/main/kotlin/com/example/liquibasedemo/repository/BotTemplateRepository.kt | lolgopher | 752,658,930 | false | {"Kotlin": 6552} | package com.example.liquibasedemo.repository
import com.example.liquibasedemo.entity.BotTemplateEntity
import org.springframework.data.r2dbc.repository.R2dbcRepository
interface BotTemplateRepository: R2dbcRepository<BotTemplateEntity, Int> {
} | 0 | Kotlin | 0 | 0 | de92cf41f131165f902beb47148e493ccd0ee789 | 246 | kotlintest | MIT License |
app/src/main/java/abdullah/elamien/bloodbank/ui/App.kt | mars-amn | 194,006,072 | false | null | package abdullah.elamien.bloodbank.ui
import abdullah.elamien.bloodbank.di.firebaseModule
import abdullah.elamien.bloodbank.di.preferenceModule
import abdullah.elamien.bloodbank.di.viewModelModule
import android.app.Application
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLo... | 0 | Kotlin | 3 | 14 | e165fe3ade9c04b4dba3f2b90e9b3ff457fb4b67 | 787 | BloodBank | MIT License |
composeApp/src/desktopMain/kotlin/com/tecknobit/refy/viewmodels/ProfileScreenViewModel.kt | N7ghtm4r3 | 832,103,900 | false | {"Kotlin": 358374, "Java": 1944} | package com.tecknobit.neutron.viewmodels
import androidx.compose.material3.SnackbarHostState
import androidx.compose.runtime.MutableState
import com.tecknobit.neutron.screens.navigation.Splashscreen.Companion.localUser
import com.tecknobit.neutroncore.helpers.InputValidator.isEmailValid
import com.tecknobit.neutroncor... | 0 | Kotlin | 0 | 0 | bfcb167d74add107eee87217bc3e013077dcc5ee | 5,962 | Refy-Desktop | MIT License |
mediator/src/test/kotlin/no/nav/dagpenger/saksbehandling/MediatorTest.kt | navikt | 571,475,339 | false | {"Kotlin": 104433, "Mustache": 4238, "PLpgSQL": 2764, "HTML": 699, "Dockerfile": 77} | package no.nav.dagpenger.saksbehandling
import io.kotest.matchers.shouldBe
import io.mockk.mockk
import no.nav.dagpenger.saksbehandling.Oppgave.Tilstand.Type.FERDIG_BEHANDLET
import no.nav.dagpenger.saksbehandling.Oppgave.Tilstand.Type.KLAR_TIL_BEHANDLING
import no.nav.dagpenger.saksbehandling.Oppgave.Tilstand.Type.OP... | 0 | Kotlin | 0 | 0 | 471d84521bed8f916609629e281316e7ff7d1671 | 4,833 | dp-saksbehandling | MIT License |
database/src/main/java/ru/merkulyevsasha/database/data/RoomTypeConverters.kt | sashamerkulev | 72,358,115 | false | {"Kotlin": 217374, "Java": 14480, "HTML": 13412} | package ru.merkulyevsasha.database.data
import androidx.room.TypeConverter
import java.util.*
class RoomTypeConverters {
@TypeConverter
fun fromTimestamp(value: Long?): Date? {
return if (value == null) null else Date(value)
}
@TypeConverter
fun dateToTimestamp(date: Date?): Long? {
... | 0 | Kotlin | 0 | 0 | 9a7b9fefa00e105b751ba64bf88b8cd5a50362ba | 350 | News | Apache License 2.0 |
src/main/kotlin/org/maspitzner/presencesimulation/simulation/timestamps/ClassBasedPoissonTimestampGenerator.kt | MASpitzner | 374,770,623 | false | null | package org.maspitzner.presencesimulation.simulation.timestamps
import org.apache.commons.math3.distribution.PoissonDistribution
import org.joda.time.DateTime
import org.maspitzner.presencesimulation.models.Log
import org.maspitzner.presencesimulation.models.LogEntry
import kotlin.math.roundToInt
import kotlin.math.ro... | 0 | Kotlin | 0 | 0 | d6ed75e484aabab2cd25ba3436117dce44876b9f | 8,587 | PresenceSimulation | Apache License 2.0 |
app/src/main/kotlin/com/github/premnirmal/ticker/model/IHistoryProvider.kt | xjiae | 170,249,157 | true | {"Kotlin": 254316} | package com.github.premnirmal.ticker.model
import com.github.premnirmal.ticker.network.data.DataPoint
import io.reactivex.Observable
import org.threeten.bp.LocalDate
import java.io.Serializable
interface IHistoryProvider {
fun getHistoricalDataShort(symbol: String): Observable<List<DataPoint>>
fun getHistorical... | 0 | Kotlin | 0 | 0 | d5e29b559a4621e4b6f6f6424d2a6beaf375f951 | 782 | StockTicker | MIT License |
HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/scripting/actions/types/TriggerTaskerTaskAction.kt | Waboodoo | 34,525,124 | false | null | package ch.rmy.android.http_shortcuts.scripting.actions.types
import ch.rmy.android.http_shortcuts.dagger.ApplicationComponent
import ch.rmy.android.http_shortcuts.plugin.TaskerIntent
import ch.rmy.android.http_shortcuts.scripting.ExecutionContext
import ch.rmy.android.http_shortcuts.utils.ActivityProvider
import ch.r... | 18 | Kotlin | 100 | 749 | 72abafd7e3bbe68647a109cb4d5a1d3b97a73d31 | 1,389 | HTTP-Shortcuts | MIT License |
src/main/kotlin/me/grison/aoc/y2017/Day09.kt | agrison | 315,292,447 | false | null | package me.grison.aoc.y2017
import me.grison.aoc.Day
import me.grison.aoc.p
import me.grison.aoc.stringList
class Day09 : Day(9, 2017) {
override fun title() = "Stream Processing"
// 13154
override fun partOne() = solve().first
// 6369
override fun partTwo() = solve().second
private fun sol... | 0 | Kotlin | 4 | 20 | ea6899817458f7ee76d4ba24d36d33f8b58ce9e8 | 856 | advent-of-code | Creative Commons Zero v1.0 Universal |
src/main/kotlin/com/github/onotoliy/opposite/treasure/pages/event/EventViewPageContainer.kt | onotoliy | 193,324,871 | false | null | package com.github.onotoliy.opposite.treasure.pages.event
import com.github.onotoliy.opposite.treasure.store.reducers.State
import kotlinx.coroutines.CoroutineScope
import react.RClass
import react.RProps
import react.invoke
import react.redux.rConnect
import react.router.dom.RouteResultHistory
interface EventViewPag... | 0 | Kotlin | 0 | 0 | 014d881bb16a8be0e8aa5da4144364d2cbfb22a3 | 939 | opposite-treasure-web | Apache License 2.0 |
app/src/main/java/com/eliasball/debtmanager/internal/Enums.kt | blue1stone | 273,737,308 | false | null | package com.eliasball.debtmanager.internal
enum class DebtTypes(val type: String) {
MONEY("money"),
OBJECTS("objects")
} | 0 | Kotlin | 1 | 1 | 6728222876f687ba188b0e30b93034be9f1f501b | 129 | debt_manager_android | MIT License |
app/src/main/java/com/sw1pr0g/goxtype_android/ui/ShowFragmentCallback.kt | SW1pr0g | 596,699,157 | false | null | package com.sw1pr0g.goxtype_android.ui
import androidx.fragment.app.Fragment
interface ShowFragmentCallback {
fun showFragment(fragment: Fragment, firstShowing: Boolean)
} | 12 | Kotlin | 0 | 3 | f1d95058a0ef409793f9b935d18103deeeaf839a | 177 | goxtype_android | MIT License |
TrailTrackerApp/app/src/main/java/app/demo/example/com/trailtracker/app/BaseView.kt | bonafonteGuillermo | 148,182,636 | false | null | package app.demo.example.com.trailtracker.app
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.View
/**
* Created by <NAME>
*/
interface BaseView<P : BasePresenter> {
companion object {
val EXTRA_ROUTE = "route"
... | 0 | Kotlin | 0 | 0 | c3b98af96efe75ad8a3b430d84e32cc21ec1b8aa | 1,046 | TrailTracker | Apache License 2.0 |
android/app/src/main/kotlin/com/example/media/MainActivity.kt | thewickedkarma | 465,612,623 | true | {"Dart": 8610, "CMake": 6939, "C++": 2035, "HTML": 1122, "C": 691, "Swift": 404, "Kotlin": 122, "Objective-C": 38, "Shell": 34} | package com.example.media
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | f789990c2345961af8298751e893b633cb2a5674 | 122 | media | Apache License 2.0 |
app/src/main/java/com/s7evensoftware/nosowallet/AppOrigin.kt | Noso-Project | 440,352,953 | false | null | package com.s7evensoftware.nosowallet
import android.app.Application
import io.realm.Realm
class AppOrigin: Application() {
override fun onCreate() {
super.onCreate()
mpDisk.setContext(this)
Realm.init(this)
// UncaughtHandler
val defaultHandler = Thread.getDefaultUncaugh... | 5 | Kotlin | 1 | 7 | ec6c160a2ce5ccdd78affd370851f3cd54aa35d7 | 562 | NosoWallet-Android | The Unlicense |
module_video/src/main/java/com/knight/kotlin/module_video/utils/precache/PreloadTask.kt | KnightAndroid | 438,567,015 | false | {"Kotlin": 1817006, "Java": 294277, "HTML": 46741, "C": 31605, "C++": 14920, "CMake": 5510} | package com.knight.kotlin.module_video.utils.precache
import com.knight.kotlin.module_video.utils.videocache.HttpProxyCacheServer
import java.io.BufferedInputStream
import java.io.InputStream
import java.net.HttpURLConnection
import java.net.URL
import java.util.concurrent.ExecutorService
/**
* Author:Knight
* Ti... | 0 | Kotlin | 3 | 6 | d423c9cf863afe8e290c183b250950bf155d1f84 | 2,511 | wanandroidByKotlin | Apache License 2.0 |
app/src/main/java/com/app/rspickersample/MainActivity.kt | nadeemkhan | 393,308,848 | true | {"Kotlin": 24626} | package com.app.rspickersample
import android.app.Activity
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import com.vipani.lopicker.LocationModel
import com.vipani.lopicker.RSPlacePicker
import kotlinx.android.synthetic.main.activity_... | 0 | Kotlin | 2 | 0 | b2fa1fd5ba6d1c3cd513bb636943596133415105 | 1,383 | RSPlacePicker | Apache License 2.0 |
src/main/kotlin/util/YearMonthExtensions.kt | paulmiddelkoop | 347,105,584 | false | {"Kotlin": 123460} | package se.pamisoft.skola.avgifter.util
import java.time.LocalDate
import java.time.YearMonth
fun YearMonth.periodStart(): LocalDate = atDay(1)
fun LocalDate.toYearMonth(): YearMonth = YearMonth.from(this) | 1 | Kotlin | 0 | 0 | f8e5adacc217a8c91ef852b40d42c6ee34983e16 | 208 | skola-avgifter | MIT License |
online_services/src/main/java/com/infinitepower/newquiz/online_services/core/worker/CheckUserDBWorker.kt | joaomanaia | 443,198,327 | false | null | package com.infinitepower.newquiz.online_services.core.worker
import android.content.Context
import androidx.hilt.work.HiltWorker
import androidx.work.CoroutineWorker
import androidx.work.WorkerParameters
import com.google.firebase.ktx.Firebase
import com.google.firebase.remoteconfig.ktx.remoteConfig
import com.infini... | 2 | Kotlin | 8 | 62 | 0dfff8721f37d61e8328f620ec3dd5a4d2f2c151 | 1,902 | newquiz | Apache License 2.0 |
data/RF00758/rnartist.kts | fjossinet | 449,239,232 | false | {"Kotlin": 8214424} | import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
rfam {
id = "RF00758"
name = "consensus"
use alignment numbering
}
}
theme {
details {
value = 3
}
color {
location {
5 to 9... | 0 | Kotlin | 0 | 0 | 3016050675602d506a0e308f07d071abf1524b67 | 2,520 | Rfam-for-RNArtist | MIT License |
revcrm-server/src/main/kotlin/org/revcrm/meta/fields/Field.kt | RevCRM | 78,327,204 | false | {"JavaScript": 1795259, "Kotlin": 243670, "TypeScript": 181730, "CSS": 40221, "HTML": 6649, "Dockerfile": 278, "Shell": 89} | package org.revcrm.meta.fields
import graphql.schema.GraphQLInputType
import graphql.schema.GraphQLOutputType
import org.revcrm.meta.Entity
import org.revcrm.meta.EntityPropInfo
import org.revcrm.meta.MetadataService
abstract class Field {
val name: String
val label: String
val jvmType: String
val nu... | 5 | JavaScript | 1 | 3 | 4e9682e0e6919ea59105adc9522084f91b2cfb50 | 1,248 | kotlin-prototype | Apache License 2.0 |
src/main/kotlin/krayon/editor/sbgn/style/SbgnBuilder.kt | draeger-lab | 156,102,188 | true | {"Kotlin": 800067, "Java": 123973, "CSS": 34315, "Inno Setup": 1574} | /*
* Copyright (c) 2018 <NAME>
* This software is licensed under the Apache License, Version 2.0 (the "License"); you may not use this software 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 ... | 0 | Kotlin | 0 | 1 | d40dc53b35367a81099b929a22b1b36f8f601a42 | 24,711 | krayon4sbgn | Apache License 2.0 |
fidoclient/src/main/java/com/nhs/online/fidoclient/uaf/message/RegistrationRequest.kt | nhsconnect | 209,280,055 | false | null | package com.nhs.online.fidoclient.uaf.message
data class RegistrationRequest(
val header: OperationHeader? = null,
val challenge: String? = null,
val username: String = "",
val policy: Policy? = null
)
| 0 | Kotlin | 4 | 8 | efe9147cfffdef22b7ca7de2fa26de0a0cb784f1 | 219 | nhsapp-fido-client-android | MIT License |
app/src/main/java/com/example/bulkesfet/view/app/SearchFragment.kt | AdemSoner | 653,350,015 | false | null | package com.example.bulkesfet.view.app
import android.app.AlertDialog
import android.content.Context
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.AdapterView
import android.widget.ArrayAdap... | 0 | Kotlin | 0 | 0 | b370e1ded494601cb497ebe3fc1bb95f49a76107 | 6,073 | BulKesfet-AndroidAPP | Apache License 2.0 |
src/main/kotlin/com/theapache64/ntcdesktop/ui/theme/Theme.kt | theapache64 | 337,523,898 | false | null | package com.theapache64.ntcdesktop.ui.theme
import androidx.compose.foundation.layout.Column
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Surface
import androidx.compose.material.darkColors
import androidx.compose.material.lightColors
import androidx.compose.runtime.Composable
import... | 1 | Kotlin | 3 | 98 | c95b2ca457677b750df7452ea3cc4119abc2d3d6 | 953 | name-that-color-desktop | Apache License 2.0 |
src/main/kotlin/no/nav/toi/kandidatsøk/filter/PorteføljeFilter.kt | navikt | 732,052,226 | false | {"Kotlin": 233574, "Dockerfile": 234} | package no.nav.toi.kandidatsøk.filter
import no.nav.toi.AuthenticatedUser
import no.nav.toi.must_
import no.nav.toi.term_
import no.nav.toi.value
fun List<Filter>.medPorteføljeFilter() = this + PorteføljeFilter()
private interface Type {
fun erAktiv(): Boolean = true
fun lagESFilterFunksjon(navIdent: String?... | 1 | Kotlin | 0 | 0 | 1565a84602e20b694439704d5a4fb5d3634f4cce | 1,549 | rekrutteringsbistand-kandidatsok-api | MIT License |
DailyMotivation/app/src/main/java/com/arturbogea/dailymotivation/data/Mock.kt | arturbogea | 719,180,571 | false | {"Kotlin": 13111} | package com.arturbogea.dailymotivation.data
import com.arturbogea.dailymotivation.infra.MotivationConstant
import kotlin.random.Random
class Mock {
//Mock é uma aplicação que não é real. Ou seja, são frases que já estão no app, não irão ser buscadas em outro lugar
//abaixo, vou passar as contastantes criadas... | 0 | Kotlin | 0 | 0 | bbd8ca874b7c46002cbffcfa2f37f2f8adea039a | 2,366 | Motivation | MIT License |
workshop/graphql/dgs-kotlin-demo/src/main/kotlin/io/bluetape4k/workshop/graphql/dgs/dataloader/ReviewDataLoader.kt | debop | 625,161,599 | false | {"Kotlin": 7504333, "HTML": 502995, "Java": 2273, "JavaScript": 1351, "Shell": 1301, "CSS": 444, "Dockerfile": 121, "Mustache": 82} | package io.bluetape4k.workshop.graphql.dgs.dataloader
import com.netflix.graphql.dgs.DgsDataLoader
import io.bluetape4k.concurrent.futureOf
import io.bluetape4k.logging.KLogging
import io.bluetape4k.logging.debug
import io.bluetape4k.workshop.graphql.dgs.generated.types.Review
import io.bluetape4k.workshop.graphql.dgs... | 0 | Kotlin | 0 | 1 | ce3da5b6bddadd29271303840d334b71db7766d2 | 1,188 | bluetape4k | MIT License |
domain/usecase/src/main/java/com/cupcake/usecase/GetAllJobUseCase.kt | The-Cupcake-team | 646,926,125 | false | null | package com.cupcake.usecase
import repo.JobFinderRepository
import javax.inject.Inject
class GetAllJobUseCase @Inject constructor(
private val repository: JobFinderRepository
) {
// suspend operator fun invoke(limit: Int): List<JobWithTitle> {
// return repository.getJobs().take(limit).map { it.toJobWit... | 2 | Kotlin | 1 | 2 | 342b634756ae6a12c7113a5854f66147cae8710d | 343 | Jobs-finder | MIT License |
day_22/src/test/kotlin/io/github/zebalu/advent2020/RecursiveCardGameTest.kt | zebalu | 317,448,231 | false | null | package io.github.zebalu.advent2020
import org.junit.Test
import org.junit.Assert
class RecursiveCardGameTest {
@Test
fun input1() {
val rcg = RecursiveCardGame(ResourceReader.lineGroups("/input_22.txt"))
Assert.assertEquals(35055, rcg.calculateScore())
}
} | 0 | Kotlin | 0 | 1 | ca54c64a07755ba044440832ba4abaa7105cdd6e | 268 | advent2020 | Apache License 2.0 |
day_22/src/test/kotlin/io/github/zebalu/advent2020/RecursiveCardGameTest.kt | zebalu | 317,448,231 | false | null | package io.github.zebalu.advent2020
import org.junit.Test
import org.junit.Assert
class RecursiveCardGameTest {
@Test
fun input1() {
val rcg = RecursiveCardGame(ResourceReader.lineGroups("/input_22.txt"))
Assert.assertEquals(35055, rcg.calculateScore())
}
} | 0 | Kotlin | 0 | 1 | ca54c64a07755ba044440832ba4abaa7105cdd6e | 268 | advent2020 | Apache License 2.0 |
Strohm/android/strohm-native/src/main/java/dev/strohmnative/viewmodels/SimpleViewModel.kt | StrohmNative | 318,874,527 | false | null | package dev.strohmnative.viewmodels
import android.util.Log
import dev.strohmnative.*
open class SimpleViewModel<EntryType>(
initialData: EntryType,
propName: PropName,
propPath: PropPath,
private val instanceFactory: ConstructableFromDictionary<EntryType>
): ViewModelBase<EntryType>(initialData, prop... | 0 | Swift | 0 | 0 | d18c9d350659b994d0cb58d6ad23c7e9620c091d | 737 | strohm-native | MIT License |
dynamic-query-specification/src/main/kotlin/br/com/dillmann/dynamicquery/specification/predicate/binary/LikeBinarySpecification.kt | lucasdillmann | 766,655,271 | false | {"Kotlin": 291320, "ANTLR": 1360} | package br.com.dillmann.dynamicquery.specification.predicate.binary
import br.com.dillmann.dynamicquery.specification.decorators.requireString
import jakarta.persistence.criteria.CriteriaBuilder
/**
* [BinarySpecification] implementation for like expressions
*
* @param attributeName Full path of the attribute
* @... | 0 | Kotlin | 0 | 1 | cf3f0c3fd81da87bb6a097b9d219f42264244fd9 | 521 | dynamic-query | MIT License |
vim-engine/src/main/kotlin/com/maddyhome/idea/vim/command/OperatorArguments.kt | JetBrains | 1,459,486 | false | null | /*
* Copyright 2003-2023 The IdeaVim authors
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE.txt file or at
* https://opensource.org/licenses/MIT.
*/
package com.maddyhome.idea.vim.command
/**
* [count0] is a raw count entered by user. May be zero.
* [count1]... | 6 | null | 709 | 7,924 | b8b324cdf37c78c683277c2b57b60dd1069f7067 | 798 | ideavim | MIT License |
app/src/main/java/com/tommasoberlose/anotherwidget/receivers/WidgetClickListenerReceiver.kt | azuo | 395,672,114 | true | {"Kotlin": 603952} | package com.tommasoberlose.anotherwidget.receivers
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.net.Uri
import com.tommasoberlose.anotherwidget.R
import com.tommasoberlose.anotherwidget.global.Actions
import com.tommasoberlose.anotherwidget.global... | 3 | Kotlin | 0 | 29 | 00a65e28a0d1edeb249e2b4f77e5a31ebaf2617c | 1,470 | another-widget | MIT License |
tools/recipe/src/main/kotlin/top/bettercode/summer/tools/recipe/material/IRecipeMaterial.kt | top-bettercode | 387,652,015 | false | {"Kotlin": 3010960, "Java": 24119, "JavaScript": 22541, "CSS": 22336, "HTML": 15833} | package top.bettercode.summer.tools.recipe.material
import top.bettercode.summer.tools.recipe.indicator.RecipeValueIndicators
/**
* 原料
*
* @author <NAME>
*/
interface IRecipeMaterial : Comparable<IRecipeMaterial> {
/**
* 序号,从0开始
*/
val index: Int
/** 原料ID */
val id: String
/** 原料名... | 0 | Kotlin | 0 | 1 | 98b2b930bcf4addab63ec219c7cca4d4f39d9861 | 632 | summer | Apache License 2.0 |
subprojects/gradle/instrumentation-tests/src/main/kotlin/com/avito/instrumentation/report/Report.kt | mduisenov | 257,593,222 | true | {"Kotlin": 2509850, "Shell": 16022, "Python": 14063, "Dockerfile": 7151, "Makefile": 2131} | package com.avito.instrumentation.report
import com.avito.instrumentation.suite.filter.TestRunFilter
import com.avito.report.ReportsApi
import com.avito.report.model.AndroidTest
import com.avito.report.model.CreateResult
import com.avito.report.model.GetReportResult
import com.avito.report.model.ReportCoordinates
impo... | 0 | null | 1 | 0 | eec301953e12f7e7b93b3ce09965b58f26373bbd | 8,019 | avito-android | Apache License 2.0 |
ndkcrashes/src/main/kotlin/io/appmetrica/analytics/ndkcrashes/impl/utils/DebugLogger.kt | appmetrica | 650,662,094 | false | {"Java": 5810866, "C++": 5729793, "Kotlin": 2626120, "Python": 229161, "Objective-C++": 152166, "C": 127185, "Assembly": 59003, "Emacs Lisp": 14657, "Objective-C": 10302, "Starlark": 7767, "Shell": 5746, "Go": 4930, "CMake": 3562, "CSS": 1454, "AppleScript": 1429, "AIDL": 504} | package io.appmetrica.analytics.ndkcrashes.impl.utils
import io.appmetrica.analytics.logger.common.BaseDebugLogger
object DebugLogger : BaseDebugLogger("AppMetricaNativeDebug")
| 1 | Java | 5 | 54 | 472d3dfb1e09f4e7f35497e5049f53287ccce7d1 | 179 | appmetrica-sdk-android | MIT License |
src/test/kotlin/no/nav/personbruker/minesaker/api/domain/AvsenderMottakerObjectMother.kt | navikt | 331,032,645 | false | null | package no.nav.personbruker.minesaker.api.domain
object AvsenderMottakerObjectMother {
fun giveMeInnloggetBrukerAsAvsender() : Dokumentkilde {
return Dokumentkilde(true, DokumentkildeType.PERSON)
}
fun giveMeOrganisasjonSomAvsedner() : Dokumentkilde {
return Dokumentkilde(false, Dokumentk... | 1 | Kotlin | 1 | 0 | 9483405e40b286e7b537a699ca3cf4eaca40ed0e | 351 | mine-saker-api | MIT License |
webrtc/src/main/java/com/bandwidth/webrtc/RTCBandwidthClient.kt | foresightmobile | 528,433,363 | false | {"Kotlin": 56541, "Java": 9478} | package com.bandwidth.webrtc
import android.content.Context
import com.bandwidth.webrtc.listeners.*
import com.bandwidth.webrtc.signaling.ConnectionException
import com.bandwidth.webrtc.signaling.Signaling
import com.bandwidth.webrtc.signaling.SignalingClient
import com.bandwidth.webrtc.signaling.SignalingDelegate
imp... | 0 | Kotlin | 1 | 0 | 93406c1fe65f79bc90582342ac16badfb3bd3baa | 22,910 | bandwidth-android | MIT License |
app/src/main/java/com/google/samples/apps/sunflower/data/model/GardenPlanting.kt | Dbrunet | 232,897,992 | false | null | /*
* Copyright 2020 Google LLC
*
* 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 | 0 | 0 | b1c328fc32ae78a472ce70fcfde822c1f9ee7799 | 2,133 | jetpack | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.