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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
server/engine/src/main/kotlin/io/rsbox/server/engine/sync/task/PlayerPostSyncTask.kt | Blunkie | 704,702,007 | false | {"INI": 3, "Gradle Kotlin DSL": 14, "Shell": 1, "Java Properties": 1, "Git Attributes": 1, "Markdown": 1, "Batchfile": 1, "Text": 1, "Ignore List": 1, "Kotlin": 122, "Java": 546, "XML": 5} | package io.rsbox.server.engine.sync.task
import io.rsbox.server.common.inject
import io.rsbox.server.engine.model.World
import io.rsbox.server.engine.model.entity.Player
import io.rsbox.server.engine.model.MovementType
import io.rsbox.server.engine.sync.SyncTask
import org.tinylog.kotlin.Logger
class PlayerPostSyncTa... | 1 | null | 1 | 1 | 58d6086e3318170a069c9a4985d06e068b853535 | 1,094 | rsbox | Apache License 2.0 |
kuberig-dsl-generator-gradle-plugin/src/main/kotlin/io/kuberig/dsl/generator/gradle/KubeRigDslProperties.kt | kuberig-io | 172,784,898 | false | null | package io.kuberig.dsl.generator.gradle
import java.util.*
/**
* KubeRig DSL plugin properties.
*/
class KubeRigDslProperties(val kubeRigDslVersion: String, val jacksonVersion: String) {
companion object {
private fun loadProps() : Properties {
val props = Properties()
props.loa... | 5 | null | 1 | 7 | 85e1dcd7ed4c25f00d33911d39fee84cb67ca972 | 1,008 | kuberig-dsl | Apache License 2.0 |
xsolla-store-sdk/src/main/java/com/xsolla/android/store/entity/request/payment/UserAccountDetails.kt | xsolla | 233,092,015 | false | null | package com.xsolla.android.store.entity.request.payment
import com.google.gson.annotations.SerializedName
data class UserAccountDetails(
val history: UserAccountHistory,
@SerializedName("payment_accounts")
val paymentAccounts: UserAccountPaymentAccounts,
val info: UserAccountInfo,
... | 1 | Kotlin | 5 | 9 | cf3861e571f3ebc45490d39c40b0f2698e835b2f | 759 | store-android-sdk | Apache License 2.0 |
xsolla-store-sdk/src/main/java/com/xsolla/android/store/entity/request/payment/UserAccountDetails.kt | xsolla | 233,092,015 | false | null | package com.xsolla.android.store.entity.request.payment
import com.google.gson.annotations.SerializedName
data class UserAccountDetails(
val history: UserAccountHistory,
@SerializedName("payment_accounts")
val paymentAccounts: UserAccountPaymentAccounts,
val info: UserAccountInfo,
... | 1 | Kotlin | 5 | 9 | cf3861e571f3ebc45490d39c40b0f2698e835b2f | 759 | store-android-sdk | Apache License 2.0 |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/drive/test/AutoTest.kt | Petelax | 671,336,777 | false | {"Gradle": 6, "Java Properties": 1, "Shell": 1, "Text": 4, "Ignore List": 2, "Batchfile": 1, "Markdown": 7, "INI": 1, "XML": 20, "Java": 67, "Kotlin": 66} | package org.firstinspires.ftc.teamcode.drive.test
import com.arcrobotics.ftclib.controller.PIDFController
import com.arcrobotics.ftclib.geometry.Pose2d
import com.arcrobotics.ftclib.geometry.Rotation2d
import com.arcrobotics.ftclib.kinematics.wpilibkinematics.ChassisSpeeds
import com.qualcomm.robotcore.eventloop.opmod... | 0 | Java | 0 | 0 | a66accb94638fb15c099bf5a86a2938c348881b9 | 1,699 | FTC16413-CenterStage | BSD 3-Clause Clear License |
App/src/uk/co/armedpineapple/innoextract/Extensions.kt | alanwoolley | 14,408,419 | false | {"Git Config": 1, "Gradle": 7, "Java Properties": 2, "Shell": 47, "Text": 138, "Ignore List": 4, "Batchfile": 7, "Markdown": 3, "XML": 40, "YAML": 3, "Kotlin": 29, "SVG": 4, "Proguard": 1, "Java": 2, "Makefile": 42, "C": 1008, "Roff Manpage": 28, "HTML": 7, "CSS": 1, "XSLT": 3, "PostScript": 1, "Perl": 1, "Microsoft De... | package uk.co.armedpineapple.innoextract
import android.content.Context
import android.widget.Toast
fun Context.toast(message: CharSequence, duration: Int) = Toast.makeText(this, message, duration).show()
fun Context.toast(resId: Int, duration: Int) = Toast.makeText(this, resId, duration).show()
| 2 | null | 1 | 1 | d0a72015a4a7898e0b5a24cae8642a4028c4d24b | 301 | innoextract-android | Apache License 2.0 |
app/src/main/java/com/edu/wkx/myConcencamp/repository/room/model/WelfareModel.kt | 731701622 | 199,440,017 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Proguard": 1, "JSON": 1, "Kotlin": 32, "XML": 24, "Java": 1} | package com.edu.wkx.myConcencamp.repository.room.model
import android.arch.persistence.room.Entity
import android.arch.persistence.room.PrimaryKey
@Entity(tableName = "welfare")
class WelfareModel {
@PrimaryKey
var _id = ""
var createdAt: String? = null
var desc: String? = null
var publishedAt: S... | 1 | null | 1 | 1 | 30a193bd29f673729ced271dc84a62b0918428e5 | 421 | myConcenCamp | Apache License 2.0 |
app/src/main/java/com/okbreathe/quasar/components/highlighter/themes/Monokai.kt | okbreathe | 95,939,089 | false | {"Gradle": 3, "Java Properties": 3, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 70, "Java": 7, "XML": 55} | package com.okbreathe.quasar.components.highlighter.themes
import android.graphics.Color
import android.support.annotation.ColorInt
class Monokai: Theme {
@ColorInt
override val foregroundColor: Int = light_ghost_white
@ColorInt
override val backgroundColor: Int = dark_gray
@ColorInt
override val reserve... | 0 | Kotlin | 0 | 0 | 0c367e67301717a7c096cc05d26153ae71a03ab5 | 1,923 | quasar-android | Apache License 2.0 |
app/src/main/java/com/okbreathe/quasar/components/highlighter/themes/Monokai.kt | okbreathe | 95,939,089 | false | {"Gradle": 3, "Java Properties": 3, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 70, "Java": 7, "XML": 55} | package com.okbreathe.quasar.components.highlighter.themes
import android.graphics.Color
import android.support.annotation.ColorInt
class Monokai: Theme {
@ColorInt
override val foregroundColor: Int = light_ghost_white
@ColorInt
override val backgroundColor: Int = dark_gray
@ColorInt
override val reserve... | 0 | Kotlin | 0 | 0 | 0c367e67301717a7c096cc05d26153ae71a03ab5 | 1,923 | quasar-android | Apache License 2.0 |
app/src/main/java/com/example/avjindersinghsekhon/minimaltodo/data/model/MerchantProfile.kt | felipetozato | 214,848,997 | true | {"Java": 117971, "Kotlin": 18404} | package com.example.avjindersinghsekhon.minimaltodo.data.model
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
class MerchantProfile {
@SerializedName("merchant_code")
@Expose
var merchantCode: String? = null
@SerializedName("business_name")
@Expose
... | 0 | Java | 0 | 0 | df6e04cc5c60958afd1bc5d2359c2427f9fb7bcc | 503 | Minimal-Todo | MIT License |
src/main/kotlin/com/github/shatteredsuite/core/data/generic/GenericDataStore.kt | ShatteredSoftware | 263,221,103 | false | null | package com.github.shatteredsuite.core.data.generic
import com.github.shatteredsuite.core.data.plugin.PluginTypeKey
import com.github.shatteredsuite.core.extension.mapValuesNotNull
/**
* Stores arbitrary data in a more type-safe way.
*
* ## Example:
* ```kotlin
* val dataContainer = GenericDataContainer()
* dat... | 5 | null | 3 | 1 | 13a5bd2ff37028281eb9fcb16f8418ee5e1508ed | 5,315 | ShatteredCore | MIT License |
tmp/arrays/youTrackTests/8077.kt | DaniilStepanov | 228,623,440 | false | null | // Original bug: KT-23215
open class A {
open fun f(): Int {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
| 1 | null | 12 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 182 | bbfgradle | Apache License 2.0 |
partiql-spi/src/main/kotlin/org/partiql/spi/connector/ConnectorObject.kt | partiql | 186,474,394 | false | {"Kotlin": 6791850, "HTML": 103438, "ANTLR": 34531, "Inno Setup": 3838, "Java": 1949, "Shell": 748} | /*
* Copyright Amazon.com, Inc. or its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at:
*
* http://aws.amazon.com/apache2.0/
*
* or in the "li... | 306 | Kotlin | 60 | 539 | 306ec7c1dc143660d6d861cc9626cbc3ac444ec6 | 1,063 | partiql-lang-kotlin | Apache License 2.0 |
rxbilling-testing/src/test/kotlin/com/vanniktech/rxbilling/testing/MockRxBillingTest.kt | sandsaber | 333,482,637 | true | {"Java Properties": 1, "YAML": 2, "Markdown": 2, "Gradle": 6, "Shell": 1, "EditorConfig": 1, "Batchfile": 1, "Text": 1, "Ignore List": 5, "INI": 5, "Java": 24, "Proguard": 1, "Kotlin": 14, "XML": 8, "AIDL": 1} | package com.vanniktech.rxbilling.testing
import com.vanniktech.rxbilling.NoBillingSupportedException
import com.vanniktech.rxbilling.PurchaseResponse
import com.vanniktech.rxbilling.PurchasedInApp
import com.vanniktech.rxbilling.PurchasedSubscription
import com.vanniktech.rxbilling.RxBilling.BillingResponse.OK
import ... | 0 | null | 0 | 0 | 9500e8d4938fd7c5769444957d57fb5c9d45d3a0 | 4,693 | RxBilling | Apache License 2.0 |
src/main/kotlin/allegrex/agent/ppsspp/client/model/request/PpssppSetRegisterRequest.kt | kotcrab | 174,734,550 | false | null | package allegrex.agent.ppsspp.client.model.request
import allegrex.agent.ppsspp.client.model.event.PpssppSetRegisterEvent
import java.util.UUID
data class PpssppSetRegisterRequest(
val thread: Long,
val category: Int,
val register: Int,
val value: String,
override val ticket: String = UUID.randomUUID().toSt... | 4 | null | 10 | 89 | 222be394b7602e51703d0ad38d5279f2f55b8c91 | 415 | ghidra-allegrex | Apache License 2.0 |
app/src/main/java/com/ckunder/blockchain/view/common/BaseActivity.kt | chiragck9 | 106,318,202 | false | null | package com.ckunder.blockchain.view.common
import android.support.v7.app.AppCompatActivity
/**
* Created by ckunder on 09-10-2017.
*/
abstract class BaseActivity : AppCompatActivity() {
} | 1 | null | 1 | 1 | 6e9cfd25d6fcb653d2cefb9f961593f0c0b05f84 | 192 | blockchaindemo | Apache License 2.0 |
app/src/main/java/com/husseinelfeky/smartbank/ui/login/LoginEvent.kt | hfeky | 362,859,956 | false | {"Kotlin": 142897, "Java": 2417} | package com.husseinelfeky.smartbank.ui.login
import com.google.firebase.auth.FirebaseUser
sealed class LoginEvent {
object Loading : LoginEvent()
class Loaded(val user: FirebaseUser) : LoginEvent()
open class Error(open val throwable: Throwable?) : LoginEvent()
class NetworkError(override val thro... | 1 | Kotlin | 1 | 4 | 41d50d33388fab74ea3700a00b3b51eeed3009da | 448 | touchless-qr-based-atm | MIT License |
compiler/testData/diagnostics/tests/inference/pcla/contextReceivers.kt | JetBrains | 3,432,266 | false | null | // FIR_IDENTICAL
// ISSUE: KT-67699
// LANGUAGE: +ContextReceivers
interface Either<out A, out B>
interface Raise<in E>
fun <E, A> either(block: Raise<E>.() -> A): Either<E, A> = null!!
context(Raise<String>)
fun findUser(): String = null!!
context(Raise<String>)
val prop: String get() = null!!
fun main() {
e... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 388 | kotlin | Apache License 2.0 |
detekt-formatting/src/main/kotlin/io/gitlab/arturbosch/detekt/formatting/wrappers/SpacingAroundUnaryOperator.kt | eksahin | 355,162,546 | true | {"Kotlin": 2444877, "HTML": 4173, "Groovy": 2423, "Shell": 358, "CSS": 27} | package io.gitlab.arturbosch.detekt.formatting.wrappers
import com.pinterest.ktlint.ruleset.experimental.SpacingAroundUnaryOperatorRule
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.formatting.FormattingRule
/**
* See <a href="https://ktlint.github.io/#rule-spacing">ktlint-website<... | 0 | null | 0 | 1 | 9f894f56b9d8d91cfae994c626ead0b4e0628a8a | 594 | detekt | Apache License 2.0 |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/PersonSupport.kt | Konyaco | 574,321,009 | false | null |
package com.konyaco.fluent.icons.filled
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Filled.PersonSupport: ImageVector
get() {
if (_personSupport != null... | 1 | Kotlin | 3 | 83 | 9e86d93bf1f9ca63a93a913c990e95f13d8ede5a | 2,513 | compose-fluent-ui | Apache License 2.0 |
app/src/main/java/corp/wmsoft/manim/animation/composition.kt | westman2000 | 783,369,254 | false | {"Kotlin": 422505} | package corp.wmsoft.manim.animation
import corp.wmsoft.manim.mobject.Mobject
//"""Tools for displaying multiple animations at once."""
open class AnimationGroup(mobject: Mobject) : Animation(mobject)
// """Plays a group or series of :class:`~.Animation`.
//
// Parameters
// ----------
// animations
// ... | 0 | Kotlin | 0 | 0 | 5bd23a186700f089d297f3c7bd2cbcada95affb4 | 6,030 | compose | Apache License 2.0 |
android/app/src/main/java/dev/joaogabriel/bytebank/view/dialog/AddBalance.kt | joaogabrielfjob | 350,885,467 | false | null | package dev.joaogabriel.bytebank.view.dialog
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.DialogFragment
import androidx.fragment.app.activityViewModels
import dev.joaogabriel.bytebank.R
import dev.joaogabriel.bytebank.d... | 0 | Kotlin | 0 | 0 | 62450b81bd5fa55fd39f2d129d2170d1b8a777c4 | 1,904 | byte-bank | MIT License |
app/src/main/java/com/makzimi/finmarket/di/favorites/FavoritesViewModelModule.kt | makzimi | 225,576,453 | false | null | package com.makzimi.finmarket.di.favorites
import androidx.lifecycle.ViewModel
import com.makzimi.finmarket.di.ViewModelKey
import com.makzimi.finmarket.favorites.ui.FavoritesViewModel
import dagger.Binds
import dagger.Module
import dagger.multibindings.IntoMap
@Module
abstract
class FavoritesViewModelModule {
@... | 0 | Kotlin | 0 | 0 | 2201bc2c83b0c251c45bbc7c84fd25e4faaba5a8 | 479 | finmarket | Apache License 2.0 |
app/src/main/java/com/vikash/login/data/common/NetworkError.kt | VikashKumar0 | 581,092,485 | false | {"Kotlin": 31438} | /*
* Name: ChpNetworkError.kt
* Created by: Vikash on 20/12/2022.
* Copyright © 2022 . All rights reserved.
*/
package com.vikash.login.data.common
import com.google.gson.annotations.SerializedName
import com.vikash.login.data.common.Error
/**
* CHP error responses.
*/
data class NetworkError(
override val... | 1 | Kotlin | 0 | 0 | 92f13225f4494b374a2f0f58dc79d311ee2a0f42 | 506 | StarterApp | Apache License 2.0 |
lib/src/main/kotlin/com/github/snowdream/toybricks/ToyBricks.kt | SnowdreamFramework | 81,333,272 | false | null | package com.github.snowdream.toybricks
import com.github.snowdream.toybricks.annotation.InterfaceLoader
import com.github.snowdream.toybricks.annotation.impl.DefaultInterfaceLoader
/**
* Created by snowdream on 17/2/10.
*/
class ToyBricks {
companion object{
//Default InterfaceLoader
... | 0 | Kotlin | 8 | 33 | 4691bf6def006ef0bf191ec239058c7f53722de9 | 999 | ToyBricks | Apache License 2.0 |
src/test/kotlin/no/nav/syfo/sykmelding/status/api/SykmeldingStatusGETApiSpek.kt | navikt | 147,519,013 | false | null | package no.nav.syfo.sykmelding.status.api
import com.auth0.jwt.interfaces.Payload
import com.fasterxml.jackson.module.kotlin.readValue
import io.kotest.core.spec.style.FunSpec
import io.ktor.http.ContentType
import io.ktor.http.HttpMethod
import io.ktor.http.HttpStatusCode
import io.ktor.server.application.install
imp... | 0 | Kotlin | 0 | 0 | 12d141a90cfe6515ff6d6595d6ed6e220e07d104 | 5,815 | syfosmregister | MIT License |
src/main/kotlin/lib/github1552980358/ktExtension/jvm/io/File.kt | 1552980358 | 269,514,809 | false | null | package lib.github1552980358.ktExtension.jvm.io
import lib.github1552980358.ktExtension.jvm.keyword.tryCatch
import java.io.File
import java.io.ObjectInputStream
import java.io.ObjectOutputStream
import java.io.Serializable
/**
* Check whether [File] is empty
**/
val File.isEmpty get() = length() == 0L
/**
* Chec... | 0 | Kotlin | 0 | 2 | 3406e5f7def7b7a0363913c343b3652c7eb33ad3 | 3,131 | KtExtension | Apache License 2.0 |
emoji-ios/src/commonMain/kotlin/com/vanniktech/emoji/ios/category/FoodAndDrinkCategoryChunk1.kt | vanniktech | 53,511,222 | false | {"Kotlin": 2410736, "JavaScript": 18674} | /*
* Copyright (C) 2016 - Niklas Baudy, Ruben Gees, Mario Đanić and contributors
*
* 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
*
... | 16 | Kotlin | 286 | 1,501 | 2047a86272ecdaa3eaf54e83d889b5c091edaa50 | 1,958 | Emoji | Apache License 2.0 |
samples/star/src/commonMain/kotlin/com/slack/circuit/star/petlist/PetListAnimal.kt | slackhq | 523,011,227 | false | {"Kotlin": 520467, "JavaScript": 4556, "Shell": 3808, "Ruby": 1378} | // Copyright (C) 2024 Slack Technologies, LLC
// SPDX-License-Identifier: Apache-2.0
package com.slack.circuit.star.petlist
import androidx.compose.runtime.Immutable
import com.slack.circuit.star.db.Gender
import com.slack.circuit.star.db.Size
@Immutable
data class PetListAnimal(
val id: Long,
val name: String,
... | 30 | Kotlin | 72 | 1,472 | 14900fea0d5075f0197b47791befdb422e700e8e | 427 | circuit | Apache License 2.0 |
app/src/main/java/com/funckyhacker/capofiler/di/MainComponent.kt | Capotasto | 124,621,498 | false | null | package com.funckyhacker.capofiler.di
import com.funckyhacker.capofiler.view.main.MainActivity
import dagger.Subcomponent
import dagger.android.AndroidInjector
@Subcomponent
interface MainComponent : AndroidInjector<MainActivity> {
@Subcomponent.Builder
abstract class Builder : AndroidInjector.Builder<MainAct... | 5 | null | 1 | 6 | 34570333e7a6022714af5d7e10e3797b08f9fe8a | 331 | Capo-Filer-Android | MIT License |
app/src/main/java/com/personal/tmdb/detail/presentation/cast/CastScreen.kt | Avvami | 755,489,313 | false | null | package com.personal.tmdb.detail.presentation.cast
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import ... | 0 | null | 0 | 2 | d5b4d2ee9eb9616ab0e217f8d6fff45723bf5e58 | 9,353 | TMDB | MIT License |
common/src/main/kotlin/net/spaceeye/vmod/toolgun/modes/hud/ThrusterHUD.kt | SuperSpaceEye | 751,999,893 | false | {"Kotlin": 699835, "Java": 18882} | package net.spaceeye.vmod.toolgun.modes.hud
import net.spaceeye.vmod.toolgun.modes.util.SimpleHUD
interface ThrusterHUD: SimpleHUD {
override fun makeSubText(makeText: (String) -> Unit) {
// this as ThrusterMode
// makeText(STRIP_HUD_1.get())
}
} | 1 | Kotlin | 9 | 6 | 1b54435e7b48ffae90a937d7ce22dc053fc95947 | 270 | VMod | MIT License |
src/main/kotlin/per/mapt/kt/testkt/TestKtApplication.kt | myfly150 | 136,713,531 | false | {"Kotlin": 3291} | package per.mapt.kt.testkt
import org.mybatis.spring.annotation.MapperScan
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.transaction.annotation.EnableTransactionManagement
@EnableTransactionManagement
@MapperScan("per.mapt... | 0 | Kotlin | 0 | 0 | 8d81dae938b66b0821ffffe7bd6d79c00cd34ce0 | 467 | testSpringKotlin | Apache License 2.0 |
app/src/main/java/com/ijs/abminder/dictionary/ui/DictionaryActivity.kt | ijscreate | 785,375,972 | false | {"Kotlin": 868465, "Roff": 59377, "AIDL": 765, "CSS": 156} | package com.ijs.abminder.dictionary.ui
import android.Manifest
import android.annotation.SuppressLint
import android.app.Dialog
import android.content.ContentValues.TAG
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.database.Cursor
import android.os... | 0 | Kotlin | 0 | 1 | 6f85983cdeac02532df43157d7ae570a057a77c9 | 19,771 | ABMinder | MIT License |
app/src/main/java/edu/uofk/eeese/eeese/data/source/Repository.kt | ratedali | 77,694,300 | false | null | /*
* Copyright 2017 Ali Salah Alddin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distri... | 0 | Kotlin | 0 | 1 | 517d549e1ec36a2647cc5401312d06645a54afe2 | 1,604 | EEESE-android | MIT License |
src/main/kotlin/coverosR3z/misc/Misc.kt | cybernetics | 327,159,653 | true | {"Kotlin": 343884, "CSS": 7602, "HTML": 6285, "JavaScript": 84} | package coverosR3z.misc
const val successHTML = """
<!DOCTYPE html>
<html>
<head>
</head>
<title>SUCCESS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<body>
<p>SUCCESS</p>
<p><a href="homepage">Homepage</a></p>
</body>
</html>
"""
... | 0 | null | 0 | 0 | ac237097c4132580b0a399403c0ca964ec1ddc7e | 570 | r3z | MIT License |
project-practice-problems/src/kiz/learnwithvel/problems/aa_introduction/StringCheckNumEmpty.kt | vel02 | 261,988,454 | false | null | package kiz.learnwithvel.problems.aa_introduction
fun main() {
val str1: String? = null
val str2 = " "
var result = if (isNullOrEmpty(str1)) "st1 is not null or empty"
else "str1 is null or empty"
println(result)
result = if (isNullOrEmpty(str2)) "st1 is not null or empty"
else "str1 is... | 1 | null | 1 | 1 | 7644d1911ff35fda44e45b1486bcce5d790fe7c0 | 441 | learn-kotlin-android | MIT License |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/sagemaker/CfnInferenceExperimentInferenceExperimentSchedulePropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.sagemaker
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.String
import software.amazon.awsc... | 4 | null | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 1,813 | awscdk-dsl-kotlin | Apache License 2.0 |
src/main/kotlin/com/wcarmon/codegen/model/StringFormatTemplate.kt | Amjad7z | 462,155,568 | false | null | package com.wcarmon.codegen.model
/**
* Uses [String.format] to and a placeholder to expand the template
*/
data class StringFormatTemplate(
/**
* A template which can be formatted/expanded with [String.format]
*
* Should contain %s, but not required
*
* Counter examples: Method references
*/
... | 0 | Kotlin | 0 | 0 | c79fc1bb2a6f748b3fdd09e3e64fe854fa85f650 | 645 | Codegenerating | MIT License |
prime-router/src/testIntegration/kotlin/datatests/mappinginventory/catchall/cq/CQTests.kt | CDCgov | 304,423,150 | false | null | package gov.cdc.prime.router.datatests.mappinginventory.cq
import gov.cdc.prime.router.datatests.mappinginventory.verifyHL7ToFHIRToHL7Mapping
import org.junit.jupiter.api.Test
class CQTests {
@Test
fun `test CQ to quantity`() {
assert(verifyHL7ToFHIRToHL7Mapping("catchall/cq/quantity/cq_all_fields").p... | 1,458 | null | 39 | 71 | 81f5d3c284982ccdb7f24f36fc69fdd8fac2a919 | 488 | prime-reportstream | Creative Commons Zero v1.0 Universal |
platform/platform-impl/src/com/intellij/ui/filterField/SearchPopupControllerBase.kt | JetBrains | 2,489,216 | false | null | package com.intellij.ui.filterField
import com.intellij.openapi.application.EDT
import com.intellij.openapi.application.smartReadAction
import com.intellij.openapi.project.Project
import com.intellij.openapi.ui.popup.JBPopupListener
import com.intellij.openapi.ui.popup.LightweightWindowEvent
import com.intellij.openap... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 7,312 | intellij-community | Apache License 2.0 |
Shredsheets 3/core/src/com/bm/shredsheets/models/NotesModel.kt | Adam-Carstensen | 170,176,021 | false | null | package com.bm.shredsheets.models
import com.bm.shredsheets.enums.MusicKeys
import com.bm.shredsheets.models.scales.Scale
import com.bm.shredsheets.models.scales.ScaleNote
object NotesModel {
var AllNotes =
arrayOf("C", "C♯", "D♭", "D", "D♯", "E♭", "E", "E♯", "F♭", "F", "F♯", "G♭", "G", "G♯", "A♭", "A", "... | 0 | null | 0 | 9 | 81690a2332b9c7488d2a61aaeb499dfe54190a60 | 6,142 | Shredsheets | MIT License |
app/src/main/java/com/nimble/nimblerewards/ui/screens/wallet/WalletFragment.kt | nimblehq | 198,597,484 | false | null | package com.nimble.nimblerewards.ui.screens.wallet
import android.annotation.SuppressLint
import android.text.SpannableStringBuilder
import androidx.core.content.res.ResourcesCompat.getColor
import androidx.core.text.bold
import androidx.core.text.color
import androidx.lifecycle.ViewModelProviders
import androidx.navi... | 0 | Kotlin | 0 | 1 | 9af94e7d76cd8d681d46ad06d711da2eeab76233 | 2,917 | nimble-rewards-android | MIT License |
src/main/java/com/google/summit/ast/initializer/SizedArrayInitializer.kt | google | 458,007,554 | false | {"Kotlin": 310732, "Starlark": 12285} | /*
* Copyright 2022 Google LLC
*
* 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 ... | 2 | Kotlin | 7 | 34 | a295d9bfea3932dbcbcf3c2de6c4cbbb81ed5f45 | 1,160 | summit-ast | Apache License 2.0 |
src/main/kotlin/structural/composite/patern/Vote.kt | gvoltr | 151,469,613 | false | null | package structural.composite.patern
enum class Vote {
POSITIVE, NEGATIVE, ABSTAINED
} | 0 | Kotlin | 0 | 0 | 8a6ef2b336fea0848b2c220672b2a020abecd005 | 92 | patterns | Apache License 2.0 |
app/src/main/java/com/polito/sismic/Presenters/ReportActivity/Fragments/DatiGeneraliReportFragment.kt | lightem90 | 98,580,995 | false | null | package com.polito.sismic.Presenters.ReportActivity.Fragments
import android.os.Bundle
import android.support.annotation.Nullable
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.polito.sismic.Interactors.Helpers.UiMapper
import com.polito.sismic.R
import com.stepsto... | 0 | Kotlin | 0 | 0 | 2b261e9c2fb0349e033ee808224bdc570a9d8557 | 2,067 | Sismic | MIT License |
core/src/test/kotlin/de/uulm/se/couchedit/processing/common/services/diff/VersionManagerTest.kt | sp-uulm | 303,650,849 | false | null | package de.uulm.se.couchedit.processing.common.services.diff
import de.uulm.se.couchedit.processing.common.model.time.VectorTimestamp
import org.assertj.core.api.Assertions.assertThat
import org.assertj.core.api.Assertions.assertThatIllegalStateException
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter... | 0 | Kotlin | 0 | 0 | 595266c0bca8f2ee6ff633c4b45b91e5f3132cc4 | 4,642 | CouchEdit | Apache License 2.0 |
buildSrc/src/main/kotlin/me/mataha/gradle/util/extensions/plugins/application/JavaApplication.kt | mataha | 302,513,601 | false | null | package me.mataha.gradle.util.extensions.plugins.application
import org.gradle.api.plugins.JavaApplication
import java.nio.charset.Charset
private fun JavaApplication.useFileEncoding(charset: Charset) {
applicationDefaultJvmArgs += "-Dfile.encoding=${charset}"
}
fun JavaApplication.useUtf8() = this.useFileEncodi... | 0 | Kotlin | 0 | 0 | 82fac9dae62136da8217e21ef5a0d6984d6310e0 | 339 | misaki | MIT License |
player-analytics-core/src/main/java/video/api/player/analytics/core/utils/EnumAsIntSerializer.kt | apivideo | 435,570,950 | false | null | package ru.n08i40k.polytechnic.next.utils
import kotlinx.serialization.KSerializer
import kotlinx.serialization.descriptors.PrimitiveKind
import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor
import kotlinx.serialization.descriptors.SerialDescriptor
import kotlinx.serialization.encoding.Decoder
import kot... | 0 | null | 1 | 12 | b1c7febb3b0c5a35a26981cd34fe9f9ef07b20a9 | 865 | api.video-android-player-analytics | MIT License |
business/play_mine/src/main/java/com/will/play/mine/ui/viewmodel/MineWalletWithdrawItemViewModel.kt | willpyshan13 | 273,811,029 | false | null | package com.will.play.mine.ui.viewmodel
/**
* Desc:我的钱包收入itemViewModel
* Date: 2020-09-09 22:19
* @Author: zhuanghongzhan
*/
class MineWalletWithdrawItemViewModel {
} | 1 | null | 1 | 2 | 4c4cd66f9fb9c32843767a29e113758384be395a | 171 | DouYinPlay | Apache License 2.0 |
examples/diehard/DieHardModelTest.kt | google | 630,096,488 | false | null | /*
* Copyright 2023 Google LLC
*
* 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 i... | 0 | null | 1 | 5 | c55b53cf7203462624209f81a7148934b95919f9 | 1,009 | model-verifier-in-kotlin | Apache License 2.0 |
app/src/main/java/com/guesswho/covidstats/ui/main/SectionsPagerAdapter.kt | GuessWh0o | 248,847,868 | false | null | package com.guesswho.covidstats.ui.main
import android.content.Context
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter
import com.guesswho.covidstats.R
import com.guesswho.covidstats.adapter.CaseListAdapter
import com.guesswho.covidst... | 0 | Kotlin | 0 | 1 | b5e853a252dc12ae57a7643c176adb6b39ddbf85 | 1,599 | CovidStats | MIT License |
app/src/main/java/petrov/ivan/tmdb/data/TmdbMovieDataResponse.kt | peiwal | 220,654,831 | false | null | package petrov.ivan.tmdb.data
import com.squareup.moshi.Json
import petrov.ivan.tmdb.database.MovieData
import java.io.Serializable
data class TmdbMovieDataResponse(
var id: String,
@field:Json(name = "vote_average")
val rating: Double,
val title: String,
val overview: String,
@field:Json(name... | 0 | Kotlin | 0 | 0 | 4efb0aad672c4d8624f3c91314acd889d3ef7984 | 857 | Tmdb-Movie | MIT License |
compiler/testData/codegen/box/inlineClasses/kt54603.kt | mmokross | 577,727,252 | false | null | // WITH_STDLIB
// WORKS_WHEN_VALUE_CLASS
// LANGUAGE: +ValueClasses, +CustomEqualsInInlineClasses
// TARGET_BACKEND: JVM_IR
class A(x: Int)
OPTIONAL_JVM_INLINE_ANNOTATION
value class B(val a: A) {
override fun equals(other: Any?) = true
}
OPTIONAL_JVM_INLINE_ANNOTATION
value class C<T>(val t: T) {
override f... | 0 | Kotlin | 0 | 0 | 7ee64d68162157882f4f34d97f79beb6b713c3f0 | 1,667 | kotlin | Apache License 2.0 |
app/src/main/kotlin/com/ivanovsky/passnotes/presentation/note/cells/viewmodel/OtpPropertyCellViewModel.kt | aivanovski | 95,774,290 | false | null |
package com.ivanovsky.passnotes.presentation.note.cells.viewmodel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.asLiveData
import com.ivanovsky.passnotes.domain.otp.HotpGenerator
import com.ivanovsky.passnotes.domain.otp.OtpCodeFormatter
import com.ivanovsky.passnotes.domain.otp.OtpFlowFactory
i... | 7 | null | 4 | 53 | 83605c13c7f13e1f484aa00f6b3e9af622880888 | 3,291 | keepassvault | Apache License 2.0 |
plugins/devkit/devkit-kotlin-tests/testData/inspections/serializableCtor/SerializableClassButPropertyMappingAnnotationNotAvailable.kt | ingokegel | 72,937,917 | false | null | import java.io.Serializable
class SerializableClassButPropertyMappingAnnotationNotAvailable(val myString: String,
val myInteger: Int,
val myBoolean: Boolean) : Serializable {
companion obje... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 375 | intellij-community | Apache License 2.0 |
src/commonMain/kotlin/com/rikonardo/cafebabe/data/constantpool/AbstractConstant.kt | Rikonardo | 496,376,704 | false | {"Kotlin": 43022, "Java": 330} | package com.rikonardo.cafebabe.data.constantpool
abstract class AbstractConstant(val tag: Int)
| 0 | Kotlin | 1 | 3 | 359ec9261c3ac5c3a2b27b9db6289a40efd77508 | 96 | CafeBabe | MIT License |
stripe/src/test/java/com/stripe/android/CustomerSessionTestHelper.kt | swdreams | 220,836,994 | true | {"Kotlin": 1543131, "Java": 141606, "Ruby": 6208} | package com.stripe.android
internal object CustomerSessionTestHelper {
internal fun setInstance(customerSession: CustomerSession) {
CustomerSession.setInstance(customerSession)
}
}
| 0 | null | 1 | 2 | 413c85d6213d894510cc78684287783e36eeb53b | 198 | stripe-android | MIT License |
example/android/app/src/main/kotlin/com/example/example_glyphicon/MainActivity.kt | thiagomoises | 399,610,284 | true | {"Dart": 128707, "Swift": 404, "Kotlin": 134, "Objective-C": 38} | package com.example.example_glyphicon
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | 38cd010cdfb700c8343baf37d01a527215276d4d | 134 | glyphicon-flutter | MIT License |
feature-nft-impl/src/main/java/jp/co/soramitsu/nft/impl/presentation/NFTFlowFragment.kt | soramitsu | 278,060,397 | false | null | package jp.co.soramitsu.nft.impl.presentation
import android.Manifest
import android.annotation.SuppressLint
import android.app.Dialog
import android.os.Build
import android.os.Bundle
import android.view.KeyEvent
import androidx.activity.result.ActivityResultLauncher
import androidx.annotation.RequiresApi
import andro... | 15 | null | 30 | 89 | 1de6dfa7c77d4960eca2d215df2bdcf71a2ef5f2 | 10,996 | fearless-Android | Apache License 2.0 |
library-zero-file-manager-kotlin/src/main/kotlin/com/snc/zero/filemanager/file2/extensions/FileExt.kt | ArronJo | 775,765,486 | false | {"Kotlin": 154035, "Shell": 86} | package com.snc.zero.filemanager.file2.extensions
import java.io.File
import java.io.IOException
fun String.toFile(parent: String = ""): File {
return File(parent, this)
}
fun File.mkdirsOrNot(overwrite: Boolean = false): Boolean {
if (this.exists()) {
if (overwrite) {
if (!this.delete())... | 0 | Kotlin | 0 | 0 | 5a93d1db7ac2f5297aee2bc813d94ad58d9a6ab1 | 542 | multi-module-project | Apache License 2.0 |
app/src/main/java/site/leos/apps/lespas/search/SearchResultFragment.kt | BettaGeorge | 353,291,417 | true | {"Kotlin": 393167} | package site.leos.apps.lespas.search
import android.annotation.SuppressLint
import android.app.Application
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.net.Uri
import android.os.Bundle
import android.view.*
import android.widget.ImageView
import android.widget.TextView
import and... | 0 | null | 0 | 0 | 7531dc440699b047f467ee926b02fe25583de48a | 16,762 | lespas | Apache License 2.0 |
FreshlyPressed/src/main/java/com/samoreque/freshlypressed/ui/PostsViewModel.kt | samoreque | 300,311,284 | false | null | package com.samoreque.freshlypressed.ui
import android.net.Uri
import android.util.Log
import java.lang.Exception
import kotlinx.coroutines.CoroutineExceptionHandler
import kotlinx.coroutines.launch
import androidx.lifecycle.ViewModel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.LiveData
impor... | 1 | null | 1 | 1 | 03e5a106f45e76bd46039c6af791cb1e4ffb5495 | 5,098 | ListWithCoroutines | Apache License 2.0 |
app/src/main/java/com/example/remind/screen/onboard/OnboardScreen.kt | adityarizkyramadhan | 617,525,476 | false | null | package com.example.remind.screen.onboard
import android.annotation.SuppressLint
import androidx.compose.foundation.*
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.text.ClickableText
import androidx.compose.material.Button
imp... | 0 | Kotlin | 1 | 0 | 3d618592c192e09d64771cc433350652d7a68925 | 3,509 | project-raion-kel2 | MIT License |
modules/core/arrow-annotations-processor/src/test/resources/arrow/ap/objects/lens/Lens.kt | nayak232 | 133,091,679 | true | {"Kotlin": 1410861, "CSS": 118712, "JavaScript": 65515, "HTML": 11087, "Java": 4465, "Shell": 3043} | package `arrow`.`ap`.`objects`.`lens`
fun lensField(): arrow.optics.Lens<`arrow`.`ap`.`objects`.`lens`.`Lens`, `kotlin`.`String`> = arrow.optics.Lens(
get = { lens: `arrow`.`ap`.`objects`.`lens`.`Lens` -> lens.`field` },
set = { value: `kotlin`.`String` ->
{ lens: `arrow`.`ap`.`objects`.`le... | 0 | Kotlin | 0 | 0 | 20ca3a7eb27b1563e5f379f798042c0f932f8537 | 1,208 | arrow | Apache License 2.0 |
display/src/wasmJsMain/kotlin/util/WindowSize.wasmJs.kt | EdwinChang24 | 770,688,696 | false | {"Kotlin": 363962, "HTML": 3051, "JavaScript": 1189} | package util
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.unit.DpSize
impor... | 0 | Kotlin | 0 | 0 | 08dbf83560e2511bd6cdf485bef628a4b44d9ff3 | 1,336 | sheng-ji-display | MIT License |
library/src/androidTest/java/com/pxddy/simpleviewbinding/ActivityViewBindingLazyTest.kt | Pxddy | 584,109,381 | false | {"Kotlin": 19192} | package com.pxddy.simpleviewbinding
import androidx.test.core.app.launchActivity
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.pxddy.simpleviewbinding.databinding.ActivityTestBinding
import io.kotest.matchers.shouldBe
import io.kotest.matchers.shouldNotBe
import io.kotest.matchers.types.shouldBeSameI... | 1 | Kotlin | 0 | 0 | 475ac2459022fb9fbe000c952d1a9324e6f35eaa | 1,360 | simple-viewbinding | Apache License 2.0 |
kodein/src/test/kotlin/com/github/salomonbrys/kodein/test/test.kt | suclike | 123,946,819 | true | {"Kotlin": 355463, "Java": 15376, "Shell": 723, "HTML": 718} | package com.github.salomonbrys.kodein.test
import com.github.salomonbrys.kodein.*
import com.github.salomonbrys.kodein.bindings.*
import junit.framework.TestCase
import org.junit.Assert.assertNotEquals
import org.junit.FixMethodOrder
import org.junit.Test
import org.junit.runners.MethodSorters
import java.util.*
impor... | 0 | Kotlin | 0 | 0 | b82605d7b3750f9a98c3a4aad91a9fd6f0de7818 | 34,521 | Kodein | MIT License |
src/main/kotlin/no/nav/bidrag/cucumber/model/testdata.kt | navikt | 321,954,421 | false | {"Kotlin": 156232, "Gherkin": 13712, "Dockerfile": 238, "Shell": 202} | package no.nav.bidrag.cucumber.model
internal class TestData {
val dataForNokkel: MutableMap<String, Data> = HashMap()
var nokkel: String? = null
fun hentData(nokkel: String? = null) = dataForNokkel[nokkel ?: this.nokkel] ?: throw IllegalArgumentException("Fant ingen data for nøkkel")
fun hentDataMedN... | 6 | Kotlin | 0 | 2 | de06a6a90ed738a56ae65028387c9481a93116ec | 710 | bidrag-cucumber-cloud | MIT License |
app/src/main/java/github/alexzhirkevich/studentbsuby/util/communication/BroadcastReceiverMapper.kt | alexzhirkevich | 452,910,975 | false | {"Kotlin": 479612} | package github.alexzhirkevich.studentbsuby.util.communication
import android.content.Context
import android.content.Intent
class BroadcastReceiverMapper<T> (
private val context: Context,
override val action: String,
private val serializer: Serializer<T>
) : BroadcastMapper<T>, Serializer<T> by serializ... | 0 | Kotlin | 0 | 5 | bf04ce772bb3d9485dffd5d3abf252be1754ce51 | 476 | student-bsu-by | MIT License |
entity/src/main/java/com/feduss/timerwear/entity/enums/Consts.kt | feduss | 839,081,219 | false | {"Kotlin": 258238} | package com.feduss.timerwear.entity.enums
sealed class Consts(val value: String) {
data object AlarmEnd: Consts("321")
data object MainChannelId: Consts("TomatoMainChannelId")
data object SubChannelId: Consts("TomatoSubChannelId")
data object NotificationChannelId: Consts("TomatoNotificationChannelId")... | 0 | Kotlin | 0 | 2 | dfb37475aa73825379a63aae17e31808777279e2 | 711 | TimerWear | MIT License |
features/player/presentation/src/main/kotlin/dev/marcocattaneo/sleep/player/presentation/screen/PlaylistStateMachine.kt | mcatta | 469,373,328 | false | null | /*
* Copyright 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 1 | null | 0 | 3 | 947a829a07d5e46badb7859a119bd3963044268a | 1,757 | sleep | Apache License 2.0 |
app/src/espresso/kotlin/xyz/lbres/trickcalculator/testutils/helpers.kt | lbressler13 | 464,331,572 | false | null | package xyz.lbres.trickcalculator.testutils
/**
* Alternate to standard [repeat] function, to allow breaking out of the loop.
*
* @param maxRepeats [Int]: number of times to repeat code without breaking loop
* @param breakCondition () -> [Boolean]: condition to break out of loop
* @param function () -> [Unit]: co... | 0 | Kotlin | 0 | 2 | 07a52ca0fd0f46bd960bb0144ea54638780c1f5a | 558 | trick-calculator | MIT License |
kotlin/src/main/kotlin/com/pbh/soft/day2/Day2Solver.kt | phansen314 | 579,463,173 | false | {"Kotlin": 32722} | package com.pbh.soft.day2
import cc.ekblad.konbini.*
import com.pbh.soft.common.Solver
import com.pbh.soft.common.parsing.ParsingUtils.onSuccess
import com.pbh.soft.common.parsing.ParsingUtils.parseLines
import com.pbh.soft.day2.Color.*
import com.pbh.soft.day2.Parsing.gameP
import mu.KLogging
import kotlin.math.max
... | 0 | Kotlin | 0 | 0 | 0788047263e9d79a1e43e8cd0965a04d2b49b98d | 2,407 | advent-of-code | MIT License |
mobiuskt-core/src/commonTest/kotlin/testdomain/Crash.kt | DrewCarlson | 147,952,971 | false | {"Kotlin": 361175} | package kt.mobius.testdomain
class Crash : TestEffect | 6 | Kotlin | 3 | 65 | 194d2c1bf2737b23f5683433bcdf3cbb40c19dae | 54 | mobius.kt | Apache License 2.0 |
app/src/main/java/com/uinjkt/mobilepqi/ui/signin/SigninActivity.kt | acalapatih | 708,105,917 | false | {"Kotlin": 524790} | package com.uinjkt.mobilepqi.ui.signin
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.text.method.PasswordTransformationMethod
import androidx.core.view.isVisible
import androidx.core.widget.doAfterTextChanged
import com.jakew... | 0 | Kotlin | 0 | 0 | e4c7c4a93d1c2b1632a45c827b9df76652b0d0f7 | 6,211 | MobilePQI_mobileApps | MIT License |
plugin-dotnet-agent/src/main/kotlin/jetbrains/buildServer/agent/WindowsRegistryHive.kt | JetBrains | 49,584,664 | false | null | /*
* Copyright 2000-2023 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 15 | Kotlin | 23 | 91 | a19e1b8856a120d6f7f0d85cf7c2161adfae241f | 812 | teamcity-dotnet-plugin | Apache License 2.0 |
core/common/src/main/kotlin/org/michaelbel/movies/common/ktx/NotificationManagerKtx.kt | michaelbel | 115,437,864 | false | null | package org.michaelbel.movies.common.ktx
import android.app.NotificationManager
import android.content.Context
import androidx.core.content.ContextCompat
val Context.notificationManager: NotificationManager
get() = ContextCompat.getSystemService(this, NotificationManager::class.java) as NotificationManager | 4 | Kotlin | 21 | 81 | 00b1cd807a4e7c894b0792ebb668e4cbcedc5605 | 313 | movies | Apache License 2.0 |
component/editor/src/main/kotlin/io/github/n34t0/compose/codeEditor/codecompletion/CodeCompletionListState.kt | n34t0 | 414,180,462 | false | {"Kotlin": 502013, "Java": 427303} | package io.github.n34t0.compose.codeEditor.codecompletion
import androidx.compose.foundation.lazy.LazyListLayoutInfo
import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.runtime.Stable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateListOf
import androidx.c... | 1 | Kotlin | 6 | 92 | 8bc6edadd2a2b1eb20e15e265d3d6ad638b27db4 | 9,572 | compose-code-editor | Apache License 2.0 |
app/src/main/java/ca/on/hojat/gamenews/core/providers/TimeProvider.kt | hojat72elect | 574,228,468 | false | null | package ca.hojat.gamehub.core.providers
import com.paulrybitskyi.hiltbinder.BindType
import java.time.LocalDateTime
import javax.inject.Inject
interface TimeProvider {
fun getCurrentDateTime(): LocalDateTime
}
@BindType
internal class TimeProviderImpl @Inject constructor() : TimeProvider {
override fun getC... | 0 | Kotlin | 8 | 4 | b1c07551e90790ee3d273bc4c0ad3a5f97f71202 | 397 | GameHub | MIT License |
src/main/kotlin/org/vitrivr/cottontail/database/queries/planning/nodes/logical/management/DeleteLogicalOperatorNode.kt | vitrivr | 160,775,368 | false | null | package org.vitrivr.cottontail.database.queries.planning.nodes.logical.management
import org.vitrivr.cottontail.database.column.ColumnDef
import org.vitrivr.cottontail.database.entity.Entity
import org.vitrivr.cottontail.database.entity.EntityTx
import org.vitrivr.cottontail.database.queries.planning.nodes.logical.Una... | 8 | Kotlin | 11 | 14 | b5546015ae69013649b25a75b261b2a835469d0a | 2,323 | cottontaildb | MIT License |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/Equal.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.tabler.tabler.outline
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
im... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 2,221 | compose-icon-collections | MIT License |
app/src/main/java/dev/vengateshm/android_kotlin_compose_practice/graph_ql_app/rickandmorty_api/ui/screen/character_list/CharacterListScreen.kt | vengateshm | 670,054,614 | false | {"Kotlin": 2030949, "Java": 55066} | package dev.vengateshm.android_kotlin_compose_practice.graph_ql_app.rickandmorty_api.ui.screen.character_list
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import android... | 0 | Kotlin | 0 | 1 | 2f5a7710bcbd4d04b443e77459e7fb8a43a5e6ab | 2,532 | Android-Kotlin-Jetpack-Compose-Practice | Apache License 2.0 |
signum-postgres/src/main/kotlin/com/sksamuel/signum/postgres/LockMetrics.kt | sksamuel | 292,966,030 | false | null | @file:Suppress("RECEIVER_NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS", "OPT_IN_USAGE")
package com.sksamuel.signum.postgres
import io.micrometer.core.instrument.Gauge
import io.micrometer.core.instrument.MeterRegistry
import io.micrometer.core.instrument.binder.MeterBinder
import kotlinx.coroutines.Dispatchers
imp... | 0 | null | 0 | 6 | 319b18decc77a85bb3ddb6bfe44f9bccbebd0a9c | 2,409 | signum | Apache License 2.0 |
src/main/kotlin/net/maizegenetics/phgv2/brapi/model/TokenPagination.kt | maize-genetics | 696,835,682 | false | null | package model
import kotlinx.serialization.Serializable
/**
* @param pageSize The number of data elements returned, aka the size of the currect page. If the requested page does not have enough elements to fill a page at the requested page size, this field should indicate the actual number of elements returned
* @pa... | 3 | null | 1 | 9 | c415acf68360b5aa62ed31d33523b4adb6f6e741 | 1,174 | phg_v2 | Apache License 2.0 |
SquareBoatApplication/app/src/main/java/com/priyam/squareboatapplication/util/Resource.kt | priyamBansal1308 | 332,413,844 | false | null | package com.priyam.squareboatapplication.util
sealed class Resource<T>(
val data: T? = null,
val message: String? = null,
val code:Int?=null
) {
class Success<T>(data: T) : Resource<T>(data)
class Error<T>(code:Int?,message: String, data: T? = null) : Resource<T>(data, message,code)
class L... | 0 | Kotlin | 0 | 0 | 120f7077a5c529347ca9743cce6b3509d2da5a22 | 347 | IconFinder | MIT License |
domain/src/main/java/city/zouitel/domain/repository/NoteRepository.kt | City-Zouitel | 576,223,915 | false | {"Kotlin": 491074} | package city.zouitel.domain.repository
import city.zouitel.domain.model.Note as OutNote
import kotlinx.coroutines.flow.Flow
interface NoteRepository {
val getAllNotesById: Flow<List<OutNote>>
val getAllNotesByName: Flow<List<OutNote>>
val getAllNotesByNewest: Flow<List<OutNote>>
val getAllNotesByO... | 41 | Kotlin | 13 | 94 | 279f774769be23f897c75028f68f93b997a86319 | 498 | JetNote | Apache License 2.0 |
core/designsystem/src/main/java/com/ku_stacks/ku_ring/designsystem/kuringtheme/KuringColors.kt | ku-ring | 412,458,697 | false | {"Kotlin": 651475} | package com.ku_stacks.ku_ring.designsystem.kuringtheme
import androidx.compose.runtime.*
import androidx.compose.ui.graphics.Color
import com.ku_stacks.ku_ring.designsystem.kuringtheme.values.*
/**
* 쿠링 앱에서 사용하는 색깔 테마이다.
* [androidx.compose.material.Colors]을 참고하여 개발했다.
*/
@Stable
class KuringColors internal constr... | 6 | Kotlin | 1 | 23 | 5580b0c1c5a9f82d44399df6e8f96ae64cbdd79d | 6,447 | KU-Ring-Android | Apache License 2.0 |
app/src/main/kotlin/dev/aphirri/android/MainActivity.kt | NoGe4Ek | 861,859,795 | false | {"Kotlin": 116416} | package dev.aphirri.android
import android.app.Activity
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.animation.EnterTransition
import androidx.compose.animation.ExitTransition
import and... | 20 | Kotlin | 0 | 0 | c2a1f22f62aea76a3b7ef8b276b049a8d5780ca8 | 5,708 | aphirri-android | Apache License 2.0 |
test/src/main/java/org/n27/test/generators/AcConfigGenerator.kt | Narsuf | 610,945,308 | false | null | package org.n27.test.generators
import org.n27.tado.domain.tado.models.AcConfig
import org.n27.tado.domain.tado.models.Mode
fun getAcConfigs() = listOf(getAcConfig())
fun getAcConfig(
mode: Mode = Mode.HEAT,
temperature: Float = 19f,
serviceEnabled: Boolean = false
) = AcConfig(
id = 1,
name = "B... | 0 | Kotlin | 0 | 1 | 732e65403af1efb3c953112000cda5e96fb371f2 | 376 | Tado | Apache License 2.0 |
src/main/kotlin/org/planx/common/models/transforming/converting/encoding/EncodingRequest.kt | PlanX-Universe | 511,474,067 | false | null | package org.planx.common.models.transforming.converting.encoding
import org.planx.common.models.transforming.converting.ConvertingRequest
import org.planx.common.models.endpoint.solving.domain.Domain
import org.planx.common.models.endpoint.solving.problem.Problem
interface EncodingRequest<P, D> : ConvertingRequest
... | 0 | Kotlin | 0 | 0 | 257b6c6b301aa7458b28e1a2163aa7ac7a9d308e | 399 | common | MIT License |
webrtc-kmp/src/jsAndWasmJsMain/kotlin/com/shepeliev/webrtckmp/externals/RTCRtpTransceiver.kt | shepeliev | 329,550,581 | false | {"Kotlin": 233515} | package com.shepeliev.webrtckmp.externals
internal external interface RTCRtpTransceiver {
val currentDirection: String?
var direction: String
val mid: String?
val receiver: RTCRtpReceiver
val sender: RTCRtpSender
val stopped: Boolean
fun stop()
}
| 13 | Kotlin | 38 | 181 | 73e482e70dc7192601acd3482a6774c017c072de | 277 | webrtc-kmp | Apache License 2.0 |
app/src/main/kotlin/compiler/lowlevel/linearization/InstructionSet.kt | brzeczyk-compiler | 545,707,939 | false | {"Kotlin": 1167879, "C": 4004, "Shell": 3242, "Vim Script": 2238} | package compiler.lowlevel.linearization
import compiler.intermediate.Constant
import compiler.intermediate.IFTNode
import compiler.intermediate.Register
import compiler.lowlevel.Addressing
import compiler.lowlevel.Instruction
object InstructionSet {
enum class Context {
VALUE, UNCONDITIONAL, CONDITIONAL
... | 7 | Kotlin | 0 | 2 | 5917f4f9d0c13c2c87d02246da8ef8394499d33c | 26,578 | brzeczyk | MIT License |
app/src/main/java/com/mrostami/geckoincompose/ui/navigation/AppNavigation.kt | MosRos | 639,811,989 | false | null | package com.mrostami.geckoincompose.ui.navigation
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavHostController
import androidx... | 0 | Kotlin | 5 | 17 | 8e396051f6acc17fa2eba8745285fdf800832c60 | 2,312 | Geckoin-Compose | Apache License 2.0 |
Sunshine/app/src/main/java/com/extnds/learning/sunshine/utils/DividerItemDecoration.kt | pratickRoy | 64,393,322 | false | null | package com.extnds.learning.sunshine.utils
import android.content.Context
import android.graphics.Canvas
import android.graphics.Rect
import android.graphics.drawable.Drawable
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.util.Log
import android.view.... | 0 | Kotlin | 0 | 0 | 64169bbb79fcfd3ba0b172afd692f42786bb2144 | 3,018 | Sunshine | MIT License |
src/test/kotlin/br/com/jiratorio/integration/issueperiod/FindIssuePeriodIntegrationTest.kt | alanjds | 199,070,045 | true | {"Kotlin": 519339, "Dockerfile": 315, "TSQL": 269, "PLSQL": 52} | package br.com.jiratorio.integration.issueperiod
import br.com.jiratorio.assert.response.IssuePeriodDetailResponseAssert
import br.com.jiratorio.assert.response.IssueResponseAssert
import br.com.jiratorio.base.Authenticator
import br.com.jiratorio.domain.response.issueperiod.IssuePeriodByIdResponse
import br.com.jirat... | 0 | Kotlin | 0 | 0 | 3a49a3b434ce94a4bc5aaca494e3ce5c84ab4bb4 | 4,409 | jirareport | MIT License |
sdds-core/uikit-compose/src/main/kotlin/com/sdds/compose/uikit/internal/textfield/PrefixSuffixTransformation.kt | salute-developers | 765,665,583 | false | {"Kotlin": 1629046} | package com.sdds.compose.uikit.internal.textfield
import androidx.compose.ui.text.AnnotatedString
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.input.OffsetMapping
import androidx.compose.ui.text.input.TransformedText
import androidx.compose.ui.text.input.VisualTransformation
internal clas... | 4 | Kotlin | 0 | 1 | 6e1b178eaf0a54891ebafda02f8dadd988528267 | 1,637 | plasma-android | MIT License |
app/src/main/java/com/example/dapurmamatur/ui/WelcomeActivity.kt | MFaisal00359 | 792,108,953 | false | null | package com.example.dapurmamatur.ui
import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.example.dapurmamatur... | 3 | null | 0 | 2 | 333c3cecb0e11e182b70fc8f925d23774103fa1f | 998 | Recipe-Meals-Dapur-Mama-Tur | MIT License |
injective-core/src/commonMain/kotlin/injective/wasmx/v1/tx.converter.kt | jdekim43 | 759,720,689 | false | {"Kotlin": 8940168, "Java": 3242559} | // Transform from injective/wasmx/v1/tx.proto
@file:GeneratorVersion(version = "0.3.1")
package injective.wasmx.v1
import google.protobuf.Any
import java.lang.IllegalStateException
import kr.jadekim.protobuf.`annotation`.GeneratorVersion
import kr.jadekim.protobuf.converter.ProtobufConverter
import kr.jadekim.protobu... | 0 | Kotlin | 0 | 0 | eb9b3ba5ad6b798db1d8da208b5435fc5c1f6cdc | 6,540 | chameleon.proto | Apache License 2.0 |
library/src/main/java/com/pointlessapps/rt_editor/model/RichTextValue.kt | pChochura | 465,724,709 | false | null | package com.pointlessapps.rt_editor.model
import androidx.compose.ui.text.AnnotatedString
import androidx.compose.ui.text.input.TextFieldValue
import com.pointlessapps.rt_editor.mappers.StyleMapper
import com.pointlessapps.rt_editor.utils.RichTextValueSnapshot
abstract class RichTextValue {
/**
* Returns st... | 2 | null | 7 | 47 | 1da25019640505c0e5470e85cb18f354094f9453 | 1,721 | richtext-compose | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.