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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/androidTest/java/com/pechuro/bsuirschedule/util/Utils.kt | Ilyshka991 | 147,244,674 | false | null | package com.pechuro.bsuirschedule.util
import android.os.SystemClock
inline fun waitFor(delay: Long) {
SystemClock.sleep(delay)
} | 1 | Kotlin | 1 | 8 | 0112f76ff117b99505bc1b013643f4116d5ec379 | 135 | BsuirSchedule | Apache License 2.0 |
shared/feature/geminio-sdk/src/main/kotlin/ru/hh/plugins/geminio/sdk/models/GeminioTemplateParametersIds.kt | hhru | 159,637,875 | false | null | package ru.hh.plugins.geminio.sdk.models
data class GeminioTemplateParametersIds(
val newModuleNameParameterId: String,
val newModulePackageNameParameterId: String,
val newModuleLibrariesModulesParameterId: String,
val newApplicationModulesParameterId: String,
) | 17 | null | 11 | 97 | 2d6c02fc814eff3934c17de77ef7ade91d3116f5 | 280 | android-multimodule-plugin | MIT License |
compiler/fir/tree/src/org/jetbrains/kotlin/fir/declarations/FirResolvePhase.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.fir.declarations
enum class FirResolvePhase {
RAW_FIR,
ANNOTATIONS_FOR_P... | 34 | null | 5771 | 46,772 | bef0946ab7e5acd5b24b971eca532c43c8eba750 | 1,015 | kotlin | Apache License 2.0 |
runtime/src/main/java/io/novafoundation/nova/runtime/multiNetwork/chain/model/Chain.kt | nova-wallet | 496,649,319 | false | null | package io.novafoundation.nova.runtime.multiNetwork.chain.model
import io.novafoundation.nova.common.utils.Identifiable
import java.math.BigInteger
typealias ChainId = String
typealias ChainAssetId = Int
typealias StringTemplate = String
typealias ExplorerTemplateExtractor = (Chain.Explorer) -> StringTemplate?
type... | 4 | Kotlin | 8 | 24 | 69c3ee9eb9986ea092e4dd354d4c6df65642e608 | 3,355 | nova-android-app | Apache License 2.0 |
src/main/kotlin/world/seoraw/core/Webhook.kt | SeorawWorld | 446,886,909 | false | {"Kotlin": 17079} | package world.seoraw.core
import com.google.gson.JsonObject
import com.google.gson.JsonParser
import io.ktor.client.*
import io.ktor.client.call.*
import io.ktor.client.engine.cio.*
import io.ktor.client.request.*
import io.ktor.client.statement.*
import kotlinx.coroutines.runBlocking
import net.kyori.adventure.text.C... | 0 | Kotlin | 0 | 0 | fca482e36bd964789c39d45b03fd4744f8598a34 | 5,318 | SeorawCore | MIT License |
clients/android/NewsBlur/app/src/main/java/com/newsblur/util/FeedExt.kt | samuelclay | 101,248 | false | null | package com.newsblur.util
import com.newsblur.domain.Feed
object FeedExt {
fun Feed.isNotifyEmail(): Boolean = isNotify(NOTIFY_EMAIL)
fun Feed.isNotifyWeb(): Boolean = isNotify(NOTIFY_WEB)
fun Feed.isNotifyIOS(): Boolean = isNotify(NOTIFY_IOS)
fun Feed.isNotifyAndroid(): Boolean = isNotify(NOTIFY_... | 163 | null | 997 | 6,853 | cf9f0d9ef3403990f641f336f09009f791407e3b | 1,559 | NewsBlur | MIT License |
nj2k/tests/org/jetbrains/kotlin/nj2k/AbstractNewJavaToKotlinConverterSingleFileTest.kt | svitalsky | 181,867,437 | true | {"Markdown": 58, "Gradle": 502, "Gradle Kotlin DSL": 227, "Java Properties": 13, "Shell": 11, "Ignore List": 10, "Batchfile": 9, "Git Attributes": 1, "Protocol Buffer": 13, "Java": 6006, "Kotlin": 45173, "Proguard": 8, "XML": 1628, "Text": 9955, "JavaScript": 241, "JAR Manifest": 2, "Roff": 210, "Roff Manpage": 34, "IN... | /*
* Copyright 2010-2017 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... | 0 | Kotlin | 0 | 0 | bcc88020140c4e01fcf24730dced3594d2147390 | 1,913 | kotlin | Apache License 2.0 |
wear/src/main/java/hibernate/v2/testyourwear/model/MainItem.kt | himphen | 369,255,395 | false | null | package hibernate.v2.testyourwear.model
/**
* Created by himphen on 24/5/16.
*/
class MainItem(val mainText: String, val mainImageId: Int, val intentClass: Class<*>) | 0 | Kotlin | 0 | 0 | dd4030596c7ed469617ecc5bd11d2d94d2a90ad2 | 168 | TestYourAndroid | Apache License 2.0 |
androidApp/src/main/java/com/mongodb/mongoize/android/screens/registration/RegistrationViewModel.kt | mongodb-developer | 543,055,392 | false | {"Kotlin": 56591, "Swift": 3797, "Ruby": 1722} | package com.mongodb.mongoize.android.screens.registration
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.mongodb.mongoize.RealmRepo
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.withCon... | 0 | Kotlin | 6 | 5 | f4959f739d49478d2f20aab56403508e993cc48d | 998 | mongo-conference | Apache License 2.0 |
itemplotter/src/main/kotlin/com/ijoic/item_plotter/source/PlotterSource.kt | VerstSiu | 118,207,494 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 3, "Proguard": 2, "Java": 2, "XML": 17, "Kotlin": 58} | /*
*
* Copyright(c) 2018 VerstSiu
*
* 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 agree... | 0 | Kotlin | 0 | 0 | 06eed56719e62da9efaf7b4f3e3d341e02ad1b63 | 748 | item_plotter | Apache License 2.0 |
compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/WasmSymbols.kt | BradOselo | 367,097,840 | false | null | /*
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.backend.wasm
import org.jetbrains.kotlin.backend.common.ir.Symbols
import org.je... | 34 | null | 2 | 3 | 58c7aa9937334b7f3a70acca84a9ce59c35ab9d1 | 8,553 | kotlin | Apache License 2.0 |
src/main/kotlin/de/menkalian/pisces/command/impl/audio/playlist/CreatePlaylistCommand.kt | Menkalian | 471,663,267 | false | null | package de.menkalian.pisces.command.impl.audio.playlist
import de.menkalian.pisces.OnConfigValueCondition
import de.menkalian.pisces.RequiresKey
import de.menkalian.pisces.audio.IAudioHandler
import de.menkalian.pisces.command.CommonCommandBase
import de.menkalian.pisces.command.ICommandHandler
import de.menkalian.pis... | 0 | Kotlin | 0 | 1 | efc7818da5419ce720cd04878c8aa30809fc35c0 | 2,726 | pisces | Apache License 2.0 |
app/src/main/java/com/alex/injector/libServer/PointerAngel.kt | ALEX5402 | 641,489,295 | false | {"Kotlin": 61345, "C": 17580, "C++": 11686, "Java": 3970, "Makefile": 1669} | package com.alex.injector.libServer
import android.annotation.SuppressLint
import android.os.AsyncTask
import android.util.Log
import com.alex.injector.MainActivity
import com.alex.injector.objects.global.Companion.TAG
import com.topjohnwu.superuser.Shell.*
import java.io.*
import java.lang.ref.WeakReference
import ja... | 0 | Kotlin | 8 | 22 | 6a49d33a228bdbf714aaa5321a4ac147a266d7d7 | 2,264 | Reinject | MIT License |
src/test/kotlin/no/nav/familie/ef/sak/vilkår/VurderingServiceTest.kt | navikt | 206,805,010 | false | {"Kotlin": 3747804, "Gherkin": 163948, "Dockerfile": 180} | package no.nav.familie.ef.sak.service
import io.mockk.every
import io.mockk.just
import io.mockk.mockk
import io.mockk.runs
import io.mockk.slot
import io.mockk.verify
import no.nav.familie.ef.sak.barn.BarnService
import no.nav.familie.ef.sak.behandling.BehandlingService
import no.nav.familie.ef.sak.behandling.domain.... | 8 | Kotlin | 2 | 0 | d1d8385ead500c4d24739b970940af854fa5fe2c | 12,738 | familie-ef-sak | MIT License |
game/plugins/src/main/kotlin/gg/rsmod/plugins/content/combat/specialattack/weapons/melee/vestas_longsword.plugin.kts | pitchblac23 | 201,185,078 | true | {"Kotlin": 3718848, "Dockerfile": 1354} | package gg.rsmod.plugins.content.combat.specialattack.weapons.melee
import gg.rsmod.plugins.content.combat.dealExactHit
import gg.rsmod.plugins.content.combat.formula.MeleeCombatFormula
import gg.rsmod.plugins.content.combat.specialattack.ExecutionType
import gg.rsmod.plugins.content.combat.specialattack.SpecialAttack... | 0 | Kotlin | 2 | 1 | ade69da919ba62ec3ac37fccab9068f2820c774d | 1,313 | rsmod | Apache License 2.0 |
android/src/main/kotlin/com/klarna/inapp/sdk/flutter_klarna_inapp_sdk/hybrid/KlarnaHybridSDKMethod.kt | klarna | 263,862,690 | false | null | package com.klarna.inapp.sdk.flutter_klarna_inapp_sdk.hybrid
import com.klarna.inapp.sdk.flutter_klarna_inapp_sdk.core.method.MethodParser
import com.klarna.inapp.sdk.flutter_klarna_inapp_sdk.core.util.requireArgument
import io.flutter.plugin.common.MethodCall
internal sealed class KlarnaHybridSDKMethod {
class I... | 1 | Kotlin | 9 | 8 | f2b955ecad2846c09e4d8b5fc466d016423b2ddc | 821 | flutter-klarna-inapp-sdk | Apache License 2.0 |
pie-lsp/src/main/kotlin/com/virtlink/pie/lsp/PieLspModule.kt | Virtlink | 90,153,785 | false | null | package com.virtlink.pie.lsp
import com.google.inject.AbstractModule
import com.virtlink.editorservices.lsp.AesiLspModule
import com.virtlink.pie.PieModule
class PieLspModule : AbstractModule() {
override fun configure() {
install(AesiLspModule())
install(PieModule())
}
} | 1 | null | 1 | 1 | f7af2531913d9809f3429c0d8e3a82fb695d5ba4 | 299 | aesi | Apache License 2.0 |
app/shared/f8e-client/public/src/commonMain/kotlin/build/wallet/f8e/socrec/RetrieveTrustedContactInvitationService.kt | proto-at-block | 761,306,853 | false | {"C": 10551861, "Kotlin": 6455657, "Rust": 1874547, "Swift": 629125, "Python": 329146, "HCL": 257498, "Shell": 97542, "TypeScript": 81148, "C++": 64770, "Meson": 64252, "JavaScript": 36229, "Just": 26345, "Ruby": 9265, "Dockerfile": 5755, "Makefile": 3839, "Open Policy Agent": 1456, "Procfile": 80} | package build.wallet.f8e.socrec
import build.wallet.bitkey.account.Account
import build.wallet.bitkey.socrec.Invitation
import build.wallet.f8e.error.F8eError
import build.wallet.f8e.error.code.RetrieveTrustedContactInvitationErrorCode
import com.github.michaelbull.result.Result
interface RetrieveTrustedContactInvita... | 0 | C | 6 | 74 | b7401e0b96f9378cbd96eb01914a4f888e0a9303 | 649 | bitkey | MIT License |
composeApp/src/commonMain/kotlin/ChordInterpretationHelper.kt | joshuaschori | 833,395,858 | false | {"Kotlin": 60960, "Swift": 594, "HTML": 336, "CSS": 102} | // TODO @Serializable
// TODO contain pitches in chord interpretation helper??? get rid of inUpperOctave? or not?
class ChordInterpretationHelper() {
var inChord: Boolean = false
var inUpperOctave: Boolean = false
var lowestPitchIndex: Int = 0
var duplicatePitchIndexes: MutableList<Int> = mutableListOf(... | 0 | Kotlin | 0 | 1 | ec1cdeb01c9307f7dc1be01e2d29d95782b5a8df | 355 | MagnumOpus | MIT License |
Raycasting/app/src/main/java/com/carlospinan/raycasting/RaycastingView.kt | cpinan | 299,141,818 | false | null | package com.carlospinan.raycasting
import android.content.Context
import android.content.res.Resources
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.RectF
import android.view.MotionEvent
import com.carlospinan.raycasting.common.GameView
import com.ca... | 0 | Kotlin | 0 | 4 | f8f47d55f34d213157e6187b4e3f3713f89581a8 | 16,358 | Raycasting-Android-Kotlin | Apache License 2.0 |
kotlin-typescript/src/main/generated/typescript/CreateProgramOptions.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
package typescript
import js.array.ReadonlyArray
sealed external interface CreateProgramOptions {
var rootNames: ReadonlyArray<String>
var options: CompilerOptions
var projectReferences: ReadonlyArray<ProjectReference>?
var host: CompilerHost?
var oldPr... | 10 | null | 7 | 983 | 7ef1028ba3e0982dc93edcdfa6ee1edb334ddf35 | 403 | kotlin-wrappers | Apache License 2.0 |
src/main/kotlin/io/github/gaming32/mckt/packet/play/s2c/ChunkAndLightDataPacket.kt | mckt-Minecraft | 532,076,162 | false | null | package io.github.gaming32.mckt.packet.play.s2c
import io.github.gaming32.mckt.blocks.entities.BlockEntities.getMetadata
import io.github.gaming32.mckt.blocks.entities.BlockEntity
import io.github.gaming32.mckt.data.*
import io.github.gaming32.mckt.nbt.buildNbtCompound
import io.github.gaming32.mckt.nbt.put
import io.... | 0 | Kotlin | 0 | 2 | 98e88af4f54a12faeea2543c4bbdc950dd744092 | 1,944 | mckt | MIT License |
kotlin-mui-icons/src/main/generated/mui/icons/material/PermDeviceInformationSharp.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/PermDeviceInformationSharp")
@file:JsNonModule
package mui.icons.material
@JsName("default")
external val PermDeviceInformationSharp: SvgIconComponent
| 10 | Kotlin | 5 | 983 | 7ef1028ba3e0982dc93edcdfa6ee1edb334ddf35 | 234 | kotlin-wrappers | Apache License 2.0 |
app/src/main/java/com/android/shelfLife/model/recipe/Recipe.kt | commit-crimes | 867,523,622 | false | {"Kotlin": 301247, "Shell": 1272} | package com.android.shelfLife.model.recipe
import com.google.firebase.Timestamp
data class Recipe(
val name: String, // name of recipe
// val ingredients : List<FoodItem>, // ingredients in recipe todo check with Alex about this
val instructions: String, // instructions of recipes
val servings: Int, /... | 18 | Kotlin | 0 | 1 | 9c88d8eb66e379c0e2d0480e7547f7d72f75c102 | 397 | shelf-life | No Limit Public License |
cotta-core/src/main/kotlin/com/mgtriffid/games/cotta/core/effects/impl/EffectBusImpl.kt | mgtriffid | 524,701,185 | false | {"Kotlin": 478306, "Java": 9323} | package com.mgtriffid.games.cotta.core.effects.impl
import com.mgtriffid.games.cotta.core.effects.CottaEffect
import com.mgtriffid.games.cotta.core.effects.EffectBus
import com.mgtriffid.games.cotta.core.effects.EffectPublisher
class EffectBusImpl : EffectBus {
val effects = ArrayList<CottaEffect>()
override... | 2 | Kotlin | 0 | 6 | ee0bd897c67451b31f68a3a31a6ee8de756b2b52 | 618 | cotta | MIT License |
node/src/integration-test/kotlin/net/corda/services/messaging/SimpleMQClient.kt | corda | 70,137,417 | false | null | package net.corda.services.messaging
import net.corda.core.identity.CordaX500Name
import net.corda.core.serialization.internal.nodeSerializationEnv
import net.corda.core.utilities.NetworkHostAndPort
import net.corda.nodeapi.internal.ArtemisTcpTransport.Companion.p2pConnectorTcpTransport
import net.corda.nodeapi.intern... | 62 | null | 1087 | 3,989 | d27aa0e6850d3804d0982024054376d452e7073a | 1,926 | corda | Apache License 2.0 |
tmp/arrays/kotlinAndJava/70.kt | mandelshtamd | 346,008,310 | false | {"Markdown": 122, "Gradle": 762, "Gradle Kotlin DSL": 649, "Java Properties": 23, "Shell": 49, "Ignore List": 20, "Batchfile": 26, "Git Attributes": 8, "Kotlin": 82508, "Protocol Buffer": 12, "Java": 6674, "Proguard": 12, "XML": 1698, "Text": 13298, "INI": 221, "JavaScript": 294, "JAR Manifest": 2, "Roff": 217, "Roff M... | //File CLong.java
import kotlin.Metadata;
public final class CLong {
private final long value;
public final long getValue() {
return this.value;
}
public CLong(long value) {
this.value = value;
}
}
//File Main.kt
val nCInt3: CInt? = CInt(3)
val nCLong3: CLong? = CLong(3)
var subjectEv... | 1 | null | 1 | 1 | e772ef1f8f951873ebe7d8f6d73cf19aead480fa | 2,048 | kotlinWithFuzzer | Apache License 2.0 |
acornui-core/src/commonMain/kotlin/com/acornui/core/io/file/Files.kt | fuzzyweapon | 130,889,917 | true | {"Kotlin": 2963922, "JavaScript": 15366, "HTML": 5956, "Java": 4507} | /*
* Copyright 2015 <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 | 0 | a57100f894721ee342d23fe8cacb3fcbcedbe6dc | 8,240 | acornui | Apache License 2.0 |
infobip-rtc-ui/src/main/java/com/infobip/webrtc/ui/model/RtcUiCallVideoTrackType.kt | infobip | 56,227,769 | false | null | package com.infobip.webrtc.ui.model
enum class RtcUiCallVideoTrackType {
CAMERA,
SCREEN_SHARE,
ANY_AVAILABLE
} | 3 | Java | 14 | 42 | f7da49229bad640663017d6519c2a330a5e7d4da | 123 | mobile-messaging-sdk-android | Apache License 2.0 |
app/src/main/java/com/mti/component/master/view/example/FlowComponentActivity.kt | jingzhanwu | 276,342,601 | false | {"Java": 873329, "Kotlin": 149397, "HTML": 60590, "CSS": 2189} | package com.mti.component.master.view.example
import android.os.Bundle
import com.mti.component.common.entry.TagEntry
import com.mti.component.master.R
import com.mti.component.master.base.BaseActivity
import com.mti.component.master.util.toast
import kotlinx.android.synthetic.main.activity_flow_component.*
/**
* @c... | 0 | Java | 1 | 2 | cf3f18b2b6249c3818ef417722297789399664a9 | 1,695 | AnComponents | Apache License 2.0 |
src/main/kotlin/matt/exec/app/app.kt | mgroth0 | 365,615,593 | false | {"Kotlin": 9726} | package matt.exec.app
import matt.async.thread.TheThreadProvider
import matt.exec.app.initvalidator.startInitValidator
import matt.exec.exception.AppUncaughtExceptionHandler
import matt.lang.model.file.FsFile
import matt.file.commons.DATA_FOLDER
import matt.file.commons.LogContext
import matt.file.commons.hasFullFileA... | 0 | Kotlin | 0 | 0 | 474c1faef84d2619cb7d3dbf4ba38bcb07d28300 | 4,730 | exec | MIT License |
keep_screen_on/android/src/main/kotlin/dev/craftsoft/keepscreenon/KeepScreenOnPlugin.kt | craftsoft-dev | 296,578,724 | false | {"Dart": 25844, "Kotlin": 5497, "Ruby": 2214, "Swift": 1928, "Objective-C": 723} | package dev.craftsoft.keepscreenon
import android.app.Activity
import android.util.Log
import android.view.WindowManager
import io.flutter.embedding.engine.plugins.FlutterPlugin
import io.flutter.embedding.engine.plugins.activity.ActivityAware
import io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding
... | 2 | Dart | 2 | 3 | aa477814b87a17ad7df5988cb6936ac8fc631825 | 5,356 | flutter_keep_screen_on | MIT License |
icons/src/androidMain/kotlin/kiwi/orbit/compose/icons/Icons.kt | kiwicom | 289,355,053 | false | null | package kiwi.orbit.compose.icons
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.painter.Painter
import androidx.compose.ui.res.painterResource
import kotlin.Suppress
@Suppress("unused")
public object Icons {
public val Accommodation: Painter
@Composable
get() = pain... | 3 | null | 9 | 97 | 6d4026eef9fa059388c50cd9e9760d593c3ad6ac | 34,101 | orbit-compose | MIT License |
packages/native_pdf_renderer/android/src/main/kotlin/io/scer/pdf/renderer/document/Page.kt | steffenhaak | 251,211,166 | false | {"YAML": 17, "Text": 6, "Ignore List": 9, "EditorConfig": 2, "Markdown": 23, "Dart": 50, "Gradle": 19, "INI": 11, "Java Properties": 6, "XML": 67, "Java": 2, "OpenStep Property List": 14, "Objective-C": 9, "JSON": 16, "Kotlin": 12, "Swift": 11, "Shell": 6, "Batchfile": 1, "Ruby": 4, "Dockerfile": 1} | package io.scer.pdf.renderer.document
import android.annotation.TargetApi
import android.graphics.Bitmap
import android.graphics.pdf.PdfRenderer
import android.os.Build
import io.scer.pdf.renderer.utils.toByteArray
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
class Page (
private val id: String,
private v... | 1 | null | 1 | 1 | 4ef22d6d4431f822a14a43cd34a6fec5b4433ee1 | 2,397 | packages.flutter | MIT License |
TreeDragScroll/src/main/kotlin/example/App.kt | aterai | 158,348,575 | false | null | package example
import java.awt.*
import java.awt.event.MouseAdapter
import java.awt.event.MouseEvent
import javax.swing.*
import javax.swing.tree.DefaultMutableTreeNode
import javax.swing.tree.TreePath
fun makeUI(): Component {
val tree1 = JTree()
val tree2 = JTree()
expandTree(tree1)
expandTree(tree2)
va... | 0 | null | 6 | 9 | 47a0c684f64c3db2c8b631b2c20c6c7f9205bcab | 2,393 | kotlin-swing-tips | MIT License |
app/src/main/java/com/king/app/workhelper/kotlin/Customer.kt | thinkerzhangyan | 254,020,897 | true | {"Java": 2112378, "Kotlin": 60108, "HTML": 7709} | package com.king.app.workhelper.kotlin
/**
*创建 DTOs(POJOs/POCOs)
* 1. 所有属性的 getters (对于 var 定义的还有 setters)
* 2. equals()、hashCode()、toString()
* 3. copy()
* 4. 所有属性的 component1()、 component2()
*
* https://www.kotlincn.net/docs/reference/data-classes.html
* @author VanceKing
* @since 2019/4/15.
*/
data class ... | 0 | null | 0 | 0 | e81531e026bbac93711954a799d47b59600ad818 | 755 | WorkHelperApp | Apache License 2.0 |
core-data/src/main/java/com/javnez/core_data/core/Result.kt | JaviSFH | 312,879,107 | false | null | package com.javnez.core_data.core
sealed class Result<out Data> {
class Success<out Data>(val data: Data) : Result<Data>()
class Error(val failure: Failure) : Result<Nothing>()
} | 0 | Kotlin | 0 | 0 | 5c0b5e1debd506291efa737ab11a02be18ace88d | 188 | android-marvel | Apache License 2.0 |
src/main/kotlin/Day10.kt | maldoinc | 726,264,110 | false | {"Kotlin": 14472} | import java.util.*
import kotlin.io.path.Path
import kotlin.io.path.readLines
data class Coordinate(val y: Int, val x: Int)
typealias Maze = List<String>
fun Maze.isValidCoordinate(coordinate: Coordinate): Boolean =
coordinate.y in this.indices && coordinate.x in this[coordinate.y].indices
fun getStartingCoordin... | 0 | Kotlin | 0 | 1 | 47a1ab8185eb6cf16bc012f20af28a4a3fef2f47 | 2,268 | advent-2023 | MIT License |
samples/server/petstore/kotlin-springboot-3/src/main/kotlin/org/openapitools/model/Tag.kt | dweinstein | 603,900,824 | true | {"YAML": 857, "Ruby": 543, "Shell": 461, "XML": 307, "Dockerfile": 32, "Maven POM": 316, "Batchfile": 112, "Markdown": 7443, "Git Attributes": 2, "JSON with Comments": 64, "JSON": 307, "Text": 166, "Ignore List": 317, "SQL": 71, "Gradle": 219, "Kotlin": 1508, "INI": 247, "Java": 8990, "Mustache": 3597, "Python": 3824, ... | package org.openapitools.model
import java.util.Objects
import com.fasterxml.jackson.annotation.JsonProperty
import jakarta.validation.constraints.*
import jakarta.validation.Valid
/**
* A tag for a pet
* @param id
* @param name
*/
data class Tag(
@get:JsonProperty("id") val id: kotlin.Long? = null,
@... | 2 | Java | 2 | 1 | c8fab3f40a1b00db75d61716016ed0846de65c42 | 385 | openapi-generator | Apache License 2.0 |
samples/server/petstore/kotlin-springboot-3/src/main/kotlin/org/openapitools/model/Tag.kt | dweinstein | 603,900,824 | true | {"YAML": 857, "Ruby": 543, "Shell": 461, "XML": 307, "Dockerfile": 32, "Maven POM": 316, "Batchfile": 112, "Markdown": 7443, "Git Attributes": 2, "JSON with Comments": 64, "JSON": 307, "Text": 166, "Ignore List": 317, "SQL": 71, "Gradle": 219, "Kotlin": 1508, "INI": 247, "Java": 8990, "Mustache": 3597, "Python": 3824, ... | package org.openapitools.model
import java.util.Objects
import com.fasterxml.jackson.annotation.JsonProperty
import jakarta.validation.constraints.*
import jakarta.validation.Valid
/**
* A tag for a pet
* @param id
* @param name
*/
data class Tag(
@get:JsonProperty("id") val id: kotlin.Long? = null,
@... | 2 | Java | 2 | 1 | c8fab3f40a1b00db75d61716016ed0846de65c42 | 385 | openapi-generator | Apache License 2.0 |
threejs_kt/src/main/kotlin/three/Clock.module_three.kt | mihbor | 525,856,941 | false | null | @file:JsModule("three")
@file:JsNonModule
@file:Suppress("ABSTRACT_MEMBER_NOT_IMPLEMENTED", "VAR_TYPE_MISMATCH_ON_OVERRIDE", "INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS", "EXTERNAL_DELEGATION", "PackageDirectoryMismatch")
package three.js
import ko... | 0 | Kotlin | 0 | 0 | bc6b136ed2627b04019427eced632d542c3d54ea | 666 | miniverse | MIT License |
src/test/kotlin/EndianTest.kt | mvysny | 627,762,363 | false | null | package com.github.mvysny.unsigned
import com.github.mvysny.dynatest.DynaTest
import kotlin.test.expect
private fun expect4(expectedHex: String, block: (ByteArray) -> Unit) {
val bytes = ByteArray(4)
block(bytes)
expect(expectedHex) { bytes.toHex() }
}
private fun expect6(expectedHex: String, block: (Byt... | 0 | Kotlin | 0 | 3 | b834aaf5235d81d99a338188e506c50eddbb7dae | 13,023 | kotlin-unsigned-jvm | MIT License |
src/main/kotlin/io/DataInput.kt | Geek202 | 333,961,120 | false | {"Gradle": 2, "Markdown": 1, "Java Properties": 1, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "INI": 1, "Java": 2, "JSON": 2, "PHP": 1, "Kotlin": 11} | package me.geek.tom.slimeforfabric.io
import me.geek.tom.slimeforfabric.util.Bitset
import net.minecraft.nbt.CompoundTag
import okio.Buffer
@ExperimentalUnsignedTypes
interface DataInput {
fun checkSlimeHeader(): Boolean {
val header = readHeader()
return header.first == (0xB1).toUByte() && header... | 1 | null | 1 | 1 | 6e446528360a3a9853b72475659348940a46ed8b | 688 | slime-for-fabric | MIT License |
app/src/main/java/com/raul/macias/wikiheroes/view/adapter/CreatorsAdapter.kt | xR4ULx | 313,670,556 | false | {"Gradle": 3, "Java Properties": 4, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Git Attributes": 1, "Markdown": 1, "INI": 7, "Proguard": 1, "Kotlin": 119, "XML": 222, "Java": 5} | package com.raul.macias.wikiheroes.view.adapter
import android.view.View
import com.raul.macias.wikiheroes.R
import com.raul.macias.wikiheroes.models.Item
import com.raul.macias.wikiheroes.view.viewholder.BaseViewHolder
import com.raul.macias.wikiheroes.view.viewholder.CreatorViewHolder
class CreatorsAdapter (val del... | 1 | null | 1 | 1 | d76d4736780b156d2b8133e794cca2de6b408f28 | 680 | kotlin_api_marvel | MIT License |
app_pemantau/src/main/java/app/trian/pemantau/ui/pages/onboard/OnboardViewModel.kt | triandamai | 510,087,041 | false | {"Kotlin": 499465} | package app.trian.pemantau.ui.pages.onboard
import androidx.lifecycle.ViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
@HiltViewModel
class OnboardViewModel @Inject constructor() : ViewModel() {
} | 0 | Kotlin | 0 | 0 | 608d28a7800a39ee9ded14c6d85b7e7db770d01a | 238 | pantau-odp-v2 | Apache License 2.0 |
app/src/main/java/com/kobrakid/retroachievements/view/ui/SettingsFragment.kt | KobraKid | 194,746,591 | false | null | package com.kobrakid.retroachievements.view.ui
import android.graphics.Color
import android.os.Build
import android.os.Bundle
import android.util.Log
import android.util.TypedValue
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.AdapterView
import android... | 3 | Kotlin | 0 | 1 | d62d3f1643f020b99f43ae663052ca181f797104 | 5,483 | RetroAchievements | MIT License |
src/main/kotlin/com/github/strindberg/emacsj/actions/word/UpperCaseAction.kt | strindberg | 719,602,205 | false | {"Kotlin": 286724} | package com.github.strindberg.emacsj.actions.word
import com.github.strindberg.emacsj.word.ChangeType
import com.github.strindberg.emacsj.word.WordChangeHandler
import com.intellij.openapi.editor.actions.TextComponentEditorAction
class UpperCaseAction : TextComponentEditorAction(WordChangeHandler(ChangeType.UPPER))
| 3 | Kotlin | 1 | 9 | 798a061f215c8ab2d3bbb67e4ba2afd12d8554d2 | 319 | emacsj | MIT License |
src/main/kotlin/no/nav/syfo/plugins/Features.kt | navikt | 526,559,029 | false | {"Kotlin": 241578, "TypeScript": 72510, "JavaScript": 867, "Dockerfile": 699, "CSS": 389, "HTML": 356} | package no.nav.syfo.plugins
import io.ktor.server.application.*
import io.ktor.server.auth.*
import io.ktor.server.routing.*
import no.nav.syfo.altinn.registerAltinnStatusApi
import no.nav.syfo.identendring.registerFnrApi
import no.nav.syfo.identendring.registerPersonApi
import no.nav.syfo.legeerklaering.registerDelet... | 1 | Kotlin | 0 | 0 | 68ad7e710fe08ca0506f3518a70b40a4231226f4 | 1,370 | macgyver | MIT License |
app/src/main/java/com/damianogiusti/viewstatesdemo/BaseScreen.kt | damianogiusti | 130,755,941 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Proguard": 2, "Kotlin": 17, "XML": 13, "Java": 2} | package com.damianogiusti.viewstatesdemo
import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.widget.FrameLayout
import com.damianogiusti.statedispatcher.ScreenState
import com.damianogiusti.statedispatcher.StateDispatcher
import io.reactivex.disposables.CompositeDisp... | 0 | Kotlin | 0 | 0 | b5bd47653f50bb5b8aadc6fe6372f0fddda4f9f8 | 1,312 | state-dispatcher | Apache License 2.0 |
src/main/kotlin/com/demonwav/mcdev/nbt/tags/TagLongArray.kt | Earthcomputer | 240,984,777 | false | null | /*
* Minecraft Dev for IntelliJ
*
* https://minecraftdev.org
*
* Copyright (c) 2022 minecraft-dev
*
* MIT License
*/
package com.demonwav.mcdev.nbt.tags
import java.io.DataOutputStream
class TagLongArray(override val value: LongArray) : NbtValueTag<LongArray>(LongArray::class.java) {
override val payload... | 204 | null | 2 | 23 | ab8aaeb8804c7a8b2e439e063a73cb12d0a9d4b5 | 1,234 | MinecraftDev | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsciagcareersinductionapi/data/jsonprofile/CurrentSupportState.kt | ministryofjustice | 620,258,376 | false | null | package uk.gov.justice.digital.hmpps.hmppsciagcareersinductionapi.data.jsonprofile
data class CurrentSupportState(
var supportDeclined: SupportDeclined?,
var supportAccepted: SupportAccepted?,
)
| 0 | Kotlin | 0 | 0 | 008ad77d00e5556e115024169e3f1bddb8f62607 | 200 | hmpps-ciag-careers-induction-api | MIT License |
core/src/main/kotlin/org/virtuslab/bazelsteward/core/common/UpdateLogic.kt | VirtusLab | 567,694,906 | false | null | package org.virtuslab.bazelsteward.core.common
import org.virtuslab.bazelsteward.core.library.BumpingStrategy
import org.virtuslab.bazelsteward.core.library.Library
import org.virtuslab.bazelsteward.core.library.SemanticVersion
import org.virtuslab.bazelsteward.core.library.Version
import org.virtuslab.bazelsteward.co... | 40 | Kotlin | 5 | 9 | f0764aacc0b13b1296eb8cc6cd062546ed1914ff | 3,077 | bazel-steward | Apache License 2.0 |
app/src/main/java/org/sehproject/sss/viewmodel/GroupViewModel.kt | urarik | 426,300,081 | false | {"Kotlin": 225112} | package org.sehproject.sss.viewmodel
import android.util.Log
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import org.sehproject.sss.UserInfo
import org.sehproject.sss.datatype.Group
import org.sehproject.sss.datatype.User
import org.sehproject.sss.logic.GroupLogic
import org.sehproject... | 0 | Kotlin | 1 | 2 | f851dd57b2d6e350d02a58870b8d5b417a599d7e | 3,591 | SSS | MIT License |
android/src/main/java/id/kotlin/multiplatform/AppExt.kt | budioktaviyan | 152,530,352 | false | {"Swift": 20233, "Kotlin": 14563, "Ruby": 266} | package id.kotlin.multiplatform
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bumptech.glide.MemoryCategory
import com.bumptech.glide.annotation.GlideModule
import com.b... | 0 | Swift | 0 | 4 | 1cf3062ca1114020805805c97767a819d0d55cfe | 880 | movies-multiplatform | MIT License |
mobzy-features/src/main/kotlin/com/mineinabyss/mobzy/features/initializers/SetSlimeSize.kt | MineInAbyss | 142,800,887 | false | {"Kotlin": 136533} | package com.mineinabyss.mobzy.features.initializers
import com.mineinabyss.geary.autoscan.AutoScan
import com.mineinabyss.geary.systems.GearyListener
import com.mineinabyss.geary.systems.accessors.Pointers
import com.mineinabyss.idofront.serialization.IntRangeSerializer
import com.mineinabyss.idofront.typealiases.Bukk... | 9 | Kotlin | 8 | 43 | c3b007ca794292886b3f13e607bb0fbbac46f285 | 996 | Mobzy | MIT License |
app/src/main/java/com/example/testandroidpro/view/TopBar.kt | Android-Project-Group-6 | 772,969,042 | false | {"Kotlin": 135436} | package com.example.testandroidpro.view
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose... | 19 | Kotlin | 0 | 0 | fe68c254ee27154a7768ec4ea060c6cc602bcfa5 | 7,125 | AdFusion | MIT License |
app/src/main/java/jp/cordea/ribsdemo/ui/region/RegionRemoteDataSource.kt | CORDEA | 163,973,049 | false | null | package jp.cordea.ribsdemo.ui.region
import io.reactivex.Maybe
import jp.cordea.ribsdemo.api.VultrApiClient
import jp.cordea.ribsdemo.api.response.Region
import javax.inject.Inject
class RegionRemoteDataSource @Inject constructor(
private val apiClient: VultrApiClient
) : RegionDataSource {
override fun fetch... | 0 | Kotlin | 0 | 2 | 3ff23b50b9d59ca42ba95cdf437d36f2ddd4bda0 | 401 | RIBsDemo | Apache License 2.0 |
sample/src/commonMain/kotlin/ui/components/Center.kt | ShreyashKore | 793,195,317 | false | {"Kotlin": 126894, "Swift": 750} | package com.gyanoba.inspektor.sample.ui.components
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
@Composable
fun Center(modifier: Modifier = Modifi... | 6 | Kotlin | 0 | 3 | 8eba601d9bfc102574d56864918718e5f09b36f1 | 456 | inspektor | MIT License |
src/main/kotlin/org/example/chess/util/BoardInfo.kt | lachiestewart | 866,509,538 | false | {"Kotlin": 29823, "Java": 328} | package org.example.chess.util
enum class BoardInfo(val value: Int) {
HEIGHT(8),
WIDTH(8);
} | 0 | Kotlin | 0 | 0 | 410b1751a739739c10116d39c3daa14010535006 | 101 | kotlin-chess | MIT License |
demos/android/demos-kotlin/src/main/java/com/antgroup/antv/f2/kotlinsamples/ChartModel.kt | antvis | 313,171,555 | false | {"C++": 1597834, "Java": 106313, "Objective-C++": 72606, "Objective-C": 24679, "CMake": 10793, "TypeScript": 4086, "C": 3548, "Ruby": 2100, "JavaScript": 2065, "Shell": 51} | package com.antgroup.antv.f2.kotlinsamples
import com.antgroup.antv.f2.F2CanvasView
import java.io.Serializable
/**
* @author weiqing.tang
* @date 2022-06-20
*/
class ChartModel : Serializable {
@JvmField
var title: String
@JvmField
var adapterClass: Class<out F2CanvasView.Adapter?>
var horizon... | 5 | C++ | 21 | 210 | dfb6d904e2dfa279a3e5c519a10aac7791955e48 | 733 | F2Native | MIT License |
android/app/src/main/java/com/example/bachelorproef/application/MyApplication.kt | BrackeNavaron | 251,107,076 | false | null | package com.example.bachelorproef.application
import androidx.multidex.MultiDexApplication
import com.example.bachelorproef.viewmodel.*
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.core.context.startKoin
... | 0 | Kotlin | 0 | 0 | 30b9e1803903f1144386a2fb0c6e8be229822cf5 | 1,233 | bachproef_sourcecode | MIT License |
cryptohash/src/nativeDarwin32Test/kotlin/com/appmattus/crypto/internal/core/ios/SHA1.kt | appmattus | 347,486,833 | false | null | /*
* Copyright 2021 Appmattus Limited
*
* 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 t... | 0 | Kotlin | 4 | 66 | 89524539c86213c3df67e56e11f153b29cd96f98 | 4,515 | crypto | Apache License 2.0 |
geary-papermc-tracking/src/main/kotlin/com/mineinabyss/geary/papermc/tracking/entities/systems/UntrackOnRemoveBukkitComponent.kt | MineInAbyss | 592,086,123 | false | null | package com.mineinabyss.geary.papermc.tracking.entities.systems
import com.mineinabyss.geary.annotations.Handler
import com.mineinabyss.geary.components.events.EntityRemoved
import com.mineinabyss.geary.datatypes.family.family
import com.mineinabyss.geary.papermc.datastore.encodeComponentsTo
import com.mineinabyss.gea... | 0 | Kotlin | 0 | 1 | afb0722015f1d6206b89cc09e210814361decd47 | 931 | geary-papermc | MIT License |
app/src/main/java/com/waleska404/algorithms/ui/quicksort/QuickSortViewModel.kt | waleska404 | 717,751,405 | false | {"Kotlin": 113924} | package com.waleska404.algorithms.ui.quicksort
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.waleska404.algorithms.domain.quicksort.QuickSort
import com.waleska404.algorithms.ui.core.config.GAME_DELAY_IN_MS
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coro... | 0 | Kotlin | 1 | 5 | 482f3f7dcc27af14214a36d20a2d5a3e09e23866 | 6,558 | algorithms-visualizer | MIT License |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/lambda/CfnEventSourceMappingSourceAccessConfigurationPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package io.cloudshiftdev.awscdkdsl.services.lambda
import io.cloudshiftdev.awscdkdsl.common.CdkDslMar... | 3 | null | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 3,779 | awscdk-dsl-kotlin | Apache License 2.0 |
src/main/kotlin/org/wfanet/measurement/kingdom/deploy/gcloud/spanner/queries/StreamMeasurements.kt | world-federation-of-advertisers | 349,561,061 | false | {"Kotlin": 10143809, "Starlark": 951001, "C++": 627937, "CUE": 193010, "HCL": 162357, "TypeScript": 101485, "Python": 77600, "Shell": 20877, "CSS": 9620, "Go": 8063, "JavaScript": 5305, "HTML": 2489} | // Copyright 2021 The Cross-Media Measurement Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applic... | 150 | Kotlin | 11 | 36 | ba2d2d8d3d4527d844e6d168273b1c2fabfd5d4e | 8,999 | cross-media-measurement | Apache License 2.0 |
kotlin-react-router/src/jsMain/generated/react/router/UseRevalidatorResult.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12635434, "JavaScript": 423801} | // Generated by Karakum - do not modify it manually!
package react.router
import remix.run.router.RevalidationState
sealed external interface UseRevalidatorResult {
var revalidate: () -> Unit
var state: RevalidationState
}
| 38 | Kotlin | 162 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 234 | kotlin-wrappers | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/entityresolution/CfnIdMappingWorkflowDsl.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 70198112} | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package io.cloudshiftdev.awscdkdsl.services.entityresolution
import io.cloudshiftdev.awscdkdsl.CfnTag... | 0 | Kotlin | 0 | 3 | 256ad92aebe2bcf9a4160089a02c76809dbbedba | 10,536 | awscdk-dsl-kotlin | Apache License 2.0 |
src/main/kotlin/com/github/adriantodt/dragontech/block/virus/AliveVirusOreBlock.kt | annathelibri | 51,792,240 | false | {"Kotlin": 39662, "Java": 1375} | package com.github.adriantodt.dragontech.block.virus
import com.github.adriantodt.dragontech.dracony.DraconyVirus
import net.minecraft.block.Block
import net.minecraft.block.BlockState
import net.minecraft.enchantment.EnchantmentHelper
import net.minecraft.enchantment.Enchantments
import net.minecraft.item.ItemStack
i... | 1 | Kotlin | 0 | 1 | bc48a187d11876f7fd04601f058d2210f24669d8 | 1,198 | DragonTech | Creative Commons Zero v1.0 Universal |
compiler/testData/diagnostics/tests/dataFlow/IsExpression.fir.kt | android | 263,405,600 | false | null | fun f(a: Boolean, b: Int) {}
fun foo(a: Any) {
<!INAPPLICABLE_CANDIDATE!>f<!>(a is Int, a)
1 <!INAPPLICABLE_CANDIDATE!>+<!> a
} | 1 | null | 37 | 316 | 74126637a097f5e6b099a7b7a4263468ecfda144 | 136 | kotlin | Apache License 2.0 |
src/main/kotlin/examples/modules/ProcessingExample.kt | radianceteam | 306,208,297 | false | null | package examples.modules
import com.radiance.tonclient.Abi
import com.radiance.tonclient.await
import examples.Helper
import java.util.concurrent.atomic.AtomicInteger
class ProcessingExample {
suspend fun waitMessage() {
val keys = Helper.crypto.generateRandomSignKeys().await()
val encoded = Hel... | 0 | Kotlin | 1 | 2 | c9e2f2fcc2a1b7d1bf307246f2034e7186378644 | 1,483 | ton-client-kotlin | Apache License 2.0 |
module-configuration/module-configuration-core/src/main/kotlin/taboolib/module/configuration/util/SectionToMap.kt | TabooLib | 457,856,137 | false | {"Kotlin": 536645, "Java": 319776} | @file:Isolated
package taboolib.module.configuration.util
import taboolib.common.Isolated
import taboolib.library.configuration.ConfigurationSection
fun <V> ConfigurationSection.getMapAs(path: String = "", transfer: Any.() -> V): Map<String, V> {
return getMap<String, Any>(path).map { it.key to transfer(it.value... | 0 | Kotlin | 0 | 1 | 26aa5b91bc8e515a10652ca6d4c92e4a196005aa | 753 | taboolib-modules | MIT License |
kool-editor-model/src/commonMain/kotlin/de/fabmax/kool/editor/components/MaterialComponent.kt | kool-engine | 81,503,047 | false | null | package de.fabmax.kool.editor.components
import de.fabmax.kool.editor.api.*
import de.fabmax.kool.editor.data.ComponentInfo
import de.fabmax.kool.editor.data.EntityId
import de.fabmax.kool.editor.data.MaterialComponentData
import de.fabmax.kool.editor.data.MaterialShaderData
import de.fabmax.kool.modules.ksl.KslShader... | 11 | null | 20 | 303 | 8d05acd3e72ff2fc115d0939bf021a5f421469a5 | 3,606 | kool | Apache License 2.0 |
precompose/src/commonMain/kotlin/moe/tlaster/precompose/navigation/BackStackEntry.kt | Tlaster | 349,750,473 | false | null | package moe.tlaster.precompose.navigation
import moe.tlaster.precompose.lifecycle.Lifecycle
import moe.tlaster.precompose.lifecycle.LifecycleOwner
import moe.tlaster.precompose.lifecycle.LifecycleRegistry
import moe.tlaster.precompose.navigation.route.ComposeRoute
import moe.tlaster.precompose.navigation.route.SceneRo... | 3 | null | 14 | 201 | fec3ff13d1b7862b3aa944f0ff49511a336bcb83 | 2,958 | PreCompose | MIT License |
sample/src/main/java/cn/thens/kdroid/sample/test/TestRefreshActivity.kt | 7hens | 83,793,536 | false | null | package cn.thens.kdroid.sample.test
import android.os.Bundle
import androidx.recyclerview.widget.GridLayoutManager
import cn.thens.kdroid.sample.R
import cn.thens.kdroid.sample.common.app.BaseActivity
import cn.thens.kdroid.sample.launcher.AppItemAdapter
import kotlinx.android.synthetic.main.activity_test_refresh.*
im... | 1 | null | 1 | 2 | 7cca59e8b5074bf2f628d2a0fb48c96f33953bc3 | 1,688 | kdroid | Apache License 2.0 |
libs/navigation/core/src/commonMain/kotlin/com/edugma/navigation/core/compose/ComposeArgumentsStore.kt | Edugma | 474,423,768 | false | {"Kotlin": 1065114, "Swift": 1255, "Shell": 331, "HTML": 299} | package com.edugma.navigation.core.compose
import androidx.core.bundle.Bundle
import com.edugma.navigation.core.destination.ArgumentsStore
class ComposeArgumentsStore(
private val arguments: Bundle,
) : ArgumentsStore {
@Suppress("UNCHECKED_CAST", "DEPRECATION")
override fun <T> get(key: String): T? {
... | 1 | Kotlin | 0 | 3 | d9149728b9dee61606d7c46d80bc474a77f46362 | 364 | app | MIT License |
sample-android/src/main/java/com/mobilejazz/kmmsample/application/ui/common/ExceptionToStringMapperExt.kt | mobilejazz | 193,985,847 | false | null | package com.mobilejazz.kmmsample.application.ui.common
import android.content.Context
import com.harmony.kotlin.data.datasource.network.error.NetworkConnectivityException
import com.mobilejazz.kmmsample.application.R
fun Throwable.toLocalizedErrorMessage(context: Context) =
context.getString(
when (this) {
... | 4 | Kotlin | 0 | 8 | 19ca40a45392578a4724020327c096c841d3a460 | 462 | harmony-kotlin | Apache License 2.0 |
app/src/main/java/org/stepic/droid/di/course_list/CourseListScope.kt | Ujjawal-Anand | 142,415,269 | false | null | package org.stepic.droid.di.course_list
import javax.inject.Scope
@Scope
@Retention(AnnotationRetention.RUNTIME)
annotation class CourseListScope
| 0 | null | 0 | 1 | 256a90051eefe8db83f7053914004905bbb1f8d0 | 148 | stepik-android | Apache License 2.0 |
app/src/main/java/com/chandistudios/taskrapid/ui/task/add/AddTask.kt | chubozeko | 491,210,477 | false | {"Kotlin": 149040} | package com.chandistudios.taskrapid.ui.task.add
import android.os.Build
import android.util.Log
import android.widget.Toast
import androidx.annotation.RequiresApi
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.c... | 0 | Kotlin | 0 | 0 | 96c4ce4c2eeab713aecbb2b4997d7fc3c83937eb | 11,440 | TaskRapid | MIT License |
app/src/main/java/com/chandistudios/taskrapid/ui/task/add/AddTask.kt | chubozeko | 491,210,477 | false | {"Kotlin": 149040} | package com.chandistudios.taskrapid.ui.task.add
import android.os.Build
import android.util.Log
import android.widget.Toast
import androidx.annotation.RequiresApi
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.c... | 0 | Kotlin | 0 | 0 | 96c4ce4c2eeab713aecbb2b4997d7fc3c83937eb | 11,440 | TaskRapid | MIT License |
app/src/main/java/com/mine/betterthanyourtimer/viewModels/TimerViewModel.kt | esthcarelle | 639,895,606 | false | null | package com.mine.betterthanyourtimer.viewModels
import android.os.CountDownTimer
import androidx.lifecycle.ViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
class TimerViewModel : ViewModel() {
private var timer: CountDownTimer? = null
private val _remainingTi... | 0 | Kotlin | 0 | 1 | c8abc2f5e8a1d4f9085c0cae8df1e4e15ce7a2af | 1,403 | BetterThanYourTimer | MIT License |
pml-core/src/main/kotlin/com/luggsoft/pml/core/SelectorGrammar.kt | dan-lugg | 398,328,973 | false | {"Kotlin": 79391, "HTML": 11490} | package com.luggsoft.pml.core
import com.github.h0tk3y.betterParse.combinators.and
import com.github.h0tk3y.betterParse.combinators.asJust
import com.github.h0tk3y.betterParse.combinators.leftAssociative
import com.github.h0tk3y.betterParse.combinators.map
import com.github.h0tk3y.betterParse.combinators.oneOrMore
imp... | 0 | Kotlin | 0 | 1 | b1e04df112090475593b0144dae77e2f938a890e | 12,967 | luggsoft-pml | MIT License |
sqlite/integration-tests/driver-conformance-test/src/commonTest/kotlin/androidx/sqlite/driver/test/BaseBundledConformanceTest.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2023 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... | 28 | null | 945 | 5,125 | 55c737bfb7a7320ac5b43787306f0c3af169f420 | 1,367 | androidx | Apache License 2.0 |
dependency-injection/test-component/src/main/kotlin/studio/lunabee/di/FrameworkTestModule.kt | LunabeeStudio | 624,544,471 | false | {"Kotlin": 2677344, "Java": 11977, "Python": 3979} | /*
* Copyright (c) 2023 Lunabee Studio
*
* 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 agree... | 1 | Kotlin | 1 | 2 | a34f0ddaf9dc649c2f2082dc2526921bb1a491df | 9,813 | oneSafe6_SDK_Android | Apache License 2.0 |
domain/src/main/kotlin/com/arturogutierrez/openticator/interactor/CompletableUseCase.kt | dandycheung | 239,232,057 | false | null | package com.arturogutierrez.openticator.interactor
import com.arturogutierrez.openticator.executor.PostExecutionThread
import com.arturogutierrez.openticator.executor.ThreadExecutor
import io.reactivex.Completable
import io.reactivex.CompletableObserver
import io.reactivex.disposables.Disposables
import io.reactivex.s... | 1 | null | 1 | 1 | ccbbd93291eee705948752089c03b386d1fb81cf | 962 | Openticator | Apache License 2.0 |
app/core/src/com/creations/games/think/asset/FontSize.kt | atulanand206 | 384,773,755 | false | null | package com.creations.games.think.asset
enum class FontSize(val value: Int) {
F10(10),
F12(12),
F14(14),
F18(18),
F20(20),
} | 8 | Go | 0 | 0 | abd2ee00f1f2cf9b031349f3c854186eacf69d6a | 145 | find | MIT License |
bukkit/rpk-chat-bukkit/src/main/kotlin/com/rpkit/chat/bukkit/command/message/MessageCommand.kt | Nyrheim | 269,929,653 | true | {"Kotlin": 2944589, "Java": 1237516, "HTML": 94789, "JavaScript": 640, "CSS": 607} | /*
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | null | 0 | 0 | f2196a76e0822b2c60e4a551de317ed717bbdc7e | 5,856 | RPKit | Apache License 2.0 |
widget/src/main/java/com/angcyo/widget/layout/RSoftInputLayout.kt | angcyo | 229,037,615 | false | null | package com.angcyo.widget.layout
import android.animation.Animator
import android.animation.ObjectAnimator
import android.animation.TimeInterpolator
import android.animation.ValueAnimator
import android.animation.ValueAnimator.AnimatorUpdateListener
import android.app.Activity
import android.content.Context
import and... | 0 | null | 6 | 5 | 10ad5753c3ff675d7f7513db5d98665bcf6f7418 | 40,159 | UICore | MIT License |
src/gaea/src/main/kotlin/com/synebula/gaea/data/date/AlignTime.kt | synebula-myths | 205,819,036 | false | null | package com.synebula.gaea.data.date
import java.util.*
import kotlin.math.ceil
import kotlin.math.floor
/**
* 校准时间。
* 根据标准时间和间隔时间,获取就近的校准时间。
* 如:2019-1-1 10:10:25, 根据标准时间2019-1-1 10:10:00按40s的间隔会校准为2019-1-1 10:10:40.
*/
class AlignTime {
/**
* 间隔时间,默认为1s
*/
var intervalSeconds = 1
/**
... | 0 | Kotlin | 0 | 0 | c39f9d77c3a3b2bdc308a724f2be19c1ec1bd00c | 2,697 | gaea | MIT License |
finance/src/integration-test/kotlin/net/corda/finance/flows/test/CashConfigDataFlowTest.kt | carolynequinn | 153,584,745 | false | {"Gradle": 69, "INI": 28, "Markdown": 77, "Shell": 20, "Text": 13, "Ignore List": 10, "Java Properties": 3, "Batchfile": 4, "XML": 92, "Java": 113, "Kotlin": 1513, "YAML": 4, "Makefile": 2, "Python": 7, "Gherkin": 3, "Groovy": 2, "RPM Spec": 1, "CSS": 10, "SVG": 4, "PowerShell": 1, "JSON": 2, "AppleScript": 1, "HTML": ... | package net.corda.finance.flows.test
import net.corda.core.messaging.startFlow
import net.corda.core.utilities.getOrThrow
import net.corda.finance.EUR
import net.corda.finance.USD
import net.corda.finance.flows.CashConfigDataFlow
import net.corda.testing.driver.DriverParameters
import net.corda.testing.driver.driver
i... | 1 | null | 1 | 1 | cc75a65f9233b5ac0bcdc5e03c2af032c43fbba5 | 976 | corda | Apache License 2.0 |
src/main/kotlin/me/stockingd/current/operators/runningFold.kt | dmstocking | 375,025,377 | false | null | package me.stockingd.current.operators
import me.stockingd.current.Current
import me.stockingd.current.current
fun <T, S> Current<T>.runningFold(initialValue: S, action: (S, T) -> S): Current<S> = current {
var current = initialValue
collect {
current = action(current, it)
emit(current)
}
... | 0 | Kotlin | 0 | 0 | b79f8ceb1db49ae3cc8754758c14ffb9c6703e58 | 322 | current | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppschallengesupportinterventionplanapi/service/ReferralService.kt | ministryofjustice | 797,799,207 | false | {"Kotlin": 602050, "PLpgSQL": 47102, "Mermaid": 30603, "Shell": 1890, "Dockerfile": 1387} | package uk.gov.justice.digital.hmpps.hmppschallengesupportinterventionplanapi.service
import org.springframework.stereotype.Service
import org.springframework.transaction.annotation.Transactional
import uk.gov.justice.digital.hmpps.hmppschallengesupportinterventionplanapi.domain.toModel
import uk.gov.justice.digital.h... | 3 | Kotlin | 0 | 0 | ea8d2c7bdd5368708b13675e3707efa42fda6537 | 3,288 | hmpps-challenge-support-intervention-plan-api | MIT License |
src/main/kotlin/no/nav/fo/veilarbregistrering/besvarelse/UtdanningSvar.kt | navikt | 131,013,336 | false | {"Kotlin": 892346, "PLpgSQL": 853, "PLSQL": 546, "Dockerfile": 87} | package no.nav.fo.veilarbregistrering.besvarelse
import no.nav.fo.veilarbregistrering.metrics.Metric
enum class UtdanningSvar : Metric {
INGEN_UTDANNING,
GRUNNSKOLE,
VIDEREGAENDE_GRUNNUTDANNING,
VIDEREGAENDE_FAGBREV_SVENNEBREV,
HOYERE_UTDANNING_1_TIL_4,
HOYERE_UTDANNING_5_ELLER_MER,
INGEN_... | 17 | Kotlin | 5 | 6 | b608c00bb1a2d1fce4fa7703b24f51e692ad5860 | 431 | veilarbregistrering | MIT License |
src/main/kotlin/com/emberjs/xml/EmberXmlElementDescriptorProvider.kt | patricklx | 412,986,421 | false | null | package com.emberjs
import com.emberjs.EmberXmlElementDescriptor.Companion.forTag
import com.intellij.psi.impl.source.html.HtmlFileImpl
import com.intellij.psi.impl.source.xml.XmlElementDescriptorProvider
import com.intellij.psi.xml.XmlTag
import com.intellij.xml.XmlElementDescriptor
class EmberXmlElementDescriptorPr... | 56 | null | 5 | 9 | a5dcace3902fb2ccc70ae310a4d427d7037b8857 | 917 | intellij-emberjs-experimental | Apache License 2.0 |
viz/d2v-viz-js/src/main/kotlin/io/data2viz/viz/SvgViz.kt | wbuchanan | 131,614,774 | true | {"Kotlin": 1388605, "HTML": 41196, "JavaScript": 36763} | package io.data2viz.viz
import io.data2viz.core.CssClass
import io.data2viz.core.Point
import io.data2viz.path.PathAdapter
import io.data2viz.path.SvgPath
import org.w3c.dom.Element
import org.w3c.dom.svg.SVGElement
import kotlin.browser.document
actual fun newRect(): Rect = RectDOM()
actual fun newLine(): Line = Li... | 0 | Kotlin | 0 | 0 | 1e34ed8863f3c104363a58be45d738571429be3a | 8,132 | data2viz | Apache License 2.0 |
app/src/main/java/mustafaozhan/github/com/androcat/dagger/component/ViewModelComponent.kt | Mhd80 | 182,587,112 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 2, "Proguard": 1, "Kotlin": 34, "XML": 32, "Java": 2, "JavaScript": 3} | package mustafaozhan.github.com.androcat.dagger.component
import dagger.Subcomponent
import mustafaozhan.github.com.androcat.annontation.PerViewModel
import mustafaozhan.github.com.androcat.dagger.module.ViewModelModule
import mustafaozhan.github.com.androcat.main.activity.MainActivityViewModel
import mustafaozhan.git... | 1 | null | 1 | 1 | 1225aec91c0d209cdd6f18b694c329dfc3b8dd74 | 782 | AndroCat | Apache License 2.0 |
mordant/src/commonTest/kotlin/com/github/ajalt/mordant/terminal/HtmlRendererTest.kt | ajalt | 104,693,921 | false | null | package com.github.ajalt.mordant.terminal
import com.github.ajalt.mordant.rendering.TextColors.blue
import com.github.ajalt.mordant.rendering.TextColors.red
import io.kotest.matchers.shouldBe
import kotlin.js.JsName
import kotlin.test.Test
class HtmlRendererTest {
private val vt = TerminalRecorder()
private v... | 18 | null | 34 | 946 | 059b9a71ecbaececb0a58a197981295b0e5e0aec | 1,613 | mordant | Apache License 2.0 |
src/main/kotlin/com/sudosan/database/SchemaDetailsExtractor.kt | juliennix | 286,098,484 | false | {"Java": 876004, "ANTLR": 31582, "Kotlin": 18361} | package com.sudosan.database
import com.sudosan.App
import com.sudosan.packageEntityName
import com.sudosan.entity.database.Column
import com.sudosan.entity.database.Database
import com.sudosan.entity.database.Table
import com.sudosan.entity.java.ClassMetadata
import org.neo4j.ogm.session.SessionFactory
import org.slf... | 1 | null | 1 | 1 | 8d1aab3f3c9541fb510394de833725054665c684 | 4,428 | data-extractor | MIT License |
feature/order/src/main/java/com/niyaj/order/OrderScreen.kt | skniyajali | 644,752,474 | false | {"Kotlin": 5045629, "Shell": 16584, "Ruby": 1461, "Java": 232} | /*
* Copyright 2024 Sk Niyaj Ali
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 39 | Kotlin | 0 | 1 | e6c13d3175e83ba4eac80426edf6942f46518f11 | 20,698 | PoposRoom | Apache License 2.0 |
common/src/commonTest/kotlin/net/rafaeltoledo/kotlin/SampleTests.kt | rafaeltoledo | 198,742,482 | false | null | package net.rafaeltoledo.kotlin
import kotlin.test.Test
import kotlin.test.assertTrue
class SampleTests {
@Test
fun testMe() {
assertTrue(Sample().checkMe() > 0)
}
@Test
fun testProxy() {
assertTrue(Proxy().proxyHello().isNotEmpty())
}
} | 0 | Kotlin | 1 | 9 | e653cfb6f777dcf040780d70ba73c8e0bca9cc02 | 281 | mpp-kotlin | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.