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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bucketsdk/src/main/java/bucket/sdk/extensions/Any.kt | buckettech | 128,779,649 | false | null | package bucket.sdk.extensions
var Any?.isNil : Boolean
get() { return this == null }
private set(value) {} | 0 | Kotlin | 2 | 0 | 4123e9373f080af4e6b9702a98321cd4cbc5322e | 115 | BucketSDK-Android | MIT License |
app/src/main/kotlin/org/jdc/template/ui/compose/form/TextWithTitle.kt | jeffdcamp | 12,853,600 | false | {"Kotlin": 391385, "HTML": 58007} | package org.jdc.template.ui.compose.form
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Compo... | 0 | Kotlin | 40 | 99 | 21136fcddd0632b5d48892583acf84fa34bca285 | 1,483 | android-template | Apache License 2.0 |
src/test/java/com/filestack/internal/UploadServiceTest.kt | filestack | 93,534,425 | false | {"SVG": 1, "Markdown": 5, "Gradle": 1, "Shell": 1, "Text": 2, "Ignore List": 1, "Batchfile": 1, "YAML": 1, "XML": 3, "Java Properties": 1, "Kotlin": 12, "Java": 150, "Proguard": 1, "INI": 1, "HTML": 176, "CSS": 1, "JavaScript": 1} | package com.filestack.internal
import com.filestack.bodyParams
import com.filestack.internal.responses.CompleteResponse
import com.filestack.internal.responses.StartResponse
import com.filestack.internal.responses.UploadResponse
import com.filestack.tempFile
import com.nhaarman.mockitokotlin2.eq
import com.nhaarman.mo... | 6 | Java | 18 | 18 | 3814ace6b6cbb18c91df5b19c8c5209646623c07 | 6,943 | filestack-java | Apache License 2.0 |
gaia-sdk-java/gaia-sdk-graphql/src/main/kotlin/gaia/sdk/request/type/Conversational.kt | leftshiftone | 218,051,248 | false | {"Python": 597076, "TypeScript": 553203, "Kotlin": 517386, "JavaScript": 6976, "ANTLR": 2281} | package gaia.sdk.request.type
import gaia.sdk.client.Type
import gaia.sdk.request.intf.*
import gaia.sdk.client.Input
import gaia.sdk.Uuid
import gaia.sdk.ISO8601
import gaia.sdk.Struct
import gaia.sdk.request.input.*
import gaia.sdk.request.enumeration.*
/**
* Type which contains all impulses needed for the maintai... | 8 | Python | 2 | 1 | 10190c1de4b2b5f1d4a5f014602c4ccc5c11bee4 | 2,129 | gaia-sdk | MIT License |
library-extensions-swipe/src/main/java/com/mikepenz/fastadapter/swipe/SimpleSwipeDrawerCallback.kt | koral-- | 298,616,020 | true | {"Kotlin": 629642, "Java": 20690, "Shell": 1061, "Ruby": 26} | package com.mikepenz.fastadapter.swipe
import android.graphics.Canvas
import android.graphics.Rect
import android.view.MotionEvent
import android.view.View
import android.view.View.VISIBLE
import android.view.ViewGroup
import androidx.recyclerview.widget.ItemTouchHelper
import androidx.recyclerview.widget.RecyclerView... | 0 | null | 0 | 0 | 00713e8e9da3e4debf4b89a7c83915b4c88fd9ca | 5,648 | FastAdapter | Apache License 2.0 |
subprojects/android-test/ui-testing-core/src/main/kotlin/com/avito/android/test/util/AppendableDescription.kt | avito-tech | 230,265,582 | false | {"Kotlin": 3747948, "Java": 67252, "Shell": 27892, "Dockerfile": 12799, "Makefile": 8086} | package com.avito.android.test.util
import org.hamcrest.BaseDescription
internal class AppendableDescription(private val appendable: Appendable) : BaseDescription() {
override fun append(c: Char) {
appendable.append(c)
}
}
| 10 | Kotlin | 50 | 414 | bc94abf5cbac32ac249a653457644a83b4b715bb | 242 | avito-android | MIT License |
core/src/main/kotlin/net/rikarin/http/features/DefaultFeatureCollection.kt | Rikarin | 586,107,122 | false | null | package net.rikarin.http.features
import kotlin.reflect.KType
import kotlin.reflect.full.withNullability
internal class DefaultFeatureCollection() : FeatureCollection {
private var _features: MutableMap<KType, Any>? = null
private var _defaults: FeatureCollection? = null
private var _containerRevision = 0... | 0 | Kotlin | 0 | 0 | ae49fd70b3a46c5e74e161758f6e7eeaed08ed88 | 1,411 | kotlin | MIT License |
src/main/kotlin/de/hennihaus/routes/mappers/StatisticMapper.kt | hennihaus | 484,714,079 | false | null | package de.hennihaus.routes.mappers
import de.hennihaus.bamdatamodel.Statistic
import de.hennihaus.models.generated.rest.StatisticDTO
import java.util.UUID
fun Statistic.toStatisticDTO() = StatisticDTO(
bankId = "$bankId",
teamId = "$teamId",
requestsCount = requestsCount,
)
fun StatisticDTO.toStatistic(... | 32 | Kotlin | 0 | 0 | d9e57a5ca5f0712671cf4e26c578c1fb22c0262f | 448 | bamconfigbackend | Apache License 2.0 |
benchmark/common/src/main/java/androidx/benchmark/ResultWriter.kt | tikurahul | 306,333,033 | true | {"Java Properties": 20, "Shell": 44, "Markdown": 43, "Java": 4516, "HTML": 17, "Kotlin": 3557, "Python": 28, "Proguard": 37, "Batchfile": 6, "JavaScript": 1, "CSS": 1, "TypeScript": 6, "Gradle Kotlin DSL": 2, "INI": 1, "CMake": 1, "C++": 2} | /*
* Copyright 2019 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 applica... | 1 | null | 1 | 1 | ccac66729a5e461b3a05944014f42e2dc55337d6 | 6,896 | androidx | Apache License 2.0 |
kcrud-access/src/main/kotlin/kcrud/access/actor/repository/IActorRepository.kt | perracodex | 682,128,013 | false | null | /*
* Copyright (c) 2024-Present Perracodex. Use of this source code is governed by an MIT license.
*/
package kcrud.access.actor.repository
import kcrud.access.actor.entity.ActorEntity
import kcrud.access.actor.entity.ActorRequest
import java.util.*
/**
* Repository responsible for [ActorEntity] data.
*/
interfa... | 0 | null | 0 | 2 | 7faa3d74588e41a48ac48bb56e80bb02c48f0ba3 | 2,260 | Kcrud | MIT License |
src/main/kotlin/me/bzvol/fifimod/event/loot/ModClientEvents.kt | bzvol | 508,218,419 | false | {"Kotlin": 162220} | package me.bzvol.fifimod.event.loot
import me.bzvol.fifimod.FifiMod
import me.bzvol.fifimod.entity.client.armor.FifiArmorRenderer
import me.bzvol.fifimod.item.FifiArmorItem
import net.minecraftforge.api.distmarker.Dist
import net.minecraftforge.client.event.EntityRenderersEvent
import net.minecraftforge.eventbus.api.S... | 0 | Kotlin | 0 | 0 | 95903762a1876342bfeae2b11c272f71d97621a3 | 768 | FifiMod | MIT License |
vico/core/src/main/java/com/patrykandpatrick/vico/core/component/shape/shader/DynamicShader.kt | patrykandpatrick | 338,848,755 | false | {"Kotlin": 730308, "CSS": 166} | /*
* Copyright 2023 by <NAME> and <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 ... | 8 | Kotlin | 89 | 1,465 | 8a4529648b56669dab788e9eeba9fdc4a344268d | 3,166 | vico | Apache License 2.0 |
bot/src/main/kotlin/com/noahhendrickson/beachbunny/bot/dialogflow/DialogflowClient.kt | NoahH99 | 367,918,537 | false | null | package com.noahhendrickson.beachbunny.bot.dialogflow
import com.google.cloud.dialogflow.v2.*
import kotlinx.coroutines.async
import kotlinx.coroutines.coroutineScope
data class DialogflowClient(
val sessionsClient: SessionsClient?,
val sessionName: SessionName?
) {
suspend fun queryResult(request: Detec... | 2 | Kotlin | 0 | 0 | 7e401ddf665cb78ffd0c47c1d4cabd2cd9d0bc81 | 777 | BeachBunny | MIT License |
core/state/src/main/kotlin/br/com/mob1st/core/state/contracts/PaginationManager.kt | mob1st | 526,655,668 | false | null | package br.com.mob1st.core.state.contracts
/**
* A standard interface for ViewModels that handle pagination in the UI.
*/
interface PaginationManager {
/**
* Paginates to the next page.
*/
fun next()
}
| 11 | Kotlin | 0 | 3 | d06451b4a3384a757b1b6bae96e85a1874bbc91d | 223 | bet-app-android | Apache License 2.0 |
core/state/src/main/kotlin/br/com/mob1st/core/state/contracts/PaginationManager.kt | mob1st | 526,655,668 | false | null | package br.com.mob1st.core.state.contracts
/**
* A standard interface for ViewModels that handle pagination in the UI.
*/
interface PaginationManager {
/**
* Paginates to the next page.
*/
fun next()
}
| 11 | Kotlin | 0 | 3 | d06451b4a3384a757b1b6bae96e85a1874bbc91d | 223 | bet-app-android | Apache License 2.0 |
src/main/kotlin/com/codebud7/core/domainobject/CountrySummaryPerCaseStatus.kt | codeBud7 | 255,148,881 | false | null | package com.codebud7.core.domainobject
class CountrySummaryPerCaseStatus : ArrayList<CountrySummaryPerCaseStatusItem>()
data class CountrySummaryPerCaseStatusItem(
val active: Int,
val admin2: Any,
val combinedKey: String,
val confirmed: Int,
val countryRegion: String,
val deaths: Int,
val... | 0 | Kotlin | 0 | 0 | 64745575f97f756b3894f3e5937062b1a9326641 | 584 | kovid-19-api | Apache License 2.0 |
src/test/kotlin/org/intellij/plugin/mdx/MdxParsingTest.kt | valentinnodan | 279,243,243 | false | null | package org.intellij.plugin.mdx
import com.intellij.lang.LanguageASTFactory
import com.intellij.lang.javascript.JavascriptASTFactory
import com.intellij.lang.javascript.JavascriptLanguage
import com.intellij.lang.javascript.dialects.ECMA6ParserDefinition
import com.intellij.lang.xml.XMLLanguage
import com.intellij.lan... | 13 | null | 2 | 8 | 52a51db1e1b6158d52e27f12277f56ca20c228f0 | 2,465 | mdx-intellij-plugin | MIT License |
korlibs-datastructure/test/korlibs/datastructure/FastRandomTest.kt | korlibs | 80,095,683 | false | {"WebAssembly": 14293935, "Kotlin": 9728800, "C": 77092, "C++": 20878, "TypeScript": 12397, "HTML": 6043, "Python": 4296, "Swift": 1371, "JavaScript": 328, "Shell": 254, "CMake": 202, "CSS": 66, "Batchfile": 41} | package korlibs.datastructure
import korlibs.datastructure.random.FastRandom
import korlibs.datastructure.random.fastRandom
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFails
import kotlin.test.assertTrue
class FastRandomTest {
val random = FastRandom(0L)
@Test
fun tes... | 444 | WebAssembly | 121 | 2,207 | dc3d2080c6b956d4c06f4bfa90a6c831dbaa983a | 3,196 | korge | Apache License 2.0 |
TollRoadCalcAndroid/core/src/main/java/ru/andrewkir/core/presentation/presentation/utils/Dimens.kt | andrewkir | 801,831,218 | false | {"Kotlin": 163036} | package ru.andrewkir.core.presentation.presentation.utils
import androidx.compose.ui.unit.dp
object Dimens {
val MediumPadding = 24.dp
val MediumPadding2 = 30.dp
val IndicatorSize = 14.dp
val PageIndicatorWidth = 52.dp
} | 0 | Kotlin | 0 | 0 | fea7d491ce0aa2b3adbc277c456e7535c5821e7d | 240 | Toll-Price-Diploma | MIT License |
src/main/kotlin/com/colinodell/advent2022/Day24.kt | colinodell | 572,710,708 | false | {"Kotlin": 105421} | package com.colinodell.advent2022
import java.util.PriorityQueue
class Day24(input: List<String>) {
private val grid = input.toGrid()
private val innerRegion = grid.region().contract(1)
private val start = grid.toList().first { it.first.y == 0 && it.second == '.' }.first
private val goal = grid.toList... | 0 | Kotlin | 0 | 1 | 32da24a888ddb8e8da122fa3e3a08fc2d4829180 | 4,235 | advent-2022 | MIT License |
src/commonMain/kotlin/data/items/JusticarGreaves.kt | marisa-ashkandi | 332,658,265 | false | null | package `data`.items
import `data`.Constants
import `data`.itemsets.ItemSets
import `data`.model.Item
import `data`.model.ItemSet
import `data`.model.Socket
import `data`.model.SocketBonus
import character.Buff
import character.Stats
import kotlin.Array
import kotlin.Boolean
import kotlin.Double
import kotlin.Int
impo... | 21 | null | 11 | 25 | 9cb6a0e51a650b5d04c63883cb9bf3f64057ce73 | 1,688 | tbcsim | MIT License |
app/src/test/java/ca/on/hojat/gamenews/feature_search/domain/SearchGamesUseCaseImplTest.kt | hojat72elect | 574,228,468 | false | null | package ca.on.hojat.gamenews.feature_search.domain
import app.cash.turbine.test
import ca.on.hojat.gamenews.core.providers.NetworkStateProvider
import ca.on.hojat.gamenews.core.domain.games.datastores.GamesDataStores
import ca.on.hojat.gamenews.core.domain.games.datastores.GamesLocalDataStore
import ca.on.hojat.gamene... | 0 | Kotlin | 0 | 2 | 80ff667af63e00b09aac129bb1206f520452700a | 4,003 | GameHub | Apache License 2.0 |
src/main/kotlin/fun/brassicold/brassi/death/project/BrassiDeath.kt | BrassiCold | 594,979,206 | false | null | package `fun`.brassicold.brassi.death.project
import `fun`.brassicold.brassi.death.project.internal.BrassiDeathLoader
import org.yaml.snakeyaml.Yaml
import taboolib.common.platform.Plugin
import taboolib.module.configuration.Config
import taboolib.module.configuration.ConfigFile
object BrassiDeath : Plugin() {
@... | 0 | Kotlin | 0 | 0 | 1abaad9d0cf8fe8a4d32bb4c4a9a133c0209a3a8 | 633 | BrassiDeath | Creative Commons Zero v1.0 Universal |
src/main/kotlin/pl/radoslawdabrowski/admin/modules/root/services/UserService.kt | radoslawdabrowski | 188,028,920 | false | {"Kotlin": 18804, "HTML": 4671} | package pl.radoslawdabrowski.admin.modules.root.services
import pl.radoslawdabrowski.admin.modules.root.model.User
interface UserService {
fun getUser(username : String) : User
} | 0 | Kotlin | 0 | 1 | a45e527740089d39fff0f4ab03f281b0ad0cc58f | 186 | personal-website-admin-panel-framework | Apache License 2.0 |
documents_feature/src/main/java/com/flyview/documents_feature/ui/scan/mark_list/toolbar/RealMarkListToolbarComponent.kt | DmiMukh | 676,402,705 | false | {"Kotlin": 288475, "Java": 130379} | package com.flyview.documents_feature.ui.scan.mark_list.toolbar
import com.arkivanov.decompose.ComponentContext
class RealMarkListToolbarComponent(
componentContext: ComponentContext,
private val onBack: () -> Unit,
private val onSave: () -> Unit
) : ComponentContext by componentContext, MarkListToolbarCo... | 0 | Kotlin | 0 | 0 | 5c184121116c08abe217946ba7da27804c232edb | 440 | PharmMobile | MIT License |
server/src/main/kotlin/cz/martinforejt/piskvorky/server/core/di/ServerModule.kt | MFori | 323,623,365 | false | null | package cz.martinforejt.piskvorky.server.core.di
import cz.martinforejt.piskvorky.domain.repository.*
import cz.martinforejt.piskvorky.domain.service.EmailService
import cz.martinforejt.piskvorky.server.core.service.EmailServiceConfig
import cz.martinforejt.piskvorky.server.core.service.EmailServiceImpl
import cz.mart... | 0 | Kotlin | 0 | 0 | 8333fa53793a3ea1a9c83cfa821b5c4e8573ec4b | 6,063 | Piskvorky | Apache License 2.0 |
src/main/kotlin/de/flapdoodle/kfx/layout/decoration/Position.kt | flapdoodle-oss | 451,526,335 | false | null | package de.flapdoodle.kfx.layout.decoration
import de.flapdoodle.kfx.types.Direction
import de.flapdoodle.kfx.types.Line2D
import de.flapdoodle.kfx.types.UnitInterval
import de.flapdoodle.kfx.types.to
import javafx.geometry.Bounds
import javafx.geometry.Point2D
data class Position(
val base: Base,
val positio... | 0 | Kotlin | 1 | 0 | 2407b8c87d62350c6a0bc7f1fbae29afdd830710 | 402 | de.flapdoodle.kfx | Apache License 2.0 |
feature-staking-impl/src/main/java/io/novafoundation/nova/feature_staking_impl/presentation/parachainStaking/start/setup/rewards/ParachainStakingRewardsComponent.kt | novasamatech | 415,834,480 | false | null | package io.novafoundation.nova.feature_staking_impl.presentation.parachainStaking.start.setup.rewards
import io.novafoundation.nova.common.utils.firstNotNull
import io.novafoundation.nova.feature_staking_impl.presentation.parachainStaking.start.setup.rewards.ParachainStakingRewardsComponent.Action
import io.novafounda... | 14 | null | 6 | 9 | b39307cb56302ce7298582dbd03f33f6b2e2a807 | 2,156 | nova-wallet-android | Apache License 2.0 |
app/src/main/java/com/jeongg/sanjini_attraction/presentation/navigation/NavGraph.kt | sanjini-attraction | 725,554,254 | false | {"Kotlin": 67959} | package com.jeongg.sanjini_attraction.presentation.navigation
import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavType
import androidx.navigation.compose.composable
import androidx.navigation.navArgument
import com.jeongg.sanjini_attraction.presentation.vie... | 0 | Kotlin | 0 | 0 | 031061ecaec9f3cb098b590c967c6a37a4e13934 | 1,412 | android | MIT License |
domain/src/main/java/com/foobarust/domain/usecases/order/GetArchivedOrdersUseCase.kt | foobar-UST | 285,792,732 | false | null | package com.foobarust.domain.usecases.order
import androidx.paging.PagingData
import com.foobarust.domain.di.IoDispatcher
import com.foobarust.domain.models.order.OrderBasic
import com.foobarust.domain.repositories.AuthRepository
import com.foobarust.domain.repositories.OrderRepository
import com.foobarust.domain.usec... | 0 | Kotlin | 2 | 2 | b4358ef0323a0b7a95483223496164e616a01da5 | 2,523 | foobar-android | MIT License |
modules/modules_my/src/main/java/com/cl/modules_my/request/MyPlantInfoData.kt | aaaaaaaazmx | 528,318,389 | false | {"Kotlin": 3692948, "Java": 1498595} | package com.cl.modules_my.request
import com.cl.common_base.BaseBean
data class MyPlantInfoData(
val plantName: String? = null,
var isSelected: Boolean = false
) : BaseBean() | 0 | Kotlin | 0 | 0 | e010b3e8443e617d72830490b028268476e3e470 | 184 | abby | Apache License 2.0 |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/datadonation/safetynet/AttestationContainer.kt | corona-warn-app | 268,027,139 | false | null | package de.rki.coronawarnapp.datadonation.safetynet
import de.rki.coronawarnapp.appconfig.SafetyNetRequirements
import de.rki.coronawarnapp.datadonation.safetynet.SafetyNetException.Type
import de.rki.coronawarnapp.server.protocols.internal.ppdd.PpacAndroid
import okio.ByteString.Companion.toByteString
internal data ... | 6 | null | 8 | 2,495 | d3833a212bd4c84e38a1fad23b282836d70ab8d5 | 2,361 | cwa-app-android | Apache License 2.0 |
Common/src/main/java/dev/aresiel/dohexthewater/common/casting/actions/OpRandInt.kt | Aresiel | 544,412,490 | false | null | package dev.aresiel.dohexthewater.common.casting.actions
import at.petrak.hexcasting.api.spell.*
import at.petrak.hexcasting.api.spell.casting.CastingContext
import at.petrak.hexcasting.api.spell.mishaps.MishapInvalidIota
import at.petrak.hexcasting.api.utils.asTranslatedComponent
import kotlin.math.roundToInt
object... | 0 | Kotlin | 0 | 0 | 40fdbab97c38d64fb8e6ad67eacd0ceeec7f4d3e | 807 | DoHexTheWater | MIT License |
app/src/main/java/com/example/mykotlinapp/ui/screens/chats/history/group/posts/comments/PostMediasAdapter.kt | vbounyasit | 522,266,559 | false | {"Kotlin": 507212} | package com.example.mykotlinapp.ui.screens.chats.history.group.posts.comments
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView.Adapter
import com.example.mykotlinapp.databinding.ComponentUserPostMediasBinding
import com.exa... | 0 | Kotlin | 0 | 1 | a9812a061f9214b44ba326b77afe335a003cc22e | 1,233 | MyAndroidApp | Apache License 2.0 |
app/src/main/java/com/example/metodohoggsimplificado/ui/ui/DataInputScreen.kt | Brandon-Meneses | 832,520,811 | false | {"Kotlin": 47699} | package com.example.metodohoggsimplificado.ui.ui
import android.annotation.SuppressLint
import android.app.Application
import android.content.Context
import android.util.Log
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.... | 0 | Kotlin | 0 | 0 | ee709d34172e056884adc3159cd4a0382d8b66d5 | 21,441 | MetodoHoggSimplificado | MIT License |
Base/src/main/java/xy/xy/base/widget/text/LinkTextView.kt | xiuone | 291,512,847 | false | {"Kotlin": 696966, "Java": 245782} | package xy.xy.base.widget.text
import android.content.Context
import android.text.Spannable
import android.text.style.ClickableSpan
import android.util.AttributeSet
import android.view.MotionEvent
import androidx.appcompat.widget.AppCompatTextView
open class LinkTextView @JvmOverloads constructor(
context: Conte... | 0 | Kotlin | 1 | 2 | dc9f035dae4c876c6acb3e2e96742d5eb5cebe18 | 1,336 | ajinlib | Apache License 2.0 |
Base/src/main/java/xy/xy/base/widget/text/LinkTextView.kt | xiuone | 291,512,847 | false | {"Kotlin": 696966, "Java": 245782} | package xy.xy.base.widget.text
import android.content.Context
import android.text.Spannable
import android.text.style.ClickableSpan
import android.util.AttributeSet
import android.view.MotionEvent
import androidx.appcompat.widget.AppCompatTextView
open class LinkTextView @JvmOverloads constructor(
context: Conte... | 0 | Kotlin | 1 | 2 | dc9f035dae4c876c6acb3e2e96742d5eb5cebe18 | 1,336 | ajinlib | Apache License 2.0 |
java/com/google/android/libraries/pcc/chronicle/api/ConnectionName.kt | google | 564,990,777 | false | {"Kotlin": 1440674, "Starlark": 164409, "Java": 10061, "AIDL": 5852, "Python": 4367, "Dockerfile": 2035, "Shell": 1301} | /*
* Copyright 2022 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 7 | 29 | 62efeab0288f39467061c2444549954d0b7137f8 | 994 | private-compute-libraries | Apache License 2.0 |
src/main/kotlin/net/fabricmc/bot/App.kt | FabricMC | 272,279,496 | false | null | /*
* This Kotlin source file was generated by the Gradle 'init' task.
*/
package net.fabricmc.bot
import com.gitlab.kordlib.gateway.Intents
import com.gitlab.kordlib.gateway.PrivilegedIntent
import com.kotlindiscord.kord.extensions.ExtensibleBot
import mu.KotlinLogging
import net.fabricmc.bot.conf.buildInfo
import n... | 20 | Kotlin | 10 | 7 | 16622cffbc0622c6ca461bfb887f39849fa2b935 | 1,669 | kotlin-fabric-discord-bot | MIT License |
kotest-framework/kotest-framework-engine/src/jsMain/kotlin/io/kotest/engine/interceptors.kt | IshanKute | 413,260,612 | true | {"Kotlin": 3285660, "CSS": 352, "Java": 145} | package io.kotest.engine
import io.kotest.core.config.Configuration
import io.kotest.core.extensions.ProjectExtension
import io.kotest.engine.interceptors.EmptyTestSuiteInterceptor
import io.kotest.engine.interceptors.EngineInterceptor
import io.kotest.engine.interceptors.ProjectExtensionEngineInterceptor
import io.ko... | 5 | Kotlin | 0 | 0 | 194bdd8f8fcb592a039d8402b8d7ae5a6f77db3c | 1,239 | kotest | Apache License 2.0 |
k4-core/src/main/kotlin/com/luggsoft/k4/core/sources/iterators/TryConsumeNextDelimited.kt | dan-lugg | 403,714,343 | false | null | package com.luggsoft.k4.core.sources.iterators
fun SourceIterator.tryConsumeNextDelimited(delimiter: CharSequence, stringBuilder: StringBuilder): Boolean
{
if (this.peekEquals(delimiter))
{
stringBuilder.append(this.next(delimiter.length))
while (!this.peekEquals(delimiter))
{
... | 0 | null | 0 | 2 | 7beae2e349492f6c03e8deb96401386e2b7dd29b | 473 | luggsoft-k4 | MIT License |
src/main/kotlin/ru/quandastudio/lpsclient/model/FriendInfo.kt | AlexanderShirokih | 206,852,922 | false | null | package ru.quandastudio.lpsclient.model
data class FriendInfo(
var userId: Int,
var login: String,
var accepted: Boolean,
val pictureHash: String?
)
| 0 | Kotlin | 0 | 0 | 228e59c053c7895a22b1a3830a0c07af343733c6 | 166 | letsplaycities-client-v2 | MIT License |
anvil/src/gen-sdk-21/kotlin/dev/inkremental/dsl/android/SdkSetter.kt | inkremental | 205,363,267 | false | null | @file:Suppress("DEPRECATION", "UNCHECKED_CAST", "MemberVisibilityCanBePrivate", "unused")
package dev.inkremental.dsl.android
import android.animation.LayoutTransition
import android.animation.ObjectAnimator
import android.animation.StateListAnimator
import android.app.Activity
import android.app.FragmentBreadCrumbs
... | 20 | null | 5 | 58 | 6e6241a0e9ac80a1edd1f0e100ad6bf0c4f8175e | 106,443 | inkremental | MIT License |
core/src/main/java/ee/solarlabs/community/core/model/subscriptions/response/QuotaResponse.kt | sentinel-official | 578,087,836 | false | null | package ee.solarlabs.community.core.model.subscriptions.response
data class QuotaResponse(val address: String, val consumed: String, val allocated: String)
| 1 | null | 4 | 4 | 58b79967924e5049397c5297bb9b2aefe98060f0 | 157 | sentinel-dvpn-for-android | MIT License |
src/main/kotlin/com/hades/example/leankotlin/concepts/_4_class_and_object/_13_inline_value_classes/InlineValueClassesExample.kt | YingVickyCao | 557,306,875 | false | {"Kotlin": 402357, "Java": 2079} | package com.hades.example.leankotlin.concepts._4_class_and_object._13_inline_value_classes
// 内联类
// https://book.kotlincn.net/text/inline-classes.html
// https://kotlinlang.org/docs/inline-classes.html
fun main() {
/**
* Example 1 : Inline value classes
* 内联类
*/
run {
test1()
}
... | 0 | Kotlin | 0 | 0 | e82a3d4b3c88f4b3cbeda71f2876a68d172c96d9 | 6,449 | LeanKotlin | Apache License 2.0 |
app/src/main/java/com/valerityoss/randomuserinfo/ui/data/GitRepoRemoteDataSource.kt | shvets-denis | 207,673,191 | false | null | package com.valerityoss.randomuserinfo.ui.data
import com.valerityoss.randomuserinfo.ui.ui.ui_model.Repository
import io.reactivex.Observable
import java.util.concurrent.TimeUnit
class GitRepoRemoteDataSource {
fun getRepositories(): Observable<ArrayList<Repository>> {
var arrayList = ArrayList<Repository... | 0 | Kotlin | 0 | 0 | ea21c46bbdb95bfe3ed6ab70d5f504e3416112ac | 1,056 | RandomUserInfo | Apache License 2.0 |
app/src/main/java/com/uxstate/skycast/presentation/home/components/EmptyWeatherBox.kt | Tonnie-Dev | 698,802,033 | false | {"Kotlin": 169908} | package com.uxstate.skycast.presentation.home.components
import android.content.res.Configuration.UI_MODE_NIGHT_NO
import android.content.res.Configuration.UI_MODE_NIGHT_YES
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import an... | 0 | Kotlin | 0 | 0 | 1bf6826fb3d0ec9c6decf54d6e1176211bf7f3e2 | 2,538 | SkyCast | The Unlicense |
feature-themes-impl/src/main/kotlin/com/blacksquircle/ui/feature/themes/ui/mvi/ThemesViewState.kt | massivemadness | 100,590,072 | false | null | /*
* Copyright 2022 Squircle CE contributors.
*
* 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... | 74 | null | 75 | 708 | 2622fcc49a1d71ea1dec87c460d4586d671646c0 | 1,165 | Squircle-CE | Apache License 2.0 |
app/src/main/java/com/example/savemeal/reservations/consumer/ReservationDetailFragment.kt | UTN-FRBA-Mobile | 410,448,464 | false | null | package com.example.savemeal.reservations.consumer
import android.app.AlertDialog
import android.graphics.BitmapFactory
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.fr... | 0 | Kotlin | 0 | 1 | f25767e3d59b145d67d972b134f2b42b09798ca8 | 3,289 | SaveMeal | MIT License |
valentine-starter/src/main/kotlin/org/springframework/core/task/VirtualThreadDelegate.kt | lWoHvYe | 350,562,833 | false | {"Java": 1215811, "Kotlin": 159066, "PLpgSQL": 71478, "FreeMarker": 34581, "HTML": 13706, "Shell": 4000} | /*
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 3 | Java | 20 | 40 | 40ef54a8529fc5cdc1e8d5551bc236aa4efac98f | 1,557 | unicorn | Apache License 2.0 |
app/src/main/java/com/naver/maps/map/compose/demo/location/CustomLocationSourceScreen.kt | fornewid | 492,204,824 | false | {"Kotlin": 431651, "Shell": 2924} | /*
* Copyright 2022 SOUP
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... | 8 | Kotlin | 6 | 99 | 2fcbd5f18a69d58717c84e8a7367f702531f4e24 | 3,153 | naver-map-compose | Apache License 2.0 |
calendar/src/main/java/com/jonaswanke/calendar/CalendarView.kt | TrendingTechnology | 143,161,660 | true | {"Kotlin": 60480, "Java": 1120} | package com.jonaswanke.calendar
import android.content.Context
import android.gesture.GestureOverlayView
import android.os.Parcel
import android.os.Parcelable
import android.support.annotation.AttrRes
import android.support.annotation.IntDef
import android.support.v4.view.ViewPager
import android.util.AttributeSet
imp... | 0 | Kotlin | 0 | 0 | 8ac6b11b372a929517190a16edf931a3737e620e | 11,277 | com.jonaswanke.calendar | Apache License 2.0 |
nba/app/src/main/java/com/tyhoo/android/nba/ui/player/PlayersFragment.kt | cnwutianhao | 600,592,169 | false | null | package com.tyhoo.android.nba.ui.player
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 androidx.lifecycle.lifecycleScope
import androidx.recyclerview.widget.DividerIt... | 0 | Kotlin | 0 | 0 | 90797aa1c354092b72ed5fc910f2c4838f1e0577 | 1,804 | android | MIT License |
compiler/frontend/src/org/jetbrains/kotlin/resolve/lazy/descriptors/LazyScriptClassMemberScope.kt | JakeWharton | 99,388,807 | false | null | /*
* Copyright 2010-2016 JetBrains s.r.o.
*
* 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 agre... | 1 | null | 4 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 2,746 | kotlin | Apache License 2.0 |
app/src/main/java/com/yzq/kotlincommon/view_model/MoshiViewModel.kt | yuzhiqiang1993 | 140,548,996 | false | {"Kotlin": 368226, "Java": 153913, "CSS": 3721, "JavaScript": 3215, "HTML": 2415} | package com.yzq.kotlincommon.view_model
import androidx.lifecycle.viewModelScope
import com.yzq.base.utils.MoshiUtils
import com.yzq.base.view_model.BaseViewModel
import com.yzq.common.api.BaseResp
import com.yzq.common.data.moshi.User
import com.yzq.common.ext.dataConvert
import com.yzq.common.net.RetrofitFactory
imp... | 0 | Kotlin | 0 | 0 | f65f96b72df77536925e6f0ef56aa27d404ce206 | 2,492 | kotlinCommon | MIT License |
fuzzer/api/src/commonMain/kotlin/com/github/jcornaz/kwik/fuzzer/api/FuzzerFactory.kt | ProdigSun | 391,233,716 | true | {"Kotlin": 237632} | package com.github.jcornaz.kwik.fuzzer.api
import com.github.jcornaz.kwik.ExperimentalKwikApi
import com.github.jcornaz.kwik.fuzzer.api.simplifier.Simplifier
import com.github.jcornaz.kwik.fuzzer.api.simplifier.pair
import com.github.jcornaz.kwik.fuzzer.api.simplifier.triple
import com.github.jcornaz.kwik.generator.ap... | 0 | null | 0 | 0 | 60d3c48838520e592ed9047fb5edd397f7f8e85c | 1,959 | kwik | Apache License 2.0 |
plugins/net/src/main/kotlin/org/rsmod/plugins/net/login/downstream/ConnectOkCodec.kt | rsmod | 293,875,986 | false | {"Kotlin": 812861} | package org.rsmod.plugins.net.login.downstream
import io.netty.buffer.ByteBuf
import org.openrs2.crypto.StreamCipher
import org.rsmod.protocol.packet.VariableByteLengthPacketCodec
import javax.inject.Singleton
@Singleton
class ConnectOkCodec : VariableByteLengthPacketCodec<LoginResponse.ConnectOk>(
type = LoginRe... | 2 | Kotlin | 63 | 79 | e1e1a85d7a4d1840ca0738e3401d18ee40424860 | 2,572 | rsmod | ISC License |
subprojects/configuration-cache/src/main/kotlin/org/gradle/configurationcache/serialization/codecs/TaskNodeCodec.kt | gradle | 302,322 | false | null | /*
* Copyright 2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 2,095 | null | 3792 | 13,076 | c1b02a85c1d02816ba0c59fd02b656f6187a4472 | 17,037 | gradle | Apache License 2.0 |
BazaarPay/src/main/java/ir/cafebazaar/bazaarpay/screens/payment/paymentmethods/PaymentMethodsType.kt | cafebazaar | 489,705,723 | false | null | package ir.cafebazaar.bazaarpay.screens.payment.paymentmethods
internal enum class PaymentMethodsType(val value: String) {
INCREASE_BALANCE("increase_balance"),
ENOUGH_BALANCE("enough_balance"),
DIRECT_DEBIT_ACTIVATION("direct_debit_activation"),
DIRECT_DEBIT("direct_debit"),
POSTPAID_CREDIT_ACTIVA... | 5 | Kotlin | 1 | 8 | 99ad2be78716bd24b4c025bfbe1b12303d0b72c3 | 397 | BazaarPay | Apache License 2.0 |
zircon.core/src/commonMain/kotlin/org/hexworks/zircon/internal/component/impl/DefaultCheckBox.kt | Xanik | 282,687,897 | false | null | package org.hexworks.zircon.internal.component.impl
import org.hexworks.zircon.api.behavior.Selectable
import org.hexworks.zircon.api.behavior.TextHolder
import org.hexworks.zircon.api.component.CheckBox
import org.hexworks.zircon.api.component.ColorTheme
import org.hexworks.zircon.api.component.data.ComponentMetadata... | 1 | null | 1 | 2 | bf435cddeb55f7c3a9da5dd5c29be13af8354d0f | 2,561 | zircon | Apache License 2.0 |
rendering/src/com/android/tools/rendering/HtmlLinkManager.kt | JetBrains | 60,701,247 | false | {"Kotlin": 53054415, "Java": 43443054, "Starlark": 1332164, "HTML": 1218044, "C++": 507658, "Python": 191041, "C": 71660, "Lex": 70302, "NSIS": 58238, "AIDL": 35382, "Shell": 29838, "CMake": 27103, "JavaScript": 18437, "Smali": 7580, "Batchfile": 7357, "RenderScript": 4411, "Clean": 3522, "Makefile": 2495, "IDL": 19} | /*
* 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... | 5 | Kotlin | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 5,835 | android | Apache License 2.0 |
app/src/main/java/com/kylecorry/procamera/ui/MainFragment.kt | kylecorry31 | 782,928,235 | false | {"Kotlin": 42618} | package com.kylecorry.procamera.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.OptIn
import androidx.camera.core.ExperimentalZeroShutterLag
import androidx.camera.core.ImageCapture.CAPTURE_MODE_MAXIMIZE_QUALITY
import and... | 29 | Kotlin | 0 | 1 | 14774132efecdaacb2ab6c724986f4b0a4f21489 | 9,733 | Pro-Camera | MIT License |
extensions/rx/src/main/java/com/extensions/rx/functions/Disposable.kt | VitaliyDoskoch | 263,280,184 | false | null | package com.extensions.rx.functions
import io.reactivex.disposables.Disposable
/**
* Recreates [Disposable] on trigger function invocation.
* @param [create] function, which gets called instantly and creates [Disposable],
* providing trigger function.
* When consumer calls that trigger function, [create] function... | 0 | Kotlin | 0 | 0 | 9de9670b1b24934a39122b58517d026569cea1d3 | 504 | Movies | MIT License |
src/main/kotlin/com/github/kerubistan/kerub/network/SimpleInterface.kt | fossabot | 226,186,649 | true | {"Kotlin": 2261401, "Gherkin": 81712, "HTML": 74339, "JavaScript": 54476, "CSS": 754} | package com.github.kerubistan.kerub.network
import com.fasterxml.jackson.annotation.JsonTypeName
@JsonTypeName("simple")
data class SimpleInterface(
override val name: String,
override val portSpeedPerSec: Int,
val device : String
) : NetworkInterface | 0 | Kotlin | 0 | 0 | 50ac690f71b018f3db60c6b44f203902baecf50a | 259 | kerub | Apache License 2.0 |
src/main/kotlin/com/andrejusti/example/kotlin/springboot/graphql/domain/controller/graphql/config/CustomGraphQlErrorHandler.kt | justiandre | 145,351,118 | false | null | package com.andrejusti.example.kotlin.springboot.graphql.domain.controller.graphql.config
import com.fasterxml.jackson.annotation.JsonIgnore
import graphql.ErrorType
import graphql.ExceptionWhileDataFetching
import graphql.GraphQLError
import graphql.servlet.GraphQLErrorHandler
import org.apache.commons.lang3.exceptio... | 0 | Kotlin | 4 | 33 | e81a9c6daff1c2372cd27aecbe97545a4b7f24fc | 2,521 | example-kotlin-springboot-graphql | MIT License |
petcare-sample/b2c/mobile-app/petcare-with-sdk/app/src/main/java/com/wso2_sample/api_auth_sample/features/home/presentation/screens/profile/ProfileScreenViewModel.kt | wso2 | 113,807,615 | false | {"JavaScript": 4542969, "TypeScript": 1704847, "Java": 1619866, "CSS": 774091, "Kotlin": 346914, "Shell": 339125, "Ballerina": 176145, "C#": 170551, "Batchfile": 156676, "HTML": 57598, "Swift": 40860, "Objective-C": 39341, "ASP.NET": 23571, "PHP": 11361, "Python": 10018, "TSQL": 5305, "Less": 2625, "Dockerfile": 1701, ... | /*
* Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you 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... | 46 | JavaScript | 226 | 77 | df5f0d37169fd966cbc0c4c68a47f11ebec77a77 | 4,746 | samples-is | Apache License 2.0 |
src/main/kotlin/nl/deltadak/plep/ui/settingspane/colors/ColorsList.kt | deltadak | 79,740,220 | false | null | package nl.deltadak.plep.ui.settingspane.colors
import javafx.scene.control.ColorPicker
import nl.deltadak.plep.database.tables.Colors
import nl.deltadak.plep.ui.util.converters.toColor
import nl.deltadak.plep.ui.util.converters.toHex
/**
* This class represents the few color pickers with which the user can change t... | 26 | null | 1 | 2 | a5ee4e8f389bfa5c312eea3589b877c5cd468877 | 1,575 | plep | MIT License |
src/main/kotlin/nl/deltadak/plep/ui/settingspane/colors/ColorsList.kt | deltadak | 79,740,220 | false | null | package nl.deltadak.plep.ui.settingspane.colors
import javafx.scene.control.ColorPicker
import nl.deltadak.plep.database.tables.Colors
import nl.deltadak.plep.ui.util.converters.toColor
import nl.deltadak.plep.ui.util.converters.toHex
/**
* This class represents the few color pickers with which the user can change t... | 26 | null | 1 | 2 | a5ee4e8f389bfa5c312eea3589b877c5cd468877 | 1,575 | plep | MIT License |
Xmusic/src/main/java/com/nct/xmusicstation/event/PlayingSongEvent.kt | ToanMobile | 584,599,884 | false | null | package com.nct.xmusicstation.event
import com.nct.xmusicstation.data.model.song.SongDetail
import com.toan_itc.core.base.event.Event
/**
* Created by Toan.IT on 12/20/17.
* Email:<EMAIL>
*/
class PlayingSongEvent(val song: SongDetail?, val isDownload : Boolean = false):Event()
| 0 | Kotlin | 0 | 0 | 8dd243dbd3d849260988b3887dcf5d14ea462b39 | 286 | skymusic.xms.box.app | Apache License 2.0 |
app/src/main/java/co/gov/isabu/showcase/tasks/CacheUpdateTask.kt | AzaelDragon | 216,564,766 | false | null | package co.gov.isabu.showcase.tasks
import android.app.ProgressDialog
import android.os.AsyncTask
import androidx.appcompat.app.AppCompatActivity
import co.gov.isabu.showcase.helpers.NetworkHelper
import co.gov.isabu.showcase.helpers.StorageHelper
import java.lang.ref.WeakReference
/**
* Asynchronous Worker Task for... | 0 | Kotlin | 0 | 0 | 30253e5cc75f06c43329316e2f0892022d5aacb2 | 2,411 | isabu-showcase-app | MIT License |
year2019/day04/part2/src/main/kotlin/com/curtislb/adventofcode/year2019/day04/part2/Year2019Day04Part2.kt | curtislb | 226,797,689 | false | null | /*
--- Part Two ---
An Elf just remembered one more important detail: the two adjacent matching digits are not part of a
larger group of matching digits.
Given this additional criterion, but still ignoring the range rule, the following are now true:
- 112233 meets these criteria because the digits never decrease and... | 0 | Kotlin | 1 | 1 | e9ef1f42e245d730edeb0ebec57de515992d84e5 | 2,054 | AdventOfCode | MIT License |
app/src/main/java/com/fxn/bubbletabbarapp/MainActivity.kt | changefouk | 337,042,273 | true | {"Kotlin": 26067} | package com.fxn.bubbletabbarapp
import android.os.Bundle
import android.util.DisplayMetrics
import android.util.Log
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.ContextCompat
import com.fxn.OnBubbleClickListener
import com.fxn.ariana.ArianaBackgroundListener
imp... | 0 | Kotlin | 1 | 0 | f55b7d1cc877a9b967ad9e77ff75fec17f2328b1 | 3,082 | BubbleTabBar | Apache License 2.0 |
sample/src/main/java/com/readdle/swiftjava/sample/asbtracthierarhy/AbstractType.kt | readdle | 116,164,472 | false | {"Gradle": 7, "INI": 2, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "XML": 9, "Kotlin": 29, "Java": 46, "Swift": 22, "YAML": 2} | package com.readdle.swiftjava.sample.asbtracthierarhy
import com.readdle.codegen.anotation.SwiftValue
@SwiftValue(hasSubclasses = true)
open class AbstractType protected constructor() {
external fun basicMethod(): String
}
| 4 | Java | 12 | 28 | b2c263239055b4224ea1c1dcd0afa99e294b0a1d | 231 | swift-java-codegen | MIT License |
cams/src/main/java/com/linwei/cams/http/repository/IDataRepository.kt | WeiShuaiDev | 390,686,269 | false | null | package com.linwei.cams.http.repository
import android.app.Application
/**
* ---------------------------------------------------------------------
* @Author: WeiShuai
* @Time: 2020/7/14
* @Contact: <EMAIL>
* @Github: https://github.com/WeiShuaiDev
* @Description:
*----------------------------------------------... | 1 | Kotlin | 1 | 1 | 3c7289aae35551ee53284d91e96ad5f24c21eb50 | 902 | Cams | Apache License 2.0 |
common/build/generated/ksp/main/kotlin/dev/kord/common/entity/TeamMembershipState.kt | kordlib | 202,856,399 | false | null | // THIS FILE IS AUTO-GENERATED BY KordEnumProcessor.kt, DO NOT EDIT!
@file:Suppress(names = arrayOf("RedundantVisibilityModifier", "IncorrectFormatting",
"ReplaceArrayOfWithLiteral", "SpellCheckingInspection", "GrazieInspection"))
package dev.kord.common.entity
import kotlin.Any
import kotlin.Boolean
... | 54 | null | 66 | 689 | 2b12ba28ec50140286e38db2223cdcfd5a6166eb | 3,995 | kord | MIT License |
core/src/main/java/com/jtuffery/mealmanager/core/randomrecipes/domain/model/RandomRecipesEntity.kt | TufferyJordan | 395,443,919 | false | null | package com.jtuffery.mealmanager.core.randomrecipes.domain.model
import com.jtuffery.mealmanager.core.shared.domain.model.RecipeEntity
data class RandomRecipesEntity(val recipeList: List<RecipeEntity>) | 0 | Kotlin | 0 | 1 | 289ce167f229ae466898c8c1322f461eae669190 | 203 | MealManager | MIT License |
src/main/kotlin/de/smoofy/eurocup/tournament/match/MatchesInventory.kt | Smoofy19 | 816,489,200 | false | {"Kotlin": 97974} | package de.smoofy.eurocup.tournament.match
import de.smoofy.eurocup.EuroCup
import de.smoofy.eurocup.builder.InventoryBuilder
import de.smoofy.eurocup.builder.ItemBuilder
import de.smoofy.eurocup.builder.SkullBuilder
import de.smoofy.eurocup.fan.Team
import de.smoofy.eurocup.utils.Keys
import de.smoofy.eurocup.utils.S... | 0 | Kotlin | 0 | 0 | 694ed3e3433ef68c59f196c5522a01f80b8c7059 | 3,550 | EuroCup24 | MIT License |
app/src/main/java/com/pajokka/githubuser/utils/ZoomOutPageTransformer.kt | rrdhoi | 425,407,913 | false | {"Kotlin": 62493} | package com.pajokka.githubuser.utils
import android.view.View
import androidx.viewpager2.widget.ViewPager2
private const val MIN_SCALE = 0.85f
private const val MIN_ALPHA = 0.5f
class ZoomOutPageTransformer : ViewPager2.PageTransformer {
override fun transformPage(view: View, position: Float) {
view.app... | 1 | Kotlin | 1 | 5 | 7907b152c52a27d7c85986319e006fa57bb87a4c | 1,312 | Jithapp | Apache License 2.0 |
deprecated/sample-xml/app/src/main/java/co/nimblehq/sample/xml/di/modules/NavigatorModule.kt | nimblehq | 101,353,301 | false | {"Kotlin": 387666, "Ruby": 5344, "XSLT": 1824} | package co.nimblehq.sample.xml.di.modules
import co.nimblehq.sample.xml.ui.screens.MainNavigator
import co.nimblehq.sample.xml.ui.screens.MainNavigatorImpl
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.android.components.FragmentComponent
@Module
@InstallIn(FragmentComponent... | 31 | Kotlin | 23 | 94 | f07941499a70b6144f4280c233edba542ab3e516 | 456 | android-templates | MIT License |
app/src/main/kotlin/com/github/typ0520/codee/network/Github.kt | typ0520 | 115,848,990 | false | null | package com.github.typ0520.codee.network
import com.github.typ0520.codee.BuildConfig
import com.github.typ0520.codee.base.DEFAULT_PER_PAGE
import com.github.typ0520.codee.mvp.bean.*
import com.github.typ0520.codee.network.route.Scope
import io.reactivex.Observable
import retrofit2.http.GET
import retrofit2.http.POST
i... | 1 | Kotlin | 1 | 4 | 8fde9be47123528a4bfdf09a78f9a2264dea6900 | 6,474 | Codee | Apache License 2.0 |
data/src/test/java/com/github/albertopeam/data/ArtistsDataSourceImplementationTests.kt | albertopeam | 294,799,044 | false | null | package com.github.albertopeam.data
import com.github.albertopeam.data.artists.ArtistDataSourceImplementation
import com.github.albertopeam.data.artists.ArtistService
import com.github.albertopeam.data.service.ServiceBuilder
import com.github.albertopeam.data.utils.MockResponseFileReader
import com.github.albertopeam.... | 0 | Kotlin | 0 | 2 | 23e02f627a81d90b85eb03ab22824c56ff99c4ab | 2,389 | spoktify | MIT License |
easylauncher/src/test/kotlin/com/project/starter/easylauncher/plugin/EasyLauncherConfigTest.kt | mhelder | 292,776,545 | true | {"Kotlin": 50116} | package com.project.starter.easylauncher.plugin
import com.project.starter.easylauncher.plugin.utils.WithGradleProjectTest
import com.project.starter.easylauncher.plugin.utils.buildScript
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
internal class EasyLauncherConfigTest : WithGradleProjec... | 0 | null | 0 | 0 | 46cdbb58b0521d7e6596bb81c1df9d3119258640 | 2,495 | easylauncher-gradle-plugin | MIT License |
SS-W-Discord/src/main/kotlin/com/github/syari/ss/wplugins/discord/api/handle/MessageCreateHandler.kt | SecondStoryServer | 314,996,172 | false | null | package com.github.syari.ss.wplugins.discord.api.handle
import com.github.syari.ss.wplugins.discord.api.DiscordAPI
import com.github.syari.ss.wplugins.discord.api.entity.Emoji
import com.github.syari.ss.wplugins.discord.api.entity.Guild
import com.github.syari.ss.wplugins.discord.api.entity.Member
import com.github.sy... | 25 | Kotlin | 1 | 2 | 9af898e4eef290b8a2e4c0f75e3f99afb0b19e57 | 3,229 | SS-Plugins | Apache License 2.0 |
app/src/main/java/com/m2mmusic/android/logic/network/service/SongService.kt | guosuweidev | 259,247,961 | false | {"Kotlin": 308044, "JavaScript": 90327} | package com.m2mmusic.android.logic.network.service
import com.m2mmusic.android.logic.model.SongResponse
import com.m2mmusic.android.logic.model.UrlOfSongResponse
import retrofit2.http.GET
import retrofit2.http.Query
import retrofit2.Call
interface SongService {
/**
* 获取歌曲URL
*/
@GET("song/url")
... | 0 | Kotlin | 0 | 1 | 3a246d68421cbde0a3c241b7864b9139c43fd56d | 1,082 | M2M-Music | Apache License 2.0 |
src/main/kotlin/com/github/iambaljeet/templater/services/MyProjectService.kt | iambaljeet | 301,542,094 | false | null | package com.github.iambaljeet.templater.services
import com.intellij.openapi.project.Project
import com.github.iambaljeet.templater.MyBundle
class MyProjectService(project: Project) {
init {
println(MyBundle.message("projectService", project.name))
}
}
| 0 | Kotlin | 0 | 0 | fc0ffd8e00d65978b8ec9912f633cea16d1a3ef7 | 272 | templater | Apache License 2.0 |
app/src/main/java/com/ohuji/cardsNmonsters/screens/augmented_reality/ARScreen.kt | ohuji | 598,587,284 | false | null | package com.ohuji.cardsNmonsters.screens.augmented_reality
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.f... | 0 | Kotlin | 1 | 3 | 41f7c3e794d73b28582e3d0fde36f353083003ef | 14,069 | Cards-Monsters | MIT License |
inference/src/main/kotlin/io/kinference/operators/tensor/Slice.kt | cybernetics | 324,970,047 | true | {"Kotlin": 461291, "PureBasic": 24490} | package io.kinference.operators.tensor
import io.kinference.attributes.Attribute
import io.kinference.data.tensors.Tensor
import io.kinference.data.tensors.asTensor
import io.kinference.graph.Context
import io.kinference.ndarray.arrays.IntNDArray
import io.kinference.ndarray.arrays.LongNDArray
import io.kinference.nda... | 0 | null | 0 | 0 | 8aa3295f112353949562750b83991b7ea8b83cf2 | 6,441 | kinference | Apache License 2.0 |
plugins/src/main/kotlin/com/freeletics/gradle/monorepo/tasks/ComputeVersionCodeTask.kt | freeletics | 611,205,691 | false | {"Kotlin": 158054, "Shell": 2852} | package com.freeletics.gradle.tasks
import com.freeletics.gradle.util.RealGit
import com.freeletics.gradle.util.computeInfoFromGit
import java.io.File
import java.time.LocalDate
import org.gradle.api.DefaultTask
import org.gradle.api.Project
import org.gradle.api.file.RegularFileProperty
import org.gradle.api.provider... | 7 | Kotlin | 1 | 9 | d5d74c8e0f6c05f37edf6af7b4658e31e894de00 | 1,975 | freeletics-gradle-plugins | Apache License 2.0 |
uix-pages/src/main/java/me/shouheng/uix/pages/image/Glide4Engine.kt | fg2q1q3q | 375,986,738 | false | {"C++": 4855567, "CMake": 538827, "Kotlin": 359069, "C": 295144, "Java": 56875, "Objective-C": 7348, "Makefile": 5336} | package me.shouheng.uix.pages.image
import android.content.Context
import android.graphics.drawable.Drawable
import android.net.Uri
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bumptech.glide.Priority
import com.bumptech.glide.request.RequestOptions
import com.zhihu.matisse.engine.ImageEn... | 0 | C++ | 0 | 0 | 0549366a465e038ab6288ed910b2f74128669ef6 | 2,256 | Android-uix | Apache License 2.0 |
app/src/main/java/ru/zavedyaev/fillme/primitive/Triangle.kt | zavedyaev | 181,200,666 | false | null | package ru.zavedyaev.fillme.primitive
import android.opengl.GLES31
import java.nio.ByteBuffer
import java.nio.ByteOrder
import java.nio.FloatBuffer
/**
* Represents triangle
* a
* / \
* / \
* b----c
*/
open class Triangle(
val a: Point,
val b: Point,
val c: Point
) {
private val ... | 1 | Kotlin | 0 | 0 | 3354a03d590f51e2bc7f3296a9e0c5968ec5d991 | 4,987 | fill_me | Open Market License |
app/src/main/java/com/example/simplewishlist/WishItem.kt | Shady-Rouk | 689,070,541 | false | {"Kotlin": 5162} | package com.example.simplewishlist
class WishItem(
val itemName: String,
val itemPrice: Double,
val itemLink: String) {} | 0 | Kotlin | 0 | 0 | 3957e659f31eeb250baf343a982a90e2e9b1a6b5 | 133 | SimpleWishlist | Apache License 2.0 |
app/src/main/java/com/example/android/ballBounce/view/CanvasDrawView.kt | trlaw | 330,268,031 | false | null | package com.example.android.ballBounce.view
import android.content.Context
import android.graphics.Canvas
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.View
import com.example.android.ballBounce.utility.Rectangle
import com.example.android.ballBounce.utility.Vector
import com.exa... | 0 | Kotlin | 0 | 0 | eaa330713095bca6f90cd068201b4ffdad9984ab | 1,354 | BallBounce | MIT License |
app/src/main/java/xyz/teamgravity/kichkinashahzoda/core/service/SongNotificationManager.kt | raheemadamboev | 527,998,459 | false | null | package xyz.teamgravity.kichkinashahzoda.core.service
import android.app.PendingIntent
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.support.v4.media.session.MediaControllerCompat
import android.support.v4.media.session.MediaSessionCompat
import com.... | 0 | Kotlin | 1 | 3 | 37a7349e32693e2ad956db6bee262556b60ba504 | 2,444 | kichkina-shahzoda | Apache License 2.0 |
app/src/main/java/us/ihmc/android/nats/NATSActivity.kt | icochico | 75,347,938 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 3, "Ignore List": 1, "Batchfile": 1, "Markdown": 2, "Proguard": 1, "Java": 3, "XML": 7, "Kotlin": 2} | package us.ihmc.android.nats
import android.Manifest
import android.content.Context
import android.content.DialogInterface
import android.content.pm.PackageManager
import android.os.AsyncTask
import android.os.Bundle
import android.support.v4.app.ActivityCompat
import android.support.v7.app.AlertDialog
import android.... | 0 | Kotlin | 1 | 10 | 8e8f9615d4a0e41737509ec36ac1ac99f14cf001 | 17,096 | nats-android | MIT License |
Tabuada_Refatorada/app/src/main/java/com/cassio/tabuada_refatorada/MainActivity.kt | cassiofm | 382,967,684 | false | null | package com.cassio.tabuada_app3
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.Button
import android.widget.EditText
import android.widget.TextView
//import kotlinx.android.synthetic.main.activity_main.*
//import kotlinx.a... | 0 | Kotlin | 0 | 0 | ee75a080ae06c2ddd4ab1a0ed26bed81c08dc293 | 1,312 | mobile | MIT License |
android-base/basektlib/src/main/java/com/kangraoo/basektlib/tools/store/DiskCacheStore.kt | smartbackme | 390,677,125 | false | null | package com.kangraoo.basektlib.tools.store
import android.text.TextUtils
import com.jakewharton.disklrucache.DiskLruCache
import com.kangraoo.basektlib.app.SApplication
import com.kangraoo.basektlib.data.model.SExpModel
import com.kangraoo.basektlib.exception.LibPermissionException
import com.kangraoo.basektlib.except... | 0 | Kotlin | 1 | 2 | 39b595a9a7a8bf5176022a51bc3fd63fa536414d | 5,592 | Creative-Challenge-DrawingBoard | MIT License |
examplemodule/src/main/kotlin/com/example/examplemodule/routing/Route.kt | teambankrupt | 292,100,358 | false | {"Kotlin": 13084, "HTML": 3849, "Java": 586} | package com.example.examplemodule.routing
class Route {
class V1 {
companion object {
private const val API = "/api"
private const val VERSION = "/v1"
private const val ADMIN = "/admin"
}
}
}
| 0 | Kotlin | 0 | 0 | e1656ff77d6e60bc0aabc00dad5701af2a96f8aa | 255 | examples | Apache License 2.0 |
2023/src/test/kotlin/Day08Test.kt | dlew | 498,498,097 | false | {"Kotlin": 331659, "TypeScript": 69253, "Python": 25458, "JavaScript": 262} | import org.junit.jupiter.api.Test
import utils.getResourceAsString
import kotlin.test.assertEquals
class Day08Test {
@Test
fun part1_sample1() {
assertEquals(2, Day08.part1(getResourceAsString("day08-sample1.txt")))
}
@Test
fun part1_sample2() {
assertEquals(6, Day08.part1(getResourceAsString("day08... | 0 | Kotlin | 0 | 0 | dda4127d9d622c321917370b38fe59e4ae09d565 | 663 | advent-of-code | MIT License |
app/src/main/java/com/mjkim/infinityviewpager/InfinityViewPagerAdapter.kt | mjkim737 | 331,807,297 | false | null | package com.mjkim.infinityviewpagerlib
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
class InfinityViewPagerAdapter(private val list : ArrayList<Any>, private va... | 0 | Kotlin | 0 | 0 | 62b1e0cf2bc6e83390e02c8a81f62365ce101eb4 | 969 | InfinityViewPager | Apache License 2.0 |
app/src/test/java/kasem/sm/delightplayground/datasource/cache/RocketDatabaseFake.kt | kasem-sm | 408,881,519 | false | {"Kotlin": 105619} | /*
Copyright (c) 2021 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... | 0 | Kotlin | 4 | 40 | 0ff3f4ba8c40985da8283c681e9e4193f2cf4b60 | 917 | RocketXDelight-Playground | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.