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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
kotlin/src/main/kotlin/io/georocket/index/generic/DefaultMetaIndexerFactory.kt | georocket | 58,203,049 | false | {"Kotlin": 521913, "Rust": 314054, "JavaScript": 21650, "ANTLR": 4307, "Dockerfile": 1356, "HTML": 1139} | package io.georocket.index.generic
import io.georocket.index.DatabaseIndex
import io.georocket.index.MetaIndexerFactory
import io.georocket.query.*
import io.georocket.query.QueryCompiler.MatchPriority
import io.georocket.query.QueryPart.ComparisonOperator.EQ
/**
* Factory for [DefaultMetaIndexer] instances
* @auth... | 1 | Kotlin | 27 | 74 | 5f84037bbc3f16d146823338070fc98de67dec6a | 2,105 | georocket | Apache License 2.0 |
dlang/psi-impl/src/main/kotlin/io/github/intellij/dlanguage/psi/ext/DLanguageReferenceExpressionImplMixin.kt | intellij-dlanguage | 27,922,930 | false | {"D": 1787183, "Kotlin": 1068238, "Java": 834373, "Lex": 22913, "DTrace": 3220, "HTML": 1386, "Makefile": 457} | package io.github.intellij.dlanguage.psi.ext
import com.intellij.extapi.psi.ASTWrapperPsiElement
import com.intellij.lang.ASTNode
import com.intellij.openapi.util.TextRange
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiReference
import io.github.intellij.dlanguage.psi.DLanguageReferenceExpression
impor... | 160 | D | 51 | 328 | 298d1db45d2b35c1715a1b1b2e1c548709101f05 | 5,313 | intellij-dlanguage | MIT License |
src/main/kotlin/com/osm/gradle/plugins/wrapper/builder/OptionBuilder.kt | sam-osamu | 183,719,935 | false | null | package com.osm.gradle.plugins.wrapper.builder
import com.osm.gradle.plugins.wrapper.builder.command.ICommandOption
class OptionBuilder {
private val options = ArrayList<ICommandOption>()
fun put(option: ICommandOption): OptionBuilder {
if (!option.multiple) {
removeIfMatchType(option.jav... | 0 | Kotlin | 0 | 0 | 1943303f1bbe3ed2a3cd192c766bb0faee1e2be2 | 802 | rustic | MIT License |
http4k-core/src/main/kotlin/org/http4k/template/Templates.kt | danschultz | 118,152,914 | true | {"Kotlin": 770332, "JavaScript": 133258, "Java": 49492, "Shell": 6237, "HTML": 2067, "CSS": 568} | package org.http4k.template
typealias TemplateRenderer = (ViewModel) -> String
/**
* Supported template implementations for templating engine implementations
*/
interface Templates {
/**
* Loads and caches templates from the compiled classpath
*
* @param baseClasspathPackage the root package to ... | 0 | Kotlin | 0 | 0 | 7ea0046f8a4d256fe490de5d44ea6c5fc3ad2aa6 | 1,093 | http4k | Apache License 2.0 |
backend/data/src/main/kotlin/io/tolgee/component/CurrentDateProvider.kt | tolgee | 303,766,501 | false | {"TypeScript": 2960870, "Kotlin": 2463774, "JavaScript": 19327, "Shell": 12678, "Dockerfile": 9468, "PLpgSQL": 663, "HTML": 439} | package io.tolgee.component
import io.tolgee.development.OnDateForced
import io.tolgee.model.ForcedServerDateTime
import io.tolgee.util.Logging
import io.tolgee.util.executeInNewTransaction
import io.tolgee.util.logger
import jakarta.persistence.EntityManager
import org.springframework.beans.factory.config.Configurabl... | 170 | TypeScript | 188 | 1,837 | 6e01eec3a19c151a6e0aca49e187e2d0deef3082 | 3,254 | tolgee-platform | Apache License 2.0 |
model/src/main/java/io/km/todo/model/User.kt | pickerX | 506,482,283 | false | null | package io.km.todo.model
/**
* common user
*
* @author pengfei.huang
* create on 2022/6/23
*/
data class User(
val id: Int,
val login: String,
val pwd: String,
val avatar: String,
)
| 0 | Kotlin | 0 | 0 | 05f934776c3b87c6bc91df9ebbc57863c78ffa99 | 204 | todo-shit | Apache License 2.0 |
reverse-string/src/main/kotlin/ReverseString.kt | sirech | 189,113,734 | false | null | fun reverse(input: String): String {
val middle = input.length / 2
val acc = input.toCharArray()
(0 until middle).zip((input.length - 1).downTo(middle)).forEach { (left, right) ->
val tmp = input[left]
acc[left] = acc[right]
acc[right] = tmp
}
return String(acc)
}
| 0 | Kotlin | 0 | 0 | 253f4636f16f83f6b96f21532a3ca8fa16dace46 | 311 | exercism-kotlin | MIT License |
app/src/main/kotlin/io/github/bsfranca2/athena/RestExceptionHandler.kt | bsfranca2 | 275,465,877 | false | null | package io.github.bsfranca2.athena
import com.fasterxml.jackson.module.kotlin.MissingKotlinParameterException
import io.github.bsfranca2.athena.adapter.ExceptionAdapter
import io.github.bsfranca2.athena.adapter.ValidationExceptionAdapter
import io.github.bsfranca2.athena.dto.response.ErrorResponseDto
import io.github.... | 11 | Kotlin | 0 | 0 | 8a048990c1a6ebf23a567490476fc7e41fdadc71 | 3,546 | Athena | MIT License |
graph/graph-application/src/main/kotlin/eu/tib/orkg/prototype/statements/spi/PaperRepository.kt | TIBHannover | 197,416,205 | false | {"Kotlin": 2518665, "Cypher": 215872, "Python": 4880, "Groovy": 1936, "Shell": 1803, "HTML": 240} | package eu.tib.orkg.prototype.statements.spi
import eu.tib.orkg.prototype.statements.domain.model.PaperResourceWithPath
import eu.tib.orkg.prototype.statements.domain.model.ThingId
import org.springframework.data.domain.Page
import org.springframework.data.domain.Pageable
interface PaperRepository {
fun findAllPa... | 0 | Kotlin | 2 | 5 | ce3f24748dd2d9c06e6125e033bc7ae83122925f | 406 | orkg-backend | MIT License |
app/src/main/java/com/xquare/xquare_android/feature/home/HomeViewModel.kt | team-xquare | 478,925,648 | false | null | package com.xquare.xquare_android.feature.home
import com.xquare.domain.entity.meal.MealEntity
import com.xquare.domain.entity.user.HomeUserEntity
import com.xquare.domain.usecase.meal.FetchTodayMealUseCase
import com.xquare.domain.usecase.point.FetchDormitoryPointUseCase
import com.xquare.domain.usecase.user.FetchUse... | 20 | Kotlin | 1 | 13 | 6b80af309999b7c8e239aead440c438c1958020a | 1,753 | xquare-android | MIT License |
docs-examples/example-kotlin/src/test/kotlin/io/micronaut/rabbitmq/docs/headers/ProductClient.kt | rajselvaraj-arch | 359,574,256 | true | {"INI": 3, "Gradle": 7, "Shell": 1, "Markdown": 3, "Batchfile": 1, "Text": 1, "Ignore List": 1, "AsciiDoc": 32, "YAML": 9, "Java": 120, "XML": 6, "Groovy": 76, "Kotlin": 55} | package io.micronaut.rabbitmq.docs.headers
// tag::imports[]
import io.micronaut.rabbitmq.annotation.Binding
import io.micronaut.rabbitmq.annotation.RabbitClient
import io.micronaut.context.annotation.Requires
import io.micronaut.messaging.annotation.Header
import io.micronaut.messaging.annotation.Headers
import io.mi... | 0 | Java | 0 | 0 | 5387922b1172d5c23dd81be3d55099a078300f53 | 1,092 | micronaut-rabbitmq | Apache License 2.0 |
domain/storedetail/src/main/java/com/hankki/domain/storedetail/entity/StoreDetailNicknameEntity.kt | Team-Hankki | 816,081,730 | false | {"Kotlin": 558108} | package com.hankki.domain.storedetail.entity
data class StoreDetailNicknameEntity(
val nickname: String,
val profileImageUrl: String
)
| 8 | Kotlin | 0 | 38 | 314a86e55e89d6a7d567ae4b0e633c6b34892b91 | 144 | hankki-android | Apache License 2.0 |
app/src/main/java/com/zdcx/pos/data/local/Converters.kt | zengjianxiong | 469,991,609 | false | {"Kotlin": 83849, "Java": 13788} | package com.zdcx.pos.data.local
import androidx.room.TypeConverter
import java.util.*
class Converters {
@TypeConverter
fun fromTimestamp(value: Long?): Date? = value?.let { Date(value) }
@TypeConverter
fun dateToTimestamp(value: Date?): Long? = value?.time
} | 0 | Kotlin | 0 | 0 | 4dcc2b5b76e8854470fdbb14664f52fedbddb0a3 | 278 | POS | Apache License 2.0 |
src/app/api/src/main/kotlin/yapp/be/apiapplication/system/config/FilterConfiguration.kt | YAPP-Github | 634,126,325 | false | {"Kotlin": 460704, "HTML": 7648} | package yapp.be.apiapplication.system.config
import org.springframework.boot.web.servlet.FilterRegistrationBean
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.core.Ordered
import org.springframework.web.servlet.resource.Resource... | 0 | Kotlin | 1 | 7 | ebee64b31bfe77106c0212605ba5e0f9b9957879 | 1,137 | DangleDangle-server | Apache License 2.0 |
app/src/debug/java/br/com/wakim/eslpodclient/DebugApplication.kt | wakim | 52,843,851 | false | {"Git Config": 1, "Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Java": 1, "XML": 63, "JSON": 1, "Kotlin": 84} | package br.com.wakim.eslpodclient
import com.facebook.stetho.Stetho
class DebugApplication : Application() {
override fun onCreate() {
super.onCreate()
Stetho.initializeWithDefaults(this)
}
} | 0 | Kotlin | 1 | 6 | a92dad2832f087f97fcbf9b2b7973a31efde551c | 218 | esl-pod-client | Apache License 2.0 |
app/src/main/java/com/ruskaof/myt/common/UilFunctions.kt | ruskaof | 481,254,879 | false | {"Kotlin": 121946} | package com.ruskaof.myt.common
import java.time.LocalDateTime
fun niceTime(localDateTime: LocalDateTime): String {
var hour = localDateTime.hour.toString()
var minute = localDateTime.minute.toString()
if (hour.length < 2) hour = "0$hour"
if (minute.length < 2) minute = "0$minute"
return "$hour:$m... | 0 | Kotlin | 0 | 1 | 89dd595f4b547ff4c6afb71fc5703943bdbd4918 | 564 | MYT | Apache License 2.0 |
app/src/main/java/com/lukieoo/compassnetguru/di/DestinationModule.kt | Lukieoo | 308,153,457 | false | null | package com.lukieoo.compassnetguru.di
import android.content.Context
import com.lukieoo.compassnetguru.utils.MathematicalOperations
import com.lukieoo.compassnetguru.utils.DestinationHolder
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ApplicationCompone... | 0 | Kotlin | 0 | 1 | 5af9a253f7914e0a695bf6730c4b2d6b4b7196ca | 862 | CompassNetguru | MIT License |
shared-domain/src/main/kotlin/dev/programadorthi/shared/domain/provider/SharedTextProvider.kt | programadorthi | 352,469,479 | false | null | package dev.programadorthi.shared.domain.provider
interface SharedTextProvider {
fun noInternetConnection(): String
fun somethingWrong(): String
}
| 0 | Kotlin | 1 | 23 | f62cb1811621ec328c567bbe6bd61b02890ad46a | 156 | android-super-app | MIT License |
app/src/main/java/com/cngal/app/repository/PeripheryRepository.kt | CnGal | 648,083,407 | false | {"Kotlin": 421043} | package com.cngal.app.repository
import com.cngal.app.model.article.ArticleModel
import com.cngal.app.model.periphery.PeripheryModel
import com.cngal.app.service.ArticleService
import com.cngal.app.service.PeripheryService
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.Flow
import kotlinx.corouti... | 0 | Kotlin | 1 | 2 | 6703376adae97557825f39d7492a04b3aee55729 | 631 | cngal-jetpack-app | MIT License |
interoperable/src/nonJvmNonJsMain/kotlin/kollections/internal/AbstractIterable.kt | aSoft-Ltd | 537,964,662 | false | {"Kotlin": 132802} | package kollections.internal
import kollections.Iterable
import kotlin.collections.count as kCount
actual abstract class AbstractIterable<out E> : Iterable<E> | 0 | Kotlin | 1 | 9 | 8887905f6bd7c0984f6cb95b1f23db4038785bdd | 160 | kollections | MIT License |
protocol/src/main/kotlin/com/github/traderjoe95/mls/protocol/message/padding/deterministic/Padme.kt | Traderjoe95 | 757,448,383 | false | {"Kotlin": 1143520} | package com.github.traderjoe95.mls.protocol.message.padding.deterministic
import com.github.traderjoe95.mls.protocol.message.padding.PaddingStrategy
import com.github.traderjoe95.mls.protocol.util.log2
import com.github.traderjoe95.mls.protocol.util.wipe
data object Padme : PaddingStrategy {
override fun applyPaddi... | 0 | Kotlin | 0 | 1 | 70bd7110b08713ae9425bbad6e6da13fa6fed8f3 | 717 | mls-kotlin | MIT License |
emoji/src/androidMain/kotlin/com/vanniktech/emoji/internal/RepeatListener.kt | vanniktech | 53,511,222 | false | null | /*
* Copyright (C) 2016 - <NAME>, <NAME>, <NAME> and 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-2.0
*
* Unless requir... | 5 | null | 292 | 1,537 | 60efe8bbfe4f2900e424c4cdddf01dcc59e0b4bb | 2,220 | Emoji | Apache License 2.0 |
app/src/main/java/kr/co/witches/simplememo/ui/main/MainRepository.kt | juu124 | 554,712,442 | false | null | package kr.co.witches.simplememo.ui.main
class MainRepository {
// 메인에서 처리되는 데이터 - Api
} | 0 | Kotlin | 0 | 0 | 78cac3d52b36fec125b01d49ca9b868ec38eca56 | 96 | SimpleMemo | MIT License |
src/main/kotlin/com/uchuhimo/konf/source/json/JsonProvider.kt | slomkowski | 190,100,394 | true | {"Gradle Kotlin DSL": 4, "INI": 4, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "YAML": 3, "Markdown": 1, "Java": 7, "Kotlin": 123, "TOML": 1, "XML": 1, "JSON": 1, "Java Properties": 1} | /*
* Copyright 2017-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Kotlin | 0 | 0 | b26fa3a5dcae17ec92ec63e585881a33a6514cba | 1,146 | konf | Apache License 2.0 |
kstatemachine/src/test/kotlin/ru/nsk/kstatemachine/CrossLevelTransitionTest.kt | mahendran-sakkarai | 351,689,452 | true | {"Kotlin": 107638} | package ru.nsk.kstatemachine
import io.mockk.verifySequence
import org.junit.jupiter.api.Test
class CrossLevelTransitionTest {
/**
* Currently transition from self to self is same as targetless transition
*/
@Test
fun selfToSelf() {
val callbacks = mockkCallbacks()
lateinit var ... | 0 | Kotlin | 0 | 0 | 7c5986549be84045329c8fb75a8a295e2a6cac5b | 8,673 | kstatemachine | MIT License |
lib/kpindex/src/main/java/se/gustavkarlsson/skylight/android/lib/kpindex/KpIndexBody.kt | gustavkarlsson | 128,669,768 | false | null | package se.gustavkarlsson.skylight.android.lib.kpindex
import kotlinx.serialization.Serializable
@Serializable
internal data class KpIndexBody(val value: Double)
| 0 | Kotlin | 3 | 6 | c3b1b53a73a1de97ad0e6e9645ddae1df5815800 | 164 | skylight-android | MIT License |
src/main/kotlin/com/kotlindiscord/bot/config/spec/ChannelsSpec.kt | iLemonBr | 304,703,681 | true | {"Kotlin": 108236, "Groovy": 1393, "Python": 1305, "Dockerfile": 356} | package com.kotlindiscord.bot.config.spec
import com.uchuhimo.konf.ConfigSpec
/**
* A class representing the `channels` section of the configuration.
*
* This is used by Konf, and will not need to be accessed externally.
*/
object ChannelsSpec : ConfigSpec() {
/** Configured bot-commands channel ID. **/
v... | 0 | null | 0 | 0 | 4f194b0ed2aa03761d968e97147704aa84d8c942 | 701 | bot | MIT License |
eth/wallet/src/commonMain/kotlin/kosh/eth/wallet/Wallet.kt | niallkh | 855,100,709 | false | {"Kotlin": 1813876, "Swift": 594} | package kosh.eth.wallet
import com.ionspin.kotlin.bignum.integer.BigInteger
import com.ionspin.kotlin.bignum.integer.toBigInteger
import kosh.eth.abi.Eip712
import kosh.eth.abi.Value
import kosh.eth.abi.coder.eip712StructHash
import kosh.eth.abi.keccak256
import kosh.eth.abi.rlp.toRlp
import kosh.eth.wallet.transactio... | 0 | Kotlin | 0 | 3 | f48555a563dfee5b07184771a6c94c065765d570 | 4,644 | kosh | MIT License |
kotlin/kotlin-snippets/src/main/kotlin/Main.kt | d-kicinski | 387,271,157 | false | null | import kotlin.reflect.KFunction1
fun customRun(f: () -> Unit): Unit {
println("Calling function")
f.invoke()
}
fun customRunWithParameter(f: (Int) -> Unit, p: Int): Unit {
println("Calling function with parameter $p")
f.invoke(p)
}
fun plainOldFunction(): Unit {
println("Plain old function")
}
f... | 0 | Kotlin | 0 | 0 | 1a5620538fe360ffd76beb721ac8781deffe8ff8 | 1,269 | jvm-snippets | Apache License 2.0 |
eth/proposals/src/commonMain/kotlin/kosh/eth/proposals/call.kt | niallkh | 855,100,709 | false | {"Kotlin": 1813876, "Swift": 594} | package kosh.eth.proposals
import kosh.eth.abi.Value.Address
import kosh.eth.rpc.Web3Provider
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
public suspend fun <T : Any> Web3Provider.call(
target: Address,
call: FunctionCall<T>,
): T = withContext(Dispatchers.Default) {
val re... | 0 | Kotlin | 0 | 3 | f48555a563dfee5b07184771a6c94c065765d570 | 779 | kosh | MIT License |
sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/timetable/CompletedLesson.kt | wulkanowy | 138,756,468 | false | {"Kotlin": 496844, "HTML": 63871} | package io.github.wulkanowy.sdk.scrapper.timetable
import io.github.wulkanowy.sdk.scrapper.adapter.CustomDateAdapter
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import java.time.LocalDateTime
@Serializable
data class CompletedLesson(
@SerialName("Data")
@Serializable(wit... | 5 | Kotlin | 6 | 28 | fc3ecf7257a377f8cb62ca6cf67ce626449bbf89 | 850 | sdk | Apache License 2.0 |
langsmith-java-core/src/test/kotlin/com/langsmith/api/models/PublicLatestRunRetrieveParamsTest.kt | langchain-ai | 774,515,765 | false | {"Kotlin": 2288977, "Shell": 1314, "Dockerfile": 305} | // File generated from our OpenAPI spec by Stainless.
package com.langsmith.api.models
import com.langsmith.api.models.*
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
class PublicLatestRunRetrieveParamsTest {
@Test
fun createPublicLatestRunRetrieveParams() {
Pub... | 1 | Kotlin | 0 | 2 | 922058acd6e168f6e1db8d9e67a24850ab7e93a0 | 863 | langsmith-java | Apache License 2.0 |
src/main/kotlin/com/replmc/replcraft/Replcraft.kt | SkyfallWasTaken | 861,218,847 | false | {"Kotlin": 3623, "Java": 520} | package com.replmc.replcraft
import com.replmc.replcraft.rpc.RpcServer
import net.fabricmc.api.ModInitializer
import net.minecraft.server.command.CommandManager
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback
import org.slf4j.LoggerFactory
import kotlinx.coroutines.*
import net.fabricmc.fabric.ap... | 0 | Kotlin | 0 | 0 | c17775b5c43d3c5038ee6096b693a85cfbce88d7 | 1,248 | replcraft | Creative Commons Zero v1.0 Universal |
k8s-plugin-igor/src/main/kotlin/com/amazon/spinnaker/igor/k8s/controller/GitVersionController.kt | nimakaviani | 287,605,692 | false | null | // Copyright 2022 Amazon.com, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 7 | Kotlin | 9 | 13 | 2a8bb2191ec71548fc318cdfde79b209707ede91 | 2,181 | managed-delivery-k8s-plugin | Apache License 2.0 |
src/main/kotlin/com/github/darderion/mundaneassignmentpolice/statisticsservice/statistics/GeneralStatistics.kt | Darderion | 410,550,044 | false | null | package com.github.darderion.mundaneassignmentpolice.statisticsservice.statistics
data class WordsStatistic(
val wordCount: Int,
val topKWords: Map<String,Int>
)
data class PageStatistic(
val lineCount: Int,
val sectionsStatistic: MutableList<SectionStatistics>
)
class GeneralStatistic(
val wordsSt... | 13 | HTML | 7 | 11 | 06cf4ec09d8fb80fddc157c0e5d75c48bc56d24c | 391 | map | MIT License |
feature-governance-api/src/main/java/io/novafoundation/nova/feature_governance_api/presentation/referenda/common/ReferendaStatusFormatter.kt | novasamatech | 415,834,480 | false | {"Kotlin": 11121812, "Rust": 25308, "Java": 17664, "JavaScript": 425} | package io.novafoundation.nova.feature_governance_api.presentation.referenda.common
import io.novafoundation.nova.feature_governance_api.domain.referendum.list.ReferendumStatusType
interface ReferendaStatusFormatter {
fun formatStatus(status: ReferendumStatusType): String
}
| 12 | Kotlin | 30 | 50 | 127f8739ca86dc74d006f018237daed0de5095a1 | 281 | nova-wallet-android | Apache License 2.0 |
src/easy/Trees/628-BinaryTreeLevelOrderTraversal.kt | diov | 170,882,024 | false | null | val result = mutableListOf<MutableList<Int>>()
fun levelOrder(root: TreeNode?): List<List<Int>> {
fillList(root, 0)
return result
}
fun fillList(node: TreeNode?, depth: Int) {
if (null == node) return
if (result.size == depth) {
result.add(mutableListOf())
}
result[depth].add(node.`va... | 0 | Kotlin | 0 | 0 | 668ef7d6d1296ab4df2654d5a913a0edabc72a3c | 397 | leetcode | MIT License |
src/main/kotlin/com/tkroman/kerl/server/epmd/handler/processor/StopRequestProcessor.kt | tkroman | 387,260,318 | false | null | package com.tkroman.kerl.server.epmd.handler.processor
import com.tkroman.kerl.server.epmd.InProcessEpmdServer
import io.appulse.epmd.java.core.model.request.Stop
import io.appulse.epmd.java.core.model.response.Response
import io.appulse.epmd.java.core.model.response.StopResult
import java.net.Socket
internal class S... | 0 | Kotlin | 0 | 0 | 994745ada93a016cfc22460b82f573d80c7b6250 | 813 | kerl | MIT License |
core/descriptors.jvm/src/org/jetbrains/kotlin/load/java/descriptors/PossiblyExternalAnnotationDescriptor.kt | JetBrains | 3,432,266 | false | null | /*
* 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.load.java.descriptors
import org.jetbrains.kotlin.descriptors.annotations.Annota... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 450 | kotlin | Apache License 2.0 |
src/main/kotlin/net/jibini/check/entity/behavior/WanderingBehavior.kt | zgoethel | 304,200,179 | false | null | package net.jibini.check.entity.behavior
import net.jibini.check.engine.RegisterObject
import net.jibini.check.engine.timing.DeltaTimer
import net.jibini.check.entity.ActionableEntity
import net.jibini.check.entity.Entity
import org.joml.Vector2d
import java.util.Random
import kotlin.math.cos
import kotlin.math.sin... | 0 | Kotlin | 0 | 2 | 6a71ff5903d3bc0d1c0438235104637359244a63 | 3,268 | CheckEngine | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/stepfunctions/tasks/SparkSubmitJobDriverDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.stepfunctions.tasks
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.stepfunctions.tasks.SparkSubmitJobDriver
@Generated
public fun buildSparkSubmitJobDriver(initializer: @AwsCdkDsl
S... | 1 | Kotlin | 0 | 0 | e9a0ff020b0db2b99e176059efdb124bf822d754 | 446 | aws-cdk-kt | Apache License 2.0 |
tree-leaf/src/main/kotlin/org/hchery/treeleaf/dao/CryptoDao.kt | hchery | 799,787,264 | false | {"Kotlin": 60401, "Java": 11448} | package org.hchery.treeleaf.dao
import org.hchery.treeleaf.components.dao.Dao
import org.hchery.treeleaf.db.key.AesKeyDbModel
import org.hchery.treeleaf.db.key.KeyDbModel
import org.springframework.data.repository.NoRepositoryBean
/**
* DATE: 2024/5/29
* AUTHOR: hchery
* URL: https://github.com/hchery
* EMAIL: <E... | 0 | Kotlin | 0 | 0 | 5a1467c90ac14937a8f3cdbcb5403c264363daa7 | 447 | TreeLeaf | MIT License |
java/src/main/java/trinsic/services/ProviderServiceKt.kt | trinsic-id | 361,889,702 | false | null | package trinsic.services
import com.google.protobuf.InvalidProtocolBufferException
import java.util.*
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import trinsic.okapi.DidException
import trinsic.sdk.options.v1.Options
import trinsic.services.provider.v1.*
class ProviderServiceKt(option... | 8 | Dart | 15 | 25 | fd7439f78b1bb2c72db8ca91c11659e618974694 | 4,006 | sdk | Apache License 2.0 |
Desenv. de APP I/ExViaCEPRetrofit/app/src/main/java/luiz/souza/exviacepretrofit/Constant.kt | LuizzSouza | 311,798,611 | false | {"Kotlin": 84239} | package luiz.souza.exviacepretrofit
class Constant {
companion object {
// val PROTOCOL = "http://"
// val BASE_URL = "${PROTOCOL}viacep.com.br/ws/"
val BASE_URL = "http://viacep.com.br/ws/"
}
//http://viacep.com.br/ws/ 01001000/json/
//http://viacep.com.br/ws/ RS/Porto A... | 0 | Kotlin | 0 | 0 | ec8ca3a3422cd68ea1bf7fc90214659481690431 | 344 | CursoQI-MOBILE | MIT License |
src/main/java/dev/mikchan/mcnp/votereceiver/core/config/boosted/BoostedYamlConfig.kt | MikChanNoPlugins | 612,779,274 | false | null | package dev.mikchan.mcnp.votereceiver.core.config.boosted
import dev.dejvokep.boostedyaml.YamlDocument
import dev.dejvokep.boostedyaml.dvs.versioning.BasicVersioning
import dev.dejvokep.boostedyaml.settings.dumper.DumperSettings
import dev.dejvokep.boostedyaml.settings.general.GeneralSettings
import dev.dejvokep.boost... | 0 | Kotlin | 0 | 0 | 120da22349a99cfb9bf106c44ec86eb9951917b8 | 1,251 | VoteReceiver | MIT License |
src/main/kotlin/br/com/skraper/crawler/models/CrawlerContext.kt | bruno-ortiz | 113,599,410 | false | null | package br.com.skraper.crawler.models
import br.com.skraper.crawler.adapters.Crawler
import com.github.kittinunf.fuel.httpGet
import java.io.Closeable
import java.util.Collections
import java.util.concurrent.atomic.AtomicInteger
import java.util.concurrent.atomic.AtomicLong
data class CrawlerContext(
val host... | 0 | Kotlin | 0 | 9 | fc0af9caf103bf4321094c4116ab0e9bbffd6fbb | 1,018 | skraper | MIT License |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/SortBy.kt | Danilo-Araujo-Silva | 271,904,885 | false | null | package com.daniloaraujosilva.mathemagika.library.common.mathematica.functions
import com.daniloaraujosilva.mathemagika.library.common.mathematica.MathematicaFunction
/**
*````
*
* Name: SortBy
*
* Full name: System`SortBy
*
* SortBy[list, f] sorts the elements of list in t... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 1,429 | mathemagika | Apache License 2.0 |
app/src/main/java/sample/arf/clean_architecture_with_mvvm/presentation/viewmodel/MainActivityViewmodel.kt | ariarostamifarah | 362,405,520 | false | null | package sample.arf.clean_architecture_with_mvvm.presentation.viewmodel
import android.app.Application
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import sample.arf.core.domain.Category
import sample.arf.core.domain.User
import sample.arf.clean_architecture_with_mvvm.framework.Int... | 0 | Kotlin | 0 | 0 | aa4f26f3dfde5d3c992284d094588580dd3bf0e0 | 2,526 | Sample_clean_architecture_with_mvvm | Apache License 2.0 |
app/src/main/java/com/example/AryaPutraRahma/Home.kt | 205410025 | 558,495,893 | false | {"Kotlin": 14787} | package com.example.AryaPutraRahma
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.fragment.findNavController
import com.example.AryaPutraRahma.databinding.FragmentHomeBinding
/**
* A s... | 0 | Kotlin | 0 | 0 | 3bf63db6fb5976d17fba24b77580eaa3227d65a2 | 1,331 | UTS_Mobile_AryaPutra | Apache License 2.0 |
biz/main/src/main/kotlin/io/goooler/demoapp/main/model/MainCommonVhModel.kt | Goooler | 188,988,687 | false | {"Kotlin": 153021, "Java": 152} | package io.goooler.demoapp.main.model
import io.goooler.demoapp.adapter.rv.core.ISpanSize
import io.goooler.demoapp.adapter.rv.diff.IDiffVhModelType
import io.goooler.demoapp.main.R
sealed interface MainCommonVhModel :
IDiffVhModelType,
ISpanSize {
data class Repo(
val logoUrl: String?,
val content: St... | 6 | Kotlin | 11 | 70 | fa50451d91c7e553b1e302ffa0a3e3c0f1012d02 | 1,650 | DemoApp | Apache License 2.0 |
command-core/src/main/kotlin/dev/gimme/command/commands/HelpCommand.kt | Gimme | 315,114,245 | false | null | package dev.gimme.command.commands
import dev.gimme.command.Command
import dev.gimme.command.function.FunctionCommand
import dev.gimme.command.function.CommandFunction
/**
* Displays a list of available commands.
*/
class HelpCommand(private val commands: () -> Iterable<Command<*>>) : FunctionCommand<List<HelpComma... | 0 | Kotlin | 0 | 0 | d37da3d45af7f525d3bb1106f2278a39df7685be | 753 | command | MIT License |
buildSrc/src/main/kotlin/snippets/SnippetComparison.kt | sellmair | 827,882,526 | false | {"Kotlin": 97045} | package snippets
import java.io.File
private val sampleRegex = Regex("""\[snippet]: \((.*)\)""")
internal fun findSnippets(
root: File,
docs: Iterable<File>,
sources: Iterable<File>,
): Map<DocSnippet, Snippet?> = buildMap {
docs.forEach { doc ->
putAll(findSnippets(root, doc, sources))
}... | 0 | Kotlin | 1 | 83 | 133d0ccb8046ce516062daeb43ee6e0142b02b7e | 3,012 | evas | MIT License |
src/main/kotlin/org/arxing/bitrisesdk/core/calladapter/ResultCallAdapter.kt | Arxing | 390,718,612 | false | null | package org.arxing.bitrisesdk.core.calladapter
import retrofit2.Call
import retrofit2.CallAdapter
import java.lang.reflect.Type
import kotlin.Result
class ResultCallAdapter<T>(
private val clazz: Class<T>
) : CallAdapter<T, Call<Result<T>>> {
override fun responseType(): Type = clazz
override fun adapt(call: ... | 0 | Kotlin | 0 | 0 | 9639ad21b263fd1ece2383e9ca5a8cd0eb3f2022 | 382 | Bitrise-Kotlin-Sdk | Apache License 2.0 |
app/src/main/java/com/bennyhuo/tieguanyin/sample/KotlinActivity.kt | zxxqc | 143,941,797 | true | {"Java": 153717, "Kotlin": 13500, "Shell": 804} | package com.bennyhuo.tieguanyin.sample
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.bennyhuo.tieguanyin.annotations.*
import com.bennyhuo.tieguanyin.annotations.GenerateMode.Both
import kotlinx.android.synthetic.main.activity_main.*
/**
* Created b... | 0 | Java | 0 | 1 | bc5e1174e8c3f6fcf32b68e4b31adc852b6247a7 | 1,837 | TieGuanYin | Apache License 2.0 |
src/main/kotlin/com/query/utils/DataOutputStreamExt.kt | osrsquery | 453,886,617 | false | {"Kotlin": 183180, "Java": 45630} | package com.query.utils
import java.io.DataOutputStream
fun DataOutputStream.writeParams(data : Map<Int, String>) {
writeByte(data.size)
for (entry in data.entries) {
writeByte(if (isObjectInteger(entry.value)) 1 else 0)
writeByte(entry.key shr 16)
writeByte(entry.key shr 8)
w... | 1 | Kotlin | 3 | 3 | 00d256ae992ebdf2c2301bfb8b9a684aaeee3412 | 742 | OsrsQuery | MIT License |
module-5/solid-demo/src/main/kotlin/org/data4purpose/soliddemo/config/SecurityConfiguration.kt | data4purpose | 609,145,529 | false | {"Kotlin": 23473, "Python": 19017, "JavaScript": 6302, "HTML": 1790, "Starlark": 841, "Shell": 322} | package org.data4purpose.soliddemo.config
import org.springframework.context.annotation.Configuration
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.builders.WebSecurity
import org.springframework.security.config.annotation.web.... | 0 | Kotlin | 0 | 2 | 44c1eb79d753dca7f8e637af0f42bc06426d238a | 1,498 | workshop-solid-data-pod | Apache License 2.0 |
app/src/main/java/com/biotel/iot/ui/details/recyclerview/model/IBeaconItem.kt | pandeypiyush94 | 282,539,893 | false | {"Java": 79144, "Kotlin": 39672} | package com.biotel.iot.ui.details.recyclerview.model
import com.biotel.iot.ui.common.recyclerview.RecyclerViewItem
import uk.co.alt236.bluetoothlelib.device.beacon.ibeacon.IBeaconManufacturerData
class IBeaconItem(iBeaconData: IBeaconManufacturerData) : RecyclerViewItem {
val major: Int = iBeaconData.major
va... | 1 | null | 1 | 1 | 5e8d9614a90a1c3d40061597e25892f7ef28f0f3 | 589 | Biotel-IoT | Apache License 2.0 |
src/main/kotlin/sample/usecase/SecurityService.kt | jkazama | 145,971,105 | false | null | package sample.usecase
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.security.core.authority.SimpleGrantedAuthority
import org.springframework.security.core.userdetails.UsernameNotFoundException
import sample.ErrorKeys
import s... | 1 | Kotlin | 1 | 7 | 8d03ce29d4988325c0e369c54b9b784071c3da29 | 3,146 | sample-boot-kotlin | MIT License |
ui/src/main/kotlin/com/wb/ui/compose/molecules/cells/InfoCell.kt | waynils | 756,295,236 | false | {"Kotlin": 99166} | package com.wb.ui.compose.molecules.cells
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.com... | 0 | Kotlin | 0 | 0 | 57adf7bd499cf1f64633f8c9d427a326208d3c61 | 2,987 | Album-app | Apache License 2.0 |
backend/src/main/kotlin/org/quizmania/question/adapter/out/QuestionJsonFileRepositoryAdapter.kt | stoerti | 639,769,739 | false | {"Kotlin": 75245, "TypeScript": 50731, "HTML": 1721, "CSS": 930} | package org.quizmania.question.adapter.out
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
import jakarta.annotation.PostConstruct
import org.apache.commons.io.FileUtils
import org.quizmania.game.common.Question
import org.quizmania.game.common.Questi... | 7 | Kotlin | 0 | 2 | f877459e4765133f58ba545f8f6d5de78bc0e213 | 2,440 | quizmania | MIT License |
app/src/main/java/com/sagikor/android/jobao/viewmodel/JobViewModel.kt | sagiK11 | 362,213,223 | false | null | package com.sagikor.android.jobao.viewmodel
import androidx.hilt.Assisted
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.*
import com.sagikor.android.jobao.data.JobDao
import com.sagikor.android.jobao.data.PreferencesHandler
import com.sagikor.android.jobao.data.SortOrder
import com.sagikor.... | 0 | Kotlin | 0 | 0 | e6d64e0db6efb1cc438a001a6553c3a8ca690375 | 4,350 | Jobao-Android | MIT License |
backend/src/main/kotlin/com/mobilispect/backend/data/gtfs/GTFSStopDataSource.kt | alandovskis | 502,662,711 | false | {"Kotlin": 358105, "Shell": 472, "Swift": 345} | package com.mobilispect.backend.data.gtfs
import com.mobilispect.backend.data.stop.Stop
import com.mobilispect.backend.data.stop.StopDataSource
import com.mobilispect.backend.data.stop.StopIDDataSource
import com.mobilispect.backend.util.readTextAndNormalize
import kotlinx.serialization.ExperimentalSerializationApi
im... | 3 | Kotlin | 0 | 0 | 25955b88c25b87fec7f69d64dd246155c2d17b92 | 1,866 | mobilispect | Apache License 2.0 |
app/src/main/java/com/example/YTBoxing/DetailActivity.kt | dcalibri | 708,411,836 | false | {"Kotlin": 16142} | package com.example.YTBoxing
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.ImageView
import android.widget.TextView
import android.widget.Button
import android.content.Intent
import com.example.YTBoxing.data.Datasource
class DetailActivity : AppCompatActivity() {
... | 0 | Kotlin | 0 | 0 | 9427753ad14520c99589f06fdf1c1e9d8adbf8c0 | 1,557 | PPBM-02-7708213028-FadhliShafhanLubis | MIT License |
core/src/main/java/com/karntrehan/posts/core/di/AppModule.kt | karntrehan | 93,308,442 | false | null | package com.karntrehan.posts.core.di
import android.content.Context
import com.karntrehan.posts.core.networking.AppScheduler
import com.karntrehan.posts.core.networking.Scheduler
import dagger.Module
import dagger.Provides
import javax.inject.Singleton
@Module
class AppModule(val context: Context) {
@Provides
... | 0 | Kotlin | 98 | 611 | b22ec155b9ddf831a7670cf216187dde3b0264af | 498 | Posts | Apache License 2.0 |
src/main/java/org/warfarin/ckyschool/sidecarj/remote/model/CkyschoolProtocolHeader.kt | project-warfarin | 339,115,138 | false | null | package org.warfarin.ckyschool.sidecarj.remote.model
import io.netty.buffer.ByteBuf
import kotlin.math.min
data class CkyschoolProtocolHeader(
val magic: Int,
val majorVersion: Byte,
val minorVersion: Byte,
val patchVersion: Byte,
val pluginId: Byte,
val features: List<... | 0 | Kotlin | 0 | 0 | 15d2a22d81d937c79c01ecad51ea0fe2d013331b | 1,863 | ckyschool-sidecar-java | MIT License |
falkon-sql-builder-h2/src/main/kotlin/com/jayrave/falkon/sqlBuilders/h2/H2InsertSqlBuilder.kt | jayrave | 65,279,209 | false | null | package com.jayrave.falkon.sqlBuilders.h2
import com.jayrave.falkon.sqlBuilders.InsertSqlBuilder
import com.jayrave.falkon.sqlBuilders.common.SimpleInsertSqlBuilder
class H2InsertSqlBuilder : InsertSqlBuilder {
override fun build(tableName: String, columns: Iterable<String>): String {
return SimpleInsert... | 6 | Kotlin | 2 | 12 | ce42d553c578cd8e509bbfd7effc5d56bf3cdedd | 364 | falkon | Apache License 2.0 |
ui/src/commonMain/kotlin/kosh/ui/component/colors/dynamicColor.kt | niallkh | 855,100,709 | false | {"Kotlin": 1942525, "Swift": 25802} | package kosh.ui.component.colors
import androidx.compose.material3.ColorScheme
import arrow.core.memoize
import com.ionspin.kotlin.bignum.integer.BigInteger
import com.ionspin.kotlin.bignum.integer.Sign
import com.materialkolor.dynamicColorScheme
import com.materialkolor.hct.Hct
import com.materialkolor.ktx.toColor
im... | 0 | Kotlin | 0 | 3 | f48555a563dfee5b07184771a6c94c065765d570 | 917 | kosh | MIT License |
fastpermissions/src/main/java/com/karleinstein/fastpermissions/FastPermission.kt | tuannq-0847 | 287,727,055 | false | null | package com.karleinstein.fastpermissions
import android.app.Activity
import android.content.Intent
import android.content.pm.PackageManager
import android.util.Log
import androidx.appcompat.app.AlertDialog
import androidx.core.app.ActivityCompat
object FastPermission {
private var remainingPermissions: List<Stri... | 0 | Kotlin | 0 | 0 | 5ebd7e5c2eb665b6a153758fbc3b1f6447d44922 | 3,766 | FastPermissions | MIT License |
services/hanke-service/src/main/kotlin/fi/hel/haitaton/hanke/StatusController.kt | City-of-Helsinki | 300,534,352 | false | null | package fi.hel.haitaton.hanke
import mu.KotlinLogging
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.http.HttpStatus
import org.springframework.http.ResponseEntity
import org.springframework.jdbc.core.JdbcOperations
import org.springframework.web.bind.annotation.GetMapping
imp... | 6 | Kotlin | 4 | 1 | 8f5d9dd7af0f78b8f19598c484ae657c26f3f9b8 | 1,454 | haitaton-backend | MIT License |
plugin/src/main/kotlin/eu/kakde/sonatypecentral/SonatypeCentralPublishExtension.kt | ani2fun | 759,937,099 | false | {"Kotlin": 36627} | package eu.kakde.sonatypecentral
import org.gradle.api.Action
import org.gradle.api.Project
import org.gradle.api.model.ObjectFactory
import org.gradle.api.provider.ListProperty
import org.gradle.api.provider.Property
import org.gradle.api.publish.VersionMappingStrategy
import org.gradle.api.publish.maven.MavenPom
imp... | 1 | Kotlin | 0 | 2 | bec44116976aa088247fe280af75340857ef5f48 | 1,839 | sonatype-maven-central-publisher | Apache License 2.0 |
view/src/main/java/com/example/view/bezier/MeditationView.kt | yudengwei | 287,524,563 | false | null | package com.example.view.bezier
import android.animation.ObjectAnimator
import android.content.Context
import android.graphics.BitmapFactory
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Build
import android.util.AttributeSet
import android.widget.FrameLayout
import and... | 1 | null | 1 | 1 | d6d644e330f5f2b3d43e2451933a30987a5d373e | 2,607 | Demo | Apache License 2.0 |
app/src/main/java/io/horizontalsystems/bankwallet/modules/intro/IntroPresenter.kt | fahimaltinordu | 312,207,740 | true | {"Kotlin": 1883211, "Java": 33448, "Ruby": 5803, "Shell": 2024} | package io.horizontalsystems.bankwallet.modules.intro
import androidx.lifecycle.ViewModel
class IntroPresenter(val router: IntroModule.IRouter) : ViewModel() {
fun start() {
router.navigateToWelcome()
}
fun skip() {
router.navigateToWelcome()
}
}
| 0 | Kotlin | 0 | 4 | d3094c4afaa92a5d63ce53583bc07c8fb343f90b | 283 | WILC-wallet-android | MIT License |
sample/f2-sample-rsocket/src/main/kotlin/f2/sample/rsocket/F2SampleRSocketApp.kt | smartbcity | 746,765,045 | false | {"Java": 132969, "Kotlin": 130142, "Gherkin": 24157, "JavaScript": 1654, "Dockerfile": 745, "Makefile": 481, "CSS": 102} | package f2.sample.rsocket
import f2.dsl.fnc.F2Function
import f2.dsl.fnc.f2Function
import java.security.MessageDigest
import java.util.Base64
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.context.annotation.Bean
/**
* De... | 1 | Kotlin | 1 | 0 | c3fb65badd711c180f5ddebb68da49fb09968937 | 1,130 | fixers-f2 | Apache License 2.0 |
arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/raise/IorSpec.kt | arrow-kt | 86,057,409 | false | null | package arrow.core.raise
import arrow.core.Either
import arrow.core.Ior
import arrow.core.left
import arrow.core.right
import arrow.core.test.nonEmptyList
import arrow.core.toIorNel
import io.kotest.assertions.throwables.shouldThrow
import io.kotest.matchers.shouldBe
import io.kotest.property.Arb
import io.kotest.prop... | 42 | null | 451 | 6,170 | c47d9bcfbb402f827b312dbcfec1d5cf68ba2fc3 | 4,924 | arrow | Apache License 2.0 |
src/main/kotlin/customConsole/CustomConsole.kt | zp4rker | 328,897,992 | false | {"Gradle": 2, "Text": 1, "Ignore List": 1, "Markdown": 1, "Java": 1, "XML": 1, "Kotlin": 15} | package customConsole
import io.leego.banana.BananaUtils
import io.leego.banana.Font
import io.leego.banana.Layout
import net.dv8tion.jda.api.JDABuilder
import net.dv8tion.jda.api.events.ReadyEvent
import net.dv8tion.jda.api.hooks.AnnotatedEventManager
import net.dv8tion.jda.api.hooks.SubscribeEvent
import org.fusesou... | 0 | Kotlin | 0 | 0 | 5b8ddc262130be96b5f5fb018247ec1279ae0b29 | 3,179 | apples | Apache License 2.0 |
app/src/main/java/hive/com/paradiseoctopus/awareness/createplace/helper/WifiScanReceiver.kt | cliffroot | 68,677,882 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "JSON": 1, "Proguard": 1, "Java": 2, "XML": 39, "Kotlin": 34} | package hive.com.paradiseoctopus.awareness.createplace.helper
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.net.wifi.ScanResult
import android.net.wifi.WifiManager
import rx.subjects.PublishSubject
import rx.subjects.ReplaySubject
/**
* Created b... | 0 | Kotlin | 0 | 0 | 77bd018fd938ebebe804ecceca9315112564246b | 862 | awareness | Apache License 2.0 |
common/src/main/java/com/worldline/connect/android/example/kotlin/common/utils/Status.kt | Worldline-Global-Collect | 748,163,778 | false | {"Kotlin": 220841} | /*
* Copyright (c) 2022. Worldline Global Collect B.V
*/
package com.worldline.connect.android.example.kotlin.common.utils
import com.worldline.connect.sdk.client.android.network.ApiErrorResponse
/**
* This class is an example how to store the result of async call
*/
sealed class Status {
data class Success... | 0 | Kotlin | 0 | 0 | 79b89983be3b4cdb6f51da27385acd3117fe5a2f | 542 | connect-sdk-client-android-example-kotlin | Apache License 2.0 |
src/main/kotlin/nitrolang/typeinference/TConstraint.kt | cout970 | 699,028,788 | false | {"Markdown": 2, "Gradle Kotlin DSL": 2, "ANTLR": 2, "INI": 2, "Shell": 2, "Ignore List": 2, "Batchfile": 1, "Git Attributes": 1, "Text": 1, "Kotlin": 86, "Java": 6, "JSON with Comments": 1, "HTML": 3, "HTTP": 1, "XML": 2} | package nitrolang.typeinference
import nitrolang.ast.LstTag
import nitrolang.util.Span
sealed interface TConstraint {
val span: Span
}
data class TBounds(
val id: Int,
val target: TypeBox,
val requiredTags: List<LstTag>,
override val span: Span
) : TConstraint
data class TFindField(
val id: ... | 0 | Java | 0 | 3 | 9f501d19da02bd7022ac9029f23cd1d19205d150 | 877 | NitroLang | MIT License |
src/main/java/com/loanely/application/exceptions/PasswordMismatchException.kt | iankang | 792,671,872 | false | {"JSON with Comments": 1, "Batchfile": 1, "JSON": 3, "Markdown": 2, "Shell": 1, "Maven POM": 1, "Ignore List": 1, "Java Properties": 1, "Java": 19, "HTML": 1, "CSS": 6, "Kotlin": 34, "Text": 1, "SQL": 1, "YAML": 1} | package com.thinkit.brs.exceptions
class PasswordMismatchException(message:String): RuntimeException(message) {
} | 0 | Java | 0 | 0 | 1b61437c44a5bd444341d5dea4da4ac48cffd7ad | 114 | loanely-vaadin | The Unlicense |
app/src/main/java/com/example/calculodoimc/ResultActivity.kt | Walace-Anjos | 743,721,960 | false | {"Kotlin": 3731} | package com.example.calculodoimc
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.MenuItem
import android.widget.TextView
class ResultActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
... | 0 | Kotlin | 0 | 0 | ec2943fa2093153aff608e88ab039e3c0d5dec5f | 1,294 | CalculoIMC | MIT License |
app/src/main/java/com/example/calculodoimc/ResultActivity.kt | Walace-Anjos | 743,721,960 | false | {"Kotlin": 3731} | package com.example.calculodoimc
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.MenuItem
import android.widget.TextView
class ResultActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
... | 0 | Kotlin | 0 | 0 | ec2943fa2093153aff608e88ab039e3c0d5dec5f | 1,294 | CalculoIMC | MIT License |
app/src/main/java/com/Mostoles/Hero_Dex/MenuActivity.kt | elgynmdz | 627,766,126 | false | null | package com.Mostoles.Hero_Dex
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import com.Mostoles.Hero_Dex.superheroapp.SuperHeroListActivity
class MenuActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: B... | 0 | Kotlin | 0 | 0 | 21e1eb7fdb7395d31fd45148102b644e93a7ef85 | 712 | Hero_DEX | Apache License 2.0 |
src/main/kotlin/io/github/ugaikit/gemini4kt/EmbedResponse.kt | takanori-ugai | 774,120,161 | false | {"Kotlin": 57353} | package io.github.ugaikit.gemini4kt
import kotlinx.serialization.Serializable
/**
* Represents the response from an embedding operation, containing the computed
* embedding values.
*
* @property embedding A [Values] object that holds the numerical representation
* of the embedded data. This could be a vector or ... | 0 | Kotlin | 0 | 0 | 3ab0a8f66d54497005140c3658744bfb3c074488 | 480 | Gemini4KT | Apache License 2.0 |
app/src/main/java/io/benic/shoppinglist/view/ItemFragment.kt | BBenicio | 325,425,619 | false | null | package io.benic.shoppinglist.view
import android.os.Bundle
import android.os.Handler
import android.text.TextWatcher
import android.util.Log
import android.view.*
import android.widget.EditText
import android.widget.SearchView
import androidx.core.content.ContextCompat
import androidx.fragment.app.Fragment
import and... | 0 | Kotlin | 0 | 0 | f1ee39e0ef2e61c0a78066483918c51a15d9223f | 12,808 | shoppinglist | MIT License |
feature-crowdloan-impl/src/main/java/jp/co/soramitsu/crowdloan/impl/presentation/contribute/custom/karura/KaruraContributeSubmitter.kt | soramitsu | 278,060,397 | false | {"Kotlin": 5738291, "Java": 18796} | package jp.co.soramitsu.crowdloan.impl.presentation.contribute.custom.karura
import java.math.BigDecimal
import jp.co.soramitsu.crowdloan.impl.domain.contribute.custom.karura.KaruraContributeInteractor
import jp.co.soramitsu.crowdloan.impl.presentation.contribute.custom.BonusPayload
import jp.co.soramitsu.crowdloan.im... | 15 | Kotlin | 30 | 89 | 812c6ed5465d19a0616865cbba3e946d046720a1 | 912 | fearless-Android | Apache License 2.0 |
feature-crowdloan-impl/src/main/java/jp/co/soramitsu/crowdloan/impl/presentation/contribute/custom/karura/KaruraContributeSubmitter.kt | soramitsu | 278,060,397 | false | {"Kotlin": 5738291, "Java": 18796} | package jp.co.soramitsu.crowdloan.impl.presentation.contribute.custom.karura
import java.math.BigDecimal
import jp.co.soramitsu.crowdloan.impl.domain.contribute.custom.karura.KaruraContributeInteractor
import jp.co.soramitsu.crowdloan.impl.presentation.contribute.custom.BonusPayload
import jp.co.soramitsu.crowdloan.im... | 15 | Kotlin | 30 | 89 | 812c6ed5465d19a0616865cbba3e946d046720a1 | 912 | fearless-Android | Apache License 2.0 |
paint2/src/main/kotlin/ru/nsu/e/shelbogashev/art/studio/paint/context/ApplicationContext.kt | EricShelbogashev | 745,928,535 | false | {"Kotlin": 101898, "Java": 224} | package ru.nsu.e.shelbogashev.art.studio.paint.context
data class ApplicationContext(
val properties: ApplicationProperties,
val components: ApplicationComponents
) | 0 | Kotlin | 0 | 0 | 6881eb773624fa420425983e2a4b73cb76ce5f17 | 173 | engineering-computer-graphics | MIT License |
sei-chain/src/commonMain/kotlin/seiprotocol/seichain/dex/pair.converter.kt | jdekim43 | 759,720,689 | false | {"Kotlin": 8940168, "Java": 3242559} | // Transform from dex/pair.proto
@file:GeneratorVersion(version = "0.3.1")
package seiprotocol.seichain.dex
import google.protobuf.Any
import java.lang.IllegalStateException
import kr.jadekim.protobuf.`annotation`.GeneratorVersion
import kr.jadekim.protobuf.converter.ProtobufConverter
import kr.jadekim.protobuf.conve... | 0 | Kotlin | 0 | 0 | eb9b3ba5ad6b798db1d8da208b5435fc5c1f6cdc | 1,151 | chameleon.proto | Apache License 2.0 |
pr_1/app/src/main/java/com/example/pr_1/Expense.kt | THE80X | 861,451,505 | false | {"Kotlin": 9943} | package com.example.pr_1
import java.util.Date
import java.util.UUID
class Expense {
val Id: UUID = UUID.randomUUID()
var Sum: Double
var Category: String
var Date: Date
constructor(Sum: Double, Category: String, Date: Date){
this.Sum = Sum
this.Category = Category
this.Da... | 0 | Kotlin | 0 | 0 | 4897011197c0cdba6897682d3db1c3fead0003d2 | 439 | Mirea | MIT License |
CameraSample/app/src/main/java/com/laima/camerasample/CameraActivity.kt | LaimaPark | 565,465,598 | false | {"Kotlin": 36486} | package com.laima.camerasample
import android.Manifest
import android.annotation.SuppressLint
import android.content.Context
import android.content.pm.PackageManager
import android.os.Build
import android.os.Bundle
import android.view.View
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
imp... | 0 | Kotlin | 0 | 0 | b50c30ae76c91ea80e06e92b7cdf256ba206b2f9 | 782 | Jetpack_Sample | Apache License 2.0 |
kraii-compiler-plugin/src/main/kotlin/kraii/KraiiSyntheticResolveExtension.kt | jbarop | 566,958,919 | false | null | package kraii
import org.jetbrains.kotlin.descriptors.*
import org.jetbrains.kotlin.descriptors.annotations.Annotations
import org.jetbrains.kotlin.descriptors.impl.SimpleFunctionDescriptorImpl
import org.jetbrains.kotlin.name.Name
import org.jetbrains.kotlin.resolve.BindingContext
import org.jetbrains.kotlin.resolve.... | 0 | Kotlin | 0 | 0 | a8c4ffa35fcb4591ed8a6dfbd143e81bdae058ca | 1,895 | kraii | MIT License |
app/src/main/java/io/github/incalc/iresta/data/MealDao.kt | incalc | 206,979,230 | false | {"Kotlin": 14613} | package io.github.incalc.iresta.data
import androidx.room.*
@Dao
interface MealDao {
@Delete
fun delete(meal: Meal)
@Delete
fun deleteAll(meals: List<Meal>)
@Query("SELECT * FROM meals")
fun getAll(): List<Meal>
@Insert
fun insert(meal: Meal)
@Insert
fun insert(vararg meal... | 0 | Kotlin | 0 | 1 | a05ede693b1b3c783a23794c4bdfcb8dffd4b7bf | 471 | iresta | MIT License |
app/src/main/java/io/github/incalc/iresta/data/MealDao.kt | incalc | 206,979,230 | false | {"Kotlin": 14613} | package io.github.incalc.iresta.data
import androidx.room.*
@Dao
interface MealDao {
@Delete
fun delete(meal: Meal)
@Delete
fun deleteAll(meals: List<Meal>)
@Query("SELECT * FROM meals")
fun getAll(): List<Meal>
@Insert
fun insert(meal: Meal)
@Insert
fun insert(vararg meal... | 0 | Kotlin | 0 | 1 | a05ede693b1b3c783a23794c4bdfcb8dffd4b7bf | 471 | iresta | MIT License |
src/main/kotlin/eu/automateeverything/nspanelplugin/blocks/NsPanelBlockCategories.kt | tomaszbabiuk | 669,691,372 | false | null | /*
* Copyright (c) 2019-2023 <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 agre... | 0 | Kotlin | 0 | 0 | d22c52d3d85f97cf7195e09d6d7f71f2b1a5867c | 985 | aeplugin-nspanel | Apache License 2.0 |
gleam-core/src/test/kotlin/at/hannesmoser/gleam/transforms/CollectionTest.kt | eliias | 289,132,196 | false | {"Kotlin": 73096, "Shell": 591, "Dockerfile": 31} | package at.hannesmoser.gleam.transforms
import io.github.serpro69.kfaker.Faker
import org.apache.beam.sdk.testing.PAssert
import org.apache.beam.sdk.testing.TestPipeline
import org.apache.beam.sdk.transforms.Create
import org.junit.Rule
import org.junit.Test
internal class CollectionTest {
@Rule
@JvmField
val p... | 0 | Kotlin | 0 | 3 | 9689cea73d7a4603a987208843a03b9365ae735d | 753 | gleam | MIT License |
compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/loops/handlers/ReversedHandler.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.backend.common.lower.loops.handlers
import org.jetbrains.kotlin.backend.common.C... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,679 | kotlin | Apache License 2.0 |
android/app/src/main/java/com/algorand/android/modules/parity/data/mapper/CurrencyDetailDTOMapper.kt | perawallet | 364,359,642 | false | {"Swift": 8753304, "Kotlin": 7709389, "Objective-C": 88978, "Shell": 7715, "Ruby": 4727, "C": 596} | /*
* Copyright 2022 Pera Wallet, LDA
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,... | 22 | Swift | 62 | 181 | 92fc77f73fa4105de82d5e87b03c1e67600a57c0 | 1,360 | pera-wallet | Apache License 2.0 |
app/src/main/java/github/alexzhirkevich/studentbsuby/data/models/News.kt | alexzhirkevich | 452,910,975 | false | {"Kotlin": 479612} | package github.alexzhirkevich.studentbsuby.data.models
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
data class News(
@PrimaryKey val id : Int,
val title : String,
val preview : String?,
)
@Entity
data class NewsContent(
@PrimaryKey val id : Int,
val content : String,
) | 0 | Kotlin | 0 | 5 | bf04ce772bb3d9485dffd5d3abf252be1754ce51 | 315 | student-bsu-by | MIT License |
app/src/main/java/com/savi/portadecinema/repositories/MovieRepository.kt | lostptr | 537,272,567 | false | null | package com.savi.portadecinema.repositories
import com.savi.portadecinema.data.local.dao.MovieDao
import com.savi.portadecinema.data.local.entities.MovieEntity
import com.savi.portadecinema.data.remote.tmdb.TmdbService
import com.savi.portadecinema.models.MovieDetails
class MovieRepository(private val tmdbService: Tm... | 3 | Kotlin | 0 | 0 | 91007176167e640ae61c06cff8658dc7b0755295 | 1,268 | porta_de_cinema | MIT License |
app/src/main/java/com/example/aguadiaria/GlassType.kt | afoliveira111 | 728,381,700 | false | {"Kotlin": 3380} | package com.example.aguadiaria
enum class GlassType(val value: Int) {
SMALL(200),
MEDIUM(250),
LARGE(500)
} | 0 | Kotlin | 0 | 0 | d7660956bf9c98c1466e571e6441106d7304ad84 | 120 | AguaDiaria | The Unlicense |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.