path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/cuhacking/app/home/domain/UpdateAnnouncementsUseCase.kt | cuhacking | 191,853,083 | false | null | package com.cuhacking.app.home.domain
import com.cuhacking.app.Database
import com.cuhacking.app.data.CoroutinesDispatcherProvider
import com.cuhacking.app.data.Result
import com.cuhacking.app.data.api.ApiService
import kotlinx.coroutines.withContext
import javax.inject.Inject
class UpdateAnnouncementsUseCase @Inject... | 3 | Kotlin | 1 | 1 | ceca73d7eddf8c4082992ab30603817058ecfd49 | 1,477 | cuHacking-android | Apache License 2.0 |
app/src/main/java/infixsoft/imrankst1221/android/starter/data/repository/UserRepository.kt | imrankst1221 | 407,743,160 | false | null | package infixsoft.imrankst1221.android.starter.data.repository
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import infixsoft.imrankst1221.android.starter.data.api.SafeApiRequest
import infixsoft.imrankst1221.android.starter.data.api.UserApiService
import infixsoft.imrankst1221.android.s... | 0 | Kotlin | 0 | 0 | 1a122feef780f6b743a162f6648da41a5ed1640d | 4,207 | AndroidStarter | MIT License |
src/main/kotlin/org/intellij/plugin/tracker/data/links/BaseLinks.kt | JetBrains-Research | 277,519,535 | false | null | package org.intellij.plugin.tracker.data.links
import com.intellij.openapi.editor.Document
import com.intellij.openapi.project.Project
import com.intellij.openapi.vcs.VcsException
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiFile
import com.intellij.psi.util.elementType
import org.intellij.plugin.trac... | 5 | null | 1 | 2 | 831e3eaa7ead78ffe277cb415b6f993139fb4de3 | 13,587 | linktracker | Apache License 2.0 |
increase-kotlin-core/src/main/kotlin/com/increase/api/models/IntrafiExclusion.kt | Increase | 614,596,742 | false | null | // File generated from our OpenAPI spec by Stainless.
package com.increase.api.models
import com.fasterxml.jackson.annotation.JsonAnyGetter
import com.fasterxml.jackson.annotation.JsonAnySetter
import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxm... | 1 | null | 0 | 5 | dc1361d08cb41ff45817c2e7638f53356f15cf8e | 16,132 | increase-kotlin | Apache License 2.0 |
common/src/main/kotlin/juuxel/adorn/lib/AdornSounds.kt | Juuxel | 182,782,106 | false | null | package juuxel.adorn.lib
import juuxel.adorn.AdornCommon
import juuxel.adorn.lib.registry.Registered
import juuxel.adorn.lib.registry.Registrar
import juuxel.adorn.lib.registry.RegistrarFactory
import net.minecraft.registry.RegistryKeys
import net.minecraft.sound.BlockSoundGroup
import net.minecraft.sound.SoundEvent
... | 54 | null | 34 | 93 | 3d47e109812c8be26fc4fb581b9945c39ba6c96a | 1,992 | Adorn | MIT License |
src/main/kotlin/no/nav/poao_gcp_proxy/proxy_filter/PreRequestZuulFilter.kt | navikt | 423,828,208 | false | {"Kotlin": 14612, "Dockerfile": 83} | package no.nav.poao_gcp_proxy.proxy_filter
import com.netflix.zuul.ZuulFilter
import com.netflix.zuul.context.RequestContext
import com.netflix.zuul.exception.ZuulException
import no.nav.security.token.support.core.http.HttpRequest
import no.nav.security.token.support.core.validation.JwtTokenValidationHandler
import o... | 20 | Kotlin | 0 | 0 | 47f62bc3803be5fb618d747ced389b7dc1e908e3 | 1,939 | poao-gcp-proxy | MIT License |
app/src/main/java/com/sq26/experience/ui/activity/MediaOperatingActivity.kt | sq26 | 163,916,153 | false | {"Gradle": 3, "YAML": 1, "Java Properties": 2, "Shell": 1, "Text": 2, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Java": 43, "XML": 130, "Kotlin": 77, "AIDL": 4, "HTML": 1} | package com.sq26.experience.ui.activity
import android.content.Context
import android.os.Bundle
import android.util.Log
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyclerview.widget.RecyclerView
import butterknife.... | 0 | Kotlin | 0 | 0 | eefde2f206439813e509f86ac7dfea2e3ad8e9f2 | 3,385 | Android-Study-Demo | Apache License 2.0 |
core/src/main/java/com/sailer/core/navigation/InjectingNavHostFragment.kt | Ahmed-Abdelmeged | 273,714,513 | false | null | package com.sailer.core.navigation
import android.content.Context
import android.os.Bundle
import androidx.navigation.fragment.NavHostFragment
import com.sailer.core.di.FragmentInjectionFactory
import javax.inject.Inject
/**
* Created by <NAME> on 7/23/20.
*/
abstract class InjectingNavHostFragment : NavHostFragmen... | 1 | Kotlin | 8 | 39 | b9d46cd0c3d7aa3841e5020506be84f4038d9fe3 | 722 | sailer | MIT License |
app/src/main/java/com/example/learning3/MainActivity.kt | KrishnarajaSagar | 673,030,916 | false | null | package com.example.learning3
import android.annotation.SuppressLint
import android.os.Build
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.viewModels
import androidx.annotation.RequiresApi
import androidx.compose.foundation.back... | 4 | Kotlin | 1 | 8 | e1c3b5a59d3c91451210bcf3a5a3b4e9b3859ca6 | 16,246 | NotesAppCompose | Apache License 2.0 |
app/src/main/java/com/android/hhn/kotlintoy/coroutines/TestCoroutine2.kt | Hehaonan | 258,992,249 | false | null | package com.android.hhn.kotlintoy.coroutines
import kotlinx.coroutines.*
import kotlin.system.measureTimeMillis
/**
* Author: haonan.he ;<p/>
* Date: 2020/4/29,6:23 PM ;<p/>
* Description: 同步任务;<p/>
* Other: ;
*/
fun main() = runBlocking<Unit> {
val time = measureTimeMillis {
GlobalScope.launch {
... | 0 | Kotlin | 0 | 0 | e653e2edfd0d9e3b34d9fcbed380fcd6630fd1df | 722 | KotlinToy | Apache License 2.0 |
src/main/kotlin/jp/takeda/doma2sample/controller/AddressController.kt | takedasan | 160,204,434 | false | {"Gradle": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Java Properties": 1, "Kotlin": 19, "Java": 1, "SQL": 4, "YAML": 1} | package jp.takeda.doma2sample.controller
import jp.takeda.doma2sample.domain.service.AddressService
import jp.takeda.doma2sample.domain.service.FindAddressResult
import jp.takeda.doma2sample.dto.request.insert.WriteAddressRequest
import jp.takeda.doma2sample.dto.response.find.FindAddressResponse
import jp.takeda.doma2... | 1 | null | 2 | 1 | 0776b60968f57eb544c08d31c923f43588dae696 | 1,312 | doma2samplekotlin | MIT License |
compiler/testData/asJava/lightClasses/nullabilityAnnotations/ClassObjectField.kt | chashnikov | 14,658,474 | true | {"Java": 14526655, "Kotlin": 6831811, "JavaScript": 897073, "Groovy": 43935, "CSS": 14421, "Shell": 9248} | // ClassObjectField
class ClassObjectField {
class object {
val x: String? = ""
private val y: String? = ""
}
} | 0 | Java | 0 | 1 | 88a261234860ff0014e3c2dd8e64072c685d442d | 136 | kotlin | Apache License 2.0 |
compiler/testData/asJava/lightClasses/nullabilityAnnotations/ClassObjectField.kt | chashnikov | 14,658,474 | true | {"Java": 14526655, "Kotlin": 6831811, "JavaScript": 897073, "Groovy": 43935, "CSS": 14421, "Shell": 9248} | // ClassObjectField
class ClassObjectField {
class object {
val x: String? = ""
private val y: String? = ""
}
} | 0 | Java | 0 | 1 | 88a261234860ff0014e3c2dd8e64072c685d442d | 136 | kotlin | Apache License 2.0 |
src/main/kotlin/no/nav/familie/ba/mottak/søknad/domene/SøknadSpråkvelgerService.kt | navikt | 221,166,975 | false | null | package no.nav.familie.ba.mottak.søknad.domene
import com.fasterxml.jackson.core.JsonGenerator
import com.fasterxml.jackson.databind.JsonSerializer
import com.fasterxml.jackson.databind.SerializerProvider
import com.fasterxml.jackson.databind.module.SimpleModule
import com.fasterxml.jackson.module.kotlin.convertValue
... | 5 | Kotlin | 0 | 1 | eb41486fc5ab103a4334a2d3d08f1d7f50e2cf97 | 2,824 | familie-ba-mottak | MIT License |
src/test/kotlin/dev/shtanko/algorithms/leetcode/RegularExpressionMatchingTest.kt | ashtanko | 203,993,092 | false | null | /*
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 4 | Kotlin | 0 | 18 | a4fe620690f370a9eaaa7f7a5e5b2001aa65502b | 2,104 | kotlab | Apache License 2.0 |
Pokedex/app/src/main/java/com/ivettevaldez/pokedex/ui/MainActivity.kt | ivettevaldez | 635,742,104 | false | {"Kotlin": 70978} | package com.ivettevaldez.pokedex.ui
import android.os.Bundle
import com.ivettevaldez.pokedex.global.BaseActivity
import com.ivettevaldez.pokedex.ui.common.viewbinding.ViewBindingFactory
import javax.inject.Inject
class MainActivity : BaseActivity() {
@Inject
lateinit var viewBindingFactory: ViewBindingFactor... | 0 | Kotlin | 1 | 0 | 02fdb04a72baa1bafa2ae9254bc7dee97ed62003 | 556 | pokedex | Apache License 2.0 |
felles/src/main/kotlin/no/nav/familie/kontrakter/felles/personopplysning/FinnPersonidenterResponse.kt | navikt | 206,793,193 | false | null | package no.nav.familie.kontrakter.felles.personopplysning
data class FinnPersonidenterResponse(val identer: List<PersonIdentMedHistorikk>)
data class PersonIdentMedHistorikk(val personIdent: String, val historisk: Boolean) | 16 | null | 0 | 2 | 597be6d19d00fabd01258b180883b6532ff91c46 | 224 | familie-kontrakter | MIT License |
XiaomiNFCProtocol/src/main/kotlin/lib/xfy9326/xiaomi/nfc/XiaomiNfcProtocol.kt | XFY9326 | 724,531,401 | false | {"Kotlin": 300068} | package lib.xfy9326.xiaomi.nfc
sealed class XiaomiNfcProtocol<T : AppData>(internal val flags: Byte) {
companion object {
private const val FLAG_V1 = 0.toByte()
private const val FLAG_V2 = 1.toByte()
private const val FLAG_HANDOFF = 3.toByte()
fun parse(value: Byte) =
w... | 1 | Kotlin | 4 | 91 | 85489b59c617f3ee8d006c47b73f53bbc4e08bc3 | 1,065 | MiLinkNFC | MIT License |
app/src/main/java/com/vaibhav/taskify/ui/adapters/TaskCountAdapter.kt | Vaibhav2002 | 375,697,442 | false | null | package com.vaibhav.taskify.ui.adapters
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.vaibhav.taskify.data.models.TaskCount
import com.vaibhav.task... | 1 | null | 29 | 89 | 664a4cd4600a6bfc12082f9f083897fb8b4001c7 | 1,458 | Taskify | MIT License |
src/main/kotlin/de/ukw/ccc/mafrepo/web/UploadRestController.kt | CCC-MF | 655,735,002 | false | {"Kotlin": 80862, "HTML": 15310, "CSS": 5149, "JavaScript": 3872} | /*
* MIT License
*
* Copyright (c) 2023 Comprehensive Cancer Center Mainfranken
*
* 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 ... | 1 | Kotlin | 0 | 0 | 996c13c551cfc803d3c4014c919fab4146ffb633 | 1,731 | maf-repo | MIT License |
app/src/main/java/com/example/jpmorgantest/util/extension/ValidationNull.kt | cesarwillymc | 861,347,513 | false | {"Kotlin": 126062, "Java": 3448} | package com.example.jpmorgantest.util.extension
import com.example.jpmorgantest.util.constants.EMPTY_STRING
import com.example.jpmorgantest.util.constants.ZERO
import com.example.jpmorgantest.util.constants.ZERO_D
import com.example.jpmorgantest.util.constants.ZERO_F
fun Int?.orEmpty(): Int = this ?: ZERO
fun Long?.... | 0 | Kotlin | 0 | 0 | 832154825f03a17ff81b87c0ae9b3e6edefbbd5c | 754 | JPMorganTest | Apache License 2.0 |
app/src/main/java/com/vultisig/wallet/ui/screens/vault_settings/VaultSettingsScreen.kt | vultisig | 789,965,982 | false | null | package com.vultisig.wallet.ui.screens.vault_settings
import android.os.Build
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.consumeWindowInsets
import androidx.compose.founda... | 36 | null | 2 | 4 | f6be95cf5d32abbdbfb3003c61b960067a6b33cb | 6,111 | vultisig-android | Apache License 2.0 |
ktor-server/ktor-server-test-host/jvmAndNix/src/io/ktor/server/testing/EngineTestBase.kt | ktorio | 40,136,600 | false | null | /*
* Copyright 2014-2021 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package io.ktor.server.testing
import io.ktor.client.request.*
import io.ktor.client.statement.*
import io.ktor.server.application.*
import io.ktor.server.engine.*
import io.ktor.server.routi... | 269 | null | 986 | 9,709 | 9e0eb99aa2a0a6bc095f162328525be1a76edb21 | 1,603 | ktor | Apache License 2.0 |
common/src/main/kotlin/no/nav/su/se/bakover/common/application/journal/JournalpostId.kt | navikt | 227,366,088 | false | null | package no.nav.su.se.bakover.common.application.journal
import com.fasterxml.jackson.annotation.JsonValue
data class JournalpostId(
private val value: String,
) {
@JsonValue
override fun toString() = value
}
| 0 | Kotlin | 0 | 1 | d7157394e11b5b3c714a420a96211abb0a53ea45 | 222 | su-se-bakover | MIT License |
cloud/acp-admin-cloud-dependencies/src/main/kotlin/pers/acp/admin/common/AcpAdminFeignClientAutoConfiguration.kt | zhangbin1010 | 162,155,230 | false | null | package pers.acp.admin.common
import com.fasterxml.jackson.databind.ObjectMapper
import org.springframework.boot.autoconfigure.AutoConfigureAfter
import org.springframework.cloud.loadbalancer.config.BlockingLoadBalancerClientAutoConfiguration
import org.springframework.cloud.openfeign.EnableFeignClients
import org.spr... | 0 | Kotlin | 4 | 17 | 825a4e70ee6e3ec69518798088d44d6ab6b41e53 | 1,190 | acp-admin-cloud | Apache License 2.0 |
src/main/kotlin/br/com/zup/pix/consulta/ConsultaChavePixResponse.kt | rodrigoananiaszup | 388,532,259 | true | {"Kotlin": 30975, "Smarty": 2172, "Dockerfile": 167} | package br.com.zup.pix.consulta
import br.com.zup.ConsultaChavePixResponse
import br.com.zup.TipoChave
import br.com.zup.TipoConta
import io.micronaut.core.annotation.Introspected
import java.time.Instant
import java.time.LocalDateTime
import java.time.ZoneOffset
@Introspected
class ConsultaChavePixResponse(chavePixR... | 0 | Kotlin | 0 | 0 | 99dc1bb421124c3fee90559177f10d838973e671 | 1,517 | orange-talents-05-template-pix-keymanager-rest | Apache License 2.0 |
app/src/main/java/com/erkindilekci/taskmanager/infrastructure/notification/NotificationUtils.kt | erkindilekci | 662,553,048 | false | null | package com.erkindilekci.taskmanager.infrastructure.notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.content.Context
import android.content.Context.NOTIFICATION_SERVICE
import android.os.Build
import androidx.core.app.NotificationCompat
import com.erkindilekci.t... | 0 | Kotlin | 0 | 0 | c2db26373ce67d7e8019be129f19991846d5f860 | 1,659 | TaskManager | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/ScannerImage.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,729 | icons | MIT License |
app/src/main/java/net/aiscope/gdd_app/network/SampleDtos.kt | theaiscope | 187,222,295 | false | null | package net.aiscope.gdd_app.network
import android.os.Build
import com.google.gson.annotations.SerializedName
import net.aiscope.gdd_app.BuildConfig
import net.aiscope.gdd_app.model.MicroscopeQuality
import net.aiscope.gdd_app.model.Sample
import net.aiscope.gdd_app.model.SampleMetadata
import net.aiscope.gdd_app.mode... | 2 | null | 23 | 9 | d6caecf0cd741408ef1de339ea2bf2e0ea0643d3 | 2,684 | GDD-app | MIT License |
src/main/kotlin/com/exsilicium/scripture/shared/extensions/RangeExtensions.kt | Ex-Silicium | 103,700,839 | false | null | package com.exsilicium.scripture.shared.extensions
import com.exsilicium.scripture.shared.model.Verse
internal fun <T : Comparable<T>> ClosedRange<out T>.isEmptyRange() = start >= endInclusive
internal fun ClosedRange<Verse>.rangeHasSameChapter() = start.chapter == endInclusive.chapter | 14 | Kotlin | 1 | 1 | 4815f70f5736080d7533e0d1316f0aa2c31aa85a | 289 | scripture-core | Apache License 2.0 |
feature-staking-impl/src/main/java/jp/co/soramitsu/staking/impl/data/network/blockhain/updaters/MinBondUpdater.kt | soramitsu | 278,060,397 | false | {"Kotlin": 5738291, "Java": 18796} | package jp.co.soramitsu.staking.impl.data.network.blockhain.updaters
import jp.co.soramitsu.common.utils.staking
import jp.co.soramitsu.core.storage.StorageCache
import jp.co.soramitsu.core.updater.GlobalUpdaterScope
import jp.co.soramitsu.runtime.multiNetwork.ChainRegistry
import jp.co.soramitsu.runtime.network.updat... | 4 | Kotlin | 30 | 89 | 812c6ed5465d19a0616865cbba3e946d046720a1 | 1,125 | fearless-Android | Apache License 2.0 |
sdk/src/main/java/ch/opentransportdata/ojp/data/dto/adapter/ServiceDeliveryAdapter.kt | openTdataCH | 783,593,283 | false | {"Kotlin": 93476} | package ch.opentransportdata.ojp.data.dto.adapter
import ch.opentransportdata.ojp.data.dto.response.ServiceDeliveryDto
import ch.opentransportdata.ojp.data.dto.response.delivery.AbstractDeliveryDto
import ch.opentransportdata.ojp.data.dto.response.delivery.LocationInformationDeliveryDto
import ch.opentransportdata.ojp... | 0 | Kotlin | 0 | 0 | b1996e3f058598a8ddacf0d81dcc8ada4222aa46 | 6,631 | ojp-android | MIT License |
shared/src/commonMain/kotlin/platform/StatusBarColors.kt | Lilytreasure | 700,871,694 | false | {"Kotlin": 81436, "Swift": 592, "Shell": 228} | package platform
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
@Composable
expect fun StatusBarColors(statusBarColor: Color, navBarColor: Color)
| 11 | Kotlin | 0 | 9 | 3344f0e215444ef6a71b2d3555b8419b5c4a4ab1 | 186 | DecomposeNavigation | Apache License 2.0 |
shared/src/commonMain/kotlin/platform/StatusBarColors.kt | Lilytreasure | 700,871,694 | false | {"Kotlin": 81436, "Swift": 592, "Shell": 228} | package platform
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
@Composable
expect fun StatusBarColors(statusBarColor: Color, navBarColor: Color)
| 11 | Kotlin | 0 | 9 | 3344f0e215444ef6a71b2d3555b8419b5c4a4ab1 | 186 | DecomposeNavigation | Apache License 2.0 |
jetbrains-core/src/software/aws/toolkits/jetbrains/services/iam/CreateIamRoleDialog.kt | JetBrains | 223,485,227 | true | {"Kotlin": 4152201, "C#": 95783, "Java": 35575, "Dockerfile": 1985} | // Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.jetbrains.services.iam
import com.intellij.json.JsonLanguage
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.application.ModalityState
... | 6 | Kotlin | 4 | 9 | ccee3307fe58ad48f93cd780d4378c336ee20548 | 3,565 | aws-toolkit-jetbrains | Apache License 2.0 |
android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/host/exp/exponent/VersionedUtils.kt | betomoedano | 462,599,485 | false | null | // Copyright 2015-present 650 Industries. All rights reserved.
package abi48_0_0.host.exp.exponent
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.provider.Settings
import com.facebook.common.logging.FLog
import abi48_0_0.com.facebook.hermes.re... | 668 | null | 5226 | 4 | 52d6405570a39a87149648d045d91098374f4423 | 10,421 | expo | MIT License |
core/presentation/system/src/main/java/com/krossovochkin/core/presentation/system/SystemExt.kt | krossovochkin | 221,648,261 | false | null | package com.krossovochkin.core.presentation.system
import android.app.Activity
import android.graphics.Color
import android.os.Build
import android.view.View
import android.view.WindowInsetsController
import androidx.annotation.ColorInt
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.core.view... | 0 | Kotlin | 0 | 14 | 3eacbce1c0a4e53357e13c748b29146e5d6a3c50 | 4,104 | FiberyUnofficial | Apache License 2.0 |
Kotlin/problems/0041_integer_replacement.kt | oxone-999 | 243,366,951 | true | {"C++": 961697, "Kotlin": 99948, "Java": 17927, "Python": 9476, "Shell": 999, "Makefile": 187} | // Problem Statement
// Given a positive integer n and you can do operations as follow:
//
// If n is even, replace n with n/2.
// If n is odd, you can replace n with either n + 1 or n - 1.
// What is the minimum number of replacements needed for n to become 1?
class Solution{
var memo:HashMap<Int,Int> = HashMap<In... | 0 | null | 0 | 0 | 52dc527111e7422923a0e25684d8f4837e81a09b | 949 | algorithms | MIT License |
secdra-data/src/main/kotlin/com/junjie/secdradata/database/primary/entity/MessageSettings.kt | lipstick-49 | 208,569,806 | true | {"Kotlin": 244725, "HTML": 4151} | package com.junjie.secdradata.database.primary.entity
import org.hibernate.annotations.GenericGenerator
import org.springframework.data.annotation.CreatedDate
import org.springframework.data.annotation.LastModifiedDate
import org.springframework.data.jpa.domain.support.AuditingEntityListener
import java.io.Serializabl... | 0 | null | 0 | 0 | b4317e70fad3256c82a9c418cb2aa25fe14ef62f | 1,134 | secdra | MIT License |
ultron/src/main/java/com/atiurin/ultron/core/espressoweb/operation/WebOperationExecutor.kt | open-tool | 312,407,423 | false | null | package com.atiurin.ultron.core.espressoweb.operation
import com.atiurin.ultron.core.common.Operation
import com.atiurin.ultron.core.common.OperationExecutor
import com.atiurin.ultron.core.common.OperationIterationResult
import com.atiurin.ultron.core.config.UltronConfig
import com.atiurin.ultron.exceptions.UltronWrap... | 7 | null | 9 | 84 | 98599c32934515a4c75e8af2e8723b53e0163bd7 | 1,646 | ultron | Apache License 2.0 |
app/src/main/java/com/akshayteli/kotlinsafeargscustomobject/EmployeDetailFragment.kt | Ak5hay01 | 422,949,615 | false | {"Kotlin": 3974} | package com.akshayteli.kotlinsafeargscustomobject
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.TextView
import androidx.navigation.fragment.navArgs
class Empl... | 0 | Kotlin | 0 | 0 | 8e69f8245f0948b933581ec2578676702003ef62 | 911 | Kotlin-SafeArgs-Custom-Object | MIT License |
src/main/kotlin/org/andrejs/cassandra/answers/Answer.kt | Bhanditz | 168,960,693 | true | {"Kotlin": 8277, "Java": 3791} | package org.andrejs.cassandra.answers
import org.apache.cassandra.transport.messages.ResultMessage
interface Answer {
fun get() : ResultMessage
} | 0 | Kotlin | 0 | 0 | 8f2bd4296b4b46828d9fe031504be1b13306dc31 | 151 | cassandra-spy | Apache License 2.0 |
android/apollo/src/main/java/io/muun/apollo/domain/errors/RevokedVerificationCodeError.kt | muun | 150,655,434 | false | null | package io.muun.apollo.domain.errors
import io.muun.apollo.data.external.UserFacingErrorMessages
class RevokedVerificationCodeError:
UserFacingError(UserFacingErrorMessages.INSTANCE.revokedVerificationCode()) | 21 | null | 21 | 148 | 2c5c2400b8092080dd4edb48bedfb1e4cf13396e | 214 | apollo | MIT License |
app/src/main/java/com/example/affirmations/data/Bedroom.kt | deerHDE | 489,905,288 | false | null | package com.example.affirmations.data
data class Bedroom (
val info: String
){
} | 0 | Kotlin | 0 | 0 | b113431fbf219b9595c204b23ac0700eec70996d | 86 | Image-Explorer | Apache License 2.0 |
src/main/kotlin/xyz/namutree0345/survival/BossBR.kt | R2turnTrue | 381,862,318 | false | null | package xyz.namutree0345.survival
import net.kyori.adventure.bossbar.BossBar
import net.kyori.adventure.text.Component
import net.kyori.adventure.text.format.NamedTextColor
object BossBR {
lateinit var bossBar: BossBar
fun init() {
bossBar = BossBar.bossBar(Component.text("전장 축소로부터: 300초", NamedText... | 0 | Kotlin | 0 | 0 | 8eb48909f4dc7dce09a55b97f1dd8857e9375ea8 | 397 | survival | MIT License |
kotlin-native/runtime/test/native/ref/WeakReferenceTest.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package test.native.ref
import kotlin.native.ref.WeakReference
import kotlin.test.*
class WeakReferenceTest ... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 727 | kotlin | Apache License 2.0 |
buildSrc/src/main/kotlin/AppConfig.kt | tmvlke | 707,316,658 | false | {"Kotlin": 149898} | import org.gradle.api.JavaVersion
object AppConfig {
const val versionCode = 1
const val versionName = "1.0.0"
const val sdkMin = 23
const val targetSdk = 34
const val buildToolsVersion = "34.0.0"
const val jvmTarget = "17"
val javaVersion = JavaVersion.VERSION_17
const val sdkPrevi... | 0 | Kotlin | 0 | 1 | 5823e99c4545f9856696eec27a4afeed4c8228de | 526 | SimpleDutch | Apache License 2.0 |
app/src/test/java/com/jaimegc/covid19tracker/extension/DateExtensionTest.kt | cybernetics | 336,079,946 | true | {"Kotlin": 1020782} | package com.jaimegc.covid19tracker.extension
import com.jaimegc.covid19tracker.ModelFactoryTest.DATE
import com.jaimegc.covid19tracker.ModelFactoryTest.DATE_TIMESTAMP
import com.jaimegc.covid19tracker.common.extensions.dateToMilliseconds
import com.jaimegc.covid19tracker.common.extensions.millisecondsToDate
import com... | 0 | null | 0 | 0 | 69a75a114fc949d262d05924523300ad19f5eaca | 956 | Covid19Tracker | Apache License 2.0 |
zowe-cli/src/jsMain/kotlin/zowe/cli/zosjobs/strings/Temp23.kt | lppedd | 761,812,661 | false | {"Kotlin": 1887051} | package zowe.cli.zosjobs.strings
external interface Temp23 {
var SUMMARY: String
var DESCRIPTION: String
var OPTIONS: Temp24
var EXAMPLES: Temp25
}
| 0 | Kotlin | 0 | 3 | 0f493d3051afa3de2016e5425a708c7a9ed6699a | 157 | kotlin-externals | MIT License |
composeApp/src/commonMain/kotlin/com/takaotech/dashboard/repository/api/AdminGHApi.kt | TakaoTech | 761,297,714 | false | {"Kotlin": 120535, "Swift": 594, "HTML": 369} | package com.takaotech.dashboard.repository.api
import com.takaotech.dashboard.model.github.GHRepositoryDao
import com.takaotech.dashboard.model.github.MainCategory
import com.takaotech.dashboard.model.github.TagDao
import com.takaotech.dashboard.model.github.TagNewDao
import com.takaotech.dashboard.repository.api.ApiC... | 5 | Kotlin | 0 | 1 | fa4aef13fae8c12ab80775503eef291c70b1faa3 | 1,118 | TTD | Apache License 2.0 |
src/main/kotlin/com/iesbpi/redis/rpg/loja/Itens.kt | EmanuelFelipe | 375,858,351 | false | null | package br.iesb.poo.rpg.loja
import br.iesb.poo.rpg.personagem.PersonagemJogador
import java.io.File
import java.nio.file.Paths
open class Itens(){
open fun efeito(jogador: PersonagemJogador, id: String?): String {
var log: String = ""
if(jogador.dinheiro < jogador.nivel * 2) {
lo... | 0 | Kotlin | 1 | 0 | 9131b75d120a0ebf89012da062fdc2880744ef55 | 946 | ApiRedis | Apache License 2.0 |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/elasticsearch/DomainProps.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 149148378} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.elasticsearch
import io.cloudshiftdev.awscdk.RemovalPolicy
import io.cloudshiftdev.awscdk.common.CdkD... | 1 | Kotlin | 0 | 4 | 7a060aa8b6779ab04dc9881993d9598e11d278b1 | 51,143 | kotlin-cdk-wrapper | Apache License 2.0 |
src/main/kotlin/dev/chara/tasks/backend/data/repository/TaskRepository.kt | 19lmyers | 624,219,343 | false | {"Kotlin": 150928, "Python": 9314, "Dockerfile": 922, "Shell": 57} | package dev.chara.tasks.backend.data.repository
import com.github.michaelbull.result.binding
import com.github.michaelbull.result.map
import com.github.michaelbull.result.mapError
import com.github.michaelbull.result.runCatching
import dev.chara.tasks.backend.data.DataError
import dev.chara.tasks.backend.data.Database... | 0 | Kotlin | 0 | 1 | 8605f3ea9d2107ad86000d8af2b8d41b3242bc2f | 4,090 | tasks-backend | MIT License |
src/main/kotlin/furhatos/app/cardgame/flow/discussion/StartDiscussing.kt | horotat | 518,806,515 | false | {"Kotlin": 252871, "JavaScript": 58777, "Java": 21569, "FreeMarker": 16510, "HTML": 4928, "CSS": 4484} | package furhatos.app.cardgame.flow.discussion
import furhatos.app.cardgame.*
import furhatos.app.cardgame.game.GameTable
import furhatos.flow.kotlin.*
import furhatos.skills.FurhatAPI
import furhatos.util.Language
val StartDiscussing: State = state(Discussing) {
onEntry {
/*
if(!isThisRoundTwo) {
... | 0 | Kotlin | 0 | 0 | a95aa619831614f5347cb7ffee762bbb32735211 | 906 | Card-Game-21 | Creative Commons Attribution 4.0 International |
src/main/kotlin/de/hennihaus/models/Contact.kt | hennihaus | 484,714,079 | false | null | package de.hennihaus.models
import java.util.UUID
data class Contact(
val uuid: UUID,
val firstname: String,
val lastname: String,
val email: String,
)
| 32 | Kotlin | 0 | 0 | d9e57a5ca5f0712671cf4e26c578c1fb22c0262f | 170 | bamconfigbackend | Apache License 2.0 |
pixel-core/src/jsMain/kotlin/com/chrynan/pixel/JsConversionFactorProvider.kt | chRyNaN | 157,776,400 | false | null | package com.chrynan.pixel
/**
* A default Javascript implementation of the [ConversionFactorProvider] interface.
*
* Note that in Javascript, a pixel (CSS pixel), is similar to Android's density independent pixel values. Because of
* this, the [Pixels], [DensityIndependentPixels], and [ScaledPixels] are equivalent... | 0 | Kotlin | 0 | 3 | 7a4c17f5ce58438280c818911f82584020b432ca | 883 | pixel | Apache License 2.0 |
compose-mds/src/main/java/ch/sbb/compose_mds/sbbicons/medium/FaceKingMedium.kt | SchweizerischeBundesbahnen | 853,290,161 | false | {"Kotlin": 6728512} | package ch.sbb.compose_mds.sbbicons.medium
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Mi... | 0 | Kotlin | 0 | 1 | 090a66a40e1e5a44d4da6209659287a68cae835d | 4,572 | mds-android-compose | MIT License |
app/src/main/java/com/example/agenda_musical_reto1/data/repository/ISongRepository.kt | RobsonGarciaJunior | 706,217,359 | false | {"Kotlin": 97375} | package com.example.agenda_musical_reto1.data.repository
import com.example.agenda_musical_reto1.data.Song
import com.example.agenda_musical_reto1.utils.Resource
interface ISongRepository {
suspend fun getSongs() : Resource<List<Song>>
suspend fun getSong(id: Int) : Resource<Song>
suspend fun createSong(s... | 0 | Kotlin | 0 | 0 | 89cff2ef64ee8e4ae80b5f4452791e5173a085f5 | 535 | Reto1_AgendaMusical_Android | MIT License |
library/src/test/kotlin/com/daniloaraujosilva/mathemagika/library/wasm32/ExampleTests.kt | Danilo-Araujo-Silva | 271,904,885 | false | null | package com.daniloaraujosilva.mathemagika.library.wasm32
import com.daniloaraujosilva.mathemagika.library.wasm32.common.exampleFunction
import kotlin.test.Test
import kotlin.test.assertTrue
/**
*
*/
class ExampleTests {
/**
*
*/
@Test
fun exampleValueCannotBeEmpty() {
assertTrue(exampleFunction().isNotEmp... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 331 | mathemagika | Apache License 2.0 |
bgw-gui/src/main/kotlin/tools/aqua/bgw/components/gamecomponentviews/DiceView.kt | tudo-aqua | 377,420,862 | false | {"Kotlin": 1198455, "TypeScript": 2013, "JavaScript": 1242, "HTML": 507, "CSS": 359, "Ruby": 131} | /*
* Copyright 2021-2023 The BoardGameWork Authors
* SPDX-License-Identifier: Apache-2.0
*
* 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... | 31 | Kotlin | 16 | 24 | 266db439e4443d10bc1ec7eb7d9032f29daf6981 | 3,228 | bgw | Apache License 2.0 |
src/test/kotlin/br/com/pix/edumatt3/pix/consult/ConsultPixKeyControllerTest.kt | EDUMATT3 | 399,821,207 | true | {"Kotlin": 27495} | package br.com.pix.edumatt3.pix.consult
import br.com.edumatt3.*
import br.com.pix.edumatt3.grpc.GrpcClientFactory
import com.google.protobuf.Timestamp
import io.grpc.Status
import io.grpc.StatusRuntimeException
import io.micronaut.context.annotation.Factory
import io.micronaut.context.annotation.Replaces
import io.mi... | 0 | Kotlin | 0 | 0 | 134647d3b3e8b5721fbc077b9a9628d779f06259 | 3,412 | orange-talents-06-template-pix-keymanager-rest | Apache License 2.0 |
src/main/kotlin/eZmaxApi/models/EzsigntemplateformfieldgroupMinusResponseCompound.kt | eZmaxinc | 271,950,932 | false | null | /**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package eZmaxApi.models
import eZmaxApi.models.... | 0 | Kotlin | 0 | 0 | fad1a7a8b3f744256968e67e5f60044063cb551c | 5,894 | eZmax-SDK-kotlin | MIT License |
app/src/main/java/org/fossasia/openevent/general/event/Event.kt | fossasia | 34,847,604 | false | null | package org.fossasia.openevent.general.event
import android.arch.persistence.room.ColumnInfo
import android.arch.persistence.room.Entity
import android.arch.persistence.room.PrimaryKey
import com.fasterxml.jackson.databind.PropertyNamingStrategy
import com.fasterxml.jackson.databind.annotation.JsonNaming
import com.gi... | 73 | null | 562 | 1,942 | e3214589f83c155e477f9e727370d7bbef8fd915 | 2,651 | open-event-attendee-android | Apache License 2.0 |
tools/src/main/kotlin/com/fphoenixcorneae/common/util/toast/IToastStrategy.kt | FPhoenixCorneaE | 303,260,191 | false | {"Kotlin": 991199} | package com.fphoenixcorneae.util.toast
import android.widget.Toast
/**
* Toast 处理策略
*/
interface IToastStrategy {
/**
* 绑定 Toast 对象
*/
fun bind(toast: Toast?)
/**
* 显示 Toast
*/
fun show(text: CharSequence?)
/**
* 取消 Toast
*/
fun cancel()
companion object ... | 0 | Kotlin | 1 | 5 | 30fb45aee64e74e36f7a834646096a665b6835a0 | 512 | common-tools | Apache License 2.0 |
app/src/main/java/com/example/buynow/presentation/user/adapter/CategoryNameAdapter.kt | Shanan23 | 794,368,317 | false | {"Kotlin": 220243} | package com.example.buynow.presentation.user.adapter
import android.graphics.Color
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.RecyclerView
import com.example.buyn... | 0 | Kotlin | 0 | 0 | 072435120a602f1818e692ad95a58b0c887b496a | 2,479 | ToSerba | MIT License |
andserver/src/main/java/com/angcyo/server/bean/SchemeReqBean.kt | angcyo | 229,037,684 | false | {"Kotlin": 3528362, "JavaScript": 5542, "HTML": 1598} | package com.angcyo.server.bean
import com.angcyo.library.extend.IJson
/**
* @author <a href="mailto:<EMAIL>">angcyo</a>
* @since 2022/11/17
*/
data class SchemeReqBean(
var scheme: String? = null
) : IJson
| 0 | Kotlin | 4 | 4 | 886faba0130a0ab4dfdf5d46ece507ef6b803ab6 | 215 | UICoreEx | MIT License |
zeapp/android/src/main/java/de/berlindroid/zeapp/zeui/zepages/ZeRandomQuotePage.kt | gdg-berlin-android | 636,343,114 | false | null | package de.berlindroid.zeapp.zeui.zepages
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.wrapContentSize
import androidx.compos... | 9 | null | 105 | 48 | e06da6dd31962a340427556c40357cfd2fef1b2c | 2,647 | ZeBadge | Apache License 2.0 |
presentation/src/main/java/com/yapp/buddycon/presentation/binding/addcoupon/AddCouponBindingAdapter.kt | YAPP-Github | 561,172,522 | false | null | package com.yapp.buddycon.presentation.binding.addcoupon
import android.text.SpannableString
import android.text.SpannableStringBuilder
import android.text.style.ForegroundColorSpan
import android.view.View
import android.widget.TextView
import androidx.core.content.ContextCompat
import androidx.databinding.BindingAda... | 33 | Kotlin | 0 | 8 | dcd6324f1c313a2af05b328ea21673b096caca51 | 1,487 | 21st-Android-Team-1-Android | Apache License 2.0 |
ui-design-lib/src/main/java/co/electriccoin/zcash/ui/design/component/CommonTag.kt | Electric-Coin-Company | 390,808,594 | false | {"Kotlin": 811780} | package co.electriccoin.zcash.ui.design.component
object CommonTag {
const val CHIP_LAYOUT = "chip_layout"
const val CHIP = "chip"
}
| 159 | Kotlin | 10 | 15 | ff0757b818bffa868d65d1bd82f2a2730839a295 | 142 | zashi-android | MIT License |
Flower/src/main/java/com/hadiyarajesh/flower/NetworkBoundResource.kt | hadiyarajesh | 271,244,717 | false | null | package com.hadiyarajesh.flower
import kotlinx.coroutines.flow.*
/**
* It will handle performing network request, getting result of it and caching it to local database
* @param fetchFromLocal - Retrieve data from local database
* @param shouldFetchFromRemote - Whether or not make network request
* @param fetchFro... | 1 | null | 15 | 131 | b46ae05bdc16f8c18f3ce97b6d7cc1344e3356d7 | 2,292 | flower | MIT License |
modules/remote/src/main/java/kr/co/knowledgerally/remote/model/ScheduleRequest.kt | YAPP-Github | 475,728,173 | false | {"Kotlin": 454888} | package kr.co.knowledgerally.remote.model
import com.google.gson.annotations.SerializedName
import kr.co.knowledgerally.data.model.ScheduleEntity
import java.time.LocalDateTime
data class ScheduleRequest(
@SerializedName("startAt")
val startAt: LocalDateTime,
@SerializedName("endAt")
val endAt: LocalD... | 2 | Kotlin | 1 | 4 | 01db68b42594360a9285af458eb812ad83acef70 | 434 | 20th-ALL-Rounder-Team-2-Android | Apache License 2.0 |
core/src/com/mo/stratego/ui/controller/FieldController.kt | GPla | 217,608,618 | false | null | package com.mo.stratego.ui.controller
import com.badlogic.ashley.core.ComponentMapper
import com.badlogic.ashley.core.Entity
import com.badlogic.ashley.core.EntityListener
import com.badlogic.ashley.core.PooledEngine
import com.badlogic.gdx.scenes.scene2d.Actor
import com.badlogic.gdx.scenes.scene2d.Stage
import com.m... | 1 | Kotlin | 1 | 1 | bfcde4983771f6eabfd3060278424549d379dccf | 2,670 | Stratego | MIT License |
src/main/kotlin/quiz/exception/QuizException4.kt | gdg-minsk | 793,403,177 | false | {"Kotlin": 47893} | package quiz.exception
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.supervisorScope
fun main(): Unit = runBlocking {
supervisorScope {
launch {
launch {
delay(500L)
throw Error("... | 0 | Kotlin | 0 | 0 | e2064be3ac4a39a00a369f43be002b4b974fa6ab | 526 | coffe-code-kotlin-coroutines | Apache License 2.0 |
app/src/main/java/com/sample/neuroid/us/constants/NIDGlobalConstants.kt | Neuro-ID | 433,158,128 | false | {"Kotlin": 339612, "JavaScript": 1588, "Shell": 831, "HTML": 755} | package com.sample.neuroid.us.constants
const val NID_GO_TO_SECOND_FRAG = 0x01
const val NID_GO_TO_THIRD_FRAG = 0x02
const val NID_FINISH_ACTIVITY = 0x03
| 2 | Kotlin | 3 | 2 | f0e6d5328dae8a3c45832cd9328604b93c4df3e8 | 155 | neuroid-android-sdk | MIT License |
app/src/main/java/com/pawelsalata/shoppinglist/ui/base/BaseViewModel.kt | PawelSalata | 115,709,103 | false | null | package com.pawelsalata.shoppinglist.ui.base
import android.arch.lifecycle.ViewModel
import com.pawelsalata.shoppinglist.data.DataManager
import io.reactivex.disposables.CompositeDisposable
/**
* Created by LETTUCE on 17.01.2018.
*/
abstract class BaseViewModel<N>(protected val dataManager: DataManager) : ViewModel... | 0 | Kotlin | 0 | 0 | 45b576b537bb7781b6a06ebf8be8f630b6f85f68 | 518 | and_shopping_list | Apache License 2.0 |
clion/src/main/kotlin/org/rust/clion/valgrind/legacy/RsValgrindRunnerLegacy.kt | intellij-rust | 42,619,487 | false | null | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.clion.valgrind.legacy
import com.intellij.execution.configurations.RunProfile
import com.intellij.openapi.util.NlsContexts
import org.rust.RsBundle
import org.rust.cargo.runconfig.buildtool.Carg... | 1,846 | null | 391 | 4,528 | c6657c02bb62075bf7b7ceb84d000f93dda34dc1 | 1,288 | intellij-rust | MIT License |
KotlinFundamentals/GenericsObjectsExtensions/src/main/kotlin/Main.kt | alghe-global | 718,129,890 | false | {"Kotlin": 815485} | /**
* Not using generics.
*/
class FillInTheBlankQuestion(
val questionText: String,
val answer: String,
val difficulty: String
)
class TrueOrFalseQuestion(
val questionText: String,
val answer: Boolean,
val difficulty: String
)
class NumericQuestion(
val questionText: String,
val an... | 0 | Kotlin | 0 | 0 | 0b4576f34894d57fe37592a5a6be74a0319b4395 | 6,439 | Kotlin | MIT License |
core/src/main/kotlin/com/thomasgorke/storagesolution/core/utils/Helper.kt | ThomasGorke | 346,712,689 | false | null | package com.thomasgorke.storagesolution.core.utils
| 0 | Kotlin | 0 | 0 | 6bf5fd05b7b70a11f5797c0cb7c2975fe7cd6c19 | 52 | StorageSolutions | Apache License 2.0 |
feature/note/src/main/java/com/example/feature/note/screen/shop/ShopListViewModel.kt | llsit | 827,324,299 | false | {"Kotlin": 296104} | package com.example.feature.note.screen.shop
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.core.c... | 0 | Kotlin | 0 | 0 | b31cdbad5242be35e03488e69827c8faef87db02 | 7,702 | ItemNote | MIT License |
app/src/main/java/dog/snow/androidrecruittest/repository/model/RawPhoto.kt | Bartusiak | 244,751,094 | false | null | package dog.snow.androidrecruittest.repository.model
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
data class RawPhoto(
val id: Int,
val albumId: Int,
val title: String,
val url: String,
val thumbnailUrl: String,
var album : RawAlbum
) : Parcelable | 0 | null | 0 | 1 | 21e95fa974847bc58221215ed042e685b995a675 | 309 | android-recruitment-test | Apache License 2.0 |
increase-kotlin-core/src/main/kotlin/com/increase/api/models/AchTransferCreateParams.kt | Increase | 614,596,742 | false | {"Kotlin": 15608744, "Shell": 1257, "Dockerfile": 305} | package com.increase.api.models
import com.fasterxml.jackson.annotation.JsonAnyGetter
import com.fasterxml.jackson.annotation.JsonAnySetter
import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
import co... | 1 | Kotlin | 0 | 2 | 496494b0adf5480bab91f61b7a6decbfe3a129fa | 40,146 | increase-kotlin | Apache License 2.0 |
src/me/anno/ecs/components/player/Player.kt | AntonioNoack | 456,513,348 | false | null | package me.anno.ecs.components.player
import me.anno.ecs.Component
import me.anno.ecs.components.camera.CameraState
import me.anno.ecs.prefab.PrefabSaveable
import me.anno.io.Saveable
import me.anno.io.base.BaseWriter
import me.anno.io.utils.StringMap
// a special component, which can be added to one entity only? idk... | 0 | null | 3 | 9 | b2532f7d40527eb2c9e24e3659dd904aa725a1aa | 1,477 | RemsEngine | Apache License 2.0 |
app/src/test/java/com/akshay/roomaccounting/dao/FakeDatabaseHelperImpl.kt | anandwana001 | 470,781,738 | false | {"Kotlin": 185228} | /**
* Created by anandwana001 on
* 02, March, 2022
**/
package com.akshay.roomaccounting.dao
import com.akshay.roomaccounting.data.dao.InvoiceDao
import com.akshay.roomaccounting.data.helper.DatabaseHelper
import com.akshay.roomaccounting.data.model.Invoice
import com.akshay.roomaccounting.data.model.MinimalInvoic... | 0 | Kotlin | 2 | 29 | 9901444c7e94063f80c244b7b3b54a09a2141727 | 1,255 | RoomAccounting | MIT License |
app/src/main/java/org/oppia/android/app/topic/lessons/ChapterSummarySelector.kt | iamsachin45 | 343,995,919 | true | {"Gradle": 8, "Starlark": 16, "Java Properties": 7, "Shell": 6, "Text": 1, "Ignore List": 1, "Batchfile": 1, "YAML": 3, "EditorConfig": 1, "Protocol Buffer": 13, "Proguard": 4, "XML": 618, "Kotlin": 861, "JSON": 43, "CODEOWNERS": 1, "Markdown": 6, "Java": 14} | package org.oppia.android.app.topic.lessons
/** Interface to transfer the selected chapter summary to [TopicLessonsFragmentPresenter]. */
interface ChapterSummarySelector {
fun selectChapterSummary(storyId: String, explorationId: String)
}
| 0 | Kotlin | 0 | 1 | eccfd63d0b5a2565b741665dead864da93d4228d | 243 | oppia-android | Apache License 2.0 |
model/src/main/java/com/infinitepower/newquiz/model/RemainingTime.kt | joaomanaia | 443,198,327 | false | null | package com.infinitepower.newquiz.model
import kotlin.time.Duration
import kotlin.time.Duration.Companion.milliseconds
@JvmInline
value class RemainingTime constructor(val value: Duration) {
companion object {
val ZERO = RemainingTime(Duration.ZERO)
/**
* Creates a new instance of [Remai... | 0 | Kotlin | 10 | 84 | 08ba1d1a2b7152a3eac7a27475dce7b496fdaf0f | 1,462 | newquiz | Apache License 2.0 |
app/src/main/java/com/erman/beeper/utils/Constants.kt | ermanergoz | 330,013,053 | false | null | package com.erman.beeper.utils
const val SHARED_PREF_FILE: String = "beeper_shared_prefs"
const val KEY_IS_ALARM_ON: String = "isAlarmOn"
const val KEY_ALARM_TYPE: String = "alarmType"
const val KEY_ALARM_FULL_HOUR: String = "fullHour"
const val KEY_ALARM_HALF_HOUR: String = "halfHour"
const val VOLUME_BEEP: Int = 100... | 0 | Kotlin | 0 | 0 | bfa06d031e6e43d731580f67a173a86418ad4707 | 412 | beeper | MIT License |
SceytChatUiKit/src/main/java/com/sceyt/chatuikit/presentation/components/channel/input/listeners/action/InputActionsListener.kt | sceyt | 549,073,085 | false | {"Kotlin": 2675924, "Java": 107920} | package com.sceyt.chatuikit.presentation.components.channel.input.listeners.action
import android.text.Editable
import com.sceyt.chat.models.message.Message
import com.sceyt.chatuikit.data.models.messages.LinkPreviewDetails
import com.sceyt.chatuikit.data.models.messages.SceytMessage
import com.sceyt.chatuikit.present... | 0 | Kotlin | 1 | 2 | ce9c1b95555fadaafcd11f0d073fcdb07ca49600 | 1,560 | sceyt-chat-android-uikit | MIT License |
src/main/kotlin/me/ferrandis/textAnalyzer/repository/LanguageRepository.kt | ferrandisme | 689,373,192 | false | {"Kotlin": 10042} | package me.ferrandis.textAnalyzer.repository
import me.ferrandis.textAnalyzer.model.LanguageData
import org.springframework.data.repository.reactive.ReactiveCrudRepository
import org.springframework.stereotype.Repository
@Repository
interface LanguageRepository : ReactiveCrudRepository<LanguageData, Long> {
} | 0 | Kotlin | 0 | 0 | b300e87eac242cb925246266bb0409df21d4c1fe | 312 | textAnalyzer | MIT License |
app/src/main/java/com/chargebee/example/items/ItemActivity.kt | chargebee | 279,238,499 | false | null | package com.chargebee.example.items
import android.os.Bundle
import android.view.View
import android.widget.Button
import android.widget.EditText
import android.widget.TextView
import androidx.lifecycle.Observer
import com.chargebee.android.ErrorDetail
import com.chargebee.example.BaseActivity
import com.chargebee.exa... | 8 | null | 7 | 8 | ba3d15dc9e6d19b91a78753d851ff1e1946b2ffc | 1,767 | chargebee-android | MIT License |
buildSrc/src/main/kotlin/Plugins.kt | mbobiosio | 324,425,383 | false | null | /**
* @Author <NAME>
* https://linktr.ee/mbobiosio
*/
object Plugins {
/*
* Module Level
*/
const val ANDROID_APPLICATION = "com.android.application"
const val ANDROID = "android"
const val KAPT = "kapt"
const val PARCELIZE = "kotlin-parcelize"
const val ANDROID_LIBRARY = "com.android... | 0 | null | 4 | 7 | e6376b3a36d87173ef1d854c12fb61842ae40c36 | 739 | MoviesBoard | MIT License |
app/src/main/java/de/szalkowski/activitylauncher/services/ActivityLauncherService.kt | butzist | 16,923,112 | false | {"Kotlin": 70956, "Python": 3097, "Shell": 265} | package de.szalkowski.activitylauncher.services
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.widget.Toast
import dagger.hilt.android.qualifiers.ActivityContext
import de.szalkowski.activitylauncher.R
import de.szalkowski.activitylauncher.services.inte... | 16 | Kotlin | 149 | 774 | 5af0d87146ccbfa5a26789f0f94925599a8cb548 | 3,990 | ActivityLauncher | ISC License |
spigot/src/main/kotlin/me/honkling/commando/spigot/types/PlayerType.kt | honkling | 601,352,297 | false | {"Kotlin": 41243} | package me.honkling.commando.spigot.types
import me.honkling.commando.common.generic.ICommandSender
import me.honkling.commando.common.types.Type
import org.bukkit.Bukkit
import org.bukkit.OfflinePlayer
object PlayerType : Type<OfflinePlayer> {
override fun validate(sender: ICommandSender<*>, input: String): Bool... | 2 | Kotlin | 0 | 8 | 31a8607772e0a4fbbadf7008559b1add2a860a3b | 824 | commando | MIT License |
data/src/main/java/org/oppia/android/data/backends/gae/model/GaeStateClassifier.kt | oppia | 148,093,817 | false | {"Kotlin": 12439223, "Starlark": 673462, "Java": 33231, "Shell": 12951} | package org.oppia.android.data.backends.gae.model
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
/**
* Data class for StateClassifier model
* https://github.com/oppia/oppia/blob/15516a/core/controllers/reader.py#L239
*/
@JsonClass(generateAdapter = true)
data class GaeStateClassifier(
@Json(... | 497 | Kotlin | 497 | 296 | 98257dbad55c2a9a03f898a38fa7ec57b27713a5 | 498 | oppia-android | Apache License 2.0 |
src/main/kotlin/TagManagement.kt | Trip-kun | 853,581,459 | false | {"Kotlin": 53512} | package org.example
import io.javalin.http.Context
import org.example.data.*
import java.net.URI
import java.util.*
fun createOrUpdateTag(context: Context) {
val go = testAuthentication(context)
if (!go) {
return
}
val filterName = context.headerMap()["TAG_name"]
if (filterName == null) {
... | 0 | Kotlin | 0 | 0 | 717058eabcc3ec097dab575fe283061c3384308d | 13,641 | RSS_Tagging_Server | The Unlicense |
src/main/kotlin/TagManagement.kt | Trip-kun | 853,581,459 | false | {"Kotlin": 53512} | package org.example
import io.javalin.http.Context
import org.example.data.*
import java.net.URI
import java.util.*
fun createOrUpdateTag(context: Context) {
val go = testAuthentication(context)
if (!go) {
return
}
val filterName = context.headerMap()["TAG_name"]
if (filterName == null) {
... | 0 | Kotlin | 0 | 0 | 717058eabcc3ec097dab575fe283061c3384308d | 13,641 | RSS_Tagging_Server | The Unlicense |
src/main/kotlin/io/github/reugn/kotlin/backoff/Backoff.kt | reugn | 240,526,193 | false | null | package io.github.reugn.kotlin.backoff
import io.github.reugn.kotlin.backoff.util.Result
interface Backoff<T> {
/**
* Retries the specified operation with delays and returns the result.
*/
suspend fun retry(operation: suspend () -> T): Result<T, Throwable>
/**
* Executes the specified ope... | 0 | Kotlin | 0 | 40 | 6c65f4264deb0cd4adafa7f2b8328b02033361e1 | 552 | kotlin-backoff | Apache License 2.0 |
roboquant-tiingo/src/test/kotlin/org/roboquant/samples/TiingoSamples.kt | neurallayer | 406,929,056 | false | {"JavaScript": 3009148, "Kotlin": 1562253, "CSS": 1372} | /*
* Copyright 2020-2023 Neural Layer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 8 | JavaScript | 38 | 279 | 9d3c21fc1cc4d7a5d054959f5be2c92f879246d6 | 3,337 | roboquant | Apache License 2.0 |
libraries/tools/kotlin-gradle-plugin/src/functionalTest/kotlin/org/jetbrains/kotlin/gradle/regressionTests/KT60462WithJavaZombieCompilationTest.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | /*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
@file:Suppress("FunctionName")
package org.jetbrains.kotlin.gradle.regressionTests
import org.jetbrains.kotl... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 3,171 | kotlin | Apache License 2.0 |
app/src/test/java/org/p2p/wallet/striga/user/repository/StrigaUserRepositoryMapperTest.kt | p2p-org | 306,035,988 | false | null | package org.p2p.wallet.striga.user.repository
import com.google.gson.GsonBuilder
import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
import org.junit.Assert.assertNull
import org.junit.Assert.assertTrue
import org.junit.Test
import java.math.BigDecimal
import kotlin.test.assertNotNull
import kotli... | 8 | null | 18 | 34 | d091e18b7d88c936b7c6c627f4fec96bcf4a0356 | 9,607 | key-app-android | MIT License |
jetpack/src/main/java/com/zb/jetpack/activity/UseBindingAdapterActivity.kt | zbzbhahae | 412,424,768 | false | null | package com.zb.jetpack.activity
import android.os.Bundle
import androidx.databinding.DataBindingUtil
import com.zb.jetpack.R
import com.zb.jetpack.databinding.ActivityUseBindingAdapterBinding
class UseBindingAdapterActivity : BaseActivity() {
private lateinit var binding : ActivityUseBindingAdapterBinding
... | 1 | null | 1 | 1 | f41edf7998e050c89f96ab3303512c349e070be9 | 680 | androidworks | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.