path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/jenson/wanandroid/ui/MainFragment.kt | CDJenson | 322,157,259 | false | null | package com.jenson.wanandroid.ui
import android.view.View
import androidx.fragment.app.Fragment
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.jenson.core.base.BaseMvvmFragment
import com.jenson.core.base.DataBindingConfig
import com.jenson.wanandroid.R
import com.jenson.wanandroid.databinding.Frag... | 0 | Kotlin | 0 | 1 | f70fe882591ec0a19f334584b998979d6846c239 | 1,990 | wanandroid | Apache License 2.0 |
samples/mapzen-sample/src/test/java/mapzen/com/sdksampleapp/presenters/MainPresenterTest.kt | jackba | 109,470,192 | true | {"Java": 519905, "Shell": 5071} | package mapzen.com.sdksampleapp.presenters
import mapzen.com.sdksampleapp.R
import mapzen.com.sdksampleapp.TestMainController
import mapzen.com.sdksampleapp.fragments.BaseFragment
import mapzen.com.sdksampleapp.models.MapSampleList.Companion.MAP_SAMPLES
import mapzen.com.sdksampleapp.models.MoreSampleList.Companion.MO... | 0 | Java | 0 | 0 | 526b3d58c6b2ff182ddc8743644c667ccdb14793 | 4,224 | android-8 | Apache License 2.0 |
libnavui-shield/src/test/java/com/mapbox/navigation/ui/shield/model/RouteShieldTest.kt | mapbox | 87,455,763 | false | {"Kotlin": 9692008, "Python": 65081, "Java": 36829, "HTML": 17811, "Makefile": 9840, "Shell": 7129} | package com.mapbox.navigation.ui.shield.model
import android.content.Context
import android.graphics.Bitmap
import android.os.Build
import androidx.test.core.app.ApplicationProvider
import com.mapbox.api.directions.v5.models.MapboxShield
import com.mapbox.navigation.ui.utils.internal.SvgUtil
import io.mockk.every
impo... | 505 | Kotlin | 319 | 621 | ad73c6011348cb9b24b92a369024ca06f48845ab | 8,961 | mapbox-navigation-android | Apache License 2.0 |
UnrealMedia/app/src/main/java/com/qfleng/um/fragment/BaseFragment.kt | Duke1 | 424,109,115 | false | {"C": 1130702, "C++": 265768, "Kotlin": 161384, "CMake": 3601, "Shell": 2296, "Makefile": 1970} | package com.qfleng.um.fragment
import android.os.Bundle
import android.os.Handler
import androidx.annotation.IdRes
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.qfleng.um.BaseActivity
/**
* Created by Duke
*/
abstract clas... | 0 | C | 0 | 1 | a3154274937acf58e2bf42207414ff5e2984f553 | 942 | UnrealMedia | MIT License |
client/src/commonTest/kotlin/serialize/indexing/TestBatchOperation.kt | algolia | 153,273,215 | false | null | package serialize.indexing
import com.algolia.search.model.Attribute
import com.algolia.search.model.ObjectID
import com.algolia.search.model.indexing.BatchOperation
import com.algolia.search.model.indexing.BatchOperation.AddObject
import com.algolia.search.model.indexing.BatchOperation.ClearIndex
import com.algolia.s... | 8 | Kotlin | 11 | 43 | 1e538208c9aa109653f334ecd22a8205e294c5c1 | 3,652 | algoliasearch-client-kotlin | MIT License |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/DeviceCctv.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.tabler.tabler.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
im... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 3,331 | compose-icon-collections | MIT License |
uisdk/src/test/java/tech/dojo/pay/uisdk/domain/IsSDKInitializedCorrectlyUseCaseTest.kt | dojo-engineering | 478,120,913 | false | {"Kotlin": 1010135} | package tech.dojo.pay.uisdk.domain
import org.junit.Assert.assertEquals
import org.junit.Before
import org.junit.Test
import org.mockito.kotlin.given
import org.mockito.kotlin.mock
import tech.dojo.pay.uisdk.domain.entities.PaymentIntentDomainEntity
import tech.dojo.pay.uisdk.entities.DojoPaymentType
class IsSDKIniti... | 1 | Kotlin | 2 | 3 | 4f9e9be58189d22f5269a53bcc1a2b2028a777df | 2,403 | android-dojo-pay-sdk | MIT License |
uisdk/src/test/java/tech/dojo/pay/uisdk/domain/IsSDKInitializedCorrectlyUseCaseTest.kt | dojo-engineering | 478,120,913 | false | {"Kotlin": 1010135} | package tech.dojo.pay.uisdk.domain
import org.junit.Assert.assertEquals
import org.junit.Before
import org.junit.Test
import org.mockito.kotlin.given
import org.mockito.kotlin.mock
import tech.dojo.pay.uisdk.domain.entities.PaymentIntentDomainEntity
import tech.dojo.pay.uisdk.entities.DojoPaymentType
class IsSDKIniti... | 1 | Kotlin | 2 | 3 | 4f9e9be58189d22f5269a53bcc1a2b2028a777df | 2,403 | android-dojo-pay-sdk | MIT License |
library/src/test/java/org/akop/ararat/formatter/TestNYTFormatter.kt | 0xe1f | 59,173,682 | false | {"Kotlin": 342157} | // Copyright (c) Akop Karapetyan
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, di... | 1 | Kotlin | 10 | 30 | 4e8084f5cd3fe2c1fdf30a9eca7d5860835b842d | 6,498 | ararat | MIT License |
library/src/test/java/org/akop/ararat/formatter/TestNYTFormatter.kt | 0xe1f | 59,173,682 | false | {"Kotlin": 342157} | // Copyright (c) <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute,... | 1 | Kotlin | 10 | 30 | 4e8084f5cd3fe2c1fdf30a9eca7d5860835b842d | 6,478 | ararat | MIT License |
app/src/main/kotlin/taiwan/no1/app/ssfm/models/data/remote/config/IApiConfig.kt | pokk | 90,497,127 | false | null | package taiwan.no1.app.ssfm.models.data.remote.config
/**
* Interface of the setting of the difference http configurations.
*
* @author jieyi
* @since 5/10/17
*/
interface IApiConfig {
/**
* Obtain the base http url.
*
* @return restful api base url information.
*/
fun getApiBaseUrl... | 0 | Kotlin | 0 | 1 | 1928c2f1a42634ede147517854d06b6fd5d11e7b | 332 | SSFM | Apache License 2.0 |
app/src/main/java/com/example/spaceinvaders/view/MainActivity.kt | BigGafLeo | 642,433,397 | false | {"Kotlin": 16868} | package com.example.spaceinvaders.view
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import com.example.spaceinvaders.R
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
sup... | 0 | Kotlin | 0 | 0 | 2de18e7d962f9d19f2b3a48cdcbeaf81c67ca2fa | 1,336 | SpaceInvaders | MIT License |
shared/src/commonMain/kotlin/tech/alexib/yaba/kmm/model/Transaction.kt | LouisCAD | 380,833,587 | true | {"Kotlin": 184981, "Ruby": 2062, "Swift": 344, "Shell": 306} | package tech.alexib.yaba.kmm.model
import com.benasher44.uuid.Uuid
import kotlinx.datetime.LocalDate
import tech.alexib.yaba.data.db.TransactionEntity
interface TransactionValues{
enum class Type {
DIGITAL,
PLACE,
SPECIAL,
UNRESOLVED
}
}
enum class TransactionType {
DIGIT... | 0 | null | 0 | 0 | f46020f59be5f1603ee00d7540d83bf7d6840a1c | 978 | yaba-kmm | Apache License 2.0 |
shared/src/commonMain/kotlin/tech/alexib/yaba/kmm/model/Transaction.kt | LouisCAD | 380,833,587 | true | {"Kotlin": 184981, "Ruby": 2062, "Swift": 344, "Shell": 306} | package tech.alexib.yaba.kmm.model
import com.benasher44.uuid.Uuid
import kotlinx.datetime.LocalDate
import tech.alexib.yaba.data.db.TransactionEntity
interface TransactionValues{
enum class Type {
DIGITAL,
PLACE,
SPECIAL,
UNRESOLVED
}
}
enum class TransactionType {
DIGIT... | 0 | null | 0 | 0 | f46020f59be5f1603ee00d7540d83bf7d6840a1c | 978 | yaba-kmm | Apache License 2.0 |
shared/src/main/java/de/loosetie/k8s/dsl/impls/VolumeAttachment.kt | loosetie | 283,145,621 | false | null | package de.loosetie.k8s.dsl.impls
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.annotation.JsonPropertyOrder
import de.loosetie.k8s.dsl.K8sManifest
import de.loosetie.k8s.dsl.HasParent
import de.loosetie.k8s.dsl.manifests.*
@JsonPropertyOrder("apiVersion", "kind", "metadata", "spec",... | 0 | Kotlin | 0 | 1 | aaf63cb956f15863ad37ebe3532cb604f9b9506c | 1,963 | k8s-dsl | Apache License 2.0 |
src/main/java/ir/toolki/ganmaz/classification/Evaluator.kt | shahrivari | 89,123,069 | false | null | package ir.toolki.ganmaz.classification
import com.google.common.math.Stats
import java.util.*
object Evaluator {
fun randomPrecisionTest(docs: List<Document>):List<Double> {
val list = mutableListOf<Double>()
for (i in 1..10) {
Collections.shuffle(docs)
val train = docs.su... | 0 | Kotlin | 1 | 0 | 28bcece0ef72aab8fb6abf7fbc898f0374200b3e | 1,647 | ganmaz | MIT License |
lib_permission_monitor/src/main/java/com/ysj/lib/permission/monitor/MonitorClipboard.kt | Ysj001 | 704,886,708 | false | {"Kotlin": 30471} | package com.ysj.lib.permission.monitor
import android.content.ClipData
import com.ysj.lib.bcu.modifier.aspect.api.*
/**
* 剪贴板
*
* @author Ysj
* Create time: 2023/10/14
*/
@Aspect
class MonitorClipboard {
@Pointcut(
target = "class:android/content/ClipboardManager",
funName = "getPrimaryClip"... | 0 | Kotlin | 0 | 1 | 7524b657896b53316c947113b15a47d3432fac5a | 1,628 | PermissionMonitor | Apache License 2.0 |
app/src/main/java/com/android/sample/app/domain/Dashboard.kt | alirezaeiii | 459,039,118 | false | {"Kotlin": 41731} | package com.android.sample.app.domain
import com.android.sample.app.database.dashboard.DbDashboard
import com.android.sample.app.database.dashboard.DbLink
import com.google.gson.annotations.SerializedName
class Dashboard(
@SerializedName("_links") val links: Links
)
fun Dashboard.asDatabaseModel(): DbDashboard {... | 0 | Kotlin | 4 | 8 | 2415e52dabb4c9ad2edb524d4bfc527ff94e5e48 | 472 | Navigation-Compose | The Unlicense |
app/src/main/java/com/dnnt/touch/ui/splash/SplashActivity.kt | zhoujucheng | 119,154,071 | false | null | package com.dnnt.touch.ui.splash
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.content.Context
import android.content.Intent
import android.graphics.Color
import android.os.Build
import android.support.v7.app.AppCompatActivity
import androi... | 0 | Kotlin | 0 | 1 | b7a85731b95beb93c5f6f18482f4efbe38935d7d | 2,784 | Touch | Apache License 2.0 |
shared/src/commonMain/kotlin/com/shagalalab/sozlik/shared/domain/mvi/feature/search/SearchStore.kt | shagalalab | 669,155,291 | false | {"Kotlin": 83715, "Swift": 652, "Shell": 228, "Ruby": 101} | package com.shagalalab.sozlik.shared.domain.mvi.feature.search
import com.shagalalab.sozlik.CommonRes
import com.shagalalab.sozlik.shared.domain.mvi.base.Store
import com.shagalalab.sozlik.shared.domain.repository.DictionaryRepository
import dev.icerock.moko.resources.format
import kotlinx.coroutines.CoroutineScope
im... | 5 | Kotlin | 0 | 0 | 2ac980aabc51ae9c416e86801dfa202f6d5b2629 | 3,035 | sozlik-kmp | Apache License 2.0 |
app/src/main/java/com/andrii_a/walleria/ui/util/ColorUtils.kt | andrew-andrushchenko | 525,795,850 | false | {"Kotlin": 656065} | package com.andrii_a.walleria.ui.util
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.toArgb
import kotlin.math.sqrt
import android.graphics.Color as AndroidColor
import androidx.compose.ui.graphics.Color as ComposeColor
fun isBrightColor(color: Int): Boolean {
if (android.R.color.t... | 0 | Kotlin | 2 | 3 | c25661c610d3197390ac86b7c63295a10095e622 | 780 | Walleria | MIT License |
app/src/main/java/org/devstrike/app/citrarb/network/NetworkUtils.kt | Devstrike-DigTech | 555,884,168 | false | null | /*
* Copyright (c) 2022.
* <NAME>
* For Afro Connect Technologies
* Under the Authority of Devstrike Digital Ltd.
*
*/
package org.devstrike.app.citrarb.network
import android.content.Context
import android.net.ConnectivityManager
import android.net.NetworkCapabilities
/**
* Util File to check the internet co... | 43 | Kotlin | 0 | 0 | c5ea61d83b8211d949efaee0a1215d9b284f570f | 937 | CITRARB--Android-App | Apache License 2.0 |
features/bankroll/presentation/navigation/src/main/java/com/mctech/pokergrinder/bankroll/presentation/navigation/BankrollNavigation.kt | MayconCardoso | 539,349,342 | false | null | package com.mctech.pokergrinder.bankroll.presentation.navigation
/**
* Used to navigate through bankroll feature components.
*/
interface BankrollNavigation {
/**
* Goes to deposit screen.
*/
fun goToBankrollDeposit()
/**
* Goes to withdraw screen.
*/
fun goToBankrollWithdraw()
/**
* Navi... | 7 | Kotlin | 0 | 7 | d4a6f48fa73c0259d87934873a8ccb63b53694f3 | 360 | poker-grinder | Apache License 2.0 |
src/main/kotlin/us/timinc/mc/cobblemon/counter/Counter.kt | timinc-cobble | 710,693,076 | false | {"Kotlin": 27709} | package us.timinc.mc.cobblemon.counter
import com.cobblemon.mod.common.Cobblemon
import com.cobblemon.mod.common.api.events.CobblemonEvents
import com.cobblemon.mod.common.api.events.battles.BattleVictoryEvent
import com.cobblemon.mod.common.api.events.pokemon.PokemonCapturedEvent
import com.cobblemon.mod.common.api.s... | 5 | Kotlin | 0 | 0 | 3937bad20632f1a5084e86db6790c927df6572ee | 8,935 | cobblemon-counter-1.3-fabric | MIT License |
app/android/ui/app/public/src/main/kotlin/build/wallet/ui/app/lock/SplashLockScreen.kt | proto-at-block | 761,306,853 | false | {"C": 10466710, "Kotlin": 7664430, "Rust": 2227410, "Swift": 819829, "HCL": 342978, "Python": 333879, "Shell": 123336, "TypeScript": 116450, "C++": 69203, "Meson": 64867, "JavaScript": 36227, "Just": 30823, "Ruby": 9555, "Dockerfile": 5928, "Makefile": 3839, "Open Policy Agent": 1552, "Procfile": 80} | package build.wallet.ui.app.lock
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import andr... | 3 | C | 16 | 109 | db54eb6236abdbd904a21de1facc1bc5ab9f6e6f | 2,792 | bitkey | MIT License |
app/src/main/java/com/ytrewqwert/yetanotherjnovelreader/data/htmlparser/tags/pairtags/PPairTagApplier.kt | ETSEmpiricalStudyKotlinAndroidApps | 496,710,064 | true | {"Kotlin": 238555} | package com.ytrewqwert.yetanotherjnovelreader.data.htmlparser.tags.pairtags
import android.text.Spannable
import android.text.SpannableStringBuilder
import android.text.style.LeadingMarginSpan
import android.text.style.RelativeSizeSpan
import com.ytrewqwert.yetanotherjnovelreader.data.Repository
import com.ytrewqwert.... | 0 | null | 0 | 0 | 63c12ceb1f34c60128475169fc6a727769e0dbd4 | 1,496 | YetAnotherJNovelReader | MIT License |
ui/root/src/commonMain/kotlin/dev/avatsav/linkding/ui/root/AppContent.kt | avatsav | 576,855,763 | false | {"Kotlin": 251009, "Swift": 1688} | package dev.avatsav.linkding.ui.root
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.collectAsState
import androidx.compose.ru... | 1 | Kotlin | 0 | 8 | 76d67579c92fcbe8ab7eb7386fab4b1c9c0b5918 | 4,346 | linkding-apps | MIT License |
src/main/kotlin/dom/google/shinyay/command/AppRunner.kt | shinyay | 304,882,382 | false | null | package dom.google.shinyay.command
import dom.google.shinyay.logger
import dom.google.shinyay.service.BookingService
import org.springframework.boot.CommandLineRunner
import org.springframework.stereotype.Component
import org.springframework.util.Assert
@Component
class AppRunner(val bookingService: BookingService) :... | 0 | Kotlin | 0 | 0 | 7255180cc4fde36083fcf98012fd1e8c6606e6c4 | 1,429 | spring-jdbc-transaction-gs | MIT License |
server/src/main/kotlin/db/dao/Students.kt | neckbosov | 402,860,833 | false | {"Kotlin": 187897, "Dockerfile": 140} | package db.dao
import org.jetbrains.exposed.dao.id.LongIdTable
object Students : LongIdTable() {
val profileId = entityId("profile_id", Profiles).uniqueIndex().references(Profiles.id)
val university = varchar("university", 256)
val faculty = varchar("faculty", 256)
val degree = varchar("step", 50)
... | 0 | Kotlin | 0 | 0 | ef61dac687e15a68970d7ce4d49ae02c7591d22b | 509 | software-engineering | Apache License 2.0 |
app/src/main/java/com/dfl/xkdc/di/components/XkcdComponent.kt | dfloureiro | 148,074,026 | false | null | package com.dfl.xkdc.di.components
import com.dfl.xkdc.XkcdApplication
import com.dfl.xkdc.interactor.ComicsInteractor
import com.dfl.xkdc.di.modules.RepositoryModule
import com.dfl.xkdc.di.modules.XkcdModule
import com.dfl.xkdc.loader.ImageLoader
import com.dfl.xkdc.schedulers.RxSchedulers
import dagger.Component
imp... | 0 | Kotlin | 1 | 1 | 7b999dd9237fa9f65b8353dcca7feaf4a8389de1 | 619 | xkcd-reader | Apache License 2.0 |
android/src/main/kotlin/rekab/app/background_locator/provider/BLLocationProvider.kt | DebkanchanSamadder | 344,363,009 | true | {"Kotlin": 50913, "Dart": 30874, "Objective-C": 20108, "Ruby": 2080, "Swift": 1008} | package rekab.app.background_locator.provider
import android.app.PendingIntent
import android.content.Intent
import java.util.HashMap
interface BLLocationProvider {
var listener: LocationUpdateListener?
fun removeLocationUpdates()
fun requestLocationUpdates(request: LocationRequestOptions)
}
| 0 | Kotlin | 0 | 0 | e2b219094696144b847c3de14cc240b7d488b6ca | 309 | background_locator | MIT License |
feature/spell-compendium/compose/src/commonMain/kotlin/br/alexandregpereira/hunter/spell/compendium/SpellCompendiumFeature.kt | alexandregpereira | 347,857,709 | false | {"Kotlin": 1412071, "Swift": 754, "Shell": 139} | package br.alexandregpereira.hunter.spell.compendium
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import br.alexandregpereira.hunter.spell.compendium.ui.SpellCompendiumScreen
import org.koin.compose.koinInject
@Compos... | 4 | Kotlin | 5 | 85 | 5256ca9553e070f11a8cde5515afb74503b1a23c | 631 | Monster-Compendium | Apache License 2.0 |
app/src/test/java/com/techbeloved/hymnbook/fakes/TestSharedPreferencesImp.kt | techbeloved | 133,724,406 | false | null | package com.techbeloved.hymnbook.fakes
import android.content.res.Resources
import com.f2prateek.rx.preferences2.RxSharedPreferences
import com.techbeloved.hymnbook.data.SharedPreferencesRepo
import io.reactivex.Observable
import io.reactivex.Single
class TestSharedPreferencesImp(private val rxPreferences: RxSharedPr... | 2 | Kotlin | 6 | 7 | 19451208eb3d0ca3060e388bc4a41cf487a3ca63 | 2,094 | hymnbook | MIT License |
codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/awsquery/AwsQueryProtocolGenerator.kt | shepazon | 413,887,390 | true | {"Kotlin": 269853, "Swift": 122345, "Shell": 5653, "Dockerfile": 834} | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
package software.amazon.smithy.aws.swift.codegen.awsquery
import software.amazon.smithy.aws.swift.codegen.AWSHttpBindingProtocolGenerator
import software.amazon.smithy.aws.swift.codegen.AWSHttpProtocol... | 0 | null | 0 | 0 | 5c23e1f46279037a5289fd5017b1f0134123f9a7 | 5,611 | aws-sdk-swift-1 | Apache License 2.0 |
app/src/main/java/com/devcode/storyapp/ViewModelFactory.kt | AlvinPradanaAntony | 632,326,639 | false | null | package com.devcode.storyapp
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.devcode.storyapp.model.UserPreferences
import com.devcode.storyapp.ui.home.MainViewModel
import com.devcode.storyapp.ui.login.LoginViewModel
import com.devcode.storyapp.ui.register.RegisterViewModel
... | 0 | Kotlin | 0 | 0 | c961195dbe96799c8d0bc45d3644c1baa2d3fdee | 1,051 | Story-App | Apache License 2.0 |
permissions/domain/src/main/java/com/specure/permissions/domain/PermissionHandler.kt | specure | 873,558,864 | false | {"Kotlin": 183802} | package com.cadrikmdev.permissions.domain
import com.cadrikmdev.permissions.domain.model.Permission
interface PermissionHandler {
fun setPermissionsNeeded(permissions: LinkedHashMap<String, Permission>)
fun checkPermissionsState()
fun updatePermissionStateAfterAsking(permission: String, isGranted: Boole... | 0 | Kotlin | 0 | 0 | d8312d2a8a947b8fd7e0a36fe0647fb2a5e7a881 | 1,024 | ont-drive-test-tool-tracker | Apache License 2.0 |
app/src/main/java/com/simba/dashboard_design_app/data/UserApiService.kt | Simba-97 | 585,660,086 | false | null | package com.simba.dashboard_design_app.data
import com.simba.dashboard_design_app.data.models.ImageDetails
import com.simba.dashboard_design_app.utils.ApiEndpoint
import retrofit2.http.GET
import retrofit2.http.Query
interface UserApiService {
//Could have implemented pagination but did not implement pagination ... | 0 | Kotlin | 0 | 0 | ce4b643f3bd024f96aa0194034849c1d4e2845de | 577 | Dashboard-Design | Apache License 2.0 |
app/src/main/java/com/upm/ard/data/remote/adapter/NetworkResponse.kt | huyenph | 527,400,685 | false | null | package com.upm.ard.data.remote.adapter
import java.io.IOException
sealed class NetworkResponse<out S : Any, out E : Any> {
/**
* Success response with body
*/
data class Success<S : Any>(val body: S, val code: Int) : NetworkResponse<S, Nothing>()
/**
* Failure response with body
*/
... | 0 | Kotlin | 0 | 0 | 9fbf0575de509ac77b618f34fb37260b4a3474a3 | 731 | ARD | MIT License |
gradle/build-logic/convention/src/main/kotlin/io/filmtime/gradle/ProjectExt.kt | moallemi | 633,160,161 | false | {"Kotlin": 522936, "Shell": 3102} | package io.filmtime.gradle
import org.gradle.api.Project
import org.gradle.api.artifacts.VersionCatalog
import org.gradle.api.artifacts.VersionCatalogsExtension
import org.gradle.kotlin.dsl.getByType
val Project.libs
get(): VersionCatalog = extensions
.getByType<VersionCatalogsExtension>()
.named("libs")
| 21 | Kotlin | 14 | 87 | ad3eeed30bed20216a9fa12e34f06e43b70a74cc | 318 | Film-Time | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/prisonregister/model/EmailAddressRepository.kt | ministryofjustice | 337,466,567 | false | {"Kotlin": 291392, "Dockerfile": 1443, "Shell": 238} | package uk.gov.justice.digital.hmpps.prisonregister.model
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.jpa.repository.Modifying
import org.springframework.data.jpa.repository.Query
import org.springframework.stereotype.Repository
@Repository
interface EmailAddressReposi... | 2 | Kotlin | 1 | 2 | 8ff71d580aa72d0b96b173624991d3880af8bbcb | 646 | prison-register | MIT License |
server/src/main/kotlin/com/jmb_bms_server/utils/SaveFile.kt | alarm-clock | 770,853,740 | false | {"Kotlin": 225146, "Shell": 3947, "JavaScript": 672, "HTML": 65} | /**
* @file: SaveFile.kt
* @author: <NAME> <<EMAIL>,<EMAIL>>
* Description: File containing extension method for file item
*/
package com.jmb_bms_server.utils
import io.ktor.http.content.*
import java.io.File
/**
* Extension method for [PartData.FileItem] that saves file item into file on [path]
*
* @param pat... | 0 | Kotlin | 0 | 0 | 928c6e44c98999d37e2f9ac663ff07b8bc3ca0cf | 863 | PERLA_Server | MIT License |
search/src/main/kotlin/com/oneliang/ktx/frame/search/engine/ResourceWriter.kt | oneliang | 262,052,605 | false | {"Kotlin": 1450345, "Java": 255657, "C": 27979, "HTML": 3956} | package com.oneliang.ktx.frame.search.engine
interface ResourceWriter<K, V> {
/**
* write
* @param key
* @param value
*/
fun write(key: K, value: V)
} | 0 | Kotlin | 1 | 0 | 3491fa228f5aa8eb44261ca8daba59cc5294bd73 | 180 | frame-kotlin | Apache License 2.0 |
springmvc/src/main/kotlin/de/richargh/springkotlinhexagonal/config/WebMvcConfig.kt | Richargh | 165,030,359 | false | null | package de.richargh.springkotlinhexagonal.config
import org.springframework.context.ApplicationContext
import org.springframework.context.ApplicationContextAware
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.http.converter.Http... | 0 | Kotlin | 0 | 1 | f91b0de43d49dc596daeccc8fc0c929e65eb0de9 | 1,985 | spring-kotlin-hexagonal | MIT License |
adoptopenjdk-api-v3-updater/src/test/kotlin/net/adoptopenjdk/api/V3UpdaterTest.kt | ParkerM | 196,649,475 | true | {"Kotlin": 409616, "HTML": 1846, "Shell": 1234, "CSS": 992, "Dockerfile": 655} | package net.adoptopenjdk.api
import kotlinx.coroutines.runBlocking
import net.adoptopenjdk.api.v3.V3Updater
import net.adoptopenjdk.api.v3.dataSources.ApiPersistenceFactory
import net.adoptopenjdk.api.v3.dataSources.models.AdoptRepos
import org.junit.jupiter.api.Test
import org.slf4j.LoggerFactory
import kotlin.test.a... | 0 | Kotlin | 0 | 0 | fc6204c8b5ca7ab0560629321a2d107bb2d83ef5 | 1,340 | openjdk-api-v3 | Apache License 2.0 |
src/main/kotlin/com/sbl/sulmun2yong/ai/adapter/ChatAdapter.kt | SUIN-BUNDANG-LINE | 819,257,518 | false | {"Kotlin": 442054} | package com.sbl.sulmun2yong.ai.adapter
import com.sbl.sulmun2yong.ai.domain.PythonFormattedQuestion
import com.sbl.sulmun2yong.ai.domain.PythonFormattedSection
import com.sbl.sulmun2yong.ai.domain.PythonFormattedSurvey
import com.sbl.sulmun2yong.ai.dto.python.request.EditQuestionRequestToPython
import com.sbl.sulmun2y... | 0 | Kotlin | 1 | 3 | fd11ad0798abcf9ac457735bdc15ee36026e2229 | 4,030 | Backend | MIT License |
client/android/div/src/main/java/com/yandex/div/core/util/Releasables.kt | divkit | 523,491,444 | false | {"Kotlin": 7327303, "Swift": 5164616, "Svelte": 1148832, "TypeScript": 912803, "Dart": 630920, "Python": 536031, "Java": 507940, "JavaScript": 152546, "CSS": 37870, "HTML": 23434, "C++": 20911, "CMake": 18677, "Shell": 8895, "PEG.js": 7210, "Ruby": 3723, "C": 1425, "Objective-C": 38} | @file:Suppress("UNCHECKED_CAST")
package com.yandex.div.core.util
import android.view.View
import androidx.collection.SparseArrayCompat
import com.yandex.div.R
import com.yandex.div.core.Disposable
import com.yandex.div.core.view2.Releasable
import com.yandex.div.internal.core.ExpressionSubscriber
internal val View.... | 5 | Kotlin | 128 | 2,240 | dd102394ed7b240ace9eaef9228567f98e54d9cf | 1,172 | divkit | Apache License 2.0 |
app/src/main/kotlin/com/maltaisn/notes/ui/edit/adapter/DragTouchHelperCallback.kt | FTno | 363,613,664 | true | {"Kotlin": 287868} | /*
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | null | 0 | 0 | 3d21f92f3cc4f1bb0a06b52c854403bb987daac1 | 2,929 | another-notes-app | Apache License 2.0 |
Tugas1/app/src/main/java/com/example/tugas1/geter and seter.kt | Yurimahendra | 247,965,470 | false | {"PHP": 79562, "Kotlin": 11460, "HTML": 2953} | package com.example.tugas1
fun main(args: Array<String>){
val p = Person()
p.nama = "viola"
println("${p.nama}")
}
class Person{
var nama:String = "defaultValue"
get()=field
set(value){
field = value
}
} | 5 | PHP | 0 | 0 | 2f6a010c7f99041b8e4a5cfce647dd426e04f087 | 241 | mobile-development | MIT License |
src/main/kotlin/com/tankobon/domain/database/DatabaseFactory.kt | fopwoc | 445,686,330 | false | null | package com.tankobon.domain.database
import com.tankobon.domain.database.models.InstanceTable
import com.tankobon.domain.database.models.LastPointTable
import com.tankobon.domain.database.models.MangaPageTable
import com.tankobon.domain.database.models.MangaTitleTable
import com.tankobon.domain.database.models.MangaVo... | 0 | Kotlin | 0 | 4 | 43103fb8da087251ad6257f656a143879af53e52 | 2,920 | tankobon-backend-kotlin | MIT License |
kvision-modules/kvision-cordova/src/main/kotlin/io/kvision/cordova/Media.kt | rjaros | 120,835,750 | false | null | /*
* Copyright (c) 2017-present <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publ... | 22 | null | 56 | 882 | bde30bbfd3c1a837eeff58a0a81bf7a5d677c72f | 3,127 | kvision | MIT License |
kvision-modules/kvision-cordova/src/main/kotlin/io/kvision/cordova/Media.kt | rjaros | 120,835,750 | false | null | /*
* Copyright (c) 2017-present <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publ... | 22 | null | 56 | 882 | bde30bbfd3c1a837eeff58a0a81bf7a5d677c72f | 3,127 | kvision | MIT License |
src/main/kotlin/dev/inmo/plagubot/plugins/captcha/Plugin.kt | InsanusMokrassar | 339,666,783 | false | null | package dev.inmo.plagubot.plugins.captcha
import dev.inmo.micro_utils.coroutines.*
import dev.inmo.micro_utils.repos.create
import dev.inmo.plagubot.Plugin
import dev.inmo.plagubot.plugins.captcha.db.CaptchaChatsSettingsRepo
import dev.inmo.plagubot.plugins.captcha.settings.ChatSettings
import dev.inmo.tgbotapi.bot.Te... | 2 | Kotlin | 0 | 0 | 7afd83e05248e2fe723d74615a31cc858ede8cb1 | 8,445 | CaptchaPlaguBotPlugin | Apache License 2.0 |
wapp/src/main/java/com/example/wapp/demo/room/UserDao.kt | Asmewill | 415,843,980 | false | {"Kotlin": 1283723, "Java": 382535} | package com.example.wapp.demo.room
import androidx.room.*
/**
* Data :2023/3/13
* Time:16:59
* Author:shuij
*
*/
@Dao
interface UserDao {
//插入单个用户
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun addUser(user:User)
//插入多个用户
@Insert(onConflict = OnConflictStrategy.REPLACE)
f... | 0 | Kotlin | 0 | 0 | d70f76171908ff1af5fa586a04d57502162df16c | 905 | JetpackMvvm | Apache License 2.0 |
src/main/kotlin/com/example/data/dtos/sns/ses_bounce/Bounce.kt | itshedimisawi | 851,502,962 | false | {"Kotlin": 42498} | package com.example.data.dtos.sns.ses_bounce
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class Bounce(
@SerialName("bouncedRecipients")
val bouncedRecipients: List<BouncedRecipient>
) | 0 | Kotlin | 0 | 3 | 07f0607f09aa028ea7dd98fe16c2153b11f2c539 | 251 | ktor-integrations | MIT License |
app/src/main/java/com/namanh/composebase/data/model/PostResponse.kt | namanh11611 | 513,568,193 | false | {"Kotlin": 31779} | package com.namanh.composebase.data.model
import androidx.annotation.Keep
import com.google.gson.annotations.SerializedName
@Keep
data class PostResponse(
@SerializedName("status") val status: String,
@SerializedName("totalResults") val totalResults: Int,
@SerializedName("articles") val articles: List<Pos... | 0 | Kotlin | 0 | 1 | 995362ab051d8aef14a8a0abbbacfc0a649b70aa | 325 | ComposeBase | MIT License |
JuniperJunctionDistillery-App/JuniperJunctionDistillery/app/src/main/java/com/example/juniperjunctiondistillery/models/SupplierInvoiceModel.kt | ST10089495 | 724,251,321 | false | {"Kotlin": 169322} | package com.example.juniperjunctiondistillery.models
class SupplierInvoiceModel {
var ID: String = ""
var Supplier: String = ""
var Category: String =""
var DeliveryNotes: String = ""
var TotalPrice: String = ""
var DispatchDate: String = ""
var DeliveryDate: String = ""
constructor()
... | 0 | Kotlin | 0 | 0 | 015daf1f7ad538089df749fa404fc6db776717f7 | 793 | JuniperJunctionDistilleryApp | MIT License |
src/main/kotlin/io/github/oxisto/reticulated/ast/expression/Literal.kt | classicvalues | 453,352,008 | true | {"Kotlin": 39013, "ANTLR": 26984, "Python": 410} | package io.github.oxisto.reticulated.ast.expression
open class Literal<T>(val value: T?) : Atom() {
override fun isCall(): Boolean {
return false
}
} | 1 | null | 0 | 0 | 87b93149dbc022a7c7f6600d3fd655f7ba02f3bd | 160 | reticulated-python | Apache License 2.0 |
Manga/app/src/main/java/nhdphuong/com/manga/data/entity/appversion/AppVersionInfo.kt | duyphuong5126 | 140,096,962 | false | null | package nhdphuong.com.manga.data.entity.appversion
import com.google.gson.annotations.SerializedName
import nhdphuong.com.manga.Constants.Companion.LATEST_APP_VERSION_NUMBER
import nhdphuong.com.manga.Constants.Companion.LATEST_APP_VERSION_CODE
import nhdphuong.com.manga.Constants.Companion.IS_ACTIVATED
import nhdphuo... | 4 | Kotlin | 0 | 3 | 8cbd6b2246726944e8cde96be8a4124feabe1baf | 794 | H-Manga | Apache License 2.0 |
src/main/kotlin/adventofcode/day15.kt | Kvest | 163,103,813 | false | null | package adventofcode
import java.io.File
/*
#######
#.G...#
#...EG#
#.#.#G#
#..G#E#
#.....#
#######
#######
#G..#E#
#E#E.E#
#G.##.#
#...#E#
#...E.#
#######
#######
#E..EG#
#.#G.E#
#E.##E#
#G..#.#
#..E#.#
#######
#######
#E.G#.#
#.#G..#
#G.#.G#
#G..#.#
#...E.#
#######
#######
#.E...#
#.#..G#
#.###.#
#E#G#G#
#...#... | 0 | Kotlin | 0 | 0 | d94b725575a8a5784b53e0f7eee6b7519ac59deb | 7,928 | aoc2018 | Apache License 2.0 |
modules/presentation/src/main/java/kr/co/knowledgerally/ui/signup/SignUpResult.kt | YAPP-Github | 475,728,173 | false | {"Kotlin": 454888} | package kr.co.knowledgerally.ui.signup
data class SignUpResult(
val isSuccess: Boolean,
)
| 2 | Kotlin | 1 | 4 | 01db68b42594360a9285af458eb812ad83acef70 | 95 | 20th-ALL-Rounder-Team-2-Android | Apache License 2.0 |
AndroidApp/app/src/main/java/com/gentin/connectiq/handsfree/onboarding/OnboardingUtilities.kt | grigorye | 772,330,014 | false | {"Kotlin": 63205, "Monkey C": 52448, "Shell": 2018, "M4": 97, "Makefile": 14} | import android.app.Activity
import android.util.Log
import androidx.core.os.bundleOf
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import com.gentin.connectiq.handsfree.R
import com.gentin.connectiq.handsfree.contacts.openFavorites
import com.gentin.connectiq.handsfree.impl... | 0 | Kotlin | 0 | 0 | 0b0b753ad813ecc90cb33653a5ab51fcda85c532 | 4,671 | Handsfree | MIT License |
Section 6/ViewPagerAnimation/app/src/main/java/learn/animation/com/recyclerviewanimation/transformers/GateTransformation.kt | PacktPublishing | 181,683,870 | false | null | package learn.animation.com.recyclerviewanimation.transformers
import android.view.View
import androidx.viewpager.widget.ViewPager
class GateTransformation : ViewPager.PageTransformer {
private val TAG = "GateAnimationn"
override fun transformPage(page: View, position: Float) {
page.translationX = -... | 0 | Kotlin | 4 | 8 | 66be15de2b9d6c411e28bf59039bc0f4c4555e84 | 960 | -Hands-On-Android-Animations | MIT License |
app/src/main/java/com/example/social/presentation/account/AccountFragment.kt | sushilgitter | 585,647,471 | false | null | package com.example.social.presentation.account
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import com.example.social.databinding.FragmentAccountBinding
import com.google... | 0 | Kotlin | 0 | 7 | 09877ca1ded13c801eec6c36e0ffce51cb62e23c | 1,168 | social-and-shopping-ui-android | MIT License |
spring/src/main/kotlin/tw/waterballsa/gaas/spring/controllers/RoomController.kt | Game-as-a-Service | 623,554,204 | false | null | package tw.waterballsa.gaas.spring.controllers
import org.springframework.http.HttpStatus.*
import org.springframework.http.ResponseEntity
import org.springframework.security.core.annotation.AuthenticationPrincipal
import org.springframework.security.oauth2.core.oidc.user.OidcUser
import org.springframework.web.bind.a... | 23 | Kotlin | 5 | 22 | 139cc1625c52a88812e89ca3cd80b3c44997713b | 4,429 | Lobby-Platform-Service | Apache License 2.0 |
app/src/main/java/com/lianyi/paimonsnotebook/ui/screen/gacha/view/GachaRecordOptionScreen.kt | QooLianyi | 435,314,581 | false | {"Kotlin": 2026028} | package com.lianyi.paimonsnotebook.ui.screen.gacha.view
import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.activity.result.ActivityResult
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.... | 1 | Kotlin | 2 | 36 | 7af1f8cce2f8eea3f72b3735e820508510b3112e | 5,375 | PaimonsNotebook | MIT License |
app/src/main/java/com/funnywolf/hollowkit/scroll/behavior/FloatingHeaderScene.kt | liaobude | 305,176,692 | true | {"Kotlin": 191766} | package com.funnywolf.hollowkit.scroll.behavior
import android.graphics.PorterDuff
import android.graphics.PorterDuffColorFilter
import android.os.Bundle
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.ImageView
import androidx.recyclerview.widget.RecyclerView
import com.bytedanc... | 0 | null | 0 | 0 | 2989f92d34fc961c6442b58371a7240f943e1252 | 2,041 | HollowKit | Apache License 2.0 |
analytics/src/test/java/uk/govuk/app/analytics/AnalyticsClientTest.kt | alphagov | 788,896,208 | false | {"Kotlin": 121835} | package uk.govuk.app.analytics
import com.google.firebase.analytics.FirebaseAnalytics
import io.mockk.mockk
import io.mockk.verify
import org.junit.Test
import uk.gov.logging.api.analytics.AnalyticsEvent
import uk.gov.logging.api.analytics.logging.AnalyticsLogger
import java.util.Locale
class AnalyticsClientTest {
... | 0 | Kotlin | 0 | 1 | ea3f271c52a0875327ebc723918f474829b87ba1 | 4,202 | govuk-mobile-android-app | MIT License |
app/src/main/java/com/breezefieldkrishnatea/features/photoReg/present/DsStatusListner.kt | DebashisINT | 796,590,044 | false | {"Kotlin": 14426399, "Java": 1021853} | package com.breezefieldkrishnatea.features.photoReg.present
import com.breezefieldkrishnatea.app.domain.ProspectEntity
import com.breezefieldkrishnatea.features.photoReg.model.UserListResponseModel
interface DsStatusListner {
fun getDSInfoOnLick(obj: ProspectEntity)
} | 0 | Kotlin | 0 | 0 | 4a1bcf05788be9bb1afdbf5922e9ec38d7f60f84 | 274 | HareKrishnaEntp | Apache License 2.0 |
app/src/main/java/com/codepath/articlesearch/SummaryFragment.kt | okbWork | 609,737,218 | false | null | package com.codepath.articlesearch
import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.TextView
import androidx.lifecycle.lifecycleScope
... | 1 | Kotlin | 0 | 0 | 6160eb08e89d9f90044f79bdf2a8b08a4d49fd19 | 2,929 | BitFitPart2 | Apache License 2.0 |
bigbone/src/main/kotlin/social/bigbone/api/entity/MediaAttachment.kt | andregasser | 565,112,249 | false | null | package social.bigbone.api.entity
import com.google.gson.annotations.SerializedName
/**
* Represents a file or media attachment that can be added to a status.
* @see <a href="https://docs.joinmastodon.org/entities/MediaAttachment/">Mastodon API MediaAttachment</a>
*/
data class MediaAttachment(
/**
* The ... | 29 | Kotlin | 4 | 24 | c1bccc79b5f200bfba6b091b42c2f37a293b10e5 | 1,276 | bigbone | MIT License |
src/main/kotlin/design/create/builder/BuilderClient.kt | cunzhiwang | 623,534,375 | false | null | package design.create.builder
fun main() {
val user = User.Builder()
.firstName("John")
.lastName("Doe")
.age(30)
.email("<EMAIL>")
.phone("123-456-7890")
.build()
println(user)
} | 0 | Kotlin | 1 | 2 | 82a4a3f15924e24ef0dc010ea5d7e075bdc39de9 | 237 | DesignPattern | Apache License 2.0 |
02-deberes/Deber02/Deber02BSRG/app/src/main/java/com/example/deber02_bsrg/BaseDatosRopa.kt | 2024A-Moviles-Sw-Gr2 | 792,365,535 | false | {"Kotlin": 98797, "Assembly": 847} | package com.example.deber02_bsrg
import java.time.LocalDate
class BaseDatosRopa {
companion object{
var arregloRopa = arrayListOf<Ropa>()
fun agregarRopa(
nombre:String,
precio:Float,
tendencia:Boolean,
lanzamiento: LocalDate,
aniosVida... | 0 | Kotlin | 0 | 0 | 790866ac8755153e26ad3cac90f279ba5ae52b88 | 568 | SW-GR2-ROSILLO-GUAYANAY-BRYAN-STIVEN | MIT License |
old/FFT.kt | dhakehurst | 165,096,058 | true | {"Kotlin": 468317, "Batchfile": 1402, "Shell": 677} | package com.soywiz.korma.numeric.fft
// @TODO:
// https://gerrybeauregard.wordpress.com/2010/08/03/an-even-faster-as3-fft/
object FFT {
@Suppress("UseExpressionBody", "UNUSED_PARAMETER")
fun run(xRe: DoubleArray, xIm: DoubleArray, inverse: Boolean = false) {
TODO()
}
}
| 0 | Kotlin | 0 | 0 | 3a2bcb27474c7ef1333a908d4d04efbda9ef9147 | 291 | korma | Boost Software License 1.0 |
api/src/commonMain/kotlin/dev/igorcferreira/rsstodon/api/model/response/AccessToken.kt | igorcferreira | 569,381,753 | false | {"Kotlin": 103347} | package dev.igorcferreira.rsstodon.api.model.response
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class AccessToken(
@SerialName("access_token") val token: String,
@SerialName("token_type") val type: String,
@SerialName("scope") val scope: String,
... | 0 | Kotlin | 0 | 0 | 00c454f4506048adb983c308445ee6926348d1a6 | 370 | RSSTodon-Kotlin | Apache License 2.0 |
src/com/kingsleyadio/adventofcode/y2023/Day09.kt | kingsleyadio | 435,430,807 | false | {"Kotlin": 114466, "JavaScript": 5423} | package com.kingsleyadio.adventofcode.y2023
import com.kingsleyadio.adventofcode.util.readInput
fun main() {
val input = readInput(2023, 9).readLines().map { line -> line.split(" ").map(String::toInt) }
part1(input)
part2(input)
}
private fun part1(input: List<List<Int>>) = println(input.sumOf(::findNext... | 0 | Kotlin | 0 | 1 | af9f580aafe0bcee4f8b1e720ca6a9cd62bb9594 | 987 | adventofcode | Apache License 2.0 |
sdk/core/vkid/src/main/java/com/vk/id/internal/auth/web/WhiteListedBrowserHelper.kt | VKCOM | 696,297,549 | false | {"Kotlin": 929849, "Shell": 17068, "AIDL": 3429, "JavaScript": 1182} | @file:OptIn(InternalVKIDApi::class)
package com.vk.id.internal.auth.web
import android.util.Log
import com.vk.id.common.InternalVKIDApi
import com.vk.id.internal.context.InternalVKIDPackageManager
internal object WhiteListedBrowserHelper {
private val WHITE_LIST = listOf(
VersionedBrowserMatcher.CHROME_B... | 2 | Kotlin | 3 | 28 | b5fae72f77a8edd0211c873346c6f8a4579b99c2 | 1,299 | vkid-android-sdk | MIT License |
src/jvmTest/kotlin/com/inari/util/collection/BitSetTest.kt | AndreasHefti | 387,557,032 | false | null | package com.inari.firefly.util.collection
import com.inari.util.collection.BitSet
import com.inari.util.collection.IndexIterator
import org.junit.Test
import kotlin.test.assertEquals
class BitSetTest {
@Test
fun testInit() {
var bitset = BitSet()
assertEquals(1, bitset.size / 64)
bit... | 6 | Kotlin | 0 | 11 | 2149d1a5e32e3d3f5a627d224b6a542c97b4731e | 941 | flyko-lib | Apache License 2.0 |
app/src/main/java/com/game/entity/EnemySpaceShip.kt | Lozerd | 491,629,950 | false | null | package com.game.entity
import android.graphics.Bitmap
import android.graphics.Canvas
import java.util.concurrent.ThreadLocalRandom
class EnemySpaceShip(
image: Bitmap,
spaceShipType: SpaceShipType
) : SpaceShip(image, spaceShipType) {
init {
x = ThreadLocalRandom.current().nextInt(screenWidth - i... | 0 | Kotlin | 0 | 0 | 664266048e32b4920f8d5994880dcd0f4209b9e1 | 786 | Game | MIT License |
app/src/main/java/com/example/android/marsphotos/ui/auth/LoginActivity.kt | nhonam | 703,861,602 | false | {"Kotlin": 66434} | package com.example.android.marsphotos.ui.auth
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.Window
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import androidx.lifecycle.ViewModelPro... | 0 | Kotlin | 0 | 0 | d45b28a16fd3586f3fe7ed2489dd67712bb4b41a | 2,195 | MyTv_tranning_VNPT | Apache License 2.0 |
lint-rules/src/main/java/com/dorck/android/lint/rules/MyCustomIssueRegistry.kt | Moosphan | 522,595,882 | false | {"Kotlin": 13174} | package com.dorck.android.lint.rules
import com.android.tools.lint.client.api.IssueRegistry
import com.android.tools.lint.detector.api.CURRENT_API
import com.android.tools.lint.detector.api.Issue
import com.dorck.android.lint.rules.issues.JcenterDetector
import com.dorck.android.lint.rules.issues.KotlinTodoDetector
@... | 0 | Kotlin | 1 | 5 | 52fcd67bd3ddbd73d31780e371ec340e85e44523 | 733 | Minos | MIT License |
app/src/main/java/com/dart/campushelper/utils/StringUtils.kt | founchoo | 694,453,265 | false | null | package com.dart.campushelper.utils
import org.jsoup.Jsoup
// 解析HTML
fun parseHtml(html: String): String {
val htmlDoc = Jsoup.parse(html)
return htmlDoc.text()
}
fun String.replaceWithStars(isScreenshotMode: Boolean): String {
return if (isScreenshotMode) {
this.map { if (it.isDigit()) '*' else ... | 2 | null | 0 | 7 | 6d191f32167c4e4614b8a7b9e4f553d24973933e | 375 | GongYun-for-Android | Apache License 2.0 |
app/src/main/java/dev/iamwami/app/quotinews/model/NewsFeed.kt | wamiikechukwu | 527,543,515 | false | null | package dev.iamwami.app.quotinews.model
/**
* A container of News partitioned into different categories*/
data class NewsFeed(
val popularNews: List<News>,
val highlightedNews: List<News>,
val recommendedNews: List<News>,
val normalNews: List<News>
) {
/**
* Returns a list of all other news
... | 0 | Kotlin | 3 | 3 | f144f55c81185fed9dd53bbf4c22737e54b55b43 | 425 | QuotiNews | MIT License |
app/src/main/java/com/sandoval/chipperreddittest/data/api/RedditApiService.kt | juanchosandox90 | 243,320,800 | false | null | package com.sandoval.chipperreddittest.data.api
import com.sandoval.chipperreddittest.model.Post
import com.squareup.moshi.Json
import retrofit2.http.GET
import retrofit2.http.Query
interface RedditApiService {
@GET("/top.json")
suspend fun getTop(
@Query("limit") limit: Int,
@Query("after") ... | 0 | Kotlin | 0 | 0 | 0528c7fd53936303519a8c01c5839fe394468f8e | 833 | ChipperRedditTest | Apache License 2.0 |
src/commonMain/kotlin/io/grule/lexer/TokenStream.kt | 7hens | 376,845,987 | false | null | package io.grule.lexer
interface TokenStream {
fun peek(offset: Int): Token
fun moveNext(count: Int)
fun emit(token: Token)
fun emit(scanner: Scanner, text: String)
fun emitEOF() {
emit(Scanners.EOF, "<EOF>")
}
} | 0 | Kotlin | 0 | 1 | 110218101ba598b3d3bf597546db81196d55b281 | 249 | grule | Apache License 2.0 |
kotlin-spring-boot-rest/forum/src/main/kotlin/br/com/alura/forum/mapper/RespostaViewMapper.kt | janjitsu | 401,379,961 | false | null | package br.com.alura.forum.mapper
import br.com.alura.forum.dto.RespostaView
import br.com.alura.forum.model.Resposta
import org.springframework.stereotype.Component
@Component
class RespostaViewMapper : Mapper<Resposta, RespostaView> {
override fun map(t: Resposta): RespostaView = RespostaView(
id = t.i... | 0 | Kotlin | 0 | 1 | 7b7af2e6dea1873929b5541ae075d9b36f969043 | 461 | alura | MIT License |
inputs/file/src/commonTest/kotlin/SingleFileInputFieldFormTest.kt | picortex | 529,690,175 | false | {"Kotlin": 278585} | import epsilon.FileBlob
import expect.expect
import koncurrent.Later
import kotlinx.serialization.Serializable
import presenters.file
import presenters.Fields
import presenters.Form
import presenters.toFormConfig
import presenters.name
import viewmodel.ViewModelConfig
import kotlin.test.Test
class SingleFileInputField... | 0 | Kotlin | 0 | 1 | 416452f8119cb87fb1867189ac5e27e48a27691e | 1,336 | presenters | MIT License |
app/src/main/java/com/personal/tmdb/detail/data/models/Reviews.kt | Avvami | 755,489,313 | false | {"Kotlin": 671404} | package com.personal.tmdb.detail.data.models
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class Reviews(
@Json(name = "page")
val page: Int,
@Json(name = "results")
val results: List<Review>,
@Json(name = "total_pages")
val totalPa... | 0 | Kotlin | 0 | 2 | d3a9455a7ab3b18fc1ccc4f61598b0c2164ab83e | 391 | TMDB | MIT License |
MockSniffer/src/main/kotlin/net/henryhc/mocksniffer/trainingdata/ExtractTrainingDataPreProject.kt | henryhchchc | 269,001,258 | false | null | package net.henryhc.mocksniffer.trainingdata
import net.henryhc.mocksniffer.PreProjectFeatureExtractor
import net.henryhc.mocksniffer.codeinput.ClassType
import net.henryhc.mocksniffer.codeinput.CodeRepository
import net.henryhc.mocksniffer.codeinput.Project
import net.henryhc.mocksniffer.featureengineering.BodyFeatur... | 0 | Jupyter Notebook | 0 | 4 | a4ea0f7c08087f0c5c7a22fe17b5d4290129e83b | 8,647 | MockSniffer | MIT License |
TrackMe/app/src/main/java/ductranit/me/trackme/utils/ObjectBoxSingLiveData.kt | ductranit | 137,365,265 | false | {"Kotlin": 104202} | /*
* Copyright (C) 2018 ductranit
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 0 | Kotlin | 0 | 0 | e385dd9d9f8cea377750a06cdc3531b3ecbc70cb | 1,504 | trackme | Apache License 2.0 |
src/main/kotlin/view/screens/mainScreens/MainScreen.kt | spbu-coding-2023 | 790,846,883 | false | {"Kotlin": 157609, "Python": 12618, "Shell": 161} | package view.screens.mainScreens
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
import androidx.compose.material.AlertD... | 2 | Kotlin | 1 | 0 | b8586cc96d128b331bf6f9ac1141bec5a700b65e | 4,756 | graphs-graphs-6 | MIT License |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/features/CurrentMonitoringFeature.kt | XaverianTeamRobotics | 356,899,269 | false | {"Java Properties": 2, "PowerShell": 2, "XML": 25, "Shell": 3, "Gradle": 7, "Markdown": 6, "Batchfile": 1, "Text": 4, "Ignore List": 1, "Java": 206, "CODEOWNERS": 1, "YAML": 3, "Kotlin": 157} | package org.firstinspires.ftc.teamcode.features
import com.qualcomm.robotcore.hardware.DcMotorEx
import org.firstinspires.ftc.robotcore.external.navigation.CurrentUnit
import org.firstinspires.ftc.teamcode.internals.features.Buildable
import org.firstinspires.ftc.teamcode.internals.features.Feature
import org.firstins... | 1 | null | 1 | 1 | 349cadebeacc12b05476b3f7ca557916be253cd7 | 1,458 | FtcRobotController | BSD 3-Clause Clear License |
src/main/kotlin/com/github/tyrrx/vb6language/project/VB6ProjectGroup.kt | bluehands | 511,430,044 | false | {"Java": 1027191, "Kotlin": 319653, "ANTLR": 31013} | package com.github.tyrrx.vb6language.project
interface IVB6ProjectGroup {
val projects: Collection<VB6Project>
} | 1 | null | 1 | 1 | 1a742a07d78681a5bd11787a38c72c68cddd7f77 | 117 | IntelliJ-VB6-language-support | MIT License |
src/test/kotlin/uk/gov/justice/probation/courtcaseservice/service/subjectaccessrequest/HearingOutcomesServiceTest.kt | ministryofjustice | 215,829,678 | false | {"Gradle": 2, "YAML": 32, "JSON": 162, "Dockerfile": 4, "Shell": 14, "Java Properties": 1, "Text": 5, "Ignore List": 1, "Batchfile": 1, "Markdown": 19, "SVG": 1, "Nginx": 2, "INI": 1, "Java": 409, "Kotlin": 100, "XML": 3, "SQL": 48, "reStructuredText": 6, "HTTP": 1, "PLpgSQL": 84, "Mustache": 2} | package uk.gov.justice.probation.courtcaseservice.service.subjectaccessrequest
import org.assertj.core.api.Assertions
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
import org.mockito.BDDMockito
import org.mockito.BDDMockito.BDDStubber
import... | 18 | Java | 0 | 0 | 0efe7628b07f60119b93658b15b07f797b55f078 | 6,701 | court-case-service | MIT License |
Source/packages/apps/ThemePicker/tests/src/com/android/customization/model/grid/ui/viewmodel/GridScreenViewModelTest.kt | stayboogy | 784,959,483 | false | {"XML": 12479, "Ignore List": 14, "Markdown": 7, "Text": 104, "Shell": 20, "Makefile": 32, "INI": 11, "Soong": 58, "Java": 9482, "Gradle": 8, "Java Properties": 5, "Batchfile": 3, "Proguard": 2, "Protocol Buffer": 33, "JSON": 83, "Python": 6, "Kotlin": 469, "C++": 24, "XSLT": 1, "HTML": 5, "C": 23, "AIDL": 5, "Git Attr... | /*
* Copyright (C) 2023 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 | 0 | 0 | e6132560c5e2416db150b856bd3f331d80795c4c | 4,183 | stayboogy_AOSimPle_Pixel-5_Redfin | Apache License 2.0 |
plugins/kotlin/base/project-structure/src/org/jetbrains/kotlin/idea/base/projectStructure/forwardDeclarations/KotlinForwardDeclarationsModelChangeService.kt | JetBrains | 2,489,216 | false | {"Text": 9788, "INI": 517, "YAML": 423, "Ant Build System": 11, "Batchfile": 34, "Dockerfile": 10, "Shell": 633, "Markdown": 750, "Ignore List": 141, "Git Revision List": 1, "Git Attributes": 11, "EditorConfig": 260, "XML": 7904, "SVG": 4537, "Kotlin": 60205, "Java": 84268, "HTML": 3803, "Java Properties": 217, "Gradle... | // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.base.projectStructure.forwardDeclarations
import com.intellij.openapi.components.service
import com.intellij.openapi.project.Project
import com.intellij.openapi.roo... | 1 | null | 1 | 1 | 0d546ea6a419c7cb168bc3633937a826d4a91b7c | 7,337 | intellij-community | Apache License 2.0 |
app/src/main/java/com/mapswithme/maps/widget/placepage/BookmarkColorDialogFragment1.kt | dnemov | 245,413,600 | false | null | package com.mapswithme.maps.widget.placepage
import android.app.Dialog
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.widget.AdapterView
import android.widget.GridView
import androidx.appcompat.app.AlertDialog
import com.mapswithme.maps.R
import com.mapswithme.maps.... | 0 | Kotlin | 0 | 1 | 8b75114193e141aee14fcbc207a208c4a39de1db | 1,946 | omim.kt | Apache License 2.0 |
plugin-dotnet-agent/src/main/kotlin/jetbrains/buildServer/rx/Observers.kt | JetBrains | 49,584,664 | false | null | package devteam.rx
inline fun <T> observer(crossinline onNext: (T) -> Unit): Observer<T> = observer(onNext, {}, {})
inline fun <T> observer(crossinline onNext: (T) -> Unit, crossinline onError: (Exception) -> Unit, crossinline onComplete: () -> Unit): Observer<T> =
object : Observer<T> {
override ... | 8 | null | 6 | 94 | cdecbf2c7721a40265a031453262614809d5378d | 1,043 | teamcity-dotnet-plugin | Apache License 2.0 |
main/src/main/java/com/sgorinov/exilehelper/MainKoinModule.kt | SergeyGorinov | 275,131,633 | false | null | package com.sgorinov.exilehelper
import com.sgorinov.exilehelper.presentation.presentationModule
val mainModules = listOf(presentationModule) | 1 | Kotlin | 0 | 3 | 128c53b566e7f0e232ae28004696a4d455c408c0 | 143 | ExileHelper | Apache License 2.0 |
datastore/src/main/java/com/zn/apps/datastore/di/DataStoreModule.kt | Zacle | 686,192,400 | false | {"Kotlin": 916275} | package com.zn.apps.datastore.di
import android.content.Context
import androidx.datastore.core.DataStore
import androidx.datastore.core.DataStoreFactory
import androidx.datastore.dataStoreFile
import com.zn.apps.common.network.Dispatcher
import com.zn.apps.common.network.FocusedDispatchers.IO
import com.zn.apps.common... | 0 | Kotlin | 0 | 0 | 909ac17f838828b54ac6558ed3104b840831a331 | 3,166 | Focused | MIT License |
src/org/elixir_lang/beam/chunk/debug_info/v1/erl_abstract_code/abstract_code_compiler_options/abstract_code/comprehension/qualifier/Generate.kt | KronicDeth | 22,329,177 | false | null | package org.elixir_lang.beam.chunk.debug_info.v1.erl_abstract_code.abstract_code_compiler_options.abstract_code.comprehension.qualifier
import com.ericsson.otp.erlang.OtpErlangObject
import com.ericsson.otp.erlang.OtpErlangTuple
import org.elixir_lang.beam.chunk.debug_info.v1.erl_abstract_code.abstract_code_compiler_o... | 590 | null | 153 | 1,815 | b698fdaec0ead565023bf4461d48734de135b604 | 2,369 | intellij-elixir | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.