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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eip1559_signer/src/main/kotlin/org/kethereum/eip1559/signer/EIP1559.kt | komputing | 92,780,266 | false | {"Kotlin": 776856} | package org.kethereum.eip1559.signer
import org.kethereum.crypto.signMessage
import org.kethereum.extensions.transactions.encodeAsEIP1559Tx
import org.kethereum.model.ECKeyPair
import org.kethereum.model.Transaction
/**
* Signs a transaction via EIP1559
*
* @return SignatureData - the signature of the transaction... | 43 | Kotlin | 82 | 333 | 1f42cede2d31cb5d3c488bd74eeb8480ec47c919 | 434 | KEthereum | MIT License |
j2k/new/tests/testData/newJ2k/boxedType/object.kt | JetBrains | 278,369,660 | false | null | val i: Any = 10 | 0 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 15 | intellij-kotlin | Apache License 2.0 |
game/plugin/entity/spawn/src/spawn.kt | stevesoltys | 140,373,082 | false | {"Java": 873190, "Ruby": 227078, "Kotlin": 222820, "Groovy": 2503} | package org.apollo.game.plugin.entity.spawn
import org.apollo.game.model.Animation
import org.apollo.game.model.Direction
import org.apollo.game.model.Graphic
import org.apollo.game.model.Position
data class Spawn(val id: Int?, val name: String, val position: Position, val facing: Direction,
val spaw... | 18 | null | 1 | 1 | 3818a83fd2b437c3bd878d147fd6aff2374ee3fb | 622 | apollo-osrs | ISC License |
tibiakt-core/src/main/kotlin/com/galarzaa/tibiakt/core/models/leaderboards/LeaderboardEntry.kt | Galarzaa90 | 285,669,589 | false | {"Kotlin": 530502, "Dockerfile": 1445} | /*
* Copyright © 2024 Allan Galarza
*
* 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 | Kotlin | 1 | 1 | 7274af579c1d4fa7865c05436c0e3ee5b293301a | 1,604 | TibiaKt | Apache License 2.0 |
finger-paint/server/src/main/kotlin/ru/cscenter/fingerpaint/db/entities/Image.kt | cscenter | 214,458,041 | false | null | package ru.cscenter.fingerpaint.db.entities
import javax.persistence.*
@Entity
@Table(name = "Images")
class Image(
@Column(name = "path", unique = true) var path: String
) {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
var id: Long = 0
override fun equals(oth... | 0 | Kotlin | 0 | 0 | 1d86529c2ad31092eceae5f80844dd090ac58aef | 417 | Y02_Project_finger-paint | MIT License |
plugins/markdown/src/org/intellij/plugins/markdown/lang/formatter/blocks/MarkdownFormattingBlock.kt | ingokegel | 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 org.intellij.plugins.markdown.lang.formatter.blocks
import com.intellij.formatting.*
import com.intellij.lang.ASTNode
import com.intellij.psi.codeStyle.CodeStyleSettings
... | 284 | null | 5162 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 3,617 | intellij-community | Apache License 2.0 |
app/src/main/java/com/jhteck/icebox/activity/LoginOldActivity.kt | weid2014 | 687,383,758 | false | {"Kotlin": 476004, "Java": 414775, "C": 4589, "Makefile": 821, "Shell": 90} | package com.jhteck.icebox.activity
import android.Manifest
import android.annotation.SuppressLint
import android.content.*
import android.content.pm.PackageManager
import android.net.Uri
import android.os.IBinder
import android.util.Log
import android.view.View
import android.widget.Toast
import androidx.activity.view... | 0 | Kotlin | 0 | 0 | ea0f75d52d29ce71001f740d7bd4e4e795b3562f | 16,367 | FridgeSystem30 | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/behandler/kafka/KafkaConfig.kt | navikt | 378,118,189 | false | null | package no.nav.syfo.behandler.kafka
import no.nav.syfo.application.kafka.ApplicationEnvironmentKafka
import no.nav.syfo.application.kafka.kafkaConsumerConfig
import org.apache.kafka.clients.consumer.ConsumerConfig
import java.util.*
fun kafkaSykmeldingConsumerConfig(
applicationEnvironmentKafka: ApplicationEnviro... | 1 | Kotlin | 2 | 0 | b901fd968b75de2c33de786479eab3d7c6cfece2 | 979 | isdialogmelding | MIT License |
app/src/main/java/com/android/skip/dataclass/PackageInfoV2.kt | GuoXiCheng | 506,451,823 | false | {"Kotlin": 130289, "TypeScript": 12715, "JavaScript": 289} | package com.android.skip.dataclass
data class PackageInfoV2(
val packageName: String,
val skipIds: List<SkipId>? = null,
val skipTexts: List<SkipText>? = null,
val skipBounds: List<SkipBound>? = null
)
data class SkipId(
val id: String
)
data class SkipText(
val text: String,
val length: ... | 23 | Kotlin | 73 | 2,212 | 7d0f5c0155431e4cfe4a5de99de0efd9c0b14a44 | 408 | SKIP | MIT License |
app/src/main/java/com/android/skip/dataclass/PackageInfoV2.kt | GuoXiCheng | 506,451,823 | false | {"Kotlin": 130289, "TypeScript": 12715, "JavaScript": 289} | package com.android.skip.dataclass
data class PackageInfoV2(
val packageName: String,
val skipIds: List<SkipId>? = null,
val skipTexts: List<SkipText>? = null,
val skipBounds: List<SkipBound>? = null
)
data class SkipId(
val id: String
)
data class SkipText(
val text: String,
val length: ... | 23 | Kotlin | 73 | 2,212 | 7d0f5c0155431e4cfe4a5de99de0efd9c0b14a44 | 408 | SKIP | MIT License |
src/main/kotlin/com/baulsupp/oksocial/services/spotify/SpotifyAuthFlow.kt | umerkiani | 116,174,513 | true | {"Kotlin": 345221, "Shell": 8250, "JavaScript": 1691} | package com.baulsupp.oksocial.services.spotify
import com.baulsupp.oksocial.authenticator.AuthUtil
import com.baulsupp.oksocial.authenticator.SimpleWebServer
import com.baulsupp.oksocial.authenticator.oauth2.Oauth2Token
import com.baulsupp.oksocial.output.OutputHandler
import okhttp3.Credentials
import okhttp3.FormBod... | 0 | Kotlin | 0 | 0 | f7e496f47500a1c3bb0b86d0ac239f4fb46e15f3 | 1,840 | oksocial | Apache License 2.0 |
TachiServer/src/main/java/xyz/nulldev/ts/api/v2/java/impl/extensions/ExtensionsControllerImpl.kt | TachiWeb | 63,995,519 | false | null | package xyz.nulldev.ts.api.v2.java.impl.extensions
import com.github.salomonbrys.kodein.Kodein
import com.github.salomonbrys.kodein.conf.global
import com.github.salomonbrys.kodein.instance
import com.github.salomonbrys.kodein.lazy
import eu.kanade.tachiyomi.extension.ExtensionManager
import eu.kanade.tachiyomi.extens... | 45 | Java | 44 | 376 | 756aed147f9d3ad64b0620ab69c3eb4575264177 | 2,123 | TachiWeb-Server | Apache License 2.0 |
src/main/kotlin/com/jalgoarena/data/UsersRepository.kt | kostekman | 114,119,849 | true | {"Kotlin": 51334, "Shell": 103} | package com.jalgoarena.data
import com.jalgoarena.domain.User
interface UsersRepository {
fun findAll(): List<User>
fun findByUsername(username: String): User
fun destroy()
fun add(user: User): User
fun update(user: User): User
}
| 0 | Kotlin | 0 | 0 | cf80a1f616f8b1660967e8887d71bdd5910cb1fa | 252 | JAlgoArena-Auth | Apache License 2.0 |
compiler/testData/diagnostics/tests/evaluate/parentesized.kt | JakeWharton | 99,388,807 | false | null | val p1: Byte = <!TYPE_MISMATCH!>(1 + 2) * 2<!>
val p2: Short = <!TYPE_MISMATCH!>(1 + 2) * 2<!>
val p3: Int = (1 + 2) * 2
val p4: Long = (1 + 2) * 2
val b1: Byte = <!TYPE_MISMATCH!>(1.toByte() + 2) * 2<!>
val b2: Short = <!TYPE_MISMATCH!>(1.toShort() + 2) * 2<!>
val b3: Int = (1.toInt() + 2) * 2
val b4: Long = (1.toLon... | 181 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 405 | kotlin | Apache License 2.0 |
Android/app/src/main/java/bd/ctracker/com/ctracker/TrackingUpdateBroadcastReceiver.kt | hissain | 249,047,323 | false | null | package bd.ctracker.com.ctracker
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.widget.Toast
import bd.ctracker.com.ctracker.model.CTEventInfo
import bd.ctracker.com.ctracker.model.CTLocation
import bd.ctracker.com.ctracker.repository.RestApiService... | 0 | Kotlin | 13 | 13 | 572fbe510afb74d3798ef25511d8846492031ed3 | 3,882 | CoronaTracker | MIT License |
android/app/src/main/kotlin/io/aquawallet/extension/MethodChannelExt.kt | AquaWallet | 743,008,963 | false | {"Dart": 2176004, "C": 48908, "Swift": 5743, "Kotlin": 3612, "Nix": 3243, "Makefile": 3093, "Ruby": 2630, "Shell": 916, "Objective-C": 650, "CMake": 464} | package io.aquawallet.extension
import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel
import io.reactivex.BackpressureStrategy
import io.reactivex.Flowable
import io.reactivex.android.MainThreadDisposable
fun MethodChannel.callHandlerFlowable(): Flowable<Pair<MethodCall, MethodChann... | 29 | Dart | 8 | 78 | a5b196b1dd3d51554aebbe3077a5b755b4511ed9 | 793 | aqua-wallet | MIT License |
app/core/src/main/java/com/fsck/k9/mailstore/FolderRepository.kt | poldi171254 | 355,379,114 | true | {"INI": 2, "Gradle": 27, "Shell": 5, "EditorConfig": 1, "Markdown": 9, "Git Attributes": 1, "Batchfile": 1, "Text": 4, "Ignore List": 3, "Git Config": 1, "XML": 380, "YAML": 4, "AIDL": 2, "Java": 505, "SVG": 67, "PostScript": 1, "Kotlin": 519, "Proguard": 2, "E-mail": 11, "JSON": 20} | package com.fsck.k9.mailstore
import androidx.core.content.contentValuesOf
import com.fsck.k9.Account
import com.fsck.k9.Account.FolderMode
import com.fsck.k9.mail.FolderClass
import com.fsck.k9.mail.FolderType as RemoteFolderType
class FolderRepository(
private val localStoreProvider: LocalStoreProvider,
pri... | 1 | null | 0 | 0 | 62bf9c36f75275673b37a33fdbf254ac429937d1 | 8,178 | k-9 | Apache License 2.0 |
2019-10-02/SystemServices/app/src/main/java/br/ufpe/cin/android/systemservices/notification/NotificationSubActivity.kt | if710 | 99,732,816 | false | null | package br.ufpe.cin.android.systemservices.notification
import android.app.Activity
import android.os.Bundle
import br.ufpe.cin.android.systemservices.R
class NotificationSubActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentV... | 1 | null | 29 | 12 | ce4131eb6aca5e33fa5ed503d613ba6ed40dec4d | 368 | if710.github.io | MIT License |
kotlin-html-wasm/src/commonMain/kotlin/dev/scottpierce/html/writer/style/PaddingStyles.kt | kowasm | 586,987,800 | false | {"Kotlin": 620989, "JavaScript": 545, "Shell": 263} | // This file was generated using the `kotlin-html-generator` module. Instead of modifying it, modify the
// `html-builder-generator` and run it again.
@file:Suppress("unused")
package dev.scottpierce.html.writer.style
import dev.scottpierce.html.writer.BaseStyleContext
import dev.scottpierce.html.writer.InlineStyleCo... | 10 | Kotlin | 5 | 315 | a45430d559057f5a3e10ee88d26eba07103bf69d | 2,971 | kowasm | Apache License 2.0 |
data/src/main/java/com/nawrot/mateusz/sportapp/data/base/AndroidSchedulersProvider.kt | mateusz-nawrot | 111,897,181 | false | null | package com.nawrot.mateusz.oversearch.data.base
import android.util.Log
import com.nawrot.mateusz.oversearch.domain.base.SchedulersProvider
import io.reactivex.*
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Schedulers
import javax.inject.Inject
import javax.inject.Singleton
... | 0 | Kotlin | 0 | 0 | dc5966d4648b6967213ca14a531526e1c7abda25 | 1,286 | sportapp | Apache License 2.0 |
app/src/test/kotlin/com/ivanovsky/passnotes/domain/NoteDifferTest.kt | aivanovski | 95,774,290 | false | null | package com.ivanovsky.passnotes.domain
import com.google.common.truth.Truth.assertThat
import com.ivanovsky.passnotes.data.entity.Attachment
import com.ivanovsky.passnotes.data.entity.Hash
import com.ivanovsky.passnotes.data.entity.HashType
import com.ivanovsky.passnotes.data.entity.Note
import com.ivanovsky.passnotes... | 7 | null | 4 | 53 | 83605c13c7f13e1f484aa00f6b3e9af622880888 | 4,012 | keepassvault | Apache License 2.0 |
app/src/main/java/fi/kroon/vadret/domain/feedsourcepreference/DeleteAllFeedSourcePreferenceTask.kt | marvinmosa | 241,497,201 | true | {"Kotlin": 871560} | package fi.kroon.vadret.domain.feedsourcepreference
import fi.kroon.vadret.data.failure.Failure
import fi.kroon.vadret.data.feedsourcepreference.FeedSourcePreferenceRepository
import io.github.sphrak.either.Either
import io.reactivex.Single
import javax.inject.Inject
class DeleteAllFeedSourcePreferenceTask @Inject co... | 0 | null | 0 | 0 | f8149920c34bb3bc5e3148785ce217e37e596fbe | 515 | android | Apache License 2.0 |
http4k-core/src/test/kotlin/org/http4k/filter/TrafficFiltersTest.kt | http4k | 86,003,479 | false | null | package org.http4k.filter
import com.natpryce.hamkrest.assertion.assertThat
import com.natpryce.hamkrest.equalTo
import org.http4k.client.JavaHttpClient
import org.http4k.core.Method.GET
import org.http4k.core.Method.POST
import org.http4k.core.Request
import org.http4k.core.Response
import org.http4k.core.Status.Comp... | 34 | null | 249 | 2,615 | 7ad276aa9c48552a115a59178839477f34d486b1 | 3,681 | http4k | Apache License 2.0 |
src/main/kotlin/restApi/GroupChatPic.kt | ertprs | 330,072,795 | true | {"Kotlin": 548594, "Dockerfile": 1135} | package com.neelkamath.omniChat.restApi
import com.neelkamath.omniChat.db.tables.Chats
import com.neelkamath.omniChat.db.tables.GroupChatUsers
import com.neelkamath.omniChat.db.tables.GroupChats
import com.neelkamath.omniChat.userId
import io.ktor.application.*
import io.ktor.auth.*
import io.ktor.http.*
import io.kto... | 0 | null | 0 | 0 | ce27f094c2d33967367be0c8d8e36c021272f77c | 1,451 | omni-chat | MIT License |
src/jvmMain/kotlin/chat/sphinx/features/repository/mappers/feed/podcast/FeedDestinationDboPodcastDestinationPresenterMapper.kt | stakwork | 456,999,775 | false | null | package chat.sphinx.features.repository.mappers.feed.podcast
import chat.sphinx.concepts.coroutines.CoroutineDispatchers
import chat.sphinx.database.core.FeedDestinationDbo
import chat.sphinx.features.repository.mappers.ClassMapper
import chat.sphinx.wrapper.podcast.PodcastDestination
internal class FeedDestinationDb... | 10 | Kotlin | 1 | 0 | 4d626ce7f3db4eaab8d3cca7396b2925552910cc | 1,009 | sphinx-kotlin-core | MIT License |
ui-test-example/src/test/kotlin/org/intellij/examples/simple/plugin/pages/ActionMenuFixture.kt | JetBrains | 301,411,608 | 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 org.move.ui.fixtures
import com.intellij.remoterobot.RemoteRobot
import com.intellij.remoterobot.data.RemoteComponent
import com.intellij.remoterobot.fixtures.ComponentF... | 5 | null | 55 | 98 | 392d71ddf93a4817d2094a64026075b595d6b01d | 1,393 | intellij-ui-test-robot | Apache License 2.0 |
ai/sample/wear-prompt-app/src/main/java/com/google/android/horologist/ai/sample/wear/prompt/settings/SettingsScreen.kt | google | 451,563,714 | false | null | /*
* Copyright 2022 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 applic... | 45 | null | 93 | 565 | bde87db14f63338904550fc1827d0141ebe24d9a | 3,957 | horologist | Apache License 2.0 |
fotoapparat/src/main/java/io/fotoapparat/view/CameraView.kt | dxn920128 | 116,450,773 | true | {"Kotlin": 211232, "Java": 10076} | package io.fotoapparat.view
import android.content.Context
import android.graphics.SurfaceTexture
import android.util.AttributeSet
import android.view.TextureView
import android.view.ViewGroup
import android.widget.FrameLayout
import io.fotoapparat.exception.camera.UnavailableSurfaceException
import io.fotoapparat.par... | 0 | Kotlin | 0 | 0 | cd6cebdb6c92a899a722b701b55d3851da117df9 | 3,656 | Fotoapparat | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/ui/widget/Controller.kt | wavever | 344,865,614 | 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 | Kotlin | 0 | 1 | 33c471a37ef08cbc5250fb0a0b3d3dc77228427f | 2,917 | WaveTimer | Apache License 2.0 |
app/src/main/java/br/com/raveline/todo2021/presentation/ui/fragment/TodoListFragment.kt | ravelinejunior | 408,579,990 | false | {"Kotlin": 40747} | package br.com.raveline.todo2021.presentation.ui.fragment
import android.app.AlertDialog
import android.os.Bundle
import android.util.Log
import android.view.*
import android.view.animation.OvershootInterpolator
import androidx.activity.OnBackPressedCallback
import androidx.appcompat.widget.SearchView
import androidx.... | 0 | Kotlin | 0 | 0 | b80aa90af82507dcb75f632fb393d4b19acdd1bd | 8,262 | Todo2021 | MIT License |
library/core/src/main/java/com/michaelflisar/composechangelog/classes/ChangelogData.kt | MFlisar | 709,648,030 | false | {"Kotlin": 31130} | package com.michaelflisar.composechangelog.classes
class ChangelogData(
val releases: List<DataItemRelease>
) {
fun isEmpty() = releases.sumOf { it.items.size } == 0
} | 0 | Kotlin | 0 | 3 | 848855c03f0699cf093be16d9ad88449b63d1a06 | 176 | ComposeChangelog | Apache License 2.0 |
src/test/kotlin/g2801_2900/s2851_string_transformation/SolutionTest.kt | javadev | 190,711,550 | false | {"Kotlin": 4909193, "TypeScript": 50446, "Python": 3646, "Shell": 994} | package g2801_2900.s2851_string_transformation
import org.hamcrest.CoreMatchers.equalTo
import org.hamcrest.MatcherAssert.assertThat
import org.junit.jupiter.api.Test
internal class SolutionTest {
@Test
fun numberOfWays() {
assertThat(Solution().numberOfWays("abcd", "cdab", 2), equalTo(2))
}
... | 0 | Kotlin | 20 | 43 | 62708bc4d70ca2bfb6942e4bbfb4c64641e598e8 | 439 | LeetCode-in-Kotlin | MIT License |
markdown/src/main/java/com/bohregard/markdown/model/MarkdownConfiguration.kt | bohregard | 284,123,182 | false | {"Kotlin": 177825} | package com.bohregard.markdown.model
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
class MarkdownConfiguration(
/**
* onClickEvent - Called when the ClickableText is tapped, but the annotation has no available
* ... | 0 | Kotlin | 0 | 0 | de7011b118bbd97ec9d5a7acd9bb66e0c02519cc | 394 | Compose-Companion | MIT License |
core/src/test/kotlin/TestCache.kt | cs124-illinois | 584,151,809 | false | null | package edu.illinois.cs.cs125.jeed.core
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.ints.shouldBeGreaterThan
import io.kotest.matchers.longs.shouldBeLessThan
import io.kotest.matchers.should
import io.kotest.matchers.shouldBe
import io.kotest.matchers.shouldNot
import io.kotest.matchers.shoul... | 4 | null | 9 | 2 | 9e6089b726acafc33db3368f71693c3cd5b1b2bf | 8,865 | jeed | MIT License |
jps/jps-builders/testSrc/org/jetbrains/jps/builders/rebuild/JpsRebuildTestCase.kt | brettwooldridge | 47,746,540 | true | {"Java": 153599793, "Python": 23161125, "Groovy": 2366582, "HTML": 1755624, "Kotlin": 1298262, "C": 214994, "C++": 190765, "Lex": 166321, "CSS": 164277, "JavaScript": 141020, "XSLT": 113040, "Jupyter Notebook": 92629, "NSIS": 88100, "Shell": 64460, "Batchfile": 63554, "TeX": 62325, "Groff": 35232, "Objective-C": 28878,... | /*
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 0 | Java | 1 | 3 | b77e5c869d975f857e32349de5897186aafba6d1 | 3,465 | intellij-community | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsbookavideolinkapi/service/emails/court/CourtEmailFactory.kt | ministryofjustice | 789,053,149 | false | {"Kotlin": 960555, "Dockerfile": 1492, "Shell": 1007} | package uk.gov.justice.digital.hmpps.hmppsbookavideolinkapi.service.emails
import uk.gov.justice.digital.hmpps.hmppsbookavideolinkapi.client.locationsinsideprison.model.Location
import uk.gov.justice.digital.hmpps.hmppsbookavideolinkapi.common.toHourMinuteStyle
import uk.gov.justice.digital.hmpps.hmppsbookavideolinkap... | 1 | Kotlin | 0 | 0 | f4fcbdf9874b4bdf48c0ac80f18a673b15c11e30 | 16,297 | hmpps-book-a-video-link-api | MIT License |
spring-social-samples/src/main/kotlin/io/t28/springframework/social/ApiExceptionHandler.kt | t28hub | 280,412,223 | false | null | /*
* Copyright 2020 Tatsuya Maki
*
* 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... | 1 | Kotlin | 0 | 0 | a87b4991dbe121f84253825a5c5dc147603be998 | 3,341 | spring-social-slideshare | Apache License 2.0 |
src/ii_collections/_17_MaxMin.kt | saraiva132 | 45,123,477 | false | null | package ii_collections
fun example4() {
val max = listOf(1, 42, 4).max()
val longestString = listOf("a", "b").maxBy { it.length }
}
fun Shop.getCustomerWithMaximumNumberOfOrders(): Customer? =this.customers.maxBy { it.orders.size}
fun Customer.getMostExpensiveOrderedProduct(): Product? =this.orders.flatMap {... | 0 | null | 0 | 1 | b4f9412001a648c6a795dad45e073cf0ac20c452 | 354 | workshop-jb | MIT License |
app/src/main/java/com/sumitt/findhome/api/ServiceInterface.kt | developer-sumit-thakur | 176,067,069 | false | null | package com.sumitt.findhome.api
import com.sumitt.findhome.model.Homes
import io.reactivex.Observable
import retrofit2.http.GET
import retrofit2.http.QueryMap
interface ServiceInterface {
@GET("/listings")
fun getListing(@QueryMap param: Map<String, Int>): Observable<List<Homes>>
} | 0 | Kotlin | 0 | 0 | d892289e138457502b3af5a1a9daa1fcbe3b1360 | 292 | FindHome | MIT License |
kdoctor/src/commonMain/kotlin/org/jetbrains/kotlin/doctor/printer/TextPainter.kt | Kotlin | 448,964,171 | false | {"Kotlin": 147695, "Batchfile": 2673} | package org.jetbrains.kotlin.doctor.printer
object TextPainter {
const val RESET = "\u001B[0m"
const val RED = "\u001B[31m"
const val GREEN = "\u001B[32m"
const val YELLOW = "\u001B[33m"
const val BOLD = "\u001B[1m"
}
| 7 | Kotlin | 21 | 543 | e07d16ac6b5a411e3212a7c7681fd64877095b36 | 239 | kdoctor | Apache License 2.0 |
tmp/arrays/youTrackTests/6511.kt | DaniilStepanov | 228,623,440 | false | null | // Original bug: KT-22529
class LongBuilder {
fun longLongLong(): LongBuilder = this
fun longLongLong(a: Any): LongBuilder = this
fun longLongLong(a: Any, b: Any): LongBuilder = this
}
private val longBuilder: LongBuilder
get() = LongBuilder().longLongLong().longLongLong("Some other long string", "Lon... | 1 | null | 12 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 411 | bbfgradle | Apache License 2.0 |
app/src/main/java/com/jorgeav/laspeliculas/MainActivity.kt | jorgeavilae | 270,651,213 | false | null | /*
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 0 | Kotlin | 0 | 0 | 421e28c72aab6901cc1c81a1b9a4c1b06f14bf4b | 2,470 | LasPeliculas | Apache License 2.0 |
core/src/test/kotlin/UserTest.kt | HoshinoTented | 152,888,590 | false | null | import kotlinx.coroutines.runBlocking
import org.hoshino9.luogu.test.BaseTest
import org.hoshino9.luogu.test.printAllMember
import org.hoshino9.luogu.user.currentUser
import org.hoshino9.luogu.user.doFollow
import org.junit.Test
class UserTest : BaseTest() {
@Test
fun user() {
runBlocking {
client.currentUser?.... | 12 | Kotlin | 0 | 34 | 28523e9057462aca5ac2eb0af375fb220069dbe8 | 427 | LuoGuAPI | MIT License |
tasks/common/src/commonMain/kotlin/models/DraftInfoPack.kt | InsanusMokrassar | 606,391,766 | false | {"Kotlin": 386449, "Shell": 1463, "HTML": 692, "Dockerfile": 224} | package center.sciprog.tasks_bot.tasks.common.models
import center.sciprog.tasks_bot.common.utils.getChatLanguage
import center.sciprog.tasks_bot.tasks.common.models.tasks.TaskDraft
import center.sciprog.tasks_bot.teachers.common.models.RegisteredTeacher
import center.sciprog.tasks_bot.teachers.common.models.TeacherId... | 1 | Kotlin | 2 | 2 | 2b570e7ab96bec4c2f015e6529e44cb6ea91f9bf | 1,379 | SchoolTasksBot | MIT License |
defitrack-rest/defitrack-protocol-services/defitrack-adamant/src/main/java/io/defitrack/AdamantApplication.kt | decentri-fi | 426,174,152 | false | null | package io.defitrack
import io.defitrack.protocol.Company
import io.defitrack.protocol.Protocol
import org.springframework.boot.runApplication
class AdamantApplication : ProtocolApplication() {
override fun getCompany(): Company {
return Company.ADAMANT
}
}
fun main(args: Array<String>) {
runApp... | 17 | Kotlin | 6 | 9 | f7c65aa58bec3268101d90fc538c3f8bd0c29093 | 357 | defi-hub | MIT License |
krossbow-websocket-core/src/jvmMain/kotlin/org/hildan/krossbow/websocket/DefaultJvmClient.kt | jatsqi | 359,865,761 | true | {"Kotlin": 294019} | package org.hildan.krossbow.websocket
import org.hildan.krossbow.websocket.jdk.Jdk11WebSocketClient
actual fun defaultWebSocketClient(): WebSocketClient = Jdk11WebSocketClient()
| 0 | null | 0 | 0 | 538ab99a87573b2981070c4e1374b16393cb1502 | 180 | krossbow | MIT License |
sample/shared/src/commonMain/kotlin/com/test/kostra/appsample/SampleScreen.kt | jbruchanov | 670,094,402 | false | null | package com.test.kostra.appsample
import androidx.compose.animation.animateContentSize
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.horizontalScroll
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layou... | 0 | Kotlin | 0 | 0 | 0ffa01cce91857d2eafbf6cdcf86366d2d7cb220 | 5,972 | kostra | Apache License 2.0 |
app/src/main/java/io/aman/newseveryday/data/ArticleDatabase.kt | amntoppo | 519,863,961 | false | {"Kotlin": 21905} | package io.aman.newseveryday.data
import androidx.room.Database
import androidx.room.RoomDatabase
import io.aman.newseveryday.model.Article
@Database(entities = [Article::class], version = 1)
abstract class ArticleDatabase: RoomDatabase() {
abstract fun articleDao(): ArticleDao
} | 0 | Kotlin | 0 | 1 | 78c787f9d6586e0ef977b41dd7c0085ddc524abc | 287 | News-Everyday | Apache License 2.0 |
packages/test-base/src/nativeDarwinTest/kotlin/io/realm/kotlin/test/darwin/CoroutineTests.kt | realm | 235,075,339 | false | {"Kotlin": 4564631, "C++": 126122, "SWIG": 26070, "Shell": 23822, "C": 5126, "CMake": 2858, "Ruby": 1586, "Java": 1470} | /*
* Copyright 2021 Realm 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 agreed to in wr... | 243 | Kotlin | 57 | 942 | 50797be5a0dfde9b4eb5c00a528c04b49d5706d6 | 3,289 | realm-kotlin | Apache License 2.0 |
compiler/testData/diagnostics/tests/testWithModifiedMockJdk/notConsideredMethod.kt | JetBrains | 3,432,266 | false | null | // !JDK_KIND: MODIFIED_MOCK_JDK
// !CHECK_TYPE
interface A : MutableCollection<String> {
// Override of deprecated function could be marked as deprecated too
override fun <!OVERRIDE_DEPRECATION!>nonExistingMethod<!>(x: String) = ""
}
fun foo(x: MutableCollection<Int>, y: Collection<String>, z: A) {
x.<!DE... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 457 | kotlin | Apache License 2.0 |
projects/approved-premises-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/StaffService.kt | ministryofjustice | 500,855,647 | false | {"Kotlin": 4329094, "HTML": 70066, "D2": 44286, "Ruby": 25921, "Shell": 19356, "SCSS": 6370, "HCL": 2712, "Dockerfile": 2447, "JavaScript": 1372, "Python": 268} | package uk.gov.justice.digital.hmpps.service
import org.springframework.data.domain.Pageable
import org.springframework.data.web.PagedModel
import org.springframework.ldap.core.LdapTemplate
import org.springframework.stereotype.Service
import org.springframework.transaction.annotation.Transactional
import uk.gov.justi... | 7 | Kotlin | 0 | 2 | 190088e2e7f6956c243ad859daad5eb4895fd51e | 3,308 | hmpps-probation-integration-services | MIT License |
src/main/kotlin/MyRegex.kt | aestepanova | 451,883,055 | false | {"Kotlin": 42196} | class MyRegex (str: String){
var tree = SyntaxTree()
var automataDFA = mutableListOf<DFA>()
var automataNFA = NFA()
var string = str
constructor(dfa: MutableList<DFA>) : this("") {
automataDFA = dfa
}
fun makeTree(){
tree = SyntaxTree(string)
tree.printTree(tree.root... | 0 | Kotlin | 0 | 0 | bdd16c8cec8cfd7ad0e1d3739da8c5edb29eafa2 | 809 | RegexLib | MIT License |
async/src/main/kotlin/com/mcxiaoke/koi/async/Async.kt | mcxiaoke | 50,421,113 | false | null | package com.mcxiaoke.koi.async
import android.content.Context
import java.lang.ref.WeakReference
import java.util.concurrent.ExecutorService
import java.util.concurrent.Future
import android.support.v4.app.Fragment as SupportFragment
/**
* Author: mcxiaoke
* Date: 2016/1/29 8:23
*/
//***************************... | 4 | Kotlin | 54 | 519 | 58e548a531e1f66ce4bd8535058cf8d4173c5709 | 7,791 | kotlin-koi | Apache License 2.0 |
app/src/main/java/com/spiderbiggen/manga/MainActivity.kt | spiderbiggen | 624,650,535 | false | {"Kotlin": 129647} | package com.spiderbiggen.manga
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.core.view.WindowCompat
import coil3.SingletonImageLoader
import coil3.disk.DiskCache
import com.google.firebase.analyt... | 1 | Kotlin | 0 | 0 | 9b4eb12861a672f55264d72919da293d39ad5d03 | 1,709 | manhwa-reader | MIT License |
ok-propertysale-be-repository-in-memory/src/main/kotlin/ru/otus/otuskotlin/propertysale/backend/repository/inmemory/flat/FlatRepoInMemory.kt | otuskotlin | 330,109,804 | false | null | package ru.otus.otuskotlin.propertysale.backend.repository.inmemory.flat
import org.cache2k.Cache
import org.cache2k.Cache2kBuilder
import ru.otus.otuskotlin.propertysale.be.common.context.BePsContext
import ru.otus.otuskotlin.propertysale.be.common.exceptions.PsRepoIndexException
import ru.otus.otuskotlin.propertysal... | 0 | Kotlin | 0 | 1 | ed9a38627e64ed36131280ca7449547ba1d06829 | 4,095 | otuskotlin-202012-propertysale-ks | MIT License |
appactions/interaction/interaction-capabilities-core/src/main/java/androidx/appactions/interaction/capabilities/serializers/properties/StartTimeTypeSpec.kt | androidx | 256,589,781 | false | {"Kotlin": 102962181, "Java": 64545272, "C++": 9133578, "AIDL": 614395, "Python": 310931, "Shell": 188067, "TypeScript": 40586, "HTML": 35176, "Groovy": 27482, "ANTLR": 26700, "Svelte": 20307, "CMake": 18011, "C": 16982, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 24 | Kotlin | 930 | 5,073 | 559b440b4b57a373b305bfc0fe0f284a9f68a1c1 | 1,110 | androidx | Apache License 2.0 |
tokenx-validation/src/main/kotlin/no/nav/tms/token/support/tokenx/validation/install/TokenXInstaller.kt | navikt | 339,078,199 | false | {"Kotlin": 158627} | package no.nav.tms.token.support.tokenx.validation.install
import io.ktor.server.auth.*
import no.nav.tms.token.support.tokenx.validation.LevelOfAssurance
import no.nav.tms.token.support.tokenx.validation.TokenXAuthenticatorConfig
internal object TokenXInstaller {
fun AuthenticationConfig.performTokenXAuthenticat... | 1 | Kotlin | 2 | 1 | 7539b86e9cd35a531aeecdf46a994c37e2cf2f34 | 1,169 | tms-ktor-token-support | MIT License |
android/AgilityFitTodayApp/app/src/main/java/com/laurenyew/agilityfittodayapp/features/settings/SettingsViewModel.kt | laurenyew | 442,915,907 | false | {"Kotlin": 133691, "Swift": 39914, "Shell": 1143} | package com.laurenyew.agilityfittodayapp.features.settings
import android.content.Context
import android.content.Intent
import androidx.lifecycle.ViewModel
import com.laurenyew.agilityfittodayapp.devsettings.DevSettingsActivity
import timber.log.Timber
class SettingsViewModel : ViewModel() {
val shouldShowDevSett... | 0 | Kotlin | 0 | 1 | c7a0b7628d3861330d8c27936432a96795b43391 | 545 | AgilityFitTodayApp | MIT License |
src/test/java/kotlinx/reflect/lite/testData/parameters/instanceExtensionReceiverAndValueParameters.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.parameters.instanceExtensionReceiverAndValueParameters
import kotlinx.reflect.lite.*
import kotlinx.reflect.lite.jvm.*
import kotlinx.reflect.lite.tests.*
import kotlin.test.assertEquals
class ... | 3 | Kotlin | 13 | 156 | 32ffe53981eb559939b6c2f15661138661b31bc6 | 1,547 | kotlinx.reflect.lite | Apache License 2.0 |
app/src/main/java/com/aamaulana10/moviecompose/feature/home/core/domain/model/MovieModel.kt | aamaulana10 | 851,107,989 | false | {"Kotlin": 45992} | package com.aamaulana10.moviecompose.feature.home.core.domain.model
data class MovieVideosResponse(
val id: Int,
val results: List<MovieVideosModel>
)
data class MovieVideosModel(
val id: String,
val title: String,
val adult: Boolean,
val backdrop_path: String,
val genre_ids: List<Int>,
... | 0 | Kotlin | 0 | 0 | 5a6c62ea5796e56962044722583494e5e6923965 | 499 | movie-compose | MIT License |
app/src/main/java/com/project/farmingapp/viewmodel/AuthViewModel.kt | hetsuthar028 | 325,234,399 | false | null | package com.example.techfarming.viewmodel
import android.content.Intent
import android.util.Log
import android.view.View
import androidx.lifecycle.ViewModel
import com.example.techfarming.model.AuthRepository
import com.google.android.gms.auth.api.signin.GoogleSignIn
import com.google.android.gms.auth.api.signin.Googl... | 9 | null | 25 | 58 | 53cf61fe4158db356d1c7741065820deea7104ce | 3,526 | Farming-App | MIT License |
src/org/chorusmc/chorus/nodes/popup/ImagePopup.kt | franga2000 | 246,333,834 | true | {"Kotlin": 324702, "CSS": 90948, "Java": 50010, "JavaScript": 19888} | package org.chorusmc.chorus.nodes.popup
import org.chorusmc.chorus.util.area
import javafx.geometry.Pos
import javafx.scene.Node
import javafx.scene.image.Image
import javafx.scene.image.ImageView
import javafx.scene.layout.StackPane
import javafx.stage.Popup
import org.fxmisc.richtext.event.MouseOverTextEvent
/**
*... | 0 | null | 0 | 0 | fb0faa7277e90242c9f16ba7174baf18bed24e6f | 871 | chorus | Apache License 2.0 |
app/src/main/java/com/example/mytrainingpal/model/daos/ExerciseDao.kt | MichaelBuessemeyer | 572,939,495 | false | {"Kotlin": 256987} | package com.example.mytrainingpal.model.daos
import androidx.lifecycle.LiveData
import androidx.room.*
import com.example.mytrainingpal.model.entities.Exercise
@Dao
abstract class ExerciseDao {
@Insert
abstract fun insert(exercise: Exercise): Long
@Query("SELECT * FROM Exercise")
abstract fun getAll... | 14 | Kotlin | 0 | 2 | 5ef8c98c684bf2bb863dc6781a457c16ab8bb6e1 | 617 | MyTrainingsPal | Apache License 2.0 |
kobalt/src/Build.kt | cbeust | 43,665,276 | false | null |
import com.beust.kobalt.TaskResult
import com.beust.kobalt.api.License
import com.beust.kobalt.api.Project
import com.beust.kobalt.api.Scm
import com.beust.kobalt.api.annotation.Task
import com.beust.kobalt.homeDir
import com.beust.kobalt.plugin.application.application
import com.beust.kobalt.plugin.java.javaCompiler
... | 75 | null | 60 | 426 | 1cf19e17733dd09814d0b97c9ee5bd53edc258a9 | 7,458 | kobalt | Apache License 2.0 |
graphql/src/test/kotlin/com/trib3/graphql/resources/GraphQLSseResourceIntegrationTest.kt | trib3 | 191,460,324 | false | {"Kotlin": 493635, "Java": 73011, "HTML": 7300} | package com.trib3.graphql.resources
import assertk.assertThat
import assertk.assertions.contains
import assertk.assertions.hasSize
import assertk.assertions.isEmpty
import assertk.assertions.isEqualTo
import assertk.assertions.isGreaterThanOrEqualTo
import assertk.assertions.isLessThan
import assertk.assertions.isNotN... | 58 | Kotlin | 3 | 9 | 540e895a9afa4ddf9b9879c505ec9856a88a4a9b | 14,584 | leakycauldron | Apache License 2.0 |
test/dev/eakin/dao/dataValadition/NutGroupTests.kt | GregEakin | 244,196,646 | false | null | /*
* Copyright (c) 2020. Greg Eakin
*
* 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 | Kotlin | 0 | 0 | 0cb708fc2c6f83cd2c1619001691c404d1603659 | 1,448 | NutrishSr28.Kotlin | Apache License 2.0 |
compiler/testData/writeFlags/innerClass/visibility/publicClassObject.kt | JakeWharton | 99,388,807 | false | null | class Foo {
default object {
}
}
// TESTED_OBJECT_KIND: innerClass
// TESTED_OBJECTS: Foo, Default
// FLAGS: ACC_FINAL, ACC_PUBLIC, ACC_STATIC
| 179 | null | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 148 | kotlin | Apache License 2.0 |
src/main/kotlin/br/com/paulo/projetos/tasksmanagement/dtos/ErroDTO.kt | paulodaluz | 433,932,072 | false | {"Kotlin": 12549} | package br.com.paulo.projetos.tasksmanagement.dtos
class ErroDTO (val status: Int, val erro: String? = null, val erros: List<String>? = null) | 0 | Kotlin | 0 | 0 | dd00d6a8098de84ce5876c63d22adb02def4634b | 142 | TasksManagement | MIT License |
projects/tier-to-delius/src/test/kotlin/uk/gov/justice/digital/hmpps/messaging/HandlerTest.kt | ministryofjustice | 500,855,647 | false | {"Kotlin": 4300338, "HTML": 70066, "D2": 42781, "Ruby": 25921, "Shell": 19356, "SCSS": 6370, "HCL": 2712, "Dockerfile": 2447, "JavaScript": 1372, "Python": 268} | package uk.gov.justice.digital.hmpps.messaging
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
import org.mockito.InjectMocks
import org.mockito.Mock
import org.mockito.junit.jupiter.MockitoExtension
import org.mockito.kotlin.verify
import org.mockito.kotlin.whenever
import uk.gov.j... | 4 | Kotlin | 0 | 2 | 1636e67b6ad6ecfc36ac86a9b343bc4f85c1d9d9 | 2,196 | hmpps-probation-integration-services | MIT License |
modern-treasury-kotlin-core/src/main/kotlin/com/moderntreasury/api/models/LedgerEventHandler.kt | Modern-Treasury | 665,762,762 | false | null | // File generated from our OpenAPI spec by Stainless.
package com.moderntreasury.api.models
import com.fasterxml.jackson.annotation.JsonAnyGetter
import com.fasterxml.jackson.annotation.JsonAnySetter
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
... | 3 | null | 2 | 2 | 776a9b5bb0c3057643ba163b01fdcc14a92e3941 | 37,232 | modern-treasury-kotlin | MIT License |
composeApp/src/commonMain/kotlin/Guitar.kt | joshuaschori | 833,395,858 | false | {"Kotlin": 70958, "Swift": 594, "HTML": 336, "CSS": 102} | import androidx.compose.ui.graphics.Color
// TODO @Serializable
data class Guitar(
val numberOfFrets: Int,
// TODO convert mutable lists to regular lists
var fretMemory: MutableList<FretMemory> = mutableListOf(),
val isDefaultGuitar: Boolean = false
) {
val lineColor: Color = Color.Black
val li... | 0 | Kotlin | 0 | 1 | ec1cdeb01c9307f7dc1be01e2d29d95782b5a8df | 1,754 | MagnumOpus | MIT License |
app/src/main/java/com/duckduckgo/app/browser/downloader/FileDownloader.kt | andrey-p | 164,923,819 | false | null | /*
* Copyright (c) 2018 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 ... | 1 | null | 1 | 1 | e4328e68fda04b2e7d874fd0c974311014afe9fe | 1,871 | Android | Apache License 2.0 |
app/android/app/src/main/kotlin/com/blitzkrieg/polyess/MainActivity.kt | sreyom31 | 539,491,970 | false | {"JavaScript": 173232, "Solidity": 52536, "Dart": 39724, "CSS": 21573, "HTML": 1477, "Kotlin": 1275, "Swift": 404, "Objective-C": 38} | package com.blitzkrieg.polyess
import androidx.annotation.NonNull
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.plugin.common.MethodChannel
class MainActivity: FlutterActivity() {
private val CHANNEL = "polyess.wallet/eth"
override fun ... | 0 | JavaScript | 0 | 0 | 2d905d2acaf75252375f08ad11e3148d0c8fd90c | 853 | polyess | MIT License |
app/src/main/java/io/github/jixiaoyong/muggle/viewmodel/bean/FileListBean.kt | jixiaoyong | 182,269,717 | false | null | package io.github.jixiaoyong.muggle.viewmodel.bean
/**
* author: jixiaoyong
* email: jixiaoyong1995@gmail.com
* website: https://jixiaoyong.github.io
* date: 2019-04-27
* description: todo
*/
data class FileListBean(var fileName: String = "", var fileContent: String = "", var fileType: String = "",
... | 1 | null | 1 | 1 | 55ddb2e521cdfc0a985fb11475df24da561eec35 | 415 | Muggle | MIT License |
crunchycalendar/src/main/java/ru/cleverpumpkin/calendar/DateCellSelectedState.kt | CleverPumpkin | 134,849,459 | false | null | package ru.cleverpumpkin.calendar
/**
* @author Anatolii Shulipov (as@cleverpumpkin.ru)
*/
enum class DateCellSelectedState {
NOT_SELECTED,
SELECTED,
SINGLE,
SELECTION_START,
SELECTION_END
} | 13 | Kotlin | 45 | 500 | d625c21ab0f7837821782d35aeb3a55e3df68425 | 215 | CrunchyCalendar | MIT License |
src/test/kotlin/no/nav/helse/flex/FellesTestOppsett.kt | navikt | 653,492,657 | false | {"Kotlin": 16890, "Dockerfile": 267} | package no.nav.helse.flex
import no.nav.security.token.support.spring.test.EnableMockOAuth2Server
import okhttp3.mockwebserver.MockWebServer
import org.apache.kafka.clients.producer.KafkaProducer
import org.junit.jupiter.api.TestInstance
import org.springframework.beans.factory.annotation.Autowired
import org.springfr... | 4 | Kotlin | 0 | 0 | d7cee7d461c6053d61254421fbb61eaebd04783f | 2,487 | sykepengesoknad-yrkesskade-analyse | MIT License |
core/src/commonMain/kotlin/maryk/core/query/responses/statuses/AddSuccess.kt | marykdb | 290,454,412 | false | null | package maryk.core.query.responses.statuses
import maryk.core.models.IsRootDataModel
import maryk.core.models.SimpleQueryModel
import maryk.core.properties.definitions.InternalMultiTypeDefinition
import maryk.core.properties.definitions.list
import maryk.core.properties.definitions.number
import maryk.core.properties.... | 1 | null | 1 | 8 | 287377518680ab59adeb3bb93d1e37f8329e5eb7 | 1,814 | maryk | Apache License 2.0 |
app/src/main/java/com/techbeloved/hymnbook/playlists/AddToPlaylistDialogFragment.kt | techbeloved | 133,724,406 | false | null | package com.techbeloved.hymnbook.playlists
import android.database.sqlite.SQLiteConstraintException
import android.os.Bundle
import android.view.Gravity
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import androidx.databinding.DataBindingUtil
imp... | 4 | Kotlin | 8 | 8 | 0d92143b2fad211d0d75c49dfc5fec66f809e1c8 | 5,983 | hymnbook | MIT License |
app/src/main/java/com/example/landmarkexplorer/MainActivity.kt | mfundomthabela | 870,098,108 | false | {"Kotlin": 4837} | package com.example.landmarkexplorer
import android.content.Intent
import android.os.Bundle
import android.widget.Button
import androidx.appcompat.app.AppCompatActivity
import com.google.android.gms.maps.CameraUpdateFactory
import com.google.android.gms.maps.GoogleMap
import com.google.android.gms.maps.OnMapReadyCallb... | 0 | Kotlin | 0 | 0 | 85e5da2989f5790c1651e86e9127a8c1d1109ec3 | 1,674 | LandmarkExplorer | MIT License |
Demos/Ktor/src/main/kotlin/com/groupdocs/ui/comparison/ktor/status/GeneralStatusPages.kt | groupdocs-comparison | 65,550,714 | false | null | package com.groupdocs.ui.viewer.ktor.status
import io.ktor.http.*
import io.ktor.server.plugins.statuspages.*
import io.ktor.server.response.*
fun StatusPagesConfig.generalStatusPages() {
exception<Throwable> { call, cause ->
call.application.environment.log.error("Something unexpected happened!", cause)
... | 8 | null | 9 | 7 | 4d289958d8fc6ab338bbcfca8e82d237b71838be | 438 | GroupDocs.Comparison-for-Java | MIT License |
src/main/kotlin/no/nav/amt_altinn_acl/service/RolleService.kt | navikt | 497,788,149 | false | null | package no.nav.amt_altinn_acl.service
import no.nav.amt_altinn_acl.domain.AltinnRettighet
import no.nav.amt_altinn_acl.domain.TiltaksarrangorRolleType
import no.nav.amt_altinn_acl.domain.TiltaksarrangorRoller
import org.springframework.beans.factory.annotation.Value
import org.springframework.stereotype.Service
@Serv... | 0 | Kotlin | 0 | 0 | af4ba8bda89a5a1f5b0149b9343019d2240ca903 | 1,573 | amt-altinn-acl | MIT License |
myandroidutil/src/main/java/com/starsoft/myandroidutil/linkClickUtils/LinkHelperFun.kt | DmitryStarkin | 315,625,438 | false | null | /*
* Copyright (c) 2021. Dmitry Starkin Contacts: t0506803080@gmail.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
* //www.apache.org/licenses/LICENSE-2.0
* Unless required by... | 0 | Kotlin | 0 | 3 | 81499c5f97421bbe892c47fa1e46bab569f641d2 | 5,412 | my_android_utils | Apache License 2.0 |
HW9/src/main/kotlin/ru/otus/spring/kushchenko/hw9/service/AuthorServiceImpl.kt | ElenaKushchenko | 139,555,821 | false | {"Kotlin": 821703, "HTML": 46397, "TypeScript": 32941, "CSS": 751, "Dockerfile": 203} | package ru.otus.spring.kushchenko.hw9.service
import org.springframework.stereotype.Service
import ru.otus.spring.kushchenko.hw9.repository.AuthorRepository
/**
* Created by Елена on Июль, 2018
*/
@Service
class AuthorServiceImpl(private val repository: AuthorRepository) : AuthorService {
override fun getAll():... | 0 | Kotlin | 0 | 0 | 0286627b4e66873c28d18174d125b63e5723e4f7 | 357 | otus-spring-2018-06-hw | MIT License |
livekit-android-test/src/test/java/io/livekit/android/room/RoomReconnectionMockE2ETest.kt | livekit | 339,892,560 | false | null | /*
* Copyright 2023 LiveKit, 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 agreed t... | 64 | null | 70 | 176 | bee0a1e1e23725c77b97b2b94e3c1be3b9d12e8a | 4,598 | client-sdk-android | Apache License 2.0 |
app/src/main/java/com/dawinder/customshapes_jc/ui/shapes/HexagonShape.kt | DawinderGill | 670,214,470 | false | null | package com.dawinder.customshapes_jc.ui.shapes
import androidx.compose.ui.geometry.Size
import androidx.compose.ui.graphics.Outline
import androidx.compose.ui.graphics.Path
import androidx.compose.ui.graphics.Shape
import androidx.compose.ui.unit.Density
import androidx.compose.ui.unit.LayoutDirection
import kotlin.ma... | 0 | Kotlin | 0 | 1 | 3dac4209ccbaa15a5d423a2c99e08b18decfb660 | 2,001 | CustomShapes-JetpackCompose | Apache License 2.0 |
lightbulb-application/src/main/java/com/github/rooneyandshadows/lightbulb/application/activity/service/foreground/ForegroundServiceWrapper.kt | RooneyAndShadows | 423,132,153 | false | null | package com.github.rooneyandshadows.lightbulb.application.activity.service.foreground
import android.content.*
import android.os.Build
import android.os.Bundle
import android.os.IBinder
import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.LifecycleOwner
import com.github.rooneyandshadows.lightb... | 0 | Kotlin | 0 | 0 | cbc27a1919a4ac68ff322e036f1b02248b62dd99 | 3,179 | lightbulb-application | Apache License 2.0 |
core/src/main/kotlin/materialui/styles/transitions/options/TransitionsOptions.kt | subroh0508 | 167,797,152 | false | null | package materialui.styles.transitions.options
import kotlinext.js.jsObject
import kotlinx.css.properties.Timing
import kotlinx.css.properties.Transitions
import materialui.styles.transitions.*
import materialui.styles.transitions.create
external interface TransitionsOptions {
var easing: EasingOptions?
var du... | 14 | Kotlin | 27 | 81 | a959a951ace3b9bd49dc5405bea150d4d53cf162 | 1,131 | kotlin-material-ui | MIT License |
libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/apple/XcodeDirectIntegrationIT.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.gradle.apple
import org.gradle.util.GradleVersion
import org.jetbrains.kotlin.gr... | 182 | null | 5706 | 48,889 | c46c3c26038158cf80a739431ac8807ac4bbbc0c | 2,083 | kotlin | Apache License 2.0 |
shuttle/icons/data/src/main/kotlin/shuttle/icons/data/IconPacksRepositoryImpl.kt | 4face-studi0 | 462,194,990 | false | null | package shuttle.icons.data
import android.content.pm.PackageManager
import android.content.res.Resources
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.PorterDuff
import android.graphics.PorterDuffXfermode
import android.graphics.drawable.BitmapDrawa... | 12 | Kotlin | 0 | 14 | bd4faa49be9c3787b5b8786edc2a014a45969c1e | 13,291 | Shuttle | Apache License 2.0 |
runtime/src/main/java/io/novafoundation/nova/runtime/storage/source/query/api/QueryableModule.kt | novasamatech | 415,834,480 | false | {"Kotlin": 11121812, "Rust": 25308, "Java": 17664, "JavaScript": 425} | package io.novafoundation.nova.runtime.storage.source.query.api
import io.novafoundation.nova.runtime.storage.source.query.StorageQueryContext
import io.novasama.substrate_sdk_android.runtime.metadata.module.Module
import io.novasama.substrate_sdk_android.runtime.metadata.storage
typealias QueryableStorageKeyBinder<K... | 13 | Kotlin | 7 | 50 | 127f8739ca86dc74d006f018237daed0de5095a1 | 1,258 | nova-wallet-android | Apache License 2.0 |
src/test/kotlin/dev/shtanko/algorithms/leetcode/WildcardMatchingTest.kt | ashtanko | 203,993,092 | false | {"Kotlin": 6608183, "Shell": 1168, "Makefile": 961} | /*
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 4 | Kotlin | 0 | 19 | d7f842ebc3041ed6a407782d4f5da2e6a53c34df | 2,325 | kotlab | Apache License 2.0 |
app/src/main/java/design/bosson/spookyhalloweensounds/SoundManager.kt | PretzelJones | 209,155,390 | false | {"Kotlin": 38765, "Java": 1217} | package design.bosson.spookyhalloweensounds
import android.content.Context
import android.content.res.ColorStateList
import android.graphics.drawable.Drawable
import android.media.MediaPlayer
import android.view.View
import android.widget.Button
import android.widget.Toast
import androidx.core.content.ContextCompat
c... | 0 | Kotlin | 0 | 0 | 6a02052132ca56f2c93659a69ee64c78480702aa | 7,721 | SpookyHalloweenSounds | Apache License 2.0 |
app/src/main/java/com/jakting/shareclean/utils/MessageExt.kt | TigerBeanst | 259,865,941 | false | null | package com.jakting.shareclean.utils
import android.content.Context
import android.util.Log
import android.view.View
import android.widget.Toast
import com.google.android.material.snackbar.Snackbar
fun Context?.logd(message: String) =
if (isDebug()) {
Log.d("TigerBeanst", message)
} else {
}
fun... | 10 | Kotlin | 14 | 133 | 7825c8d6b8563cd57317fc9180bfe28a3a3d375a | 1,001 | TigerInTheWall | Apache License 2.0 |
Module/DebugToolsNoOp/src/main/java/com/lwh/debugtools/view/floatingview/FloatingMagnetView.kt | l-w-h | 224,768,316 | false | null | package com.lwh.debugtools.view.floatingview
import android.content.Context
import android.util.AttributeSet
import android.widget.FrameLayout
/**
* @author lwh
* @Date 2019/11/21 18:00
* @description 磁力吸附悬浮窗
*/
open class FloatingMagnetView constructor(
context: Context,
attrs: AttributeSet? = null,
... | 1 | Kotlin | 1 | 1 | cd9ccb97577f17d77884643942a0c642be03dae8 | 394 | DebugTools | Apache License 2.0 |
extensions/src/main/java/com/google/android/apps/muzei/util/LivecycleJob.kt | lovetuzitong | 184,654,520 | false | null | /*
* Copyright 2018 Google 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 agreed to ... | 1 | null | 1 | 1 | af52c6c40e9824aaf34c7cff024b99e1f67bc20b | 1,594 | muzei | Apache License 2.0 |
app/src/main/java/com/example/template/utils/mainScreen/AppState.kt | 098suraj | 591,545,007 | false | null | package com.example.template.utils.mainScreen
sealed class AppState() {
object Empty : AppState()
object Loading : AppState()
data class Success(var data: List<*>) : AppState()
data class Error(var error: String) : AppState()
} | 0 | Kotlin | 0 | 0 | 9276bb61b54d3b089a4585b77bd4365fc765dcb3 | 246 | GreedyGameAssignment | Apache License 2.0 |
core/data/src/test/kotlin/com/ekezet/othello/core/data/serialize/PositionSerializerKtTest.kt | atomgomba | 754,770,216 | false | {"Kotlin": 209676} | package com.ekezet.othello.core.data.serialize
import com.ekezet.othello.core.data.models.Position
import kotlin.test.Test
import kotlin.test.assertEquals
internal class PositionSerializerKtTest {
@Test
fun asString_NonNull() {
assertEquals("A1", Position(0, 0).asString())
assertEquals("H8", P... | 0 | Kotlin | 0 | 1 | 5f76e3b36e25fedb124f62f3f4a3b54659273e08 | 611 | othello | Apache License 2.0 |
app/src/main/java/com/valmiraguiar/wefit/WeFitApp.kt | valmiraguiar | 538,635,080 | false | {"Kotlin": 30416, "Java": 216} | package com.valmiraguiar.wefit
import android.app.Application
import com.valmiraguiar.wefit.di.MainModule
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
import org.koin.core.context.startKoin
class WeFitApp : Application() {
override fun onCreate() {
super.... | 0 | Kotlin | 0 | 0 | 521048d9ad8537d9c0099a56c89830efc11bc0ce | 466 | wefit-challenge | Apache License 2.0 |
integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/Status.kt | quarkusio | 139,914,932 | false | null | package io.quarkus.it.panache.kotlin
enum class Status {
LIVING, DECEASED
} | 1,824 | null | 1699 | 9,440 | 9755810c17969df15dfc3a04f162d4083dfb7400 | 80 | quarkus | Apache License 2.0 |
solar/src/main/java/com/chiksmedina/solar/outline/notes/DocumentAdd.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.outline.notes
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.M... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 8,039 | SolarIconSetAndroid | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.