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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
demo/src/main/java/com/example/demo/MainActivity.kt | HubSpot | 758,702,773 | false | {"Kotlin": 64424, "CSS": 391} | package com.example.demo
import android.annotation.SuppressLint
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.NavController
import androidx.navigation.findNavController
import androidx.navigation.fragment.NavHostFragment
import androidx.nav... | 0 | Kotlin | 1 | 1 | 185ee0e42bd5af2a413c11fa2937a66601d19c54 | 2,907 | mobile-chat-sdk-android | MIT License |
ICT4DNews/app/src/test/kotlin/at/ict4d/ict4dnews/dao/AuthorDaoTests.kt | ICT4Dat | 132,874,779 | false | null | package at.ict4d.ict4dnews.dao
import at.ict4d.ict4dnews.persistence.database.dao.AuthorDao
import at.ict4d.ict4dnews.utils.generateAuthor
import at.ict4d.ict4dnews.utils.generateAuthorListAndInsert
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.runBlocking
import org.junit.Assert
import org.junit.Befo... | 16 | Kotlin | 1 | 5 | 61d40e82c06c203070d4e8d2f00533bce6be3ef1 | 1,632 | ict4dat-news-android | Apache License 2.0 |
js/js.translator/testData/box/simple/classInstantiation.kt | gigliovale | 89,726,097 | false | null | // EXPECTED_REACHABLE_NODES: 996
package foo
class Test() {
}
fun box(): String {
var test = Test()
return "OK"
} | 0 | null | 4 | 6 | ce145c015d6461c840050934f2200dbc11cb3d92 | 123 | kotlin | Apache License 2.0 |
iteration7/music-matters/core/i8n/src/main/java/com/odesa/musicMatters/core/i8n/Belarusian.kt | Odhiambo-Michael-Allan | 740,198,682 | false | {"Kotlin": 9540063} | package com.odesa.musicMatters.services.i18n
object Belarusian : Language {
override val locale: String
get() = "be"
override val nativeName: String
get() = "Беларуская"
override val englishName: String
get() = "Belarusian"
override val unknownSymbol: String
get() = "?"
... | 0 | Kotlin | 0 | 3 | 05ad5e08002a78958ed7763e6685a0e15f635fae | 14,919 | music-matters | Apache License 2.0 |
src/test/kotlin/kotlinmudv2/fight/FightServiceTest.kt | danielmunro | 515,227,142 | false | {"Kotlin": 214222, "Dockerfile": 179, "Makefile": 134} | package kotlinmudv2.fight
import assertk.assertThat
import assertk.assertions.isLessThan
import assertk.assertions.isNull
import kotlinmudv2.game.Attribute
import kotlinmudv2.test.createTestService
import kotlin.test.Test
class FightServiceTest {
@Test
fun testFightRoundReducesHpInTarget() {
// setup
... | 0 | Kotlin | 0 | 0 | 28b5a049c54ad072ccade19c9ad2bb36b9cf8909 | 1,550 | kotlinmud-v2 | MIT License |
app/src/commonMain/kotlin/com/materialkolor/builder/core/UrlLauncher.kt | jordond | 860,167,006 | false | {"Kotlin": 441363, "Shell": 6336, "HTML": 4360, "Swift": 614, "CSS": 102} | package com.materialkolor.builder.core
import co.touchlab.kermit.Logger
interface UrlLauncher {
fun launch(url: String)
fun launch(url: UrlLink) = launch(url.value)
}
class DefaultUrlLauncher : UrlLauncher {
private val logger = Logger.withTag("LinkLauncher")
override fun launch(url: String) {
... | 5 | Kotlin | 2 | 26 | acd61c7309d24df1e014d5a0e1b9674ad8cb692b | 567 | MaterialKolorBuilder | MIT License |
src/test/kotlin/org/unbrokendome/gradle/plugins/helm/command/tasks/HelmInitTest.kt | Haardt | 243,044,316 | true | {"Kotlin": 260778} | package org.unbrokendome.gradle.plugins.helm.command.tasks
import assertk.assertThat
import assertk.assertions.isDirectory
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.unbrokendome.gradle.plugins.helm.AbstractGradleProjectTest
import org.unbrokendome.gradle.plugins.helm.command.... | 0 | null | 0 | 0 | f5e5ef51272526eaf2cf2f8f94a51d7a7da4bbd9 | 863 | gradle-helm-plugin | MIT License |
src/main/kotlin/com/blueanvil/tekst/WordCursor.kt | blueanvil | 276,079,873 | false | null | package com.blueanvil.tekst
data class WordCursor(val startIndex: Int) {
private val text = StringBuilder()
fun addChar(char: Char) {
text.append(char)
}
fun word(): TextMatch {
return TextMatch(text.toString(), startIndex)
}
} | 0 | Kotlin | 0 | 0 | b1b8aa34973ff7b760f3d53365a6d5bfe3ee97db | 267 | tekst | Apache License 2.0 |
app/src/main/java/de/beatbrot/screenshotassistant/EditingMode.kt | beatbrot | 200,832,747 | false | null | package de.beatbrot.screenshotassistant
enum class EditingMode {
CROP, PAINT
}
| 15 | null | 11 | 49 | 3d8ce0dc0e2580a6ba55d3379654b67ad79d9112 | 84 | ScreenshotAssistant | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/findUsages/kotlin/conventions/invokeExtension.0.kt | JetBrains | 2,489,216 | false | null | // PSI_ELEMENT: org.jetbrains.kotlin.psi.KtNamedFunction
// OPTIONS: usages
package pack
class P
operator fun P.<caret>invoke() = 1
fun f(p: P) {
p()
p.invoke()
} | 191 | null | 4372 | 13,319 | 4d19d247824d8005662f7bd0c03f88ae81d5364b | 173 | intellij-community | Apache License 2.0 |
fxgl/src/main/kotlin/com/almasb/fxgl/saving/SaveFile.kt | Ravanla | 205,673,093 | false | null | /*
* FXGL - JavaFX Game Library. The MIT License (MIT).
* Copyright (c) AlmasB (<EMAIL>).
* See LICENSE for details.
*/
package com.almasb.fxgl.saving
import java.io.Serializable
import java.time.LocalDateTime
import java.time.format.DateTimeFormatter
/**
* Data structure for save files.
* The actual data save... | 0 | null | 0 | 1 | 25433dbdebb4c358eabe622063fac0ccc8a910f6 | 989 | FXGL | MIT License |
src/main/kotlin/modic/io/model/Attribute.kt | modicio | 526,521,528 | false | {"Kotlin": 150415} | /**
* Copyright 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writi... | 6 | Kotlin | 0 | 8 | d26f616fb622cda73134506a4c961600ffc41ef0 | 2,767 | modicio | Apache License 2.0 |
app/src/main/java/com/carl/apkdemo/activities/MainActivity.kt | wen-carl | 162,534,076 | false | null | package com.carl.apkdemo.activities
import android.content.Intent
import android.os.Bundle
import android.view.View
import com.carl.apkdemo.R
import com.carl.apkdemo.base.BaseActivity
class MainActivity : BaseActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceSt... | 0 | Kotlin | 0 | 0 | cf3fd618451547faa4c674f1bc2f6842ce432bad | 493 | ApkDemo | MIT License |
codetextfield/src/main/java/com/king/compose/codetextfield/TextFieldCursor.kt | jenly1314 | 568,473,395 | false | {"Kotlin": 18347, "Shell": 636} | package com.king.compose.codetextfield
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.AnimationSpec
import androidx.compose.animation.core.infiniteRepeatable
import androidx.compose.animation.core.keyframes
import androidx.compose.runtime.LaunchedEffect
import androidx.compose... | 0 | Kotlin | 0 | 20 | 7e6d96b8b02fb957b6640e4c49ed7054f9ab1df1 | 2,258 | CodeTextField | MIT License |
chat-index-cassandra/src/test/kotlin/com/demo/chat/test/index/TopicIndexTests.kt | marios-code-path | 181,180,043 | false | {"Kotlin": 924762, "Shell": 36602, "C": 3160, "HTML": 2714, "Starlark": 278} | package com.demo.chat.test.index
import com.demo.chat.domain.MessageTopic
import com.demo.chat.index.cassandra.domain.ChatTopicName
import com.demo.chat.index.cassandra.domain.ChatTopicNameKey
import com.demo.chat.index.cassandra.repository.TopicByNameRepository
import com.demo.chat.service.core.IndexService
import co... | 2 | Kotlin | 1 | 9 | 2ae59375cd44e8fb58093b0f24596fc3111fd447 | 2,487 | demo-chat | MIT License |
graph/graph-adapter-output-spring-data-neo4j-sdn6/src/main/kotlin/org/orkg/graph/adapter/output/neo4j/internal/Neo4jPredicateIdGenerator.kt | TIBHannover | 197,416,205 | false | {"Kotlin": 2966676, "Cypher": 216833, "Python": 4881, "Groovy": 1936, "Shell": 1803, "HTML": 240} | package org.orkg.graph.adapter.output.neo4j.internal
import org.orkg.common.ThingId
import org.springframework.stereotype.Component
@Component
class Neo4jPredicateIdGenerator(
private val repository: Neo4jPredicateIdCounterRepository
) : RepositoryBasedIdGenerator<ThingId, Neo4jPredicateIdCounter>() {
overri... | 0 | Kotlin | 1 | 5 | f9de52bdf498fdc200e7f655a52cecff215c1949 | 484 | orkg-backend | MIT License |
app/src/main/java/com/pr0gramm/app/ui/VerticallyUnboundedFrameLayout.kt | mopsalarm | 30,804,448 | false | null | package com.pr0gramm.app.ui
import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.widget.FrameLayout
/**
*/
class VerticallyUnboundedFrameLayout @JvmOverloads constructor(
context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
) : FrameLayout(co... | 39 | null | 38 | 284 | d6917f3ec16b6664a90a4519843f3d3d4ccae2cf | 744 | Pr0 | MIT License |
system/src/test/kotlin/com/commonsense/android/kotlin/system/compat/SpannedCompatKtTest.kt | Tvede-dk | 82,486,921 | false | null | package com.commonsense.android.kotlin.system.compat
import com.commonsense.android.kotlin.test.*
import org.junit.*
import org.robolectric.annotation.*
/**
* Created by <NAME> on 22-05-2018.
* Purpose:
*/
@Config(sdk = [18, 25])
class SpannedCompatKtTest : BaseRoboElectricTest() {
@Test
fun fromHtml() {... | 9 | Kotlin | 0 | 8 | eae2deb915804d4c431c3fc9d93c33f011a98e5c | 848 | CommonsenseAndroidKotlin | MIT License |
app/src/main/java/com/masterplus/trdictionary/features/settings/domain/repo/StorageService.kt | Ramazan713 | 634,957,286 | false | {"Kotlin": 658244} | package com.masterplus.trdictionary.features.settings.domain.repo
import com.masterplus.trdictionary.core.domain.util.Resource
import com.masterplus.trdictionary.features.settings.domain.model.User
import com.masterplus.trdictionary.features.settings.domain.model.BackupMeta
interface StorageService {
suspend fun... | 0 | Kotlin | 0 | 1 | efde17c1a0036bed47a735564f12f831332134cd | 616 | Turkce-ve-Osmanlica-Sozluk | Apache License 2.0 |
kapitel_06/ServiceDemo3_Service/app/src/main/java/com/thomaskuenneth/androidbuch/servicedemo3_service/MainActivity.kt | tkuenneth | 239,271,728 | false | null | package com.thomaskuenneth.androidbuch.servicedemo3_service
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
finish()
}
} | 0 | Kotlin | 0 | 1 | 977f93b8ff9bdd50d45a1a51d009b1eba75b7eb0 | 302 | begleitmaterialien-zu-android-11 | Apache License 2.0 |
diktat-test-framework/src/main/kotlin/org/cqfn/diktat/test/framework/processing/FileComparator.kt | cqfn | 275,879,956 | false | null | package org.cqfn.diktat.test.framework.processing
import io.github.petertrr.diffutils.diff
import io.github.petertrr.diffutils.patch.ChangeDelta
import io.github.petertrr.diffutils.text.DiffRowGenerator
import org.slf4j.LoggerFactory
import java.io.File
import java.io.IOException
import java.nio.file.Files
import jav... | 93 | Kotlin | 23 | 361 | d8c4cea250a651244fb6bad0ecf9bad505ece89b | 3,740 | diKTat | MIT License |
Common/src/main/java/at/petrak/hexcasting/common/casting/actions/eval/OpThanos.kt | FallingColors | 441,721,272 | false | null | package at.petrak.hexcasting.common.casting.operators.eval
import at.petrak.hexcasting.api.casting.castables.Action
import at.petrak.hexcasting.api.casting.eval.CastingEnvironment
import at.petrak.hexcasting.api.casting.eval.OperationResult
import at.petrak.hexcasting.api.casting.eval.vm.CastingImage
import at.petrak.... | 173 | null | 80 | 97 | 1aa53ca97faebc7e8fcca3215c58239ab35ad428 | 1,012 | HexMod | MIT License |
app/src/main/java/softspark/com/inventorypilot/users/domain/useCases/ValidateUserUseCase.kt | Landony04 | 836,511,304 | false | {"Kotlin": 259920} | package softspark.com.inventorypilot.users.domain.useCases
import kotlinx.coroutines.flow.Flow
import softspark.com.inventorypilot.users.domain.entities.AddUserResult
interface ValidateUserUseCase {
suspend operator fun invoke(
email: String,
firstName: String,
lastName: String,
ro... | 5 | Kotlin | 0 | 0 | 844c46e48ce44a50e0d44ce99df78f281af5c3b7 | 386 | inventory-pilot | MIT License |
app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPresenter.kt | smokeofc | 178,956,464 | false | null | package eu.kanade.tachiyomi.ui.reader
import android.os.Bundle
import android.os.Environment
import android.webkit.MimeTypeMap
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.data.cache.ChapterCache
import eu.kanade.tachiyomi.data.cache.CoverCache
import eu.kanade.tachiyomi.data.database.DatabaseHelper
import ... | 1 | null | 1 | 2 | 7b9e2de475e672b4b8635f3e1b6102db57533a35 | 21,781 | TachiyomiEH | Apache License 2.0 |
transport/src/commonMain/kotlin/com/genesys/cloud/messenger/transport/core/events/EventHandlerImpl.kt | MyPureCloud | 425,920,457 | false | {"Kotlin": 702568, "Swift": 120644, "Shell": 5872, "Ruby": 4062} | package com.genesys.cloud.messenger.transport.core.events
import com.genesys.cloud.messenger.transport.shyrka.receive.PresenceEvent
import com.genesys.cloud.messenger.transport.shyrka.receive.StructuredMessageEvent
import com.genesys.cloud.messenger.transport.shyrka.receive.TypingEvent
import com.genesys.cloud.messeng... | 1 | Kotlin | 6 | 9 | 0d5cb13d9247d1c5a3b5d4e9fab61a17ba4620a0 | 1,626 | genesys-messenger-transport-mobile-sdk | MIT License |
src/main/kotlin/me/bscal/runecraft/stats/StatRegistry.kt | bscal | 414,444,966 | false | null | package me.bscal.runecraft.stats
import it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap
import me.bscal.runecraft.RuneCraft
import me.bscal.runecraft.stats.spells.actions.DamageAction
import me.bscal.runecraft.stats.spells.conditions.ChanceCondition
import me.bscal.runecraft.stats.spells.targets.AreaTarget
impo... | 0 | Kotlin | 0 | 0 | 29470ea09d74e83a3fabe0789d8f169de6a3fc20 | 1,058 | RuneCraft | MIT License |
app/src/main/java/com/exorabeveragefsm/features/addAttendence/model/WorkTypeResponseModel.kt | DebashisINT | 614,840,078 | false | null | package com.exorabeveragefsm.features.addAttendence.model
import com.exorabeveragefsm.base.BaseResponse
/**
* Created by Saikat on 31-08-2018.
*/
class WorkTypeResponseModel : BaseResponse() {
var worktype_list: ArrayList<WorkTypeListData>? = null
} | 0 | Kotlin | 0 | 0 | 11801c2d74a940c23e66b51cf53fec14b1a8560b | 258 | ExoraBeverage | Apache License 2.0 |
app/src/main/java/com/exorabeveragefsm/features/addAttendence/model/WorkTypeResponseModel.kt | DebashisINT | 614,840,078 | false | null | package com.exorabeveragefsm.features.addAttendence.model
import com.exorabeveragefsm.base.BaseResponse
/**
* Created by Saikat on 31-08-2018.
*/
class WorkTypeResponseModel : BaseResponse() {
var worktype_list: ArrayList<WorkTypeListData>? = null
} | 0 | Kotlin | 0 | 0 | 11801c2d74a940c23e66b51cf53fec14b1a8560b | 258 | ExoraBeverage | Apache License 2.0 |
serialization/src/test/java/type/Byte32Test.kt | BlueWatson | 215,914,738 | false | {"Kotlin": 149510, "Java": 797} | package type
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
import org.nervos.ckb.type.fixed.Byte32
import org.nervos.ckb.utils.Numeric
/** Copyright © 2019 Nervos Foundation. All rights reserved. */
class Byte32Test {
@Test
fun byte32InitEmptyErrorTest() {
Assertions.assertThrows... | 0 | null | 0 | 0 | b947c6229a183bb5726c6389beec1a7a4459e1a8 | 1,660 | ckb-sdk-kotlin | MIT License |
demo/src/main/java/com/commonsware/ggweb/MainMotor.kt | OfekRv | 365,845,709 | false | {"Gradle": 4, "Java Properties": 2, "Text": 1, "Ignore List": 3, "EditorConfig": 1, "Markdown": 1, "XML": 12, "Java": 14, "Kotlin": 4, "INI": 1, "Proguard": 1, "JavaScript": 1, "HTML": 1} | /*
* Copyright (c) 2021 CommonsWare, LLC
* All rights reserved.
*
* MIT License
*
* 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... | 1 | null | 1 | 1 | 18a8b1a1bd5a586486af46406eb4b342a4769fd7 | 1,625 | Black-Widow-Slave | MIT License |
app/src/main/java/com/valerityoss/randomuserinfo/ui/ModernApplication.kt | shvets-denis | 207,673,191 | false | null | package com.valerityoss.randomuserinfo.ui
import dagger.android.AndroidInjector
import dagger.android.DaggerApplication
class ModernApplication : DaggerApplication() {
override fun applicationInjector(): AndroidInjector<out DaggerApplication> {
return DaggerAppComponent.builder().create(this)
}
} | 0 | Kotlin | 0 | 0 | ea21c46bbdb95bfe3ed6ab70d5f504e3416112ac | 315 | RandomUserInfo | Apache License 2.0 |
src/main/kotlin/g2801_2900/s2839_check_if_strings_can_be_made_equal_with_operations_i/Solution.kt | javadev | 190,711,550 | false | {"Kotlin": 4909193, "TypeScript": 50446, "Python": 3646, "Shell": 994} | package g2801_2900.s2839_check_if_strings_can_be_made_equal_with_operations_i
// #Easy #String #2023_12_18_Time_154_ms_(100.00%)_Space_35.3_MB_(83.33%)
class Solution {
fun canBeEqual(s1: String, s2: String): Boolean {
return isOk(s1, s2, 0) && isOk(s1, s2, 1)
}
private fun isOk(s1: String, s2: S... | 0 | Kotlin | 20 | 43 | 62708bc4d70ca2bfb6942e4bbfb4c64641e598e8 | 548 | LeetCode-in-Kotlin | MIT License |
src/main/kotlin/SymmetricState.kt | sander | 606,774,943 | false | null | package nl.sanderdijkhuis.noise
data class SymmetricState(val cipherState: CipherState, val key: ChainingKey, val handshakeHash: HandshakeHash) {
val cryptography get() = cipherState.cryptography
fun mixKey(inputKeyMaterial: InputKeyMaterial) = let {
val result = deriveKeys(cryptography, key, inputKe... | 1 | Kotlin | 0 | 0 | 5b961e181eb30ae5807f160ed04c629d0ebc5916 | 3,758 | noise-kotlin | MIT License |
app/src/main/java/com/dicoding/liveproject/RegisterActivity.kt | emdileven | 793,342,706 | false | {"Kotlin": 5420} | package com.dicoding.liveproject
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import com.dicoding.liveproject.databinding.ActivityRegisterBinding
import com.google.firebase.auth.FirebaseAuth
class RegisterActivity : AppCompatActivit... | 0 | Kotlin | 0 | 0 | b6f66973cf430f10deb5b2db6bf57f4632310a94 | 2,367 | villagee | Apache License 2.0 |
projects/prison-custody-status-to-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/recall/reason/RecallReasonRepository.kt | ministryofjustice | 500,855,647 | false | null | package uk.gov.justice.digital.hmpps.integrations.delius.recall.reason
import org.springframework.data.jpa.repository.JpaRepository
import uk.gov.justice.digital.hmpps.exception.NotFoundException
interface RecallReasonRepository : JpaRepository<RecallReason, Long> {
fun findByCodeAndSelectable(code: String, sele... | 4 | Kotlin | 0 | 2 | 404fca1520f49953b96a792d266ee3d3d12ee73a | 539 | hmpps-probation-integration-services | MIT License |
src/main/kotlin/org/crystal/intellij/psi/CrUnaryExpression.kt | asedunov | 353,165,557 | false | null | package org.crystal.intellij.psi
import com.intellij.lang.ASTNode
import com.intellij.psi.tree.IElementType
import com.intellij.psi.util.elementType
class CrUnaryExpression(node: ASTNode) : CrExpressionImpl(node) {
override fun accept(visitor: CrVisitor) = visitor.visitUnaryExpression(this)
val opSign: IElem... | 15 | Kotlin | 3 | 30 | 5dc69f80df256131bbca575ac0e0f3d05e12965f | 433 | intellij-crystal-lang | Apache License 2.0 |
src/main/kotlin/Market.kt | magnusesp | 148,985,156 | false | null | @file:Suppress("unused")
package screeps
external interface Market {
val credits: Double
val incomingTransactions: Array<Transaction>
val orders: Record<String, Order>
val outgoingTransactions: Array<Transaction>
fun calcTransactionCost(amount: Int, roomName1: String, roomName2: String): Int
fun cancelOr... | 0 | Kotlin | 1 | 0 | d3501c3ae5855967fcbb1ba5d9f04e3ccc4baa02 | 1,978 | kotlin-screeps | MIT License |
lib/src/main/java/com/github/eklipse2k8/charting/jobs/AnimatedZoomJob.kt | eklipse2k8 | 403,391,938 | true | {"Kotlin": 945921, "Java": 57298} | package com.github.eklipse2k8.charting.jobs
import android.animation.Animator
import android.animation.ValueAnimator
import android.annotation.SuppressLint
import android.graphics.Matrix
import android.view.View
import com.github.eklipse2k8.charting.charts.BarLineChartBase
import com.github.eklipse2k8.charting.compone... | 0 | Kotlin | 0 | 0 | 29d416f36d7fd1b6af13082c2ef6b7d6abe0cab8 | 3,905 | ComposeChart | Apache License 2.0 |
app/src/main/java/iambedoy/coco/MainActivity.kt | cbedoy | 278,022,344 | false | null | package iambedoy.coco
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.fragment.app.Fragment
import iambedoy.coco.explorer.ExplorerFragment
import iambedoy.coco.messages.MessagesFragment
import iambedoy.coco.settings.SettingsFragment
import kotlinx.android.synthetic.main.activit... | 0 | Kotlin | 0 | 0 | 6ce2c3874d0acd3258bf00f1860d5f15598b4f9c | 1,271 | Coco | Apache License 2.0 |
app/src/main/java/iambedoy/coco/MainActivity.kt | cbedoy | 278,022,344 | false | null | package iambedoy.coco
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.fragment.app.Fragment
import iambedoy.coco.explorer.ExplorerFragment
import iambedoy.coco.messages.MessagesFragment
import iambedoy.coco.settings.SettingsFragment
import kotlinx.android.synthetic.main.activit... | 0 | Kotlin | 0 | 0 | 6ce2c3874d0acd3258bf00f1860d5f15598b4f9c | 1,271 | Coco | Apache License 2.0 |
app/src/main/java/io/horizontalsystems/bankwallet/modules/manageaccount/ManageAccountViewModel.kt | horizontalsystems | 142,825,178 | false | null | package io.exzocoin.wallet.modules.manageaccount
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import io.exzocoin.wallet.core.Clearable
import io.exzocoin.wallet.core.subscribeIO
import io.exzocoin.wallet.entities.Account
import io.exzocoin.coinkit.models.CoinType
import io.exzocoin.cor... | 163 | null | 219 | 402 | 5ce20e6e4e0f75a76496051ba6f78312bc641a51 | 2,793 | unstoppable-wallet-android | MIT License |
inventory-api/src/main/kotlin/de/fllip/inventory/api/module/InventoryModule.kt | FllipEis | 319,325,120 | false | null | /*
* MIT License
*
* Copyright (c) 2020 <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... | 1 | Kotlin | 2 | 4 | 3fa9e1f49acf4db3c9771bcd47bb9096f5299e66 | 2,333 | inventory-api | MIT License |
prime-router/src/main/kotlin/azure/DatabaseAccess.kt | CDCgov | 304,423,150 | false | null | package gov.cdc.prime.router.azure
import com.zaxxer.hikari.HikariConfig
import com.zaxxer.hikari.HikariDataSource
import gov.cdc.prime.router.Organization
import gov.cdc.prime.router.Report
import gov.cdc.prime.router.ReportId
import gov.cdc.prime.router.azure.db.Tables
import gov.cdc.prime.router.azure.db.Tables.COV... | 834 | null | 35 | 35 | 2d9551487ce5b352a9043cd677b67ab7711ea509 | 33,059 | prime-reportstream | Creative Commons Zero v1.0 Universal |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/hardware/ZaPaiplain.kt | gitRaiku | 696,241,983 | false | {"Kotlin": 148480, "Java": 50671} | package org.firstinspires.ftc.teamcode.hardware
import com.acmerobotics.dashboard.config.Config
import org.firstinspires.ftc.teamcode.hardware.CameraControls.AutoMinBlocksBlue
import org.firstinspires.ftc.teamcode.hardware.CameraControls.AutoMinBlocksRed
import org.firstinspires.ftc.teamcode.hardware.CameraControls.Au... | 0 | Kotlin | 0 | 0 | b7f92f36dbbbac1e1b6bcdc05268cababafd31fa | 7,089 | CenterStage | BSD 3-Clause Clear License |
shared/src/commonMain/kotlin/com/architect/kmpessentials/share/KmpShare.kt | TheArchitect123 | 801,452,364 | false | {"Kotlin": 15856, "Ruby": 2156} | package com.architect.kmpessentials.share
class KmpShare {
} | 0 | Kotlin | 0 | 1 | 5db28aae309308396ebde16e29bdced3352dc706 | 61 | KmpEssentials | MIT License |
app/src/androidTest/java/com/task/di/TestDataModule.kt | quachhongkhoait | 319,358,965 | false | null | package com.task.di
import com.task.TestDataRepository
import com.task.data.DataRepositorySource
import dagger.Binds
import dagger.Module
import javax.inject.Singleton
@Module
abstract class TestDataModule {
@Binds
@Singleton
abstract fun provideDataRepository(dataRepository: TestDataRepository): DataRepo... | 0 | Kotlin | 0 | 0 | 58201bb80b1147e20718d75afd705ae930727a47 | 334 | TemplateMVVM | Apache License 2.0 |
data/src/main/java/com.devdd.recipe.data/utils/DataStorePreferencesExtensions.kt | deepakdawade | 354,909,155 | false | null | package com.devdd.recipe.data.utils
import android.content.Context
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.edit
import androidx.datastore.preferences.core.emptyPreferences
import androidx.datastore.preferences.preference... | 0 | Kotlin | 0 | 6 | 8272959b3b692bd4ee797e15e76d57282efa7ad4 | 1,986 | Recipe-Finder | Apache License 2.0 |
ehr-common-model/src/main/kotlin/org/openehr/proc/taskplanning/ContextValue.kt | better-care | 343,543,899 | false | null | /* Copyright 2021 Better Ltd (www.better.care)
*
* 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 ... | 0 | null | 1 | 2 | 368cae4a0464dcd90cbae48a1c6b3d4615450d6f | 1,999 | ehr-common | Apache License 2.0 |
app/src/main/java/cn/lyric/getter/hook/app/Api.kt | xiaowine | 650,612,086 | false | null | package cn.lyric.getter.hook.app
import android.content.Context
import cn.lyric.getter.BuildConfig
import cn.lyric.getter.hook.BaseHook
import cn.lyric.getter.tool.EventTools.cleanLyric
import cn.lyric.getter.tool.EventTools.sendLyric
import cn.lyric.getter.tool.HookTools.isApi
import cn.lyric.getter.tool.LogTools.log... | 1 | null | 2 | 89 | 220c886911e7c158cc12abc6ceabfddde40824c8 | 2,423 | Lyric-Getter | Apache License 2.0 |
glib-core/src/main/java/com/glib/core/ui/view/GRadioButton.kt | hgani | 223,511,724 | false | {"Gradle": 5, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Git Attributes": 1, "Markdown": 1, "Java Properties": 1, "Proguard": 3, "XML": 22, "Kotlin": 222, "Java": 19} | package com.glib.core.ui.view
import android.content.Context
import android.util.AttributeSet
import android.view.View
import androidx.appcompat.widget.AppCompatRadioButton
class GRadioButton : AppCompatRadioButton, IView {
private val helper = ViewHelper(this)
constructor(context: Context) : super(context)
... | 0 | Kotlin | 0 | 0 | 9a7c56236d664f2b518310d12e5b0839382c2920 | 1,376 | glib-android | Apache License 2.0 |
src/main/kotlin/org/wagham/utils/DateUtils.kt | kaironbot | 566,988,243 | false | {"Kotlin": 584271, "Dockerfile": 237} | package org.wagham.utils
import org.wagham.db.utils.daysInBetween
import java.time.LocalDateTime
import java.time.ZonedDateTime
import java.util.*
import kotlin.time.Duration.Companion.milliseconds
fun getStartingInstantOnNextDay(hour: Int, minute: Int, second: Int, transformer: (LocalDateTime) -> LocalDateTime = { i... | 3 | Kotlin | 0 | 0 | 62769fdbe0c2f4976edfbc1dab2d832db61d751f | 1,474 | kairon-bot | MIT License |
module_base/src/main/java/com/swensun/base/BaseActivity.kt | zxzxzxygithub | 196,017,442 | true | {"Kotlin": 851364, "Java": 211187} | package com.swensun.base
import android.os.Bundle
import androidx.annotation.LayoutRes
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_base.*
import kotlinx.android.synthetic.main.content_base.*
abstract class BaseActivity : AppCompatActivity() {
override fun onCrea... | 0 | Kotlin | 0 | 0 | a235b1464fdeacc0f5e0484e76b622ab550ce8fd | 609 | Potato | Apache License 2.0 |
sykepenger-model/src/test/kotlin/no/nav/helse/spleis/e2e/RevurderInntektFlereArbeidsgivereTest.kt | navikt | 193,907,367 | false | null | package no.nav.helse.spleis.e2e
import no.nav.helse.Toggle
import no.nav.helse.hendelser.*
import no.nav.helse.hendelser.Søknad.Søknadsperiode.Sykdom
import no.nav.helse.inspectors.Kilde
import no.nav.helse.somOrganisasjonsnummer
import no.nav.helse.testhelpers.januar
import no.nav.helse.økonomi.Prosentdel.Companion.p... | 0 | null | 3 | 4 | 22fe9640780c8c8c13165c2efb0dfc4d96ba9965 | 3,042 | helse-spleis | MIT License |
src/main/kotlin/at/cath/simpletabs/gui/MouseActionCallback.kt | otcathatsya | 495,090,255 | false | null | package at.cath.simpletabs.gui
interface MouseActionCallback {
fun onLeftClick() {}
fun onRightClick() {}
fun onMouseMiddleClick() {}
}
enum class MouseAction {
LEFT_CLICK,
RIGHT_CLICK,
MIDDLE_MOUSE;
companion object {
fun create(numeric: Int): MouseAction? {
return wh... | 0 | Kotlin | 1 | 6 | 0f7a981f77b2e345ea9145a69df6b4c7095f822e | 494 | simple-tabs | MIT License |
src/main/kotlin/graph/variation/WrongEdgeWeight.kt | yx-z | 106,589,674 | false | null | package graph.variation
import graph.core.Vertex
import graph.core.WeightedGraph
import graph.core.dijkstra
import util.min
// suppose you have computed the all pairs shortest path (apsp) table
// but later you find out that your edge weight for u -> v is wrong during
// the computation... that is, w(u -> v) is used ... | 0 | Kotlin | 0 | 1 | 15494d3dba5e5aa825ffa760107d60c297fb5206 | 1,727 | AlgoKt | MIT License |
src/app/react-player.kt | maochaokuo | 228,109,383 | false | null | @file:JsModule("react-player")
package app
import react.*
@JsName("default")
external val ReactPlayer: RClass<ReactPlayerProps>
external interface ReactPlayerProps : RProps {
var url: String
}
| 12 | Kotlin | 0 | 0 | c94fc2ea6027992bb9cae6848afe6e5e9afd3bcf | 201 | kotlin-react2 | MIT License |
src/main/kotlin/com/sunrayapps/jira/plugin/dependencies/downloader/Jta.kt | SunrayApps | 122,542,980 | false | null | package com.sunrayapps.jira.plugin.dependencies.downloader
import java.io.File
import java.net.URI
import org.apache.commons.io.FileUtils.*
import org.rauschig.jarchivelib.ArchiveFormat
import org.rauschig.jarchivelib.ArchiverFactory
import java.nio.file.Path
class Jta(
private val installDirectory: Path,
pri... | 0 | Kotlin | 0 | 0 | df03aff3b610c616fd840d09eca638b8ed74887c | 1,492 | jira-plugin-dependencies-downloader | Apache License 2.0 |
fire-core/src/main/java/com/vdreamers/fire/core/IFireAbility.kt | CodePoem | 362,539,863 | false | null | /*
* Copyright 2021 CodePoem
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 0 | Kotlin | 0 | 2 | 8997fd997363ca16622cf4c06b0c3ad0978c2aca | 2,826 | Fire | Apache License 2.0 |
app/src/main/java/com/example/stsotre/ui/basket/NextShoppingCart.kt | shirinvn | 711,298,897 | false | {"Kotlin": 193308, "Java": 7887} | package com.example.stsotre.ui.basket
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.com... | 0 | Kotlin | 0 | 0 | 4d9d291f9432a3ee8d397914a678eee15ff3727c | 1,572 | STStore | MIT License |
platform/lang-impl/src/com/intellij/util/indexing/diagnostic/IndexDiagnosticDumper.kt | hieuprogrammer | 284,920,751 | 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 com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.fasterxml.jackson.module.kotlin.registerKotlinModule
impor... | 1 | null | 1 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 2,854 | intellij-community | Apache License 2.0 |
app/src/main/java/me/grey/picquery/data/model/Embedding.kt | greyovo | 676,960,803 | false | null | package me.grey.picquery.data.model
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.io.Serializable
@Entity
data class Embedding(
@PrimaryKey @ColumnInfo(name = "photo_id")
val photoId: Long,
@ColumnInfo(name = "album_id")
val albumId: Long,
... | 7 | null | 27 | 92 | eda7d169cde517fed8f4ef0b70bdc4c1e32013ab | 945 | PicQuery | MIT License |
projects/android/koin-android/src/main/java/org/koin/android/scope/ScopeService.kt | InsertKoinIO | 93,515,203 | false | {"Kotlin": 825588, "Java": 4138, "Shell": 259} | /*
* Copyright 2017-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 83 | Kotlin | 711 | 8,934 | f870a02fd32a2cf1ff8b69406ebf555c26ffe39f | 1,339 | koin | Apache License 2.0 |
twitch/src/main/kotlin/net/serverpeon/twitcharchiver/twitch/LegacyTwitchApi.kt | Kiskae | 22,880,077 | false | null | package net.serverpeon.twitcharchiver.twitch
import hu.akarnokd.rxjava.interop.RxJavaInterop
import net.serverpeon.twitcharchiver.twitch.api.KrakenApi
import net.serverpeon.twitcharchiver.twitch.errors.TwitchApiException
import net.serverpeon.twitcharchiver.twitch.playlist.Playlist
import okhttp3.OkHttpClient
import o... | 3 | Kotlin | 0 | 6 | fbdba1f4c6787cf74625eb72cb8af8c6f48552cc | 2,508 | Twitch-Archiver | MIT License |
app/src/main/java/eu/kanade/tachiyomi/data/backup/models/BackupCategory.kt | komikku-app | 743,200,516 | false | {"Kotlin": 5965492} | package eu.kanade.tachiyomi.data.backup.models
import kotlinx.serialization.Serializable
import kotlinx.serialization.protobuf.ProtoNumber
import tachiyomi.domain.category.model.Category
@Serializable
class BackupCategory(
@ProtoNumber(1) var name: String,
@ProtoNumber(2) var order: Long = 0,
// @ProtoNum... | 72 | Kotlin | 12 | 342 | 387e019e3a56f8ffbc94ec4fef82db1eccc98ddf | 1,182 | komikku | Apache License 2.0 |
error/src/main/kotlin/studio/lunabee/onesafe/error/OSImportExportError.kt | LunabeeStudio | 624,544,471 | false | null | /*
* 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 | null | 1 | 2 | 352c38bfbe7c9a576b8069a0d7ca217b22409c7a | 1,617 | oneSafe6_SDK_Android | Apache License 2.0 |
app/src/main/java/com/szhua/pagedemo/CustomPageDataSource.kt | szhua | 325,485,049 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 77, "XML": 66, "JSON": 3, "Java": 14} | package com.szhua.pagedemo
import java.lang.reflect.Constructor
private const val SHOE_START_INDEX = 0;
class CustomPageDataSource{
} | 1 | null | 1 | 1 | c53f4d8c5dd82614e4ad366a556ac46bed7c082b | 139 | AndroidPractice | Apache License 2.0 |
types/src/commonMain/kotlin/app/meetacy/sdk/types/exception/ConnectionException.kt | meetacy | 604,657,616 | false | null | package app.meetacy.sdk.types.exception
public class ConnectionException(cause: Throwable) : MeetacyException(
message = "Error while connecting to server",
cause = cause
)
| 3 | Kotlin | 1 | 24 | d455f77c70dde7620936275b89e563fbd414d9a5 | 182 | sdk | MIT License |
SceytChatUiKit/src/main/java/com/sceyt/chatuikit/presentation/helpers/ExoPlayerHelper.kt | sceyt | 549,073,085 | false | {"Kotlin": 2361738, "Java": 107894} | package com.sceyt.sceytchatuikit.presentation.common
import android.content.Context
import androidx.media3.common.MediaItem
import androidx.media3.common.PlaybackException
import androidx.media3.common.Player
import androidx.media3.exoplayer.ExoPlayer
import androidx.media3.ui.PlayerView
class ExoPlayerHelper(private... | 0 | Kotlin | 1 | 2 | aa03d3d9f046243cd1bbb98bd5e9d5abcfeae822 | 3,157 | sceyt-chat-android-uikit | MIT License |
bitcoin/src/main/java/com/brentpanther/bitcoinwidget/ui/WarningBanner.kt | hwki | 8,993,387 | false | null | package com.brentpanther.bitcoinwidget.ui
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.provider.Settings
import androidx.annotation.StringRes
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.fou... | 3 | null | 56 | 98 | 4c5679fd470ee14e98c1d1e7725e2777aff575c1 | 3,989 | SimpleBitcoinWidget | MIT License |
app/src/main/java/com/epiccrown/smartpark/repository/AdminRepository.kt | Orthoepiccrown0 | 631,601,191 | false | null | package com.epiccrown.smartpark.repository
import com.epiccrown.smartpark.model.request.AddParkRequest
import com.epiccrown.smartpark.model.request.AddZoneRequest
import com.epiccrown.smartpark.model.request.CarRevealedRequest
import com.epiccrown.smartpark.model.request.ProcessDataRequest
import com.epiccrown.smartpa... | 0 | Kotlin | 0 | 1 | 65bde1b86213daabb7337c97aa4952cbf4ad340b | 2,174 | SmartPark | MIT License |
bye-bye-jetifier/src/main/java/com/dipien/byebyejetifier/scanner/ScannerContext.kt | dipien | 312,684,686 | false | null | package com.dipien.byebyejetifier.scanner
import com.dipien.byebyejetifier.archive.ArchiveFile
import com.dipien.byebyejetifier.common.LoggerHelper
import com.dipien.byebyejetifier.common.toFilePath
import com.dipien.byebyejetifier.core.TypeRewriter
import com.dipien.byebyejetifier.core.config.Config
import com.dipien... | 13 | Kotlin | 4 | 193 | 348c9bd0f324641367a5e16500f1521f3d77d573 | 835 | bye-bye-jetifier | Apache License 2.0 |
src/main/kotlin/ink/ptms/adyeshach/Metrics.kt | l89669 | 349,965,165 | true | {"Gradle": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Java Properties": 1, "Java": 4, "YAML": 5, "JSON": 1, "Kotlin": 277} | package ink.ptms.adyeshach
import ink.ptms.adyeshach.api.AdyeshachAPI
import ink.ptms.adyeshach.api.event.AdyeshachEntityCreateEvent
import ink.ptms.adyeshach.common.script.ScriptHandler
import io.izzel.taboolib.metrics.BStats
import io.izzel.taboolib.module.inject.TListener
import io.izzel.taboolib.module.inject.TSch... | 0 | Kotlin | 0 | 0 | 7e08e8d3660e737a7c5d7aa9f4284fb2dfe7ebc8 | 1,792 | Adyeshach | MIT License |
src/main/kotlin/ink/ptms/adyeshach/Metrics.kt | l89669 | 349,965,165 | true | {"Gradle": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Java Properties": 1, "Java": 4, "YAML": 5, "JSON": 1, "Kotlin": 277} | package ink.ptms.adyeshach
import ink.ptms.adyeshach.api.AdyeshachAPI
import ink.ptms.adyeshach.api.event.AdyeshachEntityCreateEvent
import ink.ptms.adyeshach.common.script.ScriptHandler
import io.izzel.taboolib.metrics.BStats
import io.izzel.taboolib.module.inject.TListener
import io.izzel.taboolib.module.inject.TSch... | 0 | Kotlin | 0 | 0 | 7e08e8d3660e737a7c5d7aa9f4284fb2dfe7ebc8 | 1,792 | Adyeshach | MIT License |
src/main/kotlin/no/nav/syfo/oppfolgingstilfelle/kafka/KafkaOppfolgingstilfellePerson.kt | navikt | 189,998,720 | false | null | package no.nav.syfo.oppfolgingstilfelle.kafka
import no.nav.syfo.domain.Virksomhetsnummer
import no.nav.syfo.personstatus.domain.*
import no.nav.syfo.util.nowUTC
import java.time.LocalDate
import java.time.OffsetDateTime
import java.util.*
data class KafkaOppfolgingstilfellePerson(
val uuid: String,
val creat... | 4 | Kotlin | 0 | 0 | e5bf6ed6f4efdfd3bb9f5ad94ae41490b03cf1c4 | 2,601 | syfooversiktsrv | MIT License |
src/main/kotlin/no/nav/syfo/oppfolgingstilfelle/kafka/KafkaOppfolgingstilfellePerson.kt | navikt | 189,998,720 | false | null | package no.nav.syfo.oppfolgingstilfelle.kafka
import no.nav.syfo.domain.Virksomhetsnummer
import no.nav.syfo.personstatus.domain.*
import no.nav.syfo.util.nowUTC
import java.time.LocalDate
import java.time.OffsetDateTime
import java.util.*
data class KafkaOppfolgingstilfellePerson(
val uuid: String,
val creat... | 4 | Kotlin | 0 | 0 | e5bf6ed6f4efdfd3bb9f5ad94ae41490b03cf1c4 | 2,601 | syfooversiktsrv | MIT License |
app/src/main/java/com/example/notesapp/data/NotesDatabase.kt | nikolamanushev48 | 696,311,253 | false | {"Kotlin": 34066} | package com.example.notesapp.data
import androidx.room.Database
import androidx.room.RoomDatabase
@Database(
entities = [Note::class],
version = 1,
)
abstract class NotesDatabase : RoomDatabase() {
abstract fun noteDao(): NoteDao
companion object {
val DB_NAME = "notes_db"
}
} | 0 | Kotlin | 0 | 0 | a6cf874e97bb6f3e5148b834e29d89e8f671de7b | 308 | WriteItDown | MIT License |
src/test/kotlin/ch/sourcemotion/vertx/kinesis/consumer/orchestra/impl/redis/lua/LuaDeleteValuesByKeyPatternReturnDeletedCountTest.kt | wem | 253,237,315 | false | null | package ch.sourcemotion.vertx.kinesis.consumer.orchestra.impl.redis.lua
import ch.sourcemotion.vertx.kinesis.consumer.orchestra.impl.ext.okResponseAsBoolean
import ch.sourcemotion.vertx.kinesis.consumer.orchestra.testing.AbstractRedisTest
import io.kotest.matchers.booleans.shouldBeTrue
import io.kotest.matchers.nulls.... | 10 | Kotlin | 0 | 3 | a2290613daf15c96034bf5d3d67103ddc8741776 | 1,955 | vertx-kinesis-consumer-orchestra | MIT License |
Sources/Android/domain/src/main/java/com/indeema/domain/interactor/interfaces/AuthInteractor.kt | IndeemaSoftware | 143,034,862 | false | null | package com.indeema.domain.interactor.interfaces
import com.indeema.data.entities.RedmineResponce
import com.indeema.domain.action.Error
import com.indeema.domain.action.Next
/**
* @author <NAME>
* Date: May, 19, 2018
* Time: 20:42
*/
interface AuthInteractor : BaseInteractor {
fun login(next: Next<Redmine... | 1 | Kotlin | 4 | 4 | 47334c564f391d34e33de5ed3dd354c4a5a7e4e3 | 366 | SmartLock | MIT License |
bot/engine/src/main/kotlin/fr/vsct/tock/bot/engine/BotVerticle.kt | sycomix | 136,461,807 | true | {"Kotlin": 1448205, "TypeScript": 301273, "HTML": 102491, "CSS": 27660, "JavaScript": 5174, "Shell": 1303} | /*
* Copyright (C) 2017 VSCT
*
* 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 wri... | 0 | Kotlin | 0 | 0 | e8ee0dcc3de16f89878e138dc06920ed8b96aa20 | 1,980 | tock | Apache License 2.0 |
zircon.core/src/commonMain/kotlin/org/hexworks/zircon/internal/resource/TileType.kt | Xanik | 282,687,897 | false | null | package org.hexworks.zircon.internal.resource
enum class TileType {
CHARACTER_TILE,
GRAPHIC_TILE,
IMAGE_TILE
}
| 1 | null | 1 | 2 | bf435cddeb55f7c3a9da5dd5c29be13af8354d0f | 124 | zircon | Apache License 2.0 |
android/src/main/kotlin/live/hms/hmssdk_flutter/HMSTrackExtension.kt | Arunshaik4321 | 400,066,935 | true | {"Dart": 122269, "Kotlin": 31296, "Swift": 29312, "Ruby": 2157, "Objective-C": 730} | package live.hms.hmssdk_flutter
import live.hms.video.media.tracks.HMSTrack
import live.hms.video.media.tracks.HMSTrackSource
import live.hms.video.media.tracks.HMSTrackType
import live.hms.video.sdk.models.enums.HMSTrackUpdate
class HMSTrackExtension {
companion object{
fun toDictionary(track:HMSTrack?):... | 0 | null | 0 | 0 | 85605f495f967362e009a39e751f0c4c92f13896 | 2,207 | 100ms-flutter | MIT License |
app/src/main/java/com/tyler/app/kotlinkaiyan/ui/adapter/CategoryListAdapter.kt | TylerWang1110 | 195,174,131 | false | null | package com.tyler.app.kotlinkaiyan.ui.adapter
import android.widget.ImageView
import com.bumptech.glide.load.resource.bitmap.CenterCrop
import com.bumptech.glide.load.resource.bitmap.RoundedCorners
import com.bumptech.glide.request.RequestOptions
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.li... | 1 | null | 1 | 1 | 7945cdfbaeff8b67cf3a1123cd663a18c419168c | 1,403 | kotlin-kaiyan | Apache License 2.0 |
app/src/main/java/org/p2p/wallet/utils/chacha/ChaCha20Poly1305Encryptor.kt | p2p-org | 306,035,988 | false | {"Kotlin": 4545395, "HTML": 3064848, "Java": 296567, "Groovy": 1601, "Shell": 1252} | package org.p2p.wallet.utils.chacha
import org.bouncycastle.crypto.modes.ChaCha20Poly1305
import org.bouncycastle.crypto.params.KeyParameter
import org.bouncycastle.crypto.params.ParametersWithIV
import org.p2p.wallet.utils.processBytesKt
class ChaCha20Poly1305Encryptor(
private val chaCha20Poly1305: ChaCha20Poly... | 8 | Kotlin | 18 | 34 | d091e18b7d88c936b7c6c627f4fec96bcf4a0356 | 1,092 | key-app-android | MIT License |
crabzilla-pgclient/src/main/kotlin/io/github/crabzilla/pgclient/EventTopics.kt | crabzilla | 91,769,036 | false | null | package io.github.crabzilla.pgclient
enum class EventTopics {
STATE_TOPIC,
VIEW_TOPIC
}
| 1 | Kotlin | 8 | 62 | 09cb11ffb7cc9ecb328cf47f15d79587137b1895 | 93 | crabzilla | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/lakeformation/CfnTagDsl.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 63959868} | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package io.cloudshiftdev.awscdkdsl.services.lakeformation
import io.cloudshiftdev.awscdkdsl.common.Cd... | 3 | Kotlin | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 4,727 | awscdk-dsl-kotlin | Apache License 2.0 |
app/src/main/java/com/clay/covid_19tracker/BaseApplication.kt | Clay-CL | 285,233,861 | false | null | package com.clay.covid_19tracker
import android.app.Application
import timber.log.Timber
class BaseApplication: Application() {
override fun onCreate() {
super.onCreate()
Timber.plant(Timber.DebugTree())
}
} | 0 | Kotlin | 0 | 0 | 5405682445eace6f1cf95099d57ad673e400e4b3 | 233 | COVID-19-Cases-Tracking-App | MIT License |
src/test/kotlin/org/rust/ide/intentions/IfLetToMatchIntentionTest.kt | intellij-rust | 42,619,487 | false | null | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.intentions
import org.rust.ProjectDescriptor
import org.rust.WithStdlibRustProjectDescriptor
@ProjectDescriptor(WithStdlibRustProjectDescriptor::class)
class IfLetToMatchIntentionTest : RsI... | 1,841 | null | 380 | 4,528 | c6657c02bb62075bf7b7ceb84d000f93dda34dc1 | 17,342 | intellij-rust | MIT License |
app/src/main/java/rs/smobile/chucknorrisjokes/ui/JokesScreenComposable.kt | stevan-milovanovic | 602,084,634 | false | {"Kotlin": 44108, "Shell": 346} | package rs.smobile.chucknorrisjokes.ui
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compo... | 0 | Kotlin | 0 | 1 | 9a4b981c6bb030d778b5eb8599959f0bdc47e715 | 7,713 | Chuck-Norris-Jokes | Apache License 2.0 |
src/main/kotlin/icu/windea/pls/localisation/editor/ParadoxLocalisationColorSettingsPage.kt | DragonKnightOfBreeze | 328,104,626 | false | null | package icu.windea.pls.localisation.editor
import com.intellij.openapi.fileTypes.*
import com.intellij.openapi.options.colors.*
import icu.windea.pls.*
import icu.windea.pls.localisation.*
import icu.windea.pls.localisation.highlighter.*
class ParadoxLocalisationColorSettingsPage : ColorSettingsPage {
companion obje... | 1 | Kotlin | 1 | 7 | 037b9b4ba467ed49ea221b99efb0a26cd630bb67 | 3,301 | Paradox-Language-Support | MIT License |
tools/diff-cli/src/commonMain/kotlin/io/matthewnelson/diff/cli/internal/apply/Apply.kt | 05nelsonm | 439,021,869 | false | null | /*
* Copyright (c) 2023 Matthew Nelson
*
* 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 ag... | 13 | null | 1 | 4 | 4daac97e3999aecfa1f6bfac5c125fc00d0cc3e4 | 2,434 | kmp-tor-binary | Apache License 2.0 |
seskar/seskar-compiler-plugin/src/main/kotlin/seskar/compiler/union/backend/UnionTransformer.kt | turansky | 279,976,108 | false | {"Kotlin": 59449, "Shell": 286} | package seskar.compiler.union.backend
import org.jetbrains.kotlin.backend.common.extensions.IrPluginContext
import org.jetbrains.kotlin.ir.IrStatement
import org.jetbrains.kotlin.ir.declarations.IrClass
import org.jetbrains.kotlin.ir.visitors.IrElementTransformer
internal class UnionTransformer(
private val conte... | 0 | Kotlin | 3 | 30 | 1a6f9c75347af4947f9e3358b721e14496494204 | 947 | seskar | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsmanageadjudicationsapi/services/reported/DamagesServiceTest.kt | ministryofjustice | 416,301,250 | false | {"Kotlin": 1581794, "Dockerfile": 1411} | package uk.gov.justice.digital.hmpps.hmppsmanageadjudicationsapi.services.reported
import org.assertj.core.api.Assertions
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.mockito.ArgumentCaptor
import org.mockito.kotlin.any
import or... | 4 | Kotlin | 0 | 3 | d0495310b909bde1bd21f78edcac586fa2ff87b4 | 3,455 | hmpps-manage-adjudications-api | MIT License |
microservices-kotlin/src/main/kotlin/br/com/ivisondsb/controllers/MathController.kt | ivisondsb | 870,804,861 | false | {"Kotlin": 2222} | package br.com.ivisondsb.controllers
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.RestController
@RestController
class MathController {
@GetMapping(value = ["/sum/{numberOne}/{numberTwo}"])
... | 0 | Kotlin | 0 | 0 | 13a8091969270c4cd25433e91cdbe941413555d6 | 1,114 | microservices-kotlin | Apache License 2.0 |
collect_app/src/main/java/org/odk/collect/android/formentry/FormEntryUseCases.kt | getodk | 40,213,809 | false | {"Java": 3378614, "Kotlin": 2749754, "JavaScript": 2830, "Shell": 2689} | package org.odk.collect.android.formentry
import org.apache.commons.io.FileUtils.readFileToByteArray
import org.javarosa.core.model.FormDef
import org.javarosa.core.model.instance.InstanceInitializationFactory
import org.javarosa.core.model.instance.TreeReference
import org.javarosa.core.model.instance.utils.DefaultAn... | 283 | Java | 1372 | 717 | 63050fdd265c42f3c340f0ada5cdff3c52a883bc | 8,427 | collect | Apache License 2.0 |
app/shared/state-machine/ui/public/src/commonMain/kotlin/build/wallet/statemachine/fwup/FwupUpdateErrorModel.kt | proto-at-block | 761,306,853 | false | {"C": 10424094, "Kotlin": 7156393, "Rust": 2046237, "Swift": 700307, "Python": 331492, "HCL": 271992, "Shell": 111209, "TypeScript": 102700, "C++": 64770, "Meson": 64234, "JavaScript": 36227, "Just": 28071, "Ruby": 9428, "Dockerfile": 5731, "Makefile": 3839, "Open Policy Agent": 1552, "Procfile": 80} | package build.wallet.statemachine.fwup
import build.wallet.analytics.events.screen.id.FwupEventTrackerScreenId
import build.wallet.platform.device.DeviceInfo
import build.wallet.platform.device.DevicePlatform.IOS
import build.wallet.statemachine.core.ButtonDataModel
import build.wallet.statemachine.core.ErrorFormBotto... | 0 | C | 10 | 98 | 1f9f2298919dac77e6791aa3f1dbfd67efe7f83c | 2,965 | bitkey | MIT License |
app/src/main/java/com/therxmv/dirolreader/domain/usecase/client/CreateClientUseCase.kt | therxmv | 651,629,829 | false | {"Kotlin": 163264} | package com.therxmv.dirolreader.domain.usecase.client
import com.therxmv.dirolreader.domain.repository.ClientRepository
import org.drinkless.td.libcore.telegram.Client.ResultHandler
class CreateClientUseCase(private val clientRepository: ClientRepository) {
operator fun invoke(updateHandler: ResultHandler) =
... | 1 | Kotlin | 0 | 22 | 9e6428cdc18a79b8cb5168d1966aa2869f997700 | 370 | Dirol-Reader | MIT License |
sketch-compose/src/main/kotlin/com/github/panpf/sketch/compose/SingletonAsyncImagePainter.kt | panpf | 14,798,941 | false | {"Kotlin": 3225805, "Shell": 724} | /*
* Copyright (C) 2022 panpf <panpfpanpf@outlook.com>
*
* 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... | 1 | Kotlin | 308 | 1,978 | 82ffde1ff148311bb5b36eb70a4c82224d1f3af4 | 11,384 | sketch | Apache License 2.0 |
app/src/main/java/com/okta/idx/android/directauth/sdk/forms/SelectFactorForm.kt | okta | 331,106,204 | false | null | /*
* Copyright 2021-Present Okta, Inc.
*
* 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 agr... | 2 | Kotlin | 11 | 8 | 4fb9da487db591f35d8bf1e7baf6c389d035febe | 1,941 | okta-idx-android | Apache License 2.0 |
src/main/kotlin/nl/meine/aoc/_2023/Day7.kt | mtoonen | 158,697,380 | false | {"Kotlin": 201978, "Java": 138385} | package nl.meine.aoc._2023
class Day7 {
fun one(input: String): Int {
val lines = createHands(input)
val h = orderHands(lines)
h.forEach { println(it) }
return h.mapIndexed { rank, hand -> (rank + 1) * hand.bid }
.sum()
}
fun createHands(input: String): Mutab... | 0 | Kotlin | 0 | 0 | a36addef07f61072cbf4c7c71adf2236a53959a5 | 12,865 | advent-code | MIT License |
task-shell-app/src/main/kotlin/com/malt/task/TaskCommandsMockup.kt | Maltcommunity | 367,014,843 | false | {"Gradle Kotlin DSL": 6, "Shell": 1, "Text": 2, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "YAML": 3, "SQL": 4, "INI": 1, "Kotlin": 34, "Java": 4, "XML": 1} | package com.malt.task
import org.springframework.shell.standard.ShellComponent
import org.springframework.shell.standard.ShellMethod
import org.springframework.shell.standard.ShellOption
@ShellComponent
class TaskCommandsMockup {
@ShellMethod(key = ["show-task"], value = "Show a task")
fun showTask(
... | 1 | null | 1 | 1 | 7e7ee7f07f404c99ef0d7c911319d68731be44df | 496 | repository-test-example | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.