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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/com/sbg/vindinium/kindinium/model/board/MetaBoard.kt | SoulBeaver | 23,961,494 | false | null | package com.sbg.vindinium.kindinium.model.board
import java.util.HashMap
import java.util.ArrayList
import sun.reflect.generics.reflectiveObjects.NotImplementedException
import java.util.Queue
import java.util.PriorityQueue
import com.sbg.vindinium.kindinium.model.Position
import com.sbg.vindinium.kindinium.paired
imp... | 0 | Kotlin | 1 | 4 | 9150d6619229db4932494e95c92f6911a7dd3443 | 4,348 | kindinium | Apache License 2.0 |
core/data/local/src/main/java/com/fappslab/mbchallenge/core/data/local/model/extension/MapperExtension.kt | F4bioo | 845,138,188 | false | {"Kotlin": 242545} | package com.fappslab.mbchallenge.core.data.local.model.extension
import com.fappslab.mbchallenge.core.data.local.model.ExchangeEntity
import com.fappslab.mbchallenge.core.domain.model.Exchange
internal fun ExchangeEntity.toExchange(): Exchange {
return Exchange(
exchangeId = exchangeId,
website = ... | 0 | Kotlin | 0 | 0 | d81eff4b566578b5dc8596b7cbfcfb2e12e652b6 | 1,720 | MBChallenge | MIT License |
core/domain/src/main/java/cc/cryptopunks/crypton/interactor/StorePresence.kt | cryptopunkscc | 202,181,919 | false | {"Kotlin": 523158, "Shell": 6362} | package cc.cryptopunks.crypton.interactor
import cc.cryptopunks.crypton.context.Presence
import cc.cryptopunks.crypton.context.SessionScope
internal suspend fun SessionScope.storePresence(presence: Presence) = presenceStore reduce {
plus(presence.resource.address to presence)
}
| 9 | Kotlin | 2 | 7 | 33dc96367c3a4eb869800b6a0ac84f302bd68502 | 286 | crypton | MIT License |
app/src/main/java/com/breezefsmparas/features/newcollectionreport/PendingCollListner.kt | DebashisINT | 646,827,078 | false | {"Kotlin": 15132793, "Java": 1023856} | package com.breezefsmparas.features.newcollectionreport
import com.breezefsmparas.features.photoReg.model.UserListResponseModel
interface PendingCollListner {
fun getUserInfoOnLick(obj: PendingCollData)
} | 0 | Kotlin | 0 | 0 | b3a654585537264aaec676ba124110e998983033 | 210 | ParasPanMasala | Apache License 2.0 |
save-cloud-common/src/commonMain/kotlin/com/saveourtool/save/filters/ProjectFilters.kt | saveourtool | 300,279,336 | false | null | package com.saveourtool.save.filters
import com.saveourtool.save.entities.ProjectStatus
import kotlinx.serialization.Serializable
/**
* @property name substring that match the beginning of a name
* @property statuses current [statuses] of an organization
* @property organizationName
*/
@Serializable
data class Pr... | 160 | Kotlin | 1 | 31 | d83a26b101c0f809d39a6deab4e183de04cc7832 | 806 | save-cloud | MIT License |
src/main/kotlin/me/pi3ro/pvplounge/menu/ServerSelectorMenu.kt | Pi3ro | 694,412,154 | false | {"Kotlin": 19803} | package me.pi3ro.pvplounge.menu
import me.pi3ro.pvplounge.PvPLounge
import me.pi3ro.pvplounge.utils.ItemBuilder
import me.pi3ro.pvplounge.utils.Utils
import me.pi3ro.pvplounge.utils.menu.Button
import me.pi3ro.pvplounge.utils.menu.Menu
import me.clip.placeholderapi.PlaceholderAPI
import org.bukkit.Bukkit
import org.bu... | 0 | Kotlin | 0 | 0 | 2c09b77be8dcf91a273ce5bbfe3cbe4364d450f7 | 3,270 | PvPLoungeHub | Apache License 2.0 |
src/main/kotlin/com/github/dxahtepb/etcdidea/view/SingleSelectionTable.kt | dxahtepb | 300,450,509 | false | null | package com.github.dxahtepb.etcdidea.view
import com.intellij.ui.table.JBTable
import javax.swing.ListSelectionModel
import javax.swing.table.TableModel
class SingleSelectionTable(tableModel: TableModel) : JBTable(tableModel) {
init {
dragEnabled = false
tableHeader.reorderingAllowed = false
... | 0 | Kotlin | 0 | 3 | 4579b6666382a6bb460d9564bba3908d6e14793d | 437 | etcd-idea | Apache License 2.0 |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/crypto/bulk/Frame.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.crypto.bulk
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import andr... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 2,885 | VuesaxIcons | MIT License |
src/test/kotlin/com/fileee/oihAdapter/interpreter/EmitTest.kt | openintegrationhub | 159,690,721 | false | null | package com.fileee.oihAdapter.interpreter
import arrow.core.some
import arrow.effects.IO
import arrow.effects.fix
import arrow.effects.monadDefer
import io.elastic.api.EventEmitter
import io.kotlintest.specs.StringSpec
import io.mockk.every
import io.mockk.mockk
import io.mockk.verify
import javax.json.Json
class Emi... | 0 | Kotlin | 0 | 0 | 0bef6ec18c38c34f55b3ede68f7b68a3b7baf743 | 1,468 | fileee-adapter | Apache License 2.0 |
lib/src/main/kotlin/net/dean/jraw/pagination/DefaultPaginator.kt | hhouyuqing | 110,333,531 | true | {"Kotlin": 338670, "Java": 127186, "Groovy": 11415} | package net.dean.jraw.pagination
import net.dean.jraw.RedditClient
import net.dean.jraw.http.HttpRequest
import net.dean.jraw.models.Sorting
import net.dean.jraw.models.TimePeriod
open class DefaultPaginator<T> private constructor(
reddit: RedditClient,
baseUrl: String,
val sortingAlsoInPath: Boolean,
... | 0 | Kotlin | 0 | 0 | 922d497858d62e873ac003b1b8fc392ae514a9ac | 2,811 | JRAW | MIT License |
mockserver/src/main/java/org/fnives/test/showcase/network/mockserver/scenario/general/NotFoundRequestScenario.kt | fknives | 356,982,481 | false | null | package org.fnives.test.showcase.network.mockserver.scenario.general
import okhttp3.mockwebserver.MockResponse
import okhttp3.mockwebserver.RecordedRequest
import org.fnives.test.showcase.network.mockserver.scenario.RequestScenario
internal object NotFoundRequestScenario : RequestScenario {
override fun getRespon... | 9 | Kotlin | 2 | 5 | 5bf503d90e8a13daf5626afc0cdf8bff523d2b94 | 432 | AndroidTest-ShowCase | Apache License 2.0 |
app/src/main/java/com/aditya/googledeveloperscommunityvisualisationtool/roomdatabase/notificationRoom/NotifyViewModelFactory.kt | soCallmeAdityaKumar | 647,671,779 | false | {"Kotlin": 441339} | package com.aditya.googledeveloperscommunityvisualisationtool.roomdatabase.notificationRoom
import android.content.Context
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.viewmodel.ViewModelFactoryDsl
class NotifyViewModelFactory(val context: Context):ViewMode... | 0 | Kotlin | 1 | 6 | 21eabc0cd5a5041f79cfb78bfe4c20d6ffeaaf80 | 453 | Google-Developers-Community-Visualization-Tool | MIT License |
src/main/kotlin/org/opensearch/commons/notifications/action/NotificationsActions.kt | opensearch-project | 354,136,133 | false | null | /*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
package org.opensearch.commons.notifications.action
import org.opensearch.action.ActionType
/**
* All the transport action information for the Notification plugin
*/
object NotificationsActions {
/**
* Create notification co... | 17 | null | 36 | 6 | bccb1bb329517c3c550df9b8fd9df81bbf05e4f1 | 4,008 | common-utils | Apache License 2.0 |
base/src/main/kotlin/browser/chromeosInfoPrivate/StylusStatus.kt | DATL4G | 372,873,797 | false | null | package browser.chromeosInfoPrivate
import kotlin.String
/**
* Status of stylus.
*/
public enum class StylusStatus(
private val `value`: String,
) {
unsupported("unsupported"),
supported("supported"),
seen("seen"),
;
public override fun toString(): String = value
}
| 0 | Kotlin | 1 | 37 | ab2a825dd8dd8eb704278f52c603dbdd898d1875 | 283 | Kromex | Apache License 2.0 |
data_collector/src/main/kotlin/com/sortinghat/backend/data_collector/factories/DockerComposeCollectionComponentsFactory.kt | the-sortinghat | 529,660,037 | false | null | package com.sortinghat.backend.data_collector.factories
import com.sortinghat.backend.data_collector.services.ConverterToDomain
import com.sortinghat.backend.data_collector.services.DockerComposeToDomain
import com.sortinghat.backend.data_collector.services.FetchDataFromRemoteRepository
import com.sortinghat.backend.d... | 0 | Kotlin | 0 | 0 | 95695a1808e477ce67d8257891f4fa9be21f8cce | 1,062 | backend | MIT License |
src/main/kotlin/org/abimon/visi/collections/VCollections.kt | UnderMybrella | 83,109,125 | false | null | package org.abimon.visi.collections
import java.util.*
fun <T, U, V> Map<Pair<T, U>, V>.containsFirstPair(t: T): Boolean = keys.any { pair -> pair.first == t }
fun <T, U, V> Map<Pair<T, U>, V>.getFirstOfPair(t: T): V? {
return get(keys.firstOrNull { pair -> pair.first == t } ?: return null)
}
fun <T, U, V> Map<P... | 0 | Kotlin | 3 | 1 | 7fdb31da497792cc58787940d1321698d8ff410f | 6,015 | Visi | MIT License |
featureflag/src/main/kotlin/no/nav/yrkesskade/featureflag/strategy/NaeringskodeStrategy.kt | navikt | 461,907,640 | false | null | package no.nav.yrkesskade.featureflag.strategy
import no.finn.unleash.UnleashContext
import no.finn.unleash.strategy.Strategy
class NaeringskodeStrategy(private val context : UnleashContext) : Strategy {
override fun getName(): String = "byNaeringskoder"
override fun isEnabled(parameters: MutableMap<String, ... | 1 | Kotlin | 0 | 0 | 12cacc14f94d84b0a39dcc69a7e08c1af4877004 | 903 | yrkesskade-backend-felles | MIT License |
Plugin/plugin-repo/src/main/java/com/kronos/plugin/repo/model/IncludeModuleInfo.kt | Leifzhang | 283,129,368 | false | null | package com.kronos.plugin.repo.model
import com.kronos.plugin.repo.RepoLogger
import com.kronos.plugin.repo.utils.GitUtil
import java.io.File
import java.lang.RuntimeException
/**
*
* @Author LiABao
* @Since 2021/9/8
*
*/
open class IncludeModuleInfo(
val name: String,
private val origin: String,
v... | 1 | Kotlin | 7 | 91 | 0308a0cf0366f2754526f4f07922006ebfb27488 | 3,316 | GradleTask | Apache License 2.0 |
CommonUI/src/main/java/com/drivequant/drivekit/common/ui/component/GaugeConfiguration.kt | DriveQuantPublic | 216,339,559 | false | null | package com.drivequant.drivekit.common.ui.component
import android.content.Context
import android.graphics.Color
import android.graphics.Typeface
import android.text.Spannable
import com.drivequant.drivekit.common.ui.DriveKitUI
import com.drivequant.drivekit.common.ui.R
import com.drivequant.drivekit.common.ui.extensi... | 0 | Kotlin | 2 | 6 | 939465ac7264a9d35f53795c0a4c0a77205844eb | 3,105 | drivekit-ui-android | Apache License 2.0 |
src/main/kotlin/coroutine/demo/image/Images.kt | woniu0936 | 595,697,492 | false | null | package coroutine.demo.image
import java.awt.image.BufferedImage
import java.io.File
import javax.imageio.ImageIO
fun Image.flipHorizontal(): Image {
val height = height()
val width = width()
val pixels = Array(width) { x ->
Array(height) { y ->
getPixel(width - 1 - x, y)
}
... | 0 | Kotlin | 0 | 0 | ab7a9ced644faebf7273c10289f3e8b1c35acd10 | 1,201 | KotlinDemo | MIT License |
src/main/kotlin/P005_SmalllestMultiple.kt | perihanmirkelam | 291,833,878 | false | null | /**
* P5-Smallest Multiple
* 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.
* What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?
*/
fun p5() {
var num = 10
var isDivisible = false
while (true) {
... | 0 | Kotlin | 1 | 3 | a24ac440871220c87419bfd5938f80dc22a422b2 | 509 | ProjectEuler | MIT License |
src/main/kotlin/me/branchpanic/mods/stockpile/Stockpile.kt | Waterpicker | 404,747,171 | true | {"Kotlin": 102549, "Java": 1098} | package me.branchpanic.mods.stockpile
import me.branchpanic.mods.stockpile.api.upgrade.UpgradeRegistry
import me.branchpanic.mods.stockpile.api.upgrade.UpgradeType
import me.branchpanic.mods.stockpile.content.block.AttackableBlockCallback
import me.branchpanic.mods.stockpile.content.block.BarrelBlock
import me.branchp... | 0 | null | 0 | 0 | eea85a487ebe3c33566f5244d83e28a5ced3e400 | 4,538 | stockpile | MIT License |
app/src/main/java/com/synrgy/wefly/data/api/json/ContentResponse.kt | WeFly-Team | 738,106,597 | false | {"Kotlin": 106789, "Ruby": 1042} | package com.synrgy.wefly.data.api.json
import com.synrgy.wefly.data.api.json.airport.list.PageAble
data class ContentResponse<T>(
val content: ArrayList<T>,
val pageable: PageAble,
)
| 0 | Kotlin | 1 | 0 | 1324b86a07e2b7bd79189d20d2daefcf971eddfd | 193 | Android | Apache License 2.0 |
src/main/kotlin/org/misarch/catalog/graphql/model/CategoricalCategoryCharacteristic.kt | MiSArch | 730,141,730 | false | {"Kotlin": 137664, "PLpgSQL": 3347, "Shell": 487, "Dockerfile": 219} | package org.misarch.catalog.graphql.model
import com.expediagroup.graphql.generator.annotations.GraphQLDescription
import com.expediagroup.graphql.generator.annotations.GraphQLIgnore
import com.expediagroup.graphql.generator.federation.directives.FieldSet
import com.expediagroup.graphql.generator.federation.directives... | 0 | Kotlin | 0 | 0 | b4e291b77dcb8ff2ffafe638bc6353bbc0e8a1c9 | 2,001 | catalog | MIT License |
src/main/kotlin/de/claudioaltamura/kotlin/examples/Ok.kt | claudioaltamura | 172,023,763 | false | {"Kotlin": 31200} | package de.claudioaltamura.kotlin.examples
fun start(): String = "OK" | 0 | Kotlin | 0 | 0 | 310eb4636233b3568d9439531f605eb857b160d6 | 70 | kotlin-examples | MIT License |
src/main/kotlin/world/cepi/carbon/whitelist/WhitelistListener.kt | Project-Cepi | 314,618,958 | false | {"Kotlin": 28485} | package world.cepi.carbon.whitelist
import net.kyori.adventure.text.Component
import net.kyori.adventure.text.format.NamedTextColor
import net.minestom.server.event.player.PlayerLoginEvent
internal fun whitelistListener(event: PlayerLoginEvent) {
if (WhitelistManager.size() != 0 && !event.player.uuid.whitelisted(... | 2 | Kotlin | 0 | 4 | 5d685acff822993a077f1aa0608884436b9fa74f | 422 | Carbon | MIT License |
app/src/main/java/com/example/studymate/CreateNotesFragment.kt | Dhruv16S | 652,624,701 | false | null | package com.example.studymate
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.content.pm.PackageManager
import android.content.res.Resources
import android.net.Uri
import android.os.Bundle
import android.provider.MediaStor... | 0 | Kotlin | 0 | 1 | 9274faab9cac47376b4eb02cf50d64f75d7070b3 | 18,877 | StudyMate | MIT License |
src/test/kotlin/io/github/jokoroukwu/zephyrapi/testcyclefilter/OutOfBoundsStepFilterTest.kt | jokoroukwu | 471,393,179 | false | null | package io.github.jokoroukwu.zephyrapi.testcyclefilter
import io.github.jokoroukwu.zephyrapi.publication.TestDataResult
import io.github.jokoroukwu.zephyrapi.publication.ZephyrTestResult
import io.github.jokoroukwu.zephyrapi.publication.keytoitemmapcomplementor.TestCaseItem
import io.github.jokoroukwu.zephyrapi.public... | 0 | Kotlin | 0 | 0 | c720fae44211a321384652ee6efd88cfd5dae877 | 5,239 | zephyr-api | Apache License 2.0 |
src/main/kotlin/com/coder/gateway/sdk/ex/APIResponseException.kt | coder | 490,848,198 | false | {"Kotlin": 373297} | package com.coder.gateway.sdk.ex
import java.io.IOException
import java.net.HttpURLConnection
import java.net.URL
class APIResponseException(action: String, url: URL, res: retrofit2.Response<*>) :
IOException(
"Unable to $action: url=$url, code=${res.code()}, details=${
res.errorBody()?.charSt... | 53 | Kotlin | 12 | 25 | 652fc04a1ce64c55e2e48e6794ebe6a56b0ee783 | 491 | jetbrains-coder | MIT License |
RopeWaysAPI/src/main/kotlin/ru/ropeways/api/controller/WeatherController.kt | AlFilippov | 514,555,720 | false | null | package ru.ropeways.api.controller
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestParam
import org.springframework.web.bind.annotation.RestController
import ru.ropeways.api.client.dto.Language... | 0 | Kotlin | 0 | 1 | b8587bef3897931289bc003f15ecf472c30a7fc4 | 1,522 | RopeWaysBackend | Apache License 2.0 |
src/main/kotlin/model/Common.kt | Akira-Taniguchi | 189,127,591 | false | null | package model
import com.amazonaws.auth.AWSStaticCredentialsProvider
import com.amazonaws.auth.BasicAWSCredentials
import com.amazonaws.client.builder.AwsClientBuilder
import com.amazonaws.services.dynamodbv2.AmazonDynamoDB
import com.amazonaws.services.dynamodbv2.AmazonDynamoDBClientBuilder
import com.amazonaws.servi... | 0 | Kotlin | 0 | 0 | 74400c1f1042baefca3c62551de859a19a649b4c | 2,530 | dynamodb-kotlin | MIT License |
common/src/commonMain/kotlin/com/demo/ui/utils/chat/ArrowBackiOS.kt | CoronelGlober | 529,032,277 | false | {"Kotlin": 188877, "Swift": 932, "Ruby": 271} | package com.demo.ui.utils.chat
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.materialIcon
import androidx.compose.material.icons.materialPath
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.vector.ImageVector
public val Icons.Filled.IosArrow: ... | 0 | Kotlin | 6 | 28 | e7132da8475544a15b0288c64cdad8999c8747fa | 1,032 | demo-compose-multiplatform | MIT License |
map/src/main/kotlin/de/darkatra/bfme2/map/reader/AssetListReader.kt | DarkAtra | 325,887,805 | false | null | package de.darkatra.bfme2.map.reader
import de.darkatra.bfme2.map.AssetListItem
import de.darkatra.bfme2.map.AssetName
import de.darkatra.bfme2.map.MapFile
import de.darkatra.bfme2.readUInt
import org.apache.commons.io.input.CountingInputStream
class AssetListReader : AssetReader {
override fun read(reader: Countin... | 1 | Kotlin | 0 | 1 | 08704593bf7dd19a81598d7ed9442255e05b96e4 | 911 | bfme2-modding-utils | MIT License |
app/src/main/java/fr/gilles/riceattend/ui/screens/pages/details/Worker.kt | Gilles-kpn | 498,005,092 | false | {"Kotlin": 442751} | package fr.gilles.riceattend.ui.screens.pages.details
import android.os.Build
import androidx.annotation.RequiresApi
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
i... | 0 | Kotlin | 0 | 1 | b75abaf8d21014bdfe79a2ab8db82bcb1f561bf8 | 10,182 | RiceAttend-Mobile | MIT License |
uicorek/src/main/java/com/mozhimen/uicorek/datak/DataKRecyclerView.kt | mozhimen | 353,952,154 | false | null | package com.mozhimen.uicorek.datak
import android.content.Context
import android.util.AttributeSet
import android.view.GestureDetector
import android.view.LayoutInflater
import android.view.MotionEvent
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import com.mozhimen.basick.utilk.UtilKView
... | 0 | Kotlin | 0 | 1 | 3dd109aff154bff96379cde86e6e4632967cca40 | 6,690 | SwiftMK | Apache License 2.0 |
app/src/main/java/project/penadidik/geocoding/util/Helper.kt | penadidik | 562,671,216 | false | null | package project.penadidik.geocoding.util
import android.content.Context
import android.net.ConnectivityManager
object Helper {
const val KEY_LAT = "lat"
const val KEY_LON = "lon"
const val KEY_STATE = "state"
const val KEY_COUNTRY = "country"
fun isNetworkAvailable(context: Context):Boolean {
... | 0 | Kotlin | 0 | 0 | 48896b285bc1e7fbe73221b5140008a46ae1ee74 | 548 | Geocoding | Apache License 2.0 |
src/main/kotlin/com/sstep/recipe/manager/controller/ImageController.kt | mainmeatball | 372,236,420 | false | null | package com.sstep.recipe.manager.controller
import com.sstep.recipe.manager.service.FileService
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.beans.factory.annotation.Qualifier
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annot... | 0 | Kotlin | 0 | 0 | b84abc68cb2609eeb4b0984b5703974723089255 | 1,487 | recipe-organizer | MIT License |
app/src/main/java/com/example/mykotlinapp/model/entity/chat/ChatParticipant.kt | vbounyasit | 522,266,559 | false | {"Kotlin": 507212} | package com.example.mykotlinapp.model.entity.chat
import androidx.room.ColumnInfo
import androidx.room.Entity
@Entity(
tableName = "chat_participants",
primaryKeys = ["participant_remote_id", "participant_chat_remote_id"]
)
data class ChatParticipant(
@ColumnInfo(name = "participant_remote_id")
val re... | 0 | Kotlin | 0 | 1 | a9812a061f9214b44ba326b77afe335a003cc22e | 861 | MyAndroidApp | Apache License 2.0 |
app/src/main/java/com/example/togutravelapp/viewmodel/ViewModelFactory.kt | Fortissible | 492,488,387 | false | {"Kotlin": 123600} | package com.example.togutravelapp.viewmodel
import android.content.Context
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.example.togutravelapp.data.repository.UserRepository
import com.example.togutravelapp.di.Injection
@Suppress("UNCHECKED_CAST")
class ViewModelFactory pr... | 0 | Kotlin | 1 | 1 | c5dd952bd56c7e8ec2764af5215ccd54b30828c3 | 1,377 | ToguTravelApp | MIT License |
app/src/main/java/ru/mobile/lukslol/service/db/dao/SummonerDao.kt | silverxcoins | 260,674,124 | false | {"Kotlin": 73778} | package ru.mobile.lukslol.service.db.dao
import androidx.room.*
import ru.mobile.lukslol.service.db.entity.DbSummoner
@Dao
interface SummonerDao {
@Query("SELECT * FROM DbSummoner WHERE id = :id")
fun getById(id: String): DbSummoner?
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun insert(summone... | 0 | Kotlin | 0 | 1 | bdedaf16c62777f413e56d0d3a0b1336d1966d98 | 336 | LukS-LoL-Tracker | Apache License 2.0 |
app/src/main/kotlin/com/absurddevs/vespera/navigation/TopLevelDestination.kt | s0nance | 726,207,846 | false | {"Kotlin": 83136} | package com.absurddevs.vespera.navigation
import androidx.annotation.StringRes
import androidx.compose.material3.adaptive.navigationsuite.NavigationSuiteType
import androidx.compose.ui.graphics.vector.ImageVector
import com.absurddevs.vespera.NavGraph
import com.absurddevs.vespera.NavGraphs
import com.absurddevs.vespe... | 0 | Kotlin | 0 | 0 | 5d5ee19ac8771927852d5e285925ec64553ff877 | 1,968 | vespera | MIT License |
src/main/kotlin/com/github/gabrielshanahan/phpkt/expressions/assignables/SimpleVariable.kt | gabrielshanahan | 226,652,392 | false | null | package com.github.gabrielshanahan.phpkt.expressions.assignables
/**
* A PHP variable with the name [name], such as $a.
*
* See [Assignable] for all the logic.
*
* @param name The name of the variable.
*/
class SimpleVariable(val name: String) : Assignable(name)
/**
* Helper function to convert Kotlin strings ... | 0 | Kotlin | 0 | 0 | 132f9ef6a517646f1ea1272af8a3066c4c147785 | 394 | PhpKt | MIT License |
app/src/main/java/com/annas/playground/data/domain/model/DataState.kt | annasta13 | 826,067,757 | false | {"Kotlin": 230187} | package com.annas.playground.data.domain.model
/**
* This is the class wrapper to be used in UI layer. This class has four states:
* - [Idle]
* - [Success]
* - [Loading]
* - [Error]
* */
sealed class DataState<out T> {
/**State of success containing [data]*/
data class Success<T>(val data: T) : DataStat... | 0 | Kotlin | 0 | 1 | a8fa4467421d9c40ff9945c07b60f3108120cd9b | 2,200 | playground | Apache License 2.0 |
common/common_presentation/src/main/java/com/serj113/common/presentation/adapter/ItemViewAdapter.kt | serj113 | 260,604,628 | false | null | package com.serj113.common.presentation.adapter
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import androidx.viewbinding.ViewBinding
import com.serj113.common.presentation.adapter.bindable.BindingCreator
import com.serj113.common.presentation.adapter.bindable.ItemView
class ItemViewA... | 0 | Kotlin | 0 | 4 | 394a1cbc279cb26a7e2e17716a009274d1c964c3 | 1,684 | Imagine-Movies | Apache License 2.0 |
src/main/kotlin/turniplabs/projectiles/item/ItemArrowExplosive.kt | Turnip-Labs | 634,616,845 | false | null | package turniplabs.projectiles.item
import net.minecraft.client.Minecraft
import turniplabs.projectiles.entity.EntityArrowExplosive
class ItemArrowExplosive(i: Int): ItemElementalArrow(i) {
override fun shootArrow() {
val world = Minecraft.getMinecraft().theWorld
val player = Minecraft.getMinecra... | 0 | Kotlin | 0 | 0 | 561b3dec4f29b6893ef962b84f3ee167a1d1c55d | 553 | elemental-projectiles | Creative Commons Zero v1.0 Universal |
numeriko-core/src/main/kotlin/tomasvolker/numeriko/core/interfaces/array0d/generic/MutableArray0D.kt | fmgonsalves | 160,878,513 | true | {"Kotlin": 534380} | package tomasvolker.numeriko.core.interfaces.array0d.generic
import tomasvolker.numeriko.core.interfaces.arraynd.generic.MutableArrayND
interface MutableArray0D<T>: Array0D<T>, MutableArrayND<T> {
override fun setValue(value: T, vararg indices: Int) {
requireValidIndices(indices)
return setValue(... | 0 | Kotlin | 0 | 0 | a353cc233a426332b6c7a2b4385c9fbc5686574a | 726 | numeriko | Apache License 2.0 |
shared/record/recordDSImpl/src/uikitMain/kotlin/dmitry/molchanov/recorddsimpl/RecordSettings.kt | MolchanovDmitry | 548,285,365 | false | {"Kotlin": 107173, "HTML": 334} | package dmitry.molchanov.recorddsimpl
import com.russhwolf.settings.NSUserDefaultsSettings
import com.russhwolf.settings.coroutines.SuspendSettings
import com.russhwolf.settings.coroutines.toSuspendSettings
import kotlinx.coroutines.CoroutineDispatcher
import platform.Foundation.NSUserDefaults
actual class RecordSett... | 0 | Kotlin | 0 | 0 | dee62070a223c64236ea397a48fa11b469dc585e | 504 | SnakeKmp | Apache License 2.0 |
app/src/main/java/com/example/game_app/ui/game/dialogs/lobby/LobbyAdapter.kt | Gotalicp | 704,093,487 | false | {"Kotlin": 181720} | package com.example.game_app.ui.game.dialogs.lobby
import android.annotation.SuppressLint
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import com.example.game_app.R
import com.example.game_app.ui.common.RecycleViewAdapter
import com.example.game_app.ui.common.ItemClickListene... | 0 | Kotlin | 0 | 0 | cf996282fcb73d6011417e19e39505bfa352a71f | 1,160 | game-app | MIT License |
platform/projectModel-api/src/com/intellij/workspaceModel/ide/GlobalWorkspaceModelCache.kt | allotria | 37,974,385 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.workspaceModel.ide
import com.intellij.openapi.application.ApplicationManager
import com.intellij.workspaceModel.storage.EntityStorage
import org.jetbrains.annotations.ApiStatus... | 1 | null | 1 | 1 | 9b9e3972a437d1a08fc73370fb09b9f45527dd2a | 704 | intellij-community | Apache License 2.0 |
authorization-server/src/main/kotlin/io/github/xsmirnovx/oauth2/server/adapters/database/converter/StringListToStringConverter.kt | xsmirnovx | 446,996,762 | false | null | package io.github.xsmirnovx.oauth2.server.adapters.database.converter
import java.util.*
import javax.persistence.AttributeConverter
import javax.persistence.Converter
@Converter
class StringListToStringConverter : AttributeConverter<Set<String>?, String> {
// TODO: refactor without optional
override fun con... | 4 | Kotlin | 1 | 0 | 44e6cee2e978132938857c497342d78648fcef77 | 886 | spring-authorization-server-demo | Apache License 2.0 |
app/src/main/java/com/bossed/waej/eventbus/EBOpenFinish.kt | Ltow | 710,230,789 | false | {"Kotlin": 2304560, "Java": 395495, "HTML": 71364} | package com.bossed.waej.eventbus
data class EBOpenFinish(var isFinish: Boolean)
| 0 | Kotlin | 0 | 0 | 8c2e9928f6c47484bec7a5beca32ed4b10200f9c | 81 | wananexiu | Mulan Permissive Software License, Version 2 |
wanandroid/app/src/main/kotlin/com/buyehou/wanandroid/model/Pager.kt | chenglongsheng | 568,287,738 | false | {"Kotlin": 35200, "AIDL": 425} | package com.buyehou.wanandroid.model
/**
* @author Rosen
*/
data class Pager<T>(
val curPage: Int,
val datas: List<T>?,
val offset: Int,
val over: Boolean,
val pageCount: Int,
val size: Int,
val total: Int
) | 0 | Kotlin | 0 | 1 | dd99b5ba3e19a72054bc782a12c88903385bbd05 | 238 | AndroidDemo | MIT License |
src/main/kotlin/com/github/vove7/retrofitrestclient2/services/MyApplicationService.kt | Vove7 | 211,596,099 | false | null | package com.github.vove7.retrofitrestclient2.services
import com.github.vove7.retrofitrestclient2.MyBundle
class MyApplicationService {
init {
println(MyBundle.message("applicationService"))
}
}
| 2 | Kotlin | 6 | 50 | d8650bef5eede23f7e9197af1c5db961e3a89f73 | 214 | retrofit-rest-client | Apache License 2.0 |
src/main/kotlin/com/lykke/matching/engine/services/validators/input/impl/CashSwapOperationInputValidatorImpl.kt | MyJetWallet | 334,417,928 | true | {"Kotlin": 1903525, "Java": 39278} | package com.lykke.matching.engine.services.validators.input.impl
import com.lykke.matching.engine.holders.ApplicationSettingsHolder
import com.lykke.matching.engine.incoming.parsers.data.CashSwapParsedData
import com.lykke.matching.engine.messages.wrappers.CashSwapOperationMessageWrapper
import com.lykke.matching.engi... | 0 | Kotlin | 1 | 0 | fad1a43743bd7b833bfa4f1490da5e5350b992ff | 4,247 | MatchingEngine | MIT License |
ui/src/main/java/com/pyamsoft/pydroid/ui/internal/billing/listitem/BillingItemContent.kt | semihcebrail | 392,469,502 | true | {"Kotlin": 589018} | /*
* Copyright 2020 Peter Kenji Yamanaka
*
* 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 a... | 0 | null | 0 | 0 | b24ac81ec106add94f29bf894cf02c31aa2c66df | 1,636 | pydroid | Apache License 2.0 |
app/src/main/java/com/ready/lolchamps/repository/DetailRepository.kt | KimReady | 396,788,559 | false | null | package com.ready.lolchamps.repository
import com.ready.lolchamps.model.ChampionInfo
import com.ready.lolchamps.ui.base.UiState
import kotlinx.coroutines.flow.Flow
interface DetailRepository {
fun getChampionInfo(championId: String): Flow<UiState<ChampionInfo>>
} | 0 | Kotlin | 3 | 72 | 3d26627077bc04625ac149b5cd2cc3150f173a25 | 269 | LOL-Champs | Apache License 2.0 |
app/src/main/java/com/example/archcomp/ui/ProductsFragment.kt | richardhdezf | 471,168,398 | false | {"Kotlin": 23414} | package com.example.archcomp.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import com.example.archcomp.MainApplication
import com.example.archcomp.data.Product
import co... | 0 | Kotlin | 0 | 0 | e1dd0aae378c6ec984053628a73ae4b832e46c8b | 1,688 | android-architecture-components | Apache License 2.0 |
lib/src/main/java/com/github/eklipse2k8/charting/data/parceler/DrawableParceler.kt | eklipse2k8 | 403,391,938 | true | {"Kotlin": 945921, "Java": 57298} | package com.github.eklipse2k8.charting.data.parceler
import android.graphics.Bitmap
import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.Drawable
import android.os.Parcel
import kotlinx.parcelize.Parceler
object DrawableParceler : Parceler<Drawable?> {
override fun create(parcel: Parcel)... | 0 | Kotlin | 0 | 0 | 29d416f36d7fd1b6af13082c2ef6b7d6abe0cab8 | 593 | ComposeChart | Apache License 2.0 |
app/src/main/java/com/bu/selfstudy/ui/mark/MarkFragment.kt | a0979470582 | 345,524,123 | false | null | package com.bu.selfstudy.ui.mark
import android.content.Context
import android.graphics.drawable.StateListDrawable
import androidx.appcompat.view.ActionMode
import android.os.Bundle
import android.view.*
import androidx.activity.addCallback
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.isVi... | 0 | null | 1 | 2 | 5c22ddd02c04eb58c4606f3b16ef5900466cba16 | 10,870 | SelfStudy | Apache License 2.0 |
base-amigobox/src/main/kotlin/org/ossiaustria/amigobox/ui/loading/LoginCleanupDaoService.kt | ossi-austria | 430,606,582 | false | {"Kotlin": 456155, "HTML": 2066, "Dockerfile": 441} | package org.ossiaustria.amigobox.ui.loading
import org.ossiaustria.lib.domain.database.AlbumDao
import org.ossiaustria.lib.domain.database.AlbumShareDao
import org.ossiaustria.lib.domain.database.CallDao
import org.ossiaustria.lib.domain.database.GroupDao
import org.ossiaustria.lib.domain.database.MessageDao
import or... | 0 | Kotlin | 0 | 1 | 8d8b167555d62e6ceb58a20efe9d6ee0c609b199 | 1,287 | amigo-box | MIT License |
src/test/kotlin/com/bardsoftware/sqool/codegen/MatcherSpecTest.kt | dbarashev | 537,530,039 | false | {"Kotlin": 288225, "PLpgSQL": 80531, "TypeScript": 62308, "Vue": 57792, "FreeMarker": 21105, "Shell": 1979, "JavaScript": 1865, "HTML": 1573, "Dockerfile": 124} | /*
* Copyright (c) BarD Software s.r.o 2019
*
* This file is a part of SQooL, a service for running SQL contests.
*
* 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.... | 0 | Kotlin | 0 | 0 | 464c049de3ad44e925d2372f5677e0054155e734 | 4,558 | sqool | Apache License 2.0 |
app/src/main/java/juanocampo/test/memoryflipgame/presentation/entities/GameCardViewType.kt | ingjuanocampo | 242,367,721 | false | null | package juanocampo.test.memoryflipgame.presentation.entities
import juanocampo.test.memoryflipgame.R
import juanocampo.test.memoryflipgame.view.base.delegate.RecyclerViewType
data class GameCardViewType(val id: String, private val imageRes: Int, var isRevealed: Boolean, val index: Int): RecyclerViewType {
fun ge... | 0 | Kotlin | 0 | 1 | 78c9719864ea1b78ee9d43b904d2694f9f683133 | 796 | MemoryCardsGame | Apache License 2.0 |
src/main/kotlin/aosp/working/diffextractor/JGitUtil.kt | AOSPworking | 479,370,855 | false | null | package aosp.working.diffextractor
import com.github.gumtreediff.tree.Tree
import org.eclipse.jdt.core.dom.CompilationUnit
import org.eclipse.jgit.diff.DiffEntry
import org.eclipse.jgit.diff.DiffFormatter
import org.eclipse.jgit.lib.*
import org.eclipse.jgit.revwalk.RevCommit
import org.eclipse.jgit.treewalk.Canonical... | 0 | Kotlin | 0 | 0 | 012e587f162b810356f5579b1e3ac96823336a1e | 4,506 | diff_extractor | MIT License |
data/src/main/kotlin/team/duckie/app/android/data/quiz/model/GetQuizResponse.kt | duckie-team | 503,869,663 | false | {"Kotlin": 1819917} | /*
* Designed and developed by Duckie Team, 2022
*
* Licensed under the MIT.
* Please see full license: https://github.com/duckie-team/duckie-android/blob/develop/LICENSE
*/
package team.duckie.app.android.data.quiz.model
import com.fasterxml.jackson.annotation.JsonProperty
import team.duckie.app.android.data.ch... | 32 | Kotlin | 1 | 8 | 5dbd5b7a42c621931d05a96e66431f67a3a50762 | 2,159 | duckie-android | MIT License |
compiler/testData/moduleProtoBuf/jvmPackageNameMultifileClass/K2_A.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
@file:JvmPackageName("j2")
@file:JvmName("K2")
@file:JvmMultifileClass
package k2
fun f1() {}
| 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 153 | kotlin | Apache License 2.0 |
src/test/kotlin/tests2023/Day004Test.kt | teodor-vasile | 573,434,400 | false | {"Kotlin": 37611} | package tests2023
import main.kotlin2023.Day004
import org.junit.Test
import org.junit.jupiter.api.Assertions.assertEquals
import readInputLines
internal class Day004Test {
private val day004 = Day004()
@Test
fun day05part1() {
val testInput = readInputLines("Day04_2023_Part1")
assertEqu... | 0 | Kotlin | 0 | 0 | 4307622877f4b93050de653ce325fecc5d26405a | 518 | aoc-2022-kotlin | Apache License 2.0 |
reflekt-plugin/src/test/resources/org/jetbrains/reflekt/plugin/analysis/data/objects3_test/project/test/Main.kt | JetBrains-Research | 293,503,377 | false | {"Kotlin": 397259, "Java": 35379} | package org.jetbrains.reflekt.test
import org.jetbrains.reflekt.Reflekt
fun main() {
val objects = Reflekt.objects().withSuperTypes(A1::class)
val objects1 = Reflekt.objects().withSuperType<A1>()
}
| 13 | Kotlin | 9 | 325 | ae53618880e5eb610ddeb2792d63208eade951a8 | 208 | reflekt | Apache License 2.0 |
app/src/main/java/com/adaldosso/spendykt/persistence/UsersDatabase.kt | daldosso | 75,467,676 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "XML": 135, "JSON": 1, "Proguard": 1, "Java": 15, "Kotlin": 23} | package com.adaldosso.spendykt.persistence
import android.arch.persistence.room.Database
import android.arch.persistence.room.Room
import android.arch.persistence.room.RoomDatabase
import android.content.Context
/**
* The Room database that contains the Users table
*/
@Database(entities = [User::class], version = 2... | 1 | null | 1 | 1 | c4caeb372ddb98a21b04bf5cee3852062d544c0e | 1,045 | SpendyKt | MIT License |
compound-library/src/main/java/com/lockwood/compound/delegate/CompoundArrayPositionDelegate.kt | imbeerus | 244,343,356 | false | {"Kotlin": 71189} | package com.lockwood.compound.delegate
import kotlin.properties.ReadWriteProperty
import kotlin.reflect.KProperty
/**
* Property that store drawable related value in [array] at specific [position]
*
* @param T type of stored value
* @param array to store values
* @param position of value (drawable)
*/
internal ... | 0 | Kotlin | 3 | 8 | 62cd86e16a3c29b44ca0a1739ba683bedf2177e1 | 964 | compound-text-view | Apache License 2.0 |
product/progress/progress-ui/src/main/java/com/yugyd/quiz/progressui/model/DegreeUiMapper.kt | Yugyd | 685,349,849 | false | {"Kotlin": 873471, "FreeMarker": 22968, "Fluent": 18} | /*
* Copyright 2023 <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 ... | 0 | Kotlin | 1 | 8 | 0192d1ccabe96b7ac9f9a844259cca7a018aa6b5 | 1,727 | quiz-platform | Apache License 2.0 |
plot-builder-portable/src/commonMain/kotlin/jetbrains/datalore/plot/builder/presentation/LabelSpec.kt | JetBrains | 176,771,727 | false | null | /*
* Copyright (c) 2019. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package jetbrains.datalore.plot.builder.presentation
import jetbrains.datalore.base.geometry.DoubleVector
import jetbrains.datalore.base.values.Font
interface LabelSpec {
... | 97 | Kotlin | 47 | 889 | c5c66ceddc839bec79b041c06677a6ad5f54e416 | 460 | lets-plot | MIT License |
suspender/src/main/java/suspender/compiler/builder/BindingManager.kt | josesamuel | 244,080,076 | false | {"Gradle": 6, "YAML": 1, "Markdown": 2, "INI": 3, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Text": 1, "Java": 3, "Kotlin": 11, "HTML": 1, "Java Properties": 1} | package suspender.compiler.builder
import java.io.File
import javax.annotation.processing.Messager
import javax.annotation.processing.ProcessingEnvironment
import javax.lang.model.element.Element
import javax.lang.model.type.TypeMirror
import javax.lang.model.util.Elements
/**
* Manages kotlin file generation
*/
o... | 1 | null | 1 | 1 | 12ecdaa2830b1211f4e839b2ef9a56c7ad7f6dd9 | 2,784 | Suspender | Apache License 2.0 |
Kotlin/four/src/main/kotlin/com/nlw/four/domain/exception/BusinessException.kt | brunoredes | 341,719,792 | false | {"TypeScript": 14215, "Kotlin": 10441} | package com.nlw.four.domain.exception
open class BusinessException(message:String): RuntimeException(message) {
companion object {
private const val serialVersionUID = 1L
}
} | 0 | TypeScript | 0 | 1 | 15127f00e24271ba9a81038c60b1f4e7528d1cd0 | 191 | next-level-week-4 | MIT License |
app/src/main/java/pl/kamilszustak/justfit/domain/usecase/product/GetProductByIdUseCaseImpl.kt | swistak7171 | 248,487,099 | false | null | package pl.kamilszustak.justfit.domain.usecase.product
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.map
import pl.kamilszustak.justfit.common.data.Resource
import pl.kamilszustak.justfit.data.repository.ProductRepository
import pl.kamilszustak.justfit.domain.mapper.product.ProductEntityMapper
imp... | 0 | Kotlin | 0 | 1 | e1b584010dd7edeaa41c7d432fb398f05a2f5dea | 936 | JustFit | Apache License 2.0 |
application/app/src/main/java/com/aaronfodor/android/songquiz/model/repository/PlaylistsRepository.kt | androiddevnotesforks | 388,546,486 | false | {"Kotlin": 441326} | package com.aaronfodor.android.songquiz.model.repository
import com.aaronfodor.android.songquiz.model.AccountService
import com.aaronfodor.android.songquiz.model.AccountState
import com.aaronfodor.android.songquiz.model.TimeService
import com.aaronfodor.android.songquiz.model.api.SpotifyApiService
import com.aaronfodo... | 0 | Kotlin | 0 | 0 | de3f64b8a07f24ae1984a587e7df79704078df11 | 6,572 | SongQuiz | Apache License 2.0 |
app/src/main/java/com/yz/books/ui/video/VideoBooksModel.kt | zhangkari | 303,389,564 | false | {"Java": 1652876, "JavaScript": 556976, "Kotlin": 490955, "HTML": 134175, "CSS": 47226} | package com.yz.books.ui.video
import androidx.collection.ArrayMap
import com.yz.books.base.viewmodel.ErrorState
import com.yz.books.base.viewmodel.LoadedState
import com.yz.books.base.viewmodel.LoadingState
import com.yz.books.base.viewmodel.State
import com.yz.books.common.Constant
import com.yz.books.db.DaoHelper
im... | 0 | Java | 2 | 1 | 90784936a9ec75e702120941fbfac6f1b40b93d5 | 2,868 | yzlauncher | Apache License 2.0 |
domain/src/main/kotlin/com/seanshubin/kotlin/tryme/domain/beam/TreeAssembler.kt | SeanShubin | 129,466,612 | false | null | package com.seanshubin.kotlin.tryme.domain.beam
interface TreeAssembler {
val name:String
fun assemble(assemblerMap: Map<String, TreeAssembler>, tree: Tree<Byte>): Any?
}
| 1 | null | 1 | 1 | 1803f204372d994130167749c22f825c51c6a434 | 180 | kotlin-tryme | The Unlicense |
dccomics/src/main/java/com/cubidevs/dccomics/ui/list/SuperHeroesAdapter.kt | Team-111-MisionTic | 426,814,942 | false | {"Kotlin": 36927} | package com.cubidevs.dccomics.ui.list
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.RatingBar
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.cubidevs.dcc... | 0 | Kotlin | 1 | 1 | 5966f252450af93ef4499d182a8952f4f9aa9848 | 2,721 | Team-111 | MIT License |
src/main/kotlin/aoc/year2022/Day08.kt | SackCastellon | 573,157,155 | false | {"Kotlin": 62581} | package aoc.year2022
import aoc.Puzzle
private typealias Tree = Pair<Int, Int>
/**
* [Day 8 - Advent of Code 2022](https://adventofcode.com/2022/day/8)
*/
object Day08 : Puzzle<Int, Int> {
override fun solvePartOne(input: String): Int {
val grid = input.lines().map { it.map(Char::digitToInt) }
... | 0 | Kotlin | 0 | 0 | 75b0430f14d62bb99c7251a642db61f3c6874a9e | 1,815 | advent-of-code | Apache License 2.0 |
ktfx-layouts/src/test/kotlin/javafx/scene/control/TabPaneTest.kt | hanggrian | 102,934,147 | false | {"Kotlin": 1146536, "CSS": 1653} | package ktfx.layouts
import com.hanggrian.ktfx.test.LayoutsStyledTest
import javafx.scene.control.Label
import javafx.scene.control.TabPane
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertIs
class TabPaneTest : LayoutsStyledTest<KtfxPane, TabPane>() {
override fun manager() = Ktfx... | 1 | Kotlin | 2 | 19 | 6e5ec9fedf8359423c31a2ba64cd175bc9864cd2 | 796 | ktfx | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/factory/TeamFactoryDeliusContext.kt | ministryofjustice | 515,276,548 | false | {"Kotlin": 8393388, "Shell": 15748, "Dockerfile": 1667, "Mustache": 383} | package uk.gov.justice.digital.hmpps.approvedpremisesapi.factory
import uk.gov.justice.digital.hmpps.approvedpremisesapi.model.deliuscontext.Borough
import uk.gov.justice.digital.hmpps.approvedpremisesapi.model.deliuscontext.Ldu
import uk.gov.justice.digital.hmpps.approvedpremisesapi.model.deliuscontext.Team
import uk... | 21 | Kotlin | 2 | 5 | 5b02281acd56772dc5d587f8cd4678929a191ac0 | 1,193 | hmpps-approved-premises-api | MIT License |
mui-icons-kotlin/src/jsMain/kotlin/mui/icons/material/KeyboardTabOutlined.kt | karakum-team | 387,062,541 | false | {"Kotlin": 3079611, "TypeScript": 2249, "HTML": 724, "CSS": 86} | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/KeyboardTabOutlined")
package mui.icons.material
@JsName("default")
external val KeyboardTabOutlined: SvgIconComponent
| 0 | Kotlin | 5 | 35 | 60404a8933357df15ecfd8caf6e83258962ca909 | 202 | mui-kotlin | Apache License 2.0 |
src/main/kotlin/trik/testsys/webclient/service/security/impl/UserValidatorImpl.kt | Pupsen-Vupsen | 627,349,038 | false | {"Kotlin": 212742, "HTML": 153787, "CSS": 12506, "JavaScript": 3471, "Dockerfile": 953} | package trik.testsys.webclient.service.security.impl
import com.beust.klaxon.internal.firstNotNullResult
import org.springframework.context.ApplicationContext
import org.springframework.stereotype.Service
import trik.testsys.core.entity.user.AccessToken
import trik.testsys.webclient.entity.user.WebUser
import trik.tes... | 6 | Kotlin | 1 | 0 | 6a8958276fa2860e678f7832905c60e99e3bbccf | 844 | trik-testsys-web-client | Apache License 2.0 |
AndroidCode/app/src/main/java/com/rootusergroup/roofify/data/myAppDataBase.kt | spocasangre | 433,139,517 | false | {"Kotlin": 50619, "JavaScript": 27967, "HTML": 176, "CSS": 111} | package com.rootusergroup.roofify.data
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.rootusergroup.roofify.data.daos.PostDAO
import com.rootusergroup.roofify.data.daos.UserDAO
import com.rootusergroup.roofify.data.entities.Post
impor... | 0 | Kotlin | 0 | 0 | fedb4a58ed46d48187bf5c7f478f5fe7b1a54542 | 1,076 | roofify | The Unlicense |
dsl/common/src/main/kotlin/io/mockk/InternalPlatformDsl.kt | m1aw | 149,691,444 | true | {"Markdown": 7, "Gradle": 20, "YAML": 3, "robots.txt": 1, "INI": 1, "Shell": 2, "Text": 5, "Ignore List": 1, "Batchfile": 1, "XML": 9, "JSON": 1, "JavaScript": 1, "HTML": 3, "SVG": 3, "Java Properties": 2, "Kotlin": 232, "Java": 15, "CMake": 1, "C++": 38, "C": 1, "SCSS": 1} | package io.mockk
import kotlin.coroutines.experimental.Continuation
expect object InternalPlatformDsl {
fun identityHashCode(obj: Any): Int
fun <T> runCoroutine(block: suspend () -> T): T
fun Any?.toStr(): String
fun deepEquals(obj1: Any?, obj2: Any?): Boolean
fun unboxChar(value: Any): Any
... | 0 | Kotlin | 0 | 0 | 5b9937566d9ffa33dfe02c6a44bb9450410d2e35 | 775 | mockk | Apache License 2.0 |
pixel-core/src/commonMain/kotlin/com.chrynan.pixel/ScreenDimensionUnit.kt | chRyNaN | 157,776,400 | false | null | package com.chrynan.pixel
/**
* An interface representing a unit of measure for a Device's screen space, or dimensions. An example of a
* [ScreenDimensionUnit] is [Pixels] which represents an amount of pixels on the Device's screen.
*
* Note that it is possible that multiple [ScreenDimensionUnit]s equal the same v... | 0 | Kotlin | 0 | 3 | 7a4c17f5ce58438280c818911f82584020b432ca | 2,318 | pixel | Apache License 2.0 |
app/src/main/java/com/example/r2devprosproject/ApplicationController.kt | chdsz123 | 491,357,055 | false | null | package com.example.r2devprosproject
import android.app.Application
import timber.log.Timber
import timber.log.Timber.DebugTree
class ApplicationController : Application() {
override fun onCreate() {
super.onCreate()
if (BuildConfig.DEBUG) {
Timber.plant(DebugTree())
}
}
} | 0 | Kotlin | 0 | 0 | f3d153819fc1d3b7bc5da92ab74824cfa9403ca0 | 320 | AndroidProjects | Blue Oak Model License 1.0.0 |
dexfile/src/main/kotlin/com/github/netomi/bat/dexfile/value/EncodedValue.kt | netomi | 265,488,804 | false | null | /*
* Copyright (c) 2020 Thomas Neidhart.
*
* 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 la... | 1 | null | 3 | 10 | 5f5ec931c47dd34f14bd97230a29413ef1cf219c | 6,859 | bat | Apache License 2.0 |
app/src/main/java/com/emrekose/videogames/common/Mapper.kt | emrekose26 | 329,276,392 | false | null | package com.emrekose.videogames.common
interface Mapper<F, T> {
fun mapFrom(from: F): T
} | 0 | Kotlin | 0 | 2 | 9ff281a07df645bf8477f91f6350fed8bc6e8bb9 | 94 | video-games-app | Apache License 2.0 |
rd-kt/rd-gen/src/test/kotlin/testModels/testSubpackage/FooRoot.kt | JetBrains | 107,686,809 | false | {"C#": 1845849, "Kotlin": 1606295, "C++": 1087156, "CMake": 45400, "Batchfile": 8969, "C": 688, "Shell": 672, "Dockerfile": 152} | package testModels.testSubpackage
import com.jetbrains.rd.generator.nova.FlowTransform
import com.jetbrains.rd.generator.nova.Root
import com.jetbrains.rd.generator.nova.kotlin.Kotlin11Generator
import com.jetbrains.rd.generator.test.cases.generator.ModelPackageSearchTests
import java.io.File
object FooRoot : Root(
... | 36 | C# | 53 | 384 | e25603699e1751abfe1beeeec77c89db9d3fda80 | 432 | rd | Apache License 2.0 |
app/src/main/java/dev/oumiya/app/demo/sensor/component/ItemList.kt | ykws | 707,805,490 | false | {"Kotlin": 10944} | package dev.oumiya.app.demo.sensor.component
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import android.hardware.SensorManager
import androidx.compose.animation.core.LinearEasing
import androidx.compose.animation.core.tween
import androidx.compose.foun... | 1 | Kotlin | 0 | 0 | 30ae3a5c3fcae0aede25e3d7178fd83727240111 | 4,180 | motion-scroll-android | MIT License |
vk-api/src/main/kotlin/name/alatushkin/api/vk/generated/video/methods/VideoReportCommentMethod.kt | alatushkin | 156,866,851 | false | null | package name.alatushkin.api.vk.generated.video.methods
import com.fasterxml.jackson.core.type.TypeReference
import name.alatushkin.api.vk.VkMethod
import name.alatushkin.api.vk.api.VkSuccess
import name.alatushkin.api.vk.generated.common.Reason
/**
* Reports (submits a complaint about) a comment on a video.
*
* ... | 2 | Kotlin | 3 | 10 | 123bd61b24be70f9bbf044328b98a3901523cb1b | 1,640 | kotlin-vk-api | MIT License |
src/main/kotlin/no/nav/klage/service/KlageService.kt | navikt | 253,461,869 | false | {"Kotlin": 271504, "Dockerfile": 133} | package no.nav.klage.service
import no.nav.klage.clients.FileClient
import no.nav.klage.common.KlageAnkeMetrics
import no.nav.klage.common.VedleggMetrics
import no.nav.klage.controller.view.OpenKlageInput
import no.nav.klage.domain.Bruker
import no.nav.klage.domain.KlageAnkeStatus
import no.nav.klage.domain.LanguageEn... | 1 | Kotlin | 1 | 0 | 88ee93d101b6028bf558e671a5ea2d25e4685540 | 11,164 | klage-dittnav-api | MIT License |
idea/testData/intentions/convertReferenceToLambda/itClash.kt | JakeWharton | 99,388,807 | false | null | // IS_APPLICABLE: true
// WITH_RUNTIME
fun foo() {
listOf(1).forEach { (-it).let(<caret>it::bar) }
}
fun Int.bar(arg: Int) {
} | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 132 | kotlin | Apache License 2.0 |
domain/src/main/java/com/eyther/lumbridge/domain/repository/mortgage/portugal/PortugalMortgageCalculator.kt | ruialmeida51 | 249,223,684 | false | {"Kotlin": 687400} | package com.eyther.lumbridge.domain.repository.mortgage.portugal
import com.eyther.lumbridge.domain.model.finance.mortgage.MortgageAmortization
import com.eyther.lumbridge.domain.model.finance.mortgage.MortgageCalculation
import com.eyther.lumbridge.domain.model.user.UserMortgageDomain
import com.eyther.lumbridge.doma... | 8 | Kotlin | 0 | 7 | 8e35f83c34e4b29eae1b048d3fda6aaa81b04858 | 6,885 | lumbridge-android | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsactivitiesmanagementapi/entity/PlannedDeallocation.kt | ministryofjustice | 533,838,017 | false | null | package uk.gov.justice.digital.hmpps.hmppsactivitiesmanagementapi.entity
import jakarta.persistence.Entity
import jakarta.persistence.EnumType
import jakarta.persistence.Enumerated
import jakarta.persistence.GeneratedValue
import jakarta.persistence.GenerationType
import jakarta.persistence.Id
import jakarta.persisten... | 4 | Kotlin | 0 | 1 | f69836150816287774d41f9ed3feb1019f9268fd | 925 | hmpps-activities-management-api | MIT License |
Search Algorithms/Kotlin/InterpolationSearch.kt | memr5 | 151,755,233 | false | null | fun interpolationSearch(arr: IntArray, item: Int): Int {
var hi = arr.size - 1
var lo = 0
while (item >= arr[lo] && item <= arr[hi] && lo <= hi) {
val probe =
lo + (hi - lo) * (item - arr[lo]) / (arr[hi] - arr[lo])
if (hi == lo) {
return if (arr[lo] == item) {
... | 106 | null | 174 | 25 | e6ef9d7b6f412452249722515fd5cff9c0d7dbab | 1,065 | Algorithms | MIT License |
app/src/main/java/com/hooni/quotesaver/data/model/Quote.kt | hunnihundert | 317,061,510 | false | null | package com.hooni.quotesaver.data.model
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
data class Quote(
val quote: String,
val author: String?,
var likes: Int,
val tags: List<String>,
@PrimaryKey val pk: Int,
val image: String?,
val language: String
) {
override f... | 5 | Kotlin | 0 | 5 | e5cf2e767dc7ab1c1d88ba66307f994e0f37d314 | 627 | QuoteSaver | Apache License 2.0 |
src/main/kotlin/ee/nx01/tonclient/utils/UtilsModule.kt | mdorofeev | 305,637,520 | false | null | package ee.nx01.tonclient.utils
import ee.nx01.tonclient.TonClient
class UtilsModule(private val tonClient: TonClient) {
/**
## convert_address
Converts address from any TON format to any TON format
*/
suspend fun convertAddress(
address: String,
outputFormat: AddressStringFormat... | 0 | Kotlin | 7 | 9 | 9e3a1d2c9588ef051f59f9d2c23bcda10336b0a0 | 3,889 | ton-client-kotlin | Apache License 2.0 |
test/resources/custom_dsl/test_dsl_include.kt | kscripting | 53,889,290 | false | {"Kotlin": 211739, "Shell": 21414, "Batchfile": 2644, "R": 1047, "Dockerfile": 1006} | fun included() = "kscript is awesome" | 37 | Kotlin | 123 | 2,028 | 6acd4e1907478c49cc4e3db640200f926933b15d | 37 | kscript | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.