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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
library/src/main/java/io/multimoon/colorful/CActivity.kt | MFlisar | 129,098,678 | true | {"Kotlin": 13663} | package io.multimoon.colorful
import android.app.Activity
import android.os.Bundle
open class CActivity : Activity(), CThemeInterface {
override var themeString: String = ""
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
handleOnCreate(this, savedInst... | 0 | Kotlin | 0 | 2 | 09b8729959e937d2ec35175b49adae4259ab3713 | 436 | Colorful | Apache License 2.0 |
platform/lang-impl/src/com/intellij/codeInsight/editorActions/rotateSelection/RotateSelectionsAction.kt | sutrosoftware | 251,488,669 | false | {"Text": 7106, "INI": 573, "YAML": 412, "Ant Build System": 10, "Batchfile": 34, "Shell": 621, "Markdown": 678, "Ignore List": 120, "Git Revision List": 1, "Git Attributes": 11, "EditorConfig": 244, "XML": 7056, "SVG": 3569, "Kotlin": 47685, "Java": 80051, "HTML": 3248, "Java Properties": 212, "Gradle": 431, "Maven POM... | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.codeInsight.editorActions.rotateSelection
import com.intellij.openapi.editor.actionSystem.EditorAction
class RotateSelectionsForwardAction : EditorAction(RotateSelectionsHandle... | 1 | null | 1 | 1 | fea02a6d5406d10ce0c18b1c23eb10a4acbd018e | 416 | intellij-community | Apache License 2.0 |
composeApp/src/commonMain/kotlin/com/ammar/resistorassistant/data/ResistorObject.kt | Ammar-Ishfaq | 734,263,312 | false | {"Kotlin": 61215, "Swift": 661} | package com.ammar.resistorassistant.data
import kotlinx.serialization.Serializable
@Serializable
data class ResistorObject(
val id: Int,
val name: String,
val image: String,
val description: String
)
| 3 | Kotlin | 0 | 3 | 48069a9186007c0af02860100deead9f6d7dbb6d | 218 | ResistanceCalculator | Apache License 2.0 |
src/main/kotlin/com/github/malayP/decorations/block/machine/relay/ShaftDistributionClutch.kt | MalayPrime | 379,254,123 | false | null | package com.github.malayP.decorations.block.machine.relay
import com.github.malayP.decorations.modResourcesLocation
import com.github.malayP.decorations.register.AllTileEntity.shaftDistributionClutchType
import com.github.zomb_676.fantasySoup.block.HorizonBlockWithTileEntity
import com.mojang.blaze3d.matrix.MatrixSta... | 0 | Kotlin | 1 | 1 | 111cf27428c1580b91602a384bb46cd0988415cd | 8,367 | rotarism-decorations | MIT License |
app/src/main/java/com/example/mycity/ui/theme/Color.kt | PaoloCaldera-jetpackCompose | 749,166,315 | false | {"Kotlin": 14462} | package com.example.mycity.ui.theme
import androidx.compose.ui.graphics.Color
val md_theme_light_primary = Color(0xFF0061A4)
val md_theme_light_onPrimary = Color(0xFFFFFFFF)
val md_theme_light_primaryContainer = Color(0xFFD1E4FF)
val md_theme_light_onPrimaryContainer = Color(0xFF001D36)
val md_theme_light_secondary =... | 1 | Kotlin | 0 | 0 | ed2770216689ff2ca1750cf4d37163f2c7e947fe | 3,200 | myCity | MIT License |
app/src/main/java/com/fhernandezri/protegest/activities/TasksActivity.kt | RaksoSec | 813,606,279 | false | {"Kotlin": 122740} | package com.fhernandezri.protegest.activities
import android.content.ContentValues.TAG
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.Button
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.Li... | 0 | Kotlin | 0 | 0 | 5bbf58a075ab6556f46cde9fca69f948717e28bd | 3,075 | ProteGest | MIT License |
src/main/kotlin/shirates/core/driver/commandextension/TestDriveAssertionExtension.kt | ldi-github | 538,873,481 | false | null | package shirates.core.driver.commandextension
import shirates.core.configuration.ImageInfo
import shirates.core.configuration.PropertiesManager
import shirates.core.configuration.Selector
import shirates.core.configuration.isValidNickname
import shirates.core.configuration.repository.ScreenRepository
import shirates.c... | 0 | Kotlin | 0 | 4 | a4d59ee94efea8de8c3c2a5e88f87063e6c6477e | 27,366 | shirates-core | Apache License 2.0 |
src/main/kotlin/max/jvm/isadmin/JvmIsAdmin.kt | lionants02 | 173,906,119 | false | null | package max.jvm.isadmin
import java.util.prefs.Preferences
/**
* Ref:
* https://stackoverflow.com/questions/4350356/detect-if-java-application-was-run-as-a-windows-admin
*/
class JvmIsAdmin {
fun isAdmin(): Boolean {
val prefs = Preferences.systemRoot()
val systemErr = System.err
synch... | 0 | Kotlin | 0 | 0 | 5e259a2beff84663a6f4ef44c33b9fce3c46a41a | 840 | JvmIsAdmin | MIT License |
app/src/main/java/com/example/myhealthpassport/response/Usage.kt | anuragkanojiya1 | 839,037,663 | false | {"Kotlin": 136952} | package com.example.openaiapichatbot.response
data class Usage(
val input_tokens: Int,
val output_tokens: Int
) | 0 | Kotlin | 1 | 2 | 089202e08b28da8899ec5547dc96c6110e1dac75 | 120 | MyHealthPassport | MIT License |
data/RF00757/rnartist.kts | fjossinet | 449,239,232 | false | {"Kotlin": 8214424} | import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
rfam {
id = "RF00757"
name = "consensus"
use alignment numbering
}
}
theme {
details {
value = 3
}
color {
location {
9 to 1... | 0 | Kotlin | 0 | 0 | 3016050675602d506a0e308f07d071abf1524b67 | 1,651 | Rfam-for-RNArtist | MIT License |
Unit_2/ArtSpaceApp/app/src/main/java/com/example/artspaceapp/MainActivity.kt | SenadTopcic | 673,498,331 | false | null | package com.example.artspaceapp
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundat... | 0 | Kotlin | 0 | 3 | fc3803ca5bb26a55bf7157371220d64cae005b30 | 5,074 | Android-Basics-with-Compose | Apache License 2.0 |
server-common/src/testFixtures/kotlin/io/hydrolix/ketchup/TestUtils.kt | hydrolix | 591,402,754 | false | null | package io.hydrolix.ketchup
import com.fasterxml.jackson.core.JsonParser
import io.hydrolix.ketchup.model.config.DBMapping
import io.hydrolix.ketchup.server.ProxyConfig
import io.hydrolix.ketchup.server.ServerJSON
import io.hydrolix.ketchup.translate.DefaultTranslator
import io.hydrolix.ketchup.util.JSON
import org.sl... | 0 | Kotlin | 0 | 8 | d8583f26d8219f12c82ba5bb1be18024eefd02c1 | 3,953 | ketchup | Apache License 2.0 |
data/src/main/java/com/arthurivanets/sample/data/datastores/characters/CharactersDatabaseDataStore.kt | arthur3486 | 178,744,323 | false | {"Gradle": 17, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 12, "Batchfile": 1, "EditorConfig": 1, "YAML": 1, "Markdown": 1, "Proguard": 11, "Java": 15, "XML": 80, "Kotlin": 216, "INI": 2} | /*
* Copyright 2018 <NAME>, <EMAIL>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 0 | Kotlin | 23 | 110 | 495600968cd055bcf98d93d7fe6ab46038e125e7 | 5,852 | android-mvvm | Apache License 2.0 |
charts/src/main/java/me/bytebeats/views/charts/line/render/point/FilledCircularPointDrawer.kt | bytebeats | 409,812,524 | false | {"Kotlin": 88830} | package me.bytebeats.views.charts.line.render.point
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.graphics.Canvas
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.Paint
import androidx.compose.ui.graphics.PaintingStyle
import androidx.compose.ui.graphics.drawscope.D... | 0 | Kotlin | 14 | 142 | 06a4fc707b1ccf8aa6cde73c336abbce55b37668 | 1,114 | compose-charts | MIT License |
sdk/src/main/java/com/uid2/data/IdentityStatus.kt | IABTechLab | 613,407,429 | false | {"Kotlin": 183360, "Java": 24815, "Shell": 567} | package com.uid2.data
/**
* This enum type represents the different status an Identity can be in.
*
* This has been translated from the Web implement, see the following for more information:
* https://github.com/IABTechLab/uid2-web-integrations/blob/5a8295c47697cdb1fe36997bc2eb2e39ae143f8b/src/Uid2InitCallbacks.ts... | 1 | Kotlin | 0 | 3 | 87747af0e0a6b8a79e236c9321b91da2c29b3722 | 1,077 | uid2-android-sdk | Apache License 2.0 |
library/src/main/java/org/xmtp/android/library/libxmtp/InboxState.kt | xmtp | 577,891,020 | false | {"Kotlin": 899596, "Java": 29888, "JavaScript": 959, "Shell": 942, "Python": 539, "Dockerfile": 152} | package uniffi.xmtpv3.org.xmtp.android.library.libxmtp
import org.xmtp.android.library.toHex
import uniffi.xmtpv3.FfiInboxState
class InboxState(private val ffiInboxState: FfiInboxState) {
val inboxId: String
get() = ffiInboxState.inboxId
val addresses: List<String>
get() = ffiInboxState.accou... | 10 | Kotlin | 12 | 32 | 9ea95c63911553051993e409b9fdb93e6a723219 | 517 | xmtp-android | MIT License |
definitions/src/commonMain/kotlin/com/divpundir/mavlink/definitions/storm32/MavQshotMode.kt | divyanshupundir | 484,943,163 | false | {"Kotlin": 2961421} | package com.divpundir.mavlink.definitions.storm32
import com.divpundir.mavlink.api.GeneratedMavEnum
import com.divpundir.mavlink.api.GeneratedMavEnumEntry
import com.divpundir.mavlink.api.MavEnum
import kotlin.UInt
/**
* Enumeration of possible shot modes.
*/
@GeneratedMavEnum
public enum class MavQshotMode(
over... | 5 | Kotlin | 7 | 48 | 647efb2f1a1d00ae410a0a5ad08e2111fe17214e | 1,960 | mavlink-kotlin | Apache License 2.0 |
library/src/androidTest/java/cz/filipproch/reactor/util/ActivityTestUtils.kt | filipproch | 88,263,443 | false | null | package cz.filipproch.reactor.util
import android.app.Activity
import android.content.pm.ActivityInfo
import android.content.res.Configuration
import android.support.test.InstrumentationRegistry
import android.support.test.InstrumentationRegistry.getInstrumentation
import android.support.test.runner.lifecycle.Activity... | 7 | Kotlin | 0 | 0 | ee1877a6fd8949d3bb8871fe3114dd83599352c7 | 3,885 | reactor-android | MIT License |
app/src/main/java/com/weighttracker/screen/weightRecords/WeightRecordsViewModel.kt | nicolegeorgieva | 556,229,503 | false | null | package com.weighttracker.screen.weightRecords
import com.weighttracker.base.SimpleFlowViewModel
import com.weighttracker.persistence.database.weightrecords.DeleteWeightRecordAct
import com.weighttracker.persistence.database.weightrecords.WeightRecordEntity
import com.weighttracker.persistence.database.weightrecords.W... | 1 | Kotlin | 0 | 4 | 25deac43e48bfc0f91d0d5c061482ee7b78b3d69 | 2,295 | weight-tracker-android | MIT License |
src/jvmMain/kotlin/com/paksoft/videodownloaderapi/XMLParserFactory.kt | hamza0786 | 681,362,154 | false | null |
package com.paksoft.videodownloaderapi
import org.json.JSONObject
import org.json.XML
actual object XMLParserFactory {
actual fun createParserFactory(): XMLParser {
return object : XMLParser {
override fun xmlToJsonObject(xmlString: String): JSONObject {
return XML.toJSONObje... | 0 | Kotlin | 0 | 0 | f6076b4a628ca1c0157d90da5d3be88bc9f41a7f | 366 | Video-Downloader-Api | Apache License 2.0 |
app/src/main/kotlin/me/yangcx/demos/ui/aspect/AspectCheckActivity.kt | qiushui95 | 160,495,639 | false | null | package me.yangcx.demos.ui.aspect
import android.content.Context
import android.content.Intent
import android.view.View
import com.tencent.mmkv.MMKV
import kotlinx.android.synthetic.main.activity_asepc_check.*
import me.yangcx.common.annotation.BindLayoutRes
import me.yangcx.demos.R
import me.yangcx.demos.base.BaseAct... | 0 | Kotlin | 0 | 0 | 249a3bf3bf3f259d2b42d5d39feb2c0d915a8c56 | 1,025 | MyModulesAndDemos | Apache License 2.0 |
src/commonTest/kotlin/faraday/derived/electromagnetic/RadiationExposureTest.kt | Amagi82 | 289,812,027 | false | null | package faraday.derived.electromagnetic
import faraday.BaseTest
internal class RadiationExposureTest : BaseTest{}
| 0 | Kotlin | 0 | 0 | b08894b38487bc042b2d8f9292598b324996dd7a | 118 | Faraday | Apache License 2.0 |
save-demo-cpg/src/main/kotlin/com/saveourtool/save/demo/cpg/SaveDemoCpg.kt | saveourtool | 300,279,336 | false | {"Kotlin": 3427815, "SCSS": 86430, "JavaScript": 9061, "HTML": 8852, "Shell": 2770, "Smarty": 2608, "Dockerfile": 1366} | package com.saveourtool.save.demo.cpg
import com.saveourtool.save.demo.cpg.config.ConfigProperties
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.context.properties.EnableConfigurationProperties
/**
* An entrypoint... | 201 | Kotlin | 3 | 38 | 7e126d4fb23f8527c47ca9fa27282379759d154e | 545 | save-cloud | MIT License |
app/src/main/java/com/lloyds/media/ui/viewmodels/TrendingViewModel.kt | gokulkalagara | 811,753,503 | false | {"Kotlin": 114582} | package com.lloyds.media.ui.viewmodels
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.lloyds.media.domain.models.MediaModel
import com.lloyds.media.domain.models.Work
import com.lloyds.media.domain.usecase.TrendingUseCase
import com.lloyds.media.infra.local.Constants
import com... | 0 | Kotlin | 0 | 0 | b28eb8a44e52e092394ddc7fc5e996a24d8e74df | 2,524 | Movies | Apache License 2.0 |
app/src/main/java/com/example/simpleweatherapp/MainActivity.kt | Keremerk | 644,582,848 | false | null | package com.example.simpleweatherapp
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.example.weatherapp.databinding.ActivityMainBinding
import com.example.simpleweatherapp.model.WeatherData
import com.example.simpleweatherapp.utils.CityList
import com.google.gson.Gson
import com.goo... | 0 | Kotlin | 0 | 1 | 5f891dc1fef8e8acfcc2355f53c20b06fea307e9 | 1,319 | SimpleWeatherApp | MIT License |
app/src/main/java/com/tinashe/weather/ui/home/vh/CurrentDayHolder.kt | panaito | 137,350,206 | true | {"Kotlin": 65962, "Java": 867} | package com.tinashe.weather.ui.home.vh
import android.support.v7.widget.RecyclerView
import android.view.View
import android.view.ViewGroup
import com.tinashe.weather.R
import com.tinashe.weather.model.DateFormat
import com.tinashe.weather.model.Entry
import com.tinashe.weather.model.WeatherData
import com.tinashe.wea... | 0 | Kotlin | 0 | 0 | 7dba6b30c1ec8275802b3faddaaf6742c3fdc4dd | 2,541 | WeatherApp | Apache License 2.0 |
libraries/runtime/src/ModulePlugin.kt | featurea | 407,517,337 | false | null | package featurea.runtime
import kotlin.jvm.JvmName
import kotlin.reflect.KClass
typealias Plugin<T> = ModulePlugin<T>.() -> Unit
class ModulePlugin<T : Any>(val dependencyBuilder: DependencyBuilder, val type: KClass<T>) {
@JvmName("toFeature")
infix fun String.to(action: Action) {
val key = this
... | 24 | Kotlin | 1 | 6 | 07074dc37a838f16ece90c19a4e8d45e743013d3 | 2,050 | engine | MIT License |
modules/mongodb/tests/MongoDBTests.kt | fluidsonic | 246,018,343 | false | null | package tests
import com.mongodb.*
import io.fluidsonic.raptor.*
import io.fluidsonic.raptor.bson.*
import io.fluidsonic.raptor.mongo.*
import kotlin.test.*
class MongoDBTests {
@Test
fun testDefaultCodecs() {
val raptor = raptor {
install(RaptorBsonPlugin)
bson.includeMongoClientDefaultCodecs()
}
v... | 0 | Kotlin | 1 | 6 | a16e31d7f62624c48fc172f5c6cc3243c49ebeb5 | 500 | raptor | Apache License 2.0 |
src/main/kotlin/intellij/music/core/ApmController.kt | FirstTimeInForever | 217,824,864 | false | null | package intellij.music.core
import java.util.*
class ApmController(val onApmUpdate: (actionsPerSecond: Float, timeSinceLastAction: Long) -> Unit) {
init {
Thread {
Thread.sleep(5000)
while (true) {
recalcApm()
Thread.sleep(RECALC_INTERVAL)
... | 3 | Kotlin | 6 | 35 | b3a046357463ffe107aa056c136de4c1a9b8030f | 1,426 | intellij-music | MIT License |
mockk/src/main/kotlin/io/mockk/impl/RealChildMocker.kt | raosuj | 113,252,883 | true | {"Kotlin": 219752, "Java": 47524, "HTML": 2876, "CSS": 348, "Shell": 303} | package io.mockk.impl
import io.mockk.EquivalentMatcher
import io.mockk.MatchedCall
internal class RealChildMocker(val stubRepo: StubRepository,
val calls: List<MatchedCall>) {
private var newSelf: Any? = null
val resultCalls = mutableListOf<MatchedCall>()
fun mock() {
... | 0 | Kotlin | 0 | 0 | 2d46ac176678f2fa24be2389396646b43e4e3dc0 | 1,498 | mockk | Apache License 2.0 |
sceneview/src/main/java/io/github/sceneview/utils/Duration.kt | SceneView | 426,414,439 | false | {"Kotlin": 689687, "Java": 421182, "Groovy": 11818, "Batchfile": 228, "Shell": 130} | package io.github.sceneview.utils
import kotlin.time.Duration
import kotlin.time.Duration.Companion.nanoseconds
import kotlin.time.DurationUnit
/**
* The duration between Long nanoseconds and the last one
*/
fun Long.interval(other: Long?): Duration =
(this - (other ?: 0)).nanoseconds
fun Long.intervalSeconds(... | 22 | Kotlin | 160 | 828 | 2969a2c5ef00e5e5a0bccb29053e33fd93fcc47d | 463 | sceneview-android | Apache License 2.0 |
authentication-service/src/main/kotlin/com/github/maly7/tokens/TokenIssuer.kt | maly7 | 167,461,658 | false | null | package com.github.maly7.tokens
import com.github.maly7.domain.UserAccount
import io.jsonwebtoken.Claims
import io.jsonwebtoken.Jwts
import io.jsonwebtoken.SignatureAlgorithm
import org.slf4j.LoggerFactory
import org.springframework.stereotype.Component
import java.security.Key
@Component
class TokenIssuer(private va... | 10 | Kotlin | 2 | 4 | 6ae547a177024fe5be99a0db80345fa83a622b69 | 1,121 | spring-boot-microservices | MIT License |
src/main/kotlin/org/railwaystations/rsapi/utils/ImageUtil.kt | RailwayStations | 54,231,798 | false | {"Kotlin": 499047, "HTML": 8259, "Python": 1189, "Dockerfile": 405, "CSS": 126} | package org.railwaystations.rsapi.utils
import java.awt.image.BufferedImage
import java.io.ByteArrayOutputStream
import java.io.IOException
import java.nio.file.Path
import javax.imageio.ImageIO
object ImageUtil {
private const val IMAGE_PNG: String = "image/png"
private const val IMAGE_JPEG: String = "image... | 5 | Kotlin | 1 | 9 | ad2a4fba9410a441d3c15ea5a2d58c4884f8af36 | 2,343 | RSAPI | MIT License |
src/main/kotlin/no/skatteetaten/aurora/boober/controller/security/WebSecurityConfig.kt | Skatteetaten | 84,482,382 | false | null | package no.skatteetaten.aurora.boober.controller.security
import org.slf4j.MDC
import org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest
import org.springframework.context.annotation.Bean
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframe... | 2 | Kotlin | 5 | 18 | 5a9e91f6f52d959395af7314c2f592074010d635 | 2,603 | boober | Apache License 2.0 |
boxicons/src/commonMain/kotlin/com/woowla/compose/icon/collections/boxicons/boxicons/solid/BxsHourglassTop.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.boxicons.boxicons.solid
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.graphic... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 3,258 | compose-icon-collections | MIT License |
library/src/test/java/com/paypal/messages/extensions/GsonTest.kt | paypal | 676,987,000 | false | {"Kotlin": 169387, "Shell": 1751, "Java": 1010} | package com.paypal.messages.extensions
import com.google.gson.Gson
import com.google.gson.JsonArray
import com.google.gson.JsonParser
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
clas... | 1 | Kotlin | 3 | 1 | 7ad763bcf9a8eb007668ad96a732df624ecb082f | 2,640 | paypal-messages-android | MIT License |
src/test/kotlin/com/brianberliner/openc2/AssertkExtensions.kt | bberliner | 173,817,964 | false | null | /**
* Copyright 2019 Brian Berliner
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 0 | Kotlin | 1 | 6 | ee09764d1a06db53e076c7dfb027c99aba4d6d11 | 1,130 | openc2-json-schema | Apache License 2.0 |
plugins/kotlin/core/src/org/jetbrains/kotlin/idea/core/util/RangeUtils.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.core.util
import com.intellij.openapi.editor.RangeMarker
import com.intellij.openapi.util.TextRange
import com.intellij.psi.P... | 191 | null | 4372 | 13,319 | 4d19d247824d8005662f7bd0c03f88ae81d5364b | 815 | intellij-community | Apache License 2.0 |
app/src/main/java/com/breezefsmdsm/features/addAttendence/api/leavetytpeapi/LeaveTypeRepoProvider.kt | DebashisINT | 400,191,844 | false | {"Kotlin": 9940220, "Java": 913606} | package com.breezefsmdsm.features.addAttendence.api.leavetytpeapi
import com.breezefsmdsm.base.BaseResponse
import com.breezefsmdsm.features.photoReg.model.clearAttendanceonRejectReqModelRejectReqModel
import io.reactivex.Observable
/**
* Created by Saikat on 22-11-2018.
*/
object LeaveTypeRepoProvider {
fun le... | 0 | Kotlin | 0 | 0 | 590641bdd9e3ffde54bddbc3f0191a2caebbb42c | 423 | ITC | Apache License 2.0 |
app/src/main/java/com/example/echangeapp/ExchangeApp.kt | dtx12 | 273,499,039 | false | null | package com.example.echangeapp
import android.app.Application
import com.example.echangeapp.di.shared.ApplicationComponent
import com.example.echangeapp.di.shared.ApplicationModule
import com.example.echangeapp.di.shared.DaggerApplicationComponent
import com.example.echangeapp.di.shared.DataModule
class ExchangeApp :... | 0 | Kotlin | 0 | 0 | 61b3a2265811262ce413a246230fa7418cd7e2c8 | 718 | ExchangeTestTask | MIT License |
verik-core/src/main/kotlin/io/verik/core/Cluster.kt | frwang96 | 269,980,078 | false | null | /*
* Copyright (c) 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | null | 1 | 7 | a40d6195f3b57bebac813b3e5be59d17183433c7 | 1,072 | verik | Apache License 2.0 |
video/src/main/java/com/topview/purejoy/video/data/bean/RecommendVideoJson.kt | giagor | 421,858,760 | false | {"Kotlin": 800571, "AIDL": 3111} | package com.topview.purejoy.video.data.bean
import com.google.gson.annotations.SerializedName
import com.topview.purejoy.common.entity.Video
class RecommendVideoJson{
var code: Int? = null
@SerializedName("msg") var message: String? = null
@SerializedName("hasmore") var hasMore: Boolean? = null
@Seria... | 1 | Kotlin | 1 | 5 | f58ca9570486871066d99fc5e0827af66d6f0c3b | 3,465 | PureJoy | MIT License |
src/back_cam/app/src/main/java/com/example/back_cam/CamService.kt | hamling-ling | 847,318,210 | false | {"Kotlin": 22668} | package com.example.back_cam
import android.Manifest
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.app.Service
import android.content.Context
import android.content.Intent
import android.content.pm.PackageMa... | 0 | Kotlin | 0 | 0 | 67e3851ac915d21747489e1db48e8a66e72d44a4 | 15,538 | back_cam | MIT License |
graphql-api/src/main/kotlin/io/zeebe/zeeqs/graphql/resolvers/query/JobQueryResolver.kt | camunda-community-hub | 237,922,743 | false | null | package io.zeebe.zeeqs.data.resolvers
import graphql.kickstart.tools.GraphQLQueryResolver
import io.zeebe.zeeqs.data.entity.Job
import io.zeebe.zeeqs.data.entity.JobState
import io.zeebe.zeeqs.data.repository.JobRepository
import io.zeebe.zeeqs.graphql.resolvers.connection.JobConnection
import org.springframework.data... | 17 | null | 11 | 41 | dd15093812273f8972eaee5c082aaacfadda8411 | 1,692 | zeeqs | Apache License 2.0 |
app/src/main/java/reach52/marketplace/community/persistence/followup_mapper/CreatedByMapper.kt | reach52 | 422,514,975 | false | {"Kotlin": 1436380, "Java": 18303} | package reach52.marketplace.community.persistence.followup_mapper
import reach52.marketplace.community.models.follow_up.CreatedBy
import reach52.marketplace.community.persistence.Marshaler
import reach52.marketplace.community.persistence.Unmarshaler
class CreatedByMapper : Marshaler<CreatedBy>, Unmarshaler<CreatedBy>... | 0 | Kotlin | 0 | 0 | 629c52368d06f978f19238d0bd865f4ef84c23d8 | 869 | Marketplace-Community-Edition | MIT License |
app/src/androidTest/java/com/ubb/alexandrustoica/reporter/RegisterActivityUITest.kt | alexandrustoica | 115,750,654 | false | null | package com.ubb.alexandrustoica.reporter
import android.os.SystemClock
import android.support.test.espresso.Espresso.onView
import android.support.test.espresso.action.ViewActions.*
import android.support.test.espresso.assertion.ViewAssertions.matches
import android.support.test.espresso.matcher.ViewMatchers.isDisplay... | 0 | Kotlin | 0 | 0 | f0c0bb80ce1ba562fc93e4743f7ef0077848f397 | 2,536 | repodroid | MIT License |
library/src/main/java/ru/yoomoney/sdk/kassa/payments/contract/ContractFormatter.kt | maxgodovikov | 401,309,197 | true | {"Kotlin": 942719} | /*
* The MIT License (MIT)
* Copyright © 2019 NBCO Yandex.Money LLC
*
* 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... | 0 | null | 1 | 0 | b2ec965941e0f8576944173cd85f950d756531eb | 4,637 | yookassa-android-sdk | MIT License |
kotlin_spirongboot_course/src/main/kotlin/br/com/springcourse/Greeting.kt | andrekanbara | 699,614,625 | false | {"Kotlin": 11184} | package br.com.springcourse
class Greeting(val id: Long, val content: String) {
} | 0 | Kotlin | 0 | 0 | a7ed3e5d24e7e4b1b4a4931de965ed8868bc964c | 83 | spingboot-course-kotlin | Apache License 2.0 |
src/main/java/net/winsion/cohttp/markers/FieldMap.kt | zhoucong1020 | 95,843,261 | false | null | package net.winsion.cohttp.markers
annotation class FieldMap(
val encoded: Boolean = false
) | 1 | null | 1 | 4 | d1a2ed9b7e9e7a50fac0e141f959643a1c833342 | 101 | cohttp | Apache License 2.0 |
logging/src/nonJvmMain/kotlin/com/fsryan/tools/logging/NonJvmFSDevMetrics.kt | ryansgot | 212,757,848 | false | null | package com.fsryan.tools.logging
import co.touchlab.stately.isolate.IsolateState
import kotlinx.datetime.Clock
import kotlin.reflect.KClass
actual object FSDevMetrics {
internal val state = IsolateState {
FSLoggerMutableValues(loggers = createInitialDevMetricsLoggers())
}
actual fun addLogger(lo... | 6 | Kotlin | 2 | 1 | dc0a32f3070e40068fc891cdd68607cf2be7f4bc | 3,805 | logging | Apache License 2.0 |
app/src/main/java/com/awscherb/cardkeeper/ui/create/CreateCodeScreen.kt | LateNightProductions | 66,697,395 | false | null | package com.awscherb.cardkeeper.ui.create
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Button
import androidx.compose.ma... | 1 | null | 18 | 102 | b13a05f9967071b69b52abc1d8ae4a8280a97d0e | 4,583 | CardKeeper | Apache License 2.0 |
src/main/kotlin/tech/simter/reactive/web/webflux/WebFluxConfiguration.kt | BallsperCat | 146,683,648 | true | {"Kotlin": 13242} | package tech.simter.reactive.web.webflux
import com.fasterxml.jackson.annotation.JsonInclude
import com.fasterxml.jackson.databind.DeserializationFeature
import com.fasterxml.jackson.databind.Module
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.SerializationFeature
import org... | 0 | Kotlin | 0 | 0 | 0525bbd8c2f89eb22cfa3509e6d909b1166f5d96 | 4,000 | simter-reactive-web | MIT License |
app/src/sharedTest/java/com.jbr.asharplibrary/random/RandomPreviousArtistSearchGenerator.kt | jrmybrault | 210,299,381 | false | null | package com.jbr.asharplibrary.random
import com.jbr.coredomain.searchartist.Artist
import com.jbr.coredomain.searchartist.PreviousArtistSearch
import java.util.*
object RandomPreviousArtistSearchGenerator {
fun generate(
artist: Artist = RandomArtistGenerator.generate(),
date: Date = RandomDateGe... | 0 | Kotlin | 0 | 0 | ad06f792538867a732bd79fae74849f5130addce | 400 | aSharp-library | MIT License |
acornui-core/src/main/kotlin/com/acornui/component/uiComponentUtils.kt | polyforest | 82,695,679 | false | null | /*
* Copyright 2020 Poly Forest, 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 agree... | 3 | Kotlin | 0 | 1 | 87e0d951b75f4c4220147ff729ed199ec0a54e10 | 3,187 | acornui | Apache License 2.0 |
src/main/kotlin/ucu/edu/utils/RandomisedTimer.kt | Yaroslaww-1 | 664,800,645 | false | null | package ucu.edu.utils
import mu.KotlinLogging
import java.util.*
import kotlin.concurrent.schedule
class RandomisedTimer(
min: Long,
max: Long,
val action: () -> Unit
) {
private val logger = KotlinLogging.logger {}
private val interval = (min..max).random()
private var timer = Timer()
f... | 0 | Kotlin | 0 | 0 | 10aad10126d05aef9b138aeda93d0c247d0421e8 | 561 | raft | MIT License |
bbfgradle/tmp/results/BACKUP_JS/BACKEND_jkgurtw_FILE.kt | DaniilStepanov | 346,008,310 | false | {"Markdown": 122, "Gradle": 762, "Gradle Kotlin DSL": 649, "Java Properties": 23, "Shell": 49, "Ignore List": 20, "Batchfile": 26, "Git Attributes": 8, "Kotlin": 82508, "Protocol Buffer": 12, "Java": 6674, "Proguard": 12, "XML": 1698, "Text": 13298, "INI": 221, "JavaScript": 294, "JAR Manifest": 2, "Roff": 217, "Roff M... | // Bug happens on JS
// FILE: tmp.kt
fun xtla() =
when (1) {
"".plus(TODO())
in 1L..1L -> ""
}
| 1 | null | 1 | 1 | e772ef1f8f951873ebe7d8f6d73cf19aead480fa | 114 | kotlinWithFuzzer | Apache License 2.0 |
src/main/kotlin/ch/chrigu/gmf/givemefeatures/tasks/Task.kt | huberchrigu | 873,071,847 | false | {"Kotlin": 21108, "HTML": 2483, "CSS": 1275} | package ch.chrigu.gmf.givemefeatures.tasks
data class Task(val id: TaskId? = null, val name: String, val description: String = "", val status: TaskStatus = TaskStatus.OPEN) {
companion object {
fun describeNewTask(name: String) = Task(name = name)
}
}
enum class TaskStatus { OPEN, DONE }
@JvmInline
v... | 0 | Kotlin | 0 | 0 | 20c6ab76cdc205abb237a9e554695cd31cbb9028 | 398 | give-me-features | Apache License 2.0 |
src/main/kotlin/com/fraktalio/example/fmodelspringdemo/adapter/web/rsocket/AggregateRsocketController.kt | fraktalio | 628,341,267 | false | {"Kotlin": 72310} | package com.fraktalio.example.fmodelspringdemo.adapter.web.rsocket
import com.fraktalio.example.fmodelspringdemo.adapter.persistence.RestaurantCoroutineRepository
import com.fraktalio.example.fmodelspringdemo.adapter.persistence.RestaurantEntity
import com.fraktalio.example.fmodelspringdemo.application.Aggregate
impor... | 2 | Kotlin | 2 | 7 | 6fcaee3e0b090a9267e84c61d1ec9678d8467923 | 1,423 | fmodel-spring-state-stored-demo | Apache License 2.0 |
platform/src/main/kotlin/researchstack/backend/adapter/outgoing/mongo/entity/healthdata/WearSpo2Entity.kt | S-ResearchStack | 520,365,362 | false | {"Kotlin": 1297740, "Dockerfile": 202, "Shell": 59} | package researchstack.backend.adapter.outgoing.mongo.entity.healthdata
import com.fasterxml.jackson.annotation.JsonProperty
import org.springframework.data.annotation.Id
import org.springframework.data.mongodb.core.mapping.Document
import java.sql.Timestamp
@Document("wearSpo2")
data class WearSpo2Entity(
@Id
... | 1 | Kotlin | 9 | 29 | edd76f219cdb10c8151b8ac14175b1e818a6036a | 602 | backend-system | Apache License 2.0 |
font-awesome/src/commonMain/kotlin/compose/icons/fontawesomeicons/solid/ChalkboardTeacher.kt | DevSrSouza | 311,134,756 | false | null | package compose.icons.fontawesomeicons.solid
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.... | 17 | null | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 3,335 | compose-icons | MIT License |
app/src/main/java/uk/co/victoriajanedavis/chatapp/presentation/ui/home/chats/adapter/ChatsAdapter.kt | sbearben | 158,967,910 | false | null | package uk.co.victoriajanedavis.chatapp.presentation.ui.home.chats.adapter
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.DiffUtil
import android.view.LayoutInflater
import android.view.ViewGroup
import uk.co.victoriajanedavis.chatapp.domain.entities.ChatEntity
import javax.inject.... | 0 | Kotlin | 10 | 16 | e6d7890effc84b1b5c47870c33a0b3d11edffe4b | 1,270 | ChatApp | Apache License 2.0 |
forge-core/src/test/kotlin/io/github/hellocuriosity/providers/UuidProviderTest.kt | HelloCuriosity | 351,704,178 | false | null | package io.github.hellocuriosity.providers
import org.junit.Test
import kotlin.test.assertEquals
class UuidProviderTest {
@Test
fun testGet() {
val uuid = UuidProvider().get().toString()
val groups = uuid.split("-")
/**
* UUIDs are displayed in five groups separated by hyphe... | 12 | Kotlin | 4 | 9 | 3dcbb9436f5f155dd3f8dbfd90030da92dd771f8 | 693 | model-forge | MIT License |
auth/src/main/java/love/nuoyan/android/auth/AuthBuildForMore.kt | WenJieGitHub | 531,445,002 | false | null | package love.nuoyan.android.auth
import android.content.ActivityNotFoundException
import android.content.Intent
import android.net.Uri
import android.os.Build
object AuthBuildForMore : AbsAuthBuild() {
/**
* 分享到更多
* @param text 分享文本
*/
fun shareToMore(text: String) {
val shareIntent = I... | 0 | Kotlin | 0 | 1 | 065be78b4108ade14d4f5c79cabfe48468ddee8b | 3,493 | AndroidAuth | Apache License 2.0 |
dist/src/main/kotlin/kr/toxicity/hud/layout/LayoutOffset.kt | toxicity188 | 766,189,896 | false | {"Kotlin": 423076, "Java": 49347} | package kr.toxicity.hud.layout
enum class LayoutOffset {
LEFT,
CENTER,
RIGHT
} | 16 | Kotlin | 21 | 97 | 09537825664cd061ce4f63feb0a37891e73231c6 | 91 | BetterHud | MIT License |
base/src/main/kotlin/com/alfresco/kotlin/FilenameComparator.kt | Alfresco | 201,430,708 | false | null | package com.alfresco.kotlin
object FilenameComparator : java.util.Comparator<String> {
override fun compare(s1: String, s2: String): Int {
val r = base(s1).compareTo(base(s2), ignoreCase = true)
return if (r != 0) {
r
} else ext(s1).compareTo(ext(s2), ignoreCase = true)
}
... | 3 | Kotlin | 7 | 5 | a5d073c2c4fadc10815d77b6e7162e38e098d5b1 | 462 | alfresco-mobile-workspace-android | Apache License 2.0 |
src/main/kotlin/me/zhengjin/common/customs/business/cbi/inventory/po/declare/IInventoryHead.kt | zhengjin-me | 522,433,935 | false | {"Kotlin": 485833, "Java": 67793} | /*
* MIT License
*
* Copyright (c) 2022 <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... | 0 | Kotlin | 0 | 0 | 7577fb6993d608ab392c127eb0d715e6eceec768 | 13,738 | common-customs-beans | MIT License |
rximagepicker/src/main/java/com/qingmei2/rximagepicker/scheduler/RxImagePickerTestSchedulers.kt | qingmei2 | 116,668,295 | false | null | package com.qingmei2.rximagepicker.di.scheduler
import io.reactivex.Scheduler
import io.reactivex.schedulers.Schedulers
/**
* An extra layer of packaging, using [RxImagePickerTestSchedulers] for easier testing.
*/
class RxImagePickerTestSchedulers : IRxImagePickerSchedulers {
override fun ui(): Scheduler {
... | 20 | null | 156 | 1,196 | 08aee5c815017845a0fd818cc6bfa5df872e3fae | 429 | RxImagePicker | MIT License |
camera/integration-tests/coretestapp/src/test/java/androidx/camera/integration/core/PreviewTest.kt | androidx | 256,589,781 | false | {"Kotlin": 102794437, "Java": 64412412, "C++": 9138104, "AIDL": 617598, "Python": 310931, "Shell": 189529, "TypeScript": 40586, "HTML": 35176, "Groovy": 27482, "ANTLR": 26700, "Svelte": 20307, "CMake": 18033, "C": 16982, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright 2024 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 applica... | 28 | Kotlin | 937 | 5,108 | 89ec14e39cf771106a8719337062572717cbad31 | 3,550 | androidx | Apache License 2.0 |
src/test/kotlin/com/github/yuizho/dbraccoon/DbRaccoonExtensionH2IT.kt | yuizho | 239,512,196 | false | {"Kotlin": 169671, "Java": 3841} | package com.github.yuizho.dbraccoon
import com.github.yuizho.dbraccoon.annotation.*
import org.assertj.core.api.Assertions.assertThat
import org.h2.jdbcx.JdbcDataSource
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.... | 4 | Kotlin | 0 | 1 | 57335871040162110357c938d7e53fbf4b066e25 | 26,070 | db-raccoon | MIT License |
mobile/src/main/java/com/aptopayments/mobile/data/workflowaction/AllowedBalanceType.kt | ShiftFinancial | 130,093,227 | false | {"Markdown": 2, "Gradle": 5, "Text": 1, "Ignore List": 1, "Kotlin": 492, "JSON": 41, "XML": 2, "YAML": 1} | package com.aptopayments.mobile.data.workflowaction
import java.io.Serializable
import java.net.URL
data class AllowedBalanceType(
val balanceType: String,
val baseUri: URL
) : Serializable
| 0 | Kotlin | 0 | 5 | f79b3c532ae2dfec8e571b315401ef03d8e507f9 | 200 | shift-sdk-android | MIT License |
app/src/main/java/vn/edu/usth/mobile_app/ui/ModelDetailsActivity.kt | ChloroProject-2023 | 691,451,114 | false | {"Kotlin": 29173} | package vn.edu.usth.mobile_app.ui
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.activity.viewModels
import com.github.aachartmodel.aainfographics.aachartcreator.AAChartModel
import com.github.aachartmodel.aainfographics.aachartcreator.AAChartType
import com.github.aachartmode... | 1 | Kotlin | 0 | 0 | b5635b2a3896108abbe6a2c010f6e45a330fab4f | 2,500 | mobile-app | MIT License |
src/main/kotlin/commandmaster/utils/commands/ToCommandHelper.kt | Jempasam | 780,178,240 | false | {"Kotlin": 188225, "Java": 5857, "JavaScript": 111} | package commandmaster.utils.commands
import net.minecraft.component.ComponentChanges
import net.minecraft.component.DataComponentType
import net.minecraft.item.ItemStack
import net.minecraft.nbt.NbtOps
import net.minecraft.nbt.NbtString
import net.minecraft.registry.Registries
import kotlin.jvm.optionals.getOrNull
fu... | 0 | Kotlin | 0 | 0 | 75d31e27afcf96206b2bf89a16cb60573afbe54f | 1,190 | CommandMaster | Creative Commons Attribution 4.0 International |
android/features/creator/src/main/java/nl/entreco/giddyapp/creator/create/CreateHorseRequest.kt | Entreco | 164,009,012 | false | {"Text": 1, "Ignore List": 17, "YAML": 2, "Markdown": 4, "Dart": 5, "Gradle": 23, "INI": 1, "Java Properties": 3, "XML": 174, "Java": 13, "OpenStep Property List": 2, "Objective-C": 3, "JSON": 2, "Proguard": 13, "Shell": 1, "Batchfile": 1, "Kotlin": 231} | package nl.entreco.giddyapp.creator.create
import android.net.Uri
import nl.entreco.giddyapp.libcore.HexString
import nl.entreco.giddyapp.libhorses.HorseCategory
import nl.entreco.giddyapp.libhorses.HorseGender
import nl.entreco.giddyapp.libhorses.HorseLevel
import nl.entreco.giddyapp.libhorses.HorsePrice
data class ... | 23 | null | 1 | 1 | 59960640ecd182c502df2d52fa17ed619d415c91 | 587 | GiddyApp | Apache License 2.0 |
app/src/main/java/com/example/myquizapp/Constant.kt | akshat433 | 698,272,840 | false | {"Kotlin": 13937} | package com.example.myquizapp
object Constant {
const val User_Name : String = "user_name"
const val Total_Question : String = "total_user"
const val Correct_Answers : String = "correct_answers"
fun getQuestion():ArrayList<Question>{
val questionlist = ArrayList<Question>()
val que1... | 0 | Kotlin | 0 | 0 | 00efd630bfae293795219c0356a156a45600b012 | 2,741 | MyQuizApp | MIT License |
Oxygen/bukkit/src/main/kotlin/cc/fyre/stark/rank/command/RankManageCommand.kt | AndyReckt | 364,514,997 | false | {"Java": 12055418, "Kotlin": 766337, "Shell": 5518} | /*
* Copyright (c) 2020.
* Created by YoloSanta
* Created On 10/22/20, 1:23 AM
*/
package cc.fyre.stark.rank.command
import cc.fyre.stark.engine.command.Command
import cc.fyre.stark.rank.menu.RankManageMenu
import org.bukkit.entity.Player
/**
* Created by DaddyDombo <EMAIL> on 5/20/2020.
*/
object RankManageCo... | 1 | null | 1 | 1 | 200501c7eb4aaf5709b4adceb053fee6707173fa | 466 | Old-Code | Apache License 2.0 |
app/src/main/java/com/nikanorov/newsjetminiflux/ui/home/HomeViewModel.kt | nikanorov | 529,629,034 | false | {"Kotlin": 125662} | package com.nikanorov.newsjetminiflux.ui.home
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.nikanorov.newsjetminiflux.R
import com.nikanorov.newsjetminiflux.data.Result
import com.nikanorov.newsjetminiflux.data.posts.PostsRepository
import com.nikanorov.newsjetminiflux.model.P... | 0 | Kotlin | 0 | 2 | f06d9a5238f053c3bf8065ee9339515047a3e2d4 | 7,186 | newsjet-miniflux | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/makerecalldecisionapi/domain/featureflags/FeatureFlags.kt | ministryofjustice | 478,614,213 | false | null | package uk.gov.justice.digital.hmpps.makerecalldecisionapi.domain.featureflags
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
@JsonIgnoreProperties(ignoreUnknown = true)
data class FeatureFlags(
val flagTriggerWork: Boolean? = false,
val flagSendDomainEvent: Boolean? = false,
val flagConsiderRecall... | 6 | Kotlin | 1 | 0 | b298033a6ee778d61a57a4add48b8b0a65c4cdc7 | 403 | make-recall-decision-api | MIT License |
plugins/ide-startup/importSettings/src/com/intellij/ide/startup/importSettings/jb/JbSettingsImporter.kt | ghj1040110333 | 293,982,220 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.ide.startup.importSettings.jb
import com.intellij.configurationStore.*
import com.intellij.configurationStore.schemeManager.SchemeManagerFactoryBase
import com.intellij.ide.plug... | 1 | null | 1 | 1 | 30e99326f624496d5f76e4b9f722b75b177c5022 | 11,436 | intellij-community | Apache License 2.0 |
vector/src/main/java/im/vector/app/eachchat/widget/email/WidgetEmailActivity.kt | eachchat | 460,467,419 | true | {"Kotlin": 12319527, "Java": 696769, "HTML": 96269, "Shell": 31280, "Python": 19717, "FreeMarker": 7826, "JavaScript": 1782, "Ruby": 1574, "Gherkin": 163} | /*
* Copyright (c) 2022 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 4 | Kotlin | 0 | 0 | 9e975f4bc11da17705254923f54eba306021cc5f | 2,112 | yiqia-android | Apache License 2.0 |
app/src/main/java/com/ytrewqwert/yetanotherjnovelreader/data/local/database/BaseDao.kt | ytrewqwerT | 240,618,186 | false | null | package com.ytrewqwert.yetanotherjnovelreader.data.local.database
import androidx.room.*
/** An abstract [Dao] class defining some basic operations for an [Entity] of type [T]. */
abstract class BaseDao<T> {
@Insert(onConflict = OnConflictStrategy.IGNORE)
abstract suspend fun insert(vararg items: T): LongArra... | 6 | Kotlin | 1 | 0 | 9b26804658f5cfa388e0ed94ac42558b2a33478d | 856 | YetAnotherJNovelReader | MIT License |
app/src/main/java/com/siziksu/ui/di/DependenciesInjector.kt | Siziksu | 187,405,387 | false | null | package com.siziksu.ui.di
import android.app.Application
import com.siziksu.data.di.dataModules
import com.siziksu.domain.di.domainModules
import org.koin.android.ext.android.startKoin
import org.koin.dsl.module.Module
fun Application.startInjector() {
val list = ArrayList<Module>()
list.addAll(appModules())
... | 0 | Kotlin | 0 | 0 | f863aa653c09cb034069860079158d47fe878c81 | 528 | kotlin-coroutines | Apache License 2.0 |
src/commonMain/kotlin/com/inari/util/TypesAndConstants.kt | AndreasHefti | 387,557,032 | false | null | package com.inari.util
import com.inari.firefly.core.Component
import com.inari.firefly.core.Component.Companion.NO_COMPONENT_KEY
import com.inari.firefly.core.ComponentKey
import com.inari.firefly.core.api.ButtonType
import com.inari.util.geom.ImmutableVector2f
import com.inari.util.geom.ImmutableVector2i
import com.... | 5 | Kotlin | 0 | 11 | f56999f0dc6aea344611be34f097bd96cfd94d60 | 6,469 | flyko-lib | Apache License 2.0 |
src/main/kotlin/com/ags/domain/GagFeed.kt | angel-git | 308,738,168 | false | null | package com.ags.domain
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlCData
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement
import io.quarkus.runtime.annotations.RegisterForReflection
import kotlinx... | 0 | Kotlin | 0 | 0 | d3e70e8d8c2af5f39713b6f9c0a8b9329744fe98 | 1,404 | 9gag-rss | MIT License |
jps/jps-plugin/jps-tests/test/org/jetbrains/kotlin/jps/build/AbstractIncrementalK2FirICLightTreeJvmJpsTest.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-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.jps.build
import org.jetbrains.kotlin.cli.common.arguments.CommonCompilerArgumen... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,340 | kotlin | Apache License 2.0 |
libraries/orientation/src/ios/package.kt | featurea | 407,517,337 | false | null | package featurea.orientation
import featurea.runtime.DependencyBuilder
import featurea.window.WindowPlugin
actual fun DependencyBuilder.includeExternals() {
WindowPlugin {
"OrientationChangeListener" to ::OrientationChangeListener
}
}
| 24 | Kotlin | 1 | 6 | 07074dc37a838f16ece90c19a4e8d45e743013d3 | 253 | engine | MIT License |
src/main/kotlin/weft/game/creatures/Spider.kt | JonahEl | 129,252,042 | false | null | package weft.game.creatures
import weft.display.Glyph
import weft.game.dice.D6
import weft.game.map.GameMap
import java.awt.Color
class Spider(map: GameMap) : Creature(map, Glyph('s', Color.RED), "Spider") {
init {
maxHealth = D6(10).roll()
currentHealth = maxHealth
attack = D6(4)
... | 0 | Kotlin | 0 | 0 | e2f4abf8430ede4a8f742b37fb8c926980acb352 | 369 | rpg-kotlin | MIT License |
src/main/kotlin/com/github/rench/ddw/config/Config.kt | rench | 130,037,838 | false | {"CSS": 859461, "HTML": 42906, "Kotlin": 26453, "JavaScript": 6782} | package com.github.rench.ddw.config
import org.springframework.context.annotation.Configuration
import org.springframework.data.domain.AuditorAware
import org.springframework.web.servlet.config.annotation.CorsRegistry
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer
import java.util.*
@Confi... | 0 | CSS | 0 | 4 | 4a5f4e6cb9a54cc13653394cb29dde06748690ec | 646 | phi-ddw | MIT License |
app/src/test/kotlin/com/fibelatti/pinboard/features/posts/domain/usecase/GetPostParamsTest.kt | fibelatti | 165,537,939 | false | {"Kotlin": 1258575, "Shell": 165} | package com.fibelatti.pinboard.features.posts.domain.usecase
import com.fibelatti.pinboard.core.AppConfig.DEFAULT_PAGE_SIZE
import com.fibelatti.pinboard.features.appstate.ByDateAddedNewestFirst
import com.fibelatti.pinboard.features.posts.domain.PostVisibility
import com.google.common.truth.Truth.assertThat
import or... | 4 | Kotlin | 13 | 155 | a85cbb923d8b0e79b2e5be931dc442408bd4e910 | 904 | pinboard-kotlin | Apache License 2.0 |
applivery-data/src/main/java/com/applivery/data/response/ApiLogin.kt | applivery | 40,442,532 | false | null | /*
* Copyright (c) 2020 Applivery
*
* 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... | 5 | Java | 14 | 19 | a10bce9c8aa85c07c8acf41d14d29c9d724639ae | 1,320 | applivery-android-sdk | Apache License 2.0 |
app/src/main/java/com/yourbcabus/android/yourbcabus/Models.kt | YourBCABus | 169,098,806 | false | null | package com.yourbcabus.android.yourbcabus
import com.beust.klaxon.Converter
import com.beust.klaxon.JsonValue
import java.lang.Exception
import java.util.*
@Target(AnnotationTarget.FIELD)
annotation class KlaxonDate {
class InvalidDateException: Exception()
companion object : Converter {
override fun... | 0 | Kotlin | 0 | 0 | 409e91b0d6b23a43e692ed418ad144f22858b9fc | 3,263 | yourbcabus-android-app | MIT License |
box2d/src/main/kotlin/ktx/box2d/dsl.kt | MaTriXy | 120,572,491 | true | {"Kotlin": 1175613, "GLSL": 68} | package ktx.box2d
import kotlin.annotation.AnnotationTarget.*
/**
* Marks KTX Box2D type-safe builders.
* @see BodyDefinition
* @see FixtureDefinition
*/
@DslMarker
@Target(CLASS, TYPE_PARAMETER, FUNCTION, TYPE, TYPEALIAS)
annotation class Box2DDsl
| 0 | Kotlin | 0 | 0 | 0e12151d2e05fa12d887f4e20865ba602b7eb3f8 | 255 | ktx | Creative Commons Zero v1.0 Universal |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/route53recoveryreadiness/CfnReadinessCheckPropsDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.route53recoveryreadiness
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.route53recoveryreadiness.CfnReadinessCheckProps
@Generated
public fun buildCfnReadinessCheckProps(initializer: @A... | 1 | Kotlin | 0 | 0 | 451a1e42282de74a9a119a5716bd95b913662e7c | 466 | aws-cdk-kt | Apache License 2.0 |
project/common/src/main/kotlin/ink/ptms/adyeshach/core/entity/Metaable.kt | TabooLib | 284,936,010 | false | {"Kotlin": 1050024, "Java": 35966} | package ink.ptms.adyeshach.core.entity
import ink.ptms.adyeshach.core.MinecraftMeta
import org.bukkit.entity.Player
/**
* Adyeshach
* ink.ptms.adyeshach.core.entity.Metaable
*
* @author 坏黑
* @since 2022/6/15 23:04
*/
@Suppress("SpellCheckingInspection")
interface Metaable {
/**
* 获取实体元数据
*/
f... | 13 | Kotlin | 86 | 98 | ac7098b62db19308c9f14182e33181c079b9e561 | 889 | adyeshach | MIT License |
dd-sdk-android/src/main/kotlin/com/datadog/android/core/internal/data/file/FileHandler.kt | tasomaniac | 325,597,009 | true | {"Kotlin": 2450740, "Java": 217577, "C": 78048, "C++": 24720, "CMake": 1813} | /*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
package com.datadog.android.core.internal.data.file
import com.datad... | 0 | null | 0 | 0 | 49719442bbdeb398855baa657fa17883d6968efd | 2,572 | dd-sdk-android | Apache License 2.0 |
src/main/kotlin/no/nav/tiltakspenger/soknad/api/pdf/PdfGenerator.kt | navikt | 595,621,185 | false | {"Kotlin": 261381, "Dockerfile": 512} | package no.nav.tiltakspenger.soknad.api.pdf
import no.nav.tiltakspenger.soknad.api.domain.SøknadDTO
import no.nav.tiltakspenger.soknad.api.vedlegg.Vedlegg
interface PdfGenerator {
suspend fun genererPdf(søknadDTO: SøknadDTO): ByteArray
suspend fun konverterVedlegg(vedlegg: List<Vedlegg>): List<Vedlegg>
}
| 15 | Kotlin | 0 | 0 | 78b545587f1058bc8ab629fe0820821abc07967c | 316 | tiltakspenger-soknad-api | MIT License |
app/src/main/java/org/nekomanga/presentation/extensions/ColorScheme.kt | CarlosEsco | 182,704,531 | false | {"Kotlin": 3257070} | package org.nekomanga.presentation.extensions
import androidx.compose.material3.ColorScheme
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.compositeOver
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import kotlin.math.ln
fun ColorScheme.surfaceColorAtElevationCus... | 79 | Kotlin | 103 | 1,694 | 4baf458c2c588bedfa0325a040572743012cdcee | 545 | Neko | Apache License 2.0 |
camera/src/main/java/com/atom/camera/core/gl/func/unit/BrightnessShadser.kt | yongzheng7 | 335,639,525 | false | null | package com.atom.camera.core.gl.func.unit
import android.content.res.Resources
import android.opengl.GLES20
import com.atom.camera.core.gl.BaseShader
/**
* 亮度滤镜
*/
class BrightnessShadser :BaseShader{
private var uBrightness = 0
private val brightnessCode = 0.1f
constructor(resource: Resources) : supe... | 1 | null | 1 | 1 | 47993799238f2254668f71190d85263be0fdc980 | 728 | android-camera | Apache License 2.0 |
src/jsMain/kotlin/app/softwork/bootstrapcompose/Alerts.kt | hfhbd | 372,465,451 | false | null | package app.softwork.bootstrapcompose
import androidx.compose.runtime.*
import org.jetbrains.compose.web.attributes.*
import org.jetbrains.compose.web.css.selectors.*
import org.jetbrains.compose.web.dom.*
import org.w3c.dom.*
@Composable
public fun Alert(
color: Color,
styling: (Styling.() -> Unit)? = null,
... | 7 | Kotlin | 4 | 27 | 73f12791448b4056f95ee3c80baee08b03a4bc59 | 1,297 | bootstrap-compose | Apache License 2.0 |
m2-h3/src/main/kotlin/ru/yegorpilipenko/otus/spring/m2h3/controller/BookController.kt | nao4j | 158,942,958 | false | {"Java": 372709, "Kotlin": 153881, "HTML": 56806, "Dockerfile": 710} | package ru.yegorpilipenko.otus.spring.m2h3.controller
import org.springframework.stereotype.Controller
import org.springframework.ui.Model
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.PostMapping
imp... | 1 | null | 1 | 1 | a3074a5e1d999a64703dd644df9a354d15ad531b | 3,047 | spring-otus | MIT License |
src/main/kotlin/org/rust/lang/core/resolve/RsPathResolveResult.kt | intellij-rust | 42,619,487 | false | null | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.lang.core.resolve
import com.intellij.psi.PsiElement
import com.intellij.psi.ResolveResult
import org.rust.lang.core.psi.ext.RsElement
import org.rust.lang.core.types.Substitution
import org.rus... | 1,705 | Kotlin | 360 | 4,259 | 121747c988a1128b94ad975b9b9a9ec4912ae5b7 | 989 | intellij-rust | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.