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/academy/android/data/network/ServerApi.kt | mik629 | 377,047,782 | true | {"Kotlin": 118816} | package com.academy.android.data.network
import com.academy.android.data.network.models.CourseDTO
import com.academy.android.data.network.models.LectureDTO
import com.academy.android.data.network.models.LoginRequestDTO
import com.academy.android.data.network.models.LoginResponseDTO
import com.academy.android.data.netw... | 19 | Kotlin | 0 | 1 | 4b6265571643fc7a8f346a31e12309bbc7a4d42b | 1,641 | AndroidAcademyClient | Apache License 2.0 |
app/src/main/java/com/duckduckgo/app/browser/remotemessage/RemoteMessagingViewModel.kt | hojat72elect | 822,396,044 | false | {"Kotlin": 11627106, "HTML": 65873, "Ruby": 16984, "C++": 10312, "JavaScript": 5520, "CMake": 1992, "C": 1076, "Shell": 784} |
package com.duckduckgo.app.browser.remotemessage
import com.duckduckgo.app.pixels.AppPixelName
import com.duckduckgo.app.statistics.pixels.Pixel
import com.duckduckgo.common.utils.DispatcherProvider
import com.duckduckgo.di.scopes.ViewScope
import com.duckduckgo.remote.messaging.api.Action
import com.duckduckgo.remo... | 0 | Kotlin | 0 | 0 | b89591136b60933d6a03fac43a38ee183116b7f8 | 3,570 | DuckDuckGo | Apache License 2.0 |
src/main/kotlin/org/ageseries/libage/parsers/falstad/components/generic/OutputProbe.kt | age-series | 414,408,529 | false | null | package org.eln2.parsers.falstad.components.generic
import org.eln2.parsers.falstad.CCData
import org.eln2.parsers.falstad.IComponentConstructor
import org.eln2.parsers.falstad.PinRef
import org.eln2.parsers.falstad.PosSet
import org.eln2.sim.electrical.mna.component.Resistor
/**
* Output Probe
*
* Falstad's Outpu... | 5 | null | 1 | 1 | 0ce1c5a1d7eff41a0dbee389d50c6eaa10cac7c0 | 876 | libage | MIT License |
alchemy-core/src/commonMain/kotlin/com/alchemy/sdk/core/model/BlockCount.kt | tguerin | 534,856,094 | false | null | package com.alchemy.sdk.core.model
import com.alchemy.sdk.core.adapter.KBlockCountSerializer
import kotlinx.serialization.Serializable
import kotlin.jvm.JvmInline
@JvmInline
@Serializable(with = KBlockCountSerializer::class)
value class BlockCount constructor(val value: Int) {
companion object {
val Int.... | 4 | Kotlin | 0 | 3 | 9768a7ab07d9955e3036c32b1f4497527f237b34 | 456 | alchemy-sdk-kotlin | MIT License |
app/src/main/java/de/comobi/Constants.kt | Sheroziy-CODE | 428,068,297 | false | {"Kotlin": 44271} | package de.comobi
/**
Constants are used in ChatVideModel.kt and Chat.kt to store adn sort date.
**/
object Constants {
const val TAG = "comobi-chat"
const val MESSAGES = "messages_android"
const val MESSAGE = "message"
const val SENT_BY = "sent_by"
const val SENT_ON = "sent_on"
const val IS_... | 0 | Kotlin | 0 | 0 | 9e90e55078208c1e5250af27fe5b3d9f6eb85ac4 | 354 | comobi | Open Market License |
shared/gamelogic/src/commonMain/kotlin/dmitry/molchanov/gamelogic/domain/SnakeHelper.kt | MolchanovDmitry | 548,285,365 | false | {"Kotlin": 107173, "HTML": 334} | package dmitry.molchanov.gamelogic.domain
import dmitry.molchanov.gamelogic.GameInputParams
import dmitry.molchanov.gamelogic.domain.gameoverstrategy.GameOverStrategy
import kotlin.random.Random
class SnakeHelper(
gameInputParams: GameInputParams,
private val screenHelper: ScreenHelper,
private val gameOv... | 0 | Kotlin | 0 | 0 | dee62070a223c64236ea397a48fa11b469dc585e | 5,541 | SnakeKmp | Apache License 2.0 |
processor/src/main/kotlin/com/casadetasha/kexp/petals/processor/outputgenerator/renderer/accessor/templates/functions/LoadFunctionTemplates.kt | Path-to-plunder | 505,638,891 | false | null | package com.casadetasha.kexp.petals.processor.outputgenerator.renderer.accessor.templates.functions
import addIf
import com.casadetasha.kexp.petals.processor.model.columns.PetalReferenceColumn
import com.casadetasha.kexp.petals.processor.model.AccessorClassInfo
import com.casadetasha.kexp.generationdsl.dsl.CodeTemplat... | 0 | Kotlin | 0 | 0 | 6e393bbd1ca09e4922260f0e383bf00f7926c166 | 6,025 | petals | Apache License 2.0 |
app/src/main/java/com/zeynelerdi/mackolik/di/module/NewsFragmentModule.kt | ZeynelErdiKarabulut | 320,010,103 | false | {"Kotlin": 116012} | package com.zeynelerdi.mackolik.ui.news
import com.zeynelerdi.mackolik.di.ViewModelKey
import dagger.Module
@Module
abstract class NewsFragmentModule {
@ViewModelKey(NewsViewModel::class)
internal abstract fun provideMainViewModel(viewModel: NewsViewModel): NewsViewModel
}
| 0 | Kotlin | 0 | 1 | 4b40e57d2193706e15e18dd77fbb459e960f35db | 286 | Mackolik | Apache License 2.0 |
app/src/main/java/eu/kanade/tachiyomi/ui/source/browse/BrowseSourceGridHolder.kt | Jays2Kings | 175,908,029 | false | null | package eu.kanade.tachiyomi.ui.source.browse
import android.app.Activity
import android.view.View
import androidx.core.view.isVisible
import androidx.recyclerview.widget.RecyclerView
import coil.Coil
import coil.clear
import coil.request.ImageRequest
import eu.davidea.flexibleadapter.FlexibleAdapter
import eu.davidea.... | 84 | null | 73 | 974 | 928f7553bf800cbbc9006e7242f78741dfd64179 | 2,881 | tachiyomiJ2K | Apache License 2.0 |
HexCodeK/src/main/kotlin/risky/hexcode/Main.kt | risky098 | 314,912,693 | false | null | package risky.hexcode
import org.bukkit.Bukkit
import org.bukkit.plugin.java.JavaPlugin
import risky.hexcode.pack.ChatEvent
class Main : JavaPlugin() {
var prefix = "§b[HexCode] §f: "
override fun onEnable() {
Bukkit.getLogger().info(prefix + "플러그인이 활성화 되었습니다.")
Bukkit.getLogger().info(prefix... | 0 | Kotlin | 0 | 1 | b1776b471fa39b0bd73d06037f2a60b3bd417ad0 | 484 | HexCodeK | MIT License |
core/data/src/main/java/bivano/apps/data/di/RepositoryModule.kt | bimovall | 255,101,239 | false | null | package bivano.apps.data.di
import bivano.apps.data.local.LocalDataSource
import bivano.apps.data.local.LocalDataSourceImpl
import bivano.apps.data.remote.RemoteDataSource
import bivano.apps.data.remote.RemoteDataSourceImpl
import bivano.apps.data.repository.achieved.AchievedRepository
import bivano.apps.data.reposito... | 0 | Kotlin | 0 | 1 | e5ac2b34063d282738961fe9213b769234f1453e | 1,611 | YourNews | Apache License 2.0 |
compiler/testData/codegen/box/inlineClasses/functionNameMangling/propertySetterWithInlineClassTypeArgument.kt | JetBrains | 3,432,266 | false | null | // WITH_RUNTIME
@Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE")
@kotlin.jvm.JvmInline
value class Str(val string: String)
class C {
var s = Str("")
}
fun box(): String {
val x = C()
x.s = Str("OK")
return x.s.string
} | 125 | null | 4813 | 39,375 | 83d2d2cfcfc3d9903c902ca348f331f89bed1076 | 249 | kotlin | Apache License 2.0 |
app/src/main/java/com/zacharee1/systemuituner/views/WriteSettingsView.kt | zacharee | 221,786,635 | false | {"Kotlin": 681812, "AIDL": 1172} | package com.zacharee1.systemuituner.views
import android.content.Context
import android.util.AttributeSet
import androidx.constraintlayout.widget.ConstraintLayout
import com.zacharee1.systemuituner.data.SettingsType
import com.zacharee1.systemuituner.databinding.DialogWriteSettingBinding
import com.zacharee1.systemuit... | 25 | Kotlin | 174 | 994 | 27672d3a0ad7caf1dce360dc1a0651926903b8a8 | 1,063 | Tweaker | MIT License |
ui/src/main/kotlin/gq/kirmanak/mealient/ui/Theme.kt | kirmanak | 431,195,533 | false | null | package gq.kirmanak.mealient
import android.os.Build
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.dynamicDarkColorScheme
import androidx.compose.material3.dynamicLightColorSchem... | 9 | null | 2 | 99 | 6f8a9520f3736ae641e4541d24afb0dcf9623ea0 | 1,291 | Mealient | MIT License |
sketch-core/src/androidTest/kotlin/com/github/panpf/sketch/core/test/request/internal/EngineRequestInterceptorTest.kt | panpf | 14,798,941 | false | null | /*
* Copyright (C) 2022 panpf <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 7 | null | 309 | 1,978 | 82ffde1ff148311bb5b36eb70a4c82224d1f3af4 | 5,201 | sketch | Apache License 2.0 |
app/src/main/java/com/m3rc/beerbox/app/beer/BeerDetailsBottomDialog.kt | M3rcur14l | 171,579,998 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 41, "XML": 46, "Java": 5} | package com.m3rc.beerbox.app.beer
import android.content.res.ColorStateList
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.bumptech.glide.Glide
import com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions
import com.google.and... | 1 | null | 1 | 1 | 7647e42d4c1011ee125b6f848e914b8d090d795b | 2,059 | Beer-Box | Apache License 2.0 |
src/main/kotlin/org/parchmentmc/scribe/action/MapParameterAction.kt | ParchmentMC | 400,296,571 | false | null | /*
* Scribe
* Copyright (C) 2021 ParchmentMC
*
* 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, merg... | 1 | Kotlin | 2 | 4 | abb07e6575a74f952e61b0857a3ce65a950a6933 | 4,769 | Scribe | MIT License |
AndroidKotlinDemo/app/src/main/java/com/yueban/androidkotlindemo/demo/paging/ui/SearchRepositoriesActivity.kt | yueban | 27,426,345 | false | null | package com.yueban.androidkotlindemo.demo.paging.ui
import android.os.Bundle
import android.util.Log
import android.view.KeyEvent
import android.view.View
import android.view.inputmethod.EditorInfo
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.Observer
import and... | 0 | Java | 4 | 16 | 9ff75adc009aadedba4d05850af8a7748afbb6e2 | 4,193 | AndroidExercise | Apache License 2.0 |
backend/src/test/kotlin/fr/gouv/cacem/monitorenv/domain/use_cases/controlUnit/CanDeleteControlUnitUTests.kt | MTES-MCT | 462,794,012 | false | {"TypeScript": 1358478, "Kotlin": 815514, "Python": 209694, "Shell": 21375, "CSS": 19997, "JavaScript": 8409, "Makefile": 8169, "Dockerfile": 6554, "PLpgSQL": 4966, "HTML": 864} | package fr.gouv.cacem.monitorenv.domain.use_cases.controlUnit
import com.nhaarman.mockitokotlin2.given
import fr.gouv.cacem.monitorenv.domain.entities.mission.MissionEntity
import fr.gouv.cacem.monitorenv.domain.entities.mission.MissionSourceEnum
import fr.gouv.cacem.monitorenv.domain.entities.reporting.ReportingEntit... | 190 | TypeScript | 1 | 3 | f755ce65909e473e564ff5e273b9b4930e82ad4d | 5,031 | monitorenv | MIT License |
common/src/main/java/org/anti_ad/mc/common/Interfaces.kt | blackd | 351,481,591 | false | null | package org.anti_ad.mc.common
interface Savable {
fun save()
fun load()
}
interface IInputHandler {
fun onInput(lastKey: Int,
lastAction: Int): Boolean
}
interface ScreenEventListener { // eavesdrop event/input
fun resize( /* minecraftClient: Any, */
width: Int,
... | 12 | null | 12 | 47 | d8ff23dd59d58b22b4dc1684f081b7139a0dd42e | 1,198 | Inventory-Profiles | MIT License |
app/src/main/java/com/lvp/autodownloader/ui/theme/Color.kt | LuongPV | 770,756,923 | false | {"Kotlin": 224582} | package com.lvp.autodownloader.ui.theme
import androidx.compose.ui.graphics.Color
val MainThemeColor = Color(0xFFCFA435)
val DisableColor = Color(0xFFC5C5C5)
val EnableColor = Color(0xFF141414)
val SuggestColor = Color(0xFF1E7917)
val GreenColor = Color(0xFF1E7917)
val BackgroundColor = Color(0xFFF0F0F0)
const val Re... | 0 | Kotlin | 0 | 0 | 202996200152e344a90a07c2c69588d0263a9496 | 339 | AutoDownloader | Apache License 1.1 |
compiler/testData/writeSignature/declarationSiteVariance/OutInOutPosition.kt | JakeWharton | 99,388,807 | false | null | fun f(): List<String> = throw Exception()
// method: OutInOutPositionKt::f
// jvm signature: ()Ljava/util/List;
// generic signature: ()Ljava/util/List<Ljava/lang/String;>; | 179 | null | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 177 | kotlin | Apache License 2.0 |
src/commonMain/kotlin/app/thelema/ui/ScissorStack.kt | zeganstyl | 275,550,896 | false | null | /*
* Copyright 2020-2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 3 | Kotlin | 5 | 61 | 8e2943b6d2de3376ce338025b58ff31c14097caf | 5,309 | thelema-engine | Apache License 2.0 |
app/src/main/java/com/hfut/schedule/ui/Activity/success/cube/Settings/Items/MyAPIItem.kt | Chiu-xaH | 705,508,343 | false | null | package com.hfut.schedule.ui.ComposeUI.Settings.Items
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Card
import androidx.compose.material3.CardDefaults
import androidx.compose.mater... | 0 | null | 1 | 3 | aead3d3e437531c52a0ba99d71fae27d4ea0fe4f | 3,142 | HFUT-Schedule | Apache License 2.0 |
SingleModuleApp/app/src/main/java/com/github/yamamotoj/singlemoduleapp/package51/Foo05117.kt | yamamotoj | 163,851,411 | false | null | package com.github.yamamotoj.singlemoduleapp.package51
class Foo05117 {
fun method0() {
Foo05116().method5()
}
fun method1() {
method0()
}
fun method2() {
method1()
}
fun method3() {
method2()
}
fun method4() {
method3()
}
fun met... | 0 | Kotlin | 0 | 9 | 2a771697dfebca9201f6df5ef8441578b5102641 | 355 | android_multi_module_experiment | Apache License 2.0 |
reduks/src/main/kotlin/com/beyondeye/reduks/Action.kt | beyondeye | 59,747,728 | false | {"Kotlin": 505882, "Java": 192306} | package com.beyondeye.reduks
/**
* base interface for all standard Reduks actions
* Created by daely on 8/28/2016.
*/
interface Action
/**
* default start action sent when reduks starts up
*/
class INIT:Action | 5 | Kotlin | 10 | 111 | 80b84d221b92aef0b172938c2e6efaef973269b1 | 218 | Reduks | Apache License 2.0 |
schema-server-core/src/test/java/com/orbitalhq/schemaServer/core/file/packages/FileSystemTaxiPackageLoaderTest.kt | orbitalapi | 541,496,668 | false | {"TypeScript": 9344934, "Kotlin": 5669840, "HTML": 201985, "SCSS": 170620, "HCL": 55741, "Java": 29373, "JavaScript": 24697, "Shell": 8800, "Dockerfile": 7001, "Smarty": 4741, "CSS": 2966, "Mustache": 1392, "Batchfile": 983, "MDX": 884, "PLpgSQL": 337} | package com.orbitalhq.schemaServer.core.file.packages
import com.winterbe.expekt.should
import com.orbitalhq.schemaServer.packages.TaxiPackageLoaderSpec
import com.orbitalhq.schemaServer.core.file.FileProjectSpec
import com.orbitalhq.schemaServer.core.file.deployProject
import org.junit.Test
import reactor.kotlin.test... | 9 | TypeScript | 10 | 292 | 2be59abde0bd93578f12fc1e2ecf1f458a0212ec | 1,431 | orbital | Apache License 2.0 |
fingerprint/src/main/java/com/fingerprintjs/android/fingerprint/device_id_providers/MediaDrmIdProvider.kt | fingerprintjs | 305,740,280 | false | null | package com.fingerprintjs.android.fingerprint.device_id_providers
import android.media.MediaDrm
import android.os.Build
import com.fingerprintjs.android.fingerprint.tools.DeprecationMessages
import com.fingerprintjs.android.fingerprint.tools.executeSafe
import java.security.MessageDigest
import java.util.UUID
@Depr... | 6 | null | 72 | 467 | 563fbbccac04c2903851d5840cf60f8d67beafa7 | 1,477 | fingerprintjs-android | MIT License |
save-orchestrator-common/src/main/kotlin/com/saveourtool/save/orchestrator/controller/AgentsController.kt | saveourtool | 300,279,336 | false | {"Kotlin": 3427161, "SCSS": 86430, "JavaScript": 9061, "HTML": 8852, "Shell": 2770, "Smarty": 2608, "Dockerfile": 1366} | package com.saveourtool.save.orchestrator.controller
import com.saveourtool.common.execution.ExecutionStatus
import com.saveourtool.common.request.RunExecutionRequest
import com.saveourtool.common.utils.EmptyResponse
import com.saveourtool.common.utils.info
import com.saveourtool.save.orchestrator.runner.ContainerRunn... | 201 | Kotlin | 3 | 38 | e101105f8e449253d5fbe81ece2668654d08639f | 3,773 | save-cloud | MIT License |
ontrack-model/src/main/java/net/nemerosa/ontrack/model/security/ValidationStampFilterCreate.kt | nemerosa | 19,351,480 | false | null | package net.nemerosa.ontrack.model.security
/**
* Allowing the creation of validation stamp filters.
*/
@CoreFunction
interface ValidationStampFilterCreate : ProjectFunction
| 57 | Kotlin | 27 | 97 | 7c71a3047401e088ba0c6d43aa3a96422024857f | 177 | ontrack | MIT License |
src/advanced_control_flow/Range.kt | tumininucodes | 326,037,478 | false | null | package advanced_control_flow
fun main() {
val closedRange = 0..5
println(closedRange)
val halfOpenRange = 0 until 5
println(halfOpenRange)
val decreasingRange = 5 downTo 0
println(decreasingRange)
} | 0 | Kotlin | 0 | 1 | cd7f87ebaabde14000879097a912f796f971ba90 | 226 | kotlin | MIT License |
app/src/main/java/com/example/achadin/adapter/ChatsAdapter.kt | Francisco-Jean | 798,323,342 | false | {"Kotlin": 361718, "Java": 455} | package com.example.achadin.adapter
import android.content.Context
import android.content.DialogInterface
import android.content.Intent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.RelativeLayout
import android.widget.Te... | 0 | Kotlin | 0 | 5 | acf7d6545abd9b10abbd6054ea92c653904f23e3 | 8,835 | AchadinApp | MIT License |
backend/app/src/test/kotlin/io/tolgee/dialects/postgres/CustomPostgreSQLDialectTest.kt | tolgee | 303,766,501 | false | null | package io.tolgee.dialects.postgres
import io.tolgee.model.UserAccount
import io.tolgee.testing.assertions.Assertions.assertThat
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.context.testng.AbstractTransactional... | 28 | Kotlin | 4 | 132 | 6f73e5fba815674b470098949577406f3d75a171 | 1,037 | server | Apache License 2.0 |
core/src/main/java/com/example/core/di/components/CoreComponent.kt | princessdharmy | 171,189,157 | false | null | package com.example.core.di.components
import android.content.Context
import com.example.core.di.modules.CoreModule
import com.example.core.di.modules.DatabaseModule
import com.example.data.di.DataModule
import com.example.domain.repository.CompetitionsRepository
import dagger.BindsInstance
import dagger.Component
imp... | 1 | null | 10 | 93 | 2e5e64a084af5e3d64ecd97087c176185287605a | 649 | FootballFixturesApp | MIT License |
stripecardscan/src/main/java/com/stripe/android/stripecardscan/framework/image/BitmapExtensions.kt | stripe | 6,926,049 | false | null | package com.stripe.android.stripecardscan.framework.image
import android.graphics.Bitmap
import androidx.annotation.CheckResult
/**
* Convert a [Bitmap] to an [MLImage] for use in ML models.
*/
@CheckResult
internal fun Bitmap.toMLImage(mean: Float = 0F, std: Float = 255F) = MLImage(this, mean, std)
/**
* Convert... | 64 | Kotlin | 522 | 935 | bec4fc5f45b5401a98a310f7ebe5d383693936ea | 503 | stripe-android | MIT License |
app/src/main/java/com/metoer/clocktracker/data/repositories/ClockRepository.kt | etokoc | 510,835,828 | false | null | package com.metoer.clocktracker.data.repositories
import com.metoer.clocktracker.data.db.ClockDatabase
import com.metoer.clocktracker.data.db.ClockItem
class ClockRepository(
private val db: ClockDatabase
) {
fun updateAdd(item: ClockItem) = db.getClockDao().updateAdd(item)
fun delete(item: ClockItem) =... | 0 | Kotlin | 0 | 1 | 07e918b66d3d3d9f3aae077ceec047a99a8142f2 | 418 | ClockTracker | MIT License |
client/viewmodel/calculator/src/commonMain/kotlin/com/oztechan/ccc/client/viewmodel/calculator/util/CalculatorUtil.kt | Oztechan | 102,633,334 | false | null | package com.oztechan.ccc.client.viewmodel.calculator.util
import com.github.submob.scopemob.whetherNot
import com.oztechan.ccc.client.core.shared.util.getRateFromCode
import com.oztechan.ccc.client.core.shared.util.toStandardDigits
import com.oztechan.ccc.client.core.shared.util.toSupportedCharacters
import com.oztech... | 28 | null | 30 | 331 | a94168d623b6ffd50e142e0afe9f601db6ed7632 | 1,049 | CCC | Apache License 2.0 |
app/src/main/java/com/kickstarter/ui/activities/compose/login/KSLoginDropdownMenu.kt | kickstarter | 76,278,501 | false | {"Kotlin": 5269841, "Java": 317201, "Ruby": 22177, "Shell": 6325, "Makefile": 3750} | package com.kickstarter.ui.activities.compose.login
import androidx.compose.foundation.background
import androidx.compose.material.DropdownMenu
import androidx.compose.material.DropdownMenuItem
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import a... | 8 | Kotlin | 989 | 5,752 | a9187fb484c4d12137c7919a2a53339d67cab0cb | 2,838 | android-oss | Apache License 2.0 |
app/src/main/java/dev/olog/fortnightly/presentation/base/DataBoundViewHolder.kt | ologe | 216,835,412 | false | null | package dev.olog.fortnightly.presentation.base
import android.view.View
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.LifecycleRegistry
import androidx.recyclerview.widget.RecyclerView
class DataBoundViewHolder(view: View) : RecyclerView.ViewHolder(view),
L... | 0 | Kotlin | 4 | 14 | b29f0aa845ee41b81bc01661a9ca739c6e940cda | 1,024 | fortnightly | MIT License |
app/src/main/java/com/telenav/osv/map/viewmodel/MapViewModelFactory.kt | kartaview | 63,806,526 | false | null | package com.telenav.osv.map.viewmodel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.telenav.osv.application.ApplicationPreferences
import com.telenav.osv.data.location.datasource.LocationLocalDataSource
import com.telenav.osv.data.user.datasource.UserDataSource
import com.t... | 76 | Java | 30 | 130 | 66eb0ee1ab093562e2867087084b26803fe58174 | 1,272 | android | MIT License |
react-query-kotlin/src/jsMain/kotlin/tanstack/query/core/resolveEnabled.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6272741} | // Automatically generated - do not modify!
@file:JsModule("@tanstack/query-core")
package tanstack.query.core
external fun <TQueryFnData, TError, TData, TQueryKey : QueryKey> resolveEnabled(
enabled: Enabled<TQueryFnData, TError, TData, TQueryKey>?,
query: Query<TQueryFnData, TError, TData, TQueryKey>,
): B... | 0 | Kotlin | 8 | 36 | 95b065622a9445caf058ad2581f4c91f9e2b0d91 | 328 | types-kotlin | Apache License 2.0 |
partiql-lang/src/main/kotlin/org/partiql/lang/eval/visitors/AggregateSupportVisitorTransform.kt | partiql | 186,474,394 | false | null | /*
* Copyright 2019 Amazon.com, Inc. or its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at:
*
* http://aws.amazon.com/apache2.0/
*
* or in the "... | 311 | null | 60 | 539 | ac6cdfff46ba5749d4fc850b1a30bf625034bfc9 | 2,893 | partiql-lang-kotlin | Apache License 2.0 |
app/src/main/kotlin/com/coredocker/android/data/inject/Modules.kt | rolfwessels | 256,949,423 | false | null | package com.coredocker.android.data.inject
import org.koin.dsl.module.module
import java.util.Calendar
val appModule = module {
single { provideCalendar() }
}
private fun provideCalendar() = Calendar.getInstance()
| 0 | Kotlin | 0 | 0 | 7efd0255dcc6b3de93ea65428e3fcebd2538b016 | 221 | coredocker-droid | MIT License |
common/src/main/java/me/wcy/common/ext/ContextEx.kt | wangchenyan | 625,252,978 | false | null | package me.wcy.common.ext
import android.app.Activity
import android.content.Context
import androidx.viewbinding.ViewBinding
fun Activity?.setAlpha(alpha: Float) {
if (this == null) {
return
}
val lp = window.attributes
lp.alpha = alpha
window.attributes = lp
}
val ViewBinding.context: Co... | 0 | Kotlin | 0 | 3 | f82e6a282e25dd26608320aee23f7c9124cd2d88 | 351 | android-common | Apache License 2.0 |
fixed-point/src/main/kotlin/fixie/Mass.kt | knokko | 865,591,691 | false | {"Kotlin": 243384} | // Generated by fixie at 04-09-2024 16:25
package fixie
import kotlin.math.min
import kotlin.math.max
import kotlin.math.abs
@JvmInline
value class Mass internal constructor(val value: Double) : Comparable<Mass> {
fun toDouble(unit: MassUnit) = when (unit) {
MassUnit.MILLIGRAM -> value * 1000000.0
MassUnit.GRA... | 0 | Kotlin | 0 | 0 | f193e50f0a384a2d792d7bcb195aa5d1ca183fb9 | 3,321 | balls2d | MIT License |
src/main/kotlin/org/veupathdb/vdi/lib/common/async/ShutdownSignal.kt | VEuPathDB | 619,968,031 | false | {"Kotlin": 610256, "Java": 211932, "RAML": 89266, "Makefile": 2225, "Dockerfile": 994, "Shell": 428} | package org.veupathdb.vdi.lib.common.async
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.channels.BufferOverflow
import kotlinx.coroutines.channels.Channel
class ShutdownSignal {
private val channel = Channel<Unit>(1, BufferOverflow.DROP_OLDEST)
@Volatile
private var triggered =... | 25 | Kotlin | 0 | 0 | fec065ed6b7a9f81c16e7738df0d4296fda1ad43 | 662 | vdi-service | Apache License 2.0 |
src/main/kotlin/org/veupathdb/vdi/lib/common/async/ShutdownSignal.kt | VEuPathDB | 619,968,031 | false | {"Kotlin": 610256, "Java": 211932, "RAML": 89266, "Makefile": 2225, "Dockerfile": 994, "Shell": 428} | package org.veupathdb.vdi.lib.common.async
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.channels.BufferOverflow
import kotlinx.coroutines.channels.Channel
class ShutdownSignal {
private val channel = Channel<Unit>(1, BufferOverflow.DROP_OLDEST)
@Volatile
private var triggered =... | 25 | Kotlin | 0 | 0 | fec065ed6b7a9f81c16e7738df0d4296fda1ad43 | 662 | vdi-service | Apache License 2.0 |
app/shared/keybox/public/src/commonMain/kotlin/build/wallet/keybox/wallet/AppSpendingWalletProvider.kt | proto-at-block | 761,306,853 | false | {"C": 10474259, "Kotlin": 8243078, "Rust": 2779264, "Swift": 893661, "HCL": 349246, "Python": 338898, "Shell": 136508, "TypeScript": 118945, "C++": 69203, "Meson": 64811, "JavaScript": 36398, "Just": 32977, "Ruby": 13559, "Dockerfile": 5934, "Makefile": 3915, "Open Policy Agent": 1552, "Procfile": 80} | package build.wallet.keybox.wallet
import build.wallet.bitcoin.wallet.SpendingWallet
import build.wallet.bitkey.spending.SpendingKeyset
import com.github.michaelbull.result.Result
/**
* Provides [SpendingWallet] for app.
*/
interface AppSpendingWalletProvider {
/**
* Creates [SpendingWallet] instance for the g... | 3 | C | 16 | 113 | 694c152387c1fdb2b6be01ba35e0a9c092a81879 | 817 | bitkey | MIT License |
lib/src/main/java/com/github/carousels/callback/OnCarouselsPageLongClickListener.kt | jhwsx | 295,915,363 | false | null | package com.github.carousels.callback
/**
* Carousels 页面常按点击监听器
*
* @author wangzhichao
* @date 2020-9-23
*/
interface OnCarouselsPageLongClickListener {
fun onCarouselsPageLongClicked(position: Int): Boolean
} | 1 | null | 1 | 1 | 2b1e42ef86ce142986c2ef0995f9df8d40b348e7 | 220 | Carousels | Apache License 2.0 |
app/src/main/java/yoga/coder/infinijoke/ui/Presenter.kt | peternagy1332 | 178,799,770 | false | null | package yoga.coder.infinijoke.ui
abstract class Presenter<S> {
protected var screen: S? = null
open fun attachScreen(screen: S) {
this.screen = screen
}
open fun detachScreen() {
this.screen = null
}
} | 0 | Kotlin | 0 | 0 | ce744ef43cd4de169333ae220edb2f2ba301a289 | 240 | infinijoke | Creative Commons Attribution 3.0 Unported |
plugin/src/org/jetbrains/cabal/psi/RepoType.kt | Atsky | 12,811,746 | false | null | package org.jetbrains.cabal.psi
import com.intellij.lang.ASTNode
import com.intellij.extapi.psi.ASTWrapperPsiElement
import org.jetbrains.cabal.parser.*
import org.jetbrains.cabal.psi.PropertyValue
class RepoType(node: ASTNode) : PropertyValue(node), RangedValue {
override fun getAvailableValues(): List<String> {... | 47 | null | 22 | 205 | a9be4e8c41202cba50f6f9aa72eb912f1fa92b8c | 359 | haskell-idea-plugin | Apache License 2.0 |
app/src/main/java/com/example/test_ci_cd/MainActivity.kt | JoshBogin | 775,663,807 | false | {"Kotlin": 7280} | package com.example.test_ci_cd
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.mate... | 0 | Kotlin | 0 | 0 | 352e7508150d222b6745eefaf4c2a457ebed7bcd | 1,863 | CI-CD-Test-Repo | MIT License |
android_okmock/samples/app/src/main/java/nolambda/gadb/okmock/sample/GreetServer.kt | esafirm | 294,098,158 | false | null | package nolambda.gadb.okmock.sample
import nolambda.gadb.okmock.server.Const
import java.io.BufferedReader
import java.io.InputStreamReader
import java.io.PrintWriter
import java.net.ServerSocket
import java.net.Socket
class GreetServer {
private lateinit var serverSocket: ServerSocket
private lateinit var cl... | 2 | Kotlin | 0 | 16 | 2f893b96f9156c29b8beb69425744ee3c28a4935 | 2,337 | okmock | MIT License |
runtime/src/jsMain/kotlin/space/jetbrains/api/runtime/stacktrace/RequestStacktraceJs.kt | JetBrains | 239,972,147 | false | null | package space.jetbrains.api.runtime.stacktrace
public actual fun rethrow(cause: Exception, stackTraceInfo: StackTraceInfo): Nothing {
throw cause
}
| 2 | Kotlin | 2 | 43 | c928e2e0d21d302ebc4a5d191a1a6cf50f7d31f0 | 153 | space-kotlin-sdk | Apache License 2.0 |
app/src/main/java/com/zmj/relearnandroid/view/lesson13textmeasure/SportView.kt | ZmjDns | 353,241,624 | false | null | package com.zmj.relearnandroid.view.lesson13textmeasure
import android.content.Context
import android.graphics.*
import android.util.AttributeSet
import android.view.View
import androidx.core.content.res.ResourcesCompat
import com.zmj.relearnandroid.R
import com.zmj.relearnandroid.view.dp
/**
* Author : Zmj
* Blog ... | 0 | Kotlin | 0 | 0 | e4d008d3d23bb5b68b954679ab8d8c86ebfe4890 | 2,434 | relearnandroid | Apache License 2.0 |
src/test/java/uk/gov/justice/digital/hmpps/cmd/api/model/NotificationTest.kt | nickmcmahon01 | 310,653,680 | false | null | package uk.gov.justice.digital.hmpps.cmd.api.model
import org.assertj.core.api.Assertions
import org.junit.jupiter.api.Test
import uk.gov.justice.digital.hmpps.cmd.api.client.CsrModifiedDetailDto
import uk.gov.justice.digital.hmpps.cmd.api.domain.DetailModificationType
import uk.gov.justice.digital.hmpps.cmd.api.domai... | 1 | Kotlin | 2 | 0 | bab214869d0d9fb171d5dd4bf3356bc1dba9cb19 | 4,375 | cmd-api | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/educationandworkplanapi/app/database/jpa/JpaActionPlanPersistenceAdapterTest.kt | ministryofjustice | 653,598,082 | false | {"Kotlin": 1214907, "Mustache": 2705, "Dockerfile": 1375} | package uk.gov.justice.digital.hmpps.educationandworkplanapi.app.database.jpa
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
import org.mockito.InjectMocks
import org.mockito.Mock
import org.mockito.junit.jupiter.MockitoExtension
im... | 5 | Kotlin | 0 | 2 | 95ca727cfdde32bc66348dc697440952751deee0 | 4,224 | hmpps-education-and-work-plan-api | MIT License |
app/src/main/java/com/kvl/cyclotrack/TripDetailsUtilities.kt | kevinvanleer | 311,970,003 | false | null | package com.kvl.cyclotrack
import android.graphics.Color
import android.location.Location
import com.github.mikephil.charting.charts.LineChart
import com.github.mikephil.charting.components.AxisBase
import com.github.mikephil.charting.components.XAxis
import com.github.mikephil.charting.formatter.ValueFormatter
import... | 0 | Kotlin | 0 | 7 | e62bbb39eec10d2f3c327c024f1462e3a6736987 | 2,873 | cyclotrack | The Unlicense |
app/src/main/java/hu/csabapap/seriesreminder/utils/PicassoTransformation.kt | csabapap | 112,928,453 | false | null | package hu.csabapap.seriesreminder.utils
import android.graphics.*
import com.squareup.picasso.Transformation
class RoundedTransformation(private val radius: Float? = null, private val margin: Float = 0f) : Transformation {
override fun transform(source: Bitmap): Bitmap {
val paint = Paint().apply {
... | 0 | null | 0 | 1 | 5e63b26f5ec8a1cf8d19f40f44fcb8a39325f34d | 953 | SeriesReminder | MIT License |
src/main/kotlin/io/slama/core/commands.kt | eKonis-src | 467,679,930 | true | {"Kotlin": 83429} | package io.slama.core
import io.slama.utils.command
import io.slama.utils.invoke
import io.slama.utils.option
import net.dv8tion.jda.api.JDA
import net.dv8tion.jda.api.entities.Guild
import net.dv8tion.jda.api.interactions.commands.Command
import net.dv8tion.jda.api.interactions.commands.OptionType
fun JDA.registerGl... | 0 | Kotlin | 0 | 0 | a0b293f20f175f36035778dba6f3eeb70946727d | 2,559 | UGE-Bot-1 | MIT License |
src/Day02.kt | joy32812 | 573,132,774 | false | {"Kotlin": 62766} | const val SCORE_WIN = 6
const val SCORE_DRAW = 3
val selectScore = listOf(1, 2, 3)
fun Char.toIntNum() = when (this) {
in "AX" -> 0
in "BY" -> 1
else -> 2
}
fun getScore(a: Int, b: Int): Int {
val matchScore = when {
a == b -> SCORE_DRAW
a + 1 == b || (a == 2 && b == 0) -> SCORE_WIN
else -> 0
}
... | 0 | Kotlin | 0 | 0 | 5e87958ebb415083801b4d03ceb6465f7ae56002 | 879 | aoc-2022-in-kotlin | Apache License 2.0 |
src/Day02.kt | joy32812 | 573,132,774 | false | {"Kotlin": 62766} | const val SCORE_WIN = 6
const val SCORE_DRAW = 3
val selectScore = listOf(1, 2, 3)
fun Char.toIntNum() = when (this) {
in "AX" -> 0
in "BY" -> 1
else -> 2
}
fun getScore(a: Int, b: Int): Int {
val matchScore = when {
a == b -> SCORE_DRAW
a + 1 == b || (a == 2 && b == 0) -> SCORE_WIN
else -> 0
}
... | 0 | Kotlin | 0 | 0 | 5e87958ebb415083801b4d03ceb6465f7ae56002 | 879 | aoc-2022-in-kotlin | Apache License 2.0 |
src/main/kotlin/com/theoparis/cw/entity/util/IExplosiveEntity.kt | theoparis | 484,579,728 | false | null | package com.theoparis.cw.entity.util
interface IExplosiveEntity {
/**
* Explosion fuse in ticks
*/
var fuseTime: Int
var fuseSpeed: Int
fun ignite()
}
| 4 | Kotlin | 0 | 0 | 7fa941855f7a99c18a361a1e3c92ab0c09cfbf94 | 178 | cursed-insanity-mod | MIT License |
app/src/main/java/com/padc/ecommerce/views/items/ProductDetailsViewItem.kt | thihaphyo | 183,603,029 | false | null | package com.padc.ecommerce.views.items
import android.content.Context
import android.util.AttributeSet
import android.widget.FrameLayout
import com.bumptech.glide.Glide
import com.padc.ecommerce.data.vos.ProductImageVO
import kotlinx.android.synthetic.main.view_item_product.view.*
class ProductDetailsViewItem : Frame... | 1 | null | 1 | 1 | 18e730e1d342f63bf1bd404ed989643ba96dedfe | 792 | ECommerce | MIT License |
app/src/main/java/vn/loitp/app/activity/customviews/viewpager/refreshviewpager/RefreshViewPagerActivity.kt | tplloi | 126,578,283 | false | null | package vn.loitp.app.activity.customviews.viewpager.refreshviewpager
import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter
import com.annotation.IsFullScreen
import com.annotation.LogTag
import com.core.base.Ba... | 0 | Kotlin | 0 | 6 | 55fb45b20a95b924d74f364ecad5101235eba7b8 | 1,668 | basemaster | Apache License 2.0 |
app/src/main/java/com/flaquir4/codetest/presentation/main/MainView.kt | flaquir4 | 280,842,506 | false | null | package com.flaquir4.codetest.presentation.main
interface MainView {
fun navigateToLoginScreen()
fun showLogoutError()
}
| 0 | Kotlin | 0 | 1 | 0be17adc9a7a9c67aad2f8e0ccf19431185b466e | 131 | BorjaGonzalezCodeTest | Apache License 2.0 |
core/testing/src/main/java/com/hisui/kanna/core/testing/repository/TestBookRepository.kt | okumusashi | 570,818,154 | false | null | /*
* Copyright 2022 <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... | 17 | Kotlin | 0 | 0 | 2cc6ff428680d0d2d4f56be5db2f5b57d92648ec | 3,108 | kanna | Apache License 2.0 |
src/commonMain/kotlin/com/dxc/ssi/agent/model/PeerConnection.kt | dxc-technology | 259,322,339 | false | {"Kotlin": 598967, "Objective-C": 537589, "Objective-C++": 442889, "C": 238203, "Ruby": 12614, "Shell": 7187, "Swift": 1114} | package com.dxc.ssi.agent.model
import com.dxc.ssi.agent.utils.UrlSerializer
import io.ktor.http.*
import kotlinx.serialization.Serializable
//TODO: replace String state with some proper enum or reuse DIDExchangeState
//TODO: see if UUID type can be used instead of String for id
@Serializable
data class PeerConnecti... | 3 | Kotlin | 6 | 5 | 9bede83e0358b16d6dc9459ccc2fd85541027b6c | 709 | ssi-mobile-sdk | Apache License 2.0 |
app/src/main/java/com/example/towntrekker/pagini/main/vizualizare_urmareste_urmaritori_recyclerview/VizualizareUrmaresteUrmaritoriAdapter.kt | Silviu1409 | 608,188,637 | false | null | package com.example.towntrekker.pagini.main.vizualizare_urmareste_urmaritori_recyclerview
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.example.towntrekker.ActivityMain
import c... | 1 | Kotlin | 0 | 0 | fe96f42086463cd7f48d6eb7aeedb491db14ae42 | 2,150 | TownTrekker | MIT License |
src/main/kotlin/me/jakejmattson/discordkt/api/TypeContainers.kt | DiscordKt | 271,063,846 | false | null | package me.jakejmattson.discordkt.api
/** A container for data that saves type information. */
interface TypeContainer
class NoArgs : TypeContainer
data class Args1<A>(val first: A) : TypeContainer
data class Args2<A, B>(val first: A, val second: B) : TypeContainer
data class Args3<A, B, C>(val first: A, val second: ... | 2 | Kotlin | 9 | 51 | cd7b9cd4e8b1d0270f0f99006e76df2abcf6e905 | 1,052 | DiscordKt | MIT License |
wow-api/src/main/kotlin/me/ahoo/wow/api/query/Condition.kt | Ahoo-Wang | 628,167,080 | false | null | /*
* Copyright [2021-present] [<NAME> <<EMAIL>> (https://github.com/Ahoo-Wang)].
* 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... | 8 | null | 23 | 187 | 4fb54c314c31a7cd3c9515554879a2ca8fade764 | 7,788 | Wow | Apache License 2.0 |
composeApp/src/commonMain/kotlin/screens/DevicesScreen.kt | MrJovanovic13 | 745,615,039 | false | {"Kotlin": 35130, "Swift": 594} | package screens
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
i... | 0 | Kotlin | 0 | 0 | f08c3d23885c6bbde74584e6e3fec44a9bee1677 | 4,711 | threads-nexus-kmm-client | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/DriverWoman.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 4,152 | icons | MIT License |
wallet/src/main/java/com/android/identity_credential/wallet/SelfSignedMdlIssuingAuthority.kt | openwallet-foundation-labs | 248,844,077 | false | {"Kotlin": 2791449, "Java": 682956, "Python": 85755, "JavaScript": 28064, "HTML": 841, "CSS": 286, "Dockerfile": 267} | package com.android.identity_credential.wallet
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import com.android.identity.cbor.Cbor
import com.android.identity.cbor.CborArray
import com.android.identity.cbor.toDataItemDateTimeString
import com.android.identity.cbor.toDataItemFullDate
import com.a... | 101 | Kotlin | 69 | 134 | c2b00dc60ed11a46334da37521acd89a100f3d2e | 12,216 | identity-credential | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/TemperatureDown.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,390 | icons | MIT License |
on_audio_query/android/src/main/kotlin/com/lucasjosino/on_audio_query/interfaces/OnPermissionManagerInterface.kt | TrendingTechnology | 399,523,003 | true | {"Dart": 103841, "Kotlin": 74032, "Swift": 43331, "HTML": 7456, "Ruby": 2328, "Objective-C": 723} | package com.lucasjosino.on_audio_query.interfaces
import android.content.Context
/** OnPermissionManagerInterface */
interface OnPermissionManagerInterface {
fun onPermissionStatus(context: Context? = null) : Boolean
fun onRequestPermission()
fun onRetryRequestPermission()
} | 0 | null | 0 | 0 | a1cdb8022c758fabe6fd55ac16290141bf1b2c74 | 289 | on_audio_query | Linux Kernel Variant of OpenIB.org license |
bpdm-gate/src/main/kotlin/org/eclipse/tractusx/bpdm/gate/repository/generic/ConfidenceCriteriaRepository.kt | eclipse-tractusx | 526,621,398 | false | null | /*******************************************************************************
* Copyright (c) 2021,2024 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are ma... | 39 | null | 9 | 6 | c0c0ccfb385772381a06068d648327291d6ff194 | 1,984 | bpdm | Apache License 2.0 |
multi-vlayout/src/main/java/com/yoxin/multivlayout/MultiTypePool.kt | zhengyoxin | 128,705,782 | false | null | package com.yoxin.multivlayout
/**
* Created by zhengyongxin on 2018/2/25.
* An List implementation of TypePool.
*/
class MultiTypePool(
private val classes: MutableList<Class<*>> = mutableListOf(),
private val adapters: MutableList<Class<out MultiAdapter<*, *>>> = mutableListOf(),
private v... | 0 | Kotlin | 0 | 2 | d9ccb1639241923504a1f01b548b4031116fe727 | 1,690 | multiVLayout | Apache License 2.0 |
multi-vlayout/src/main/java/com/yoxin/multivlayout/MultiTypePool.kt | zhengyoxin | 128,705,782 | false | null | package com.yoxin.multivlayout
/**
* Created by zhengyongxin on 2018/2/25.
* An List implementation of TypePool.
*/
class MultiTypePool(
private val classes: MutableList<Class<*>> = mutableListOf(),
private val adapters: MutableList<Class<out MultiAdapter<*, *>>> = mutableListOf(),
private v... | 0 | Kotlin | 0 | 2 | d9ccb1639241923504a1f01b548b4031116fe727 | 1,690 | multiVLayout | Apache License 2.0 |
plugins/ksp/src/org/jetbrains/kotlin/ksp/symbol/impl/kotlin/KSTypeParameterImpl.kt | android | 263,405,600 | false | null | /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.ksp.symbol.impl.kotlin
import org.jetbrains.kotlin.ksp.symbol.*
import org.jetbr... | 1 | null | 37 | 316 | 74126637a097f5e6b099a7b7a4263468ecfda144 | 2,899 | kotlin | Apache License 2.0 |
src/main/kotlin/dev/aaronhowser/mods/geneticsresequenced/recipes/brewing/BrewingRecipes.kt | aaronhowser1 | 780,170,281 | false | {"Kotlin": 564933} | package dev.aaronhowser.mods.geneticsresequenced.recipes.brewing
import dev.aaronhowser.mods.geneticsresequenced.genes.ModGenes
import dev.aaronhowser.mods.geneticsresequenced.items.DnaHelixItem.Companion.getGene
import dev.aaronhowser.mods.geneticsresequenced.items.DnaHelixItem.Companion.setBasic
import dev.aaronhows... | 5 | Kotlin | 0 | 1 | 11d035ab2a3f002ac6f2ebb392c242ce3d16636c | 9,839 | Genetics-Resequenced | MIT License |
Core/src/main/kotlin/org/brightify/reactant/controller/ViewController.kt | Brightify | 67,879,703 | false | null | package org.brightify.reactant.controller
import android.app.Activity
import android.view.View
import android.view.ViewGroup
import android.view.inputmethod.InputMethodManager
import android.widget.FrameLayout
import io.reactivex.Observable
import io.reactivex.disposables.CompositeDisposable
import org.brightify.react... | 10 | Kotlin | 1 | 2 | 3066d1c003b4a01447ccfa9bc3efbe8ab52a5c81 | 10,315 | ReactantAndroid | MIT License |
welite-core/src/test/java/com/ealva/welite/db/expr/ConditionsTests.kt | ealva-com | 265,936,796 | false | null | /*
* Copyright 2020 eAlva.com
*
* 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... | 0 | Kotlin | 0 | 3 | 7d9c5a82c289b04fad34ecc484e5fb3224f41699 | 2,394 | welite | Apache License 2.0 |
app/src/main/java/com/hoangtien2k3/themoviedb/common/MyCountDownTimer.kt | hoangtien2k3 | 781,918,819 | false | {"Kotlin": 385191} | package com.hoangtien2k3.themoviedb.common
import android.os.CountDownTimer
class MyCountDownTimer(startTime: Long, interval: Long, private val func: () -> Unit) :
CountDownTimer(startTime, interval) {
override fun onFinish() = func()
override fun onTick(timer: Long) {}
} | 1 | Kotlin | 0 | 3 | 0ef347135c141cc49cb1e9d27fde6fdeedf71471 | 286 | movie | MIT License |
core/domain/src/main/kotlin/com/ngapps/phototime/core/domain/GetRecentSearchQueriesUseCase.kt | ngapp-dev | 752,386,763 | false | null | /*
* Copyright 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 12 | null | 2 | 3 | bc1990bccd9674c6ac210fa72a56ef5318bf7241 | 1,230 | phototime | Apache License 2.0 |
shared/src/commonMain/kotlin/com/daro/kmmtest/data/remote/HttpRoutes.kt | daroltidan | 526,176,679 | false | {"Kotlin": 39683, "Ruby": 1706, "Swift": 1254} | package com.daro.kmmtest.data.remote
const val BASE_URL = "https://api.thedogapi.com/v1/"
object HttpRoutes {
const val breedsPath = "${BASE_URL}breeds"
}
| 0 | Kotlin | 0 | 0 | 4f414994fca12cbbace56076313b57d86d29959b | 161 | kmm | Apache License 2.0 |
src/main/kotlin/no/nav/omsorgsdageroverforingsoknad/mellomlagring/Mellomlagring.kt | navikt | 254,004,238 | false | null | package no.nav.omsorgsdageroverforingsoknad.mellomlagring
import io.ktor.application.call
import io.ktor.http.ContentType
import io.ktor.http.HttpStatusCode
import io.ktor.locations.*
import io.ktor.request.receive
import io.ktor.response.respond
import io.ktor.response.respondText
import io.ktor.routing.Route
import ... | 0 | Kotlin | 0 | 0 | f29def54a3488c072bd01fbfe7469b93e6653809 | 1,824 | omsorgsdageroverforingsoknad-api | MIT License |
src/commonTest/kotlin/dev/folomeev/kotgl/matrix/matrices/mutables/ProjectionTest.kt | folomeev | 487,706,128 | false | null | package dev.folomeev.kotgl.matrix.matrices.mutables
import dev.folomeev.kotgl.matrix.matrices.identityMat4
import dev.folomeev.kotgl.matrix.matrices.mat4
import kotlin.random.Random
import kotlin.test.Test
import kotlin.test.assertEquals
class ProjectionTest {
private fun randomMutableMat4(): MutableMat4 =
... | 0 | Kotlin | 0 | 1 | e4fee9e2647579825c05c1976e15a4469dc9633e | 5,406 | kotgl-matrix | MIT License |
app/src/main/java/com/finalproject/group14/noteapp/utility/StoreRetrieveData.kt | quynhle97 | 191,822,085 | false | null | package com.finalproject.group14.noteapp.utility
import android.content.Context
import org.json.JSONArray
import org.json.JSONException
import org.json.JSONTokener
import java.io.BufferedReader
import java.io.FileInputStream
import java.io.FileNotFoundException
import java.io.FileOutputStream
import java.io.IOExcept... | 0 | Kotlin | 0 | 0 | 509bf1179713f40b14598ad0030e937f2efa2212 | 2,479 | NoteApp | MIT License |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/ArrowMaximizeVertical.kt | Konyaco | 574,321,009 | false | null |
package com.konyaco.fluent.icons.filled
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Filled.ArrowMaximizeVertical: ImageVector
get() {
if (_arrowMaximize... | 1 | Kotlin | 3 | 83 | 9e86d93bf1f9ca63a93a913c990e95f13d8ede5a | 2,422 | compose-fluent-ui | Apache License 2.0 |
app/src/main/java/za/co/varsitycollege/st10204772/opsc7312_poe/Register_Image_Upload.kt | Allana-Morris | 849,370,322 | false | {"Kotlin": 161039} | package za.co.varsitycollege.st10204772.opsc7312_poe
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.ImageDecoder
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.provider.MediaStore
import android.util.Log... | 0 | Kotlin | 0 | 1 | 9f1f78dd5bee8c360759465f1e6802ed08c32865 | 8,406 | OPSC7312_POE | MIT License |
src/main/kotlin/io/jawg/geojson/Feature.kt | jawg | 163,869,070 | false | null | package io.jawg.geojson
import com.fasterxml.jackson.annotation.JsonInclude
class Feature(
@JsonInclude(JsonInclude.Include.ALWAYS)
val geometry: Geometry<*>?,
@JsonInclude(JsonInclude.Include.ALWAYS)
val properties: Map<String, Any>? = null,
var id: String? = null,
val bbox: BBox? = null
) : ... | 0 | null | 2 | 5 | 375e81a00188d37c23c00ca473eff63c09e55036 | 344 | geojson-jackson | Apache License 2.0 |
src/rider/main/kotlin/me/fornever/avaloniarider/controlmessages/AvaloniaMessages.kt | ForNeVeR | 154,947,241 | false | null | package me.fornever.avaloniarider.controlmessages
import com.jetbrains.rd.platform.util.application
import com.jetbrains.rd.platform.util.getComponent
import me.fornever.avaloniarider.toUUID
import java.util.*
class AvaloniaMessages {
companion object {
fun getInstance(): AvaloniaMessages = application.ge... | 36 | null | 8 | 449 | f68cbcf1298c87a0bb702e1733bffbfc8be896f7 | 3,121 | AvaloniaRider | MIT License |
platform/platform-impl/src/com/intellij/openapi/project/impl/ProjectFrameAllocator.kt | xiewenya | 302,138,931 | false | {"Text": 4114, "XML": 4824, "Ant Build System": 13, "Shell": 544, "Markdown": 426, "Ignore List": 80, "Git Attributes": 9, "Batchfile": 30, "SVG": 2134, "Java": 66996, "C++": 20, "HTML": 2344, "Kotlin": 6511, "DTrace": 1, "Gradle": 1091, "Java Properties": 119, "INI": 289, "JFlex": 27, "CSS": 53, "Objective-C": 19, "Gr... | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.project.impl
import com.intellij.configurationStore.saveSettings
import com.intellij.conversion.CannotConvertException
import com.intellij.diagnostic... | 1 | null | 1 | 1 | e1c5d097ee05bdb7a7352becb9037f1094de7817 | 11,005 | intellij-community | Apache License 2.0 |
composeApp/src/commonMain/kotlin/jp/albites/btree/view/screen/theme/ThemeScreen.kt | kaleidot725 | 665,943,634 | false | {"Kotlin": 105825, "Batchfile": 2675, "Ruby": 1769, "Swift": 622} | package jp.albites.btree.view.screen.theme
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.mate... | 0 | Kotlin | 0 | 3 | d6b9fc60d668a23049c02315b2e2fa218e638ee1 | 3,813 | BTree | MIT License |
vscode/src/jsMain/kotlin/vscode/SourceControlResourceThemableDecorations.kt | lppedd | 761,812,661 | false | {"Kotlin": 1887051} | package vscode
import kotlin.ts.Union3
/**
* The theme-aware decorations for a [SourceControlResourceState].
*/
external interface SourceControlResourceThemableDecorations {
/**
* The icon path for a specific [SourceControlResourceState].
*/
val iconPath: Union3<String, Uri, ThemeIcon>?
}
| 0 | Kotlin | 0 | 3 | 0f493d3051afa3de2016e5425a708c7a9ed6699a | 304 | kotlin-externals | MIT License |
src/main/kotlin/com/pedrorodrepo/gamerepo/service/ClientConsumeService.kt | pedrorodrepo | 722,278,123 | false | {"Kotlin": 7882} | package com.pedrorodrepo.gamerepo.service
import com.google.gson.Gson
import com.pedrorodrepo.gamerepo.model.InfoGame
import java.net.URI
import java.net.http.HttpClient
import java.net.http.HttpRequest
import java.net.http.HttpResponse
class ClientConsumeService {
fun searchGame(search: String): InfoGame {
... | 0 | Kotlin | 0 | 0 | 3802d0aea22b4432886f3b463b499ddb9827a05c | 830 | GameRepo | MIT License |
ldk-bukkit/ldk-bukkit-gui/src/main/kotlin/com/lgou2w/ldk/bukkit/gui/GuiBuilder.kt | fossabot | 219,468,022 | true | {"Kotlin": 1346841} | /*
* Copyright (C) 2016-2019 The lgou2w <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 0 | null | 0 | 0 | 906641be162efb3a3fa36a6256ae332aa4c4fdc5 | 6,755 | ldk | Apache License 2.0 |
app/src/main/java/com/example/githubapp/common/di/AppModule.kt | Gaganpreet1993 | 766,262,536 | false | {"Kotlin": 21253} | package com.example.githubapp.common.di
import com.example.githubapp.domain.RepoInteractor
import com.example.githubapp.domain.RepoInteractorImpl
import com.example.githubapp.domain.UserInteractor
import com.example.githubapp.domain.UserInteractorImpl
import dagger.Binds
import dagger.Module
import dagger.hilt.Install... | 0 | Kotlin | 0 | 0 | 68a311f427ab7dc1b97dc40bec3fc195fe90cca8 | 611 | github_app | MIT License |
core/src/commonMain/kotlin/com/maxkeppeker/sheets/core/utils/TestTags.kt | maxkeppeler | 523,345,776 | false | null | /*
* Copyright (C) 2022-2023. <NAME> (https://www.maxkeppeler.com)
*
* 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... | 8 | null | 9 | 816 | 2af41f317228e982e261522717b6ef5838cd8b58 | 4,794 | sheets-compose-dialogs | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.