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
core/database/src/main/java/com/uragiristereo/mikansei/core/database/post/PostDao.kt
uragiristereo
583,834,091
false
{"Kotlin": 978568}
package com.uragiristereo.mikansei.core.database.post import androidx.room.Dao import androidx.room.Insert import androidx.room.Query import androidx.room.Transaction import com.uragiristereo.mikansei.core.model.danbooru.Post import kotlinx.coroutines.flow.Flow import java.time.OffsetDateTime @Dao interface PostDao {...
3
Kotlin
2
62
4f136b0479ee7772f3d7ba48927cef9389d5c2be
1,584
Mikansei
Apache License 2.0
app/src/main/java/com/zeynelerdi/pastryshop/repository/network/NetworkConfig.kt
ZeynelErdiKarabulut
314,039,126
false
{"Gradle": 5, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "YAML": 1, "Markdown": 2, "JSON": 3, "Proguard": 1, "Kotlin": 78, "XML": 46, "Java": 2}
package com.zeynelerdi.pastryshop.repository.network /** * Created by <NAME> on 01/06/20. * Network related configurations. * * @author <a href="https://github.com/ZeynelErdiKarabulut">zeynelerdi</a> */ internal object NetworkConfig { /** * Request read timeout in minutes. */ internal const ...
1
null
1
1
104fc7e3fc7383f2015f90c7bd75a8b712a2fd9b
554
RestaurantApp
Apache License 2.0
app/src/main/java/com/faustinodegroot/sportunity/domain/dao/BaseDao.kt
FaustinodG
723,081,464
false
{"Kotlin": 38869}
package com.faustinodegroot.sportunity.domain.dao import androidx.room.Delete import androidx.room.Insert import androidx.room.OnConflictStrategy import androidx.room.Update interface BaseDao<T> { @Insert(onConflict = OnConflictStrategy.REPLACE) suspend fun addAll(entities: List<T>) @Insert(onConflict ...
0
Kotlin
0
0
18d50f87cc04c71b2ca8fff2820a8191be809f1d
477
android_sportunity
MIT License
src/main/kotlin/no/vingaas/pokermanager/entities/blindstructure/BlindStructure.kt
tomandreaskv
810,388,706
false
{"Kotlin": 143404}
package no.vingaas.pokermanager.entities.blindstructure import jakarta.persistence.* import no.vingaas.pokermanager.entities.user.User import java.time.LocalDateTime @Entity @Table(name = "blind_structures" , schema = "pokerman") data class BlindStructure( @Id @GeneratedValue(strategy = GenerationType.IDENTIT...
0
Kotlin
0
1
76245f712deb230f6369d236fa6b440ac4e6553e
843
pokermanager-backend
Apache License 2.0
library/src/main/java/com/pxddy/simpleviewbinding/internal/ViewBindingLazy.kt
Pxddy
584,109,381
false
{"Kotlin": 19528}
package com.pxddy.simpleviewbinding.internal import androidx.annotation.MainThread import androidx.viewbinding.ViewBinding internal abstract class ViewBindingLazy<out ViewBindingT : ViewBinding> : Lazy<ViewBindingT> { private var binding: ViewBindingT? = null override val value: ViewBindingT get() = ...
1
Kotlin
0
0
91b039acc5b0a52eddff1ceb356d0cbf27c825ca
621
simple-viewbinding
Apache License 2.0
app/src/main/java/com/ngocvu/example/utils/RegexUtil.kt
RubyV
381,760,596
false
null
package com.ngocvu.example.utils import java.util.regex.Pattern object RegexUtil { const val EMAIL_REGEX = "^[A-Za-z](.*)([@]{1})(.{1,})(\\.)(.{1,})$" fun validateEmailAddress(email: String): Boolean { return EMAIL_REGEX.toRegex().matches(email) } }
8
Kotlin
0
0
29733b31a22db6cc20ffd53bf365065f6776be9e
274
nimble-survey-app
MIT License
fontawesome/src/de/msrd0/fontawesome/icons/FA_HASHTAG.kt
msrd0
363,665,023
false
null
/* @generated * * This file is part of the FontAwesome Kotlin library. * https://github.com/msrd0/fontawesome-kt * * This library is not affiliated with FontAwesome. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may...
0
Kotlin
0
0
b2fdb74278104be68c95e8f083fc75ab74395112
1,989
fontawesome-kt
Apache License 2.0
BroadcastDemo/app/src/main/java/app/ideal/com/broadcastdemo/InstallReceiver.kt
jo-bert
136,703,044
false
{"Kotlin": 400511, "Java": 261097, "RenderScript": 2641, "Shell": 2579}
package app.ideal.com.broadcastdemo import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import android.util.Log class InstallReceiver : BroadcastReceiver() { var context: Context? = null override fun onReceive(context: Context?, intent: Intent?) { L...
0
Kotlin
0
0
965cc81ecd11a7ab8e417883d0c4352e545d6011
836
kotlin_contacts_sample
Apache License 2.0
data/domain/src/main/java/ly/david/data/domain/recordng/RecordingScaffoldModel.kt
lydavid
458,021,427
false
null
package ly.david.data.domain.recordng import ly.david.data.Recording import ly.david.data.domain.artist.ArtistCreditUiModel import ly.david.data.domain.artist.toArtistCreditUiModel import ly.david.data.domain.artist.toArtistCreditUiModels import ly.david.data.network.RecordingMusicBrainzModel import ly.david.data.room...
54
Kotlin
0
4
052613fefaeb5a687ee36d0f3889d9a120224994
1,517
MusicSearch
Apache License 2.0
src/main/kotlin/com/example/todo/dtos/todo/GetTodoItemDto.kt
StanislavMachel
179,460,499
false
null
package com.example.todo.dtos.todo data class GetTodoItemDto(val id: Long, val name: String, val isComplete: Boolean)
5
Kotlin
0
0
6924ab0652e6950bc753a02e4221f91c7d5747ed
118
todo
MIT License
kamel-samples/src/desktopMain/kotlin/io/kamel/samples/DesktopSample.kt
Kamel-Media
327,244,529
false
null
package io.kamel.samples import androidx.compose.runtime.remember import androidx.compose.ui.window.singleWindowApplication import io.kamel.core.config.KamelConfig import io.kamel.core.config.takeFrom import io.kamel.image.config.* public actual val cellsCount: Int = 4 public fun main(): Unit = singleWindowApplicati...
10
Kotlin
14
257
9ed6ac68d758f46e8d04c08f8bb84023179eeca2
587
Kamel
Apache License 2.0
src/main/kotlin/de/porsche/wad2020/HelloWorld.kt
porscheag
306,731,567
false
null
package de.porsche.wad2020 import reactor.core.publisher.toMono class HelloWorld { fun hello() = "world".toMono() }
0
Kotlin
0
0
6bb2e424e55e41ab689f99925b872330272e4aa9
121
wad_2020_custom_publisher
MIT License
prototype2/src/main/kotlin/com/seanshubin/game_4x/prototype2/Interpreter.kt
SeanShubin
204,213,077
false
{"XML": 1, "Maven POM": 13, "Ignore List": 1, "Shell": 1, "Text": 9, "HTML": 12, "Kotlin": 245, "Java": 12}
package com.seanshubin.game_4x.prototype2 interface Interpreter { fun execute(state: Items, text: String): Result }
0
Kotlin
0
0
a05479651479b5ab1470b925c015c7fa74cd59cb
120
game-4x
The Unlicense
presentation/src/main/java/com/muse1991/ui/StartActivity.kt
jerrytrap
767,373,010
false
{"Kotlin": 46350}
package com.muse1991.ui import android.content.Intent import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen class StartActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { insta...
5
Kotlin
0
0
15caf9a9f8a2c017880bd0800cd35469ae66ca1b
577
muse-android
MIT License
android/engine/src/main/java/org/smartregister/fhircore/engine/data/domain/util/DomainMapper.kt
opensrp
339,242,809
false
null
/* * Copyright 2021 Ona Systems, Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
150
Kotlin
8
17
5d69569435cb30735eff95f98f29aed1f7b16b4f
890
fhircore
Apache License 2.0
src/jvmMain/kotlin/application/logic/serialization/state_machine.kt
Fovteltar
508,838,894
false
null
package logic import application.logic.serialization.AlgorithmUpdate class StateMachine(graph: Graph, start: Vertex) { private val states: MutableMap<Vertex, MutableList<Float>> = mutableMapOf() private val currentStateVertexes: MutableList<Vertex?> = mutableListOf() private val updates:MutableList<Pair<...
0
Kotlin
0
0
f5d465bfa4e24716b8cc48a7bd315dd87bfe11f0
2,439
dijkstra_algorithm
MIT License
sample/composeApp/src/commonMain/kotlin/io/wojciechosak/calendar/calendar/PlatformType.kt
WojciechOsak
760,489,107
false
{"Kotlin": 47645}
package io.wojciechosak.calendar.calendar enum class PlatformType { MOBILE, WEB, DESKTOP } expect fun getPlatformType(): PlatformType
7
Kotlin
5
97
55e23f73e217ab2c3d5968bdce8b8657eae3e2da
138
Calendar
Apache License 2.0
src/tree/RedBlackTree.kt
DavidZhong003
157,566,685
false
null
package tree /** * 红黑树 * @author doive * on 2019/1/24 17:29 */ const val Black = true const val Red = false enum class Color { Red, Black } /** * 红黑树节点 */ class RedBlackNode<V : Comparable<V>>(private var v: V, var color: Color = Color.Black, ...
1
Kotlin
1
1
7eabe9d651013bf06fa813734d6556d5c05791dc
1,915
LeetCode-kt
Apache License 2.0
calendar/src/main/java/ch/domenik/calendar/tile/CalendarTileService.kt
domenikhofer
785,130,768
false
{"Kotlin": 40113, "Java": 3280}
package ch.domenik.calendar.tile import android.graphics.Color import androidx.wear.tiles.* import androidx.wear.tiles.ColorBuilders.argb import androidx.wear.tiles.DimensionBuilders.dp import androidx.wear.tiles.LayoutElementBuilders.LayoutElement import androidx.wear.tiles.ModifiersBuilders.Modifiers import ch.domen...
0
Kotlin
0
0
d362110748c07836c0d399f702304f341153fc82
6,763
wearos-calendar-tile
Apache License 2.0
src/main/kotlin/org/labun/jooq/generator/Defaults.kt
kulabun
106,187,995
false
{"Java": 168743, "Kotlin": 43826}
package org.labun.jooq.generator import org.labun.jooq.generator.config.Configuration import org.labun.jooq.generator.config.NameConfig import org.labun.jooq.generator.config.SubGeneratorConfig import org.labun.jooq.generator.generation.GeneratorsNames import org.labun.jooq.generator.task.CatalogSubGenerator import or...
1
Java
1
3
f43c82e1981e521cd1d7d73a21de44e88e61c02d
6,049
jooq-generator
Apache License 2.0
app/src/main/java/com/gmart/gmovies/utils/DateUtils.kt
gimartinez17
771,233,885
false
{"Kotlin": 515365, "CMake": 1625, "C++": 259}
package com.gmart.gmovies.utils import android.content.Context import android.util.Log import java.text.SimpleDateFormat import java.util.Calendar import java.util.Date import java.util.Locale fun String.getSimpleFormatDate(context: Context): String? { val locale = context.resources.configuration.locales.get(0) ...
0
Kotlin
1
1
da0854981d865fb7207767ae3e6a4c8ce1f441a8
2,135
movies-app
MIT License
server/src/main/kotlin/com/thoughtworks/archguard/code/module/domain/graph/GraphService.kt
archguard
460,910,110
false
null
package com.thoughtworks.archguard.code.module.domain.graph import com.thoughtworks.archguard.code.module.domain.LogicModuleRepository import com.thoughtworks.archguard.code.module.domain.dependency.DependencyService import org.archguard.arch.LogicModule import com.thoughtworks.archguard.code.module.domain.plugin.Plug...
3
null
89
575
049f3cc8f2c0e2c34e65bb0049f645caa5be9bf8
3,464
archguard
MIT License
app/src/main/kotlin/com/lbbento/pitchupapp/di/AppModule.kt
techpotatoes
92,516,910
false
null
package com.lbbento.pitchupapp.di import android.app.Application import android.content.Context import dagger.Module import dagger.Provides @Module class AppModule(private val application: Application) { @Provides fun provideApplicationContext(): Context = application }
1
Kotlin
6
16
90dcd5af9b622baaf9f961c434096e2e9628661b
281
pitchup
Apache License 2.0
app/src/main/java/com/biocatch/dialogasfragment/App.kt
esau-android
528,946,579
false
null
package com.biocatch.dialogasfragment import android.app.Application import android.util.Log import com.biocatch.client.android.sdk.BioCatchClient import com.biocatch.client.android.sdk.contract.ExtendedOptions import com.biocatch.dialogasfragment.SDKManager.SDK_TAG import java.util.* class App : Application() { ...
0
Kotlin
0
0
339668f100558bf2962d03f42afcd9e9fd93abee
1,318
SampleAppBio
MIT License
base/src/main/java/org/kin/stellarfork/CreateAccountOperation.kt
samdowd
364,139,277
false
{"Gradle": 5, "Markdown": 4, "Java Properties": 2, "Shell": 2, "Ignore List": 4, "Batchfile": 2, "Kotlin": 428, "Java": 24, "INI": 2, "Protocol Buffer": 1, "Proguard": 1, "XML": 36}
package org.kin.stellarfork import org.kin.stellarfork.xdr.AccountID import org.kin.stellarfork.xdr.CreateAccountOp import org.kin.stellarfork.xdr.Int64 import org.kin.stellarfork.xdr.Operation.OperationBody import org.kin.stellarfork.xdr.OperationType /** * Represents [CreateAccount](https://www.stellar.org/develop...
0
Kotlin
0
0
6c0a2cd067772d234b8ceeae170e9ff1feb06157
3,125
kin-core
MIT License
app/src/main/java/com/kaiwolfram/nozzle/data/provider/IThreadProvider.kt
kaiwolfram
559,341,150
false
null
package com.kaiwolfram.nozzle.data.provider import com.kaiwolfram.nozzle.model.PostThread interface IThreadProvider { suspend fun getThread(currentPostId: String, replyToId: String?): PostThread }
0
Kotlin
4
25
a84bd7cb4a2caaf58739a31638c2246737ec8396
203
Nozzle
MIT License
src/test/kotlin/business/TestOnlyQuizStorageTest.kt
akpatil
113,347,727
true
{"Kotlin": 36282, "Shell": 77}
package business import org.junit.Assert.* import org.junit.Test import java.util.* class TestOnlyQuizStorageTest { @Test fun `instantiates different object on every load`() { // Given I have already loaded a quiz object val quizOne = Quiz( id = UUID.randomUUID().toString(), ...
0
Kotlin
0
1
96411821cf5aaf03c49234a1b5e87eb6ee448ed2
864
quizzykotlin
MIT License
app/src/main/java/com/anafthdev/musicompose2/foundation/uimode/UiModeState.kt
kafri8889
509,012,286
false
{"Kotlin": 356863}
package com.anafthdev.musicompose2.foundation.uimode import com.anafthdev.musicompose2.foundation.uimode.data.UiMode data class UiModeState( val uiMode: UiMode = UiMode.LIGHT )
3
Kotlin
8
40
fa8c356aa2967228b91dc68ef99c395be22b73fb
180
Musicompose-V2
Do What The F*ck You Want To Public License
app/src/main/java/soup/animation/sample/dynamic/spring/SpringFragment.kt
fornewid
205,703,351
false
{"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 58, "XML": 194, "JSON": 1, "Java": 2}
package soup.animation.sample.dynamic.spring import android.animation.ValueAnimator import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.core.animation.doOnRepeat import androidx.core.view.doOnLayout import androidx.dynamicanimation.animatio...
0
Kotlin
0
13
4dcc8d4a20b973567987afb0ca31935c10f806b3
4,382
android-animation-10p-more
Apache License 2.0
sdk/src/main/kotlin/com/processout/sdk/api/model/response/PONativeAlternativePaymentMethodResponse.kt
processout
117,821,122
false
{"Kotlin": 722832, "Java": 85526, "Shell": 696}
package com.processout.sdk.api.model.response import com.squareup.moshi.Json import com.squareup.moshi.JsonClass @JsonClass(generateAdapter = true) internal data class NativeAlternativePaymentMethodResponse( @Json(name = "native_apm") val nativeApm: PONativeAlternativePaymentMethod ) /** * Details of native...
0
Kotlin
5
1
eca4fe3a48d4ecdc51ee64629e24319c9719e07f
1,664
processout-android
MIT License
line-awesome/src/commonMain/kotlin/compose/icons/lineawesomeicons/FolderMinusSolid.kt
DevSrSouza
311,134,756
false
{"Kotlin": 36719092}
package compose.icons.lineawesomeicons 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 ...
17
Kotlin
25
571
a660e5f3033e3222e3553f5a6e888b7054aed8cd
2,803
compose-icons
MIT License
common/domain/src/main/kotlin/mc/oauth2/Credentials.kt
mchalabine
148,293,942
false
{"Kotlin": 60578}
package mc.oauth2 /** * @author <NAME> */ data class Credentials private constructor(private val credentials: String) { private constructor(builder: CredentialsBuilder) : this(credentials = builder.credentials) companion object { fun valueOf(credentials: String): Credentials { return aC...
3
Kotlin
0
0
ffb7dd85df9f1ba46cce0fbfb06d756b95c0c992
1,285
mc-oauth2-spring
Apache License 2.0
app/src/main/java/uk/co/sentinelweb/cuer/app/ui/playlists/PlaylistsAdapter.kt
sentinelweb
220,796,368
false
null
package uk.co.sentinelweb.cuer.app.ui.playlists import android.view.ViewGroup import androidx.recyclerview.widget.DiffUtil import androidx.recyclerview.widget.RecyclerView import uk.co.sentinelweb.cuer.app.orchestrator.OrchestratorContract import uk.co.sentinelweb.cuer.app.ui.common.item.ItemDiffCallback import uk.co....
57
Kotlin
0
0
a30d014c7048c3f0a6866da78d3dfbf3cd4b733d
4,137
cuer
Apache License 2.0
app/src/test/java/co/nimblehq/compose/crypto/ui/screens/home/HomeScreenTest.kt
nimblehq
503,287,253
false
null
package co.nimblehq.compose.crypto.ui.screens.home import androidx.activity.compose.setContent import androidx.compose.ui.test.* import androidx.compose.ui.test.junit4.* import androidx.navigation.* import co.nimblehq.compose.crypto.R import co.nimblehq.compose.crypto.domain.usecase.GetMyCoinsUseCase import co.nimbleh...
16
Kotlin
2
5
e952291039955a405f58bc941614db9b133eecce
9,481
jetpack-compose-crypto
MIT License
app/src/main/java/com/m/coroutines/run/launch.kt
ma-jian
164,124,939
false
null
package com.m.coroutines.run import kotlin.coroutines.Continuation import kotlin.coroutines.CoroutineContext import kotlin.coroutines.EmptyCoroutineContext import kotlin.coroutines.startCoroutine fun launch(context: CoroutineContext = EmptyCoroutineContext, block: suspend () -> Unit) = block.startCoroutine(Contin...
0
Kotlin
2
19
0e049e5f2110c6165a4072b18caa9825cbfcbb6f
555
MvvmKotlin
Apache License 2.0
ktx-library-codelab/step-06/app/src/main/java/com/example/android/kotlinktxworkshop/MainViewModel.kt
ibara1454
254,325,286
true
{"Kotlin": 168541}
package com.example.android.kotlinktxworkshop import android.app.Application import android.location.Location import android.util.Log import androidx.lifecycle.AndroidViewModel import androidx.lifecycle.LiveData import androidx.lifecycle.asLiveData import com.example.android.myktxlibrary.asString import com.example.an...
0
Kotlin
0
0
178410a2d4acf4f95ab442515ac32f8283a11962
1,627
kotlin-coroutines
Apache License 2.0
app/src/main/java/dev/devunion/skillsnap/ui/main/components/MainTopAppBar.kt
abdelillahbel
845,821,547
false
{"Kotlin": 211690}
/* * Copyright (c) 2024. DevUnion Foundation. * GitHub: https://github.com/devunionorg * All rights reserved. * * This project was conceptualized and developed by @abdelillahbel. * GitHub: https://github.com/abdelillahbel */ package dev.devunion.skillsnap.ui.main.components import androidx.compose.material3.* ...
0
Kotlin
0
8
0bbc0a442ba33e606e573381922c5b7493d0c0c8
1,686
SkillSnapAndroid
MIT License
src/main/kotlin/br/com/acmattos/hdc/common/context/application/CommandHandlerService.kt
acmattos
225,613,144
false
{"Kotlin": 955728, "JavaScript": 151772, "HTML": 26378, "CSS": 4190}
package br.com.acmattos.hdc.common.context.application import br.com.acmattos.hdc.common.context.config.ContextLogEnum.SERVICE import br.com.acmattos.hdc.common.context.domain.cqs.Command import br.com.acmattos.hdc.common.context.domain.cqs.CommandHandler import br.com.acmattos.hdc.common.context.domain.cqs.CreateComm...
0
Kotlin
0
0
8d7aec8840ff9cc87eb17921058d23cfc0d2ca6c
5,944
hdc
MIT License
core/src/main/kotlin/com/muedsa/snapshot/rendering/LayerPaintContext.kt
muedsa
736,941,747
false
{"Kotlin": 600787}
package com.muedsa.snapshot.rendering import org.jetbrains.skia.Canvas import org.jetbrains.skia.Picture class LayerPaintContext( val canvas: Canvas, ) { val pictures: MutableList<Picture> = mutableListOf() companion object { @JvmStatic fun composite(context: PaintingContext, canvas: Can...
0
Kotlin
0
1
2a8d2a7ade678402af4e49db919fd32ddafa2a3b
401
snapshot
MIT License
core/src/main/kotlin/com/muedsa/snapshot/rendering/LayerPaintContext.kt
muedsa
736,941,747
false
{"Kotlin": 600787}
package com.muedsa.snapshot.rendering import org.jetbrains.skia.Canvas import org.jetbrains.skia.Picture class LayerPaintContext( val canvas: Canvas, ) { val pictures: MutableList<Picture> = mutableListOf() companion object { @JvmStatic fun composite(context: PaintingContext, canvas: Can...
0
Kotlin
0
1
2a8d2a7ade678402af4e49db919fd32ddafa2a3b
401
snapshot
MIT License
library/src/main/java/com/michaelflisar/composepreferences/core/PreferenceSectionHeader.kt
MFlisar
705,594,559
false
{"Kotlin": 94712}
package com.michaelflisar.composepreferences.core import androidx.compose.material3.LocalTextStyle import androidx.compose.material3.MaterialTheme import androidx.compose.runtime.Composable import androidx.compose.runtime.CompositionLocalProvider import com.michaelflisar.composepreferences.core.classes.Dependency impo...
0
Kotlin
0
0
942c84052f6f0d35ac1669df9e3e819dbe44dc77
1,532
ComposePreferences
Apache License 2.0
src/Day09.kt
buongarzoni
572,991,996
false
{"Kotlin": 26251}
import java.awt.Point import kotlin.math.sign fun solveDay09() { val input = readInput("Day09") val part1 = solve(input, (1 .. 2).map { Point(1, 1) }) println("Part 1 : $part1") val part2 = solve(input, (1 .. 10).map { Point(1, 1) }) println("Part 2 : $part2") } private fun solve(input: List<Strin...
0
Kotlin
0
0
96aadef37d79bcd9880dbc540e36984fb0f83ce0
1,557
AoC-2022
Apache License 2.0
integrations/junit-jupiter/src/main/kotlin/io/microkt/kontainers/junit5/annotation/DatabaseKontainer.kt
microkt
464,678,346
false
{"Kotlin": 153658}
package io.microkt.kontainers.junit5.annotation import io.microkt.kontainers.context.properties.PropertySupplier import io.microkt.kontainers.domain.JdbcKontainer import io.microkt.kontainers.junit5.extension.DatabaseKontainerExtension import org.junit.jupiter.api.extension.ExtendWith import kotlin.reflect.KClass /**...
3
Kotlin
0
2
1bac86c920f233bd92f26a0cff62222f4e146e5b
1,319
kontainers
Apache License 2.0
xenoglot-atlas-extended/src/commonMain/kotlin/dev/teogor/xenoglot/atlas/extended/LanguageToCountryMappings_in.kt
teogor
718,087,802
false
{"Kotlin": 1614676}
/* * Copyright 2024 teogor (Teodor Grigor) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
0
Kotlin
0
6
48dddb213920f7cc1d19d2ea34a61948a633dc38
14,585
xenoglot
Apache License 2.0
server/src/test/kotlin/io/github/rubenquadros/vibesync/server/test/album/AlbumApiTest.kt
rubenquadros
781,451,335
false
{"Kotlin": 175291, "Dockerfile": 321}
package io.github.rubenquadros.vibesync.server.test.album import io.github.rubenquadros.vibesync.server.album.AlbumApiImpl import io.github.rubenquadros.vibesync.server.album.GetAlbumResponse import io.github.rubenquadros.vibesync.server.album.GetAlbumTracksResponse import io.github.rubenquadros.vibesync.server.test.F...
0
Kotlin
0
0
1d26644ac6c1a4745dc36d95adf41906d3bf9baf
1,894
VibeSync-Server
MIT License
src/main/java/io/github/redstoneparadox/journia/world/gen/decorator/JourniaDecorators.kt
RedstoneParadox
230,316,902
false
null
package io.github.redstoneparadox.journia.world.gen.decorator import net.minecraft.util.registry.Registry import net.minecraft.world.gen.CountConfig import net.minecraft.world.gen.decorator.ChanceDecoratorConfig import net.minecraft.world.gen.decorator.Decorator object JourniaDecorators { val SURFACE_PATCH: Decor...
1
Kotlin
1
2
905d6f2295642e5970049595bfba7aa091db53ab
729
Journia
MIT License
src/main/java/com/p2p/lending/service/InvestService.kt
lordqyxz
209,478,108
false
null
package com.p2p.lending.service import com.p2p.lending.entity.InvestInfo import org.springframework.stereotype.Service @Service interface InvestService { fun investA(ii: InvestInfo): Int fun investS(map: Map<String, Any?>): List<InvestInfo> fun sumMoney(map: Map<String, Any>): Double? fun getDtail(ma...
1
null
1
1
166a224e41c4385634adb75c87f493524a679a71
395
lending
MIT License
app/src/main/java/com/iceberry/mqtttest/repository/data/MsgListDataSource.kt
Iceberry-qdd
390,901,812
false
null
package com.iceberry.mqtttest.repository.data import android.content.res.Resources import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import com.iceberry.mqtttest.repository.bean.MsgListItem import com.iceberry.mqtttest.repository.mock.msgList import kotlinx.coroutines.Dispatchers import kotl...
0
Kotlin
0
0
e15d2725d900d7ee770efc375381ea41b43dd038
2,373
Creative-Challenge-MQTTTest
MIT License
app/src/main/java/com/fluffydevs/journeybeacon/common/Bindings.kt
BisiPaul
639,972,897
false
null
package com.fluffydevs.journeybeacon.common
0
Kotlin
0
0
30709d024b55b049846ddc90fbc9af5a3d5ca0b4
45
JourneyBeaconAndroid
MIT License
processor/src/main/java/com/fourlastor/pickle/StatementHooksCreator.kt
tasomaniac
177,965,024
false
{"Gradle": 10, "Markdown": 2, "Shell": 2, "Text": 1, "Ignore List": 2, "Batchfile": 2, "INI": 5, "Java Properties": 1, "XML": 17, "Java": 17, "Gherkin": 5, "Kotlin": 20, "YAML": 1}
package com.fourlastor.pickle import cucumber.api.java.After import cucumber.api.java.Before import javax.annotation.processing.RoundEnvironment import javax.lang.model.element.ElementKind import javax.lang.model.element.ExecutableElement import javax.lang.model.element.TypeElement class StatementHooksCreator(private...
1
null
1
1
8dbfce3c88bf279b533a2fa96ec5a917209041aa
1,729
pickle
MIT License
src/test/kotlin/io/github/soat7/myburguercontrol/fixtures/OrderDetailFixtures.kt
FIAP-SOAT7-2024-GP-Kotlin
788,196,924
false
{"Kotlin": 151693, "Dockerfile": 360}
package io.github.soat7.myburguercontrol.fixtures import io.github.soat7.myburguercontrol.domain.model.OrderDetail import io.github.soat7.myburguercontrol.domain.model.Product object OrderDetailFixtures { fun mockOrderDetail( cpf: String, product: Product = ProductFixtures.mockDomainProduct() ...
14
Kotlin
0
1
7481cda04707b7c24167ec54cda0422ad0017562
531
myburgercontrol-monolith
Apache License 2.0
app/src/main/java/com/codepunk/core/presentation/main/MainFragment.kt
codepunk
199,069,939
false
null
/* * Copyright (C) 2019 Codepunk, LLC * Author(s): <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 a...
0
Kotlin
0
0
42d9a9d2e22f4a7dd5068c611e696e3f2cde4c88
5,586
codepunk-android-app-core-codepunk
Apache License 2.0
mui-kotlin/src/jsMain/kotlin/mui/material/TableCell.mui.kt
karakum-team
387,062,541
false
{"Kotlin": 3079611, "TypeScript": 2249, "HTML": 724, "CSS": 86}
// Automatically generated - do not modify! @file:Suppress( "NESTED_CLASS_IN_EXTERNAL_INTERFACE", ) package mui.material import seskar.js.JsValue import seskar.js.JsVirtual import web.cssom.ClassName @JsVirtual sealed external interface MuiTableCell { companion object { @JsValue("MuiTableCell-root")...
0
Kotlin
5
35
60404a8933357df15ecfd8caf6e83258962ca909
1,291
mui-kotlin
Apache License 2.0
src/main/kotlin/jp/ac/titech/cs/se/refactorhub/core/model/Commit.kt
salab
208,590,763
false
null
package jp.ac.titech.cs.se.refactorhub.core.model interface Commit { val owner: String val repository: String val sha: String }
0
Kotlin
0
6
f876da7bcc7bceed549586f0f0300d20f2108fe0
141
RefactorHub
MIT License
src/player/main/sp/it/pl/core/CoreOs.kt
sghpjuikit
18,862,317
false
{"Kotlin": 3339717, "Java": 897208, "Python": 215547, "CSS": 169523, "HTML": 11896, "Shell": 237}
package sp.it.pl.core import com.sun.jna.LastErrorException import com.sun.jna.Native import com.sun.jna.win32.StdCallLibrary import java.io.File import org.jetbrains.annotations.Blocking import sp.it.pl.main.APP import sp.it.pl.main.Events.AppEvent.SystemSleepEvent import sp.it.util.async.future.awaitFxOrBlock import...
11
Kotlin
2
22
b842d41f378c40414f5e9ea7204ed524415ef763
4,809
player
X.Net License
appbase/src/main/java/com/pthw/appbase/extension/SpinnerExtensions.kt
PhyoThihaWin
551,899,842
false
{"Kotlin": 328147, "Java": 3279}
package com.pthw.appbase.extension import android.util.Log import android.view.View import android.widget.AdapterView import android.widget.Spinner /** * Created by Vincent on 2/13/20 */ fun spinnerSafeSelectionErrorStub(error: Exception) { Log.e("SpinnerExtensions", Log.getStackTraceString(error)) } fun spi...
1
Kotlin
1
4
f64626fb6e101659693ac76d8d9ca5489ac9e821
1,280
MyPagingThree
Apache License 2.0
app/src/main/java/com/rapid_rabbit/ultimatemastermindprototype/ui/theme/Color.kt
KaFaiFai
745,368,060
false
{"Kotlin": 40479}
package com.rapid_rabbit.ultimatemastermindprototype.ui.theme import androidx.compose.ui.graphics.Color val md_theme_light_primary = Color(0xFF7131E3) val md_theme_light_onPrimary = Color(0xFFFFFFFF) val md_theme_light_primaryContainer = Color(0xFFEADDFF) val md_theme_light_onPrimaryContainer = Color(0xFF24005B) val ...
0
Kotlin
0
0
bd31131bf7d38ccdbcf39f6aa76da2732d938778
3,226
Ultimate-Mastermind-Prototype
MIT License
idea/testData/resolve/referenceWithLib/delegatedPropertyWithTypeParametersSrc/delegatedPropertyWithTypeParametersDependency.kt
staltz
38,581,975
true
{"Java": 14526655, "Kotlin": 6831811, "JavaScript": 897073, "Groovy": 43935, "CSS": 14421, "Shell": 9248}
package dependency public fun <T, R> T.get(thisRef: R, desc: PropertyMetadata): Int { return 3 } public fun <T, R> T.set(thisRef: R, desc: PropertyMetadata, value: Int) { }
0
Java
0
1
88a261234860ff0014e3c2dd8e64072c685d442d
179
kotlin
Apache License 2.0
elderssearchview/src/main/java/com/eldersoss/elderssearchview/SearchSuggestionsFragment.kt
Elders
133,959,371
false
null
/* * Copyright (c) 2018. Elders 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 agree...
0
Kotlin
0
3
2544919017c656591fb90a816a29014f209f4184
2,716
EldersSearchView
MIT License
app/src/main/java/com/wreckingballsoftware/roadruler/domain/models/UIDrive.kt
leewaggoner
754,784,898
false
{"Kotlin": 78432}
package com.wreckingballsoftware.roadruler.domain.models import android.os.Parcelable import com.wreckingballsoftware.roadruler.data.models.INVALID_DB_ID import kotlinx.parcelize.Parcelize @Parcelize data class UIDrive( val driveId: Long = INVALID_DB_ID, val driveName: String = "", val driveDistance: Stri...
0
Kotlin
0
0
c0f90336b8c8136d106fa6cad85d13c3ee9ccaf2
379
roadruler
Apache License 2.0
app/src/main/java/today/kinema/Navigation.kt
manununhez
288,487,056
false
{"Kotlin": 191312}
package today.kinema import androidx.compose.runtime.Composable import androidx.navigation.compose.NavHost import androidx.navigation.compose.rememberNavController @Composable fun MainNavigation() { val navController = rememberNavController() NavHost(navController = navController, startDestination = "main") { ...
12
Kotlin
0
0
95582e5545fbae83136ac675d65107080f3b0c1c
442
pl-cinemas-app
MIT License
domain/src/main/java/com/sixoutoften/domain/use_case/GetAllDocumentsUseCase.kt
VitaliiKhorobchuk
446,410,591
false
{"Kotlin": 36390}
package com.sixoutoften.domain.use_case import com.sixoutoften.domain.common.RResult import com.sixoutoften.domain.model.Document import com.sixoutoften.domain.repository.DocumentRepository import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flow import javax.inject.Inject class GetAllDocumentsUseCase ...
0
Kotlin
0
0
ca0ef305f51cc56be9a6afb1f0fa2ee1a0fa18e9
547
fluffy-robot
Apache License 2.0
api/src/main/kotlin/me/ahoo/wow/template/api/demo/CreateDemo.kt
Ahoo-Wang
725,994,253
false
{"Kotlin": 7125, "Dockerfile": 385}
package me.ahoo.wow.template.api.demo import jakarta.validation.constraints.NotBlank import me.ahoo.wow.api.annotation.CommandRoute import me.ahoo.wow.api.annotation.CreateAggregate @CreateAggregate @CommandRoute( method = CommandRoute.Method.POST, path = "", summary = "创建Demo" ) data class CreateDemo( ...
1
Kotlin
1
9
9951053080a4d7a9e4cf343ab49f0a6bba7841f1
409
wow-project-template
Apache License 2.0
shared/src/commonMain/kotlin/networking/models/Pokemon.kt
NoamEfergan
838,285,206
false
{"Kotlin": 41187, "Swift": 12823}
package networking.models import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable import kotlinx.serialization.json.JsonArray import kotlinx.serialization.json.JsonElement @Serializable data class Pokemon( val abilities: List<Ability>, @SerialName("base_experience") val baseExperien...
0
Kotlin
0
0
5ccccfca6e1ad522e742ff9a6cb249b6b9436d5b
5,624
Pokemon
MIT License
src/easy/_724FindPivotIndex.kt
ilinqh
390,190,883
false
{"Kotlin": 398385, "Java": 32733}
package easy import java.util.* class _724FindPivotIndex { class Solution { fun pivotIndex(nums: IntArray): Int { val total = Arrays.stream(nums).sum() var left = 0 for (i in nums.indices) { if (left * 2 + nums[i] == total) { return i...
0
Kotlin
0
0
1113a9eb573f7fa442113aee06a7652e7cb2a4a6
424
AlgorithmsProject
Apache License 2.0
lib/src/main/kotlin/com/github/mpetuska/khakra/mediaQuery/MediaQuery.kt
mpetuska
336,056,073
false
null
@file:JsModule("@chakra-ui/media-query/dist/esm/media-query") package com.github.mpetuska.khakra.mediaQuery import react.RClass import react.RProps public external var Hide: RClass<ShowProps> public external interface ShowProps : RProps { public var breakpoint: String? get() = definedExternally set(value)...
0
Kotlin
2
6
42976e45898c3b03f0dbd540de3a5964a4fa8aea
1,101
khakra
Apache License 2.0
src/test/kotlin/no/nav/syfo/melding/status/kafka/KafkaDialogmeldingStatusConsumerSpek.kt
navikt
602,146,320
false
null
package no.nav.syfo.melding.status.kafka import io.ktor.server.testing.* import io.mockk.* import no.nav.syfo.melding.MeldingService import no.nav.syfo.melding.database.createMeldingTilBehandler import no.nav.syfo.melding.status.database.createMeldingStatus import no.nav.syfo.melding.status.domain.MeldingStatus import...
1
Kotlin
0
0
fd0c09a6cede8ea7e735b7929091dd2c28367290
5,350
isbehandlerdialog
MIT License
src/main/kotlin/org/pkl/intellij/psi/PklClassMemberBase.kt
apple
745,600,847
false
{"Kotlin": 844683, "Lex": 12354, "HTML": 486}
/** * Copyright © 2024 Apple Inc. and the Pkl project authors. 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 * * https://www.apache.org/licenses/LICENSE-2.0 ...
0
Kotlin
1
5
26f3ec19e2514ca79c999d5ce2f39acea150ee1c
1,981
pkl-intellij
Apache License 2.0
src/main/kotlin/org/mechdancer/dataflow/core/internal/SourceCore.kt
MechDancer
143,380,964
false
null
package org.mechdancer.dataflow.core.internal import org.mechdancer.common.extension.Optional import org.mechdancer.common.extension.toOptional import org.mechdancer.dataflow.core.intefaces.IEgress import java.util.concurrent.ConcurrentHashMap import java.util.concurrent.atomic.AtomicLong import java.util.concurrent.l...
0
Kotlin
0
2
f579ca6abefd233af277760f6163983f6be63a1b
2,671
dataflow-jvm
Do What The F*ck You Want To Public License
app/src/main/java/com/example/arvoice/ui/main/ar/RoomStatusChangeCallback.kt
catalinghita8
277,578,519
false
null
package com.example.arvoice.ui.main.ar interface RoomStatusChangeCallback { fun setAugmentedUIState(isLoading: Boolean, buttonState: ARButtonState, currentRoomId: Int?, clickAction: () -> Unit) }
0
Kotlin
0
1
2a0f821c4b2c7171ab3118f54526a143e761fc42
201
ARCore-NLP-persistent-augmentation
Apache License 2.0
src/main/kotlin/me/Game.kt
elect86
269,407,479
false
null
package me object Game { lateinit var playerA: Player lateinit var playerB: Player var turns = 0 var currentTurn = 0 val hasNext: Boolean get() = currentTurn < turns var draws = 0 fun next() { val a = playerA.launch(currentTurn) val b = playerB.launch(currentTu...
0
Kotlin
0
0
0b628ac968faa6586d7b5f8adbedd03c08e7f67b
829
rockPaperScissor
MIT License
src/main/kotlin/io/github/hellorin/mongoql/graphql/GraphQLParams.kt
Hellorin
221,061,679
false
null
package io.github.hellorin.mongoql.graphql /** * Class used to represent the various GraphQL input parameters * * @param rootTypeName The root type name of the GraphQL schema */ class GraphQLParams private constructor(val rootTypeName: String) { /** * Builder used to ease building for GraphQL parameters ...
0
Kotlin
0
1
261772b8114c7bfa8c0c608c18721ec4cbc25895
680
MongoQL-core
MIT License
src/main/kotlin/apps/table/gui/CardSelector.kt
JetBrains
61,370,887
false
null
package apps.table.gui /** * Created by user on 7/13/16. */ interface CardSelector { fun canSelect(card: CardGUI): Boolean { return false } fun select(card: CardGUI) { } }
2
Kotlin
4
9
319cab30277110edaa698b237b3c77e5380377bf
199
p2p-games
Apache License 2.0
app/src/main/java/com/babylon/wallet/android/presentation/transaction/composables/PresentingProofsContent.kt
radixdlt
513,047,280
false
{"Kotlin": 4940882, "HTML": 215350, "Ruby": 2757, "Shell": 1963}
package com.babylon.wallet.android.presentation.transaction.composables import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.IntrinsicSize import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout....
4
Kotlin
6
9
36c670dd32d181e462e9962d476cb8a370fbe4fe
5,776
babylon-wallet-android
Apache License 2.0
ask-api/src/main/kotlin/com/fluxtah/ask/api/tools/fn/FunctionInvoker.kt
fluxtah
794,032,032
false
{"Kotlin": 180140, "Shell": 387}
/* * Copyright (c) 2024 <NAME> * Released under the MIT license * https://opensource.org/licenses/MIT */ package com.fluxtah.ask.api.tools.fn import com.fluxtah.ask.api.clients.openai.assistants.model.AssistantRunStepDetails.ToolCalls.ToolCallDetails.FunctionToolCallDetails import kotlinx.serialization.InternalSe...
4
Kotlin
0
8
c59cfeee7b7034e08b64a0bf31d770b0b123f875
4,106
ask
MIT License
app/src/main/java/com/kylecorry/trail_sense/tools/maps/infrastructure/reduce/IMapReduce.kt
kylecorry31
215,154,276
false
null
package com.kylecorry.trail_sense.tools.maps.infrastructure.reduce import com.kylecorry.trail_sense.tools.maps.domain.Map interface IMapReduce { suspend fun reduce(map: Map) }
336
Kotlin
39
525
f4bfb38d536a9ce5e1b60e001a9b9bdd5a4dd06a
183
Trail-Sense
MIT License
kafka/kafka-symbol-processor/src/main/kotlin/ru/tinkoff/kora/kafka/symbol/processor/KafkaClassNames.kt
Tinkoff
568,800,636
false
null
package ru.tinkoff.kora.kafka.symbol.processor import com.squareup.kotlinpoet.ClassName object KafkaClassNames { val consumer = ClassName("org.apache.kafka.clients.consumer", "Consumer") val consumerRecord = ClassName("org.apache.kafka.clients.consumer", "ConsumerRecord") val consumerRecords = ClassName("...
21
null
23
146
bb6f65080d9f50b674c8a77dac08116b2ee9eebf
3,021
kora
Apache License 2.0
graphs/adapter-script-generation/src/test/kotlin/com/anaplan/engineering/azuki/graphs/adapter/scriptgen/GraphScriptGeneratorTest.kt
anaplan-engineering
458,253,960
false
{"Kotlin": 336057, "Groovy": 6043, "Shell": 1385, "CSS": 957}
package com.anaplan.engineering.azuki.graphs.adapter.scriptgen import com.anaplan.engineering.azuki.graphs.dsl.verifiableScenario import org.junit.Test class GraphScriptGeneratorTest { companion object { private val graphA = "graphA" } @Test fun graphWithEdges() { ScenarioScriptingTe...
1
Kotlin
3
2
9d03ed017bc2d818533437578ebbe45160ecdb9e
1,217
azuki
MIT License
demos/image-loader/common/src/jsMain/kotlin/com/bumble/appyx/imageloader/ImageBitmap.kt
bumble-tech
493,334,393
false
{"Kotlin": 829246, "Python": 2324, "HTML": 347, "Shell": 327, "CSS": 134}
package com.bumble.appyx.imageloader import androidx.compose.ui.graphics.ImageBitmap import androidx.compose.ui.graphics.toComposeImageBitmap actual fun ByteArray.toImageBitmap(): ImageBitmap { // TODO This doesn't work. Fix this for web return org.jetbrains.skia.Image.makeFromEncoded(this).toComposeImageBitm...
85
Kotlin
54
997
f5cc89fbdf9a168a70f8e9f11313e6524914179a
327
appyx
Apache License 2.0
app/src/main/java/com/shevelev/comics_viewer/dal/entities/DbPage.kt
AlShevelev
232,800,756
false
{"Gradle": 10, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 8, "Batchfile": 1, "Markdown": 1, "INI": 6, "Proguard": 7, "Kotlin": 236, "XML": 57, "Java": 1}
package com.shevelev.comics_viewer.dal.entities import com.activeandroid.Model import com.activeandroid.annotation.Column import com.activeandroid.annotation.Table import com.shevelev.comics_viewer.dal.dto.Page /** * One page of comics */ @Table(name = "Page") class DbPage : Model { @Column(name = "FileName") ...
1
null
1
1
884ffda569da9c00977b01472b74fe9f68674b25
1,204
comics_viewer
MIT License
mobile_app1/module994/src/main/java/module994packageKt0/Foo590.kt
uber-common
294,831,672
false
null
package module994packageKt0; annotation class Foo590Fancy @Foo590Fancy class Foo590 { fun foo0(){ module994packageKt0.Foo589().foo3() } fun foo1(){ foo0() } fun foo2(){ foo1() } fun foo3(){ foo2() } }
6
null
6
72
9cc83148c1ca37d0f2b2fcb08c71ac04b3749e5e
237
android-build-eval
Apache License 2.0
libraries/tools/new-project-wizard/new-project-wizard-cli/tests/org/jetbrains/kotlin/tools/projectWizard/cli/AbstractBuildFileGenerationTest.kt
Sathawale27
247,057,405
false
null
/* * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.tools.projectWizard.cli import com.intellij.testFramework.UsefulTestCase import ...
0
null
0
1
9dd201aaf243cf9198cf129b22d3aa38fcff182c
3,977
kotlin
Apache License 2.0
core/src/com/sergey/spacegame/common/lua/SpaceGameLuaLib.kt
SergeySave
88,623,560
false
{"Java": 243814, "Kotlin": 180384, "Lua": 12948, "GLSL": 696, "Shell": 88}
package com.sergey.spacegame.common.lua import com.badlogic.ashley.core.Component import com.badlogic.ashley.core.ComponentMapper import com.badlogic.ashley.core.Entity import com.badlogic.gdx.graphics.Color import com.sergey.spacegame.common.SpaceGame import com.sergey.spacegame.common.ecs.component.HealthComponent i...
1
Java
1
2
b3a73ac904e379cfc038fa04e5f8042855398c66
18,421
SpaceGame
MIT License
platform/platform-impl/src/com/intellij/internal/ui/componentsTestAction/JComboBoxPanel.kt
Romanzek
128,088,625
false
{"Text": 9255, "INI": 546, "YAML": 429, "Ant Build System": 11, "Batchfile": 34, "Dockerfile": 9, "Shell": 633, "Markdown": 734, "Ignore List": 141, "Git Revision List": 1, "Git Attributes": 11, "EditorConfig": 253, "XML": 7694, "SVG": 4338, "Kotlin": 57526, "Java": 83757, "HTML": 3765, "Java Properties": 210, "Gradle"...
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.internal.ui.componentsTestAction import com.intellij.openapi.ui.DialogPanel import com.intellij.ui.dsl.builder.panel import org.jetbrains.annotations.ApiStatus @ApiStatus.Inter...
1
null
1
1
e026aea35cf0f93731cc9d495866ed8bfe2812aa
1,137
intellij-community
Apache License 2.0
src/main/kotlin/_02_BasicSyntax/_02_Ranges_Loops.kt
aldenioburgos
265,962,739
false
{"Gradle Kotlin DSL": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "Markdown": 1, "Java": 3, "Kotlin": 35}
package _02_BasicSyntax import util.execute import util.printList /** * Os loops while e do_while são iguais aos do java. * O loop for(...;...;...) não existe em kotlin, no lugar dele entrou o for(...in...). */ fun main() { execute(::ex1, ::ex2, ::ex3, ::ex4, ::ex5, ::ex6) } /** * Loop sem indice */ private...
0
Kotlin
0
0
9d17643b2613222c1bdc3d0941304cbe63090187
1,940
kotlinclass
MIT License
src/main/com/intellij/lang/jsgraphql/ide/indexing/GraphQLIndexUtil.kt
JetBrains
47,924,453
false
{"Java": 3336793, "Kotlin": 370424, "HTML": 24669, "JavaScript": 17158, "Lex": 5689, "CSS": 1439, "Vue": 790, "TypeScript": 712}
@file:JvmName("GraphQLIndexUtil") package com.intellij.lang.jsgraphql.ide.indexing import com.intellij.json.JsonFileType import com.intellij.lang.jsgraphql.GraphQLFileType import com.intellij.openapi.fileTypes.FileType const val INDEX_BASE_VERSION = 3 @JvmField val FILE_TYPES_WITH_IGNORED_SIZE_LIMIT: Collection<Fil...
138
Java
97
880
7da48778c3125da12ea2aaa287b512967097c44e
384
js-graphql-intellij-plugin
MIT License
mvvm/src/main/java/com/arthurivanets/mvvm/MvvmActivity.kt
thapld
191,291,215
true
{"Kotlin": 465524, "Java": 10474}
/* * Copyright 2018 <NAME>, <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 agreed...
0
Kotlin
0
1
b36d2dd04b04dcc52f2fbf8e3f5db8412c168c1f
9,517
android-mvvm
Apache License 2.0
laurent/autumn/example/norswap/arithg/Arith6.kt
atanaka
68,498,527
true
{"Markdown": 90, "SQL": 3, "INI": 388, "JAR Manifest": 200, "Java Properties": 156, "XML": 1117, "HTML": 63, "Java": 3161, "Shell": 11, "Prolog": 246, "Ignore List": 192, "Makefile": 36, "XSLT": 25, "Text": 34, "Haskell": 139, "Proguard": 1, "ASL": 19, "ANTLR": 15, "Python": 16, "JSON": 8, "Graphviz (DOT)": 6, "Emacs L...
package norswap.arithg import norswap.autumn.Grammar import norswap.autumn.parsers.* import norswap.autumn.syntax.* class Arith6 : Grammar() { val num = Digit().repeat1 .build { Num(Integer.parseInt(str)) } val variable = Alpha() .. AlphaNum().repeat .build { Var(str) } va...
0
Java
0
0
7781bad384c49b5d80e7575685e891f08487db54
1,077
sle16
Creative Commons Attribution 4.0 International
uikit/src/main/java/com/sendbird/uikit/internal/extensions/ChannelExtensions.kt
sendbird
350,188,329
false
null
package com.sendbird.uikit.internal.extensions import com.sendbird.android.channel.GroupChannel import com.sendbird.uikit.consts.StringSet import com.sendbird.uikit.model.configurations.ChannelConfig internal fun GroupChannel.shouldDisableInput(channelConfig: ChannelConfig): Boolean { return channelConfig.enableS...
1
null
43
38
797e0b1055cff4313a9a04efe834469b02e9320d
436
sendbird-uikit-android
MIT License
plugins/gitlab/src/org/jetbrains/plugins/gitlab/mergerequest/action/GitLabMergeRequestRemoveReviewerAction.kt
rpaquay
136,651,574
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 org.jetbrains.plugins.gitlab.mergerequest.action import com.intellij.collaboration.messages.CollaborationToolsBundle import org.jetbrains.plugins.gitlab.api.dto.GitLabUserDTO import org.jetb...
1
null
1
1
1f52648bb045575c53c3b22ccbab8bf8ad93094b
859
intellij-community
Apache License 2.0
platform/ijent/src/com/intellij/platform/ijent/IjentCoroutinesUtil.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.platform.ijent import kotlinx.coroutines.CoroutineName import kotlinx.coroutines.CoroutineScope import kotlin.coroutines.CoroutineContext // TODO It is a copy-paste from Fleet,...
284
null
5162
16,707
def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0
784
intellij-community
Apache License 2.0
agp-7.1.0-alpha01/tools/base/build-system/gradle-core/src/test/java/com/android/build/gradle/internal/tasks/CopyDexOutputTest.kt
jomof
502,039,754
true
{"Markdown": 63, "Java Properties": 56, "Shell": 31, "Batchfile": 12, "Proguard": 30, "CMake": 10, "Kotlin": 3443, "C++": 594, "Java": 4446, "HTML": 34, "Makefile": 14, "RenderScript": 22, "C": 30, "JavaScript": 2, "CSS": 3, "INI": 11, "Filterscript": 11, "Prolog": 1, "GLSL": 1, "Gradle Kotlin DSL": 5, "Python": 12, "D...
/* * Copyright (C) 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
1
null
1
0
9e3475f6d94cb3239f27ed8f8ee81b0abde4ef51
4,447
CppBuildCacheWorkInProgress
Apache License 2.0
mobile_app1/module993/src/main/java/module993packageKt0/Foo34.kt
uber-common
294,831,672
false
null
package module993packageKt0; annotation class Foo34Fancy @Foo34Fancy class Foo34 { fun foo0(){ module993packageKt0.Foo33().foo3() } fun foo1(){ foo0() } fun foo2(){ foo1() } fun foo3(){ foo2() } }
6
Java
6
72
9cc83148c1ca37d0f2b2fcb08c71ac04b3749e5e
233
android-build-eval
Apache License 2.0
elma.litho/src/main/java/com/p69/elma/litho/DSL/Widgets.kt
p69
113,442,652
false
null
package com.p69.elma.litho.DSL import com.facebook.litho.Component import com.facebook.litho.ComponentContext import com.facebook.litho.widget.* import com.p69.elma.litho.ElmaLithoView fun <B : Component.Builder<B>> widget( create: () -> B, init: B.() -> Unit): ElmaLithoView { val builder = creat...
0
Kotlin
0
7
4ae30048e7a5ccb67fecaf1f5a8c31ba7f6d7f9b
4,124
Elma
MIT License
scavenger-collector/src/test/kotlin/com/navercorp/scavenger/repository/CodeBaseFingerprintDaoTest.kt
Clymene-project
607,530,728
true
{"Java Properties": 2, "Gradle Kotlin DSL": 13, "Shell": 3, "EditorConfig": 1, "Markdown": 6, "Batchfile": 1, "Text": 5, "Ignore List": 2, "SQL": 4, "YAML": 9, "JSON": 6, "Kotlin": 215, "XML": 5, "Java": 146, "HTML": 6, "JavaScript": 8, "Less": 3, "Vue": 21, "INI": 5, "TOML": 4, "Python": 73, "CSS": 1, "JAR Manifest": ...
package com.navercorp.scavenger.repository import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test import org.springframework.beans.factory.annotation.Autowired import org.springframework.boot.test.context.SpringBootTest @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINE...
0
null
0
0
74c762ec8a33a7ac61d445b61a806ddd6d3c4133
870
scavenger
Apache License 2.0
android/app/src/main/java/com/algorand/android/modules/transaction/detail/domain/model/TransactionSign.kt
perawallet
364,359,642
false
{"Swift": 8753304, "Kotlin": 7709389, "Objective-C": 88978, "Shell": 7715, "Ruby": 4727, "C": 596}
/* * Copyright 2022 Pera Wallet, LDA * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing,...
22
Swift
62
181
92fc77f73fa4105de82d5e87b03c1e67600a57c0
1,047
pera-wallet
Apache License 2.0
features/connection/src/main/java/com/kape/connection/ui/tv/TvConnectionScreen.kt
pia-foss
808,533,574
false
{"Kotlin": 1249493}
package com.kape.connection.ui.tv import androidx.activity.compose.BackHandler import androidx.compose.foundation.background import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Sp...
3
Kotlin
0
4
151ea781036e280fcbfecfcb5716c7881fc802c1
7,545
mobile-android
MIT License
src/main/kotlin/org/randomcat/agorabot/setup/features/Citations.kt
randomnetcat
291,139,813
false
null
package org.randomcat.agorabot.setup.features import org.randomcat.agorabot.config.parsing.features.CitationsConfig import org.randomcat.agorabot.config.parsing.features.readCitationsConfig import org.randomcat.agorabot.setup.BotDataPaths fun setupCitationsConfig(paths: BotDataPaths): CitationsConfig? { return re...
0
Kotlin
2
4
94a47636f9aaed9d97320f8c4974332a33649ad2
390
AgoraBot
MIT License
csstype-kotlin/src/jsMain/kotlin/web/cssom/JustifyContent.kt
karakum-team
393,199,102
false
null
// Automatically generated - do not modify! package web.cssom import seskar.js.JsValue sealed external interface JustifyContent { companion object { @JsValue("space-around") val spaceAround: JustifyContent @JsValue("space-between") val spaceBetween: JustifyContent @JsVal...
0
null
8
36
95b065622a9445caf058ad2581f4c91f9e2b0d91
952
types-kotlin
Apache License 2.0
app/src/main/java/com/example/wizlan/activities/QrGenerator.kt
anvi-comp
539,206,572
false
null
package com.example.wizlan.activities import android.Manifest import android.content.Intent import android.content.pm.PackageManager import android.graphics.Bitmap import android.net.Uri import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.os.Environment import android.view.View im...
0
Kotlin
0
0
61bca4f5dbb67b0c37f593b71fae637e4c8788a9
7,174
Wizlan
MIT License