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/lodz/android/agiledevkt/modules/mvc/sandwich/MvcTestSandwichActivity.kt | LZ9 | 137,967,291 | false | {"Kotlin": 2174504} | package com.lodz.android.agiledevkt.modules.mvc.sandwich
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.View
import com.lodz.android.agiledevkt.R
import com.lodz.android.agiledevkt.databinding.ActivityMvcTestBinding
import com.lodz.android.agiledevkt.databindi... | 0 | Kotlin | 3 | 11 | 91c1f5697ab83e18b2f5531b590ed44f0a382568 | 4,418 | AgileDevKt | Apache License 2.0 |
lib/bar/src/main/java/com/github/tehras/charts/bar/BarChart.kt | mdeora | 286,407,473 | true | {"Kotlin": 74518} | package com.github.tehras.charts.bar
import androidx.animation.AnimationSpec
import androidx.compose.Composable
import androidx.compose.onPreCommit
import androidx.ui.animation.animatedFloat
import androidx.ui.core.Modifier
import androidx.ui.core.drawBehind
import androidx.ui.foundation.Canvas
import androidx.ui.grap... | 0 | null | 0 | 0 | ddd1aea3043e308a7177bb6b8f9849d289410006 | 4,420 | charts | Apache License 2.0 |
src/main/kotlin/neural/CoreNeuron.kt | mguzy | 164,311,268 | false | null | package neural
abstract class CoreNeuron : INeuron {
abstract var bias : Double
abstract val activationFun : (Double) -> Double
abstract val weights : DoubleArray
abstract val parents : List<INeuron>
} | 0 | Kotlin | 0 | 0 | 86fe6e7111d2e76562cf706ff8db78ac8ef5ddfe | 218 | ketchup-training | Apache License 2.0 |
app/src/main/java/hu/mczinke/nasa_apod_viewer/search/presentation/components/SearchCard.kt | CzinkeM | 503,428,423 | false | {"Kotlin": 41835} | package hu.mczinke.nasa_apod_viewer.search.presentation.components
import androidx.compose.animation.AnimatedContent
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMa... | 0 | Kotlin | 0 | 0 | 8e62a96662df86c65453e395836b6b1cf9e0ae25 | 2,459 | android-apod-viewer | MIT License |
tmp/arrays/youTrackTests/3829.kt | DaniilStepanov | 228,623,440 | false | {"Git Config": 1, "Gradle": 6, "Text": 3, "INI": 5, "Shell": 2, "Ignore List": 3, "Batchfile": 2, "Markdown": 2, "Kotlin": 15942, "JavaScript": 4, "ANTLR": 2, "XML": 12, "Java": 4} | // Original bug: KT-37982
fun foo(list: List<String>) {
fun localFun() {
var prev: String? = null
for (s in list) {
if (prev != null) {
println(prev.length)
}
prev = s
}
}
}
| 1 | null | 12 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 259 | bbfgradle | Apache License 2.0 |
ui-lib/src/main/java/co/electriccoin/zcash/ui/screen/chooseserver/AvailableServerProvider.kt | Electric-Coin-Company | 390,808,594 | false | {"Kotlin": 1834553} | package co.electriccoin.zcash.ui.screen.chooseserver
import co.electriccoin.lightwallet.client.model.LightWalletEndpoint
import co.electriccoin.zcash.ui.common.provider.GetDefaultServersProvider
import org.koin.core.component.KoinComponent
import org.koin.core.component.inject
// TODO [#1273]: Add ChooseServer Tests ... | 172 | Kotlin | 15 | 25 | 359d4a5eea03dfb3c1ffbc5df1baca1c6f7917a7 | 617 | zashi-android | MIT License |
app/src/main/java/com/example/space_timetagger/ui/session/SessionViewModel.kt | kr-matthews | 857,845,180 | false | {"Kotlin": 19794} | package com.example.space_timetagger.ui.session
import androidx.lifecycle.ViewModel
import com.example.space_timetagger.domain.model.SessionCallbacks
import com.example.space_timetagger.domain.model.TagModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.corou... | 0 | Kotlin | 0 | 1 | 779859c4c1f7d26a9ee05f7666a778e3fb426cca | 1,005 | space-time-tagger | MIT License |
compose/src/main/java/com/bottlerocketstudios/compose/devoptions/DevOptionsScreen.kt | BottleRocketStudios | 323,985,026 | false | null | @file:Suppress("TooManyFunctions")
package com.bottlerocketstudios.compose.devoptions
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.IntrinsicSize
import androidx.compose.foundation.la... | 1 | Kotlin | 1 | 9 | e3014001732516e9feab58c862e0d84de9911c83 | 10,155 | Android-ArchitectureDemo | Apache License 2.0 |
serve-app/common/src/main/java/org/evidyaloka/common/interfaces/IOnBackPressed.kt | Sunbird-Serve | 607,662,046 | false | null | package org.evidyaloka.common.interfaces
/**
* @author Madhankumar
* created on 21-01-2021
*
*/
interface IOnBackPressed {
fun onBackPressed(): Boolean
} | 0 | Kotlin | 1 | 0 | 6d8d170333e2d32c808e608863e02e076dc06a73 | 162 | serve-beta-android-app | MIT License |
injective-core/src/commonMain/kotlin/injective/exchange/v1beta1/authz.converter.kt | jdekim43 | 759,720,689 | false | {"Kotlin": 8940168, "Java": 3242559} | // Transform from injective/exchange/v1beta1/authz.proto
@file:GeneratorVersion(version = "0.3.1")
package injective.exchange.v1beta1
import google.protobuf.Any
import java.lang.IllegalStateException
import kr.jadekim.protobuf.`annotation`.GeneratorVersion
import kr.jadekim.protobuf.converter.ProtobufConverter
import... | 0 | Kotlin | 0 | 0 | eb9b3ba5ad6b798db1d8da208b5435fc5c1f6cdc | 6,518 | chameleon.proto | Apache License 2.0 |
app/src/main/java/com/breens/todoapp/database/TaskAppDatabase.kt | Breens-Mbaka | 620,332,299 | false | null | package com.breens.todoapp.database
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
@Database(entities = [Task::class], version = 1)
abstract class TaskAppDatabase : RoomDatabase() {
abstract fun taskDao(): TaskDao
companion object {
... | 0 | Kotlin | 1 | 0 | 38300629c1899be1847259075386d1a499a55105 | 851 | MyTodoApp-GDSC-KABARAK | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/events/targets/SfnStateMachineDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.events.targets
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.events.targets.SfnStateMachine
import software.amazon.awscdk.services.stepfunctions.IStateMachine
@Generated
public fun bui... | 1 | Kotlin | 0 | 0 | e08d201715c6bd4914fdc443682badc2ccc74bea | 516 | aws-cdk-kt | Apache License 2.0 |
vessel-runtime/src/main/java/com/textnow/android/vessel/Vessel.kt | textnow | 294,513,050 | false | null | /**
* MIT License
*
* Copyright (c) 2020 TextNow, Inc.
*
* 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, m... | 2 | Kotlin | 5 | 6 | fce15b991329631eaf9996654decf11bdc5b7c9b | 6,021 | vessel | MIT License |
app/src/main/java/com/larvata/qrcodetest/ui/util/RegisterResultHelper.kt | ray360310 | 470,491,332 | false | null | package com.larvata.qrcodetest.ui.util
import android.content.Intent
import androidx.activity.result.ActivityResult
import androidx.activity.result.ActivityResultLauncher
import androidx.activity.result.contract.ActivityResultContracts
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragme... | 0 | Kotlin | 0 | 0 | a4e3f3c00808abab686648a9fc5d008d3aae69ef | 891 | qrcodeTest | MIT License |
Corona-Warn-App/src/deviceForTesters/java/de/rki/coronawarnapp/test/qrcode/ui/QrCodeTestFragmentViewModel.kt | flip-code | 274,741,421 | true | {"Kotlin": 5965504, "HTML": 354712, "Java": 32715} | package de.rki.coronawarnapp.test.qrcode.ui
import android.net.Uri
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import dagger.assisted.AssistedFactory
import dagger.assisted.AssistedInject
import de.rki.coronawarnapp.qrcode.QRCodeFileParser
import de.rki.coronawarnapp.util.coroutine.Dis... | 0 | Kotlin | 0 | 0 | d74e5805be8355e000d1cfb9655eb7e857438ccf | 1,312 | cwa-app-android | Apache License 2.0 |
app/src/main/java/com/coolweather/coolweatherjetpack/data/model/account/User.kt | wangcheng319 | 221,865,680 | false | {"Java": 255741, "Kotlin": 78154} | package com.coolweather.coolweatherjetpack.data.model.account
/**
* @Author: wangc
* @CreateDate: 2020/4/28 16:16
*/
class User {
} | 1 | null | 1 | 1 | fca562ac5d2d4850cff538e929fd9114fbafca22 | 147 | mvvmdemo | Apache License 2.0 |
src/main/java/com/sygic/travel/sdk/places/model/media/Medium.kt | sygic-travel | 84,565,535 | false | null | package com.sygic.travel.sdk.places.model.media
import com.sygic.travel.sdk.places.model.geo.LatLng
/**
* DetailedPlace medium.
*/
class Medium(
val id: String,
val type: Type,
val urlTemplate: String,
val url: String,
val original: Original?,
val suitability: Set<Suitability>,
val attribution: Attribution,
... | 0 | Kotlin | 1 | 8 | ea7a259fe5f4e712fdb082edf581f05b5ff97baa | 345 | android-sdk | MIT License |
app/src/release/java/net/squanchy/navigation/DebugActivityIntentFactory.kt | squanchy-dev | 72,942,055 | false | null | package net.squanchy.navigation
import android.content.Context
import android.content.Intent
class DebugActivityIntentFactory {
fun createDebugActivityIntent(context: Context): Intent {
throw UnsupportedOperationException("The Debug activity is not available on release builds")
}
}
| 0 | Kotlin | 45 | 298 | aa0909c327500f39fb65488baa62f7e4624837ea | 302 | squanchy-android | Apache License 2.0 |
src/main/kotlin/al132/alchemistry/network/ChemicalCombinerPacket.kt | liquidblur | 228,232,024 | true | {"Java": 209331} | package al132.alchemistry.network
import al132.alchemistry.tiles.TileChemicalCombiner
import io.netty.buffer.ByteBuf
import net.minecraft.util.math.BlockPos
import net.minecraftforge.fml.common.FMLCommonHandler
import net.minecraftforge.fml.common.network.simpleimpl.IMessage
import net.minecraftforge.fml.common.netwo... | 0 | null | 0 | 0 | 1bae828c7874f2a63e7c4d890cf36b3864801e0c | 2,074 | alchemistry | MIT License |
app/src/main/java/com/sisk/appoint/ui/auth/ProfileRegistrationState.kt | mrsisk | 596,752,844 | false | null | package com.sisk.appoint.ui.auth
data class ProfileRegistrationState(
val name: String = "",
val surname: String = "",
val dob: String = "",
val cell: String = "",
val genderOptions: List<String> = listOf("Male", "Female"),
val gender: String = genderOptions.first(),
val loading: Boolean = ... | 0 | Kotlin | 0 | 0 | a166a08b84fa1033d5b68e562f0538052f7d337d | 327 | appoint | MIT License |
opendc-experiments/studying-apis/migrations/src/main/kotlin/org/opendc/experiments/oversubscription/k8s/K8sComputeServiceHelper.kt | atlarge-research | 750,559,146 | false | {"Kotlin": 1820445, "JavaScript": 314677, "Python": 35210, "Java": 26326, "SCSS": 13193, "Dockerfile": 1815, "Shell": 1622} | package org.opendc.experiments.oversubscription.k8s
import kotlinx.coroutines.*
import kotlinx.coroutines.sync.Mutex
import mu.KotlinLogging
import org.opendc.compute.api.ComputeClient
import org.opendc.compute.api.Server
import org.opendc.compute.api.ServerState
import org.opendc.compute.api.ServerWatcher
import org.... | 5 | Kotlin | 0 | 0 | ec403085d92197784b62eed35152dfa3c4ef43a2 | 8,633 | quantifying-api-design | MIT License |
src/main/kotlin/no/nav/syfo/Environment.kt | Mayu-Thiyaga | 219,778,337 | true | {"Kotlin": 33798, "Dockerfile": 113} | package no.nav.syfo
data class Environment(
val applicationPort: Int = getEnvVar("APPLICATION_PORT", "8080").toInt()
)
data class VaultCredentials(
val databaseUsername: String,
val databasePassword: String
)
data class VaultServiceUser(
val serviceuserUsername: String,
val serviceuserPassword: S... | 0 | null | 0 | 0 | b168f0f7607f358b4ec6c3bfc99769abbad98971 | 554 | syfoservice-data-syfosmregister | MIT License |
src/Day11.kt | matusekma | 572,617,724 | false | {"Kotlin": 119912, "JavaScript": 2024} | class Day11 {
private val monkey0 = Monkey11(
mutableListOf(77, 69, 76, 77, 50, 58),
{ item -> item * 11 },
{ worryLevel -> if (worryLevel % 5 == 0L) 1 else 5 },5)
private val monkey1 = Monkey11(
mutableListOf(75, 70, 82, 83, 96, 64, 62),
{ item -> item + 8 },
{ w... | 0 | Kotlin | 0 | 0 | 744392a4d262112fe2d7819ffb6d5bde70b6d16a | 1,955 | advent-of-code | Apache License 2.0 |
app/src/main/java/com/martdev/android/mygallery/videoplayerutils/VideoPlayerUtils.kt | Martins-Iroka | 272,367,957 | false | null | package com.martdev.android.mygallery.videoplayerutils
import android.content.Context
import android.net.Uri
import com.google.android.exoplayer2.DefaultLoadControl
import com.google.android.exoplayer2.DefaultRenderersFactory
import com.google.android.exoplayer2.ExoPlayer
import com.google.android.exoplayer2.ExoPlayer... | 0 | Kotlin | 0 | 1 | b64b668a14a02394fe67463154d6ff157b2e591a | 2,369 | MiGaleria | Apache License 2.0 |
taskpool/taskpool-api/src/main/kotlin/io/holunda/camunda/taskpool/api/sender/TaskCommandSender.kt | dthuesen | 156,383,750 | true | {"Kotlin": 112969} | package io.holunda.camunda.taskpool.api.sender
import io.holunda.camunda.taskpool.api.task.AssignTaskCommand
import io.holunda.camunda.taskpool.api.task.CompleteTaskCommand
import io.holunda.camunda.taskpool.api.task.CreateTaskCommand
import io.holunda.camunda.taskpool.api.task.DeleteTaskCommand
/**
* Sender of task... | 0 | Kotlin | 0 | 0 | 538a0ee5a20be36b60f48bf4ae262fe19d2568e0 | 777 | camunda-bpm-taskpool | Apache License 2.0 |
app/src/main/java/com/yuaihen/wcdxg/mvvm/viewmodel/WenDaViewModel.kt | wcdxg | 395,280,155 | false | {"Kotlin": 216063, "Java": 58744} | package com.yuaihen.wcdxg.mvvm.viewmodel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.PagingData
import androidx.paging.cachedIn
import com.yuaihen.wcdxg.mvvm.BaseViewModel
import com.yuaihen.w... | 0 | Kotlin | 0 | 0 | af3e4f13337881c9085538bdb7fd69d55756a811 | 1,187 | WanAndroid | MIT License |
televisionbingecalculator/src/main/java/com/vanillax/televisionbingecalculator/app/kotlin/DetailsActivity.kt | mitchross | 20,243,733 | false | null | package com.vanillax.televisionbingecalculator.app.kotlin
import android.os.Bundle
import android.text.method.ScrollingMovementMethod
import android.util.Log
import android.view.View
import android.widget.AdapterView
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.Toolbar
import androi... | 1 | Kotlin | 1 | 1 | 50437a17166633ef7c88ae159765e31bf97fb609 | 7,993 | Television-Binge-Calculator | The Unlicense |
petcare/src/main/java/io/wso2/android/api_authenticator/sdk/petcare/features/home/presentation/util/profile/SettingsAttribute.kt | Achintha444 | 731,559,375 | false | {"Kotlin": 551516, "Java": 1580} | package io.wso2.android.api_authenticator.sdk.petcare.features.home.presentation.util.profile
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation... | 0 | Kotlin | 0 | 0 | 39b6b10d10641a0f4960ffe3b7d3b861058ab314 | 2,217 | wso2-android-api-authenticator-sdk | Apache License 2.0 |
http4k-format-xml/src/test/kotlin/org/http4k/format/XmlTest.kt | spruceholdings | 154,645,976 | true | {"Kotlin": 446723, "Shell": 4787, "HTML": 1758, "Java": 755, "CSS": 499, "JavaScript": 48} | package org.http4k.format
import com.natpryce.hamkrest.assertion.assertThat
import com.natpryce.hamkrest.equalTo
import com.natpryce.hamkrest.should.shouldMatch
import org.http4k.core.Body
import org.http4k.core.Method.GET
import org.http4k.core.Request
import org.http4k.core.Response
import org.http4k.core.Status
imp... | 1 | Kotlin | 1 | 1 | e58450e03bf3676bf7277c27be7f605116c3ef4f | 2,205 | http4k | Apache License 2.0 |
app/src/main/java/th/ac/kku/cis/lab/pokedexmvvm/presentation/pokemon_detail/PokemonDetailViewModelFactory.kt | tanapattara | 451,768,976 | false | {"Kotlin": 32855} | package th.ac.kku.cis.lab.pokedexmvvm.presentation.pokemon_detail
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import th.ac.kku.cis.lab.pokedexmvvm.data.repository.PokemonRepository
import th.ac.kku.cis.lab.pokedexmvvm.presentation.pokemon_autoload.PokemonAutoLoadViewModel
class Pok... | 0 | Kotlin | 0 | 0 | f4b45bad4c2a3e9ccf67b5563e8acabb39f1d2ad | 747 | Android-Pokedex-with-MVVM | MIT License |
main/logbook/builtinscript/BaseAirRow.kt | noratako5 | 60,863,062 | false | null | package logbook.builtinscript
import com.google.gson.internal.LinkedTreeMap
import logbook.dto.AirBattleDto
import logbook.internal.Item
import logbook.scripting.BuiltinScriptFilter
import logbook.util.GsonUtil
import java.util.*
fun BaseAirRowHeader(): ArrayList<String> {
val header = DamageDayNightRowHeader()
... | 0 | null | 2 | 13 | 82350d0779bd5092ec07fa2e41d8455cf0ee055c | 9,182 | logbook | MIT License |
app/src/main/java/com/afollestad/photoaffix/data/PhotoHolder.kt | TrendingTechnology | 159,172,121 | true | {"Kotlin": 79949} | /*
* Licensed under Apache-2.0
*
* Designed and developed by <NAME> (@afollestad)
*/
package com.afollestad.photoaffix.data
import java.io.Serializable
/** @author <NAME> (afollestad) */
data class PhotoHolder(
val photos: List<Photo>
) : Serializable
| 0 | Kotlin | 0 | 0 | 4589fc9f3e65127438fd002f9a92cc78795ae0d3 | 260 | photo-affix | Apache License 2.0 |
compiler/src/commonMain/kotlin/com/hsc/compiler/codegen/passes/ReturnAssignPass.kt | sndyx | 775,217,744 | false | {"Kotlin": 156733} | package com.hsc.compiler.codegen.passes
import com.hsc.compiler.driver.CompileSess
import com.hsc.compiler.errors.DiagCtx
import com.hsc.compiler.ir.ast.*
import com.hsc.compiler.span.Span
object ReturnAssignPass : AstPass {
override fun run(sess: CompileSess) {
val functions = sess.map.query<Item>().fil... | 0 | Kotlin | 0 | 3 | ebd8328329f68ac1e4828d96889a64e3184e1061 | 2,166 | hsl | MIT License |
app/src/main/java/com/kongjak/ggcj/Activity/NoticeActivity.kt | kongwoojin | 165,344,712 | false | null | package com.kongjak.ggcj.Activity
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.util.Log
import android.view.Menu
import android.view.MenuItem
import android.view.View
import androidx.appcompat.app.ActionBarDrawerToggle
import androidx.appcompat.app.AppCompatActivity
impo... | 1 | Kotlin | 1 | 1 | fa33afaf5d303f33cefade63aad0d3a65b2059f2 | 7,563 | GGCJ | MIT License |
TenextllSDKDemo/app/src/main/java/com/tenext/demo/activity/FeedbackActivity.kt | wenext-ops | 250,197,017 | false | null | package com.tenext.demo.activity
import android.text.Editable
import android.text.TextUtils
import android.text.TextWatcher
import com.tenext.auth.IoTAuth
import com.tenext.auth.callback.MyCallback
import com.tenext.auth.response.BaseResponse
import com.tenext.demo.R
import com.tenext.demo.log.L
import kotlinx.android... | 0 | Kotlin | 1 | 0 | 4266bd268686ab0bf6799ac0168967281fdc2051 | 2,572 | LLForAndroid | MIT License |
biomedicus-core/src/main/kotlin/edu/umn/biomedicus/framework/Runners.kt | gkovaig | 125,126,072 | true | {"Java": 1107335, "Kotlin": 439834, "Shell": 1233, "Batchfile": 992} | /*
* Copyright (c) 2018 Regents of the University of Minnesota.
*
* 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... | 0 | Java | 0 | 0 | df7d2b767fce1e89234bb21337033de026c3ad57 | 8,746 | biomedicus | Apache License 2.0 |
test/smokes/detekt/with_options/src/FilteredClass.kt | sider | 202,486,306 | false | null | @Suppress("unused")
class FilteredClass {
}
| 36 | Ruby | 6 | 9 | f880ac82aba9baa895882c75eeeb4e07482f5694 | 44 | runners | MIT License |
app/src/main/java/dk/mustache/corelibexample/sandbox/section_header_example/SectionHeaderExampleAdapter.kt | mustachedk | 181,449,514 | false | null | package dk.mustache.corelibexample.sandbox.section_header_example
import androidx.databinding.ViewDataBinding
import dk.mustache.corelib.BR
import dk.mustache.corelib.adapters.DataBindingViewHolder
import dk.mustache.corelib.section_header_list.SectionHeaderListAdapter
import dk.mustache.corelib.section_header_list.Se... | 3 | Kotlin | 1 | 2 | 492346cd64b0e0ddf3cc96d71ec10d1849e08204 | 1,925 | core-lib-an | MIT License |
6_technician_android_app/app/src/main/java/com/sap/mobile/mahlwerk/viewmodel/MapViewModel.kt | alinamatei-dev | 401,294,557 | false | null | package com.sap.mobile.mahlwerk.viewmodel
import android.app.Application
import androidx.lifecycle.MutableLiveData
import com.sap.cloud.android.odata.odataservice.OdataService
import com.sap.cloud.android.odata.odataservice.OdataServiceMetadata
import com.sap.cloud.android.odata.odataservice.Task
import com.sap.cloud.... | 1 | null | 1 | 1 | 509637c7be2fbf1b5b606df57b8cec64c6e44b4f | 1,660 | cloud-mobile-end2end-sample | Apache License 2.0 |
sketch/src/main/java/com/github/panpf/sketch/decode/BitmapDecoder.kt | fltwlulu | 188,455,050 | true | {"Kotlin": 2378560, "Java": 66224} | package com.github.panpf.sketch.decode
import android.graphics.Bitmap
import androidx.annotation.WorkerThread
import com.github.panpf.sketch.ComponentRegistry
import com.github.panpf.sketch.Sketch
import com.github.panpf.sketch.datasource.DataSource
import com.github.panpf.sketch.fetch.FetchResult
import com.github.pa... | 0 | Kotlin | 0 | 0 | c9ff98d80c36d7c4ba5c28bbf358dc8ee53278b1 | 1,257 | sketch | MIT License |
protocol/src/main/java/io/github/amanshuraikwar/howmuch/protocol/CategoriesDataManager.kt | amanshuraikwar | 124,106,668 | false | null | package io.github.amanshuraikwar.howmuch.protocol
import io.reactivex.Observable
interface CategoriesDataManager {
fun getAllCategories(): Observable<Iterable<Category>>
fun getCategoryById(id: String): Observable<Category>
fun addCategory(category: Category): Observable<Category>
fun updateCatego... | 1 | null | 3 | 5 | 69248734bb5f764ca702880e28c4f1cfaf893648 | 433 | HowMuch | Apache License 2.0 |
app/src/main/java/com/wikipedia/views/TabCountsView.kt | ravideveloper92 | 242,436,082 | false | {"Java": 2709275, "Kotlin": 218792, "Python": 20806, "Shell": 1800, "HTML": 1006} | package com.wikipedia.views
import android.content.Context
import android.graphics.PorterDuff
import android.util.AttributeSet
import android.util.TypedValue
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import androidx.annotation.ColorInt
import kotlinx.android.synthetic.mai... | 1 | null | 1 | 1 | 792a74bd9750842c11ab43bd14f669fd7b412237 | 1,917 | WikipediaSearch | Apache License 2.0 |
dogs/src/main/java/com/airbnb/mvrx/dogs/app/DogsActivity.kt | littleGnAl | 167,345,526 | false | null | package com.airbnb.mvrx.dogs.app
import android.os.Bundle
import com.airbnb.mvrx.BaseMvRxActivity
import com.airbnb.mvrx.dogs.R
class DogsActivity : BaseMvRxActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_dogs)
... | 1 | null | 1 | 3 | 7ea6284530a0640f36d12508a669b4f4222902c3 | 328 | MvRx | Apache License 2.0 |
compiler/fir/analysis-tests/testData/resolveWithStdlib/problems/NamedParameterInConcurrentMap.kt | JetBrains | 3,432,266 | false | null | // FULL_JDK
import java.util.concurrent.ConcurrentHashMap
fun main() {
val map = ConcurrentHashMap<String, String>()
map.put(
key = "key",
value = "value"
)
}
| 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 189 | kotlin | Apache License 2.0 |
app/src/androidTest/java/com/gatheringhallstudios/mhworlddatabase/MHExtensionsTest.kt | gatheringhallstudios | 109,581,966 | false | null | package com.gatheringhallstudios.mhworlddatabase
import android.content.Context
import androidx.appcompat.content.res.AppCompatResources
import androidx.test.rule.ActivityTestRule
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.gatheringhallstudios.mhworlddatabase.assets.getAssetDrawable
import com.gat... | 5 | null | 22 | 54 | 7a81b4ccd9e5f898bf9373d7c60f85c6c8f85781 | 2,510 | MHWorldDatabase | MIT License |
project/jimmer-core-kotlin/src/test/kotlin/org/babyfish/jimmer/kt/ConvertTest.kt | yaoniming3000pro | 595,007,723 | true | {"Markdown": 24, "Text": 1, "Ignore List": 6, "JSON": 2, "Gradle": 8, "Shell": 10, "Batchfile": 8, "Java": 807, "Kotlin": 333, "SQL": 10, "YAML": 11, "INI": 11, "JavaScript": 4, "JSON with Comments": 1, "MDX": 73, "TSX": 3, "CSS": 3, "Gradle Kotlin DSL": 16, "HTML": 2, "GraphQL": 2} | package org.babyfish.jimmer.kt
import org.babyfish.jimmer.ImmutableConverter
import org.babyfish.jimmer.kt.model.*
import java.math.BigDecimal
import kotlin.test.Test
import kotlin.test.assertFailsWith
import kotlin.test.expect
class ConvertTest {
@Test
fun testPartialConverter() {
val book = Immutab... | 0 | null | 0 | 0 | f69315cbba6a862af92e20bb11bab94b015a9a9d | 4,973 | jimmer | MIT License |
core/src/main/kotlin/com/github/dwursteisen/superjumper/World.kt | dwursteisen | 98,867,363 | true | {"Java": 59997, "Kotlin": 34634, "CSS": 3341, "HTML": 1584, "JavaScript": 24} | package com.github.dwursteisen.superjumper
import com.badlogic.ashley.core.Entity
import com.badlogic.ashley.core.PooledEngine
import com.badlogic.gdx.math.MathUtils
import com.badlogic.gdx.math.Vector2
import com.github.dwursteisen.libgdx.ashley.StateComponent
import com.github.dwursteisen.libgdx.ashley.createCompone... | 0 | Java | 0 | 0 | 9b9216f62c8c91bf31a53af549d6833673217faf | 9,620 | ashley-superjumper | Apache License 2.0 |
src/main/kotlin/name/kropp/intellij/qml/QmlAnnotator.kt | kropp | 83,246,591 | false | null | package name.kropp.intellij.qml
import com.intellij.lang.annotation.AnnotationHolder
import com.intellij.lang.annotation.Annotator
import com.intellij.psi.PsiElement
import name.kropp.intellij.qml.psi.QmlAttribute
import name.kropp.intellij.qml.psi.QmlType
class QmlAnnotator : Annotator {
override fun annotate(elem... | 10 | Kotlin | 24 | 53 | 29783bb1c74ae50a83960c3cd7411e9f1056676a | 788 | intellij-qml | MIT License |
app/src/main/java/digital/wup/superhero/data/CharactersDataStore.kt | wupdigital | 121,959,686 | false | null | package digital.wup.superhero.data
import digital.wup.superhero.data.model.Character
import digital.wup.superhero.data.model.Error
import digital.wup.superhero.data.model.Page
interface CharactersDataStore {
fun loadCharacters(page: Page, callback: LoadCharactersCallback)
fun loadCharacter(id: String, callb... | 1 | null | 1 | 1 | 92401a92bd1b3465494fad4972fad4bad98a5c37 | 677 | kotlin-superhero-app | Apache License 2.0 |
cutilslibrary/src/main/java/com/utils/library/utils/cache/LoginBean.kt | EasonHolmes | 390,691,373 | false | {"Java": 270865, "Kotlin": 185892} | package com.utils.library.utils.cache
data class LoginBean(
var userId: String = "",
var phone: String = "",
var token: String = "",
var refreshToken: String ="",
var expiredTime: Long = 0,
var uid: String = ""
) | 1 | null | 1 | 1 | e551ff7e3f3bb7345483e09cbef8dcc547ef19e6 | 237 | CBaseLibrary | Apache License 2.0 |
pacific-adapter/demo/src/main/java/com/example/adapter/GridViewFragment.kt | trantronghien | 92,804,892 | true | {"Java": 68114, "Kotlin": 5522} | package com.example.adapter
import android.arch.lifecycle.LifecycleFragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
class GridViewFragment : LifecycleFragment() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate... | 0 | Java | 0 | 0 | 9079ab7419a8c7c88f194c0a2f769f5cc5efef2f | 649 | adapter | MIT License |
base/src/main/java/org/kin/sdk/base/network/services/KinService.kt | samdowd | 289,057,378 | false | null | package org.kin.sdk.base.network.services
import okhttp3.OkHttpClient
import org.kin.sdk.base.models.InvoiceList
import org.kin.sdk.base.models.KinAccount
import org.kin.sdk.base.models.KinMemo
import org.kin.sdk.base.models.KinPaymentItem
import org.kin.sdk.base.models.QuarkAmount
import org.kin.sdk.base.models.Trans... | 1 | null | 1 | 1 | 332710536024472c745f776f3c6f058fff1901ee | 24,389 | kin-android | MIT License |
airbyte-commons-worker/src/main/kotlin/io/airbyte/workers/internal/stateaggregator/StateAggregatorFactory.kt | airbytehq | 592,970,656 | false | {"Java": 8668087, "TypeScript": 3798201, "Kotlin": 3141590, "SCSS": 228528, "Shell": 94290, "Smarty": 78835, "Go": 66411, "JavaScript": 42636, "Python": 29918, "Mustache": 22194, "FreeMarker": 16959, "Dockerfile": 13368, "CSS": 12775, "MDX": 7660, "HCL": 6908, "D2": 3564, "Makefile": 3453, "HTML": 3253, "Starlark": 296... | package io.airbyte.workers.internal.stateaggregator
/** Factory to build StageAggregator. */
class StateAggregatorFactory {
fun create(): StateAggregator = DefaultStateAggregator()
}
| 54 | Java | 249 | 205 | a2e58f1b60ea79ec96546c98f712077c82de373a | 186 | airbyte-platform | MIT License |
Demos/KotlinPrimer-master/Project6/src/main/kotlin/com/kymjs/kotlinprimer/unit4/InfixDemo.kt | 12313kaihuang | 277,078,667 | false | null | package com.kymjs.kotlinprimer.unit4
/**
* Created by ZhangTao on 18/7/6.
*/
sealed class CompareResult {
object LESS : CompareResult() {
override fun toString(): String {
return "小于"
}
}
object MORE : CompareResult() {
override fun toString(): String {
r... | 1 | null | 1 | 1 | 2690a474de19fdd7a2e1213882ef706347a0be49 | 1,249 | KotlinTest | Apache License 2.0 |
app/src/main/java/com/dfavilav/zararickmorty/presentation/screens/details/DetailsContent.kt | davilav | 698,251,199 | false | {"Kotlin": 85426} | package com.dfavilav.zararickmorty.presentation.screens.details
import android.app.Activity
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.f... | 0 | Kotlin | 0 | 0 | 975c22746386d644bd4a9889c80c884aa35a3d26 | 10,484 | RickAndMorty | Apache License 2.0 |
app/src/main/java/com/esafirm/androidplayground/kotlin/TopFileLazyController.kt | esafirm | 71,869,708 | false | null | package com.esafirm.androidplayground.kotlin
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.esafirm.androidplayground.common.BaseController
import com.esafirm.androidplayground.libs.Logger
import com.esafirm.androidplayground.utils.button
import com.esafirm.android... | 6 | Kotlin | 2 | 9 | 083ed4741f9e9ace804bbecaf4fb4486804b3f86 | 678 | android-playground | MIT License |
lib/stove-testing-e2e/src/main/kotlin/com/trendyol/stove/testing/e2e/system/abstractions/PluggedSystem.kt | Trendyol | 590,452,775 | false | null | package com.trendyol.stove.testing.e2e.system.abstractions
/**
* @author <NAME>
*/
interface PluggedSystem : AutoCloseable, ThenSystemContinuation
/**
* @author <NAME>
*/
interface CleansUp {
suspend fun cleanup(): PluggedSystem
}
| 6 | Kotlin | 1 | 6 | c956e5304beda766fe48adc589db47504c8b58b6 | 242 | stove4k | Apache License 2.0 |
app/src/main/java/com/aposiamp/smartliving/domain/usecase/devices/airCondition/UpdateAirConditionAirDirectionUseCase.kt | ApostolisSiampanis | 783,913,411 | false | {"Kotlin": 490999} | package com.aposiamp.smartliving.domain.usecase.devices.airCondition
import com.aposiamp.smartliving.data.model.AirDirectionDTO
import com.aposiamp.smartliving.domain.repository.AirConditionRepository
class UpdateAirConditionAirDirectionUseCase(
private val airConditionRepository: AirConditionRepository
) {
s... | 0 | Kotlin | 0 | 3 | 366e5ae37b4195c507325ebf66c915642eb308e3 | 550 | Smart_Living | MIT License |
app-ktvn-prototyper-swing/src/main/kotlin/com/github/benpollarduk/ktvn/prototyping/swing/ui/JPanelFlagViewer.kt | benpollarduk | 710,310,174 | false | {"Kotlin": 436387} | package com.github.benpollarduk.ktvn.prototyping.swing.ui
import com.github.benpollarduk.ktvn.logic.Flags
import com.github.benpollarduk.ktvn.prototyping.swing.components.FlagViewer
import java.awt.BorderLayout
import javax.swing.JLabel
import javax.swing.JPanel
import javax.swing.JScrollPane
import javax.swing.JTable... | 2 | Kotlin | 0 | 9 | 4326fc7c0bcba099a57d21382407e090dc625bd9 | 1,338 | ktvn | MIT License |
android/app/src/main/kotlin/com/peteralexbizjak/c2sanilist/MainActivity.kt | sunderee | 364,237,843 | false | null | package com.peteralexbizjak.c2sanilist
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | C++ | 1 | 21 | b65d53b9dbab755372c2e578a8f4b79d090f3e09 | 135 | Flutter-AniList | MIT License |
backend/src/main/kotlin/com/cmgapps/ktor/curriculumvitae/infra/model/ApiInfo.kt | chrimaeon | 349,755,471 | false | null | /*
* Copyright (c) 2023. <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.cmgapps.ktor.curriculumvitae.infra.model
data class ApiInfo(
val version: String,
val contactName: String,
val contactEmail: String,
val serverUrl: String,
val serverDescription: String,
)
| 0 | Kotlin | 2 | 8 | 9695bcd6fe134700da97f76a46b48e2328881966 | 312 | curriculumvitae | Apache License 2.0 |
app/src/main/java/com/villevalta/imgur/utils/Resource.kt | vetoketju | 190,034,708 | false | null | package com.villevalta.imgur.utils
import androidx.lifecycle.LiveData
import androidx.paging.PagedList
open class Resource<out T, out E>(val status: Status, val data: T?, val error: E?) {
companion object {
fun <T, E> success(data: T? = null): Resource<T, E> {
return Resource(
Status.SUCCESS,
... | 0 | Kotlin | 0 | 2 | 54fac75a5ae9e3252bb1ed806f78744809053658 | 1,134 | OpenImgurClient | The Unlicense |
app/src/main/java/io/deus/wallet/core/NavController.kt | DeusWallet | 810,708,619 | false | {"Kotlin": 5009329, "Shell": 6095, "Ruby": 1350} | package io.deus.wallet.core
import android.os.Bundle
import android.os.Parcelable
import android.util.Log
import androidx.annotation.IdRes
import androidx.core.os.bundleOf
import androidx.navigation.NavController
import androidx.navigation.NavOptions
import io.deus.wallet.R
import io.deus.wallet.modules.pin.ConfirmPin... | 0 | Kotlin | 0 | 0 | f4c5e0fadbf2955edf7ba35d4617f148c191c02b | 4,654 | deus-wallet-android | MIT License |
PaySDK/src/main/java/com/kotlin/pay/data/protocol/PayOrderReq.kt | starktonys | 140,391,283 | false | {"Kotlin": 263051, "Java": 7941} | package com.kotlin.pay.data.protocol
/*
支付订单
*/
data class PayOrderReq(val orderId:Int)
| 0 | Kotlin | 1 | 8 | 7cb3f869a27c9f8a6ba44b72a7d328a1383ec4aa | 94 | KotlinMall-App | Apache License 2.0 |
app/src/main/java/com/wazing/gank/base/adapter/BaseRecyclerViewAdapter.kt | cuixbo | 152,170,205 | false | {"Kotlin": 78852} | package com.wazing.gank.base.adapter
import android.view.ViewGroup
import java.util.*
abstract class BaseRecyclerViewAdapter<T> @JvmOverloads constructor(
private val itemLayoutRes: Int, list: ArrayList<T> = ArrayList()
) : BaseMultiRecyclerViewAdapter<T>(list) {
override fun addItemViewType(position: In... | 0 | Kotlin | 6 | 0 | 31e6aaaeb6c5972d419ca2dde35ec30543a6df63 | 497 | Gank | Apache License 2.0 |
pstatus-graphql-ktor/src/main/kotlin/gov/cdc/ocio/processingstatusapi/loaders/ReportCountsLoader.kt | CDCgov | 679,761,337 | false | {"Kotlin": 650992, "Python": 14605, "TypeScript": 7647, "Java": 4266, "JavaScript": 2382} | package gov.cdc.ocio.processingstatusapi.loaders
import gov.cdc.ocio.database.persistence.ProcessingStatusRepository
import gov.cdc.ocio.processingstatusapi.models.ReportCounts
import gov.cdc.ocio.database.models.dao.ReportDao
import gov.cdc.ocio.processingstatusapi.models.query.PageSummary
import gov.cdc.ocio.process... | 4 | Kotlin | 0 | 2 | 24fcd039649d7ed9fdeab5750911b1543715926a | 26,880 | data-exchange-processing-status | Apache License 2.0 |
app/src/main/java/com/johnowl/cleanarchitecture/model/BlogPost.kt | johnowl | 304,024,710 | false | null | package com.johnowl.cleanarchitecture.model
data class BlogPost(
var id: Long,
var title: String,
var body: String,
var image: String,
var category: String
) | 0 | Kotlin | 0 | 0 | 415d9bb31f64f6fdc1fff2388f60ba32ccb16390 | 178 | android-mvi-hello-world | Apache License 2.0 |
src/commonMain/kotlin/app/thelema/ui/ScrollPaneStyle.kt | zeganstyl | 275,550,896 | false | null | /*
* Copyright 2020-2021 <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 ... | 3 | Kotlin | 5 | 61 | 8e2943b6d2de3376ce338025b58ff31c14097caf | 1,029 | thelema-engine | Apache License 2.0 |
app/src/main/java/com/pol/sane/jove/digitalshelter/ui/screens/main/shelter/shelter_screens/dogs_screens/dog_list/ShelterDogsListScreen.kt | pol1612 | 760,386,536 | false | {"Kotlin": 115174} | package com.pol.sane.jove.digitalshelter.ui.screens.main.shelter.shelter_screens.dogs_screens.dog_list
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.fo... | 0 | Kotlin | 0 | 1 | ca1789d797222311a56a556626856985f9171d01 | 4,772 | DigitalShelter | Apache License 2.0 |
app/src/main/java/com/msg/gcms/presentation/viewmodel/MainViewModel.kt | GSM-MSG | 465,292,111 | false | null | package com.msg.gcms.presentation.viewmodel
import Loading
import Success
import android.util.Log
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.msg.gcms.domain.data.club.get_club_list.GetClubListData
... | 5 | Kotlin | 0 | 17 | 54bd3f7644ab58fb3ca3d2b35d91d3bfa59cc002 | 3,592 | GCMS-Android | MIT License |
src/commonTest/kotlin/io/github/alexandrepiveteau/graphs/EdgeTests.kt | alexandrepiveteau | 630,931,403 | false | {"Kotlin": 132267} | package io.github.alexandrepiveteau.graphs
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith
import kotlin.test.assertTrue
class EdgeTests {
@Test
fun oppositeEdgesAreEqual() {
val a = Vertex(0)
val b = Vertex(1)
val e = a edgeTo b
val f = b edgeTo a
a... | 9 | Kotlin | 0 | 6 | a4fd159f094aed5b6b8920d0ceaa6a9c5fc7679f | 1,072 | kotlin-graphs | MIT License |
compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/InnerClassesLowering.kt | milos85vasic | 131,718,837 | true | {"Kotlin": 27130420, "Java": 7560757, "JavaScript": 153376, "HTML": 62977, "Lex": 18174, "Groovy": 14207, "ANTLR": 9797, "IDL": 8161, "Shell": 5436, "CSS": 4679, "Batchfile": 4437} | /*
* Copyright 2010-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.backend.common.lower
import org.jetbrains.kotlin.backend.common.BackendContext import org.jetbrains.kotlin.backend.common.Body... | 9 | Kotlin | 0 | 2 | 10da41b1367f8889589989fc89123182389a7174 | 10,779 | kotlin | Apache License 2.0 |
scripts/kotlin-aggregator-script/src/main/kotlin/api/models/Closures.kt | tscholze | 433,163,519 | false | {"Kotlin": 43960, "Shell": 1054} | package api.models
import kotlinx.serialization.Serializable
@Serializable
data class Closures(
val closure: List<Closure>
)
@Serializable
data class Closure(
val coordinate: Coordinate,
val description: List<String>,
val display_type: String,
val extent: String,
val footer: List<String>,
... | 7 | Kotlin | 2 | 3 | 83e69372c8d1a4451dc138da796f97251ce7665c | 663 | kotlin-surfaceduo-duobahn | MIT License |
src/main/kotlin/com/micudasoftware/data/recipe/MongoRecipeDatasource.kt | DusanMicuda | 728,069,932 | false | {"Kotlin": 52159} | package com.micudasoftware.data.recipe
import org.bson.types.ObjectId
import org.litote.kmongo.coroutine.CoroutineDatabase
import org.litote.kmongo.eq
/**
* The implementation of [RecipeDataSource] using Mongo database.
*
* @param db The Mongo database instance.
* @see RecipeDataSource
*/
class MongoRecipeDataso... | 0 | Kotlin | 0 | 0 | f72bf86b8bf94b3b5eaf65bc0d6462bf1c70410f | 842 | cookify-service | MIT License |
app/src/main/java/com/qflow/main/usecases/queue/JoinQueue.kt | TheFabulousGroup | 239,192,770 | false | null | package com.qflow.main.usecases.queue
import androidx.annotation.IntegerRes
import com.google.gson.Gson
import com.qflow.main.core.Failure
import com.qflow.main.domain.adapters.QueueAdapter
import com.qflow.main.domain.local.SharedPrefsRepository
import com.qflow.main.repository.QueueRepository
import com.qflow.main.u... | 0 | Kotlin | 2 | 0 | 7a5a91096dffc75fbc167d8d1483b7f1adcfbe0b | 1,212 | QueueApp | Apache License 2.0 |
app/src/androidTest/java/com/ananth/artbooktesting/di/TestAppModule.kt | ananth10 | 617,478,043 | false | null | package com.ananth.artbooktesting.di
import android.content.Context
import androidx.room.Room
import com.ananth.artbooktesting.roomdb.ArtDatabase
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.SingletonComp... | 0 | Kotlin | 0 | 0 | 9085b7ff1f9493edd6d8eeecbe1ac0f0ade0d9ce | 650 | AndroidUnitTesting | Apache License 2.0 |
app/src/main/java/br/com/everis/sovamu/feature/home/ui/ScrumViewModel.kt | marks5 | 356,365,433 | false | null | package br.com.everis.sovamu.feature.home.ui
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import br.com.everis.sovamu.feature.home.model.MockNotification
import br.com.everis.sovamu.feature.home.model.mockListNotification
import br.com.everis.sovamu.ui.BaseViewModel
import kotlinx.corou... | 0 | Kotlin | 0 | 1 | 56c9a5783c22ef34c467ff533baaabbdb7f6a0ca | 2,397 | everis_android | Apache License 2.0 |
app/shared/f8e-client/public/src/commonMain/kotlin/build/wallet/f8e/recovery/GetDelayNotifyRecoveryStatusService.kt | proto-at-block | 761,306,853 | false | {"C": 10424094, "Kotlin": 7156393, "Rust": 2046237, "Swift": 700307, "Python": 331492, "HCL": 271992, "Shell": 111209, "TypeScript": 102700, "C++": 64770, "Meson": 64234, "JavaScript": 36227, "Just": 28071, "Ruby": 9428, "Dockerfile": 5731, "Makefile": 3839, "Open Policy Agent": 1552, "Procfile": 80} | package build.wallet.f8e.recovery
import build.wallet.bitkey.f8e.FullAccountId
import build.wallet.f8e.F8eEnvironment
import build.wallet.ktor.result.NetworkingError
import com.github.michaelbull.result.Result
interface GetDelayNotifyRecoveryStatusService {
/**
* Retrieve current status of the delay and notify r... | 0 | C | 10 | 98 | 1f9f2298919dac77e6791aa3f1dbfd67efe7f83c | 549 | bitkey | MIT License |
app-scraper/src/main/kotlin/com/crosenthal/eventFinder/scraper/service/EventScraper.kt | courtney-rosenthal | 673,961,460 | false | {"Kotlin": 93888, "Roff": 51102, "Vue": 17318, "CSS": 2492, "JavaScript": 952, "HTML": 339, "Dockerfile": 263} | package com.crosenthal.eventFinder.scraper.service
import com.crosenthal.eventFinder.elasticsearch.domain.CalendarEvent
import com.crosenthal.eventFinder.elasticsearch.domain.EventLocation
import com.crosenthal.eventFinder.elasticsearch.domain.ScrapeIssues
import com.crosenthal.eventFinder.locations.LocationService
im... | 6 | Kotlin | 1 | 2 | bf97692dfbf57ba9402ba9f70556fccb9b7297df | 10,111 | apl-event-finder | The Unlicense |
tmp/results/JVM/BACKEND_lumii.kt | mandelshtamd | 346,008,310 | true | {"Kotlin": 7965847} | inline class Z(val x: Int) {
companion object {
private @JvmStatic external fun foo()
}
} | 1 | Kotlin | 1 | 1 | e772ef1f8f951873ebe7d8f6d73cf19aead480fa | 105 | kotlinWithFuzzer | Apache License 2.0 |
app/src/test/java/com/github/oheger/locationteller/map/MarkerFactorySpec.kt | ashishkharcheiuforks | 245,619,583 | true | {"Kotlin": 377383} | /*
* Copyright 2019-2020 The Developers.
*
* 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 | null | 0 | 0 | 038951ec3ff853340cb51ec9d29dbeb7bcd6cfd4 | 7,994 | LocationTeller | Apache License 2.0 |
db-mem/src/main/kotlin/dao/MemDbCard.kt | crowdproj | 543,982,440 | false | {"Kotlin": 601658, "JavaScript": 79178, "HTML": 29342, "FreeMarker": 10064, "Batchfile": 876, "Shell": 842, "Dockerfile": 361} | package com.gitlab.sszuev.flashcards.dbmem.dao
import java.time.LocalDateTime
/**
* id,dictionary_id,text,word,examples,details,answered,changed_at
*/
data class MemDbCard(
val id: Long? = null,
val dictionaryId: Long? = null,
val words: List<MemDbWord>,
val details: Map<String, String> = emptyMap()... | 7 | Kotlin | 0 | 2 | 9678e4e5fed75e5813be26df79efe9e9c1871cc4 | 398 | opentutor | Apache License 2.0 |
app/src/main/java/com/wisnu/kurniawan/composetodolist/runtime/navigation/MainNavHost.kt | wisnukurniawan | 409,054,048 | false | {"Kotlin": 699252} | package com.wisnu.kurniawan.composetodolist.runtime.navigation
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxSize
import a... | 12 | Kotlin | 39 | 397 | 5285dbd03f2f2f61ca7cdea2caa919885b0ddd8b | 7,916 | Compose-ToDo | Apache License 2.0 |
src/test/kotlin/no/nav/syfo/testhelper/mock/VeilederTilgangskontrollMock.kt | navikt | 160,816,361 | false | null | package no.nav.syfo.testhelper.mock
import io.ktor.application.*
import io.ktor.http.*
import io.ktor.response.*
import io.ktor.routing.*
import io.ktor.server.engine.*
import io.ktor.server.netty.*
import no.nav.syfo.application.api.installContentNegotiation
import no.nav.syfo.client.veiledertilgang.Tilgang
import no... | 0 | Kotlin | 0 | 0 | 8d804c1a519e39de41a19d8e546498eb81a06231 | 2,652 | syfoperson | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/pecs/jpc/pricing/importer/PriceImporter.kt | martin-ballhatchet-moj | 304,628,739 | true | {"Kotlin": 166064, "Shell": 4580, "HTML": 3172, "Dockerfile": 933} | package uk.gov.justice.digital.hmpps.pecs.jpc.pricing.importer
import org.apache.poi.xssf.usermodel.XSSFWorkbook
import org.slf4j.LoggerFactory
import org.springframework.stereotype.Component
import uk.gov.justice.digital.hmpps.pecs.jpc.config.GeoameyPricesProvider
import uk.gov.justice.digital.hmpps.pecs.jpc.config.S... | 0 | null | 0 | 0 | cb0d3b416a6739ffa50314025b8399904e5c6121 | 1,993 | calculate-journey-variable-payments | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/pecs/jpc/pricing/importer/PriceImporter.kt | martin-ballhatchet-moj | 304,628,739 | true | {"Kotlin": 166064, "Shell": 4580, "HTML": 3172, "Dockerfile": 933} | package uk.gov.justice.digital.hmpps.pecs.jpc.pricing.importer
import org.apache.poi.xssf.usermodel.XSSFWorkbook
import org.slf4j.LoggerFactory
import org.springframework.stereotype.Component
import uk.gov.justice.digital.hmpps.pecs.jpc.config.GeoameyPricesProvider
import uk.gov.justice.digital.hmpps.pecs.jpc.config.S... | 0 | null | 0 | 0 | cb0d3b416a6739ffa50314025b8399904e5c6121 | 1,993 | calculate-journey-variable-payments | MIT License |
core/network/src/main/kotlin/com/orange/core/network/data_source/JsonFactory.kt | houssemzaier | 627,237,895 | false | null | package com.orange.core.network.data_source
import kotlinx.serialization.json.Json
object JsonFactory {
fun create(): Json = Json {
ignoreUnknownKeys = true
isLenient = true
encodeDefaults = true
}
}
| 0 | Kotlin | 0 | 0 | bb1cf83016ca1be00e5ce53ea5b8acd71bbbdf13 | 234 | OCS | The Unlicense |
kxandroid-support-v4/src/main/kotlin/com/taskworld/kxandroid/support/v4/FragmentActivities.kt | taskworld | 53,125,999 | false | null | package com.taskworld.kxandroid.support.v4
import android.support.v4.app.FragmentActivity
import android.support.v4.app.FragmentTransaction
fun FragmentActivity.kx_finishAfterTransition() {
if (KxVersion.LOLLIPOP) {
finishAfterTransition()
} else {
finish()
}
}
fun FragmentActivity.fragme... | 0 | null | 1 | 3 | 351fd42383d7ce483a9d07e4f5e1bca672841874 | 515 | KxAndroid | MIT License |
app/src/main/java/com/willjane/teabuddy/utils/Helpers.kt | williamxyshi | 225,246,935 | false | null | package com.willjane.teabuddy.utils
import android.content.Context
import android.hardware.display.DisplayManager
import android.util.DisplayMetrics
import android.widget.Toast
import com.willjane.teabuddy.TeaBuddyApplication
import kotlin.coroutines.coroutineContext
import kotlin.math.roundToInt
object Helpers {
... | 5 | Kotlin | 0 | 5 | 27ee335528ba11578af5643f935a767c4de7a85d | 1,264 | TeaBuddy | MIT License |
core/datastore/src/main/kotlin/ru/resodostudios/datastore/FlickPreferencesDataSource.kt | f33lnothin9 | 565,400,839 | false | null | package ru.resodostudios.datastore
import androidx.datastore.core.DataStore
import kotlinx.coroutines.flow.map
import ru.resodostudios.flick.core.datastore.DarkThemeConfigProto
import ru.resodostudios.flick.core.datastore.UserPreferences
import ru.resodostudios.flick.core.datastore.copy
import ru.resodostudios.flick.c... | 0 | null | 3 | 47 | 116f2456392c5546074c7a970d333a6ba94edf33 | 2,064 | flick | Apache License 2.0 |
ui/account/src/commonMain/kotlin/app/tivi/account/AccountComponent.kt | chrisbanes | 100,624,553 | false | null | // Copyright 2023, <NAME> and the Tivi project contributors
// SPDX-License-Identifier: Apache-2.0
package app.tivi.account
import app.tivi.inject.ActivityScope
import com.slack.circuit.runtime.presenter.Presenter
import com.slack.circuit.runtime.ui.Ui
import me.tatarka.inject.annotations.IntoSet
import me.tatarka.in... | 26 | null | 876 | 6,626 | e261ffbded01c1439b93c550cd6e714c13bb9192 | 634 | tivi | Apache License 2.0 |
src/main/kotlin/no/nav/hm/grunndata/db/supplier/Supplier.kt | navikt | 555,213,385 | false | {"Kotlin": 138983, "Dockerfile": 107, "Shell": 53} | package no.nav.hm.grunndata.db.supplier
import io.micronaut.data.annotation.Id
import io.micronaut.data.annotation.MappedEntity
import io.micronaut.data.annotation.TypeDef
import io.micronaut.data.model.DataType
import io.micronaut.data.runtime.criteria.update
import no.nav.hm.grunndata.db.HMDB
import no.nav.hm.grunnd... | 1 | Kotlin | 0 | 1 | 3d869f5537eb13af1a87992a0fc71e6cfd57b6e3 | 1,339 | hm-grunndata-db | MIT License |
core/src/commonMain/kotlin/com/erolc/mrouter/route/transform/share/NormalShareTransformWrap.kt | ErolC | 786,106,502 | false | {"Kotlin": 283488, "Swift": 1008} | package com.erolc.mrouter.route.transform.share
import androidx.compose.animation.core.FiniteAnimationSpec
import androidx.compose.foundation.gestures.Orientation
import androidx.compose.foundation.layout.Box
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.geom... | 0 | Kotlin | 0 | 3 | 6948878733c1866218ead13b6bb5b8e18dfaa0bf | 1,047 | MRouter | Apache License 2.0 |
libraries/apollo-normalized-cache-api/src/commonMain/kotlin/com/apollographql/apollo/cache/normalized/api/OperationCacheExtensions.kt | apollographql | 69,469,299 | false | {"Kotlin": 3463807, "Java": 198208, "CSS": 34435, "HTML": 5844, "JavaScript": 1191} | package com.apollographql.apollo.cache.normalized.api
import com.apollographql.apollo.annotations.ApolloInternal
import com.apollographql.apollo.api.Adapter
import com.apollographql.apollo.api.CustomScalarAdapters
import com.apollographql.apollo.api.Executable
import com.apollographql.apollo.api.Fragment
import com.ap... | 135 | Kotlin | 651 | 3,750 | 174cb227efe76672cf2beac1affc7054f6bb2892 | 4,338 | apollo-kotlin | MIT License |
app/src/main/java/com/example/migrationwithpaging/data/network/ApiRepository.kt | HariKulhari06 | 220,233,849 | false | null | package com.example.migrationwithpaging.data.network
import kotlinx.coroutines.Deferred
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import retrofit2.Response
/**
* @Details class for Repository
* @Author <NAME>
* @Date 03-Apr-2019
*/
object ApiRepo... | 0 | Kotlin | 1 | 6 | 480ae0567e4edbfec648e3022e24204bf5c6c623 | 1,099 | MigrationWithPaging | Apache License 2.0 |
html/src/main/kotlin/com/kokasai/flowerkt/html/meta.kt | sya-ri | 332,429,446 | false | {"Kotlin": 19921} | package com.kokasai.flowerkt.html
import kotlinx.html.HEAD
import kotlinx.html.meta
inline fun HEAD.meta(run: Meta.() -> Unit) = run.invoke(Meta(this))
class Meta(private val head: HEAD) {
var charset: String
get() = throw UnsupportedOperationException()
set(value) = head.meta(charset = value)
... | 0 | Kotlin | 0 | 0 | d33c315941912b791a65e35a4aaff14082cbd21d | 586 | FlowerKt | Apache License 2.0 |
common/src/commonMain/kotlin/pw/binom/builder/remote/dtoUtils.kt | caffeine-mgn | 196,877,393 | false | null | package pw.binom.builder.remote
fun BuildDescription.toProcess() = JobProcess(
buildNumber = buildNumber,
path = path
)
enum class JobStatusType {
PREPARE,
PROCESS,
FINISHED_OK,
FINISHED_ERROR,
CANCELED
}
val Event_TaskStatusChange.statusEnum
get() = JobStatusType.valueOf(stat... | 0 | Kotlin | 0 | 0 | 139606a956de5fc41b8cc92243e7e5905fa8b147 | 657 | Builder | Apache License 2.0 |
matugr/src/test/java/com/matugr/token_request/networking/OkHttpTokenNetworkingTest.kt | judegpinto | 453,862,040 | false | {"Kotlin": 146527} | /*
* Copyright 2022 The Matugr 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 applicable law or agreed ... | 0 | Kotlin | 0 | 3 | 5c229c475417d5ed8e92fcc385503fac2e3ee2bf | 5,339 | matugr | Apache License 2.0 |
src/apiMain/kotlin/com/example/plugins/SqlDelight.kt | yasuaki640 | 586,455,148 | false | null | package com.example.plugins
import com.example.Database
import com.squareup.sqldelight.db.SqlDriver
import com.squareup.sqldelight.drivers.native.NativeSqliteDriver
import io.ktor.server.application.*
fun Application.configureDatabase(): Database {
val driver: SqlDriver = NativeSqliteDriver(Database.Schema, "impr... | 0 | Kotlin | 0 | 0 | ecad63696fe256077c52bc33584b510b633cf343 | 362 | impressive-ktor-native-api | MIT License |
microstream-kodein/src/main/kotlin/be/rubus/kotlin/microstream/service/UserBookService.kt | rdebusscher | 574,523,783 | false | null | package be.rubus.kotlin.microstream.service
import be.rubus.kotlin.microstream.exception.types.BookAlreadyCreatedException
import be.rubus.kotlin.microstream.exception.types.BookEntityNotFoundException
import org.kodein.di.instance
class UserBookService : AbstractService() {
private val userService: UserService b... | 0 | Kotlin | 0 | 0 | e2ebc513ac3774c8b0e97f97f3c58d9a5a6613bf | 1,017 | kotlin-projects | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.