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/nlptech/function/theme/theme_manage/ThemeManageAdapter.kt | NlptechProduct | 196,529,204 | false | null | package com.nlptech.function.theme.theme_manage
import android.content.Context
import androidx.recyclerview.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.CompoundButton
import com.android.inputmethod.latin.R
import com.android.inputm... | 12 | null | 74 | 181 | e92d5540550810d7373260b0fc26780577dccf16 | 2,174 | Android-Keyboard | Apache License 2.0 |
subprojects/data/src/jvmMain/kotlin/br/com/danielsan/data/Platform.kt | danielsanfr | 276,281,814 | false | {"Gradle Kotlin DSL": 8, "Markdown": 2, "INI": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Kotlin": 27, "Java": 4, "XML": 2} | package br.com.danielsan.data
actual class Platform actual constructor() {
actual inline fun getName(): String = "JS"
}
| 0 | Kotlin | 0 | 0 | 830449f9bfb2fdeb93c883562dc331d5ea23c7b2 | 125 | kotlin-mpp-gradle-mp-template | The Unlicense |
cinescout/lists/presentation/src/main/kotlin/cinescout/lists/presentation/ui/LikedListScreen.kt | 4face-studi0 | 280,630,732 | false | null | package cinescout.lists.presentation.ui
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.testTag
import androidx.compose.ui.tooling.preview.Devices
import androidx.compose.ui.tooling.preview.Preview
import androi... | 19 | Kotlin | 2 | 3 | d64398507d60a20a445db1451bdd8be23d65c9aa | 2,426 | CineScout | Apache License 2.0 |
features/deviations/src/main/kotlin/io/plastique/deviations/viewer/DeviationViewerViewState.kt | plastiqueapp | 150,879,887 | false | null | package io.plastique.deviations.viewer
import io.plastique.core.content.ContentState
import io.plastique.core.content.EmptyState
import io.plastique.core.snackbar.SnackbarState
import io.plastique.deviations.Deviation
import io.plastique.users.User
sealed class DeviationContent {
data class Image(
val url... | 0 | Kotlin | 2 | 9 | 9271853f3741add18822858cbad9d4f8e8104f54 | 1,383 | plastique | Apache License 2.0 |
src/main/kotlin/org/geepawhill/html/model/HtmlVisitor.kt | GeePawHill | 592,949,071 | false | null | package org.geepawhill.html.model
import org.geepawhill.html.css.Selector
import org.geepawhill.html.css.Styles
interface HtmlVisitor {
fun visit(text: String)
fun visit(selector: Selector)
fun visit(tag: AttributeOnlyTag)
fun visit(tag: ContainerTag)
fun visit(styles: Styles)
fun visit(page: ... | 0 | Kotlin | 0 | 2 | 9f3803565ff8f66b3d4c93c6d43625a805945451 | 332 | gph-html | MIT License |
app/src/main/java/moe/feng/danmaqua/ui/settings/pattern/EditPatternRuleDialogFragment.kt | danmaqua | 237,640,502 | false | null | package moe.feng.danmaqua.ui.settings.pattern
import android.app.Dialog
import android.os.Bundle
import android.widget.Button
import androidx.core.os.bundleOf
import androidx.core.widget.addTextChangedListener
import com.google.android.material.textfield.TextInputEditText
import com.google.android.material.textfield.T... | 1 | null | 9 | 137 | 68694b9f1e575af8541680afe96e2a3108338828 | 5,626 | danmaqua-android | Apache License 2.0 |
app/src/main/java/com/beettechnologies/newsapp/main/MainViewModel.kt | beetsolutions | 162,338,193 | false | null | package com.beettechnologies.newsapp.main
import android.arch.lifecycle.*
import com.beettechnologies.newsapp.App
import com.beettechnologies.newsapp.common.data.model.News
import com.beettechnologies.newsapp.common.data.model.Resource
import com.beettechnologies.newsapp.common.data.repository.NewsRepository
import co... | 0 | Kotlin | 0 | 0 | eb9b43f28e3c23385710e6b10199a38bad70efed | 1,145 | newsapp | MIT License |
common/src/main/java/top/wangchenyan/common/permission/Permissioner.kt | wangchenyan | 625,252,978 | false | {"Kotlin": 194684} | package top.wangchenyan.android.common.permission
import android.Manifest
import android.content.Context
import androidx.annotation.MainThread
import com.qw.soul.permission.SoulPermission
import com.qw.soul.permission.bean.Permission
import com.qw.soul.permission.bean.Permissions
import com.qw.soul.permission.bean.Spe... | 0 | Kotlin | 3 | 8 | c094376ea417b20d6093b1b56061b09b15506b07 | 7,687 | android-common | Apache License 2.0 |
dbinspector/src/main/kotlin/com/infinum/dbinspector/domain/shared/mappers/ContentMapper.kt | infinum | 17,116,181 | false | null | package com.infinum.dbinspector.domain.raw.control.mappers
import com.infinum.dbinspector.data.models.local.cursor.output.QueryResult
import com.infinum.dbinspector.domain.Mappers
import com.infinum.dbinspector.domain.shared.models.Page
internal class RawQueryMapper(
private val cellMapper: Mappers.Cell
) : Mappe... | 0 | Kotlin | 93 | 936 | 10b9ac5013ca01e602976a615e754dff7001f11d | 687 | android_dbinspector | Apache License 2.0 |
samples/starter-wearable-app/src/test/kotlin/researchstack/data/repository/SetEcgMeasurementRepositoryImplTest.kt | S-ResearchStack | 520,365,275 | false | {"Kotlin": 178868, "AIDL": 4785} | package researchstack.data.repository
import androidx.datastore.core.IOException
import io.mockk.coEvery
import io.mockk.mockk
import kotlinx.coroutines.launch
import kotlinx.coroutines.test.runTest
import org.junit.Test
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Tag
import researchstack.NEGA... | 5 | Kotlin | 20 | 26 | e31e8055f96fa226745750b5a653e341cf5f2e6c | 1,662 | app-sdk | Apache License 2.0 |
src/test/kotlin/canon/model/ImageTest.kt | rschluesselbauer | 221,240,328 | true | {"Kotlin": 141018, "ANTLR": 1196} | package canon.model
import io.mockk.mockk
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
class ImageTest {
@Test
fun testImageMapping() {
val mapped = Image("testId", "testClass", "testSrc",
"100", "100", "testAlt").toMap(HashMap(), mockk())
... | 0 | null | 0 | 0 | 5e448790e2717a0b8866ca6a98a3c6099c778daf | 565 | canon | MIT License |
common/src/main/java/io/blockv/common/model/Environment.kt | VatomInc | 401,319,567 | true | {"Kotlin": 317235, "Java": 3833} | /*
* BlockV AG. Copyright (c) 2018, all rights reserved.
*
* Licensed under the BlockV SDK License (the "License"); you may not use this file or the BlockV SDK except in
* compliance with the License accompanying it. Unless required by applicable law or agreed to in writing, the BlockV
* SDK distributed under ... | 0 | null | 0 | 1 | e306fc8255172df99eb0f63ba639c58960c29951 | 1,290 | android-sdk | RSA Message-Digest License |
back-end/src/main/kotlin/com/apexdevs/backend/web/controller/entity/domain/DomainRequest.kt | sanctuuary | 360,515,462 | false | null | /*
* This program has been developed by students from the bachelor Computer Science at Utrecht University within the Software Project course.
* © Copyright Utrecht University (Department of Information and Computing Sciences)
*/
package com.apexdevs.backend.web.controller.entity.domain
/**
* Class to send basic do... | 0 | TypeScript | 0 | 2 | 59611f01ff7bc89d7971b26f0354126e7bcde2d3 | 953 | APE-Web | Apache License 2.0 |
app/src/main/java/com/mystic/koffee/petreport/features/actions/actionsReportScreen/ActionsReportFragment.kt | jaumpelicon | 559,013,090 | false | {"Kotlin": 71610} | package com.mystic.koffee.petreport.features.actions.actionsReportScreen
import android.os.Bundle
import android.view.View
import android.widget.Toast
import androidx.activity.OnBackPressedCallback
import androidx.appcompat.content.res.AppCompatResources.getDrawable
import androidx.appcompat.view.ActionMode
import and... | 0 | Kotlin | 0 | 0 | ee888f2cf57e83c855420458db7081e23e9a6f51 | 10,595 | pet-report | MIT License |
data/src/main/java/com/moraware/data/IDataRepository.kt | lpalac4 | 520,184,920 | false | null | package com.moraware.data
import com.moraware.data.base.BaseResponse
import com.moraware.data.interactors.Callback
import com.moraware.data.interactors.Channel
import com.moraware.data.models.*
interface IDataRepository {
fun initializeServices(settings: ApplicationServices?, debug: Boolean)
fun loginUser(r... | 0 | Kotlin | 0 | 0 | 39812a9a320bcebed883b5f6f804dfd43458f816 | 2,933 | mango | MIT License |
template/app/src/main/kotlin/app/di/state/ProvidesNavigationState.kt | kotlitecture | 738,057,168 | false | {"Kotlin": 482607, "HTML": 891} | package app.di.state
import app.showcases.ShowcasesDestination
import app.ui.screen.template.TemplateDestination
import app.userflow.navigation.a.NavigationADestination
import app.userflow.navigation.b.NavigationBDestination
import app.userflow.navigation.c.NavigationCDestination
import app.userflow.passcode.ui.enable... | 0 | Kotlin | 0 | 0 | 505c03c3247d41ea4d5318ad5d93484414a33f5e | 1,687 | template-android-compose | MIT License |
app/src/main/java/com/marktony/zhihudaily/database/dao/DoubanMomentNewsDao.kt | NCCoder1 | 580,979,795 | false | null | /*
* Copyright 2016 lizhaotailang
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 0 | Kotlin | 0 | 2 | deabc062ec138e29f8b34bcea164c8ef49881175 | 1,764 | Paper | Apache License 2.0 |
src/main/kotlin/com/guardsquare/appsweep/gradle/Configuration.kt | Guardsquare | 388,719,549 | false | null | package com.guardsquare.appsweep.gradle
class Configuration(
val baseURL: String,
val apiKey: String,
val skipLibraryFile: Boolean,
val tags: List<String>?
)
| 1 | Kotlin | 2 | 26 | 0dd6aa49447cfd8e9cddb9f436c72a0088b955cd | 175 | appsweep-gradle | Apache License 2.0 |
features/home/src/main/java/io/github/japskiddin/sudoku/feature/home/HomeFeatureUI.kt | Japskiddin | 766,410,608 | false | {"Kotlin": 41212} | package io.github.japskiddin.sudoku.feature.home
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.... | 0 | Kotlin | 0 | 0 | e1347891b956736459059e8e07f5eef03f3ef1fd | 4,086 | SudokuGame | Apache License 2.0 |
shared/src/commonTest/kotlin/org/noise_planet/noisecapture/shared/signal/TestFFT.kt | nicolas-f | 716,113,143 | false | {"Kotlin": 112776, "Ruby": 1801, "Swift": 631, "HTML": 352, "CSS": 134} | package org.noise_planet.noisecapture.shared.signal
import kotlin.math.PI
import kotlin.math.ceil
import kotlin.math.log2
import kotlin.math.pow
import kotlin.math.sin
import kotlin.test.Test
import kotlin.test.assertEquals
class TestFFT {
private fun generateSinusoidalSignal(
frequency: Double,
s... | 6 | Kotlin | 0 | 1 | 436a5314ba35bef20ceed80384e165f5b4e7c684 | 1,827 | NoiseCaptureKotlin | Apache License 2.0 |
src/main/kotlin/com/dp/advancedgunnerycontrol/weaponais/tags/PrioritisePDTag.kt | DesperatePeter | 361,380,141 | false | null | package com.dp.advancedgunnerycontrol.weaponais.tags
import com.dp.advancedgunnerycontrol.weaponais.*
import com.fs.starfarer.api.combat.CombatEntityAPI
import com.fs.starfarer.api.combat.MissileAPI
import com.fs.starfarer.api.combat.ShipAPI
import com.fs.starfarer.api.combat.WeaponAPI
// Prioritises missiles > fight... | 0 | Kotlin | 3 | 9 | 514c3a1b9bd3f16ad6d0c602c9d9bdd9b50fb9fb | 1,218 | starsector-advanced-weapon-control | MIT License |
kt/godot-library/src/main/kotlin/godot/gen/godot/SceneReplicationConfig.kt | utopia-rise | 289,462,532 | false | {"Kotlin": 1457093, "C++": 480040, "GDScript": 465051, "C#": 10278, "C": 8523, "Shell": 7976, "Java": 2136, "CMake": 939, "Python": 75} | // THIS FILE IS GENERATED! DO NOT EDIT IT MANUALLY!
@file:Suppress("PackageDirectoryMismatch", "unused", "FunctionName", "RedundantModalityModifier",
"UNCHECKED_CAST", "JoinDeclarationAndAssignment", "USELESS_CAST",
"RemoveRedundantQualifierName", "NOTHING_TO_INLINE", "NON_FINAL_MEMBER_IN_OBJECT",
"Redundan... | 51 | Kotlin | 30 | 426 | fc2f3eacf779c21ce18d2161cca63e6dffdb1c91 | 5,313 | godot-kotlin-jvm | MIT License |
ktvn/src/test/kotlin/com/github/benpollarduk/ktvn/text/frames/SizeConstrainedTextFrameTest.kt | benpollarduk | 710,310,174 | false | {"Kotlin": 436387} | package com.github.benpollarduk.ktvn.text.frames
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
import java.awt.Font
class SizeConstrainedTextFrameTest {
@Test
fun `given text that fits on 1 line when create then 1 frame returned`() {
// Given
val text = "Here is som... | 2 | Kotlin | 0 | 9 | 4326fc7c0bcba099a57d21382407e090dc625bd9 | 4,494 | ktvn | MIT License |
ktvn/src/test/kotlin/com/github/benpollarduk/ktvn/text/frames/SizeConstrainedTextFrameTest.kt | benpollarduk | 710,310,174 | false | {"Kotlin": 436387} | package com.github.benpollarduk.ktvn.text.frames
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
import java.awt.Font
class SizeConstrainedTextFrameTest {
@Test
fun `given text that fits on 1 line when create then 1 frame returned`() {
// Given
val text = "Here is som... | 2 | Kotlin | 0 | 9 | 4326fc7c0bcba099a57d21382407e090dc625bd9 | 4,494 | ktvn | MIT License |
YRWidget/src/main/java/com/apemans/quickui/picker/HourMinPicker.kt | xiongwen-lin | 480,680,777 | false | null | package com.apemans.quickui.picker
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.LinearLayout
import android.widget.NumberPicker
import com.apemans.quickui.databinding.LayoutHourMinPickerBinding
/***********************************************... | 0 | Kotlin | 0 | 0 | 84704832a8a27e22fa5642ae092af50e2905b952 | 2,873 | SmartFastUi | Apache License 2.0 |
knet/core/src/main/java/com/vk/knet/core/http/HttpResponse.kt | VKCOM | 407,564,319 | false | null | /**
* The MIT License (MIT)
*
* Copyright (c) 2019 vk.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy... | 1 | Kotlin | 4 | 71 | ed7629a09e81a1a5f9aff260d3df5dc2230a5ad2 | 3,330 | KNet | MIT License |
instrumentation/runner/src/test/kotlin/de/mannodermaus/junit5/AndroidJUnit5BuilderTests.kt | mannodermaus | 69,637,233 | false | {"Kotlin": 404577, "Java": 15952, "Groovy": 5167} | package de.mannodermaus.junit5
import android.os.Build
import com.google.common.truth.Truth.assertThat
import de.mannodermaus.junit5.testutil.AndroidBuildUtils.withApiLevel
import de.mannodermaus.junit5.testutil.AndroidBuildUtils.withMockedInstrumentation
import org.junit.jupiter.api.DynamicContainer.dynamicContainer
... | 9 | Kotlin | 52 | 863 | 8089c75235112149b6911c55111dc109b4b8f66c | 2,850 | android-junit5 | Apache License 2.0 |
core/src/main/kotlin/com/weedow/spring/data/search/descriptor/SearchDescriptor.kt | gitter-badger | 310,432,814 | true | {"Kotlin": 400259, "Java": 16661, "ANTLR": 2692} | package com.weedow.spring.data.search.descriptor
import com.weedow.spring.data.search.dto.DefaultDtoMapper
import com.weedow.spring.data.search.dto.DtoMapper
import com.weedow.spring.data.search.join.handler.EntityJoinHandler
import com.weedow.spring.data.search.validation.DataSearchValidator
import org.springframewor... | 0 | null | 0 | 0 | d6a214fa822bd2b694625358c157d2bf715de27e | 4,248 | spring-data-search | MIT License |
src/test/kotlin/no/nav/arbeidsgiver/sykefravarsstatistikk/api/infrastruktur/kafka/KafkaClientIntegrasjonTest.kt | navikt | 201,881,144 | false | {"Kotlin": 763312, "Shell": 1600, "Dockerfile": 213} | package no.nav.arbeidsgiver.sykefravarsstatistikk.api.infrastruktur.kafka
import ia.felles.definisjoner.bransjer.Bransjer
import net.javacrumbs.jsonunit.assertj.assertThatJson
import config.SykefraværsstatistikkLocalTestApplication
import no.nav.arbeidsgiver.sykefravarsstatistikk.api.applikasjon.fellesdomene.ÅrstallOg... | 1 | Kotlin | 2 | 0 | f2e2935e3c91d83013de849a90408c6b698a3fc1 | 6,343 | sykefravarsstatistikk-api | MIT License |
app/src/main/java/com/hossainkhan/vision/data/HkVisionWorker.kt | hossain-khan | 262,681,367 | false | null | package com.hossainkhan.vision.data
import android.content.Context
import android.util.Log
import androidx.core.net.toUri
import androidx.work.Constraints
import androidx.work.NetworkType
import androidx.work.OneTimeWorkRequestBuilder
import androidx.work.WorkManager
import androidx.work.Worker
import androidx.work.Wo... | 2 | null | 0 | 5 | 54c61d6b366881490b6f7808d01ff52c18b535a6 | 3,944 | android-hk-vision-muzei-plugin | Apache License 2.0 |
components/bridge/dao/impl/src/main/java/com/flipperdevices/bridge/dao/impl/api/parsers/NFCParser.kt | flipperdevices | 288,258,832 | false | null | package com.flipperdevices.bridge.dao.impl.api.parsers
import com.flipperdevices.bridge.dao.api.model.FlipperKey
import com.flipperdevices.bridge.dao.api.model.parsed.FlipperKeyParsed
private const val KEY_TYPE = "Device type"
private const val KEY_UID = "UID"
class NFCParser : KeyParserDelegate {
override suspe... | 2 | Kotlin | 29 | 266 | ea066973aaca66c6c5338912397d59a7c8b658d1 | 700 | Flipper-Android-App | MIT License |
app/src/main/java/reach52/marketplace/community/resident/view/ResidentPreviewFragment.kt | reach52 | 422,514,975 | false | {"Kotlin": 1436380, "Java": 18303} | package reach52.marketplace.community.resident.view
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 androidx.lifecycle.ViewModelProvider
import com.jakewharton.rxbinding3.view.cli... | 0 | Kotlin | 0 | 0 | 629c52368d06f978f19238d0bd865f4ef84c23d8 | 5,639 | Marketplace-Community-Edition | MIT License |
src/main/kotlin/cn/yiiguxing/plugin/translate/util/credential/StringCredentialManager.kt | YiiGuxing | 60,159,997 | false | {"Kotlin": 954187, "HTML": 95020, "Java": 92135} | @file:Suppress("unused")
package cn.yiiguxing.plugin.translate.util.credential
/**
* String credential manager interface.
*/
interface StringCredentialManager {
/** The credential. */
var credential: String?
/** Returns `true` if the credential is set. */
val isCredentialSet: Boolean
/**
... | 55 | Kotlin | 784 | 11,282 | f47c7506fdcd7e3914ddb446ab034fb2c0834e51 | 418 | TranslationPlugin | MIT License |
Common/src/main/kotlin/possible_triangle/skygrid/data/xml/DimensionConfig.kt | PssbleTrngle | 174,212,271 | false | null | package possible_triangle.skygrid.data.xml
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.Transient
import net.minecraft.core.Registry
import net.minecraft.core.RegistryAccess
import net.minecraft.nbt.CompoundTag
import net.minecraft.nbt.NbtOps
import net... | 3 | Kotlin | 1 | 11 | d7f8e7d8722a1b0607bc74cd11047517f6eb4b82 | 6,224 | Skygrid | Creative Commons Zero v1.0 Universal |
src/jvmMain/kotlin/blue/starry/gerolt/weather/Period.kt | horoscope-dev | 190,531,110 | false | null | package blue.starry.gerolt.weather
import blue.starry.gerolt.time.EorzeaTime
val EorzeaTime.nextWeatherPeriod: EorzeaTime
get() {
return when {
hour < 8 -> {
EorzeaTime(year, month, day, 8, 0)
}
hour < 16 -> {
EorzeaTime(year, month, day,... | 13 | Kotlin | 1 | 1 | 4b5a7cb10109ed2af62fa64132f1519c4bb364f5 | 648 | Gerolt | MIT License |
src/main/java/de/tum/www1/orion/ui/browser/IBrowser.kt | ls1intum | 203,402,411 | false | {"Kotlin": 242001, "Java": 12516} | package de.tum.www1.orion.ui.browser
import org.cef.handler.CefLoadHandler
import org.cef.handler.CefMessageRouterHandler
import javax.swing.JComponent
/**
* Interface for [BrowserService]
*/
interface IBrowser {
val uiComponent: JComponent
val isInitialized: Boolean
/**
* Used to add handlers tha... | 7 | Kotlin | 7 | 31 | 6b323b99485b7e00187de4dbd8436040218a75b7 | 1,062 | Orion | MIT License |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/ArrowCircleRight.kt | Konyaco | 574,321,009 | false | null |
package com.konyaco.fluent.icons.filled
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Filled.ArrowCircleRight: ImageVector
get() {
if (_arrowCircleRight !... | 1 | null | 3 | 83 | 9e86d93bf1f9ca63a93a913c990e95f13d8ede5a | 2,122 | compose-fluent-ui | Apache License 2.0 |
increase-java-core/src/main/kotlin/com/increase/api/services/async/DeclinedTransactionServiceAsync.kt | Increase | 614,596,462 | false | {"Kotlin": 10835729, "Shell": 3638, "Dockerfile": 399} | // File generated from our OpenAPI spec by Stainless.
@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
package com.increase.api.services.async
import com.increase.api.core.RequestOptions
import com.increase.api.models.DeclinedTransaction
import com.increase.api.models.Declin... | 1 | Kotlin | 0 | 3 | 0df00547244c75a524bf33646de61aea3c82aca7 | 1,046 | increase-java | Apache License 2.0 |
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Probot.kt | DevSrSouza | 311,134,756 | false | null | package compose.icons.simpleicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Butt
import androidx.compose.ui.graphics.StrokeJoin.Miter
import androidx.compose.ui.graphics... | 17 | null | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 5,576 | compose-icons | MIT License |
examples/paxos/PaxosModelTest.kt | google | 630,096,488 | false | null | /*
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 0 | Kotlin | 1 | 5 | c55b53cf7203462624209f81a7148934b95919f9 | 1,869 | model-verifier-in-kotlin | Apache License 2.0 |
app/src/main/java/com/akshay/catchflicks/ui/base/BaseItemViewHolder.kt | anandwana001 | 229,725,618 | false | null | /*
* MIT License
*
* Copyright (c) 2020 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | 7 | Kotlin | 3 | 12 | 8afa4f0b390c46281655872f00111d657fa145b5 | 4,763 | catchflicks | MIT License |
app/src/main/java/com/inspirati/nutriapp/network/ApiClient.kt | michaeloki | 296,335,976 | false | null | package com.inspirati.nutriapp.network
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.inspirati.nutriapp.AppExecutors
import com.inspirati.nutriapp.model.FoodResponse
import com.inspirati.nutriapp.model.RecipeResult
import com.inspirati.nutriapp.utils.Constants.API_KEY
import ... | 1 | Kotlin | 1 | 1 | 7570beab1fbe16a3155aa062252b69fc2ca02734 | 2,690 | nutri-app | MIT License |
core/src/main/java/com/ymy/core/utils/DensityUtil.kt | hybridappnest | 409,475,593 | false | {"Java": 3496922, "Kotlin": 641137, "JavaScript": 5699} | package com.ymy.core.utils
import android.content.Context
import com.ymy.core.Ktx
/**
* Created on 2020/7/9 20:18.
* @author:hanxueqiang
* @version: 1.0.0
* @desc:
*/
object DensityUtil {
fun dip2px(context: Context, dpValue: Float): Int {
val scale = context.resources.displayMetrics.density
... | 0 | Java | 6 | 11 | b1fd25a909463f631e4c98cdfdd27e77d82164f7 | 1,211 | AppNestAndroid | Apache License 2.0 |
common-ui/bindings/src/main/java/com/ant/bindings/TmdbBindingsAdapter.kt | toaderandrei | 786,415,615 | false | {"Kotlin": 270589, "Java": 376} | package com.ant.bindings
import android.graphics.drawable.Drawable
import android.view.View
import android.widget.ImageView
import androidx.appcompat.widget.AppCompatTextView
import androidx.databinding.BindingAdapter
import coil.load
import com.ant.common.listeners.FavoriteCallback
import com.ant.common.utils.Youtube... | 1 | Kotlin | 0 | 0 | b7691975f404ee834a4567cf6dfbdea77086aeb2 | 4,973 | popular-movies-kt | MIT License |
serve-app/Partner/src/main/java/org/evidyaloka/partner/ui/home/dsm/DsmSchoolAdapter.kt | Sunbird-Serve | 607,662,046 | false | null | package org.evidyaloka.partner.ui.home.dsm
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.navigation.findNavController
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import ... | 0 | Kotlin | 1 | 0 | 6d8d170333e2d32c808e608863e02e076dc06a73 | 7,107 | serve-beta-android-app | MIT License |
app/src/main/java/com/mcmp2023/s/ui/admin/adminusers/AdminUserUiStatus.kt | S-B-Corporation | 649,775,096 | false | {"Kotlin": 122677} | package com.mcmp2023.s.ui.admin.adminusers
import com.mcmp2023.s.data.db.models.UserModel
import java.lang.Exception
sealed class AdminUserUiStatus {
object Resume : AdminUserUiStatus()
class Error(val exception: Exception) : AdminUserUiStatus()
data class ErrorWithMessage(val message: String) : AdminU... | 0 | Kotlin | 0 | 0 | 2a6ba547eb84bdacc295efdfc93827393d18500b | 413 | AplicationSB | MIT License |
shared/src/androidMain/kotlin/main.android.kt | MakiloTeam | 660,116,254 | false | null | import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import com.google.accompanist.permissions.rememberPermissionState
import android.Manifest
import android.content.Context
import android.webkit.WebView
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose... | 0 | Kotlin | 0 | 0 | 813210a7b786c4fafb7aa1f83faf470108c939c4 | 4,117 | beacon-app | Apache License 2.0 |
src/main/kotlin/io/pivotal/trilogy/testcase/GenericTrilogyTestCase.kt | louishust | 118,467,527 | true | {"Kotlin": 205000, "PLSQL": 9831, "Shell": 6958, "PLpgSQL": 371} | package io.pivotal.trilogy.testcase
class GenericTrilogyTestCase (override val description: String,
override val tests: List<GenericTrilogyTest>,
override val hooks: TestFixtures,
override val malformedTests: List<MalformedTrilog... | 0 | Kotlin | 0 | 0 | d578f76bc096649406a00751c2c7536182daa0a5 | 359 | trilogy | MIT License |
basick/src/main/java/com/mozhimen/basick/utilk/java/lang/UtilKSystemProperties.kt | mozhimen | 353,952,154 | false | null | package com.mozhimen.basick.utilk.dalvik.system
import android.annotation.SuppressLint
import android.os.Build
import android.util.Log
import com.mozhimen.basick.elemk.cons.CPackage
import com.mozhimen.basick.elemk.cons.CVersCode
import com.mozhimen.basick.utilk.android.os.UtilKBuild
import com.mozhimen.basick.utilk.a... | 0 | null | 6 | 112 | 65aafd7a13e36f475d6c08092797cd2227a5e7d5 | 3,416 | SwiftKit | Apache License 2.0 |
src/main/kotlin/dev/staticsanches/kge/image/pixelmap/buffer/PixelBuffer.kt | staticsanches | 796,330,735 | false | {"Kotlin": 212509} | package dev.staticsanches.kge.image.pixelmap.buffer
import dev.staticsanches.kge.annotations.KGESensitiveAPI
import dev.staticsanches.kge.image.Colors
import dev.staticsanches.kge.image.IntColorComponent
import dev.staticsanches.kge.image.Pixel
import dev.staticsanches.kge.image.pixelmap.PixelMap
import dev.staticsanc... | 0 | Kotlin | 0 | 2 | 60694d6b5c2ad5e603008be1c6984dc6aee69167 | 6,106 | kge | MIT License |
leic43d/EchoServer/src/main/kotlin/pt/isel/leic/pc/echo/Main_ST.kt | isel-leic-pc | 466,188,773 | false | null | package pt.isel.leic.pc.echo
import org.slf4j.LoggerFactory
import java.io.BufferedReader
import java.io.BufferedWriter
import java.io.InputStreamReader
import java.io.OutputStreamWriter
import java.net.ServerSocket
import java.net.Socket
private const val EXIT = "exit"
private val logger = LoggerFactory.getLogger("S... | 0 | Kotlin | 0 | 8 | a9c586ee9563cf46340cdfd5de5a9981839a8af9 | 2,021 | s2122v-li43d-li41n | MIT License |
lightspark-sdk/src/commonMain/kotlin/com/lightspark/sdk/model/MultiSigAddressValidationParameters.kt | lightsparkdev | 590,703,408 | false | {"Kotlin": 1689958, "Java": 34937, "Dockerfile": 1719, "Shell": 490} | // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
@file:Suppress("ktlint:standard:max-line-length")
package com.lightspark.sdk.model
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
*
* @param counterpartyFundingPubkey The counterparty funding public ke... | 1 | Kotlin | 1 | 4 | b966c6681e77906e6b3b659c01a9bce05b55fdf9 | 1,281 | kotlin-sdk | Apache License 2.0 |
blockchain/src/main/kotlin/pt/um/lei/masb/blockchain/data/DataFormula.kt | brunofmf | 166,305,210 | true | {"Kotlin": 240087} | package pt.um.lei.masb.blockchain.data
import java.math.BigDecimal
import java.math.MathContext
typealias DataFormula = (
base: Int,
timeBase: Int,
deltaTime: BigDecimal,
valueBase: Int,
deltaValue: BigDecimal,
constant: Int,
threshold: Int,
mathContext: MathContext
) -> BigDecimal
f... | 0 | Kotlin | 0 | 0 | 1655c032f274f078e1d7e9fa525dcada3b6499dc | 1,156 | mas-blockchain-main | MIT License |
examples/graphql/src/main/kotlin/example/micronaut/graphql/IdGenerator.kt | test-automation-in-practice | 516,747,931 | false | {"Kotlin": 178} | package example.micronaut.graphql
import jakarta.inject.Singleton
import java.util.*
@Singleton
class IdGenerator {
fun generateId(): UUID = UUID.randomUUID()
}
| 3 | Kotlin | 1 | 2 | 700e9b171200a71b7880e43b937b21bc05eb33f7 | 167 | cnt-micronaut | Apache License 2.0 |
game/plugins/src/main/kotlin/gg/rsmod/plugins/content/magic/SpellMetadata.kt | AlterRSPS | 421,831,790 | false | null | package gg.rsmod.plugins.content.magic
import gg.rsmod.game.model.item.Item
/**
* @author Tom <rspsmods@gmail.com>
*/
data class SpellMetadata(val interfaceId: Int, val component: Int, val paramItem: Int, val spellbook: Int,
val spellType: Int, val name: String, val lvl: Int, val items: Lis... | 8 | null | 33 | 22 | 9de9acfd3be7353c0c749179b3a7be8aab49b53b | 328 | Alter | Apache License 2.0 |
data/db/src/main/java/io/github/droidkaigi/feeder/data/DatabaseModule.kt | DroidKaigi | 283,062,475 | false | null | package io.github.droidkaigi.feeder.data
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
@InstallIn(SingletonComponent::class)
@Module
class DatabaseModule {
@Provides
internal fun provideDatabase(driverFactory: DriverFactory): Database... | 45 | Kotlin | 189 | 633 | 3fb47a7b7b245e5a7c7c66d6c18cb7d2a7b295f2 | 413 | conference-app-2021 | Apache License 2.0 |
core/src/main/java/com/tess/core/modules/CoreModule.kt | Harrypulvirenti | 173,557,613 | false | null | package com.tess.core.modules
import com.tess.core.database.SettingsRepository
import com.tess.core.database.SettingsRepositoryImpl
import com.tess.core.service.SettingsService
import com.tess.core.service.SettingsServiceImpl
import com.tess.core.viewmodel.TestViewModel
import org.koin.androidx.viewmodel.dsl.viewModel... | 1 | null | 1 | 15 | 71e2514a2a2f4ebe7ceac7af7840db9d9fda10a6 | 542 | TESS | Apache License 2.0 |
gadget-widget/widgetAnnotation/src/main/kotlin/zhupf/gadget/widget/WidgetDsl.kt | Zhupff | 728,943,815 | false | {"Kotlin": 146372} | package zhupf.gadget.widget
@Target(AnnotationTarget.CLASS, AnnotationTarget.FIELD)
@Retention(AnnotationRetention.SOURCE)
annotation class WidgetDsl(
val alias: String,
val qualifiedName: String = "",
) | 0 | Kotlin | 0 | 1 | f21208d09ef9ce85a009b95198a441e94afff682 | 212 | gadgets | Apache License 2.0 |
src/commonTest/kotlin/com.adamratzman/spotify/utilities/JsonTests.kt | molikuner | 324,819,514 | true | {"Kotlin": 630854} | /* Spotify Web API, Kotlin Wrapper; MIT License, 2017-2020; Original author: <NAME> */
package com.adamratzman.spotify.utilities
import com.adamratzman.spotify.api
import com.adamratzman.spotify.models.Album
import com.adamratzman.spotify.models.Artist
import com.adamratzman.spotify.models.ArtistUri
import com.adamrat... | 0 | null | 0 | 0 | edd40ec84cc6d93511bb07fe48498df27cc5e831 | 4,192 | spotify-web-api-kotlin | MIT License |
src/test/kotlin/ch/ranil/aoc/aoc2022/Day01.kt | stravag | 572,872,641 | false | null | import org.junit.jupiter.api.Test
import kotlin.math.max
import kotlin.test.assertEquals
object Day01 : AbstractDay() {
@Test
fun tests() {
assertEquals(24000, part1(testInput))
assertEquals(70374, part1(puzzleInput))
assertEquals(45000, part2(testInput))
assertEquals(204610, p... | 0 | Kotlin | 1 | 0 | ea7f4306271e44e7ff53a485931f01399a981923 | 1,464 | aoc-2022 | Apache License 2.0 |
pluto/src/main/java/com/mocklets/pluto/modules/network/BodyTransformer.kt | mocklets | 459,260,997 | false | null | package com.mocklets.pluto.modules.network
import android.content.Context
import com.mocklets.pluto.R
import com.mocklets.pluto.core.DebugLog
import com.mocklets.pluto.core.extensions.color
import com.mocklets.pluto.core.ui.spannable.createSpan
import com.mocklets.pluto.modules.network.interceptor.doUnZipToString
impo... | 0 | null | 2 | 8 | 87dc5a27272e0fc5c38e042fa95689a143ae5446 | 5,112 | pluto | Apache License 2.0 |
contracts/src/main/kotlin/jp/datachain/corda/ibc/serialization/ConnectionEndSerializer.kt | siburu | 373,552,389 | true | {"Kotlin": 356049, "Rust": 34369, "Go": 28274, "Makefile": 5792, "Python": 1918, "Dockerfile": 1618, "Shell": 1057, "Batchfile": 795} | package jp.datachain.corda.ibc.serialization
import ibc.core.connection.v1.Connection
import net.corda.core.serialization.SerializationCustomSerializer
import net.corda.core.utilities.OpaqueBytes
class ConnectionEndSerializer: SerializationCustomSerializer<Connection.ConnectionEnd, ConnectionEndSerializer.Proxy> {
... | 0 | Kotlin | 0 | 0 | 79f70a81a06352d47873f53d114361544a1e7bc3 | 605 | yui-corda-ibc | Apache License 2.0 |
ton-kotlin-liteapi/src/commonMain/kotlin/org/ton/lite/api/liteserver/LiteServerBlockData.kt | andreypfau | 448,983,229 | false | null | package org.ton.lite.api.liteserver
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import org.ton.api.tonnode.TonNodeBlockIdExt
import org.ton.tl.*
@Serializable
@SerialName("liteServer.blockData")
public class LiteServerBlockData(
public val id: TonNodeBlockIdExt,
public va... | 15 | Kotlin | 15 | 55 | 2aef7c4dbd494d262aef2bcdc8669d5b3cc41879 | 925 | ton-kotlin | Apache License 2.0 |
ton-kotlin-liteapi/src/commonMain/kotlin/org/ton/lite/api/liteserver/LiteServerBlockData.kt | andreypfau | 448,983,229 | false | null | package org.ton.lite.api.liteserver
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import org.ton.api.tonnode.TonNodeBlockIdExt
import org.ton.tl.*
@Serializable
@SerialName("liteServer.blockData")
public class LiteServerBlockData(
public val id: TonNodeBlockIdExt,
public va... | 15 | Kotlin | 15 | 55 | 2aef7c4dbd494d262aef2bcdc8669d5b3cc41879 | 925 | ton-kotlin | Apache License 2.0 |
app/src/main/java/com/example/weatherapp/presentation/ui_utils/StylingExtensions.kt | t1geryan | 635,408,978 | false | null | package com.example.weatherapp.presentation.ui_utils
import android.content.Context
import android.graphics.Color
import androidx.annotation.StringRes
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyclerview.widget.RecyclerView
import com.example.weatherapp.utils.Constants
import com.gith... | 0 | Kotlin | 0 | 0 | 95db60e66edddf9b01dd5d2142088eeda1789465 | 2,217 | DSR_Android_Weather_App | Apache License 2.0 |
cryptocurrencychallenge/src/main/java/com/yoti/android/cryptocurrencychallenge/asset/AssetData.kt | samuelrbrt | 550,837,027 | false | {"Kotlin": 63074} | package com.yoti.android.cryptocurrencychallenge.asset
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.google.gson.annotations.SerializedName
@Entity
data class AssetData(
@SerializedName("id")
@PrimaryKey val id: String,
@SerializedName("changePercent24Hr")
val changePercent2... | 0 | Kotlin | 0 | 0 | 851a26c6e14a080e7e63608308a4658827b49f92 | 991 | crypto-currency-challenge | MIT License |
common/src/main/java/com/github/cfogrady/vitalwear/common/card/db/CardMetaEntityDao.kt | cfogrady | 619,941,986 | false | {"Kotlin": 416743} | package com.github.cfogrady.vitalwear.common.card.db
import androidx.room.*
@Dao
interface CardMetaEntityDao {
@Query("select * from ${CardMetaEntity.TABLE} order by cardName")
fun getAll(): List<CardMetaEntity>
@Query("select * from ${CardMetaEntity.TABLE} where franchise = :franchise")
fun getByFra... | 12 | Kotlin | 0 | 4 | f301cd8c69ca6bdf324003dc8d5ac8edbc8fb17a | 566 | VitalWear | MIT License |
portal/src/jvmMain/kotlin/com/sourceplusplus/portal/display/ActivityDisplay.kt | kaizhiyu | 327,907,510 | true | {"Kotlin": 548127, "CSS": 7997, "HTML": 1822, "Java": 1220} | package com.sourceplusplus.portal.display
import com.sourceplusplus.portal.SourcePortal
import com.sourceplusplus.portal.extensions.displayCard
import com.sourceplusplus.portal.extensions.fromPerSecondToPrettyFrequency
import com.sourceplusplus.portal.extensions.toPrettyDuration
import com.sourceplusplus.portal.extens... | 0 | null | 0 | 0 | f5f1549c1e0d5a65bf1745bbbef69702854e99ee | 11,564 | SourceMarker | Apache License 2.0 |
app/src/main/kotlin/com/ivanovsky/passnotes/domain/interactor/selectdb/SelectDatabaseInteractor.kt | aivanovski | 95,774,290 | false | null | package com.ivanovsky.passnotes.domain.interactor.selectdb
import com.ivanovsky.passnotes.data.entity.ConflictResolutionStrategy
import com.ivanovsky.passnotes.data.entity.FileDescriptor
import com.ivanovsky.passnotes.data.entity.OperationResult
import com.ivanovsky.passnotes.data.entity.SyncConflictInfo
import com.iv... | 1 | Kotlin | 0 | 0 | 5278cfff4fe0ab584283f6d2e2135477b5567d3a | 1,528 | passnotes | Apache License 2.0 |
sketch-core/src/commonMain/kotlin/com/github/panpf/sketch/transform/TransformResult.kt | panpf | 14,798,941 | false | null | /*
* Copyright (C) 2024 panpf <<EMAIL>>
*
* 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... | 8 | null | 309 | 2,057 | 89784530da0de6085a5b08f810415147cb3165cf | 967 | sketch | Apache License 2.0 |
compiler/testData/codegen/boxInline/smap/defaultLambda/inlinInDefault2.kt | arrow-kt | 109,678,056 | true | null | // FILE: 1.kt
// SKIP_INLINE_CHECK_IN: lParams$default
// IGNORE_BACKEND: JVM_IR
package test
//A lot of blank lines [Don't delete]
//A lot of blank lines [Don't delete]
//A lot of blank lines [Don't delete]
//A lot of blank lines [Don't delete]
//A lot of blank lines [Don't delete]
//A lot of blank lines [Don't delete... | 12 | Kotlin | 1 | 43 | d2a24985b602e5f708e199aa58ece652a4b0ea48 | 3,221 | kotlin | Apache License 2.0 |
light/src/main/kotlin/net/kotlinx/awscdk/module/CdkIamUserGroup.kt | mypojo | 565,799,715 | false | {"Kotlin": 1413758, "Jupyter Notebook": 13439, "Java": 9531} | package net.kotlinx.awscdk.module
import net.kotlinx.core.Kdsl
import software.amazon.awscdk.SecretValue
import software.amazon.awscdk.Stack
import software.amazon.awscdk.services.iam.*
/**
* 단일 그룹 적용하는 User 간단 생성
* */
class CdkIamUserGroup {
@Kdsl
constructor(block: CdkIamUserGroup.() -> Unit = {}) {
... | 0 | Kotlin | 0 | 1 | 84877b40d5007b3630c6222e1641799d7ab20d87 | 1,391 | kx_kotlin_support | MIT License |
scarf-annotations/src/main/kotlin/com/cloudpartners/scarf/data/DataAnnotations.kt | dashsoftaps | 120,611,641 | false | null | package com.cloudpartners.scarf.data
import com.amazonaws.services.dynamodbv2.AmazonDynamoDB
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBHashKey
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBRangeKey
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBTable
import com.amazon... | 0 | Kotlin | 0 | 0 | f013e7e1a62aa5c08436d676f68d9fd98e9ed7dd | 8,226 | scarf | Apache License 2.0 |
grooves-types/src/main/kotlin/com/github/rahulsom/grooves/api/snapshots/internal/BaseJoin.kt | anjalivartak | 94,643,333 | false | null | package com.github.rahulsom.grooves.api.snapshots.internal
import com.github.rahulsom.grooves.api.AggregateType
import com.github.rahulsom.grooves.api.events.BaseEvent
/**
* A special kind of [BaseSnapshot] that stores information about joined entities.
*
* @param <AggregateT> The Aggregate this join repre... | 1 | null | 1 | 1 | 5b8475672e4c4f0c71b6d90c1701ed31530ece53 | 1,022 | grooves | Apache License 2.0 |
java/java-impl/src/com/intellij/internal/statistic/libraryUsage/LibraryUsageStatisticsProvider.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.internal.statistic.libraryUsage
import com.intellij.codeInsight.daemon.DaemonCodeAnalyzer.DaemonListener
import com.intellij.internal.statistic.libraryJar.findCorrespondingVirtu... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 4,798 | intellij-community | Apache License 2.0 |
common/src/commonMain/kotlin/dev/zwander/common/components/MainDataLayout.kt | zacharee | 641,202,797 | false | null | @file:OptIn(ExperimentalObjCRefinement::class)
package dev.zwander.common.components
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import a... | 8 | null | 4 | 91 | 3d958ae0b2581815d4e496b0fef69186cc3a8c4f | 1,608 | ArcadyanKVD21Control | MIT License |
composer/src/main/java/com/patrykkosieradzki/composer/composables/ComposerUiStateView.kt | k0siara | 391,273,596 | false | null | package com.patrykkosieradzki.composer.composables
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.ui.platform.LocalLifecycleOwner
import com.patrykkosieradzki.composer.core.*
import com.patrykkosieradzki.composer.core.Composer.UiStateRenderConfig.Companion.d... | 0 | Kotlin | 0 | 0 | 916a42be52de03487d82d3a38b100f6117937ff1 | 4,265 | composer | Apache License 2.0 |
data/src/main/java/com/keelim/cnubus/di/NetworkModule.kt | keelim | 202,127,420 | false | null | /*
* Designed and developed by 2021 keelim (<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 l... | 0 | Kotlin | 0 | 0 | 953149eee139533584861c7a57c09621bf226937 | 2,297 | project_cnuBus | Apache License 2.0 |
kotlin-utility-common/src/main/kotlin/com/windea/utility/common/loaders/DataConverter.kt | DragonKnightOfBreeze | 189,628,889 | false | null | package com.windea.utility.common.loaders
import com.windea.utility.common.annotations.marks.*
import com.windea.utility.common.enums.*
import com.windea.utility.common.extensions.*
/**数据转化器。*/
@NotSure("考虑使用扩展库`kotlinx-serialization`,但是缺少具体的对于yaml、xml等格式的实现")
class DataConverter constructor(
private val fromType: D... | 0 | Kotlin | 0 | 0 | 93b18f66beb64eb46cdd4c55b08c27c58a84c9cb | 788 | Kotlin-Utility | MIT License |
app/src/main/java/com/panda/template/ui/ComposeStuAppState.kt | KellyZ | 640,846,392 | false | null | package com.panda.template.ui
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.navigation.NavDestination
import androidx.navigation.NavGraph.Companion.findStartDestination
import androidx.navigation.NavHostController
import androidx.navigation.compose.currentBackStack... | 0 | Kotlin | 0 | 0 | 41f00715f73e08fa899139b10427e8cb0be9a1e0 | 1,750 | AndroidModulesSample | Apache License 2.0 |
app/src/main/java/io/github/takusan23/akaridroid/ui/bottomsheet/VideoEditMenuBottomSheet.kt | takusan23 | 584,131,815 | false | {"Kotlin": 370704, "Java": 67808} | package io.github.takusan23.akaridroid.ui.bottomsheet
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alig... | 0 | Kotlin | 0 | 0 | f97cf00ac2eb71239e3a9a4b438634ec8d79d48f | 2,866 | AkariDroid | Apache License 2.0 |
src/test/kotlin/com/octawizard/repository/user/CacheUserRepositoryTest.kt | octawizard | 299,882,247 | false | null | package com.octawizard.repository.user
import com.octawizard.domain.model.Email
import com.octawizard.domain.model.User
import com.octawizard.repository.RedisCache
import io.mockk.clearAllMocks
import io.mockk.coEvery
import io.mockk.coVerify
import io.mockk.mockk
import kotlinx.coroutines.runBlocking
import org.junit... | 6 | Kotlin | 0 | 0 | 7007c524aa0a72dea77c24505b6a1e1c12418be8 | 4,057 | padles-api | Apache License 2.0 |
src/main/kotlin/com/pandus/leetcode/solutions/daily/AssignCookies.kt | bodyangug | 740,204,714 | false | {"Kotlin": 262950} | package com.pandus.leetcode.solutions.daily
// Reference: https://leetcode.com/problems/assign-cookies
class AssignCookies {
fun findContentChildren(g: IntArray, s: IntArray): Int {
g.sort()
s.sort()
var matches = 0
for (j in s.indices) {
if (matches < g.size && g[matche... | 0 | Kotlin | 0 | 1 | c13dd1e85f9c5d3c011122c5c0d569b497d7fff6 | 415 | leetcode-solutions | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/BoxDollar.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.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 | 4,132 | icons | MIT License |
chi-compiler/src/main/kotlin/gh/marad/chi/core/Compiler.kt | marad | 424,295,144 | false | {"Kotlin": 316466, "Java": 241258, "ANTLR": 7061, "Batchfile": 2689} | @file:Suppress("BooleanMethodIsAlwaysInverted")
package gh.marad.chi.core
import gh.marad.chi.core.analyzer.Level
import gh.marad.chi.core.analyzer.Message
import gh.marad.chi.core.analyzer.analyze
import gh.marad.chi.core.namespace.GlobalCompilationNamespace
data class CompilationResult(
val messages: List<Mes... | 26 | Kotlin | 0 | 11 | d93f2df6472476a0de365edc5f146826ce608c58 | 1,640 | chi-compiler-kotlin | MIT License |
src/test/kotlin/com/asyncapi/plugin/idea/inspection/v2_6_0/AsyncAPIJsonSchemaInspectionTest.kt | asyncapi | 558,460,590 | false | {"Kotlin": 198117, "HTML": 1300} | package com.asyncapi.plugin.idea.inspection.v2_6_0
import com.asyncapi.plugin.idea.inspection.AbstractAsyncAPIJsonSchemaInspectionTest
/**
* @author <NAME>
* @since 2.3.0
*/
class AsyncAPIJsonSchemaInspectionTest: AbstractAsyncAPIJsonSchemaInspectionTest() {
override fun getTestDataPath(): String = "src/test/... | 3 | Kotlin | 2 | 7 | d1113bd2b4ae107e2547e85632e7a9029c4d802b | 354 | jasyncapi-idea-plugin | Apache License 2.0 |
app/src/main/java/me/frauenfelderflorian/tournamentscompose/data/Tournament.kt | fflopsi | 513,883,538 | false | null | package me.frauenfelderflorian.tournamentscompose.data
import java.util.*
class Tournament(
var start: GregorianCalendar,
var end: GregorianCalendar,
val players: MutableList<String>,
val useAdaptivePoints: Boolean,
val firstPoints: Int = 10
) {
var current = -1
val games = mutableListOf<G... | 0 | Kotlin | 0 | 2 | 792aabf02e57a480db775c98f14d5f7e2da59a34 | 1,845 | tournaments | MIT License |
src/main/kotlin/com/ivieleague/kbuild/kotlin/KotlinJSModule.kt | UnknownJoe796 | 205,936,906 | false | null | package com.ivieleague.kbuild.kotlin
import com.ivieleague.kbuild.common.Buildable
import com.ivieleague.kbuild.common.HasLibraries
import com.ivieleague.kbuild.jvm.CreatesJar
import com.ivieleague.kbuild.jvm.Jar
import org.jetbrains.kotlin.cli.common.ExitCode
import org.jetbrains.kotlin.cli.common.arguments.K2JSCompi... | 10 | Kotlin | 1 | 8 | 27ccfd8a590da02438a76ce2d6bf438225080037 | 4,106 | kbuild | Apache License 2.0 |
app/src/androidTest/java/com/duckduckgo/app/privacy/model/SitePrivacyGradeExtensionTest.kt | akalankauk | 124,997,449 | false | null | /*
* Copyright (c) 2017 DuckDuckGo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 0 | null | 1 | 3 | 03f99c4a381d880ab850f0ddde9f692057a840e0 | 6,732 | Android | Apache License 2.0 |
src/commonMain/kotlin/data/items/ShroudOfTheHighborne.kt | marisa-ashkandi | 332,658,265 | false | null | package `data`.items
import `data`.Constants
import `data`.buffs.Buffs
import `data`.model.Item
import `data`.model.ItemSet
import `data`.model.Socket
import `data`.model.SocketBonus
import character.Buff
import character.Stats
import kotlin.Array
import kotlin.Boolean
import kotlin.Double
import kotlin.Int
import kot... | 21 | null | 11 | 25 | 9cb6a0e51a650b5d04c63883cb9bf3f64057ce73 | 1,673 | tbcsim | MIT License |
src/nativeTest/kotlin/DogcatPerformanceTest.kt | NorseDreki | 677,715,701 | false | {"Kotlin": 97142} | class DogcatPerformanceTest {
} | 42 | Kotlin | 0 | 0 | f744afa2f584cdf1b1acfe4e5e5198245b9af707 | 31 | dogcat | Apache License 2.0 |
src/commonMain/kotlin/Adjustments.kt | sebj | 482,646,821 | false | {"Kotlin": 94393} | public fun <Unit : TimeUnit> TimePeriod<Unit>.offset(count: Int): TimePeriod<Unit> {
if (count == 0) {
return this
}
return applying(TimeDifference(count, smallestUnit))
}
// region Nanosecond
/**
* Create a new [TimePeriod] by moving forward one nanosecond.
*/
public val <Unit> TimePeriod<Unit>... | 2 | Kotlin | 0 | 2 | ed0f1e4983c79147e540cdceb8448a0d299ea3ed | 7,801 | time | MIT License |
src/main/kotlin/com/github/ninz9/aicommentator/llm/modelsImpl/openAI/data/post/OpenAIResponse.kt | Ninz9 | 857,720,577 | false | {"Kotlin": 135585} | package com.github.ninz9.aicommentator.llm.modelsImpl.openAI.data.post
data class OpenAIResponse(
val choices: List<Choice>,
val created: Int,
val id: String,
val model: String,
val `object`: String,
val usage: Usage
)
| 7 | Kotlin | 0 | 0 | 08e242ed26d8c6962e5e405725c64140f672afa9 | 244 | AiCommentator | MIT License |
marcel-android/app/src/main/java/com/tambapps/marcel/android/marshell/ui/component/TopBar.kt | tambapps | 587,877,674 | false | {"Maven POM": 26, "Text": 1, "Ignore List": 11, "Markdown": 87, "Kotlin": 465, "Gradle Kotlin DSL": 5, "INI": 4, "Java Properties": 4, "Shell": 5, "Batchfile": 2, "Proguard": 8, "XML": 83, "Java": 226, "YAML": 1, "JavaScript": 1, "TOML": 1, "Gradle": 5, "JFlex": 1} | package com.tambapps.marcel.android.marshell.ui.component
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.RowScope
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import... | 0 | Java | 0 | 7 | 83bf3562f8bb6b43fe5d6f2e13c9ed5ad3300bce | 2,508 | marcel | Apache License 2.0 |
common/src/main/kotlin/org/valkyrienskies/mod/common/VSGameUtils.kt | Rubydesic | 518,612,089 | false | {"Java Properties": 1, "Gradle": 7, "Shell": 1, "Markdown": 2, "EditorConfig": 1, "Batchfile": 1, "Text": 1, "Ignore List": 1, "Git Config": 1, "XML": 6, "Kotlin": 36, "Java": 48, "JSON": 13, "INI": 3, "TOML": 1, "YAML": 3} | package org.valkyrienskies.mod.common
import net.minecraft.client.Minecraft
import net.minecraft.client.multiplayer.ClientLevel
import net.minecraft.core.BlockPos
import net.minecraft.resources.ResourceKey
import net.minecraft.resources.ResourceLocation
import net.minecraft.server.MinecraftServer
import net.minecraft.... | 1 | null | 1 | 1 | dc3df9559331b38297ee5b44b8e3d75140c244b3 | 10,517 | Valkyrien-Skies-2 | Apache License 2.0 |
library_core/src/main/java/com/td/framework/expand/Intents.kt | aohanyao | 97,691,578 | false | {"Java": 775896, "Kotlin": 148060} | /*
* Copyright 2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 0 | Java | 2 | 2 | 0cf83b57ad19fcb8e217507f90c5140b5e1d0d3c | 7,710 | TdFramework | Apache License 2.0 |
Client-Android/app/src/main/java/com/xmx/ai/chatgpt/network/GptApis.kt | The---onE | 647,384,498 | false | null | package com.xmx.ai.chatgpt.network
import com.google.gson.JsonObject
import com.xmx.ai.chatgpt.model.GptResponse
import retrofit2.http.Body
import retrofit2.http.Headers
import retrofit2.http.POST
interface GptApis {
@Headers(
"Content-Type:application/json",
// "Authorization:Bearer api-key"
)... | 0 | Kotlin | 0 | 1 | 2a23ea9261566043ba5961863c537395c72971e0 | 429 | AI-Chat | MIT License |
features/statuses/src/main/kotlin/io/plastique/statuses/StatusActionsView.kt | plastiqueapp | 150,879,887 | false | null | package io.plastique.statuses
import android.content.Context
import android.util.AttributeSet
import android.widget.LinearLayout
import androidx.core.view.isVisible
import com.github.technoir42.android.extensions.layoutInflater
import io.plastique.comments.OnCommentsClickListener
import io.plastique.statuses.databindi... | 0 | Kotlin | 2 | 9 | 9271853f3741add18822858cbad9d4f8e8104f54 | 1,072 | plastique | Apache License 2.0 |
src/main/kotlin/io/c6/justmoveitkotlin/Application.kt | chandu-io | 129,123,786 | false | {"Kotlin": 16917} | package io.c6.justmoveitkotlin
import io.c6.justmoveitkotlin.AppLogger.info
import io.c6.justmoveitkotlin.InputView.InputViewData
import io.c6.justmoveitkotlin.OutputView.OutputViewData
import java.time.Duration
import java.time.Duration.ZERO
internal object Application {
private val inputView = InputView(::onStar... | 0 | Kotlin | 0 | 0 | 6e9373aa243e23f0f172f4925c9b3c67dc402b88 | 2,402 | just-move-it-kotlin | The Unlicense |
AfetProjesi/app/src/main/java/com/example/afetprojesi/service/request/IRequestService.kt | mrihsann | 752,274,237 | false | {"Kotlin": 165633} | package com.example.afetprojesi.service.request
import com.example.afetprojesi.dtos.requests.request.RequestAddDto
import com.example.afetprojesi.dtos.responses.request.RequestResponseDto
import com.example.afetprojesi.dtos.results.DataResult
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.DELE... | 0 | Kotlin | 0 | 0 | d69f437bd4fae28dcd72e2397c13c4a899d2bbe2 | 1,128 | Afet-Destek-Sistemi | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.