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/cn/neday/android/app/config/KoinConfig.kt | nEdAy | 491,729,187 | false | {"Kotlin": 59724, "Java": 3486} | package cn.neday.android.app.config
import android.app.Application
import cn.neday.android.app.di.repositoryModule
import cn.neday.android.app.di.viewModelModule
import cn.neday.android.business.di.httpClientModule
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
import or... | 0 | Kotlin | 0 | 2 | 99ccc39b6c9439f1cfc9ed223a25d3a26e651942 | 707 | android-application-with-kotlin-template | MIT License |
Music Wiki/MusicWiki/app/src/main/java/com/adityamshidlyali/musicwiki/view/activity/MainActivity.kt | AdityaShidlyali | 591,732,762 | false | null | package com.adityamshidlyali.musicwiki.view.activity
import android.content.Intent
import android.os.Bundle
import android.transition.AutoTransition
import android.transition.TransitionManager
import android.view.View
import android.widget.Toast
import androidx.activity.viewModels
import androidx.appcompat.app.AlertDi... | 0 | Kotlin | 0 | 0 | 8170c323fec9c628249b3b85999666a15bc415fa | 6,998 | MusicWiki_Assessment | MIT License |
src/test/kotlin/kotlinmud/action/impl/cast/CureSeriousTest.kt | danielmunro | 241,230,796 | false | null | package kotlinmud.action.impl.cast
import assertk.assertThat
import assertk.assertions.isEqualTo
import assertk.assertions.isGreaterThan
import kotlinmud.io.type.IOStatus
import kotlinmud.mob.skill.type.SkillType
import kotlinmud.test.helper.createTestService
import kotlinmud.test.helper.getIdentifyingWord
import org.... | 0 | Kotlin | 1 | 9 | b7ee0d21ae813990896b1b8c6703da9bd1f1fc5b | 1,729 | kotlinmud | MIT License |
app/src/main/java/com/begner/hdmivolumeosd/OSDStyles.kt | begner | 296,143,576 | false | null | package com.begner.hdmivolumeosd
abstract class OSDStyles {
lateinit var availableStyles : List<OSDStyle>
fun getByIndex(index: Int) : OSDStyle {
return availableStyles[index]
}
fun getIndexByKey(searchKey: String):Int {
return availableStyles.indexOfFirst { it.key == searchKey }
... | 0 | Kotlin | 0 | 0 | 6bbf75ce23d9539ba105326cc938a812d9e6dc06 | 713 | HDMIVolumeOSD | MIT License |
data/src/main/java/com/mcdenny/data/impl/RemoteRepositoryImpl.kt | OlukaDenis | 655,817,208 | false | null | package com.mcdenny.data.impl
import com.mcdenny.data.remote.mappers.WeatherRemoteMapper
import com.mcdenny.data.remote.services.ApiService
import com.mcdenny.domain.models.weather.WeatherDomainModel
import com.mcdenny.domain.repository.RemoteRepository
import javax.inject.Inject
class RemoteRepositoryImpl @Inject co... | 0 | Kotlin | 0 | 0 | cd5bdcd77a7f38be132a2fa785eaa70f0c57fdf2 | 1,108 | weatheapp-MADS04 | The Unlicense |
app/src/main/java/com/vvwxx/bangkit/restaurantapp/di/Injection.kt | AdnSmile | 639,550,491 | false | null | package com.vvwxx.bangkit.restaurantapp.di
import android.content.Context
import com.vvwxx.bangkit.restaurantapp.data.RestaurantRepository
import com.vvwxx.bangkit.restaurantapp.data.local.RestaurantDatabase
import com.vvwxx.bangkit.restaurantapp.data.remote.retrofit.ApiConfig
object Injection {
fun provideReposi... | 0 | Kotlin | 0 | 0 | 5260d3e502957874e346071d107d443cd6e69202 | 596 | restaurant-app | MIT License |
app/src/main/java/com/ozkan/weatherapp/presentation/main_screen/daily_weather_screen/PerDayWeatherDisplay.kt | ozkantuncel | 525,074,814 | false | {"Kotlin": 61118} | package com.ozkan.weatherapp.presentation.main_screen.daily_weather_screen
import androidx.compose.animation.animateContentSize
import androidx.compose.animation.core.LinearOutSlowInEasing
import androidx.compose.animation.core.tween
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.Im... | 0 | Kotlin | 0 | 3 | 356eaf7c25ae02017405c7a1bdb2efc8c33dc211 | 4,006 | WeatherApp-Jetpack-Compose | The Unlicense |
app/src/main/java/com/example/nhlstats/features/teams/domain/PositionType.kt | NoNews | 232,546,746 | false | null | package com.example.nhlstats.features.teams.domain
enum class PositionType {
FORWARD, GOALIE, DEFENSEMAN
} | 0 | Kotlin | 0 | 0 | 18f690067cef42cf29577aa691f47b0c77c9d67c | 111 | NHL | Apache License 2.0 |
vtp-pensjon-application/src/main/kotlin/no/nav/pensjon/vtp/auth/Utils.kt | navikt | 254,055,233 | false | {"Kotlin": 911727, "TypeScript": 78108, "JavaScript": 67530, "HTML": 1723, "Dockerfile": 494, "CSS": 366, "SCSS": 338} | package no.nav.pensjon.vtp.auth
import com.nimbusds.oauth2.sdk.ParseException
import com.nimbusds.oauth2.sdk.auth.PrivateKeyJWT
import java.nio.charset.StandardCharsets
import java.util.*
import java.util.Base64.getDecoder
fun getUser(authorization: String?): String? =
if (authorization?.lowercase(Locale.getDefau... | 6 | Kotlin | 0 | 1 | 32caad695463f5554e0acbdeb36c2e24be5eb105 | 785 | vtp-pensjon | MIT License |
core/common/src/main/kotlin/core/common/ListExt.kt | Kt-Kraft | 868,318,173 | false | {"Kotlin": 106999, "Shell": 3484} | package core.common
public fun <T> List<T>.rotate(distance: Int): List<T> {
val listSize = this.size
if (listSize == 0) return this
val normalizedDistance = (distance % listSize + listSize) % listSize
return this.drop(normalizedDistance) + this.take(normalizedDistance)
}
| 0 | Kotlin | 0 | 0 | 153bbc744f244b02001ae244924a6ef061bb2467 | 281 | easy-android | MIT License |
src/test/java/pl/edu/zut/mad/schedule/login/MessageProviderLoginTest.kt | MADWI | 85,480,616 | false | {"Kotlin": 123928} | package pl.edu.zut.mad.schedule.login
import okhttp3.ResponseBody
import org.assertj.core.api.Assertions.assertThat
import org.junit.Test
import pl.edu.zut.mad.schedule.R
import retrofit2.HttpException
import retrofit2.Response
import java.lang.Exception
@Suppress("IllegalIdentifier")
class MessageProviderLoginTest {... | 2 | Kotlin | 0 | 0 | ad79a44025399c11372630ba3041190f27fe904d | 1,707 | schedule | Apache License 2.0 |
src/main/java/net/dankrushen/tdhbot/commands/BaseCommand.kt | ButterscotchV | 184,464,770 | false | {"Kotlin": 54121} | package net.dankrushen.tdhbot.commands
import com.jagrosh.jdautilities.command.Command
import com.jagrosh.jdautilities.command.CommandEvent
import net.dankrushen.tdhbot.BotUtils
import net.dankrushen.tdhbot.TDHBot
abstract class BaseCommand(val tdhBot: TDHBot) : Command() {
companion object {
var errorNu... | 0 | Kotlin | 0 | 0 | 4dd9b5c60c468259e273dbf8b76a437c551950b5 | 2,327 | tdhbot | MIT License |
imagego_picasso/src/main/java/com/fungo/imagego/picasso/transform/CircleTransformation.kt | xintao222 | 232,958,313 | false | null | package com.fungo.imagego.picasso.transform
import android.graphics.*
import com.squareup.picasso.Transformation
/**
* @author Pinger
* @since 18-10-31 下午4:18
*
* Picasso 绘制圆形图片,并且可以绘制圆形边框,指定边框颜色
*
* @param borderColor 边框颜色
* @param borderWidth 边框宽度
*
*/
class CircleTransformation(private val borderWidth: I... | 0 | Kotlin | 1 | 0 | eca4f2c59c0e4a8bbc159d750168c3d694d4f351 | 1,862 | ImageGo | Apache License 2.0 |
lib/src/main/kotlin/com/github/mrbean355/dota2/json/transform/TeamDraftTransformer.kt | MrBean355 | 303,105,754 | false | null | /*
* Copyright 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | Kotlin | 0 | 6 | 59193d7f2a5b8566569fd83698f38f9410a54034 | 2,865 | dota2-gsi | Apache License 2.0 |
app/src/main/java/com/klamerek/fantasyrealms/screen/CustomActivity.kt | benjamin-klamerek | 291,635,739 | false | null | package com.klamerek.fantasyrealms.screen
import android.content.Context
import androidx.appcompat.app.AppCompatActivity
import com.klamerek.fantasyrealms.util.LocaleManager
abstract class CustomActivity : AppCompatActivity() {
override fun attachBaseContext(base: Context?) {
super.attachBaseContext(Loca... | 2 | Kotlin | 6 | 7 | 8c92031cfd21f357b36f9c408f26f9dbdcd8e654 | 384 | fantasy-realm-scoring | MIT License |
data/src/main/java/com/jyproject/data/features/seoulbike/SeoulBikeRepositoryImpl.kt | JunYeong0314 | 778,833,940 | false | {"Kotlin": 208970} | package com.jyproject.data.features.seoulbike
import com.jyproject.data.mappers.SeoulBikeMapper
import com.jyproject.data.remote.service.seoulbike.GetSeoulBikeInfoService
import com.jyproject.domain.features.seoulbike.SeoulBikeRepository
import com.jyproject.domain.models.SeoulBike
import javax.inject.Inject
class Se... | 0 | Kotlin | 0 | 0 | edb71cf4db51cee1593aa31c66c25d616492d24c | 809 | PlacePick | MIT License |
main/src/main/java/com/work/theIsle/app/BaseAppActivity.kt | Tiannuo | 498,562,269 | false | {"Kotlin": 218272, "Java": 43175} | package com.work.theIsle.app
import com.work.baselib.activity.BaseActivity
import com.work.theIsle.hilt.httpProcessor.IHttpProcessor
/**
* @Author TIKOU
* @Date 2022/7/16-19:47
* @Email <EMAIL> & <EMAIL>
* @Description
*/
abstract class BaseAppActivity : BaseActivity() {
public fun getBaseHttp(): IHttpProces... | 0 | Kotlin | 2 | 4 | bf02c12830d80c6bcf7441c50c3f685d322fdf53 | 382 | AndroidWork | Apache License 2.0 |
src/main/kotlin/com/foxentry/foxentrysdk/models/LocationGetRequest.kt | Foxentry | 830,077,226 | false | {"Kotlin": 442689} | /**
* Foxentry API reference
*
* The version of the OpenAPI document: 2.0 Contact: <EMAIL>
*
* NOTE: This file is auto generated. Do not edit the file manually.
*/
package com.foxentry.foxentrysdk.models
import com.fasterxml.jackson.annotation.JsonValue
import com.fasterxml.jackson.databind.annotation.JsonDeseri... | 0 | Kotlin | 0 | 0 | 8b215f6df68bd39c86ca0d44689e55704cc39457 | 2,512 | kotlin-sdk | MIT License |
app/src/main/java/com/smassive/stararchwars/infrastructure/StarArchWarsApplication.kt | SmasSive | 117,000,445 | false | null | package com.smassive.stararchwars.infrastructure
import android.app.Application
import android.content.Context
import android.os.StrictMode
import com.github.salomonbrys.kodein.Kodein
import com.github.salomonbrys.kodein.KodeinAware
import com.github.salomonbrys.kodein.android.autoAndroidModule
import com.github.salom... | 0 | Kotlin | 0 | 2 | 9a54d282005088eeabb8ca76203947c2b793a556 | 1,497 | star-arch-wars | Apache License 2.0 |
library/src/main/java/com/luckyhan/studio/mokaeditor/UpdateSpan.kt | junhanRyu | 365,757,498 | false | {"Kotlin": 54117} | package com.luckyhan.studio.mokaeditor
import android.text.TextPaint
import android.text.style.MetricAffectingSpan
class UpdateSpan : MetricAffectingSpan() {
override fun updateDrawState(tp: TextPaint?) {
}
override fun updateMeasureState(textPaint: TextPaint) {
}
} | 1 | Kotlin | 0 | 4 | 64baa5e0561e06a47ca2806abeb3f6f145609929 | 287 | MokaEditor | Apache License 2.0 |
src/main/kotlin/ru/zahara/cookielib/other/WorldUtils.kt | GoogeTan | 398,628,946 | false | null | @file:JvmName("WorldUtils")
package ru.zahara.cookielib.other
import net.minecraft.block.Block
import net.minecraft.block.BlockState
import net.minecraft.client.Minecraft
import net.minecraft.client.entity.player.ClientPlayerEntity
import net.minecraft.client.world.ClientWorld
import net.minecraft.entity.Entity
import... | 0 | Kotlin | 0 | 0 | 4b85acb31ec3985403f9677986cb484ac1e07001 | 6,522 | CookieLib | MIT License |
domain/src/main/java/com/ps/domain/utils/Result.kt | satyamgarg | 709,651,406 | false | {"Kotlin": 69827, "Java": 47915} | package com.ps.domain.utils
sealed interface Result<T> {
data class Success<T>(val data: T) : Result<T>
data class Error<T>(val errorMessage: String) : Result<T>
data class Exception<T>(val throwable: Throwable) :
Result<T>
}
| 0 | Kotlin | 0 | 0 | c3f26dbb729ae89a51dc3f498ef1bb65692cddb0 | 247 | ps-movie-app | MIT License |
SceytChatUiKit/src/main/java/com/sceyt/sceytchatuikit/presentation/uicomponents/mediaview/videoview/scalableVideoView/ScaleManager.kt | sceyt | 549,073,085 | false | null | package com.sceyt.sceytchatuikit.presentation.uicomponents.mediaview.videoview.scalableVideoView
import android.graphics.Matrix
class ScaleManager(private val mViewSize: Size, private val mVideoSize: Size) {
fun getScaleMatrix(scalableType: ScalableType?): Matrix? {
return when (scalableType) {
... | 0 | Kotlin | 0 | 0 | 0b135841180b7c4fdd66b1b0f7655d8d79fe8a03 | 6,289 | sceyt-chat-android-uikit | MIT License |
app/src/main/java/com/sebastijanzindl/galore/presentation/screens/forgotPassword/ForgotPasswordScreenViewModel.kt | m1thrandir225 | 743,270,603 | false | {"Kotlin": 400176} | package com.sebastijanzindl.galore.presentation.screens.forgotPassword
import android.util.Log
import androidx.compose.material3.SnackbarDuration
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.sebastijanzindl.galore.presentation.component.SnackbarMessage
import dagger.hilt.andr... | 0 | Kotlin | 0 | 0 | f578b800dbc6be3ab7421662176d8f4b7d652c03 | 2,169 | galore-android | MIT License |
plantcare/src/test/kotlin/com/projects/plantcare/PlantcareApplicationTests.kt | GhadgePrachi | 610,027,176 | false | null | package com.projects.plantcare
import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest
@SpringBootTest
class PlantcareApplicationTests {
@Test
fun contextLoads() {
}
}
| 0 | Kotlin | 0 | 0 | 8d6fe7f346aba977e03b875f968d79a1d282ba80 | 213 | Backend-GRPC-MicroServices | Apache License 2.0 |
src/main/kotlin/br/com/zup/edu/pix/novachave/TipoDeChave.kt | caiorodrigueszup | 385,247,255 | true | {"Kotlin": 70251} | package br.com.zup.edu.pix.novachave
import org.hibernate.validator.internal.constraintvalidators.hv.EmailValidator
import org.hibernate.validator.internal.constraintvalidators.hv.br.CPFValidator
enum class TipoDeChave {
CPF {
override fun valida(chave: String?): Boolean {
if (chave.isNullOrBl... | 0 | Kotlin | 0 | 0 | b5adb6b86b19cd7347b91f7cdc231e3961e48f64 | 1,297 | orange-talents-05-template-pix-keymanager-grpc | Apache License 2.0 |
libs/imageLoader/src/main/java/top/sunhy/image/progress/OnProgressListener.kt | RDSunhy | 421,280,382 | false | null | package top.sunhy.image.progress
//interface OnProgressListener {
// fun onProgress(isComplete: Boolean, percentage: Int, bytesRead: Long, totalBytes: Long)
//}
//给函数起别名 便于调用和书写
typealias OnProgressListener = ((isComplete: Boolean, percentage: Int, bytesRead: Long, totalBytes: Long) -> Unit)? | 0 | Kotlin | 0 | 0 | ff8d615fceeb21169caba21df32e120e2ac783f6 | 299 | android-component | Apache License 2.0 |
feature/settings/src/test/kotlin/com/lolo/io/onelist/feature/settings/fragment/SettingsFragmentViewModelTest.kt | lolo-io | 198,519,184 | false | {"Kotlin": 363415, "Roff": 549} | package com.lolo.io.onelist.feature.settings.fragment
import android.net.Uri
import com.lolo.io.onelist.core.testing.fake.FakeOneListRepository
import com.lolo.io.onelist.core.testing.fake.FakeSharedPreferenceHelper
import com.lolo.io.onelist.core.testing.fake.FakeUseCases
import com.lolo.io.onelist.core.testing.rules... | 14 | Kotlin | 26 | 92 | ca7df6ec46344bde7c5e357d0784ecdfdecbb78e | 3,685 | OneList | MIT License |
platform/src/main/kotlin/researchstack/backend/adapter/outgoing/mongo/task/UpdateTaskSpecMongoAdapter.kt | S-ResearchStack | 520,365,362 | false | {"Kotlin": 1297198, "Dockerfile": 202, "Shell": 59} | package researchstack.backend.adapter.outgoing.mongo.task
import kotlinx.coroutines.reactor.awaitSingle
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
import org.springframework.dao.DuplicateKeyException
import org.springframework.stereotype.Component
import researchstack.backend.adapter... | 1 | Kotlin | 9 | 29 | 214dc84476e2de6948c3fc5225cebca0707bfb91 | 1,272 | backend-system | Apache License 2.0 |
features/characters/src/main/java/com/developersancho/characters/detail/CharacterDetailContract.kt | developersancho | 454,045,719 | false | {"Kotlin": 643302} | package com.developersancho.characters.detail
import com.developersancho.model.dto.character.CharacterDto
data class CharacterDetailViewState(
val character: CharacterDto? = null
)
sealed class CharacterDetailEvent {
data class LoadDetail(val id: Int) : CharacterDetailEvent()
} | 1 | Kotlin | 33 | 236 | 53d96f038e70712387f26a0099949c26a2aa2311 | 289 | JetRorty.Android | Apache License 2.0 |
src/aoc23/Day05.kt | mihassan | 575,356,150 | false | {"Kotlin": 112702} | @file:Suppress("PackageDirectoryMismatch")
package aoc23.day05
import kotlin.math.max
import kotlin.math.min
import lib.Collections.headTail
import lib.Solution
import lib.Strings.extractLongs
import lib.Strings.longs
enum class Category {
SEED, SOIL, FERTILIZER, WATER, LIGHT, TEMPERATURE, HUMIDITY, LOCATION;
c... | 0 | Kotlin | 0 | 0 | 8b73716ecede41f5d908f303d34cbe63871aa608 | 4,535 | aoc-kotlin | Apache License 2.0 |
app/src/main/java/org/mightyfrog/android/s4fd/settings/SettingsComponent.kt | dena-appleseed | 85,302,865 | true | {"Kotlin": 121067, "Java": 54160} | package org.mightyfrog.android.s4fd.settings
import dagger.Component
import org.mightyfrog.android.s4fd.AppComponent
import org.mightyfrog.android.s4fd.util.ActivityScope
/**
* @author <NAME>
*/
@ActivityScope
@Component(dependencies = arrayOf(AppComponent::class), modules = arrayOf(SettingsModule::class))
interfac... | 0 | Kotlin | 0 | 0 | 99527af4124c33e3599160e5311da6dc9e32ad60 | 387 | S4FD | Apache License 2.0 |
app/src/main/java/com/example/taxiservice/ViewModelWithSharedPReferenceFactory.kt | NovikFeed | 744,641,153 | false | {"Kotlin": 120000} | package com.example.taxiservice
import android.app.Application
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
class ViewModelWithSharedPReferenceFactory(private val application: Application,
private val sharedPreference : SharedPreferenceMana... | 0 | Kotlin | 0 | 0 | 2a1f818de8a4b5740eafa27dbd220dad5fcc4b8d | 775 | taxi-service | MIT License |
android/app/src/main/java/cloud/multipos/pos/models/Employee.kt | multipos-app | 773,180,579 | false | {"Kotlin": 548453, "Java": 306036} | /**
* Copyright (C) 2023 multiPOS, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 0 | Kotlin | 1 | 7 | 119bb0c86a5f9589e0219249b02f0f56d43120f7 | 2,128 | pos | Apache License 2.0 |
app/src/main/java/net/omisoft/aborovskoy/umoriliviper/ui/main/di/MainModule.kt | OmiSoftNet | 181,910,936 | false | {"Kotlin": 21904} | package net.omisoft.aborovskoy.umoriliviper.ui.main.di
import dagger.Module
import dagger.Provides
import net.omisoft.aborovskoy.umoriliviper.app.di.ActivityScope
import net.omisoft.aborovskoy.umoriliviper.ui.main.*
import net.omisoft.aborovskoy.umoriliviper.ui.main.api.MainApi
import net.omisoft.aborovskoy.umorilivip... | 0 | Kotlin | 20 | 38 | a3ba3d8802343a79ddfaa8761af6a7b9a9f5b01c | 955 | android-viper-template | MIT License |
utils/math/src/test/kotlin/io/bluetape4k/math/interpolation/LinearInterpolatorTest.kt | debop | 625,161,599 | false | {"Kotlin": 7504333, "HTML": 502995, "Java": 2273, "JavaScript": 1351, "Shell": 1301, "CSS": 444, "Dockerfile": 121, "Mustache": 82} | package io.bluetape4k.math.interpolation
class LinearInterpolatorTest: AbstractInterpolationTest() {
override val interpolator: Interpolator = LinearInterpolator()
}
| 0 | Kotlin | 0 | 1 | ce3da5b6bddadd29271303840d334b71db7766d2 | 173 | bluetape4k | MIT License |
app/src/main/java/com/jiahaoliuliu/androidmvvmsample/di/component/PresentationComponent.kt | jiahaoliuliu | 738,095,866 | false | {"Kotlin": 23914} | package com.jiahaoliuliu.androidmvvmsample.di.component
import com.jiahaoliuliu.androidmvvmsample.di.ActivityScope
import com.jiahaoliuliu.androidmvvmsample.di.module.PresentationModule
import com.jiahaoliuliu.androidmvvmsample.presentation.main.view.TopHeadlineActivity
import dagger.Component
@ActivityScope
@Compone... | 0 | Kotlin | 0 | 1 | b317e01a2993c334827c82708fdedcf7fb9838af | 490 | AndroidMVVMSample | Apache License 2.0 |
src/main/kotlin/org/emgen/extensions/CharExtensions.kt | emilancius | 234,365,097 | false | null | package org.emgen.extensions
import org.emgen.Operator
object CharExtensions {
fun Char.operator(): Boolean = this in Operator.values().map { it.value }
fun Char.toOperator(): Operator =
if (this.operator()) {
Operator.values().find { it.value == this }!!
} else {
thr... | 1 | Kotlin | 2 | 0 | f73f335268f6cc41f6ccb18c69036081514c3aa5 | 349 | sono-core | MIT License |
app/src/main/java/com/liuyuchuan/easymusic/utils/ToastExt.kt | SirLYC | 133,898,818 | false | {"Kotlin": 135440} | package com.liuyuchuan.easymusic.utils
import android.app.Activity
import android.support.annotation.StringRes
import android.support.v4.app.Fragment
import android.widget.Toast
/**
* Created by Liu Yuchuan on 2018/5/2.
*/
fun Activity.toast(msg: String) {
Toast.makeText(this, msg, Toast.LENGTH_SHORT).show()
}
... | 0 | Kotlin | 0 | 2 | bfa45de49d2ab6d26b29afa0d1fbd87b6ca1cc1f | 1,066 | EasyMusic | Apache License 2.0 |
definitions-ecs/src/testFixtures/kotlin/fledware/ecs/definitions/test/EntityTest.kt | fledware | 408,627,203 | false | null | package fledware.ecs.definitions.test
import fledware.definitions.DefinitionException
import fledware.definitions.util.DefinitionReflectionException
import fledware.definitions.util.ReflectCallerState
import fledware.definitions.util.safeGet
import fledware.ecs.definitions.entityDefinitions
import fledware.ecs.definit... | 3 | Kotlin | 0 | 0 | 1d3d0fcc0ad64ae0960be14bc38aa1600b6aea49 | 4,110 | FledDefs | Apache License 2.0 |
app/src/main/java/com/expensify/budgettracker/BudgetDatabse.kt | Iksudha | 546,746,988 | false | {"Kotlin": 107004} | package com.expensify.budgettracker
import androidx.room.Database
import androidx.room.RoomDatabase
@Database(entities = arrayOf(BudgetModel::class), version = 1)
abstract class BudgetDatabse: RoomDatabase() {
abstract fun budgetdao(): BudgetDao
} | 0 | Kotlin | 0 | 0 | f97ada4d19c9490c27ab58468f35cb4be91ef1ce | 255 | Budget_Tracker | MIT License |
feature/rss/src/main/java/zaitsev/a/d/mirea/rss/service/AstroBeneNewsService.kt | Anton-Zaitsev | 816,037,410 | false | {"Gradle Kotlin DSL": 12, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 11, "Batchfile": 1, "Git Attributes": 1, "Markdown": 1, "Kotlin": 256, "TOML": 1, "CMake": 2, "C++": 8, "Proguard": 11, "XML": 36, "INI": 4, "Java": 3} | package zaitsev.a.d.mirea.rss.service
import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.http.GET
interface AstroBeneNewsService {
@GET("/Astrobene")
fun getNewsDefault(): Call<ResponseBody>
} | 0 | Java | 0 | 0 | 08623c8850b0b301c7af9c7961d6436988f6d1a3 | 218 | AI-News | MIT License |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/RegisTeleOp.kt | jalvarez5625 | 408,566,065 | false | {"Java": 40226, "Kotlin": 4944} | package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.DcMotorController;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
@TeleOp(name="RegisTeleOp", group="Linear Opmode")
publ... | 1 | null | 1 | 1 | 9a7a77d89e12eaddb40ed82ac18795843b83c0fa | 2,235 | 2021-2022_Regis_FTC_code | MIT License |
core/database/src/commonMain/kotlin/com/cdcoding/database/mapper/AssembleAssetInfoMapper.kt | Christophe-DC | 822,562,468 | false | {"Kotlin": 728291, "Ruby": 4739, "Swift": 617} | package com.cdcoding.database.mapper
import com.cdcoding.common.utils.toAssetId
import com.cdcoding.database.db.model.asExternal
import com.cdcoding.local.db.AssembleAssetInfo
import com.cdcoding.model.Account
import com.cdcoding.model.Asset
import com.cdcoding.model.AssetInfo
import com.cdcoding.model.AssetMetaData
i... | 0 | Kotlin | 0 | 0 | 8519d210188c7403340442e8249ffb2879e7d7a0 | 3,157 | secureWallet | Apache License 2.0 |
app/src/main/java/gsrv/klassenplaner/ui/addedit/base/BaseAddEditViewModel.kt | jonas-haeusler | 207,426,160 | false | null | package gsrv.klassenplaner.ui.addedit.base
import androidx.annotation.StringRes
import androidx.lifecycle.LiveData
import androidx.lifecycle.MediatorLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import gsrv.klassenplaner.R
import gsrv.klassenplaner.data.Result
import gsrv.klasse... | 0 | Kotlin | 0 | 0 | 562394d80f0c6e037c010949229d4719de0683cc | 6,831 | klassenplaner | Apache License 2.0 |
app/src/main/java/com/vrajdesai78/GroceryStore/ui/explore/ExploreFragment.kt | vrajdesai78 | 491,003,106 | false | null | package com.vrajdesai78.GroceryStore.ui.explore
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.widget.SearchView
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.GridLayoutManager
import com.vrajdesai78.GroceryStore.R
... | 0 | Kotlin | 0 | 2 | 594a81dcb226c0cf4aab8ef170c396609fa167f7 | 2,962 | Grocery-Store-Alan | Apache License 2.0 |
app/src/main/java/com/kilomobi/cosmo/data/BluetoothRepository.kt | fkistner-dev | 751,512,153 | false | {"Kotlin": 51531} | package com.kilomobi.cosmo.data
import android.bluetooth.BluetoothDevice
import com.kilomobi.cosmo.domain.BluetoothScanner
import javax.inject.Inject
interface BluetoothRepository {
suspend fun startBluetoothScan(): List<BluetoothDevice>
suspend fun stopBluetoothScan()
}
class BluetoothRepositoryImpl @Inject... | 0 | Kotlin | 0 | 0 | 3bb21657b0e6ab02a797d4f6b8a436111a59cd16 | 625 | cosmo-android | MIT License |
app/src/main/java/com/asgatech/networklib/constants/AppConstants.kt | asgatech20 | 416,731,557 | false | {"Kotlin": 19957} | package com.asgatech.networklib.constants
/**
* @Author: <NAME>
* @Date: 10/13/2021
* @Date: <EMAIL>
*/
object AppConstants {
var BASE_URL="https://jsonplaceholder.typicode.com/"
} | 0 | Kotlin | 0 | 0 | bd54a9e4fbdbea7f7056a6882491958f2f3e6291 | 189 | NetworkLib | Apache License 2.0 |
kotlin-mui/src/main/generated/mui/material/Tooltip.ext.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
package mui.material
@Suppress("NAME_CONTAINS_ILLEGAL_CHARS")
// language=JavaScript
@JsName("""(/*union*/{bottomEnd: 'bottom-end', bottomStart: 'bottom-start', bottom: 'bottom', leftEnd: 'left-end', leftStart: 'left-start', left: 'left', rightEnd: 'right-end', rightStart: ... | 10 | Kotlin | 145 | 983 | 7ef1028ba3e0982dc93edcdfa6ee1edb334ddf35 | 625 | kotlin-wrappers | Apache License 2.0 |
feature-wallet-impl/src/main/java/jp/co/soramitsu/wallet/impl/domain/beacon/SignableOperation.kt | soramitsu | 278,060,397 | false | {"Kotlin": 5738459, "Java": 18796} | package jp.co.soramitsu.wallet.impl.domain.beacon
import java.math.BigInteger
interface WithAmount {
val amount: BigInteger
}
sealed class SignableOperation(
val module: String,
val call: String,
val args: Map<String, Any?>,
val rawData: String
) {
class Transfer(
module: String,
... | 15 | Kotlin | 30 | 89 | 1de6dfa7c77d4960eca2d215df2bdcf71a2ef5f2 | 716 | fearless-Android | Apache License 2.0 |
pickcore/src/main/kotlin/com/lovoo/android/pickcore/PickPicProvider.kt | lovoo | 224,686,577 | false | null | /**
* Copyright 2018 LOVOO 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 agreed to ... | 0 | Kotlin | 1 | 13 | 9b0d31c362e21ec44bce02d6c1d021da5076de80 | 3,422 | android-pickpic | Apache License 2.0 |
app/src/commonMain/kotlin/ir/ehsannarmani/compose_charts/ui/App.kt | ehsannarmani | 805,278,796 | false | {"Kotlin": 179380, "Swift": 587} | package ir.ehsannarmani.compose_charts.ui
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
... | 2 | Kotlin | 5 | 88 | 37e856ab418b2e0944cee70b6237efbdb746901b | 1,087 | ComposeCharts | Apache License 2.0 |
src/commonMain/kotlin/ksn/ui/SkiaDragStatus.kt | seisuke | 509,360,379 | false | {"Kotlin": 165567, "HTML": 268} | package ksn.ui
import androidx.compose.ui.geometry.Offset
data class SkiaDragStatus(
val start: Offset,
val end: Offset,
) {
companion object {
val Zero = SkiaDragStatus(
Offset.Zero,
Offset.Zero
)
}
}
| 0 | Kotlin | 0 | 4 | fe6480c744dabcdcf532d6733a089b500f229c80 | 261 | ksn-draw | Apache License 2.0 |
platform/src/main/kotlin/researchstack/backend/application/port/incoming/version/VersionResponse.kt | S-ResearchStack | 520,365,362 | false | {"Kotlin": 1297198, "Dockerfile": 202, "Shell": 59} | package researchstack.backend.application.port.incoming.version
data class VersionResponse(
val minimum: String,
val latest: String
)
| 1 | Kotlin | 9 | 29 | 214dc84476e2de6948c3fc5225cebca0707bfb91 | 143 | backend-system | Apache License 2.0 |
app/src/main/java/com/example/galleryapp_compose/ui/camera/CameraViewModel.kt | PauloSzT | 642,027,877 | false | null | package com.example.galleryapp_compose.ui.camera
import android.Manifest
import android.content.Context
import android.content.pm.PackageManager
import android.location.LocationManager
import android.net.Uri
import android.util.Log
import android.widget.Toast
import androidx.camera.core.ImageCapture
import androidx.ca... | 0 | Kotlin | 0 | 0 | ff0020fd13ce6382ebeae42afefb475c4fde4e23 | 2,808 | GalleryApp_compose_navigation | MIT License |
app/src/main/java/com/example/galleryapp_compose/ui/camera/CameraViewModel.kt | PauloSzT | 642,027,877 | false | null | package com.example.galleryapp_compose.ui.camera
import android.Manifest
import android.content.Context
import android.content.pm.PackageManager
import android.location.LocationManager
import android.net.Uri
import android.util.Log
import android.widget.Toast
import androidx.camera.core.ImageCapture
import androidx.ca... | 0 | Kotlin | 0 | 0 | ff0020fd13ce6382ebeae42afefb475c4fde4e23 | 2,808 | GalleryApp_compose_navigation | MIT License |
character_detail/src/main/java/com/ezike/tobenna/starwarssearch/character_detail/presentation/CharacterDetailViewIntentProcessor.kt | Ezike | 294,171,829 | false | null | package com.ezike.tobenna.starwarssearch.character_detail.presentation
import com.ezike.tobenna.starwarssearch.character_detail.mapper.CharacterDetailModelMapper
import com.ezike.tobenna.starwarssearch.character_detail.presentation.CharacterDetailViewResult.CharacterDetail
import com.ezike.tobenna.starwarssearch.chara... | 0 | Kotlin | 28 | 172 | 792caabf5a29b8bb4698c36c3257916a1cf6611d | 6,272 | StarWarsSearch-MVI | Apache License 2.0 |
sdk-lib/src/main/java/cash/z/ecc/android/sdk/internal/model/TransactionDataRequest.kt | Electric-Coin-Company | 151,763,639 | false | {"Kotlin": 1174854, "Rust": 121956} | package cash.z.ecc.android.sdk.internal.model
import cash.z.ecc.android.sdk.exception.SdkException
import cash.z.ecc.android.sdk.internal.ext.toHexReversed
import cash.z.ecc.android.sdk.model.BlockHeight
/**
* Serves as cross layer (Kotlin, Rust) communication class.
*/
sealed interface TransactionDataRequest {
... | 182 | Kotlin | 9 | 5 | 8893f83fd7dcaaca9d5e2633f5c8bebed84dba77 | 2,022 | zcash-android-wallet-sdk | MIT License |
src/main/kotlin/com/mvp/order/domain/service/admin/user/UserAdminServiceImpl.kt | lfneves | 729,675,910 | false | {"Kotlin": 155323, "Gherkin": 5931, "Dockerfile": 153} | package com.mvp.order.domain.service.admin.user
import com.mvp.order.domain.model.auth.RemoveUserDTO
import com.mvp.order.domain.model.exception.Exceptions
import com.mvp.order.domain.model.user.admin.UserAdminResponseDTO
import com.mvp.order.infrastruture.entity.user.UserEntity
import com.mvp.order.infrastruture.repo... | 0 | Kotlin | 0 | 0 | 9de7cd13d01c6e93e8f5df28b0805048c7dd324c | 2,625 | tech-challenge-order | MIT License |
oldAndroidProjects/More Projects/NewPractice/KMP/Multi-Theme/composeApp/src/commonMain/kotlin/theme/color_palettes/OrangeColorBase.kt | shivathapaa | 800,628,391 | false | {"Kotlin": 3491940, "Shell": 2341, "Swift": 621} | package theme.color_palettes
import androidx.compose.ui.graphics.Color
import theme.MaterialThemeColorsPalette
object OrangeColorBase : MaterialThemeColorsPalette {
override val primaryLight:Color = Color(0xFF914C00)
override val onPrimaryLight:Color = Color(0xFFFFFFFF)
override val primaryContainerLight:... | 0 | Kotlin | 0 | 0 | c32fbea3c5dd8ee9c1286d30528f7daeabb2b190 | 4,494 | Android-Practice-Projects | The Unlicense |
app/src/main/java/dev/jahidhasanco/fliq/di/AppModule.kt | JahidHasanCO | 405,033,258 | false | {"Kotlin": 72063} | package dev.jahidhasanco.fliq.di
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import dev.jahidhasanco.fliq.data.network.ApiService
import dev.jahidhasanco.fliq.data.network.BASE_URL
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggi... | 2 | Kotlin | 4 | 19 | e08959114ace3d85c8454cfc56e086a23b35857f | 1,402 | Fliq.-The-Movie-DB | MIT License |
app/src/main/java/com/revolgenx/anilib/user/viewmodel/UserStatsViewModel.kt | AniLibApp | 244,410,204 | false | {"Kotlin": 1593083, "Shell": 52} | package com.revolgenx.anilib.user.viewmodel
import com.revolgenx.anilib.user.data.field.UserStatsField
import com.revolgenx.anilib.user.service.UserStatsService
import com.revolgenx.anilib.infrastructure.source.stats.UserStatsSource
import com.revolgenx.anilib.common.viewmodel.SourceViewModel
open class UserStatsView... | 36 | Kotlin | 3 | 76 | b3caec5c00779c878e4cf22fb7d2034aefbeee54 | 656 | AniLib | Apache License 2.0 |
app/src/main/java/com/zzr/jetpacktest/kotlin_test/CollectionDemo.kt | zrzhong | 288,220,143 | false | null | package com.zzr.jetpacktest.kotlin_test
/**
* @Author zzr
* @Desc
* @Date 2020/9/30
*/
fun main() {
// listTest()
sequenceTest()
val list = 5
for (i in 0 until list){
}
}
fun listTest() {
val list = listOf(1, 2, 3, 4, 5, 6)
val result = list
.map {
println("In Map $... | 1 | null | 1 | 1 | 7765544fd6df3d615dadbe03f7df1daaac7aa1ab | 747 | JetpackTest | Apache License 2.0 |
presentation/src/main/java/com/pp/jetweatherfy/presentation/utils/Constants.kt | pauloaapereira | 348,738,402 | false | null | /*
* Copyright 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 0 | Kotlin | 18 | 155 | fcf55a107586de46a081d8e692c0f3722f4bc3d8 | 970 | AndroidDevChallenge_Week4_JetWeatherfy | Apache License 2.0 |
app/src/main/java/com/vn/ntesco/model/CheckListModel.kt | hoaphanit | 296,677,787 | false | {"Java": 4293900, "Kotlin": 611527, "Assembly": 1013, "Rich Text Format": 402} | package com.vn.ntesco.model
import com.google.gson.annotations.SerializedName
data class CheckListModel(
@SerializedName("attributes")
var attributesList: List<String> = listOf(),
@SerializedName("children")
var childrenList: MutableList<MutableList<String>> = mutableListOf(),
... | 1 | null | 1 | 1 | bf0a47a50eeb3d7113586417e07e7729fc1bb521 | 759 | ntesco.android.github | Apache License 2.0 |
features/dialogs/src/main/java/com/ribsky/dialogs/connection/CheckConnectionDialog.kt | nexy791 | 607,748,138 | false | null | package com.ribsky.dialogs.connection
import android.annotation.SuppressLint
import androidx.core.os.bundleOf
import androidx.fragment.app.setFragmentResult
import com.ribsky.common.base.BaseSheet
import com.ribsky.dialogs.databinding.DialogCheckConnectionBinding
import com.ribsky.navigation.features.DialogsNavigation... | 0 | Kotlin | 0 | 7 | d2e9f7c04635e1793bfe8f421b4bc5ef162556c0 | 768 | dymka | Apache License 2.0 |
app/src/main/java/com/recrsn/cardtrack/repositories/CardRepository.kt | recrsn | 293,649,383 | false | null | package com.recrsn.cardtrack.repositories
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import com.recrsn.cardtrack.models.Card
import com.recrsn.cardtrack.models.CardType
@Dao
interface CardRepository {
@Query("SELECT * FROM card ORDER BY ident... | 1 | Kotlin | 0 | 0 | e10be20103283f1b38918abd22f03db4265ffa25 | 723 | card-track | Apache License 2.0 |
api-client/src/test/java/com/kshitijpatil/tazabazar/api/TestProductApi.kt | Kshitij09 | 395,308,440 | false | null | package com.kshitijpatil.tazabazar.api
import com.google.common.truth.Truth.assertThat
import kotlinx.coroutines.runBlocking
import okhttp3.OkHttpClient
import org.junit.Test
import java.net.HttpURLConnection
class TestProductApi {
private val client = OkHttpClient.Builder().build()
private val api = ApiModul... | 8 | Kotlin | 2 | 1 | d709b26d69cf46c3d6123a217190f098b79a6562 | 1,424 | TazaBazar | Apache License 2.0 |
app/src/main/java/com/carterchen247/alarmscheduler/demo/log/LogItem.kt | CarterChen247 | 245,651,581 | false | null | package com.carterchen247.alarmscheduler.demo.log
data class LogItem(
val msg: String,
val time: String
) | 1 | Kotlin | 0 | 6 | 669bfcbffddcf3596aad6d8e2b1c00197ac9f87b | 114 | AlarmScheduler | The Unlicense |
core/src/main/kotlin/me/kcra/takenaka/core/mapping/resolve/MappingResolver.kt | zlataovce | 596,960,001 | false | null | /*
* This file is part of takenaka, licensed under the Apache License, Version 2.0 (the "License").
*
* Copyright (c) 2023 <NAME>
*
* 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... | 5 | Kotlin | 0 | 8 | bf716f44463c88d9079e2a3296ca07593d8da692 | 1,436 | takenaka | Apache License 2.0 |
app/src/main/java/com/tomclaw/nimpas/screen/book/list/BookListInteractor.kt | solkin | 148,905,097 | false | null | package com.tomclaw.nimpas.screen.book.list
import com.tomclaw.nimpas.storage.Book
import com.tomclaw.nimpas.storage.Shelf
import com.tomclaw.nimpas.util.SchedulersFactory
import io.reactivex.Completable
import io.reactivex.Observable
interface BookListInteractor {
fun listBooks(): Observable<Map<String, Book>>
... | 1 | null | 1 | 2 | 778898001880685b2beb93e386f652e4e984d2c3 | 834 | nimpas-android | MIT License |
src/main/kotlin/se/brainleech/adventofcode/aoc2015/Aoc2015Day03.kt | fwangel | 435,571,075 | false | null | package se.brainleech.adventofcode.aoc2015
import se.brainleech.adventofcode.compute
import se.brainleech.adventofcode.readText
import se.brainleech.adventofcode.verify
class Aoc2015Day03 {
data class Position(val x: Int, val y: Int) {
fun move(direction: Char): Position {
return when (directi... | 0 | Kotlin | 0 | 0 | 0bba96129354c124aa15e9041f7b5ad68adc662b | 1,867 | adventofcode | MIT License |
src/main/java/me/han/muffin/client/event/events/client/PostMoveEvent.kt | SmallFishDD | 425,272,585 | false | {"Kotlin": 1725682, "Java": 943392, "GLSL": 15937} | package me.han.muffin.client.event.events.client
class PostMoveEvent | 1 | Kotlin | 2 | 2 | 13235eada9edd9ccca039dea4d3a59cc7a930830 | 69 | muffin-0.10.4-src-leaked | MIT License |
app/src/androidTest/java/com/mub/almostaferandroidtask/features/home/viewmodel/HomeViewModelTest.kt | ahmedMubarak2024 | 645,084,909 | false | null | package com.mub.almostaferandroidtask.features.home.viewmodel
import androidx.paging.AsyncPagingDataDiffer
import com.mub.almostaferandroidtask.helper.BaseRoomTest
import com.mub.almostaferandroidtask.helper.TestDiffCallback
import com.mub.almostaferandroidtask.helper.TestListCallback
import com.mub.almostaferandroidt... | 0 | Kotlin | 0 | 0 | 9fe719552d26e3e2c6d1a1da3a95de82307f2f4e | 6,731 | AlMostaferAndroidTask | Apache License 2.0 |
kotlin-spring-boot/src/main/kotlin/x/domainpersistencemodeling/DemoApplication.kt | binkley | 227,846,529 | false | null | package x.domainpersistencemodeling
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
@SpringBootApplication
// TODO: Why doesn't Spring plugin for Kotlin make this `open`?
class DemoApplication
fun main(args: Array<String>) {
runApplication<DemoAp... | 1 | null | 1 | 1 | 22dc7763ef1cffb63ffb0f18f7bbe5f6fb975b4e | 340 | domain-persistence-modeling | The Unlicense |
app/src/main/java/com/lahsuak/apps/tasks/ui/widget/TaskWidgetCompose.kt | KaushalVasava | 506,109,776 | false | null | package com.lahsuak.apps.tasks.ui.widget
import android.app.PendingIntent
import android.app.TaskStackBuilder
import android.content.Context
import android.content.Intent
import android.content.Intent.FLAG_ACTIVITY_NEW_TASK
import android.os.Build
import androidx.compose.ui.res.stringResource
import androidx.compose.u... | 1 | null | 5 | 30 | 49e024e90b1f58612e174336983c0e304afd647f | 3,073 | Tasks | Apache License 2.0 |
idea/testData/refactoring/copy/copyWithImportInsertion/before/foo/Foo.kt | JakeWharton | 99,388,807 | false | null | package foo
import bar.bar
class <caret>Foo {
init {
42.bar()
}
}
class Baz {
}
| 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 99 | kotlin | Apache License 2.0 |
app/src/test/java/com/example/basearch/UserDaoTest.kt | carlosalexandre3107 | 240,369,695 | true | {"Kotlin": 52263} | package com.example.basearch
import junit.framework.Assert.assertEquals
import kotlinx.coroutines.runBlocking
import org.junit.Test
class UserDaoTest {
@Test
fun insertAndGetUser() = runBlocking {
// // Given a User that has been inserted into the DB
// userDao.insertUser(user)
//
// // W... | 0 | null | 0 | 0 | f6b54c2269d8ead03765776d6ad9d0bdc16a991b | 531 | android-base-architecture | MIT License |
vector/src/main/java/im/vector/app/features/analytics/plan/CreatedRoom.kt | tchapgouv | 340,329,238 | false | null | /*
* Copyright (c) 2021 New Vector Ltd
*
* 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 agr... | 4 | null | 6 | 9 | 5aa86fe9d36ad8087f289152d5e718fdfad65a2c | 1,233 | tchap-android | Apache License 2.0 |
domain/src/main/java/com/mctech/stocktradetracking/domain/stock_share/interaction/strategies/ComputeBalanceStrategy.kt | Martins-Iroka | 268,206,701 | true | {"Kotlin": 273800} | package com.mctech.stocktradetracking.domain.stock_share.interaction.strategies
import com.mctech.stocktradetracking.domain.stock_share.entity.StockShare
import com.mctech.stocktradetracking.domain.stock_share.entity.StockShareFinalBalance
interface ComputeBalanceStrategy {
fun execute(stockShareList: List<StockS... | 0 | null | 0 | 0 | 2a21fd6eaff708de721eeafb189d1bee916cd721 | 352 | StockTradeTracking | Apache License 2.0 |
app/src/main/java/com/bluerayfsm/features/dailyPlan/model/AllPlanListResponseModel.kt | DebashisINT | 772,059,684 | false | {"Kotlin": 14146263, "Java": 1002625} | package com.bluerayfsm.features.dailyPlan.model
import com.bluerayfsm.base.BaseResponse
import java.io.Serializable
/**
* Created by Saikat on 03-01-2020.
*/
class AllPlanListResponseModel : BaseResponse(), Serializable {
var plan_data: ArrayList<AllPlanListDataModel>? = null
} | 0 | Kotlin | 0 | 0 | 875bc5a3927897d1daa465a4f122c35df513a7ec | 286 | BluerayFSM | Apache License 2.0 |
app/src/main/java/com/learning/photoshow/core/viewmodels/SplashViewModel.kt | ramzyhassan44 | 358,888,621 | false | null | package com.learning.photoshow.core.viewmodels
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.learning.photoshow.core.routers.MAIN_SCREEN_ROUTER
import com.learning.photoshow.core.routers.Router
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
class SplashViewM... | 0 | Kotlin | 0 | 0 | 93004bd8e795235985180a8f0e92d5886065a4b7 | 525 | photos-show | Apache License 2.0 |
app/src/main/java/com/mashaktifoodfsm/features/weather/api/WeatherRepo.kt | DebashisINT | 515,081,791 | false | {"Kotlin": 13505104, "Java": 994492} | package com.mashaktifoodfsm.features.weather.api
import com.mashaktifoodfsm.base.BaseResponse
import com.mashaktifoodfsm.features.task.api.TaskApi
import com.mashaktifoodfsm.features.task.model.AddTaskInputModel
import com.mashaktifoodfsm.features.weather.model.ForeCastAPIResponse
import com.mashaktifoodfsm.features.w... | 0 | Kotlin | 0 | 0 | 4feb7a634cfdbaba5d8df8384d8b2d94f55886c9 | 700 | MashaktiFood | Apache License 2.0 |
oauth2-webclient-sample/src/main/kotlin/net/medeiser/samples/oauth/secure/oauth2webclientsample/config/WebClientConfig.kt | medeiser | 270,338,040 | false | null | package net.medeiser.samples.oauth.secure.oauth2webclientsample.config
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.security.oauth2.client.ReactiveOAuth2AuthorizedClientManager
import org.springframework.security.oauth2.client... | 1 | Kotlin | 1 | 2 | 7642a41e95c68a8e3ab864a8e6714eeca9d685ec | 1,971 | kotlin-oauth2-services | MIT License |
monad-stack/src/main/java/com/github/jorgecastillo/kotlinandroid/presentation/navigation/Navigation.kt | yesitskev | 129,077,640 | true | {"Kotlin": 69704} | package com.github.jorgecastillo.kotlinandroid.presentation.navigation
import arrow.core.IdHK
import arrow.data.Reader
import arrow.data.map
import com.github.jorgecastillo.kotlinandroid.di.context.SuperHeroesContext.GetHeroesContext
import com.github.jorgecastillo.kotlinandroid.view.SuperHeroDetailActivity
class Her... | 0 | Kotlin | 0 | 0 | 4f76358f91c5d869ab7c40cdecfcdbccc46d28cb | 469 | ArrowAndroidSamples | Apache License 2.0 |
app/src/main/java/com/deanezra/network/model/PlantsResponse.kt | deanezra | 345,489,844 | false | null | package com.deanezra.network.model
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
// The Trefle plants api returns a list of plants in Json array called 'data',
// a links object (with urls) and a meta object (with a total counts of all plants).
// So we use this 'base' cl... | 0 | Kotlin | 0 | 0 | 15849d0ae698e508d58fa1fff13589a7b9efe7a1 | 725 | TreflePlantsAndroid | Apache License 2.0 |
app/src/main/java/com/example/skyapartmentscleaning/data/hystory_checklist/HistoryChecklistPoint.kt | Volkoks | 308,943,911 | false | null | package com.example.skyapartmentscleaning.data.hystory_checklist
data class HistoryChecklistPoint(
val namePoint: String,
val descriptionPoint: String
) | 0 | Kotlin | 0 | 0 | 847fa306a2fd88a0e42b4f99dc50a453eece93d0 | 161 | sky_cleaning | Apache License 2.0 |
src/commonMain/kotlin/khala/internal/zmq/client/ClientLoopQuery.kt | ardenit | 292,069,266 | false | {"Kotlin": 108807} | package khala.internal.zmq.client
internal sealed class ClientLoopQuery<L, S> {
internal class InvokeQuery<L, S>(val block: ClientLoopScope<L, S>.(L) -> Unit) : ClientLoopQuery<L, S>()
internal class StopQuery<L, S> : ClientLoopQuery<L, S>()
}
| 3 | Kotlin | 0 | 0 | 8955092d9c6c36b1a7407017ef2a327e51e6d7b4 | 257 | khala-internal | Apache License 2.0 |
app/src/main/java/com/ahndwon/gethub/api/dao/UserData.kt | ahndwon | 141,035,948 | false | {"Kotlin": 86408, "Java": 1113} | package com.ahndwon.gethub.api.dao
import com.google.gson.annotations.SerializedName
data class UserData(val login: String,
val name: String,
@field:SerializedName("repos_url")
val reposUrl: String,
@field:SerializedName("avatar_url")
... | 2 | Kotlin | 0 | 0 | 48839270d05ed8276b5c9890639766801a99c491 | 516 | GetHub | Apache License 2.0 |
app/src/main/java/com/bengcare/bengcare/utils/paging/BookingPagingSource.kt | BengCare | 796,771,725 | false | {"Kotlin": 421897} | package com.bengcare.bengcare.utils.paging
import androidx.paging.PagingSource
import androidx.paging.PagingState
import com.bengcare.bengcare.data.local.LocalDataSource
import com.bengcare.bengcare.data.remote.RemoteDataSource
import com.bengcare.bengcare.data.remote.response.Booking
import com.bengcare.bengcare.util... | 0 | Kotlin | 0 | 0 | 177d60c1f224e0b29f5f5e8c38019ca55234c300 | 2,285 | BengCare-Android | MIT License |
src/main/java/yoshikihigo/cpanalyzer/binding/nitron/StatementWithAst.kt | Durun | 220,210,684 | true | {"Git Config": 1, "Gradle": 2, "Shell": 1, "Text": 3, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "INI": 2, "Java": 239, "Kotlin": 3, "YAML": 1} | package yoshikihigo.cpanalyzer.binding.nitron
import com.github.durun.nitron.core.ast.node.AstNode
import yoshikihigo.cpanalyzer.data.Statement
import yoshikihigo.cpanalyzer.lexer.token.Token
class StatementWithAst(
fromLine: Int,
toLine: Int,
nestLevel: Int,
isTarget: Boolean,
... | 0 | Java | 0 | 0 | 0cc43e9660230dcb0e25aba27a0ecc8446337778 | 523 | MPAnalyzer | MIT License |
src/main/java/catmoe/fallencrystal/moefilter/api/command/impl/test/event/MessageEvent.kt | CatMoe | 638,486,044 | false | null | package catmoe.fallencrystal.moefilter.api.command.impl.test.event
import catmoe.fallencrystal.moefilter.api.event.EventListener
import catmoe.fallencrystal.moefilter.api.event.FilterEvent
import catmoe.fallencrystal.moefilter.api.event.events.TestMessageEvent
import catmoe.fallencrystal.moefilter.util.message.Message... | 2 | Kotlin | 0 | 2 | 4afea088e12dc89d93dbc54f9c3a30b9c0d6f3f7 | 739 | MoeFilter | Apache License 2.0 |
ext-spring-boot-starter-springmvc-automapping/src/main/kotlin/nxcloud/ext/springmvc/automapping/spring/boot/autoconfigure/support/NXSpringMvcAutoMappingAutoConfiguration.kt | Sunshow | 588,022,200 | false | null | package nxcloud.ext.springmvc.automapping.spring.boot.autoconfigure.support
import com.fasterxml.jackson.databind.ObjectMapper
import nxcloud.ext.springmvc.automapping.spi.impl.JacksonAutoMappingRequestParameterResolver
import nxcloud.ext.springmvc.automapping.spi.impl.PathVariableAutoMappingRequestParameterResolver
i... | 0 | Kotlin | 0 | 0 | 8e64ac8fc0bb947082590c90011de2df036a30e7 | 5,134 | nxcloud-springmvc-automapping | Apache License 2.0 |
app/src/main/java/dev/ztivnick/boredwatch/RetrofitObject.kt | ztivnick | 505,156,674 | false | null | package dev.ztivnick.boredwatch
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
object RetrofitObject {
private const val baseUrl = "http://www.boredapi.com/"
private fun getRetrofitInstance(): Retrofit {
return Retrofit.Builder().baseUrl(baseUrl)
.addConvert... | 0 | Kotlin | 0 | 0 | 6444433e4e73d0a157c2725d8803832b87b73688 | 490 | Bored-Watch | MIT License |
src/main/kotlin/AST/ASTArrayAccessNode.kt | Ten-James | 696,690,413 | false | {"Kotlin": 106391, "C": 587} | package AST
import compiler.DefinedType
class ASTArrayAccessNode: ASTVariableNode {
var array:ASTVariableNode
var index:ASTNode
constructor(array:ASTVariableNode, index:ASTNode): super("", DefinedType("")) {
this.array = array
this.index = index
}
override fun getType(): DefinedT... | 0 | Kotlin | 1 | 1 | 0840541d9a47887e055d124833a34943fc0d56f0 | 903 | czechtina | MIT License |
resource/src/main/kotlin/me/jiangcai/common/resource/impl/OSSResource.kt | mingshz | 166,675,112 | false | {"Gradle": 20, "INI": 11, "Shell": 2, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 10, "XML": 8, "Kotlin": 311, "JavaScript": 1, "HTML": 4, "Java Properties": 10, "Java": 71, "JSON": 2} | package me.jiangcai.common.resource.impl
import com.aliyun.oss.OSS
import me.jiangcai.common.resource.Resource
import org.springframework.core.io.AbstractResource
import org.springframework.core.io.WritableResource
import java.io.*
import java.net.URL
/**
* @author CJ
*/
class OSSResource(
private val client: O... | 1 | null | 1 | 1 | 8c9566723e6fe39c4fadc1262212a9e4aa3fd660 | 2,282 | library | MIT License |
app/src/main/java/com/example/appsophos/features/dashboard/presentation/MenuScreenFragment.kt | AngyeTR | 576,984,367 | false | {"Kotlin": 73318} | package com.example.appsophos.features.dashboard.presentation
import android.content.res.Configuration
import android.os.Build
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import androidx.annotation.RequiresApi
import an... | 0 | Kotlin | 0 | 0 | b32a5edc5e325ac025febc253ba74ed80b9095f2 | 4,508 | AppSophos | Apache License 2.0 |
jvm/word-finder/src/main/kotlin/net/maelbrancke/filip/service/Solver.kt | filipmaelbrancke | 597,192,385 | false | {"Rust": 268793, "Kotlin": 47518, "Shell": 17239, "Dockerfile": 478, "PLpgSQL": 238} | package net.maelbrancke.filip.service
import arrow.core.Either
import arrow.core.raise.Raise
import arrow.core.raise.either
import arrow.core.raise.ensure
import net.maelbrancke.filip.CannotGenerateSolution
import net.maelbrancke.filip.NoSolutionsAvailable
import net.maelbrancke.filip.WordCombination
import net.maelbr... | 0 | Rust | 0 | 0 | cc93acb760ec3d2b5ec150d8ef545869704d36a4 | 4,340 | playground | MIT License |
core/src/org/river/exertion/ecs/component/action/ActionLookComponent.kt | exertionriver | 345,650,250 | false | null | package org.river.exertion.ecs.component.action
import com.badlogic.ashley.core.Component
import ktx.ashley.mapperFor
import org.river.exertion.ecs.component.action.core.IActionComponent
class ActionLookComponent : IActionComponent, Component {
override val componentName = "Look"
companion object {
... | 0 | Kotlin | 0 | 2 | e554d700d5fbc16953a61d782cbe63162072483a | 373 | koboldCave | MIT License |
src/main/kotlin/com/github/xbaimiao/shoppro/core/shop/Shop.kt | xbaimiao | 514,507,465 | false | {"Kotlin": 82802, "Java": 207} | package com.github.xbaimiao.shoppro.core.shop
import com.github.xbaimiao.shoppro.core.item.Item
import com.github.xbaimiao.shoppro.core.item.ShopItem
import org.bukkit.entity.Player
import org.bukkit.inventory.ItemStack
abstract class Shop {
enum class ShopType(val string: String) {
BUY("buy"), SELL("sel... | 0 | Kotlin | 2 | 0 | 2be5e653c2296c0cd41b8cf82eeee3c8a24a924e | 859 | ShopPro | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.