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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/com/theendercore/packed/data/PakItemTags.kt | theendercore | 674,191,573 | false | {"Kotlin": 35748} | package com.theendercore.packed.data
import com.theendercore.packed.Packed.id
import com.theendercore.packed.util.tag
import net.minecraft.item.Item
import net.minecraft.registry.RegistryKeys
import net.minecraft.registry.tag.TagKey
import net.minecraft.util.Identifier
object PakItemTags {
val ITEM_TAGS = mutable... | 0 | Kotlin | 0 | 0 | 0b3e4373b64ae2a0bdb6275468c8d81807ccef48 | 585 | Packed | MIT License |
app/src/main/java/com/hover/stax/ussd_library/LibraryFragment.kt | UseHover | 286,494,631 | false | {"Kotlin": 1033610, "Java": 88968, "Shell": 274, "Ruby": 235} | /*
* Copyright 2022 Stax
*
* 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 wri... | 106 | Kotlin | 72 | 79 | 5b735dc215b63533420fe899c579a42a44f598ea | 5,963 | Stax | Apache License 2.0 |
src/main/kotlin/com/github/ferinagy/adventOfCode/aoc2022/2022-23.kt | ferinagy | 432,170,488 | false | null | package com.github.ferinagy.adventOfCode.aoc2022
import com.github.ferinagy.adventOfCode.Coord2D
fun main() {
println("Part1:")
println(part1(testInput1))
println(part1(input))
println()
println("Part2:")
println(part2(testInput1))
println(part2(input))
}
private fun part1(input: String)... | 0 | Kotlin | 0 | 1 | ab1e894995c7a40b3c1ce244f842fc5fe3658ead | 7,549 | advent-of-code | MIT License |
app/src/main/java/com/bett/androidkotlinanimationimagealongpath/MainActivity.kt | betranthanh | 101,761,528 | false | null | package com.bett.androidkotlinanimationimagealongpath
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
... | 0 | Kotlin | 5 | 9 | 14d2a849e75895f97776d60ff82b6c8ba230f239 | 2,045 | android-kotlin-animation-move-image-along-path | MIT License |
underlayk/src/main/java/com/mozhimen/underlayk/logk/annors/ALogKType.kt | mozhimen | 353,952,154 | false | null | package com.mozhimen.underlayk.logk.annors
import androidx.annotation.IntDef
import com.mozhimen.basick.elemk.cons.CLogPriority
/**
* @ClassName LogKType
* @Description TODO
* @Author <NAME> / Mozhimen
* @Date 2021/12/20 16:59
* @Version 1.0
*/
@IntDef(value = [CLogPriority.V, CLogPriority.D, CLogPriority.I, CL... | 0 | Kotlin | 6 | 112 | efbc55d940b169511106a9b813513fc3f86df1fb | 433 | SwiftKit | Apache License 2.0 |
app/src/main/java/com/example/moviescourseapp/presentation/detail/MovieDetailsViewModel.kt | adolfo1295 | 755,302,290 | false | {"Kotlin": 42090} | package com.example.moviescourseapp.presentation.detail
import android.util.Log
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.moviescourseapp.data.MoviesRepository
import com.example.moviescourseapp.presentation.home.ErrorMessage
import dagger.hilt.android.lifecycle.Hi... | 0 | Kotlin | 0 | 0 | b1951466830fed652f04df384dcb5b309b5f0bd5 | 1,695 | MoviesCourseApp | Apache License 2.0 |
buildSrc/src/test/kotlin/ch/acanda/gradle/fabrikt/build/generator/FilePropertyGeneratorTest.kt | acanda | 687,155,869 | false | {"Kotlin": 104277} | package ch.acanda.gradle.fabrikt.build.generator
import ch.acanda.gradle.fabrikt.build.ExtensionGeneratorTest.Companion.writeToString
import com.squareup.kotlinpoet.TypeSpec
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe
class FilePropertyGeneratorTest : StringSpec({
"fileProperty... | 2 | Kotlin | 0 | 2 | 138b8acccf5f4f255ab42f25dae00d4bd889c3b5 | 2,803 | fabrikt-gradle-plugin | Apache License 2.0 |
src/main/kotlin/us/sodiumlabs/electorate/ranked/RankedApproval.kt | napentathol | 130,545,021 | false | null | package us.sodiumlabs.electorate.ranked
import com.google.common.collect.HashBasedTable
import us.sodiumlabs.electorate.sim.Candidate
import us.sodiumlabs.electorate.sim.ElectoralSystem
import us.sodiumlabs.electorate.sim.ElectoralSystemName
import us.sodiumlabs.electorate.sim.Electorate
import us.sodiumlabs.electorat... | 0 | Kotlin | 0 | 1 | ad82e05775861030c40e0c39384016de34e69275 | 2,008 | electorate | MIT License |
src/main/java/dev/zprotect/obfuscator/api/TransformerPriority.kt | JessSystemV | 599,200,266 | false | null | /**
* Copyright (C) 2022 zProtect
*
* This software is NOT free software.
* You may NOT distribute it or modify it without explicit permission.
*
* This software has been created in the hope that it will be useful,
* but WITHOUT ANY WARRANTY. zProtect is NOT liable for ANY damages caused by unlawful distribution... | 0 | null | 2 | 8 | ffb39ed146380b6a9ef50b10a0e51cee01aad4ef | 598 | zProtect | MIT License |
memkched-client/src/main/kotlin/com/raycoarana/memkched/internal/ProtocolAbstractFactory.kt | raycoarana | 597,846,682 | false | null | package com.raycoarana.memkched.internal
import com.raycoarana.memkched.api.Protocol
import com.raycoarana.memkched.api.Protocol.BINARY
import com.raycoarana.memkched.api.Protocol.TEXT
import com.raycoarana.memkched.internal.text.TextProtocolAbstractFactory
import kotlinx.coroutines.channels.Channel
import java.net.In... | 2 | Kotlin | 0 | 0 | 0e851d420910b654be04feef81d4a26c8abdd708 | 1,209 | memkched | MIT License |
src/main/kotlin/br/com/zup/casadocodigo/book/BookDetailResponse.kt | walisonpereirazup | 313,660,618 | true | {"Kotlin": 42214, "Dockerfile": 995} | package br.com.zup.casadocodigo.book
import br.com.zup.casadocodigo.author.Author
import java.math.BigDecimal
import java.time.LocalDate
class BookDetailResponse(
val title: String,
val abstract: String,
val summary: String,
val price: BigDecimal,
val pages: Int,
val is... | 0 | Kotlin | 1 | 1 | e2f7053cca10cbe11f0588aafebb640198a47d6a | 836 | bootcamp-02-template-casa-do-codigo | Apache License 2.0 |
app/src/main/java/com/github/libliboom/epubviewer/base/BaseView.kt | libliboom | 258,487,396 | false | null | package com.github.libliboom.epubviewer.base
interface BaseView {
fun getLayoutId(): Int
}
| 2 | Kotlin | 0 | 3 | 71f1d99af902a82784819a672bb3e27fa306f005 | 96 | Epub-Viewer-Android | MIT License |
feature/signup/src/main/java/com/erkindilekci/signup/SignUpViewModel.kt | erkindilekci | 668,684,107 | false | null | package com.erkindilekci.signup
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.erkindilekci.domain.usecase.a... | 0 | Kotlin | 0 | 0 | 2c862d0d868f229e7458da39dd4f32efaf8e6d11 | 1,419 | CryptoBalanceTracker | Apache License 2.0 |
examples/nft/create/createAnNft/main.kt | GWT-M3O-TEST | 485,009,715 | false | null |
package examples.nft.create
import com.m3o.m3okotlin.M3O
import com.m3o.m3okotlin.services.nft
suspend fun main() {
M3O.initialize(System.getenv("M3O_API_TOKEN"))
val req = NftCreateRequest(Name = "<NAME>",
Description = "The epic monkey island character",)
try {
val response = NftServ.create(req)
... | 1 | Kotlin | 1 | 0 | 54158b584ba47bd7323a484804dcd78c55ef7f69 | 392 | m3o-kotlin | Apache License 2.0 |
waypoints/src/main/kotlin/de/md5lukas/waypoints/gui/pages/ListingPage.kt | Sytm | 211,378,928 | false | null | package de.md5lukas.waypoints.gui.pages
import de.md5lukas.commons.collections.PaginationList
import de.md5lukas.kinvs.items.GUIContent
import de.md5lukas.waypoints.gui.WaypointsGUI
import org.bukkit.inventory.ItemStack
open class ListingPage<T>(
wpGUI: WaypointsGUI,
background: ItemStack,
private val con... | 3 | Kotlin | 3 | 12 | 9a69b00457a7308507dea14a54199abb181a6b90 | 1,970 | waypoints | MIT License |
2017/src/test/kotlin/Day04Test.kt | dlew | 498,498,097 | false | {"Kotlin": 273159, "TypeScript": 60083, "JavaScript": 262} | import answer.Answer
import answer.answerEquals
import org.junit.Assert.*
import org.junit.Test
import utils.getResourceAsString
import utils.splitNewlines
class Day04Test {
@Test
fun part1() {
answerEquals(Answer.DAY04_PART1, Day04.part1(getResourceAsString("day04.txt")))
}
@Test
fun part2() {
ans... | 0 | Kotlin | 0 | 0 | bb7494aa33da1d63de8c382e858fee51e609b703 | 403 | advent-of-code | MIT License |
src/main/kotlin/no/nav/permitteringsskjemaapi/util/TokenUtil.kt | navikt | 247,277,988 | false | {"Kotlin": 151424, "Dockerfile": 81} | package no.nav.permitteringsskjemaapi.util
import no.nav.permitteringsskjemaapi.config.TOKENX_ISSUER
import no.nav.security.token.support.core.context.TokenValidationContextHolder
import no.nav.security.token.support.core.exceptions.JwtTokenValidatorException
import no.nav.security.token.support.core.jwt.JwtTokenClaim... | 0 | Kotlin | 0 | 0 | d12b8276702b2cc1163f7e8da0c1d757738686e1 | 880 | permitteringsskjema-api | MIT License |
app/src/main/java/com/padcmyanmar/kunyi/network/JobDataAgent.kt | NweNiAung90 | 142,923,305 | false | null | package com.padcmyanmar.kunyi.network
interface JobDataAgent {
fun loadJobInfo( accessToken: String , mpage: Int )
} | 0 | Kotlin | 0 | 0 | d51d1a6081a9dbaafb7cf4526cbc815121be854c | 122 | MM-KuNyi-NNA | MIT License |
src/Day01.kt | strindberg | 572,685,170 | false | {"Kotlin": 15804} | import java.lang.Integer.max
fun main() {
fun part1(input: List<String>): Int =
input.fold(Pair(0, 0)) { (max, total), line ->
if (line.isEmpty())
Pair(max(total, max), 0)
else
Pair(max, total + line.toInt())
}.first
... | 0 | Kotlin | 0 | 0 | c5d26b5bdc320ca2aeb39eba8c776fcfc50ea6c8 | 843 | aoc-2022 | Apache License 2.0 |
src/test/kotlin/mbo/dev/springnative/domain/user/UserServiceTest.kt | mbogner | 559,374,643 | false | {"Kotlin": 19977, "PLpgSQL": 1753} | package mbo.dev.springnative.domain.user
import jakarta.persistence.EntityManager
import jakarta.transaction.Transactional
import mbo.dev.springnative.AbstractCrudServiceTest
import org.springframework.beans.factory.annotation.Autowired
@Transactional
internal class UserServiceTest @Autowired constructor(
repo: U... | 0 | Kotlin | 0 | 0 | 4e635e0f211c76015bbf03de817469bbe60f4d39 | 566 | spring-native-sample | Apache License 2.0 |
fireko-codegen/src/main/java/de/musichin/fireko/processor/TargetParameter.kt | musichin | 272,263,347 | false | null | package de.musichin.fireko.processor
import com.squareup.kotlinpoet.AnnotationSpec
import com.squareup.kotlinpoet.ParameterSpec
import com.squareup.kotlinpoet.TypeName
import com.squareup.kotlinpoet.TypeSpec
import com.squareup.kotlinpoet.asClassName
import com.squareup.kotlinpoet.metadata.KotlinPoetMetadataPreview
im... | 5 | Kotlin | 0 | 2 | 8c36bf692ec037b63fffd3d0b3f3db986a965a7a | 3,221 | fireko | MIT License |
meccano-core/src/main/kotlin/com/gastonlagaf/meccano/annotation/RequestParam.kt | gastonlagaf | 241,596,102 | true | {"Kotlin": 164175, "FreeMarker": 528} | package com.gastonlagaf.meccano.annotation
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.VALUE_PARAMETER)
annotation class RequestParam(
val value: String = ""
) | 0 | Kotlin | 0 | 0 | 40be8e3ba49fa67867c768cf64dc4c1b56ebfd8c | 185 | meccano | Apache License 2.0 |
gateway/src/main/kotlin/me/ogq/ocp/sample/gateway/elasticsearch/EsParser.kt | mj-at-ogq | 605,355,876 | false | null | package me.ogq.ocp.sample.gateway.elasticsearch
import me.ogq.ocp.sample.model.event.ImageEventData
import me.ogq.ocp.sample.model.image.StringSetConverter
import org.elasticsearch.action.search.SearchResponse
import org.elasticsearch.search.SearchHit
import org.springframework.stereotype.Component
@Component
class E... | 0 | Kotlin | 1 | 0 | 43ab8aa22afd010120bdbbe2a5268f33d77f968b | 2,155 | image-platform-api | MIT License |
src/test/kotlin/dev/itv/itv_proyecto/services/storages/CsvTrabajadoresStorageTest.kt | AlvaroDVA | 641,823,911 | false | null | package dev.itv.itv_proyecto.services.storages
import dev.itv.itv_proyecto.config.AppConfig
import dev.itv.itv_proyecto.di.moduloTest
import dev.itv.itv_proyecto.enums.Especialidad
import dev.itv.itv_proyecto.models.Trabajador
import dev.itv.itv_proyecto.repositories.TrabajadorRepositoryImpl
import dev.itv.itv_proyect... | 0 | Kotlin | 1 | 1 | c63907fde55a46c2d54bf04a985b1cab41c45a35 | 4,135 | Proyecto_ITV | Creative Commons Zero v1.0 Universal |
src/test/kotlin/dev/itv/itv_proyecto/services/storages/CsvTrabajadoresStorageTest.kt | AlvaroDVA | 641,823,911 | false | null | package dev.itv.itv_proyecto.services.storages
import dev.itv.itv_proyecto.config.AppConfig
import dev.itv.itv_proyecto.di.moduloTest
import dev.itv.itv_proyecto.enums.Especialidad
import dev.itv.itv_proyecto.models.Trabajador
import dev.itv.itv_proyecto.repositories.TrabajadorRepositoryImpl
import dev.itv.itv_proyect... | 0 | Kotlin | 1 | 1 | c63907fde55a46c2d54bf04a985b1cab41c45a35 | 4,135 | Proyecto_ITV | Creative Commons Zero v1.0 Universal |
src/main/kotlin/br/com/zup/edu/servicosexternos/ContasDeClientesNoItauClient.kt | caiorodrigueszup | 385,247,255 | true | {"Kotlin": 70251} | package br.com.zup.edu.servicosexternos
import br.com.zup.edu.TipoConta
import br.com.zup.edu.pix.novachave.DadosDaContaResponse
import io.micronaut.http.HttpResponse
import io.micronaut.http.annotation.Get
import io.micronaut.http.annotation.PathVariable
import io.micronaut.http.annotation.QueryValue
import io.micron... | 0 | Kotlin | 0 | 0 | b5adb6b86b19cd7347b91f7cdc231e3961e48f64 | 599 | orange-talents-05-template-pix-keymanager-grpc | Apache License 2.0 |
effit-cqrs-backend/src/test/kotlin/be/swsb/effit/domain/core/competition/CompetitionCreatorTest.kt | SoftwareSandbox | 179,507,167 | false | null | package be.swsb.effit.domain.core.competition
import be.swsb.effit.domain.command.competition.CreateCompetition
import be.swsb.effit.domain.core.exceptions.DomainValidationRuntimeException
import org.assertj.core.api.Assertions.assertThat
import org.assertj.core.api.Assertions.assertThatExceptionOfType
import org.juni... | 34 | Kotlin | 2 | 6 | 4b2f86c13e46c5561f7e675bf8c153025969e223 | 3,747 | effit-challenge | MIT License |
DelegationSample/src/main/kotlin/Sample06Main.kt | LeoAndo | 331,229,609 | false | null | fun main() {
val user = User2(mapOf(
"name" to "<NAME>",
"age" to 25))
println(user.name)
println(user.age)
}
class User2(val map: Map<String, Any?>) {
val name: String by map
val age: Int by map
} | 50 | Kotlin | 0 | 0 | 7efe78235b019354e934cb99563e9bfc3a33d69d | 239 | kotlin-training | Apache License 2.0 |
DelegationSample/src/main/kotlin/Sample06Main.kt | LeoAndo | 331,229,609 | false | null | fun main() {
val user = User2(mapOf(
"name" to "<NAME>",
"age" to 25))
println(user.name)
println(user.age)
}
class User2(val map: Map<String, Any?>) {
val name: String by map
val age: Int by map
} | 50 | Kotlin | 0 | 0 | 7efe78235b019354e934cb99563e9bfc3a33d69d | 239 | kotlin-training | Apache License 2.0 |
app/src/main/java/com/example/ca2_circle/MainActivity.kt | Garvitjoshi1 | 858,722,635 | false | {"Kotlin": 4707} | package com.example.ca2_circle
import android.animation.ValueAnimator
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.os.Bundle
import android.view.MotionEvent
import android.view.View
import android.view.animation.AccelerateDecel... | 0 | Kotlin | 0 | 0 | 52dc88e34906cb04ca61b213c0fa43af3b361162 | 3,690 | CA2_circle | MIT License |
HIGOODS-Api/src/main/kotlin/com/higoods/api/orderform/controller/OrderFormController.kt | higoods-hongik | 663,934,695 | false | {"Kotlin": 324199, "Dockerfile": 291} | package com.higoods.api.orderform.controller
import com.higoods.api.orderform.dto.request.OrderFormCreateRequest
import com.higoods.api.orderform.usecase.OrderFormCreateUseCase
import com.higoods.api.orderform.usecase.OrderFormReadUseCase
import com.higoods.domain.orderform.domain.OrderFormVo
import org.springframewor... | 4 | Kotlin | 0 | 1 | 0726bc2a44e9eb4e4c630814a9d010d33c1a7018 | 1,444 | HIGOODS-Backend | MIT License |
src/main/kotlin/com/careem/gradle/dependencies/denylist/denylist.kt | careem | 309,438,205 | false | {"Kotlin": 30344} | /*
* Copyright Careem, an Uber Technologies Inc. company
*
* 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 l... | 1 | Kotlin | 3 | 43 | eed681fec0069a30e853ed996b8d4b09bbac1987 | 1,888 | dependency-diff-tldr | Apache License 2.0 |
shared/src/commonMain/kotlin/com/darrenthiores/ecoswap/presentation/profile/ProfileState.kt | darrenthiores | 688,372,873 | false | {"Kotlin": 770054, "Swift": 362583} | package com.darrenthiores.ecoswap.presentation.profile
import com.darrenthiores.ecoswap.domain.item.model.Item
import com.darrenthiores.ecoswap.domain.reviews.model.Review
import com.darrenthiores.ecoswap.domain.user.model.User
import com.darrenthiores.ecoswap.presentation.utils.PagingState
data class ProfileState(
... | 0 | Kotlin | 0 | 0 | 792b3293b4e378b7482f948ce4de622cb88f3cf1 | 527 | EcoSwap | MIT License |
backend/src/main/kotlin/top/kanetah/planhv2/backend/repository/SubjectRepository.kt | kanetah | 118,541,878 | false | {"JavaScript": 104696, "Kotlin": 96766, "HTML": 5613, "CSS": 1941, "Dockerfile": 207} | package top.kanetah.planhv2.backend.repository
import top.kanetah.planhv2.backend.annotation.DataAccess
import top.kanetah.planhv2.backend.entity.Subject
/**
* created by kane on 2018/1/24
*/
@DataAccess
interface SubjectRepository {
fun save(subject: Subject): Int
fun delete(id: Int): Int
fun update... | 44 | JavaScript | 0 | 2 | f386b724d08a6fe9afdc8119ddccf7f57a717301 | 477 | planhv2 | MIT License |
app/src/main/java/com/vicgcode/dialectica/domain/usecases/GetOwnPersonUseCase.kt | vicgcode | 634,342,124 | false | {"Kotlin": 107302} | package com.vicgcode.dialectica.domain.usecases
import com.vicgcode.dialectica.database.room.AppRoomRepository
class GetOwnPersonUseCase(
private val appRoomRepository: AppRoomRepository
) {
suspend operator fun invoke(isOwner: Boolean?) =
appRoomRepository.getOwnerPerson(isOwner)
}
| 0 | Kotlin | 0 | 0 | 87e7046c67b2ddf125c88dca57b24c117bcbea91 | 302 | Dialectica | Apache License 2.0 |
GrowthBook/src/commonMain/kotlin/com/sdk/growthbook/features/FeatureURLBuilder.kt | growthbook | 445,362,249 | false | {"Kotlin": 208616} | package com.sdk.growthbook.features
internal class FeatureURLBuilder {
companion object {
/**
* Context Path for Fetching Feature Details - Web Service
*/
private const val featurePath = "api/features"
}
fun buildUrl(baseUrl: String, apiKey: String): String {
val... | 7 | Kotlin | 14 | 15 | a15859757e96114f84d595beeb0d78055408e271 | 515 | growthbook-kotlin | MIT License |
util/autodoc-core/src/main/kotlin/top/bettercode/autodoc/core/model/CombineCollection.kt | top-bettercode | 387,652,015 | false | null | package top.bettercode.autodoc.core.model
import com.fasterxml.jackson.annotation.JsonIgnore
import top.bettercode.autodoc.core.operation.DocOperation
data class CombineCollection(private val rootCollection: DocCollection, var projectCollection: DocCollection?) : ICollection {
override val name: String = rootCol... | 0 | Kotlin | 0 | 1 | 6fe2f1eb2e5db2c3b24eef3dd01a1cadbd2a3d17 | 802 | summer | Apache License 2.0 |
adaptive-ui/adaptive-ui-common/src/commonTest/kotlin/hu/simplexion/adaptive/ui/common/support/RowTest.kt | spxbhuhb | 788,711,010 | false | {"Kotlin": 1463989, "Java": 17672, "HTML": 2540, "JavaScript": 970} | /*
* Copyright © 2020-2024, <NAME> and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package hu.simplexion.adaptive.ui.common.support
import hu.simplexion.adaptive.ui.common.fragment.row
import hu.simplexion.adaptive.ui.common.fragment.text
import hu.simplexion.adaptive.ui.common.t... | 13 | Kotlin | 0 | 0 | 2f97d34731f19163e62da8c578802c2915a48572 | 876 | adaptive | Apache License 2.0 |
app/src/main/java/com/catnip/layoutingexample/model/Category.kt | devalrohit | 774,423,612 | false | {"Kotlin": 21023} | package com.example.layoutexaple.model
import androidx.annotation.DrawableRes
import java.util.UUID
data class Category (
var id: String = UUID.randomUUID().toString(),
@DrawableRes
var image: Int,
var name: String,
) | 0 | Kotlin | 0 | 1 | a7d236fbf1b1400ea9acda048a5fd5a3c7a23a76 | 235 | 24001084-km6-izr-FoodApps-ch3 | MIT License |
src/main/kotlin/dev/hybridlabs/aquatic/world/gen/feature/FeatureBiomeModifications.kt | hybridlabs | 661,391,321 | false | {"Kotlin": 892890, "Java": 69899} | package dev.hybridlabs.aquatic.world.gen.feature
import dev.hybridlabs.aquatic.tag.HybridAquaticBiomeTags
import net.fabricmc.fabric.api.biome.v1.BiomeModifications
import net.fabricmc.fabric.api.biome.v1.BiomeSelectors
import net.minecraft.world.gen.GenerationStep
/**
* Applies biome modifications to features when ... | 6 | Kotlin | 0 | 4 | 82c3b26d6697d2e5666b173101ade38505a3fe4c | 3,564 | hybrid-aquatic | MIT License |
src/main/kotlin/com/wrike/sprinter/RunTestsInExistingJvmAction.kt | wrike | 632,906,511 | false | {"Kotlin": 94058} | package com.wrike.sprinter
import com.intellij.execution.JavaTestConfigurationBase
import com.intellij.execution.actions.ConfigurationContext
import com.intellij.execution.configurations.RunConfiguration
import com.intellij.icons.AllIcons
import com.intellij.openapi.actionSystem.ActionPlaces
import com.intellij.openap... | 1 | Kotlin | 1 | 9 | 6b8d09afa18b1ef568339b7d872419437b7d4af4 | 2,426 | sprinter-idea-plugin | Apache License 2.0 |
src/main/kotlin/org/freekode/cryptobot/indicatorservice/rest/alert/AlertDTO.kt | cryptocurrency-robot | 327,736,056 | false | null | package org.freekode.cryptobot.indicatorservice.rest.alert
import org.freekode.cryptobot.indicatorservice.domain.MarketPair
import org.freekode.cryptobot.indicatorservice.domain.alert.Alert
import org.freekode.cryptobot.indicatorservice.domain.alert.AlertType
import org.freekode.cryptobot.indicatorservice.domain.indic... | 0 | Kotlin | 0 | 0 | 14d98556b56078fac94ed397a159624aa64ced05 | 626 | indicator-service | MIT License |
shared/src/androidMain/kotlin/com/architect/kmpessentials/connectivity/KmpConnectivity.kt | TheArchitect123 | 801,452,364 | false | {"Kotlin": 335554, "Ruby": 2253, "Swift": 342} | package com.architect.kmpessentials.connectivity
import com.architect.kmpessentials.internal.ActionBoolParams
import dev.tmapps.konnection.Konnection
actual class KmpConnectivity {
actual companion object {
private val konnection = Konnection.instance
actual fun isConnected(): Boolean {
... | 0 | Kotlin | 0 | 96 | 3f1e7e14bf7e3da6b20c1d4bf2924ac4571a75b6 | 736 | KmpEssentials | MIT License |
httpmanager/src/main/java/com/base/library/rxRetrofit/http/httpList/HttpListObserver.kt | wkxjc | 246,898,873 | false | {"Java": 100590, "Kotlin": 58568} | package com.base.library.rxRetrofit.http.httpList
import android.app.ProgressDialog
import android.content.Context
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.LifecycleOwner
import com.base.library.rx... | 1 | null | 1 | 1 | ccb6e3be80ba985e3c6dff789b2093b6dbe80ee2 | 2,093 | WanAndroid | DOC License |
src/main/kotlin/de/mackeprm/herdable/Message.kt | mackeprm | 304,402,446 | false | null | package de.mackeprm.herdable
interface Message {
} | 0 | Kotlin | 0 | 0 | 5803d4721c062c6d073c6fa056d9dd626bb348b2 | 51 | herdable | MIT License |
app/src/main/java/com/febrian/whatsappclone/ui/otp/OtpVerifyActivity.kt | AndroidProjectCollection | 490,940,446 | false | null | package com.febrian.whatsappclone.ui.otp
import android.content.ContentValues.TAG
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.febrian.whatsappclone.MainActivity
import com.... | 0 | Kotlin | 0 | 0 | 495bda945ab70338ca0ba4c730dc0845d6198530 | 6,935 | WhatsAppClone | MIT License |
FundametalAndroid24/app/src/main/java/com/byandev/fundametalandroid24/MainActivity.kt | byansanur | 259,883,301 | false | null | package com.byandev.fundametalandroid24
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
import com.byandev.fundametalandroid24.databin... | 0 | Kotlin | 0 | 1 | b678e1bbeab400e25aafced5c65abffd139e249d | 4,415 | Android-Fundamental | MIT License |
app/src/main/kotlin/com/fernandocejas/sample/core/di/ApplicationModule.kt | mohamedmenasy | 199,511,290 | true | {"Kotlin": 98100} | /**
* Copyright (C) 2019 <NAME> Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 5 | 6a7479a0c30436e223568a9964775bb21bc466a8 | 2,953 | Android-CleanArchitecture-Kotlin | Apache License 2.0 |
app/src/main/java/arira/co/id/mesinatrian/helper/HelperToast.kt | ramcona | 295,104,924 | false | null | package arira.co.id.mesinatrian.helper
import android.content.Context
import android.widget.Toast
open class HelperToast {
fun show(msg: String, context: Context){
Toast.makeText(context, msg, Toast.LENGTH_SHORT).show()
}
} | 0 | Kotlin | 0 | 0 | ed95c8b13f6e2aa2a64087b08719ca16b7cdb08c | 241 | mesin-antrian | Apache License 2.0 |
aquasketch-frontend/src/main/java/com/github/perseacado/aquasketch/frontend/user/CustomUserDetails.kt | perseacado | 62,453,004 | false | {"HTML": 23565, "JavaScript": 22138, "Kotlin": 18589} | package com.github.perseacado.aquasketch.frontend.user
import org.springframework.security.core.GrantedAuthority
import org.springframework.security.core.userdetails.User
/**
* @author <NAME>, 09.07.16.
*/
class CustomUserDetails(
val id: String,
username: String?,
authorities: MutableCollection<out Gra... | 5 | HTML | 0 | 1 | 9c171078a8619f9019b675c382442f1f63b273be | 373 | aquasketch | MIT License |
app/src/main/java/ru/ilyasekunov/officeapp/data/datasource/PostsDataSource.kt | IlyaSekunov | 744,587,168 | false | {"Kotlin": 671010} | package ru.ilyasekunov.officeapp.data.datasource
import androidx.annotation.IntRange
import ru.ilyasekunov.officeapp.data.dto.EditPostDto
import ru.ilyasekunov.officeapp.data.dto.PublishPostDto
import ru.ilyasekunov.officeapp.data.dto.SearchPostsDto
import ru.ilyasekunov.officeapp.data.model.Filters
import ru.ilyaseku... | 0 | Kotlin | 0 | 2 | 31175ebc80c04b0ccb40644229a2ea3cd223ee3c | 2,202 | office-app | Apache License 2.0 |
reflekt-plugin/src/test/resources/org/jetbrains/reflekt/plugin/compiler/code-gen/general-standalone-project-calling/reflekt/functions/functions-1.kt | JetBrains-Research | 293,503,377 | false | {"Kotlin": 397259, "Java": 35379} | // FILE: TestCase.kt
import org.jetbrains.reflekt.Reflekt
import org.jetbrains.reflekt.test.helpers.checkFunctionsCallResult
fun box(): String = checkFunctionsCallResult(
{ Reflekt.functions().withAnnotations<() -> Unit>().toList() },
listOf("fun foo1(): kotlin.Unit", "fun foo2(): kotlin.Unit", "fun foo4(): ko... | 13 | Kotlin | 9 | 325 | ae53618880e5eb610ddeb2792d63208eade951a8 | 334 | reflekt | Apache License 2.0 |
src/test/kotlin/com/tyro/oss/rabbit_amazon_bridge/logging/LogbackStructuredLogLayoutTest.kt | rajeshgpai | 159,911,792 | true | {"Kotlin": 140497, "Shell": 4213, "Makefile": 816} | /*
* Copyright [2018] Tyro Payments Limited.
*
* 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 ... | 0 | Kotlin | 0 | 0 | bbe687d144f298800d4cc6a9da8618d2bfdbf419 | 3,240 | rabbit-amazon-bridge | Apache License 2.0 |
UIKit/src/main/java/com/nativeboys/uikit/fragments/FragmentDialogListener.kt | EvangelosBoudis | 347,924,640 | false | null | package com.nativeboys.uikit.fragments
import android.view.View
import androidx.fragment.app.DialogFragment
interface FragmentDialogListener {
fun onClick(dialogFragment: DialogFragment, view: View)
} | 0 | Kotlin | 0 | 0 | b392cf151d1967b6dc5d56fef6f5f0bfaaa7fb07 | 206 | digital-bit-security | Apache License 2.0 |
src/behaivorDesignPattern/chainOfResponsibility/main.kt | dja1369 | 807,056,411 | false | {"Kotlin": 5894} | package src.behaivorDesignPattern.chainOfResponsibility
fun main() {
val devHandler = DevHandler()
val pmHandler = PmHandler()
val designHandler = DesignHandler()
var query = "Design"
devHandler.setNext(pmHandler).setNext(designHandler)
println(devHandler.handle(query))
println("===========... | 0 | Kotlin | 0 | 0 | a04c9adc8ba8dd362e6220a4abff7c8db3e11a7b | 518 | aboutDesignPattern | MIT License |
p2m-core/src/main/java/com/p2m/core/module/task/TaskUnit.kt | wangdaqi77 | 367,279,479 | false | null | package com.p2m.core.module.task
/**
* Task unit of a task, can add some dependency.
*/
interface TaskUnit {
fun getOwnerClass(): Class<out Task<*, *>>
/**
* Add the given dependency to this task.
*
* @param taskClass The dependency to add to this task.
*/
fun dependOn(taskClass... | 0 | Kotlin | 6 | 34 | 6263c1c5a2dedda773eb7c6745b86ac2ff8f00d9 | 620 | P2M | Apache License 2.0 |
mockzilla-management-ui/src/commonMain/kotlin/com/apadmi/mockzilla/desktop/ui/widgets/deviceconnection/DeviceConnectionWidget.kt | Apadmi-Engineering | 570,496,992 | false | {"Kotlin": 481322, "Dart": 132393, "Swift": 47059, "Ruby": 12855, "Objective-C": 76} | package com.apadmi.mockzilla.desktop.ui.widgets.deviceconnection
import androidx.compose.animation.AnimatedContent
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.*
import androidx.... | 18 | Kotlin | 8 | 29 | 89c3ba7b6a4f4eed2c0866c917ca8b6d7e8596ae | 6,835 | Mockzilla | MIT License |
src/main/kotlin/no/nav/tema_tiltak/tiltak_auditlogger/App.kt | navikt | 680,103,929 | false | null | package no.nav.tema_tiltak.tiltak_auditlogger
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.engine.*
import io.ktor.server.netty.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import mu.KotlinLogging
import no.nav.tema_tiltak.tiltak_auditlogger.kafka.AuditHendelseC... | 0 | Kotlin | 0 | 0 | 580b8cf882362dc87ad86831cf30decb089a0033 | 1,356 | tiltak-auditlogger | MIT License |
src/main/kotlin/de/tweerlei/plumber/worker/impl/csv/CsvWriteWorker.kt | tweerlei | 450,150,451 | false | {"Kotlin": 908232, "Shell": 2267, "Dockerfile": 639} | /*
* Copyright 2022 <NAME> + Buchmeier GbR - http://www.tweerlei.de/
*
* 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 requ... | 0 | Kotlin | 0 | 2 | ea5ec4d291f6a4a17dc507378e368d6216605926 | 3,745 | plumber | Apache License 2.0 |
app/src/main/java/com/transfers/transfertracker/view/dashboard/TeamsComponent.kt | Josephhowerton | 527,618,192 | false | null | package com.transfers.transfertracker.view.components
import androidx.compose.animation.animateColorAsState
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import an... | 0 | Kotlin | 0 | 0 | 3f81d1bb6b2e36587f5b599ba4b1c4a0a415d7d7 | 15,638 | transfer-app | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/example/bleapplication/utils/BluetoothUtils.kt | ChandanJana | 556,605,890 | false | null | package com.example.bleapplication.utils
import android.bluetooth.BluetoothGatt
import android.bluetooth.BluetoothGattCharacteristic
import android.bluetooth.BluetoothGattDescriptor
import android.bluetooth.BluetoothGattService
import com.example.bleapplication.Constants.CHARACTERISTIC_ECHO_STRING
import com.example.b... | 0 | Kotlin | 0 | 1 | 2885e3ad58f33a87fcb618116eb99a09d45a8faa | 3,683 | android-BLEApplication | Apache License 2.0 |
app/src/main/java/soup/gdg/darktheme/sample/elevation/ElevationNoOverlayActivity.kt | fornewid | 190,510,615 | false | null | package soup.gdg.darktheme.sample.elevation
class ElevationNoOverlayActivity : ElevationOverlayActivity()
| 0 | Kotlin | 0 | 0 | 7642c940072a7d69ab4845f8af78f23b246c6f4f | 107 | GDGAndroid-atPangyo-2019-DarkTheme-Sample | Apache License 2.0 |
aws-dynamo/src/iosMain/kotlin/com/estivensh4/dynamo/mappers/AttributeMapper.kt | estivensh | 716,450,518 | false | {"Kotlin": 155379, "Shell": 2027} | /*
* Copyright 2023 estiven. Use of this source code is governed by the Apache 2.0 license.
*/
package com.estivensh4.dynamo.mappers
import cocoapods.AWSDynamoDB.AWSDynamoDBAttributeAction
import cocoapods.AWSDynamoDB.AWSDynamoDBAttributeDefinition
import cocoapods.AWSDynamoDB.AWSDynamoDBAttributeValue
import cocoa... | 2 | Kotlin | 1 | 7 | 72f9a9ccedeed893c2b35e44a6ee6b8ea708e611 | 2,079 | aws-kmp | Apache License 2.0 |
core/droidMain/framework/AndroidFramework.kt | shibasis0801 | 669,270,289 | false | {"Kotlin": 51865, "C++": 47981, "Objective-C++": 11829, "Ruby": 6473, "Swift": 5718, "Objective-C": 4286, "CMake": 1744, "TypeScript": 941, "JavaScript": 328, "C": 123} | package app.mehmaan.core.framework
import java.lang.ref.WeakReference
import java.util.concurrent.atomic.AtomicInteger
// replace this from pragati
actual val __PLATFORM = PlatformType.ANDROID
actual class WeakRef<T> actual constructor(referred: T) {
private val ref = WeakReference(referred)
actual fun get()... | 0 | Kotlin | 0 | 0 | 4c28775f036392357683a2e9e98255fef1256854 | 494 | Reaktor | Apache License 2.0 |
spark/src/main/java/io/github/tonnyl/spark/Spark.kt | hyl87 | 126,146,323 | true | {"Kotlin": 3240} | package io.github.tonnyl.spark
import android.graphics.drawable.AnimationDrawable
import android.view.View
/**
* Created by lizhaotailang on 26/08/2017.
*
* Create a background animation like instagram.
*/
class Spark private constructor(
private val mDuration: Int,
private val mView: View?,
... | 0 | Kotlin | 0 | 0 | e6dbb003a77fd99e819f72b7cd89f4e9b5834664 | 2,150 | Spark-1 | MIT License |
src/main/kotlin/net/casualuhc/uhcmod/uhc/UHCEvent.kt | CasualUHC | 334,382,250 | false | null | package net.casualuhc.uhcmod.uhc
import net.casualuhc.uhcmod.uhc.handlers.LobbyHandler
import net.casualuhc.uhcmod.uhc.handlers.ResourceHandler
interface UHCEvent {
fun getTeamSize(): Int
fun getLobbyHandler(): LobbyHandler
fun getResourcePackHandler(): ResourceHandler
fun load()
} | 0 | Kotlin | 0 | 3 | 4dfc539c3cf7f261c911f45a47206f64faaa37e9 | 303 | UHC-Mod | MIT License |
src/main/kotlin/watch/dependency/config.kt | JakeWharton | 281,296,048 | false | {"Kotlin": 58388, "Shell": 2975, "Dockerfile": 1119} | package watch.dependency
import okhttp3.HttpUrl
import okhttp3.HttpUrl.Companion.toHttpUrl
import org.tomlj.Toml
import org.tomlj.TomlTable
import watch.dependency.RepositoryConfig.Companion.GOOGLE_MAVEN_HOST
import watch.dependency.RepositoryConfig.Companion.GOOGLE_MAVEN_ID
import watch.dependency.RepositoryConfig.Co... | 3 | Kotlin | 8 | 282 | 5b29764d78c7644c47d0cf9e129e6041ee922f2c | 3,983 | dependency-watch | Apache License 2.0 |
logs/src/main/java/vip/mystery0/logs/LogsConfig.kt | Mystery0Tools | 126,463,085 | false | null | package vip.mystery0.logs
import vip.mystery0.logs.languageConstants.StringInterfaceContext
class LogsConfig {
var isShowLog = true//是否显示日志
var isShowDate = true//是否显示日期
var isShowHead = true//是否显示头部信息
var isShowBorder = true//是否显示边框
var isShowThread = true//是否显示当前的所在线程
var isShowInfoTag = true//是否显示信息的tag
var... | 0 | Kotlin | 0 | 1 | 22f0daa037c5adfea9b33a7131b0765237431065 | 1,756 | Logs | Apache License 2.0 |
settings-core/src/main/java/com/michaelflisar/settings/core/internal/fragments/SettingsFragment.kt | MFlisar | 256,263,996 | false | null | package com.michaelflisar.settings.core.internal.fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.michaelflisar.settings.core.Settings
import com.michaelflisar.settings.core.SettingsManager
impo... | 0 | Kotlin | 0 | 2 | 5fc5264a9b2bfc108aab03e8925244d665c6a9d4 | 5,182 | Settings | Apache License 2.0 |
library/src/main/java/jp/co/soramitsu/map/presentation/places/add/schedule/ScheduleSectionView.kt | soramitsu | 255,592,548 | false | null | package jp.co.soramitsu.map.presentation.places.add.schedule
import android.animation.LayoutTransition
import android.app.TimePickerDialog
import android.content.Context
import android.text.format.DateFormat.is24HourFormat
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
imp... | 1 | Kotlin | 0 | 3 | 545b5f56b84a2df438407dc53358c03e1ed69e82 | 8,632 | magellan-android | Apache License 2.0 |
logging-test/src/main/java/com/fsryan/tools/logging/test/FSTestLoggingConfig.kt | ryansgot | 212,757,848 | false | null | package com.fsryan.tools.logging.test
import com.fsryan.tools.logging.FSLoggingConfig
import java.util.concurrent.Executor
class FSTestLoggingConfig : FSLoggingConfig {
override fun createExecutor() = Executor { r -> r.run() }
override fun isTestEnvironment(): Boolean = true
} | 2 | Kotlin | 2 | 1 | ddf9d66edbda1b81d7fec2a41593ecc2ecc72dfc | 287 | logging | Apache License 2.0 |
play-media/src/main/java/io/agora/play_media_manager/PlayMediaManager.kt | AgoraIO | 623,043,738 | false | {"Kotlin": 141696} | package io.agora.play_media_manager
import android.content.Context
import android.view.SurfaceView
import io.agora.authentication_manager.AuthenticationManager
import io.agora.mediaplayer.Constants.*
import io.agora.mediaplayer.IMediaPlayer
import io.agora.mediaplayer.IMediaPlayerObserver
import io.agora.mediaplayer.d... | 0 | Kotlin | 3 | 5 | 75e53677ee7f1febbb8278d391d5632abecb3b0b | 6,061 | video-sdk-samples-android | MIT License |
app/src/main/java/dev/devunion/skillsnap/viewmodels/storage/DummyStorageViewModel.kt | abdelillahbel | 845,821,547 | false | {"Kotlin": 211690} | /*
* Copyright (c) 2024. DevUnion Foundation.
* GitHub: https://github.com/devunionorg
* All rights reserved.
*
* This project was conceptualized and developed by @abdelillahbel.
* GitHub: https://github.com/abdelillahbel
*/
package dev.devunion.skillsnap.viewmodels.storage
import android.graphics.Bitmap
impor... | 0 | Kotlin | 0 | 8 | 0bbc0a442ba33e606e573381922c5b7493d0c0c8 | 1,190 | SkillSnapAndroid | MIT License |
navigation/src/commonMain/kotlin/com/hoc081098/solivagant/navigation/internal/StackEntryViewModelStoreOwner.kt | hoc081098 | 736,617,487 | false | {"Kotlin": 195727, "Shell": 377} | package com.hoc081098.solivagant.navigation.internal
import com.hoc081098.kmp.viewmodel.ViewModelStore
import com.hoc081098.kmp.viewmodel.ViewModelStoreOwner
import kotlin.LazyThreadSafetyMode.NONE
internal expect fun createViewModelStore(): ViewModelStore
internal class StackEntryViewModelStoreOwner : ViewModelStor... | 6 | Kotlin | 3 | 5 | 9977b0e2365ef1dc484aa6069b73cf9c4f78e5ae | 598 | solivagant | Apache License 2.0 |
OnlinePK-Android/app/src/main/java/com/netease/yunxin/nertc/demo/feedback/expand/QuestionGroup.kt | netease-george | 377,830,443 | true | {"Objective-C": 1325069, "Kotlin": 611041, "Java": 270376, "Swift": 124836, "C": 6974, "Python": 2874, "Ruby": 797} | /*
* Copyright (c) 2021 NetEase, Inc. All rights reserved.
* Use of this source code is governed by a MIT license that can be found in the LICENSE file
*/
package com.netease.yunxin.nertc.demo.feedback.expand
import java.util.*
/**
* Created by luc on 2020/11/17.
*/
class QuestionGroup(val title: String, ite... | 0 | Objective-C | 0 | 0 | 9ba2e45734d24bcc287a08288e25b6d27856744d | 438 | OnlinePK | MIT License |
app/src/main/java/com/citra/keyhub/Result.kt | Jul699 | 715,573,580 | false | {"Kotlin": 31263} | package com.citra.keyhub
sealed class Result<out R> private constructor() {
data class Success<out T>(val data: T) : Result<T>()
data class Error<out T>(val error: String) : Result<T>()
object Loading : Result<Nothing>()
} | 0 | Kotlin | 0 | 0 | 5c1ba999547743223fc7f13a303033007573c4cf | 236 | Key-Hub | MIT License |
app/src/main/java/com/vlad1m1r/kotlintest/presentation/utils/CoroutineContextProvider.kt | VladimirWrites | 86,824,178 | false | null | package com.vlad1m1r.kotlintest.presentation.utils
import kotlinx.coroutines.experimental.Dispatchers
import kotlin.coroutines.experimental.CoroutineContext
open class CoroutineContextProvider() {
open val Main: CoroutineContext by lazy { Dispatchers.Main }
open val IO: CoroutineContext by lazy { Dispatchers.... | 0 | Kotlin | 6 | 25 | 7bb76c69b41c2769b49e4f4f445452839f3cd5c2 | 326 | KotlinSample | Apache License 2.0 |
src/main/kotlin/entry/Util.kt | wilinz | 289,951,161 | true | {"Kotlin": 8181, "Java": 3444} | package entry
fun String.underscoreToCamel(): String {
val names = this.split("_")
val sb = StringBuilder()
for (n in names) {
sb.append(n.firstToUpper())
}
return sb.toString()
}
//这里还是不把id改了吧,今天发现我的 VideoUrl 变成 VIDeoUrl,难受
fun String.fmtName(to: String): String {
var name = this.clea... | 0 | Kotlin | 0 | 0 | 2077eb751e1c8aff82579e6d60fc8e460eefaadd | 942 | convent-json-sql-to-go-struct | Apache License 2.0 |
apps/utgang-pdl/src/main/kotlin/no/nav/paw/arbeidssoekerregisteret/utgang/pdl/kafka/processors/HendelseLoggProcessor.kt | navikt | 794,874,233 | false | {"Kotlin": 510676, "Dockerfile": 143} | package no.nav.paw.arbeidssoekerregisteret.utgang.pdl.kafka.processors
import no.nav.paw.arbeidssoekerregisteret.utgang.pdl.kafka.scheduleCleanup
import no.nav.paw.arbeidssoekerregisteret.utgang.pdl.kafka.serdes.HendelseState
import no.nav.paw.arbeidssokerregisteret.intern.v1.Startet
import org.apache.kafka.streams.ks... | 0 | Kotlin | 0 | 1 | 66d40ab0f27c4af892997006f1f6c318cec77470 | 2,472 | paw-arbeidssoekerregisteret-monorepo-intern | MIT License |
server/src/main/kotlin/org/kryptonmc/krypton/entity/ai/goal/KryptonGoalSelector.kt | KryptonMC | 255,582,002 | false | null | /*
* This file is part of the Krypton project, licensed under the Apache License v2.0
*
* Copyright (C) 2021-2023 KryptonMC and the contributors of the Krypton project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ... | 27 | Kotlin | 11 | 233 | a9eff5463328f34072cdaf37aae3e77b14fcac93 | 5,213 | Krypton | Apache License 2.0 |
app/src/test/java/com/privateinternetaccess/android/pia/migration/mocks/HasWireguardMigrationNotBeenDoneMock.kt | pia-foss | 229,341,983 | false | {"Git Config": 1, "Gradle": 4, "Go": 3, "Markdown": 3, "CODEOWNERS": 1, "Java Properties": 2, "Shell": 15, "Text": 2, "Ignore List": 9, "reStructuredText": 1, "Java": 213, "Kotlin": 123, "YAML": 7, "INI": 1, "XML": 462, "JSON": 2, "HTML": 3, "CMake": 1, "C": 60, "Roff Manpage": 2, "desktop": 1, "QMake": 1, "C++": 1, "O... | package com.privateinternetaccess.android.pia.migration.mocks
import com.privateinternetaccess.android.ui.connection.controller.WireguardMigrationControllerError
import com.privateinternetaccess.android.ui.connection.controller.WireguardMigrationControllerErrorCode
import com.privateinternetaccess.android.ui.connectio... | 6 | Java | 16 | 35 | 8c380f875a1a3328f95a1e9ff460588041175f3d | 889 | mobile-android-legacy | MIT License |
app/src/main/kotlin/com/akagiyui/drive/model/request/AddRoleRequest.kt | AkagiYui | 647,653,830 | false | {"Kotlin": 227183, "Java": 87795, "HTML": 812, "Dockerfile": 658} | package com.akagiyui.drive.model.request
import jakarta.validation.constraints.NotNull
/**
* 添加角色 请求
*
* @author AkagiYui
*/
class AddRoleRequest {
/**
* 角色名
*/
@NotNull(message = "{name is missing}")
lateinit var name: String
/**
* 角色描述
*/
lateinit var description: String... | 4 | Kotlin | 2 | 9 | 6ff345645dfa83944ca4d36c02f9fa7b2162697f | 461 | KenkoDrive | MIT License |
app/src/main/java/dev/lengua/ui/components/EntryDescription.kt | mgmu | 802,992,375 | false | {"Kotlin": 81639} | package dev.lengua.ui.components
import android.content.res.Configuration
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.... | 0 | Kotlin | 0 | 0 | 1b579b40922e9f2a3f509cf49c040396578957c3 | 6,554 | lengua | MIT License |
dcache/src/main/java/dora/db/exception/ConstraintException.kt | dora4 | 378,306,065 | false | {"Kotlin": 180368} | package dora.db.exception
/**
* Please check the constraint configuration.
* 简体中文:请检查约束配置。
*/
class ConstraintException(message: String) : RuntimeException(message) | 2 | Kotlin | 3 | 30 | 782a37c8ff4464329a1d5cfc6aeb04550f4c5d2a | 168 | dcache-android | MIT License |
src/test/kotlin/it/skrape/selects/html5/TextContentElementPickersKtTest.kt | djcass44 | 215,034,200 | true | {"Kotlin": 136261, "HTML": 1597} | package it.skrape.selects.html5
import it.skrape.aValidDocument
import it.skrape.selects.lastOccurrence
import org.junit.jupiter.api.Test
import strikt.api.expectThat
import strikt.assertions.isEqualTo
internal class TextContentElementPickersKtTest {
@Test
fun `can parse blockquote-tag`() {
val resul... | 0 | Kotlin | 0 | 0 | 800935472219082c5cdf41e6070fa4b62c078447 | 2,449 | skrape.it | MIT License |
core/src/main/kotlin/com/hhs/koto/app/screen/BlankScreen.kt | XiaoGeNintendo | 402,344,979 | true | {"Kotlin": 639984, "GLSL": 3181} | /*
* MIT License
*
* Copyright (c) 2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | 0 | Kotlin | 0 | 1 | 8be3871cdf6cd83cc32ed6d5c82cc2cc40c94ce7 | 2,428 | TestSTG5 | Creative Commons Zero v1.0 Universal |
list/src/main/java/com/vip/list/adapter/MAdapter.kt | AbnerMing888 | 581,379,171 | false | {"Kotlin": 171916} | package com.vip.list.adapter
import com.vip.list.base.BaseMultipleItemAdapter
import com.vip.list.base.BaseViewHolder
import com.vip.list.data.BaseMultipleItem
import com.vip.list.listener.OnHeadOrFootConvertListener
import com.vip.list.listener.OnMultipleConvertListener
/**
*AUTHOR:AbnerMing
*DATE:2022/8/19
*INTR... | 2 | Kotlin | 3 | 42 | a91377c5b4ceb9cca29521ecc39413cb6324c2c5 | 2,746 | VipList | Apache License 2.0 |
feature-crowdloan-impl/src/main/java/jp/co/soramitsu/feature_crowdloan_impl/di/customCrowdloan/moonbeam/MoonbeamContributionModule.kt | soramitsu | 278,060,397 | false | null | package jp.co.soramitsu.feature_crowdloan_impl.di.customCrowdloan.moonbeam
import com.google.gson.FieldNamingPolicy
import dagger.Module
import dagger.Provides
import dagger.multibindings.IntoSet
import jp.co.soramitsu.common.data.network.HttpExceptionHandler
import jp.co.soramitsu.common.data.network.NetworkApiCreato... | 4 | Kotlin | 14 | 55 | d555e9cf4bd5f0abf8091781c237b6af9e1da850 | 2,689 | fearless-Android | Apache License 2.0 |
Application/core/core-logger/src/main/java/com/istudio/core_logger/domain/LoggerFeature.kt | devrath | 570,594,617 | false | {"Kotlin": 238294} | package com.istudio.core_logger.domain
interface LoggerFeature {
fun d(featureName: String?, msg: String?)
fun e(featureName: String?, msg: String?)
fun w(featureName: String?, msg: String?)
fun v(featureName: String?, msg: String?)
fun i(featureName: String?, msg: String?)
}
| 0 | Kotlin | 3 | 6 | 17d03b535e2ced992b97cc1e3a6d40c5393afded | 298 | Distance-Tracker | Apache License 2.0 |
app/src/main/java/com/starkbank/cocoatouch/foundation/NSArray.kt | starkbank | 542,751,615 | false | {"Kotlin": 45758} | package com.starkbank.cocoatouch.foundation
open class NSArray<NSObject> : Iterable<NSObject> {
protected var array = ArrayList<NSObject>()
fun count(): Int {
return array.size
}
fun objectAtIndex(index: Int): NSObject {
return array[index]
}
override fun iterator(): Iterat... | 0 | Kotlin | 0 | 0 | f857b1c8e97342024f12959cebd6b9182f903f29 | 483 | cocoatouch-for-android | MIT License |
app/src/main/kotlin/com/ashish/movieguide/ui/review/ReviewPresenter.kt | AshishKayastha | 82,365,723 | false | null | package com.ashish.movieguide.ui.review
import com.ashish.movieguide.data.interactors.MovieInteractor
import com.ashish.movieguide.data.models.Review
import com.ashish.movieguide.ui.base.recyclerview.BaseRecyclerViewMvpView
import com.ashish.movieguide.ui.base.recyclerview.BaseRecyclerViewPresenter
import com.ashish.m... | 5 | Kotlin | 5 | 16 | f455e468b917491fd1e35b07f70e9e9e2d00649d | 860 | Movie-Guide | Apache License 2.0 |
app/src/main/java/br/com/fiap/locawebmailapp/database/dao/AgendaConvidadoDao.kt | pedroferrarezzo | 800,793,379 | false | {"Kotlin": 656574} | package br.com.fiap.locawebmailapp.database.dao
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import br.com.fiap.locawebmailapp.model.AgendaConvidado
import br.com.fiap.locawebmailapp.model.AgendaCor
import br.com.fiap.locawebmailapp.model.IdConvidado
@Dao
interface AgendaConvidadoDa... | 0 | Kotlin | 0 | 0 | 1c160310c5578ffdd386052788bb6774cef4f79f | 1,101 | LocaWeb-LocaMail-Kotlin-Compose-Challenge-Fiap | MIT License |
app/src/main/java/com/kl3jvi/animity/ui/fragments/notifications/NotificationViewModel.kt | kl3jvi | 286,457,139 | false | null | package com.kl3jvi.animity.ui.fragments.notifications
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.PagingData
import androidx.paging.cachedIn
import com.kl3jvi.animity.domain.repositories.NotificationsRepository
import dagger.hilt.android.lifecycle.HiltViewModel
i... | 2 | Kotlin | 30 | 671 | bca166eb23b148eaff25caa770f03c908502ed35 | 817 | animity | MIT License |
plugin/src/main/kotlin/com/firsttimeinforever/intellij/pdf/viewer/settings/PdfViewerInvertColorsListener.kt | FirstTimeInForever | 245,457,194 | false | {"Kotlin": 174520, "HTML": 794, "CSS": 460, "JavaScript": 29} | package com.firsttimeinforever.intellij.pdf.viewer.settings
import com.intellij.openapi.editor.colors.EditorColorsListener
import com.intellij.openapi.editor.colors.EditorColorsScheme
import com.intellij.ui.ColorUtil
class PdfViewerInvertColorsListener : EditorColorsListener {
override fun globalSchemeChange(scheme... | 12 | Kotlin | 18 | 85 | 6c7c3b43371404aa0089429076567c83f133124e | 612 | intellij-pdf-viewer | MIT License |
app/src/test/java/com/abdoul/felinelove/utils/BaseUnitTest.kt | Abdoul02 | 372,765,904 | false | null | package com.abdoul.felinelove.utils
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import kotlinx.coroutines.ExperimentalCoroutinesApi
import org.junit.Rule
@ExperimentalCoroutinesApi
open class BaseUnitTest {
@get:Rule
var coroutinesTestRule = MainCoroutineScopeRule()
@get:Rule
... | 0 | null | 0 | 0 | 3ea63eb8e6b804db47190961d9a2007572812029 | 436 | FelineLove | Apache License 2.0 |
src/main/kotlin/walkmc/serializer/common/Files.kt | rona-tombo | 463,865,654 | false | null | /*
MIT License
Copyright (c) 2021 uin
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the ri... | 0 | null | 0 | 0 | 1580bc39a19a43741e76f598c97521fc9491b96b | 3,037 | serializer-framework | MIT License |
library/src/main/java/com/chrynan/chords/parcel/UnexpectedParcelValueException.kt | bakhbk | 236,358,693 | true | {"Kotlin": 51046} | package com.chrynan.chords.parcel
class UnexpectedParcelValueException(private val value: Any?) : RuntimeException("Unexpected parcel value. value = $value") | 0 | null | 0 | 0 | 6fa018378e5905c44ed09bfe368558cc650cb532 | 158 | chords | Apache License 2.0 |
android/src/main/java/io/github/ackeecz/extensions/android/DrawableExtensions.kt | AckeeCZ | 130,711,681 | false | null | package io.github.ackeecz.extensions.android
import android.content.res.ColorStateList
import android.graphics.Color
import android.graphics.drawable.Drawable
import android.graphics.drawable.GradientDrawable
import android.graphics.drawable.RippleDrawable
import android.graphics.drawable.StateListDrawable
import andr... | 1 | Kotlin | 0 | 13 | fc56c5c9aba5582f203334a6ab09b198cdc9596c | 5,330 | kotlin-extensions | Apache License 2.0 |
restrikt-compiler-plugin/src/main/kotlin/com/zwendo/restrikt/plugin/backend/RestriktClassBuilder.kt | ZwenDo | 516,460,376 | false | null | package com.zwendo.restrikt.plugin.backend
import com.zwendo.restrikt.plugin.backend.symbol.RestriktClassBuildingContext
import com.zwendo.restrikt.plugin.backend.visitor.RestriktClassVisitor
import com.zwendo.restrikt.plugin.backend.visitor.RestriktClassVisitorProxy
import com.zwendo.restrikt.plugin.backend.visitor.R... | 0 | Kotlin | 0 | 21 | 13010dd4733eb385062ca260849d2e0ee52a3c65 | 4,599 | Restrikt | MIT License |
app/src/main/java/com/sunkitto/news/NewsApp.kt | sunkitto | 663,131,959 | false | null | package com.sunkitto.news
import android.app.Application
import android.content.Context
import android.os.StrictMode
import androidx.fragment.app.strictmode.FragmentStrictMode
import com.sunkitto.news.all_news.di.AllNewsDependencyStore
import com.sunkitto.news.di.AppComponent
import com.sunkitto.news.di.DaggerAppCompo... | 0 | Kotlin | 0 | 0 | dc8f6e99b95aae50b3013f19bc36b75b110f7e3f | 2,176 | News | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.