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/h5190059/zenpirlanta/ui/kategori/KategoriViewModel.kt | busealkan | 377,198,412 | false | null | package com.h5190059.zenpirlanta.ui
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.asLiveData
import androidx.lifecycle.viewModelScope
import com.h5190059.zenpirlanta.data.KategoriResponseItem
import com.h5190059.zenpirlanta.data.KategoriRepository
import com.h... | 0 | Kotlin | 0 | 0 | a90e780e0afc1fdccc589028191413c8a7ef856c | 1,486 | ZenPirlantaApp | Apache License 2.0 |
kotlin-source/src/main/kotlin/com/example/state/LandTitleState.kt | nitesh7sid | 161,622,560 | false | {"Java": 40050, "Kotlin": 34814, "HTML": 11524} | package com.example.state
import com.example.contract.LandTitleContract
import net.corda.core.contracts.CommandAndState
import net.corda.core.contracts.ContractState
import net.corda.core.contracts.OwnableState
import net.corda.core.identity.AbstractParty
import net.corda.core.identity.Party
/**
* The state object... | 0 | Java | 0 | 0 | bd18330f47bb267e2d07f5b384a31ab914f17499 | 1,026 | digital-street-hackathon-20181213-cordapp | Apache License 2.0 |
core/src/main/kotlin/neekle/BindingType.kt | neyb | 110,265,948 | false | null | package neekle
import neekle.inject.api.Injector
interface BindingType {
fun <T> createProvider(init: (Injector) -> T): ComponentProvider<T>
}
| 0 | Kotlin | 0 | 0 | ffe1bc7f6fc501486941539a1fea9cac9184c18e | 149 | neekle | MIT License |
Fundamental Android Submission 1/app/src/main/java/com/example/percobaanke5/Data.kt | ArkanRidhwan | 505,269,115 | false | {"Kotlin": 79527} | package com.example.percobaanke5
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class Data(
var gambar: Int,
var nama: String,
var username: String,
var follower:String,
var following: String,
var company: String,
var location: String,
var repository: S... | 0 | Kotlin | 0 | 0 | d7a5866c9004854b0d60ccdc087190856bfd8fab | 342 | Bangkit | MIT License |
server/src/main/kotlin/org/kryptonmc/krypton/encryption/Encryption.kt | Esophose | 347,235,978 | true | {"Kotlin": 421806, "Dockerfile": 139} | package org.kryptonmc.krypton.encryption
import java.security.KeyPair
import java.security.KeyPairGenerator
import java.security.PublicKey
import javax.crypto.Cipher
class Encryption {
private val keyPair = generateKeyPair()
val publicKey: PublicKey = keyPair.public
private fun generateKeyPair(): KeyPa... | 0 | Kotlin | 0 | 0 | 76528024a0ec0e9b51ef9a77ca1ee613ffd1a9d6 | 837 | Krypton | MIT License |
example/app_example/android/app/src/main/kotlin/com/example/app_example/MainActivity.kt | SandroMaglione | 235,799,500 | false | null | package com.example.app_example
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 10 | Dart | 30 | 141 | 90803369404d5d78e9f2f9d50414a2a84c84356c | 128 | step-progress-indicator | MIT License |
coordinator/core/src/main/kotlin/net/consensys/zkevm/domain/BridgeLogs.kt | Consensys | 681,656,806 | false | {"Go": 3732756, "Kotlin": 2036043, "TypeScript": 1677629, "Solidity": 1011831, "Java": 190613, "Shell": 25336, "Python": 25050, "Jupyter Notebook": 14509, "Makefile": 13574, "Dockerfile": 8023, "JavaScript": 7341, "C": 5181, "Groovy": 2557, "CSS": 787, "Nix": 315, "Batchfile": 117} | package net.consensys.zkevm.domain
data class RlpBridgeLogsData(val rlp: String, val bridgeLogs: List<BridgeLogsData>)
data class BridgeLogsData(
val removed: Boolean,
val logIndex: String,
val transactionIndex: String,
val transactionHash: String,
val blockHash: String,
val blockNumber: String,
val add... | 27 | Go | 2 | 26 | 48547c9f3fb21e9003d990c9f62930f4facee0dd | 985 | linea-monorepo | Apache License 2.0 |
gcloud-storage-utils/src/main/java/com/evolveasia/aws/Util.kt | nawinkhatiwada | 395,263,679 | false | null | /*
* Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... | 0 | Kotlin | 0 | 1 | 5d7944360dfe5bc5f47e0f4b4ee210e0db274a90 | 5,013 | CloudStorageUtil | Apache License 2.0 |
app/src/main/java/com/example/kitchen/MainActivity2.kt | sputnick01 | 584,093,940 | false | null | package com.example.kitchen
import android.R
import android.os.Bundle
import android.view.View
import android.view.animation.Animation
import android.view.animation.AnimationUtils
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main. *
import kotlinx.android.synthetic.mai... | 0 | Kotlin | 0 | 2 | cdf58c5027486f9a90d9b173344b367de79f5443 | 738 | kitchen | MIT License |
src/commonMain/kotlin/com/shimmermare/stuffiread/ui/components/story/importing/PonyfictionImportForm.kt | Shimmermare | 605,765,511 | false | {"Kotlin": 591299} | package com.shimmermare.stuffiread.ui.components.story.importing
import androidx.compose.runtime.Composable
import com.shimmermare.stuffiread.i18n.Strings
import com.shimmermare.stuffiread.importer.ImportSource.PONYFICTION
import com.shimmermare.stuffiread.importer.ImportedStory
import com.shimmermare.stuffiread.impor... | 7 | Kotlin | 0 | 0 | a5cd268c46494cc3e6ad17405f9013680f9ae240 | 2,952 | StuffIRead | MIT License |
kjob-core/src/main/kotlin/it/justwrote/kjob/dsl/ErrorJobContext.kt | justwrote | 260,458,357 | false | null | package it.justwrote.kjob.dsl
import it.justwrote.kjob.job.ScheduledJob
import org.slf4j.Logger
@JobDslMarker
class ErrorJobContext internal constructor(scheduledJob: ScheduledJob, val error: Throwable, val logger: Logger) {
val jobName = scheduledJob.settings.name
val jobId = scheduledJob.settings.id
} | 2 | Kotlin | 9 | 67 | 880b175516ce5f3e9edbb0b6fe7b50820c332026 | 314 | kjob | Apache License 2.0 |
app/src/main/java/com/example/housepick/ui/addads/AddAdsFragment.kt | danialtavakoli | 840,497,470 | false | {"Kotlin": 131082} | package com.example.housepick.ui.addads
import android.app.Activity
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.util... | 0 | Kotlin | 0 | 6 | 34c17fdc7cb6d6b1aa7706abb605dd8f260503b0 | 11,993 | HousePick | MIT License |
feature-account-impl/src/main/java/io/novafoundation/nova/feature_account_impl/data/signer/proxy/SignerPayloadModifierExt.kt | novasamatech | 415,834,480 | false | {"Kotlin": 9662409, "Java": 16389, "Rust": 15215, "JavaScript": 425} | package io.novafoundation.nova.feature_account_impl.data.signer.proxy
import io.novafoundation.nova.common.utils.Modules
import io.novafoundation.nova.feature_proxy_api.domain.model.ProxyType
import io.novafoundation.nova.runtime.extrinsic.multi.SimpleCallBuilder
import io.novasama.substrate_sdk_android.runtime.Accoun... | 18 | Kotlin | 26 | 32 | 26d530400c30d00b08b23f9d69411f1719566930 | 2,275 | nova-wallet-android | Apache License 2.0 |
backend/mandalore-express-domain/src/main/kotlin/com/beyondxscratch/mandaloreexpress/domain/booking/CannotBookAPartialSelection.kt | davidaparicio | 761,161,576 | false | {"Kotlin": 198124, "JavaScript": 37294, "HTML": 1661, "CSS": 365} | package com.beyondxscratch.mandaloreexpress.domain.booking
class CannotBookAPartialSelection : RuntimeException("cannot book a partial selection")
| 8 | Kotlin | 0 | 0 | 05dc41e2a5a5ea47ef5d688177631ffa9923fe11 | 148 | model-mitosis | Apache License 2.0 |
system_monitor/src/main/kotlin/com/cobox/vulture/systemserver/SystemServer.kt | Mysterious-organization | 336,003,139 | false | null | package com.cobox.vulture.systemserver
import com.cobox.utilites.log.Log
import com.cobox.vulture.busniess.framework.VultureServer
import com.cobox.vulture.system.SystemMonitor
import io.vertx.core.json.JsonArray
import io.vertx.core.json.JsonObject
class SystemServer : VultureServer() {
companion object {
... | 0 | Kotlin | 0 | 3 | ae0c4a9b7f12bc556a5e9a674ab5a14b6a581ce4 | 5,720 | Vulture-Station | MIT License |
app/src/main/kotlin/com/flxrs/dankchat/preferences/screens/DeveloperSettingsFragment.kt | flex3r | 186,238,019 | false | null | package com.flxrs.dankchat.preferences.screens
import android.content.Intent
import android.os.Bundle
import android.speech.tts.TextToSpeech
import android.text.util.Linkify
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.activity.result.contract.ActivityResult... | 29 | Kotlin | 31 | 91 | e895c6ff999672ad203875f6a4aa033d9c8bb3bf | 4,185 | DankChat | MIT License |
app/src/main/java/com/tommunyiri/dvtweatherapp/domain/usecases/favorites/GetFavoriteLocationsUseCase.kt | TomMunyiri | 745,177,252 | false | {"Kotlin": 215965} | package com.tommunyiri.dvtweatherapp.domain.usecases.favorites
import com.tommunyiri.dvtweatherapp.core.utils.Result
import com.tommunyiri.dvtweatherapp.domain.model.FavoriteLocation
import com.tommunyiri.dvtweatherapp.domain.repository.WeatherRepository
/**
* Created by <NAME> on 25/02/2024.
* Company: Eclectics I... | 0 | Kotlin | 0 | 0 | a1523e156b74949391aed59df2a48fc375b0ad8a | 578 | DVTWeatherApp | The Unlicense |
river/src/main/kotlin/no/nav/k9/rapid/river/JsonNodeRequirements.kt | ramrock93 | 319,294,766 | true | {"Kotlin": 83510} | package no.nav.k9.rapid.river
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databind.node.ObjectNode
fun JsonNode.requireText() = require(isTextual) { "Må være tekst." }
fun JsonNode.requireInt() = require(isIntegralNumber) { "Må være int." }
fun JsonNode.requireBoolean() = require(isBoo... | 0 | null | 0 | 0 | 3265f25acfe9b842d9105f5ff995f5857b4e0cca | 611 | k9-rapid | MIT License |
demo/src/main/java/me/daemon/infrastructure/application/demo/MainActivity.kt | daemon369 | 402,693,381 | false | {"Kotlin": 9305} | package me.daemon.infrastructure.application.demo
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.lay... | 0 | Kotlin | 0 | 0 | 65778ec3ff1a1c6cd7ff7c11a8752afc7e9cc556 | 411 | android-infrastructure-application | Apache License 2.0 |
zircon.core/jvm/src/test/kotlin/org/hexworks/zircon/integration/RadioButtonGroupIntegrationTest.kt | jmedinaJBM | 178,613,075 | true | {"Kotlin": 1311631, "Java": 128163} | package org.hexworks.zircon.integration
import org.hexworks.zircon.api.Components
import org.hexworks.zircon.api.Positions
import org.hexworks.zircon.api.Sizes
import org.hexworks.zircon.api.graphics.BoxType
import org.hexworks.zircon.api.screen.Screen
class RadioButtonGroupIntegrationTest : ComponentIntegrationTestB... | 0 | Kotlin | 0 | 0 | 700f7542c1d59f5561f2aec084f9b6a1f50649b0 | 2,298 | zircon | MIT License |
src/main/kotlin/fr/jhelp/kotlinLight/DispatchQueue.kt | jhelpgg | 298,575,283 | false | null | package fr.jhelp.kotlinLight
import fr.jhelp.kotlinLight.tasks.delay
import fr.jhelp.kotlinLight.tasks.parallel
// @ImportSwift("Dispatch")
// =>
// import Dispatch
class DispatchQueue private constructor()
{
companion object
{
private val dispatchQueue = DispatchQueue()
fun global() = Dispat... | 0 | Kotlin | 0 | 0 | e20628f09b56e2faca1c46a9c11898d0d9f7f906 | 1,293 | KotlinLight | Apache License 2.0 |
CalculadoraImc/app/src/main/java/com/vinilazzeri/calculadoraimc/MainActivity.kt | vinilazzeri | 828,618,327 | false | {"Kotlin": 102298, "Java": 13121} | package com.vinilazzeri.calculadoraimc
import android.content.Intent
import android.os.Bundle
import android.widget.Button
import android.widget.EditText
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsets... | 0 | Kotlin | 0 | 0 | 2cf0c00588d6a1d3ac00dce1b5cdb5985883dba6 | 1,515 | android-studies | MIT License |
app/src/main/java/id/uinjkt/salaamustadz/ui/home/ViewPagerAdapterUstadz.kt | Teguhmr | 848,863,621 | false | {"Kotlin": 556881, "Java": 799, "JavaScript": 174} | package id.uinjkt.salaamustadz.ui.home
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.lifecycle.Lifecycle
import androidx.viewpager2.adapter.FragmentStateAdapter
import id.uinjkt.salaamustadz.ui.home.ustadz.UstadzFragment
import id.uinjkt.salaamustadz.ui.home.ustadz.... | 0 | Kotlin | 0 | 0 | 305c5c91e2d065342778ac556dbbdcb957e1f71e | 765 | Salaam-Ustadz | Apache License 2.0 |
features/library/src/main/java/taiwan/no/one/feat/library/presentation/viewmodels/MyHomeViewModel.kt | pokk | 263,073,196 | false | null | /*
* MIT License
*
* Copyright (c) 2021 Jieyi
*
* 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, me... | 2 | Kotlin | 3 | 16 | 6d173194dcd3c44db46dfe6b0ef691b9322da975 | 7,073 | DropBeat | MIT License |
src/main/kotlin/no/nav/tms/brannslukning/setup/database/Flyway.kt | navikt | 743,413,887 | false | {"Kotlin": 96190, "CSS": 8486, "Dockerfile": 148} | package no.nav.tms.brannslukning.setup.database
import org.flywaydb.core.Flyway
import org.flywaydb.core.api.configuration.FluentConfiguration
object Flyway {
fun runFlywayMigrations() {
val flyway = configure().load()
flyway.migrate()
}
private fun configure(): FluentConfiguration {
... | 5 | Kotlin | 1 | 0 | f13174022d1bf03097aa639c4f48a4ec1a400f06 | 528 | tms-brannslukning | MIT License |
src/main/kotlin/no/nav/tms/brannslukning/setup/database/Flyway.kt | navikt | 743,413,887 | false | {"Kotlin": 96190, "CSS": 8486, "Dockerfile": 148} | package no.nav.tms.brannslukning.setup.database
import org.flywaydb.core.Flyway
import org.flywaydb.core.api.configuration.FluentConfiguration
object Flyway {
fun runFlywayMigrations() {
val flyway = configure().load()
flyway.migrate()
}
private fun configure(): FluentConfiguration {
... | 5 | Kotlin | 1 | 0 | f13174022d1bf03097aa639c4f48a4ec1a400f06 | 528 | tms-brannslukning | MIT License |
app/src/main/java/com/deverick/marvelousheroes/MarvelousHeroesApplication.kt | ErickLuizA | 336,352,400 | false | null | package com.deverick.marvelousheroes
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class MarvelousHeroesApplication : Application() | 0 | Kotlin | 0 | 0 | 8669ec0fe87b9fd30cd8b2442b62b66a8bae6188 | 176 | MarvelousHeroes | MIT License |
cliffhanger/shared-views/src/main/kotlin/com/github/charbgr/cliffhanger/shared/views/imageview/BaseImageView.kt | charbgr | 74,907,427 | false | null | package com.github.charbgr.cliffhanger.shared.views.imageview
import android.content.Context
import android.util.AttributeSet
import android.widget.ImageView
import com.bumptech.glide.Glide
open class BaseImageView : ImageView {
constructor(context: Context?) : super(context)
constructor(context: Context?, attrs:... | 8 | Kotlin | 0 | 0 | 88e0737f2818f9c45fab052008f7a81f0a51dc86 | 783 | CliffHanger | MIT License |
src/main/kotlin/no/nav/arbeidsgiver/iatjenester/metrikker/config/FlywayConfigProperties.kt | navikt | 338,342,215 | false | {"Kotlin": 157528, "Dockerfile": 150} | package no.nav.arbeidsgiver.iatjenester.metrikker.config
import org.springframework.boot.context.properties.ConfigurationProperties
@ConfigurationProperties(prefix = "spring.flyway")
data class FlywayConfigProperties(
var locations: Array<String>
) {
override fun equals(other: Any?): Boolean {
if (th... | 1 | Kotlin | 0 | 0 | bd376a1bced4585c35eb544599f8cee80e8dda59 | 626 | ia-tjenester-metrikker | MIT License |
app/src/main/java/com/bngel/bcy/fragment/SearchQaFragment.kt | Bngel | 389,700,084 | false | null | package com.bngel.bcy.fragment
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.activity.result.contract.ActivityResultContracts
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
impo... | 0 | Kotlin | 0 | 0 | f8091bdbb9d4b7720587def7411b72a9c2d6fe35 | 2,988 | bcy | Apache License 2.0 |
src/main/kotlin/dev/cbyrne/kdiscordipc/core/event/impl/ActivityJoinEvent.kt | caoimhebyrne | 379,862,700 | false | {"Kotlin": 61658} | package dev.cbyrne.kdiscordipc.core.event.impl
import dev.cbyrne.kdiscordipc.core.event.Event
import dev.cbyrne.kdiscordipc.core.event.data.ActivityJoinEventData
data class ActivityJoinEvent(val data: ActivityJoinEventData) : Event | 2 | Kotlin | 8 | 37 | b136b267d146544c49d80b4c9a046d66324a601b | 233 | KDiscordIPC | MIT License |
app/src/main/java/com/newbiechen/nbreader/ui/component/adapter/base/SimpleBindingAdapter.kt | newbiechen1024 | 239,496,581 | false | null | package com.newbiechen.nbreader.ui.component.adapter.base
import android.view.ViewGroup
import androidx.databinding.ViewDataBinding
import androidx.recyclerview.widget.RecyclerView
typealias OnItemClickListener<T> = (pos: Int, value: T) -> Unit
/**
* 简单封装基于 DataBinding 的 Adapter
*/
abstract class SimpleBindingAdap... | 5 | Kotlin | 8 | 37 | e423b13915578ab95c1683bfa7a70e59f19f2eab | 1,410 | NBReader | Apache License 2.0 |
src/main/java/com/dystopia/sketch/element/LayersElement.kt | tseylerd | 120,107,315 | false | null | package com.dystopia.sketch.element
import com.dystopia.sketch.api.SketchElement
import com.dystopia.sketch.model.SketchModelBuilder
class LayersElement(id: String, child: SketchElement) : IdBasedSketchElement(id, child) {
override fun reproduce(child: SketchElement): IdBasedSketchElement {
return LayersE... | 0 | Kotlin | 0 | 0 | b85deba8b0517f1a32a6770225384d48651fc534 | 445 | dystopia-model | Apache License 2.0 |
av/FFmpegAndroid-master/app/src/main/java/com/frank/ffmpeg/format/VideoLayout.kt | wangpengfei1992 | 444,720,156 | false | {"C": 15356987, "Kotlin": 1926516, "Java": 1439280, "Makefile": 697532, "Shell": 397449, "C++": 160245, "GLSL": 104693, "CMake": 58126, "M4": 43504, "Assembly": 40776, "CSS": 20448, "Perl": 10762, "Groovy": 9011, "HTML": 2612, "Batchfile": 789} | package com.frank.ffmpeg.format
/**
* layout of video
* Created by frank on 2018/6/18.
*/
object VideoLayout {
//horizontal join
const val LAYOUT_HORIZONTAL = 1
//vertical join
const val LAYOUT_VERTICAL = 2
}
| 0 | C | 0 | 0 | 2e078f0c510515be47e6713357fa87089af8fdae | 232 | TestDemoList | Apache License 2.0 |
infrastructure/src/main/kotlin/com/example/infrastructure/persistence/entity/management/ManagementEntity.kt | PARKPARKWOO | 737,782,254 | false | {"Kotlin": 285620} | package com.example.infrastructure.persistence.entity.management
import com.example.core.managemnet.model.Management
import com.example.core.managemnet.model.ManagementStatus
import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.EnumType
import jakarta.persistence.Enumerated
im... | 15 | Kotlin | 0 | 0 | 3ada73884b3b6fc4b0a011f0c5b3615c248fe14a | 2,029 | barbellrobot-backend | Apache License 2.0 |
app/src/main/java/com/bao/iu/fragment/f_Article/ArticleFragment.kt | oops-iu | 105,001,861 | false | {"Kotlin": 33380, "Java": 1112} | package com.bao.iu.fragment.f_Article
import android.app.AlertDialog
import android.content.Context
import android.content.DialogInterface
import android.net.ConnectivityManager
import android.os.Bundle
import android.os.Handler
import android.os.Message
import android.support.v4.app.Fragment
import android.util.Log
i... | 0 | Kotlin | 0 | 0 | 5dbd4bf3c7c6db1e8eb058e85eae1211ec8db589 | 4,087 | Eason | Apache License 2.0 |
shell/src/main/kotlin/matt/kjlib/shell/proc/proc.kt | mgroth0 | 365,604,330 | false | null | package matt.kjlib.shell.proc
import matt.kjlib.shell.ExecReturner
import matt.kjlib.shell.NonZeroShellResult
import matt.kjlib.shell.PrintInSeq.CHARS
import matt.kjlib.shell.PrintInSeq.LINES
import matt.kjlib.shell.PrintInSeq.NO
import matt.kjlib.shell.ShellResult
import matt.kjlib.shell.ShellVerbosity
import matt.kj... | 0 | Kotlin | 0 | 0 | 3f7b657c2e69a9d59248f1e8b6940f4913dbb376 | 3,945 | kjlib | MIT License |
src/main/kotlin/pl/dmichalski/algorithms/_9_sorting/SortService.kt | johnblack123 | 304,328,757 | true | {"Kotlin": 24904, "Groovy": 14140} | package pl.dmichalski.algorithms._9_sorting
interface SortService {
fun sort(values: IntArray): IntArray
}
| 0 | null | 0 | 1 | f27b57b1f3c8a8ab838524a3c087f8febb4eb29c | 114 | algorithms-and-data-structures-in-kotlin | MIT License |
app/src/test/java/com/jeanca/mapsapp/PlacesViewModelTest.kt | hajc1294 | 745,624,364 | false | {"Kotlin": 41854} | package com.jeanca.mapsapp
import android.content.Context
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import com.jeanca.mapsapp.api.ApiProvider
import com.jeanca.mapsapp.commons.Status
import com.jeanca.mapsapp.database.SearchDatabase
import com.jeanca.mapsapp.models.AutocompleteFormat
import co... | 0 | Kotlin | 0 | 0 | 3de4c6abf062938317c704e70c07d9b0b5b16520 | 4,484 | KotlinMapsApp | MIT License |
src/test/kotlin/no/nav/helse/testdata/LocalApp.kt | navikt | 232,072,714 | false | {"TypeScript": 97487, "CSS": 14146, "Shell": 4901, "JavaScript": 947, "HTML": 717, "Dockerfile": 193} | package no.nav.helse.testdata
import io.ktor.server.application.Application
import io.ktor.server.engine.embeddedServer
import io.ktor.server.engine.stop
import io.ktor.server.netty.Netty
import io.mockk.every
import io.mockk.mockk
import kotlinx.coroutines.*
import no.nav.helse.rapids_rivers.RapidsConnection
import n... | 0 | TypeScript | 0 | 0 | 8b1141e37e9ee6b7f412abb1f4215d95ebe9abb5 | 4,206 | helse-spleis-testdata | MIT License |
app/src/main/java/com/foobarust/android/rating/RatingViewModel.kt | foobar-UST | 285,792,732 | false | null | package com.foobarust.android.rating
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.foobarust.domain.models.order.OrderDetail
import com.foobarust.domain.models.order.OrderRating
import com.foobarust.domain.states.Resource
import com.foobarust.domain.usecases.order.GetOrderDeta... | 0 | Kotlin | 2 | 2 | b4358ef0323a0b7a95483223496164e616a01da5 | 3,887 | foobar-android | MIT License |
back-end/src/authentication/auth/AuthenticationService.kt | SrGaabriel | 312,651,398 | false | null | package com.gabriel.kspanel.project.rest.authentication.auth
import com.gabriel.kspanel.project.rest.authentication.auth.entity.Authentication
import com.gabriel.kspanel.project.rest.services.AccountService
import io.ktor.http.*
class AuthenticationService(private val accountService: AccountService) {
suspend fu... | 0 | Kotlin | 0 | 2 | d67b3dda809b5b73a29f4fc754a69559eaac2bc4 | 665 | ksp | MIT License |
src/main/kotlin/com/github/ake2255/jean/services/MyApplicationService.kt | ake2255 | 508,367,610 | false | null | package com.github.ake2255.jean.services
import com.github.ake2255.jean.MyBundle
class MyApplicationService {
init {
println(MyBundle.message("applicationService"))
}
}
| 7 | Kotlin | 0 | 0 | 50d20c42cbcebe065c1834f697ef4e1ee948d6d7 | 188 | jean | Apache License 2.0 |
app/src/main/java/com/ihfazh/simpleattendanceexample/ui/home/HomeFragment.kt | ihfazhillah | 377,525,659 | false | null | package com.ihfazh.simpleattendanceexample.ui.home
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.PopupMenu
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
i... | 0 | Kotlin | 0 | 0 | bf5698641461ae8f4a0ef80d1fbf34a2c8b17d8b | 2,169 | Simple-Attendance-Example | MIT License |
app/src/main/java/se/umu/ad/anpa0292/voxelsculpter/World.kt | tehAndrew | 850,690,052 | false | {"Kotlin": 32061, "GLSL": 1629} | package se.umu.ad.anpa0292.voxelsculpter
import kotlin.math.max
import kotlin.math.min
data class Ray(val origin: Vector3D, val direction: Vector3D) {
val invDirection = Vector3D(1 / direction.x, 1 / direction.y, 1 / direction.z)
}
data class AABB(val min: Vector3D, val max: Vector3D)
class World(viewportWidth: I... | 0 | Kotlin | 0 | 0 | b0b35a8fa92cbf07415a14f248466354d5855c5d | 2,219 | VoxelSculpter | MIT License |
solar/src/main/java/com/chiksmedina/solar/outline/essentionalui/Help.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.outline.essentionalui
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.Com... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 3,761 | SolarIconSetAndroid | MIT License |
puzzles/src/test/kotlin/com/kotlinground/puzzles/search/binarysearch/successfulpairsspellspotions/SuccessfulPairsTest.kt | BrianLusina | 113,182,832 | false | {"Kotlin": 472727, "Shell": 7283, "Python": 1725} | package com.kotlinground.puzzles.search.binarysearch.successfulpairsspellspotions
import org.junit.jupiter.api.Test
import kotlin.test.assertContentEquals
class SuccessfulPairsTest {
@Test
fun `spells = (5,1,3), potions = (1,2,3,4,5), success = 7 should return (4,0,3)`() {
val spells = intArrayOf(5, 1... | 1 | Kotlin | 1 | 0 | b014649c5647442bbbc4d2060cca86c45af40917 | 1,695 | KotlinGround | MIT License |
app/src/main/java/org/freeandroidtools/trendinggithub/model/GithubRepo.kt | surengrig | 122,894,253 | false | null | package org.freeandroidtools.trendinggithub.model
import androidx.room.Embedded
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverter
import com.google.gson.annotations.SerializedName
import java.util.Date
data class SearchResult(
@SerializedName("items") val repos: List<G... | 3 | Kotlin | 0 | 0 | 2dd85880f5f050dd50f95f631a8a4c8d2c10720b | 7,206 | github_trending | Apache License 2.0 |
app/src/main/java/com/example/al4t_claco/model/Activity.kt | nsamelson | 414,991,130 | false | {"Kotlin": 51217} | package com.example.al4t_claco.model
import java.io.Serializable
class Activity (name: String, code: String, teachers: List<String> , description :String): Serializable{
val name = name
val code = code
val teachers = teachers
lateinit var resources: List<File>
var description = description
//v... | 0 | Kotlin | 4 | 1 | f1a96b709dbdcbcfc68816c273891392f82f5f46 | 426 | AL4T_Claco | MIT License |
sms-persistence/src/main/kotlin/team/msg/sms/persistence/authentication/repository/AuthenticationFieldJpaRepository.kt | GSM-MSG | 625,717,097 | false | {"Kotlin": 474594, "Shell": 1480, "Dockerfile": 288} | package team.msg.sms.persistence.authentication.repository
import org.springframework.data.repository.CrudRepository
import org.springframework.stereotype.Repository
import team.msg.sms.persistence.authentication.entity.AuthenticationFieldJpaEntity
import java.util.UUID
@Repository
interface AuthenticationFieldJpaRep... | 7 | Kotlin | 0 | 9 | beeb18cce9264bdeab081717b23a22ed2ac4a31f | 463 | SMS-BackEnd | MIT License |
src/test/kotlin/com/asdacap/ea4k/gp/Utils.kt | asdacap | 338,637,903 | false | null | package com.asdacap.ea4k.gp
import com.fasterxml.jackson.databind.ObjectMapper
import org.junit.jupiter.api.Assertions.assertTrue
fun <R> testCommonNodeBehaviour(factory: TreeNodeFactory<R>, sampleChildren: List<TreeNode<*>>) {
val node = factory.createNode(sampleChildren)
val cloned = factory.createNode(node... | 0 | Kotlin | 0 | 1 | 2e941fb84eda944aa5d838deb92ec5c95ba96bd3 | 400 | ea4k | MIT License |
KotlinMail/ordercenter/src/main/java/cn/xwj/order/data/repository/OrderRepository.kt | jxiaow | 123,389,640 | false | {"Java": 270055, "Kotlin": 243645} | package cn.xwj.order.data.repository
import cn.xwj.baselibrary.data.net.RetrofitFactory
import cn.xwj.baselibrary.ext.convert
import cn.xwj.baselibrary.ext.convertBoolean
import cn.xwj.order.data.api.OrderApi
import cn.xwj.order.data.protocol.*
import io.reactivex.Observable
import javax.inject.Inject
/**
* Author: ... | 1 | null | 1 | 1 | 2796496ebb7d279ad0f405102c107db9085545e7 | 1,616 | AndroidProjectStudio | Apache License 2.0 |
slack-api-model-kotlin-extension/src/main/kotlin/com/slack/api/model/kotlin_extension/block/VideoBlockBuilder.kt | slackapi | 62,449,869 | false | {"Java": 6165956, "Kotlin": 361122, "Shell": 7287, "Batchfile": 3120, "Dockerfile": 249} | package com.slack.api.model.kotlin_extension.block
import com.slack.api.model.block.VideoBlock
import com.slack.api.model.block.composition.PlainTextObject
import com.slack.api.model.kotlin_extension.block.composition.container.SinglePlainTextObjectContainer
import com.slack.api.model.kotlin_extension.block.compositio... | 22 | Java | 214 | 577 | 52b04eb7ec1e97832d333e4ee96b7032b0203764 | 3,010 | java-slack-sdk | MIT License |
performance/src/main/java/io/github/xanderwang/performance/Utils.kt | xanderwang | 255,372,682 | false | {"Java": 422257, "Kotlin": 108656} | package io.github.xanderwang.performance
/**
* 工具类
* @author xanderwang
*/
internal object Utils {
/** 完整类名白名单 */
private val ignoreClassWhiteSet = HashSet<String>()
/** 类名白名单,可能是完整类名,也可能是简单类名 */
private val ignoreClassWhiteList = ArrayList<String>()
init {
ignoreClassWhiteSet.add(Bit... | 2 | Java | 44 | 294 | d24f468283cc17ca5e841495c0c88e7f2ebe9c7d | 2,847 | performance | Apache License 2.0 |
app/src/main/java/com/telenav/osv/data/collector/datatype/datatypes/ClientAppNameObject.kt | kartaview | 63,806,526 | false | null | package com.telenav.osv.data.collector.datatype.datatypes
import com.telenav.osv.data.collector.datatype.util.LibraryUtil
/**
* Class used for returning the name of this application's package.
*/
class ClientAppNameObject(clientAppName: String?, statusCode: Int) : BaseObject<String?>(clientAppName, statusCode, Libr... | 76 | null | 30 | 130 | 66eb0ee1ab093562e2867087084b26803fe58174 | 534 | android | MIT License |
compiler/testData/diagnostics/tests/scopes/variantProjections/interdependentStarProjections.kt | JetBrains | 3,432,266 | false | null | // ISSUE: KT-54764
interface A<out T : B<F, E>, F, out E : B<T, F>> {
fun copy(t: @UnsafeVariance T, f: F, e: @UnsafeVariance E): A<T, F, E>
}
interface B<out X, out Y>
fun foo(a: A<*, String, B<*, String>>, b1: B<*, String>, b2: B<*, *>, b3: B<String, B<*, String>>) {
<!DEBUG_INFO_EXPRESSION_TYPE("A<B<*, *>... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 627 | kotlin | Apache License 2.0 |
mobile_app1/module994/src/main/java/module994packageKt0/Foo369.kt | uber-common | 294,831,672 | false | null | package module994packageKt0;
annotation class Foo369Fancy
@Foo369Fancy
class Foo369 {
fun foo0(){
module994packageKt0.Foo368().foo3()
}
fun foo1(){
foo0()
}
fun foo2(){
foo1()
}
fun foo3(){
foo2()
}
} | 6 | Java | 6 | 72 | 9cc83148c1ca37d0f2b2fcb08c71ac04b3749e5e | 237 | android-build-eval | Apache License 2.0 |
app/src/main/java/com/smlnskgmail/jaman/cryptotracker/model/api/currency/CurrencyApi.kt | alirezanazari | 245,361,832 | true | {"Gradle": 6, "INI": 2, "Markdown": 4, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "YAML": 1, "XML": 45, "Kotlin": 47, "JSON": 2, "Java": 1} | package com.smlnskgmail.jaman.cryptotracker.model.api.currency
interface CurrencyApi {
fun currencies(
currenciesLoadResult: CurrenciesLoadResult
)
fun currencyListing(
currency: Currency,
currencyListingLoadResult: CurrencyListingLoadResult
)
interface CurrenciesLoadResu... | 0 | Kotlin | 0 | 1 | 11c890671cad36503c08978cd59afdf35154d24b | 532 | crypto-tracker | Apache License 2.0 |
libnavigation-copilot/src/main/java/com/mapbox/navigation/copilot/DriveEnds.kt | mapbox | 87,455,763 | false | null | package com.mapbox.navigation.copilot
import androidx.annotation.Keep
@Keep
internal data class DriveEnds(
val type: String,
val realDuration: Long,
) : EventDTO
| 505 | null | 319 | 621 | ad73c6011348cb9b24b92a369024ca06f48845ab | 172 | mapbox-navigation-android | Apache License 2.0 |
app/src/androidTest/java/com/gmail/fattazzo/meteo/data/RadarServiceTest.kt | fattazzo | 182,333,126 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 2, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "XML": 278, "Kotlin": 219, "Java": 1, "JSON": 4} | /*
* Project: meteo
* File: RadarServiceTest.kt
*
* Created by fattazzo
* Copyright © 2019 Gianluca Fattarsi. All rights reserved.
*
* MIT License
* 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... | 1 | null | 1 | 1 | 8345a9a1b0d0dcb87922262c1691cd6ec8d058fc | 2,526 | meteo | MIT License |
android-kotlin/idea-android/src/org/jetbrains/kotlin/android/wizard/AndroidSdkProviderImpl.kt | JetBrains | 60,701,247 | false | {"Kotlin": 49550960, "Java": 35837871, "HTML": 1217714, "Starlark": 909188, "C++": 357481, "Python": 106384, "C": 71782, "Lex": 66732, "NSIS": 58538, "AIDL": 35382, "Shell": 26938, "CMake": 26798, "JavaScript": 18437, "Smali": 7580, "Batchfile": 6951, "RenderScript": 4411, "Makefile": 2495, "IDL": 269, "QMake": 18} | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.android.wizard
import com.android.tools.idea.welcome.config.FirstRunWizardMode
import com.android.tools.idea.welcome.install.getInitialSdkLocation
import org.jetbrains.k... | 3 | Kotlin | 219 | 921 | dbd9aeae0dc5b8c56ce2c7d51208ba26ea0f169b | 567 | android | Apache License 2.0 |
customwidgetpack/src/main/java/com/allenxuan/xuanyihuang/customwidgetpack/utils/DimensUtils.kt | allenxuan | 164,084,792 | false | {"Java": 23744, "Kotlin": 10972} | package com.allenxuan.xuanyihuang.customwidgetpack.utils
import android.content.Context
object DimensUtils {
@JvmStatic
fun dip2pixel(context: Context, dpValue: Float): Int {
val scale = context.resources.displayMetrics.density
return (dpValue * scale + 0.5f).toInt()
}
@JvmStatic
... | 1 | null | 1 | 1 | b44cc4c0e86e38c1bb6d774d3b671a803641870d | 1,227 | CustomWidgetPack | Apache License 2.0 |
TestAndroidAll/src/main/java/com/lorenwang/test/android/activity/customView/video/VideoPlayActivity.kt | Loren-Wang | 164,838,761 | false | {"Java": 3140552, "Kotlin": 581207, "JavaScript": 23273, "HTML": 1721, "CSS": 930} | package com.lorenwang.test.android.activity.customView.video
import android.os.Bundle
import android.os.PersistableBundle
import com.lorenwang.test.android.R
import com.lorenwang.test.android.base.BaseActivity
/**
* 功能作用:视频播放页面
* 创建时间:2021-01-20 4:14 下午
* 创建人:王亮(Loren)
* 思路:
* 方法:
* 注意:
* 修改人:
* 修改时间:
* 备注:
... | 5 | Java | 1 | 4 | 3669d165ef0b1667b37155978de4c1dd9660b903 | 1,091 | LorenWangCustomTools | Apache License 2.0 |
compiler/daemon/src/org/jetbrains/kotlin/daemon/report/experimental/CompileServicesFacadeMessageCollector.kt | prasenjitghose36 | 258,198,392 | false | null | /*
* Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.daemon.report.experimental
import kotlinx.coroutines.*
import org.jetbrains.kotlin.cli.common.messages.CompilerMessageLocation... | 0 | null | 0 | 2 | acced52384c00df5616231fa5ff7e78834871e64 | 2,633 | kotlin | Apache License 2.0 |
app/src/main/java/com/example/android/dessertclicker/ClickerApplication.kt | TrangTrang862 | 610,864,441 | false | {"Java": 14855, "Kotlin": 8618} | package com.example.android.dessertclicker
import android.app.Application
class ClickerApplication : Application() {
override fun onCreate() {
super.onCreate()
}
} | 1 | null | 1 | 1 | 8a067a004cdd547208c6e43dd403c55af5d0e4a7 | 181 | DessertClicker-Starter | Apache License 2.0 |
navigation/src/main/java/com/trodar/navigation/presentation/screen/MainScreen.kt | trodar | 788,273,590 | false | {"Kotlin": 279609} | package com.trodar.navigation.presentation.screen
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Scaffold
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import androidx.compose.runtime.St... | 0 | Kotlin | 0 | 0 | b172bbcc5decf3e5d161b8024fbf35da4effb226 | 2,879 | Partner | Apache License 2.0 |
src/main/kotlin/no/nav/helse/Sykepengedager.kt | navikt | 164,105,390 | false | {"Kotlin": 10921} | package no.nav.helse
import no.nav.helse.Yrkesstatus.*
import java.time.*
import java.time.temporal.ChronoUnit.*
fun maksdato(grunnlag: Grunnlagsdata): MaksdatoResult {
val (antallDagerTilgode, hvorfor) = dagerTilgode(grunnlag)
val datoen = nWeekdaysFrom(antallDagerTilgode - 1, grunnlag.førsteSykepengedag)
v... | 0 | Kotlin | 0 | 0 | 7accec0237f5038a55c825ada91aaaf46d7593f9 | 2,649 | helse-maksdato | MIT License |
app/src/main/java/com/company_name/wallpaperx/SaveImages/ImgEntity.kt | pratyaksh1610 | 546,574,430 | false | null | package com.company_name.wallpaperx.SaveImages
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
data class ImgEntity(
@PrimaryKey(autoGenerate = true)
val id: Int?,
val url:String,
val date:String
)
| 0 | Kotlin | 0 | 0 | e1fb9b324616858d6b55a28d0b99411357a5f81f | 236 | WallpaperX | The Unlicense |
src/jvmMain/java/it/krzeminski/snakeyaml/engine/kmp/api/YamlOutputStreamWriter.kt | krzema12 | 642,543,787 | false | {"Kotlin": 533013, "Java": 387275} | /*
* Copyright (c) 2018, SnakeYAML
*
* 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... | 16 | Kotlin | 5 | 26 | b61dcf0cc334d7508615e47568ee11845cf6ccdd | 1,751 | snakeyaml-engine-kmp | Apache License 2.0 |
src/main/kotlin/dev/wigger/mood/shareing/Sharing.kt | LukasW01 | 796,396,744 | false | {"Kotlin": 39268, "HTML": 26923, "Dockerfile": 318, "Shell": 221} | package dev.wigger.mood.shareing
import dev.wigger.mood.entry.Entry
import dev.wigger.mood.user.Users
import dev.wigger.mood.util.enums.Permissions
import io.quarkus.hibernate.orm.panache.PanacheEntityBase
import jakarta.persistence.*
import org.hibernate.annotations.CreationTimestamp
import org.hibernate.annotations.... | 0 | Kotlin | 0 | 0 | b7740253a3f976bf1f5d19776cc94e33043f4f11 | 1,294 | mood | MIT License |
app/src/main/java/com/ohuji/cardsNmonsters/ui/theme/Color.kt | ohuji | 598,587,284 | false | null | package com.ohuji.cardsNmonsters.ui.theme
import androidx.compose.ui.graphics.Color
val md_theme_light_primary = Color(0xFF3d4b41)
val md_theme_light_onPrimary = Color(0xFFFFFFFF)
val md_theme_light_primaryContainer = Color(0xFFCFE5FF)
val md_theme_light_onPrimaryContainer = Color(0xFF001D34)
val md_theme_light_secon... | 0 | Kotlin | 1 | 3 | 41f7c3e794d73b28582e3d0fde36f353083003ef | 3,204 | Cards-Monsters | MIT License |
sample/src/main/kotlin/com/kronos/android/startup/sample/task/generate/SampleGenerate1Task.kt | Leifzhang | 431,806,948 | false | null | package com.kronos.android.startup.sample.task.generate
import android.content.Context
import com.kronos.android.startup.sample.AsyncTask1Provider
import com.kronos.android.startup.sample.SimpleTask2Provider
import com.kronos.android.startup.sample.task.info
import com.kronos.lib.startup.TaskRunner
import com.kronos.s... | 0 | Kotlin | 8 | 47 | 883e2be9c1c6b19714fa74c803bd517fad081944 | 1,016 | AndroidStartup | Apache License 2.0 |
common_utils/src/main/java/com/yaman/common_utils/helpers/single_clicklistener/setSafeOnClickListener.kt | Yamanaswal | 685,417,811 | false | {"Kotlin": 83009} | package com.yaman.common_utils.helpers.single_clicklistener
import android.view.View
fun View.setSingleOnClickListener(onSingleClick: (View) -> Unit) {
val safeClickListener = SafeClickListener {
onSingleClick(it)
}
setOnClickListener(safeClickListener)
} | 0 | Kotlin | 0 | 0 | 7498a31a82b28bdd37bc7f5faca551e86bac03ee | 277 | MultipleModuleApp | MIT License |
core/src/androidMain/kotlin/Utils.kt | composablehorizons | 792,741,661 | false | {"Kotlin": 216854, "HTML": 4427, "Shell": 2324, "Swift": 538} | @file:JvmName("AndroidUtilsKt")
package com.composables.core
import android.view.KeyEvent
import android.view.View.OnKeyListener
import androidx.activity.compose.BackHandler
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import androidx.compose.ui.input.key.Key
import andr... | 5 | Kotlin | 11 | 288 | 5366a4ca80f433a00b03af170dca9a4b6846dee7 | 920 | compose-unstyled | MIT License |
features/agents_list/src/main/java/com/ahmedvargos/agents_list/di/AgentsListModule.kt | sarnav98 | 337,487,137 | true | {"Kotlin": 248520} | package com.ahmedvargos.agents_list.di
import com.ahmedvargos.agents_list.data.AgentsListRepoImpl
import com.ahmedvargos.agents_list.data.data_sources.local.AgentsListLocalSource
import com.ahmedvargos.agents_list.data.data_sources.local.AgentsListLocalSourceImpl
import com.ahmedvargos.agents_list.data.data_sources.re... | 0 | null | 0 | 0 | e9695488c63b336b07dcb6d209f21326457c4ea3 | 1,692 | Valorant-Agents | Apache License 2.0 |
app/src/main/java/com/example/mypraticecomposedictionary/component/ResultCard.kt | vytran0710 | 636,748,040 | false | null | package com.example.mypraticecomposedictionary.component
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundat... | 0 | Kotlin | 0 | 0 | 252be66eefc53e55f3c0de141afe9bf8689a28bb | 2,383 | Practice-Compose-Dictionary-App | MIT License |
app/src/main/java/com/theathletic/interview/articles/data/Mapper.kt | Nniheke | 641,885,034 | false | null | package com.theathletic.interview.articles.data
import com.theathletic.interview.articles.domain.model.Article
import com.theathletic.interview.articles.data.remote.model.ArticleApiModel
import com.theathletic.interview.articles.data.remote.model.AuthorsApiModel
import com.theathletic.interview.articles.domain.model.A... | 0 | Kotlin | 0 | 0 | e37579188c3cd8e84adffaf07bfc4f72a4291272 | 1,197 | Athletic | Apache License 2.0 |
app/src/main/java/com/cocktailbar/presentation/cocktails/IngredientDialogComponent.kt | olegaches | 680,145,725 | false | {"Kotlin": 98906} | package com.cocktailbar.presentation.cocktails
import com.arkivanov.decompose.ComponentContext
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.flow.update
class IngredientDialogComponent(
componentContext: ComponentContext,
private val dismi... | 0 | Kotlin | 0 | 0 | b6eab221523ed3330099f5445f140848cfe2cf06 | 1,273 | cocktail-recipes | Apache License 2.0 |
app/src/main/java/org/listenbrainz/android/model/user/UserFeedback.kt | metabrainz | 550,726,972 | false | {"Kotlin": 1481175, "Ruby": 423} | package org.listenbrainz.android.model.user
import com.google.gson.annotations.SerializedName
data class UserFeedback(
@SerializedName("count") val count: Int? = null,
@SerializedName("feedback") val feedback: List<UserFeedbackEntry>? = null,
)
| 25 | Kotlin | 31 | 99 | 573ab0ec6c5b87ea963f013174159ddfcd123976 | 258 | listenbrainz-android | Apache License 2.0 |
src/main/kotlin/br/com/rest/core/item/ChangeItemName.kt | tomasouza | 339,713,351 | false | {"Kotlin": 3160} | package br.com.rest.core.item
class ChangeItemName {
} | 0 | Kotlin | 0 | 0 | 9911007bc866d66f7fe011bf9cf511546ea5fcfb | 55 | http-RESTful-kotlin-api | MIT License |
Kernl.Runtime/src/main/kotlin/org/mattshoe/shoebox/kernl/runtime/session/DefaultKernlResourceManager.kt | mattshoe | 825,957,770 | false | {"Kotlin": 344588, "Shell": 1045} | package org.mattshoe.shoebox.kernl.runtime.session
import kotlinx.coroutines.*
import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach
import kotlinx.coroutines.sync.Mutex
import kotlinx.coroutines.sync.withLock
import org.mattshoe.shoebox.kernl.NEVER
import org.mattshoe.shoebox.kernl.internal.lo... | 10 | Kotlin | 1 | 9 | 9682fcafeb1dccd468443e1265eab55c05757e52 | 5,824 | kernl | Apache License 2.0 |
src/main/kotlin/org/goodmath/pica/scopes.kt | MarkChuCarroll | 538,268,815 | false | {"Kotlin": 211625, "ANTLR": 10218} | package org.goodmath.pica
import org.goodmath.pica.ast.AstNode
import org.goodmath.pica.ast.defs.Definition
import org.goodmath.pica.ast.Identifier
import org.goodmath.pica.ast.defs.HadronDefinition
import org.goodmath.pica.util.Symbol
import org.goodmath.pica.util.twist.Twist
import org.goodmath.pica.util.twist.Twist... | 0 | Kotlin | 0 | 0 | 1ed984ca0557aac61d368e74387b36ca64dcca5d | 3,064 | pica | Apache License 2.0 |
src/main/kotlin/com/blitzoffline/alphamusic/console/command/Command.kt | BlitzOffline | 434,279,924 | false | {"Kotlin": 122890} | package com.blitzoffline.alphamusic.console.command
import com.blitzoffline.alphamusic.utils.extension.printHelp
import org.apache.commons.cli.HelpFormatter
import org.apache.commons.cli.Options
import org.slf4j.Logger
import org.slf4j.event.Level
abstract class Command(val name: String, options: Options) : CommandPa... | 7 | Kotlin | 0 | 0 | 84dbaceb761a9749eaff58d5cffcd3664eaf0dd4 | 539 | AlphaMusic | MIT License |
api-dev/src/main/kotlin/io/qalipsis/api/messaging/LoopTopic.kt | qalipsis | 428,742,260 | false | null | /*
* Copyright 2022 AERIS IT Solutions GmbH
*
* 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 ag... | 0 | Kotlin | 0 | 0 | 0481631343ace487b8b1bdd8dfd8ebe2725ffc7e | 2,112 | qalipsis-api | Apache License 2.0 |
packages/base/src/commonMain/kotlin/elide/struct/AbstractTreeMap.kt | elide-dev | 506,113,888 | false | {"Kotlin": 4544382, "JavaScript": 1201497, "Java": 302542, "Protocol Buffer": 276092, "Shell": 84860, "Dockerfile": 51144, "Cap'n Proto": 35188, "Makefile": 30147, "CSS": 14730, "Python": 5989, "C": 4348, "Batchfile": 3016, "Ruby": 2474, "Handlebars": 1954, "HTML": 1010, "Rust": 525, "Swift": 23} | /*
* Copyright (c) 2024 Elide Technologies, Inc.
*
* Licensed under the MIT license (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* https://opensource.org/license/mit/
*
* Unless required by applicable law or agreed to in writing,... | 45 | Kotlin | 15 | 86 | bd9f5aed8523648256c9e9a29d87bd3c2b09ac54 | 14,889 | elide | MIT License |
app/src/test/java/com/anhvt/weathersearch/data/WeatherRepositoryImplTest.kt | anhvt52 | 376,900,467 | false | null | package com.anhvt.weathersearch.data
import com.anhvt.weathersearch.data.datasource.LocalDatasource
import com.anhvt.weathersearch.data.datasource.RemoteDataSource
import com.anhvt.weathersearch.domain.entity.WeatherDetails
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.launch
import kotlinx.coroutines... | 0 | Kotlin | 0 | 4 | ed6d186b20c4210187bc383e53f9a2b482c4776c | 2,385 | weathersearch | Apache License 2.0 |
kommons-test/src/jvmMain/kotlin/com/bkahlert/kommons/test/junit/testEach.kt | bkahlert | 323,048,013 | false | null | package com.bkahlert.kommons.test.junit
import com.bkahlert.kommons.test.junit.DynamicTestDisplayNameGenerator.displayNameFor
import org.junit.jupiter.api.DynamicTest
import org.junit.jupiter.api.function.Executable
import java.util.stream.Stream
/**
* Builds a single test
* that [softly] checks the specified [asse... | 5 | null | 0 | 18 | 747cb51cf6e6b729d574396a4938eabafbdac1fe | 2,874 | kommons | MIT License |
app/src/main/java/com/example/quizapp/QuestionModel.kt | raj-tyagi | 789,742,149 | false | {"Kotlin": 10279} | package com.example.quizapp
class QuestionModel {
var question:String?=null
var option1:String?=null
var option2:String?=null
var option3:String?=null
var option4:String?=null
var ans:String?=null
constructor()
constructor(
question: String?,
option1: String?,
... | 0 | Kotlin | 0 | 2 | bc5ccf5cc1c2c1b9edd13b88f06e74c11aec8f0c | 607 | Quizzer-An-online-quiz-app | MIT License |
src/main/kotlin/org/wfanet/measurement/reporting/deploy/v2/postgres/writers/CreateReport.kt | world-federation-of-advertisers | 349,561,061 | false | {"Kotlin": 8289739, "Starlark": 874737, "C++": 488532, "CUE": 150756, "HCL": 143493, "TypeScript": 92086, "Shell": 21505, "Go": 8099, "CSS": 6969, "JavaScript": 5275, "HTML": 2188} | /*
* Copyright 2023 The Cross-Media Measurement Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 86 | Kotlin | 10 | 31 | 3dfc0e996ede62cdf5e690f6119c2596169864ef | 13,698 | cross-media-measurement | Apache License 2.0 |
sdk/src/test/kotlin/trade/repositories/dw_user_portfolio_repo_test.kt | Laplace-Analytics | 673,237,581 | false | {"Kotlin": 499822} | package trade.repositories
import MockStorage
import kotlinx.coroutines.runBlocking
import org.junit.jupiter.api.Assertions.assertNotNull
import org.junit.jupiter.api.Assertions.assertNull
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.Test
import org.junit.jup... | 0 | Kotlin | 0 | 0 | 0e8609bfd4124ef684466868ceaf4c19612fb4d4 | 3,959 | finfree-kotlin-sdk | Apache License 2.0 |
android/app/src/main/java/com/esptimer/config/PreferencesHelper.kt | antoinebou12 | 757,034,050 | false | {"Kotlin": 62877, "C++": 42693, "C": 2350} | package com.esptimer.config
import android.content.Context
class PreferencesHelper(context: Context) {
private val sharedPreferences = context.getSharedPreferences("ESP32Preferences", Context.MODE_PRIVATE)
var espIpAddress: String
get() = sharedPreferences.getString("espIpAddress", "http://esptimer.l... | 8 | Kotlin | 0 | 0 | 6cac20eed8dc6293d011a0c8a8341654e0870b80 | 442 | ESP32-7SEG | MIT License |
app/src/main/java/com/lianyi/paimonsnotebook/common/extension/request/SetDynamicSecret.kt | QooLianyi | 435,314,581 | false | {"Kotlin": 1942953} | package com.lianyi.paimonsnotebook.common.extension.request
import com.lianyi.paimonsnotebook.common.util.hoyolab.DynamicSecret
import okhttp3.Request
fun Request.Builder.setDynamicSecret(
saltType: DynamicSecret.SaltType,
version: DynamicSecret.Version = DynamicSecret.Version.Gen1,
includeChars: Boolean ... | 1 | Kotlin | 2 | 36 | 692b93b7e712903c795e1a2ce79859af14e2c197 | 1,041 | PaimonsNotebook | MIT License |
app/src/main/java/com/example/myinstagram/register/data/RegisterDataSource.kt | iguleal | 679,004,940 | false | {"Kotlin": 42648} | package com.example.myinstagram.register.data
interface RegisterDataSource {
fun create(email: String, callback: RegisterCallback)
fun create(email: String, name:String, password: String, callback: RegisterCallback)
} | 0 | Kotlin | 0 | 2 | 3b0149acc9fb0cb4855d0fc0649100be4923c223 | 228 | my_instagram | MIT License |
app/src/main/java/com/example/guidemodernapparchitecture/data/models/BaseResponse.kt | alexjoy001 | 512,629,489 | false | {"Kotlin": 38916} | package com.example.guidemodernapparchitecture.data.models
import com.google.gson.annotations.SerializedName
data class BaseResponse<T: Any>(
@SerializedName("status")
var status: String,
@SerializedName("totalResults")
var totalResults: Int,
@SerializedName("articles")
var articles: T? = null... | 0 | Kotlin | 0 | 7 | 95e5998cee1faca24cbda97d36db4314801a2e5b | 322 | GuideToAndroidModernAppArchitecture | MIT License |
app/src/main/java/com/geofriend/ecommercesampleapp/view/BaseFragment.kt | vkvashistha | 504,568,423 | false | {"Kotlin": 41871} | package com.geofriend.ecommercesampleapp.view
import androidx.fragment.app.Fragment
open class BaseFragment : Fragment() {
} | 0 | Kotlin | 0 | 0 | db00bbbd6ec44c184937b31f58827915230fd607 | 126 | EcommerceSampleApp | MIT License |
kotlin-electron/src/jsMain/generated/electron/common/ProductSubscriptionPeriod.kt | JetBrains | 93,250,841 | false | {"Kotlin": 11411371, "JavaScript": 154302} | package electron.common
typealias ProductSubscriptionPeriod = electron.core.ProductSubscriptionPeriod
| 28 | Kotlin | 173 | 1,250 | 9e9dda28cf74f68b42a712c27f2e97d63af17628 | 104 | kotlin-wrappers | Apache License 2.0 |
ViewInterop/app/src/main/java/com/halcyonmobile/viewinterop/example/dynamic_compose_view/DynamicComposeViewActivity.kt | halcyonmobile | 340,389,463 | false | null | package com.halcyonmobile.viewinterop.example.dynamic_compose_view
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import and... | 0 | Kotlin | 0 | 0 | f9eaf5ebf1cd7d4da6dcc9194dfe7abfe1bb0448 | 2,433 | compose-playground | Apache License 2.0 |
app/src/test/java/com/sonder/newdemoapp/di/TestDispatcherProvider.kt | gazeing | 218,930,232 | false | null | package com.sonder.newdemoapp.di
import kotlinx.coroutines.Dispatchers
class TestDispatcherProvider : DispatcherProvider {
override fun io() = Dispatchers.Unconfined
override fun ui() = Dispatchers.Unconfined
override fun computation() = Dispatchers.Unconfined
} | 0 | Kotlin | 0 | 0 | 7ad51e42556c8db9b59be852e21d5c1012d56cb3 | 278 | NewAndDemoApp | Apache License 2.0 |
app/src/main/java/com/philips/bleclient/extensions/BluetoothExtensions.kt | philips-labs | 384,088,968 | false | null | /*
* Copyright (c) <NAME> 2021.
* All rights reserved.
*/
package com.philips.bleclient
import android.bluetooth.BluetoothGattCharacteristic
import android.bluetooth.BluetoothGattCharacteristic.PROPERTY_NOTIFY
import android.bluetooth.BluetoothGattCharacteristic.PROPERTY_INDICATE
import android.bluetooth.BluetoothG... | 0 | Kotlin | 0 | 1 | 4850963c522645978bae0c752ee67bf39e4b5d06 | 778 | BLE-GHS-Client-Example | MIT License |
data/src/main/java/com/mohaeyo/data/handler/QAErrorHandlerImpl.kt | mohae-team | 203,272,746 | false | null | package com.mohaeyo.data.handler
import com.mohaeyo.domain.base.ErrorHandlerEntity
import com.mohaeyo.domain.handler.QAErrorHandler
import retrofit2.HttpException
import java.net.ConnectException
import java.net.SocketTimeoutException
class QAErrorHandlerImpl: QAErrorHandler {
override fun getQuestionListErrorHan... | 0 | Kotlin | 0 | 7 | 8cb78fbb241fce9c6fbbbbf1ea22a7b9102c475d | 3,804 | MoHae-Android | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.