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/github/vini2003/blade/common/widget/base/SlotListWidget.kt | Mixinors | 285,046,508 | false | null | package com.github.vini2003.blade.common.widget.base
import com.github.vini2003.blade.Blade
import com.github.vini2003.blade.client.data.PartitionedTexture
import com.github.vini2003.blade.common.miscellaneous.Position
import com.github.vini2003.blade.common.miscellaneous.Size
import com.github.vini2003.blade.common.m... | 0 | Kotlin | 0 | 6 | 95573c8c2fc9cfd268ebab6dcb86f74857731323 | 6,837 | Blade | Creative Commons Zero v1.0 Universal |
app/src/main/java/io/github/alessandrojean/toshokan/service/cover/CoverProviderWebsite.kt | alessandrojean | 495,493,156 | false | null | package io.github.alessandrojean.toshokan.service.cover
import androidx.annotation.StringRes
import io.github.alessandrojean.toshokan.R
enum class CoverProviderWebsite(@StringRes val title: Int, val url: String) {
AMAZON(R.string.amazon, "https://amazon.com"),
LOJA_PANINI(R.string.loja_panini, "https://panini.com... | 11 | Kotlin | 1 | 5 | 96717312b7a5090901c8604cd069d9468995e99e | 688 | toshokan-android | MIT License |
src/main/kotlin/com/pms/placemanagementsystemserverside/service/user/impl/UserServiceImpl.kt | sge-sistema-gerenciador-de-espacos | 178,943,974 | false | null | package com.pms.placemanagementsystemserverside.service.user.impl
import com.pms.placemanagementsystemserverside.dto.ProfessorLackPostRequest
import com.pms.placemanagementsystemserverside.models.enums.ActivationModelStatusEnum
import com.pms.placemanagementsystemserverside.models.enums.UserTypeEnum
import com.pms.pla... | 0 | Kotlin | 0 | 0 | d402ddb56d523062a4cfbff245a1c4d49aec7ba6 | 2,484 | place-management-system-server-side | MIT License |
app/src/main/java/com/fuchsia/shotokanwkf/activity/NavBar.kt | fuchsialab | 373,359,223 | false | {"Kotlin": 107961, "Java": 42854} | package com.fuchsia.shotokanwkf.activity
import android.content.ActivityNotFoundException
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.view.View
import android.view.WindowManager
import android.widget.ImageView
import android.widget.LinearLayout... | 0 | Kotlin | 0 | 0 | 7412c05f58da6423ba8f273873aee7ee1417e6b3 | 3,944 | Shotokan-WKF | MIT License |
chatkit/src/main/java/com/ekoapp/ekosdk/uikit/chat/messages/adapter/EkoMessageItemUtil.kt | AmityCo | 313,244,597 | false | null | package com.ekoapp.ekosdk.uikit.chat.messages.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import com.ekoapp.ekosdk.EkoClient
import com.ekoapp.ekosdk.message.EkoMessage
import com.ekoapp.ekosdk.uikit.chat.R
import com.ekoapp.ekosdk.uikit.chat.messages.viewHolder.*
import com.ekoapp.ekosdk.... | 4 | Kotlin | 1 | 0 | d4fe097da96f71ab281c9b39fafdaa901aed377c | 10,021 | ASC-UIKit-Android | Microsoft Public License |
src/main/kotlin/net/wiredtomato/letsgocooking/LetsGoCooking.kt | wired-tomato | 849,024,713 | false | {"Kotlin": 52296, "Java": 1664} | package net.wiredtomato.letsgocooking
import net.fabricmc.fabric.api.networking.v1.PayloadTypeRegistry
import net.fabricmc.fabric.api.networking.v1.ServerPlayNetworking
import net.minecraft.util.Identifier
import net.wiredtomato.letsgocooking.api.player.gameData
import net.wiredtomato.letsgocooking.api.registry.LGCReg... | 0 | Kotlin | 0 | 0 | 27e3c1c7e88fbb36b6eb18ab7b6c80a5c5e84ba2 | 1,500 | LetsGoCooking | MIT License |
feature/recognize-text/src/main/java/ru/tech/imageresizershrinker/feature/recognize/text/presentation/components/UiDownloadData.kt | T8RIN | 478,710,402 | false | null | /*
* ImageToolbox is an image editor for android
* Copyright (c) 2024 T8RIN (<NAME>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under ... | 24 | null | 90 | 3,817 | 486410d4a9ea3c832fc5aa63eb5bdc7b1fab871d | 1,260 | ImageToolbox | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/appstream/CfnApplicationEntitlementAssociationPropsDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.appstream
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.appstream.CfnApplicationEntitlementAssociationProps
@Generated
public fun buildCfnApplicationEntitlementAssociationProps(initial... | 1 | Kotlin | 0 | 0 | e08d201715c6bd4914fdc443682badc2ccc74bea | 535 | aws-cdk-kt | Apache License 2.0 |
app/src/main/java/com/rohitneel/instagramclone/ui/screen/FeedScreen.kt | rohitneel1234 | 741,797,976 | false | {"Kotlin": 120113} | package com.rohitneel.instagramclone.ui.screen
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.gestures.detect... | 0 | Kotlin | 0 | 1 | b16cc6f8b65a2024cc824d20da2921ae628fea47 | 12,024 | Instagram-clone | MIT License |
Basics/AllAboutFunc.kt | uzairkabeer1 | 567,604,702 | false | null | fun main() {
println("Enter your name: ")
val name = readLine()!!
val cond = displayGreeting(name)
println(message = cond)
val values = displayGreet("Umair")
println(values)
var sum = addition(10, 20, 30, 40)
println("The sum of numbers are: $sum")
}
//simple function
fun displayGreeti... | 0 | Kotlin | 0 | 1 | 7f81f1f983b44d63d1b3419d883183ab379cf3b6 | 829 | Full-Kotlin-Guide | MIT License |
1/ColorMyView/app/src/main/java/udacity/aos/colormyview/MainActivity.kt | chiaz91 | 393,010,970 | false | null | package udacity.aos.colormyview
import android.graphics.Color
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
... | 0 | Kotlin | 0 | 0 | 670b2447b3826bd56bd29ad984871e267def9423 | 2,348 | udacity-aos-learn | MIT License |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/ZeroSymmetric.kt | Danilo-Araujo-Silva | 271,904,885 | false | null | package com.daniloaraujosilva.mathemagika.library.common.mathematica.functions
import com.daniloaraujosilva.mathemagika.library.common.mathematica.MathematicaFunction
/**
*````
*
* Name: ZeroSymmetric
*
* Full name: System`ZeroSymmetric
*
* ZeroSymmetric[{s , …, s }] repres... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 1,090 | mathemagika | Apache License 2.0 |
app/src/test/java/com/miguelbrmfreitas/itunes_searcher/DoubleExtensionsTest.kt | MiguelbrmFreitas | 548,562,167 | false | {"Kotlin": 31180} | package com.miguelbrmfreitas.itunes_searcher
import com.miguelbrmfreitas.domain.util.extensions.toPrice
import org.junit.Assert
import org.junit.Test
class DoubleExtensionsTest
{
companion object {
const val FAKE_DOUBLE_1 = 2.19
const val FAKE_DOUBLE_2 = 0.99
}
@Test
fun givenDouble_t... | 0 | Kotlin | 0 | 4 | 330dec36427618e74ae5bf132889d5fba3b0e87f | 482 | iTunes-searcher | MIT License |
src/main/kotlin/top/ntutn/starseasdk/proxy/AliasProcessor.kt | rfkhx | 523,771,073 | false | null | package top.ntutn.starseasdk.proxy
import com.google.auto.service.AutoService
import javax.annotation.processing.AbstractProcessor
import javax.annotation.processing.Processor
import javax.annotation.processing.RoundEnvironment
import javax.annotation.processing.SupportedAnnotationTypes
import javax.lang.model.element... | 1 | Kotlin | 0 | 0 | d957445fcb8ef99e73b5809ff15780805c46fe43 | 1,780 | starseasdk | MIT License |
yc-core-ical/src/test/kotlin/mikufan/cx/yc/core/ical/util/ResourceUtil.kt | CXwudi | 556,059,867 | false | {"Kotlin": 89778, "Java": 718} | package mikufan.cx.yc.core.ical.util
import org.springframework.util.ResourceUtils
/**
* @author CX无敌
* 2023-01-03
*/
fun loadResourceAsString(resourceName: String): String {
val stream = ResourceUtils::class.java.classLoader.getResourceAsStream(resourceName)
if (stream != null) {
return stream.bufferedRe... | 5 | Kotlin | 0 | 2 | 68604d12d99970d11887376f86cdfda9c7373abf | 438 | youcal | MIT License |
android/src/main/java/dev/matinzd/healthconnect/utils/ExceptionsUtils.kt | matinzd | 586,126,466 | false | null | package dev.matinzd.healthconnect.utils
import android.os.RemoteException
import com.facebook.react.bridge.Promise
import okio.IOException
class ClientNotInitialized : Exception("Health Connect client is not initialized")
class InvalidRecordType : Exception("Record type is not valid")
class InvalidTemperature : Excep... | 4 | null | 12 | 98 | 018e38a57290ea065eed8f20b472e88b883aa763 | 1,732 | react-native-health-connect | MIT License |
app/android/ui/app/public/src/main/kotlin/build/wallet/ui/app/dev/UiModelNotImplemented.kt | proto-at-block | 761,306,853 | false | {"C": 10424094, "Kotlin": 7156393, "Rust": 2046237, "Swift": 700307, "Python": 331492, "HCL": 271992, "Shell": 111209, "TypeScript": 102700, "C++": 64770, "Meson": 64234, "JavaScript": 36227, "Just": 28071, "Ruby": 9428, "Dockerfile": 5731, "Makefile": 3839, "Open Policy Agent": 1552, "Procfile": 80} | package build.wallet.ui.app.dev
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
imp... | 0 | C | 10 | 98 | 1f9f2298919dac77e6791aa3f1dbfd67efe7f83c | 1,405 | bitkey | MIT License |
app/src/main/java/br/com/meiadois/decole/util/extension/Date.kt | meiadois | 256,744,460 | false | null | package br.com.meiadois.decole.util.extension
import android.annotation.SuppressLint
import java.text.SimpleDateFormat
import java.util.*
@SuppressLint("SimpleDateFormat")
fun Date.isFetchNeeded(): Boolean {
val formatter = SimpleDateFormat("dd/MM/yyyy")
val now = Date()
val nowWithZeroTime = formatter.pa... | 0 | Kotlin | 1 | 2 | f9c861124d3a1031bf0b802465eaa166c16f1693 | 481 | decole-android | MIT License |
.teamcity/builds/kotlinlang/buidTypes/BuildReferenceDocs.kt | JetBrains | 14,397,208 | false | {"JavaScript": 235602, "SCSS": 178179, "TypeScript": 119560, "Python": 76209, "HTML": 55006, "CSS": 46244, "FreeMarker": 10231, "Shell": 8942, "XSLT": 3883, "Dockerfile": 1397} | package builds.kotlinlang.buidTypes
import jetbrains.buildServer.configs.kotlin.BuildType
import jetbrains.buildServer.configs.kotlin.*
import jetbrains.buildServer.configs.kotlin.buildSteps.ScriptBuildStep
import jetbrains.buildServer.configs.kotlin.buildSteps.script
import java.io.File
import java.nio.file.Paths
p... | 21 | JavaScript | 3831 | 1,464 | 8e84d7206edbfb913db4674762a46a79c3d94a5c | 2,491 | kotlin-web-site | Apache License 2.0 |
clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/model/analytics/TopHitsResponseWithAnalytics.kt | algolia | 419,291,903 | false | null | /** Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. */
package com.algolia.client.model.analytics
import kotlinx.serialization.*
import kotlinx.serialization.json.*
/**
* TopHitsResponseWi... | 40 | PHP | 8 | 25 | f14b2b4e48702209dcb0c09561a2c1c3361f75eb | 618 | api-clients-automation | MIT License |
payment/src/main/kotlin/io/liquidsoftware/base/payment/application/port/out/PaymentEventPort.kt | edreyer | 445,325,795 | false | {"Kotlin": 204259, "Procfile": 119} | package io.liquidsoftware.base.payment.application.port.out
import io.liquidsoftware.base.payment.application.port.`in`.PaymentEvent
import io.liquidsoftware.base.payment.application.port.`in`.PaymentMethodEvent
internal interface PaymentEventPort {
suspend fun <T: PaymentMethodEvent> handle(event: T): T
suspen... | 7 | Kotlin | 12 | 49 | 8e006542b23bb90823c66dfe59a70476370a912c | 368 | modulith | MIT License |
app/src/main/java/com/example/classvista_admin/Models/CourseYear/Data.kt | abdulqaderpatel | 732,734,663 | false | {"Kotlin": 146089} | package com.example.classvista_admin.Models.CourseYear
data class Data(
val admin_id: Int=0,
val course_id: Int=0,
val created_at: String="",
val id: String="",
val subject_name: String="",
val updated_at: String=""
) | 0 | Kotlin | 0 | 0 | 4d4ef065e82ea55b6d42b63f954d50998a7d511c | 242 | ClassVista_admin | MIT License |
bittrader-candle-api/src/test/kotlin/org/kentunc/bittrader/candle/api/infrastructure/repository/dao/BBandsStrategyParamsDaoTest.kt | ken-tunc | 430,691,495 | false | null | package org.kentunc.bittrader.candle.api.infrastructure.repository.dao
import kotlinx.coroutines.runBlocking
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertNull
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.ass... | 2 | Kotlin | 0 | 0 | 757c83fd604e5758a5e67bbfd98b33c1d9cc1961 | 2,949 | bittrader | MIT License |
commons-crypto/src/main/kotlin/com/healthmetrix/connector/commons/crypto/AesKey.kt | smart4health | 593,624,617 | false | null | package com.healthmetrix.connector.commons.crypto
import com.healthmetrix.connector.commons.AllOpen
import com.healthmetrix.connector.commons.decodeBase64
import com.healthmetrix.connector.commons.logger
import net.logstash.logback.argument.StructuredArguments
import java.nio.ByteBuffer
import java.security.SecureRand... | 0 | Kotlin | 0 | 1 | 976d36079fa4171da0f78ad5812181cb6e3da6bc | 2,924 | connector-service | MIT License |
android/app/src/main/java/com/codechef/ffds/MessagesFragment.kt | CodeChefVIT | 367,407,732 | false | null | package com.codechef.ffds
import android.content.Context
import android.content.Intent
import android.content.res.Resources
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.net.Uri
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.vie... | 4 | Kotlin | 6 | 3 | 9d03f10326181f54818fd5681ad5eddf6a2b71a5 | 12,316 | FFDSv2 | MIT License |
epli/app/src/main/java/com/example/epli/network/models/GetUsersSeriesInfoRequest.kt | Uliana2303 | 544,899,725 | false | {"Kotlin": 136839} | package com.example.epli.network.models
import kotlinx.serialization.Serializable
@Serializable
data class GetUsersSeriesInfoRequest(
val userId: Int,
val seriesId: Int
)
| 0 | Kotlin | 1 | 0 | ac10c539bfd1127339b68af95a7c09ffbcdf1685 | 182 | summer-practice | MIT License |
cupertino-icons-extended/src/commonMain/kotlin/io/github/alexzhirkevich/cupertino/icons/outlined/TrayAndArrowUp.kt | alexzhirkevich | 636,411,288 | false | {"Kotlin": 4456601, "Ruby": 2310, "Swift": 2101, "Shell": 856, "HTML": 762} | package io.github.alexzhirkevich.cupertino.icons.outlined
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 and... | 1 | Kotlin | 14 | 362 | 60fd9234eb9f2df97bc8523ea2ed344ad7f58655 | 5,457 | compose-cupertino | Apache License 2.0 |
Task2/src/main/kotlin/ru/spbau/mit/testing/pages/ForumsPage.kt | e5l | 91,070,528 | false | null | package ru.spbau.mit.testing.pages
import org.openqa.selenium.WebDriver
import ru.spbau.mit.testing.Locators
class ForumsPage(driver: WebDriver) : BasePage(driver) {
val commentsBlock get() = driver.findElement(Locators.commentsBlock)
val topOffers get() = driver.findElements(Locators.topOffers)
} | 0 | Kotlin | 0 | 0 | 691d54f7c15d9f952a7c065cf6e1392bbb4249f5 | 307 | Testing | The Unlicense |
app/src/main/java/com/example/expensetrackerapp/data/Expense.kt | Lerampen | 758,345,582 | false | {"Kotlin": 109002} | package com.example.expensetrackerapp.data
import androidx.annotation.NonNull
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "expenseTable")
data class Expense (
@PrimaryKey(autoGenerate = true)
var expId : Int = 0,
var expName : String ,
var expAmount : Double,
va... | 0 | Kotlin | 0 | 0 | f844bc2256b1b61b54b1196af2ebf9f6c591ef82 | 407 | expense-tracker | Apache License 2.0 |
sample/src/main/java/com/anggrayudi/materialpreference/sample/SettingsActivity.kt | Phoenix-626 | 232,622,866 | true | {"Kotlin": 381708} | package com.anggrayudi.materialpreference.sample
import android.content.Intent
import android.content.SharedPreferences
import android.os.Bundle
import android.view.Menu
import androidx.appcompat.app.AppCompatDelegate
import com.anggrayudi.materialpreference.PreferenceActivityMaterial
import com.anggrayudi.materialpre... | 0 | null | 0 | 0 | da43dee38cf0f3877243849c1062a7c4808e09c3 | 2,689 | MaterialPreference | Apache License 2.0 |
src/main/kotlin/com/jordanbegian/apitemplate/handlers/ProjectHandlers.kt | jordan-begian | 595,221,675 | false | null | package com.jordanbegian.apitemplate.handlers
import com.jordanbegian.apitemplate.models.ProjectData
import org.springframework.web.reactive.function.server.ServerRequest
import com.jordanbegian.apitemplate.services.ProjectService
import org.springframework.http.HttpStatus
import org.springframework.stereotype.Compone... | 13 | Kotlin | 0 | 0 | 8aa4d7a3f798ec6af84cf00aa67acef353768b88 | 1,851 | api-template | Apache License 2.0 |
SearchBook/app/src/main/java/ec/com/pmyb/searchbook/ReaderApplication.kt | PaulMarcelo | 571,028,620 | false | {"Kotlin": 159459} | package ec.com.pmyb.searchbook
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class ReaderApplication: Application(){
} | 0 | Kotlin | 0 | 0 | 80f3447739ed06a0588969fdbe11f037f1176430 | 164 | u-pd-android-jetpack-compose-comprehensive-bootcamp-2022 | Apache License 2.0 |
src/main/kotlin/codecomputer/Selectors.kt | russhwolf | 71,001,471 | false | null | package codecomputer
/**
* A `Select` outputs the `a` input if `select` is false or the `b` input if select is true.
*
* This class represents the *2-Line-to-1-Line Selector* on page 169 of *Code*
*
* @see MultiSelector
*/
class Selector(select: Readable, a: Readable, b: Readable) : Readable by (select and b) or... | 0 | Kotlin | 1 | 6 | 5061ab2fb39cdb560f4bede67f074a8489f91bca | 1,744 | Code-Computer | MIT License |
helper/src/main/kotlin/me/lucko/helper/messaging/KChannelListener.kt | Nyaadanbou | 415,516,750 | false | {"Gradle Kotlin DSL": 10, "Text": 1, "Shell": 1, "Markdown": 2, "Batchfile": 1, "Ignore List": 1, "Kotlin": 35, "Java": 366, "YAML": 6, "INI": 1} | /*
* This file is part of helper, licensed under the MIT License.
*
* Copyright (c) lucko (Luck) <<EMAIL>>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the S... | 1 | null | 1 | 1 | a0110d3d1ab6124186911e89c6dcc5eaadaf5a18 | 1,713 | helper | MIT License |
libnavigation-core/src/main/java/com/mapbox/navigation/core/routeoptions/MapboxRouteOptionsProvider.kt | karanveer0802 | 279,296,063 | true | {"Java Properties": 3, "Markdown": 11, "Gradle": 45, "Shell": 6, "YAML": 2, "Batchfile": 2, "JSON": 24, "Ignore List": 28, "Makefile": 1, "INI": 40, "Proguard": 16, "XML": 541, "HTML": 8, "Kotlin": 506, "Text": 13, "Java": 523, "JavaScript": 2, "Python": 2} | package com.mapbox.navigation.core.routeoptions
import android.location.Location
import com.mapbox.api.directions.v5.models.RouteOptions
import com.mapbox.base.common.logger.Logger
import com.mapbox.base.common.logger.model.Message
import com.mapbox.base.common.logger.model.Tag
import com.mapbox.geojson.Point
import c... | 0 | null | 0 | 0 | 6c52c50c7194798a23f334c90e36aa48937758fe | 5,496 | mapbox-navigation-android | Apache License 2.0 |
src/main/kotlin/com/atlassian/performance/tools/jiraactions/api/page/TopNav.kt | atlassian-forks | 379,904,817 | true | {"Kotlin": 170208, "Java": 1959} | package com.atlassian.performance.tools.jiraactions.api.page
import org.openqa.selenium.By
import org.openqa.selenium.WebDriver
import org.openqa.selenium.support.ui.ExpectedConditions.elementToBeClickable
class TopNav(private val driver: WebDriver) {
private val createButtonLocator = By.id("create_link")
fu... | 0 | null | 0 | 0 | 5f56267d91b5138755f6796f32cedddb89e944ad | 587 | jira-actions | Apache License 2.0 |
src/main/kotlin/xyz/luan/games/minecraft/ultimatestorage/containers/BaseChestContainer.kt | luanpotter | 326,282,577 | false | null | package xyz.luan.games.minecraft.ultimatestorage.containers
import net.minecraft.entity.player.PlayerEntity
import net.minecraft.entity.player.PlayerInventory
import net.minecraft.inventory.container.Slot
import net.minecraft.network.PacketBuffer
import xyz.luan.games.minecraft.ultimatestorage.registry.BlockRegistry
i... | 0 | Kotlin | 0 | 2 | 6c676bb618dd7f12b7c8c79b040442d18d82407b | 1,790 | ultimate-storage | MIT License |
src/test/kotlin/no/nav/bidrag/person/hendelse/DevLauncher.kt | navikt | 517,990,382 | false | null | package no.nav.bidrag.person.hendelse
import no.nav.bidrag.person.hendelse.konfigurasjon.ApplicationConfig
import no.nav.security.token.support.test.spring.TokenGeneratorConfiguration
import org.springframework.boot.builder.SpringApplicationBuilder
import org.springframework.context.annotation.Import
@Import(TokenGen... | 2 | Kotlin | 0 | 0 | 73a661b658c7bc18c7784f4db44319e1ac73ab31 | 535 | bidrag-person-hendelse | MIT License |
app/src/main/java/de/oljg/glac/feature_clock/ui/settings/components/character/FontWeightSelector.kt | Ol-J-G | 768,542,224 | false | {"Kotlin": 980887} | package de.oljg.glac.feature_clock.ui.settings.components.character
import androidx.compose.runtime.Composable
import de.oljg.glac.core.ui.components.DropDownSelector
import de.oljg.glac.core.utils.FontWeight
import de.oljg.glac.feature_clock.ui.settings.utils.ClockSettingsDefaults.FONT_WEIGHTS
import de.oljg.glac.fea... | 0 | Kotlin | 0 | 0 | b3cefafa190eae0aa95f55fc6903e327363c2efc | 796 | GLAC | Creative Commons Attribution 4.0 International |
app/src/main/java/softspark/com/inventorypilot/home/domain/useCases/cart/DeleteCartItemUseCaseImpl.kt | Landony04 | 836,511,304 | false | {"Kotlin": 294205} | package softspark.com.inventorypilot.home.domain.useCases.cart
import softspark.com.inventorypilot.home.data.repositories.CartRepository
import javax.inject.Inject
class DeleteCartItemUseCaseImpl @Inject constructor(
private val cartRepository: CartRepository
) : DeleteCartItemUseCase {
override suspend fun i... | 1 | Kotlin | 0 | 0 | f5c3a1ce959aac23270a6d08728498a52bcd5e01 | 391 | inventory-pilot | MIT License |
app/src/main/java/com/bunkalogic/bunkalist/db/NewTimeLineEventGlobal.kt | bunkalogic | 171,318,735 | false | {"Kotlin": 544892} | package com.bunkalogic.bunkalist.db
data class NewTimeLineEventGlobal(val message: TimelineMessage) | 0 | Kotlin | 0 | 2 | 1b5c1d40f0e7514de3a666614cdf6fe88e21ca3f | 100 | BunkaList-Replaced- | Apache License 2.0 |
kotlinpoet-dsl/src/main/kotlin/com/hendraanggrian/kotlinpoet/AnnotationSpec.kt | hendraanggrian | 209,613,746 | false | {"Kotlin": 163919} | @file:OptIn(ExperimentalContracts::class)
package com.hendraanggrian.kotlinpoet
import com.squareup.kotlinpoet.AnnotationSpec
import com.squareup.kotlinpoet.ClassName
import com.squareup.kotlinpoet.CodeBlock
import com.squareup.kotlinpoet.DelicateKotlinPoetApi
import com.squareup.kotlinpoet.ParameterizedTypeName
impo... | 1 | Kotlin | 0 | 4 | 4a661f7ea0a7e75b85809ad9b032a6987eeda5e0 | 7,588 | kotlinpoet-dsl | Apache License 2.0 |
comet-api/src/test/kotlin/ren/natsuyuk1/comet/api/test/command/TestCommandManager.kt | StarWishsama | 173,288,057 | false | null | package ren.natsuyuk1.comet.api.test.command
import kotlinx.coroutines.runBlocking
import org.junit.jupiter.api.BeforeAll
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.TestInstance
import ren.natsuyuk1.comet.api.command.CommandManager
import ren.natsuyuk1.comet.api.database.DatabaseManager
import ren.... | 19 | null | 20 | 193 | 19ed20ec4003a37be3bc2dfc6b55a9e2548f0542 | 1,965 | Comet-Bot | MIT License |
src/test/kotlin/dev/aspid812/virtualfs/VirtualFileSystemBackendTest.kt | Const-Grigoryev | 372,778,547 | false | null | package dev.aspid812.virtualfs
import dev.aspid812.virtualfs.mock.BlockStorageMock
import org.junit.Assert
import org.junit.Test
import java.nio.ByteBuffer
class VirtualFileSystemBackendTest {
@Test
fun `allocate() - Enough vacant blocks`() {
val storage = BlockStorageMock().apply {
addHeaderIndexBlock {
f... | 0 | Kotlin | 0 | 0 | bda30b1b8fc11126bce238dbc0f38cce5397d815 | 12,034 | VirtualFileSystem | MIT License |
brd-android/kyc/src/main/java/com/rockwallet/kyc/ui/features/stateselection/StateSelectionAdapter.kt | rockwalletcode | 598,550,195 | false | null | package com.rockwallet.kyc.ui.features.stateselection
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.rockwallet.kyc.data.model.CountryState
import c... | 0 | Kotlin | 0 | 0 | 5eea47948c125678a59ada98bc95f865c81b8531 | 1,651 | oss-wallet-android | MIT License |
app/src/main/java/com/sunnyweather/android/logic/model/DailyResponse.kt | caicancan | 383,820,978 | false | null | package com.sunnyweather.android.logic.model
import com.google.gson.annotations.SerializedName
import java.util.*
import javax.xml.transform.Result
data class DailyResponse(val status:String,val result: Result){
data class Result(val daily:Daily)
data class Daily(val temperature:List<Temperature>,val skycon:... | 0 | Kotlin | 0 | 0 | c7212bda57b8bc4b2032264d3b7c5b8b06e351a0 | 726 | SunnyWeather | Apache License 2.0 |
dominion-app/src/commonMain/kotlin/io/ashdavies/dominion/Collection.kt | ashdavies | 36,688,248 | false | {"Kotlin": 243450, "HCL": 20680, "Shell": 3934, "Mustache": 2101} | package io.ashdavies.dominion
internal inline fun <T, K, V> Collection<T>.associateNotNull(
transform: (T) -> Pair<K, V>?,
): Map<K, V> = buildMap {
for (element in this@associateNotNull) {
val pair = transform(element) ?: continue
put(pair.first, pair.second)
}
}
| 41 | Kotlin | 31 | 117 | 11e4ecfcbd6ba63f4b69871ee7f7e04b9dc06506 | 294 | playground.ashdavies.dev | Apache License 2.0 |
mmock-runtime/src/commonMain/kotlin/com/pega/mmock/backend/unsafe/DefaultInstance.kt | pegasystems | 294,162,816 | false | null | /*
* Copyright 2020 Pegasystems Inc. All rights reserved.
* Use of this source code is governed by a Apache 2.0 license that can be found in the LICENSE file.
*/
package com.pega.mmock.backend.unsafe
@OptIn(ExperimentalUnsignedTypes::class)
inline fun <reified T> defaultInstance(): T {
return when (T::class) {... | 12 | Kotlin | 0 | 9 | 6689bcaa9970d1daf139b1d9cc794d47b0d9c0c9 | 1,959 | mmock | Apache License 2.0 |
lib-chain-ethereum/src/main/java/com/smallraw/chain/ethereum/network/Ropsten.kt | QuincySx | 262,699,409 | false | null | package com.smallraw.chain.ethereum.network
import com.smallraw.crypto.core.extensions.hexToByteArray
class Ropsten : BaseNetwork() {
override val id: Long = 3
override val genesisBlockHash: ByteArray =
"41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d".hexToByteArray()
} | 1 | C | 6 | 26 | 0beea2170ea56e2dd224fe0e174d5ac2951632ca | 306 | ChainWallet | Apache License 2.0 |
src/main/kotlin/org/bymc/gomoku/game/common/GameSituation.kt | watermirror | 539,082,095 | false | {"Kotlin": 235223} | package org.bymc.gomoku.game.common
import org.bymc.gomoku.model.common.param.GameState
import org.bymc.gomoku.model.common.param.Stone
import java.util.Date
/**
* 游戏情况。
*
* @author: zheng.chez
* @since: 2022/09/22
*/
data class GameSituation(
/**
* 棋局状态。
*/
val state: GameState,
/**
... | 0 | Kotlin | 0 | 2 | cb6b9caa0de191097eab5fcd08f76bbdbb991a1b | 746 | gomoku | MIT License |
src/main/kotlin/org/teamvoided/shippost/config/StickableConfig.kt | TeamVoided | 648,231,566 | false | {"Kotlin": 58664} | package org.teamvoided.shippost.config
import net.minecraft.item.Items
import org.teamvoided.shippost.init.SpItems
object StickableConfig {
val STICKABLE = listOf(
Items.STICK,
Items.END_ROD,
Items.BONE,
Items.DEBUG_STICK,
SpItems.NETHERITE_STICK,
)
val STICKABLE_EX... | 0 | Kotlin | 0 | 2 | bf2ce69d266f77f3a897ef27080fc3902544e5c1 | 447 | TheShippostMod | MIT License |
integration/camunda-bpm/taskpool-collector/src/main/kotlin/io/holunda/polyflow/taskpool/collector/task/TaskServiceCollectorService.kt | holunda-io | 135,994,693 | false | {"Kotlin": 1271745} | package io.holunda.polyflow.taskpool.collector.task
import io.holunda.camunda.taskpool.api.task.EngineTaskCommandFilter
import io.holunda.polyflow.taskpool.asCreateCommand
import io.holunda.polyflow.taskpool.callInProcessEngineContext
import io.holunda.polyflow.taskpool.collector.CamundaTaskpoolCollectorProperties
imp... | 21 | Kotlin | 26 | 68 | 0a80b87e49127b355d62f8a32e91a6c355d11419 | 4,072 | camunda-bpm-taskpool | Apache License 2.0 |
Codelabs/Dependency Injection/Dagger/MySimpleLogin/app/src/main/java/com/dicoding/mysimplelogin/di/StorageModule.kt | patriciafiona | 731,611,881 | false | {"Kotlin": 298580} | package com.dicoding.mysimplelogin.di
import android.content.Context
import com.dicoding.mysimplelogin.SessionManager
import dagger.Module
import dagger.Provides
@Module
class StorageModule {
@Provides
fun provideSessionManager(context: Context): SessionManager = SessionManager(context)
} | 0 | Kotlin | 0 | 1 | 4e29e2e206d92ac6c3e041909c9120e85685938a | 299 | Dicoding---Menjadi-Android-Developer-Expert | MIT License |
Chapter3/src/main/kotlin/Composite.kt | Atesh19 | 403,209,099 | true | {"Kotlin": 20172} | class Squad(private val units: List<StormTrooper>) {
fun move(x: Long, y: Long) {
for (u in units) {
u.move(x, y)
}
}
fun attack(x: Long, y: Long) {
for (u in units) {
u.attackRebel(x, y)
}
}
}
fun main() {
// TODO varargs?
val bobaFett ... | 0 | null | 0 | 0 | 7101a3d4dde0ab70f10ef63efdc56e0f0d594d90 | 442 | Kotlin-Design-Patterns-and-Best-Practices | MIT License |
app/src/main/java/org/devstrike/app/citrarb/features/news/savednews/SavedNewsDetail.kt | Devstrike-DigTech | 555,884,168 | false | null | /*
* Copyright (c) 2022.
* <NAME>
* For Afro Connect Technologies
* Under the Authority of Devstrike Digital Ltd.
*
*/
package org.devstrike.app.citrarb.features.news.savednews
import android.content.Intent
import android.os.Bundle
import android.text.method.ScrollingMovementMethod
import android.view.LayoutInf... | 43 | Kotlin | 0 | 0 | c5ea61d83b8211d949efaee0a1215d9b284f570f | 4,091 | CITRARB--Android-App | Apache License 2.0 |
src/main/kotlin/sosteam/deamhome/domain/item/service/ItemDeleteService.kt | S-OSTeam | 686,862,885 | false | {"Kotlin": 119438} | package sosteam.deamhome.domain.item.service
import kotlinx.coroutines.reactor.awaitSingleOrNull
import org.springframework.stereotype.Service
import sosteam.deamhome.domain.category.exception.CategoryNotFoundException
import sosteam.deamhome.domain.category.repository.ItemCategoryRepository
import sosteam.deamhome.do... | 5 | Kotlin | 0 | 0 | d98d98625ee123e4ead059f0118465cc2b45f69f | 1,453 | shop-api | MIT License |
src/main/kotlin/me/ilex/statistics/rank.kt | AlexMiroshnikov | 344,885,605 | false | null | package me.ilex.statistics
import java.math.BigInteger
fun rank(seq: DoubleArray): Array<BigInteger> {
val sortedSeq = seq.sorted().toTypedArray()
var rank = 1.toBigInteger()
var min = sortedSeq.first()
val ranks = mutableMapOf(min to rank)
sortedSeq.forEach {
if (it != min) {
... | 1 | Kotlin | 0 | 2 | de89bf3a826091258ab83b620350be5987825f2b | 538 | kt-statistics | MIT License |
myandroidutil/src/main/java/com/starsoft/myandroidutil/LifeDataUtils/ErrorHandler.kt | DmitryStarkin | 315,625,438 | false | {"Kotlin": 339532, "Java": 29960} | /*
* Copyright (c) 2022. <NAME> Contacts: <EMAIL>
*
* Licensed under the Apache License, Version 2.0 (the «License»);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* //www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agr... | 0 | Kotlin | 0 | 3 | 81499c5f97421bbe892c47fa1e46bab569f641d2 | 2,078 | my_android_utils | Apache License 2.0 |
app/src/main/java/com/andro/indie/school/pokedex/mapper/PokemonMapper.kt | herisulistiyanto | 345,693,378 | false | null | package com.andro.indie.school.pokedex.mapper
import com.andro.indie.school.core.base.BaseMapper
import com.andro.indie.school.pokedex.data.model.remote.PokemonModel
import com.andro.indie.school.pokedex.domain.model.Pokemon
import java.util.Locale
/**
* Created by herisulistiyanto on 02/03/21.
* KjokenKoddinger
*... | 0 | Kotlin | 0 | 0 | ed7cbacfadc2baf91540f5713329173b6dae5169 | 1,914 | pokedex-compose | The Unlicense |
sample-android/src/main/java/tv/abema/fragfit/MainActivity.kt | abema | 312,185,075 | false | null | package tv.abema.fragfit
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.ui.Modifier
im... | 2 | null | 2 | 93 | a956d4e2be81bbae9e45121c3ee5bab31d5bab55 | 1,399 | flagfit | Apache License 2.0 |
sykepenger-model/src/test/kotlin/no/nav/helse/ArbeidsgiverperiodeBuilder.kt | navikt | 193,907,367 | false | null | package no.nav.helse
import no.nav.helse.hendelser.Periode
import no.nav.helse.person.SykdomstidslinjeVisitor
import no.nav.helse.sykdomstidslinje.Dag
import no.nav.helse.sykdomstidslinje.Sykdomstidslinje
import no.nav.helse.sykdomstidslinje.SykdomstidslinjeHendelse
import no.nav.helse.økonomi.Økonomi
import java.time... | 0 | Kotlin | 2 | 3 | 9572b362ab94daa6a730331c309a1cdc0ec25e3e | 5,159 | helse-spleis | MIT License |
plugin/src/test/kotlin/org/jetbrains/hackathon2024/visitor/DeprecatingMethodVisitorTest.kt | ALikhachev | 858,702,876 | false | {"Kotlin": 37448, "Java": 265} | package org.jetbrains.hackathon2024.visitor
import org.jetbrains.hackathon2024.parser.ProguardParser
import org.jetbrains.hackathon2024.utils.parseClassFile
import org.junit.jupiter.api.Test
import org.objectweb.asm.ClassReader
import org.objectweb.asm.ClassWriter
import java.io.File
class DeprecatingMethodVisitorTe... | 0 | Kotlin | 0 | 0 | 8e6470ece4f3e04980223f9fe0efc8201024d127 | 2,004 | kapifence | Apache License 2.0 |
springmvc-automapping/src/main/kotlin/nxcloud/ext/springmvc/automapping/spi/AutoMappingFieldArgumentResolver.kt | Sunshow | 588,022,200 | false | null | package nxcloud.ext.springmvc.automapping.spi
import org.springframework.core.MethodParameter
import org.springframework.web.context.request.NativeWebRequest
import java.lang.reflect.Field
/**
* 解析入参对象中的自定义类型的属性字段
*/
interface AutoMappingFieldArgumentResolver {
fun supportsParameter(
field: Field, para... | 0 | Kotlin | 0 | 0 | ec3cbaa526a496eb72371b5e595029e773987487 | 663 | nxcloud-springmvc-automapping | Apache License 2.0 |
relive-simulator-core/src/commonMain/kotlin/xyz/qwewqa/relive/simulator/core/presets/dress/generated/dress1050017.kt | pointillion | 428,683,199 | true | {"Kotlin": 1212476, "HTML": 26704, "CSS": 26127, "JavaScript": 1640} | package xyz.qwewqa.relive.simulator.core.presets.dress.generated
import xyz.qwewqa.relive.simulator.core.stage.actor.ActType
import xyz.qwewqa.relive.simulator.core.stage.actor.Attribute
import xyz.qwewqa.relive.simulator.core.stage.actor.StatData
import xyz.qwewqa.relive.simulator.core.stage.dress.ActParameters
impor... | 0 | Kotlin | 0 | 0 | 53479fe3d1f4a067682509376afd87bdd205d19d | 10,044 | relive-simulator | MIT License |
src/main/kotlin/structure/specialStrucures/RandomCuboidLines.kt | Reddek2000 | 297,017,912 | true | {"Kotlin": 197224} | package structure.specialStrucures
import structure.*
import structure.helperClasses.CuboidConstrains
import structure.helperClasses.Point
import structure.helperClasses.SpookyWall
import kotlin.math.roundToInt
import kotlin.random.Random
fun RandomCuboidLines.run(): List<SpookyWall> {
val l= mutableListOf<Spooky... | 0 | null | 0 | 0 | 32873f427f85e851ce6c42064c7399feb08ac740 | 1,857 | beatwalls | MIT License |
app/src/main/java/com/yuchen/howyo/data/source/remote/HowYoRemoteDataSource.kt | ione0213 | 418,168,888 | false | {"Kotlin": 509380} | package com.yuchen.howyo.data.source.remote
import android.net.Uri
import androidx.lifecycle.MutableLiveData
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.firestore.FirebaseFirestore
import com.google.firebase.firestore.Query
import com.google.firebase.storage.FirebaseStorage
import com.yuche... | 0 | Kotlin | 0 | 0 | b63a8c79f881923bb049ada5081fdde63280639f | 67,336 | HowYo | MIT License |
src/main/kotlin/days/Day15.kt | TheMrMilchmann | 571,779,671 | false | null | /*
* Copyright (c) 2022 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, dis... | 0 | Kotlin | 0 | 3 | 2e01ab62e44d965a626198127699720563ed934b | 4,213 | AdventOfCode2022 | MIT License |
lib/src/main/kotlin/bstrees/model/dataBases/serialize/strategies/AvlStrategy.kt | spbu-coding-2022 | 617,202,886 | false | null | package bstrees.model.dataBases.serialize.strategies
import bstrees.model.dataBases.serialize.SerializeStrategy
import bstrees.model.dataBases.serialize.types.SerializableNode
import bstrees.model.dataBases.serialize.types.SerializableTree
import bstrees.model.trees.avl.AvlNode
import bstrees.model.trees.avl.AvlTree
... | 1 | Kotlin | 1 | 4 | 512967517f7223b500e20db3aad6f1fbfe790887 | 2,088 | trees-6 | Apache License 2.0 |
buildata-runtime/src/commonMain/kotlin/io/github/virelion/buildata/access/DynamicAccessor.kt | Virelion | 330,246,253 | false | null | /*
* Copyright 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writin... | 22 | Kotlin | 0 | 11 | e5fb247e29213e95653008a68f5bcadae71ea6c5 | 5,904 | buildata | Apache License 2.0 |
app/src/main/java/com/antonbermes/instagramapiexample/ui/details/DetailsFragment.kt | AntonBermes | 212,747,185 | false | null | package com.antonbermes.instagramapiexample.ui.details
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProviders
import com.antonbermes.in... | 0 | Kotlin | 0 | 0 | d6063ecd5ddc4ca94f00c022b2eb2575679c800f | 2,458 | InstagramApiExample | Apache License 2.0 |
app/src/main/java/com/github/jokar/zhihudaily/model/event/SettingModel.kt | MichaelJokAr | 94,307,617 | false | null | package com.github.jokar.zhihudaily.model.event
import android.arch.lifecycle.Lifecycle
import android.arch.lifecycle.LifecycleOwner
import android.support.annotation.NonNull
import android.support.v7.app.AppCompatActivity
import android.text.format.Formatter
import com.bumptech.glide.load.engine.cache.DiskCache
impor... | 4 | Kotlin | 15 | 97 | 0dbe6181fea8f45b161ead2392e0e3d1c620959f | 2,759 | ZhihuDaily | Apache License 2.0 |
src/main/kotlin/no/nav/k9brukerdialogprosessering/common/Ytelse.kt | navikt | 585,578,757 | false | null | package no.nav.k9brukerdialogprosessering.common
import no.nav.k9brukerdialogprosessering.meldinger.endringsmelding.PSBEndringsmeldingTopologyConfiguration.Companion.PSB_ENDRINGSMELDING_CLEANUP_TOPIC
import no.nav.k9brukerdialogprosessering.meldinger.endringsmelding.PSBEndringsmeldingTopologyConfiguration.Companion.PS... | 3 | Kotlin | 0 | 0 | e7e0038c71f6291447bcb4c0088d27dd464faf0a | 6,237 | k9-brukerdialog-prosessering | MIT License |
app/src/main/java/com/hudson/wanandroid/ui/fragment/setting/DefaultSettingFragment.kt | HudsonAndroid | 278,809,991 | false | null | package com.hudson.wanandroid.ui.fragment.setting
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.activityViewModels
import androidx.lifecycle.ViewModelProvider
import androidx.navigati... | 1 | Kotlin | 1 | 0 | 4c0a43cf0fc4cb6d8c4b30a79f5e5301aff7a2d8 | 2,238 | WanAndroidJetpack | Apache License 2.0 |
app/src/main/java/de/cleema/android/MainActivity.kt | sandstorm | 840,235,083 | false | {"Kotlin": 955115, "Ruby": 1773} | /*
* Created by Kumpels and Friends on 2023-01-17
* Copyright © 2023 Kumpels and Friends. All rights reserved.
*/
package de.cleema.android
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.padding
import androi... | 0 | Kotlin | 0 | 1 | ddcb7ddedbbefb8045e7299e14a2ad47329fc53e | 3,320 | cleema-android | MIT License |
app/src/main/java/com/example/kotlin_mvvm_clean_architecture_demo/presentation/viewmodel/tvshow/TVShowViewModelFactory.kt | caramelWaffle | 291,373,142 | false | null | package com.example.kotlin_mvvm_clean_architecture_demo.presentation.viewmodel.tvshow
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.example.kotlin_mvvm_clean_architecture_demo.domain.usecase.TVShowUseCase
class TVShowViewModelFactory(private val tvShowUseCase: TVShowUseCas... | 0 | Kotlin | 0 | 0 | d8b8ac5f828e0f3fccb418b142a8d06eda87f135 | 634 | Kotlin-MVVM-Clean-Architecture-Demo | MIT License |
app/src/main/java/fi/kroon/vadret/presentation/warning/display/model/ElapsedTime.kt | marvinmosa | 241,497,201 | true | {"Kotlin": 871560} | package fi.kroon.vadret.presentation.warning.display.model
data class ElapsedTime(
val diffInMillis: Long,
val resId: Int
) | 0 | null | 0 | 0 | f8149920c34bb3bc5e3148785ce217e37e596fbe | 132 | android | Apache License 2.0 |
app/src/main/java/com/wolkowiczmateusz/securitysocialoffline/extentions/ActivityExtentions.kt | MateuszWolkowicz | 200,810,450 | false | null | package com.wolkowiczmateusz.securitysocialoffline.extentions
import android.app.Activity
import android.content.Intent
import android.opengl.Visibility
import android.view.View
import com.wolkowiczmateusz.securitysocialoffline.HomeActivity
import com.wolkowiczmateusz.securitysocialoffline.SecretActivity
import com.wo... | 0 | Kotlin | 0 | 2 | 199d6293859a2940296a166d59c3fd4a6c57d9da | 1,532 | security-social-offline | Apache License 2.0 |
amazon/sns/fake/src/main/kotlin/org/http4k/connect/amazon/sns/FakeSNS.kt | http4k | 295,641,058 | false | {"Kotlin": 1624429, "Handlebars": 10370, "CSS": 5434, "Shell": 3178, "JavaScript": 2076, "Python": 1834, "HTML": 675} | package org.http4k.connect.amazon.sns
import org.http4k.aws.AwsCredentials
import org.http4k.chaos.ChaoticHttpHandler
import org.http4k.chaos.start
import org.http4k.connect.amazon.core.model.AwsAccount
import org.http4k.connect.amazon.core.model.Region
import org.http4k.connect.amazon.sns.model.MessageAttribute
impor... | 7 | Kotlin | 17 | 37 | 94e71e6bba87d9c79ac29f7ba23bdacd0fdf354c | 1,356 | http4k-connect | Apache License 2.0 |
IronTracker/app/src/main/java/com/example/irontracker/ui/scoreboard/ScoreboardAdapter.kt | zhenyuanlu | 796,742,557 | false | {"Kotlin": 31011} | package com.example.irontracker.ui.scoreboard
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.example.irontracker.R
class ScoreboardAdapter(private val scoreboardList: List<ScoreboardIt... | 0 | Kotlin | 0 | 0 | 49f2ea14b19a23395f7f951a35f88a823922e97a | 1,440 | ironTracker | MIT License |
src/main/kotlin/dagger/cafeteras/BombasModule.kt | joseluisgs | 486,502,940 | false | null | package dagger.cafeteras
import dagger.Binds
import dagger.Module
@Module
internal abstract class BombasModule {
@Binds // No devuelvo nada, solo bindeo el objeto,por eso no privider
abstract fun providePump(bomba: Termosifon): Bomba
} | 0 | Kotlin | 4 | 16 | 6e1adc643f20c460b5869c12c6d73c933f39caa7 | 245 | Kotlin-DI-Ejemplos | MIT License |
app/src/main/java/com/akshay/roomaccounting/utility/MoshiAdapters.kt | anandwana001 | 470,781,738 | false | null | /**
* Created by anandwana001 on
* 27, February, 2022
**/
package com.akshay.roomaccounting.utility
import com.squareup.moshi.JsonAdapter
import com.squareup.moshi.Moshi
import com.squareup.moshi.Types
import javax.inject.Inject
/**
* This is a Moshi specific adapter to parse the json of object or list data.
*/... | 2 | null | 2 | 29 | 9901444c7e94063f80c244b7b3b54a09a2141727 | 1,126 | RoomAccounting | MIT License |
app/src/main/java/xyz/teamgravity/roomtrigger/data/model/CountModel.kt | raheemadamboev | 524,062,862 | false | {"Kotlin": 13975} | package xyz.teamgravity.roomtrigger.data.model
data class CountModel(
val id: Long = 0,
val count: Int,
)
| 0 | Kotlin | 0 | 0 | a18940bf0549881efe72d741b935a88d5ee17be7 | 115 | room-trigger | Apache License 2.0 |
android/src/main/java/com/reactnativekeyboardcontroller/log/Logger.kt | kirillzyusko | 482,596,054 | false | {"TypeScript": 313244, "Kotlin": 124719, "Swift": 59411, "Objective-C++": 26156, "JavaScript": 16315, "Objective-C": 14055, "Ruby": 5246, "Java": 902, "Shell": 149, "C": 103} | package com.reactnativekeyboardcontroller.log
import android.util.Log
import com.reactnativekeyboardcontroller.BuildConfig
object Logger {
private val enabled = BuildConfig.DEBUG
fun i(
tag: String?,
message: String,
throwable: Throwable? = null,
) {
if (enabled) {
Log.i(tag, message, thr... | 24 | TypeScript | 71 | 1,639 | ee4aadaf212c2ade1251f61ac0bc01b67e63d209 | 495 | react-native-keyboard-controller | MIT License |
app/src/main/java/com/wechantloup/side/modules/home/HomeActivity.kt | Pilou44 | 187,889,252 | false | null | package com.wechantloup.side.modules.home
import android.Manifest
import android.annotation.SuppressLint
import android.content.pm.PackageManager
import android.location.Location
import android.location.LocationListener
import android.location.LocationManager
import android.os.Bundle
import android.view.Menu
import an... | 0 | Kotlin | 0 | 0 | 0bae574d1c95ec8c0e72435a0d74d07e011203b7 | 7,717 | side | Apache License 2.0 |
thrifty-java-codegen/src/main/kotlin/com/bendb/thrifty/gen/FieldNamer.kt | benjamin-bader | 52,393,048 | false | {"Kotlin": 968674, "Java": 139202, "Thrift": 60186, "ANTLR": 4742, "Shell": 361} | /*
* Thrifty
*
* Copyright (c) <NAME>
* Copyright (c) Microsoft Corporation
*
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | 0 | Kotlin | 0 | 1 | b1a6c4a871016bb2a24c4c5e4ae9c39a1e31cc27 | 1,114 | thrifty | Apache License 2.0 |
app/src/main/java/uk/co/jakelee/pixelbookshop/utils/Xp.kt | JakeSteam | 233,470,501 | false | {"Kotlin": 133420} | package uk.co.jakelee.pixelbookshop.utils
import kotlin.math.floor
import kotlin.math.pow
import kotlin.math.sqrt
class Xp {
companion object {
private const val levelModifier = 0.05
fun xpToLevel(xp: Long) = (levelModifier * sqrt(xp.toDouble())).toInt()
fun levelToXp(level: Int) = (lev... | 0 | Kotlin | 0 | 1 | cdf133de12bfd99c6aa5dddd43d406090a7176a9 | 856 | PixelBookshop | MIT License |
player/src/main/java/com/kafka/player/PlayerModule.kt | vipulyaara | 170,554,386 | false | null | package com.kafka.player
import android.app.Application
import android.app.NotificationManager
import android.content.Context
import com.kafka.player.playback.player.Player
import com.kafka.player.playback.player.RealPlayer
import com.kafka.player.timber.permissions.PermissionsManager
import com.kafka.player.timber.pe... | 0 | Kotlin | 4 | 18 | 71a639047c246aa62c33fa472ab70100da25f727 | 1,164 | Kafka | Apache License 2.0 |
src/test/kotlin/com/ohelshem/api/ApiEngineTest.kt | OhelShem | 52,084,451 | false | null | /*
* Copyright 2016 <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 writi... | 0 | Kotlin | 0 | 0 | ffe361e0d5064a2c09640c9e59fd2345818cab8d | 1,699 | api-jvm | Apache License 2.0 |
src/main/kotlin/me/kqn/gptbot/HookPlugin.kt | kqnan | 585,183,274 | false | null | package me.kqn.gptbot
import org.black_ixx.playerpoints.PlayerPoints
import org.black_ixx.playerpoints.PlayerPointsAPI
import org.bukkit.Bukkit
object HookPlugin {
val playerPointsAPI:PlayerPointsAPI
init {
playerPointsAPI= PlayerPointsAPI(Bukkit.getPluginManager().getPlugin("PlayerPoints") as Player... | 0 | Kotlin | 0 | 1 | d03df945f260b3ff8886076d5a86a58cb86b051a | 337 | GptBot | Creative Commons Zero v1.0 Universal |
nft/core/src/main/kotlin/com/rarible/protocol/nft/core/service/item/meta/ContentMetaService.kt | NFTDroppr | 418,665,809 | true | {"Kotlin": 2329156, "Scala": 37343, "Shell": 6001, "HTML": 547} | package com.rarible.protocol.nft.core.service.item.meta
import com.fasterxml.jackson.databind.ObjectMapper
import com.rarible.core.cache.CacheService
import com.rarible.core.cache.get
import com.rarible.core.common.orNull
import com.rarible.core.common.toOptional
import com.rarible.protocol.nft.core.model.ContentMeta
... | 0 | Kotlin | 0 | 1 | b1efdaceab8be95429befe80ce1092fab3004d18 | 2,376 | ethereum-indexer | MIT License |
src/test/kotlin/com/atlassian/performance/tools/infrastructure/api/os/UbuntuTest.kt | atlassian | 172,059,830 | false | {"Kotlin": 209879} | package com.atlassian.performance.tools.infrastructure.api.os
import com.atlassian.performance.tools.ssh.api.DetachedProcess
import com.atlassian.performance.tools.ssh.api.SshConnection
import com.atlassian.performance.tools.ssh.api.SshHost
import com.atlassian.performance.tools.ssh.api.auth.PasswordAuthentication
imp... | 7 | Kotlin | 26 | 11 | 181558f71409dd93b0aa50e44566a069ab6620e2 | 3,623 | infrastructure | Apache License 2.0 |
tilbakekreving/domain/src/main/kotlin/tilbakekreving/domain/kravgrunnlag/påsak/KravgrunnlagStatusendringPåSakHendelse.kt | navikt | 227,366,088 | false | {"Kotlin": 9043533, "Shell": 4369, "TSQL": 1233, "Dockerfile": 800} | package tilbakekreving.domain.kravgrunnlag.påsak
import no.nav.su.se.bakover.common.domain.Saksnummer
import no.nav.su.se.bakover.common.tid.Tidspunkt
import no.nav.su.se.bakover.hendelse.domain.HendelseId
import no.nav.su.se.bakover.hendelse.domain.Hendelsesversjon
import no.nav.su.se.bakover.hendelse.domain.Sakshend... | 1 | Kotlin | 1 | 1 | bcfe10b28af8a9a8592c0cf8422d19b6892ee872 | 4,223 | su-se-bakover | MIT License |
fontawesome/src/de/msrd0/fontawesome/icons/FA_GLIDE_G.kt | msrd0 | 363,665,023 | false | null | /* @generated
*
* This file is part of the FontAwesome Kotlin library.
* https://github.com/msrd0/fontawesome-kt
*
* This library is not affiliated with FontAwesome.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 0 | Kotlin | 0 | 0 | 2fc4755051325e730e9d012c9dfe94f5ea800fdd | 1,878 | fontawesome-kt | Apache License 2.0 |
app/src/main/java/org/gittner/osmbugs/OsmBugsMyLocationNewOverlay.kt | ChristopherGittner | 11,003,677 | false | {"Kotlin": 139829} | package org.gittner.osmbugs
import org.osmdroid.views.MapView
import org.osmdroid.views.overlay.mylocation.MyLocationNewOverlay
class OsmBugsMyLocationNewOverlay(mapView: MapView, followCb: (Boolean) -> Unit) : MyLocationNewOverlay(mapView) {
private val mFollowCb : (Boolean) -> Unit
init {
mFollowCb... | 8 | Kotlin | 5 | 23 | df69fd8f09ee09c12e6d75d2e72bfd3683f3b53c | 563 | OSMBugs | MIT License |
jvm-runtime/testdata/kotlin/kotlinserver/src/main/kotlin/xyz/block/ftl/test/Shape.kt | TBD54566975 | 607,506,228 | false | {"Go": 2022889, "TypeScript": 265733, "Java": 250084, "Shell": 36119, "Rust": 32551, "Kotlin": 23597, "PLpgSQL": 18003, "Just": 15838, "HCL": 4495, "JavaScript": 2073, "Mustache": 1586, "HTML": 549, "MDX": 191, "CSS": 59} | package xyz.block.ftl.test
import xyz.block.ftl.Enum
@Enum
enum class Shape(val value: String) {
Circle("circle"),
Square("square"),
Triangle("triangle");
}
| 245 | Go | 7 | 21 | ce5715e45add6bbf22912708b5bdcf04be068f30 | 165 | ftl | Apache License 2.0 |
src/test/kotlin/de/joshi/modpackdownloader/parser/ManifestParserTest.kt | Joshyx | 604,108,373 | false | null | package de.joshi.modpackdownloader.parser
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.Assertions.*
import java.io.File
import java.io.FileNotFoundException
class ManifestParserTest {
private val modpackFile = File("src/test/resources/modpack")
@Test
fun getManifestThrowsException() {
... | 0 | Kotlin | 1 | 2 | 9c6582d217127e8468f4da2dad2f5ba69c919cf0 | 612 | ModpackDownloader | MIT License |
airwallex/src/main/java/com/airwallex/android/model/parser/CreatePaymentConsentParamsParser.kt | nieqiyuan | 390,658,464 | true | {"Kotlin": 562120} | package com.airwallex.android.model.parser
import com.airwallex.android.model.*
import com.airwallex.android.model.AirwallexJsonUtils
import org.json.JSONObject
class CreatePaymentConsentParamsParser : ModelJsonParser<CreatePaymentConsentParams> {
override fun parse(json: JSONObject): CreatePaymentConsentParams ... | 0 | Kotlin | 0 | 1 | 72b5befb79147a2f012d66d1136e9d37bb77950f | 1,521 | airwallex-payment-android | MIT License |
data/legacy/src/commonMain/kotlin/app/tivi/data/mappers/ShowIdToTraktOrImdbIdMapper.kt | chrisbanes | 100,624,553 | false | {"Kotlin": 1003653, "Swift": 24790, "HTML": 23782, "Ruby": 4088, "Shell": 3317, "Python": 1228} | // Copyright 2018, <NAME> and the Tivi project contributors
// SPDX-License-Identifier: Apache-2.0
package app.tivi.data.mappers
import app.tivi.data.daos.TiviShowDao
import app.tivi.data.db.DatabaseTransactionRunner
import me.tatarka.inject.annotations.Inject
@Inject
class ShowIdToTraktOrImdbIdMapper(
private v... | 23 | Kotlin | 876 | 6,626 | e261ffbded01c1439b93c550cd6e714c13bb9192 | 609 | tivi | Apache License 2.0 |
draw/src/main/java/com/divyanshu/draw/widget/tools/drawing/PathAction.kt | hydrolythe | 353,694,404 | false | null | package com.divyanshu.draw.widget.tools.drawing
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.Path
import com.divyanshu.draw.widget.Action
import com.divyanshu.draw.widget.Line
import com.divyanshu.draw.widget.Move
import com.divyanshu.draw.widget.Quad
import com.divyanshu.draw.w... | 0 | Kotlin | 0 | 0 | 14c6aec4b3c0a42bc73a7f779964d166fffeea20 | 1,666 | FAITHAndroid | The Unlicense |
src/jsMain/kotlin/pouchdb/index.pouchdb_find.module_pouchdb-find.kt | epabst | 60,592,428 | false | null | @file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS", "EXTERNAL_DELEGATION")
package pouchdb
import kotlin.js.*
@JsModule("pouchdb-find")
external val pouchdb_find: Plugin | 14 | Kotlin | 2 | 3 | 5d5129e556c8b168b0a0b838eec694664af37902 | 251 | kotlin-showcase | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.