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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
docs/src/pages/tegral-web-example.kt | utybo | 491,247,680 | false | {"Kotlin": 1066259, "Nix": 2449, "Shell": 8} | // NOTE: this syntax is not available yet.
fun Routing.greeter() {
get("/hello") {
call.respond("Hello World!")
}
}
fun main() {
tegral {
put(Routing::greeter)
}
}
| 26 | Kotlin | 4 | 37 | fa4284047f2ce7ba9ee78e92d8c67954716e9dcc | 188 | Tegral | Apache License 2.0 |
app/src/main/java/com/quizapp/presentation/update_password/UpdatePasswordViewModel.kt | AhmetOcak | 591,704,302 | false | null | package com.quizapp.presentation.update_password
import android.content.SharedPreferences
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.quizapp.core... | 0 | Kotlin | 0 | 5 | cc9d467fcd37cc88c9bbac315bd9aae920722bac | 5,269 | QuizApp | MIT License |
data/src/test/java/com/github/cheapmon/balalaika/data/repositories/HistoryRepositoryTest.kt | cheapmon | 233,464,548 | false | null | package com.github.cheapmon.balalaika.data.repositories
import com.github.cheapmon.balalaika.data.db.FakeHistoryItemDao
import com.github.cheapmon.balalaika.data.db.history.HistoryItemEntity
import com.github.cheapmon.balalaika.data.mappers.CategoryEntityToDataCategory
import com.github.cheapmon.balalaika.data.mappers... | 1 | Kotlin | 1 | 2 | ced6f772ab5df750ce0005f58a276361554fde63 | 3,097 | balalaika | Apache License 2.0 |
solar/src/main/java/com/chiksmedina/solar/broken/designtools/RulerPen.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.broken.designtools
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.Round
import androidx.compose.ui.graphics.StrokeJoin.Compa... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 4,608 | SolarIconSetAndroid | MIT License |
src/main/kotlin/github/samyycx/fisherman/modules/gameconfig/fishgroup/FishGroupParser.kt | samyycX | 742,795,853 | false | {"Kotlin": 42404, "Java": 351} | package github.samyycx.fisherman.modules.gameconfig.fishgroup
import org.bukkit.configuration.ConfigurationSection
object FishGroupParser {
fun parseFromSection(section: ConfigurationSection): FishGroup {
val id = section.name
val condition = section.getStringList("condition")
val items ... | 0 | Kotlin | 0 | 0 | 8336b73de9e8461612791651aec6ef9f246e92ac | 410 | Fisherman | MIT License |
action/runner/src/test/kotlin/org/archguard/runner/ActionManifestManagerTest.kt | archguard | 565,163,416 | false | null | package org.archguard.runner
import io.kotest.matchers.shouldBe
import org.junit.jupiter.api.Test
import java.io.File
class ActionManifestManagerTest {
@Test
fun `should load action manifest`() {
val source = this.javaClass.classLoader.getResource("pipeline/basic.yml")!!.path
val actionManifes... | 2 | Kotlin | 1 | 11 | 3b5b1acefcf8b94276b38d9133bfe0b916d4a810 | 523 | codedb-poc | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/prisonerevents/repository/SqlRepository.kt | ministryofjustice | 526,285,463 | false | null | package uk.gov.justice.digital.hmpps.prisonerevents.repository
import org.springframework.jdbc.core.namedparam.MapSqlParameterSource
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate
import org.springframework.stereotype.Repository
import java.sql.ResultSet
import java.time.LocalDate
import ja... | 2 | Kotlin | 0 | 0 | f4e8040096cc70bd07387032f76f2ff70ae2eb43 | 2,960 | hmpps-prisoner-events | MIT License |
api/src/main/kotlin/com/example/api/test/TestController.kt | PARKPARKWOO | 737,782,254 | false | {"Kotlin": 209522} | package com.example.api.test
import com.example.api.common.annotation.PublicEndPoint
import com.example.common.log.Log
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
@RestController
@... | 10 | Kotlin | 0 | 0 | 9bb2b77dfede5968affb9590186136acd160683f | 496 | barbellrobot-backend | Apache License 2.0 |
compiler/src/main/java/cz/levinzonr/saferoute/processor/codegen/NavControllerExtensionsBuilder.kt | levinzonr | 372,225,040 | false | null | package cz.levinzonr.saferoute.processor.codegen
import com.squareup.kotlinpoet.FileSpec
import com.squareup.kotlinpoet.FunSpec
import cz.levinzonr.saferoute.annotations.Route
import cz.levinzonr.saferoute.processor.constants.ClassNames
import cz.levinzonr.saferoute.processor.models.ModelData
import cz.levinzonr.safer... | 7 | Kotlin | 0 | 40 | 3d652d2b1f80a5698df0f4579cc49747ed07d13c | 1,156 | compose-safe-routing | Apache License 2.0 |
ERMSEmployee/src/main/java/com/kust/ermsemployee/di/ViewModelLevel.kt | sabghat90 | 591,653,827 | false | {"Kotlin": 583902, "HTML": 87217} | package com.kust.ermsemployee.di
import android.content.SharedPreferences
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.database.FirebaseDatabase
import com.google.firebase.firestore.FirebaseFirestore
import com.google.firebase.storage.StorageReference
import com.google.gson.Gson
import com.k... | 1 | Kotlin | 0 | 2 | 56497f553ddcbbe2bdbafb987caa40cb44d552e8 | 3,523 | ERMS | MIT License |
build-logic/convention/src/main/kotlin/pl/droidsonroids/composekit/utils/Libs.kt | DroidsOnRoids | 514,214,122 | false | {"Kotlin": 105234} | package pl.droidsonroids.composekit.utils
import org.gradle.api.Project
import org.gradle.api.artifacts.VersionCatalog
import org.gradle.api.artifacts.VersionCatalogsExtension
import org.gradle.kotlin.dsl.getByType
internal val Project.libs: VersionCatalog
get() = project.extensions.getByType<VersionCatalogsExten... | 29 | Kotlin | 0 | 0 | 61097320067374bafc35eb333c38d8e8a4497637 | 342 | ComposeKit | MIT License |
examples/graphql/src/main/kotlin/example/spring/boot/graphql/api/BookController.kt | test-automation-in-practice | 506,693,260 | false | null | package example.spring.boot.graphql.api
import example.spring.boot.graphql.business.Book
import example.spring.boot.graphql.business.BookCollection
import example.spring.boot.graphql.business.BookRecord
import example.spring.boot.graphql.business.Isbn
import example.spring.boot.graphql.business.Page
import example.spr... | 0 | Kotlin | 0 | 17 | fbc2a5931c9e27a80ec78bd69db60b1ee25ee671 | 1,349 | cnt-spring-boot | Apache License 2.0 |
src/main/kotlin/nl/toefel/blog/aggregatefunctions/dto/UserStatistic.kt | toefel18 | 239,209,052 | false | null | package nl.toefel.blog.aggregatefunctions.dto
data class UserStatistic(
val fromUser: String,
val totalLikes: Long,
val totalDislikes: Long) | 0 | Kotlin | 0 | 0 | 73af966500cc63372b005c611c78212f6096e9e2 | 153 | kotlin-exposed-blog-aggregate-functions | MIT License |
src/main/kotlin/klev/db/wishes/Status.kt | torland-klev | 822,687,443 | false | {"Kotlin": 73616} | package klev.db.wishes
enum class Status {
OPEN,
SELECTED,
FULFILLED,
DELETED,
}
| 0 | Kotlin | 0 | 0 | 55b99f3fb843763b9a4d2363f97879c924bd6ea4 | 98 | gavelista-api | MIT License |
src/main/kotlin/no/nav/helse/domene/person/PersonService.kt | navikt | 157,684,573 | false | {"Kotlin": 756905, "Shell": 328, "Dockerfile": 47} | package no.nav.helse.domene.person
import arrow.core.flatMap
import no.nav.helse.Feilårsak
import no.nav.helse.arrow.sequenceU
import no.nav.helse.domene.AktørId
import no.nav.helse.oppslag.person.PersonClient
import no.nav.tjeneste.virksomhet.person.v3.binding.HentGeografiskTilknytningPersonIkkeFunnet
import no.nav.t... | 0 | Kotlin | 0 | 1 | ed034e9b111afd53715c410029b67c8b06aaf702 | 3,458 | helse-sparkel | MIT License |
src/main/kotlin/com/deflatedpickle/rawky/component/ToolOptions.kt | DeflatedPickle | 197,672,095 | false | null | /* Copyright (c) 2020 DeflatedPickle under the MIT license */
package com.deflatedpickle.rawky.component
import com.deflatedpickle.rawky.api.annotations.Options
import com.deflatedpickle.rawky.api.component.Component
import com.deflatedpickle.rawky.util.Components
import java.awt.GridBagConstraints
import java.awt.Gr... | 20 | Kotlin | 5 | 23 | 7fe5d6ad2953a4a0ef5d7f865bee476a0fb15d0a | 3,099 | Rawky | MIT License |
data/tmdbApi/src/main/java/com/ant/tmdb/old/TmdbImageOptions.kt | toaderandrei | 786,415,615 | false | {"Kotlin": 214427, "Java": 376} | package com.ant.tmdb.old
class ImageUrlProvider(private val imageSize: String, private val path: String? = null) {
companion object {
const val IMAGE_URL = "https://image.tmdb.org/t/p/"
}
fun imageUrl(): String {
val stringBuilder: StringBuilder = StringBuilder()
stringBuilder.app... | 0 | Kotlin | 0 | 0 | 2b66ec4a0f2ca5161c3e9e1b687459a8c972edaa | 947 | popular-movies-kt | The Unlicense |
compression/src/commonTest/kotlin/pw/binom/compression/zlib/ZlibTest.kt | caffeine-mgn | 182,165,415 | false | {"C": 13079003, "Kotlin": 1913743, "C++": 200, "Shell": 88} | package pw.binom.compression.zlib
import pw.binom.ByteBuffer
import kotlin.test.Test
import kotlin.test.assertEquals
class ZlibTest {
@Test
fun test() {
val sourceData = ByteBuffer.alloc(30)
repeat(sourceData.capacity) {
sourceData.put(10)
}
sourceData.clear()
... | 7 | C | 2 | 59 | 580ff27a233a1384273ef15ea6c63028dc41dc01 | 1,858 | pw.binom.io | Apache License 2.0 |
androidunsplash/src/main/java/com/keenencharles/unsplash/models/Result.kt | KeenenCharles | 90,798,987 | false | null | package com.keenencharles.unsplash.models
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize
@Parcelize
data class Result(
var id: String? = null,
var width: Int? = null,
var height: Int? = null,
var color: String? = null,
... | 0 | Kotlin | 22 | 87 | 37b41a1a2f3669001e7876dfa53b6a664940c419 | 830 | AndroidUnplash | MIT License |
library/src/test/kotlin/ru/kontur/kinfra/kfixture/data/objects/random1/Electricity.kt | skbkontur | 212,616,062 | false | null | package ru.kontur.kinfra.kfixture.data.objects.random1
data class Electricity(
val act: Int,
val adult: Boolean,
val afraid: Int,
val all: Int,
val alphabet: Boolean,
val among: Double,
val anyway: Boolean,
val appearance: Boolean,
val apple: String,
val arrow: String,
val a... | 7 | Kotlin | 1 | 1 | e1845e8c9737c66b63cfa49925ad3bb9c589fbd1 | 4,609 | KFixture | MIT License |
src/main/kotlin/de/brainsizzle/twitchbotpaint/bot/Config.kt | brainsizzle | 363,224,097 | false | null | package de.brainsizzle.twitchbotpaint.bot
data class Config(
val debug: Boolean,
val bot: Bot,
val api: Api,
val credentials: Credentials,
val channels: List<String>,
)
data class Bot(
val name: String,
val version: String
)
data class Api(
val twitch_client_id: String,
val twitch... | 0 | Kotlin | 1 | 0 | 81817eb5c81ddd0a90f286bb6d9ff98798871ed6 | 387 | twitchbotpaint | Apache License 2.0 |
app/src/main/java/com/example/jetpack_compose_all_in_one/ui/components/CustomSpacer.kt | myofficework000 | 626,474,700 | false | {"Kotlin": 1392414} | package com.example.jetpack_compose_all_in_one.ui.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import andro... | 21 | Kotlin | 22 | 222 | 4de5418608d6917b5c97fac7d868454c424daa26 | 942 | Jetpack-Compose-All-in-one-Guide | MIT License |
seattle-parks-tracker/app/src/main/java/com/google/codelabs/buildyourfirstmap/place/PlaceRenderer.kt | Jessicawyn | 454,191,813 | false | {"Kotlin": 27724, "Python": 554} | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 0 | Kotlin | 0 | 0 | b7ea64e96510609e63b5bc868df2079e7af0deb1 | 3,734 | Seattle-Parks-Tracker | Apache License 2.0 |
app/src/main/java/ru/qdev/kudashov/jokes/api/ApiService.kt | wn1 | 162,917,801 | false | null | package ru.qdev.kudashov.jokes.api
import com.localebro.okhttpprofiler.OkHttpProfilerInterceptor
import io.reactivex.rxjava3.core.Single
import io.reactivex.rxjava3.schedulers.Schedulers
import retrofit2.http.GET
import retrofit2.Retrofit
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import... | 0 | Kotlin | 1 | 0 | 87541695d1c8dae91067bfc215867765fc3952a5 | 2,277 | Jokes | MIT License |
app/src/main/java/com/vycius/tasty/RecipeDetailActivity.kt | vycius | 95,029,302 | false | null | package com.vycius.tasty
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.RecyclerView
import android.view.Menu
import android.view.MenuItem
import com.vycius.tasty.adapter.RecipeListAdapter
import com.vycius.tasty.adapter.delegate... | 1 | Kotlin | 9 | 33 | f00503f587ce3d91c622d71a84f2fa56f7f0235e | 3,737 | udacity-baking-app-tasty | MIT License |
redis/src/main/java/info/xiaomo/redis/job/TaskJob.kt | tangyinbo | 109,561,532 | true | {"Kotlin": 323648, "CSS": 117781, "FreeMarker": 7915, "HTML": 6836, "Java": 2501, "Ruby": 37} | package info.xiaomo.redis.job
import com.alibaba.fastjson.JSON
import info.xiaomo.redis.service.CityService
import org.slf4j.LoggerFactory
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.scheduling.annotation.Scheduled
import org.springframework.stereotype.Component
import java... | 0 | Kotlin | 0 | 0 | 23d20b605e842d32f53c8b7e0effe92e52475c65 | 1,238 | SpringBootUnity | MIT License |
app/src/main/java/com/example/moviedatabase/compose/AppBottomBar.kt | ali-gevari | 838,166,478 | false | {"Kotlin": 150986} | package com.example.moviedatabase.compose
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.material3.Icon
import androidx.compose.material3.NavigationBar
import androidx.compose.material3.NavigationBarItem
import androidx.compose.material3.... | 2 | Kotlin | 0 | 0 | d485ccf9e6fab0107155921d4b233af31346061a | 1,242 | MovieDatabase | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/prisonertonomisupdate/nonassociations/NonAssociationsResource.kt | ministryofjustice | 445,140,246 | false | {"Kotlin": 1229627, "Mustache": 1803, "Dockerfile": 1118} | package uk.gov.justice.digital.hmpps.prisonertonomisupdate.nonassociations
import com.microsoft.applicationinsights.TelemetryClient
import io.swagger.v3.oas.annotations.Hidden
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.launch
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.spr... | 0 | Kotlin | 0 | 2 | 49fb8c4285fd2dfa957856f04b224cefd97a475b | 3,359 | hmpps-prisoner-to-nomis-update | MIT License |
types-jdbi/src/test/kotlin/dk/cloudcreate/essentials/kotlin/types/jdbi/model/LastUpdated.kt | cloudcreate-dk | 571,305,651 | false | {"Maven POM": 27, "XML": 18, "Ignore List": 1, "Text": 2, "Markdown": 28, "Java": 894, "Avro IDL": 1, "Kotlin": 87, "YAML": 4} | /*
* Copyright 2021-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 0 | Java | 2 | 3 | 6b428edc1dfd406b0ae55c7e066669d507ecd2a4 | 1,415 | essentials-project | Apache License 2.0 |
app/src/main/java/star/iota/acgrip/ui/fan/FanAdapter.kt | iota9star | 102,921,744 | false | null | /*
* Copyright 2017. iota9star
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 0 | Kotlin | 2 | 9 | 5825689d5af38e9925765c7e709d1fd38f14aa80 | 3,052 | acg.rip | Apache License 2.0 |
backend/src/main/kotlin/com/mobilispect/backend/schedule/gtfs/GTFSRouteDataSourceConfiguration.kt | alandovskis | 502,662,711 | false | {"Kotlin": 360467, "Shell": 472, "Swift": 345} | package com.mobilispect.backend.schedule.gtfs
import com.mobilispect.backend.schedule.agency.AgencyIDDataSource
import com.mobilispect.backend.schedule.route.RouteDataSource
import com.mobilispect.backend.schedule.route.RouteIDDataSource
import org.springframework.context.annotation.Bean
import org.springframework.con... | 3 | Kotlin | 0 | 1 | 0b0378fc2bfa7f9c0f9a135950a4d11712f6af17 | 630 | mobilispect | Apache License 2.0 |
app/src/main/java/com/igorapp/deckster/DecksterApp.kt | igormsiqueira | 568,021,005 | false | null | package com.igorapp.deckster
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class DecksterApp : Application() | 0 | Kotlin | 0 | 0 | 65e5d6d2ace941e93be74c112c56cf0f4e0a1439 | 153 | deckster-android | MIT License |
app/src/main/java/io/github/wulkanowy/data/repositories/reportingunit/ReportingUnitLocal.kt | mafineeek | 297,426,962 | true | {"Kotlin": 966636, "HTML": 1949, "Shell": 220} | package io.github.wulkanowy.data.repositories.reportingunit
import io.github.wulkanowy.data.db.dao.ReportingUnitDao
import io.github.wulkanowy.data.db.entities.ReportingUnit
import io.github.wulkanowy.data.db.entities.Student
import javax.inject.Inject
import javax.inject.Singleton
@Singleton
class ReportingUnitLocal... | 0 | null | 0 | 0 | b0b3ccfd530e2b450804c194365b4e4fe225c754 | 967 | wulkanowy | Apache License 2.0 |
plugins/kotlin/compiler-reference-index/tests/testData/compilerIndex/classOrObject/innerClassWithPackage/MainClass.kt | ingokegel | 72,937,917 | false | null | package one.two.three
class MainClass {
inner class Nested<caret>Class
} | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 77 | intellij-community | Apache License 2.0 |
compiler/testData/writeSignature/IntQ.kt | JakeWharton | 99,388,807 | false | null | fun sometimes(): Int? = null
// method: IntQKt::sometimes
// jvm signature: ()Ljava/lang/Integer;
// generic signature: null | 179 | null | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 129 | kotlin | Apache License 2.0 |
app/src/main/java/com/kaajjo/orgtechservice/data/remote/api/info/TariffService.kt | kaajjo | 661,326,276 | false | {"Kotlin": 173213} | package com.kaajjo.orgtechservice.data.remote.api.info
import com.kaajjo.orgtechservice.data.remote.dto.Tariffs
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Query
interface TariffService {
@GET("api.php?call=tariffs")
suspend fun getTariffs(
@Query("key") key: String
)... | 0 | Kotlin | 0 | 1 | 0f95a681d0444e537b0f6fbf25ca2892057c9f6a | 341 | orgtechservice-alt | Apache License 2.0 |
pictl-ktor/test/org/unividuell/pictl/server/usecase/InteractorTestBase.kt | cleemansen | 321,330,316 | false | null | package org.unividuell.pictl.server.usecase
import io.mockk.MockKAnnotations
import org.junit.jupiter.api.BeforeEach
import org.koin.core.context.startKoin
import org.koin.core.context.stopKoin
import org.koin.core.module.Module
abstract class InteractorTestBase {
init {
stopKoin()
}
fun startIn... | 13 | Kotlin | 2 | 0 | c2179ae7e9bb9e1cfd314bbcc8bb120967e45d05 | 501 | pi-audio-multiroom | MIT License |
src/main/kotlin/io/github/cclassen/oakdsl/builder/EndpointBuilder.kt | c-classen | 398,049,382 | false | null | package io.github.cclassen.oakdsl.builder
import io.github.cclassen.oakdsl.component.ComponentResolver
import io.github.cclassen.oakdsl.model.endpoint.*
import io.github.cclassen.oakdsl.model.endpoint.response.BaseResponse
import io.github.cclassen.oakdsl.model.endpoint.response.Response
import io.github.cclassen.oakd... | 0 | Kotlin | 0 | 2 | 71bc5702058443c816a8e355052eb601ed0555ce | 3,581 | oak-dsl | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsworkload/utils/StringUtils.kt | ministryofjustice | 378,843,394 | false | {"PLpgSQL": 472290, "Kotlin": 436140, "Dockerfile": 1715} | package uk.gov.justice.digital.hmpps.hmppsworkload.utils
fun String.capitalize(): String {
if (this.isNotEmpty() && this.isNotBlank()) {
return this[0].uppercase() + this.substring(1).lowercase()
}
return this
}
| 14 | PLpgSQL | 0 | 0 | 93ad98d7641fa391aae2753b3cefd38b543f1e74 | 223 | hmpps-workload | MIT License |
compiler/cli/src/org/jetbrains/kotlin/cli/common/createFlexiblePhaseConfig.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | /*
* Copyright 2010-2022 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.cli.common
import org.jetbrains.kotlin.backend.common.phaser.FlexiblePhaseConfig... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,995 | kotlin | Apache License 2.0 |
android-legacy/src/main/java/com/amarland/iconvector/androidlegacy/PictureRecording.kt | amarland | 433,039,075 | false | {"Kotlin": 113847, "Java": 7176} | /*
* Copyright 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 0 | Kotlin | 0 | 0 | e05c63280dc922ce6bd3ea961c53ce1f9a415213 | 6,854 | iconvector | Apache License 2.0 |
app/src/main/kotlin/maxeem.america.sleep/JournalFragment.kt | maxeema | 199,365,363 | true | {"Kotlin": 58587} | package maxeem.america.sleep
import android.os.Bundle
import android.view.*
import androidx.coordinatorlayout.widget.CoordinatorLayout
import androidx.databinding.ObservableBoolean
import androidx.fragment.app.viewModels
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.lifecycleScope
import androidx... | 0 | Kotlin | 0 | 0 | 6f17b30cba2cb276c05854eeb7e23e2f7f2c5025 | 7,815 | andfun-kotlin-sleep-tracker | Apache License 2.0 |
client/jackson/src/test/kotlin/net/corda/client/jackson/JacksonSupportTest.kt | kid101 | 133,337,942 | true | {"Kotlin": 5697215, "Java": 265838, "CSS": 23489, "Shell": 8259, "Gherkin": 3162, "Groovy": 2129, "Batchfile": 1332, "PowerShell": 660} | package net.corda.client.jackson
import com.fasterxml.jackson.databind.SerializationFeature
import com.fasterxml.jackson.databind.node.ArrayNode
import com.fasterxml.jackson.databind.node.BinaryNode
import com.fasterxml.jackson.databind.node.ObjectNode
import com.fasterxml.jackson.databind.node.TextNode
import com.fas... | 0 | Kotlin | 0 | 0 | e47a84ab49861d12320073b6ccb64cb5c4c18bf4 | 11,856 | corda | Apache License 2.0 |
src/main/kotlin/com/piashcse/models/product/request/AddProduct.kt | piashcse | 410,331,425 | false | null | package com.piashcse.models.product.request
import org.valiktor.functions.*
import org.valiktor.validate
data class AddProduct(
val categoryId: String,
val subCategoryId: String,
val brandId: String?,
val productName: String,
val productCode: String,
val productQuantity: Int,
val productDe... | 0 | Kotlin | 2 | 18 | a75eb54470bd2171f144d9b63580c2179168d3ff | 1,789 | ktor-E-Commerce | Apache License 2.0 |
src/main/kotlin/xyz/jptrzy/specialized/bundles/items/LunchboxItem.kt | jptrzy | 790,254,371 | false | {"Kotlin": 15126} | package xyz.jptrzy.specialized.bundles.items
import eu.pb4.polymer.core.api.item.PolymerItem
import net.fabricmc.fabric.api.item.v1.FabricItemSettings
import net.minecraft.item.BundleItem
import net.minecraft.item.Item
import net.minecraft.item.ItemStack
import net.minecraft.item.Items
import net.minecraft.server.netw... | 1 | Kotlin | 0 | 0 | 2a0d35f69a47bd0edc08c309f59dbf5f35d9b442 | 836 | specialized-bundles-mod | MIT License |
buildSrc/src/main/kotlin/ProjectExtensions.kt | Crazy-Marvin | 114,458,675 | false | {"Kotlin": 290284, "Python": 841} | import org.gradle.api.Project
import java.io.ByteArrayOutputStream
import java.io.File
import java.util.*
fun File.asProperties(): Properties {
return Properties()
.apply {
this@asProperties.takeIf(File::exists)
?.inputStream()
?.use { loa... | 9 | Kotlin | 15 | 93 | 7f40dbb24a057a0395c57a07483f40fb71b040d6 | 1,145 | MetadataRemover | Apache License 2.0 |
src/main/kotlin/no/nav/sosialhjelp/modia/utbetalinger/UtbetalingerResponse.kt | navikt | 216,780,859 | false | {"Kotlin": 461383, "Dockerfile": 427} | package no.nav.sosialhjelp.modia.utbetalinger
import com.fasterxml.jackson.annotation.JsonFormat
import no.nav.sosialhjelp.modia.digisossak.domain.UtbetalingsStatus
import java.time.LocalDate
data class UtbetalingerResponse(
val tittel: String?,
val belop: Double,
@JsonFormat(pattern = "yyyy-MM-dd")
v... | 1 | Kotlin | 0 | 1 | e5eda33bfcf16d2f519a76a53349005b064dcd1c | 830 | sosialhjelp-modia-api | MIT License |
app/src/main/java/mx/luix/mymovies/data/server/TheMovieDbDataSource.kt | luix | 281,203,060 | false | null | package mx.luix.mymovies.data.server
import mx.luix.mymovies.data.source.RemoteDataSource
import mx.luix.mymovies.data.toDomainMovie
import mx.luix.mymovies.domain.Movie
class TheMovieDbDataSource(private val theMovieDb: TheMovieDb) : RemoteDataSource {
override suspend fun getPopularMovies(apiKey: String, regio... | 0 | Kotlin | 0 | 0 | eaad7aa8d6ee9dc5d17acd8a0aea6cd657d20c56 | 487 | architect-coders | MIT License |
kotlin-mui-icons/src/main/generated/mui/icons/material/DoNotDisturbSharp.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/DoNotDisturbSharp")
package mui.icons.material
@JsName("default")
external val DoNotDisturbSharp: SvgIconComponent
| 12 | Kotlin | 5 | 983 | 372c0e4bdf95ba2341eda473d2e9260a5dd47d3b | 198 | kotlin-wrappers | Apache License 2.0 |
common/src/commonMain/kotlin/io/tonnyl/moka/common/data/Direction.kt | ETSEmpiricalStudyKotlinAndroidApps | 496,360,843 | false | {"Kotlin": 1391177, "Swift": 100384, "CSS": 30407, "JavaScript": 13933, "Shell": 2990} | package io.tonnyl.moka.common.data
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
enum class Direction(val rawValue: String) {
@SerialName("asc")
Ascending("asc"),
@SerialName("desc")
Descending("desc")
} | 0 | null | 0 | 0 | 34db6153b274028158de1ee08f080b1a8f985325 | 274 | Moka | MIT License |
Filters/src/main/kotlin/opekope2/optigui/filter/PostProcessorFilter.kt | opekope2 | 578,779,647 | false | {"Kotlin": 168622, "Java": 45138} | package opekope2.optigui.filter
/**
* A post-processor filter, which enables the output of the given sub-filter to be changed.
*
* Useful, when the sub-filter doesn't yield a result (like [ConjunctionFilter] or [DisjunctionFilter])
*
* @param T The type the filter accepts
* @param TFilterResult The type the sub-... | 14 | Kotlin | 1 | 17 | 7d806e6201a8b9d7920992e9eb70897e3ba91a84 | 1,561 | OptiGUI | MIT License |
codebase/android/core/ui/src/main/java/com/makeappssimple/abhimanyu/financemanager/android/core/ui/component/bottomsheet/account/SelectAccountListItemBottomSheetUIData.kt | Abhimanyu14 | 429,663,688 | false | {"Kotlin": 1876553} | package com.makeappssimple.abhimanyu.financemanager.android.core.ui.component.bottomsheet.account
import androidx.annotation.StringRes
import androidx.compose.runtime.Immutable
import com.makeappssimple.abhimanyu.financemanager.android.core.ui.component.listitem.accounts.AccountsListItemContentDataAndEventHandler
@Im... | 11 | Kotlin | 0 | 3 | 7e080a68bc038bd64d2d406b75a49e8f1ea2a791 | 523 | finance-manager | Apache License 2.0 |
src/main/kotlin/com/example/gungjeonjegwa/domain/bread/service/BreadService.kt | gungjeonjegwa | 579,803,041 | false | null | package com.example.gungjeonjegwa.domain.bread.service
import com.example.gungjeonjegwa.domain.bread.data.dto.BreadDetailQueryDto
import com.example.gungjeonjegwa.domain.bread.data.dto.BreadDto
import com.example.gungjeonjegwa.domain.bread.data.dto.BreadQueryDto
import com.example.gungjeonjegwa.domain.bread.data.enum.... | 0 | Kotlin | 0 | 0 | 30a77ac8c8ec594a6d1267ae36df365f1622f250 | 616 | GGJG-Backend | MIT License |
app/src/main/java/com/example/filemanager/FileUtil.kt | zeyang919 | 275,339,202 | false | null | package com.example.filemanager
import java.io.File
import java.io.FileInputStream
import java.io.IOException
import java.io.OutputStream
import java.util.zip.ZipEntry
import java.util.zip.ZipOutputStream
class FileUtil {
/**
* 检测所删除项目为文件还是文件夹
* @param fileName 文件名
*/
fun delete(fileName: Strin... | 0 | Kotlin | 2 | 2 | 14fbb7fdf4c0aae79405557dbd27c398b26d28ac | 2,817 | FileManager | MIT License |
kmp/compose/foundation/icons/src/commonMain/kotlin/com/egoriku/grodnoroads/foundation/icons/outlined/ArrowRight.kt | BehindWheel | 485,026,420 | false | {"Kotlin": 1186756, "Ruby": 5708, "Swift": 1889, "Shell": 830} | package com.egoriku.grodnoroads.foundation.icons.outlined
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.path
import androidx.compose.ui.unit.dp
import com.egoriku.grodnoroads.fou... | 19 | Kotlin | 1 | 18 | 07b1ec1f97c6f4a4948ba28b7cd0743f8efa850a | 1,748 | BehindWheelKMP | Apache License 2.0 |
android/src/main/java/com/reactnativeiosmapviewobjc/IosMapviewObjcPackage.kt | shengchenmicrosoftworkemail | 314,676,862 | false | {"Java": 6326, "Ruby": 6147, "Objective-C": 4480, "TypeScript": 1855, "JavaScript": 1419, "Kotlin": 1374, "C": 103, "Swift": 66} | package com.reactnativeiosmapviewobjc
import java.util.Arrays
import java.util.Collections
import com.facebook.react.ReactPackage
import com.facebook.react.bridge.NativeModule
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.uimanager.ViewManager
import com.facebook.react.bridge.Java... | 1 | null | 1 | 1 | b10f972145fcd737f398f67f12448fd4e98ca956 | 719 | RNBindingWithIOS | MIT License |
app/src/main/java/com/newkirkj/seattlesearch/ui/main/MainActivity.kt | newkirkjosh | 187,752,979 | false | null | package com.newkirkj.seattlesearch.ui.main
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.Menu
import android.view.MenuItem
import android.view.View
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.SearchVie... | 0 | Kotlin | 0 | 0 | 122b9eac4c5d824bd11a637fe8f03418d057c43d | 4,042 | android-homeaway-challenge | MIT License |
src/main/day15/Part1.kt | ollehagner | 572,141,655 | false | null | package day15
import common.Point
import readInput
import kotlin.math.abs
fun main() {
val sensors = parseInput(readInput("day15/input.txt"))
val rowToCheck = 2000000
val beaconsInRow = sensors.map { it.beacon }.filter { it.y == rowToCheck }.distinct().count()
val positionsWithNoBeacon = coveredRowPos... | 0 | Kotlin | 0 | 0 | b935fcfb465152f08307399eb85ee8a8a335f1a3 | 2,433 | aoc2022 | Apache License 2.0 |
src/main/kotlin/com/emberjs/hbs/HbsCompletionContributor.kt | patricklx | 412,986,421 | false | null | package com.emberjs.hbs
import com.emberjs.hbs.HbsPatterns.BLOCK_MUSTACHE_NAME_ID
import com.emberjs.hbs.HbsPatterns.BLOCK_MUSTACHE_PARAM
import com.emberjs.hbs.HbsPatterns.IMPORT_NAMES
import com.emberjs.hbs.HbsPatterns.IMPORT_PATH_AUTOCOMPLETE
import com.emberjs.hbs.HbsPatterns.MUSTACHE_ID_MISSING
import com.emberjs... | 1 | Kotlin | 1 | 5 | 10193476a26a4e11773c17281e4db1c23e2ca06b | 2,785 | intellij-emberjs-experimental | Apache License 2.0 |
app/src/main/java/com/example/nisa/soundrecorder/recorder/RecorderViewModel.kt | nisajamalia | 424,438,074 | false | {"Kotlin": 17063} | package com.example.nisa.soundrecorder.recorder
import android.arch.lifecycle.ViewModel
import com.example.nisa.soundrecorder.util.RecorderState
class RecorderViewModel(val recorderRepository: RecorderRepository): ViewModel() {
var recorderState: RecorderState = RecorderState.Stopped
fun startRecording() = ... | 0 | Kotlin | 0 | 0 | 0ecb4ef81d7479401e57af0270c75c32722ce4d7 | 618 | SoundRecorder | MIT License |
src/main/kotlin/org/ocpp/client/server/ServerRequestService.kt | NLCProject | 494,622,679 | false | {"Kotlin": 45823} | package org.ocpp.client.server
import eu.chargetime.ocpp.model.core.*
import org.ocpp.client.server.interfaces.IServerRequestService
import org.ocpp.client.server.interfaces.IServerService
import org.ocpp.client.utils.Ids
import org.slf4j.LoggerFactory
import org.springframework.beans.factory.annotation.Autowired
impo... | 0 | Kotlin | 0 | 0 | 26e0d5608de1daa723ef0f03ffc20e083e497d39 | 4,369 | OcppClient | ISC License |
app/src/main/java/ru/maxim/barybians/data/network/exception/NotFoundException.kt | maximborodkin | 286,116,912 | false | null | package ru.maxim.barybians.data.network.exception
import java.io.IOException
/**
* Exception class for represent 404 HTTP code
**/
class NotFoundException : IOException() | 0 | Kotlin | 1 | 5 | 033704d0e141bce002800c6bc00fd19983acc99f | 174 | Barybians-Android-App | MIT License |
app/src/main/java/com/liamgoodwin/movieslist/util/Constants.kt | liamgoodwin | 521,338,970 | false | {"Kotlin": 25552} | package com.liamgoodwin.movieslist.util
object Constants {
const val OMDB_BASE_URL = "http://www.omdbapi.com"
const val OMDB_API_KEY = "your_api_key_here"
const val PER_PAGE = 10
} | 0 | Kotlin | 0 | 0 | d714e0cecfea654a18fa2817ce9c230287832b83 | 193 | movies-list | MIT License |
sdk/src/main/kotlin/com/cobox/vulture/standard/xutil/NetAddress.kt | Mysterious-organization | 336,003,139 | false | null | package com.cobox.vulture.standard.xutil
import java.net.InetAddress
object NetAddress {
val EMPTY_ADDRESS = InetAddress.getByAddress(byteArrayOf(0, 0, 0, 0))
} | 0 | Kotlin | 0 | 3 | ae0c4a9b7f12bc556a5e9a674ab5a14b6a581ce4 | 168 | Vulture-Station | MIT License |
cxrv/src/main/java/com/xiaocydx/cxrv/list/ListOwner.kt | xiaocydx | 460,257,515 | false | null | package com.xiaocydx.cxrv.list
import androidx.annotation.MainThread
/**
* 列表所有者
*
* @author xcc
* @date 2021/9/11
*/
interface ListOwner<T : Any> {
/**
* 当前列表
*
* 通过[getItem]、[getItemOrNull]等扩展函数可以访问列表。
*/
val currentList: List<T>
/**
* 更新列表,该函数必须在主线程调用
*
* 通过[sub... | 0 | Kotlin | 0 | 7 | 7283f04892a84661ff82f33eed377da2cc015874 | 5,908 | CXRV | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/eks/CfnIdentityProviderConfigPropsDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.eks
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.eks.CfnIdentityProviderConfigProps
@Generated
public fun buildCfnIdentityProviderConfigProps(initializer: @AwsCdkDsl
CfnIdentityPr... | 1 | Kotlin | 0 | 0 | e9a0ff020b0db2b99e176059efdb124bf822d754 | 464 | aws-cdk-kt | Apache License 2.0 |
winter/src/main/kotlin/io/jentz/winter/plugin/PluginRegistry.kt | AlexWih | 156,714,313 | true | {"Kotlin": 306587, "HTML": 9144, "Java": 5620, "Ruby": 2097} | package io.jentz.winter.plugin
import io.jentz.winter.ComponentBuilder
import io.jentz.winter.Graph
import io.jentz.winter.Scope
import java.util.concurrent.CopyOnWriteArrayList
/**
* The registry for [Winter plugins][Plugin].
*/
class PluginRegistry {
private val plugins = CopyOnWriteArrayList<Plugin>()
/... | 0 | Kotlin | 0 | 0 | 3c0ea4336c87fcbe38143dd6787390756fbfc68f | 2,087 | winter | Apache License 2.0 |
core/src/main/kotlin/org/rewedigital/dialog/model/google/order/OrderUpdate.kt | rewe-digital-incubator | 169,550,416 | false | null | package org.rewedigital.dialog.model.google.order
interface OrderUpdate {
var googleOrderId: String?
var actionOrderId: String?
var orderState: OrderState?
var orderManagementActions: MutableList<OrderAction>
var receipt: Receipt?
var updateTime: String?
var totalPrice: Price?
var lineI... | 3 | Kotlin | 5 | 10 | 7ea2fac743323acd9e17f41eb4511df1782b874d | 3,604 | dialog | MIT License |
app/src/main/java/com/mlm09kdev/superHeroDB/ui/superhero/search/SearchViewModel.kt | mlm09kDev | 236,341,237 | false | null | package com.mlm09kdev.superHeroDB.ui.superhero.search
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.mlm09kdev.superHeroDB.model.database.entity.SuperHeroEntity
import com.mlm09kdev.superHeroDB.model.repository.SuperHeroRepository
impor... | 0 | Kotlin | 1 | 2 | 2976c527025f045e9e04bad1551e2b3f1497e19a | 928 | SuperHero-DB | The Unlicense |
src/main/kotlin/no/nav/helse/journalforing/gateway/JournalforingGateway.kt | navikt | 169,743,207 | false | null | package no.nav.helse.journalforing.gateway
import com.fasterxml.jackson.databind.DeserializationFeature
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
import com.github.kittinunf.fuel.core.Headers
im... | 0 | Kotlin | 0 | 0 | 7873640bc7ddda828f8931d8a99ab881034235fb | 4,402 | pleiepenger-joark | MIT License |
app/src/main/java/com/items/bim/ui/Color.kt | losebai | 800,799,665 | false | {"Kotlin": 644896, "Java": 11455} | package com.items.bim.ui
import androidx.compose.ui.graphics.Color
// 基础 -对表面高度强调的填充、文本和图标
val primaryLight = Color(0xFF000000)
//+ On primary -文本和图标相对于primary
val onPrimaryLight = Color(0xFF000000)
// 主容器-突出的表面填充颜色,用于关键组件,如FAB
val primaryContainerLight = Color(0xFFFFFFFF)
// 在主容器上-文本和图标对主容器
val onPrimaryContainerLigh... | 0 | Kotlin | 0 | 0 | 86f8cb939b3671158e568638b0c8e3b82df87fa1 | 10,451 | B-Im | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/quicksight/SheetDefinitionPropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.quicksight
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.quicksight.CfnTemplate
@Generated
public fun buildSheetDefinitionProperty(initializer: @AwsCdkDsl
CfnTemplate.SheetDefiniti... | 1 | Kotlin | 0 | 0 | b22e397ff37c5fce365a5430790e5d83f0dd5a64 | 467 | aws-cdk-kt | Apache License 2.0 |
publish-to-maven-central/src/nativeMain/kotlin/X.kt | h0tk3y | 139,852,818 | false | null | package com.github.h0tk3y.kotlinMppDemo.lib
actual val platformName: String = "Kotlin/Native" | 3 | Kotlin | 11 | 68 | 71ae083c84de8f484ad6ed1d7317c2524a2229f4 | 94 | k-new-mpp-samples | Apache License 2.0 |
shared_resources/src/main/java/com/thewizrd/shared_resources/icons/WeatherIconsEFProvider.kt | SimpleAppProjects | 82,603,731 | false | null | package com.thewizrd.shared_resources.icons
import androidx.annotation.DrawableRes
import com.thewizrd.shared_resources.R
class WeatherIconsEFProvider : WeatherIconProvider() {
companion object {
const val KEY = "wi-erik-flowers"
}
override fun getKey(): String {
return KEY
}
ove... | 0 | null | 8 | 37 | 56ddf09611d786e3bb2b802bdbcbbec648f0df9a | 10,718 | SimpleWeather-Android | Apache License 2.0 |
src/api/kotlin/tools/ModContext.kt | 2xsaiko | 123,460,493 | false | null | package therealfarfetchd.quacklib.api.tools
import net.minecraftforge.fml.common.ModContainer
interface ModContext {
fun <R> lockMod(op: () -> R): R
fun currentMod(): ModContainer?
} | 6 | Kotlin | 2 | 4 | 76c9a55f186c699fb4458f2a4a40a483ab3e3ef2 | 191 | QuackLib | MIT License |
src/main/kotlin/org/mailcall/yaml/YamlHelper.kt | OdysseusLevy | 58,777,555 | false | null | package org.mailcall.yaml
import org.kale.api.EmailAccount
import org.kale.mail.EmailAccountConfig
import org.mailcall.script.SimpleConfiguration
import org.yaml.snakeyaml.Yaml
import java.io.File
import java.io.FileInputStream
/**
* @author <NAME> (<EMAIL>)
*/
class YamlHelper {
fun loadAccounts(): List<Email... | 0 | Kotlin | 0 | 0 | 15cd8558c704cd770b4f54ad3597a09c04dcd3f6 | 1,010 | kale | Apache License 2.0 |
idea/tests/testData/inspectionsLocal/replaceWithOperatorAssignment/list.kt | JetBrains | 278,369,660 | false | null | // WITH_RUNTIME
// HIGHLIGHT: INFORMATION
fun foo() {
var list = listOf(1, 2, 3)
// Should not be highlighted because it's the way we use to say explicitly
// "yes, we want to re-assign this immutable list"
list <caret>= list + 4
} | 1 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 248 | intellij-kotlin | Apache License 2.0 |
src/main/kotlin/io/github/tsb99x/trakt/core/Utils.kt | tsb99x | 203,202,702 | false | null | package io.github.tsb99x.trakt.core
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import java.time.Instant
import java.time.OffsetDateTime
import java.time.ZoneOffset
import java.time.temporal.ChronoUnit
import java.util.*
const val API_TOKEN_ID_ATTRIBUTE = "api-token-id"
const val API_TOKEN_MUST_BE_UUID = "... | 12 | Kotlin | 0 | 0 | 8c664fb60d185c4fc466d8026a76eb3ccd4ccae8 | 1,591 | trakt | MIT License |
src/main/kotlin/com/github/hirokazumiyaji/http/Client.kt | hirokazumiyaji | 118,339,761 | false | null | package com.github.hirokazumiyaji.http
import okhttp3.Headers
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.RequestBody
import okhttp3.Response
import reactor.core.publisher.Mono
open class Client(private val http: OkHttpClient) {
fun request(request: Request): Mono<Response> {
return ... | 0 | Kotlin | 0 | 0 | bf4b5e3ed8a170b35fafb3542d793841cee4960d | 1,972 | httpclient | MIT License |
app/src/main/java/com/thedearbear/nnov/home/Announcement.kt | TheDearbear | 828,962,865 | false | {"Kotlin": 194806} | package com.thedearbear.nnov.home
import java.time.LocalDate
data class Announcement(
val id: Int,
val title: String,
val body: String,
val author: String,
val date: LocalDate
)
| 0 | Kotlin | 0 | 0 | 5a53ab4e8d8784178f72bfd4ddc8479f5866f5fd | 200 | DigitalJournal | MIT License |
shared/src/commonMain/kotlin/me/gulya/bitwarden/server/request/EventRequest.kt | IlyaGulya | 306,867,791 | false | null | package me.gulya.bitwarden.server.request
import com.soywiz.klock.DateTime
import me.gulya.bitwarden.enums.EventType
data class EventRequest(
val type: EventType,
val cipherId: String,
val date: DateTime,
) | 0 | Kotlin | 1 | 3 | 9177134c7940d143f1f3da14e6dd56f3102c367d | 220 | bitwarden-client-mpp | MIT License |
libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/javaLibraryProject/app/src/main/kotlin/App.kt | JakeWharton | 99,388,807 | false | null | import com.example.*
fun main(args: Array<String>) {
println(helloA())
println(helloB())
} | 179 | null | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 99 | kotlin | Apache License 2.0 |
src/backend/ci/ext/tencent/remotedev/biz-remotedev-tencent/src/main/kotlin/com/tencent/devops/remotedev/common/exception/ErrorCodeEnum.kt | terlinhe | 281,661,499 | true | {"Kotlin": 45598476, "Vue": 6397657, "Java": 5707849, "Go": 3274290, "JavaScript": 1968867, "Lua": 856156, "HTML": 649832, "Dart": 551043, "TypeScript": 411134, "SCSS": 405673, "Shell": 403216, "C++": 149772, "CSS": 95042, "Python": 79300, "Mustache": 65146, "Smarty": 46819, "C": 33502, "Less": 24714, "Dockerfile": 229... | package com.tencent.devops.remotedev.common.exception
import com.tencent.devops.common.api.annotation.BkFieldI18n
import com.tencent.devops.common.api.pojo.ErrorType
import com.tencent.devops.common.web.utils.I18nUtil
enum class ErrorCodeEnum(
@BkFieldI18n
val errorType: ErrorType,
val errorCode: String,
... | 0 | Kotlin | 0 | 0 | dccbcb9f44260f80ebfa1c2dad0c401222f7f93c | 3,411 | bk-ci | MIT License |
src/test/kotlin/g1601_1700/s1648_sell_diminishing_valued_colored_balls/SolutionTest.kt | javadev | 190,711,550 | false | {"Kotlin": 4909193, "TypeScript": 50446, "Python": 3646, "Shell": 994} | package g1601_1700.s1648_sell_diminishing_valued_colored_balls
import org.hamcrest.CoreMatchers.equalTo
import org.hamcrest.MatcherAssert.assertThat
import org.junit.jupiter.api.Test
internal class SolutionTest {
@Test
fun maxProfit() {
assertThat(Solution().maxProfit(intArrayOf(2, 5), 4), equalTo(14)... | 0 | Kotlin | 20 | 43 | 62708bc4d70ca2bfb6942e4bbfb4c64641e598e8 | 445 | LeetCode-in-Kotlin | MIT License |
src/Main.kt | CreeperSan | 98,320,470 | false | null | fun main(args: Array<String>) {
val window = MainWindow()
window.title = "杉果爬虫"
window.setSize(1280,720)
window.isResizable = false
window.isVisible = true
}
| 0 | Kotlin | 0 | 0 | 095910dc81e418ca1f6130ec40ad4c66696d459f | 178 | Sonkwo_Spider | Apache License 2.0 |
core/src/test/kotlin/me/lusory/kitsune/core/test/ImageRegistryTest.kt | lusory | 501,750,007 | false | null | /*
* This file is part of kitsune, licensed under the Apache License, Version 2.0 (the "License").
*
* Copyright (c) 2022-present lusory contributors
*
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 1 | Kotlin | 0 | 4 | c65e0686a08df5c4144d6203556d1f69dfe6f82e | 2,652 | kitsune | Apache License 2.0 |
data/src/main/java/com/team_ia/data/repository/MemberRepositoryImpl.kt | Idea-Archive | 613,424,839 | false | null | package com.team_ia.data.repository
import com.team_ia.data.remote.datasource.member.MemberDataSource
import com.team_ia.data.remote.request.member.toRequest
import com.team_ia.data.remote.response.member.toEntity
import com.team_ia.domain.entity.MemberEntity
import com.team_ia.domain.param.ChangeNickNameParam
import ... | 8 | Kotlin | 0 | 9 | 1023841971d28065c875427d323475701a845fdc | 1,272 | Idea-Archive-Android | MIT License |
cosky-rest-api/src/main/kotlin/me/ahoo/cosky/rest/security/authorization/InitialPolicyLoader.kt | Ahoo-Wang | 360,576,464 | false | null | package me.ahoo.cosky.rest.security.authorization
import me.ahoo.cosec.api.policy.Policy
import me.ahoo.cosec.policy.DefaultPolicyEvaluator
import me.ahoo.cosec.serialization.CoSecJsonSerializer
object InitialPolicyLoader {
const val policyResourceName = "cosky-policy.json"
val policy: Policy by lazy(this) {
... | 8 | null | 21 | 80 | 3361bbf31ed8422e216fd2e2b363e41423d8afbe | 650 | CoSky | Apache License 2.0 |
src/test/kotlin/no/roedt/ringesentralen/samtale/RingServiceBeanTest.kt | Roedt | 300,015,002 | false | null | package no.roedt.ringesentralen.samtale
import com.nhaarman.mockitokotlin2.any
import com.nhaarman.mockitokotlin2.doReturn
import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.spy
import com.nhaarman.mockitokotlin2.whenever
import io.quarkus.hibernate.orm.panache.PanacheQuery
import no.roedt.Data... | 10 | Kotlin | 0 | 0 | fdca6b0524d1f2d3c53edbb026c5f2ee736e7559 | 5,153 | ringesentralen-backend | MIT License |
app/src/main/java/com/example/thinkpress/ui/NewsViewModel.kt | LM-Git760 | 703,797,062 | false | {"Kotlin": 33671} | package com.example.thinkpress.ui
import android.util.Log
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.thinkpress.api.Article
import com.example.thinkpress.api.NewsApiResponse
import com.exam... | 0 | Kotlin | 0 | 0 | e8d53aa70269dc9f9180c180351dbac628f69e7c | 3,754 | ThinkPress | RSA Message-Digest License |
compiler/testData/diagnostics/tests/multiplatform/nestedClassViaActualTypealias.fir.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | // MODULE: m1-common
// FILE: common.kt
expect class Foo {
class Inner()
}
expect class SeveralInner {
class Inner1 {
class Inner2 {
class Inner3()
}
}
}
// MODULE: m2-jvm()()(m1-common)
// FILE: jvm.kt
class FooImpl {
class Inner
}
actual typealias Foo = FooImpl
class Se... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 472 | kotlin | Apache License 2.0 |
src/main/kotlin/de/jupf/staticlog/format/Builders.kt | AutoWay | 101,705,625 | true | {"Kotlin": 32668, "Java": 2112} | package de.jupf.staticlog.format
import de.jupf.staticlog.core.LogLevel
import java.text.SimpleDateFormat
import java.util.Date
import kotlin.collections.indices
import kotlin.text.split
/**
* @author J.Pfeifer
* @created 20.12.2015
*/
interface Builder {
fun buildString(logLevel: LogLevel, time: Long, messag... | 0 | Kotlin | 0 | 0 | 2e0dd66cc070dadbb309491b8644164368b88153 | 3,408 | staticlog | MIT License |
application/shared/src/main/kotlin/financial/shared/adapters/console/command/Command.kt | gustavofreze | 414,017,610 | false | {"Kotlin": 104127, "Makefile": 1058, "Shell": 638, "Dockerfile": 512} | package financial.shared.adapters.console.command
interface Command
| 0 | Kotlin | 3 | 70 | c21ec989470a9b4c4b367a85923d4285d53320e7 | 69 | financial | MIT License |
app/src/main/java/com/cuong/moviehero/ui/components/MovieItem.kt | cuonghuynhvan | 471,910,042 | false | {"Kotlin": 141883} | package com.cuong.moviehero.ui.components
import androidx.compose.foundation.background
import androidx.compose.runtime.Composable
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.layout.he... | 0 | Kotlin | 0 | 0 | 36bc4b4d840343e7f7b63bc70f81546f8b49665d | 5,042 | MovieHero | MIT License |
app/src/main/java/com/cuong/moviehero/ui/components/MovieItem.kt | cuonghuynhvan | 471,910,042 | false | {"Kotlin": 141883} | package com.cuong.moviehero.ui.components
import androidx.compose.foundation.background
import androidx.compose.runtime.Composable
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.layout.he... | 0 | Kotlin | 0 | 0 | 36bc4b4d840343e7f7b63bc70f81546f8b49665d | 5,042 | MovieHero | MIT License |
src/main/kotlin/no/nav/omsorgspenger/omsorgsdager/OmsorgsdagerBeregning.kt | navikt | 293,469,365 | false | {"Kotlin": 598600, "Dockerfile": 223} | package no.nav.omsorgspenger.omsorgsdager
import no.nav.omsorgspenger.Periode
import no.nav.omsorgspenger.lovverk.*
import no.nav.omsorgspenger.lovverk.Lovanvendelser
internal object OmsorgsdagerBeregning {
private const val DagerMedGrunnrettOppTilToBarn = 10
private const val DagerMedGrunnrettTreEllerFlerBar... | 1 | Kotlin | 1 | 2 | 378101129956af238282bb37bfee2af0ec9a0bec | 4,805 | omsorgspenger-rammemeldinger | MIT License |
src/main/kotlin/no/nav/omsorgspenger/omsorgsdager/OmsorgsdagerBeregning.kt | navikt | 293,469,365 | false | {"Kotlin": 598600, "Dockerfile": 223} | package no.nav.omsorgspenger.omsorgsdager
import no.nav.omsorgspenger.Periode
import no.nav.omsorgspenger.lovverk.*
import no.nav.omsorgspenger.lovverk.Lovanvendelser
internal object OmsorgsdagerBeregning {
private const val DagerMedGrunnrettOppTilToBarn = 10
private const val DagerMedGrunnrettTreEllerFlerBar... | 1 | Kotlin | 1 | 2 | 378101129956af238282bb37bfee2af0ec9a0bec | 4,805 | omsorgspenger-rammemeldinger | MIT License |
src/main/kotlin/dev/aohara/bookshelf/Main.kt | oharaandrew314 | 618,205,252 | false | null | package dev.aohara.bookshelf
import org.http4k.client.Java8HttpClient
import org.http4k.cloudnative.env.Environment
import org.http4k.cloudnative.env.EnvironmentKey
import org.http4k.connect.amazon.CredentialsProvider
import org.http4k.connect.amazon.Profile
import org.http4k.connect.amazon.RegionProvider
import org.h... | 0 | Kotlin | 0 | 1 | e69feb756388d8d32fc5bcc1123a88bb78925b01 | 1,630 | http4k-api-on-lambda | Apache License 2.0 |
bot/src/main/kotlin/me/y9san9/prizebot/resources/markups/selectLinkedChatMarkup.kt | y9san9 | 337,414,979 | false | null | package me.y9san9.prizebot.resources.markups
import dev.inmo.tgbotapi.types.buttons.ReplyKeyboardMarkup
import dev.inmo.tgbotapi.types.buttons.SimpleKeyboardButton
import me.y9san9.prizebot.extensions.telegram.PrizebotLocalizedBotUpdate
import me.y9san9.prizebot.extensions.telegram.locale
fun selectLinkedChatMarkup(... | 14 | Kotlin | 13 | 51 | 74fbd7e83ea8a1083a0b0f72ae79c62e95d7a421 | 696 | prizebot | MIT License |
compiler/testData/psi/EnumSemicolonBetweenWithMembers.kt | staltz | 38,581,975 | true | {"Java": 15450397, "Kotlin": 8578737, "JavaScript": 176060, "HTML": 22810, "Lex": 17327, "Protocol Buffer": 13024, "ANTLR": 9689, "CSS": 9431, "Shell": 3931, "IDL": 3257, "Groovy": 3010, "Batchfile": 2831} | enum class Color {
NORTH;
fun foo() = 1
SOUTH;
companion object {
fun bar() = 2
}
WEST;
EAST
} | 0 | Java | 0 | 1 | 80074c71fa925a1c7173e3fffeea4cdc5872460f | 130 | 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.