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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
core/src/io/wasin/omo/ui/ExpandingTile.kt | haxpor | 94,091,638 | false | null | package io.wasin.omo.ui
import com.badlogic.gdx.graphics.g2d.SpriteBatch
/**
* Created by haxpor on 6/29/17.
*
* ExpandingTile has ability to expand, then contract whenever need it. Expanding, or contracting uses
* duration of effectDuration to do its stuff.
*/
class ExpandingTile(x: Float, y: Float, width: Floa... | 1 | Kotlin | 4 | 22 | 0129034c7510044a922057f2ab74d928032656ea | 1,857 | omo | MIT License |
integration/common/taskpool-sender/src/test/kotlin/io/holunda/polyflow/taskpool/sender/task/accumulator/EngineTaskCommandIntentDetectorTest.kt | holunda-io | 135,994,693 | false | {"Kotlin": 1271745} | package io.holunda.polyflow.taskpool.sender.task.accumulator
import io.holunda.camunda.taskpool.api.task.*
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import java.util.*
internal class EngineTaskCommandIntentDetectorTest {
private val detector: EngineTaskCommandIntentDetecto... | 21 | Kotlin | 26 | 68 | 0a80b87e49127b355d62f8a32e91a6c355d11419 | 4,839 | camunda-bpm-taskpool | Apache License 2.0 |
app/src/main/java/com/basar/moviehunter/extension/LiveDataExt.kt | basarYargici | 507,985,728 | false | {"Kotlin": 152176} | package com.basar.moviehunter.extension
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
fun MutableLiveData<Boolean>.postTrue() = postValue(true)
fun MutableLiveData<Boolean>.postFalse() = postValue(false)
fun <T : Any, L : LiveData<T>> Lifecycle... | 0 | Kotlin | 0 | 6 | 7ae064207ce3507529958d51542e2e012e535cfb | 419 | movie-hunt | MIT License |
app/src/main/java/com/example/android/marsrealestate/network/MarsApiService.kt | victorlagun | 583,363,980 | false | {"Kotlin": 17598} | /*
* Copyright 2019, The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | 3f63e191d99bb7354d9ed3393b60bb6c1e9a4ad2 | 1,632 | MarsRealEstate | Apache License 2.0 |
compiler/suspend-transform-plugin/src/main/kotlin/love/forte/plugin/suspendtrans/checker/SuspendTransformCollectionElementChecker.kt | ForteScarlet | 535,336,835 | false | null | package love.forte.plugin.suspendtrans.checker
import org.jetbrains.kotlin.descriptors.DeclarationDescriptor
import org.jetbrains.kotlin.psi.KtDeclaration
import org.jetbrains.kotlin.resolve.checkers.DeclarationChecker
import org.jetbrains.kotlin.resolve.checkers.DeclarationCheckerContext
/**
*
* @author ForteScar... | 2 | Kotlin | 1 | 7 | c00c14897262a4dea87b6371695e83143d797911 | 560 | kotlin-suspend-transform-compiler-plugin | MIT License |
api/src/main/kotlin/io/codegeet/sandbox/execution/model/Model.kt | codegeet | 704,806,290 | false | {"Kotlin": 17709, "Shell": 2861, "Dockerfile": 2688} | package io.codegeet.sandbox.execution.model
import com.fasterxml.jackson.annotation.JsonProperty
import io.codegeet.sandbox.languages.Language
import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.Id
import java.time.Instant
@Entity
data class Execution(
@Id
@JsonPrope... | 5 | Kotlin | 0 | 1 | 43c550c3a6e5f2ec3e9c673f6656c8553e885e9e | 1,407 | codegeet | MIT License |
shadowstate/src/main/java/com/landside/shadowstate/watch/GsonExtension.kt | landscapeside | 276,018,212 | false | null | package com.landside.shadowstate.watch
import com.google.gson.JsonArray
import com.google.gson.JsonElement
import com.google.gson.JsonObject
fun JsonElement.absorb(newObject: JsonElement) {
when (this) {
is JsonObject -> {
val entrySets = entrySet().toList()
entrySets.forEach {
if (it.value.... | 0 | Kotlin | 0 | 1 | 59fb8d7e9ea4a0f0dad5a1bd858affa4f9025e39 | 996 | ShadowState | MIT License |
app/src/main/java/de/lukasneugebauer/nextcloudcookbook/settings/presentation/settings/SettingsViewModel.kt | lneugebauer | 397,373,765 | false | null | package de.lukasneugebauer.nextcloudcookbook.settings.presentation.settings
import android.content.SharedPreferences
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import de.lukasneugebauer.nextcloudcookbook.core.domain.usecase.ClearAllSt... | 8 | null | 9 | 9 | 584082ba5209fe7fa75c25e4782cdd721d2db4e7 | 1,077 | nextcloud-cookbook | MIT License |
ELearningApp/app/src/main/java/com/example/elearningapp/viewmodels/CourseViewModel.kt | Rasm-P | 554,735,573 | false | {"Kotlin": 274440} | package com.example.elearningapp.viewmodels
import androidx.compose.runtime.State
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.elearningapp.common.ActionState
import com.example.elearningapp.models.CourseContent
import co... | 0 | Kotlin | 0 | 1 | 5e544855bb639c0f2b6ad54c0847c693211c64fd | 3,184 | Android-E-Learning | MIT License |
app/src/main/java/com/onramp/android/takehome/BasePresenter.kt | malinda-lin | 327,997,327 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Java": 2, "XML": 27, "Kotlin": 26} | package com.onramp.android.takehome
interface BasePresenter {
fun onDestroy()
} | 0 | Kotlin | 0 | 3 | ed4bc4d9ebc31b6db4d4712b6c2c4fa0a105435e | 84 | Android-Image-Gallery-App | Apache License 2.0 |
gradle-plugin/src/main/kotlin/dev/teogor/querent/tasks/GenerateBuildProfileFileTask.kt | teogor | 721,395,436 | false | {"Kotlin": 117125} | /*
* Copyright 2023 teogor (Teodor Grigor)
*
* 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 o... | 0 | Kotlin | 0 | 2 | 8f9a73656ba77db2e659afcc5f98dffa82b60f64 | 6,563 | querent | Apache License 2.0 |
src/main/kotlin/me/kgustave/komodo/FileWatcher.kt | Shengaero | 171,367,729 | false | null | /*
* Copyright 2019 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | Kotlin | 1 | 7 | 87287f1727f08944c1847c0de0c14c7f694d8d2a | 3,712 | komodo | Apache License 2.0 |
src/main/kotlin/me/kgustave/komodo/FileWatcher.kt | Shengaero | 171,367,729 | false | null | /*
* Copyright 2019 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | Kotlin | 1 | 7 | 87287f1727f08944c1847c0de0c14c7f694d8d2a | 3,712 | komodo | Apache License 2.0 |
game/src/commonMain/kotlin/game/FpsCam.kt | caffeine-mgn | 223,796,620 | false | null | package game
import mogot.Behaviour
import mogot.Camera
import mogot.Engine
import mogot.math.*
class FpsCam(val engine: Engine) : Behaviour() {
override val node: Camera
get() = super.node as Camera
var normalSpeed = 3f
var fastSpeed = 6f
private var x = 0f
private var y = 0f
priva... | 6 | Kotlin | 0 | 4 | e673acfcb20e2d62d8e68c43d395731bd9d9d882 | 2,346 | mogot | Apache License 2.0 |
app/src/main/java/com/zaneschepke/wireguardautotunnel/ui/common/navigation/BottomNavBar.kt | zaneschepke | 644,710,160 | false | null | package com.zaneschepke.wireguardautotunnel.ui.common.navigation
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.NavigationBar
import androidx.compose.material3.NavigationBarItem
import androidx.compose.material3.Text
import androidx.compose.runt... | 6 | null | 8 | 96 | 79583e0e61b69312a2c317abbea09409107c8d3e | 1,438 | wgtunnel | MIT License |
app/src/main/kotlin/co/anitrend/retrofit/graphql/data/arch/controller/policy/OfflineControllerPolicy.kt | AniTrend | 128,179,094 | false | null | /*
* Copyright 2020 AniTrend
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | 7 | null | 19 | 108 | f5df55771cf39d817a22d5355da885b86bcc69f7 | 2,724 | retrofit-graphql | Apache License 2.0 |
compose/desktop/desktop/samples/src/jvmMain/kotlin/androidx/compose/desktop/examples/example2/Main.jvm.kt | JetBrains | 351,708,598 | false | null | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 10 | null | 16 | 59 | 3fbd775007164912b34a1d59a923ad3387028b97 | 2,132 | androidx | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/nomisprisonerapi/activities/AllocationService.kt | ministryofjustice | 444,895,409 | false | null | package uk.gov.justice.digital.hmpps.nomisprisonerapi.activities
import com.microsoft.applicationinsights.TelemetryClient
import jakarta.transaction.Transactional
import org.springframework.data.repository.findByIdOrNull
import org.springframework.stereotype.Service
import uk.gov.justice.digital.hmpps.nomisprisonerapi... | 1 | Kotlin | 0 | 0 | 6ea824acaf69b1ef06336d4d6e3c9cb7b1e1ad4b | 8,374 | hmpps-nomis-prisoner-api | MIT License |
app/src/main/java/me/alexdevs/tictactoe/core/util/UiText.kt | Ale32bit | 703,467,051 | false | {"Kotlin": 60151} | package me.alexdevs.tictactoe.core.util
import androidx.annotation.StringRes
import me.alexdevs.tictactoe.R
sealed class UiText {
data class DynamicString(val value: String): UiText()
data class StringResource(@StringRes val id: Int): UiText()
companion object {
fun unknownError(): UiText {
... | 0 | Kotlin | 0 | 1 | 40eb841864f1bd327888f424c52b996138e2a813 | 397 | TicTacToe | MIT License |
library/src/main/kotlin/one/mixin/bot/vo/PaymentResponse.kt | MixinNetwork | 290,238,458 | false | null | package one.mixin.bot.vo
data class PaymentResponse(
val status: String
)
enum class PaymentStatus {
pending, paid
}
| 1 | Kotlin | 2 | 4 | b1ffa0962ae93339e75cc7814f0f63c69132afb5 | 127 | bot-api-kotlin-client | Apache License 2.0 |
app/src/main/java/com/ibrahimcanerdogan/selfiesegmentationapp/utils/LoadingDialog.kt | icanerdogan | 669,717,155 | false | null | package com.ibrahimcanerdogan.selfiesegmentationapp.utils
import android.app.Activity
import android.app.AlertDialog
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.view.LayoutInflater
import com.ibrahimcanerdogan.selfiesegmentationapp.R
class LoadingDialog(private var acti... | 0 | Kotlin | 0 | 0 | 6d5d07167d6056616b9047ffb9882ce61627f629 | 825 | SelfieSegmentationApp-MLKit | MIT License |
bot/connector-twitter/src/main/kotlin/model/AttachmentMedia.kt | kchiron | 192,942,545 | true | {"Kotlin": 3816372, "TypeScript": 606849, "HTML": 212373, "CSS": 63959, "JavaScript": 4142, "Shell": 3046} | package ai.tock.bot.connector.twitter.model
data class AttachmentMedia(val id: String) | 0 | Kotlin | 0 | 0 | 0f06c44cd851dded24177ff8e0c53b6fc6fa4dd0 | 87 | tock | Apache License 2.0 |
src/main/kotlin/com/github/ekohlwey/astrolabe/messages/Direction.kt | ekohlwey | 419,396,789 | false | null | package com.github.ekohlwey.astrolabe
enum class Direction {
forward,
backward;
companion object {
val default = forward
fun findLastOrDefault(list: List<Any>) = list.findLast { it is Direction } as Direction? ?: default
}
} | 0 | Kotlin | 0 | 0 | 8f80099694846aee6af1be2326eba1d2675f7356 | 258 | astrolabe | Apache License 2.0 |
app/src/main/java/io/woong/filmpedia/util/DimensionUtil.kt | cheonjaewoong | 391,828,359 | false | null | package io.woong.filmpedia.util
import android.util.DisplayMetrics
import android.util.TypedValue
object DimensionUtil {
fun dpToPx(dp: Float, displayMetrics: DisplayMetrics): Float {
return TypedValue.applyDimension(
TypedValue.COMPLEX_UNIT_DIP,
dp,
displayMetrics
... | 0 | Kotlin | 0 | 4 | 2e2700dbff77881de55ade1de89a716b0b076f14 | 465 | filmpedia | MIT License |
app/src/main/java/diamondcraft/devs/mycookinggallary/ui/bag/MyBagFragment.kt | NimeshVasani | 615,890,267 | false | null | package diamondcraft.devs.mycookinggallary.ui.bag
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.lifecycle.ViewModelPro... | 0 | Kotlin | 0 | 1 | 0d58e7922297bdc301e38d0e4478161aead8f8a7 | 2,529 | My_Cooking_Gallary | Info-ZIP License |
microstartercli/src/main/resources/micronaut/security/api key/kotlin/JDBC/domains/APIKey.kt | hashimati | 282,161,250 | false | {"Text": 857, "Ignore List": 47, "Markdown": 41, "Gradle": 91, "Batchfile": 46, "Dockerfile": 18, "INI": 105, "Shell": 50, "YAML": 183, "Java": 818, "XML": 224, "Gherkin": 7, "JavaScript": 4, "Protocol Buffer": 12, "SQL": 18, "Kotlin": 230, "Groovy": 256, "AsciiDoc": 4, "HTML": 13, "Maven POM": 3, "Java Properties": 7,... | package ${securityPackage}.domains
import io.micronaut.data.annotation.*
import io.micronaut.data.model.naming.NamingStrategies
import java.time.Instant
import io.micronaut.serde.annotation.Serdeable;
@MappedEntity(value = "apikeys", namingStrategy = NamingStrategies.Raw::class)
@Serdeable
data class APIKey(
@fie... | 0 | Java | 0 | 16 | ef26009b78bffcb09ce46a926af6d2fbe972edf1 | 602 | MicrostarterCli | Apache License 2.0 |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bulk/Searchfavorite1.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.bulk
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.co... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 3,412 | VuesaxIcons | MIT License |
core/src/jsMain/kotlin/zakadabar/stack/frontend/builtin/dock/ZkDockedElementState.kt | kondorj | 355,137,640 | true | {"Kotlin": 577495, "HTML": 828, "JavaScript": 820, "Shell": 253} | /*
* Copyright © 2020, <NAME> and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package zakadabar.stack.frontend.builtin.dock
enum class ZkDockedElementState {
Minimized,
Normal,
Maximized
} | 0 | null | 0 | 0 | 2379c0fb031f04a230e753a9afad6bd260f6a0b2 | 239 | zakadabar-stack | Apache License 2.0 |
app/src/main/java/com/teampym/onlineclothingshopapplication/data/repository/NotificationTokenRepository.kt | riley0521 | 417,400,188 | false | {"Kotlin": 750594} | package com.teampym.onlineclothingshopapplication.data.repository
import android.util.Log
import com.google.firebase.firestore.FirebaseFirestore
import com.google.firebase.firestore.ktx.toObject
import com.google.firebase.ktx.Firebase
import com.google.firebase.messaging.FirebaseMessaging
import com.google.firebase.me... | 0 | Kotlin | 0 | 1 | 25cd6e4228fbe22e3d357d6f3ded7ca81c42202b | 4,184 | Android-Online-Ordering-for-Clothing-Shop-With-Sales-And-Inventory-Report | Apache License 2.0 |
plugins/kotlin/compiler-reference-index/tests/testData/compilerIndex/functions/hierarchy/java/JKJ/jj_.kt | ingokegel | 72,937,917 | false | null | fun jj() {
JJ().test()
} | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 28 | intellij-community | Apache License 2.0 |
layers/src/main/java/com/psliusar/layers/LayersHost.kt | slesar | 66,919,755 | false | null | package com.psliusar.layers
import android.app.Activity
import android.view.View
import android.view.ViewGroup
import androidx.annotation.IdRes
import androidx.lifecycle.Lifecycle
/**
* Layers manager works at the special host that must meet some requirements. This interface
* declares these requirements.
*/
inter... | 0 | Kotlin | 0 | 2 | 393910b43d52cc1ddd9a3d5ac9d5f546873dd909 | 1,381 | Layers | Apache License 2.0 |
roulette/src/main/java/com/jhdroid/view/Constant.kt | JhDroid | 340,302,227 | false | null | package com.jhdroid.view
/**
* Roulette module 상수(외부에서 사용하지 않음)
* */
internal object Constant {
const val DEFAULT_CIRCLE_BORDER_LINE_WIDTH = 16f
const val DEFAULT_PADDING = 20f
const val DEFAULT_ROULETTE_SIZE = 6
const val DEFAULT_TEXT_SIZE = 60f
const val DEFAULT_EMPTY_MESSAGE = "empty"
cons... | 0 | Kotlin | 2 | 5 | 9f2bed92ea11de9e3e455c77f0a08cc7c6081edb | 410 | android-roulette-wheel-view | Apache License 2.0 |
src/main/kotlin/de/flapdoodle/dirsync/ui/views/SyncConfigFragment.kt | flapdoodle-oss | 231,620,257 | false | null | package de.flapdoodle.dirsync.ui.views
import de.flapdoodle.dirsync.ui.config.SyncConfig
import de.flapdoodle.dirsync.ui.config.SyncEntry
import de.flapdoodle.dirsync.ui.events.ActionEvent
import de.flapdoodle.dirsync.ui.events.ModelEvent
import de.flapdoodle.fx.extensions.*
import de.flapdoodle.fx.layout.weightflex.R... | 1 | null | 1 | 1 | 2c39e73edb0d1eefd277c1e31d2ed7042cf62029 | 5,050 | photosync | Apache License 2.0 |
persistence/src/main/java/com/gromyk/persistence/db/AppDatabase.kt | YGromyk | 192,622,071 | false | {"Gradle Kotlin DSL": 5, "Shell": 1, "Java Properties": 2, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Markdown": 1, "Proguard": 3, "Kotlin": 79, "XML": 45, "Java": 6} | package com.gromyk.persistence.db
import androidx.room.Database
import androidx.room.RoomDatabase
import com.gromyk.persistence.album.Album
import com.gromyk.persistence.album.AlbumDAO
import com.gromyk.persistence.artist.Artist
import com.gromyk.persistence.artist.ArtistDAO
import com.gromyk.persistence.composedalbum... | 1 | null | 1 | 1 | 3d0aab86f7372066b08fc6ebdfea8e08e06f4f90 | 3,208 | lastFM.AF | Apache License 2.0 |
src/iii_conventions/MyDate.kt | roastario | 113,333,676 | true | {"Kotlin": 72183, "Java": 4952} | package iii_conventions
import java.time.LocalDate
import java.time.LocalTime
import java.time.ZoneOffset
data class MyDate(val year: Int, val month: Int, val dayOfMonth: Int) : Comparable<MyDate> {
override fun compareTo(other: MyDate): Int {
return (this.toEpochSeconds() - other.toEpochSeconds()).toInt(... | 0 | Kotlin | 0 | 0 | ce76b547f3ee31c2b8b9f2f88609188baed3fe19 | 1,225 | kotlin-koans | MIT License |
app/src/main/java/com/sentiance/android/ui/base/BaseActivity.kt | ajaysaini-sgvu | 121,714,005 | false | null | package com.sentiance.android.ui.base
import android.annotation.TargetApi
import android.content.pm.PackageManager
import android.os.Build
import android.support.v7.app.AppCompatActivity
abstract class BaseActivity : AppCompatActivity() {
fun requestPermissionsSafely(permissions: Array<String>, requestCode: Int)... | 0 | Kotlin | 3 | 2 | 72e85cfcd2f938418c2dd650cb540d0095c8492c | 670 | geofence | Apache License 2.0 |
aws/sdk-codegen/src/test/kotlin/software/amazon/smithy/rustsdk/SigV4SigningDecoratorTest.kt | awslabs | 308,027,791 | false | null | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package software.amazon.smithy.rustsdk
import org.junit.jupiter.api.Test
import software.amazon.smithy.aws.traits.auth.SigV4Trait
import software.amazon.smithy.rust.codegen.client.testutil.stubConfigPro... | 356 | Rust | 143 | 369 | 39c6476f31c2c20dce220556ac449afcc8212f85 | 1,506 | smithy-rs | Apache License 2.0 |
src/main/kotlin/me/melijn/llklient/io/PenaltyProvider.kt | ToxicMushroom | 220,706,960 | false | {"Gradle Kotlin DSL": 2, "INI": 1, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Java Properties": 1, "Kotlin": 39} | package me.melijn.llklient.io
interface PenaltyProvider {
/**
* This method allows for adding custom penalties to [nodes][LavalinkSocket], making it possible to
* change how the node selection system works on a per-guild per-node basis.
* By using the provided [Penalties][LavalinkLoadBalancer.Penalt... | 1 | null | 1 | 1 | d920cfbc72bc652b50897aa5e2af0257f1141e91 | 637 | Lavalink-Client | MIT License |
src/medium/_2029StoneGameIx.kt | ilinqh | 390,190,883 | false | null | package medium
class _2029StoneGameIx {
class Solution {
fun stoneGameIX(stones: IntArray): Boolean {
var cnt0 = 0
var cnt1 = 0
var cnt2 = 0
for (i in stones.indices) {
val item = stones[i]
val type = item % 3
w... | 0 | Kotlin | 0 | 0 | ef837c37e9dda4a4356748148cc3726a186391af | 778 | AlgorithmsProject | Apache License 2.0 |
app/src/main/java/my/cardholder/ui/coffee/CoffeeDialog.kt | kitfist0 | 512,892,111 | false | {"Kotlin": 154347} | package my.cardholder.ui.coffee
import androidx.fragment.app.viewModels
import androidx.lifecycle.lifecycleScope
import androidx.recyclerview.widget.LinearLayoutManager
import dagger.hilt.android.AndroidEntryPoint
import kotlinx.coroutines.launch
import my.cardholder.databinding.DialogCoffeeBinding
import my.cardholde... | 0 | Kotlin | 0 | 0 | 0f5bba6d9d9ddae1b2750bcc567a031fcb13f355 | 1,593 | MyCardholder | Apache License 2.0 |
ksmt-core/src/main/kotlin/io/ksmt/expr/rewrite/simplify/BvSimplification.kt | UnitTestBot | 501,947,851 | false | null | package io.ksmt.expr.rewrite.simplify
import io.ksmt.KContext
import io.ksmt.expr.KBitVecValue
import io.ksmt.expr.KBvAddExpr
import io.ksmt.expr.KBvAndExpr
import io.ksmt.expr.KBvConcatExpr
import io.ksmt.expr.KBvExtractExpr
import io.ksmt.expr.KBvMulExpr
import io.ksmt.expr.KBvNegationExpr
import io.ksmt.expr.KBvNot... | 9 | Kotlin | 10 | 22 | 7df2cbb1ec2e2175260c83243be6768db3ec3255 | 36,323 | ksmt | Apache License 2.0 |
src/main/kotlin/net/aquadc/mike/plugin/inspection/android/IncludeLayoutByThemeAttrInspection.kt | stokito | 196,069,358 | true | {"Gradle": 5, "INI": 1, "Shell": 2, "Text": 1, "Ignore List": 3, "Batchfile": 2, "Markdown": 1, "Java Properties": 3, "XML": 5, "HTML": 7, "Kotlin": 19, "Java": 2} | package net.aquadc.mike.plugin.inspection.android
import com.android.resources.ResourceFolderType
import com.intellij.codeInspection.*
import com.intellij.psi.PsiElementVisitor
import com.intellij.psi.PsiFile
import com.intellij.psi.XmlRecursiveElementVisitor
import com.intellij.psi.xml.XmlAttribute
import com.intelli... | 0 | Kotlin | 0 | 1 | 83d3107799db6cb52c1411e01ea71988c05eceea | 1,729 | Mikes_IDEA_extensions | Apache License 2.0 |
src/main/kotlin/dto/auth/AuthenticationResponse.kt | SchoolSyncAr | 782,715,163 | false | {"Kotlin": 64179, "Shell": 438, "Dockerfile": 243} | package ar.org.schoolsync.dto.auth
data class AuthenticationResponse(
val accessToken: String
) | 17 | Kotlin | 0 | 1 | e398392a1176cb39da250c0c5d7fa3287f736b90 | 100 | schoolsync-be | MIT License |
app/src/main/java/com/adafruit/glider/provider/GliderDocumentsProvider.kt | adafruit | 470,265,517 | false | null | package com.adafruit.glider.provider
/**
* Created by <NAME> (<EMAIL>)
*/
import android.Manifest
import android.annotation.SuppressLint
import android.content.ContentResolver.NOTIFY_UPDATE
import android.database.Cursor
import android.database.MatrixCursor
import android.net.Uri
import android.os.Build
import andr... | 0 | Kotlin | 1 | 2 | c60bce10b3b9f4e3ac51b467c765c3b4cddb65f5 | 25,503 | Glider-for-Android | MIT License |
app/src/main/java/com/jin/businfo_gumi/viewmodel/BusViewModel.kt | JinSagong | 366,760,371 | false | null | package com.jin.businfo_gumi.viewmodel
import androidx.lifecycle.ViewModel
import com.jin.businfo_gumi.MainApplication.Companion.appContext
import com.jin.businfo_gumi.R
import com.jin.businfo_gumi.model.data.DataLiveInfoForRoute
import com.jin.businfo_gumi.model.data.DataLiveInfoForStation
import com.jin.businfo_gumi... | 0 | Kotlin | 0 | 1 | 30fde56859de44467730a202b0f74208f1a73d64 | 1,970 | GumiBusInfo | Intel Open Source License |
app/src/main/java/com/kinkykeys/countmein/MainActivity.kt | thefossguy | 322,761,401 | false | {"Kotlin": 22716} |
package com.kinkykeys.countmein
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.database.sqlite.SQLiteDatabase
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.provider.ContactsContract
import android.system.St... | 0 | Kotlin | 0 | 0 | 9dbe4172da94ecb9c5bdc164a55542530d9a46ea | 3,061 | countmein | MIT License |
src/main/kotlin/org/t246osslab/easybuggy4kt/controller/AdminsMainController.kt | k-tamura | 107,135,934 | false | null | package org.t246osslab.easybuggy4kt.controller
import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.servlet.ModelAndView
import java.util.*
@Controller
class AdminsMainController : AbstractController() {
@RequestMapping(valu... | 0 | Kotlin | 4 | 3 | 837775d00038e482647a6fcbe1c8ddfed0ef906f | 490 | easybuggy4kt | Apache License 2.0 |
plugin-build/modulegraph/src/test/java/dev/iurysouza/modulegraph/graph/DigraphBuilderTest.kt | iurysza | 614,389,109 | false | {"Kotlin": 59278} | package dev.iurysouza.modulegraph.graph
import dev.iurysouza.modulegraph.GraphOptions
import dev.iurysouza.modulegraph.LinkText
import dev.iurysouza.modulegraph.Orientation
import dev.iurysouza.modulegraph.Theme
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
class DigraphBuilde... | 3 | Kotlin | 11 | 212 | cb3a10b709333f88b40765b90870e9d6079d2ae9 | 1,041 | module-graph | MIT License |
app/src/main/java/m1k/kotik/negocards/custom_views/layouts/BackPressNotifyingLinearLayout.kt | M1KoTiK | 586,878,944 | false | {"Kotlin": 274890} | package m1k.kotik.negocards.custom_views.layouts
import android.content.Context
import android.util.AttributeSet
import android.view.KeyEvent
import android.widget.LinearLayout
public class BackPressNotifyingLinearLayout(context: Context, attributeSet: AttributeSet): LinearLayout(context, attributeSet) {
override... | 0 | Kotlin | 0 | 2 | e73e9eb6d86590b20e0547291c628a11702860b4 | 691 | Nego-Cards | Apache License 2.0 |
app/src/main/java/com/random/user/di/UrlModule.kt | reneargento | 401,164,552 | false | null | package com.random.user.di
import com.random.user.data.Url
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
@Module
@InstallIn(SingletonComponent::class)
class UrlModule {
@Provides
fun provideUrl() = Url("https://api.randomuser.me/")
} | 0 | Kotlin | 0 | 0 | 8cb388dd1cf03dcbca0f05009f4cdebe7ac9d5bc | 320 | android-user-list | MIT License |
src/test/kotlin/com/lykke/matching/engine/services/LimitOrderServiceDustTest.kt | rgrativol | 117,153,696 | true | {"Gradle": 2, "Shell": 3, "Text": 1, "Ignore List": 1, "Batchfile": 2, "Markdown": 1, "Java Properties": 2, "Kotlin": 151, "Java": 20, "Protocol Buffer": 1, "INI": 1, "YAML": 1} | package com.lykke.matching.engine.services
import com.lykke.matching.engine.daos.Asset
import com.lykke.matching.engine.daos.AssetPair
import com.lykke.matching.engine.daos.LkkTrade
import com.lykke.matching.engine.daos.TradeInfo
import com.lykke.matching.engine.database.TestBackOfficeDatabaseAccessor
import com.lykke... | 0 | Kotlin | 0 | 1 | 3cc9b02bf8989d3da5908533288d83097afd24e3 | 13,305 | MatchingEngine | MIT License |
droidils/src/main/java/com/aptus/droidils/utils/ObjectUtils.kt | shanmugasanthosh7 | 131,676,320 | false | null | @file:Suppress("unused")
package com.aptus.droidils.utils
import com.google.gson.Gson
import com.google.gson.JsonElement
/** Returns Json String*/
fun Any?.toJson(): String? = this?.let { Gson().toJson(this) }
/** Returns JsonElement*/
fun <T> Any?.toJsonElement(): JsonElement = Gson().toJsonTree(this)
| 0 | Kotlin | 5 | 7 | dde83e5fc86006339c13b6ad38b3a2b583ed8c8b | 308 | Droidils | Apache License 2.0 |
app/src/main/java/com/krossovochkin/bottomsheetmenusample/MainKotlinActivity.kt | krossovochkin | 95,645,129 | false | null | package com.krossovochkin.bottomsheetmenusample
import android.graphics.Color
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
import android.widget.Toast
import com.krossovochkin.bottomsheetmenukt.BottomShee... | 4 | null | 4 | 24 | 171c3360ad34d8d75fbc89773cf66b177f496b52 | 1,433 | BottomSheetMenu | Apache License 2.0 |
src/main/kotlin/am/ik/yavi/fn/EitherExtensions.kt | making | 145,549,617 | false | null | /*
* Copyright (C) 2018-2020 <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 8 | null | 44 | 537 | 7c174baf04f3bb7579951c41720c211fa27679e1 | 1,906 | yavi | Apache License 2.0 |
app/src/main/java/com/netdiary/recipes/RecipesActivity.kt | gurinovich89 | 215,594,034 | false | null | package com.netdiary.recipes
import android.os.Bundle
import com.netdiary.recipes.ui.recipes.list.RecipesFragment
class RecipesActivity : BaseActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.recipes_activity)
if (... | 0 | Kotlin | 0 | 0 | 4ef3036889a5054d3fe6ecb9f2defe2cc5c80a51 | 523 | netdiary | Apache License 2.0 |
app/src/main/java/com/netdiary/recipes/RecipesActivity.kt | gurinovich89 | 215,594,034 | false | null | package com.netdiary.recipes
import android.os.Bundle
import com.netdiary.recipes.ui.recipes.list.RecipesFragment
class RecipesActivity : BaseActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.recipes_activity)
if (... | 0 | Kotlin | 0 | 0 | 4ef3036889a5054d3fe6ecb9f2defe2cc5c80a51 | 523 | netdiary | Apache License 2.0 |
fontawesome/src/de/msrd0/fontawesome/icons/FA_PEN_FANCY.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 | e757d073562077a753280bf412eebfc4a9121b33 | 1,576 | fontawesome-kt | Apache License 2.0 |
src/main/java/checkInputs/CheckInput.kt | live-HOCOK | 237,044,365 | false | null | package checkInputs;
import javafx.scene.control.DatePicker
import javafx.scene.control.TextField
import checkInputs.InputError.*
import java.lang.RuntimeException
class CheckInput() {
val arrayError = HashSet<InputError>()
get() = field
//check msisdn
fun checkMsisdn(msisdn: TextField) {
... | 6 | Kotlin | 1 | 1 | dd35e44ee2ed6c87848e4d4a8a64469fcfc05b0a | 2,355 | CDR_former | The Unlicense |
bindings/core/glib/src/nativeMain/kotlin/org/gtkkn/bindings/glib/LogWriterOutput.kt | gtk-kn | 609,191,895 | false | {"Kotlin": 10448515, "Shell": 2740} | // This is a generated file. Do not modify.
package org.gtkkn.bindings.glib
import org.gtkkn.native.glib.GLogWriterOutput
import org.gtkkn.native.glib.GLogWriterOutput.G_LOG_WRITER_HANDLED
import org.gtkkn.native.glib.GLogWriterOutput.G_LOG_WRITER_UNHANDLED
/**
* Return values from #GLogWriterFuncs to indicate wheth... | 0 | Kotlin | 0 | 13 | c033c245f1501134c5b9b46212cd153c61f7efea | 1,207 | gtk-kn | Creative Commons Attribution 4.0 International |
plugins/devkit/devkit-kotlin-tests/testSrc/org/jetbrains/idea/devkit/kotlin/inspections/KtI18NInspectionTest.kt | jananimyilsamy | 288,425,026 | false | {"Text": 4107, "XML": 4793, "Ant Build System": 13, "Shell": 544, "Markdown": 424, "Ignore List": 80, "Git Attributes": 9, "Batchfile": 30, "SVG": 2115, "Java": 66932, "C++": 20, "HTML": 2403, "Kotlin": 6192, "DTrace": 1, "Gradle": 61, "Java Properties": 108, "INI": 282, "JFlex": 27, "CSS": 53, "Objective-C": 19, "Groo... | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.idea.devkit.kotlin.inspections
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase
class KtI18NInspectionTest : LightJavaCodeIns... | 1 | null | 1 | 1 | ade7260fd6e909852f0f43779d1e85bf0ecd96fa | 4,391 | intellij-community | Apache License 2.0 |
src/wasmWasiMain/kotlin/bindings/ComponentSupport.kt | JSMonk | 817,893,818 | false | {"Kotlin": 4499, "Shell": 1749, "Rust": 239, "JavaScript": 200} |
@file:OptIn(UnsafeWasmMemoryApi::class)
import kotlin.wasm.unsafe.*
class ComponentException(val value: Any?) : Throwable()
sealed interface Option<out T> {
data class Some<T2>(val value: T2) : Option<T2>
data object None : Option<Nothing>
}
internal value class ResourceHandle(internal val value: Int)
@WasmExp... | 0 | Kotlin | 0 | 1 | 57d894cd3e68c9a38ce8a4f1a9bea769367c9e4b | 1,822 | component-model-example | Apache License 2.0 |
app/src/main/java/io/nekohasekai/sagernet/ktx/Utils.kt | xchacha20-poly1305 | 735,230,186 | false | {"Kotlin": 870875, "Java": 202335, "Go": 110430, "Shell": 8239, "AIDL": 902, "Makefile": 304} | @file:SuppressLint("SoonBlockedPrivateApi")
package io.nekohasekai.sagernet.ktx
import android.animation.Animator
import android.animation.AnimatorListenerAdapter
import android.annotation.SuppressLint
import android.content.*
import android.content.pm.PackageInfo
import android.content.res.Resources
import android.o... | 3 | Kotlin | 6 | 93 | d574b8d42903686836d11ae524e378317e584a19 | 10,615 | husi | BSD Source Code Attribution |
src/main/kotlin/jsonsql/fileformats/JsonFormat.kt | tim-patterson | 131,454,972 | false | null | package jsonsql.fileformats
import com.fasterxml.jackson.core.JsonFactory
import com.fasterxml.jackson.core.JsonGenerator
import com.fasterxml.jackson.core.JsonParser
import com.fasterxml.jackson.core.JsonToken
import com.fasterxml.jackson.databind.ObjectMapper
import jsonsql.filesystems.EventFileSystem
import jsonsql... | 1 | Kotlin | 1 | 3 | 1fc28152476ad9ebcc2b1aefce1c2c6636a98083 | 4,281 | jsonsql | MIT License |
Kotlin/app/src/main/java/dk/coded/emia/utils/Constants.kt | SKrotkih | 121,634,559 | false | null | package dk.coded.emia.utils
/**
* Created by manuja on 14/5/17.
*/
class Constants {
// Table field names
class Fields {
class User {
companion object {
val id = "id"
val username = "username"
val email = "email"
val year... | 1 | null | 1 | 2 | c277bd010388a8d4f03292e4f2d645c43f9d9dac | 3,445 | eMia-Android | MIT License |
Kotlin/app/src/main/java/dk/coded/emia/utils/Constants.kt | SKrotkih | 121,634,559 | false | null | package dk.coded.emia.utils
/**
* Created by manuja on 14/5/17.
*/
class Constants {
// Table field names
class Fields {
class User {
companion object {
val id = "id"
val username = "username"
val email = "email"
val year... | 1 | null | 1 | 2 | c277bd010388a8d4f03292e4f2d645c43f9d9dac | 3,445 | eMia-Android | MIT License |
shared/src/commonMain/kotlin/ui/lifecounter/playerbutton/PlayerButtonViewModel.kt | ntietje1 | 672,375,249 | false | {"Kotlin": 374023, "Swift": 839} | package ui.lifecounter.playerbutton
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.TextRange
import androidx.compose.ui.text.input.TextFieldValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import ui.lifecounter.CounterType
import data.ImageManager
import dat... | 5 | Kotlin | 0 | 1 | f9d55a0e8574e2c878ebf062f9fe00dc15565c0f | 11,345 | MTG_Life_Total_App | Apache License 2.0 |
src/jsTest/kotlin/npm/DebounceTest.kt | TimLavers | 513,037,911 | false | null | package npm
import io.kotest.matchers.shouldBe
import kotlinx.coroutines.test.TestResult
import mui.material.Button
import mui.material.TextField
import proxy.findById
import proxy.waitForEvents
import react.FC
import react.Props
import react.dom.onChange
import react.dom.test.Simulate
import react.dom.test.act
import... | 0 | Kotlin | 0 | 0 | e8a562c75a44b7884c2971051c2b624e5b20af9d | 4,074 | OpenRDR | MIT License |
libraries/property-delegates/src/main/java/com/app/propertydelegates/bundle/base/ArrayGeneric.kt | atulgpt | 314,638,411 | false | null | /*
* Copyright (C) 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... | 0 | null | 2 | 8 | 95563901c0070c4a7be56a690de09abc7bdaa01c | 2,233 | LibTron | Apache License 2.0 |
Proyecto2B/app/src/main/java/com/example/proyecto2b/AuthUsuario.kt | 2020-B-Aplicaciones-Web-Software | 389,791,557 | false | {"Kotlin": 60862} | package com.example.proyecto2b
class AuthUsuario {
companion object{
var usuario:UsuarioFirebase?
init{
this.usuario=null;
}
}
} | 0 | Kotlin | 0 | 1 | 676b24e97e2e2aa7a076c564c4e29c1bdf6c3871 | 173 | mov-soft-munoz-villegas-proyecto | MIT License |
app/src/main/java/com/app/learnquizjp/base/ConstantsPro.kt | tiennvph | 210,726,906 | false | {"Kotlin": 101521} | package com.app.learnquizjp.base
class ConstantsPro {
companion object {
var REVIEW: Boolean = false
//io
val JSON_FILE = "question.json"
//load to db
val LISTQUESTION = "listQuestion"
val LISTQUESTIONQRI = "listQuestionQri"
val DATACHKQZ = "dataChkQz"
... | 0 | Kotlin | 0 | 1 | 9dda0dc8fa5d9882398b1896a616e9ffbd4a10e2 | 581 | LeanQuizJp | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/cloudwatch/CfnCompositeAlarmDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.cloudwatch
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.String
import kotlin.Unit
import software.amazon.awscdk.services.cloudwatch.CfnCompositeAlarm
import software.amazon.awscdk.services.cloudwatch.CfnCompositeAlarmProps
impor... | 1 | Kotlin | 0 | 0 | e9a0ff020b0db2b99e176059efdb124bf822d754 | 967 | aws-cdk-kt | Apache License 2.0 |
zircon.jvm.libgdx/src/main/kotlin/org/hexworks/zircon/internal/application/LibgdxGame.kt | Hexworks | 94,116,947 | false | null | package org.hexworks.zircon.internal.application
import com.badlogic.gdx.Game
import com.badlogic.gdx.Gdx
import com.badlogic.gdx.backends.lwjgl.LwjglApplication
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration
import com.badlogic.gdx.graphics.GL20
import com.badlogic.gdx.graphics.g2d.SpriteBatch
i... | 42 | null | 138 | 735 | 9eeabb2b30e493189c9931f40d48bae877cf3554 | 2,124 | zircon | Apache License 2.0 |
app/src/main/java/com/example/ghiblifilms/ui/common/AppBar.kt | rmiguel1985 | 769,203,810 | false | {"Kotlin": 178118} | package com.example.ghiblifilms.ui.common
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.filled.ArrowBack
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.... | 0 | Kotlin | 0 | 1 | 1b19c1a4d5934c91d44d8b5e90ded10fc50d3f54 | 812 | GhibliFilms | The Unlicense |
src/main/kotlin/no/nav/sifinnsynapi/soknad/EttersendelseRepository.kt | navikt | 403,882,902 | false | {"Kotlin": 320604, "Handlebars": 42961, "Dockerfile": 893, "Shell": 259} | package no.nav.sifinnsynapi.soknad
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.jpa.repository.Query
interface EttersendelseRepository : JpaRepository<EttersendelseDAO, String> {
@Query("""
select e from ettersendelse e
where e.journalpostId = :... | 2 | Kotlin | 0 | 0 | a9fef67702cc14481e32b3e9f9ab91f03d79f6b3 | 463 | k9-sak-innsyn-api | MIT License |
src/main/kotlin/mods/octarinecore/client/resource/TextureGenerator.kt | Krogenit | 475,578,042 | false | null | package mods.octarinecore.client.resource
import mods.octarinecore.client.resource.ResourceType.*
import net.minecraft.client.resources.IResource
import net.minecraft.util.ResourceLocation
import java.awt.image.BufferedImage
import java.io.InputStream
/** Type of generated texture resource */
enum class ResourceType ... | 1 | null | 1 | 2 | 3c1301583d40d0b31b2ee7e13d3c0a2ae97543aa | 3,354 | BetterFoliage-TheMidnight-fix- | MIT License |
app/src/main/kotlin/com/whereismymotivation/ui/mybox/MyBox.kt | unusualcodeorg | 730,655,456 | false | {"Kotlin": 472092} | package com.whereismymotivation.ui.mybox
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.combinedClickable
import androidx.compose.foundation.layout.Box
import androidx.compose.fou... | 0 | Kotlin | 4 | 38 | 5b77e6a6b14ae9ad21e8edd55e8c9b3cc2066f75 | 13,633 | wimm-android-app | Apache License 2.0 |
ontrack-ui-graphql/src/main/java/net/nemerosa/ontrack/graphql/schema/links/GQLTypeBranchLinksNode.kt | nemerosa | 19,351,480 | false | null | package net.nemerosa.ontrack.graphql.schema.links
import graphql.schema.GraphQLList
import graphql.schema.GraphQLNonNull
import graphql.schema.GraphQLObjectType
import net.nemerosa.ontrack.graphql.schema.GQLType
import net.nemerosa.ontrack.graphql.schema.GQLTypeBranch
import net.nemerosa.ontrack.graphql.schema.GQLType... | 57 | Kotlin | 27 | 97 | 7c71a3047401e088ba0c6d43aa3a96422024857f | 1,752 | ontrack | MIT License |
ontrack-ui-graphql/src/main/java/net/nemerosa/ontrack/graphql/schema/links/GQLTypeBranchLinksNode.kt | nemerosa | 19,351,480 | false | null | package net.nemerosa.ontrack.graphql.schema.links
import graphql.schema.GraphQLList
import graphql.schema.GraphQLNonNull
import graphql.schema.GraphQLObjectType
import net.nemerosa.ontrack.graphql.schema.GQLType
import net.nemerosa.ontrack.graphql.schema.GQLTypeBranch
import net.nemerosa.ontrack.graphql.schema.GQLType... | 57 | Kotlin | 27 | 97 | 7c71a3047401e088ba0c6d43aa3a96422024857f | 1,752 | ontrack | MIT License |
velocidapter/src/main/java/com/bleacherreport/velocidapter/VelocidapterProcessor.kt | bleacherreport | 155,460,913 | false | null | package com.bleacherreport.velocidapter
import com.bleacherreport.velocidapterannotations.*
import com.google.auto.service.AutoService
import com.squareup.kotlinpoet.*
import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy
import java.io.File
import javax.annotation.processing.AbstractProcessor... | 2 | Kotlin | 4 | 14 | 0ca9c1745e9a0bb6c4f0cb50d35007bf1c473ad0 | 20,296 | Velocidapter | Apache License 2.0 |
src/plague/FPlagueBasic.kt | buthed010203 | 443,940,950 | true | {"Kotlin": 34851, "Batchfile": 17} | package plague
import arc.*
import arc.struct.*
import arc.util.*
import mindustry.*
import mindustry.content.*
import mindustry.game.*
import mindustry.game.EventType.*
import mindustry.gen.*
import mindustry.maps.Map
import mindustry.mod.*
import mindustry.net.Administration.*
import mindustry.type.*
import mindustr... | 0 | Kotlin | 0 | 0 | e6e1d30201228920d6fd2beba866388aba256c6a | 29,366 | MindustryPlaguePublic | MIT License |
app/src/main/java/cn/cqautotest/sunnybeach/http/ServiceCreator.kt | dahui888 | 422,033,476 | false | null | package cn.cqautotest.sunnybeach.http
import cn.cqautotest.sunnybeach.manager.CookieManager
import cn.cqautotest.sunnybeach.util.BASE_URL
import cn.cqautotest.sunnybeach.util.logByDebug
import cn.cqautotest.sunnybeach.util.unicodeToString
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import... | 0 | null | 0 | 1 | c8c738b0d20fad905af9ba5f016ab293413d3c04 | 1,175 | SunnyBeach | Apache License 2.0 |
shared/src/commonMain/kotlin/co/touchlab/sessionize/api/NetworkRepo.kt | TadeasKriz | 390,103,863 | true | {"Kotlin": 205617, "Swift": 84511, "HTML": 7463, "Ruby": 4271, "Python": 3852} | package co.touchlab.sessionize.api
import co.touchlab.sessionize.BaseModel
import co.touchlab.sessionize.Durations
import co.touchlab.sessionize.SettingsKeys
import co.touchlab.sessionize.backgroundDispatcher
import co.touchlab.sessionize.db.SessionizeDbHelper
import co.touchlab.sessionize.platform.NotificationsModel
... | 0 | null | 0 | 1 | df53006ff7ad851b0532ad918e738e4f8d8f8cba | 2,519 | DroidconKotlin | Apache License 2.0 |
app/src/main/java/fr/uge/pokedex/components/team/DisplaySelectedPokemon.kt | NagaYZ | 621,883,292 | false | null | package fr.uge.pokedex.components.team
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.c... | 0 | Kotlin | 0 | 0 | 8361d684922ed2430d753da319dbf2f5b27d0eff | 1,975 | Pokedex | MIT License |
secdra-service/src/main/kotlin/com/junjie/secdraservice/serviceimpl/UserServiceImpl.kt | fuzeongit | 154,359,683 | false | null | package com.junjie.secdraservice.serviceimpl
import com.junjie.secdracore.component.BaseConfig
import com.junjie.secdracore.exception.NotFoundException
import com.junjie.secdracore.exception.PermissionException
import com.junjie.secdracore.exception.SignInException
import com.junjie.secdradata.constant.PictureState
im... | 1 | Kotlin | 4 | 11 | f75c32e5fb834d456a3182f71aee08029a1629d3 | 2,803 | secdra | MIT License |
presentation/more-shows/src/commonMain/kotlin/com/thomaskioko/tvmaniac/presentation/moreshows/MoreShowsState.kt | thomaskioko | 361,393,353 | false | {"Kotlin": 585896, "Swift": 120340} | package com.thomaskioko.tvmaniac.presentation.moreshows
import kotlinx.collections.immutable.ImmutableList
import kotlinx.collections.immutable.persistentListOf
data class MoreShowsState(
val isLoading: Boolean = false,
val categoryTitle: String? = null,
val list: ImmutableList<TvShow> = persistentListOf(... | 4 | Kotlin | 16 | 140 | f768a43a6550f14d9e9fc6f052183f40f4b194b3 | 363 | tv-maniac | Apache License 2.0 |
asset/test/view/TestColorPalette.kt | exertionriver | 589,248,613 | false | {"Kotlin": 373785, "Java": 146} | package view
import com.badlogic.gdx.graphics.Color
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import river.exertion.thenuim.asset.view.ColorPalette
import river.exertion.thenuim.base.Log
import river.exertion.thenuim.base.TestBase
import river.exertion.thenuim.base.str
impo... | 0 | Kotlin | 0 | 1 | 8c999838bd41e3f0319e9d87c35052b580dfedd6 | 24,258 | thenuim | MIT License |
src/test/java/no/nav/bidrag/dokument/dto/BidragDokumentDtoTestApplication.kt | navikt | 157,381,054 | false | null | package no.nav.bidrag.dokument.dto
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
@SpringBootApplication
class BidragDokumentDtoTestApplication
fun main(args: Array<String>) {
val app = SpringApplication(BidragDokumentDtoTestApplication::clas... | 6 | Kotlin | 0 | 1 | c29e60d17c11cbc2e9eddacb3ce6f1c789da1289 | 385 | bidrag-dokument-dto | MIT License |
app/src/main/java/ru/solandme/washwait/data/db/entity/WeatherEntity.kt | solandmedotru | 160,739,363 | false | null | package ru.solandme.washwait.data.db.entity
import androidx.room.Embedded
import androidx.room.Entity
import androidx.room.PrimaryKey
const val CURRENT_WEATHER_ID = 0
@Entity(tableName = "weather")
data class WeatherEntity(
@PrimaryKey(autoGenerate = false)
var id: Int = 0,
var humidity: Int ... | 0 | Kotlin | 1 | 0 | d0dfb638e9c9bd647ef69742ea123385a33d83d4 | 767 | WashWaitNew | Apache License 2.0 |
app/src/main/java/jp/yn/light/repeatTimer/TimeStringResolver.kt | yuukiw00w | 215,714,913 | false | null | package jp.yn.light.repeatTimer
import android.content.Context
import java.util.concurrent.TimeUnit
class TimeStringResolver(private val time: Long = LOADING) {
companion object {
private val minute = TimeUnit.MINUTES.toMillis(1L)
private val hour = TimeUnit.HOURS.toMillis(1L)
private val ... | 0 | Kotlin | 0 | 0 | 219b978d1ab1e099502e54ef652151fd9f73966f | 1,764 | RepeatTimerForAndroid | Apache License 2.0 |
app/src/main/java/com/heyanle/easybangumi4/ui/sourcehome/SourceHomeViewModel.kt | easybangumiorg | 413,723,669 | false | null | package com.heyanle.easybangumi4.ui.sourcehome
import android.util.Log
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelStore
import androidx.lifecycle.ViewModelStoreOw... | 5 | null | 9 | 536 | ba8c772cbb493b69b5d910f4b479194b24f7cf0b | 3,131 | EasyBangumi | Apache License 2.0 |
app/src/main/java/id/ac/istts/myfit/Data/Source/Mock/MenuUserMockDB.kt | NetskyA | 780,988,625 | false | {"Kotlin": 276093, "JavaScript": 65148} | package id.ac.istts.myfit.Data.Source.Mock
import id.ac.istts.myfit.Data.Menu
object MenuUserMockDB {
private val allMenuUser:ArrayList<Menu> = ArrayList()
fun getAllMenuUser(force:Boolean = false):ArrayList<Menu>{
return ArrayList(allMenuUser)
}
fun getMenuById(id:Int):Menu?{
return a... | 0 | Kotlin | 0 | 1 | e9b5bb12fdf07edc6d51457cadbb427fe324083d | 830 | Android-App-MyFit | MIT License |
src/main/kotlin/de/codecentric/totiblogpost/blogpost/BlogPost.kt | codecentric | 471,350,927 | false | null | package de.codecentric.totiblogpost.blogpost
data class BlogPost(val id: Long, val title: String, val content: String?) {
companion object {
fun from(blogPostEntry: BlogPostRepository.BlogPostEntry?): BlogPost? {
if (blogPostEntry == null) {
return null;
}
... | 0 | Kotlin | 0 | 0 | 943168175dc08396484893f25a57c2296bfefc0a | 621 | toti-example-service | MIT License |
app/src/main/java/com/example/android/diceroller/MainActivity.kt | dcancelas | 302,020,359 | true | {"Kotlin": 4273} | /*
* Copyright 2018, The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | a538cbbe07100b0b185ffd24b49cd9e2412d9a8a | 3,251 | andfun-kotlin-dice-roller | Apache License 2.0 |
android/racehorse/src/main/java/org/racehorse/GoogleSignInPlugin.kt | smikhalevski | 556,915,160 | false | null | package org.racehorse
import androidx.activity.ComponentActivity
import com.google.android.gms.auth.api.signin.GoogleSignIn
import com.google.android.gms.auth.api.signin.GoogleSignInAccount
import com.google.android.gms.auth.api.signin.GoogleSignInOptions
import com.google.android.gms.auth.api.signin.GoogleSignInStatu... | 2 | null | 1 | 3 | 50520f0c92516bf8fb732fedd3e82ba98459fe84 | 4,742 | racehorse | MIT License |
app/app/src/main/java/xyz/mirage/app/presentation/ui/main/home/detail/components/PostDetailAppBar.kt | sentrionic | 378,704,735 | false | null | package xyz.mirage.app.presentation.ui.main.home.detail.components
import androidx.compose.material.Icon
import androidx.compose.material.IconButton
import androidx.compose.material.Text
import androidx.compose.material.TopAppBar
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.fille... | 0 | Kotlin | 2 | 1 | 8f50fc8244f16b43b8e054e79bcd50e98765a0e1 | 1,017 | Mirage | MIT License |
gleam-core/src/main/kotlin/at/hannesmoser/gleam/schema/ExtendedSchemaMarker.kt | eliias | 289,132,196 | false | {"Kotlin": 73096, "Shell": 591, "Dockerfile": 31} | package at.hannesmoser.gleam.schema
@DslMarker
annotation class ExtendedSchemaMarker
| 0 | Kotlin | 0 | 3 | 9689cea73d7a4603a987208843a03b9365ae735d | 86 | gleam | MIT License |
2024/FireShell/RpcAgent/src/jsMain/kotlin/RpcAgent.kt | kyoya-p | 253,926,918 | false | {"Kotlin": 943735, "JavaScript": 85088, "HTML": 66887, "TypeScript": 55667, "Java": 30207, "C++": 29172, "CMake": 20891, "Dart": 14886, "Shell": 7841, "Batchfile": 6227, "CSS": 6205, "Dockerfile": 5060, "C": 3042, "Swift": 1622, "PowerShell": 234, "Objective-C": 78} | import dev.gitlive.firebase.firestore.Direction
import kotlin.coroutines.resume
import kotlin.coroutines.resumeWithException
import kotlin.coroutines.suspendCoroutine
external val process: dynamic
//val options = FirebaseOptions(
// apiKey = "<KEY>",
// projectId = "riot-7a79a",
// applicationId = "1:749774... | 16 | Kotlin | 0 | 2 | 8d0d52e88e87211d24924b8a0b9b7ac401523b5e | 2,480 | samples | Apache License 2.0 |
src/commonTest/kotlin/services/CollectionService.kt | agrevster | 672,076,191 | false | {"Kotlin": 238591} | package services
import CrudServiceTestSuite
import io.github.agrevster.pocketbaseKotlin.dsl.login
import io.github.agrevster.pocketbaseKotlin.models.Collection
import io.github.agrevster.pocketbaseKotlin.models.utils.SchemaField
import io.github.agrevster.pocketbaseKotlin.toJsonPrimitive
import kotlinx.coroutines.del... | 2 | Kotlin | 6 | 5 | a6b6bd810b4e550ef9b66e19a92b86c41291e34d | 17,569 | pocketbase-kotlin | MIT License |
app/src/test/kotlin/fr/free/nrw/commons/locationpicker/LocationPickerActivityUnitTests.kt | commons-app | 42,032,884 | false | null | package fr.free.nrw.commons.locationpicker
import android.content.Context
import android.os.Looper
import android.view.View
import android.widget.Button
import android.widget.ImageView
import android.widget.TextView
import androidx.appcompat.widget.AppCompatTextView
import com.google.android.material.floatingactionbut... | 592 | null | 1179 | 997 | 93f1e1ec299a78dac8a013ea21414272c1675e7b | 6,456 | apps-android-commons | Apache License 2.0 |
app/src/main/java/com/personal/tmdb/detail/domain/models/MediaDetailInfo.kt | Avvami | 755,489,313 | false | null | package com.personal.tmdb.detail.domain.models
import com.personal.tmdb.core.domain.models.MediaResponseInfo
import com.personal.tmdb.detail.data.models.Available
import com.personal.tmdb.detail.data.models.BelongsToCollection
import com.personal.tmdb.detail.data.models.ContentRatings
import com.personal.tmdb.detail.d... | 0 | null | 0 | 2 | de9d96dc4ec271377406e5c794085240a35af69c | 1,564 | TMDB | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.