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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
FreedomPopApp/app/src/main/java/com/lozasolutions/fredompop/features/main/MainPresenter.kt | elloza | 98,192,951 | false | null | package com.lozasolutions.fredompop.features.main
import com.evernote.android.job.JobManager
import com.lozasolutions.fredompop.data.local.AlertManager
import com.lozasolutions.fredompop.data.local.InfoManager
import com.lozasolutions.fredompop.data.local.SessionManager
import com.lozasolutions.fredompop.data.remote.F... | 0 | Kotlin | 1 | 1 | 2e270dee6d586053fc4ed06901ccd680d04be24e | 2,568 | Freedompop-Checker-APP-Widget | MIT License |
app/src/main/kotlin/cn/govast/vmusic/model/net/user/LoginOutRes.kt | SakurajimaMaii | 351,469,044 | false | null | /*
* Copyright 2022 <NAME> <EMAIL>
*
* 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 ... | 2 | Kotlin | 0 | 8 | af1cb8e620cb3e65f9ad5a0d05b240142db2608b | 787 | Music-Voice | Apache License 2.0 |
app/src/main/java/com/enigma/parapo/activities/ManageProfileActivity.kt | ColstonBod-oy | 796,653,978 | false | {"Kotlin": 84749, "Java": 67773} | package com.enigma.parapo.activities
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.enigma.parapo.contants.Constants
import com.enigma.parapo.databinding.ActivityManageProfileBinding
import com.enigma.parapo.firebase.FireStoreClass
import com.google.firebase.firestore.FirebaseFires... | 0 | Kotlin | 0 | 0 | c6e86e45d975e1a0f803e33c8ffb5f97d342630c | 1,763 | para-po | Apache License 2.0 |
solar/src/main/java/com/chiksmedina/solar/broken/homefurniture/Armchair2.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.broken.homefurniture
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeCap.Compa... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 6,954 | SolarIconSetAndroid | MIT License |
data-layer/src/main/kotlin/es/plexus/android/marvelpedia/datalayer/domain/OnDataMapper.kt | pablodeafsapps | 355,627,418 | false | null | package es.plexus.android.marvelpedia.datalayer.domain
import es.plexus.android.marvelpedia.domainlayer.domain.CharacterBo
import es.plexus.android.marvelpedia.domainlayer.domain.CharacterDataBo
import es.plexus.android.marvelpedia.domainlayer.domain.CharacterDataBoWrapper
import es.plexus.android.marvelpedia.domainla... | 0 | Kotlin | 0 | 0 | 3e5000dc06ccf7f403c6dc340ba25c60008b558d | 2,608 | marvel-pedia | Plexus Classworlds License |
problems/2818/kotlin/Main.kt | misut | 678,196,869 | false | null | fun main() {
val testCases = listOf(
(listOf(8, 3, 9, 3, 8) to 2) to 81,
(listOf(19, 12, 14, 6, 10, 18) to 3) to 4788
)
testCases.filterIndexed { index, (testCase, expected) ->
val actual = Solution().maximumScore(testCase.first, testCase.second)
println("#$index Expected ${... | 0 | Kotlin | 0 | 0 | 0e6526e12f7611bf4462ddca3e77246b3ee471f7 | 499 | ps-leetcode | MIT License |
app/src/main/java/com/gmail/tofibashers/blacklist/domain/SelectEditModeAndPhoneNumberItemUseCase.kt | TofiBashers | 128,157,735 | false | null | package com.gmail.tofibashers.blacklist.domain
import com.gmail.tofibashers.blacklist.data.repo.IActivityIntervalRepository
import com.gmail.tofibashers.blacklist.data.repo.IBlacklistPhoneNumberItemRepository
import com.gmail.tofibashers.blacklist.data.repo.IInteractionModeRepository
import com.gmail.tofibashers.black... | 0 | Kotlin | 0 | 4 | 1e72f8e59f52205a89a18864302bc2cf6f5f04ad | 1,840 | Blacklist | Apache License 2.0 |
app/src/main/java/dev/mayank/cowinvaccinebook/view/activity/MainActivity.kt | hackelite01 | 370,006,949 | false | null | package dev.mayank.cowinvaccinebook.view.activity
import android.app.Activity
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.content.ServiceConnection
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.os.IBinder
impo... | 0 | Kotlin | 0 | 3 | 36cdad2997c2f62a7ddf1ffa20ec2b35c65b0e73 | 1,891 | cowin-vaccine-booking | MIT License |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/m2/CfnApplicationPropsDsl.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 63959868} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.m2
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.String
import kotlin.collections.Map
impo... | 4 | Kotlin | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 3,444 | awscdk-dsl-kotlin | Apache License 2.0 |
bigbone-rx/src/main/kotlin/social/bigbone/rx/RxFilterMethods.kt | andregasser | 565,112,249 | false | {"Kotlin": 473179, "Java": 26187, "Ruby": 15997, "Dockerfile": 1263, "Shell": 118} | package social.bigbone.rx
import io.reactivex.rxjava3.core.Completable
import io.reactivex.rxjava3.core.Single
import social.bigbone.MastodonClient
import social.bigbone.api.entity.Filter
import social.bigbone.api.entity.FilterKeyword
import social.bigbone.api.entity.FilterStatus
import social.bigbone.api.method.Filte... | 35 | Kotlin | 12 | 42 | d56a571a82593a5a1c74252937b69568971d489e | 6,067 | bigbone | MIT License |
sdk/src/main/kotlin/io/elderscrollslegends/Keyword.kt | markjfisher | 180,530,818 | false | null | package io.elderscrollslegends
import com.fasterxml.jackson.annotation.JsonProperty
class Keyword {
companion object {
private val queryBuilder = QueryBuilder()
private const val RESOURCE_NAME = "keywords"
@JvmStatic
fun all(): List<String> {
return where(emptyMap())
... | 0 | Kotlin | 0 | 1 | eefbcb82f508f82526088a33c48fe1c791d884a5 | 876 | elder-scrolls-legends-sdk-java | MIT License |
app/src/main/java/com/yudistudios/foodland/models/Order.kt | YnsDlbr | 576,026,021 | false | null | package com.yudistudios.foodland.models
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class Order(
val date: Long,
val items: List<BasketFood>,
val longitude: Double,
val latitude: Double,
) : Parcelable | 0 | Kotlin | 0 | 0 | d6710e873f9fc3c0c374e77dc96e44ba98a52ef0 | 255 | FoodLand | Apache License 2.0 |
api/src/main/kotlin/com/seedcompany/cordtables/services/Types.kt | CordField | 409,237,733 | false | null | package com.seedcompany.cordtables.services
data class LanguageIndexKey (
var lang: String,
var country: String,
var name_type: String,
var name: String,
)
data class SiteTextTranslationInput (
val language: String,
val site_text: String,
val translation: String,
val token: String,
)
data class SiteT... | 93 | Kotlin | 1 | 3 | 7e5588a8b3274917f9a5df2ffa12d27db23fb909 | 423 | cordtables | MIT License |
bluetape4k/core/src/main/kotlin/io/bluetape4k/collections/eclipse/primitives/FloatArrayListSupport.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.collections.eclipse.primitives
import io.bluetape4k.collections.eclipse.toFastList
import io.bluetape4k.collections.eclipse.toUnifiedSet
import io.bluetape4k.support.assertZeroOrPositiveNumber
import org.eclipse.collections.api.FloatIterable
import org.eclipse.collections.impl.list.mutable.FastLi... | 0 | Kotlin | 0 | 1 | ce3da5b6bddadd29271303840d334b71db7766d2 | 2,691 | bluetape4k | MIT License |
feature/tv/film/src/main/kotlin/com/flixclusive/feature/tv/film/component/FilmErrorSnackbar.kt | flixclusiveorg | 659,237,375 | false | null | @file:OptIn(ExperimentalTvMaterial3Api::class)
package com.flixclusive.feature.tv.film.component
import androidx.compose.animation.AnimatedContent
import androidx.compose.animation.ContentTransform
import androidx.compose.animation.slideInVertically
import androidx.compose.animation.slideOutVertically
import androidx... | 27 | null | 29 | 362 | f488f6d1b2de3ec0737a8437ce1c981bc2f55c31 | 5,339 | Flixclusive | MIT License |
shared/design/src/main/java/me/pitok/design/views/ChooserBottomSheetAdapter.kt | hamedsj | 293,740,507 | false | null | package me.pitok.design.views
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import me.pitok.design.R
import me.pitok.design.entity.BottomSheetItemEntity
internal class ChooserBottomSheetAdapter(
private val items: List<BottomSheetItemEntity>,
... | 0 | Kotlin | 1 | 13 | 8c5f1b0ce3183094bb659451d47b0036e712610a | 913 | PtPlayer | Apache License 2.0 |
WebServer/app/src/main/java/com/webserver/HomeActivity.kt | BalioFVFX | 666,999,098 | false | null | package com.webserver
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.webserver.databinding.ActivityHomeBinding
class HomeActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceSta... | 0 | Kotlin | 0 | 0 | 5ddbebf18448f0b1f610b2731fa9754e48c1ded7 | 692 | Android-Web-Server | MIT License |
ui/src/commonMain/kotlin/com/vanniktech/ui/theming/UiTheming.kt | vanniktech | 580,093,198 | false | null | package com.vanniktech.ui.theming
import com.vanniktech.ui.Color
interface UiTheming {
val isNight: Boolean
fun colorPrimary(): Color
val colorPrimary: ThemingColor
fun colorOnPrimary(): Color
val colorOnPrimary: ThemingColor
fun colorSecondary(): Color
val colorSecondary: ThemingColor
fun colorOn... | 1 | Kotlin | 0 | 4 | 58e385f85a0d35af35d2d4f30ae746062ef73528 | 1,232 | ui | Apache License 2.0 |
app/src/main/java/com/fredrikbogg/android_chat_app/ui/users/UsersFragment.kt | dgewe | 288,984,096 | false | null | package com.newapp.test_firebase_app.ui.users
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.os.bundleOf
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.findNavCont... | 0 | null | 35 | 87 | cff2f947a4496e46cbaa750b4e3fa768ba2308f0 | 2,113 | Chat-App-Android | MIT License |
src/main/java/net/ccbluex/liquidbounce/features/module/modules/render/PointerESP.kt | 2946257770 | 693,652,489 | false | {"Java": 1812636, "Kotlin": 1801560, "GLSL": 13689, "JavaScript": 9199, "HTML": 850} | /*
* LiquidBounce+ Hacked Client
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
* https://github.com/WYSI-Foundation/LiquidBouncePlus/
*
* This code was taken from UnlegitMC/FDPClient, modified. Please credit them and us when using this code in your repository.
*/
pa... | 1 | null | 1 | 1 | 4e111df6cd3ca03da3b285eb8572ef79a9ff8695 | 4,183 | VulgarSense | Apache License 2.0 |
packages/SystemUI/src/com/android/systemui/controls/ui/ControlsUiControllerImpl.kt | liu-wanshun | 595,904,109 | true | null | /*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Java | 1 | 2 | e99201cd9b6a123b16c30cce427a2dc31bb2f501 | 30,511 | platform_frameworks_base | Apache License 2.0 |
MzaziConnectApplication/app/src/main/java/sakigake/mzaziconnect/mzaziconnectapplication/model/TeacherLoginResponse.kt | Florence-nyokabi | 721,515,801 | false | {"Kotlin": 146726} | package sakigake.mzaziconnect.mzaziconnectapplication.model
data class TeacherLoginResponse(
var message: String
)
| 0 | Kotlin | 0 | 0 | e4c7c167efb9b1373f2ecf231fd126ab6ff9675b | 120 | Sakigake-mobile | MIT License |
app/src/main/java/iammert/com/androidarchitecture/ui/main/MainActivity.kt | omjoonkim | 97,355,249 | true | {"Kotlin": 24896, "Java": 1621} | package iammert.com.androidarchitecture.ui.main
import android.databinding.DataBindingUtil
import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v7.app.AppCompatActivity
import dagger.android.AndroidInjection
import dagger.android.AndroidInjector
import dagger.android.DispatchingAndroi... | 1 | Kotlin | 1 | 3 | 24a92887b82874a296eb1e25d538a923824fcea1 | 1,209 | AndroidArchitecture | Apache License 2.0 |
features/settings/whatsnew/src/main/kotlin/com/egoriku/grodnoroads/settings/whatsnew/screen/WhatsNewScreen.kt | egorikftp | 485,026,420 | false | null | package com.egoriku.grodnoroads.settings.whatsnew.screen
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.itemsIndexed
import androidx.compose.material.CircularProgressIndicator
import androidx.compose.material.Scaffold
import androi... | 2 | Kotlin | 1 | 6 | 4c13949a65f68379426b54b3fe2561f9698ec214 | 2,344 | GrodnoRoads | Apache License 2.0 |
app/src/main/java/xyz/tberghuis/floatingtimer/tmp/TmpScreen.kt | tberghuis | 500,632,576 | false | {"Kotlin": 178532, "Ruby": 955} | package xyz.tberghuis.floatingtimer.tmp
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import and... | 21 | Kotlin | 5 | 67 | d142ea82d28c43bb071f3e4e13ec916c10d80d01 | 582 | FloatingCountdownTimer | MIT License |
app/src/main/java/xyz/tberghuis/floatingtimer/tmp/TmpScreen.kt | tberghuis | 500,632,576 | false | {"Kotlin": 178532, "Ruby": 955} | package xyz.tberghuis.floatingtimer.tmp
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import and... | 21 | Kotlin | 5 | 67 | d142ea82d28c43bb071f3e4e13ec916c10d80d01 | 582 | FloatingCountdownTimer | MIT License |
lib/baseArch/src/main/java/com/dawn/base/ui/page/delegate/ListViewDelegateImpl.kt | blank-space | 304,529,347 | false | null | package com.dawn.base.ui.page.delegate
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.Observer
import androidx.lifecycle.asLiveData
import androidx.recyclerview.widget.RecyclerView
import com.dawn.base.log.L
import com.dawn.base.ui.page.iface.IRefreshLayout
import com.dawn.base.ui.page.iface.OnRefr... | 0 | null | 2 | 6 | bc95dce263adc6968e1c55eccf18ebfc8362c2b5 | 4,848 | scaffold | Apache License 2.0 |
vector/src/main/java/im/vector/app/features/spaces/RestrictedPromoBottomSheet.kt | vector-im | 151,282,063 | 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... | 1,487 | Kotlin | 364 | 1,745 | 256929b78f4af62ed3d9b26c8b05dfb1aa073661 | 2,746 | element-android | Apache License 2.0 |
Engine/src/test/java/com/cortland/kotlinchess/BoardTests.kt | Cortlandd | 291,121,054 | false | null | package com.cortland.kotlinchess
import org.junit.Test
import org.junit.Assert.*
import com.cortland.kotlinchess.Piece.PieceType.*
import com.cortland.kotlinchess.Color.*
class BoardTests {
@Test
fun newEmptyBoardContainsNoPieces() {
val board = Board(Board.InitialState.empty)
(0 until 63).fo... | 1 | Kotlin | 0 | 3 | 9b7e069b16ae46c9ad9a1e8c6821da4ff3f21b58 | 4,205 | KotlinChess | MIT License |
app/src/main/java/com/common/weikaiyun/util/DensityUtil.kt | weikaiyun | 266,462,375 | false | null | package com.common.weikaiyun.util
import com.common.weikaiyun.demo.DemoApplication
object DensityUtil {
/**
* 根据手机的分辨率从 dp 的单位 转成为 px(像素)
*/
fun dp2px(dpValue: Float): Int {
val scale = DemoApplication.instance.resources.displayMetrics.density
return (dpValue * scale + 0.5f).toInt(... | 6 | Java | 23 | 256 | bd500d1fde6fa45651a6abd331c5b4ff4dc7acce | 1,093 | SFragmentation | Apache License 2.0 |
shared/src/commonMain/kotlin/com/hoc081098/github_search_kmm/presentation/GithubSearchSideEffects.kt | hoc081098 | 512,522,703 | false | null | package com.hoc081098.github_search_kmm.presentation
import com.hoc081098.flowext.flatMapFirst
import com.hoc081098.flowext.flowFromSuspend
import com.hoc081098.flowext.takeUntil
import com.hoc081098.flowredux.SideEffect
import com.hoc081098.github_search_kmm.domain.usecase.SearchRepoItemsUseCase
import com.hoc081098.... | 5 | null | 12 | 83 | b88612a488df36fc866332ef85cd2d978413c22b | 4,542 | GithubSearchKMM | MIT License |
src/main/kotlin/me/peckb/aoc/_2018/calendar/day14/Day14.kt | peckb1 | 433,943,215 | false | null | package me.peckb.aoc._2018.calendar.day14
import javax.inject.Inject
import me.peckb.aoc.generators.InputGenerator.InputGeneratorFactory
import java.lang.StringBuilder
class Day14 @Inject constructor(private val generatorFactory: InputGeneratorFactory) {
fun partOne(filename: String) = generatorFactory.forFile(fil... | 0 | Kotlin | 1 | 4 | 62165673b98381031d964a962ed0328474d20870 | 3,705 | advent-of-code | MIT License |
app/src/main/java/com/colisa/compose/router/JetFundamentalsRouter.kt | mtali | 414,770,333 | false | null | package com.colisa.compose.router
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.mutableStateOf
sealed class Screen {
object Navigation : Screen()
object Text : Screen()
object TextField : Screen()
object Buttons : Screen()
object ProgressIndicator : Screen()
obje... | 0 | Kotlin | 0 | 0 | 6d2a73b02d9b226dd492868b41bf001895a9ccda | 783 | jet-compose-basics | Apache License 2.0 |
demo/src/desktopMain/kotlin/com/tunjid/mutator/demo/editor/Fonts.kt | tunjid | 404,729,892 | false | {"Kotlin": 42435} | /*
* Copyright 2021 Google 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 agreed to ... | 0 | Kotlin | 7 | 42 | 0c94b699a3324f69488caa3847c59c26e314b421 | 2,180 | Mutator | Apache License 2.0 |
connectivity/src/main/java/com/fwhyn/connectivity/ble/BleManager.kt | fwhyn | 549,536,246 | false | {"Kotlin": 405939, "Java": 173850} | package com.fwhyn.connectivity.ble
import android.annotation.SuppressLint
import android.bluetooth.BluetoothGattService
import android.bluetooth.BluetoothManager
import android.bluetooth.le.ScanCallback
import android.bluetooth.le.ScanResult
import android.content.BroadcastReceiver
import android.content.ComponentName... | 0 | Kotlin | 0 | 0 | 92d168ac02ec0e1c6dc8de2f54264c7027227acd | 7,763 | MyApplication_Android | Apache License 2.0 |
app/src/main/kotlin/me/paladin/barsurasp/ui/screens/ItemsScreen.kt | SpikedPaladin | 710,766,937 | false | {"Kotlin": 273004} | package me.paladin.barsurasp.ui.screens
import androidx.compose.animation.Crossfade
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.la... | 2 | Kotlin | 0 | 0 | b6c1ee5bc2619b41609c95b1de7768d1bd31f88e | 14,539 | BarsuRasp | MIT License |
app/src/main/java/br/com/questv/model/question/manager/QuestionManagerAdapter.kt | GersonSales | 167,698,687 | false | null | package br.com.questv.model.question.manager
import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter
import br.com.questv.model.question.QuestionModel
import br.com.questv.resource.Strings.*
import br.com.questv.... | 0 | Kotlin | 0 | 0 | 5d05722cd91dd1ea1a674fe0f8a962e869d822d1 | 1,845 | questv-android | MIT License |
app/src/main/java/com/rokoblak/gittrendingcompose/ui/common/AppThemePreviews.kt | oblakr24 | 641,592,280 | false | {"Kotlin": 146539} | package com.rokoblak.gittrendingcompose.ui.common
import android.content.res.Configuration.UI_MODE_NIGHT_NO
import android.content.res.Configuration.UI_MODE_NIGHT_YES
import androidx.compose.ui.tooling.preview.Preview
@Preview(
name = "dark theme",
group = "themes",
uiMode = UI_MODE_NIGHT_YES
)
@Preview(
... | 0 | Kotlin | 0 | 0 | 46b9059ec372952253f0b310eac51f69f0574967 | 433 | GitTrendingCompose | Apache License 2.0 |
sururu-core/src/main/java/com/sururu/core/view/dialog/AlertDialogBuilder.kt | macksuelsantos | 104,487,353 | false | {"Gradle": 5, "Java Properties": 3, "Shell": 2, "Ignore List": 4, "Batchfile": 2, "Markdown": 1, "Checksums": 28, "XML": 24, "Proguard": 3, "Java": 4, "Kotlin": 21} | package com.sururu.core.view.dialog
import android.app.AlertDialog
import android.content.Context
import android.support.annotation.IdRes
import android.support.annotation.StringRes
import com.sururu.core.R
class AlertDialogBuilder(private val mContext: Context) {
fun showAlertDialog(title: String, message: Str... | 0 | Kotlin | 0 | 0 | 3c45e25e16d319b106d3a6d44c51079212230e5d | 1,468 | sururu | The Unlicense |
app/src/main/java/com/green/china/fragments/quotes/QuotesFragment.kt | khalidabdou | 389,423,017 | false | null | package com.green.china.fragments.quotes
import android.content.ClipData
import android.content.ClipboardManager
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageVie... | 0 | Kotlin | 0 | 0 | 87d0070b9cad2fdd949d56617ddf9b50b064f6d8 | 7,289 | GreenChina | Apache License 2.0 |
src/main/kotlin/com/block/gooseintellij/actions/SelectGooseProfileAction.kt | Kvadratni | 853,518,502 | false | null | package com.block.gooseintellij.actions
import com.block.gooseintellij.components.MultiSelectComboBox
import com.block.gooseintellij.components.MultiselectCellEditor
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.ui.DialogWrapper
imp... | 3 | null | 1 | 1 | 6dba48ebe7373607e6589c7f2ee1ab4ef5e78f26 | 11,541 | goose-intellij | MIT License |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/servicecatalog/CfnCloudFormationProductSourceConnectionPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package cloudshift.awscdk.dsl.services.servicecatalog
import cloudshift.awscdk.common.CdkDslMarker
im... | 3 | null | 0 | 3 | 256ad92aebe2bcf9a4160089a02c76809dbbedba | 2,610 | awscdk-dsl-kotlin | Apache License 2.0 |
src/main/kotlin/org/eclipse/uprotocol/uri/validator/UriValidator.kt | eclipse-uprotocol | 717,101,886 | false | {"Kotlin": 503102} | /*
* Copyright (c) 2024 General Motors GTO LLC
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apac... | 4 | Kotlin | 3 | 3 | f57b4409340c3866cad04b5ac6097fe6429991fd | 6,961 | up-kotlin | Apache License 2.0 |
app/src/main/java/dev/abhaycloud/fdtracker/domain/usecase/DeleteFixedDepositUseCase.kt | Abhay-cloud | 816,359,684 | false | {"Kotlin": 164703} | package dev.abhaycloud.fdtracker.domain.usecase
import dev.abhaycloud.fdtracker.domain.repository.FixedDepositRepository
import javax.inject.Inject
class DeleteFixedDepositUseCase @Inject constructor(private val repository: FixedDepositRepository) {
suspend fun execute(fixedDepositID: Int) {
repository.de... | 2 | Kotlin | 4 | 32 | a8ab2db4b600c29ecfffe45c263305bf939a5142 | 360 | Fixed-Deposit-Tracker | MIT License |
core-kotlin-modules/core-kotlin-io/src/test/kotlin/com/baeldung/deleteFileContent/DeleteFileContentUnitTest.kt | Baeldung | 260,481,121 | false | {"Kotlin": 1855665, "Java": 48276, "HTML": 4883, "Dockerfile": 292} | package com.baeldung.deleteFileContent
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.AfterEach
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import java.io.File
class DeleteFileContentUnitTest {
private val fileName = "src/test/resources/example.txt"
... | 14 | Kotlin | 294 | 465 | f1ef5d5ded3f7ddc647f1b6119f211068f704577 | 2,166 | kotlin-tutorials | MIT License |
src/main/kotlin/BotUtils.kt | tim-papaya | 694,790,317 | false | {"Kotlin": 19357} | import com.github.kotlintelegrambot.dispatcher.handlers.TextHandlerEnvironment
import com.github.kotlintelegrambot.entities.ChatId
import com.github.kotlintelegrambot.entities.ReplyMarkup
import com.github.kotlintelegrambot.entities.TelegramFile
import java.io.File
fun TextHandlerEnvironment.sendMessage(chatId: Long, ... | 0 | Kotlin | 0 | 0 | f1acfffe768e6a221363eee699f34650d54ee7b0 | 721 | vote-for-bot | Apache License 2.0 |
app/src/main/java/com/nuckyboe/kotlin_jetpack_exoplayer/NavFragment2.kt | nuckyboe | 361,650,575 | false | {"Java": 13769, "Kotlin": 4173} | package com.nuckyboe.kotlin_jetpack_exoplayer
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.fragment.app.Fragment
import androidx.navigation.Navigation
import com.nuckyboe.kotlin_jetpack_exoplayer.databi... | 1 | null | 1 | 1 | e4b7aa613f96c9bbbe2bdbaec7b5650bd8151e56 | 846 | kotlin-jetpack-exoplayer | Apache License 2.0 |
feature-assets/src/main/java/io/novafoundation/nova/feature_assets/data/mappers/mappers/AssetMappers.kt | novasamatech | 496,649,319 | false | {"Kotlin": 5949531, "Java": 14723, "JavaScript": 425} | package io.novafoundation.nova.feature_assets.data.mappers.mappers
import io.novafoundation.nova.common.utils.formatting.formatAsChange
import io.novafoundation.nova.common.utils.isNonNegative
import io.novafoundation.nova.feature_assets.R
import io.novafoundation.nova.feature_assets.presentation.model.TokenModel
impo... | 5 | Kotlin | 9 | 28 | fcd118ab5cbedded709ec062ae5d4bc890aaf96d | 1,135 | nova-android-app | Apache License 2.0 |
app/src/main/java/com/example/squarednews/data/UserInput.kt | AniVerma17 | 530,937,431 | false | {"Kotlin": 55836} | package com.example.squarednews.data
import com.squareup.moshi.Json
data class UserInput(
@Json(name = "countries")
val countries: List<String> = listOf(),
@Json(name = "from")
val from: String = "",
@Json(name = "lang")
val lang: Any = Any(),
@Json(name = "not_countries")
val notCoun... | 0 | Kotlin | 0 | 1 | 84131ef6f57f491f10a464a41a04b30be2be982c | 684 | SquaredNews | MIT License |
app/src/main/java/com/appat/graphicov/models/responses/AllCountriesDataResponse.kt | rishadappat | 338,528,633 | false | null | package com.appat.graphicov.models.responses
class AllCountriesDataResponse : ArrayList<AllCountriesDataResponseItem>() | 0 | Kotlin | 0 | 5 | 51c1c81454549509f696b71e769f2966be0cfb4a | 120 | Graphicov | Apache License 2.0 |
basicmodule/src/main/java/com/baiyu/androidx/basicmodule/ext/AppExt.kt | by8023hxy | 295,073,107 | false | null | package com.baiyu.androidx.basicmodule.ext
import android.content.Context
import android.graphics.drawable.Drawable
import android.os.Build
/**
* @author Baiyu
* @date :2020/9/19 3:55 PM September
* @version: 1.0
*/
val Context.versionName: String
get() = packageManager.getPackageInfo(packageName, 0).versionN... | 0 | Kotlin | 0 | 8 | 8cffe4554b9c92347fa6b447bfe9a895cefd30fa | 948 | basemodule | Apache License 2.0 |
sqlitemagic-tests/app/src/androidTest/kotlin/com/siimkinks/sqlitemagic/model/ComplexTestModels.kt | SiimKinks | 61,441,349 | false | null | package com.siimkinks.sqlitemagic.model
import com.google.common.truth.Truth.assertThat
import com.siimkinks.sqlitemagic.*
import com.siimkinks.sqlitemagic.AuthorTable.AUTHOR
import com.siimkinks.sqlitemagic.BuilderMagazineTable.BUILDER_MAGAZINE
import com.siimkinks.sqlitemagic.ComplexDataClassWithFieldsAndUniqueTable... | 2 | Java | 10 | 118 | f7508e92c1692fe40ecdac29dd6d54a5322d4f41 | 66,398 | sqlitemagic | Apache License 2.0 |
persistence/src/main/kotlin/io/sparkled/persistence/FileService.kt | sparkled | 53,776,686 | false | null | package io.sparkled.persistence
import io.sparkled.model.render.RenderedSequence
interface FileService {
fun init()
fun readSongAudio(songId: Int): ByteArray
fun writeSongAudio(songId: Int, audio: ByteArray)
fun deleteSongAudio(songId: Int)
fun readRender(sequenceId: Int): RenderedSequence
fun... | 20 | Kotlin | 21 | 72 | 562e917af188c2ebf98c8e729446cde101f96dc2 | 416 | sparkled | MIT License |
app/src/main/java/com/cornellappdev/transit/ui/viewmodels/FavoritesViewModel.kt | cuappdev | 754,290,399 | false | {"Kotlin": 56611} | package com.cornellappdev.transit.ui.viewmodels
import androidx.lifecycle.ViewModel
import com.cornellappdev.transit.models.RouteRepository
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
import com.cornellappdev.transit.networking.ApiResponse
import dagger.hilt.android.lifec... | 2 | Kotlin | 0 | 2 | 02164587c4c45b44c935d834c1553a0a1c01ac86 | 1,959 | ithaca-transit-compose | MIT License |
dcache/src/main/java/dora/cache/repository/DoraPageDatabaseCacheRepository.kt | dora4 | 378,306,065 | false | {"Kotlin": 161256} | package dora.cache.repository
import android.content.Context
import android.util.Log
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import dora.cache.data.fetcher.OnLoadStateListener
import dora.db.builder.Condition
import dora.db.builder.QueryBuil... | 2 | Kotlin | 3 | 28 | 4afa8bc6195b17a3af790c286966a38ae114d7f1 | 9,954 | dcache-android | MIT License |
rattle-fabric/src/main/kotlin/io/github/aecsocket/rattle/fabric/RattleEvents.kt | aecsocket | 598,554,214 | false | null | package io.github.aecsocket.rattle.fabric
import io.github.aecsocket.alexandria.fabric.extension.createEvent
import io.github.aecsocket.rattle.Real
fun interface BeforeStep {
fun beforeStep(server: FabricRattlePlatform, dt: Real)
}
object RattleEvents {
@JvmStatic
val BEFORE_STEP = createEvent<BeforeStep... | 0 | Kotlin | 0 | 9 | 22201b6d0dd682bbd3159f51e2e446897b229769 | 450 | rattle | MIT License |
navigation-samples/automotive/src/main/java/vn/map4d/automotive/navigation/demo/car/screens/MainScreen.kt | Map4D | 662,838,165 | false | {"Kotlin": 66657} | package vn.map4d.automotive.navigation.demo.car.screens
import android.util.Log
import androidx.car.app.Screen
import androidx.car.app.model.Action
import androidx.car.app.model.ActionStrip
import androidx.car.app.model.CarIcon
import androidx.car.app.model.Template
import androidx.car.app.navigation.model.NavigationT... | 0 | Kotlin | 0 | 0 | 1f08c990b9b9a52ea4c6fa1617ce3c8705449ed4 | 6,452 | android-samples | Apache License 2.0 |
server/src/test/kotlin/io/typestream/compiler/InterpreterTest.kt | typestreamio | 685,423,176 | false | null | package io.typestream.compiler
import io.typestream.compiler.parser.Parser
import io.typestream.compiler.vm.Env
import io.typestream.compiler.vm.Session
import io.typestream.config.testing.testConfig
import io.typestream.filesystem.FileSystem
import io.typestream.scheduler.Scheduler
import io.typestream.testing.TestKa... | 6 | null | 5 | 61 | 8aafa8f8be31db8e11ed8af3fec8cba350c7e7ca | 3,115 | typestream | Apache License 2.0 |
app/src/main/java/id/del/ac/delstat/domain/repository/AnalisisDataRepository.kt | matthewalfredoo | 487,180,171 | false | {"Kotlin": 521336} | package id.del.ac.delstat.domain.repository
import id.del.ac.delstat.data.model.analisisdata.AnalisisDataApiResponse
import retrofit2.Response
import java.io.File
interface AnalisisDataRepository {
suspend fun getAnalisisData(
bearerToken: String
): AnalisisDataApiResponse?
suspend fun getDetail... | 0 | Kotlin | 0 | 1 | 94f508452aa302caf7d40d25c6fd4868a40fbf49 | 1,037 | DelStat | MIT License |
app/src/main/java/com/example/online_health_app/data/User.kt | lebelokamogelo | 723,664,718 | false | {"Kotlin": 140820} | package com.example.online_health_app.data
data class User(
val uuid: String = "",
val name: String = "",
val email: String = "",
val phone: String = "",
val image: String? = ""
) | 0 | Kotlin | 0 | 0 | 133fc341c7d10a29242322cb05e75e9bc986659e | 200 | health-app | MIT License |
utils/math/src/test/kotlin/io/bluetape4k/math/equation/BrentEquatorTest.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.equation
class BrentEquatorTest: AbstractEquatorTest() {
override val equator: Equator = BrentEquator()
}
| 0 | Kotlin | 0 | 1 | ce3da5b6bddadd29271303840d334b71db7766d2 | 140 | bluetape4k | MIT License |
RtManager/src/main/java/cn/rubintry/rtmanager/fragments/RuntimeListFragment.kt | RubinTry | 469,049,968 | false | null | package cn.rubintry.rtmanager.fragments
import android.os.Bundle
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import cn.rubintry.rtmanager.BundleKey
import cn.rubintry.rtmanager.db.CustomRuntimeInfo
import cn.rubintry.rtmanager.R
import cn.rubintry.rtmanager.... | 0 | Kotlin | 0 | 0 | e877fbbe636d56b87431ae46782011a6937c9baa | 1,889 | RuntimeManager | Apache License 2.0 |
socialcats-google/search/client/src/commonMain/kotlin/SearchLoader.kt | Couchsurfing | 194,353,465 | false | null | package com.nicolasmilliard.socialcats.search
import com.nicolasmilliard.socialcats.api.bearer
import com.nicolasmilliard.socialcats.model.SearchUsersResult
import com.nicolasmilliard.socialcats.util.IO
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.withContext
cla... | 4 | Kotlin | 1 | 3 | ebc38cc10a392d0a5ff0247c15230edc420e3be9 | 994 | social-cats-playground | Apache License 2.0 |
app/src/main/java/com/arya/mymoviedb/favorite/FavFragment.kt | arryaaas | 297,851,606 | false | null | package com.arya.mymoviedb.favorite
import android.app.ActivityOptions
import android.content.Intent
import android.os.Bundle
import android.view.*
import androidx.fragment.app.Fragment
import androidx.viewpager.widget.ViewPager
import com.arya.mymoviedb.R
import com.arya.mymoviedb.activity.SettingsActivity
import co... | 0 | Kotlin | 0 | 0 | 9ecad93bb25d44d3a739638b9d065d53df730da4 | 1,847 | My-Movie-Db | MIT License |
tokisaki-core/src/main/kotlin/io/micro/core/rest/R.kt | spcookie | 730,690,607 | false | {"Kotlin": 192200, "Java": 17009} | package io.micro.core.rest
import kotlinx.serialization.Serializable
import org.eclipse.microprofile.openapi.annotations.media.Schema
/**
*@author Augenstern
*@since 2023/11/24
*/
@Serializable
@Schema(title = "通用结果")
class R<T> {
@Schema(title = "状态码")
val code: Int = CommonCode.OK.code
@Schema(titl... | 0 | Kotlin | 0 | 0 | f9e34417c08d52727c8458f1a315f811c86c2c5d | 698 | Tokisaki | Apache License 2.0 |
app/src/main/java/com/example/novelfever/ui/theme/Color.kt | yukinpb | 822,620,915 | false | {"Kotlin": 94472} | package com.example.novelfever.ui.theme
import androidx.compose.ui.graphics.Color
val primaryLight = Color(0xFF1E6B4F)
val onPrimaryLight = Color(0xFFFFFFFF)
val primaryContainerLight = Color(0xFFA7F2CF)
val onPrimaryContainerLight = Color(0xFF002115)
val secondaryLight = Color(0xFF4C6358)
val onSecondaryLight = Color... | 0 | Kotlin | 0 | 0 | dd50e27ce154c0dc1157dbce92545a63e13dbcac | 10,900 | NovelFever | MIT License |
app/src/main/java/com/test/meli/productdetail/presentation/ProductDetailState.kt | yenderlobo10 | 784,050,838 | false | {"Kotlin": 70339} | package com.test.meli.productdetail.presentation
import com.test.meli.productdetail.domain.ProductDetail
data class ProductDetailState(
val isLoading: Boolean = true,
val isError: Boolean = false,
val detail: ProductDetail? = null
)
| 0 | Kotlin | 0 | 0 | 02ad12908e0ac5196595372758256397b3c5bd77 | 247 | meli-test-app | MIT License |
json-schema-validator/src/commonMain/kotlin/io/github/optimumcode/json/schema/internal/factories/condition/ThenAssertionFactory.kt | OptimumCode | 665,024,908 | false | null | package io.github.optimumcode.json.schema.internal.factories.condition
import io.github.optimumcode.json.pointer.JsonPointer
import io.github.optimumcode.json.schema.OutputCollector
import io.github.optimumcode.json.schema.internal.AssertionContext
import io.github.optimumcode.json.schema.internal.JsonSchemaAssertion
... | 8 | null | 3 | 33 | 20ad6e2e642ad7c98554c1788392bbbfc423c068 | 1,462 | json-schema-validator | MIT License |
features/posting/src/main/java/com/harera/posting/PostingIntent.kt | hassan0shaban | 289,748,566 | false | null | package com.harera.posting
import android.net.Uri
sealed class PostingIntent {
data class Post(val caption: String, val imageUri: Uri) : PostingIntent()
object None : PostingIntent()
}
| 0 | Kotlin | 0 | 0 | 94b13cdec71a77bb0e2167e2027e66bdf99ba09d | 195 | Insta | Apache License 2.0 |
compiler/fir/java/src/org/jetbrains/kotlin/fir/java/deserialization/AnnotationsLoader.kt | BradOselo | 367,097,840 | false | null | /*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.fir.java.deserialization
import org.jetbrains.kotlin.SpecialJvmAnnotations
impor... | 1 | null | 1 | 3 | 58c7aa9937334b7f3a70acca84a9ce59c35ab9d1 | 7,644 | kotlin | Apache License 2.0 |
src/main/kotlin/com/eyr/demo/common/annotations/ExposureOnPropertyFactor.kt | kaixing2012 | 788,880,071 | false | {"Kotlin": 59611} | package com.eyr.demo.common.annotations
import kotlin.annotation.AnnotationTarget.*
import kotlin.annotation.Retention
import kotlin.annotation.AnnotationRetention.RUNTIME
@Target(FUNCTION) // This annotation can be applied to functions
@Retention(RUNTIME) // The annotation is available at runtime
annotation class Ex... | 0 | Kotlin | 0 | 0 | 3330aa88bf36e87a385731c035356fd49e35a998 | 343 | EYR-Spring-Boot | MIT License |
lib/src/main/java/com/huya/pitaya/ui/status/JavaViewStatusBuilder.kt | YvesCheung | 256,456,572 | false | null | package com.huya.pitaya.ui.status
/**
* 没有什么实际意义,主要是为了兼容Java的语言和Kotlin的DSL
* 使得[PageStatusTransformer.ViewStatusBuilder]的方法调用在Java里面不会太恶心
*
* Mainly for compatibility with Java language and Kotlin DSL.
*
* ```Java
* mStatusManager = PageStatusTransformer.newInstance(mRecyclerView, new JavaViewStatusBuilder()
*... | 0 | Kotlin | 1 | 12 | 4d520fafb8f47c178bfc9b9af7a7e1aab545cf1c | 1,516 | PageStatusTransformer | Apache License 2.0 |
app/src/main/java/com/kenilt/loopingviewpager/example/showHideFragmentExample/ShowHideFragmentActivity.kt | androiddream | 263,255,705 | true | {"Kotlin": 37821} | package com.kenilt.loopingviewpager.example.showHideFragmentExample
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.kenilt.loopingviewpager.example.R
import kotlinx.android.synthetic.main.activity_show_hide_fragment.*
class ShowHideFragmentActivity : AppCompatActivity() {
over... | 0 | null | 0 | 0 | 104883e629f65c562d83751569fb0b83d64b275a | 1,080 | LoopingViewPager | MIT License |
src/main/kotlin/me/ste/stevesseries/guilib/listener/InventoryListener.kt | SteveTheEngineer | 307,083,315 | false | null | package me.ste.stevesseries.guilib.listener
import me.ste.stevesseries.guilib.api.GuiManager
import me.ste.stevesseries.guilib.api.gui.inventory.InventoryGuiController
import org.bukkit.entity.Player
import org.bukkit.event.EventHandler
import org.bukkit.event.Listener
import org.bukkit.event.inventory.InventoryClickE... | 0 | Kotlin | 0 | 3 | 1aa7032cb512adea097947fd1e4836a5a5506f82 | 1,241 | SS-GuiLibrary | MIT License |
src/main/java/uos/dev/restcli/report/JunitTestReportGenerator.kt | restcli | 276,395,595 | false | null | package uos.dev.restcli.report
import org.apache.commons.text.StringEscapeUtils
import java.io.Writer
class JunitTestReportGenerator : TestReportGenerator {
override fun generate(testGroupReports: List<TestGroupReport>, writer: Writer) {
val totalTestsNumber = testGroupReports.map { it.testReports.size }.... | 35 | Kotlin | 35 | 272 | cc9087d883742b0c468b0b2874208f6827d210b5 | 2,075 | restcli | MIT License |
nguilib/src/main/java/com/ng/nguilib/layout/zoom/ZoomLayout.kt | jiangzhengnan | 185,233,735 | false | null | package com.ng.nguilib.layout
import android.content.Context
import android.graphics.Color
import android.util.AttributeSet
import android.view.Gravity
import android.view.MotionEvent
import android.view.View
import android.view.ViewGroup
import android.widget.LinearLayout
import com.ng.nguilib.R
/**
* 描述: 普通联动滑动版本
... | 0 | null | 68 | 243 | f528f8ad912f89c66ea3622f2e93a31db062cd93 | 10,157 | NguiLib | Apache License 2.0 |
sdk/src/main/kotlin/io/github/wulkanowy/sdk/mapper/RecipientMapper.kt | wulkanowy | 138,756,468 | false | {"Kotlin": 705036, "HTML": 70768} | package io.github.wulkanowy.sdk.mapper
import io.github.wulkanowy.sdk.pojo.MailboxType
import io.github.wulkanowy.sdk.pojo.Recipient
import io.github.wulkanowy.sdk.scrapper.messages.Recipient as ScrapperRecipient
internal fun List<ScrapperRecipient>.mapRecipients() = map {
it.mapToRecipient()
}
internal fun Scra... | 11 | Kotlin | 5 | 8 | 340245d8ccc2790dcb75219c2839e8bdd8b448a4 | 575 | sdk | Apache License 2.0 |
app/src/main/java/com/gmail/uia059466/simplemath/forgit/fastlesson/gameend/GameEndViewState.kt | serhiq | 288,129,326 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "XML": 48, "Kotlin": 108, "Java": 2} | package com.gmail.uia059466.simplemath.forgit.fastlesson.gameend
import com.gmail.uia059466.simplemath.forgit.utils.FragmentType
import com.gmail.uia059466.simplemath.forgit.utils.IViewState
sealed class GameEndViewState : IViewState {
class ResultState(
val idImg : Int,
val titleId : Int,
... | 1 | null | 1 | 1 | 2227c8afab91e30a333a260bd99c9e8f0e55d4ff | 542 | Simple-math | Apache License 2.0 |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/s3/CfnBucketReplicationDestinationPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.s3
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.String
import software.amazon.awscdk.IRes... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 6,405 | awscdk-dsl-kotlin | Apache License 2.0 |
game2d-core/src/bitspittle/game2d/core/graphics/Color.kt | bitspittle | 167,863,962 | false | null | package bitspittle.game2d.core.graphics
interface ImmutableColor {
val r: Int
val g: Int
val b: Int
val a: Int
}
data class Color constructor(override var r: Int, override var g: Int, override var b: Int, override var a: Int = 255) :
ImmutableColor {
constructor(r: Float, g: Float, b: Float, a... | 0 | Kotlin | 0 | 0 | bdf700f55cefdbf5e50b4c122d2b0c13933aa8d2 | 1,096 | zeldalike-kt | MIT License |
src/test/kotlin/no/nav/tiltakspenger/soknad/api/soknad/validering/Gjenlevendepensjon.kt | navikt | 595,621,185 | false | {"Kotlin": 261158, "Shell": 1093, "Dockerfile": 512} | package no.nav.tiltakspenger.soknad.api.soknad.validering
import io.kotest.matchers.collections.shouldContain
import io.kotest.matchers.shouldBe
import no.nav.tiltakspenger.soknad.api.mockGjenlevendepensjon
import no.nav.tiltakspenger.soknad.api.mockSpørsmålsbesvarelser
import no.nav.tiltakspenger.soknad.api.mockTilta... | 4 | Kotlin | 0 | 0 | 8a98753145da186420c2461dadf1e753b249c433 | 4,147 | tiltakspenger-soknad-api | MIT License |
app/src/main/java/com/tzt/customizekt/diy/widget/TickView.kt | yanglilizhang | 265,766,738 | true | {"Java": 852082, "Kotlin": 655559} | package com.tzt.customizekt.diy.widget
import android.animation.AnimatorSet
import android.animation.ValueAnimator
import android.content.Context
import android.graphics.*
import android.util.AttributeSet
import android.util.Log
import android.util.TypedValue
import android.view.MotionEvent
import android.view.View
im... | 0 | Java | 0 | 0 | c61dfb36a3b98b7ea8b24b0e25b2d10623fb9c6b | 10,727 | customizeKt | Apache License 2.0 |
project/common/src/main/kotlin/ink/ptms/adyeshach/core/entity/manager/event/MetaNaturalGenerateEvent.kt | TabooLib | 284,936,010 | false | {"Kotlin": 1050024, "Java": 35966} | package ink.ptms.adyeshach.core.entity.manager.event
import ink.ptms.adyeshach.core.entity.EntityInstance
import ink.ptms.adyeshach.core.entity.MetaNatural
import org.bukkit.entity.Player
/**
* @author sky
* @since 2020-08-14 19:21
*/
class MetaNaturalGenerateEvent(val entity: EntityInstance, val player: Player, v... | 13 | Kotlin | 86 | 98 | ac7098b62db19308c9f14182e33181c079b9e561 | 382 | adyeshach | MIT License |
src/main/kotlin/me/chill/actionmap/ActionMapObservable.kt | omnius-project | 162,356,119 | false | null | package me.chill.actionmap
/**
* [ActionMapObserver] subscribe to this to be notified when actions from the [ActionMap]
* is made.
*
* @see [ActionMapObserver]
*/
interface ActionMapObservable {
/**
* Adds an [ActionMapObserver] to the observable.
*
* @param actionMapObserver [ActionMapObserver] to ad... | 0 | Kotlin | 1 | 13 | db345882bcac605e6fedf23a76f030689f303601 | 796 | Omnius | MIT License |
app/src/main/java/wannabit/io/cosmostaion/chain/cosmosClass/ChainInjective.kt | cosmostation | 418,314,439 | false | null | package wannabit.io.cosmostaion.chain.cosmosClass
import android.os.Parcelable
import com.google.common.collect.ImmutableList
import kotlinx.parcelize.Parcelize
import org.bitcoinj.crypto.ChildNumber
import wannabit.io.cosmostaion.R
import wannabit.io.cosmostaion.chain.AccountKeyType
import wannabit.io.cosmostaion.cha... | 0 | null | 43 | 76 | 4d2de2e7f06bd98c156f7695f8da363d5a402762 | 1,162 | cosmostation-android | MIT License |
src/main/kotlin/org/patternfly/Dropdown.kt | cybernetics | 322,236,867 | true | {"Kotlin": 348248, "Shell": 3140} | package org.patternfly
import dev.fritz2.binding.EmittingHandler
import dev.fritz2.binding.Handler
import dev.fritz2.binding.RootStore
import dev.fritz2.binding.mountSingle
import dev.fritz2.dom.Listener
import dev.fritz2.dom.Tag
import dev.fritz2.dom.html.Button
import dev.fritz2.dom.html.Div
import dev.fritz2.dom.ht... | 0 | null | 0 | 0 | 4525e856316e73e8bbd85b01e5b881f19cb8155a | 22,892 | patternfly-fritz2 | Apache License 2.0 |
app/src/main/java/org/stepic/droid/persistence/storage/PersistentStateManager.kt | StepicOrg | 42,045,161 | false | null | package org.stepic.droid.persistence.storage
import org.stepic.droid.persistence.model.PersistentState
import org.stepic.droid.persistence.model.Structure
interface PersistentStateManager {
fun invalidateStructure(structure: Structure, state: PersistentState.State)
fun getState(id: Long, type: PersistentStat... | 13 | null | 54 | 189 | dd12cb96811a6fc2a7addcd969381570e335aca7 | 384 | stepik-android | Apache License 2.0 |
app/src/main/kotlin/com/github/rougsig/flowmarbles/component/sandbox/SandBoxInput.kt | rougsig | 246,385,526 | false | null | package com.github.rougsig.flowmarbles.component.sandbox
import com.github.rougsig.flowmarbles.component.timeline.Marble
import com.github.rougsig.flowmarbles.component.timeline.Timeline
import com.github.rougsig.flowmarbles.core.Component
import com.github.rougsig.flowmarbles.core.ListComponent
import com.github.roug... | 2 | Kotlin | 9 | 225 | 5d148827aa406a118e8ad150229d25c6f50dfe3d | 1,031 | flowmarbles | MIT License |
app/src/main/java/io/sabag/androidConferences/conferencesList/ConferencesViewHolder.kt | SabagRonen | 137,562,037 | false | {"Kotlin": 83774} | package io.sabag.androidConferences.conferencesList
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import io.sabag.androidConferences.ConferenceState
import io.saba... | 0 | Kotlin | 0 | 0 | f87032076de387631e8f1add68b59d71d21fe2ba | 1,823 | android-conferences | MIT License |
android-iconivoid-simplelineicons/src/main/java/io/github/diegoflassa/iconivoid/fonts/SimpleLineIconsModule.kt | diegoflassa | 292,420,870 | true | {"Kotlin": 218187} | package io.github.diegoflassa.iconivoid.fonts
import io.github.diegoflassa.iconivoid.Icon
import io.github.diegoflassa.iconivoid.IconFontDescriptor
class SimpleLineIconsModule : IconFontDescriptor {
override fun ttfFileName(): String {
return "iconivoid/android-iconivoid-simplelineicons-1.0.0.ttf"
}
... | 0 | Kotlin | 0 | 0 | 702727ac6eb4eff6deef6ba76093972a3d8cc2bb | 579 | android-iconivoid | Apache License 2.0 |
src/test/kotlin/g0801_0900/s0870_advantage_shuffle/SolutionTest.kt | javadev | 190,711,550 | false | {"Kotlin": 4870729, "TypeScript": 50437, "Python": 3646, "Shell": 994} | package g0801_0900.s0870_advantage_shuffle
import org.hamcrest.CoreMatchers.equalTo
import org.hamcrest.MatcherAssert.assertThat
import org.junit.jupiter.api.Test
internal class SolutionTest {
@Test
fun advantageCount() {
assertThat(
Solution().advantageCount(intArrayOf(2, 7, 11, 15), intA... | 0 | Kotlin | 20 | 43 | e8b08d4a512f037e40e358b078c0a091e691d88f | 640 | LeetCode-in-Kotlin | MIT License |
app/src/main/java/com/androidexamples/app/database/ExampleDatabase.kt | marcosvbras | 76,180,656 | false | null | package com.androidexamples.app.database
import android.content.Context
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper
/**
* Created by marcosvbras on 22/01/17.
*/
class ExampleDatabase(context: Context) {
private val databaseHelper: DatabaseHelper = DatabaseHelp... | 0 | Kotlin | 0 | 0 | 9d0d87c081f832786ff2a5d7d362d2fa596306a9 | 1,105 | AndroidExamples | Apache License 2.0 |
Dingo/app/src/main/java/com/example/dingo/model/service/PostService.kt | quarterdill | 646,621,724 | false | null | package com.example.dingo.model.service
import com.example.dingo.model.Comment
import com.example.dingo.model.DingoDexEntry
import com.example.dingo.model.Post
import kotlinx.coroutines.flow.Flow
interface PostService {
// returns post id
suspend fun createPost(
userId: String,
username: Strin... | 1 | Kotlin | 0 | 4 | 27d35a193c071eec4eec91a3bbd170419edefc43 | 976 | Dingo | MIT License |
TheFirst/app/src/main/java/com/example/thefirst/activities/HomeActivity.kt | toilathor | 832,531,599 | false | {"Kotlin": 82031} | package com.example.thefirst.activities
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.com... | 0 | Kotlin | 0 | 0 | b9ede3b3c5a2dd524604fd516ddee2a434280215 | 12,784 | LearnJetpackCompose | MIT License |
app/binary-utils/src/test/kotlin/com/github/c64lib/retroassembler/binutils/WordTest.kt | Cumbayah | 405,651,085 | true | {"Kotlin": 274338, "Shell": 560} | /*
MIT License
Copyright (c) 2018-2022 c64lib: The Ultimate Commodore 64 Library
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 us... | 0 | Kotlin | 0 | 0 | d9d66768bab1a1899a4fbe30d25c8cd30c342f56 | 1,913 | gradle-retro-assembler-plugin | MIT License |
app/src/main/kotlin/com/simplemobiletools/camera/Adapter/ViewConnection.kt | ribal-aladeeb | 222,542,363 | false | null | package com.cisco.or.adapter
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter
internal class TabAdapter(manager: FragmentManager) : FragmentPagerAdapter(manager) {
private val fragmentList = ArrayList<Fragment>()
private val... | 1 | null | 2 | 1 | a4d664b0878e8e86e126c45fb0df9f5aa62ce5b3 | 790 | Simple-Camera | Apache License 2.0 |
buildSrc/src/main/kotlin/Logging.kt | SenhorCastor | 336,847,896 | false | null | object Logging {
object Versions {
}
const val microUtils = "io.github.microutils:kotlin-logging-jvm:2.0.2"
const val slf4j = "org.slf4j:slf4j-log4j12:1.7.30"
} | 0 | Kotlin | 0 | 0 | 8343471bfcae4c72369dc0035e9eb9a5c32457c3 | 178 | leave-transaction-control-to-the-client | Apache License 2.0 |
frogothemoviedbapi/src/main/java/com/frogobox/frogothemoviedbapi/data/model/SearchPeopleResult.kt | amirisback | 244,968,500 | false | null | package com.frogobox.frogothemoviedbapi.data.model
import com.frogobox.frogothemoviedbapi.data.model.SearchPeopleKnownFor
data class SearchPeopleResult(
val adult: Boolean?,
val id: Int?,
val known_for: List<SearchPeopleKnownFor>?,
val name: String?,
val popularity: Double?,
val profile_path: ... | 0 | Kotlin | 2 | 17 | ba2dd472185525a52c505e353c04fc5cc8f501b0 | 329 | consumable-code-movie-tmdb-api | Apache License 2.0 |
compose-destinations-codegen/src/main/java/com/ramcosta/composedestinations/codegen/templates/DestinationTemplate.kt | raamcosta | 402,228,168 | false | {"Kotlin": 598388} | package com.ramcosta.composedestinations.codegen.templates
import com.ramcosta.composedestinations.codegen.codeGenBasePackageName
import com.ramcosta.composedestinations.codegen.commons.CORE_PACKAGE_NAME
import com.ramcosta.composedestinations.codegen.templates.core.FileTemplate
import com.ramcosta.composedestinations... | 67 | Kotlin | 124 | 2,949 | 460a5948fa51c0147f431a9a142980b1743e9f12 | 2,664 | compose-destinations | Apache License 2.0 |
app/src/main/java/com/pt/pro/gallery/activities/FragmentAlbumGallery.kt | OmAr-Kader | 674,357,483 | false | {"Kotlin": 2780433} | package com.pt.pro.gallery.activities
import com.pt.common.global.*
import com.pt.common.media.*
import com.pt.common.stable.*
class FragmentAlbumGallery : ParentFragmentGallery<com.pt.pro.gallery.fasten.StubGalleryAllFasten>(),
com.pt.pro.gallery.interfaces.GalleryCommonInterface {
override var itemListener... | 0 | Kotlin | 0 | 0 | fe57fe5a4029119ac287ab8d3d4b5ccfc05af3a0 | 13,551 | PT-All-Pro | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.