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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
examples/src/test/kotlin/examples/onnx/cv/OnnxResNetTestSuite.kt | JetBrains | 249,948,572 | false | null | /*
* Copyright 2020 JetBrains s.r.o. and Kotlin Deep Learning project contributors. All Rights Reserved.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE.txt file.
*/
package examples.onnx.cv
import examples.onnx.cv.custom.resnet50CustomPrediction
import examples.onn... | 81 | null | 79 | 806 | efaa1ebdf7bf9a131826d3ded42e1eb178e4fd19 | 2,168 | KotlinDL | Apache License 2.0 |
android/app/src/main/java/com/fabirt/debty/constant/K.kt | virendersran01 | 353,795,029 | true | {"Kotlin": 119324} | package com.fabirt.debty.constant
object K {
const val DATABASE_NAME = "debty.db"
// Must be the same as the declared in xml-v25/shortcuts.xml data attribute from intent.
const val SHORTCUT_DATA_MOVEMENT_ASSISTANT = "debty.assistant.movement"
// Must be the same as the declared manifest provider aut... | 0 | null | 0 | 1 | 6230c4caa0914ca2d7480d365287bae5a68fa897 | 524 | debty-v2 | MIT License |
src/main/kotlin/monster/loli/catcatdmdata/entity/CatClient.kt | kokolokksk | 473,437,812 | false | null | package monster.loli.catcatdmdata.entity
data class CatClient(
var clientId:String = "",
var ts:Long = 0,
var ip:String = "",
var userAgent:String = "",
var version:String = ""
)
| 0 | Kotlin | 0 | 0 | 009ae45ec7ceb767e24bacd0bafea5074268f42a | 201 | catcat-dm-data | MIT License |
projects/forge/src/main/kotlin/site/siredvin/peripheralworks/client/model/FlexibleRealityAnchor.kt | SirEdvin | 489,471,520 | false | null | package site.siredvin.peripheralworks.client.model
import net.minecraft.client.Minecraft
import net.minecraft.client.multiplayer.ClientLevel
import net.minecraft.client.renderer.RenderType
import net.minecraft.client.renderer.block.model.BakedQuad
import net.minecraft.client.renderer.block.model.ItemOverrides
import n... | 3 | null | 3 | 9 | a59b8b79e5df1de388bba9fb0d8effe5763e569b | 4,170 | UnlimitedPeripheralWorks | MIT License |
platform/workspaceModel/storage/tests/testSrc/com/intellij/workspaceModel/storage/entities/LinkedListEntity.kt | hieuprogrammer | 284,920,751 | true | null | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.workspaceModel.storage.entities
import com.intellij.workspaceModel.storage.PersistentEntityId
import com.intellij.workspaceModel.storage.WorkspaceEntityStora... | 1 | null | 1 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 1,773 | intellij-community | Apache License 2.0 |
domain/src/main/kotlin/no/nav/su/se/bakover/domain/behandling/BehandlingsinformasjonTestdataBuilder.kt | navikt | 227,366,088 | false | null | package no.nav.su.se.bakover.domain.behandling
import org.jetbrains.annotations.TestOnly
/**
* Dette er kanskje ikke den beste plassen å legge ting som kun skal brukes i tester.
* Se også SøknadInnholdTestdataBuilder
*/
@TestOnly
fun Behandlingsinformasjon.withAlleVilkårOppfylt() =
Behandlingsinformasjon(
... | 6 | Kotlin | 0 | 0 | b0864f973c8986f58af07c4bc7f601caa602dbfc | 4,909 | su-se-bakover | MIT License |
platform/collaboration-tools/src/com/intellij/collaboration/async/CoroutineUtil.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.collaboration.async
import com.intellij.collaboration.util.ComputedResult
import com.intellij.collaboration.util.HashingUtil
import com.intellij.openapi.Disposable
import com.in... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 20,793 | intellij-community | Apache License 2.0 |
src/main/kotlin/fr/chezbazar/aoc15/day1/Day1.kt | chezbazar | 728,404,822 | false | {"Kotlin": 100278} | package fr.chezbazar.aoc15.day1
import fr.chezbazar.computeFrom
fun main() {
computeFrom("aoc15/day1/input.txt") {
println(computeFloor(it))
println(computeFirstBasementIndex(it))
}
}
fun computeFloor(entry: String) = entry.count { it == '(' } - entry.count { it == ')' }
fun computeFirstBase... | 0 | Kotlin | 0 | 0 | 6d8a40f2cf8b56fb36ad2aae77bfd1e4142ab92e | 617 | adventofcode | MIT License |
sqlite-embedder-chicory/src/jvmMain/kotlin/ChicoryRuntimeInstance.kt | illarionov | 769,429,996 | false | {"Kotlin": 1560774} | /*
* Copyright 2024, the wasm-sqlite-open-helper project authors and contributors. Please see the AUTHORS file
* for details. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
* SPDX-License-Identifier: Apache-2.0
*/
package ru.pixnews.wasm.sqlite.open.helper.chic... | 4 | Kotlin | 0 | 3 | 35c3019efe126bba3e8973d54c2a3d4454c0ccb1 | 554 | wasm-sqlite-open-helper | Apache License 2.0 |
src/loops/for.kt | anish-2903 | 742,851,112 | false | {"Kotlin": 12545, "Shell": 131} | package loops
fun main(args: Array<String>) {
for ( i in 1..10) {
println("i = $i")
}
for (i in 1 until 10) {
println(i)
}
for (i in 10 downTo 1) {
println(i)
}
for (i in 1 until 10 step 2) {
println(i)
}
for (i in 1..10) {
println(i)
... | 0 | Kotlin | 0 | 0 | b51f8ee901fdd262b48967d00b91239bbc3b53ac | 324 | Kotlin | MIT License |
src/chain-wallet-libs/bindings/wallet-cordova/src/android/WalletPlugin.kt | input-output-hk | 545,813,891 | false | {"Rust": 8682970, "Python": 573625, "Shell": 103176, "Kotlin": 69222, "JavaScript": 64915, "CSS": 40161, "Nix": 31072, "Earthly": 29378, "Objective-C": 25263, "C": 20776, "TypeScript": 16582, "Handlebars": 13966, "Dockerfile": 10644, "PLpgSQL": 8202, "Perl": 1296} | package com.iohk.jormungandr_wallet;
import android.util.Base64
import android.util.Log
import org.apache.cordova.*
import org.json.JSONException
import org.json.JSONObject
import java.text.Normalizer
import java.text.Normalizer.Form
import java.util.concurrent.atomic.AtomicInteger
class WalletPlugin
/**
* Construct... | 10 | Rust | 3 | 38 | f17b5103f8529b5efe05ecb1564d182bbae136ed | 25,038 | catalyst-core | Apache License 2.0 |
app/src/main/java/com/alexvt/datapoints/entrypoints/DataPointCollectionTimeEventReceiver.kt | alex-vt | 711,487,667 | false | {"Kotlin": 19854} | package com.alexvt.datapoints.entrypoints
import android.app.Activity
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.Service
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import and... | 0 | Kotlin | 0 | 0 | 9285ad5055334807cad6cbe4f7c18fcd35d5aa1d | 3,231 | DataPoints | MIT License |
src/test/kotlin/info/dgjones/barnable/concept/VariableSpaceTest.kt | jonesd | 442,279,905 | false | {"Kotlin": 474251} | /*
* Copyright 2020 David G Jones
*
* 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 ... | 1 | Kotlin | 0 | 0 | b5b7453e2fe0b2ae7b21533db1b2b437b294c63f | 7,036 | barnable | Apache License 2.0 |
src/main/kotlin/io/github/raeperd/realworldspringbootkotlin/infrastructure/jpa/UserJpaRepository.kt | raeperd | 495,124,396 | false | null | package io.github.raeperd.realworldspringbootkotlin.infrastructure.jpa
import io.github.raeperd.realworldspringbootkotlin.domain.Password
import io.github.raeperd.realworldspringbootkotlin.domain.User
import io.github.raeperd.realworldspringbootkotlin.domain.UserRepository
import org.springframework.data.jpa.repositor... | 0 | Kotlin | 2 | 6 | 8e6b63905816d94a2b34f21ba8f8b208adf5640b | 2,001 | realworld-springboot-kotlin | MIT License |
libs/core/src/main/kotlin/micro/apps/core/extensions.kt | xmlking | 236,108,779 | false | null | package micro.apps.core
import java.time.DayOfWeek
import java.time.Instant
import java.time.LocalDate
import java.time.ZoneId
import java.time.format.DateTimeFormatter
import java.time.temporal.TemporalAdjusters
import java.util.Date
import java.util.Locale
import java.util.Optional
/**
* Format an Instant as an I... | 9 | null | 11 | 48 | 135c0f6b8ccfe17121a367bbfdd8024c77ea3c51 | 2,173 | micro-apps | MIT License |
app/src/main/java/com/duckduckgo/app/global/view/DividerAdapter.kt | cmonfortep | 252,403,423 | true | {"Kotlin": 6042652, "HTML": 42259, "Java": 35279, "JavaScript": 8281, "Ruby": 7654, "C++": 1820, "CMake": 1298, "Shell": 784} | /*
* Copyright (c) 2021 DuckDuckGo
*
* 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 ... | 5 | Kotlin | 0 | 3 | 228a1217aad96d19f90750d94664b7a4a5744c9a | 1,473 | Android | Apache License 2.0 |
app/src/main/java/com/iamageo/nottye/Utils.kt | iamageo | 530,276,279 | false | {"Kotlin": 72534, "HTML": 7664} | package com.iamageo.nottye
import com.iamageo.nottye.ui.theme.*
class Utils {
companion object {
val NottyeColors = listOf(
RedA100,
PinkA100,
PurpleA100,
DeepPurpleA100,
IndigoA100,
BlueA100
)
}
} | 0 | Kotlin | 0 | 2 | 3e9de7c362fae74b5a73057ce196de88297185e3 | 295 | Nottye | Apache License 2.0 |
gitnote-jetbrains/src/main/kotlin/io/cjlee/gitnote/jcef/protocol/JcefInjectionLoadHandler.kt | cjlee38 | 780,015,519 | false | {"Kotlin": 37601, "Rust": 19519, "JavaScript": 11779, "HTML": 896} | package io.cjlee.gitnote.jcef.protocol
import com.intellij.ui.jcef.JBCefJSQuery
import org.cef.browser.CefBrowser
import org.cef.handler.CefLoadHandlerAdapter
/**
* This class is responsible for injecting the JavaScript bridge into the loaded page.
*/
class JcefInjectionLoadHandler(
private val jsQuery: JBCefJS... | 2 | Kotlin | 0 | 2 | c355dfdf7727a61b3e20b33a7344e46252458b1b | 1,084 | gitnote | Apache License 2.0 |
game/plugins/src/main/kotlin/gg/rsmod/plugins/content/areas/wilderness/lundail.plugin.kts | 2011Scape | 578,880,245 | false | null | import gg.rsmod.plugins.content.mechanics.shops.CoinCurrency
val lundail = Npcs.LUNDAIL
create_shop(
"Lundail's Arena-side Rune Shop",
currency = CoinCurrency(),
purchasePolicy = PurchasePolicy.BUY_STOCK,
containsSamples = false,
) {
items[0] = ShopItem(Items.FIRE_RUNE, amount = 1000, sellPrice = ... | 39 | null | 143 | 34 | e5400cc71bfa087164153d468979c5a3abc24841 | 2,522 | game | Apache License 2.0 |
ndarray/ndarray-core/src/jvmMain/kotlin/io/kinference/ndarray/extensions/sum/SumExtension.kt | JetBrains-Research | 244,400,016 | false | {"Kotlin": 2301067, "Python": 4774, "JavaScript": 2402, "Dockerfile": 683} | package io.kinference.ndarray.extensions.sum
import io.kinference.ndarray.arrays.*
import io.kinference.primitives.types.DataType
suspend fun List<NumberNDArrayCore>.sum(): NumberNDArrayCore {
if (isEmpty()) error("Array for sum operation must have at least one element")
if (size == 1) return single()
va... | 7 | Kotlin | 7 | 154 | 92b4073ca46d410934f3b03eae61e05412467aec | 881 | kinference | Apache License 2.0 |
pageable2sources_ignite_cacheable/customer-nonpageable/src/main/kotlin/br/com/vagai/customer/mapper/ContactMapper.kt | viniciustoni | 251,750,270 | false | null | package br.com.vagai.customer.mapper
import br.com.vagai.customer.dto.ContactDto
import br.com.vagai.customer.entity.Contact
import org.springframework.stereotype.Component
@Component
class ContactMapper(val clientMapper: ClientMapper,
val countryMapper: CountryMapper) {
fun contactToContactD... | 0 | Kotlin | 0 | 0 | 8dcd2b54b4bd91bef9357468f15c1cba7affdebb | 1,036 | kotlin-samples | MIT License |
ViewPager22/app/src/main/java/com/app/mytaxi/di/module/ApplicationModule.kt | ajaypro | 225,294,116 | false | {"Java": 469931, "Kotlin": 294438} | package com.app.mytaxi.di.module
import android.app.Application
import android.content.Context
import com.app.mytaxi.BuildConfig
import com.app.mytaxi.MyTaxiApplication
import com.app.mytaxi.data.NetworkService
import com.app.mytaxi.data.Networking
import com.app.mytaxi.di.ApplicationContext
import com.app.mytaxi.util... | 1 | null | 1 | 1 | 768b70f957cfd6198ad3594c7c50f741542ca674 | 1,500 | ViewPager2 | Apache License 2.0 |
ANT-Android-App/data/src/main/java/com/fredprojects/ant/data/repository/ArticleRepository.kt | FredNekrasov | 857,490,850 | false | {"Kotlin": 44158, "C#": 33647, "Java": 31851} | package com.fredprojects.ant.data.repository
import com.fredprojects.ant.data.local.ArticleDao
import com.fredprojects.ant.data.mappers.toEntity
import com.fredprojects.ant.data.mappers.toModel
import com.fredprojects.ant.data.remote.dto.ArticleDto
import com.fredprojects.ant.domain.models.Article
import com.fredproje... | 0 | Kotlin | 0 | 1 | 462a4fb94240f20efda8527470567fc1e97c8a61 | 2,594 | ANT | MIT License |
app/src/main/java/com/example/appwritedemoapplication/ui/Functions/FunctionsViewModel.kt | appwrite | 357,670,112 | false | null | package com.example.appwritedemoapplication.ui.Functions
import android.text.Editable
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.appwritedemoapplication.utils.Client
import com.example.appw... | 0 | null | 9 | 9 | a9e6ac8d72bbe49d6ef21bb4d6fced8b79fccb31 | 2,340 | demo-getstarted-with-android | MIT License |
src/nativeGen/kotlin/godot/EditorFileDialog.kt | piiertho | 237,614,467 | true | {"Kotlin": 5300589} | // DO NOT EDIT, THIS FILE IS GENERATED FROM api.json
package godot
import gdnative.godot_method_bind
import godot.core.Godot
import godot.core.PoolStringArray
import godot.core.Variant
import godot.core.VariantArray
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.reflect.KCallable
import kot... | 0 | null | 0 | 1 | 3a8c598040f9b47b2b8cf8f5432543f61d6f83e8 | 13,167 | godot-kotlin | MIT License |
jps-plugin/testData/incremental/withJava/other/classToPackageFacade/A.kt | JakeWharton | 99,388,807 | false | null | open class A {
companion object {
@JvmStatic
fun f() {}
@JvmStatic
fun g() {}
}
fun h() {}
} | 179 | null | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 138 | kotlin | Apache License 2.0 |
libraries/timeline-view/src/main/java/com/trendyol/timelineview/TimelineItemViewState.kt | Trendyol | 220,991,853 | false | {"Kotlin": 321758} | package com.trendyol.timelineview
import android.graphics.Color
import android.view.View
class TimelineItemViewState(
private val timelineItem: TimelineItem,
val dotSize: Float,
val borderWidth: Float,
val textSize: Float,
val lineWidth: Float,
val fontFamily: String,
val maxLineCount: Int... | 3 | Kotlin | 18 | 210 | 33add825e423a7e08a0ca4f1c8c0e6df940281f2 | 1,435 | android-ui-components | Apache License 2.0 |
app/src/main/java/com/example/kphrase/PhrasesViewRecyclerViewAdapter.kt | ElPhilipp | 188,347,379 | false | null | package com.example.kphrase
import android.content.Context
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.animation.Animation
import android.view.animation.BounceInterpolator
import android.view.animation.ScaleAnimation
import andro... | 0 | Kotlin | 0 | 0 | 65b9027fe82579f997e18695f55dc2e3d07279b2 | 3,777 | K-Phrase | MIT License |
common/src/commonMain/kotlin/io/github/oxiadenine/chainpass/repository/ChainRepository.kt | oxiadenine | 737,791,464 | false | {"Kotlin": 216996} | package io.github.oxiadenine.chainpass.repository
import io.github.oxiadenine.chainpass.ChainTable
import io.github.oxiadenine.chainpass.Database
import io.github.oxiadenine.chainpass.Storage
import kotlinx.serialization.Serializable
import org.jetbrains.exposed.sql.SqlExpressionBuilder.eq
import org.jetbrains.exposed... | 0 | Kotlin | 0 | 0 | d2901846ee427d831ca800527bed0ed909b65b8b | 1,816 | chain-pass | Apache License 2.0 |
src/main/kotlin/theme/Typography.kt | oss-review-toolkit | 436,895,138 | false | {"Kotlin": 278352} | @file:Suppress("MagicNumber")
package org.ossreviewtoolkit.workbench.theme
import androidx.compose.desktop.ui.tooling.preview.Preview
import androidx.compose.foundation.layout.Column
import androidx.compose.material.Text
import androidx.compose.material.Typography
import androidx.compose.runtime.Composable
import and... | 6 | Kotlin | 4 | 26 | 38dd099eb5c6e7656a8bbe2614842bae048a78f1 | 3,079 | ort-workbench | Apache License 2.0 |
IEAATParser/src/main/kotlin/nl/utwente/fmt/ieaatparser/eom/PVAIExporter.kt | SwiftPengu | 75,495,277 | false | null | package nl.utwente.fmt.ieaatparser.eom
import nl.utwente.fmt.ieaatparser.io.IEaatParts
import nl.utwente.fmt.ieaatparser.prm.exportPVA
import org.eclipse.emf.common.util.URI
import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl
import org.eclipse.emf.ecore.util.EcoreUtil
import pva.PVAContainer
import pvai.PVAICo... | 0 | Kotlin | 0 | 0 | 253c1965cc7cdf3f9091e9e9fcd23c64c3ec03a7 | 2,233 | ProbabilisticVulnerabilityAnalysis | MIT License |
appreader/src/main/java/com/ul/ims/gmdl/reader/viewmodel/NfcScanViewModel.kt | prashantkspatil | 284,531,234 | true | {"Kotlin": 1392515, "Java": 421643} | /*
* Copyright (C) 2019 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... | 0 | null | 0 | 0 | a6c3a6077ef5e7774ff70929ae4f33968ce6f598 | 1,036 | mdl-ref-apps | Apache License 2.0 |
src/test/java/kotlinx/reflect/lite/unusedTestData/callBy/defaultInSuperClass.kt | Kotlin | 41,860,868 | false | {"Kotlin": 516851, "Java": 75} | /*
* Copyright 2016-2022 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package tests.callBy.defaultInSuperClass
open class A {
open fun foo(a: String, b: String = "b") = b + a
}
class B : A() {
override fun foo(a: String, b: String) = a + b
}
fun box(): String {
va... | 3 | Kotlin | 13 | 156 | 32ffe53981eb559939b6c2f15661138661b31bc6 | 487 | kotlinx.reflect.lite | Apache License 2.0 |
app/src/main/java/com/kaedenoki/moviecorner/data/general/Home.kt | Kaede-No-Ki | 290,696,286 | false | null | package com.kaedenoki.moviecorner.data.general
data class Home(
val list: List<ItemHome>? = mutableListOf()
)
data class ItemHome(
// banner, item, title
val type: Int,
val data: Any
)
| 8 | Kotlin | 8 | 43 | ea72dc71dfc43e41a6566428db69c139c474df6e | 203 | moviecorner-app | MIT License |
src/main/kotlin/bvanseg/kotlincommons/grouping/collection/SizedList.kt | bvanseg | 211,717,677 | false | null | /*
* MIT License
*
* Copyright (c) 2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | 0 | Kotlin | 0 | 1 | f02d97922c743fffc0c520ed2be30ad6b95dd8a3 | 2,023 | KotlinCommons | MIT License |
src/main/kotlin/net/liyze/basin/core/scan/ServerCommand.kt | Liyze09 | 637,435,463 | false | {"Kotlin": 102032, "JavaScript": 2722, "HTML": 1238} | /*
* Copyright (c) 2023 Liyze09
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 0 | 1 | b67a8fc817a3f1f805cc973c071429af453e2d74 | 979 | Basin | Apache License 2.0 |
libs/trezor/src/commonMain/kotlin/kosh/libs/trezor/cmds/expect.kt | niallkh | 855,100,709 | false | {"Kotlin": 1845307, "Swift": 768} | package kosh.libs.trezor.cmds
import com.squareup.wire.Message
internal inline fun <reified T : Message<*, *>> Message<*, *>.expect(): T =
this as? T ?: unexpectedError<T>()
internal inline fun <reified T : Message<*, *>> Message<*, *>.unexpectedError(): Nothing {
error("Unexpected response: ${this::class.si... | 0 | Kotlin | 0 | 3 | 2be90c7ce7775a76d44fac4cae3a6777d6e9c7f7 | 468 | kosh | MIT License |
PineLib/src/main/java/com/blueberrysolution/pinelib19/sqlite/mylib/model/SelectModel.kt | leaptochina | 228,527,202 | false | null | package com.blueberrysolution.pinelib19.sqlite.mylib.model
import android.database.Cursor
import com.blueberrysolution.pinelib19.activity.A
import com.blueberrysolution.pinelib19.addone.convert.AnyToString
import com.blueberrysolution.pinelib19.debug.G
import com.blueberrysolution.pinelib19.reflection.ReflectHelper
im... | 0 | Kotlin | 0 | 0 | b7ccb0b4259c3e17f71a677bdbc6388bb92d9841 | 6,549 | celo_test | Apache License 2.0 |
src/test/kotlin/org/openrewrite/java/testing/cleanup/TestsShouldIncludeAssertionsTest.kt | openrewrite | 295,620,416 | false | null | /*
* Copyright 2021 the original author or authors.
* <p>
* 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
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by... | 4 | null | 11 | 22 | 90e2f6c34622b0bc46981b8250dc0556e1cea74c | 6,645 | rewrite-testing-frameworks | Apache License 2.0 |
src/main/kotlin/no/nav/helse/risk/RiverEnvironment.kt | navikt | 252,136,318 | false | null | package no.nav.helse.risk
import org.apache.kafka.clients.CommonClientConfigs
import org.apache.kafka.clients.consumer.ConsumerConfig
import org.apache.kafka.clients.consumer.KafkaConsumer
import org.apache.kafka.clients.producer.KafkaProducer
import org.apache.kafka.clients.producer.ProducerConfig
import org.apache.k... | 0 | Kotlin | 0 | 0 | f012686021129568d6826c6d838e9666e560b5b2 | 5,369 | helse-riskvurderer-basis | MIT License |
clvr-back/tic-tac-toe/src/main/kotlin/com/clvr/ttt/common/Dataclasses.kt | spbu-math-cs | 698,591,633 | false | {"Kotlin": 94320, "TypeScript": 49419, "JavaScript": 8395, "Python": 8353, "CSS": 738} | package com.clvr.ttt.common
import com.clvr.platform.api.Template
import com.clvr.platform.api.TemplateHeader
import com.clvr.platform.api.TemplateId
import kotlinx.serialization.Serializable
@Serializable
data class QuizQuestion(
val topic: String,
val statement: String,
val answer: String,
val hints... | 16 | Kotlin | 0 | 0 | d5b1b910047bf60d22f628c20ebda1d329d743f5 | 1,072 | ig-platform | Apache License 2.0 |
testdata/custom-prop/example-custom-01.kt | kamildoleglo | 360,485,696 | true | {"Kotlin": 94830} | // Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
// This file was automatically generated from custom-prop.in.md by Knit tool. Do not edit.
package com.example.exampleCustom01
import java.util.*
fun result() = listOf("Hello", "World")
| 0 | Kotlin | 0 | 0 | f0ff1dcec40acc37a3e6315136297b9e01d12a2a | 291 | kotlinx-knit | Apache License 2.0 |
Mobile/SimplexLudum/composeApp/src/androidMain/kotlin/palbp/laboratory/simplexludum/previews/MyCollectionScreenPreview.kt | palbp | 463,200,783 | false | {"Kotlin": 797660, "C": 16710, "Assembly": 891, "Dockerfile": 610, "Swift": 594, "Makefile": 383} | package palbp.laboratory.simplexludum.previews
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import palbp.laboratory.simplexludum.ui.common.theme.SimplexLudumTheme
import palbp.laboratory.simplexludum.ui.mycollection.MyCollectionScreen
@Preview(showBackground = true, sh... | 1 | Kotlin | 0 | 4 | c19e8a32939945f2dbe50c79ad192cfb22ba7faf | 474 | laboratory | MIT License |
src/main/kotlin/no/nav/paw/arbeidssokerregisteret/eksternt/api/config/Config.kt | navikt | 706,209,067 | false | {"Kotlin": 19472, "Dockerfile": 601} | package no.nav.paw.arbeidssokerregisteret.eksternt.api.config
data class Config(
val authProviders: AuthProviders
)
data class AuthProviders(
val maskinporten: AuthProvider
)
data class AuthProvider(
val name: String,
val discoveryUrl: String,
val tokenEndpointUrl: String,
val clientId: Strin... | 1 | Kotlin | 0 | 0 | 82584516cf226bb6b62dbeb207fa15ea4a0138c6 | 432 | paw-arbeidssokerregisteret-eksternt-api | MIT License |
src/main/kotlin/com/sam/structure/bridge/material/Paper.kt | SymphonyZhang | 566,757,181 | false | null | package com.sam.structure.bridge.material
class Paper:Material {
override fun draw() {
print("用纸箱")
}
} | 0 | Kotlin | 0 | 0 | b3d54708118e0d3741bcf93be84df0a25723963b | 120 | Design_Pattern | Apache License 2.0 |
user/service/src/main/kotlin/io/nanfeng/user/biz/domain/client/entity/OAuth2ClientEntity.kt | wine-area | 642,665,898 | false | null | package io.nanfeng.user.biz.domain.client.entity
import io.hypersistence.utils.hibernate.type.json.JsonType
import io.nanfeng.common.data.jpa.domain.BaseEntity
import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.Table
import org.hibernate.annotations.Type
import java.io.Seria... | 0 | Kotlin | 0 | 0 | be12804eb55a4f625724f5069b7b4f6945d1e4ae | 1,549 | sain | MIT License |
src/main/kotlin/com/kk/routes/PlayerRoutes.kt | Aptivist | 595,759,352 | false | null | package com.kk.routes
import com.kk.controllers.PlayerController
import com.kk.controllers.events.GameEventPlayer
import com.kk.controllers.events.mapper.toEvent
import com.kk.data.models.AddPlayerRequest
import com.kk.data.models.PlayerUser
import com.kk.data.models.RoomConnectionStatus
import com.kk.data.models.even... | 0 | Kotlin | 0 | 1 | 03748ab7ca5ba366c66458df2e15c1a7c81add73 | 1,617 | KK_backend | MIT License |
src/test/Crc32Tests.kt | RJPlog | 770,314,216 | false | {"Kotlin": 2220} | import org.junit.Test
import org.junit.Assert.assertEquals
import java.util.zip.CRC32
class Crc32Tests {
@Test
fun testEmptyString() {
val crc = crc32("")
println("testEmptyString: expected: 0L, was: $crc")
assertEquals(0L, crc)
}
@Test
fun testSingleCharacter() {
... | 9 | Kotlin | 0 | 0 | 644feda6ed09d9487649101eae49510a70b29df1 | 521 | test_github_actions | MIT License |
domain/impl/src/main/kotlin/dev/yacsa/domain/impl/usecase/update/CheckUpdateUseCaseImpl.kt | andrew-malitchuk | 589,720,124 | false | null | package dev.yacsa.domain.impl.usecase.update
import arrow.core.Either
import dev.yacsa.domain.error.DataError
import dev.yacsa.domain.error.DomainError
import dev.yacsa.domain.impl.mapper.update.CheckUpdateDomainRepoMapper
import dev.yacsa.domain.model.update.CheckUpdateDomainModel
import dev.yacsa.domain.usecase.upda... | 0 | Kotlin | 0 | 0 | e35620cf1c66b4f76f0ed30d9c6d499acd134403 | 1,189 | yet-another-compose-showcase-app | MIT License |
src/main/kotlin/com/example/coreweb/domains/contacts/models/dtos/ContactDto.kt | teambankrupt | 292,072,114 | false | {"Kotlin": 287703, "Java": 61650, "HTML": 22230} | package com.example.coreweb.domains.contacts.models.dtos
import com.example.coreweb.commons.Constants
import com.example.coreweb.domains.base.models.dtos.BaseDto
import com.example.coreweb.domains.globaladdresss.models.dtos.GlobalAddressDto
import com.example.coreweb.domains.globaladdresss.models.entities.GlobalAddres... | 3 | Kotlin | 0 | 2 | e6613a4ac6cac29a67029d9073b53c1a2aa3767f | 1,295 | coreweb | Apache License 2.0 |
app/src/main/kotlin/com/codeka/picscan/model/ImageFilterType.kt | codeka | 328,104,934 | false | null | package com.codeka.picscan.model
enum class ImageFilterType {
None,
Test
} | 0 | Kotlin | 0 | 0 | 97ed19362b4c499068fdb911f84558800875d59f | 79 | picscan | Apache License 2.0 |
app/src/main/kotlin/com/codeka/picscan/model/ImageFilterType.kt | codeka | 328,104,934 | false | null | package com.codeka.picscan.model
enum class ImageFilterType {
None,
Test
} | 0 | Kotlin | 0 | 0 | 97ed19362b4c499068fdb911f84558800875d59f | 79 | picscan | Apache License 2.0 |
app/src/main/java/com/concordium/wallet/data/room/AccountWithTransfersDao.kt | Concordium | 358,250,608 | false | null | package com.concordium.wallet.data.room
import androidx.room.Dao
import androidx.room.Query
import androidx.room.Transaction
@Dao
interface AccountWithTransfersDao {
@Transaction
@Query("SELECT * FROM account_table")
fun getAccountsWithTransfers(): List<AccountWithTransfers>
} | 77 | Kotlin | 1 | 6 | cf482234db350007bdfef2540e16b07bfa174d03 | 293 | concordium-reference-wallet-android | Apache License 2.0 |
app/src/main/java/com/example/githubuserapp/ui/detail/viewmodel/ReposViewModel.kt | tiochoirul | 577,171,560 | false | {"Kotlin": 54315} | package com.example.githubuserapp.ui.detail.viewmodel
import android.util.Log
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.example.githubuserapp.api.ApiConfig
import com.example.githubuserapp.data.response.RepositoryResponseItem
import com.... | 0 | Kotlin | 0 | 1 | e28ca727d16b8cec39d3fc34e7d468084f017394 | 2,019 | githubsearch-app | MIT License |
smash-ranks-android/app/src/test/java/com/garpr/android/data/models/AvatarTest.kt | charlesmadere | 41,832,700 | true | null | package com.garpr.android.data.models
import com.garpr.android.test.BaseTest
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNull
import org.junit.Test
class AvatarTest : BaseTest() {
companion object {
private val AVATAR_1 = Avatar(null, null, null, null)
private val AVATAR_2 ... | 0 | Kotlin | 0 | 9 | 151b2a0f9b4d38be60c3f73344ca444f17810bfd | 1,466 | smash-ranks-android | The Unlicense |
src/main/kotlin/com/ingresso/greatrebirth/common/tile/TileAltarRebirth.kt | Shusharu | 857,046,407 | false | {"Kotlin": 31101, "Java": 3685} | package com.ingresso.greatrebirth.common.tile
import com.ingresso.greatrebirth.Main
import com.ingresso.greatrebirth.common.container.ContainerAltarRebirth
import net.minecraft.core.BlockPos
import net.minecraft.nbt.CompoundTag
import net.minecraft.network.chat.Component
import net.minecraft.world.MenuProvider
import ... | 0 | Kotlin | 0 | 0 | a84ca8ccaf517abb27f20e8aef0c9e160d835386 | 2,839 | Great-Rebirth | MIT License |
domain/src/main/kotlin/com/lukelorusso/domain/functions/StatementSingle.kt | lukelorusso | 277,556,469 | false | null | package com.lukelorusso.domain.functions
import io.reactivex.rxjava3.core.Single
import io.reactivex.rxjava3.core.SingleSource
import io.reactivex.rxjava3.plugins.RxJavaPlugins
/**
* Copyright (C) 2020 <NAME>
* Licensed under the Apache License Version 2.0
*
* Imperative statements expressed as Single operators.... | 0 | null | 49 | 4 | 932fe4a62057ae1cb43e9c249e819a2b3c69b375 | 1,216 | ColorBlindClickAndroid | Apache License 2.0 |
app/src/main/kotlin/io/github/feelfreelinux/wykopmobilny/ui/swipeback/app/SwipeBackActivityBase.kt | altaf933 | 122,962,254 | false | {"Gradle": 4, "Markdown": 2, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "YAML": 1, "Proguard": 1, "Kotlin": 485, "XML": 261, "Java": 4} | package io.github.feelfreelinux.wykopmobilny.ui.swipeback.app
import io.github.feelfreelinux.wykopmobilny.ui.swipeback.SwipeBackLayout
interface SwipeBackActivityBase {
fun getSwipeBackLayout() : SwipeBackLayout?
fun scrollToFinishActivity()
fun setSwipeBackEnable(isEnabled : Boolean)
} | 1 | null | 1 | 1 | 0c2d9fc015a5bef5b258481e4233d04ab5705a49 | 301 | WykopMobilny | MIT License |
system-service/permission-manager/src/main/kotlin/org/a_cyb/sayitalarm/system_service/permission_manager/PermissionChecker.kt | a-cyborg | 751,578,623 | false | {"Kotlin": 716805} | /*
* Copyright (c) 2024 <NAME> / All rights reserved.
*
* Use of this source code is governed by Apache v2.0
*/
package org.a_cyb.sayitalarm.system_service.permission_manager
import android.Manifest
import android.app.AlarmManager
import android.app.NotificationManager
import android.content.Context
import androi... | 0 | Kotlin | 0 | 0 | f20079c06adf86e8297ab8322887c875715e6cd1 | 2,616 | SayItAlarm | Apache License 2.0 |
app/src/main/java/com/bannanguy/task1androidapp/ui/cityList/CitiesListViewModel.kt | vvban | 759,158,591 | false | {"Kotlin": 23658} | package com.bannanguy.task1androidapp.ui.cityList
import android.content.Context
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.bannanguy.task1androidapp.api.weather.WeatherAPI
import com.bannanguy.... | 0 | Kotlin | 0 | 0 | d347343c3745ea6f4ad5c923dc54a8efd25dab63 | 2,318 | task1-android-app | MIT License |
core/vmrequest/src/main/kotlin/com/vmloft/develop/library/request/RResponse.kt | lzan13 | 78,939,095 | false | null | package com.vmloft.develop.library.request
/**
* Create by lzan13 on 2020/02/13 18:56
* 描述:统一请求结果数据 bean
*/
data class RResponse<out T>(val code: Int, val msg: String, val data: T)
| 1 | null | 14 | 34 | c6eca3fb479d82ca14ca3bdcc3fb5f5494a4db0c | 185 | VMLibrary | MIT License |
service/src/main/java/com/tink/service/authentication/UserEventBus.kt | tink-ab | 245,144,086 | false | {"Gradle Kotlin DSL": 7, "Gradle": 4, "Java Properties": 2, "Markdown": 2, "Shell": 9, "Text": 2, "Ignore List": 5, "Batchfile": 1, "YAML": 1, "INI": 4, "Proguard": 3, "Kotlin": 252, "XML": 4, "CODEOWNERS": 1, "OASv2-json": 2, "Java": 1} | package com.tink.service.authentication
import com.tink.model.user.User
import com.tink.service.di.ServiceScope
import io.reactivex.disposables.Disposable
import io.reactivex.subjects.BehaviorSubject
import javax.inject.Inject
@ServiceScope
class UserEventBus @Inject constructor() {
private val publisherSubject =... | 1 | null | 6 | 1 | e2202bb6892e5310feaf5fa51a35714302ddb7b0 | 532 | tink-core-android | MIT License |
parent/src/main/java/sk/backbone/parent/application/dependency_injection/ParentServerRepositoryModule.kt | backbonesk | 273,036,191 | false | null | package sk.backbone.parent.application.dependency_injection
import android.content.Context
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.SingletonComponent
import okhttp3.logging.HttpLoggingInterceptor
imp... | 0 | Kotlin | 1 | 2 | 784297b125f7870b97dc31f14a8c74e994f009d4 | 958 | parent | MIT License |
core/android/src/main/kotlin/com/walletconnect/android/internal/utils/Expiration.kt | WalletConnect | 435,951,419 | false | {"Kotlin": 2502705, "Java": 4366, "Shell": 1892} | @file:JvmName("Expiration")
package com.walletconnect.android.internal.utils
val PROPOSAL_EXPIRY: Long get() = currentTimeInSeconds + fiveMinutesInSeconds
val ACTIVE_SESSION: Long get() = currentTimeInSeconds + weekInSeconds | 78 | Kotlin | 71 | 199 | e373c535d7cefb2f932368c79622ac05763b411a | 226 | WalletConnectKotlinV2 | Apache License 2.0 |
analytics/src/main/java/io/appmetrica/analytics/impl/component/processor/event/ExternalAttributionHandler.kt | appmetrica | 650,662,094 | false | null | package io.appmetrica.analytics.impl.component.processor.event
import io.appmetrica.analytics.coreutils.internal.time.TimeProvider
import io.appmetrica.analytics.impl.CounterReport
import io.appmetrica.analytics.impl.attribution.ExternalAttributionHelper
import io.appmetrica.analytics.impl.attribution.ExternalAttribut... | 3 | null | 5 | 54 | 81572296e16423617822fbc19c2465d6b7b4713e | 1,899 | appmetrica-sdk-android | MIT License |
android/app/src/main/java/com/fabirt/debty/ui/people/detail/PersonDetailViewModel.kt | fabirt | 349,736,814 | false | {"Kotlin": 164948} | package com.fabirt.debty.ui.people.detail
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.fabirt.debty.domain.model.Movement
import com.fabirt.debty.domain.model.MovementType
import com.fabirt.debty.dom... | 0 | Kotlin | 8 | 46 | fd9e7b97728f57c93104caa1c4c6ae70ff770ec7 | 3,071 | debty-v2 | MIT License |
source_code/app/src/main/java/com/example/speakingtopics/network/apiservice/ApiService.kt | radocodes | 565,788,532 | false | {"Kotlin": 26458} | package com.example.speakingtopics.network.apiservice
import com.example.speakingtopics.network.models.topics.TopicResponseModel
interface ApiService {
suspend fun getDefaultTopics(): List<TopicResponseModel>
} | 0 | Kotlin | 0 | 0 | 3d262bac0d3dece0e1993171021a5e217bd89714 | 216 | Speaking-Topics | MIT License |
src/me/anno/gpu/texture/TextureReader.kt | AntonioNoack | 456,513,348 | false | {"Kotlin": 10736182, "C": 236426, "Java": 6754, "Lua": 4404, "C++": 3070, "GLSL": 2698} | package me.anno.gpu.texture
import me.anno.cache.AsyncCacheData
import me.anno.config.DefaultConfig
import me.anno.gpu.GFX
import me.anno.image.Image
import me.anno.image.ImageCache
import me.anno.image.ImageReadable
import me.anno.image.ImageAsFolder
import me.anno.image.ImageTransform
import me.anno.image.raw.GPUIma... | 0 | Kotlin | 3 | 24 | 63377c2e684adf187a31af0f4e5dd0bfde1d050e | 4,349 | RemsEngine | Apache License 2.0 |
compiler/testData/codegen/box/when/kt2457.kt | JakeWharton | 99,388,807 | false | null | fun foo(i: Int) : Int =
when (i) {
1 -> 1
null -> 1
else -> 1
}
fun box() : String = if (foo(1) == 1) "OK" else "fail"
| 179 | null | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 152 | kotlin | Apache License 2.0 |
domain/src/main/java/com/seo4d696b75/android/ekisagasu/domain/dataset/update/DataUpdateUseCase.kt | Seo-4d696b75 | 247,417,963 | false | {"Kotlin": 421916} | package com.seo4d696b75.android.ekisagasu.domain.dataset.update
import com.seo4d696b75.android.ekisagasu.domain.dataset.DataRepository
import com.seo4d696b75.android.ekisagasu.domain.dataset.DataVersion
import com.seo4d696b75.android.ekisagasu.domain.dataset.LatestDataVersion
import com.seo4d696b75.android.ekisagasu.d... | 4 | Kotlin | 0 | 0 | ca323eb5aa46187d16d335a10fd64d51bfd6c651 | 1,672 | checkhelper | MIT License |
app/src/main/java/com/mindorks/framework/mvvm/ui/account/login/register/RegisterActivity.kt | halimbimantara | 510,920,973 | false | {"Kotlin": 361926, "Java": 109358} | /*
* Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE 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
*
* https://mindorks.com/license/apache-v2
*
* Unless required by a... | 0 | Kotlin | 0 | 0 | 6e0d1073428e064a5abf4aaebedc44fea5abe847 | 7,821 | blitar-membina | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsresettlementpassportapi/resource/PopUserOTPResourceController.kt | ministryofjustice | 665,659,688 | false | {"Kotlin": 1609755, "Dockerfile": 1994} | package uk.gov.justice.digital.hmpps.hmppsresettlementpassportapi.resource
import io.swagger.v3.oas.annotations.Operation
import io.swagger.v3.oas.annotations.Parameter
import io.swagger.v3.oas.annotations.media.Content
import io.swagger.v3.oas.annotations.media.Schema
import io.swagger.v3.oas.annotations.responses.Ap... | 1 | Kotlin | 2 | 1 | cb002e1d1cbdb5889469d78ec48ebe4174916771 | 9,172 | hmpps-resettlement-passport-api | MIT License |
app/src/main/java/knf/kuma/database/dao/QueueDAO.kt | jordyamc | 119,774,950 | false | null | package knf.kuma.database.dao
import androidx.lifecycle.LiveData
import androidx.room.*
import knf.kuma.database.BaseConverter
import knf.kuma.pojos.QueueObject
@Dao
@TypeConverters(BaseConverter::class)
interface QueueDAO {
@get:Query("SELECT MIN(aid) AS id,`key`,aid,name,number,eid,isFile,uri,time,link FROM qu... | 24 | null | 39 | 159 | 320c4edb7ca7b4e0be6d0f1ad2b61e876f47461d | 1,763 | UKIKU | MIT License |
app/src/main/java/com/vivekupasani/single/viewModels/ProfileViewModel.kt | vivekupasani | 856,708,527 | false | {"Kotlin": 99984} | package com.vivekupasani.single.viewModels
import android.app.Application
import android.widget.ProgressBar
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.firestore.FirebaseF... | 0 | Kotlin | 0 | 0 | d239c7716a536e04ee914c91136877257c4f5ebb | 1,304 | Single | MIT License |
chapter4-pwm/src/main/java/com/plattysoft/pwmsamples/LedBrightnessActivity.kt | PacktPublishing | 131,269,346 | false | null | package com.plattysoft.pwmsamples
import android.app.Activity
import android.os.Bundle
import android.os.Handler
import com.google.android.things.pio.PeripheralManager
import com.google.android.things.pio.Pwm
import java.util.*
import kotlin.concurrent.timerTask
/**
* Created by <NAME> on 13/05/18.
*/
class LedBrig... | 0 | null | 6 | 13 | 62344e949cf1103889086a844de24fa2830db7f6 | 1,213 | Android-Things-Quick-Start-Guide | MIT License |
app/src/main/java/com/alossa/alossacapstone/ui/profile/InputWishlistActivity.kt | hikizan | 434,510,763 | false | null | package com.alossa.alossacapstone.ui.profile
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import androidx.lifecycle.ViewModelProvider
import com.alossa.alossacapstone.databinding.ActivityInputWishlistBinding
import com.alossa.alossac... | 0 | Kotlin | 0 | 0 | ddb8bdb0c907abccc190d88bd30c8299b3b1b4df | 2,186 | Alossa-Capstone | Apache License 2.0 |
app/src/main/java/com/ladsers/ztemp/domain/states/DeviceStatusState.kt | Ladsers | 713,928,864 | false | {"Kotlin": 33046} | package com.ladsers.ztemp.domain.states
import androidx.compose.ui.graphics.vector.ImageVector
import com.ladsers.ztemp.data.models.DeviceStatus
interface DeviceStatusState {
object InProcessing : DeviceStatusState
object NotSignedIn : DeviceStatusState
object NoDeviceSelected : DeviceStatusState
obje... | 0 | Kotlin | 0 | 0 | ce66d52e62a6c2c19fb6513820dad956ffdcaa0c | 553 | zTemp | Apache License 2.0 |
app/src/main/java/com/cyberwalker/fashionstore/splash/SplashViewModel.kt | cyph3rcod3r | 535,256,550 | false | null | /*
* Copyright 2021 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | null | 8 | 87 | 90a375503c0e4aa08dac97154f5257101e3a780b | 1,303 | FashionStore | Apache License 2.0 |
app/src/main/java/com/camven/test/MainActivity.kt | Camwly | 598,459,544 | false | null | package com.camven.test
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import com.camven.test.databinding.ActivityMainBinding
import com.camven.test.view.requestlayout.TestRequestLayoutActivity
class MainActivity : AppCompatActivity() {
... | 0 | Kotlin | 0 | 0 | f681a0f3ba998d4714b1ee967f4dcf2a45776bcb | 756 | test | Apache License 2.0 |
common/src/main/kotlin/net/spaceeye/vmod/toolgun/serverSettings/ServerSettingsTypes.kt | SuperSpaceEye | 751,999,893 | false | {"Kotlin": 721124, "Java": 16898} | package net.spaceeye.vmod.toolgun.serverSettings
import net.spaceeye.vmod.toolgun.modes.GUIBuilder
import net.spaceeye.vmod.toolgun.serverSettings.modes.DimensionalGravitySettings
import net.spaceeye.vmod.toolgun.serverSettings.modes.ServerLimitsSettings
import net.spaceeye.vmod.utils.Registry
import net.spaceeye.vmod... | 2 | Kotlin | 8 | 5 | dfdf5b8807350284d1b1169e0b408b47ebe08d73 | 580 | VMod | MIT License |
app/src/main/java/blue/aodev/animeultimetv/presentation/screen/episodes/EpisodesFragment.kt | esnaultdev | 94,973,529 | false | null | package blue.aodev.animeultimetv.presentation.screen.episodes
import android.os.Bundle
import android.support.v17.leanback.app.VerticalGridFragment
import android.support.v17.leanback.widget.ArrayObjectAdapter
import android.support.v17.leanback.widget.FocusHighlight
import android.support.v17.leanback.widget.OnItemVi... | 1 | Kotlin | 1 | 1 | 481bb13907ec07226180290c5dbfc4e96284d950 | 3,244 | AnimeUltimeTv | MIT License |
streaming/testUtil/com/android/tools/idea/streaming/emulator/UiSettingsRule.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 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 app... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 7,569 | android | Apache License 2.0 |
src/main/kotlin/com/vauthenticator/server/password/domain/PasswordEncoder.kt | VAuthenticator | 191,632,792 | false | {"Kotlin": 594019, "TypeScript": 47216, "HCL": 13254, "Python": 11052, "HTML": 6658, "Shell": 1961, "JavaScript": 1917, "Dockerfile": 1302} | package com.vauthenticator.server.password.domain
interface VAuthenticatorPasswordEncoder {
fun encode(password: String): String
fun matches(password: String, encodedPassword: String): Boolean
}
| 41 | Kotlin | 1 | 18 | 6c7f6cd4820318921a3a08844d063e55f92fca97 | 206 | vauthenticator | Apache License 2.0 |
app/src/main/java/com/example/submisionawal/ui/detail/DetailViewModel.kt | Pavelmez | 802,370,030 | false | {"Kotlin": 47962} | package com.example.submisionawal.ui.detail
import android.util.Log
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.example.submisionawal.data.response.DetailUserResponse
import com.example.submisionawal.data.retrofit.ApiConfig
import retrofit... | 0 | Kotlin | 0 | 0 | 78a1135b8f698952e12151a37ae8d1787d3aec0a | 1,601 | Basic-Github-Users | MIT License |
firefly-net/src/test/kotlin/com/fireflysource/net/http/client/impl/content/provider/TestFileContentProvider.kt | hypercube1024 | 3,458,429 | false | {"PowerShell": 2, "Maven POM": 8, "Ignore List": 3, "Text": 3, "YAML": 2, "Markdown": 1, "Java": 498, "Kotlin": 183, "INI": 3, "Shell": 2, "XML": 6, "CMake": 1, "C++": 3, "C": 1, "HTML": 2} | package com.fireflysource.net.http.client.impl.content.provider
import com.fireflysource.common.io.BufferUtils
import com.fireflysource.common.io.openFileChannelAsync
import com.fireflysource.common.io.useAwait
import com.fireflysource.common.io.writeAwait
import com.fireflysource.net.http.client.HttpClientContentProv... | 1 | Java | 112 | 295 | e4774ba7726a08afbe97a7ee8d7343bc9df671de | 3,495 | firefly | Apache License 2.0 |
push-sdk/meteor/src/main/java/com/wuhaowen/meteor/thread/Task.kt | wuhaowen | 164,527,240 | false | {"Java": 98735, "Kotlin": 39339, "Go": 8726} | package com.wuhaowen.meteor.thread
enum class TaskPriority {
LOW,
MEDIUM,
HIGH
}
interface Task : Comparable<Task>{
var priority: TaskPriority
override fun compareTo(other: Task): Int = this.priority.ordinal - other.priority.ordinal
} | 1 | null | 1 | 1 | ac535779cf979efdc2ce3269fd556e3ec29dfc71 | 258 | chatterbox | MIT License |
plugins/api/src/main/kotlin/org/rsmod/plugins/api/cache/map/xtea/XteaFileLoader.kt | rsmod | 293,875,986 | false | null | package org.rsmod.plugins.api.cache.map.xtea
import com.fasterxml.jackson.databind.ObjectMapper
import com.github.michaelbull.logging.InlineLogger
import org.openrs2.crypto.XteaKey
import org.rsmod.game.config.GameConfig
import org.rsmod.json.Json
import java.nio.file.Files
import javax.inject.Inject
private val logg... | 0 | Kotlin | 49 | 55 | 5293efb07c833715f9bd9df4cad6ff9aa68143da | 964 | rsmod | ISC License |
src/me/anno/utils/test/structures/FloatArray2D.kt | AntonioNoack | 266,471,164 | false | null | package me.anno.utils.test.structures
import me.anno.ecs.components.mesh.Mesh
import me.anno.io.Saveable
import me.anno.io.text.TextReader
import me.anno.io.text.TextWriter
import org.apache.logging.log4j.LogManager
fun main() {
val logger = LogManager.getLogger("FloatArray2D")
val writer = TextWriter()
... | 0 | Kotlin | 1 | 8 | e5f0bb17202552fa26c87c230e31fa44cd3dd5c6 | 1,211 | RemsStudio | Apache License 2.0 |
src/main/kotlin/dev/stromland/jsonschema/module/kotlin/KotlinJacksonModule.kt | stromland | 244,131,317 | false | null | package dev.stromland.jsonschema.module.kotlin
import com.fasterxml.jackson.databind.DeserializationFeature
import com.fasterxml.jackson.databind.introspect.AnnotatedConstructor
import com.fasterxml.jackson.databind.introspect.AnnotatedParameter
import com.fasterxml.jackson.module.kotlin.KotlinModule
import com.faster... | 0 | Kotlin | 0 | 0 | 31d1fd5eb1172bb9392f2354b5ba2693baa93ccf | 3,539 | jsonschema-module-jackson-kotlin | Apache License 2.0 |
src/feature/details/src/commonMain/kotlin/com/gabrielbmoro/moviedb/details/ui/widgets/GenresCard.kt | gabrielbmoro | 574,746,759 | false | null | package com.gabrielbmoro.moviedb.details.ui.widgets
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.ExperimentalLayoutApi
import androidx.compose.foundation.layout.FlowRow
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.CircleSh... | 9 | null | 8 | 62 | 0ae8c7ae825162eac685513c293aeb0556eb43ea | 1,689 | MovieDB-App | MIT License |
src/main/kotlin/examples/forces/GravitationalAttraction.kt | CuriousNikhil | 415,380,983 | false | null | package examples.forces
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.drawscope.DrawScope
import androidx.compose.ui.input.pointer.pointerMoveFilter
import k5
import math.Vector2D
import math.constra... | 1 | Kotlin | 6 | 99 | 106deec4165a44c3590c6c9ea335b97d29e54cf5 | 2,557 | k5-compose | Apache License 2.0 |
src/main/kotlin/su/sonoma/lostriver/Config.kt | saddydead1 | 837,735,532 | false | {"Kotlin": 210174, "Java": 475} | package su.sonoma.fishingmod
import net.minecraft.resources.ResourceLocation
import net.minecraft.world.item.Item
import net.minecraftforge.common.ForgeConfigSpec
import net.minecraftforge.eventbus.api.SubscribeEvent
import net.minecraftforge.fml.common.Mod.EventBusSubscriber
import net.minecraftforge.fml.event.config... | 0 | Kotlin | 0 | 2 | f6579c09f6661bbc244f392871ecbe08f86531c2 | 2,428 | lostriver | MIT License |
shared/src/iosMain/kotlin/com/prof18/feedflow/utils/Crashlytics.kt | prof18 | 600,257,020 | false | null | package com.prof18.feedflow.utils
import co.touchlab.crashkios.crashlytics.CrashlyticsKotlin
import co.touchlab.crashkios.crashlytics.enableCrashlytics
import co.touchlab.crashkios.crashlytics.setCrashlyticsUnhandledExceptionHook
fun setupCrashlytics() {
enableCrashlytics()
setCrashlyticsUnhandledExceptionHoo... | 0 | Kotlin | 4 | 97 | e3d2ae617a067c0484d414c34fc4ae87630e3b7a | 419 | feed-flow | Apache License 2.0 |
data/src/main/java/ca/bc/gov/data/datasource/remote/model/base/specialauthority/SpecialAuthorityPayload.kt | bcgov | 414,797,174 | false | {"Kotlin": 1305241, "Java": 582146} | package ca.bc.gov.data.datasource.remote.model.base.specialauthority
/**
* @author: Created by <NAME> on 24,June,2022
*/
data class SpecialAuthorityPayload(
val referenceNumber: String? = null,
val drugName: String? = null,
val effectiveDate: String? = null,
val expiryDate: String? = null,
val pr... | 7 | Kotlin | 5 | 5 | 8866b6673f902057eb12542c3d86d90cfa60aa65 | 478 | myhealthBC-android | Apache License 2.0 |
platform/lang-impl/src/com/intellij/util/indexing/diagnostic/MaxNTimeBucket.kt | russelldavis | 265,272,636 | false | null | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.util.indexing.diagnostic
import java.util.*
/**
* Bucket of times with size of at most [sizeLimit].
* The first added time is `firstTime`.
* Maintains ex... | 1 | null | 1 | 1 | fa602b2874ea4eb59442f9937b952dcb55910b6e | 1,346 | intellij-community | Apache License 2.0 |
src/test/kotlin/de/pflugradts/passbird/application/eventhandling/ApplicationEventHandlerTest.kt | christianpflugradt | 522,173,174 | false | {"Kotlin": 579999} | package de.pflugradts.passbird.application.eventhandling
import de.pflugradts.passbird.INTEGRATION
import de.pflugradts.passbird.application.UserInterfaceAdapterPort
import de.pflugradts.passbird.application.fakeUserInterfaceAdapterPort
import de.pflugradts.passbird.domain.model.ddd.DomainEvent
import de.pflugradts.pa... | 1 | Kotlin | 0 | 0 | 8364de9e421c45dd9ae2a8e3cfc70d17efbf714a | 2,945 | Passbird | Apache License 2.0 |
app/src/main/java/org/covidwatch/android/presentation/settings/SettingsFragment.kt | generalmotors | 279,946,799 | true | {"Kotlin": 257493, "Java": 5776} | package org.covidwatch.android.presentation
import android.Manifest
import android.annotation.SuppressLint
import android.bluetooth.BluetoothAdapter
import android.content.Context.MODE_PRIVATE
import android.content.Intent
import android.content.SharedPreferences
import android.content.res.ColorStateList
import androi... | 1 | Kotlin | 2 | 1 | 41c9eefcc48f584a5544f7c92b6fc95e89e11f9c | 8,695 | covidwatch-android-tcn | Apache License 2.0 |
src/eu/opendiabetes/gateway/language/info_sheets/english/FollowupParentUsers.kt | OPEN-diabetes | 277,939,065 | false | null | package eu.opendiabetes.gateway.language.info_sheets.english
const val INFO_SHEET_FOLLOWUP_PARENT_NON_USERS = """
<h1>Introduction</h1>
<p>The OPEN team invites you to take part in a global study that examines in what way the innovations being developed by the Do-It-Yourself Artificial Pancreas Systems (DIYAPS) commun... | 0 | Kotlin | 0 | 1 | 057ae04453639368cf9a038604b7a3865e2b3ddc | 11,681 | Gateway | MIT License |
waltid-services/waltid-e2e-tests/src/test/kotlin/LspPotentialWallet.kt | walt-id | 701,058,624 | false | null | import id.walt.commons.interop.LspPotentialInterop
import id.walt.credentials.vc.vcs.W3CVC
import id.walt.crypto.keys.KeyGenerationRequest
import id.walt.crypto.keys.KeySerialization
import id.walt.crypto.keys.KeyType
import id.walt.crypto.keys.jwk.JWKKey
import id.walt.crypto.utils.JsonUtils.toJsonElement
import id.wa... | 43 | null | 42 | 116 | 0bcb9e1efe911b4445535ca1531a56b7a52c472c | 9,663 | waltid-identity | Apache License 2.0 |
app/src/main/java/com/yechaoa/wanandroid_jetpack/ui/main/navi/NaviRepository.kt | yechaoa | 335,943,073 | false | null | package com.yechaoa.wanandroid_jetpack.ui.main.navi
import com.yechaoa.wanandroid_jetpack.base.BaseRepository
/**
* Created by yechaoa on 2021/2/8.
* Describe :
*/
class NaviRepository : BaseRepository() {
suspend fun getNavi() = apiService().getNavi().data()
} | 0 | Kotlin | 9 | 81 | f46b9f25ec4c7ae0ef6d9bbacfeccf3dbbf7d522 | 272 | wanandroid_jetpack | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.