path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/example/jetpack_compose_all_in_one/third_party_lib/stripe/IntegrateStripe.kt | myofficework000 | 626,474,700 | false | {"Kotlin": 1392414} | package com.example.jetpack_compose_all_in_one.third_party_lib.stripe
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.l... | 21 | Kotlin | 22 | 222 | 4de5418608d6917b5c97fac7d868454c424daa26 | 3,664 | Jetpack-Compose-All-in-one-Guide | MIT License |
aad-klient/src/main/kotlin/no/nav/dagpenger/aad/api/TokenClient.kt | jhsveli | 422,134,112 | true | {"Kotlin": 66464, "Java": 2002} | package no.nav.dagpenger.aad.api
import com.natpryce.konfig.Configuration
import com.natpryce.konfig.EnvironmentVariables
import io.ktor.client.HttpClient
import no.nav.dagpenger.aad.http.defaultHttpClient
import no.nav.dagpenger.aad.impl.TokenClient
interface ClientCredentialsClient {
suspend fun getAccessToken(... | 0 | null | 0 | 0 | 95ff9731951b386901b89a8b9f4d3799dd5c58d0 | 2,003 | dp-biblioteker | MIT License |
library/core/engine/src/test/kotlin/de/lise/fluxflow/engine/step/data/StepDataServiceImplTest.kt | lisegmbh | 740,936,659 | false | null | package de.lise.fluxflow.engine.step.data
import de.lise.fluxflow.api.event.EventService
import de.lise.fluxflow.api.step.InvalidStepStateException
import de.lise.fluxflow.api.step.Status
import de.lise.fluxflow.api.step.Step
import de.lise.fluxflow.api.step.stateful.data.*
import de.lise.fluxflow.api.workflow.Workflo... | 20 | null | 0 | 7 | b893e79a93122d79846143a25cd4aa83111cc13f | 10,584 | fluxflow | Apache License 2.0 |
app/src/main/java/com/qmc/permissionx/MainActivity.kt | QiMengChao | 439,169,463 | false | null | package com.qmc.permissionx
import android.Manifest
import android.content.Intent
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.Toast
import com.qmc.library.PermissionCallback
import com.qmc.library.PermissionX
class ... | 0 | Kotlin | 0 | 0 | 5d8d6865044d7a5e502d13730c75cfc8f866dce6 | 1,135 | PermissionX | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/cloudwatch/RangePropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.cloudwatch
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector
@Generated
public fun buildRangeProperty(initializer: @AwsCdkDsl
CfnAnomalyDetector.RangeProp... | 1 | Kotlin | 0 | 0 | a1cf8fbfdfef9550b3936de2f864543edb76348b | 455 | aws-cdk-kt | Apache License 2.0 |
plugins/ComposeAuthUI/src/commonMain/kotlin/io/github/jan/supabase/compose/auth/ui/FormComponent.kt | supabase-community | 495,084,592 | false | {"Kotlin": 726383} | package io.github.jan.supabase.compose.auth.ui
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.saveable.rememberSaveable
import io.github.jan.supabase.an... | 16 | Kotlin | 33 | 303 | b39b2fcd0320be7d26a481d3dc93d3e955b37000 | 1,329 | supabase-kt | MIT License |
api-gateway/api-gateway-infra/src/main/kotlin/com/jmsoftware/maf/apigateway/remote/AuthCenterWebClient.kt | johnnymillergh | 240,563,247 | false | null | package com.jmsoftware.maf.apigateway.remote
import cn.hutool.json.JSONUtil
import com.jmsoftware.maf.common.bean.ResponseBodyBean
import com.jmsoftware.maf.common.domain.authcenter.permission.GetPermissionListByRoleIdListPayload
import com.jmsoftware.maf.common.domain.authcenter.permission.Permission
import com.jmsof... | 1 | null | 4 | 11 | 67917520e69c3f2a47fdd06817e9421cd4d82159 | 4,470 | muscle-and-fitness-server | Apache License 2.0 |
vcs/api/src/main/kotlin/ru/ivk1800/vcs/api/command/ShowCommand.kt | ivk1800 | 577,871,072 | false | {"Kotlin": 377020} | package ru.ivk1800.vcs.api.command
/**
* https://git-scm.com/docs/git-show
*/
interface ShowCommand : Command<List<String>> {
data class Options(val fileName: String)
}
| 0 | Kotlin | 1 | 0 | c4721d7f90b4eaed9634d7855847cdd42a58be3d | 176 | diff-compose | MIT License |
app/src/main/java/io/nosyntax/foundation/presentation/component/AppBar.kt | nosyntax-io | 683,553,348 | false | {"Kotlin": 199456} | package io.nosyntax.foundation.presentation.component
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.size
import androidx.compo... | 3 | Kotlin | 0 | 0 | a29b2eb06368848ebca9f10a107e314484092ce2 | 5,220 | nosyntax-foundation | MIT License |
src/main/java/ca/mcgill/science/tepid/server/auth/SessionManager.kt | ctf | 138,677,497 | false | {"Kotlin": 231277, "TSQL": 17082, "JavaScript": 9042, "Java": 5582, "PLpgSQL": 1931, "Dockerfile": 512} | package ca.mcgill.science.tepid.server.auth
import ca.mcgill.science.tepid.models.data.FullSession
import ca.mcgill.science.tepid.models.data.FullUser
import ca.mcgill.science.tepid.server.db.DB
import ca.mcgill.science.tepid.server.db.Id
import ca.mcgill.science.tepid.server.util.logMessage
import org.apache.logging.... | 1 | Kotlin | 2 | 2 | 6d7a9a33c7d2c3518d62acb7467c8f3e2c27b9f5 | 2,546 | TEPID-Server | Apache License 2.0 |
src/main/java/tornadofx/ItemControls.kt | johnp | 60,869,468 | false | null | package tornadofx
import javafx.beans.binding.Bindings
import javafx.beans.property.ObjectProperty
import javafx.beans.property.Property
import javafx.beans.property.ReadOnlyObjectWrapper
import javafx.beans.value.ObservableValue
import javafx.collections.ObservableList
import javafx.geometry.Pos
import javafx.scene.c... | 1 | null | 1 | 1 | d7697b8fb48bae5941d04e0c68f157b0f3a60da7 | 14,846 | tornadofx | Apache License 2.0 |
src/main/java/tornadofx/ItemControls.kt | johnp | 60,869,468 | false | null | package tornadofx
import javafx.beans.binding.Bindings
import javafx.beans.property.ObjectProperty
import javafx.beans.property.Property
import javafx.beans.property.ReadOnlyObjectWrapper
import javafx.beans.value.ObservableValue
import javafx.collections.ObservableList
import javafx.geometry.Pos
import javafx.scene.c... | 1 | null | 1 | 1 | d7697b8fb48bae5941d04e0c68f157b0f3a60da7 | 14,846 | tornadofx | Apache License 2.0 |
plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/actions/CodeWhispererLearnMoreAction.kt | aws | 91,485,909 | false | null | // Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.jetbrains.services.codewhisperer.actions
import com.intellij.icons.AllIcons
import com.intellij.ide.BrowserUtil
import com.intellij.openapi.actionSystem.AnAction
import com.i... | 519 | null | 220 | 757 | a81caf64a293b59056cef3f8a6f1c977be46937e | 860 | aws-toolkit-jetbrains | Apache License 2.0 |
winter/src/test/kotlin/io/jentz/winter/TypeKeyTest.kt | beyama | 107,642,059 | false | {"Gradle": 17, "Ruby": 1, "Markdown": 3, "INI": 14, "YAML": 2, "Shell": 1, "Text": 1, "Ignore List": 15, "Batchfile": 1, "Kotlin": 158, "Proguard": 5, "XML": 15, "AsciiDoc": 1, "Java Properties": 1, "Java": 21} | package io.jentz.winter
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test
class TypeKeyTest {
interface TestInterface
class TestClass
@Test
fun `TypeKey should not be equal to null`() {
@Suppress("SENSELESS_COMPARISON")
assertFalse(typeKey<TestInterface>() =... | 2 | Kotlin | 2 | 12 | 51b49c6da3bad69b549b343093322a86f0615703 | 3,925 | winter | Apache License 2.0 |
wallet-entity/src/main/kotlin/com/wallet/biz/domain/vo/TransferRecordVo.kt | GalaxySciTech | 339,935,435 | false | {"Kotlin": 273747, "CSS": 210000, "HTML": 94074, "PLpgSQL": 76509, "Java": 56269, "JavaScript": 47624, "SCSS": 25514, "Dockerfile": 1104, "Shell": 1071} | package com.wallet.biz.domain.vo
import io.swagger.annotations.ApiModel
/**
* Created by pie on 2019-03-08 16: 55.
*/
@ApiModel
class TransferRecordVo{
} | 5 | Kotlin | 40 | 99 | d52e8f7f4b151676be9b98dc2c85b912b06cf536 | 160 | java-wallet | MIT License |
src/main/kotlin/pfister/quickercrafting/client/gui/GuiQuickerCrafting.kt | PfisterFactor | 214,296,611 | false | null | package pfister.quickercrafting.client.gui
import com.google.common.collect.Ordering
import net.minecraft.client.Minecraft
import net.minecraft.client.audio.PositionedSoundRecord
import net.minecraft.client.gui.Gui
import net.minecraft.client.gui.GuiButton
import net.minecraft.client.gui.GuiTextField
import net.minecr... | 15 | null | 1 | 8 | 49c82081412af20095946acae08e9a94f781e615 | 24,517 | QuickerCrafting | MIT License |
dsl/src/main/kotlin/org/kotlinq/dsl/extensions/StringExtensionScope.kt | prestongarno | 98,687,463 | false | {"Git Config": 1, "Gradle": 10, "XML": 1, "Shell": 2, "Ignore List": 1, "Batchfile": 1, "YAML": 2, "Text": 1, "Markdown": 8, "Kotlin": 130, "GraphQL": 3, "Java": 5, "ANTLR": 2, "Java Properties": 1, "INI": 1} | package org.kotlinq.dsl.extensions
import org.kotlinq.api.Fragment
import org.kotlinq.dsl.ScalarSymbol
import org.kotlinq.dsl.fields.FreeProperty
interface StringExtensionScope {
/** kotlin.String type hint */
val string: ScalarSymbol get() = ScalarSymbol.StringSymbol
/** kotlin.Int type hint */
val integer... | 1 | null | 1 | 1 | a9e8dab66e2704aab1434f76cff7129d84494796 | 2,612 | kotlinq | Apache License 2.0 |
app/src/main/java/app/runchallenge/controller/service/BaseLocalService.kt | afTrolle | 186,638,043 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "JSON": 2, "Kotlin": 93, "XML": 53, "Java": 1} | package app.runchallenge.controller.service
import android.app.Service
import android.content.Intent
import android.os.Binder
import android.os.IBinder
import androidx.core.app.ServiceCompat
import app.runchallenge.controller.provider.notification.MyNotification
import app.runchallenge.controller.provider.notification... | 1 | null | 1 | 1 | 9e34724edd53a1c6248d03d7939070b9ac8bd791 | 1,353 | Run-Challenge-Public | MIT License |
sample-kotlin/src/main/kotlin/io/nrbtech/rxandroidble/samplekotlin/example4_characteristic/advanced/PresenterEvent.kt | NRB-Tech | 344,305,734 | false | null | package com.polidea.rxandroidble2.samplekotlin.example4_characteristic.advanced
/**
* Operation type for result or error.
*/
internal enum class Type {
READ, WRITE, NOTIFY, INDICATE
}
/**
* A dummy sealed class hierarchy to indicate what events may be emitted by the [Presenter].
*/
internal sealed class Pres... | 58 | null | 579 | 8 | 03aee7d68725de31b89cde8100038fce3de97098 | 677 | RxAndroidBle | Apache License 2.0 |
http4k-security-oauth/src/main/kotlin/org/http4k/security/oauth/server/AccessTokens.kt | ivoanjo | 191,435,900 | true | {"Kotlin": 1317952, "JavaScript": 133282, "Java": 33142, "Shell": 13287, "HTML": 3080, "CSS": 832} | package org.http4k.security.oauth.server
import com.natpryce.Result
import org.http4k.security.AccessTokenContainer
/**
* Provides a consistent way to generate access tokens
*/
interface AccessTokens {
/**
* Creates a new access token for a valid authorization code
*/
fun create(authorizationCode:... | 0 | Kotlin | 1 | 0 | fa676e96619f2d516d5e94e81760dbdb3082f35b | 672 | http4k | Apache License 2.0 |
app/src/main/java/com/huawei/multikits/kotlin/activity/MainActivity.kt | huaweicodelabs | 325,434,340 | false | {"Java": 51246, "Kotlin": 50370} | /**
*Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
*
* 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
*
*... | 1 | null | 1 | 1 | 6b8d54d397918284fcc82d98fb899e039238bdec | 9,286 | NearbyPlaceSearch-Location-Site-Map | Apache License 2.0 |
app/src/main/java/jp/juggler/subwaytooter/api/MisskeyAccountDetailMap.kt | Kansattica | 194,987,270 | true | {"Git Config": 1, "Gradle": 9, "Perl": 6, "Java Properties": 2, "Shell": 1, "Ignore List": 8, "Batchfile": 1, "Text": 14, "Markdown": 1, "JSON": 6, "INI": 1, "Proguard": 6, "XML": 199, "Java": 34, "YAML": 1, "Kotlin": 256} | package jp.juggler.subwaytooter.api
import jp.juggler.subwaytooter.api.entity.*
import jp.juggler.subwaytooter.table.SavedAccount
import java.util.concurrent.ConcurrentHashMap
object MisskeyAccountDetailMap {
private class AccountKey(
val db_id : Long,
val id : EntityId
) {
override fun hashCode() : Int ... | 0 | Kotlin | 0 | 0 | afbe3927e1c832807c3f2d8d8421b97623a4a2b7 | 1,081 | SubwayTooter | Apache License 2.0 |
src/main/java/org/codinjutsu/tools/nosql/solr/SolrUI.kt | Argelbargel | 126,160,918 | true | {"Text": 3, "Gradle": 2, "Shell": 2, "Markdown": 1, "Batchfile": 1, "XML": 13, "Ignore List": 1, "Kotlin": 215, "Java": 83, "JSON": 11, "INI": 1} | package org.codinjutsu.tools.nosql.solr
import com.intellij.openapi.project.Project
import org.codinjutsu.tools.nosql.commons.DatabaseUI
import org.codinjutsu.tools.nosql.commons.view.NoSqlResultView
import org.codinjutsu.tools.nosql.commons.view.SimpleDatabasePanel
import org.codinjutsu.tools.nosql.commons.view.authe... | 0 | Java | 0 | 0 | 2dd1f087cd00a7049a7245f56c7dafab7292c4fc | 973 | nosql4idea | Apache License 2.0 |
src/main/com/antevorta/onlinestore/ebay/model/ShipToLocationAvailability.kt | rukins | 575,743,702 | false | {"Java": 83334, "Kotlin": 16286, "Dockerfile": 152} | package com.antevorta.onlinestore.ebay.model
data class ShipToLocationAvailability (
var allocationByFormat: AllocationByFormat? = null, var availabilityDistributions: AvailabilityDistributions? = null,
var quantity: Long? = null
) | 1 | null | 1 | 1 | efc641aeabd4f0be5d9a264d7d0a233dabb4bf58 | 240 | Antevorta-backend | MIT License |
app/src/main/java/com/paypay/currencyconverter/utils/ConverterIntent.kt | mnhmasum | 523,544,422 | false | null | package com.paypay.currencyconverter.utils
import com.paypay.currencyconverter.database.models.CurrencyResponse
sealed class ConverterIntent {
object Fetch : ConverterIntent()
class Convert(val amount: Double, val baseRate: Double?) : ConverterIntent()
class UpdateSpinner(val currencyResponse: CurrencyRes... | 0 | Kotlin | 0 | 2 | d1e1a4288748388ef4ef5a7a19937e37d285329e | 349 | Currency-Converter-MVVM | Apache License 2.0 |
app/src/main/java/ru/stream/recycleradapters/presentation/view/delegatedadapter/DelegatedAdapterFragment.kt | maxlord | 172,469,470 | false | null | package ru.stream.recycleradapters.presentation.view.delegatedadapter
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.fragment.app.Fragment
import kotlinx.android.synthetic.main.fragment_regular_adapter.*
imp... | 0 | Kotlin | 0 | 1 | 47f640c1468741504ffc046e2509bc4624f6b311 | 2,891 | recycler-adapters | MIT License |
src/main/kotlin/org/rust/ide/inspections/import/AutoImportFix.kt | bc-lee | 172,264,916 | true | {"Kotlin": 3735705, "Rust": 96440, "Python": 42124, "Lex": 18940, "HTML": 12345, "Shell": 760, "Java": 586, "RenderScript": 318} | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.inspections.import
import com.intellij.codeInsight.intention.HighPriorityAction
import com.intellij.codeInspection.LocalQuickFixOnPsiElement
import com.intellij.ide.DataManager
import com.in... | 0 | Kotlin | 0 | 0 | eba8b308ae107e64ef8fee1c5d698e9f808484a7 | 23,202 | intellij-rust | MIT License |
sdk/analytics/src/test/java/com/klaviyo/analytics/state/PersistentObservableProfileTest.kt | klaviyo | 282,284,680 | false | {"Kotlin": 326207} | package com.klaviyo.analytics.state
import com.klaviyo.analytics.model.PROFILE_ATTRIBUTES
import com.klaviyo.analytics.model.ProfileKey
import com.klaviyo.fixtures.BaseTest
import io.mockk.verify
import java.io.Serializable
import org.junit.Assert.assertEquals
import org.junit.Assert.fail
import org.junit.Test
class ... | 3 | Kotlin | 2 | 7 | 798d03d44f4711b6c27508a29165239c7994e344 | 3,922 | klaviyo-android-sdk | MIT License |
Jokes/app/src/main/java/dev/beewise/jokes/scenes/jokes/JokesPresenter.kt | BeeWise | 613,737,271 | false | null | package dev.beewise.jokes.scenes.jokes
import android.graphics.drawable.Drawable
import android.widget.ImageView
import com.github.marlonlom.utilities.timeago.TimeAgo
import com.github.marlonlom.utilities.timeago.TimeAgoMessages
import dev.beewise.jokes.application.JokesApplicationLocalization
import dev.beewise.jokes... | 0 | Kotlin | 0 | 1 | 658fe6be6e868fb3ffec5e0c684049d88f8febb3 | 11,289 | jokes-android-app | MIT License |
app/src/main/java/az/siftoshka/cubemate/db/ResultDAO.kt | siftoshka | 280,178,045 | false | null | package az.siftoshka.cubemate.db
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import kotlinx.coroutines.flow.Flow
@Dao
interface ResultDAO {
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun inse... | 0 | Kotlin | 0 | 1 | ca116f4f1ad617964adbbe0212f26d1286d7191f | 1,161 | CubeMate | MIT License |
expenser/android/app/src/main/kotlin/com/example/expenser/MainActivity.kt | PurvaG1700 | 324,533,543 | false | {"Dart": 16443, "HTML": 1505, "Swift": 404, "Kotlin": 125, "Objective-C": 38} | package com.example.expenser
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 1 | 9b10964c2f3a07345351ee371953d9642f3fdc9d | 125 | Expense-Tracker | MIT License |
app/src/main/java/com/example/stringcalculator/login/LoginPresenter.kt | JorgeNun | 227,338,809 | false | null | package com.example.stringcalculator.login
class LoginPresenter(private val kataService: KataService, private val view: LoginPresenterView) {
fun onLoginButtonClicked(userName: String, pass: String) {
if (kataService.logIn(userName, pass)) {
view.goToLogOutScreen()
} else {
... | 0 | Kotlin | 0 | 0 | a7f787555171d0e1aa6c97a870e398c44587c121 | 473 | StringCalculator | Apache License 2.0 |
composeApp/src/desktopMain/kotlin/nl/mdsystems/ui/components/table/headers/AddiotnalContentFilesHeader.kt | MikeDirven | 866,569,963 | false | {"Kotlin": 100228} | package nl.mdsystems.ui.components.table.headers
import androidx.compose.foundation.layout.*
import androidx.compose.material.Divider
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.comp... | 17 | Kotlin | 0 | 1 | 95fdf5b088c5790efcc9be1d3db64fa34f7f3078 | 1,596 | jpackager | Apache License 2.0 |
purchases/src/main/kotlin/com/revenuecat/purchases/ProrationMode.kt | RevenueCat | 127,346,826 | false | {"Kotlin": 2947929, "Java": 80848, "Ruby": 28005, "Shell": 443} | package com.revenuecat.purchases
import android.os.Parcelable
import kotlinx.android.parcel.IgnoredOnParcel
/**
* Contains information about the proration mode to use in case of a product upgrade.
* Use the platform specific subclasses in each implementation.
* @property name Identifier of the proration mode to be... | 27 | Kotlin | 42 | 231 | 6b595dff8e056db73136741c45234be07b8244be | 501 | purchases-android | MIT License |
app/src/main/java/com/aleksandrovych/purchasepal/whatToBuy/add/AddWhatToBuyViewModel.kt | DreHubOff | 766,229,895 | false | {"Kotlin": 73567} | package com.aleksandrovych.purchasepal.whatToBuy.add
import com.aleksandrovych.purchasepal.domain.SaveWhatToBuyInteractor
import com.aleksandrovych.purchasepal.ui.base.BaseViewModel
import com.aleksandrovych.purchasepal.whatToBuy.WhatToBuy
import com.aleksandrovych.purchasepal.whatToBuy.suggestion.WhatToBuySuggestion
... | 1 | Kotlin | 0 | 0 | c19d6a1dea383e2c536f7488ab0e679da4d23ff4 | 1,536 | Purchase-pal | MIT License |
src/main/kotlin/shirates/core/logging/MessageRecord.kt | ldi-github | 538,873,481 | false | {"Kotlin": 3680123, "JavaScript": 12703, "CSS": 5036} | package shirates.core.logging
data class MessageRecord(
var id: String,
var message: String
)
| 0 | Kotlin | 0 | 8 | b4b3cecbd663506f4adfc850916832b856c2d2b6 | 103 | shirates-core | Apache License 2.0 |
src/main/kotlin/ru/quipy/controller/UserController.kt | 1martin1 | 730,663,607 | false | {"Kotlin": 45513, "Dockerfile": 353} | package ru.quipy.controller
import org.springframework.web.bind.annotation.*
import ru.quipy.api.UserCreatedEvent
import ru.quipy.config.Services
import ru.quipy.logic.UserAggregateState
import ru.quipy.logic.create
import java.util.*
@RestController
@RequestMapping("/users")
class UserController(
val services: S... | 0 | Kotlin | 0 | 0 | b28767161742d60a39b0423a94bfcb07f2d84461 | 950 | ppo-banks | Apache License 2.0 |
service/src/main/kotlin/app/cash/backfila/service/scheduler/RunnerSchedulerServiceModule.kt | cashapp | 209,384,085 | false | null | package app.cash.backfila.service.scheduler
import app.cash.backfila.service.persistence.BackfilaDb
import misk.ServiceModule
import misk.inject.KAbstractModule
import misk.jdbc.SchemaMigratorService
class RunnerSchedulerServiceModule : KAbstractModule() {
override fun configure() {
install(
ServiceModule... | 50 | null | 49 | 31 | 5d9f39a12fd4dc95533889978d70b043a817b287 | 421 | backfila | Apache License 2.0 |
service/src/main/kotlin/app/cash/backfila/service/scheduler/RunnerSchedulerServiceModule.kt | cashapp | 209,384,085 | false | null | package app.cash.backfila.service.scheduler
import app.cash.backfila.service.persistence.BackfilaDb
import misk.ServiceModule
import misk.inject.KAbstractModule
import misk.jdbc.SchemaMigratorService
class RunnerSchedulerServiceModule : KAbstractModule() {
override fun configure() {
install(
ServiceModule... | 50 | null | 49 | 31 | 5d9f39a12fd4dc95533889978d70b043a817b287 | 421 | backfila | Apache License 2.0 |
ok-user-mp-common/src/jsTest/kotlin/ru/otus/otuskotlin/common/validators/mathjs.kt | otuskotlin | 265,139,735 | false | null | @file:JsModule("mathjs")
@file:JsNonModule
package ru.otus.otuskotlin.common.validators
@JsName("sqrt")
external fun sqrt1(x: dynamic): dynamic
| 1 | Kotlin | 2 | 1 | 1b652434201714e5081252b18cda0dccfd4dfdb4 | 145 | otuskotlin-user | MIT License |
code-generator/common/src/main/kotlin/app/test.kt | BlackLight54 | 677,289,397 | false | {"Kotlin": 86008, "Circom": 71496, "Prolog": 30543, "ANTLR": 5604, "JavaScript": 4402, "Open Policy Agent": 3507, "Shell": 1250} | package hu.bme.app
fun main() {
val grandparent_code = """
male(john).
male(james).
male(bob).
male(tom).
female(anna).
female(lisa).
female(susan).
female(mary).
parent(john, james).
parent(john, lisa).
parent(anna, james).
parent(anna, lisa).
parent(james, bob).
parent(james, susan).
parent(lisa, mary... | 0 | Kotlin | 1 | 3 | ddb659d3eaf2736b4da2c7e5dc3acadf228a509c | 6,733 | Self-Evaluated-Policies-w-ZKPs | Apache License 2.0 |
backend/src/test/kotlin/com/tul/backend/auth/controller/AuthUserControllerTests.kt | MocStepan | 780,467,538 | false | {"Kotlin": 86279, "TypeScript": 48872, "HTML": 5458, "CSS": 2111} | package com.tul.backend.auth.controller
import com.tul.backend.auth.base.valueobject.EmailAddress
import com.tul.backend.auth.dto.LoginDTO
import com.tul.backend.auth.dto.RegisterDTO
import com.tul.backend.auth.service.AuthUserService
import io.kotest.core.spec.style.FeatureSpec
import io.kotest.matchers.shouldBe
impo... | 3 | Kotlin | 0 | 0 | db6b4c89c2bd5363a3a00d54240a11a55cdadeb6 | 2,761 | STIN-semestral-project | MIT License |
ktor-swagger-ui/src/main/kotlin/io/github/smiley4/ktorswaggerui/dsl/config/SchemaConfig.kt | SMILEY4 | 526,907,299 | false | {"Kotlin": 280386} | package io.github.smiley4.ktorswaggerui.dsl.config
import io.github.smiley4.ktorswaggerui.data.*
import io.github.smiley4.ktorswaggerui.dsl.OpenApiDslMarker
import io.github.smiley4.schemakenerator.swagger.data.CompiledSwaggerSchema
import io.swagger.v3.oas.models.media.Schema
import kotlin.reflect.KType
import kotlin... | 7 | Kotlin | 25 | 138 | 058fbbf3dd2d99f6784e26844d0b9b4141f2953f | 2,027 | ktor-swagger-ui | Apache License 2.0 |
src/main/kotlin/Normalize.kt | intsuc | 593,938,763 | false | null | import kotlinx.collections.immutable.persistentListOf
import kotlinx.collections.immutable.plus
import Core as C
import Value as V
// Temporarily disable laziness to find bugs eagerly.
inline fun <T> lazy(
block: () -> T,
): Lazy<T> {
return lazyOf(block())
}
/**
* Creates an empty environment.
*/
fun emptyEnv(... | 3 | Kotlin | 0 | 3 | f7c6e2765f9b1ea5564c9ff0ecae2f0a0e177790 | 6,553 | lambda_d | MIT License |
common/src/main/kotlin/flank/common/Json.kt | Flank | 84,221,974 | false | {"Kotlin": 1748173, "Java": 101254, "Swift": 41229, "Shell": 10674, "Objective-C": 10006, "Dart": 9705, "HTML": 7235, "Gherkin": 4210, "TypeScript": 2717, "Ruby": 2272, "JavaScript": 1764, "SCSS": 1365, "Batchfile": 1183, "EJS": 1061, "Go": 159} | package flank.common
import org.json.JSONObject
fun Map<*, *>.toJSONObject() = JSONObject(this)
| 64 | Kotlin | 115 | 676 | b40904b4e74a670cf72ee53dc666fc3a801e7a95 | 98 | flank | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/OctagonExclamation.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.bold
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
i... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,965 | icons | MIT License |
kotest-framework/kotest-framework-engine/src/jvmTest/kotlin/com/sksamuel/kotest/engine/test/interceptors/EnabledCheckTestExecutionInterceptorTest.kt | stavares843 | 402,840,224 | true | {"Kotlin": 3128487, "CSS": 352, "Java": 145} | package com.sksamuel.kotest.engine.test.interceptors
import io.kotest.core.sourceRef
import io.kotest.core.spec.style.FunSpec
import io.kotest.core.spec.toDescription
import io.kotest.core.test.TestCase
import io.kotest.core.test.TestResult
import io.kotest.core.test.TestType
import io.kotest.engine.test.TerminalTestC... | 0 | null | 0 | 0 | 9aae4d2bf1d7be80d310d1c8a407001fd2eab3a8 | 1,686 | kotest | Apache License 2.0 |
sample-app/src/main/java/io/github/seyoungcho2/dynamicthemesample/theme/shape/Shapes.kt | seyoungcho2 | 636,721,439 | false | null | package io.github.seyoungcho2.dynamicthemesample.theme.shape
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Shapes
import androidx.compose.ui.unit.dp
object Shapes {
val DEFAULT_ROUNDED_SHAPE = Shapes(
small = RoundedCornerShape(8.dp),
medium = Rounded... | 0 | Kotlin | 1 | 73 | 2f4c4b8578573c41c652156ca770303ad05ada5a | 390 | ComposeDynamicTheme | Apache License 2.0 |
test-app/src/main/java/com/google/android/renderscript_test/MainActivity.kt | android | 358,694,907 | false | null | /*
* Copyright (C) 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 7 | Assembly | 18 | 114 | b6363490c3bb64ddf2ec2308ad62eadb68c50ae3 | 2,942 | renderscript-intrinsics-replacement-toolkit | Apache License 2.0 |
kodando-react-dom/src/main/kotlin/kodando/react/dom/HtmlElementProps.kt | kodando | 81,663,289 | false | null | @file:Suppress("UnsafeCastFromDynamic")
package kodando.mithril.elements
external interface HtmlElementProps : HtmlNodeProps {
var accept: String?
var acceptCharset: String?
@JsName("accesskey")
var accessKey: String?
var allowFullScreen: Boolean?
var allowTransparency: Boolean?
var async: Boolean?... | 12 | null | 5 | 76 | f1428066ca01b395c1611717fde5463ba0042b19 | 2,355 | kodando | MIT License |
src/main/kotlin/com/hedley/groceriesstats/purchase/PurchaseRepositoryImpl.kt | hedleygois | 677,382,996 | false | {"Kotlin": 55695, "Dockerfile": 160} | package com.hedley.groceriesstats.purchase
import com.hedley.groceriesstats.franchises.Franchise
import com.hedley.groceriesstats.itempurchase.ItemPurchaseDTO
import com.hedley.groceriesstats.itempurchase.ItemPurchaseRepository
import com.hedley.groceriesstats.supermarkets.Supermarket
import com.hedley.groceriesstats.... | 0 | Kotlin | 0 | 0 | ba764285c81451b09339e084151e452896c1312c | 6,166 | groceries-stats | Apache License 2.0 |
src/main/kotlin/com/hedley/groceriesstats/purchase/PurchaseRepositoryImpl.kt | hedleygois | 677,382,996 | false | {"Kotlin": 55695, "Dockerfile": 160} | package com.hedley.groceriesstats.purchase
import com.hedley.groceriesstats.franchises.Franchise
import com.hedley.groceriesstats.itempurchase.ItemPurchaseDTO
import com.hedley.groceriesstats.itempurchase.ItemPurchaseRepository
import com.hedley.groceriesstats.supermarkets.Supermarket
import com.hedley.groceriesstats.... | 0 | Kotlin | 0 | 0 | ba764285c81451b09339e084151e452896c1312c | 6,166 | groceries-stats | Apache License 2.0 |
app/src/main/java/org/oppia/app/topic/review/TopicReviewFragment.kt | maheshpaliwal | 232,016,634 | true | {"Kotlin": 1352652} | package org.oppia.app.topic.review
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import org.oppia.app.fragment.InjectableFragment
import org.oppia.app.model.SkillSummary
import javax.inject.Inject
/** Fragment that car... | 0 | null | 0 | 0 | a8b15f5d0bf496fc5c9f1a595fe20a859ab6b287 | 962 | oppia-android | Apache License 2.0 |
KotlinPL/src/main/kotlin/course/beginning/loops.kt | FredNekrasov | 808,976,328 | false | {"Kotlin": 15810} | package course.beginning
// let's learn how to use loops in Kotlin
fun main() {
val numbers = intArrayOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
// int ranges
val range = 1..10// This is an integer range from 1 to 10 inclusive
val reversedRange = 10 downTo 1// This is an integer range from 10 to 1 inclusive
... | 0 | Kotlin | 0 | 0 | cf8530e9be0159f661ea6491d43be608215b539a | 1,831 | Basics | MIT License |
app/src/main/java/com/chrynan/launcher/repository/AppMaskRepository.kt | chRyNaN | 161,240,007 | false | null | package com.chrynan.launcher.repository
import com.chrynan.launcher.model.AppMask
import io.reactivex.Completable
import io.reactivex.Single
interface AppMaskRepository {
fun getAllAppMasks(): Single<List<AppMask>>
fun updateAllAppMasks(appMasks: List<AppMask>): Completable
} | 0 | Kotlin | 0 | 0 | c226fc3997b0e76bcb237e2d09ee47ceed5bad2e | 288 | Launcher | Apache License 2.0 |
j2k/tests/testData/ast/inheritance/file/classOneExtendsBaseWithOneParam.kt | chirino | 3,596,099 | true | null | open class Base(name : String?) {
}
open class One(name : String?, second : String?) : Base(name) {
} | 0 | Java | 28 | 71 | ac434d48525a0e5b57c66b9f61b388ccf3d898b5 | 101 | kotlin | Apache License 2.0 |
app/src/main/java/io/github/vladimirmi/internetradioplayer/presentation/root/RootPresenter.kt | VladimirMi | 132,266,318 | false | null | package io.github.vladimirmi.internetradioplayer.presentation.root
import android.annotation.SuppressLint
import android.net.Uri
import io.github.vladimirmi.internetradioplayer.R
import io.github.vladimirmi.internetradioplayer.domain.interactor.*
import io.github.vladimirmi.internetradioplayer.extensions.subscribeX
im... | 2 | Kotlin | 6 | 11 | 3bca269876825dd3c20067ed4b9887fbd1589fa0 | 3,969 | InternetRadioPlayer | MIT License |
idea/testData/inspections/hasPlatformType/property2.kt | msmtmsmt123 | 115,408,045 | true | {"Java": 17854010, "Kotlin": 14873170, "JavaScript": 177557, "Protocol Buffer": 43834, "HTML": 37223, "Lex": 17538, "ANTLR": 9689, "CSS": 9358, "Groovy": 7182, "IDL": 5313, "Shell": 4704, "Batchfile": 3703} | // WITH_RUNTIME
val list = arrayOf(java.lang.String.valueOf(1)) | 0 | Java | 0 | 0 | a09013358194d2540a10c19aa323195984acae20 | 64 | kotlin | Apache License 2.0 |
app/src/main/java/micro/repl/ma7moud3ly/screens/editor/EditorContent.kt | Ma7moud3ly | 622,698,872 | false | null | package micro.repl.ma7moud3ly.screens.editor
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
... | 15 | null | 5 | 76 | 18bdd3a9b8853237f5569e79e1fb185f59d368ac | 8,312 | micro-repl | MIT License |
app/src/main/java/com/dvt/weather/interview/domain/repositories/WeatherRepository.kt | Ryggs | 815,102,045 | false | {"Kotlin": 216639, "Ruby": 2550} | package com.dvt.weather.interview.domain.repositories
import com.google.android.gms.maps.model.LatLng
import com.dvt.weather.interview.data.model.CurrentWeather
import com.dvt.weather.interview.data.model.OneCallResponse
import kotlinx.coroutines.flow.Flow
interface WeatherRepository {
fun getCurrentWeatherByCity... | 23 | Kotlin | 0 | 1 | fbaa548efe3d25b8d54a74e2bf70086d82a59809 | 565 | Weather-Compose | Apache License 2.0 |
app/src/main/java/com/vikaspogu/logit/data/repository/UserPreferencesRepository.kt | Vikaspogu | 832,220,307 | false | {"Kotlin": 177403} | package com.vikaspogu.logit.data.repository
import android.content.ContentValues.TAG
import android.util.Log
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.booleanPreferencesKey
import androidx.datastore.preferences.core.edit
i... | 0 | Kotlin | 0 | 0 | c94413da0571f2374ed667f92097b9ec7672de54 | 2,244 | logit-app | MIT License |
sample-headless/src/main/kotlin/com/alecstrong/sqlite/psi/sample/headless/SampleHeadlessAnnotator.kt | AlecStrong | 100,426,545 | false | null | package com.alecstrong.sql.psi.sample.headless
import com.alecstrong.sql.psi.core.SqlAnnotationHolder
import com.intellij.psi.PsiElement
internal class SampleHeadlessAnnotator : SqlAnnotationHolder {
override fun createErrorAnnotation(element: PsiElement, s: String) {
System.err.println(s)
}
} | 21 | Kotlin | 22 | 74 | 6c1e5423f44220d68e927eb51a2fe202320ad4fb | 304 | sql-psi | Apache License 2.0 |
himataway/src/main/java/com/github/fhenm/himataway/fragment/main/tab/DirectMessagesFragment.kt | fhenm | 146,009,555 | false | {"Java": 485426, "Kotlin": 204574, "Shell": 317} | package com.github.fhenm.himataway.fragment.main.tab
import android.os.AsyncTask
import android.view.View
import java.util.Collections
import com.github.fhenm.himataway.event.model.StreamingDestroyMessageEvent
import com.github.fhenm.himataway.model.Row
import com.github.fhenm.himataway.model.TabManager
import com.g... | 1 | null | 1 | 1 | 315154f72da34a90cfac960f58a7eabdc872dd57 | 4,377 | Himataway-for-Android | MIT License |
app/src/main/java/com/doskoch/template/di/modules/CoreModule.kt | VitaliyDoskoch | 263,280,184 | false | {"Kotlin": 233695, "Shell": 270} | package com.doskoch.template.di.modules
import com.doskoch.template.core.di.CoreComponent
import com.doskoch.template.di.AppComponent
fun coreModule(component: AppComponent) = object : CoreComponent {
override val authDataStore = component.authDataStore
}
| 0 | Kotlin | 0 | 2 | 477c3dbb8ab046b3ab9204912535516c8487e254 | 262 | Template | MIT License |
basicktest/src/main/java/com/mozhimen/basicktest/elemk/androidx/ElemKLifecycleActivity.kt | mozhimen | 353,952,154 | false | {"Kotlin": 1543718, "Java": 3916, "AIDL": 964} | package com.mozhimen.basicktest.elemk.androidx
import android.os.Bundle
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.flowWithLifecycle
import androidx.lifecycle.lifecycleScope
import com.mozhimen.basick.elemk.androidx.appcompat.bases.databinding.BaseActivityVDBVM
import com.mozhimen.basick.taskk.execu... | 1 | Kotlin | 14 | 118 | 369194ccd4d9f75c7c8c01aab94916ea1012ef8f | 2,810 | SwiftKit | Apache License 2.0 |
shared/src/commonMain/kotlin/com/kodatos/shared/platform/SQLProvider.kt | Kodatos | 382,815,535 | false | null | package com.kodatos.shared.platform
import com.squareup.sqldelight.db.SqlDriver
expect class SQLProvider {
val driver: SqlDriver
} | 0 | Kotlin | 0 | 0 | 375662bdb40888891ce34e3aa40c60fe2db5bd43 | 136 | bookmark | Apache License 2.0 |
src/main/java/de/danielscholz/fileIndexer/matching/UnionSeq.kt | DanielScholzde | 255,573,681 | false | null | package de.danielscholz.fileIndexer.matching
import de.danielscholz.fileIndexer.persistence.FileLocation
import java.util.*
/**
* Calculates the union of two collections. Equal entries are taken from collection1!
*/
class UnionSeq(private val mode: EnumSet<MatchMode>, private val errorOnKeyCollision: Boolean) {
... | 1 | Kotlin | 0 | 0 | 442028a179dc8cd43163158e277535c1d8a9601a | 1,178 | FileIndexerAndBackup | Apache License 2.0 |
core/src/commonMain/kotlin/NavigationNodeId.kt | InsanusMokrassar | 535,572,808 | false | null | package dev.inmo.navigation.core
import com.benasher44.uuid.uuid4
import kotlinx.serialization.Serializable
import kotlin.jvm.JvmInline
@Serializable
@JvmInline
value class NavigationNodeId(
val string: String = uuid4().toString()
)
| 1 | Kotlin | 0 | 2 | b5ad8e6ce2d0df3edbd094ad9ee9b6a827fed42f | 239 | navigation | MIT License |
libraries/matrix/test/src/main/kotlin/io/element/android/libraries/matrix/test/media/FakeMediaFile.kt | element-hq | 546,522,002 | false | null | /*
* Copyright (c) 2023 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 263 | null | 129 | 955 | 31d0621fa15fe153bfd36104e560c9703eabe917 | 1,004 | element-x-android | Apache License 2.0 |
semantic-api/application/src/main/kotlin/iscte/ico/semantic/application/model/SchedulingProblemRequest.kt | jasgoncalves | 356,596,332 | false | {"Java": 47297, "Kotlin": 24733, "Dockerfile": 1353} | package iscte.ico.semantic.application.model
data class SchedulingProblemRequest (
val name : String,
val schedulingProblem : SchedulingProblem,
val machines : Array<Machine>,
val order : Order,
val jobFamilies: Array<JobFamily>,
val jobs : Array<Job>,
val tasks : Array<Task>,
val obje... | 1 | null | 1 | 1 | 9367a94ca6b7da42548b9594bbbc23629809b626 | 356 | ico-project | MIT License |
ktx-radix-development/ktx-radix-development-operation-ext/src/main/java/io/arkitik/ktx/radix/develop/operation/ext/operation-builder.kt | arkitik | 305,525,406 | false | null | package io.arkitik.ktx.radix.develop.operation.ext
import io.arkitik.ktx.radix.develop.operation.Operation
import io.arkitik.ktx.radix.develop.operation.OperationRole
import io.arkitik.ktx.radix.develop.operation.Operator
/**
* Created By [*<NAME> *](https://www.linkedin.com/in/iloom/)
* Created At 07 1:06 AM, **... | 1 | Kotlin | 1 | 0 | fc6f66dadecf3ebec5cad051ece06a37828889fb | 2,493 | ktx-radix | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/data/Utils.kt | moinkhan-in | 349,454,045 | 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 | 0 | 90e331ae302144f509cbd519b87327af3c9d93d4 | 2,868 | android-dev-challange-compose-w4 | Apache License 2.0 |
library/src/main/java/com/kvs/samsunghealthreporter/resolver/SleepStageResolver.kt | kvs-coder | 300,033,140 | false | {"Kotlin": 148209} | package com.kvs.samsunghealthreporter.resolver
import com.kvs.samsunghealthreporter.decorator.Filter
import com.kvs.samsunghealthreporter.decorator.SortOrder
import com.kvs.samsunghealthreporter.decorator.addAggregateFunction
import com.kvs.samsunghealthreporter.decorator.addGrouping
import com.kvs.samsunghealthreport... | 0 | Kotlin | 0 | 4 | dc0985f3b0d64e26737d9027d15820a96d072b80 | 4,258 | SamsungHealthReporter | MIT License |
fuzzer/fuzzing_output/crashing_tests/verified/minimized/booleanNotIntrinsic.kt1788411450.kt_minimized.kt | ItsLastDay | 102,885,402 | false | null | fun box(): String {
if (((if (true) {
} else {
((Boolean::not))
})!!)(false) != true)({})
} | 2 | null | 1 | 6 | 56f50fc307709443bb0c53972d0c239e709ce8f2 | 92 | KotlinFuzzer | MIT License |
src/linuxArm32Test/kotlin/dev/brainard/io/ReadTextTest.kt | JohnBrainard | 416,542,952 | false | null | package dev.brainard.io
import kotlin.test.Test
class ReadTextTest {
@Test
fun `readText returns string containing the file text`() {
}
} | 0 | Kotlin | 0 | 0 | 9879ff5b0186944b8a223042fde32775dc095c7a | 153 | sense-hat-kotlin | MIT License |
src/main/kotlin/compass_system/compass_plural_bot/Main.kt | CompassSystem | 723,494,087 | false | {"Kotlin": 24129} | package compass_system.compass_plural_bot
import com.kotlindiscord.kord.extensions.ExtensibleBot
import com.kotlindiscord.kord.extensions.adapters.mongodb.kordExCodecRegistry
import com.kotlindiscord.kord.extensions.utils.env
import com.kotlindiscord.kord.extensions.utils.envOrNull
import com.kotlindiscord.kord.extens... | 0 | Kotlin | 0 | 0 | c9ea0ae277a8fe2f78b80e7d628a4a066c647930 | 2,206 | compass-plural-bot | MIT License |
rtmp/src/test/java/com/pedro/rtmp/flv/audio/AudioConfigTest.kt | pedroSG94 | 79,667,969 | false | {"Java": 1002863, "Kotlin": 666402, "GLSL": 40912} | package com.pedro.rtmp.flv.audio
import org.junit.Assert.assertArrayEquals
import org.junit.Test
class AudioConfigTest {
@Test
fun `GIVEN sps and pps WHEN create a video config for sequence packet THEN return a bytearray with the config`() {
val sampleRate = 44100
val isStereo = true
val objectType =... | 233 | Java | 733 | 2,196 | 03f4405dbf9d2b64be9ae2af61da213f718fc790 | 623 | RootEncoder | Apache License 2.0 |
modules/core/kotlin/com/huskerdev/grapl/core/input/Key.kt | husker-dev | 497,601,112 | false | {"Kotlin": 122000, "C++": 101773, "Objective-C++": 44450, "C": 13798, "Objective-C": 4246, "Java": 215} | package com.huskerdev.grapl.core.input
data class Key(
val code: Int,
val nativeCode: Int,
val char: Char?
)
class KeyEvent(
val key: Key,
modifiers: Int
): InputEvent(modifiers) {
override fun toString(): String {
return "KeyEvent[key:${key}, modifiers:${modifiers}]"
}
} | 1 | Kotlin | 1 | 6 | 854dd731c28d5a1c7df15723d1e3a103b0655d64 | 310 | grapl | Apache License 2.0 |
Motion/app/src/main/java/com/example/android/motion/demo/sharedelement/MirrorView.kt | markgray | 310,272,967 | true | {"Kotlin": 848412, "Java": 100555} | /*
* Copyright 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 applicab... | 0 | Kotlin | 0 | 0 | 411844e4e0598d9852f2e219144a6245a7bded1b | 3,640 | animation-samples | Apache License 2.0 |
app/src/main/java/com/oguzdogdu/wallies/presentation/unsplashprofile/webProfile/UnsplashProfileFragment.kt | oguzsout | 616,912,430 | false | null | package com.oguzdogdu.wallies.presentation.unsplashprofile.webProfile
import android.annotation.SuppressLint
import androidx.navigation.fragment.navArgs
import com.oguzdogdu.wallies.core.BaseFragment
import com.oguzdogdu.wallies.databinding.FragmentUnsplashProfileBinding
import dagger.hilt.android.AndroidEntryPoint
@... | 0 | Kotlin | 0 | 5 | b009b23c4cbc83c083ef9bd72851731004ee997d | 840 | Wallies | MIT License |
src/main/kotlin/com/kn/diagrams/generator/config/CallDiagramConfig.kt | apfau87 | 334,905,051 | true | {"Kotlin": 154715, "Java": 38338} | package com.kn.diagrams.generator.config
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiClass
import com.intellij.psi.PsiMethod
import com.kn.diagrams.generator.generator.Aggregation
import com.kn.diagrams.generator.graph.*
class CallConfiguration(rootClass: String,
va... | 0 | Kotlin | 1 | 0 | 717cb054effd2a823bf4c4d7a5442781c3bfd41d | 1,595 | plantuml-generation-intellij-plugin | Apache License 2.0 |
application/src/main/kotlin/org/gxf/crestdeviceservice/command/exception/CommandValidationException.kt | OSGP | 700,328,489 | false | {"Kotlin": 127647, "Shell": 2314} | // SPDX-FileCopyrightText: Contributors to the GXF project
//
// SPDX-License-Identifier: Apache-2.0
package org.gxf.crestdeviceservice.command.exception
class CommandValidationException(message: String) : Exception(message)
| 1 | Kotlin | 2 | 0 | c22076eb08736ce1611e7643f4e90d9963151dbc | 226 | sng-crest-device-service | Apache License 2.0 |
src/main/kotlin/com/qbutton/elevator/elevator/api/Elevator.kt | arsok | 349,145,557 | false | null | package com.qbutton.elevator.elevator.api
interface Elevator {
fun enter()
fun exit()
fun requestFloor(floorNumber: Int)
} | 0 | Kotlin | 0 | 0 | 62e376abd3354f329b0c37e230e85600e8b43bbe | 137 | elevator | Apache License 2.0 |
core/src/main/kotlin/dataProcessor/DifferentModulesDataProcessor.kt | JetBrains-Research | 340,658,942 | false | null | package dataProcessor
import dataProcessor.entity.LowerTriangularMatrixCounter
import dataProcessor.inputData.FilesChangeset
import util.mappers.Mapper
class DifferentModulesDataProcessor(val modules: Set<String>) : DataProcessorMapped<FilesChangeset>() {
class ModuleMapper : Mapper() {
val moduleToId: Ma... | 0 | Kotlin | 6 | 8 | 6c465903dbb236702bf5b6f496245d0609bd4586 | 2,557 | tnm | MIT License |
kotlin/conta-bancaria/src/main/kotlin/aragao/ellian/github/conta/infra/entrypoint/CliInterface.kt | Ellian-aragao | 227,134,458 | false | null | package aragao.ellian.github.conta.infra.entrypoint
import aragao.ellian.github.conta.domain.models.Conta
import aragao.ellian.github.conta.infra.Factory
import kotlin.system.exitProcess
class CliInterface {
private val regexNomeTitular = Regex("^[a-zA-Z ]*\$")
private fun exibirMenuPrincipal() {
pri... | 3 | Kotlin | 0 | 0 | 2e427d802b182c70a0f9b84686d4fd696f722565 | 5,591 | aleatoriedades | The Unlicense |
circularMenuLayout/src/main/java/com/xattacker/util/WeakReferenceList.kt | xattacker | 134,976,792 | false | {"Kotlin": 15311, "Shell": 454} | package com.xattacker.util
import java.lang.ref.WeakReference
import java.util.*
class WeakReferenceList<T>
{
private val _references: ArrayList<WeakReference<T>>?
val isEmpty: Boolean get() = _references == null || _references.isEmpty()
init
{
_references = ArrayList()
}
fun count(... | 0 | Kotlin | 0 | 0 | 8edbc47e03030d40b502fcf82c4fc83acdce9799 | 2,638 | CircularMenuLayout | MIT License |
app/src/main/java/io/github/emusute1212/makasetechoice/ui/members/MemberListScreen.kt | emusute1212 | 264,396,740 | false | {"Kotlin": 91513} | package io.github.emusute1212.makasetechoice.ui.members
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.com... | 4 | Kotlin | 0 | 0 | 50d38cb8188d05a322ed5ee444ed1e6575a2160f | 7,436 | MakaseteChoiceForAndroid | MIT License |
compProject/src/main/java/com/effective/android/component/project/ComponentProjectImpl.kt | YummyLau | 118,240,800 | false | null | package com.effective.android.component.project
import androidx.fragment.app.Fragment
import com.effective.android.component.project.view.ProjectFragment
import com.plugin.component.anno.AutoInjectImpl
@AutoInjectImpl(sdk = [ComponentProjectSdk::class])
class ComponentProjectImpl : ComponentProjectSdk {
private ... | 1 | Kotlin | 32 | 187 | f9bad2216051e5b848b2d862cab7958f1bcdc5e8 | 538 | AndroidModularArchiteture | MIT License |
src/main/kotlin/adventofcode/year2015/Day05DoesntHeHaveInternElvesForThis.kt | pfolta | 573,956,675 | false | null | package adventofcode.year2015
import adventofcode.Puzzle
import adventofcode.PuzzleInput
class Day05DoesntHeHaveInternElvesForThis(customInput: PuzzleInput? = null) : Puzzle(customInput) {
override val name = "Doesn't He Have Intern-Elves For This?"
override fun partOne() = input
.lines()
.fi... | 0 | Kotlin | 0 | 0 | 3b6f2852057b24fc87ae96624b56b67f255c9e68 | 930 | AdventOfCode | MIT License |
feature/notes/folders/core/src/main/kotlin/ru/maksonic/beresta/feature/notes/folders/core/di/notesFoldersFeatureModel.kt | maksonic | 580,058,579 | false | null | package ru.maksonic.beresta.feature.notes.folders.core.di
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.core.qualifier.named
import org.koin.dsl.module
import ru.maksonic.beresta.common.coroutine_dispatchers.CoroutineDispatchers
import ru.maksonic.beresta.feature.notes.folders.core.screen.core.Folde... | 0 | Kotlin | 0 | 0 | 450010eb1bfd6536222100e659596cf98b3a7d8c | 1,680 | Beresta | MIT License |
application/DevUtilsApp/src/main/java/afkt/project/feature/ui_effect/recy_adapter/linear_snap/LinearSnapAdapter.kt | afkT | 147,776,221 | false | null | package afkt.project.feature.ui_effect.recy_adapter.linear_snap
import afkt.project.R
import afkt.project.databinding.AdapterLinearSnapBinding
import afkt.project.model.bean.ItemBean
import android.view.ViewGroup
import dev.adapter.DevDataAdapter
import dev.base.adapter.DevBaseViewBindingVH
import dev.base.adapter.new... | 2 | null | 302 | 1,329 | 00b0e4638b48b3ed196e74b732e649deb21e9b2d | 1,549 | DevUtils | Apache License 2.0 |
app/src/main/java/com/martinszuc/phishing_emails_detection/data/data_repository/local/component/email_package/EmailPackageRepository.kt | martinszuc | 698,968,668 | false | {"Kotlin": 384800, "Python": 52940} | package com.martinszuc.phishing_emails_detection.data.data_repository.local.component.email_package
import android.net.Uri
import android.util.Log
import com.martinszuc.phishing_emails_detection.data.data_repository.local.component.emails.EmailMboxLocalRepository
import com.martinszuc.phishing_emails_detection.data.da... | 0 | Kotlin | 0 | 0 | dbd6e69a9f81798e3c50b4c44b8df533303c7ba2 | 5,316 | phishing-emails-detection | MIT License |
app/src/main/java/com/xyoye/dandanplay/ui/main/MainActivity.kt | xyoye | 138,993,190 | false | null | package com.xyoye.dandanplay.ui.main
import android.view.KeyEvent
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentTransaction
import androidx.lifecycle.MutableLiveData
import com.alibaba.android.arouter.facade.annotation.Autowired
import com.alibaba.android.arouter.launcher.ARouter
import co... | 57 | null | 93 | 946 | b60bd028ce160ff37aba3eaf70fd0b2cbfa5eab0 | 8,854 | DanDanPlayForAndroid | Apache License 2.0 |
app/src/main/java/me/capcom/smsgateway/modules/notifications/Module.kt | capcom6 | 503,827,141 | false | {"Kotlin": 116477} | package me.capcom.smsgateway.modules.notifications
import org.koin.dsl.module
val notificationsModule = module {
single { NotificationsService(get()) }
} | 5 | Kotlin | 26 | 96 | bc860c17f01cece8c3a43c30e0427948865299dd | 159 | android-sms-gateway | Apache License 2.0 |
sesame/src/main/kotlin/app/surgo/sesame/node/modules/JNDynamicModuleResolver.kt | tsukiymk | 382,220,719 | false | null | package app.surgo.sesame.node.modules
import app.surgo.sesame.node.JNEventLoop
import app.surgo.sesame.node.JNModuleType
import app.surgo.sesame.node.interfaces.IJNModule
import com.caoccao.javet.annotations.V8Function
import com.caoccao.javet.exceptions.JavetException
import com.caoccao.javet.interfaces.IJavetClosabl... | 0 | Kotlin | 0 | 0 | a364fa99ea63c6b18268ad26b3bb4c0a0603a98f | 5,355 | surgo | Apache License 2.0 |
app/src/main/java/com/google/samples/apps/sunflower/userscreen/Registered.kt | Angryestbird | 267,251,847 | false | null | /*
* Copyright 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 applic... | 0 | Kotlin | 1 | 0 | 11c8f4ae77fb480ed4dfe92e2ccd99e18a831526 | 1,853 | orangetv-android | Apache License 2.0 |
app/src/main/java/com/example/mywaycompose/presentation/ui/screen/edit_task_screen/state/UpdateTaskState.kt | larkes-cyber | 739,078,285 | false | {"Kotlin": 573267} | package com.example.mywaycompose.presentation.ui.screen.edit_task_screen.state
data class UpdateTaskState(
val done:Boolean = false
) | 0 | Kotlin | 0 | 1 | b329374b9a5f459e75fb30b7a05a726fce065ceb | 138 | PlannerApp | Apache License 2.0 |
app/src/main/java/com/botob/hcafelocations/view/LocationFragment.kt | boriguen | 457,587,196 | false | null | package com.botob.hcafelocations.view
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.botob.hcafelocations.api.models.Location
import com.botob.hcafelocations.databinding.FragmentLocationBinding
import o... | 0 | Kotlin | 0 | 0 | 4fb396b31969d08139f512f29bd5e8b584c4fa99 | 3,342 | h-cafe-locations-app | MIT License |
src/main/kotlin/online/hudacek/fxradio/viewmodel/ServersViewModel.kt | Joseph5610 | 255,174,080 | false | null | /*
* Copyright 2020 FXRadio by hudacek.online
*
* 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 b... | 3 | Kotlin | 1 | 2 | ba3414e1ea4c5851564d9a69510cab8c1a8ce8c7 | 3,084 | fxradio-main | Apache License 2.0 |
app/src/main/java/com/example/calendarworkoutdatabase/util/DateExtensions.kt | RamziJabali | 398,086,832 | false | {"Kotlin": 14473} | package com.example.calendarworkoutdatabase.util
import java.util.Date
fun Date.isAfterToday(): Boolean = this.after(Date())
| 0 | Kotlin | 0 | 1 | 0818043eb2168bc7e9197b95a5d7663668c83b72 | 127 | calendar-workout-tracker-android | The Unlicense |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.