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/dev/ebelekhov/typechecker/types/TupleType.kt | BelehovEgor | 759,297,417 | false | {"Gradle Kotlin DSL": 2, "INI": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Smalltalk": 470, "StringTemplate": 1, "Kotlin": 77, "Java": 6, "ANTLR": 2, "YAML": 1, "XML": 8} | package dev.ebelekhov.typechecker.types
import dev.ebelekhov.typechecker.ExitException
import dev.ebelekhov.typechecker.errors.UnexpectedTupleLengthError
import org.antlr.v4.runtime.RuleContext
data class TupleType(val types: List<Type>) : Type {
override fun toString(): String {
return "{${types.joinToSt... | 0 | Java | 0 | 0 | 17e95553f3780baaaddd7e6cb50981d61bd9029f | 760 | stella-type-checker | MIT License |
jdbc/spring-data-jpa-v5/src/main/kotlin/tech/ydb/jpa/simple/User.kt | ydb-platform | 491,175,873 | false | {"Maven POM": 20, "Text": 1, "Ignore List": 1, "Markdown": 2, "INI": 9, "XML": 12, "Kotlin": 30, "SQL": 2, "Java": 74, "YAML": 3, "HTML": 1} | package tech.ydb.jpa.simple
import javax.persistence.*
import org.springframework.data.util.ProxyUtils
@Entity
@Table(name = "Users", indexes = [Index(name = "username_index", columnList = "username")])
@NamedQuery(name = "User.findByTheUsersName", query = "from User u where u.username = ?1")
class User {
@Id
... | 1 | Java | 4 | 6 | 125bb467d959b5a10c44d7a30557996a6d204d6e | 934 | ydb-java-examples | Apache License 2.0 |
app/src/main/java/com/lifesolutions/bd/kotlinCode/ui/activities/WebViewActivity.kt | alamin1x0 | 601,487,426 | false | {"Java": 2650731, "Kotlin": 822798, "Assembly": 59} | package com.lifesolutions.bd.kotlinCode.ui.activities
import android.annotation.SuppressLint
import android.os.Bundle
import android.view.ViewTreeObserver.OnScrollChangedListener
import android.webkit.WebChromeClient
import android.webkit.WebView
import android.webkit.WebViewClient
import android.widget.ProgressBar
im... | 1 | null | 1 | 1 | 87b3217cedb0340417a8a0fae3b0ef2741ad9012 | 2,900 | Lifesolutions | BSD Source Code Attribution |
core/src/com/erikcupal/theblackcatclient/gui/GameStage.kt | ErikCupal | 86,386,290 | false | null | package com.erikcupal.theblackcatclient.gui
import com.badlogic.gdx.scenes.scene2d.ui.Image
import com.badlogic.gdx.scenes.scene2d.ui.TextButton
import com.badlogic.gdx.utils.Align
import com.erikcupal.theblackcatclient.*
import com.erikcupal.theblackcatclient.core.GameCore
import com.erikcupal.theblackcatclient.gui.G... | 0 | Kotlin | 0 | 1 | 6e5368100cfde3fabfbd69a2fcdc5a9886449d56 | 2,798 | the-black-cat-client | MIT License |
app/src/main/java/com/lumyuan/filebrowser/model/ListRootLayoutViewModel.kt | lumyuan | 509,828,039 | false | null | package com.lumyuan.filebrowser.model
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
class ListRootLayoutViewModel: ViewModel() {
val viewLength = MutableLiveData(0F)
} | 1 | Kotlin | 0 | 3 | ee65703fc5946f692364c74e1e6a4c55a00eb7ec | 205 | FileBrowser | Apache License 2.0 |
app/src/main/java/com/lobo/myjourney/common/base/BaseViewModel.kt | viniciuslobo21 | 456,291,174 | false | {"Kotlin": 68883} | package com.lobo.myjourney.common.base
import androidx.lifecycle.ViewModel
interface PresentationModel<T, A> {
val viewState: T
fun dispatchViewAction(viewAction: A)
}
abstract class BaseViewModel<T, A> : ViewModel(), PresentationModel<T, A> | 0 | Kotlin | 0 | 0 | 39c002f20c7716f12ada4786e2f5f8671dbb0fd9 | 252 | myJourney | MIT License |
seed-spring/src/main/kotlin/pl/seed/mail/HelloEmail.kt | marwoj | 322,919,630 | false | null | package pl.seed.mail
import javax.validation.constraints.Email
import javax.validation.constraints.NotBlank
import javax.validation.constraints.Size
data class HelloEmail(
@get:NotBlank @Size(max = 100) override val title: String,
@get:NotBlank @Size(max = 100) override val body: String,
@get:Email overri... | 0 | Kotlin | 1 | 5 | 16eea8802cdb171d66378d6d02afda580d38471e | 347 | seed-spring-vue-aws-ec2 | MIT License |
app/src/main/java/com/solar/retrofit/service/UserService.kt | KennethSS | 303,311,042 | false | null | package com.solar.retrofit.service
import com.solar.retrofit.response.GetUserResponse
import retrofit2.http.GET
import retrofit2.http.Header
import retrofit2.http.Query
interface UserService {
@GET("search/users")
suspend fun getUserList(
@Query("q", encoded = true) query: String
): GetUserRespons... | 0 | Kotlin | 0 | 0 | 6ad85ed8f970b95a395147eca82a7f9084ad3ebf | 323 | RetrofitFactory | Apache License 2.0 |
kafka/src/main/java/com/rarible/core/kafka/RaribleKafkaMessageListenerFactory.kt | rarible | 357,923,214 | false | null | package com.rarible.protocol.apikey.kafka
import com.rarible.core.kafka.RaribleKafkaBatchEventHandler
import com.rarible.core.kafka.RaribleKafkaEventHandler
import com.rarible.core.common.asyncWithTraceId
import com.rarible.core.logging.withBatchId
import com.rarible.core.logging.withTraceId
import kotlinx.coroutines.... | 0 | Kotlin | 3 | 9 | 539c83adc0a92771da398d4f09c33111fd4735e7 | 3,850 | service-core | MIT License |
oneadapter/src/androidTest/java/com/idanatz/oneadapter/tests/api/AddSingleItem.kt | Bagaskarakbar | 230,876,664 | true | {"Kotlin": 89267} | package com.idanatz.oneadapter.tests.api
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.idanatz.oneadapter.helpers.BaseTest
import org.amshove.kluent.shouldContain
import org.amshove.kluent.shouldEqualTo
import org.awaitility.Awaitility.await
import org.junit.Test
import org.junit.runner.RunWith
@Run... | 0 | null | 0 | 0 | f57b18cee563d517fbf9e68a883d459a442bda79 | 1,100 | OneAdapter | MIT License |
app/src/main/kotlin/com/fphoenixcorneae/cloud/music/https/RetrofitFactory.kt | FPhoenixCorneaE | 418,817,788 | false | null | package com.fphoenixcorneae.cloud.music.https
import com.fphoenixcorneae.cloud.music.const.UrlConst
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
/**
* @desc:
* @date:2023/03/22 10:06
*/
class RetrofitFactory... | 0 | Kotlin | 2 | 2 | 9d735a67726ec52058e349552884ac7ba55d0376 | 1,208 | compose-netease-cloud-music | Apache License 2.0 |
app/src/main/java/com/floatworld/diacsc/connectionActivity/ConnectionActivity.kt | sheepthefather | 718,470,059 | false | {"Kotlin": 196025} | package com.floatworld.diacsc.connectionActivity
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import an... | 0 | Kotlin | 0 | 0 | bf389165e4fe65eb4dee8044134a5d1dfddcd55e | 1,721 | Diacsc | Apache License 2.0 |
app/src/main/java/net/vezk/colorflipper/viewmodel/ViewModelHex.kt | va3mezk | 422,742,459 | false | null | package net.vezk.colorflipper.viewmodel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import net.vezk.colorflipper.model.RandomProvider
import net.vezk.colorflipper.model.hexColor
//VIEW MODEL
class ViewModelHex: ViewModel() {
val hexModel = MutableLiveData<hexColor>()
fun rand... | 0 | Kotlin | 1 | 1 | bac67cc0f52a8c8653f2f9a0c997bfc7252cc3c3 | 430 | Color_Flipper | MIT License |
channels/jaicp/src/main/kotlin/com/justai/jaicf/channel/jaicp/logging/internal/SessionEvent.kt | sbarale | 343,482,868 | true | {"Kotlin": 395820, "Java": 44038} | package com.justai.jaicf.channel.jaicp.logging.internal
import com.justai.jaicf.channel.jaicp.JSON
import com.justai.jaicf.channel.jaicp.context.ContextSerializable
import com.justai.jaicf.channel.jaicp.context.ContextSerializableService
import kotlinx.serialization.Serializable
internal object SessionEventService : ... | 0 | null | 0 | 0 | e13ed04d4897f6ffe868e690a67d902ad215156f | 881 | jaicf-kotlin | Apache License 2.0 |
app/src/main/java/de/klimek/compass/Notification.kt | Tetr4 | 299,129,089 | false | {"Kotlin": 8847} | package de.klimek.compass
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Intent
import android.provider.Settings
import androidx.core.app.NotificationCompat
private const val CHANNEL_ID = "COMPASS_CH... | 1 | Kotlin | 0 | 4 | 110b23be85fbd1ad6e0c737b94a945f4d1c3ce91 | 1,165 | CompassTile | Apache License 2.0 |
domain/timeline/src/main/kotlin/uk/gov/justice/digital/hmpps/educationandworkplanapi/domain/timeline/service/PrisonTimelineService.kt | ministryofjustice | 653,598,082 | false | {"Kotlin": 1128146, "Mustache": 2705, "Dockerfile": 1346} | package uk.gov.justice.digital.hmpps.educationandworkplanapi.domain.timeline.service
import uk.gov.justice.digital.hmpps.educationandworkplanapi.domain.timeline.TimelineEvent
interface PrisonTimelineService {
/**
* Returns a [List] of [TimelineEvent]s that represent whenever a Prisoner entered or left a Prison,... | 1 | Kotlin | 0 | 2 | 8857630560158093ba5cb429acbac1121342665a | 439 | hmpps-education-and-work-plan-api | MIT License |
app/src/main/java/com/fbiego/dt78/AboutActivity.kt | fbiego | 285,092,125 | false | null | /*
*
* MIT License
*
* Copyright (c) 2021 <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... | 4 | null | 21 | 41 | 5c694fa0e09d2a64ad40ff000b989525a264ec5c | 4,738 | DT78-App-Android | MIT License |
game/core/src/com/lyeeedar/ActionSequence/Actions/StrikeTileAction.kt | Lyeeedar | 257,323,195 | false | null | package com.lyeeedar.ActionSequence.Actions
import com.badlogic.gdx.graphics.g2d.TextureRegion
import com.badlogic.gdx.math.*
import com.badlogic.gdx.utils.Array
import com.badlogic.gdx.utils.ObjectFloatMap
import com.lyeeedar.ActionSequence.ActionSequenceState
import com.lyeeedar.Components.*
import com.lyeeedar.Rend... | 0 | Kotlin | 0 | 0 | 5068af2489fa6ff52a99016bceafca5690864754 | 3,953 | PortalClosers | Apache License 2.0 |
src/main/kotlin/com/beust/klaxon/DSL.kt | tristancaron | 118,772,740 | true | {"Kotlin": 110644, "Batchfile": 126, "Java": 108, "Shell": 99} | package com.beust.klaxon
import com.beust.klaxon.Render.renderValue
import java.util.*
fun valueToString(v: Any?, prettyPrint: Boolean = false, canonical : Boolean = false) : String =
StringBuilder().apply {
Render.renderValue(v, this, prettyPrint, canonical, 0)
}.toString()
interface JsonBase {
... | 0 | Kotlin | 0 | 0 | 9baa69c75b031c422ad780991112da509eb5409a | 3,026 | klaxon | Apache License 2.0 |
encode/src/main/kotlin/money/rave/useful/encode/Encoder.kt | rave-money | 732,967,856 | false | {"Kotlin": 6570} | package money.rave.useful.encode
interface Encoder {
fun encode(data: ByteArray): ByteArray
fun encodeToString(data: ByteArray): String
} | 0 | Kotlin | 0 | 0 | 3d16d7a550b24085fa099fa10830b7cc9666c7ff | 148 | useful-library | MIT License |
app/src/main/java/com/bigthinkapps/walletwesend/redux/actions/EthereumListActions.kt | xegole | 164,746,245 | false | null | package com.bigthinkapps.walletwesend.redux.actions
import com.bigthinkapps.walletwesend.model.EthereumData
import org.rekotlin.Action
class InitializeEthereumList : Action
class DisplayBalances(val ethereumObjects: List<EthereumData>) : Action
class AddEthereumData(val ethereumObject: EthereumData) : Action | 0 | Kotlin | 0 | 0 | 57d63cd9b59a071e670634286dd89e5fd8e21ab7 | 314 | WalletEthereum | MIT License |
src/main/kotlin/com/rose/gateway/shared/reflection/CanBe.kt | nicholasgrose | 377,028,896 | false | {"Kotlin": 261314} | package com.rose.gateway.shared.reflection
import kotlin.reflect.KClass
import kotlin.reflect.KType
import kotlin.reflect.full.isSubclassOf
import kotlin.reflect.full.isSubtypeOf
/**
* Checks whether a class can be cast to another class
*
* @param other The class we want to check if this class is a subclass of
* ... | 26 | Kotlin | 1 | 4 | 896a6e99b74c97128c74fd166b80c31d183fb36c | 730 | Gateway | MIT License |
library/file/src/commonTest/kotlin/io/matthewnelson/kmp/file/MkdirsUnitTest.kt | 05nelsonm | 729,001,287 | false | {"Kotlin": 135683, "Java": 105} | /*
* Copyright (c) 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 5 | Kotlin | 0 | 1 | a5a9d4f0367fc44520da0dd6ed1a219916ce729e | 1,094 | kmp-file | Apache License 2.0 |
feature/connection/src/main/kotlin/flow/connection/ConnectionsSideEffect.kt | andrikeev | 503,060,387 | false | null | package flow.connection
internal sealed interface ConnectionsSideEffect {
object ShowConnectionDialog : ConnectionsSideEffect
}
| 0 | Kotlin | 2 | 8 | a850db05575d58cd7676823f6185311c595c4dd0 | 133 | Flow | MIT License |
src/main/kotlin/de/klg71/keycloakmigration/changeControl/actions/client/mapper/AddMapperAction.kt | Interview-IA | 406,639,393 | true | {"Kotlin": 366123, "HTML": 19387, "SCSS": 16050, "JavaScript": 4531, "Shell": 1050, "Dockerfile": 163} | package de.klg71.keycloakmigration.changeControl.actions.client.mapper
import de.klg71.keycloakmigration.changeControl.actions.Action
import de.klg71.keycloakmigration.changeControl.actions.MigrationException
import de.klg71.keycloakmigration.keycloakapi.KeycloakClient
import de.klg71.keycloakmigration.keycloakapi.cli... | 0 | null | 0 | 0 | f02f6b1fb88b95392407df17d19220f2582e9854 | 1,705 | keycloakmigration | MIT License |
browser-kotlin/src/jsMain/kotlin/web/blob/BlobPart.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6272741} | // Automatically generated - do not modify!
package web.blob
typealias BlobPart = Any /* BufferSource | Blob | string */
| 0 | Kotlin | 8 | 36 | 95b065622a9445caf058ad2581f4c91f9e2b0d91 | 123 | types-kotlin | Apache License 2.0 |
katan-api/src/main/kotlin/me/devnatan/katan/api/Katan.kt | KatanPanel | 182,468,654 | false | null | /*
* Copyright 2020-present <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 ... | 0 | Kotlin | 7 | 48 | 4ba33e0ff126134e6d02b672bbccf72bf2defad5 | 4,276 | Katan | Apache License 2.0 |
src/test/kotlin/leetcode/problem0118/PascalTriangleTest.kt | ayukatawago | 456,312,186 | false | null | package leetcode.problem0118
import kotlin.test.Test
import kotlin.test.assertEquals
class PascalTriangleTest {
private val target = PascalTriangle()
@Test
fun test1() {
assertEquals(
listOf(listOf(1)),
target.generate(1)
)
}
@Test
fun test2() {
... | 0 | Kotlin | 0 | 0 | f9602f2560a6c9102728ccbc5c1ff8fa421341b8 | 973 | leetcode-kotlin | MIT License |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/DeleteUser.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
i... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,968 | icons | MIT License |
src/test/kotlin/de/klg71/keycloakmigration/changeControl/actions/client/mapper/AddUserAttributeMapperActionIntegTest.kt | manaspatnaik | 286,766,873 | true | {"Kotlin": 347093, "HTML": 19387, "CSS": 16050, "JavaScript": 4531, "Shell": 999, "Dockerfile": 163} | package de.klg71.keycloakmigration.changeControl.actions.client.mapper
import de.klg71.keycloakmigration.AbstractIntegrationTest
import de.klg71.keycloakmigration.changeControl.actions.MigrationException
import de.klg71.keycloakmigration.changeControl.actions.client.AddSimpleClientAction
import de.klg71.keycloakmigrat... | 0 | null | 0 | 0 | a833ecc7c386688fb252e833a5d7c69c650dbe82 | 2,257 | keycloakmigration | MIT License |
src/main/kotlin/com/github/nwpistols/jetbrains/services/MyApplicationService.kt | nwpistols | 501,901,583 | false | null | package com.github.nwpistols.jetbrains.services
import com.github.nwpistols.jetbrains.MyBundle
class MyApplicationService {
init {
println(MyBundle.message("applicationService"))
}
}
| 0 | Kotlin | 1 | 0 | 0179e931bfb09960473e8b096b6294bd699b0bd5 | 202 | jetbrains | Apache License 2.0 |
app/src/main/java/ru/shadowsparky/messenger/utils/SQLite/DBViewTableWrapper.kt | shadowsparky | 148,388,054 | false | null | package ru.shadowsparky.messenger.utils.SQLite
import com.google.gson.Gson
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.rxkotlin.subscribeBy
import io.reactivex.rxkotlin.toObservable
import io.reactivex.schedulers.Schedulers
import ru.shadowsparky.messenger.response_utils.Response
impor... | 0 | Kotlin | 0 | 0 | c9c14e5226c692dbdcea559806263a4cea78b1ac | 3,356 | vk-messenger-two | The Unlicense |
android-core/src/main/kotlin/org/mint/android/oracle/AndroidLogOracle.kt | ing-bank | 620,378,707 | false | null | package org.mint.android.oracle
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.flow.filterNot
import kotlinx.coroutines.flow.onEach
import kotlinx.coroutines.flow.onEmpty
import kotlinx.coroutines.runBlocking
import org.mint.android.AndroidConstants
import org.mint.android.AndroidState
import org.min... | 0 | Kotlin | 2 | 4 | abf96d311b3ebb1bba2a331a353126c653225be9 | 2,521 | mint | MIT License |
framework/src/main/java/cn/deepink/framework/delegate/FragmentDelegate.kt | betalita | 308,180,737 | false | {"Kotlin": 57096} | package cn.deepink.framework.delegate
import android.content.Context
import android.os.Bundle
import android.view.View
/**
* @since 2020/3/1
*/
interface FragmentDelegate {
fun onAttached(context: Context)
fun onCreated(savedInstanceState: Bundle?)
fun onViewCreated(v: View, savedInstanceState: Bu... | 0 | null | 0 | 0 | 0a7fe8112819ea38aa2fe2666dd067da9d8d009d | 586 | booker | Apache License 2.0 |
soil-query-compose-runtime/src/commonMain/kotlin/soil/query/compose/runtime/ContentVisibility.kt | soil-kt | 789,648,330 | false | {"Kotlin": 355830, "Makefile": 915} | // Copyright 2024 Soil Contributors
// SPDX-License-Identifier: Apache-2.0
package soil.query.compose.runtime
import androidx.compose.foundation.layout.Box
import androidx.compose.runtime.Composable
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw... | 0 | Kotlin | 1 | 96 | 70be17e7ddbccd839f986079f693b1913eaf6aa4 | 1,376 | soil | Apache License 2.0 |
src/main/kotlin/com/gatecheck/gatecheck/api/template/MessagePostRequest.kt | GateCheck | 303,724,669 | false | null | package com.gatecheck.gatecheck.api.template
import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonProperty
data class MessagePostRequest @JsonCreator constructor(@JsonProperty val text: String) | 0 | Kotlin | 0 | 0 | 2ec3d943caf052ce702ed16d75c1d1ed0b63c184 | 238 | gatecheck-backend | MIT License |
server/src/main/kotlin/de/frederikkohler/bauchglueck/model/Ingredients.kt | ChromeSD22159 | 825,951,465 | false | {"Kotlin": 762084, "Swift": 234835} | package de.frederikkohler.bauchglueck.model
import org.jetbrains.exposed.sql.Table
object Ingredients : Table() {
val id = integer("id").autoIncrement().uniqueIndex()
val value = varchar("value", 255)
val name = varchar("name", 255)
val form = reference("formID", IngredientForms.id).nullable()
val... | 2 | Kotlin | 0 | 1 | 9f6048bb4321f9459bf1710176ad8691a4ffe59a | 415 | BauchGlueck | Apache License 2.0 |
sdk/src/commonMain/kotlin/org/timemates/sdk/users/profile/types/value/UserDescription.kt | timemates | 575,534,072 | false | {"Kotlin": 152892} | package org.timemates.sdk.users.profile.types.value
import org.timemates.sdk.common.constructor.Factory
import org.timemates.sdk.common.constructor.factory
import org.timemates.sdk.common.constructor.rules.ValidationRule
import org.timemates.sdk.common.constructor.rules.lengthRange
import kotlin.jvm.JvmInline
import k... | 2 | Kotlin | 0 | 10 | 2e6f1991053b561042f0f4ff10b82592f46137fb | 792 | sdk | MIT License |
android-design-tokens/app/src/main/java/com/seljabali/designtokens/ui/HomeActivity.kt | seljabali | 231,339,929 | false | {"Kotlin": 84885} | package com.seljabali.designtokens.ui
import android.os.Bundle
import androidx.appcompat.widget.Toolbar
import androidx.fragment.app.Fragment
import com.google.android.material.appbar.AppBarLayout
import com.seljabali.designtokens.R
import com.seljabali.designtokens.ui.landingpage.LandingPageFragment
class HomeActivi... | 2 | Kotlin | 1 | 8 | 2d69582b55666d0fda4a247421c59de0d0fc0f6e | 2,037 | android-design-tokens | Creative Commons Zero v1.0 Universal |
inference/inference-webgpu/src/commonTest/kotlin/io/kinference/webgpu/WebGPUTestEngine.kt | isomethane | 591,976,225 | false | null | package io.kinference.webgpu
import io.kinference.TestEngine
import io.kinference.runners.AccuracyRunner
import io.kinference.runners.PerformanceRunner
import io.kinference.webgpu.utils.WebGPUAssertions
object WebGPUTestEngine : TestEngine<WebGPUData<*>>(WebGPUEngine) {
override fun checkEquals(expected: WebGPUDa... | 0 | Kotlin | 0 | 0 | 3056bc4ebcd03a86d0ee9ef093cdac81491325b2 | 574 | kinference | Apache License 2.0 |
ide/util/src/commonMain/kotlin/com/idex/util/iterable.kt | lhwdev | 331,217,993 | false | null | package com.idex.util
inline fun <T> iterable(crossinline block: () -> Iterator<T>) = object : Iterable<T> {
override fun iterator() = block()
}
| 0 | Kotlin | 0 | 0 | 44a69d9276bd2ea9fe8ac37115728456d1e0d64f | 148 | IDEx | Apache License 2.0 |
src/test/kotlin/io/iotconnects/capsule/TestProjectListener.kt | ipaddicting | 582,243,032 | false | {"Kotlin": 31074} | package io.github.ipaddicting.capsule
import io.kotest.core.annotation.AutoScan
import io.kotest.core.listeners.AfterProjectListener
import io.kotest.core.listeners.BeforeProjectListener
import java.sql.Timestamp
import java.time.Instant
import kotlin.reflect.KClass
@AutoScan
object TestProjectListener : BeforeProjec... | 0 | Kotlin | 0 | 0 | ca52672daca0d124bdca83d5370274baa9aa4508 | 1,163 | capsule | MIT License |
plot/src/main/kotlin/net/fwitz/math/plot/binary/dual/DualNumberFunctionRenderer.kt | txshtkckr | 410,419,365 | false | null | package net.fwitz.math.plot.binary.dual
import net.fwitz.math.binary.dual.DualNumber
import net.fwitz.math.plot.binary.BinaryNumberFunctionPanel
import net.fwitz.math.plot.binary.BinaryNumberFunctionRenderer
import net.fwitz.math.plot.renderer.filter.ValuesFilters
class DualNumberFunctionRenderer<V>(
panel: Binar... | 0 | Kotlin | 1 | 0 | c6ee97ab98115e044a46490ef3a26c51752ae6d6 | 606 | fractal | Apache License 2.0 |
app/src/main/java/io/github/mklkj/filmowy/ui/adapter/ImageBindingAdapter.kt | mklkj | 166,846,534 | false | {"HTML": 181836, "Kotlin": 179891} | package io.github.mklkj.filmowy.ui.adapter
import android.widget.ImageView
import androidx.databinding.BindingAdapter
import com.bumptech.glide.Glide
import io.github.mklkj.filmowy.R
import io.github.mklkj.filmowy.api.*
@BindingAdapter("android:image")
fun ImageView.image(url: String?) {
Glide.with(this)
... | 1 | HTML | 0 | 7 | e7f01ad5d0771254e907e59aa4df4ef0e6fd7293 | 1,485 | filmowy | Apache License 2.0 |
lib/src/test/kotlin/io/wavebeans/lib/stream/SumSampleStreamSpec.kt | WaveBeans | 174,378,458 | false | {"Kotlin": 1263856, "Shell": 6924, "Dockerfile": 408} | package io.wavebeans.lib.stream
import assertk.assertThat
import assertk.assertions.isEqualTo
import assertk.assertions.isNotSameAs
import io.wavebeans.lib.BitDepth
import io.wavebeans.lib.listOfShortsAsInts
import io.wavebeans.lib.listOfShortsAsInts
import io.wavebeans.lib.stream
import org.spekframework.spek2.Spek
i... | 26 | Kotlin | 0 | 21 | 2a0eb6b481f0f848a7e66f7cb4c395ddb47952d1 | 4,957 | wavebeans | Apache License 2.0 |
krefty-core/src/commonTest/kotlin/dev/ustits/krefty/predicate/collections/NotEmptyTest.kt | ustitc | 410,678,793 | false | {"Kotlin": 49157} | package dev.ustits.krefty.predicate.collections
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe
import io.kotest.property.Arb
import io.kotest.property.arbitrary.list
import io.kotest.property.arbitrary.string
import io.kotest.property.forAll
class NotEmptyTest : StringSpec({
"retu... | 0 | Kotlin | 1 | 8 | a0c6301bcf28154b59afcd14f32563ba40dd2993 | 662 | krefty | MIT License |
superwall/src/main/java/com/superwall/sdk/models/Serialization.kt | superwall | 642,585,064 | false | null | package com.superwall.sdk.models
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.JsonNamingStrategy
fun getSWJson(): Json =
Json {
namingStrategy = JsonNamingStrategy.SnakeCase
}
interface SerializableEntity
| 6 | null | 3 | 9 | 2582de8d48af7c0ad080e30949d920e8a34d9219 | 252 | Superwall-Android | MIT License |
app/src/test/kotlin/test/Test357.kt | likexx | 559,794,763 | false | {"Kotlin": 136661} | package test
import solution.Solution357
import kotlin.test.Test
import kotlin.test.assertEquals
class Test357 : TestBase<Solution357.Solution>(Solution357.Solution()) {
@Test
fun test() {
assertEquals(91, solution.countNumbersWithUniqueDigits(2))
assertEquals(1, solution.countNumbersWithUniqu... | 0 | Kotlin | 0 | 0 | 376352562faf8131172e7630ab4e6501fabb3002 | 407 | leetcode-kotlin | MIT License |
mastodon4j/src/main/java/com/sys1yagi/mastodon4j/api/entity/Attachment.kt | moko256 | 107,765,267 | true | {"Kotlin": 127153} | package com.sys1yagi.mastodon4j.api.entity
import com.google.gson.annotations.SerializedName
/**
* see more https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#attachment
*/
class Attachment(
@SerializedName("id") val id: Long = 0L,
@SerializedName("type") val type: String = Type.Ima... | 0 | Kotlin | 0 | 1 | 0c27fcc247f9b4471c18ca70be1e4323ba35eb54 | 1,668 | mastodon4j | MIT License |
compiler/testData/asJava/lightClasses/lightClassByFqName/CompanionObject.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... | // C
// WITH_STDLIB
// LIBRARY_PLATFORMS: JVM
class C {
companion object {
@[kotlin.jvm.JvmField] public val foo: String = { "A" }()
}
}
| 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 154 | kotlin | Apache License 2.0 |
src/main/kotlin/slatemagic/spell/effect/move/TurretSpellEffect.kt | Jempasam | 717,593,852 | false | {"Kotlin": 146073, "Java": 1020} | package slatemagic.spell.effect.move
import net.minecraft.text.Text
import net.minecraft.util.math.Vec3d
import net.minecraft.util.math.Vec3f
import slatemagic.entity.SlateMagicEntities
import slatemagic.entity.SpellTurretEntity
import slatemagic.network.messages.AdvancedParticleMessage
import slatemagic.network.messa... | 0 | Kotlin | 0 | 0 | 051f9bb093721f6c269218ab30e01bf89daea514 | 2,203 | SlateMagic | Creative Commons Zero v1.0 Universal |
app/src/main/java/dev/yunzai/milibrary/api/AuthApi.kt | yunjaena | 373,853,053 | false | null | package dev.yunzai.milibrary.api
import dev.yunzai.milibrary.data.model.Book
import dev.yunzai.milibrary.data.model.BookList
import dev.yunzai.milibrary.data.model.Review
import dev.yunzai.milibrary.data.model.ReviewList
import dev.yunzai.milibrary.data.model.Bookmark
import dev.yunzai.milibrary.data.model.BookmarkLis... | 0 | Kotlin | 0 | 2 | 4c6774ff46c20eb53465ef64366a2ee0c90d2930 | 3,404 | MiliBrary_AOS | Apache License 2.0 |
src/main/kotlin/org/teamvoided/crystalline_powers/item/StarstoneItem.kt | TeamVoided | 806,682,745 | false | {"Kotlin": 33607, "Java": 573} | package org.teamvoided.crystalline_powers.item
import dev.emi.trinkets.api.SlotReference
import net.minecraft.entity.LivingEntity
import net.minecraft.entity.effect.StatusEffectInstance
import net.minecraft.entity.effect.StatusEffects
import net.minecraft.item.ItemStack
import net.minecraft.registry.Registries
import ... | 0 | Kotlin | 0 | 0 | 472040d49f3dd7b5c3b98acf73d3785a94335fbc | 2,618 | CrystallinePowers | MIT License |
app/src/main/java/com/hermanowicz/wirelesswhisper/components/dropdown/Dropdown.kt | sirconceptz | 645,645,531 | false | {"Kotlin": 188203} | package com.hermanowicz.wirelesswhisper.components.dropdown
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import android... | 0 | Kotlin | 0 | 1 | 5e37c36d70ab6f2c385d8e69767670e034f649d7 | 1,915 | WirelessWhisper | Apache License 2.0 |
ui/login/api/src/main/kotlin/io/github/wykopmobilny/ui/login/LoginDependencies.kt | otwarty-wykop-mobilny | 374,160,630 | true | {"Kotlin": 1326147, "HTML": 66896, "Java": 38599} | package io.github.wykopmobilny.ui.login
interface LoginDependencies {
fun login(): Login
}
| 13 | Kotlin | 4 | 47 | 85b54b736f5fbcd6f62305779ed7ae2085c3b136 | 97 | wykop-android | MIT License |
app/src/main/kotlin/me/paladin/barsurasp/glance/components/GlanceTimetableHeader.kt | SpikedPaladin | 710,766,937 | false | {"Kotlin": 277782} | package me.paladin.barsurasp.glance.components
import androidx.compose.runtime.Composable
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import androidx.glance.ColorFilter
import androidx.glance.GlanceModifier
import androidx.glance.GlanceTheme
import androidx.glance.Image
import androidx.glance... | 2 | Kotlin | 0 | 0 | b6c1ee5bc2619b41609c95b1de7768d1bd31f88e | 2,885 | BarsuRasp | MIT License |
app/src/main/java/jp/numero/motion_example/MainActivity.kt | NUmeroAndDev | 281,009,910 | false | null | package jp.numero.motion_example
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.fragment.findNavController
import jp.numero.motion_example.container.ContainerTransitionActivity
import jp.numero.motion_example.databinding.ActivityMainBinding
import jp.numero.motion_e... | 0 | Kotlin | 0 | 1 | bc97451281fc208ad6ae1e55c0d99851ac5d48b1 | 1,518 | MaterialMotionExample-android | MIT License |
kotlin-antd/antd-samples/src/main/kotlin/samples/mention/Avatar.kt | ricsonhoo | 251,039,996 | true | {"Kotlin": 1197966, "CSS": 29526, "HTML": 6470, "JavaScript": 980} | package samples.mention
import antd.avatar.avatar
import antd.mention.mention
import antd.mention.nav
import kotlinext.js.js
import kotlinx.html.id
import react.*
import react.dom.*
private val webFrameworks = arrayOf(
js {
name = "React"
type = "JavaScript"
icon = "https:/... | 0 | null | 0 | 0 | 7d92fb58ae96ed7a16d70cb2832284acff023bcf | 2,905 | kotlin-js-wrappers | Apache License 2.0 |
core/src/main/java/com/dicoding/core/di/NetworkModule.kt | zakuby | 331,148,528 | false | null | package com.dicoding.core.di
import com.dicoding.core.BuildConfig
import com.dicoding.core.BuildConfig.API_KEY
import com.dicoding.core.BuildConfig.BASE_URL
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android... | 0 | Kotlin | 0 | 0 | 78aed112a3356a9854a8b6fc1708a5f05ebb7a71 | 2,385 | capstone-moviedb | Apache License 2.0 |
app/src/test/java/com/clean/mvvm/models/catMocks/MockPostFavCatModel.kt | Prashant-Chandel | 716,712,080 | false | {"Kotlin": 138282, "Java": 28017, "Assembly": 5} | package com.clean.mvvm.models.catMocks
import com.clean.mvvm.data.models.catDetails.PostFavCatModel
import com.clean.mvvm.utils.Constants
import com.google.gson.annotations.SerializedName
data class MockPostFavCatModel(
@SerializedName("image_id")
val imageId: String ="mi5",
@SerializedName("sub_id")
... | 0 | Kotlin | 0 | 1 | 47b69311155b2df5f9849c744982763689ce8042 | 530 | MVVM-Clean_Architect-Example-with-koin | Apache License 2.0 |
module_book/src/main/kotlin/com/crow/module_book/model/resp/comic_info/Groups.kt | CrowForKotlin | 610,636,509 | false | null | package com.crow.module_book.model.resp.comic_info
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class Groups(
@Json(name = "default")
val mDefault: Default,
) | 4 | Kotlin | 3 | 76 | 3b64f3bc7ef0f8014e9311f1c69515ecba83ebfc | 232 | CopyMangaX | Apache License 2.0 |
app/src/androidTest/java/com/verygoodsecurity/demoapp/actions/SetCustomBrandAction.kt | verygoodsecurity | 273,198,410 | false | {"Kotlin": 1117643, "Python": 210} | package com.verygoodsecurity.demoapp.actions
import android.view.View
import androidx.test.espresso.UiController
import androidx.test.espresso.matcher.ViewMatchers
import androidx.test.espresso.remote.annotation.RemoteMsgField
import com.verygoodsecurity.vgscollect.view.InputFieldView
import com.verygoodsecurity.vgsco... | 7 | Kotlin | 9 | 7 | 8f563a19f73e57ff090ffddd757ea8b1f4496e7b | 1,046 | vgs-collect-android | MIT License |
application/src/main/kotlin/com/walterscarborough/trafficcop/loadtest/RequestCache.kt | walterscarborough | 223,500,583 | false | null | package com.walterscarborough.trafficcop.loadtest
import com.walterscarborough.trafficcop.context.GatlingContext
fun cacheRunLoadRequest(runLoadRequest: RunLoadRequest) {
GatlingContext.INSTANCE.httpMethod = runLoadRequest.httpMethod
GatlingContext.INSTANCE.baseUrl = runLoadRequest.baseUrl
GatlingContext.... | 0 | Kotlin | 0 | 1 | cf533e29ac771babd520653b5b5fec606113c489 | 920 | traffic-cop | MIT License |
modulecheck-core/src/main/kotlin/modulecheck/core/InheritedDependencyFinding.kt | jeremiahvanofferen | 397,332,342 | true | {"Kotlin": 440018, "JavaScript": 9458, "CSS": 3037} | /*
* Copyright (C) 2021 <NAME>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 0 | null | 0 | 0 | 65455e246ffcfe398335af0ca87348d561348c54 | 2,466 | ModuleCheck | Apache License 2.0 |
src/main/kotlin/me/pi3ro/ranking/handlers/RankingHandler.kt | Pi3ro | 694,451,259 | false | {"Kotlin": 18000} | package me.pi3ro.ranking.handlers
import me.pi3ro.ranking.profile.Profile
/**
* Created by: Pi3ro
* Project: Ranking
* Date: 2023-09-20 @ 20:32
**/
class RankingHandler {
companion object {
fun updateRank(profile: Profile) {
when {
profile.points >= 250 -> profile.ranking =... | 0 | Kotlin | 0 | 0 | a17cb93bd1f2f73ef3b7129dcb5696a1b8bdcfe3 | 2,132 | Ranking | Apache License 2.0 |
swa/combinator/src/test/kotlin/edu/kit/kastel/lissa/swa/combinator/JavaPCMGeneratorTest.kt | LiSSA-Approach | 387,794,604 | false | null | package edu.kit.kastel.lissa.swa.combinator
import edu.kit.kastel.informalin.framework.models.java.JavaProject
import edu.kit.kastel.informalin.framework.models.java_x_pcm.JavaPCMConnectorImpl
import edu.kit.kastel.lissa.swa.pcm.PalladioComponentModel
import edu.kit.kastel.lissa.utils.createObjectMapper
import org.jun... | 5 | Kotlin | 0 | 3 | 3395b189d596976f2c9c6fc5d289d42a7c778393 | 2,421 | LiSSA-Core | MIT License |
DetailService/src/main/kotlin/com/github/saboteur/beeline/detailservice/repository/impl/SessionRepositoryImpl.kt | insotriplesix | 256,169,374 | false | null | package com.github.saboteur.beeline.detailservice.repository.impl
import com.github.saboteur.beeline.detailservice.model.Session
import com.github.saboteur.beeline.detailservice.repository.SessionRepository
import mu.KotlinLogging
import org.springframework.jdbc.core.JdbcTemplate
import org.springframework.jdbc.core.R... | 0 | Kotlin | 0 | 1 | 1266d45fe626d43daa302c69380ced87fcd8fcef | 1,436 | beeline-task | MIT License |
build-src/conventions/src/main/kotlin/repo.kt | mohamedotaku | 746,142,354 | false | {"Kotlin": 848796} | import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.Json
import kotlin.properties.PropertyDelegateProvider
@Serializable
data class RepositoryJsonExtension(
@SerialName("name") val extensionName: String,
@SerialName("pkg") val extensionPackage: St... | 0 | Kotlin | 0 | 1 | 36fd4f0d8d1e91a74a9fe7560c4d07eee60ca50c | 7,357 | tachiyomi-extensions-template | Apache License 2.0 |
android/fed_kit_train/src/main/java/org/eu/fedcampus/fed_kit_train/helpers/helpers.kt | Jose-Alejandro | 792,273,211 | false | {"Kotlin": 67562, "Python": 64297, "Dart": 34959, "Swift": 24345, "Ruby": 1414, "Shell": 758, "Dockerfile": 155, "Objective-C": 38} | package org.eu.fedcampus.fed_kit_train.helpers
import android.annotation.SuppressLint
import android.content.Context
import android.provider.Settings
import android.util.Log
import java.io.BufferedReader
import java.io.File
import java.io.IOException
import java.io.InputStreamReader
import java.io.RandomAccessFile
imp... | 0 | Kotlin | 0 | 0 | bbc8cc76f9423dc9c4055ddf2692902195d90497 | 4,008 | FedKit | MIT License |
wear/src/main/java/com/devlomi/prayerwatchface/ui/madhabmethods/MadhabMethodsScreen.kt | 3llomi | 569,805,694 | false | {"Kotlin": 353465} | package com.devlomi.prayerwatchface.ui.madhabmethods
import androidx.compose.foundation.focusable
import androidx.compose.foundation.gestures.animateScrollBy
import androidx.compose.foundation.gestures.scrollBy
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.runtime.Composable
import and... | 2 | Kotlin | 2 | 9 | d42a6c69d5013177274d127484696173d67ee33d | 2,875 | PrayerWatchFace | Apache License 2.0 |
app/src/main/java/com/polendina/egyptpostalcode/OfficeCard.kt | z0xyz | 671,347,515 | false | null | package com.polendina.egyptpostalcode
import android.util.Log
import android.widget.Toast
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation... | 0 | Kotlin | 0 | 0 | 1bc984ea218c7df163fc0a1cc48a38fd406c7af4 | 5,220 | EgyptPostalCode | MIT License |
app/src/main/java/com/example/scheduleviewer/MainActivity.kt | Ariari04 | 817,658,251 | false | {"Kotlin": 24746, "Java": 749} | package com.example.scheduleviewer
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.setupWithNavController
import com.google.android.material.bottomnavigation.BottomNavigationView
class Ma... | 0 | Kotlin | 0 | 0 | 5d4f70c79b599bdbac28ea55c73278dd7760710d | 1,011 | INAISChedule_Client | MIT License |
app/src/main/java/org/coepi/android/ble/BleEnabler.kt | Co-Epi | 249,138,523 | false | null | package org.coepi.android.ble
import android.app.Activity
import android.app.Activity.RESULT_CANCELED
import android.app.Activity.RESULT_OK
import android.bluetooth.BluetoothAdapter.ACTION_REQUEST_ENABLE
import android.content.Intent
import io.reactivex.subjects.PublishSubject
import io.reactivex.subjects.PublishSubje... | 14 | Kotlin | 20 | 32 | 54cffa441d27d18ba33d7719a34dc9b5c9125262 | 1,817 | app-android | MIT License |
heavy/src/test/kotlin/net/kotlinx/aws/budgets/BudgetBasicMonthlyAlertConfigTest.kt | mypojo | 565,799,715 | false | {"Kotlin": 1234575, "Java": 9531, "Jupyter Notebook": 7080} | package net.kotlinx.aws.budgets
import net.kotlinx.aws.AwsClient
import net.kotlinx.koin.Koins.koin
import net.kotlinx.kotest.KotestUtil
import net.kotlinx.kotest.initTest
import net.kotlinx.kotest.modules.BeSpecHeavy
class BudgetBasicMonthlyAlertConfigTest : BeSpecHeavy() {
init {
initTest(KotestUtil.IG... | 0 | Kotlin | 0 | 1 | 5b03ebbab42ba1323d9af4c6dee238cd0caf5117 | 1,135 | kx_kotlin_support | MIT License |
cloud-storage-service/src/main/kotlin/com/samsung/healthcare/cloudstorageservice/application/port/output/DeleteObjectPort.kt | S-HealthStack | 520,365,362 | false | {"Kotlin": 894766, "Dockerfile": 1358, "ANTLR": 1066} | package com.samsung.healthcare.cloudstorageservice.application.port.output
import java.net.URL
interface DeleteObjectPort {
fun getDeleteSignedUrl(objectName: String, urlDuration: Long): URL
}
| 2 | Kotlin | 7 | 28 | b7e7d0b4cc8d1f1123c9f3bd08fa5cc66fbc9920 | 199 | backend-system | Apache License 2.0 |
year2019/day02/part2/src/test/kotlin/com/curtislb/adventofcode/year2019/day02/part2/Year2019Day02Part2Test.kt | curtislb | 226,797,689 | false | {"Kotlin": 1905641} | package com.curtislb.adventofcode.year2019.day02.part2
import java.math.BigInteger
import kotlin.test.assertEquals
import org.junit.jupiter.api.Test
/**
* Tests the solution to the puzzle for 2019, day 2, part 2.
*/
class Year2019Day02Part2Test {
@Test
fun testSolutionWithRealInput() {
assertEquals(... | 0 | Kotlin | 1 | 1 | addf5ae8d002d30abf1ab816e23502a296debc4e | 357 | AdventOfCode | MIT License |
src/main/kotlin/no/nav/syfo/motebehov/historikk/Historikk.kt | navikt | 139,004,454 | false | {"Kotlin": 337403, "Dockerfile": 266, "Shell": 251} | package no.nav.syfo.motebehov.historikk
import java.time.LocalDateTime
data class Historikk(
var opprettetAv: String? = null,
var tekst: String,
var tidspunkt: LocalDateTime
)
| 0 | Kotlin | 2 | 2 | 64dafe76b6d704e313712a344aabecb264f5d279 | 190 | syfomotebehov | MIT License |
cosmos/src/main/java/com/fang/cosmos/foundation/ui/dsl/SystemBarColor.kt | 7ANG2C | 794,384,998 | false | {"Kotlin": 425333} | package com.fang.cosmos.foundation.ui.dsl
import androidx.compose.runtime.Composable
import androidx.compose.runtime.SideEffect
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.toArgb
import androidx.compose.ui.platform.LocalView
import androidx.core.view.WindowCompat
import com.fang.cosmo... | 0 | Kotlin | 0 | 0 | d820ad78b7eea6142da8f94c68af7b16cc0e583c | 1,370 | FANG | Apache License 2.0 |
chart/src/main/java/com/pyamsoft/moment/chart/MomentChartAdapter.kt | deveshmittal | 419,650,484 | false | {"Kotlin": 90990} | /*
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | null | 0 | 0 | dff896ff0394d84c19a0013ab82ab5050d1f4ddd | 1,624 | moment | Apache License 2.0 |
palace-ui/src/main/kotlin/org/thepalaceproject/ui/catalog/UICatalogFragment.kt | ThePalaceProject | 367,082,997 | false | {"Kotlin": 3308998, "JavaScript": 853788, "Java": 374503, "CSS": 65407, "HTML": 49220, "Shell": 5017, "Ruby": 178} | package org.thepalaceproject.ui.catalog
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import org.thepalaceproject.ui.R
class UICatalogFragment : Fragment(R.layout.empty) {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, s... | 1 | Kotlin | 4 | 8 | 95ea5f21c6408207eddccb7210721743d57a500f | 447 | android-core | Apache License 2.0 |
app/src/main/java/com/example/social_network/uploadLenses.kt | vh64g | 540,971,923 | false | null | package com.example.social_network
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.TextView
import android.widget.Toast
import com.google.firebase.firestore.ktx.firestore
import com.google.firebase.ktx.Firebase
class uploadLenses : AppCompatActiv... | 0 | Kotlin | 0 | 0 | d916b000d7911ddd36576304ac7f7ec1538bdf8e | 1,341 | SoChat-PGR | Creative Commons Zero v1.0 Universal |
src/test/kotlin/no/nav/amt_arena_ords_proxy/ApplicationTest.kt | navikt | 412,099,584 | false | null | package no.nav.amt_arena_ords_proxy
import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.context.ActiveProfiles
@ActiveProfiles("local")
@SpringBootTest
class ApplicationTest {
@Test
fun `application should start without problems`() {}
}
| 0 | Kotlin | 0 | 2 | dacbcdc667741c78fba494b2ce3fed91144f0769 | 317 | amt-arena-ords-proxy | MIT License |
app/src/main/java/com/bharathvishal/messagecommunicationusingwearabledatalayer/RecordatorioAdapter.kt | Eggy386 | 832,889,949 | false | {"Kotlin": 201100} | // RecordatorioAdapter.kt
package com.bharathvishal.messagecommunicationusingwearabledatalayer
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Switch
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
class RecordatorioAdapte... | 0 | Kotlin | 0 | 0 | 880b54d9fa7d16e679a7fb2d5fa6ff24e445a4f0 | 1,950 | AgroBoost-Mobile | Apache License 2.0 |
btc-withdrawal/src/main/kotlin/com/d3/btc/withdrawal/transaction/TransactionsStorage.kt | blockchain-Bobby | 199,616,558 | true | {"Kotlin": 447289, "Java": 44751, "Groovy": 449, "Shell": 190} | /*
* Copyright D3 Ledger, Inc. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package com.d3.btc.withdrawal.transaction
import com.d3.commons.util.GsonInstance
import com.d3.btc.helper.input.irohaKey
import com.d3.btc.helper.output.info
import com.d3.btc.helper.transaction.shortTxHash
import com.d3.... | 0 | Kotlin | 0 | 0 | f223e63d89ef42cc5ccdde870249af6f15b38c94 | 4,648 | d3-btc | Apache License 2.0 |
src/test/kotlin/dev/shtanko/algorithms/leetcode/BrickWallTest.kt | ashtanko | 203,993,092 | 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 w... | 6 | null | 0 | 19 | c6e2befdce892e9f2caf1d98f54dc1dd9b2c89ba | 2,191 | kotlab | Apache License 2.0 |
kotlin/samples/sample-reactive-web/src/main/kotlin/com/github/frtu/sample/reactive/web/AppProperties.kt | frtu | 338,595,537 | false | {"Kotlin": 374016, "Java": 157399, "Shell": 10826, "Dockerfile": 248} | package com.github.frtu.sample.reactive.web
import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.boot.context.properties.ConstructorBinding
@ConstructorBinding
@ConfigurationProperties("prefix")
data class AppProperties(var key1: String) {
data class App(val key1: ... | 0 | Kotlin | 0 | 1 | ca838f032de05ab8d5542aee48216e606e4e8e96 | 337 | lib-toolbox | Apache License 2.0 |
dependencies/infrastructure/src/main/java/com/foreveross/atwork/infrastructure/model/workbench/content/WorkbenchShortcutCardContent.kt | AoEiuV020 | 421,650,297 | false | {"Java": 8618305, "Kotlin": 1733509, "JavaScript": 719597, "CSS": 277438, "HTML": 111559} | package com.foreveross.atwork.infrastructure.model.workbench.content
import com.foreveross.atwork.infrastructure.utils.ListUtil
class WorkbenchShortcutCardContent(
override var widgetsId: Long,
var itemList: List<WorkbenchShortcutCardItem>?
) : IWorkbenchCardContent {
override fun isContentData... | 1 | null | 1 | 1 | 1c4ca5bdaea6d5230d851fb008cf2578a23b2ce5 | 367 | w6s_lite_android | MIT License |
airbyte-cdk/java/airbyte-cdk/db-destinations/src/testFixtures/kotlin/io/airbyte/cdk/integrations/standardtest/destination/typing_deduping/JdbcSqlGeneratorIntegrationTest.kt | tim-werner | 511,419,970 | false | {"Java Properties": 8, "Shell": 57, "Markdown": 1170, "Batchfile": 1, "Makefile": 3, "JavaScript": 31, "CSS": 9, "Python": 4183, "Kotlin": 845, "Java": 723, "INI": 10, "Dockerfile": 27, "HTML": 7, "SQL": 527, "PLpgSQL": 8, "TSQL": 1, "PLSQL": 2} | /*
* Copyright (c) 2023 Airbyte, Inc., all rights reserved.
*/
package io.airbyte.cdk.integrations.standardtest.destination.typing_deduping
import com.fasterxml.jackson.databind.JsonNode
import io.airbyte.cdk.db.jdbc.JdbcDatabase
import io.airbyte.cdk.integrations.base.JavaBaseConstants
import io.airbyte.cdk.integra... | 1 | null | 1 | 1 | b2e7895ed3e1ca7c1600ae1c23578dd1024f20ff | 8,001 | airbyte | MIT License |
lib/src/main/kotlin/com/lemonappdev/konsist/core/provider/KoClassProviderCore.kt | LemonAppDev | 621,181,534 | false | null | package com.lemonappdev.konsist.core.provider
import com.lemonappdev.konsist.api.declaration.KoClassDeclaration
import com.lemonappdev.konsist.api.provider.KoClassProvider
import com.lemonappdev.konsist.core.provider.util.KoDeclarationProviderCoreUtil
internal interface KoClassProviderCore : KoClassProvider, KoDeclar... | 7 | Kotlin | 0 | 5 | b92fce08ec538aba6ac680f8b0eec86ab81c6f15 | 833 | konsist | Apache License 2.0 |
lanterna-ext/src/main/kotlin/com/monkopedia/lanterna/spannable/TextSpan.kt | Monkopedia | 316,826,954 | false | null | /*
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 0 | Kotlin | 0 | 0 | be2e9583641261db13aeec7faf6050a6f483d3a4 | 4,444 | kpages | Apache License 2.0 |
data/remote/src/main/java/com/rmakiyama/bokuju/remote/suzuri/SuzuriHttpClient.kt | rmakiyama | 423,913,584 | false | {"Kotlin": 21904} | package com.rmakiyama.bokuju.remote.suzuri
import com.rmakiyama.bokuju.model.Product
import com.rmakiyama.bokuju.remote.di.SuzuriHttpClient
import com.rmakiyama.bokuju.remote.suzuri.response.GetProductListResponse
import io.ktor.client.HttpClient
import io.ktor.client.request.get
import javax.inject.Inject
internal c... | 0 | Kotlin | 0 | 1 | 35aca7cb5f0e89c8d3aadff2c62273ce249e21c5 | 689 | bokuju | Apache License 2.0 |
app/src/main/java/com/example/a7minutesworkout/Constants.kt | ConnectBhawna | 480,787,925 | false | {"Kotlin": 37854} | package com.example.a7minutesworkout
import java.util.*
/**
* Constant Class where you can add the constant values of the project.
*/
class Constants {
companion object {
// The drawable images used here are added in the drawable folder.
/**
* Here we are adding all exercises to a single... | 0 | Kotlin | 0 | 1 | b986f54da63c3e773aa826821177ae80171f92db | 3,665 | 7MinutesWorkoutApp | Apache License 2.0 |
app/src/main/java/com/demo/dynamicjsonui/dynamicui/widgets/VideoViewFactory.kt | Abhishek1511991 | 547,131,498 | false | null | package com.demo.dynamicjsonui.dynamicui.widgets
import android.app.Activity
import android.content.Context
import android.media.MediaPlayer
import android.net.Uri
import android.text.TextUtils
import android.util.Log
import android.view.View
import android.widget.MediaController
import android.widget.VideoView
import... | 0 | Kotlin | 0 | 0 | d9f7a57e617d75b75c56e9ae15658de93499539e | 3,833 | JsonBasedDynamicUi_kotlin | Apache License 2.0 |
app/src/main/java/org/stepic/droid/di/comment/CommentsModule.kt | Ujjawal-Anand | 142,415,269 | false | null | package org.stepic.droid.di.comment
import dagger.Binds
import dagger.Module
import org.stepic.droid.base.Client
import org.stepic.droid.base.ClientImpl
import org.stepic.droid.base.ListenerContainer
import org.stepic.droid.base.ListenerContainerImpl
import org.stepic.droid.core.comments.CommentsPosterImpl
import org.... | 0 | null | 0 | 1 | 256a90051eefe8db83f7053914004905bbb1f8d0 | 841 | stepik-android | Apache License 2.0 |
kotlin-typescript/src/main/generated/typescript/getNameOfJSDocTypedef.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("typescript")
@file:JsNonModule
package typescript
external fun getNameOfJSDocTypedef(declaration: JSDocTypedefTag): dynamic /* Identifier | PrivateIdentifier */
| 12 | Kotlin | 145 | 983 | a99345a0160a80a7a90bf1adfbfdc83a31a18dd6 | 224 | kotlin-wrappers | Apache License 2.0 |
db/src/main/kotlin/org/jaram/jubaky/db/dao/CredentialDao.kt | jubaky | 195,964,455 | false | null | package org.jaram.jubaky.db.dao
import org.jaram.jubaky.db.DB
import org.jaram.jubaky.db.table.Credentials
import org.jaram.jubaky.db.table.Users
import org.jaram.jubaky.protocol.CredentialInfo
import org.jetbrains.exposed.dao.EntityID
import org.jetbrains.exposed.sql.deleteWhere
import org.jetbrains.exposed.sql.inser... | 1 | Kotlin | 1 | 0 | 834790726cc2d9be82eded60fc2449cf7e22591a | 2,056 | api_server | Apache License 2.0 |
lsp/src/main/kotlin/org/gradle/declarative/lsp/extension/AnalysisSchemaExtensions.kt | gradle | 827,889,336 | false | {"Kotlin": 68755, "Java": 5964} | package org.gradle.declarative.lsp.extension
import org.gradle.declarative.dsl.schema.AnalysisSchema
/*
* Copyright 2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy o... | 1 | Kotlin | 1 | 0 | a1ab206411bbf3123f90593cf69155b062dc7177 | 944 | declarative-lsp | Apache License 2.0 |
app/src/main/java/com/bluerayfsm/features/viewPPDDStock/api/UpdateStockRepo.kt | DebashisINT | 772,059,684 | false | {"Kotlin": 14146263, "Java": 1002625} | package com.bluerayfsm.features.viewPPDDStock.api
import com.bluerayfsm.base.BaseResponse
import com.bluerayfsm.features.viewPPDDStock.model.UpdateStockInputParamsModel
import io.reactivex.Observable
/**
* Created by Saikat on 05-10-2018.
*/
class UpdateStockRepo(val apiService: UpdateStockApi) {
fun updateStoc... | 0 | Kotlin | 0 | 0 | 875bc5a3927897d1daa465a4f122c35df513a7ec | 456 | BluerayFSM | Apache License 2.0 |
musiclibrary/src/main/java/com/topview/purejoy/musiclibrary/recommendation/music/view/DailyRecommendActivity.kt | giagor | 421,858,760 | false | {"Kotlin": 800571, "AIDL": 3111} | package com.topview.purejoy.musiclibrary.recommendation.music.view
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.Toast
import androidx.appcompat.widget.Toolbar
import androidx.coordinatorlayout.widget.Coo... | 1 | Kotlin | 1 | 5 | f58ca9570486871066d99fc5e0827af66d6f0c3b | 8,062 | PureJoy | MIT License |
app/src/main/java/com/example/unitconverterapp/data/ConverterRepository.kt | DEV-GUS-AGO | 822,257,475 | false | {"Kotlin": 29409} | package com.example.unitconverterapp.data
import kotlinx.coroutines.flow.Flow
interface ConverterRepository {
suspend fun insertResult(result: ConversionResult)
suspend fun deleteResult(result: ConversionResult)
suspend fun deleteAllResults()
fun getSavedResults(): Flow<List<ConversionResult>>
} | 0 | Kotlin | 0 | 1 | 68003d13cb12fa93282b054782a07158beb56f17 | 319 | App-Conversor-Unidades | The Unlicense |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.