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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
notifications/src/main/java/io/karte/android/notifications/internal/track/ReachedTracker.kt | plaidev | 208,185,127 | false | null | //
// Copyright 2020 PLAID, 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 3 | null | 4 | 5 | ad6959aa506ce2d85888bd9d6e452387898ab899 | 2,026 | karte-android-sdk | Apache License 2.0 |
src/main/kotlin/engine/utils/CommandList.kt | CozmicGames | 560,807,673 | false | {"Kotlin": 612419} | package engine.utils
import com.cozmicgames.utils.Disposable
import com.cozmicgames.utils.collections.Pool
open class CommandList<T : Any>(private val pool: Pool<T>) : Disposable {
constructor(supplier: () -> T, reset: (T) -> Unit = {}) : this(Pool(supplier = supplier, reset = reset))
private val commands = ... | 0 | Kotlin | 0 | 0 | d85d016431fb0490dcb6b125be5fd285e409bfc4 | 864 | GameOff2022 | MIT License |
src/main/kotlin/com/nearsoft/ipapiklient/models/IpInfo.kt | epool | 139,361,941 | false | {"Kotlin": 9993} | package com.nearsoft.ipapiklient.models
/**
* In case we don't have data on a specific field, the returned value will be, depending on the field type:
* String: empty ("")
* Double: 0.0
* Boolean: false
*/
data class IpInfo(
/**
* AS number and name, separated by space e.g. AS15169 Google Inc.
... | 0 | Kotlin | 0 | 1 | 5c073c0046bdc2a36d0f2e4303bca7792329b194 | 1,834 | ip-api-klient | Apache License 2.0 |
modules/arch-lifecycle/src/androidMain/kotlin/splitties/arch/lifecycle/ViewModel.kt | LouisCAD | 65,558,914 | false | {"Gradle Kotlin DSL": 70, "Shell": 3, "Text": 4, "Markdown": 56, "Java Properties": 2, "Ignore List": 67, "Batchfile": 2, "Git Attributes": 1, "EditorConfig": 1, "YAML": 6, "XML": 72, "Kotlin": 299, "INI": 1, "Proguard": 5, "Java": 1, "CSS": 1, "AsciiDoc": 1} | /*
* Copyright 2019-2021 <NAME>. Use of this source code is governed by the Apache 2.0 license.
*/
package splitties.arch.lifecycle
import androidx.activity.viewModels
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.fragment.app.activityViewModels
import androidx.... | 53 | Kotlin | 160 | 2,476 | 1ed56ba2779f31dbf909509c955fce7b9768e208 | 1,155 | Splitties | Apache License 2.0 |
modulecheck-parsing/android/src/main/kotlin/modulecheck/parsing/android/AndroidManifestParser.kt | RBusarow | 316,627,145 | false | null | /*
* Copyright (C) 2021-2023 Rick Busarow
* 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 ag... | 8 | null | 7 | 95 | 24e7c7667490630d30cf8b59cd504cd863cd1fba | 1,278 | ModuleCheck | Apache License 2.0 |
android-uitests/testData/iosched/mobile/src/main/java/com/google/samples/apps/iosched/ui/map/LoadGeoJsonFeaturesUseCase.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 77 | null | 6259 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 2,138 | android | Apache License 2.0 |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/covidcertificate/common/certificate/CwaCovidCertificate.kt | corona-warn-app | 268,027,139 | false | null | package de.rki.coronawarnapp.covidcertificate.common.certificate
import androidx.annotation.Keep
import com.google.gson.annotations.SerializedName
import de.rki.coronawarnapp.covidcertificate.common.certificate.CwaCovidCertificate.State.Blocked
import de.rki.coronawarnapp.covidcertificate.common.certificate.CwaCovidCe... | 35 | null | 516 | 2,495 | d3833a212bd4c84e38a1fad23b282836d70ab8d5 | 4,948 | cwa-app-android | Apache License 2.0 |
armthing/src/main/kotlin/crackers/kobots/app/Stuff.kt | EAGrahamJr | 564,081,499 | false | null | /*
* Copyright 2022-2023 by E. A. Graham, Jr.
*
* 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 ... | 0 | Kotlin | 0 | 1 | 1c1ded437032058e3a660d5137d75a1ce4c18186 | 1,945 | kobots | Apache License 2.0 |
gto-support-snowplow/src/main/kotlin/org/ccci/gto/android/common/snowplow/events/EventSynchronizer.kt | CruGlobal | 30,609,844 | false | null | package org.ccci.gto.android.common.snowplow.events
import androidx.annotation.VisibleForTesting
import com.snowplowanalytics.snowplow.event.Event
import java.util.concurrent.Semaphore
import java.util.concurrent.TimeUnit
import java.util.concurrent.atomic.AtomicReference
internal object EventSynchronizer {
@Visi... | 9 | null | 2 | 8 | 529634f181da6f2c1394d07ed05594caf178706c | 1,027 | android-gto-support | MIT License |
src/main/kotlin/org/teamvoided/voidlib/pow/registry/EnergyRegistries.kt | TeamVoided | 570,651,037 | false | null | package org.teamvoided.voidlib.pow.registry
import net.fabricmc.fabric.api.event.registry.FabricRegistryBuilder
import net.minecraft.registry.Registry
import org.teamvoided.voidlib.id
import org.teamvoided.voidlib.pow.energy.EnergyUnit
object EnergyRegistries {
val UNIT: Registry<EnergyUnit> =
FabricRegis... | 0 | Kotlin | 0 | 1 | 130c6c83f8c332fabfb942158f1e77ed6c5da882 | 424 | VoidLib | MIT License |
core/src/commonMain/kotlin/com/ramitsuri/notificationjournal/core/model/DayGroup.kt | ramitsuri | 667,037,607 | false | {"Kotlin": 274675, "Shell": 8329, "Python": 3405, "HTML": 1499, "JavaScript": 1016} | package com.ramitsuri.notificationjournal.core.model
import kotlinx.datetime.LocalDate
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class DayGroup(
@SerialName("date")
val date: LocalDate,
@SerialName("tag_groups")
val tagGroups: List<TagGroup>
... | 0 | Kotlin | 0 | 0 | 40d69baae3f526432f9c3b03f5cec7eb0173c85b | 322 | notification-journal | MIT License |
adoptium-updater-parent/adoptium-api-v3-updater/src/test/kotlin/net/adoptium/api/GraphQLGitHubReleaseClientTest.kt | adoptium | 349,432,712 | false | null | package net.adoptium.api
import io.aexp.nodes.graphql.GraphQLRequestEntity
import io.aexp.nodes.graphql.GraphQLResponseEntity
import io.mockk.every
import io.mockk.mockk
import kotlinx.coroutines.runBlocking
import net.adoptium.api.v3.AdoptRepositoryImpl
import net.adoptium.api.v3.dataSources.github.graphql.clients.Gr... | 19 | null | 34 | 9 | ddb39b5f7a71236694fc9df44e1bf3a888ba1fbc | 7,511 | api.adoptium.net | Apache License 2.0 |
instance-keeper/src/commonMain/kotlin/com/arkivanov/essenty/instancekeeper/InstanceKeeperDispatcher.kt | arkivanov | 385,374,863 | false | null | package com.arkivanov.essenty.instancekeeper
import kotlin.js.JsName
/**
* Represents a destroyable [InstanceKeeper].
*/
interface InstanceKeeperDispatcher : InstanceKeeper {
/**
* Destroys all existing instances. Instances are not cleared, so that they can be
* accessed later. Any new instances will... | 1 | null | 15 | 499 | bc67da4c3b069cf4b89d7b8b0a75869c9b704981 | 606 | Essenty | Apache License 2.0 |
app/src/main/java/com/ecodemo/silk/DecodeFile.kt | moieo | 433,604,739 | false | {"C": 1243474, "C++": 211104, "Assembly": 165771, "Kotlin": 52711, "CMake": 2381, "HTML": 2072, "Java": 1552} | package com.ecodemo.silk;
import java.io.File
import android.net.Uri
import kotlin.Suppress
import android.os.Build
import android.Manifest
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.view.View
import java.util.LinkedList
import java.lang.Runnable
import java.lang.Characte... | 0 | C | 0 | 14 | 01be4f32a2c8c58be8c22e354a0e12de2dee0e2c | 3,475 | Silk-Decoder | MIT License |
src/test/kotlin/no/nav/personbruker/minesaker/api/saf/journalposter/objectmothers/AvsenderMottakerObjectMother.kt | joakibj | 458,172,377 | true | {"Kotlin": 170883, "Shell": 265, "Dockerfile": 250} | package no.nav.personbruker.minesaker.api.saf.journalposter.objectmothers
import no.nav.dokument.saf.selvbetjening.generated.dto.HentJournalposter
object AvsenderMottakerObjectMother {
fun giveMePerson(
ident: String = "123",
idType: HentJournalposter.AvsenderMottakerIdType = HentJournalposter.Av... | 0 | null | 0 | 0 | 51dd522799ecbd53207a55a44c8378ecdb819547 | 649 | mine-saker-api | MIT License |
glyphbutton/src/main/kotlin/org/librecode/glyphbutton/util/GlyphFont.kt | Librecode | 627,137,506 | false | null | package org.librecode.glyphbutton.util
import android.content.Context
import android.graphics.Typeface
import androidx.core.content.res.ResourcesCompat
import org.librecode.glyphbutton.R
object GlyphFont {
private var ICONS_FONT: Typeface? = null
fun getTypeface(context: Context): Typeface? {
if(ICON... | 0 | Kotlin | 0 | 0 | 9058e3146f09c9f021230f9b522c5fdc98ef8c69 | 464 | MaterialGlyphButton | Apache License 2.0 |
compiler/src/main/kotlin/se/ansman/kotshi/Errors.kt | ansman | 95,685,398 | false | null | package se.ansman.kotshi
object Errors {
const val sealedClassMustBePolymorphic = "Sealed classes must be annotated with @Polymorphic"
const val nestedSealedClassMustBePolymorphic = "Children of a sealed class must be annotated with @Polymorphic"
const val defaultSealedValueIsGeneric = "The default value o... | 5 | null | 42 | 759 | 9611441b4dcb400d1b219fa0692454a80f9c1ed3 | 4,167 | kotshi | Apache License 2.0 |
app/src/main/java/com/kleinreveche/playground/features/cafeteria/ui/CheckoutScreen.kt | KleinReveche | 537,970,451 | false | {"Kotlin": 293106} | package com.kleinreveche.playground.features.cafeteria.ui
import androidx.annotation.StringRes
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material3.Button
import androidx.compose.material3.... | 0 | Kotlin | 0 | 0 | 062c3257ef1a434ed5b11ec947104908467e9f7f | 3,836 | Playground | Apache License 2.0 |
app/src/main/java/liou/rayyuan/ebooksearchtaiwan/view/ListDraggingViewHolderHelper.kt | YuanLiou | 111,275,765 | false | {"Kotlin": 284264, "Shell": 1384} | package liou.rayyuan.ebooksearchtaiwan.view
interface ListDraggingViewHolderHelper {
fun onListItemSelected()
fun onListItemCleared()
} | 1 | Kotlin | 4 | 40 | d767ad0d5b778b14fc68809e265bec5633b2aaed | 144 | TaiwanEbookSearch | MIT License |
buildSrc/src/main/java/com/paulrybitskyi/gamedge/plugins/GamedgeRemoteApiPlugin.kt | mars885 | 289,036,871 | false | {"Kotlin": 1318694, "Shell": 593} | package com.paulrybitskyi.gamedge.plugins
import com.android.build.api.dsl.LibraryExtension
import com.paulrybitskyi.gamedge.extensions.addBundle
import com.paulrybitskyi.gamedge.extensions.libs
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
class GamedgeRemoteApiPlu... | 4 | Kotlin | 63 | 659 | 69b3ada08cb877af9b775c6a4f3d9eb1c3470d9c | 1,513 | gamedge | Apache License 2.0 |
core/designsystem/src/main/java/com/hankki/core/designsystem/component/button/HankkiButton.kt | Team-Hankki | 816,081,730 | false | {"Kotlin": 587452} | package com.hankki.core.designsystem.component.button
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.com... | 9 | Kotlin | 0 | 43 | e83ea4cf5cfd0b23d71da164090c29ba0e253b18 | 4,409 | hankki-android | Apache License 2.0 |
src/i_introduction/_6_Data_Classes/DataClasses.kt | joethorngren | 91,930,087 | false | {"XML": 8, "Gradle": 1, "Ignore List": 1, "Text": 1, "Markdown": 1, "Kotlin": 112, "Java": 11} | package i_introduction._6_Data_Classes
import util.TODO
import util.doc6
fun todoTask6(): Nothing = TODO(
"""
Convert 'JavaCode6.Person' class to Kotlin.
Then add a modifier `data` to the resulting class.
This annotation means the compiler will generate a bunch of useful methods in this cl... | 1 | null | 1 | 1 | 08e08ef7570cbb995c90fada73505d72033119fe | 693 | kotlin-koans | MIT License |
shared/src/commonMain/kotlin/likco.likfit/ui/GenderSelection.kt | LikDan | 653,590,458 | false | null | package likco.likfit.ui
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWid... | 0 | Kotlin | 0 | 0 | ab39c86e6380b8e7a5ad6975b986ef7f25660efd | 2,055 | LikFit | Apache License 2.0 |
app/src/main/java/com/cornerjob/marvelheroes/data/model/mapper/MarvelHeroMapper.kt | Rigogp2610 | 340,006,060 | false | null | package com.cornerjob.marvelheroes.data.model.mapper
import com.cornerjob.marvelheroes.data.model.MarvelHeroResponse
import com.cornerjob.marvelheroes.domain.model.MarvelHeroEntity
class MarvelHeroMapper : Mapper<MarvelHeroResponse, MarvelHeroEntity> {
override fun transform(input: MarvelHeroResponse): MarvelHer... | 0 | Kotlin | 0 | 0 | ed265b89c642996663a6ddb52d669f3e00fdc96a | 693 | marvel | MIT License |
idea/tests/testData/inspectionsLocal/redundantSetter/lowerVisibility2.kt | JetBrains | 278,369,660 | false | null | // PROBLEM: none
class Test {
internal var x = 1
private <caret>set
} | 0 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 81 | intellij-kotlin | Apache License 2.0 |
eclipse-pde-partial-idea/src/main/kotlin/cn/varsa/idea/pde/partial/plugin/dom/completion/MenuContributionURICompletionContributor.kt | JaneWardSandy | 361,593,873 | false | null | package cn.varsa.idea.pde.partial.plugin.dom.completion
import com.intellij.codeInsight.completion.*
import com.intellij.codeInsight.lookup.*
import com.intellij.openapi.editor.*
import com.intellij.patterns.*
import com.intellij.psi.*
import com.intellij.psi.xml.*
import com.intellij.util.*
class MenuContributionURI... | 3 | Kotlin | 6 | 9 | 5c8192b92d5b0d3eba9e7a6218d180a0996aea49 | 1,469 | eclipse-pde-partial-idea | Apache License 2.0 |
diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/EmptyBlockWarnTest.kt | petertrr | 284,037,259 | false | null | package org.cqfn.diktat.ruleset.chapter3
import com.pinterest.ktlint.core.LintError
import org.cqfn.diktat.common.config.rules.RulesConfig
import org.cqfn.diktat.ruleset.constants.Warnings.EMPTY_BLOCK_STRUCTURE_ERROR
import org.cqfn.diktat.ruleset.rules.DIKTAT_RULE_SET_ID
import org.cqfn.diktat.ruleset.rules.EmptyBloc... | 2 | null | 0 | 1 | 45231eddab4e968db6f19a6ad82ae96f14223385 | 2,801 | diktat-backup | MIT License |
android/MyApplication/app/src/main/java/cn/magicalsheep/myapplication/SimpleDialog.kt | MagicalSheep | 570,933,605 | false | {"Kotlin": 287381, "Java": 145241, "C": 78070, "Rust": 41263, "HTML": 17978, "CSS": 6500, "Batchfile": 3923, "CMake": 777} | package cn.magicalsheep.myapplication
import android.app.AlertDialog
import android.app.Dialog
import android.os.Bundle
import androidx.fragment.app.DialogFragment
class SimpleDialog : DialogFragment() {
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
return activity?.let {
... | 0 | Kotlin | 6 | 44 | a550ba111bfbc715ae4bb1bff15eed757bb749bb | 580 | lab | MIT License |
native/swift/sir/tree-generator/src/org/jetbrains/kotlin/sir/tree/generator/Main.kt | JetBrains | 3,432,266 | false | {"Kotlin": 78150544, "Java": 6691623, "Swift": 4062767, "C": 2609482, "C++": 1967564, "Objective-C++": 169966, "JavaScript": 135932, "Python": 48711, "Shell": 34712, "TypeScript": 22800, "Lex": 18369, "Groovy": 17400, "Objective-C": 15578, "Batchfile": 11746, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9857, "EJS": 5241... | /*
* 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.sir.tree.generator
import org.jetbrains.kotlin.generators.tree.printer.generateT... | 179 | Kotlin | 5771 | 47,508 | 5fa326aec313d6e9bb0b461664c38d445eac72e9 | 1,161 | kotlin | Apache License 2.0 |
src/main/kotlin/dev/mythicdrops/gradle/conventions/MythicDropsJavaPlatformPlugin.kt | MythicDrops | 391,648,860 | false | null | package dev.mythicdrops.gradle.conventions
import org.gradle.api.Project
import org.gradle.api.publish.PublishingExtension
import org.gradle.api.publish.maven.MavenPublication
import org.gradle.kotlin.dsl.getByType
import org.gradle.kotlin.dsl.withType
/**
* Plugin that configures Maven publications for Java Platfor... | 6 | Kotlin | 0 | 0 | ee9677a65e4f1ebdbfa1c5e8ec4d574b33d1a989 | 729 | mythicdrops-gradle-plugin | MIT License |
app/src/main/java/jp/juggler/subwaytooter/util/NotificationHelper.kt | geckour | 194,987,270 | true | {"Kotlin": 2079900, "Java": 2066023, "Perl": 55985} | package jp.juggler.subwaytooter.util
import android.annotation.TargetApi
import android.app.NotificationChannel
import android.app.NotificationManager
import android.content.Context
import jp.juggler.subwaytooter.R
import jp.juggler.subwaytooter.table.SavedAccount
import jp.juggler.util.LogCategory
object Notificati... | 0 | Kotlin | 0 | 0 | afbe3927e1c832807c3f2d8d8421b97623a4a2b7 | 1,665 | SubwayTooter | Apache License 2.0 |
id/src/main/kotlin/ru/kyamshanov/mission/client/issuer/JwtSigner.kt | KYamshanov | 672,550,797 | false | {"Kotlin": 148114, "Java": 32298, "CSS": 7503, "FreeMarker": 1980, "Shell": 1498, "Dockerfile": 1201} | package ru.kyamshanov.mission.client.issuer
import io.jsonwebtoken.JwtBuilder
import io.jsonwebtoken.Jwts
import java.security.KeyPair
import java.util.*
val keyPair: KeyPair = Jwts.SIG.RS256.keyPair().build() //or RS384, RS512, PS256, etc...
val kid = UUID.randomUUID().toString()
/**
* The Issuer for provide acce... | 6 | Kotlin | 0 | 0 | b93ad1b09778b43521733da3cd95bab4e5c856ad | 707 | Mission-backend | Apache License 2.0 |
backend/src/main/java/radar/ApplicationConfig.kt | community-graph | 107,399,783 | false | {"JavaScript": 26063, "Kotlin": 19083, "HTML": 9320, "SCSS": 6334, "CSS": 444} | package kudos
import com.fasterxml.jackson.annotation.JsonInclude
import com.fasterxml.jackson.databind.SerializationFeature
import com.fasterxml.jackson.module.kotlin.KotlinModule
import org.neo4j.driver.v1.AuthTokens
import org.neo4j.driver.v1.Config
import org.neo4j.driver.v1.Driver
import org.neo4j.driver.v1.Graph... | 4 | JavaScript | 2 | 2 | 356eb3188cff3f1090f427f65557c8b0e1c3518d | 2,284 | community-radar | Apache License 2.0 |
misk-hibernate/src/test/kotlin/misk/hibernate/MoviesTestModule.kt | cashapp | 113,107,217 | false | {"Kotlin": 3843790, "TypeScript": 232251, "Java": 83564, "JavaScript": 5073, "Shell": 3462, "HTML": 1536, "CSS": 58} | package misk.hibernate
import com.google.inject.util.Modules
import misk.MiskTestingServiceModule
import misk.config.MiskConfig
import misk.environment.DeploymentModule
import misk.inject.KAbstractModule
import misk.jdbc.DataSourceClusterConfig
import misk.jdbc.DataSourceConfig
import misk.jdbc.DataSourceType
import m... | 169 | Kotlin | 169 | 400 | 13dcba0c4e69cc2856021270c99857e7e91af27d | 2,198 | misk | Apache License 2.0 |
fluxy/src/main/java/com/hoopcarpool/fluxy/Annotations.kt | hoop-carpool | 233,216,485 | false | null | package com.hoopcarpool.fluxy
import kotlin.RequiresOptIn.Level
@Retention(value = AnnotationRetention.BINARY)
@RequiresOptIn(level = Level.WARNING)
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.TYPEALIAS, AnnotationTarget.PROPERTY)
annotation class FluxyPreview
@Retention(value = Annot... | 1 | Kotlin | 2 | 26 | d16bbe3a1f6127e74839fc37966dc9d8fd08911f | 531 | fluxy | MIT License |
uast/uast-kotlin-fir/src/org/jetbrains/uast/kotlin/FirKotlinUastLanguagePlugin.kt | JetBrains | 278,369,660 | false | null | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.uast.kotlin
import com.intellij.lang.Language
import com.intellij.openapi.components.ServiceManager
import com.intellij.psi.PsiElement
im... | 214 | null | 4829 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 3,862 | intellij-kotlin | Apache License 2.0 |
Demos/Javalin/src/main/kotlin/com/groupdocs/ui/model/DescriptionResponse.kt | groupdocs-signature | 85,180,249 | false | null | package com.groupdocs.ui.model
data class LoadDocumentEntity (
/**
* Document Guid
*/
val guid: String,
/**
* list of pages
*/
val pages: MutableList<PageDescriptionEntity> = mutableListOf(),
/**
* Restriction for printing pdf files in viewer
*/
val printAllowed... | 4 | null | 7 | 3 | 6febc7edac719c1bc5bae0a611e86f72c9fdfa27 | 594 | GroupDocs.Signature-for-Java | MIT License |
app/src/main/java/com/revolgenx/anilib/notification/presenter/NotificationPresenter.kt | AniLibApp | 244,410,204 | false | null | package com.revolgenx.anilib.notification.presenter
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import com.otaliastudios.elements.Element
import com.otaliastudios.elements.Page
import com.revolgenx.anilib.R
import com.revolgenx.anilib.constant.NotificationUnionType
i... | 36 | null | 3 | 76 | b3caec5c00779c878e4cf22fb7d2034aefbeee54 | 13,601 | AniLib | Apache License 2.0 |
src/vision/alter/telekot/telegram/model/ChatPhoto.kt | alter-vision | 261,156,045 | false | null | package vision.alter.telekot.telegram.model
import kotlinx.serialization.Serializable
import vision.alter.telekot.telegram.model.markers.TelegramObject
/**
* This object represents a chat photo (https://core.telegram.org/bots/api#chatphoto).
*/
@Serializable
data class ChatPhoto(
/**
* File identifier of s... | 10 | Kotlin | 0 | 2 | 28943db77d5ed7b0759ef180e61c1db78032a408 | 1,159 | telekot | Apache License 2.0 |
engine/src/main/kotlin/com/delphix/sdk/objects/UserObject.kt | CloudSurgeon | 212,463,880 | false | null | /**
* Copyright (c) 2019 by Delphix. All rights reserved.
*/
package com.delphix.sdk.objects
/**
* Super schema for all schemas representing user-visible objects.
*/
interface UserObject : PersistentObject {
val name: String?//Object name.
override val reference: String?//The object reference.
override... | 0 | null | 0 | 1 | 819f7e9ea1bb0c675e0d04d61cf05302c488d74f | 495 | titan-server | Apache License 2.0 |
dccomics/src/main/java/com/cubidevs/dccomics/data/ApiFactory.kt | Team-111-MisionTic | 426,814,942 | false | null | package com.cubidevs.dccomics.data
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
object ApiFactory {
private const val urlAPI = "https://my-json-server.typicode.com/"
private val okkHttpClient = OkHttpC... | 0 | null | 2 | 1 | 5966f252450af93ef4499d182a8952f4f9aa9848 | 700 | Team-111 | MIT License |
spotify-api/src/main/java/com/clipfinder/spotify/api/model/TracksPagingObject.kt | tosoba | 133,674,301 | false | {"Gradle": 33, "Markdown": 2, "Java Properties": 2, "Shell": 1, "Ignore List": 31, "Batchfile": 1, "Kotlin": 409, "Proguard": 24, "XML": 176, "Java": 2, "INI": 4} | /**
* Spotify Web API No description provided (generated by Openapi Generator
* https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.1
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech Do not e... | 1 | null | 1 | 1 | 84ae309c8c059308c16902ee43b0cdfd2740794c | 1,873 | ClipFinder | MIT License |
src/main/kotlin/nmcp/NmcpPublishTask.kt | GradleUp | 756,060,949 | false | {"Kotlin": 12916} | package nmcp
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.MultipartBody
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.RequestBody.Companion.asRequestBody
import okhttp3.logging.HttpLoggingInterceptor
import okio.Buffer
import org.gradle.api.DefaultTask
import org.gradle.api.file.Re... | 0 | Kotlin | 2 | 48 | b6325eac2ca6111a8d22a26be401d021fda90003 | 2,519 | nmcp | MIT License |
openai-gateway/openai-gateway-core/src/commonMain/kotlin/com/tddworks/openai/gateway/api/internal/DefaultOpenAIProviderConfig.kt | tddworks | 755,029,221 | false | {"Kotlin": 328879} | package com.tddworks.openai.gateway.api.internal
import com.tddworks.openai.api.OpenAI
import com.tddworks.openai.api.OpenAIConfig
import com.tddworks.openai.gateway.api.OpenAIProviderConfig
data class DefaultOpenAIProviderConfig(
override val apiKey: () -> String,
override val baseUrl: () -> String = { OpenA... | 0 | Kotlin | 0 | 9 | eeef583fb15610e60fbb4df3550f085f4c6f3908 | 600 | openai-kotlin | Apache License 2.0 |
ktor-network/jvm/src/io/ktor/network/sockets/ConnectUtilsJvm.kt | ktorio | 40,136,600 | false | null | /*
* Copyright 2014-2021 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package io.ktor.network.sockets
import io.ktor.network.selector.*
import io.ktor.util.network.*
internal actual suspend fun connect(
selector: SelectorManager,
networkAddress: NetworkA... | 303 | Kotlin | 755 | 9,053 | 240363d6760754c325e0022f48eb5ea3069bc060 | 994 | ktor | Apache License 2.0 |
spesialist-selve/src/test/kotlin/no/nav/helse/modell/UtbetalingDaoTest.kt | navikt | 244,907,980 | false | null | package no.nav.helse.modell
import DatabaseIntegrationTest
import java.time.LocalDateTime
import java.util.UUID
import no.nav.helse.juli
import no.nav.helse.modell.utbetaling.Utbetaling
import no.nav.helse.modell.utbetaling.Utbetalingsstatus
import no.nav.helse.modell.utbetaling.Utbetalingsstatus.ANNULLERT
import no.n... | 9 | null | 3 | 1 | 9d4136c645cc48337f246413c4b0beb906839ffd | 6,841 | helse-spesialist | MIT License |
multiplatform-crypto-delegated/src/commonTest/kotlin/com/ionspin/kotlin/crypto/hash/blake2b/Blake2bTest.kt | ionspin | 197,911,500 | false | null | package com.ionspin.kotlin.crypto.hash.blake2b
import com.ionspin.kotlin.crypto.Crypto
import com.ionspin.kotlin.crypto.CryptoPrimitives
import com.ionspin.kotlin.crypto.Initializer
import com.ionspin.kotlin.crypto.hash.encodeToUByteArray
import com.ionspin.kotlin.crypto.util.testBlocking
import com.ionspin.kotlin.cry... | 2 | Kotlin | 3 | 36 | 425c066bac867a8899d519d80182e90259b78067 | 1,668 | kotlin-multiplatform-crypto | Apache License 2.0 |
designer/testSrc/com/android/tools/idea/uibuilder/handlers/constraint/WidgetConstraintModelTest.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 12,721 | android | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/alexa/ask/CfnSkillDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier", "RedundantUnitReturnType", "RemoveRedundantQualifierName", "unused", "UnusedImport", "ClassName", "REDUNDANT_PROJECTION", "DEPRECATION")
package cloudshift.awscdk.dsl.alexa.ask
import cloudshift.awscdk.common.CdkDslMarker
import software.amazon.awscdk.IResolvable
import s... | 4 | null | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 5,203 | awscdk-dsl-kotlin | Apache License 2.0 |
app/src/main/java/com/steleot/jetpackcompose/playground/compose/foundation/SelectableGroupScreen.kt | Vivecstel | 338,792,534 | false | null | package com.steleot.jetpackcompose.playground.compose.foundation
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.selection.selectableGroup
import androidx.compose.material.RadioButton
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose... | 2 | Kotlin | 40 | 325 | d8c5f09c102110e39c18717300d1ca253b64e2a9 | 1,974 | Jetpack-Compose-Playground | Apache License 2.0 |
uast/uast-common/src/com/intellij/psi/UastReferenceRegistrar.kt | weiqiangzheng | 154,165,897 | true | {"Java": 169603963, "Python": 25582594, "Kotlin": 6740047, "Groovy": 3535139, "HTML": 2117263, "C": 214294, "C++": 180123, "CSS": 172743, "JavaScript": 148969, "Lex": 148871, "XSLT": 113036, "Jupyter Notebook": 93222, "Shell": 60209, "NSIS": 58584, "Batchfile": 49961, "Roff": 37497, "Objective-C": 32636, "TeX": 25473, ... | /*
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 1 | Java | 1 | 1 | f8263bc48f0fc98315a796364b827beef5c86a3b | 5,533 | intellij-community | Apache License 2.0 |
build-tools/agp-gradle-core/src/main/java/com/android/build/api/component/impl/TestComponentImpl.kt | RivanParmar | 526,653,590 | false | {"Java": 48334972, "Kotlin": 8896058, "HTML": 109232, "Lex": 13233, "ReScript": 3232, "Makefile": 2194} | /*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Java | 2 | 17 | 8fb2bb1433e734aa9901184b76bc4089a02d76ca | 3,731 | androlabs | Apache License 2.0 |
app/src/main/java/es/npatarino/android/gotchallenge/data/datasource/network/model/ServerAddress.kt | gsanguinetti | 212,910,321 | true | {"Kotlin": 76123} | package es.npatarino.android.gotchallenge.data.datasource.network.model
data class ServerAddress(
val baseUrl: String
) | 0 | Kotlin | 0 | 0 | 8d03826f5de24762f4aff28fc0841b3d3529ab24 | 128 | android-challenge | Apache License 2.0 |
src/main/kotlin/jp/ac/kcg/HouseHoldAccountBookApplication.kt | KcgPrj | 58,903,675 | false | {"Kotlin": 31446, "HTML": 2676} | package jp.ac.kcg
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
@SpringBootApplication()
open class HouseHoldAccountBookApplication
fun main(args: Array<String>) {
SpringApplication.run(HouseHoldAccountBookApplication::class.java, *args)
}
| 8 | Kotlin | 0 | 0 | 8686e7a18e86044e8724b930c9bfe1182f08592b | 319 | HouseHoldAccountBook | MIT License |
sample-mixed/src/main/java/com/speakerboxlite/router/samplemixed/bts/BottomSheetPath.kt | AlexExiv | 688,805,446 | false | {"Kotlin": 412589} | package com.speakerboxlite.router.samplemixed.bts
import com.speakerboxlite.router.RoutePath
import com.speakerboxlite.router.annotations.Route
import com.speakerboxlite.router.controllers.RouteController
class BottomSheetPath: RoutePath
@Route
abstract class BottomRouteController: RouteController<BottomSheetPath, B... | 8 | Kotlin | 1 | 3 | dfcb01a763ca40dc62a53bb309b0adc4603a5e88 | 338 | Router-Android | MIT License |
sykepenger-model/src/test/kotlin/no/nav/helse/spleis/e2e/VedtaksperiodeForkastetE2ETest.kt | navikt | 193,907,367 | false | null | package no.nav.helse.spleis.e2e
import no.nav.helse.april
import no.nav.helse.assertForventetFeil
import no.nav.helse.desember
import no.nav.helse.februar
import no.nav.helse.hendelser.Sykmeldingsperiode
import no.nav.helse.hendelser.Søknad.Søknadsperiode.Sykdom
import no.nav.helse.hendelser.til
import no.nav.helse.ja... | 2 | Kotlin | 6 | 5 | 314d8a6e32b3dda391bcac31e0b4aeeee68f9f9b | 13,533 | helse-spleis | MIT License |
app/src/main/java/luyao/android/activity/SingleTopActivity.kt | lulululbj | 269,033,034 | false | null | package luyao.android.activity
/**
* Created by luyao
* on 2020/6/1 13:04
*/
class SingleTopActivity : BaseTaskActivity() | 0 | Kotlin | 0 | 0 | 32de1070b2a084dd2fd05b4557097026729cb41e | 125 | Android | Apache License 2.0 |
certifikit/src/jvmMain/kotlin/app/cash/certifikit/pem.kt | cashapp | 279,079,931 | false | null | /*
* Copyright (C) 2022 Square, 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 agre... | 7 | null | 12 | 38 | 8a4bae82031dfecc5ace46bd77763313961379ad | 9,100 | certifikit | Apache License 2.0 |
OptiGUI/src/main/kotlin/opekope2/filter/FilterResult.kt | opekope2 | 578,779,647 | false | null | package opekope2.filter
/**
* Represents a filter result.
*
* @param T The type a [Filter] returns
*/
sealed interface FilterResult<T> {
/**
* Represents a skipping filter result.
*
* @param T The type a [Filter] would return in case of a match
*/
class Skip<T> : FilterResult<T> {
... | 9 | Kotlin | 1 | 9 | d61d4c2a70f2d00cb7513bd19a0bfa309e7ee66d | 897 | OptiGUI | MIT License |
feieprinter/src/test/kotlin/com.yingtaohuo/FeieClientTest.kt | menuxx | 96,880,838 | false | {"JavaScript": 1254682, "Kotlin": 162067, "FreeMarker": 67462, "Java": 22082, "CSS": 2227, "HTML": 4} | package com.yingtaohuo
import org.junit.BeforeClass
import org.junit.Test
/**
* 作者: <EMAIL>
* 创建于: 2017/10/15
* 微信: yin80871901
*/
class FeieClientTest {
companion object {
@JvmStatic lateinit var client : FeieClient
@BeforeClass
@JvmStatic
fun setup() {
client ... | 0 | JavaScript | 0 | 0 | 81ffb601aa4b92024966067574357109ac81e115 | 3,144 | sso | Apache License 2.0 |
app/src/main/java/com/nima/triviaapp/MainActivity.kt | NimaKhajehpour | 592,016,135 | false | null | package com.nima.triviaapp
import android.os.Bundle
import android.text.Html
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import... | 0 | Kotlin | 0 | 0 | 1009cd44e10c55ce93fd19277c31a8db13279ef8 | 1,610 | TriviaApp | MIT License |
app/src/main/java/com/nima/triviaapp/MainActivity.kt | NimaKhajehpour | 592,016,135 | false | null | package com.nima.triviaapp
import android.os.Bundle
import android.text.Html
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import... | 0 | Kotlin | 0 | 0 | 1009cd44e10c55ce93fd19277c31a8db13279ef8 | 1,610 | TriviaApp | MIT License |
src/main/kotlin/com/github/surpsg/diffcoverage/extensions/DiffCoverageRunner.kt | SurpSG | 286,551,507 | false | null | package com.github.surpsg.diffcoverage.extensions
import com.github.surpsg.diffcoverage.DiffCoverageBundle
import com.github.surpsg.diffcoverage.domain.CoverageStat
import com.github.surpsg.diffcoverage.domain.ProjectDataWithStat
import com.github.surpsg.diffcoverage.properties.PLUGIN_NAME
import com.github.surpsg.dif... | 2 | Kotlin | 2 | 4 | 8372cce7cd3c0716cdcfc3d281075381c5bec5e3 | 2,364 | diff-coverage-idea-plugin | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/A.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,146 | icons | MIT License |
multiplatform-ui/src/jvmMain/kotlin/main.kt | shalva97 | 371,007,326 | false | null | import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.lightColorScheme
import androidx.compose.ui.unit.dp
import androidx.compose.ui.window.Window
import androidx.compose.ui.window.application
import androidx.compose.ui.window.rememberWindowState
import di.kodein
import org.kodein.di.compose... | 22 | null | 0 | 13 | 350cd8d93f0b4b28e9751f7b41c001e05ef9b642 | 697 | Youtube_history_parser | The Unlicense |
token-validation-core/src/main/kotlin/no/nav/security/token/support/core/validation/DefaultJwtClaimsVerifier.kt | navikt | 124,397,000 | false | null | package no.nav.security.token.support.core.validation
import com.nimbusds.jose.proc.SecurityContext
import com.nimbusds.jwt.JWTClaimsSet
import com.nimbusds.jwt.proc.DefaultJWTClaimsVerifier
import com.nimbusds.jwt.util.DateUtils.isBefore
import com.nimbusds.openid.connect.sdk.validators.BadJWTExceptions.IAT_CLAIM_AHE... | 9 | null | 7 | 15 | efc8bf993d42d153998f79b797a53477be9b1479 | 1,147 | token-support | MIT License |
app/src/test/java/com/gzaber/keepnote/ui/elementsoverview/ElementsOverviewScreenTest.kt | gzaber | 690,170,857 | false | {"Kotlin": 239289} | package com.gzaber.keepnote.ui.elementsoverview
import androidx.compose.ui.test.ExperimentalTestApi
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.hasText
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.longClick
import androidx.compose.ui.tes... | 0 | Kotlin | 1 | 0 | 58d4e17785eedda5f0110e0f47b46405b8f47158 | 5,207 | KeepNote | MIT License |
idea/src/org/jetbrains/kotlin/idea/quickfix/crossLanguage/ChangeMethodParameters.kt | JetBrains | 278,369,660 | false | null | /*
* Copyright 2010-2018 JetBrains s.r.o. 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.idea.quickfix.crossLanguage
import com.intellij.codeInsight.daemon.QuickFixBundle
import com.intellij.lang.jvm.actions.Annotati... | 191 | null | 4372 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 10,299 | intellij-kotlin | Apache License 2.0 |
sonicinapp/src/main/java/com/orbitalsonic/sonicinapp/interfaces/BillingListener.kt | orbitalsonic | 579,858,666 | false | {"Kotlin": 72244} | package com.orbitalsonic.sonicinapp.interfaces
import com.orbitalsonic.sonicinapp.dataClasses.PurchaseDetail
/**
* @Author: <NAME>
* @Date: 01,October,2024.
* @Accounts
* -> https://github.com/orbitalsonic
* -> https://www.linkedin.com/in/myaqoob7
*/
interface BillingListener {
fun onConnectionRe... | 0 | Kotlin | 1 | 0 | 18fdda950c836fd9e209bf38b59486fef0d602c8 | 429 | SonicInApp | Apache License 2.0 |
app/src/main/kotlin/com/jpaya/englishisfun/statives/ui/adapter/StativesAdapter.kt | jpaya17 | 254,323,532 | 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 agreed to in wr... | 20 | Kotlin | 6 | 49 | 5f6b5583f1a259407e85f6ecad6333b208b98885 | 2,011 | englishisfun | Apache License 2.0 |
QuantasPessoasTemMeuNome/app/src/main/java/com/example/quantaspessoastemmeunome22101195/dadosremotos/RespostaNome.kt | RafaCaire1507 | 759,526,248 | false | {"Kotlin": 24221, "Java": 4506} | package com.example.quantaspessoastemmeunome22101195.dadosremotos
import com.google.gson.annotations.SerializedName
class RespostaNome (
@SerializedName("nome") var nome:String,
@SerializedName("res") var res: List<Frequencia>
)
class Frequencia(
@SerializedName("periodo") var periodo: String,
@S... | 0 | Kotlin | 0 | 0 | a99b4c635fb6bea39df00e33c28c1591ead02f2d | 372 | Android | MIT License |
src/jp/seraphyware/simpleapp5/SimpleApp5Controller.kt | massongit | 95,294,856 | true | {"Kotlin": 40299, "CSS": 1216} | package jp.seraphyware.simpleapp4
import javafx.beans.binding.Bindings
import javafx.event.ActionEvent
import javafx.fxml.FXML
import javafx.fxml.Initializable
import javafx.scene.control.Alert
import javafx.scene.control.Alert.AlertType
import javafx.scene.control.Button
import javafx.scene.control.CheckBox
import ja... | 0 | Kotlin | 0 | 1 | 20dba4bc8c166b81b85ff2089a0711bf70ea53f2 | 1,911 | JavaFXSimpleAppForKotlin | MIT License |
app/src/main/java/io/zoemeow/dutschedule/ui/view/settings/controls/DeleteAllSubjectFilterDialog.kt | ZoeMeow1027 | 504,228,485 | false | {"Kotlin": 684767} | package io.zoemeow.dutschedule.ui.component.settings
import android.content.Context
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.mat... | 0 | Kotlin | 0 | 1 | f2a2759a5df84a3665ec7f2a589606890b6bcd14 | 2,510 | DutSchedule | MIT License |
sample/src/main/java/io/github/onreg/todo/main/MainViewModel.kt | onreg | 349,964,657 | false | null | package io.github.onreg.todo.main
import androidx.lifecycle.ViewModel
import io.github.onreg.flowcache.statusCache
import io.github.onreg.todo.db.Database
import io.github.onreg.todo.db.TodoEntity
class MainViewModel : ViewModel() {
val todos by statusCache<List<TodoEntity>> {
Database.todoDao
... | 0 | Kotlin | 0 | 5 | 4974cd747474a4b081d39fb06f4e528c849ff9d9 | 341 | flow-cache | Apache License 2.0 |
src/main/kotlin/com/imran/api/repos/GenreRepository.kt | imran94 | 800,413,385 | false | {"Kotlin": 37483} | package com.imran.api.repos
import com.imran.api.models.Genre
import org.springframework.data.jpa.repository.JpaRepository
interface GenreRepository: JpaRepository<Genre, Long> | 0 | Kotlin | 0 | 0 | 6544e4194335c4ee386dd6296ebe5f8990959117 | 178 | spring-boot-api | Apache License 2.0 |
src/test/kotlin/no/nav/syfo/testhelper/generator/DialogmeldingFraBehandlerGenerator.kt | navikt | 602,146,320 | false | {"Kotlin": 404554, "Dockerfile": 226} | package no.nav.syfo.testhelper.generator
import no.nav.syfo.melding.kafka.domain.*
import no.nav.syfo.testhelper.UserConstants
import no.nav.syfo.domain.PersonIdent
import no.nav.syfo.melding.kafka.domain.Dialogmelding
import no.nav.syfo.melding.kafka.domain.ForesporselFraSaksbehandlerForesporselSvar
import no.nav.syf... | 3 | Kotlin | 0 | 0 | f4fff2694a3e2121ab60b12520d297b77f26611d | 9,106 | isbehandlerdialog | MIT License |
frontend/app/src/main/java/com/kasiry/app/viewmodel/ProfileViewModel.kt | alfianandinugraha | 585,695,566 | false | null | package com.kasiry.app.viewmodel
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.kasiry.app.models.data.Profile
import com.kasiry.app.repositories.AuthRepository
import com.kasiry.app.repositories.ProfileR... | 0 | Kotlin | 0 | 1 | 6dc3a367acc255e7c2b1fe75543311b4bbb38b17 | 2,596 | kasiry | MIT License |
gson-provider/src/test/kotlin/org/javando/http/problem/impl/test/GsonProviderTest.kt | nickayl | 327,589,485 | false | {"Kotlin": 88411, "Java": 24700} | package org.javando.http.problem.impl.test
import com.google.gson.Gson
import org.hamcrest.CoreMatchers.*
import org.hamcrest.MatcherAssert.assertThat
import org.javando.http.problem.*
import org.javando.http.problem.impl.GsonProvider
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import or... | 1 | Kotlin | 1 | 2 | a760ea5761fa980c36e1b8fc4f7528f814aa90dd | 5,731 | noproblem | Apache License 2.0 |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/update/VersionComparator.kt | covid-be-app | 281,650,940 | false | null | package de.rki.coronawarnapp.update
/**
* Helper to compare 2 version strings
*/
object VersionComparator {
/**
* Checks if currentVersion is older than versionToCompareTo
*
* Expected input format: <major>.<minor>.<patch>
* major, minor and patch are Int
*
* @param currentVersion
... | 13 | Kotlin | 10 | 55 | d556b0b9f29e76295b59be2a1ba89bc4cf6ec33b | 1,649 | cwa-app-android | Apache License 2.0 |
android/src/main/java/com/reactnativepedometerdetails/step/background/RebootActionReceiver.kt | zaixiaoqu | 437,058,689 | false | {"Kotlin": 90481, "JavaScript": 2795} | package com.reactnativepedometerdetails.step.background
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import androidx.core.content.ContextCompat
class RebootActionReceiver : BroadcastReceiver() {
override fun onReceive(context: Context?, intent: Intent?) {... | 6 | Kotlin | 9 | 7 | 77eba39e286c7799920c87a9b676e367b0810a3b | 757 | react-native-pedometer-details | MIT License |
src/main/kotlin/org/opensearch/commons/alerting/action/IndexMonitorResponse.kt | opensearch-project | 354,136,133 | false | null | package org.opensearch.commons.alerting.action
import org.opensearch.common.io.stream.StreamInput
import org.opensearch.common.io.stream.StreamOutput
import org.opensearch.commons.alerting.model.Monitor
import org.opensearch.commons.alerting.util.IndexUtils.Companion._ID
import org.opensearch.commons.alerting.util.Ind... | 25 | null | 93 | 7 | d221aa35182c323a191144cdb3668f08df45d964 | 2,052 | common-utils | Apache License 2.0 |
app/src/main/java/eu/kanade/tachiyomi/di/AppModule.kt | mihonapp | 743,704,912 | false | null | package eu.kanade.tachiyomi.di
import android.app.Application
import android.os.Build
import androidx.core.content.ContextCompat
import androidx.sqlite.db.SupportSQLiteDatabase
import androidx.sqlite.db.framework.FrameworkSQLiteOpenHelperFactory
import app.cash.sqldelight.db.SqlDriver
import app.cash.sqldelight.driver... | 93 | null | 98 | 9,867 | f3a2f566c8a09ab862758ae69b43da2a2cd8f1db | 5,745 | mihon | Apache License 2.0 |
src/main/kotlin/com/github/shanpark/mqtt5/packet/primitive/Utf8EncodedString.kt | shanpark | 422,818,919 | false | {"Kotlin": 141602} | package com.github.shanpark.mqtt5.packet.primitive
import com.github.shanpark.buffers.ReadBuffer
import com.github.shanpark.buffers.WriteBuffer
import com.github.shanpark.mqtt5.exception.ExceedLimitException
import com.github.shanpark.mqtt5.exception.NotEnoughDataException
import io.netty.buffer.ByteBuf
/**
* MQTT 5... | 0 | Kotlin | 0 | 0 | dc2d803a3e23455bdc3d2bb729c4fa975e172b1c | 2,132 | Mqtt5 | MIT License |
src/main/java/com/example/navigation/ui/destination/NavigationUiDestinationListenerFragmentTwo.kt | vshpyrka | 754,325,488 | false | {"Kotlin": 183594} | package com.example.navigation.ui.destination
import android.os.Bundle
import android.text.method.ScrollingMovementMethod
import android.view.View
import androidx.fragment.app.Fragment
import com.example.navigation.R
import com.example.navigation.applyWindowInsets
import com.example.navigation.databinding.FragmentNavi... | 0 | Kotlin | 0 | 0 | bf0d3e6ca9c31116a5ebb77576dc01b62c896e13 | 898 | android-navigation-example | Apache License 2.0 |
libtrip-notification/src/test/java/com/mapbox/navigation/trip/notification/internal/MapboxTripNotificationTest.kt | niilante | 439,334,238 | false | null | package com.mapbox.navigation.trip.notification
import android.app.Notification
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.content.res.Configuration
import android.content.r... | 9 | null | 1 | 1 | c7fd13f6c363e0902cf2e12d55d4bc3647700400 | 16,470 | mapbox-navigation-android | Apache License 2.0 |
project/skyway_android_sdk/app/src/main/java/com/ntt/skyway/App.kt | skyway | 594,002,280 | false | null | package com.ntt.skyway
import android.app.Application
import android.content.Context
import android.util.Log
import com.ntt.skyway.authtoken.AuthTokenBuilder
import com.ntt.skyway.core.SkyWayContext
import com.ntt.skyway.core.util.Logger
import com.ntt.skyway.manager.ChannelManager
import com.ntt.skyway.manager.Manage... | 0 | null | 0 | 4 | 15991d539a6a1000015dd721c082ab3693a682f0 | 2,249 | android-sdk | MIT License |
DiceGame/app/src/main/java/com/example/dicegame/MainActivity.kt | vardaan-raj | 413,309,056 | false | {"Dart": 504070, "HTML": 473817, "TeX": 182782, "JavaScript": 45951, "CSS": 24613, "Python": 7999, "EJS": 4446, "C++": 4004, "Kotlin": 2720, "Swift": 404, "Objective-C": 38} | package com.example.dicegame
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.ImageView
import android.widget.TextView
import android.widget.Toast
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle... | 2 | Dart | 93 | 1 | 3ac86ba2d73896d684ce96e1dfe5847b6fa5c5ac | 1,573 | Small_Projects | MIT License |
app/src/main/java/com/github/iielse/imageviewer/demo/business/ViewerHelper.kt | iielse | 79,318,521 | false | null | package com.github.iielse.imageviewer.demo.business
import androidx.fragment.app.FragmentActivity
import com.github.iielse.imageviewer.ImageViewerBuilder
import com.github.iielse.imageviewer.ImageViewerDialogFragment
import com.github.iielse.imageviewer.core.DataProvider
import com.github.iielse.imageviewer.core.Trans... | 2 | null | 275 | 1,874 | bf0cd1f46c97c6fbc41ea78242a513c7fe54b24a | 2,145 | imageviewer | MIT License |
app/src/full/java/com/celzero/bravedns/ui/fragment/CustomDomainFragment.kt | celzero | 270,683,546 | false | null | /*
* Copyright 2021 RethinkDNS and its 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 361 | null | 92 | 2,928 | d618c0935011642592e958d2b420d5d154e0cd79 | 11,979 | rethink-app | Apache License 2.0 |
app/src/main/java/com/avanisoam/nordicnews/di/DataSourceModule.kt | avanisoam | 803,286,041 | false | {"Kotlin": 172341} | package com.avanisoam.nordicnews.di
import com.avanisoam.nordicnews.data.repository.ApiRepository
import org.koin.dsl.module
val remoteDataSourceModule = module {
factory { ApiRepository(get()) }
} | 0 | Kotlin | 0 | 0 | b1b100ce848e914d8b0849a563408dd5d0eae70c | 204 | NordicNews | MIT License |
idea/tests/testData/inspectionsLocal/replaceNegatedIsEmptyWithIsNotEmpty/simple.kt | JetBrains | 278,369,660 | false | null | // WITH_STDLIB
// FIX: Replace negated 'isEmpty' with 'isNotEmpty'
fun test() {
val list = listOf(1,2,3)
if (!list.<caret>isEmpty()) {
}
} | 1 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 151 | intellij-kotlin | Apache License 2.0 |
app/src/main/java/com/xuan/knowshine/logic/network/PlaceService.kt | wangxuanzhu | 399,161,400 | false | null | package com.xuan.knowshine.logic.network
import com.xuan.knowshine.KnowShineApplication
import com.xuan.knowshine.logic.model.PlaceResponse
import retrofit2.http.GET
import retrofit2.http.Query
import retrofit2.Call
interface PlaceService {
@GET("v2/city/lookup?key=${KnowShineApplication.TOKEN}")
fun searchPl... | 0 | Kotlin | 0 | 0 | 0488a12ecbcfa33a65598e183c775d2ac86bc365 | 381 | KnowShine | Apache License 2.0 |
core/network/src/main/kotlin/org/skyfaced/network/model/CharacterDto.kt | SkyfaceD | 538,354,635 | false | {"Kotlin": 110832} | package org.skyfaced.network.model
import kotlinx.serialization.Serializable
import org.skyfaced.network.model.filter.util.Gender
import org.skyfaced.network.model.filter.util.GenderSerializer
import org.skyfaced.network.model.filter.util.Status
import org.skyfaced.network.model.filter.util.StatusSerializer
@Serializ... | 0 | Kotlin | 0 | 0 | 4350bcc84f191f5756d507fcb871d86a346432e5 | 741 | rick-and-morty | MIT License |
fladle-plugin/src/main/java/com/osacky/flank/gradle/FlankJavaExec.kt | uberbinge | 352,751,848 | true | {"Kotlin": 163449, "Java": 1344} | package com.osacky.flank.gradle
import org.gradle.api.file.ProjectLayout
import org.gradle.api.tasks.JavaExec
import javax.inject.Inject
open class FlankJavaExec @Inject constructor(projectLayout: ProjectLayout) : JavaExec() {
init {
group = FladlePluginDelegate.TASK_GROUP
main = "ftl.Main"
workingDir(p... | 0 | Kotlin | 0 | 0 | f93fc27404d6f6c5f45ebcf20244103526cb7b57 | 463 | fladle | Apache License 2.0 |
app/src/main/java/com/diegoalvis/composechat/features/conversation/ConversationComponent.kt | diegoalvis | 773,009,887 | false | {"Kotlin": 13516} | package com.diegoalvis.composechat.features.conversation
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import android... | 0 | Kotlin | 0 | 0 | 67cf0ca7440174fec6703c79b55f47fdbb52ce60 | 5,235 | chat-app-compose | MIT License |
http4k-serverless/lambda/src/main/kotlin/org/http4k/serverless/InvocationLambdaFunction.kt | s4nchez | 258,724,328 | false | null | package org.http4k.serverless
import com.amazonaws.services.lambda.runtime.Context
import com.amazonaws.services.lambda.runtime.RequestStreamHandler
import org.http4k.core.HttpHandler
import org.http4k.core.Method.POST
import org.http4k.core.Request
import org.http4k.core.Response
import java.io.InputStream
import jav... | 1 | null | 1 | 1 | 220590204fe37a9a22723dbdc9b6cfbbcaf5f975 | 1,437 | http4k | Apache License 2.0 |
src/main/kotlin/dev/paulshields/chronomancy/common/KoinExtensions.kt | Pkshields | 333,756,390 | false | null | package dev.paulshields.chronomancy.common
import org.koin.core.KoinApplication
inline fun <reified TClass : Any> KoinApplication.getInstance() = this.koin.get<TClass>()
| 0 | Kotlin | 0 | 0 | 9a6cfe2ba145c5904d98c391417a23ef01876923 | 172 | Chronomancy | MIT License |
todo-inmemory-repository/src/commonTest/kotlin/com/kmpdroidcon/inmemory/repository/InMemoryTodoDataSourceTest.kt | kmpdroidcon20 | 296,592,134 | false | null | package com.kmpdroidcon.inmemory.repository
import com.kmpdroidcon.core.model.TodoItem
import com.kmpdroidcon.todokmp.datasource.InMemoryTodoDataSourceImpl
import com.kmpdroidcon.util.threadedTest
import kotlinx.atomicfu.atomic
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertTrue
clas... | 1 | Kotlin | 0 | 7 | 67f788a9c952152649123057fc10e33a484728ea | 1,447 | todokmp | Apache License 2.0 |
src/main/kotlin/com/networkedassets/gherkin/runner/specification/FeatureSpecification.kt | NetworkedAssets | 120,890,153 | false | null | package com.networkedassets.gherkin.runner.specification
import com.networkedassets.gherkin.runner.GherkinRunner
import com.networkedassets.gherkin.runner.exception.InvalidMetadataManipulationException
import com.networkedassets.gherkin.runner.gherkin.GherkinFeature
import com.networkedassets.gherkin.runner.gherkin.St... | 3 | Kotlin | 4 | 7 | b57d6f90acd5183511aa988040d4f33ddcba5bdb | 2,695 | gherkin-runner | Apache License 2.0 |
samples/user-interface/haptics/src/main/java/com/example/platform/ui/haptics/bounce/BounceRoute.kt | android | 623,336,962 | false | null | /*
* Copyright (C) 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 app... | 197 | null | 185 | 977 | 0479d2e8697c5d986d8ac7c135399e408bea78c8 | 13,118 | platform-samples | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.