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/gmail/orientale/francesco/letsaveit/screen/event/EventDetailsViewModel.kt | FrancescoOrientale | 617,133,062 | false | null | package com.gmail.orientale.francesco.letsaveit.screen.event
import android.util.Log
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.gmail.orientale.francesco.letsaveit.data.remote.responses.ApiResponse
import com.gmail.orientale.france... | 0 | Kotlin | 0 | 0 | fed1cc1cf2fb388da98f08dd4e26eed6962e9799 | 7,551 | letsaveit-front-end | Apache License 2.0 |
app/src/main/kotlin/org/eurofurence/connavigator/app/ConnavigatorApplication.kt | TempestTraxx | 165,716,317 | false | {"Java Properties": 2, "Gradle": 4, "Shell": 1, "Markdown": 84, "Batchfile": 1, "Text": 1, "Ignore List": 2, "Proguard": 1, "JSON": 1, "Java": 79, "XML": 46, "Kotlin": 98} | package org.eurofurence.connavigator.app
import android.support.multidex.MultiDexApplication
import com.chibatching.kotpref.Kotpref
import com.google.firebase.perf.metrics.AddTrace
import com.joanzapata.iconify.Iconify
import com.joanzapata.iconify.fonts.FontAwesomeIcons
import com.joanzapata.iconify.fonts.FontAwesome... | 1 | null | 1 | 1 | a7328c6d0a3b92bd95b3c180c5724f1025ac7a23 | 2,137 | ef-app_android | MIT License |
examples/triangle-common/src/commonMain/kotlin/TriangleCallback.kt | glimpse-graphics | 319,730,354 | false | null | /*
* Copyright 2020-2023 Glimpse Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 5 | Kotlin | 0 | 6 | e00a9f22db9e10493e7711d5dd8524eb7b06be77 | 10,438 | glimpse | Apache License 2.0 |
sdk/src/main/java/com/spacer/sdk/data/api/reqData/location/LocationGetReqData.kt | spacer-dev | 404,248,319 | false | null | package com.spacer.sdk.data.api.reqData.location
data class LocationGetReqData(
val locationId: String,
) | 0 | Kotlin | 0 | 0 | 121e2a680770b80f1b0a2e7d02f3313b9d50b223 | 110 | spacer-sdk-android | MIT License |
android/PetAdoptSampleApp/app/src/main/java/laurenyew/petadoptsampleapp/database/organization/Organization.kt | laurenyew | 239,209,623 | false | {"Kotlin": 152078, "Swift": 55338, "Objective-C": 581, "Ruby": 424} | package laurenyew.petadoptsampleapp.database.organization
import androidx.room.*
@Entity(primaryKeys = ["orgId", "searchId"])
data class Organization(
val orgId: String,
val searchId: String,
val name: String,
val email: String?,
val phone: String?,
val url: String?,
val address: String?,
... | 0 | Kotlin | 0 | 6 | d558514cabcc1a54a3436726f4493eb33d5952e1 | 746 | PetAdoptSampleApp | MIT License |
src/main/kotlin/com/zeta/monitor/model/ServerInfoDTO.kt | xia5800 | 449,936,024 | false | {"Kotlin": 493437, "Lua": 347} | package com.zeta.monitor.model
import cn.hutool.core.bean.BeanUtil
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
/**
* 服务器信息
*
* @author gcc
*/
@ApiModel(description = "服务器信息")
class ServerInfoDTO {
/** 系统信息 */
@ApiModelProperty(value = "服务器系统信息")
var sysInfo: ... | 0 | Kotlin | 2 | 8 | 8c138e73e864836ddfa5e3eabf05ec05749fda56 | 7,002 | zeta-kotlin | MIT License |
kool-physics/src/jsMain/kotlin/de/fabmax/kool/physics/Material.js.kt | fabmax | 81,503,047 | false | null | package de.fabmax.kool.physics
import de.fabmax.kool.util.BaseReleasable
import physx.PxMaterial
actual fun Material(staticFriction: Float, dynamicFriction: Float, restitution: Float): Material {
return MaterialImpl(staticFriction, dynamicFriction, restitution)
}
val Material.pxMaterial: PxMaterial get() = (this... | 9 | null | 18 | 284 | b6ba1c0e1591ae46c77a5e3e61b2e1354a11f0b9 | 783 | kool | Apache License 2.0 |
app/src/main/kotlin/com/eakurnikov/autoque/domain/csv/BufferedCsvCredentialsParserImpl.kt | eakurnikov | 208,430,680 | false | null | package com.eakurnikov.autoque.domain.csv
import android.content.Context
import android.net.Uri
import android.os.ParcelFileDescriptor
import com.eakurnikov.autoque.data.model.Credentials
import com.eakurnikov.common.annotations.AppContext
import java.io.BufferedReader
import java.io.IOException
import java.io.InputSt... | 0 | null | 0 | 1 | 4465eef7368e2c0633b4a47a5d0ec3c0076130ba | 1,696 | AutoQue | Apache License 2.0 |
RetenoSdkCore/src/main/java/com/reteno/core/di/provider/repository/RecommendationRepositoryProvider.kt | reteno-com | 545,381,514 | false | {"Kotlin": 1360551, "Java": 159640, "HTML": 17807, "Shell": 379} | package com.reteno.core.di.provider.repository
import com.reteno.core.data.repository.RecommendationRepository
import com.reteno.core.data.repository.RecommendationRepositoryImpl
import com.reteno.core.di.base.ProviderWeakReference
import com.reteno.core.di.provider.database.RetenoDatabaseManagerRecomEventsProvider
im... | 1 | Kotlin | 2 | 1 | 8be261c2b571a7a6124c62c038dfcf97b1ccad3f | 821 | reteno-mobile-android-sdk | MIT License |
src/jvmMain/kotlin/ui/controls/OpenFileButton.kt | Mouwrice | 666,317,508 | false | null | package ui.controls
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.width
import androidx.compose.material3.Button
import androidx.compose.material3.CircularProgressI... | 3 | Kotlin | 1 | 3 | 3971b691af68cba3b11f1b43ebf55fb4c7ff20d8 | 2,797 | proguard-core-visualizer | Apache License 2.0 |
app/src/main/java/bg/dabulgaria/tibroish/persistence/remote/repo/TiBroishRemoteRepository.kt | ti-broish | 359,553,419 | false | null | package bg.dabulgaria.tibroish.persistence.remote.repo
import bg.dabulgaria.tibroish.domain.auth.IRemoteRepoAuthenticator
import bg.dabulgaria.tibroish.domain.image.UploadImageRequest
import bg.dabulgaria.tibroish.domain.image.UploadImageResponse
import bg.dabulgaria.tibroish.domain.locations.CountryRemote
import bg.d... | 1 | Kotlin | 0 | 3 | 74904912edc11ef4c26014b9a7b259e2b8bc9c86 | 8,101 | mobile-android | MIT License |
solutions/src/trainings/2016/day 01.kt | Kroppeb | 225,582,260 | false | null | @file:Suppress("PackageDirectoryMismatch", "PackageName")
package trainings.`2016`.`01`
import grid.Clock
import helpers.Words
import helpers.getAlphaNums
import kotlinx.coroutines.runBlocking
import kotlin.math.abs
private val xxxxx = Clock(3, 6);
private fun part1(data: Data) = runBlocking {
var x = 0
var... | 0 | Kotlin | 0 | 1 | 744b02b4acd5c6799654be998a98c9baeaa25a79 | 1,583 | AdventOfCodeSolutions | MIT License |
build-logic/src/main/kotlin/androidx/compose/material/icons/generator/Names.kt | EC-Mobile | 765,562,331 | false | {"Kotlin": 90229} | /*
* Copyright 2020 The Android Open Source Project
* Copyright 2024 Rakuten Group, 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/LICENS... | 0 | Kotlin | 0 | 0 | bd6419aae31af6b0ffb694d2cdb34bd25fe84338 | 1,931 | rex-icons-android | Apache License 2.0 |
samples/multiplatform/androidApp/src/main/java/com/prof18/rssparser/sample/android/MainActivity.kt | prof18 | 61,429,036 | false | {"Kotlin": 198875} | package com.prof18.rssparser.sample.android
import android.content.Intent
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.viewModels
import androidx.compose.material.*
import androidx.compose.material.icons.Icons
import androidx.c... | 18 | Kotlin | 129 | 511 | a7f795ae05c3721cd6378416a1a755f9162d0502 | 3,094 | RSS-Parser | Apache License 2.0 |
src/main/kotlin/zielu/gittoolbox/fetch/AutoFetchAllowedDumbMode.kt | koalazub | 341,766,854 | true | {"Java": 368850, "Kotlin": 282198, "HTML": 5686} | package zielu.gittoolbox.fetch
import com.intellij.openapi.Disposable
import com.intellij.openapi.diagnostic.Logger
import com.intellij.openapi.project.Project
import zielu.gittoolbox.util.AppUtil
import java.util.concurrent.atomic.AtomicBoolean
internal class AutoFetchAllowedDumbMode(project: Project) : Disposable {... | 0 | null | 0 | 0 | c9dc7d2f7d77d5130288ae4d6ba3a9a8867314ba | 1,051 | GitToolBox | Apache License 2.0 |
generators/chaincode/templates/kotlin/src/test/kotlin/org/example/ChaincodeTest.kt | IBM-Blockchain | 138,380,582 | false | {"JSON": 32, "JavaScript": 33, "Text": 1, "Ignore List": 5, "EditorConfig": 8, "YAML": 6, "Markdown": 1, "Shell": 12, "Batchfile": 10, "Go": 11, "Go Checksums": 3, "Go Module": 3, "Gradle": 10, "INI": 5, "Java": 9, "JSON with Comments": 6, "Kotlin": 6} | /*
* <%= spdxAndLicense // SPDX-License-Identifier: Apache-2.0 %>
*/
package org.example;
import org.junit.Test;
import org.junit.Assert.*;
import com.nhaarman.mockitokotlin2.*;
import java.util.ArrayList;
import org.hyperledger.fabric.shim.ChaincodeStub;
import org.hyperledger.fabric.shim.Chaincode.Response;
imp... | 14 | JavaScript | 35 | 43 | 268d17451c0ae8fe863c062f9c3def4b74959c2e | 1,274 | generator-fabric | Apache License 2.0 |
app/src/main/java/com/kelvinfocus/secondpage/SecondPageApplication.kt | chan-kelv | 556,145,769 | false | null | package com.kelvinfocus.secondpage
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
import timber.log.Timber
@HiltAndroidApp
class SecondPageApplication: Application() {
override fun onCreate() {
super.onCreate()
// Timber init
Timber.plant(Timber.DebugTree())
... | 0 | Kotlin | 0 | 0 | debfe09a683d104dd6f5303563b960e868e28bc2 | 323 | SecondPage | MIT License |
src/TreeNode.kt | ilinqh | 390,190,883 | false | null | import java.util.*
class TreeNode(var `val`: Int) {
var left: TreeNode? = null
var right: TreeNode? = null
}
fun arrayToTreeNode(intArray: ArrayList<Int?>): TreeNode {
val root = TreeNode(intArray[0] ?: 0)
val queue = LinkedList<TreeNode?>()
queue.add(root)
var index = 1
while (index < int... | 0 | Kotlin | 0 | 0 | a08b6294f656f25c4a07402d19c09a8aa6ba0c06 | 975 | AlgorithmsProject | Apache License 2.0 |
app/src/main/java/com/botsheloramela/pokehub/data/model/Result.kt | BotsheloRamela | 775,455,441 | false | {"Kotlin": 61585} | package com.botsheloramela.pokehub.data.model
data class Result(
val name: String,
val url: String
) | 0 | Kotlin | 0 | 0 | 819b9f81406991cdde615f14c2bf7661f44cf20f | 109 | PokeHub | MIT License |
core/src/jvmTest/kotlin/pro/respawn/flowmvi/TestContract.kt | respawn-app | 477,143,989 | false | null | package pro.respawn.flowmvi
sealed class TestState : MVIState {
object Some : TestState()
data class SomeData<T>(val data: T) : TestState()
}
sealed class TestAction : MVIAction {
object Some : TestAction()
data class SomeData<T>(val data: T) : TestAction()
}
sealed class TestIntent : MVIIntent {
... | 1 | Kotlin | 2 | 72 | 402ace046eeafb48117c0c1437c1c9e97022599c | 405 | FlowMVI | Apache License 2.0 |
app/src/main/kotlin/com/rodolfonavalon/canadatransit/model/database/transit/Feed.kt | poldz123 | 106,507,508 | false | null | package com.rodolfonavalon.canadatransit.model.database.transit
import androidx.room.*
import com.rodolfonavalon.canadatransit.controller.database.converter.moshi.adapter.FeedCurrentFeedVersion
import com.rodolfonavalon.canadatransit.controller.database.converter.moshi.adapter.FeedForeignKey
import com.rodolfonavalon.... | 13 | Kotlin | 0 | 1 | 619bda01c045850282865bfeaca823e2ff7887fd | 1,418 | CanadaTransit | MIT License |
src/main/kotlin/me/sargunvohra/lib/klap/annotation/annotations.kt | sargunv | 50,864,037 | false | {"Kotlin": 13602, "Shell": 81} | package me.sargunvohra.lib.klap.annotation
/**
* The field annotated with this will get the additional arguments not part of a flag or key-value pair.
*/
annotation class ListArg
/**
* The field annotated with this will be either a boolean flag or a string key-value pair, depending on type.
*/
annotation class Si... | 2 | Kotlin | 0 | 0 | 6797b4bbf84d1c29135a6028f5332d7eb3dd18f0 | 353 | klap | Apache License 2.0 |
auth/app/src/main/java/com/google/firebase/quickstart/auth/kotlin/FacebookLoginActivity.kt | SagarBChauhan | 216,040,454 | false | null | package com.google.firebase.quickstart.auth.kotlin
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.Toast
import com.facebook.AccessToken
import com.facebook.CallbackManager
import com.facebook.FacebookCallback
import com.facebook.FacebookExc... | 4 | null | 0 | 5 | d886d348a681f41f02e78d720cb74fb8c162e339 | 5,410 | quickstart-android | Creative Commons Attribution 4.0 International |
dialects/postgresql/src/main/kotlin/app/cash/sqldelight/dialects/postgresql/PostgreSqlDialect.kt | sqldelight | 44,677,680 | false | null | package app.cash.sqldelight.dialects.postgresql
import app.cash.sqldelight.dialect.api.ConnectionManager
import app.cash.sqldelight.dialect.api.MigrationSquasher
import app.cash.sqldelight.dialect.api.RuntimeTypes
import app.cash.sqldelight.dialect.api.SqlDelightDialect
import app.cash.sqldelight.dialect.api.TypeResol... | 606 | null | 516 | 6,152 | f79bd8ae2cf991de6dccdb643376253402f665e1 | 2,089 | sqldelight | Apache License 2.0 |
android/src/main/java/com/spryrocks/capplugin/socketconnection/PluginException.kt | SpryRocks | 660,563,201 | false | null | package com.spryrocks.capplugin.socketconnection
import java.lang.Exception
class PluginException(message: String): Exception(message)
| 0 | Kotlin | 0 | 0 | 7e54c6e0d16a61689f2f029fe4774b5e505e2470 | 137 | capacitor-socket-connection-plugin | MIT License |
korma-tile-raycasting/src/commonMain/kotlin/Main.kt | korlibs | 607,071,838 | false | null | import korlibs.datastructure.*
import korlibs.image.atlas.*
import korlibs.image.bitmap.*
import korlibs.image.color.*
import korlibs.image.tiles.*
import korlibs.korge.*
import korlibs.korge.input.*
import korlibs.korge.scene.*
import korlibs.korge.view.*
import korlibs.korge.view.tiles.*
import korlibs.math.geom.*
im... | 3 | Kotlin | 0 | 0 | d6da1c221ba9a1aa62568326f3de6e6df954d553 | 3,710 | korge-ext | MIT License |
app/src/main/kotlin/com/healthmetrix/myscience/feature/webpage/WebPageController.kt | smart4health | 593,624,354 | false | null | package com.healthmetrix.myscience.feature.webpage
import android.annotation.SuppressLint
import android.content.ActivityNotFoundException
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import andr... | 0 | Kotlin | 0 | 1 | b18ef21ef3ae24f2a0bcace9cf6b5279ab6746e2 | 2,979 | my-science-app | MIT License |
test-scenario-parser-library/src/test/resources/scenarios/multiple_sentences/sources/Card.kt | kruchon | 497,624,779 | false | {"Kotlin": 65530, "Dockerfile": 1088} | package io.github.kruchon
data class Card(
val value: String
) | 0 | Kotlin | 0 | 0 | 628a4d37a350a37f1a6dcabf552acca269b435c3 | 67 | Test-Scenario-Parser | MIT License |
ui/common/src/main/java/ly/david/ui/common/release/ReleaseListItem.kt | lydavid | 458,021,427 | false | {"Kotlin": 1354732, "HTML": 674577, "Python": 3489, "Shell": 1543, "Ruby": 955} | package ly.david.ui.common.release
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.ListI... | 104 | Kotlin | 0 | 6 | 4f49e75742e4c2135161e98df9db15b418c6c3fe | 7,772 | MusicSearch | Apache License 2.0 |
src/test/kotlin/com/kirekov/super_selector/interpreter/lexeme/handler/NumberParserTest.kt | SimonHarmonicMinor | 281,106,975 | false | null | package com.kirekov.super_selector.interpreter.lexeme.handler
import com.kirekov.super_selector.LexemeParsingException
import com.kirekov.super_selector.interpreter.lexeme.LexemeType
import com.kirekov.super_selector.interpreter.lexeme.handler.LexemeParserTestUtils.testEquivalence
import com.kirekov.super_selector.int... | 1 | Kotlin | 0 | 1 | 6c6b8fa4db7d91ba865f7a8764035c4b03b297b6 | 2,386 | super-selector | MIT License |
zoomimage-compose/src/commonTest/kotlin/com/github/panpf/zoomimage/compose/test/zoom/TransformTest.kt | panpf | 647,222,866 | false | {"Kotlin": 3004367, "Shell": 724} | package com.github.panpf.zoomimage.compose.test.zoom
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.graphics.TransformOrigin
import androidx.compose.ui.layout.ScaleFactor
import com.github.panpf.tools4j.test.ktx.assertNoThrow
import com.github.panpf.tools4j.test.ktx.assertThrow
import com.github... | 1 | Kotlin | 7 | 98 | bdc00e862498830df39a205de5d3d490a5f04444 | 21,627 | zoomimage | Apache License 2.0 |
src/commonMain/kotlin/main.kt | marcelosanto | 469,483,934 | false | null | import com.soywiz.klock.*
import com.soywiz.korge.*
import com.soywiz.korge.tween.*
import com.soywiz.korge.view.*
import com.soywiz.korim.color.*
import com.soywiz.korim.format.*
import com.soywiz.korio.file.std.*
import com.soywiz.korma.geom.*
import com.soywiz.korma.interpolation.*
suspend fun main() = Korge(width ... | 0 | Kotlin | 0 | 0 | 47acdb794a9fc8320b5cc018513b8ad9845e93b2 | 795 | 2048-kotlin-korge | MIT License |
compiler/testData/diagnostics/tests/kt54587_2.kt | JetBrains | 3,432,266 | false | null | // FIR_IDENTICAL
package one
fun test(f: NextMissing) {
for(i in <!NEXT_NONE_APPLICABLE!>f<!>) {} //[NEXT_NONE_APPLICABLE] is expected as in K1
}
interface Doo
operator fun Doo.next() {}
interface NextMissing {
operator fun iterator(): NextMissing2
}
interface NextMissing2 {
operator fun hasNext(): Bool... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 326 | kotlin | Apache License 2.0 |
app/src/main/java/de/eloc/eloc_control_panel/data/helpers/firebase/AuthHelper.kt | EDsteve | 562,096,533 | false | {"Kotlin": 307261, "Java": 67203, "Batchfile": 122} | package de.eloc.eloc_control_panel.data.helpers.firebase
import androidx.credentials.ClearCredentialStateRequest
import androidx.credentials.CredentialManager
import androidx.credentials.CustomCredential
import androidx.credentials.GetCredentialRequest
import androidx.credentials.GetCredentialResponse
import androidx.... | 2 | Kotlin | 1 | 0 | e8e4dd73cac27117b64932f9dcaf5f7b520dc0fc | 11,845 | ELOC-Control-Panel | MIT License |
app/src/main/java/com/st/robmac/uitel/uitel.kt | paulbm9 | 557,807,086 | false | {"Kotlin": 16376} | package com.st.robmac.uitel
import android.content.Context
import android.widget.ImageView
import androidx.databinding.BindingAdapter
import androidx.swiperefreshlayout.widget.CircularProgressDrawable
import com.bumptech.glide.Glide
import com.bumptech.glide.request.RequestOptions
import com.st.robmac.R
fun getProges... | 0 | Kotlin | 0 | 0 | ecae815771a90ede0426d57afce4aadce604abf9 | 909 | ST-Robmac | MIT License |
app/src/main/java/com/example/carlos/realprogrammers/platform/helpers/CaffeineEmacsLabelProvider.kt | BCarlosH | 162,985,142 | false | {"Kotlin": 103768} | package com.example.carlos.realprogrammers.platform.helpers
import android.content.Context
import com.example.carlos.realprogrammers.R
fun getEmacsLabel(context: Context, value: Int?): String {
return when (value) {
0 -> context.resources.getString(R.string.emacs_lowest_value)
1 -> context.resour... | 0 | Kotlin | 0 | 0 | e5aa0de30e1f534571052c3842d0ededa0fcdc7b | 1,075 | RealProgrammers | Apache License 2.0 |
core/src/main/java/com/codeabovelab/tpc/core/nn/nlp/NlpTextSentenceIter.kt | codeabovelab | 159,236,130 | false | null | package com.codeabovelab.tpc.core.nn.nlp
import java.nio.file.Files
import java.nio.file.Path
import java.util.stream.Stream
/**
*/
class NlpTextSentenceIter private constructor(
private val stream: Stream<String>,
private val labels: List<String>?
) : SentenceIterator, AutoCloseable {
private v... | 0 | Kotlin | 0 | 0 | ee62aeecc62baefabd6085ad659e6cf5a1b237ff | 1,075 | text-compliance | Apache License 2.0 |
packages/library-sync/src/commonMain/kotlin/io/realm/kotlin/mongodb/ext/UserExt.kt | realm | 235,075,339 | false | null | /*
* Copyright 2022 Realm Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 188 | Kotlin | 42 | 610 | 107ad3b592fd9adccb476b1835d4579f13d7e765 | 1,393 | realm-kotlin | Apache License 2.0 |
src/day01/kotlin/aoc2023-01/src/main/kotlin/main.kt | JoubaMety | 726,095,975 | false | {"Kotlin": 17724} | fun main() {
val input = getResourceAsText("adventofcode.com_2023_day_1_input.txt")!!
println(getSumOfCalibrationValues(input))
}
/**
* Loads input text-file from src/main/resources
*/
fun getResourceAsText(path: String): String? =
object {}.javaClass.getResource(path)?.readText()
/**
* Splits String i... | 0 | Kotlin | 0 | 0 | 1f883bbbbed64f285b0d3cf7f51f6fb3a1a0e966 | 2,680 | AdventOfCode-2023 | MIT License |
app/src/test/java/br/com/entrypoint/mycinemalistyt/domain/PopularMovieTest.kt | N0stalgiaUltra | 673,077,504 | false | null | package br.com.entrypoint.mycinemalistyt.domain
import io.mockk.coEvery
import org.junit.Test
class PopularMovieTest {
@Test
fun getPopularMovies(){
//GIVEN
//WHEN
//THEN
}
} | 0 | Kotlin | 0 | 0 | 46807904502d54f8e04495cee590444a46390b75 | 215 | MoviesAPP | Apache License 2.0 |
secdra-service/src/main/kotlin/com/junjie/secdraservice/model/Reply.kt | CordyHo | 202,645,818 | true | {"Kotlin": 217975, "HTML": 4151} | package com.junjie.secdraservice.model
import org.hibernate.annotations.GenericGenerator
import org.springframework.data.annotation.CreatedDate
import org.springframework.data.annotation.LastModifiedDate
import java.util.*
import javax.persistence.Entity
import javax.persistence.GeneratedValue
import javax.persistence... | 0 | Kotlin | 0 | 0 | 4536a7a2bfb0e192d10c94e88aa26f3305059a45 | 916 | secdra | MIT License |
mapmemory-rxjava3/src/main/kotlin/RxAccessors.kt | RedMadRobot | 310,079,685 | false | null | package com.redmadrobot.mapmemory
import io.reactivex.rxjava3.core.Maybe
import io.reactivex.rxjava3.subjects.BehaviorSubject
import io.reactivex.rxjava3.subjects.PublishSubject
import io.reactivex.rxjava3.subjects.clear
/**
* Creates a delegate for dealing with [BehaviorSubject] stored in [MapMemory].
* The delega... | 0 | Kotlin | 2 | 17 | e19a78df59c09812639bd9a53f1c3f2dc7d43dac | 1,755 | mapmemory | MIT License |
app/src/main/java/ru/maxim/barybians/ui/fragment/feed/FeedRecyclerAdapter.kt | maximborodkin | 286,116,912 | false | null | package ru.maxim.barybians.ui.fragment.feed
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import kotlinx.android.synthetic... | 0 | Kotlin | 1 | 4 | eb0dbd6e0e0e732f2d2721f7bf5fbe13fe6338ad | 4,276 | Barybians-Android-App | MIT License |
src/main/kotlin/name/stepin/config/GraphqlExceptionHandler.kt | stepin | 636,449,498 | false | {"Kotlin": 49893, "Shell": 5986} | package name.stepin.config
import graphql.ErrorType
import graphql.GraphQLError
import graphql.GraphqlErrorBuilder
import graphql.schema.DataFetchingEnvironment
import jakarta.validation.ConstraintViolationException
import org.springframework.graphql.execution.DataFetcherExceptionResolverAdapter
import org.springframe... | 0 | Kotlin | 0 | 4 | 44e0c5b571b25ebc9b1ceae2df4048eecd56f56a | 923 | kotlin-bootstrap-app | MIT License |
packages/graalvm/src/main/kotlin/elide/runtime/gvm/internals/intrinsics/js/struct/map/JsMap.kt | elide-dev | 506,113,888 | false | null | package elide.runtime.gvm.internals.intrinsics.js.struct.map
import elide.annotations.core.Polyglot
import elide.runtime.intrinsics.js.MapLike
/** Implements a JavaScript-compatible `Map` with no mutable abilities. */
@Suppress("unused") internal class JsMap<K: Any, V> constructor (backingMap: Map<K, V>) :
BaseJsMa... | 36 | Kotlin | 4 | 33 | 91800dbbf291e65a91d451ed50c9673d82efd174 | 6,417 | elide | MIT License |
redwood-gradle-plugin/src/main/kotlin/app/cash/redwood/gradle/RedwoodSchemaExtension.kt | cashapp | 305,409,146 | false | null | /*
* Copyright (C) 2023 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 76 | null | 73 | 1,648 | 3f14e622c2900ec7e0dfaff5bd850c95a7f29937 | 1,014 | redwood | Apache License 2.0 |
app/src/main/java/mustafaozhan/github/com/githubclient/base/BaseFragment.kt | nvnkmr-vtalant | 146,702,369 | true | {"Kotlin": 35745} | package mustafaozhan.github.com.githubclient.base
import android.os.Bundle
import android.support.annotation.LayoutRes
import android.support.annotation.MenuRes
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
/**
* Created by <NAME> on ... | 0 | Kotlin | 0 | 0 | e8475d80c4467d16b8d6f7dc85a952a17e05596a | 982 | GitHubClient | Apache License 2.0 |
src/main/java/net/ccbluex/liquidbounce/utils/FileUtils.kt | Rmejia39 | 733,988,804 | false | {"Kotlin": 2304965, "Java": 1271227, "GLSL": 13515, "JavaScript": 8926} | /*
* FDPClient Hacked Client
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge by LiquidBounce.
* https://github.com/SkidderMC/FDPClient/
*/
package net.ccbluex.liquidbounce.utils
import org.apache.commons.io.IOUtils
import java.io.*
import java.nio.file.Files
import java... | 3 | Kotlin | 0 | 0 | b48c4e83c888568111a6665037db7fd3f7813ed3 | 2,749 | FDPClient | MIT License |
redwood-treehouse-host/src/commonMain/kotlin/app/cash/redwood/treehouse/SequentialStateFlow.kt | cashapp | 305,409,146 | false | {"Kotlin": 2089205, "Swift": 20649, "Objective-C": 4497, "Java": 1583, "Shell": 253, "HTML": 235, "C": 129} | /*
* Copyright (C) 2023 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 108 | Kotlin | 73 | 1,648 | 3f14e622c2900ec7e0dfaff5bd850c95a7f29937 | 1,318 | redwood | Apache License 2.0 |
waypoint-core/src/main/java/com/squaredcandy/waypoint/core/WaypointRouteChangeList.kt | squaredcandy | 638,860,321 | false | null | package com.squaredcandy.waypoint.core
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.filter
import kotlinx.coroutines.flow.runningFold
import kotlinx.coroutines.flow.zip
data class WaypointRouteChangeList(
val active: List<Waypoint>,
val inactive: List<Waypoint>,
val removed: List<Way... | 0 | Kotlin | 0 | 0 | 95b2bd4e023e1e4c95490d8dbb6cc5ffd558b02d | 1,382 | waypoint | Apache License 2.0 |
app/src/main/java/ca/josephroque/bowlingcompanion/database/Annihilator.kt | autoreleasefool | 28,992,199 | false | null | package ca.josephroque.bowlingcompanion.database
import android.content.Context
import android.util.Log
import ca.josephroque.bowlingcompanion.App
import ca.josephroque.bowlingcompanion.common.Android
import kotlinx.coroutines.experimental.CommonPool
import kotlinx.coroutines.experimental.CoroutineStart
import kotlinx... | 30 | null | 5 | 6 | be42ac42d6c842b3126a8841990e5f9c8c6af232 | 3,117 | bowling-companion | Apache License 2.0 |
presentation/src/main/java/com/yapp/timitimi/presentation/ui/createproject/screen/CreateProjectOneStepScreen.kt | YAPP-Github | 561,172,097 | false | {"Kotlin": 374971} | package com.yapp.timitimi.presentation.ui.createproject.screen
import androidx.activity.compose.BackHandler
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.gestures.detectTapGestures
import androidx.... | 0 | Kotlin | 0 | 6 | fcbff3b9bc0a4104a812e39f993b56585054bcbf | 12,526 | 21st-ALL-Rounder-Team-3-Android | Apache License 2.0 |
_lifecycle-handler/_activity/_dagger/lifecycle-handler-compose-activity-dagger/src/main/java/io/androidalatan/lifecycle/handler/compose/activity/di/ComposeLifecycleBottomSheetDialogFragmentBuilder.kt | android-alatan | 466,507,427 | false | null | package io.androidalatan.lifecycle.handler.compose.activity.di
import dagger.BindsInstance
import io.androidalatan.dagger.builder.BaseFragmentBuilder
import io.androidalatan.lifecycle.handler.api.ChildLifecycleSource
import io.androidalatan.lifecycle.handler.compose.activity.ComposeLifecycleBottomSheetDialogFragment
... | 3 | Kotlin | 5 | 56 | 35b0ec7a89f8254db0af1830ac1de8a7124c6f09 | 864 | LifecycleComponents | MIT License |
wui/src/main/kotlin/pages/exercise_in_library/editor/AutoassessAttrsEditComp.kt | kspar | 160,047,508 | false | null | package pages.exercise.editor
import components.form.IntFieldComp
import components.form.SelectComp
import pages.exercise.AutoEvalTypes
import rip.kspar.ezspa.Component
import tmRender
class AutoassessAttrsEditComp(
private val containerImage: String?,
private val maxTime: Int?,
private val maxMem: Int?,... | 1 | null | 2 | 5 | b35a0e51c92bb71d4ba5c9dab7d41b8fc010a5f9 | 2,705 | easy | MIT License |
base/src/main/java/com/github/weisj/darkmode/platform/PluginLogger.kt | weisJ | 253,094,897 | 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... | 9 | null | 13 | 47 | 02dae935968f5e3a25338e214664e4b8bd81ae13 | 2,033 | auto-dark-mode | MIT License |
project/module-legacy-api/src/main/kotlin/ink/ptms/adyeshach/common/entity/type/AdyDragonFireball.kt | TabooLib | 284,936,010 | false | {"Kotlin": 1050024, "Java": 35966} | package ink.ptms.adyeshach.common.entity.type
import ink.ptms.adyeshach.common.entity.EntityFireball
import ink.ptms.adyeshach.common.entity.EntityTypes
/**
* @author sky
* @date 2020/8/4 23:15
*/
@Deprecated("Outdated but usable")
class AdyDragonFireball(v2: ink.ptms.adyeshach.core.entity.EntityInstance): AdyEnt... | 13 | Kotlin | 86 | 98 | ac7098b62db19308c9f14182e33181c079b9e561 | 372 | adyeshach | MIT License |
compiler/src/main/kotlin/se/ansman/dagger/auto/compiler/optionallyprovided/models/OptionallyProvidedObjectModule.kt | ansman | 565,464,998 | false | null | package se.ansman.dagger.auto.compiler.optionallyprovided.models
import se.ansman.dagger.auto.compiler.common.Processor
import se.ansman.dagger.auto.compiler.common.models.HiltModule
import se.ansman.dagger.auto.compiler.common.rendering.HiltModuleBuilder
data class OptionallyProvidedObjectModule<out Node, TypeName, ... | 6 | null | 3 | 69 | 10c439594cea772cdc90e5e89c0847061d7a26e9 | 760 | auto-dagger | Apache License 2.0 |
soil-form/src/commonMain/kotlin/soil/form/SubmissionPolicy.kt | soil-kt | 789,648,330 | false | {"Kotlin": 315429, "Makefile": 915} | // Copyright 2024 Soil Contributors
// SPDX-License-Identifier: Apache-2.0
package soil.form
import kotlin.time.Duration
import kotlin.time.Duration.Companion.milliseconds
data class SubmissionPolicy(
val preValidation: Boolean = true,
val preValidationDelay: SubmissionPreValidationDelay = SubmissionPreValid... | 0 | Kotlin | 0 | 34 | b3d9ad5146c38395125e538b0f921d628b544298 | 578 | soil | Apache License 2.0 |
hobbits/src/integrationTest/kotlin/org/apache/tuweni/hobbits/RelayerTest.kt | apache | 178,461,625 | false | null | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 6 | null | 78 | 171 | 0852e0b01ad126b47edae51b26e808cb73e294b1 | 4,458 | incubator-tuweni | Apache License 2.0 |
doc-processor-gradle-plugin/src/test/kotlin/nl/jolanrensen/docProcessor/TestStringUtils.kt | Jolanrensen | 583,384,731 | false | null | package nl.jolanrensen.docProcessor
import io.kotest.matchers.shouldBe
import org.junit.Test
class TestStringUtils {
@Test
fun `Last index of not`() {
val string = "Hello World!"
string.lastIndexOfNot('a') shouldBe 0
string.lastIndexOfNot('H') shouldBe 1
string.lastIndexOfNot... | 2 | Kotlin | 0 | 10 | 5c48bffd09a762854c7e207bab16fcb757c66778 | 2,427 | docProcessorGradlePlugin | MIT License |
src/main/kotlin/io/github/arcticpot/jublockly/base/SkyBlockTime.kt | arctic-pot | 600,395,021 | false | {"Kotlin": 39006, "Java": 5203} | package io.github.arcticpot.jublockly.base
import java.time.Instant
import java.util.Date
class SkyBlockTime(val year: Int, val season: Season, val date: Int) {
enum class Season {
EarlySpring,
Spring,
LateSpring,
EarlySummer,
Summer,
LateSummer,
EarlyAutumn... | 0 | Kotlin | 0 | 0 | 0bd391206b3c7599e747cd11aeb88d67ed6bc69b | 1,611 | jublockly | MIT License |
app/src/main/java/com/fmt/github/App.kt | iptton | 294,321,463 | true | {"Kotlin": 79771, "Java": 32440} | package com.fmt.github
import android.app.Application
import android.content.ContextWrapper
import androidx.core.content.ContextCompat
import com.fmt.github.config.Configs
import com.jeremyliao.liveeventbus.LiveEventBus
import com.scwang.smartrefresh.header.MaterialHeader
import com.scwang.smartrefresh.layout.SmartRef... | 0 | null | 0 | 0 | 55cdf2517feef1f631bdcebe53e37a735dc3a512 | 1,127 | OpenGitHub | MIT License |
androidApp/src/main/java/com/multiplatformkickstarter/app/android/MainActivity.kt | MultiplatformKickstarter | 713,325,823 | false | {"HTML": 589554, "Kotlin": 392992, "Swift": 596, "Dockerfile": 295} | package com.multiplatformkickstarter.app.android
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import andr... | 2 | HTML | 7 | 96 | 3cd6e38e97065d3f511878f419fa636c91553c40 | 1,822 | Adoptme | Apache License 2.0 |
app/src/main/java/com/romandevyatov/bestfinance/viewmodels/foreachfragment/AddTransferViewModel.kt | RomanDevyatov | 587,557,441 | false | {"Kotlin": 672387} | package com.romandevyatov.bestfinance.viewmodels.foreachfragment
import android.os.Build
import androidx.annotation.RequiresApi
import androidx.lifecycle.LiveData
import androidx.lifecycle.viewModelScope
import com.romandevyatov.bestfinance.data.entities.BaseCurrencyRateEntity
import com.romandevyatov.bestfinance.data... | 0 | Kotlin | 0 | 1 | a5b2d72751fb6918a360854d2420368f8df9778e | 4,505 | BestFinance | Apache License 2.0 |
app/src/main/java/top/xjunz/tasker/task/applet/value/SwipeMetrics.kt | xjunz | 651,527,105 | false | {"Kotlin": 1063774, "Java": 386865, "HTML": 67262, "C": 29461, "JavaScript": 16670, "C++": 12159, "AIDL": 4190, "CMake": 1764} | /*
* Copyright (c) 2023 xjunz. All rights reserved.
*/
package top.xjunz.tasker.task.applet.value
import androidx.test.uiautomator.Direction
/**
* @author xjunz 2023/01/08
*/
class SwipeMetrics(val direction: Direction, val percent: Float, val speed: Int) {
companion object {
private const val MAX_... | 0 | Kotlin | 6 | 23 | 82893d0db2b13e12d8bee86b4cae0f16abd0e2f4 | 968 | AutoTask | Apache License 2.0 |
roomadapter/src/main/kotlin/com/netguru/repolibrx/roomadapter/mappers/RoomDataMapper.kt | netguru | 156,867,701 | false | null | package com.netguru.repolibrx.roomadapter.mappers
import androidx.room.Room
import com.netguru.repolibrx.RepoLib
import com.netguru.repolibrx.roomadapter.BaseDao
import com.netguru.repolibrx.roomadapter.RxRoomDataSource
/**
* [RoomDataMapper] is an interface that represents data transformation util. It's responsibil... | 0 | Kotlin | 0 | 13 | 35cd222a105ac412324d7410ead0c19195b96a6d | 1,276 | repolib-android | Apache License 2.0 |
app/src/main/java/com/mobilescanner/main/main/ui/MainFragment.kt | EricMoin | 663,117,340 | false | {"Kotlin": 92594} | package com.mobilescanner.main.main.ui
import android.os.Bundle
import android.view.Gravity
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.drawerlayout.widget.DrawerLayout
import androidx.navigation.fragment.findNavControl... | 0 | Kotlin | 0 | 0 | 21b7497f4e19d7832137a92e7506fbd019ef4276 | 2,307 | MobileScanner | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/DraftingCompass.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
im... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 4,197 | icons | MIT License |
app/src/main/java/com/angelo/destinystatusapp/presentation/widget/SingleLineText.kt | angelorohit | 777,418,508 | false | {"Kotlin": 133295, "Shell": 455} | package com.angelo.destinystatusapp.presentation.widget
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.LocalTextStyle
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
impo... | 0 | Kotlin | 0 | 0 | 3a8041d97dc0b52e001bc00bb601f269c61a397d | 1,241 | DestinyStatusApp | MIT License |
app/src/main/java/com/angelo/destinystatusapp/presentation/widget/SingleLineText.kt | angelorohit | 777,418,508 | false | {"Kotlin": 133295, "Shell": 455} | package com.angelo.destinystatusapp.presentation.widget
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.LocalTextStyle
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
impo... | 0 | Kotlin | 0 | 0 | 3a8041d97dc0b52e001bc00bb601f269c61a397d | 1,241 | DestinyStatusApp | MIT License |
base_android/src/androidMain/kotlin/siarhei/luskanau/iot/doorbell/common/DefaultDoorbellsDataSource.kt | siarhei-luskanau | 79,257,367 | false | {"Kotlin": 205797} | package siarhei.luskanau.iot.doorbell.common
import androidx.paging.PagingState
import siarhei.luskanau.iot.doorbell.data.model.DoorbellData
import siarhei.luskanau.iot.doorbell.data.repository.DoorbellRepository
class DefaultDoorbellsDataSource(
private val doorbellRepository: DoorbellRepository,
) : DoorbellsDa... | 0 | Kotlin | 0 | 2 | 801b8abab13c718fd6e383907c752e0b0425a8fc | 923 | android-iot-doorbell | MIT License |
features/games/data/src/main/java/com/themanol/reactbasket/games/data/datasource/GameDataSourceImpl.kt | themanol | 212,338,612 | false | null | package com.themanol.reactbasket.teams.data.datasource
import com.themanol.reactbasket.data.GameEntity
import com.themanol.reactbasket.data.PaginatedDataEntity
import com.themanol.reactbasket.games.data.datasource.GameService
import io.reactivex.Single
class GameDataSourceImpl(private val service: GameService) : Game... | 0 | Kotlin | 0 | 4 | d74c24f8b022dec35327743987eace70a8b02f86 | 700 | basket-react-architecture | Apache License 2.0 |
src/main/kotlin/domain/clock/SunriseSunsetEventEmitter.kt | mhert | 329,449,854 | false | null | package domain.clock
import com.luckycatlabs.sunrisesunset.SunriseSunsetCalculator
import com.luckycatlabs.sunrisesunset.dto.Location
import infrastructure.eventbus.EventBus
import java.time.Clock
import java.time.Instant
import java.time.ZoneId
import java.util.*
class SunriseSunsetEventEmitter(
private val even... | 0 | Kotlin | 0 | 0 | 5d5514636d621ff7cf6f049924f425c57787899d | 2,277 | house-knx-automation | MIT License |
src/org/mjurisic/aoc2020/day2/Day2.kt | mjurisic | 318,555,615 | false | null | package org.mjurisic.aoc2020.day2
import java.io.File
import java.util.*
class Day2 {
companion object {
@JvmStatic
fun main(args: Array<String>) {
try {
var entries = ArrayList<Password>()
File(ClassLoader.getSystemResource("resources/input2.txt").file... | 0 | Kotlin | 0 | 0 | 9fabcd6f1daa35198aaf91084de3b5240e31b968 | 1,574 | advent-of-code-2020 | Apache License 2.0 |
site/src/jsMain/kotlin/dev/bitspittle/site/components/sections/NavHeader.kt | bitspittle | 437,982,490 | false | {"Kotlin": 36591, "Dockerfile": 2813} | package dev.bitspittle.site.components.sections
import androidx.compose.runtime.*
import com.varabyte.kobweb.compose.css.functions.blur
import com.varabyte.kobweb.compose.css.functions.saturate
import com.varabyte.kobweb.compose.dom.ElementTarget
import com.varabyte.kobweb.compose.foundation.layout.Row
import com.vara... | 1 | Kotlin | 1 | 8 | f7208543046e25337e73b5ede07ff576623962b0 | 4,199 | bitspittle.dev | MIT License |
src/main/kotlin/no/nav/infotrygd/feed/proxy/Application.kt | navikt | 600,025,414 | false | {"Kotlin": 15652, "Dockerfile": 224, "Shell": 219} | package no.nav.infotrygd.feed.proxy
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
@SpringBootApplication
class Application
fun main(args: Array<String>) {
SpringApplication.run(Application::class.java, *args)
}
| 0 | Kotlin | 1 | 0 | 1278289507dadec28fd3e67855b2c58cda5a4aab | 290 | infotrygd-feed-proxy | MIT License |
compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/KotlinClassParameterGeneric.kt | romankagan | 340,094,226 | true | null | // FILE: K1.kt
class KotlinClass<T>
// FILE: JavaClass.java
public class JavaClass {
public static void baz(KotlinClass<Integer> k) {}
}
// FILE: K2.kt
fun main() {
JavaClass.baz(KotlinClass())
JavaClass.baz(KotlinClass<Int>())
JavaClass.<!INAPPLICABLE_CANDIDATE{LT}!><!INAPPLICABLE_CANDIDATE{PSI}!>baz... | 1 | null | 1 | 1 | 2fce6a4af9044de7975392474a6eb3b8c3985bd5 | 441 | kotlin | Apache License 2.0 |
kotlin-eclipse-ui-test/testData/format/autoIndent/beforeCloseBrace.kt | bvfalcon | 263,980,575 | true | {"Markdown": 3, "Maven POM": 15, "Text": 27, "Ignore List": 1, "Git Attributes": 1, "Java Properties": 7, "Gradle Kotlin DSL": 2, "XML": 23, "Shell": 2, "Batchfile": 2, "JAR Manifest": 9, "INI": 9, "Java": 266, "Kotlin": 966, "Gradle": 3, "Groovy": 12, "AspectJ": 15, "YAML": 1} | {
<caret>} | 19 | Kotlin | 7 | 43 | e6360b023e1e377325f1d10bda5755e3fc3af591 | 10 | kotlin-eclipse | Apache License 2.0 |
feature/tag/src/commonMain/kotlin/com/taetae98/diary/feature/tag/list/TagUiState.kt | TaeTae98 | 670,251,079 | false | {"Kotlin": 306928, "Swift": 1582, "HTML": 230} | package com.taetae98.diary.feature.tag.list
import com.taetae98.diary.share.ext.isNotNull
internal data class TagUiState(
val id: String,
val title: String,
val delete: ((String) -> Unit)?,
) {
val isDeleteEnable = delete.isNotNull()
fun onDelete() {
delete?.invoke(id)
}
}
| 1 | Kotlin | 0 | 0 | 459b923b853a0af9b7aae85ba120b2a0e203d355 | 309 | Diary | Apache License 2.0 |
defitrack-rest/defitrack-protocol-service/src/main/java/io/defitrack/protocol/uniswap/v3/UniswapV3BasePoolingMarketProvider.kt | decentri-fi | 426,174,152 | false | null | package io.defitrack.protocol.uniswap.v3
import io.defitrack.common.network.Network
import io.defitrack.conditional.ConditionalOnCompany
import io.defitrack.protocol.Company
import io.defitrack.protocol.uniswap.v3.prefetch.UniswapV3Prefetcher
import org.springframework.boot.autoconfigure.condition.ConditionalOnPropert... | 59 | null | 7 | 9 | e65843453e4c44f5c2626870ceb923eb7ab3c4d0 | 837 | defi-hub | MIT License |
app/src/test/java/me/hufman/androidautoidrive/ReflectUtils.kt | BimmerGestalt | 164,273,785 | false | {"Kotlin": 1839646, "Python": 4131, "HTML": 3912, "Shell": 1732} | package me.hufman.androidautoidrive
import java.lang.reflect.Field
import java.lang.reflect.Method
fun getModifiersField(): Field? {
// https://stackoverflow.com/a/74727966/169035
// https://github.com/prestodb/presto/pull/15240/files
return try {
Field::class.java.getDeclaredField("modifiers")
} catch (e: NoSu... | 49 | Kotlin | 90 | 546 | ea49ba17a18c353a8ba55f5040e8e4321bf14bd7 | 797 | AAIdrive | MIT License |
app/src/test/java/me/hufman/androidautoidrive/ReflectUtils.kt | BimmerGestalt | 164,273,785 | false | {"Kotlin": 1839646, "Python": 4131, "HTML": 3912, "Shell": 1732} | package me.hufman.androidautoidrive
import java.lang.reflect.Field
import java.lang.reflect.Method
fun getModifiersField(): Field? {
// https://stackoverflow.com/a/74727966/169035
// https://github.com/prestodb/presto/pull/15240/files
return try {
Field::class.java.getDeclaredField("modifiers")
} catch (e: NoSu... | 49 | Kotlin | 90 | 546 | ea49ba17a18c353a8ba55f5040e8e4321bf14bd7 | 797 | AAIdrive | MIT License |
src/main/kotlin/io/foxcapades/lib/cli/builder/arg/BigDecimalArgument.kt | Foxcapades | 850,780,005 | false | {"Kotlin": 253956} | package io.foxcapades.lib.cli.builder.arg
import java.math.BigDecimal
/**
* Argument type for containing [BigDecimal] values.
*
* @since 1.0.0
*/
interface BigDecimalArgument : ScalarArgument<BigDecimal>
| 8 | Kotlin | 0 | 0 | 457d895219666963b70ac10df70092a7b778ebea | 210 | lib-kt-cli-builder | MIT License |
src/main/kotlin/io/foxcapades/lib/cli/builder/arg/BigDecimalArgument.kt | Foxcapades | 850,780,005 | false | {"Kotlin": 253956} | package io.foxcapades.lib.cli.builder.arg
import java.math.BigDecimal
/**
* Argument type for containing [BigDecimal] values.
*
* @since 1.0.0
*/
interface BigDecimalArgument : ScalarArgument<BigDecimal>
| 8 | Kotlin | 0 | 0 | 457d895219666963b70ac10df70092a7b778ebea | 210 | lib-kt-cli-builder | MIT License |
app/src/main/java/com/example/androiddevchallenge/ui/DetailPage.kt | mrjoechen | 343,283,227 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | null | 0 | 1 | b3988d647e951e3c38f1dd3c8f13e789dcf58f4a | 6,922 | PuppyAdoption | Apache License 2.0 |
src/main/kotlin/de/lancom/openapi/common/types/SchemaFormat.kt | lancomsystems | 733,524,954 | false | {"Kotlin": 991338, "Mustache": 16764} | package de.lancom.openapi.common.types
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
import com.fasterxml.jackson.databind.annotation.JsonSerialize
import de.lancom.openapi.common.jackson.JsonWrapper
import de.lancom.openapi.common.jackson.JsonWrapperCompanion
@JsonSerialize(keyUsing = SchemaFormat... | 4 | Kotlin | 0 | 1 | 3795f1665b17768d5ef58e64c467188eeda5ad92 | 1,071 | openapi-parser | Apache License 2.0 |
layout-inspector/testSrc/com/android/tools/idea/layoutinspector/properties/InspectorPropertiesViewTest.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 1 | null | 220 | 857 | 8d22f48a9233679e85e42e8a7ed78bbff2c82ddb | 11,373 | android | Apache License 2.0 |
BaseDebug/src/main/java/com/bihe0832/android/base/debug/media/DebugImageFragment.kt | AndroidAppFactory | 222,415,705 | false | null | package com.bihe0832.android.base.debug.media
import android.graphics.Color
import android.text.TextUtils
import android.view.View
import com.bihe0832.android.base.debug.R
import com.bihe0832.android.common.photos.HeadIconBuildFactory
import com.bihe0832.android.framework.ZixieContext
import com.bihe0832.android.frame... | 1 | null | 16 | 49 | 5e5b503327a05c38d2854b0cbee79b89d84fbd85 | 6,736 | AndroidAppFactory | MIT License |
mongodb/src/main/kotlin/com/example/entities/CreateArticle.kt | ktorio | 118,613,634 | false | {"Kotlin": 235717, "HTML": 31889, "FreeMarker": 8801, "Swift": 6462, "CSS": 5404, "JavaScript": 1916} | package com.example.entities
import kotlinx.serialization.Serializable
@Serializable
data class CreateArticle(
val id: String? = null,
val title: String,
val body: String)
| 40 | Kotlin | 340 | 1,448 | f8f6e53f4d912293c06d2351f5cf582fa51a89ff | 186 | ktor-samples | Apache License 2.0 |
core/database/src/main/kotlin/com/niyaj/database/model/MeasureUnitEntity.kt | skniyajali | 644,752,474 | false | {"Kotlin": 5045629, "Shell": 16584, "Ruby": 1461, "Java": 232} | /*
* Copyright 2024 <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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 31 | Kotlin | 0 | 1 | d449fd857f3a1d12596c566341a6a182eea15d78 | 1,103 | PoposRoom | Apache License 2.0 |
core/src/main/kotlin/materialui/components/slider/slider.kt | subroh0508 | 167,797,152 | false | null | package materialui.components.slider
import kotlinx.html.SPAN
import kotlinx.html.Tag
import kotlinx.html.TagConsumer
import materialui.components.StandardProps
import materialui.components.slider.enums.SliderStyle
import org.w3c.dom.Node
import react.RBuilder
import react.RClass
import react.buildElement
@JsModule("... | 14 | null | 27 | 81 | a959a951ace3b9bd49dc5405bea150d4d53cf162 | 2,034 | kotlin-material-ui | MIT License |
src/main/kotlin/CPerksDb.kt | argcc | 777,572,651 | false | {"Kotlin": 946952} | package org.example
var PerksDb = CPerksDb()
class Skill {
var Name = ""
var Code = ""
var TextureType = 0
var BaseAttributes = mutableListOf<String>()
}
class Perk {
var Name = ""
var Code = ""
var TextureType = 0
var RequiredPerk = ""
var Exclusive = 0
var SkillType = ""
... | 0 | Kotlin | 0 | 0 | ae6066ffc098705d466ffc09a73d39f441bec749 | 1,052 | ei_reverse_consp | MIT License |
javalin/src/main/java/io/javalin/plugin/bundled/BasicAuthPlugin.kt | javalin | 87,012,358 | false | null | /*
* Javalin - https://javalin.io
* Copyright 2017 <NAME>
* Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE
*/
package io.javalin.plugin.bundled
import io.javalin.config.JavalinConfig
import io.javalin.http.Header.WWW_AUTHENTICATE
import io.javalin.http.UnauthorizedResponse
import ... | 21 | null | 600 | 6,817 | 1fd96f8402b32ae8a80cb7e9e94c3245424cdca5 | 1,900 | javalin | Apache License 2.0 |
core/src/commonMain/kotlin/org/kobjects/greenspun/core/func/LocalReference.kt | kobjects | 340,712,554 | false | {"Kotlin": 133537, "Ruby": 1673} | package org.kobjects.greenspun.core.func
import org.kobjects.greenspun.core.binary.WasmOpcode
import org.kobjects.greenspun.core.expr.CodeWriter
import org.kobjects.greenspun.core.expr.Expr
import org.kobjects.greenspun.core.type.Type
import org.kobjects.greenspun.core.binary.WasmWriter
class LocalReference(
val ... | 0 | Kotlin | 0 | 0 | 3063252a8005db0e4e926bfdc0ae87a53d912e51 | 672 | greenspun | Apache License 2.0 |
app/src/main/java/au/com/hearty/view/adapter/MeasurementListAdapter.kt | hijamescheng | 230,816,709 | false | null | package au.com.hearty.view.adapter
import android.util.Log
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.DiffUtil
import au.com.hearty.R
import au.com.hearty.databinding.ItemMeasurementRichBinding
import au.com.hearty.mod... | 0 | Kotlin | 0 | 0 | d31cbc82a4f5a12e6dc8fcec3e845519a84f35f1 | 3,040 | Hearty | Apache License 2.0 |
deliveries/src/main/kotlin/org/bastanchu/churiservices/deliveries/internal/core/WebSecurityConfig.kt | vellebue | 723,669,515 | false | {"Kotlin": 222568} | package org.bastanchu.churiservices.deliveries.internal.core
import org.bastanchu.churiservices.core.api.config.BaseWebSecurityConfig
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.security.config.annotation.web.builders.HttpSec... | 0 | Kotlin | 0 | 0 | 23d7d0936371c78df6771631acbb4ddda6f805d2 | 615 | churiservices | Apache License 2.0 |
kotlin-eclipse-core/src/org/jetbrains/kotlin/core/model/KotlinEnvironment.kt | amit2014 | 108,707,429 | true | {"Kotlin": 816774, "Java": 738711, "AspectJ": 15193} | /*******************************************************************************
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.a... | 0 | Kotlin | 0 | 0 | a5c708604a54bd12a2d2865a647f015cb01e178c | 11,167 | kotlin-eclipse | Apache License 2.0 |
src/main/kotlin/dev/agnor/codecbuilder/GenerateCodecIntention.kt | agnor99 | 730,855,809 | false | {"Kotlin": 38138, "HTML": 378} | package dev.agnor.codecbuilder
import com.intellij.lang.jvm.JvmModifier
import com.intellij.lang.jvm.types.JvmPrimitiveTypeKind
import com.intellij.notification.NotificationGroupManager
import com.intellij.notification.NotificationType
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Proje... | 1 | Kotlin | 2 | 3 | 336665715d75e90190ed1ee9289f19c7bcb01e21 | 17,730 | codecbuilder | MIT License |
kt/godot-library/src/main/kotlin/godot/gen/godot/CheckBox.kt | utopia-rise | 289,462,532 | false | null | // 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... | 58 | Kotlin | 25 | 338 | 10ab18864229f5178fc20e0be586d321e306be26 | 1,346 | godot-kotlin-jvm | MIT License |
compiler/tests-common-new/tests/org/jetbrains/kotlin/test/generators/NewTestGenerationDSL.kt | BradOselo | 367,097,840 | false | null | /*
* Copyright 2010-2020 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.test.generators
import org.jetbrains.kotlin.generators.InconsistencyChecker
impo... | 1 | null | 1 | 3 | 58c7aa9937334b7f3a70acca84a9ce59c35ab9d1 | 1,105 | kotlin | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.