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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/java/com/sayzen/campfiresdk/screens/other/about/SAboutCreators.kt | Daboo011 | 217,832,397 | false | {"Kotlin": 1107825} | package com.sayzen.campfiresdk.screens.other.about
import android.view.View
import com.dzen.campfire.api.API
import com.sayzen.campfiresdk.R
import com.sayzen.campfiresdk.controllers.ControllerCampfireSDK
import com.sayzen.campfiresdk.screens.account.profile.SAccount
import com.sup.dev.android.libs.screens.Screen
impo... | 0 | null | 1 | 0 | 33c46da49d3758a1a006ac660dc823d35c66baea | 2,793 | CampfireSDK | Apache License 2.0 |
lib/src/commonMain/kotlin/fyi/repository/RequestLauncher.kt | infinitum-dev | 209,071,933 | false | null | package fyi.repository
import fyi.exceptions.ErrorResponse
import fyi.exceptions.Errors
import fyi.utils.Dispatcher
import io.ktor.http.HttpMethod
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import kotlinx.serialization.json.Json
/**
* Singleton class that handles the creation of coroutine... | 0 | Kotlin | 0 | 0 | f748c127221a6d304d7d306094ea24d3088abc59 | 1,829 | mobile-sdk | MIT License |
planner/app/src/main/java/com/sunilson/firenote/data/models/NoteColor.kt | sunilson | 70,263,543 | false | null | package com.sunilson.firenote.data.models
data class NoteColor(var colorName: String, var color: Int) | 1 | null | 3 | 3 | 3938a0d49a26290975e5f0c6ff40c1ad9a256e63 | 102 | FireNote | MIT License |
implementation/src/main/kotlin/io/github/tomplum/aoc/communication/beacon/EmergencySensorSystem.kt | TomPlum | 572,260,182 | false | null | package io.github.tomplum.aoc.communication.beacon
class EmergencySensorSystem(data: List<String>) {
private val subterraneanTunnelMap = SubterraneanTunnelMap(data)
fun calculateBeaconExclusionZoneCount(yAxisOrdinate: Int): Int {
val exclusions = subterraneanTunnelMap.locateExcludedPositions(yAxisOrd... | 0 | Kotlin | 0 | 0 | 703db17fe02a24d809cc50f23a542d9a74f855fb | 837 | advent-of-code-2022 | Apache License 2.0 |
implementation/src/main/kotlin/io/github/tomplum/aoc/communication/beacon/EmergencySensorSystem.kt | TomPlum | 572,260,182 | false | null | package io.github.tomplum.aoc.communication.beacon
class EmergencySensorSystem(data: List<String>) {
private val subterraneanTunnelMap = SubterraneanTunnelMap(data)
fun calculateBeaconExclusionZoneCount(yAxisOrdinate: Int): Int {
val exclusions = subterraneanTunnelMap.locateExcludedPositions(yAxisOrd... | 0 | Kotlin | 0 | 0 | 703db17fe02a24d809cc50f23a542d9a74f855fb | 837 | advent-of-code-2022 | Apache License 2.0 |
apps/toi-livshendelse/src/main/kotlin/no/nav/arbeidsgiver/toi/livshendelser/håndterPersonhendelser.kt | navikt | 379,186,604 | false | {"Kotlin": 465958, "Dockerfile": 1380} | package no.nav.arbeidsgiver.toi.livshendelser
import no.nav.helse.rapids_rivers.RapidsConnection
import no.nav.person.pdl.leesah.Personhendelse
import org.slf4j.LoggerFactory
class PersonhendelseService(private val rapidsConnection: RapidsConnection, private val pdlKlient: PdlKlient) {
private val secureLog = Log... | 0 | Kotlin | 1 | 0 | f54c6d106bb03aa5b097579f820a42666a8a9779 | 1,470 | toi-rapids-and-rivers | MIT License |
src/main/kotlin/me/senseiwells/replay/viewer/packhost/PackHost.kt | senseiwells | 643,690,788 | false | {"Kotlin": 228976, "Java": 57886} | package me.senseiwells.replay.viewer.packhost
import com.google.common.hash.Hashing
import com.google.common.util.concurrent.ThreadFactoryBuilder
import com.sun.net.httpserver.HttpExchange
import com.sun.net.httpserver.HttpHandler
import com.sun.net.httpserver.HttpServer
import org.slf4j.LoggerFactory
import java.net.... | 5 | Kotlin | 9 | 86 | 11e1dcff36123a9ec24f89c6617621f77c7ded7b | 6,704 | ServerReplay | MIT License |
app/src/main/java/com/example/mypokedex/data/remote/responses/MoveLearnMethod.kt | GeeTansher | 720,037,936 | false | {"Kotlin": 25736} | package com.example.mypokedex.data.remote.responses
data class MoveLearnMethod(
val name: String,
val url: String
) | 0 | Kotlin | 0 | 0 | 42716af2b800aeb49c9b0af236202eeed09ceeaa | 124 | My-Pokedex | MIT License |
app/src/main/java/com/hannesdorfmann/mosby/conductor/sample/create/CreateTaskPresenter.kt | DaleKocian | 62,198,062 | true | {"Java Properties": 2, "Shell": 2, "Markdown": 1, "Batchfile": 1, "INI": 2, "Proguard": 3, "Java": 14, "Kotlin": 33} | package com.hannesdorfmann.mosby.conductor.sample.create
import com.hannesdorfmann.mosby.conductor.sample.model.tasks.TaskDao
import com.hannesdorfmann.mosby.mvp.MvpBasePresenter
import javax.inject.Inject
/**
* Presenter to create a new Task
*
* @author <NAME>
*/
class CreateTaskPresenter @Inject constructor(dao... | 0 | Java | 0 | 0 | 5baa46d1ced75c1fdb5db1a2e35362afd085e41d | 397 | mosby-conductor | Apache License 2.0 |
jvm-debugger/coroutines/src/org/jetbrains/kotlin/idea/debugger/coroutine/proxy/CoroutineLibraryAgent2Proxy.kt | JetBrains | 278,369,660 | 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.debugger.coroutine.proxy
import com.sun.jdi.ObjectReference
import org.jetbrains.kotlin.idea.debugger.coroutine.data.Coroutin... | 1 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 5,089 | intellij-kotlin | Apache License 2.0 |
utility/http/src/commonMain/kotlin/tech/antibytes/keather/http/networking/NetworkingContract.kt | bitPogo | 762,226,385 | false | {"Kotlin": 363602, "Swift": 6863, "JavaScript": 6688, "C": 194, "HTML": 184} | /*
* Copyright (c) 2024 Matthias Geisler (bitPogo) / All rights reserved.
*
* Use of this source code is governed by Apache v2.0
*/
package tech.antibytes.keather.http.networking
import io.ktor.client.HttpClientConfig
import io.ktor.client.plugins.HttpClientPlugin
typealias Header = Map<String, String>
typealias... | 0 | Kotlin | 0 | 0 | 93853ebf1ec3068940198ae799327c5fe16e31e1 | 2,091 | keather | Apache License 2.0 |
bukkit/src/main/java/pl/kakuszcode/discordreward/bukkit/DiscordReward.kt | kakuszCode | 567,027,556 | false | {"Kotlin": 32703} | package pl.kakuszcode.discordreward.bukkit
import eu.okaeri.configs.ConfigManager
import eu.okaeri.configs.yaml.bukkit.YamlBukkitConfigurer
import eu.okaeri.configs.yaml.bukkit.serdes.SerdesBukkit
import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
imp... | 11 | Kotlin | 0 | 5 | 5a24314034df4347f1c273016a42aa513d584439 | 4,131 | KakuszDiscordRewardPlugin | Apache License 2.0 |
lib/src/test/kotlin/my/lib/MainTest.kt | Republicn | 113,223,752 | true | {"Kotlin": 6956} | package my.lib
import org.junit.Test
import org.junit.Assert.assertEquals
import java.util.ArrayList
import java.util.Random
val rand = Random()
class MainTest {
@Test
fun intTest() {
val sequenceOne = listOf(1, 5, 8, 4, 7)
val sequenceTwo = listOf(3, 2, 11, 9, 37, 3, 0)
assertEquals... | 0 | Kotlin | 0 | 0 | 193c2b958b9bbe4d9db716e0c791e36f1f09945a | 1,128 | ctddev-kotlin-demo-2017 | MIT License |
src/main/java/lib/compose/theme/ThemeBuilder.kt | ruslanPodurets | 783,326,541 | false | {"Kotlin": 3385} | package lib.compose.theme
import android.os.Build
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.ColorScheme
import androidx.compose.material3.dynamicDarkColorScheme
import androidx.compose.material3.dynamicLightColorScheme
import androidx.compose.runtime.Composable
import and... | 0 | Kotlin | 0 | 0 | c6b047a0bb4d44586da6071b9d41a7be2ef07fb1 | 1,409 | ComposeTheme | MIT License |
core/src/jvmMain/kotlin/world/phantasmal/core/unsafe/UnsafeCast.kt | DaanVandenBosch | 189,066,992 | false | null | @file:JvmName("UnsafeCastJvm")
package world.phantasmal.core.unsafe
@Suppress("UNCHECKED_CAST", "NOTHING_TO_INLINE")
actual inline fun <T> unsafeCast(value: Any?): T = value as T
| 2 | Kotlin | 5 | 20 | 62a49b067c50a4862198e18f96159826c2ed66af | 181 | phantasmal-world | MIT License |
httpcoroutine/src/main/kotlin/com/monmaru/App.kt | monmaru | 113,038,877 | false | null | package com.monmaru
import com.monmaru.service.GitHubService
import com.monmaru.service.OreillyService
import com.monmaru.service.WeatherService
import kotlinx.coroutines.experimental.async
import kotlinx.coroutines.experimental.runBlocking
import java.text.SimpleDateFormat
import kotlin.system.measureTimeMillis
fun ... | 0 | Kotlin | 0 | 0 | f051dfbcc5554c83ed13c15bb52fb736c36978f9 | 1,261 | kotlin-playground | MIT License |
src/commonMain/kotlin/io/smallibs/pilin/abstractions/Applicative.kt | d-plaindoux | 354,225,640 | false | null | package io.smallibs.pilin.control
import io.smallibs.pilin.core.Standard
import io.smallibs.pilin.core.Standard.Infix.then
import io.smallibs.pilin.core.Standard.curry
import io.smallibs.pilin.type.App
import io.smallibs.pilin.type.Fun
object Applicative {
interface Core<F> : Functor.Core<F> {
suspend fu... | 3 | null | 1 | 9 | 4a96f11e7360610d04b03d5a7aa52b8df83e4f4a | 2,648 | pilin | MIT License |
libraries/domain/src/main/java/com/eunice/domain/repository/IngredientRepository.kt | eunix56 | 466,099,049 | false | {"Kotlin": 132920} | package com.eunice.domain.repository
import com.eunice.domain.handler.DataResult
import com.eunice.domain.model.Ingredient
import kotlinx.coroutines.flow.Flow
/**
* Created by <NAME> on 05/03/2022
* Email: <EMAIL>
*/
interface IngredientRepository {
suspend fun fetchIngredients(): Flow<DataResult<List<Ingredie... | 0 | Kotlin | 0 | 5 | 0455510c49f183c2e51df262648b994c38072c90 | 327 | Meals | Apache License 2.0 |
src/test/kotlin/me/stockingd/current/operators/TickerKtTest.kt | dmstocking | 375,025,377 | false | null | package me.stockingd.current.operators
import io.kotest.core.spec.style.DescribeSpec
import io.kotest.matchers.shouldBe
import kotlinx.coroutines.test.currentTime
import kotlinx.coroutines.test.runTest
internal class TickerKtTest : DescribeSpec({
describe("ticker") {
it("should wait for the initial delay ... | 0 | Kotlin | 0 | 0 | 6e4b04e47038b0a402a5732adfbc70c52347243d | 1,230 | current | MIT License |
library/src/main/java/com/github/pgreze/reactions/ReactionPopup.kt | Prajata22 | 461,634,380 | false | {"Kotlin": 43764} | package com.github.pgreze.reactions
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Build
import android.view.*
import android.widget.FrameLayout
import android.widget.LinearLayout
import android.widget... | 0 | Kotlin | 0 | 0 | 165dd315e63b4e2791c57cb2fbedacc87912eb3a | 3,467 | CustomReactions | Apache License 2.0 |
kotlin-electron/src/jsMain/generated/electron/core/WillNavigateEvent.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12635434, "JavaScript": 423801} | // Generated by Karakum - do not modify it manually!
package electron.core
@Suppress("INTERFACE_WITH_SUPERCLASS")
external interface UpdateTargetUrlEvent : DOMEvent {
var url: String
}
| 38 | Kotlin | 162 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 191 | kotlin-wrappers | Apache License 2.0 |
kotlintest-assertions/src/jsMain/kotlin/io/kotlintest/assertions/readSystemProperty.kt | shilai0 | 203,365,094 | true | {"Kotlin": 1486590, "JavaScript": 461, "Java": 157, "Shell": 125} | package io.kotlintest.assertions
actual fun readSystemProperty(key: String): String? = null
| 0 | Kotlin | 0 | 0 | e536f2d4d0e915d34e19b03fa2518b0bf1a60863 | 93 | kotlintest | Apache License 2.0 |
module-samples/src/main/java/com/mcgrady/xproject/samples/handler/SampleHandlerActivity.kt | mcgrady911 | 185,828,359 | false | null | package com.mcgrady.xproject.samples.handler
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.os.Message
import androidx.appcompat.app.AppCompatActivity
import com.mcgrady.xproject.samples.R
class SampleHandlerActivity : AppCompatActivity() {
private val handler: Handler... | 0 | Kotlin | 0 | 0 | 8ad09f1b30b7f9a1ab264a0f0e0b142233e718aa | 937 | xlaboratory | Apache License 2.0 |
jdroid-android-core/src/main/java/com/jdroid/android/loading/LoadingDialog.kt | petsnarua | 258,267,623 | true | {"Kotlin": 742915, "Java": 383189, "HTML": 3936, "Shell": 2559, "JavaScript": 564} | package com.jdroid.android.loading
import android.app.Dialog
import android.content.Context
import android.view.Window
import android.widget.ProgressBar
import com.jdroid.android.R
/**
* [Dialog] that displays a [ProgressBar] on indeterminate mode
*/
class LoadingDialog
/**
* Constructor
*
* @pa... | 0 | null | 0 | 0 | 8b4d1654fdabe6d2e13487f8045a83b2e6e0e5fe | 697 | jdroid-android | Apache License 2.0 |
app/src/main/kotlin/mingsin/andoridkotlin/model/Ip.kt | trevorwang | 76,085,540 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Text": 1, "Markdown": 1, "Proguard": 1, "Java": 2, "XML": 5, "Kotlin": 14} | package mingsin.andoridkotlin.model
/**
* Created by trevorwang on 10/12/2016.
*/
data class Ip(var origin: String) | 1 | null | 1 | 1 | 21d64584b7aa512e50d9e78e6264e5ba6e9c2a73 | 118 | android-kotlin-project | MIT License |
app/src/test/java/org/simple/clinic/editpatient/EditPatientScreenCreatedTest.kt | simpledotorg | 132,515,649 | false | null | package org.simple.clinic.editpatient
import com.nhaarman.mockitokotlin2.any
import com.nhaarman.mockitokotlin2.doReturn
import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.never
import com.nhaarman.mockitokotlin2.verify
import com.nhaarman.mockitokotlin2.whenever
import io.reactivex.Observable
... | 4 | Kotlin | 56 | 179 | 9c8f86e6a9d2b707b746822e078c04f7cec03d53 | 7,215 | simple-android | MIT License |
components/screenstreaming/impl/src/main/java/com/flipperdevices/screenstreaming/impl/api/ScreenStreamingDecomposeComponentImpl.kt | flipperdevices | 288,258,832 | false | null | package com.flipperdevices.screenstreaming.impl.api
import androidx.compose.runtime.Composable
import com.arkivanov.decompose.ComponentContext
import com.flipperdevices.core.di.AppGraph
import com.flipperdevices.core.ui.lifecycle.viewModelWithFactory
import com.flipperdevices.core.ui.lifecycle.viewModelWithFactoryWith... | 21 | null | 174 | 1,528 | 8f293e596741a6c97409acbc8de10c7ae6e8d8b0 | 2,270 | Flipper-Android-App | MIT License |
core-data/src/test/java/com/sriniketh/core_data/fakes/FakeBooksRemoteDataSource.kt | sriniketh | 508,750,949 | false | null | package com.sriniketh.core_data.fakes
import com.sriniketh.prose.core_network.BooksRemoteDataSource
import com.sriniketh.prose.core_network.model.ImageLinks
import com.sriniketh.prose.core_network.model.Volume
import com.sriniketh.prose.core_network.model.VolumeInfo
import com.sriniketh.prose.core_network.model.Volume... | 0 | Kotlin | 0 | 1 | a5f425e03568dbf581f3e8cee9e3dfd67152228e | 1,756 | prose | Apache License 2.0 |
src/main/kotlin/message/StartGameCs.kt | CuteReimu | 591,960,504 | false | {"Kotlin": 110653} | package org.tfcc.bingo.message
import io.netty.channel.ChannelHandlerContext
import org.apache.log4j.Logger
import org.tfcc.bingo.*
import java.util.*
class StartGameCs : Handler {
@Throws(HandlerException::class)
override fun handle(ctx: ChannelHandlerContext, token: String, protoName: String) {
val ... | 3 | Kotlin | 0 | 4 | ef895a68229962d14c3d6ad08b7af33b7b111ab9 | 2,491 | th-bingo | MIT License |
app/src/main/java/com/alharoof/diabetracker/data/logbook/db/LogEntry.kt | arslanshoukat | 202,784,451 | false | null | package com.alharoof.diabetracker.data.logbook.db
import androidx.room.Embedded
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.alharoof.diabetracker.data.logbook.model.BglUnit
import com.alharoof.diabetracker.data.logbook.model.Category
import com.alharoof.diabetracker.data.logbook.model.Medica... | 1 | Kotlin | 11 | 22 | 2569689ac7213002108c8fc804696375d5d69542 | 770 | DiabeTracker | Apache License 2.0 |
stream/src/commonMain/kotlin/work/socialhub/kmastodon/stream/StreamResponse.kt | uakihir0 | 783,390,459 | false | {"Kotlin": 152662, "Ruby": 2191, "Shell": 2164, "Makefile": 319} | package work.socialhub.kmastodon.stream
import kotlinx.serialization.Serializable
@Serializable
class StreamResponse {
var event: String? = null
var payload: String? = null
var stream: Array<String>? = null
} | 0 | Kotlin | 0 | 1 | 202bbeaef16fcf8d18a24b143fbe812e37834176 | 222 | kmastodon | MIT License |
adoptium-frontend-parent/adoptium-api-v3-frontend/src/test/kotlin/net/adoptium/api/ApiDataStoreStub.kt | adoptium | 349,432,712 | false | null | package net.adoptopenjdk.api
import net.adoptopenjdk.api.v3.dataSources.APIDataStore
import net.adoptopenjdk.api.v3.dataSources.models.AdoptRepos
import net.adoptopenjdk.api.v3.models.ReleaseInfo
import javax.annotation.Priority
import javax.enterprise.inject.Alternative
import javax.inject.Singleton
@Priority(1)
@Al... | 68 | null | 34 | 9 | ddb39b5f7a71236694fc9df44e1bf3a888ba1fbc | 1,380 | api.adoptium.net | Apache License 2.0 |
app/src/main/java/com/ctech/eaty/entity/AccessToken.kt | dbof10 | 116,687,959 | false | null | package com.ctech.eaty.entity
import com.google.gson.annotations.SerializedName
data class AccessToken(@SerializedName("access_token")
val accessToken: String,
@SerializedName("token_type")
val tokenType: String){
companion object {
val ... | 2 | null | 11 | 49 | 2e3445debaedfea03f9b44ab62744046fe07f1cc | 354 | hunt-android | Apache License 2.0 |
domain/src/main/java/com/nedaluof/domain/model/photos/PhotoModel.kt | nedaluof | 678,119,328 | false | null | package com.nedaluof.domain.model.photos
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
/**
* Created By NedaluOf - 7/26/2023.
*/
@Parcelize
data class PhotoModel(
var id: String = "",
var width: Long = 0,
var height: Long = 0,
var likes: Long = 0,
var imageSize: Long = 0,
var views: Lo... | 0 | Kotlin | 0 | 0 | 163bc45964a5622f5f1ba846d390ababe7389021 | 594 | PixabayX | Apache License 2.0 |
step1/string1.kt | shilpasayura | 400,781,913 | false | null | fun main(args: Array<String>) {
// String variable
var fname : String = "Ama" // String
var lname = "Bima"
// Double variable
var height : Double= 5.4 // Double
println("$fname $lname height is $height")
}
| 0 | Kotlin | 0 | 0 | d0898fef7231adc9c6661ab6f75f9020696d0600 | 234 | kotlin | MIT License |
app/src/main/java/org/p2p/wallet/renbtc/ui/info/RenBtcInfoBottomSheet.kt | p2p-org | 306,035,988 | false | null | package org.p2p.wallet.renbtc.ui.info
import androidx.core.os.bundleOf
import androidx.core.text.buildSpannedString
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.setFragmentResult
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGr... | 9 | null | 6 | 28 | 71b282491cdafd26be1ffc412a971daaa9c06c61 | 2,893 | key-app-android | MIT License |
app/src/main/java/org/p2p/wallet/renbtc/ui/info/RenBtcInfoBottomSheet.kt | p2p-org | 306,035,988 | false | null | package org.p2p.wallet.renbtc.ui.info
import androidx.core.os.bundleOf
import androidx.core.text.buildSpannedString
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.setFragmentResult
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGr... | 9 | null | 6 | 28 | 71b282491cdafd26be1ffc412a971daaa9c06c61 | 2,893 | key-app-android | MIT License |
parser/src/commonMain/kotlin/com/faendir/om/parser/puzzle/model/Atom.kt | F43nd1r | 244,249,918 | false | {"Kotlin": 23619, "Shell": 191} | package com.faendir.om.parser.puzzle.model
enum class Atom(internal val id: Byte) {
SALT(0x1),
AIR(0x2),
EARTH(0x3),
FIRE(0x4),
WATER(0x5),
QUICKSILVER(0x6),
GOLD(0x7),
SILVER(0x8),
COPPER(0x9),
IRON(0xa),
TIN(0xb),
LEAD(0xc),
VITAE(0xd),
MORS(0xe),
REPEAT(0x... | 0 | Kotlin | 0 | 1 | 773a1e47ed801eb93a91eb788d53c8eedd6c8391 | 482 | omsp | Apache License 2.0 |
aws-codeartifact-maven-proxy/src/main/kotlin/org/unbrokendome/awscodeartifact/mavenproxy/error/HasHttpHeaders.kt | unbroken-dome | 381,741,861 | false | null | package org.unbrokendome.awscodeartifact.mavenproxy.error
import io.netty.handler.codec.http.HttpHeaders
/**
* Implemented by exceptions that provide additional HTTP headers when
* reported as an HTTP response.
*/
internal interface HasHttpHeaders {
/**
* Additional headers to be included in the HTTP re... | 4 | Kotlin | 4 | 5 | f9a98443fde573ba6feceb5d776060739320f375 | 371 | aws-codeartifact-maven-proxy | MIT License |
compiler/testData/codegen/bytecodeText/directInvoke/localFun.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... | fun test() {
fun local(s: Int) {
}
local(1)
}
// 1 INVOKESTATIC LocalFunKt\.test\$local \(I\)V
| 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 109 | kotlin | Apache License 2.0 |
bus_db/src/main/java/com/yunzhu/module/bus/db/repo/UserRepository.kt | esligh | 374,030,175 | false | {"Java": 629194, "Kotlin": 226783} | /*
* Copyright 2018 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 1 | Java | 1 | 2 | 23cf0022ee02d18d4cc4f8400ae4c0036519d3d1 | 1,043 | zygote | Apache License 2.0 |
bus_db/src/main/java/com/yunzhu/module/bus/db/repo/UserRepository.kt | esligh | 374,030,175 | false | {"Java": 629194, "Kotlin": 226783} | /*
* Copyright 2018 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 1 | Java | 1 | 2 | 23cf0022ee02d18d4cc4f8400ae4c0036519d3d1 | 1,043 | zygote | Apache License 2.0 |
codebase/android/feature/accounts/src/main/java/com/makeappssimple/abhimanyu/financemanager/android/feature/accounts/accounts/event/AccountsScreenUIEventHandler.kt | Abhimanyu14 | 429,663,688 | false | {"Kotlin": 1908017} | package com.makeappssimple.abhimanyu.financemanager.android.feature.accounts.accounts.event
import com.makeappssimple.abhimanyu.financemanager.android.feature.accounts.accounts.bottomsheet.AccountsScreenBottomSheetType
import com.makeappssimple.abhimanyu.financemanager.android.feature.accounts.accounts.state.AccountsS... | 11 | Kotlin | 0 | 3 | a9e7570d854c7738d0ad5bcf139fa9874fa83b21 | 3,339 | finance-manager | Apache License 2.0 |
api_viewing/src/main/kotlin/com/madness/collision/unit/api_viewing/main/MainStatus.kt | cliuff | 231,891,447 | false | null | /*
* 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 wr... | 0 | null | 9 | 97 | bf61e5587039098c3161f8d1a8cd5c7398cb1b82 | 11,542 | boundo | Apache License 2.0 |
src/main/kotlin/no/nav/familie/ef/iverksett/iverksetting/domene/Simulering.kt | navikt | 357,821,728 | false | null | package no.nav.familie.ef.iverksett.iverksetting.domene
import java.util.UUID
data class Simulering(val nyTilkjentYtelseMedMetaData: TilkjentYtelseMedMetaData, val forrigeBehandlingId: UUID?)
fun IverksettData.tilSimulering() =
Simulering(
nyTilkjentYtelseMedMetaData =
TilkjentYtelseMedMetaDa... | 3 | Kotlin | 0 | 0 | b00accbfcb9c17a71ab68417b71b003b56765880 | 904 | familie-ef-iverksett | MIT License |
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Bigbasket.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.simpleicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Butt
import androidx.compose.ui.graphics.StrokeJoin.Miter
import androidx.compose.ui.graphics... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 5,617 | compose-icons | MIT License |
app/src/main/java/com/example/tbilisi_parking_final_exm/domain/usecase/validator/auth/NameValidatorUseCase.kt | Lasha-Ilashvili | 749,926,592 | false | {"Kotlin": 373909} | package com.example.tbilisi_parking_final_exm.domain.usecase.validator.auth
import javax.inject.Inject
class NameValidatorUseCase @Inject constructor() {
private val nameRegex = Regex("^[a-zA-Z\\s]+$")
operator fun invoke(name: String) = name.matches(nameRegex)
} | 0 | Kotlin | 1 | 0 | 20653c5077a4fa61e2c9616ddd986a82faf040dd | 275 | Tbilisi_Parking_FINAL_EXM | Apache License 2.0 |
vendor/vendor-android/base/src/test/kotlin/com/malinskiy/marathon/android/BaseAndroidDeviceTest.kt | MarathonLabs | 129,365,301 | false | null | package com.malinskiy.marathon.android
import assertk.assertThat
import assertk.assertions.containsOnly
import com.malinskiy.adam.AndroidDebugBridgeClient
import com.malinskiy.adam.server.junit5.AdbClient
import com.malinskiy.adam.server.junit5.AdbServer
import com.malinskiy.adam.server.junit5.AdbTest
import com.malin... | 57 | Kotlin | 83 | 325 | 3658eecfcf1133e2f2a3a2b98035b0eb5924bc25 | 2,654 | marathon | Apache License 2.0 |
src/main/kotlin/ru/hse/spb/sd/full_metal_rogue/ui/uidrawer/ascii/DeathSceneAsciiUIDrawer.kt | alefedor | 173,711,727 | false | null | package ru.hse.spb.sd.full_metal_rogue.ui.uidrawer.ascii
import asciiPanel.AsciiPanel
import ru.hse.spb.sd.full_metal_rogue.logic.objects.Player
import ru.hse.spb.sd.full_metal_rogue.ui.uidrawer.DeathSceneUIDrawer
/**
* Handles writing to terminal for DeathView.
*/
class DeathSceneAsciiUIDrawer(terminal: AsciiPanel... | 0 | Kotlin | 0 | 0 | aa693d6d078083d9fedccd77a6e7c27205971335 | 1,028 | full_metal_rogue | MIT License |
analysis/low-level-api-fir/testdata/lazyResolve/functions/functionWithTypeParameters.kt | JetBrains | 3,432,266 | false | null | fun <T : Int, K> resolveMe() {} | 151 | Kotlin | 5478 | 44,267 | 7545472dd3b67d2ac5eb8024054e3e6ff7795bf6 | 31 | kotlin | Apache License 2.0 |
helm-values-gradle-plugin/src/test/kotlin/io/github/fstaudt/helm/gradle/tasks/ExtractHelmDependenciesTest.kt | fstaudt | 496,545,363 | false | null | package io.github.fstaudt.helm.gradle.tasks
import io.github.fstaudt.helm.HelmConstants.HELM_CHART_FILE
import io.github.fstaudt.helm.HelmConstants.HELM_VALUES_FILE
import io.github.fstaudt.helm.HelmDependencyExtractor.Companion.EXTRACTS_DIR
import io.github.fstaudt.helm.JsonSchemaConstants.HELM_SCHEMA_FILE
import io.... | 8 | null | 0 | 9 | c09efaef0df8a1cb56d03de45adfd661371c14d0 | 6,745 | helm-values | Apache License 2.0 |
app/src/main/java/com/kartikasw/kelilink/features/transaction/invoice/InvoiceFragment.kt | kartikasw | 578,517,405 | false | null | package com.kartikasw.kelilink.features.transaction.invoice
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import androidx.... | 0 | Kotlin | 0 | 0 | 4a093849b9f66f1c6f00a02424d34ecb202f737e | 4,705 | kelilink | MIT License |
dsl/ktor/ktor-lang-parser/src/main/kotlin/io/kotless/parser/ktor/processor/action/GlobalActionsProcessor.kt | JetBrains | 192,359,205 | false | null | package io.kotless.parser.ktor.processor.action
import io.kotless.dsl.ktor.KotlessAWS
import io.kotless.permission.Permission
import io.kotless.dsl.ktor.KotlessAzure
import io.kotless.parser.processor.ProcessorContext
import io.kotless.parser.processor.SubTypesProcessor
import io.kotless.parser.processor.config.Entryp... | 51 | null | 56 | 975 | 596c77f41410409207647dfd195e34f4562728ed | 1,873 | kotless | Apache License 2.0 |
toolkit/livedata/src/main/kotlin/br/com/arch/toolkit/livedata/extention/_liveDataExtension.kt | matheus-corregiari | 131,161,672 | false | null | @file:JvmName("LiveDataUtils")
package br.com.arch.toolkit.livedata.extention
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.LiveData
import androidx.lifecycle.Observer
/**
* Observes a LiveData<T> with non null values
*
* @param owner The desired Owner to observe
* @param observer Will be ca... | 2 | null | 3 | 19 | d0beed2e77f8b5d0aecf3dd15f83ce9a5ec315cc | 1,214 | arch-toolkit | Apache License 2.0 |
src/test/kotlin/io/github/tobi/laa/spring/boot/embedded/redis/birds/BirdNameProviderTest.kt | tobi-laa | 755,903,685 | false | {"Kotlin": 212961} | package io.github.tobi.laa.spring.boot.embedded.redis.birds
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Test
@DisplayName("Tests for BirdNameProvider")
internal class BirdNameProviderTest {
@Test
@DisplayName("Calling next() should r... | 1 | Kotlin | 0 | 2 | 897f54620f2aaf1d2dd0191bbb3bb707992be7d2 | 499 | spring-boot-embedded-redis | Apache License 2.0 |
app/src/main/java/com/d10ng/sidebar/demo/ui/theme/Color.kt | D10NGYANG | 443,023,881 | false | {"Kotlin": 25827} | package com.d10ng.sidebar.demo.ui.theme
import androidx.compose.ui.graphics.Color
/* 主题色 */
// 主题颜色 首选颜色 标题栏颜色
val lightPrimary = Color(0xFFFFFFFF)
// 首选颜色的阴影色
val lightPrimaryVariant = Color(0xFFEFEFEF)
// 显示在首选颜色上的字体或图标颜色
val lightOnPrimary = Color(0xFF333333)
// 主题颜色 次要颜色 按钮颜色
val lightSecondary = Color(0xFF146EC8... | 0 | Kotlin | 0 | 7 | 25f845e8272c2ef2b18e1d04ea8c2a55af65cccd | 847 | DLSideBar_Compose | MIT License |
src/compiler/core/src/commonTest/kotlin/community/flock/wirespec/compiler/core/tokenize/TokenizeEndpointTest.kt | flock-community | 506,356,849 | false | {"Kotlin": 297252, "Shell": 7930, "TypeScript": 5761, "Witcher Script": 2097, "Makefile": 571, "Dockerfile": 223, "JavaScript": 104} | package community.flock.wirespec.compiler.core.tokenize
import community.flock.wirespec.compiler.core.WirespecSpec
import community.flock.wirespec.compiler.core.tokenize.types.Arrow
import community.flock.wirespec.compiler.core.tokenize.types.Brackets
import community.flock.wirespec.compiler.core.tokenize.types.Colon
... | 17 | Kotlin | 1 | 9 | 3dce08aec1b787d90ae284b5bd0cf7a50628afa8 | 5,468 | wirespec | Apache License 2.0 |
src/main/kotlin/org/anglur/joglext/jogl2d/GLG2DTransformHelper.kt | jonatino | 69,714,321 | false | {"Kotlin": 588625, "Java": 17760} | /*
* Copyright 2016 <NAME> <https://github.com/Jonatino>
*
* 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
*
* Unle... | 0 | Kotlin | 4 | 28 | b43cbe514a496e2a45b45475c0100622ea190dc0 | 1,081 | JOGL2D | Apache License 2.0 |
converter.kt | myCambrianGoonja | 647,808,680 | false | null | /*
Converter Program - LAB 1
*/
fun main() {
//Taking input from the user and storing it in readUnitValue
println("Please enter a neumeric value")
var readUnitValue: Double? = readLine()?.toDoubleOrNull()
//Checking the validity of the readUnitValue
val valid = checkValidityInt... | 0 | Kotlin | 0 | 0 | 1d1bc90167fc7779201ffda300c38fd7db662b04 | 3,301 | jav1001-lab-one | MIT License |
app/src/main/java/com/wireguard/android/Application.kt | wilksy | 213,588,424 | true | {"Git Config": 1, "Gradle Kotlin DSL": 5, "YAML": 4, "Text": 1, "Markdown": 5, "Java Properties": 1, "Shell": 3, "Ignore List": 3, "INI": 1, "CODEOWNERS": 1, "HCL": 1, "Proguard": 1, "XML": 49, "Kotlin": 70, "Java": 8, "CMake": 1, "C": 3, "Go Checksums": 1, "Go": 1, "Diff": 1, "Makefile": 1, "Go Module": 1} | /*
* Copyright © 2017-2019 WireGuard LLC.
* Copyright © 2018-2019 <NAME> <<EMAIL>>. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package com.wireguard.android
import android.app.NotificationChannel
import android.app.NotificationManager
import android.os.Build
import android.os.StrictMode
import a... | 0 | Kotlin | 0 | 0 | a57a384fe6b9da5b204ee2439bf78fbd17356b71 | 2,771 | viscerion | Apache License 2.0 |
app/src/test/java/com/raiden/learningunittest/chapter8/exercise3/ExecutionResultsHolder.kt | Raiden18 | 175,925,941 | false | null | package com.raiden.learningunittest.chapter8.exercise3
import java.util.TreeMap
object ExecutionResultsHolder {
private val executionResults = TreeMap<String, Long>()
fun getExecutionResults(): Map<String, Long> {
return executionResults
}
fun put(key: String, executionTime: Long?) {
... | 0 | Kotlin | 0 | 1 | 2b775ae8266489c4639702427616c26da0da6633 | 487 | Practical-Unit-Testing-With-Junit-And-Mockito | MIT License |
compiler/src/main/kotlin/model/ComposeDestinationBuilder.kt | takuji31 | 328,317,965 | false | {"Kotlin": 105591} | package jp.takuji31.compose.navigation.compiler.model
import com.squareup.kotlinpoet.ClassName
import com.squareup.kotlinpoet.CodeBlock
import com.squareup.kotlinpoet.FunSpec
import com.squareup.kotlinpoet.KModifier
import com.squareup.kotlinpoet.LambdaTypeName
import com.squareup.kotlinpoet.MemberName
import com.squa... | 14 | Kotlin | 4 | 6 | f56818bc3c46f7f814fcf5b75c3b631b6b4e2522 | 7,155 | navigation-compose-screen | Apache License 2.0 |
core/network/src/main/java/com/eshc/goonersapp/core/network/api/MatchNetworkService.kt | eshc123 | 640,451,475 | false | {"Kotlin": 367345} | package com.eshc.goonersapp.core.network.api
import com.eshc.goonersapp.core.network.model.BaseResponse
import com.eshc.goonersapp.core.network.model.match.RemoteMatch
import com.eshc.goonersapp.core.network.model.match.RemoteMatchInformation
import com.eshc.goonersapp.core.network.model.match.RemoteMatchTeam
import c... | 1 | Kotlin | 1 | 1 | c087511cf2485474ed953b8320619cc6ea0bb38f | 1,690 | GoonersApp | Apache License 2.0 |
simple-server/src/main/java/com/laaptu/simpleserver/MainApplication.kt | laaptu | 151,208,608 | false | null | package com.laaptu.simpleserver
import android.app.Application
import timber.log.Timber
class MainApplication:Application(){
override fun onCreate() {
super.onCreate()
Timber.plant(Timber.DebugTree())
}
} | 0 | Kotlin | 0 | 0 | 5a49b69a820584b1dfd45987505bb2d2d533be35 | 230 | http-basics | MIT License |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/codebuild/S3ArtifactsPropsDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package cloudshift.awscdk.dsl.services.codebuild
import cloudshift.awscdk.common.CdkDslMarker
import ... | 3 | null | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 3,149 | awscdk-dsl-kotlin | Apache License 2.0 |
glib-core/src/main/java/com/glib/core/ui/json/views/P.kt | hgani | 223,511,724 | false | {"Kotlin": 424253, "Java": 36789} | package com.glib.core.ui.json.views
import com.glib.core.json.GJson
import com.glib.core.screen.GActivity
import com.glib.core.screen.GFragment
import com.glib.core.ui.view.GTextView
class P(spec: GJson, screen: GActivity, fragment: GFragment): AbstractText(spec, screen, fragment) {
override fun initView(): GText... | 0 | Kotlin | 0 | 0 | 9a7c56236d664f2b518310d12e5b0839382c2920 | 434 | glib-android | Apache License 2.0 |
converter/src/main/java/com/zizohanto/android/currencyconverter/converter/presentation/models/ConverterDataModel.kt | zizoh | 315,755,201 | false | null | package com.zizohanto.android.currencyconverter.converter.presentation.models
/**
* Created by zizoh on 26/November/2020.
*/
data class ConverterDataModel(
val amount: Double = 0.0,
val convertedRate: Double = 0.0,
val symbols: List<String> = listOf("USD", "NGN"),
val baseRateSymbol: String = "USD",... | 0 | Kotlin | 0 | 0 | 3cc5bc91b0d3af5c8986f100fecbf06270926a4e | 363 | Currency-Converter | Apache License 2.0 |
app/src/main/java/io/github/tatakinov/treegrove/ui/Notification.kt | Tatakinov | 704,510,443 | false | {"Kotlin": 289348} | package io.github.tatakinov.treegrove.ui
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.itemsIndexed
import androidx.compose.foundation.lazy.rememberLazyListState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import androidx.comp... | 0 | Kotlin | 0 | 2 | 59d6f716bde1729972b22d735c319c2d36de5b7e | 2,941 | TreeGrove | MIT License |
superwall/src/main/java/com/superwall/sdk/models/serialization/AnySerializer.kt | superwall | 642,585,064 | false | {"Kotlin": 1190760} | package com.superwall.sdk.models.serialization
import kotlinx.serialization.*
import kotlinx.serialization.builtins.ListSerializer
import kotlinx.serialization.builtins.MapSerializer
import kotlinx.serialization.builtins.serializer
import kotlinx.serialization.descriptors.SerialDescriptor
import kotlinx.serialization.... | 6 | Kotlin | 3 | 9 | 2582de8d48af7c0ad080e30949d920e8a34d9219 | 4,695 | Superwall-Android | MIT License |
app/src/main/java/com/afra55/android_circlegesture/CircleView.kt | Afra55 | 292,444,410 | false | null | package com.afra55.android_circlegesture
import android.content.Context
import android.content.res.Resources
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.DashPathEffect
import android.graphics.Paint
import android.graphics.drawable.Drawable
import android.text.TextPaint
import a... | 0 | Kotlin | 0 | 0 | bb25c4ed511249b2dbf03a45dd17b1a663b15fd7 | 11,102 | AndroidCircleGesture | Apache License 2.0 |
app/src/main/java/com/vva/androidopencbt/export/ExportFragment.kt | va-utils | 305,828,341 | false | {"Kotlin": 172272, "Java": 1143} | package com.vva.androidopencbt.export
import android.app.DatePickerDialog
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.*
import androidx.appcompat.app.AlertDialog
import androidx.core.content.res.Resourc... | 1 | Kotlin | 1 | 28 | adf7ef894a73dcdeaa820c14666daee95a5a1958 | 9,205 | opencbt | MIT License |
app/src/main/java/capstone/aiimageeditor/ui/SettingActivity.kt | jongwonleee | 252,086,774 | false | {"Gradle": 7, "Markdown": 6, "Java Properties": 4, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Proguard": 1, "Kotlin": 28, "XML": 96, "Java": 243, "C++": 223, "C": 20, "CMake": 22, "Text": 18, "INI": 1, "JSON": 8, "HTML": 198, "CSS": 1, "JavaScript": 2, "AIDL": 1, "Makefile": 5, "Objective-C": 2} | package capstone.aiimageeditor.ui
import android.app.Activity
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Bundle
import android.view.View
import capstone.aiimageeditor.R
import kotlinx.android.synthetic.main.activity_setting.*
class SettingActivity : Activity() {
overr... | 1 | null | 2 | 1 | f11065f43bddeaaf56548a8942b7f481ce9b9053 | 1,521 | pinata | Apache License 2.0 |
src/main/kotlin/instacli/commands/testing/ExpectedOutput.kt | Hes-Siemelink | 617,124,378 | false | {"Kotlin": 154732, "Shell": 54} | package instacli.commands.testing
import com.fasterxml.jackson.databind.JsonNode
import instacli.language.AnyHandler
import instacli.language.CommandHandler
import instacli.language.ScriptContext
object ExpectedOutput : CommandHandler("Expected output", "instacli/testing"), AnyHandler {
override fun execute(data... | 1 | Kotlin | 0 | 3 | 532893d7a57f508972fb15a97b2daa0d5aad8398 | 583 | instacli | Apache License 2.0 |
persian/src/main/java/io/github/madmaximuus/persian/forms/PersianFormDefaults.kt | MADMAXIMUUS | 689,789,834 | false | {"Kotlin": 845470} | package io.github.madmaximuus.persian.forms
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Immutable
import androidx.compose.runtime.State
import androidx.compose.runtime.rememberUpdatedState
import androidx.compose.ui.graphics.Color
import io... | 0 | Kotlin | 1 | 1 | 1ccf0c0860a5ea07b9819792d52c02c241b65643 | 3,715 | Persian | MIT License |
src/app/src/main/java/com/kolappan/aarathana/helpers/JsonHelper.kt | kolappannathan | 837,027,271 | false | {"Kotlin": 16675} | package com.kolappan.aarathana.helpers
import android.content.Context
import com.kolappan.aarathana.models.Song
import com.kolappan.aarathana.models.SongList
import org.json.JSONObject
class JsonHelper {
fun getSongs(context: Context): SongList {
// Json mock in https://run.mocky.io/v3/96a6b986-3275-4091-... | 5 | Kotlin | 0 | 0 | 789ff3ed46a52a74b413bc497750beab5a2a627b | 1,113 | Aarathana | MIT License |
compiler/testData/compileKotlinAgainstKotlin/InnerObject.B.kt | hhariri | 21,116,939 | true | {"Markdown": 19, "XML": 443, "Ant Build System": 23, "Ignore List": 7, "Protocol Buffer": 2, "Java": 3757, "Kotlin": 11162, "Roff": 59, "JAR Manifest": 1, "INI": 7, "Text": 916, "Java Properties": 10, "HTML": 102, "Roff Manpage": 8, "Groovy": 7, "Gradle": 61, "Maven POM": 34, "CSS": 10, "JavaScript": 42, "JFlex": 3, "B... | fun main(args: Array<String>) {
val str = aaa.A().O.s
if (str != "OK") {
throw Exception()
}
}
| 0 | Java | 0 | 0 | d150bfbce0e2e47d687f39e2fd233ea55b2ccd26 | 115 | kotlin | Apache License 2.0 |
common/common-json-diff/src/main/kotlin/com/testerum/common/json_diff/impl/node_comparer/strategy/impl/ContainsJsonNodeComparerStrategy.kt | testerum | 241,460,788 | false | null | package com.testerum.common.json_diff.impl.node_comparer.strategy.impl
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databind.node.ArrayNode
import com.fasterxml.jackson.databind.node.ObjectNode
import com.testerum.common.json_diff.impl.context.JsonComparerContext
import com.testerum.comm... | 33 | null | 3 | 22 | 0a53c71b5f659e41282114127f595aad5ab1e4fb | 4,103 | testerum | Apache License 2.0 |
app/src/main/java/com/pt/mysociety/helpers/UserHelper.kt | Prathy | 528,724,668 | false | null | package com.pt.mysociety.helpers
import android.content.Context
import com.pt.mysociety.SharedPreference
import com.pt.mysociety.login.model.User
object UserHelper {
const val roleUser = "user"
private const val roleOrganizer = "organizer"
private const val roleAdmin = "admin"
fun isAdmin(context: C... | 0 | Kotlin | 0 | 0 | 2261e245887f46063b37e9dfbfbd851c9380cf7a | 1,388 | MySociety | Apache License 2.0 |
Android/core-network-api/src/main/java/ru/iandreyshev/coreNetworkApi/api/IHttpClient.kt | iandreyshev | 149,519,715 | false | {"Markdown": 3, "Batchfile": 2, "Ignore List": 16, "Gradle": 14, "Java Properties": 2, "Shell": 1, "Proguard": 12, "Java": 19, "XML": 67, "Kotlin": 176, "JSON": 5, "YAML": 2, "Microsoft Visual Studio Solution": 1, "C#": 35, "Dockerfile": 1, "SQL": 1} | package ru.iandreyshev.coreNetworkApi.api
import ru.iandreyshev.coreNetworkApi.data.ApiRequestOptions
import ru.iandreyshev.coreNetworkApi.data.Request
import ru.iandreyshev.coreNetworkApi.data.Response
interface IHttpClient {
fun get(request: Request): Response
fun get(request: Request, options: ApiRequestOp... | 0 | Kotlin | 0 | 1 | 5791228f3d7568883058f414a7cbafff561d58d5 | 565 | Dreamland | MIT License |
core/src/main/java/contacts/core/Insert.kt | misha-n-ka | 435,223,544 | true | {"Kotlin": 963449} | package contacts.core
import android.accounts.Account
import android.content.ContentProviderOperation
import contacts.core.entities.MutableRawContact
import contacts.core.entities.custom.CustomDataCountRestriction
import contacts.core.entities.custom.CustomDataRegistry
import contacts.core.entities.operation.*
import ... | 0 | Kotlin | 0 | 0 | 6fe3d8e21a2fb686b81a42788ee3ba046f859113 | 19,481 | contacts-android | Apache License 2.0 |
app/src/main/java/com/code/jamie/noteme/ui/frags/RegisterFragment.kt | jamie-codez | 552,553,589 | false | {"Kotlin": 70640} | package com.code.jamie.noteme.ui.frags
import android.Manifest
import android.app.Activity
import android.content.Intent
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Bundle
import android.provider.MediaStore
import android.util.Log
import android.util.Patterns
import android.view.L... | 0 | Kotlin | 0 | 1 | 47c67df5ebeb5fd1f105df1fba52df14a17d82c5 | 6,923 | Note-Me | MIT License |
PremiumStorefront/src/main/java/co/geeksempire/premium/storefront/StorefrontConfigurations/StorefrontSections/CategoryContent/ViewHolder/CategoriesViewHolder.kt | eliasdfazel | 357,269,336 | false | null | /*
* Copyright © 2021 By Geeks Empire.
*
* Created by <NAME>
* Last modified 8/2/21, 9:08 AM
*
* Licensed Under MIT License.
* https://opensource.org/licenses/MIT
*/
package co.geeksempire.premium.storefront.StorefrontConfigurations.StorefrontSections.CategoryContent.ViewHolder
import android.widget.ImageView... | 0 | Kotlin | 0 | 1 | 3b66f3517882a92e83432df45b844002ab9054a9 | 774 | PremiumStorefront | MIT License |
plugins/android/src/main/kotlin/shuttle/plugins/android/AndroidDefaults.kt | 4face-studi0 | 462,194,990 | false | null | package shuttle.plugins.android
object AndroidDefaults {
const val APPLICATION_ID = "studio.forface.shuttle"
const val BUILD_TOOLS = "33.0.2"
const val COMPILE_SDK = 33
const val MIN_SDK = 26
const val TARGET_SDK = 33
}
| 12 | Kotlin | 0 | 14 | bd4faa49be9c3787b5b8786edc2a014a45969c1e | 242 | Shuttle | Apache License 2.0 |
src/main/kotlin/org/veupathdb/vdi/lib/db/app/sql/insert-dataset-install-message.kt | VEuPathDB | 621,406,013 | false | null | package org.veupathdb.vdi.lib.db.app.sql
import org.veupathdb.vdi.lib.db.app.model.DatasetInstallMessage
import java.sql.Connection
// language=oracle
private const val SQL = """
INSERT INTO
vdi.dataset_install_message (
dataset_id
, install_type
, status
, message
)
VALUES
(?, ?, ?, ?)
"""
internal ... | 9 | Kotlin | 0 | 0 | f16c152c5523fc906efd14e2efb5e956863efd3a | 654 | vdi-service | Apache License 2.0 |
app/src/main/java/com/chun/anime/util/UiUtil.kt | nchungdev | 398,720,732 | false | null | package com.chun.anime.util
import android.content.Context
import android.util.TypedValue
import com.chun.anime.R
object UiUtil {
fun getDisplayWidth(context: Context) = context.resources.displayMetrics.widthPixels
fun getDisplayHeight(context: Context) = context.resources.displayMetrics.heightPixels
fu... | 0 | Kotlin | 0 | 0 | 92a75c4304243f379f168ad4eb786de1028cc727 | 911 | AnimeDi | MIT License |
libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/MultiplatformGradleIT.kt | PhilChina | 130,852,789 | true | {"Markdown": 44, "Gradle": 289, "Gradle Kotlin DSL": 145, "Java Properties": 11, "Shell": 9, "Ignore List": 10, "Batchfile": 8, "Git Attributes": 1, "Protocol Buffer": 9, "Java": 5203, "Kotlin": 37954, "Proguard": 7, "XML": 1495, "Text": 7879, "INI": 80, "JavaScript": 237, "JAR Manifest": 2, "Roff": 207, "Roff Manpage"... | /*
* Copyright 2010-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 0 | Kotlin | 0 | 1 | d2d92a2153e1e55e1b4c21d25bbbd3e1320c6def | 9,232 | kotlin | Apache License 2.0 |
kamp-core/src/main/kotlin/ch/leadrian/samp/kamp/core/api/entity/id/TeamId.kt | Double-O-Seven | 142,487,686 | false | null | package ch.leadrian.samp.kamp.core.api.entity.id
import ch.leadrian.samp.kamp.core.api.constants.SAMPConstants
data class TeamId internal constructor(val value: Int) {
companion object {
val NO_TEAM = TeamId(SAMPConstants.NO_TEAM)
private val teamIds: Array<TeamId> = (0 until 255).map { TeamId(... | 1 | null | 1 | 7 | af07b6048210ed6990e8b430b3a091dc6f64c6d9 | 601 | kamp | Apache License 2.0 |
kotlin/kotlin-and-android-development-featuring-jetpack/chapter-8/app-code/app/src/main/java/dev/mfazio/abl/util/BindingAdapters.kt | hermantai | 24,401,146 | false | {"Java": 1360692, "Kotlin": 1179906, "JavaScript": 516570, "Swift": 393329, "CSS": 135262, "Go": 63056, "Python": 52652, "Rust": 49486, "Jupyter Notebook": 32258, "HTML": 22692, "Dart": 17950, "Pug": 5366, "Shell": 2280, "Ruby": 1929, "C": 369, "Procfile": 15} | package dev.mfazio.abl.util
import android.widget.ImageView
import androidx.databinding.BindingAdapter
@BindingAdapter("android:src")
fun setImageViewResource(imageView: ImageView, resourceId: Int) {
imageView.setImageResource(resourceId)
} | 2 | null | 1 | 1 | 87f62edef85ff947c8b8f014dfd231cbf7cab021 | 246 | samples | Apache License 2.0 |
idea/testData/refactoring/extractFunction/controlFlow/conditionalJumps/conditionalReturnWithIf.kt | hhariri | 21,116,939 | true | null | // SIBLING:
fun foo(a: Int): Int {
val b: Int = 1
<selection>if (a + b > 0) return 0
println(a - b)</selection>
return 1
} | 0 | Java | 0 | 0 | d150bfbce0e2e47d687f39e2fd233ea55b2ccd26 | 138 | kotlin | Apache License 2.0 |
app/src/main/java/com/dron/app/vrtulnicek/missions/MissionMgr.kt | martinek-stepan | 279,858,926 | false | {"Gradle": 3, "Java Properties": 2, "Text": 1, "Ignore List": 2, "Markdown": 1, "Proguard": 1, "XML": 106, "Java": 16, "Kotlin": 29} | package com.dron.app.vrtulnicek.missions
import android.view.LayoutInflater
import android.widget.LinearLayout
import com.dron.app.vrtulnicek.VrtulnicekActivity
import dji.sdk.missionmanager.DJIMissionManager
import kotlinx.android.synthetic.main.activity_vrtulnicek.*
/**
* Created by smartinek on 20.4.2017.
*/
abs... | 1 | null | 1 | 1 | 427f59293b357ce38c91bcd2e108cb263ab63032 | 1,712 | DronApp | MIT License |
analysis/analysis-api-providers/src/org/jetbrains/kotlin/analysis/providers/KotlinDeclarationProvider.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2023 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.analysis.providers
import com.intellij.openapi.project.Project
import com.intell... | 178 | null | 5729 | 48,021 | 093e432a97b4e7af469bc55a3d321dec964bc6de | 6,845 | kotlin | Apache License 2.0 |
app/src/main/java/me/luowl/wan/ui/account/LoginActivity.kt | luowl123 | 200,819,385 | false | null | package me.luowl.wan.ui.account
import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.lifecycle.Observer
import com.jeremyliao.liveeventbus.LiveEventBus
import me.luowl.wan.AppConfig
import me.luowl.wan.R
import me.luowl.wan.BR
import me.luowl.wan.base.BaseActivity
impor... | 1 | null | 1 | 14 | 5902a485e680a08fa2a818c418df44f7a40bb269 | 1,430 | WanAndroid | Apache License 2.0 |
app/src/main/java/com/pixerapps/assignment/data/remote/ResponseHandler.kt | ashujhaji | 271,519,938 | false | {"Gradle": 3, "Java Properties": 1, "Text": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 21, "XML": 16, "Java": 1} | package com.pixerapps.assignment.data.remote
import android.content.Context
import retrofit2.Response
/*MIT License
Copyright (c) 2020 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to... | 0 | Kotlin | 0 | 2 | 3fe37d72b0eb2042c5f00f85b3a139b78f981119 | 1,819 | Kotlin-MVVM-LiveData-Room | MIT License |
src/main/kotlin/com/theoxao/base/bean/BeanInjector.kt | iotaki | 193,652,912 | false | {"Java": 545033, "Kotlin": 48909, "ANTLR": 19699, "Groovy": 1545, "JavaScript": 180} | package com.theoxao.base.bean
import org.springframework.beans.factory.support.BeanDefinitionBuilder
import org.springframework.beans.factory.support.DefaultListableBeanFactory
import org.springframework.context.ApplicationContext
import org.springframework.stereotype.Component
/**
* @author theo
* @date 2019/6/24... | 1 | null | 1 | 1 | 067fc99b451a6c6ca10d5750c81f2c196b7878a6 | 924 | xatu | MIT License |
tunasushi/src/main/java/com/tunasushi/tool/ConvertTool.kt | TunaSashimi | 195,802,639 | false | null | package com.tunasushi.tool
import android.content.res.Resources
import com.tunasushi.tool.DeviceTool
import android.util.DisplayMetrics
import android.util.TypedValue
/**
* @author TunaSashimi
* @date 2019-11-19 15:25
* @Copyright 2019 TunaSashimi. All rights reserved.
* @Description
*/
object ConvertTool {
... | 1 | null | 1 | 9 | edb87a0eebb46677102158a49a7bdc08ef91c2c0 | 2,213 | TunaSushi | MIT License |
src/main/kotlin/com/koresframework/kores/bytecode/processor/processors/TypeDeclarationProcessor.kt | JonathanxD | 77,163,846 | false | {"Git Config": 1, "Gradle": 4, "YAML": 4, "Markdown": 4, "INI": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Java": 63, "Kotlin": 108} | /*
* Kores-BytecodeWriter - Translates Kores Structure to JVM Bytecode <https://github.com/JonathanxD/CodeAPI-BytecodeWriter>
*
* The MIT License (MIT)
*
* Copyright (c) 2021 TheRealBuggy/JonathanxD (https://github.com/JonathanxD/) <jonathan.scripter@programmer.net>
* Copyright (c) contribu... | 7 | Kotlin | 0 | 1 | 8324bd03a52ddf5f12dd54c8d7459f83a000ed9a | 15,501 | CodeAPI-BytecodeWriter | MIT License |
app/src/main/java/com/lxh/cookcommunity/ui/fragment/momentdetail/MomentDetailFragment.kt | ZYF99 | 320,173,307 | false | null | package com.lxh.cookcommunity.ui.fragment.momentdetail
import android.content.Context
import android.view.View
import androidx.core.os.bundleOf
import androidx.core.widget.NestedScrollView
import androidx.recyclerview.widget.LinearLayoutManager
import com.lxh.cookcommunity.R
import com.lxh.cookcommunity.databinding.Fr... | 1 | null | 1 | 4 | 98ff556fda0f384f9cfa768e14bad8e38ced9077 | 4,494 | CookCommunity | Apache License 2.0 |
app/src/main/java/com/smart/car/ui/activity/ScanCodeAcitvity.kt | 546554574 | 192,639,520 | false | {"Java": 3910926, "Kotlin": 133503} | package com.smart.car.ui.activity
import android.Manifest
import android.app.Activity
import android.content.DialogInterface
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.os.Message
import android.provid... | 1 | null | 1 | 1 | dc8729e3451d1ec3246c879602ff08e75de05ce8 | 14,868 | MyKotlinAndJava | BSD Zero Clause License |
tests/snapshots/src/main/generated/com/airbnb/epoxy/EpoxyVisibilityItem.kt | sourcegraph | 215,551,735 | false | null | package com.airbnb.epoxy
// ^^^ reference semanticdb maven . . com/
// ^^^^^^ reference semanticdb maven . . com/airbnb/
// ^^^^^ reference semanticdb maven . . com/airbnb/epoxy/
import android.graphics.Rect
import android.view.View
import android.view.ViewGroup
import androidx.annotation... | 72 | null | 28 | 72 | 439a0f95019fdf73303de21b20a83fb253adee32 | 71,729 | scip-java | Apache License 2.0 |
python/python-features-trainer/src/com/jetbrains/python/ift/lesson/completion/PythonPostfixCompletionLesson.kt | caofanCPU | 334,515,573 | false | null | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.ift.lesson.completion
import com.jetbrains.python.ift.PythonLessonsBundle
import training.dsl.LessonContext
import training.dsl.LessonUtil.checkExpec... | 1 | null | 1 | 1 | b09673ba8b96e0bb272dda9b509ddf27a3c1c5ca | 2,049 | intellij-community | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.