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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Data/azure.android.data/src/main/java/com/microsoft/azureandroid/data/util/json/DateTypeAdapter.kt | NateRickard | 108,568,001 | false | null | package com.microsoft.azureandroid.data.util.json
import com.google.gson.TypeAdapter
import com.google.gson.stream.JsonReader
import com.google.gson.stream.JsonWriter
import com.microsoft.azureandroid.data.util.RoundtripDateConverter
import java.util.*
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
... | 1 | Kotlin | 1 | 1 | 4eab6b9b30698081e7f7092e3b5d7e5645fd33f9 | 698 | Azure.Android | MIT License |
src/main/kotlin/com/basicfu/sip/api/controller/InterfaceController.kt | basicfu | 172,451,351 | false | null | package com.basicfu.sip.api.controller
import com.basicfu.sip.api.model.vo.InterfaceVo
import com.basicfu.sip.api.service.InterfaceService
import com.basicfu.sip.core.annotation.Insert
import com.basicfu.sip.core.annotation.Update
import com.basicfu.sip.core.model.Result
import org.springframework.beans.factory.annota... | 0 | null | 0 | 5 | 4ef2a5cb568d1d928be655003f0929e49bdf7209 | 1,636 | sip-api | MIT License |
app/src/main/java/com/goiz/pokedex/data/pokemon/GenerationIi.kt | gsesdras | 311,452,829 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 193, "XML": 45, "Java": 1, "JSON": 1} | package com.goiz.pokedex.data.pokemon
import com.google.gson.annotations.SerializedName
data class GenerationIi(
val crystal: Crystal,
val gold: Gold,
val silver: Silver
) | 1 | null | 1 | 1 | 3d36c4f787ff76be4d327c19b45608c253ebdca8 | 186 | afrodev_pokedex | MIT License |
src/org/ice1000/tt/infos.kt | dandoh | 213,273,434 | false | null | package org.ice1000.tt
import com.intellij.CommonBundle
import com.intellij.extapi.psi.PsiFileBase
import com.intellij.openapi.fileTypes.FileTypeConsumer
import com.intellij.openapi.fileTypes.FileTypeFactory
import com.intellij.openapi.fileTypes.LanguageFileType
import com.intellij.psi.FileViewProvider
import icons.TT... | 1 | null | 1 | 1 | 47e013622f1761f4618fa13a391e335af4369b22 | 1,680 | intellij-dtlc | Apache License 2.0 |
src/test/kotlin/g0001_0100/s0082_remove_duplicates_from_sorted_list_ii/SolutionTest.kt | javadev | 190,711,550 | false | {"Kotlin": 4870729, "TypeScript": 50437, "Python": 3646, "Shell": 994} | package g0001_0100.s0082_remove_duplicates_from_sorted_list_ii
import com_github_leetcode.LinkedListUtils.contructLinkedList
import org.hamcrest.CoreMatchers.equalTo
import org.hamcrest.MatcherAssert.assertThat
import org.junit.jupiter.api.Test
internal class SolutionTest {
@Test
fun deleteDuplicates() {
... | 0 | Kotlin | 20 | 43 | e8b08d4a512f037e40e358b078c0a091e691d88f | 674 | LeetCode-in-Kotlin | MIT License |
cinescout/movies/data/local/src/commonMain/kotlin/cinescout/movies/data/local/mapper/fieldsMappers.kt | 4face-studi0 | 280,630,732 | false | null | package cinescout.movies.data.local.mapper
import cinescout.database.model.DatabaseTmdbMovieId
import cinescout.movies.domain.model.Rating
import cinescout.movies.domain.model.TmdbMovieId
internal fun DatabaseTmdbMovieId.toId() = TmdbMovieId(value)
internal fun Rating.toDatabaseRating() = value
internal fun TmdbMovie... | 24 | Kotlin | 1 | 3 | dabd9284655ead17314e871530a9664aa6965953 | 367 | CineScout | Apache License 2.0 |
app/src/main/java/com/android/facially/activity/LandmarkActivity.kt | xuzaixiang | 462,157,592 | false | {"C++": 657450, "C": 280175, "Kotlin": 48857, "Java": 24152, "GLSL": 4690, "CMake": 1023, "Shell": 381} | package com.android.facially.activity
import android.content.Context
import android.content.Intent
import android.opengl.GLES30.*
import android.opengl.GLES31
import android.opengl.Matrix
import com.android.facially.render.OesRender
import com.android.facially.util.calculateMvp
import com.android.facially.opengl.GLPro... | 0 | C++ | 0 | 0 | 44a1419387a06aec70af2aa1a0bfd7e7a44c8d54 | 3,156 | glcamera | MIT License |
shared/src/commonMain/kotlin/com/darrenthiores/ecoswap/domain/user/use_cases/GetUser.kt | darrenthiores | 688,372,873 | false | {"Kotlin": 770054, "Swift": 362583} | package com.darrenthiores.ecoswap.domain.user.use_cases
import com.darrenthiores.ecoswap.domain.user.model.User
import com.darrenthiores.ecoswap.domain.user.repository.UserRepository
import com.darrenthiores.ecoswap.domain.utils.Resource
class GetUser(
private val repository: UserRepository
) {
suspend operat... | 0 | Kotlin | 0 | 0 | 6da03175466a0458ba4a28392f7371f8a429d4cf | 397 | EcoSwap | MIT License |
core/src/main/kotlin/no/ntnu/ihb/vico/math/Ray.kt | NTNU-IHB | 284,521,287 | false | null | package no.ntnu.ihb.vico.math
import org.joml.Matrix4dc
import org.joml.Vector3d
import org.joml.Vector3dc
import kotlin.math.abs
import kotlin.math.max
import kotlin.math.min
import kotlin.math.sqrt
data class Ray @JvmOverloads constructor(
var origin: Vector3d = Vector3d(),
val direction: Vector3d = Vector3... | 4 | Kotlin | 1 | 8 | 997c708656c274cbcab94cb4375ebfdf46d5e1ad | 11,899 | Vico | MIT License |
src/main/kotlin/com/mt/notion/api/user/Bot.kt | motui | 479,945,371 | false | null | package com.mt.notion.api.user
import com.mt.notion.common.ObjectType
/**
* bot
*
* @author it.motui
*/
data class Bot(
override val objectType: ObjectType,
override val type: UserType,
override val id: String,
/**
* User's name, as displayed in Notion.
*/
override val name: String? ... | 0 | Kotlin | 0 | 1 | 80b7b256d8d7c34b15cf79d1e5f539c8ef4736b4 | 1,272 | notion-sdk-kotlin | MIT License |
src/main/java/dev/c0b/jacobsutils/listeners/onCreeperExplodeEvent.kt | JacobC1921w | 810,812,253 | false | {"Kotlin": 31307} | package dev.c0b.jacobsutils.listeners
import dev.c0b.jacobsutils.JacobsUtils
import org.bukkit.entity.EntityType
import org.bukkit.event.EventHandler
import org.bukkit.event.Listener
import org.bukkit.event.entity.EntityExplodeEvent
class onCreeperExplodeEvent(private val mainInstance: JacobsUtils): Listener {
@E... | 0 | Kotlin | 0 | 1 | 86c4b2634120335b25ebab09f6610c0693c19e71 | 589 | JacobsUtils | MIT License |
app/src/main/java/com/tinashe/weather/data/model/TemperatureUnit.kt | TinasheMzondiwa | 126,305,351 | false | null | package com.tinashe.weather.data.model
enum class TemperatureUnit(val value: String) {
CELSIUS("celsius"),
FAHRENHEIT("fahrenheit");
companion object {
private val map = values().associateBy(TemperatureUnit::value)
fun fromValue(value: String) = map[value]
}
}
| 0 | Kotlin | 2 | 12 | bdfaea7f00301393494ffda53eb0343dc88d8756 | 298 | WeatherApp | Apache License 2.0 |
src/main/kotlin/de.kevcodez.pubg.model/telemetry/events/BlueZoneCustomOption.kt | minchulking91 | 130,461,556 | true | {"Kotlin": 26655} | package de.kevcodez.pubg.model.telemetry.events
data class BlueZoneCustomOption(
val phaseNum: Int,
val startDelay: Int,
val warningDuration: Int,
val releaseDuration: Int,
val poisonGasDamagePerSecond: Int,
val radiusRate: Int
) | 0 | Kotlin | 0 | 0 | d886556cd3613aad71923f02692def43b755addb | 254 | pubg-api-kotlin | MIT License |
sample/src/main/java/com/example/dics/component/ActivityPermanentComponent.kt | sirbralex | 532,984,642 | false | {"Kotlin": 28051} | package com.example.dics.component
import com.example.dics.impl.DiComponentFactory
import com.example.dics.impl.DiComponentProvider
class ActivityPermanentComponent : ActivityPermanentDiComponent {
class Factory : DiComponentFactory<ActivityPermanentComponent> {
override fun createComponent(provider: DiC... | 0 | Kotlin | 0 | 2 | be6139ae39226908d79be99faa2449a10a7146d1 | 434 | dics | Apache License 2.0 |
domain/src/main/java/com/spiderbiggen/manhwa/domain/usecase/remote/UpdateChaptersFromRemote.kt | spiderbiggen | 624,650,535 | false | {"Kotlin": 118713} | package com.spiderbiggen.manhwa.domain.usecase.remote
import com.spiderbiggen.manhwa.domain.model.AppError
import com.spiderbiggen.manhwa.domain.model.Either
fun interface UpdateChaptersFromRemote {
suspend operator fun invoke(mangaId: String, skipCache: Boolean): Either<Unit, AppError>
}
| 1 | Kotlin | 0 | 0 | cbd3531735d456a0615f17f7fdf32b1364764c71 | 296 | manhwa-reader | MIT License |
app/src/main/java/com/layfones/composewanandroid/util/WebViewManager.kt | layfones | 623,881,761 | false | null | package com.layfones.composewanandroid.util
import android.annotation.SuppressLint
import android.content.Context
import android.content.MutableContextWrapper
import android.graphics.Color
import android.os.Build
import android.os.Looper
import android.view.ViewGroup
import android.webkit.CookieManager
import android.... | 0 | Kotlin | 1 | 3 | 6944e510e0e41f7d5c105a8e308adee417478ac4 | 4,101 | Jetpack-Compose-Practice | Apache License 2.0 |
core/src/main/kotlin/me/kgustave/kson/KSONObject.kt | Shengaero | 108,679,726 | false | null | /*
* Copyright 2017 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | Kotlin | 0 | 1 | 580c4f1e0121510fe5ede82b123432ec672d23a4 | 2,291 | KSON | Apache License 2.0 |
src/main/kotlin/io/kotest/plugin/intellij/toolwindow/TestFileTree.kt | kotest | 170,580,094 | false | {"Kotlin": 290121, "HTML": 454} | package io.kotest.plugin.intellij.toolwindow
import com.intellij.ide.util.treeView.NodeRenderer
import com.intellij.openapi.project.Project
import javax.swing.tree.TreeModel
import javax.swing.tree.TreeSelectionModel
class TestFileTree(
project: Project,
) : com.intellij.ui.treeStructure.Tree(),
KotestTestExplo... | 33 | Kotlin | 24 | 177 | 123d6d9a789832b9ac907b141980e36f835dc6a3 | 1,251 | kotest-intellij-plugin | Apache License 2.0 |
app/src/main/java/com/example/countries/RemoteDataSourceFullName.kt | nintenfox | 627,952,255 | false | null | package com.example.countries
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
import retrofit2.http.GET
import retrofit2.http.Path
interface RestCountriesApiFull {
@GET("name/{name}?fullText=true")
suspend fun getCountryByName(@Path("name") countryName: String): List<Country>
}... | 0 | Kotlin | 0 | 0 | 7e028cbffd2f42fc1ea073ca81f02ec266284dd9 | 558 | CountriesApp | MIT License |
src/commonMain/kotlin/com/wizbii/cinematic/journey/presentation/screen/movies/MoviesComponent.kt | wizbii | 762,402,623 | false | {"Kotlin": 149036, "Ruby": 465, "Swift": 60} | package com.wizbii.cinematic.journey.presentation.screen.movies
import com.wizbii.cinematic.journey.domain.entity.Movie
import com.wizbii.cinematic.journey.domain.entity.MovieId
import com.wizbii.cinematic.journey.domain.entity.Universe
import com.wizbii.cinematic.journey.presentation.component.top.bar.TopBarComponent... | 5 | Kotlin | 0 | 2 | cf322bcee0fd9ae6fe745d8d57e1ef429fbb9c24 | 723 | CinematicJourney | Apache License 2.0 |
src/test/kotlin/com/example/mapstructspring/MapstructSpringApplicationTests.kt | 3LexW | 528,934,403 | false | null | package com.example.mapstructspring
import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest
@SpringBootTest
class MapstructSpringApplicationTests {
@Test
fun contextLoads() {
}
}
| 0 | Kotlin | 0 | 0 | eac1a31c405d5e03e3a53bb9e712931ac3393a61 | 233 | mapstruct-spring-kotlin-example | Apache License 2.0 |
app/src/main/java/com/lindevhard/android/raspfinder/net/NetManager.kt | LinDevHard | 194,318,200 | false | null | package com.lindevhard.android.raspfinder.net
import android.content.Context
import android.net.ConnectivityManager
import android.net.NetworkCapabilities
import android.net.wifi.WifiManager
import android.os.Build
import android.util.Log
class NetManager(applicationContext: Context) {
private var context: Contex... | 1 | Kotlin | 0 | 9 | de35124cf4a582337b7fcfd1929379d35cf85d8e | 1,298 | raspb-finder | Apache License 2.0 |
ocpp-2-0-core/src/main/kotlin/com/izivia/ocpp/core20/model/clearvariablemonitoring/ClearVariableMonitoringResp.kt | IZIVIA | 501,708,979 | false | {"Kotlin": 1934096} | package com.izivia.ocpp.core20.model.clearvariablemonitoring
data class ClearVariableMonitoringResp(
val clearMonitoringResults : List<ClearMonitoringResultType>
) | 6 | Kotlin | 10 | 32 | bd8e7334ae05ea75d02d96a508269acbe076bcd8 | 168 | ocpp-toolkit | MIT License |
kotlin-electron/src/jsMain/generated/electron/utility/BeforeSendResponse.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12159121, "JavaScript": 330528} | // Generated by Karakum - do not modify it manually!
package electron.utility
typealias BeforeSendResponse = electron.core.BeforeSendResponse
| 40 | Kotlin | 165 | 1,319 | a8a1947d73e3ed26426f1e27b641bff427dfd6a0 | 146 | kotlin-wrappers | Apache License 2.0 |
src/main/kotlin/keymanagergrpc/br/com/guilherme/client/dtos/DeletePixKeyRequest.kt | Fotkurz | 397,389,431 | true | {"Kotlin": 73675} | package keymanagergrpc.br.com.guilherme.client.dtos
import io.micronaut.core.annotation.Introspected
@Introspected
data class DeletePixKeyRequest(
val key: String,
val participant: String
) | 0 | Kotlin | 0 | 0 | 0c470b82b19571bdf3ce7bd357967b4f0e3d551c | 199 | orange-talents-06-template-pix-keymanager-grpc | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/service/FysiskBrevUtsendingService.kt | navikt | 303,972,532 | false | null | package no.nav.syfo.service
import kotlinx.coroutines.runBlocking
import no.nav.syfo.consumer.distribuerjournalpost.JournalpostdistribusjonConsumer
import org.slf4j.LoggerFactory
class FysiskBrevUtsendingService(
val journalpostdistribusjonConsumer: JournalpostdistribusjonConsumer,
) {
private val log = Logge... | 1 | Kotlin | 3 | 0 | 8490347353778f9e41ec7a3147844da4f56bd1c5 | 727 | esyfovarsel | MIT License |
app/src/main/java/com/peceoqicka/demo/wheelayoutmanager/DateItemDecoration.kt | peceoqicka | 176,448,211 | false | null | package com.peceoqicka.demo.wheelayoutmanager
import android.graphics.Canvas
import android.graphics.Paint
import android.support.v7.widget.RecyclerView
import com.peceoqicka.wheellayoutmanager.WheelLayoutManager
/**
* <pre>
* author : peceoqicka
* time : 2019/3/14
* version : 1.0
* ... | 2 | Kotlin | 0 | 5 | a112452f182bdb1bb67ffd837a11c5673656b11f | 3,475 | WheelLayoutManager | Apache License 2.0 |
src/main/kotlin/no/nav/familie/ks/sak/kjerne/beregning/domene/TilkjentYtelseRepository.kt | navikt | 533,308,075 | false | {"Kotlin": 2778706, "Shell": 1039, "Dockerfile": 141} | package no.nav.familie.ks.sak.kjerne.beregning.domene
import no.nav.familie.ks.sak.kjerne.behandling.domene.Behandling
import no.nav.familie.ks.sak.kjerne.eøs.differanseberegning.AndelTilkjentYtelsePraktiskLikhet.erIPraksisLik
import no.nav.familie.ks.sak.kjerne.eøs.differanseberegning.AndelTilkjentYtelsePraktiskLikhe... | 3 | Kotlin | 1 | 2 | f4d9399ceff883c7a14a481407038d41d071b169 | 2,430 | familie-ks-sak | MIT License |
example/src/main/kotlin/starwars/graphql/droid/DroidMutationResolver.kt | pm-dev | 128,978,530 | false | {"Kotlin": 352567, "JavaScript": 52832, "TypeScript": 10121, "HTML": 3834, "Python": 1309, "Shell": 1279, "CSS": 196} | @file:Suppress("unused")
package starwars.graphql.droid
import com.coxautodev.graphql.tools.GraphQLMutationResolver
import graphql.schema.DataFetchingEnvironment
import graphql.servlet.ogm.mutate
import org.springframework.stereotype.Component
import starwars.models.Character
import starwars.models.Droid
import starw... | 1 | Kotlin | 6 | 31 | 8197847f310bd9928ff1eccb7733b59830e3c12e | 1,054 | kotlin-gremlin-ogm | Apache License 2.0 |
android/app/src/main/java/work/shion/xapprecipe/templates/link_insert_dialog/LinkInsertDialogViewModel.kt | tshion | 261,409,412 | false | null | package work.shion.xapprecipe.templates.link_insert_dialog
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
class LinkInsertDialogViewModel : ViewModel() {
val input = MutableLiveData<String?>()
}
| 4 | Kotlin | 0 | 0 | 1bd854f0621a0a102c07b7a85f5718cc0c01f5b8 | 233 | XAppRecipe | MIT License |
app/src/test/kotlin/com/iliasg/startrekfleetcommand/stfcpadd/sync/data/repository/FakeApiRepositoryImpl.kt | Iliasgx | 455,331,101 | false | {"Kotlin": 145697} | package com.iliasg.startrekfleetcommand.stfcpadd.sync.data.repository
import com.iliasg.startrekfleetcommand.stfcpadd.sync.data.datasources.remote.dto.CompareDto
import com.iliasg.startrekfleetcommand.stfcpadd.sync.data.datasources.remote.dto.ReleaseDto
import com.iliasg.startrekfleetcommand.stfcpadd.sync.data.datasou... | 0 | Kotlin | 0 | 1 | 277c4936facbddcffb354f2af6e273b44bb37dea | 2,605 | STFC-Padd-template | Apache License 2.0 |
core/src/main/java/com/dvttest/hiweather/core/extensions/NavigationExtensions.kt | zakayothuku | 461,908,095 | false | null | /*
* Copyright (C) 2022. dvt.co.za
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 0 | Kotlin | 0 | 2 | b52f8a2a1953548625f158c7b9523387313fb35e | 1,169 | dvt-hiweather | Apache License 2.0 |
src/main/kotlin/com/pushpyshev/model/entity/tables/Counters.kt | Mikuro | 840,857,804 | false | {"Kotlin": 22781, "Dockerfile": 460} | package com.pushpyshev.model.entity.tables
import org.jetbrains.exposed.dao.id.IntIdTable
object Counters : IntIdTable("counters") {
val name = varchar("name", 255)
val value = integer("value")
} | 0 | Kotlin | 0 | 0 | 1ff88f155fcea32c7ddd5bf3de0f36246147d7ab | 205 | test-crud-app | MIT License |
e2im2/src/main/kotlin/org/duangsuse/AsciiInput.kt | duangsuse-valid-projects | 229,555,986 | false | {"C++": 6115, "Kotlin": 5412, "Makefile": 463} | package org.duangsuse
import java.io.InputStream
/** Unsafe ([InputStream.read] `-1` return value is discard) ASCII(8-bit) input */
class AsciiInput(private val inner: InputStream): CharIterator() {
override fun hasNext(): Boolean = inner.available() != 0
override fun nextChar(): Char = inner.read().toChar()
}
| 0 | C++ | 0 | 0 | c8c5c8b4372095b5775d8e731cc37dbaf510d1b1 | 318 | e2im-2 | Apache License 2.0 |
src/main/kotlin/Day07.kt | joostbaas | 573,096,671 | false | null | sealed interface FileSystem {
val name: String
val size: Int
get() = when (this) {
is Directory -> children.sumOf { it.size }
is File -> fileSize
}
}
data class File(
override val name: String,
val fileSize: Int,
) : FileSystem
data class Directory(
overri... | 0 | Kotlin | 0 | 0 | b4ffaf1e48f5baf3449c69de1076cc5e4f205d75 | 2,439 | advent-of-code-2022 | Apache License 2.0 |
src/main/kotlin/gaydar/struct/CMD/DroppedItemInteractionComponentCMD.kt | q129303 | 131,508,880 | false | null | package gaydar.struct.CMD
import com.badlogic.gdx.math.Vector2
import gaydar.deserializer.channel.ActorChannel.Companion.droppedItemCompToItem
import gaydar.deserializer.channel.ActorChannel.Companion.droppedItemLocation
import gaydar.struct.Actor
import gaydar.struct.Bunch
import gaydar.struct.NetGuidCacheObject
impo... | 1 | Kotlin | 4 | 3 | 46a956b353933e7ea6b582a06e755e5d863eb6cd | 2,618 | PUBG-Radar | The Unlicense |
app/src/main/java/com/example/taskplanner/data/model/entity/Reminder.kt | kikichechka | 781,460,462 | false | {"Kotlin": 101495} | package com.example.taskplanner.data.model.entity
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.time.LocalDate
import java.time.LocalTime
@Entity(tableName = "reminder")
class Reminder(
@PrimaryKey(autoGenerate = true) override var id: Int? = null,
@Co... | 0 | Kotlin | 0 | 0 | c55fa823a3234d238eda2e15e75c26b1b5d1547e | 600 | Task-Planner | Apache License 2.0 |
inference/inference-webgpu/src/commonMain/kotlin/io/kinference/webgpu/operators/WebGPUOperatorFactory.kt | isomethane | 591,976,225 | false | null | package io.kinference.webgpu.operators
import io.kinference.attribute.Attribute
import io.kinference.attribute.AttributeFactory
import io.kinference.graph.Graph
import io.kinference.operator.*
import io.kinference.protobuf.message.GraphProto
import io.kinference.protobuf.message.TensorProto
import io.kinference.webgpu... | 0 | Kotlin | 0 | 0 | 3056bc4ebcd03a86d0ee9ef093cdac81491325b2 | 4,249 | kinference | Apache License 2.0 |
app/src/main/java/com/chandistudios/taskrapid/data/room/TaskDao.kt | chubozeko | 491,210,477 | false | null | package com.chandistudios.taskrapid.data.room
import androidx.room.*
import com.chandistudios.taskrapid.data.entity.Task
import kotlinx.coroutines.flow.Flow
@Dao
abstract class TaskDao {
// get task with taskId
@Query(value = "SELECT * FROM tasks WHERE task_id = :taskId")
abstract fun getTaskWithId(taskI... | 0 | Kotlin | 0 | 0 | a38870dd3d2b4dc5f8aeac99d7a40e72e69d669e | 1,616 | TaskRapid | MIT License |
main/src/main/java/com/pyamsoft/tetherfi/main/ThemeViewModeler.kt | pyamsoft | 475,225,784 | false | null | package com.pyamsoft.tetherfi.main
import android.app.Activity
import androidx.compose.runtime.saveable.SaveableStateRegistry
import com.pyamsoft.pydroid.arch.AbstractViewModeler
import com.pyamsoft.pydroid.ui.theme.Theming
import javax.inject.Inject
class ThemeViewModeler
@Inject
internal constructor(
override v... | 4 | Kotlin | 2 | 52 | 75adef3c88e8957b874c0e58f2bdec5d5ef3151c | 1,229 | tetherfi | Apache License 2.0 |
app/src/main/java/theshoestore/ca/ui/fragment/DetailFragment.kt | gilsonjuniorpro | 306,688,846 | false | null | package theshoestore.ca.ui.fragment
import android.Manifest
import android.app.AlertDialog
import android.content.Intent
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Bundle
import android.os.Environment
import android.os.Handler
import android.provider.MediaStore
import android.vie... | 0 | Kotlin | 0 | 0 | 407bde484b8472f0221b51e33541149c51909e6d | 11,259 | TheShoeStore | Apache License 2.0 |
telegram-bot/src/main/kotlin/eu/vendeli/tgbot/types/internal/ActivityCtx.kt | vendelieu | 496,567,172 | false | {"Kotlin": 520294, "CSS": 356} | package eu.vendeli.tgbot.types.internal
@JvmInline
value class ActivityCtx<out T : ProcessedUpdate>(val update: T)
| 5 | Kotlin | 6 | 116 | 744bbcf1fe96fcb52c50ddf11cf2dd9a3f98c4b5 | 116 | telegram-bot | Apache License 2.0 |
tabulate-core/src/main/kotlin/io/github/voytech/tabulate/components/document/api/builder/dsl/AttributesApi.kt | voytech | 262,033,710 | false | {"Kotlin": 809513, "Java": 7496, "Shell": 679} | package io.github.voytech.tabulate.components.document.api.builder.dsl
import io.github.voytech.tabulate.components.document.model.Document
import io.github.voytech.tabulate.core.model.attributes.HeightAttribute
import io.github.voytech.tabulate.core.model.attributes.WidthAttribute
fun DocumentLevelAttributesBuilderA... | 15 | Kotlin | 0 | 2 | c7886212148dbaba9cfcaeba826ce752b4971bea | 590 | tabulate | Apache License 2.0 |
tabulate-core/src/main/kotlin/io/github/voytech/tabulate/components/document/api/builder/dsl/AttributesApi.kt | voytech | 262,033,710 | false | {"Kotlin": 809513, "Java": 7496, "Shell": 679} | package io.github.voytech.tabulate.components.document.api.builder.dsl
import io.github.voytech.tabulate.components.document.model.Document
import io.github.voytech.tabulate.core.model.attributes.HeightAttribute
import io.github.voytech.tabulate.core.model.attributes.WidthAttribute
fun DocumentLevelAttributesBuilderA... | 15 | Kotlin | 0 | 2 | c7886212148dbaba9cfcaeba826ce752b4971bea | 590 | tabulate | Apache License 2.0 |
animation/src/main/kotlin/team/duckie/quackquack/animation/AnimatedContent.kt | duckie-team | 523,387,054 | false | null | /*
* Designed and developed by Duckie Team, 2022~2023
*
* Licensed under the MIT.
* Please see full license: https://github.com/duckie-team/quack-quack-android/blob/master/LICENSE
*/
package team.duckie.quackquack.animation
import androidx.compose.animation.AnimatedContent
import androidx.compose.animation.Anima... | 32 | null | 4 | 56 | 1a36821e39113fa1aec321c688666a2be64b6d47 | 1,625 | quack-quack-android | MIT License |
src/main/kotlin/me/mical/remoteoperate/RemoteUtils.kt | Micalhl | 534,007,672 | false | null | package me.mical.remoteoperate
import com.bekvon.bukkit.residence.api.ResidenceApi
import com.bekvon.bukkit.residence.containers.Flags
import com.bekvon.bukkit.residence.protection.FlagPermissions
import nl.rutgerkok.blocklocker.BlockLockerAPIv2
import org.bukkit.Location
import org.bukkit.block.Block
import org.bukki... | 0 | Kotlin | 1 | 0 | 351b4d971b4a2721b468b54d82eb0a5993967999 | 1,679 | RemoteOperate | MIT License |
cottontaildb-dbms/src/main/kotlin/org/vitrivr/cottontail/dbms/execution/operators/definition/CreateIndexOperator.kt | vitrivr | 160,775,368 | false | null | package org.vitrivr.cottontail.dbms.execution.operators.definition
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import org.vitrivr.cottontail.core.basics.Record
import org.vitrivr.cottontail.core.database.Name
import org.vitrivr.cottontail.dbms.catalogue.CatalogueTx
import org.vitrivr.cotton... | 8 | Kotlin | 15 | 15 | c6e06263d9163f697e0aa5dc334a910521620215 | 2,268 | cottontaildb | MIT License |
thelema-kx/src/commonMain/kotlin/org/ksdfv/thelema/g2d/TextureAtlas.kt | cybernetics | 365,452,918 | true | {"Kotlin": 3356187, "C": 552354, "Java": 355550, "HTML": 6211, "Makefile": 260} | /*
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | null | 0 | 0 | c274a903f0a4d17e5ef14773efa144ee8c8809dd | 20,607 | thelema-engine | Apache License 2.0 |
src/acceptanceTest/kotlin/com/github/jcornaz/islands/test/EndpointTestUtils.kt | jcornaz | 144,144,275 | false | null | package com.github.jcornaz.islands.test
import com.google.protobuf.Message
import io.ktor.http.ContentType
import io.ktor.http.HttpHeaders
import io.ktor.http.HttpStatusCode
import io.ktor.http.isSuccess
import io.ktor.server.testing.TestApplicationCall
import io.ktor.server.testing.TestApplicationRequest
import io.kt... | 0 | Kotlin | 0 | 2 | 33984a05d79e0007ba73522a313d71bb74365713 | 1,191 | islands-on-map | MIT License |
app/src/main/java/com/app/jetpack/ui/home/HomeViewModel.kt | ldk123456 | 648,167,522 | false | null | package com.app.jetpack.ui.home
import android.util.Log
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import androidx.paging.DataSource
import androidx.paging.ItemKeyedDataSource
import androidx.paging.PagedList
import com.alibaba.fastjson2.TypeReference
import com.app.jetpack.mode... | 0 | Kotlin | 0 | 0 | 8b14da1cf3ee28d9f52081b4a830b2e82cbb9319 | 4,142 | JetpackApp | Apache License 2.0 |
app/src/main/java/tech/okcredit/appstartupinstrumentation/MainActivity.kt | okcredit | 386,817,073 | false | null | package tech.okcredit.appstartupinstrumentation
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
sup... | 0 | Kotlin | 3 | 27 | 88ad83b5c60ebebba3fa7832728ac75325328aa5 | 634 | android-cold-startup-instrumentation | Apache License 2.0 |
cockpit-core/src/main/java/com/orbitalhq/cockpit/core/security/authorisation/UserRoleRepository.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.cockpit.core.security.authorisation
interface UserRoleRepository {
}
| 9 | TypeScript | 10 | 292 | 2be59abde0bd93578f12fc1e2ecf1f458a0212ec | 92 | orbital | Apache License 2.0 |
datalayer/src/main/java/com/reach/datalayer/remote/bing/BingService.kt | Reach2027 | 455,874,347 | false | null | /*
* Copyright 2022 Reach2027
*
* 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 i... | 0 | Kotlin | 0 | 0 | 89903210af0cbf75b8124b89ab0e19d49e4c4025 | 980 | Todo | Apache License 2.0 |
app/src/main/java/com/manuelsoft/loginapp/ui/login/LoginActivity.kt | VictorSalazar777 | 419,127,082 | false | null | package com.manuelsoft.loginapp.ui.login
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.util.Log
import android.view.View
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.commit
import com.google.android.gms.a... | 0 | Kotlin | 0 | 0 | 6fa2280cd0bb0d5f7dfc65c603cf56bc590587f5 | 5,631 | LoginApp | MIT License |
lib_base/src/main/java/com/example/lib_base/dialog/DialogManager.kt | TReturn | 399,864,608 | false | {"Kotlin": 347815, "Java": 152179} | package com.example.lib_base.dialog
import android.content.Context
import com.lxj.xpopup.XPopup
/**
* @CreateDate: 2023/8/31 15:53
* @Author: 青柠
* @Description:
*/
object DialogManager {
/**
* 获取一个默认的Dialog
* @param context Context
* @param isDismissOnTouch Boolean
* @return XPopup.Builder... | 0 | Kotlin | 1 | 1 | 14d21f13fbe8ea7aa33f0183702ceb886cc96331 | 1,051 | BaseApp | Apache License 2.0 |
glm/src/main/kotlin/glm_/gtc/matrixTransform/gtcMatrixScale.kt | boehmseb | 217,838,544 | true | {"Kotlin": 2726177, "Java": 2543} | package glm_.gtc.matrixTransform
import glm_.mat4x4.Mat4
import glm_.mat4x4.Mat4d
import glm_.mat3x3.Mat3
import glm_.mat3x3.Mat3d
import glm_.vec3.Vec3
import glm_.vec3.Vec3d
interface gtcMatrixScale {
/** Builds a scale 4 * 4 matrix created from 3 scalars.
*
* @param res resulting scale matrix.
... | 0 | null | 0 | 0 | 3d3aea6d420bace96ced057cddeca023129d7c41 | 11,566 | glm | MIT License |
app/src/main/java/dev/arweb/miweather/miWeatherWidget.kt | arwebSE | 567,722,824 | false | {"Kotlin": 7002} | package dev.arweb.miweather
import android.app.PendingIntent
import android.appwidget.AppWidgetManager
import android.appwidget.AppWidgetProvider
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.util.Log
import android.view.View
import android.widget.Remo... | 0 | Kotlin | 0 | 0 | baa995b93177e2ec65787e684dfde542dfc6a4bd | 5,994 | miWeather | MIT License |
app/src/main/java/com/lttrung/dormitory/domain/data/network/impl/ContractRetrofitImpl.kt | lttrung2001 | 622,933,615 | false | null | package com.lttrung.dormitory.domain.data.network.impl
import com.lttrung.dormitory.domain.data.network.ContractNetwork
import com.lttrung.dormitory.domain.data.network.models.FetchRoomContractResponse
import com.lttrung.dormitory.domain.data.network.services.ContractService
import com.lttrung.dormitory.exceptions.Fai... | 0 | Kotlin | 0 | 0 | 82a1fab3027ad106de61e7ff00c8331da227e92d | 2,030 | dormitory | MIT License |
app/src/main/java/com/mexator/petfinder_client/di/DataModule.kt | Mexator | 261,837,159 | false | null | package com.mexator.petfinder_client.di
import com.mexator.petfinder_client.data.remote.api_interaction.CookieHolder
import org.koin.dsl.module
val dataModule = module {
single { CookieHolder }
} | 0 | Kotlin | 0 | 0 | 703ef76b8274b5776cbc69e931298a589cd131d2 | 201 | Petfinder-mobile-client | MIT License |
src/main/kotlin/org/elasticsearch4idea/service/ElasticsearchManager.kt | ergoz | 286,516,221 | true | {"Kotlin": 235816} | /*
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | null | 1 | 0 | b7b923e4f984b53ab00acdc7890998c4c2e7aada | 14,255 | elasticsearch4idea | Apache License 2.0 |
app/src/main/java/ru/glindaqu/ejournal/screens/students/Add.kt | glindaqu | 789,473,966 | false | {"Kotlin": 175382} | package ru.glindaqu.ejournal.screens.students
import android.annotation.SuppressLint
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layo... | 0 | Kotlin | 0 | 0 | 78468c973531103ecdedf9245316d584cec1b765 | 6,610 | EJournal | MIT License |
app/src/main/java/com/example/inventory/screen/addinventoryitem/AddInventoryItemState.kt | nicolegeorgieva | 702,417,696 | false | {"Kotlin": 71335} | package com.example.inventory.screen.addinventoryitem
data class AddInventoryItemState(
val name: String?,
val quantity: String?,
val minQuantityTarget: String?,
val category: String?,
val description: String?,
val imagePath: String?
) | 0 | Kotlin | 0 | 1 | 263cb613a6b39892f36298884810c2f9b3237857 | 260 | inventory | MIT License |
basick/src/main/java/com/mozhimen/basick/utilk/exts/ExtsViewImage.kt | mozhimen | 353,952,154 | false | null | package com.mozhimen.basick.utilk.exts
import android.graphics.drawable.Drawable
import android.widget.ImageView
import com.mozhimen.basick.utilk.view.UtilKViewImage
/**
* @ClassName ExtsKViewImage
* @Description TODO
* @Author mozhimen / <NAME>
* @Date 2022/11/6 14:47
* @Version 1.0
*/
/**
* 自适应图片
* @receive... | 0 | Kotlin | 0 | 2 | 5077b41303c564a4f7acd8e7df03133ebf1e04f2 | 460 | SwiftKit | Apache License 2.0 |
serialization/src/test/kotlin/io/github/airflux/serialization/dsl/writer/array/item/specification/ArrayNullableItemSpecTest.kt | airflux | 336,002,943 | false | null | /*
* Copyright 2021-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 0 | Kotlin | 3 | 3 | 9dfcfe4ec288e27f150beeef12dff45f131d0805 | 2,821 | airflux-serialization | Apache License 2.0 |
wgpu4k/src/jvmMain/kotlin/io.ygdrasil.wgpu/RenderPassEncoder.jvm.kt | wgpu4k | 773,068,055 | false | {"Kotlin": 1190676, "HTML": 1638, "Dockerfile": 1039, "Shell": 308} | package io.ygdrasil.wgpu
import io.ygdrasil.wgpu.internal.jvm.confined
import io.ygdrasil.wgpu.internal.jvm.panama.wgpu_h
import io.ygdrasil.wgpu.internal.jvm.toPointerArray
import java.lang.foreign.MemorySegment
actual class RenderPassEncoder(private val handler: MemorySegment) {
actual fun end() {
wgpu... | 7 | Kotlin | 6 | 41 | 822c304afaa72411ae42e86f20c7b5c62b5f9815 | 1,867 | wgpu4k | MIT License |
wrappers/react-native/android/src/main/java/com/mattrglobalpairingcryptorn/PairingCryptoRnPackage.kt | mattrglobal | 329,755,968 | false | {"Rust": 632562, "TypeScript": 143367, "Objective-C": 91752, "Java": 50613, "C": 27696, "JavaScript": 16120, "Shell": 14680, "Kotlin": 13355, "C++": 7021, "Ruby": 3914, "Objective-C++": 3660, "Makefile": 3648, "Swift": 67} | package com.mattrglobalpairingcryptorn
import com.facebook.react.ReactPackage
import com.facebook.react.bridge.NativeModule
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.uimanager.ViewManager
class PairingCryptoRnPackage : ReactPackage {
override fun createNativeModules(reactC... | 11 | Rust | 2 | 8 | b9aa7d1e025e87f9638a780d1422e8c56f43afa4 | 578 | pairing_crypto | Apache License 2.0 |
app/src/main/kotlin/com/mukul/jan/primerandroid/flavor/FlavorContainer.kt | Mukuljangir372 | 600,396,968 | false | null | package com.mukul.jan.primerandroid.flavor
import android.app.Activity
import com.mukul.jan.primerandroid.BuildConfig
data class Flavor(
val name: String,
val rootEntry: String,
)
class FlavorContainer {
private val base = "com.mukul.jan.primer.flavor"
private val flavors = listOf(
Flavor(nam... | 0 | Kotlin | 4 | 8 | 5135cc81e1bca2c380460694779d5c343de4ea18 | 1,482 | Primer-Android | Apache License 2.0 |
src/test/kotlin/io/wusa/InfoTest.kt | ilovemilk | 169,864,707 | false | null | package io.wusa
import io.mockk.every
import io.mockk.mockkObject
import io.mockk.unmockkObject
import io.wusa.exception.NoValidSemverTagFoundException
import io.wusa.extension.SemverGitPluginExtension
import org.gradle.api.GradleException
import org.gradle.api.Project
import org.gradle.testfixtures.ProjectBuilder
imp... | 17 | Kotlin | 12 | 42 | 32961344bb8b196fe63fd2660d52b4622111f0b0 | 4,790 | semver-git-plugin | MIT License |
src/test/kotlin/io/wusa/InfoTest.kt | ilovemilk | 169,864,707 | false | null | package io.wusa
import io.mockk.every
import io.mockk.mockkObject
import io.mockk.unmockkObject
import io.wusa.exception.NoValidSemverTagFoundException
import io.wusa.extension.SemverGitPluginExtension
import org.gradle.api.GradleException
import org.gradle.api.Project
import org.gradle.testfixtures.ProjectBuilder
imp... | 17 | Kotlin | 12 | 42 | 32961344bb8b196fe63fd2660d52b4622111f0b0 | 4,790 | semver-git-plugin | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/MailboxEnvelope.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,525 | icons | MIT License |
bidappAds/src/commonMain/kotlin/io/bidapp/kmp/BIDRewarded.kt | bidapphub | 787,934,281 | false | {"Kotlin": 35918} | package io.bidapp.kmp
public expect class BIDRewarded(activity : Any?){
public fun showRewarded(applicationActivity: Any?, bidShowDelegate : BIDFullShow?)
public fun setLoadDelegate(bidLoadDelegate: BIDFullLoad?)
public fun setAutoLoad(isAutoLoad: Boolean)
public fun isInterstitialReady(): Boolean
... | 0 | Kotlin | 0 | 1 | f8ef4f6bcc8d4dba6009f267ff21e4c3b321b132 | 366 | bidapp-kotlin-multiplatform-plugin | MIT License |
shared/src/commonMain/kotlin/TextBuilder.kt | fcopardo | 643,314,635 | false | null | import androidx.compose.material.LocalTextStyle
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.TextLayoutResult
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontFamily
import and... | 0 | Kotlin | 0 | 0 | 463b525197b18839c3c05fb52b62c03bea8d94f4 | 3,873 | kmm-compose-playground | Apache License 2.0 |
src/main/kotlin/org/cdb/homunculus/models/types/ShortText.kt | CodeDrillBrigade | 714,769,385 | false | {"Kotlin": 190419, "Dockerfile": 336} | package org.cdb.homunculus.models.types
import kotlinx.serialization.Serializable
@JvmInline
@Serializable
value class ShortText(val text: String) {
init {
require(text.length <= 300) {
"A ShortText cannot be greater than 300 chracters"
}
}
override fun toString(): String = text
}
| 0 | Kotlin | 0 | 0 | 9830788175ad4ecf8e0a8d8a08b8c1f1c075f4cf | 295 | Homunculus | MIT License |
kotlinApp/Application/src/main/java/com/example/android/autofillframework/service/datasource/AutofillRepository.kt | sunmTree | 93,298,013 | true | {"Gradle": 7, "Shell": 2, "Markdown": 4, "Batchfile": 2, "Text": 2, "YAML": 2, "Java Properties": 2, "XML": 36, "Kotlin": 20, "Java": 20} | /*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Java | 0 | 0 | d625bdc27c6166aa43efaf02e174c40910b8823b | 1,365 | android-AutofillFramework | Apache License 2.0 |
src/main/kotlin/no/nav/arbeidsgiver/iatjenester/metrikker/controller/ResponseStatus.kt | navikt | 338,342,215 | false | {"Kotlin": 152898, "Shell": 260, "Dockerfile": 148} | package no.nav.arbeidsgiver.iatjenester.metrikker.controller
object ResponseStatusConsts {
val OK = ResponseStatus("ok")
val Created = ResponseStatus("created")
val BadRequest = ResponseStatus("bad request")
val Forbidden = ResponseStatus("forbidden")
}
data class ResponseStatus(
val status: Stri... | 0 | Kotlin | 0 | 0 | 9b94e437c1d5cd91ae89406150b605b1b1fe099d | 324 | ia-tjenester-metrikker | MIT License |
venom/src/test/java/com/github/venom/service/ServiceDelegateTest.kt | YarikSOffice | 255,161,977 | false | null | package com.github.venom.service
import android.app.ActivityManager
import android.app.ActivityManager.RunningServiceInfo
import android.content.Context
import android.content.Context.ACTIVITY_SERVICE
import androidx.core.content.ContextCompat
import io.mockk.every
import io.mockk.mockk
import io.mockk.mockkStatic
imp... | 1 | Kotlin | 12 | 270 | f9a00a6579778df8130cc982089ae820955ea70e | 2,201 | venom | MIT License |
src/main/kotlin/me/yunleah/plugin/coldestiny/util/ToolsUtil.kt | Yunleah | 664,422,335 | false | null | package me.yunleah.plugin.coldestiny.util
import me.yunleah.plugin.coldestiny.internal.manager.ConfigManager
import org.bukkit.Material
import org.bukkit.event.entity.EntityDamageEvent
import org.bukkit.event.entity.PlayerDeathEvent
import taboolib.common.platform.function.console
import taboolib.common5.Coerce
import... | 0 | Kotlin | 0 | 2 | 366825bb2e2f495f145677ab5f18d7a81dc71ad3 | 2,639 | ColdEstiny | MIT License |
modules/wasm-binary/src/commonMain/kotlin/reader/ReaderContext.kt | wasmium | 761,480,110 | false | {"Kotlin": 352107, "JavaScript": 200} | package org.wasmium.wasm.binary.reader
public class ReaderContext(
public val options: ReaderOptions,
) {
/** Total number of imported functions. */
public var numberFunctionImports: UInt = 0u
/** Total number of imported tables. */
public var numberTableImports: UInt = 0u
/** Total number of... | 0 | Kotlin | 0 | 1 | f7ddef76630278616d221e7c8251adf0f11b9587 | 1,895 | wasmium-wasm-binary | Apache License 2.0 |
mb-graphql/src/main/kotlin/com/nomkhonwaan/mb/graphql/PostResolver.kt | nomkhonwaan | 164,768,574 | false | null | package com.nomkhonwaan.mb.graphql
import com.coxautodev.graphql.tools.GraphQLResolver
import com.nomkhonwaan.mb.common.messaging.post.Post
import com.nomkhonwaan.mb.common.messaging.user.FindUserByIDQuery
import com.nomkhonwaan.mb.common.messaging.user.User
import com.nomkhonwaan.mb.common.time.toRFC3339
import org.a... | 0 | Kotlin | 0 | 0 | 481c3b60568cac387be12cdaeb05f7c538494772 | 1,924 | mb | MIT License |
app/src/main/java/com/example/dojo/view/MainActivity.kt | pgsilva | 734,131,585 | false | {"Kotlin": 9618} | package com.example.dojo.view
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.widget.Toast
import androidx.recyclerview.widget.LinearLayoutManager
import com.example.dojo.dao.SearchItemsProvider
import com.example.dojo.databinding.ActivityMainBinding
import com.example... | 0 | Kotlin | 0 | 0 | 3972ca19c8aaafafb75adbe71f0f3490ab9f1d14 | 1,648 | dojo-android | MIT License |
2020-apps/blog-app/core/src/main/java/shortcourse/readium/core/util/ExtensionFunctions.kt | kevin2-cyber | 437,880,493 | false | {"Kotlin": 765037, "CSS": 301626, "SCSS": 287609, "HTML": 208821, "JavaScript": 16612, "Java": 2758, "TypeScript": 366} | package shortcourse.readium.core.util
import android.view.View
import android.widget.EditText
import com.google.android.gms.tasks.Tasks
import com.google.android.material.snackbar.BaseTransientBottomBar
import com.google.android.material.snackbar.Snackbar
import com.google.firebase.auth.FirebaseUser
import com.google.... | 0 | Kotlin | 0 | 1 | 260d0d3bbae9bfaa24df4fb933188e37c82cc8a6 | 2,911 | ug-short-course | MIT License |
2020-apps/blog-app/core/src/main/java/shortcourse/readium/core/util/ExtensionFunctions.kt | kevin2-cyber | 437,880,493 | false | {"Kotlin": 765037, "CSS": 301626, "SCSS": 287609, "HTML": 208821, "JavaScript": 16612, "Java": 2758, "TypeScript": 366} | package shortcourse.readium.core.util
import android.view.View
import android.widget.EditText
import com.google.android.gms.tasks.Tasks
import com.google.android.material.snackbar.BaseTransientBottomBar
import com.google.android.material.snackbar.Snackbar
import com.google.firebase.auth.FirebaseUser
import com.google.... | 0 | Kotlin | 0 | 1 | 260d0d3bbae9bfaa24df4fb933188e37c82cc8a6 | 2,911 | ug-short-course | MIT License |
resume-ab-validation/src/main/kotlin/ru/otus/otuskotlin/validation/ValidationFieldError.kt | otuskotlin | 377,710,400 | false | null | package ru.otus.otuskotlin.validation
data class ValidationFieldError(
override val message: String,
override val field: String
) : IValidationError, IValidationFieldError | 0 | Kotlin | 0 | 0 | 920d87731a128acc1c113acd393dcc09ed01411a | 180 | ok-202105-resume-ab | MIT License |
app/src/main/java/com/robert/android/lostpets/domain/interactors/impl/GetLanguageInteractorImpl.kt | robertene1994 | 303,119,114 | false | null | package com.robert.android.lostpets.domain.interactors.impl
import com.robert.android.lostpets.domain.executor.Executor
import com.robert.android.lostpets.domain.executor.MainThread
import com.robert.android.lostpets.domain.interactors.GetLanguageInteractor
import com.robert.android.lostpets.domain.interactors.base.Ab... | 0 | Kotlin | 0 | 0 | a7af7de031d3ab4e2d14851a117d3729330cd875 | 1,598 | lostpets-android | MIT License |
api/src/main/kotlin/net/bytemc/bytecloud/api/event/packets/EventUnSubscribePacket.kt | bytemcnetzwerk | 684,494,766 | false | {"Kotlin": 178268} | package net.bytemc.bytecloud.api.event.packets
import net.bytemc.bytecloud.api.network.PacketBuffer
import net.bytemc.bytecloud.api.network.packet.Packet
class EventUnSubscribePacket : Packet {
override fun write(out: PacketBuffer) {
TODO("Not yet implemented")
}
override fun read(inBuf: PacketB... | 0 | Kotlin | 3 | 5 | 6657d004ab2d53516506ea57a0cea09506eea8ce | 426 | bytecloud | Apache License 2.0 |
api/src/main/kotlin/net/bytemc/bytecloud/api/event/packets/EventUnSubscribePacket.kt | bytemcnetzwerk | 684,494,766 | false | {"Kotlin": 178268} | package net.bytemc.bytecloud.api.event.packets
import net.bytemc.bytecloud.api.network.PacketBuffer
import net.bytemc.bytecloud.api.network.packet.Packet
class EventUnSubscribePacket : Packet {
override fun write(out: PacketBuffer) {
TODO("Not yet implemented")
}
override fun read(inBuf: PacketB... | 0 | Kotlin | 3 | 5 | 6657d004ab2d53516506ea57a0cea09506eea8ce | 426 | bytecloud | Apache License 2.0 |
nebulosa-indi-device/src/main/kotlin/nebulosa/indi/device/camera/CameraOffsetMinMaxChanged.kt | tiagohm | 568,578,345 | false | {"Kotlin": 2712371, "TypeScript": 513759, "HTML": 249483, "JavaScript": 120539, "SCSS": 11332, "Python": 2817, "Makefile": 445} | package nebulosa.indi.device.camera
import nebulosa.indi.device.PropertyChangedEvent
data class CameraOffsetMinMaxChanged(override val device: Camera) : CameraEvent, PropertyChangedEvent
| 26 | Kotlin | 2 | 4 | 2099c6f2d7453507289a43efe903c7f92f65f770 | 189 | nebulosa | MIT License |
app/src/main/java/com/hakmar/employeelivetracking/features/tasks/ui/states/TaskState.kt | enginemre | 584,733,724 | false | null | package com.hakmar.employeelivetracking.features.tasks.ui.states
import com.hakmar.employeelivetracking.features.tasks.domain.model.Task
data class TaskState(
var isLoading: Boolean = false,
var isRefreshing: Boolean = false,
var taskList: List<Task> = emptyList(),
var shouldShowDialog: Boolean = fals... | 0 | Kotlin | 0 | 0 | 5e348e0a5aac89b4e60607a14a4ef9bbd68545a5 | 358 | employee_live_tracking | The Unlicense |
kompot/src/main/kotlin/com/revolut/kompot/KompotPlugin.kt | revolut-mobile | 488,970,565 | false | null | /*
* Copyright (C) 2022 Revolut
*
* 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 | 5 | 91 | 1ea49978cd64b74aeac41d1d0bcce68bbcce9d6c | 1,059 | kompot | Apache License 2.0 |
src/main/kotlin/net/mt32/expoll/helper/Async.kt | Universumgames | 508,613,455 | false | {"Kotlin": 318004, "HTML": 6405, "TSQL": 5917, "Dockerfile": 2071, "Shell": 1904, "CSS": 1207} | package net.mt32.expoll.helper
import kotlinx.coroutines.runBlocking
fun async(block: suspend () -> Unit): Thread {
val t = Thread {
try {
runBlocking {
block()
}
} catch (e: Exception) {
e.printStackTrace()
}
}
t.start()
retu... | 0 | Kotlin | 1 | 0 | 0806335cdd4e6c9c88e6f54b1253e67bec37e872 | 326 | expoll_server | MIT License |
app/src/main/java/com/example/android_chatbot/ui/components/BotChip.kt | wilsonng234 | 699,879,489 | false | {"Kotlin": 78356} | package com.example.android_chatbot.ui.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.ExperimentalMaterial3Api
impor... | 0 | Kotlin | 0 | 0 | 981c74f413800d29a3cdc615752605a00095e38e | 1,304 | Android-ChatBot | MIT License |
app/src/main/java/com/bsuir/bsuirschedule/domain/repository/ScheduleRepository.kt | Saydullin | 526,953,048 | false | {"Kotlin": 572249, "HTML": 7301} | package com.bsuir.bsuirschedule.domain.repository
import com.bsuir.bsuirschedule.data.db.dao.ScheduleDao
import com.bsuir.bsuirschedule.domain.models.GroupSchedule
import com.bsuir.bsuirschedule.domain.models.Schedule
import com.bsuir.bsuirschedule.domain.models.ScheduleLastUpdatedDate
import com.bsuir.bsuirschedule.d... | 0 | Kotlin | 0 | 4 | 49dc7e7551a4c0df2ada93648291e24aecb3bda5 | 1,138 | BSUIR_Schedule | Creative Commons Zero v1.0 Universal |
failfast-examples/src/test/kotlin/failfast/examples/ContractsTest.kt | robfletcher | 333,458,962 | true | {"Kotlin": 108563} | package failfast.examples
import failfast.ContextDSL
import failfast.FailFast
import failfast.describe
import strikt.api.expectThat
import strikt.assertions.isEqualTo
import java.util.*
fun main() {
FailFast.runTest()
}
// a port of https://github.com/dmcg/minutest/blob/master/core/src/test/kotlin/dev/minutest/e... | 0 | Kotlin | 0 | 0 | 4af24b125a39352e6c6fc4d991b3b737009759a4 | 1,041 | failfast | MIT License |
src/main/kotlin/ch/hsr/dsl/dwrtc/util/Config.kt | dwrtc | 150,221,331 | false | null | package ch.hsr.dsl.dwrtc.util
import com.natpryce.konfig.*
/** The port the TomP2P peer runs on */
val PEER_PORT = Key("peer.port", intType)
/** The IP the Webserver binds to */
val WEBSERVER_IP = Key("http.ip", stringType)
/** The port the Webserver runs on */
val WEBSERVER_PORT = Key("http.port", intType)
/** The l... | 3 | Kotlin | 3 | 8 | a3753a27cca7bbf6d4cb21a0b382f52cb281ecb7 | 866 | dwrtc | Apache License 2.0 |
core/logging/src/main/java/com/costular/atomtasks/core/logging/LogcatAtomLogger.kt | costular | 379,913,052 | false | {"Kotlin": 566642, "HTML": 7918} | package com.costular.atomtasks.core.logging
import android.util.Log
class LogcatAtomLogger : AtomLogger {
override fun log(level: LogLevel, tag: String, text: String) {
Log.println(level.asLogcatLevel(), tag, text)
}
override fun log(
level: LogLevel,
tag: String,
exceptio... | 0 | Kotlin | 0 | 9 | 98f781daebe30ed4b4439629b4d6215153f7fc89 | 921 | atom-tasks | Apache License 2.0 |
teamcity-kotlin-trigger-openapi/src/main/kotlin/jetbrains/buildServer/buildTriggers/remote/BuildType.kt | JetBrains | 307,772,250 | false | null | /*
* Copyright 2000-2020 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 2 | Kotlin | 1 | 1 | 5c509dc7be3599a0c993b7e88e8efa4e1e2a0219 | 1,353 | teamcity-kotlin-trigger | Apache License 2.0 |
src/main/kotlin/com/github/hanseter/json/queryengine/fx/queryUis/AttributePresentQueryUi.kt | Hanseter | 244,839,580 | false | null | package com.github.hanseter.json.queryengine.fx.queryUis
import javafx.scene.layout.HBox
import javafx.scene.control.TextField
import javafx.scene.control.Label
import javafx.scene.Node
import org.controlsfx.control.textfield.TextFields
import org.json.JSONObject
import com.github.hanseter.json.queryengine.AttributePa... | 0 | Kotlin | 0 | 0 | c55fdd793fc1429e1518b84beae169578c965734 | 1,438 | JSONQueryEngineFx | MIT License |
app/src/main/java/com/akexorcist/listadapter/model/PostGenerator.kt | akexorcist | 130,909,890 | false | null | package com.akexorcist.listadapter.model
class PostGenerator {
private val post1 = PhotoPost("001", "Looking forward to a wonderful time ahead with the love of my life.", "02/01/2018 12:10", "https://images.unsplash.com/photo-1522199710521-72d69614c702?w=668&q=80")
private val post2 = StatusPost("002", "Waitin... | 0 | Kotlin | 3 | 7 | d6e2f580dc5890b9813ce44cd87f4ffb13e93c10 | 3,275 | RecyclerView-ListAdapter | Apache License 2.0 |
app/src/main/java/com/coclearapp/pdm_project/Activities/PatientsActivity.kt | RFuentes22 | 361,808,712 | true | {"Kotlin": 104852} | package com.coclearapp.pdm_project.Activities
import android.content.Intent
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProviders
import androidx.recyclerv... | 3 | Kotlin | 0 | 0 | 3d22ef3267dc1443b231b35c44f1a9054471ba54 | 3,093 | ABCoclear | Apache License 2.0 |
core/common/src/commonMain/kotlin/jp/co/yumemi/droidtraining/core/common/CoroutineUtils.kt | matsumo0922 | 842,734,172 | false | {"Kotlin": 94734, "Swift": 916, "HTML": 318} | package jp.co.yumemi.droidtraining.core.common
import io.github.aakira.napier.Napier
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
import kotlin.coroutines.cancellation.CancellationException
suspend fun <T> suspendRunCatching(block: suspend () -> T): Result<T> = try {
Result.... | 9 | Kotlin | 0 | 0 | cb64d712c220647a17642c58109375f473de774a | 640 | android-training-template | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.