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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
shared/src/commonMain/kotlin/nl/tiebe/otarium/utils/otariumicons/bottombar/grades/Box5Outline.kt | Tiebe | 528,857,681 | false | {"Kotlin": 715107, "Ruby": 6904, "Swift": 2918, "Shell": 437} | package nl.tiebe.otarium.utils.otariumicons.bottombar.grades
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.Strok... | 14 | Kotlin | 0 | 3 | 70ee8753a7f82f24adc278d8882ef781922519c3 | 2,547 | Otarium | MIT License |
backend/data/src/main/kotlin/io/tolgee/development/testDataBuilder/data/ProjectTransferringTestData.kt | tolgee | 303,766,501 | false | null | package io.tolgee.development.testDataBuilder.data
import io.tolgee.model.Organization
import io.tolgee.model.Permission
import io.tolgee.model.Project
import io.tolgee.model.UserAccount
import io.tolgee.model.enums.OrganizationRoleType
class ProjectTransferringTestData : BaseTestData() {
lateinit var user2: UserAc... | 50 | null | 4 | 292 | 9896609f260b1ff073134e672303ff8810afc5a1 | 1,835 | server | Apache License 2.0 |
plugin-bazel-event-service/src/main/kotlin/bazel/bazel/events/Progress.kt | JetBrains | 143,697,750 | false | {"Kotlin": 299219, "Java": 12799, "Gherkin": 2393, "Starlark": 1836, "ANTLR": 1173, "Batchfile": 375, "CSS": 34} | package bazel.bazel.events
// Payload of an event summarizing the progress of the build so far. Those
// events are also used to be parents of events where the more logical parent
// event cannot be posted yet as the needed information is not yet complete.
data class Progress(
override val id: Id,
ove... | 6 | Kotlin | 7 | 14 | 26f2816184f5f7eb48d0cb852ff490bdf214af40 | 676 | teamcity-bazel-plugin | Apache License 2.0 |
app/src/main/java/com/ndteam/wasteandroidapp/view/game/GameActivity.kt | Ninise | 605,546,083 | false | null | package com.ndteam.wasteandroidapp.view.game
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import androidx.activity.compose.setContent
import com.ndteam.wasteandroidapp.R
import com.ndteam.wasteandroidapp.base.BaseActivity
import com.ndteam.wasteandroidapp.models.GameObject
import ... | 0 | Kotlin | 0 | 0 | 84e1fdc7870efda60cfff6c3ec035c1280a0e30d | 1,311 | WasteAndroidApp | Apache License 2.0 |
app/src/main/java/com/aurelien/test/core/logger/Logger.kt | aurelienlemetayer | 330,119,365 | false | null | package com.aurelien.test.core.logger
import android.util.Log
import com.aurelien.test.BuildConfig
object Logger {
private val LEVEL = if (BuildConfig.DEBUG) Level.DEBUG else Level.WARNING
/**
* Log a message with Android default logger
*
* @param level: The level of the message
* ... | 0 | Kotlin | 0 | 0 | 5d441629bccd4ffec53d8d480472cc60f32b9a9a | 1,250 | Test | Apache License 2.0 |
window/window/samples/src/main/java/androidx.window.samples.embedding/OverlaySamples.kt | androidx | 256,589,781 | false | {"Kotlin": 112114129, "Java": 66594571, "C++": 9132142, "AIDL": 635065, "Python": 325169, "Shell": 194520, "TypeScript": 40647, "HTML": 35176, "Groovy": 27178, "ANTLR": 26700, "Svelte": 20397, "CMake": 15512, "C": 15043, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright 2023 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... | 29 | Kotlin | 1011 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 3,071 | androidx | Apache License 2.0 |
src/main/kotlin/net/casualuhc/arcade/utils/ItemUtils.kt | CasualUHC | 621,955,934 | false | null | package net.casualuhc.arcade.utils
import net.minecraft.core.registries.BuiltInRegistries
import net.minecraft.nbt.ByteTag
import net.minecraft.nbt.CompoundTag
import net.minecraft.nbt.DoubleTag
import net.minecraft.nbt.FloatTag
import net.minecraft.nbt.IntTag
import net.minecraft.nbt.ListTag
import net.minecraft.nbt.... | 0 | Kotlin | 0 | 0 | 7b2e8aeb4f067434fa03d1814822fdca4ef3949b | 5,052 | Arcade | MIT License |
src/main/kotlin/com/oxyggen/net/ResolvedURI.kt | oxgl | 191,444,750 | false | null | package com.oxyggen.net
abstract class ResolvedURI(uriString: String, context: ContextURI? = null) : URI(uriString, context) {
abstract fun toResolvedUriString():String
} | 0 | Kotlin | 0 | 3 | 35b2b930f635c1de245deb68d80e550e68932a1e | 175 | urilib | MIT License |
datasource/src/main/kotlin/gq/kirmanak/mealient/datasource/models/GetRecipeResponse.kt | kirmanak | 431,195,533 | false | null | package gq.kirmanak.mealient.datasource.models
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class GetRecipeResponse(
@SerialName("id") val remoteId: String,
@SerialName("name") val name: String,
@SerialName("recipeYield") val recipeYield: String = ""... | 16 | null | 2 | 99 | 85d03124208f0b94341cd6ce45ba98cb6b58ddab | 1,571 | Mealient | MIT License |
app/src/main/java/com/example/educonnect/ui/activity/UserDetailActivity.kt | saurabhm13 | 697,653,223 | false | {"Kotlin": 86860} | package com.example.educonnect.ui.activity
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import androidx.activity.viewModels
import com.example.educonnect.R
import com.example.educonnect.data.User
import com.example.educonnect.databindin... | 0 | Kotlin | 0 | 0 | ac6118dca70e7cd349599a41bdc85f66d84ef77c | 1,570 | EduConnect | MIT License |
presentation/src/main/java/com/codewithzaeem/presentation/screens/HomeScreen.kt | ZaeemSattar | 674,899,453 | false | null | package com.codewithzaeem.presentation.screens
import androidx.compose.runtime.Composable
@Composable
fun HomeScreen() {
} | 0 | Kotlin | 0 | 0 | 9da0101b7752ae9cb196cc8fe797723b10c1305a | 125 | CryptoMe | Apache License 2.0 |
app/src/main/java/tech/destinum/pruebarappi/Repository/Local/PruebaRappiDB.kt | ispam | 142,913,545 | false | null | package tech.destinum.pruebarappi.Repository.Local
import android.arch.persistence.room.Database
import android.arch.persistence.room.RoomDatabase
import tech.destinum.pruebarappi.Repository.Local.DAOs.MoviesDAO
import tech.destinum.pruebarappi.Repository.Local.Entities.Movie
@Database(entities = arrayOf(Movie::class... | 0 | Kotlin | 0 | 0 | c60efef0534d5f77804e0b40eb8b3375095841a9 | 448 | PruebaRappi | Apache License 2.0 |
app/src/main/kotlin/com/gurpreetsk/android_starter/greeting/GreetingActivity.kt | imGurpreetSK | 224,709,944 | false | {"Kotlin": 31526, "Java": 1371} | package com.gurpreetsk.android_starter.greeting
import com.gurpreetsk.android_starter.R
import com.gurpreetsk.android_starter.base.MviActivity
import com.jakewharton.rxbinding3.widget.textChanges
import io.reactivex.Observable
import kotlinx.android.synthetic.main.greeting_activity.*
class GreetingActivity : MviActiv... | 0 | Kotlin | 0 | 0 | a5ea5cfd3e18b9f56c85a2c4e74c7d790c4f9a67 | 937 | HelloUser | Apache License 2.0 |
presentation/src/main/java/tgo1014/listofbeers/presentation/ui/MainActivity.kt | Tgo1014 | 433,974,074 | false | {"Kotlin": 89548} | package tgo1014.listofbeers.presentation.ui
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.MaterialTheme
... | 0 | Kotlin | 0 | 0 | ada222b8c5128281ee36aa10fae055bf00e543ce | 3,268 | listOfBeers | Apache License 2.0 |
app/src/main/java/com/example/mytodoapp/features/ui/createtask/CreateTaskViewModel.kt | TrombBone | 787,097,480 | false | {"Kotlin": 156584} | package com.example.mytodoapp.features.ui.createtask
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.mytodoapp.features.database.entities.Task
import com.example.mytodoapp.features.database.repositories.TaskRepository
import dagger.hilt.android.lifecycle.HiltViewModel
im... | 0 | Kotlin | 0 | 1 | c8d48bb9589ac84977fd935bfb7531843287e2c8 | 2,016 | MyTodoApp | MIT License |
src/main/kotlin/dev/galiev/anlyzr/dao/ProjectDAO.kt | GalievDev | 837,516,292 | false | {"Kotlin": 8995} | package dev.galiev.anlyzr.dao
import dev.galiev.anlyzr.dto.Project
interface ProjectDAO {
fun addStat(project: Project): Int
fun addProject(project: Project): Int
fun getById(id: Int): List<Project>
fun getInDateRange(id: Int, start: Int, end: Int): Project?
} | 0 | Kotlin | 0 | 0 | d6002b76e35bccf3de4178d00347c97f00e6f020 | 278 | mc-anlyzr-backend | MIT License |
src/main/kotlin/org/ksl/useful/VersionUtils.kt | LordCarlosMP | 120,101,516 | false | null | package org.ksl.useful
import org.bukkit.*
val CURRENT_NMS_VERSION by lazy {
val packageName = Bukkit.getServer().javaClass.`package`.name
NMSVersion.valueOf(packageName.substring(packageName.lastIndexOf(".") + 1))
}
enum class NMSVersion {
v1_8_R2, v1_8_R3, v1_9_R1, v1_9_R2, v1_10_R1, v1_11_R1, v1_12_R1
}
| 0 | Kotlin | 0 | 0 | 8003ac0974edcc355cc3d44cb15feab79ba0b179 | 314 | KSL | MIT License |
ColourOfTheMonth/app/src/main/java/com/danjbower/colourofthemonth/MainActivity.kt | DanJBower | 806,633,895 | false | {"Kotlin": 20742, "C#": 3951} | package com.danjbower.colourofthemonth
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import com.danjbower.colourofthemonth.model.ColourOfTheMonthModel
import com.danjbower.colourofthemonth.utility.readFileFromAs... | 0 | Kotlin | 0 | 0 | ebbaf25d46f5e355663a0e8cde87f4ac0b7d1e82 | 947 | ColourOfTheMonth | The Unlicense |
DITest2/app/src/main/java/com/example/ditest2/MainActivity.kt | DokySp-study | 717,329,915 | false | {"Kotlin": 15275} | package com.example.ditest2
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import androidx.databinding.DataBindingUtil
import com.example.ditest2.databinding.ActivityMainBinding
import com.example.ditest2.repository.GetWebDataRepository
import com.example.ditest2.serv... | 0 | Kotlin | 0 | 0 | a11ea446d2e5190e0cbc7ee1c11d18160e3bbcee | 1,071 | clean-architecture-android | MIT License |
app/src/main/kotlin/com/rp199/template/configuration/modules/Serialization.kt | rp199 | 739,905,739 | false | {"Kotlin": 8012} | package com.rp199.template.configuration.modules
import io.ktor.serialization.ContentConverter
import io.ktor.serialization.kotlinx.KotlinxSerializationConverter
import io.ktor.serialization.kotlinx.json.DefaultJson
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.json.Json
import... | 2 | Kotlin | 0 | 0 | fd8dd907419d856c2e6b7530bf5f7736defffc45 | 725 | ktor-template | MIT License |
data/src/main/java/com/dsm/dms/data/local/database/dao/BasicDao.kt | nwar-Jeon | 225,753,353 | true | {"Kotlin": 33349} | package com.dsm.dms.data.local.database.dao
| 0 | null | 0 | 0 | 604c2afc55f412e9310f1e71ad7b8bd92faba673 | 45 | DMS-Android-V4 | MIT License |
src/main/java/br/com/zup/groovy/model/Account.kt | mmatsumoto | 128,245,700 | false | {"Groovy": 8102, "Kotlin": 1602} | package br.com.zup.groovy.model
data class AccountId(val id: String)
data class Account(val id: AccountId, val name: String)
data class AccountCreatedEvent(val id: AccountId, val name: String)
| 0 | Groovy | 0 | 0 | 183586346ddeb94aa1ecf6c8c4765561ac2956b9 | 196 | spock-samples | Apache License 2.0 |
app/src/main/java/com/babblingbrook/mtgcardsearch/data/AppDatabase.kt | iambaljeet | 257,365,131 | false | {"Kotlin": 55918} | package com.babblingbrook.mtgcardsearch.data.local
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.babblingbrook.mtgcardsearch.model.Card
import com.babblingbrook.mtgcardsearch.model.FeedItem
@Database(entities = [Card::class, FeedItem::class], version = ... | 0 | null | 1 | 1 | 2d22c254965cb93a88deac619bf4a60aa41ee958 | 499 | MTGCardSearch | MIT License |
app/src/main/java/youmeee/co/jp/hatenarssreaderapp/presentation/fragment/NewListFragment.kt | youmitsu | 158,840,830 | false | null | package youmeee.co.jp.hatenarssreaderapp.presentation.fragment
import android.os.Bundle
import android.view.*
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import com.google.android.material.tabs.TabLayout
import com.google.firebase.analytics.FirebaseAnalytics
import youmeee.co.jp.h... | 0 | Kotlin | 0 | 0 | 46cc9d232e15803bf2126c09cff7ae0e5c381cc6 | 2,842 | HatenaRssReaderApp | MIT License |
bigbone-rx/src/main/kotlin/social/bigbone/rx/RxInstanceMethods.kt | andregasser | 565,112,249 | false | {"Kotlin": 975588, "Java": 28473, "Ruby": 15997, "Dockerfile": 1263, "Shell": 118} | package social.bigbone.rx
import io.reactivex.rxjava3.core.Single
import social.bigbone.MastodonClient
import social.bigbone.api.entity.DomainBlock
import social.bigbone.api.entity.ExtendedDescription
import social.bigbone.api.entity.Instance
import social.bigbone.api.entity.InstanceActivity
import social.bigbone.api.... | 31 | Kotlin | 16 | 56 | 3b727a1447eecd9e43fe1f17f56601dab79e036e | 3,405 | bigbone | MIT License |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bulk/Receipt2.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.bulk
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.co... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 4,582 | VuesaxIcons | MIT License |
plugins/liquid/refined-types-plugin/src/main/kotlin/arrow/meta/plugins/liquid/phases/analysis/solver/collect/ConstraintCollection.kt | pstinghua | 409,558,986 | true | {"Kotlin": 1937232, "Java": 7034, "Shell": 195} | package arrow.meta.plugins.liquid.phases.analysis.solver.collect
import arrow.meta.internal.mapNotNull
import arrow.meta.phases.CompilerContext
import arrow.meta.phases.analysis.body
import arrow.meta.phases.resolve.unwrappedNotNullableType
import arrow.meta.plugins.liquid.errors.MetaErrors
import arrow.meta.plugins.l... | 0 | null | 0 | 0 | 9adbd026e54349e26f3987b97b3165241f5f282d | 30,876 | arrow-meta | Apache License 2.0 |
remix/src/commonMain/kotlin/com/woowla/compose/icon/collections/remix/remix/business/CreativeCommonsSaFill.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.remix.remix.business
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.S... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 2,480 | compose-icon-collections | MIT License |
compose-layout/src/main/java/com/google/android/horologist/compose/rotaryinput/GenericMotionRotaryInputAccumulator.kt | google | 451,563,714 | false | {"Kotlin": 3151160, "Shell": 5169, "Java": 708, "Starlark": 361} | /*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 71 | Kotlin | 93 | 565 | bde87db14f63338904550fc1827d0141ebe24d9a | 3,265 | horologist | Apache License 2.0 |
ui/src/commonMain/kotlin/kosh/ui/navigation/routes/HomeRoute.kt | niallkh | 855,100,709 | false | {"Kotlin": 1942525, "Swift": 25802} | package kosh.ui.navigation.routes
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Add
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.vector.ImageVector
import kosh.ui.generated.resources.Res
import kosh.ui.generated.resources.activity_title
imp... | 0 | Kotlin | 0 | 3 | c08a9f32c0f12bf01eeb366c471b079923ac73ff | 2,058 | kosh | MIT License |
spacer/src/main/java/com/bsobe/spacer/Spacer.kt | bsobe | 236,169,014 | false | null | package com.bsobe.spacer
import android.text.Editable
import android.text.Spannable
import android.text.TextWatcher
import android.widget.TextView
class Spacer private constructor(
textView: TextView,
private val pattern: Pattern
) : TextWatcher {
private val measuredSpace: Int = textView.paint.measureTe... | 0 | Kotlin | 0 | 25 | c8ba33352c29b25c5e773032c28347c9cb1cc6ec | 2,913 | text-spacer | Apache License 2.0 |
src/test/kotlin/no/nav/k9/los/tjenester/saksbehandler/oppgave/DateUtilKtTest.kt | navikt | 238,874,021 | false | {"Kotlin": 1721041, "JavaScript": 741, "Shell": 659, "Dockerfile": 343, "PLpgSQL": 167} | package no.nav.k9.los.tjenester.saksbehandler.oppgave
import assertk.assertThat
import assertk.assertions.isEqualTo
import no.nav.k9.los.utils.forskyvReservasjonsDato
import no.nav.k9.los.utils.leggTilDagerHoppOverHelg
import org.junit.jupiter.api.Test
import java.time.DayOfWeek
import java.time.LocalDate
import java.... | 9 | Kotlin | 0 | 0 | 6c122716d27b93d042e3748a8a2beb97e7e5374b | 3,147 | k9-los-api | MIT License |
src/main/kotlin/dev/kotx/kdaw/util/Timer.kt | toliner | 374,399,973 | false | null | package dev.kotx.kdaw.util
import kotlinx.coroutines.*
import kotlin.coroutines.*
import kotlin.system.*
fun CoroutineScope.timer(
interval: Long,
fixedRate: Boolean = true,
context: CoroutineContext = EmptyCoroutineContext,
action: suspend TimerScope.() -> Unit
) = launch(context) {
val scope = T... | 0 | Kotlin | 0 | 0 | b581a2f78ed6330296ee54be71c4f3b55908e9c4 | 664 | kdaw | MIT License |
src/main/kotlin/com/tealcube/minecraft/bukkit/mythicdrops/settings/socketing/MythicSocketingItems.kt | MythicDrops | 10,021,467 | false | null | /*
* This file is part of MythicDrops, licensed under the MIT License.
*
* Copyright (C) 2019 Richard Harrah
*
* 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, incl... | 63 | null | 43 | 38 | ba9dcc23ec2dd8f972f9c37ca15d9195f7cfe107 | 3,792 | MythicDrops | MIT License |
src/main/kotlin/com/shopping/Application.kt | alialbaali | 285,645,104 | false | {"Kotlin": 224319} | package com.shopping
import com.fasterxml.jackson.databind.DeserializationFeature
import com.fasterxml.jackson.databind.PropertyNamingStrategy
import com.fasterxml.jackson.databind.SerializationFeature
import com.shopping.controller.auth
import com.shopping.controller.customer
import com.shopping.controller.order
impo... | 0 | Kotlin | 0 | 1 | e8d003386bfff065c9a775b4a808c2d7dd9acd87 | 3,071 | Shopally | Apache License 2.0 |
components/flow/flow-rpcops-service/src/main/kotlin/net/corda/flow/rpcops/v1/FlowClassRestResource.kt | corda | 346,070,752 | false | null | package net.corda.flow.rpcops.v1
import net.corda.flow.rpcops.v1.types.response.StartableFlowsResponse
import net.corda.httprpc.RestResource
import net.corda.httprpc.annotations.HttpGET
import net.corda.httprpc.annotations.RestPathParameter
import net.corda.httprpc.annotations.HttpRestResource
/** Rest operations for... | 82 | Kotlin | 7 | 24 | 17f5d2e5585a8ac56e559d1c099eaee414e6ec5a | 1,203 | corda-runtime-os | Apache License 2.0 |
app/src/test/java/org/simple/clinic/drugs/EditMedicineUpdateTest.kt | zhukofff | 378,200,443 | true | {"Kotlin": 4636507, "Shell": 3719, "Python": 3162, "HTML": 545} | package org.simple.clinic.drugs
import com.spotify.mobius.test.NextMatchers.hasEffects
import com.spotify.mobius.test.NextMatchers.hasModel
import com.spotify.mobius.test.NextMatchers.hasNoEffects
import com.spotify.mobius.test.NextMatchers.hasNoModel
import com.spotify.mobius.test.UpdateSpec
import com.spotify.mobius... | 0 | null | 0 | 1 | 7eab5bfef38869c305b5446e4c0da877ecd4c269 | 8,250 | simple-android | MIT License |
src/main/kotlin/me/benjozork/kson/common/JsonToken.kt | Benjozork | 156,921,876 | false | null | package me.benjozork.kson.common
/**
* A list of valid JSON tokens
*
* @property char the [Char] value representing this [JsonToken]
*
* @author Benjozork
*/
enum class JsonToken(val char: Char) {
OBJECT_START ('{'),
OBJECT_END ('}'),
ARRAY_START ('['),
ARRAY_END ... | 0 | Kotlin | 0 | 0 | 9b52b262e1bf1ca2663faaca34c86ac2f73b451a | 1,061 | kson | MIT License |
src/main/kotlin/fr/shikkanime/controllers/api/ConfigController.kt | Shikkanime | 725,527,999 | false | {"Kotlin": 617636, "FreeMarker": 138072, "JavaScript": 2805, "SCSS": 1949, "Dockerfile": 1240, "Shell": 812, "Fluent": 69} | package fr.shikkanime.controllers.api
import com.google.inject.Inject
import fr.shikkanime.converters.AbstractConverter
import fr.shikkanime.dtos.ConfigDto
import fr.shikkanime.services.ConfigService
import fr.shikkanime.utils.Constant
import fr.shikkanime.utils.routes.AdminSessionAuthenticated
import fr.shikkanime.ut... | 6 | Kotlin | 0 | 4 | eea24d18ed98006c71ef2703f4db92d23698760b | 1,695 | core | Apache License 2.0 |
aoc2020/aoc2020-kotlin/src/main/kotlin/de/havox_design/aoc2020/day21/AllergenAssessment.kt | Gentleman1983 | 737,309,232 | false | {"Kotlin": 1066977, "Java": 686584, "Scala": 57186, "Groovy": 40981, "Python": 25970} | package de.havox_design.aoc2020.day21
class AllergenAssessment(private var filename: String) {
private val data = getResourceAsText(filename)
@SuppressWarnings("kotlin:S6611")
fun processPart1(): Any {
val allIngredients = mutableListOf<String>()
val dictionary = mutableMapOf<String, Mutab... | 3 | Kotlin | 0 | 1 | 1f6f1b9228ad7c8a1140b75d4b1def314dfe37dc | 3,621 | advent-of-code | Apache License 2.0 |
library-core/src/main/kotlin/com/test/latte/matcher/ViewMatcher.kt | malloth | 198,045,075 | false | null | package pl.codesamurai.latte.core.matcher
import android.view.View
import pl.codesamurai.latte.core.hierarchy.DepthFirstViewTreeWalk
import pl.codesamurai.latte.core.hierarchy.RootProvider
import pl.codesamurai.latte.core.hierarchy.ViewTreeWalk
import pl.codesamurai.latte.core.hierarchy.WindowRootProvider
import pl.co... | 0 | Kotlin | 0 | 5 | e8dc19f7f7f42552f303d3dd6cd3b8a5422ac85f | 1,528 | latte | Apache License 2.0 |
src/commonTest/kotlin/com/kodepad/irc/parser/impl/UserParserUnitTest.kt | KodePadLaunch | 322,977,922 | false | null | package com.kodepad.irc.parser.impl
import com.kodepad.irc.logging.Logger
import com.kodepad.irc.logging.LoggerFactory
import com.kodepad.irc.parser.ParserFactory
import kotlin.test.Test
import kotlin.test.assertEquals
class UserParserUnitTest {
companion object {
val logger: Logger = LoggerFactory.getLog... | 0 | Kotlin | 0 | 0 | 2afdf0ed30ef8d11811424caa594e5ab9a6c2613 | 801 | IrcClient | Apache License 2.0 |
app/src/main/java/com/vishnus1224/notifyme/feature/customer/data/CustomerRepository.kt | vishnus1224 | 685,828,201 | false | {"Kotlin": 42155} | package com.vishnus1224.notifyme.feature.customer.data
import io.realm.kotlin.Realm
import io.realm.kotlin.UpdatePolicy
import io.realm.kotlin.ext.query
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import javax.inject.Inject
class CustomerRepository
@Inject constructor(
override val... | 0 | Kotlin | 0 | 0 | bac7b396491adf19462f5ae21d34aa02c3a8d9a5 | 811 | NotifyMe | The Unlicense |
src/main/kotlin/me/rerere/unocssintellij/util/IconResources.kt | re-ovo | 657,858,784 | false | {"Kotlin": 128628, "TypeScript": 10298} | package me.rerere.unocssintellij.util
import com.intellij.lang.javascript.JavascriptLanguage
import com.intellij.openapi.fileTypes.LanguageFileType
import com.intellij.openapi.util.IconLoader
import javax.swing.Icon
object IconResources {
@JvmStatic
val PluginIcon = IconLoader.getIcon("/icons/pluginIcon.svg",... | 0 | Kotlin | 7 | 136 | a2a7519655c66a4097118b7f72562b2ead388945 | 660 | unocss-intellij | MIT License |
app/src/main/java/ir/marko/wikipedia/activities/TranslateActivity.kt | mahdizakaria13 | 504,168,614 | false | null | package ir.marko.wikipedia.activities
import android.os.Bundle
import android.view.MenuItem
import com.bumptech.glide.Glide
import ir.dunijet.animation.ext.BaseActivity
import ir.marko.wikipedia.R
import ir.marko.wikipedia.databinding.ActivityTranslateBinding
import jp.wasabeef.glide.transformations.RoundedCornersTr... | 0 | Kotlin | 0 | 0 | 0da1ed35f966fbfe42339bcf6a0528230cdd0dff | 1,197 | wikipedia_app | MIT License |
app/src/main/java/do_f/com/spotishare/Utils.kt | florian-do | 170,795,756 | false | null | package do_f.com.spotishare
import android.graphics.Bitmap
import android.graphics.Color
import android.support.v7.graphics.Palette
import java.util.*
import kotlin.random.Random
class Utils {
companion object {
// https://gist.github.com/KKorvin/219555d4d3ee1828d7b0e808aad82930
fun getDominantCo... | 0 | Kotlin | 0 | 0 | f7b72852b46aaba34c53df3979fb13662a5fd73e | 1,538 | Spotishare | MIT License |
app/src/main/java/com/adwi/pexwallpapers/shared/adapter/WallpaperListAdapter.kt | adimanwit | 388,852,382 | false | null | package com.adwi.pexwallpapers.shared.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.ListAdapter
import com.adwi.pexwallpapers.data.local.entity.Wallpaper
import com.adwi.pexwallpapers.databinding.WallpaperItemBinding
class WallpaperListAdapter(
privat... | 0 | Kotlin | 1 | 2 | 0a0cefec5b890262ea6c62ca7f62cbaa0a956ac5 | 1,647 | PexWallpapers | Apache License 2.0 |
src/main/kotlin/com/tencent/bk/devops/atom/task/utils/JobUtils.kt | jsonwan | 268,976,215 | true | {"Kotlin": 22677} |
package com.tencent.bk.devops.atom.task.utils
import com.tencent.bk.devops.atom.task.pojo.FastExecuteScriptRequest
import com.tencent.bk.devops.atom.task.service.JobResourceApi
object JobUtils {
private val jobResourceApi = JobResourceApi()
fun fastExecuteScript(executeScriptRequest: FastExecuteScriptReque... | 0 | Kotlin | 0 | 0 | bd1a5fb253519786e9789a751c2b184881927a15 | 973 | executeJobScript | MIT License |
src/main/kotlin/net/pryszawa/codegen/model/SchemaObject.kt | pablo53 | 483,800,885 | false | {"Kotlin": 29619} | package net.pryszawa.codegen.model
data class SchemaObject(
val `$ref`: String?,
val type: Type?,
val allOf: List<SchemaObject>?,
val oneOf: List<SchemaObject>?,
val anyOf: List<SchemaObject>?,
val not: List<SchemaObject>?,
val items: SchemaObject?,
val properties: Map<String, SchemaObj... | 0 | Kotlin | 0 | 0 | 14639a5df5c59065722591a4bdc0ebcc34cedf4e | 1,157 | kt-codegen | MIT License |
library/src/test/java/com/thesurix/gesturerecycler/AddTransactionTest.kt | mozomig | 239,997,487 | true | {"Kotlin": 73327} | package com.thesurix.gesturerecycler
import com.thesurix.gesturerecycler.transactions.AddTransaction
import org.junit.Test
import org.mockito.Mockito
import kotlin.test.assertEquals
import kotlin.test.assertTrue
class AddTransactionTest : BaseTransactionTest() {
@Test
fun `add item in transaction`() {
... | 0 | Kotlin | 0 | 0 | 5fa6865ba759846c57cb79346eb485e920c7db1b | 975 | gesture-recycler | Apache License 2.0 |
app/src/main/java/org/ballistic/dreamjournalai/user_authentication/presentation/components/EmailField.kt | ErickSorto | 546,852,272 | false | null | package org.ballistic.dreamjournalai.user_authentication.presentation.components
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material.ExperimentalMaterialApi
import androidx.comp... | 0 | Kotlin | 0 | 2 | 150b630a9e74ca3b05d021ca0e8624c65cf14e8a | 2,747 | Dream-Journal-AI | MIT License |
src/co/aospa/sense/view/CircleSurfaceView.kt | AOSPA | 560,146,398 | false | {"Kotlin": 98746} | package co.aospa.sense.view
import android.animation.Animator
import android.animation.AnimatorListenerAdapter
import android.animation.ValueAnimator
import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.Path
import android.graphics.RectF
import android.uti... | 0 | Kotlin | 7 | 1 | f6b6c51961d20b1c0b07484181ca03ba30405178 | 2,866 | android_packages_apps_ParanoidSense | Apache License 2.0 |
app/src/main/java/com/github/nothing2512/anticorona/ui/province/ProvinceViewModel.kt | nothing2512 | 251,372,631 | false | null | /*
* Copyright 2020 Nothing
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 0 | Kotlin | 0 | 1 | 8da04a8dd852c01673b75783e7e9047af5e2bcc2 | 1,946 | AntiCoronaAndroid | Apache License 2.0 |
runtime/src/main/java/io/novafoundation/nova/runtime/extrinsic/visitor/api/ExtrinsicWalkExt.kt | novasamatech | 415,834,480 | false | {"Kotlin": 11112596, "Rust": 25308, "Java": 17664, "JavaScript": 425} | package io.novafoundation.nova.runtime.extrinsic.visitor.api
import io.novafoundation.nova.runtime.multiNetwork.chain.model.ChainId
import io.novafoundation.nova.runtime.multiNetwork.runtime.repository.ExtrinsicWithEvents
suspend fun ExtrinsicWalk.walkToList(source: ExtrinsicWithEvents, chainId: ChainId): List<Extrin... | 14 | Kotlin | 30 | 50 | 166755d1c3388a7afd9b592402489ea5ca26fdb8 | 449 | nova-wallet-android | Apache License 2.0 |
library/src/test/java/io/konifar/cardinputhelper/cardbrand/UnSupportedTest.kt | konifar | 236,972,948 | false | null | package io.konifar.cardinputhelper.cardbrand
import org.junit.Assert.assertEquals
import org.junit.Test
import org.junit.experimental.runners.Enclosed
import org.junit.runner.RunWith
import org.junit.runners.Parameterized
@RunWith(Enclosed::class)
class UnSupportedTest {
@RunWith(Parameterized::class)
class ... | 3 | Kotlin | 0 | 24 | a0dcc0d28e84cbfdfe69972a2106af584ffa2db4 | 2,259 | creditcard-input-helper | MIT License |
abcstore-core/src/test/java/hu/nemi/abcstore/core/SubStoreTest.kt | mos8502 | 131,838,728 | false | null | package hu.nemi.abcstore.core
import com.nhaarman.mockito_kotlin.*
import org.junit.Test
import java.util.Base64
class SubStoreTest {
sealed class Action {
data class SetUsername(val username: String): Action()
data class SetPassword(val password: String): Action()
}
data class SetName(va... | 0 | Kotlin | 0 | 0 | 94cb49a270dce6c4b0fab3e72d9d4f706187bffd | 5,986 | abcstore | Apache License 2.0 |
render/jpql/src/main/kotlin/com/linecorp/kotlinjdsl/render/jpql/serializer/impl/JpqlNotExistsSerializer.kt | line | 442,633,985 | false | {"Kotlin": 1959613, "JavaScript": 5144, "Shell": 1023} | package com.linecorp.kotlinjdsl.render.jpql.serializer.impl
import com.linecorp.kotlinjdsl.Internal
import com.linecorp.kotlinjdsl.querymodel.jpql.predicate.impl.JpqlNotExists
import com.linecorp.kotlinjdsl.render.RenderContext
import com.linecorp.kotlinjdsl.render.jpql.serializer.JpqlRenderSerializer
import com.linec... | 4 | Kotlin | 86 | 705 | 3a58ff84b1c91bbefd428634f74a94a18c9b76fd | 971 | kotlin-jdsl | Apache License 2.0 |
app/src/main/kotlin/com/oss/megane/ui/home/MovieDetailScreen.kt | shubham08gupta | 455,215,230 | false | {"Kotlin": 30167} | package com.oss.megane.ui.home
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import a... | 0 | Kotlin | 1 | 1 | 12191641eea402f27542aa4583d6a917ca4b519a | 573 | Megane | MIT License |
src/main/kotlin/com/mairwunnx/projectessentials/commands/FeedCommand.kt | ProjectEssentials | 205,187,801 | false | null | package com.mairwunnx.projectessentials.commands
import com.mairwunnx.projectessentials.core.api.v1.MESSAGE_MODULE_PREFIX
import com.mairwunnx.projectessentials.core.api.v1.commands.CommandAPI
import com.mairwunnx.projectessentials.core.api.v1.commands.CommandBase
import com.mairwunnx.projectessentials.core.api.v1.ext... | 3 | Kotlin | 2 | 8 | b27bc735d93922ca7a2b4976f0629296c31c1a54 | 4,199 | ProjectEssentials | MIT License |
components/src/main/java/com/example/jetexample/foundation/scrollablecolumn/ScrollableColumnDemo.kt | oscarcidcoder | 296,948,030 | true | {"Kotlin": 61801} | package com.example.jetexample.foundation.scrollablecolumn
import androidx.compose.foundation.ScrollableColumn
import androidx.compose.foundation.Text
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import android... | 0 | null | 0 | 0 | 27e056881d0ceb50790c5d4a6c247438e2a899a7 | 1,125 | JetExample | MIT License |
app/src/main/java/com/zobaer53/zedmovies/ui/search/SearchUiState.kt | zobaer53 | 661,586,013 | false | {"Kotlin": 498107, "JavaScript": 344099, "C++": 10825, "CMake": 2160} |
package com.zobaer53.zedmovies.ui.search
import androidx.paging.PagingData
import com.zobaer53.zedmovies.data.model.MediaType
import com.zobaer53.zedmovies.data.model.Movie
import com.zobaer53.zedmovies.data.model.TvShow
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.emptyFlow
data class SearchU... | 0 | Kotlin | 3 | 6 | 1e70d46924b711942b573364745fa74ef1f8493f | 875 | NoFlix | Apache License 2.0 |
mediator/src/main/kotlin/no/nav/dagpenger/vedtak/iverksetting/mediator/mottak/UtbetalingsvedtakFattetMottak.kt | navikt | 415,800,876 | false | null | package no.nav.dagpenger.vedtak.iverksetting.mediator.mottak
import mu.KotlinLogging
import mu.withLoggingContext
import no.nav.dagpenger.vedtak.mediator.IHendelseMediator
import no.nav.helse.rapids_rivers.JsonMessage
import no.nav.helse.rapids_rivers.MessageContext
import no.nav.helse.rapids_rivers.RapidsConnection
i... | 1 | Kotlin | 0 | 0 | c0d554efc06c4a443588b9c6db82110ed3a443fd | 1,999 | dp-vedtak | MIT License |
app/src/main/java/com/amazon/ivs/chatdemo/repository/networking/models/AuthenticationResponse.kt | aws-samples | 483,829,858 | false | null | package com.amazon.ivs.chatdemo.repository.networking.models
import com.amazon.ivs.chatdemo.common.extensions.toDate
import kotlinx.serialization.Serializable
import java.util.*
@Serializable
data class AuthenticationResponse(
val token: String,
val sessionExpirationTime: String,
val tokenExpirationTime: ... | 0 | Kotlin | 2 | 9 | c5ee29e14529d71036c376dbb2f4300ded45d526 | 483 | amazon-ivs-chat-for-android-demo | MIT No Attribution |
tests/code/kotlin_kotlinc.kt | dk949 | 435,664,912 | false | {"Rust": 31352, "Shell": 11480, "Assembly": 1323, "Nix": 1214, "Python": 252, "C#": 163, "Zig": 138, "C": 134, "Scala": 133, "C++": 132, "D": 130, "CMake": 120, "Java": 112, "Fortran": 80, "Go": 79, "Kotlin": 73, "Perl": 53, "Scheme": 53, "Haskell": 48, "Awk": 42, "PHP": 36, "CoffeeScript": 32, "JavaScript": 32, "OCaml... | fun main() {
println("ruc test passed")
}
| 0 | Rust | 0 | 0 | aa2d308469270eae4011260d78bbece64b801d5e | 46 | ruc | MIT License |
src/main/kotlin/no/nav/tilleggsstonader/sak/vilkår/stønadsvilkår/regler/RegelId.kt | navikt | 685,490,225 | false | {"Kotlin": 1934527, "HTML": 48650, "Gherkin": 41142, "Shell": 924, "Dockerfile": 164} | package no.nav.tilleggsstonader.sak.vilkår.stønadsvilkår.regler
enum class RegelId(val beskrivelse: String) {
SLUTT_NODE("SLUTT_NODE"),
// EKSEMPEL
HAR_ET_NAVN("Har et navn"),
HAR_ET_NAVN2("Har et navn 2"),
HAR_ET_NAVN3("Har et navn 3"),
// PASSBARN
ANNEN_FORELDER_MOTTAR_STØTTE("Mottar de... | 2 | Kotlin | 1 | 0 | c8e39241e9b0fc0735ffad4c576ec501cc54ba60 | 621 | tilleggsstonader-sak | MIT License |
shared/src/commonTest/kotlin/com/vshkl/calk/db/DbTest.kt | vshkl | 601,305,071 | false | null | package com.vshkl.calk.db
import co.touchlab.kermit.Logger
import co.touchlab.kermit.StaticConfig
import com.vshkl.calk.testDbConnection
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.test.runTest
import kotlin.test.BeforeTest
import kotlin.test.Test
import kotlin.... | 0 | Kotlin | 0 | 0 | fd877c48a50746a4ba7050c0373a19436dce2a4e | 1,696 | Calk | Apache License 2.0 |
pretty-imports/src/main/kotlin/com/github/hfazai/imports/PrettyImports.kt | hfazai | 410,280,424 | false | null | /*
* Copyright 2021-2021 <NAME> (https://github.com/hfazai).
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Kotlin | 0 | 1 | 3b184184ebe401483a524eec671ba28f11192813 | 5,788 | pretty-imports | Apache License 2.0 |
app/src/main/java/com/example/jpmorgantest/util/extension/Date.kt | Sushanth12361 | 861,347,513 | false | {"Kotlin": 126062, "Java": 3448} | package com.example.jpmorgantest.util.extension
import com.example.jpmorgantest.util.constants.DELAY_1000
import com.example.jpmorgantest.util.constants.FORMAT_HOUR
import com.example.jpmorgantest.util.constants.FORMAT_TIME_ZONE
import java.text.SimpleDateFormat
import java.util.Date
import java.util.Locale
import jav... | 0 | Kotlin | 0 | 0 | 6c0607adaba5018572237a7d51adcf0cd71a6540 | 577 | JPMC | Apache License 2.0 |
src/main/kotlin/org/cloud_assess/dto/request/QuantityMemoryTimeDto.kt | kleis-technology | 693,726,341 | false | {"Kotlin": 30470, "Dockerfile": 807, "Shell": 70} | package org.cloud_assess.dto.request
import com.fasterxml.jackson.annotation.JsonProperty
data class QuantityMemoryTimeDto(
@JsonProperty("amount") val amount: Double,
@JsonProperty("unit") val unit: MemoryTimeUnitsDto,
)
| 0 | Kotlin | 2 | 8 | 5f0461a518b6d3eee93cd7a89174034995e69104 | 232 | cloud-assess | Apache License 2.0 |
src/main/kotlin/io/goauthentik/api/models/UserOAuthSourceConnectionRequest.kt | goauthentik | 687,459,450 | false | {"Kotlin": 3765385, "Mustache": 7947, "Go": 1226, "Makefile": 996} | /**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package io.goauthentik.api.models
import com.s... | 1 | Kotlin | 0 | 0 | 768b6270c366efcee0ab24d3e62bc7d1de2f8433 | 746 | client-kotlin | Info-ZIP License |
app/src/main/java/dev/kingbond/moveon/ui/warehouses/whPersonalDetailsActivity.kt | Kingbond470 | 422,909,035 | false | {"Kotlin": 129863, "Java": 9137} | package dev.kingbond.moveon.ui.warehouses
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import dev.kingbond.moveon.databinding.ActivityWhPersonalDetailsBinding
import dev.kingbond.moveon.ui.warehouses.SharedPref.MyPreference
class whPersonalDetailsActivity : Ap... | 0 | Kotlin | 0 | 5 | b1f790c6cf43354857f1f98e217fe68bdb3e9e3a | 1,059 | Move-On | MIT License |
src/main/kotlin/work/msdnicrosoft/avm/util/component/ComponentUtil.kt | MSDNicrosoft | 812,896,653 | false | null | package work.msdnicrosoft.avm.util.component
import dev.vankka.enhancedlegacytext.EnhancedLegacyText
import net.kyori.adventure.text.Component
import net.kyori.adventure.text.event.ClickEvent
import net.kyori.adventure.text.event.HoverEvent
import work.msdnicrosoft.avm.AdvancedVelocityManagerPlugin.logger
object Comp... | 3 | null | 0 | 7 | ea735fc704ef3b297b7801c338788fc2921f6f53 | 1,775 | AdvancedVelocityManager | MIT License |
src/test/kotlin/de/pflugradts/passbird/application/commandhandling/HelpCommandIT.kt | christianpflugradt | 522,173,174 | false | {"Kotlin": 416483} | package de.pflugradts.passbird.application.commandhandling
import de.pflugradts.passbird.application.UserInterfaceAdapterPort
import de.pflugradts.passbird.application.commandhandling.handler.HelpCommandHandler
import de.pflugradts.passbird.domain.model.shell.Shell.Companion.shellOf
import de.pflugradts.passbird.domai... | 2 | Kotlin | 0 | 0 | 87ac421a27012061389ad579f12cb2b1d6e398e5 | 1,232 | PwMan3 | Apache License 2.0 |
src/main/kotlin/com/projectcitybuild/plugin/commands/SyncOtherCommand.kt | projectcitybuild | 42,997,941 | false | null | package com.projectcitybuild.plugin.commands
import com.projectcitybuild.core.utilities.Failure
import com.projectcitybuild.core.utilities.Success
import com.projectcitybuild.features.ranksync.usecases.UpdatePlayerGroupsUseCase
import com.projectcitybuild.modules.nameguesser.NameGuesser
import com.projectcitybuild.mod... | 8 | Kotlin | 0 | 2 | 670536a5832dd6c3dbde0ba2f94f74a6ec576ed3 | 2,430 | PCBridge | MIT License |
butterfly/src/main/java/zlc/season/butterfly/ButterflyInterceptor.kt | ssseasonnn | 452,103,571 | false | {"Kotlin": 108624} | package zlc.season.butterfly
interface ButterflyInterceptor {
suspend fun shouldIntercept(request: AgileRequest): Boolean
suspend fun intercept(request: AgileRequest): AgileRequest
} | 5 | Kotlin | 16 | 215 | 42475a7a4387c6bf0b9fbf5214bc5302d894fa7a | 191 | Butterfly | Apache License 2.0 |
presentation/src/main/java/com/anytypeio/anytype/presentation/number/NumberParser.kt | anyproto | 647,371,233 | false | {"Kotlin": 11623123, "Java": 69306, "Shell": 11350, "Makefile": 1334} | package com.anytypeio.anytype.presentation.number
import java.math.BigDecimal
import java.math.RoundingMode
/**
* Converts relation {format NUMBER} value {Any?} to string representation or null
*/
object NumberParser {
fun parse(value: Any?): String? {
val doubleValue = when (value) {
is St... | 45 | Kotlin | 43 | 528 | c708958dcb96201ab7bb064c838ffa8272d5f326 | 1,237 | anytype-kotlin | RSA Message-Digest License |
app/src/main/java/com/gelostech/dankmemes/ui/viewmodels/CommentsViewModel.kt | tirgei | 122,351,155 | false | null | package com.gelostech.dankmemes.ui.viewmodels
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.LivePagedListBuilder
import androidx.paging.PagedList
import com.gelostech.dankmemes.data.Result... | 1 | null | 18 | 58 | 67dac7af5bd2897c44d5c5ebd8007dab43c42f56 | 3,313 | DankMemes | Apache License 2.0 |
TachiServer/src/main/java/xyz/nulldev/ts/api/v2/java/impl/mangas/MangaCollectionImpl.kt | TachiWeb | 63,995,519 | false | null | package xyz.nulldev.ts.api.v2.java.impl.mangas
import eu.kanade.tachiyomi.data.database.DatabaseHelper
import xyz.nulldev.ts.api.v2.java.impl.util.DbMapper
import xyz.nulldev.ts.api.v2.java.impl.util.ProxyList
import xyz.nulldev.ts.api.v2.java.model.mangas.MangaCollection
import xyz.nulldev.ts.api.v2.java.model.mangas... | 45 | null | 44 | 376 | 756aed147f9d3ad64b0620ab69c3eb4575264177 | 1,309 | TachiWeb-Server | Apache License 2.0 |
app/src/main/java/com/warlock/tmdb/ui/base/BaseViewHolder.kt | rahulgothwal5 | 366,426,179 | false | {"Gradle": 5, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "INI": 2, "Kotlin": 91, "XML": 116, "Java": 2, "PureBasic": 1} | package com.warlock.tmdb.ui.base
import androidx.databinding.ViewDataBinding
import androidx.recyclerview.widget.RecyclerView
open class BaseViewHolder<out T : ViewDataBinding> constructor(val binding: T) :
RecyclerView.ViewHolder(binding.root) | 0 | Kotlin | 0 | 0 | 3264a8cb808f0184ffee394548b670efe7cdd33c | 250 | TMDB-App | MIT License |
clarity/src/main/java/com/clarifai/clarity/ModelHandler_Kotlin.kt | BrodyVoth | 235,918,322 | false | null | /**
* Copyright © 2019 Clarifai
*
* 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 t... | 1 | Kotlin | 2 | 0 | 994f2388651ef23f5725821f2d9ab0d4b73d6bc9 | 3,410 | ISSP-SAR-Realtime-App | Apache License 2.0 |
Beginner/1143_Squared_and_Cubic/.kt | NazmulHasanNihal | 734,656,519 | false | {"Text": 1, "Markdown": 1, "Lua": 83, "Ruby": 83, "Java": 83, "Elixir": 61, "TypeScript": 81, "Julia": 82, "Dart": 82, "JavaScript": 82, "Kotlin": 83, "PHP": 83, "Go": 83, "Python": 82, "R": 69, "Pascal": 71, "Swift": 83, "C": 83, "Haskell": 80, "Clojure": 73, "Scala": 83, "Rust": 83, "C++": 83, "OCaml": 76, "C#": 83, ... | import java.util.*
fun main(args: Array<String>) {
val n = readLine()!!.toInt()
for (i in 1..n) {
println("$i ${i*i} ${i*i*i}")
}
} | 0 | Java | 0 | 0 | 955e940dc82745deb2240e12fe7a86b2e1adb9b6 | 151 | Beecrowd-Problems-Solution | MIT License |
app/src/main/kotlin/de/lgohlke/pebuild/cli/CLI.kt | lkwg82 | 163,767,150 | false | null | package de.lgohlke.pebuild.cli
import de.lgohlke.pebuild.Configuration
import de.lgohlke.pebuild.EnvironmentConfigurer
import picocli.CommandLine
import java.io.PrintStream
import java.util.*
import java.util.concurrent.Callable
@CommandLine.Command(name = "pebuild",
subcommands = [ExecCommand::c... | 3 | null | 1 | 2 | f029e6caf5b388a5eb6cec18c4f74f9d61057d21 | 2,028 | pebuild | Apache License 2.0 |
iconics-core/src/main/java/com/mikepenz/iconics/utils/StyleContainer.kt | mikepenz | 26,061,231 | false | null | /*
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 7 | null | 620 | 5,166 | 9109ca172ae6cc696b8028837910e6ccaed8bd3f | 1,067 | Android-Iconics | Apache License 2.0 |
Common/src/main/kotlin/com/existing/boilerx/common/widgets/AppViewHolder.kt | THE-EXISTING | 176,088,785 | false | null | package com.existing.boilerx.common.widgets
import android.graphics.Bitmap
import androidx.annotation.DrawableRes
import android.view.ViewGroup
import android.widget.ImageView
import com.bumptech.glide.load.Transformation
import com.bumptech.glide.load.resource.bitmap.CircleCrop
import com.bumptech.glide.request.Reque... | 1 | Kotlin | 1 | 2 | 6483e245ea45db0c8642b30366d6a81e86d8b48d | 1,697 | boilerx-android-architecture | Apache License 2.0 |
gdx2d-demoDesktop/src/main/kotlin/ch/hevs/gdx2d/demos/physics/motors/DemoRotateMotor.kt | hevs-isi | 10,511,380 | false | {"Kotlin": 271357, "Java": 182289, "GLSL": 29483, "Shell": 4394} | @file:Suppress("NAME_SHADOWING")
package ch.hevs.gdx2d.demos.physics.motors
import ch.hevs.gdx2d.components.bitmaps.BitmapImage
import ch.hevs.gdx2d.components.physics.PhysicsMotor
import ch.hevs.gdx2d.components.physics.utils.PhysicsConstants
import ch.hevs.gdx2d.components.physics.utils.PhysicsScreenBoundaries
impor... | 20 | Kotlin | 11 | 30 | 87a206b9ff9642e5f205363b09a96a261f637731 | 9,178 | gdx2d | Apache License 2.0 |
plugins/liquid/arrow-refined-types/src/commonMain/kotlin/arrow/refinement/collections/Contains.kt | pstinghua | 409,558,986 | true | {"Kotlin": 1937232, "Java": 7034, "Shell": 195} | package arrow.refinement.collections
import arrow.refinement.Refined
import arrow.refinement.ensure
import kotlin.jvm.JvmInline
@JvmInline
value
/**
* Contains constrains a collection to include an element
*
* # Safe nullable construction
*
* ```kotlin:ank
* import arrow.refinement.collections.Contains
*
* Co... | 2 | null | 0 | 0 | 9adbd026e54349e26f3987b97b3165241f5f282d | 1,511 | arrow-meta | Apache License 2.0 |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Autonomous/VisionTesting/TFODAutoTest1.kt | MostlyOperational18119 | 792,554,577 | false | {"Git Config": 1, "Gradle": 7, "Java Properties": 1, "Shell": 1, "Text": 10, "Ignore List": 2, "Batchfile": 1, "Markdown": 7, "INI": 1, "YAML": 1, "Java": 116, "XML": 12, "Kotlin": 53} | package org.firstinspires.ftc.teamcode.Autonomous.VisionTesting
import com.qualcomm.robotcore.eventloop.opmode.Autonomous
import com.qualcomm.robotcore.eventloop.opmode.Disabled
import org.firstinspires.ftc.robotcore.external.tfod.Recognition
import org.firstinspires.ftc.teamcode.DriveMethods
import org.firstinspires.... | 0 | Java | 0 | 0 | eabd8a0691079c43e61f9ff65a811cc2c6d8ce25 | 1,544 | Mostly-Operational-Center-Stage | BSD 3-Clause Clear License |
gitreposearch/src/main/java/id/indosw/gitreposearch/api/models/GetRepos.kt | ani1nonly | 366,795,580 | true | {"Java Properties": 2, "Gradle": 4, "Shell": 1, "Markdown": 1, "Batchfile": 1, "Ignore List": 4, "XML": 32, "Proguard": 2, "Java": 20, "INI": 1, "Kotlin": 7} | package id.indosw.gitreposearch.api.models
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
class GetRepos {
@SerializedName("total_count")
@Expose
var totalCount: Int? = null
@SerializedName("incomplete_results")
@Expose
var incompleteResults: Boole... | 0 | null | 1 | 0 | 34087103abcc76421b79ed9b23a9d404f843feda | 408 | GithubSearch | Apache License 2.0 |
app/src/main/java/code_setup/ui_/onboard/onboard_mvp/OnboardPresenter.kt | himalayanDev | 293,483,735 | false | null | package com.burakeregar.githubsearch.home.presenter
import android.app.Activity
import code_setup.app_models.other_.TourTypeModel
import com.base.mvp.BasePresenter
import com.base.util.SchedulerProvider
import com.electrovese.kotlindemo.networking.ApiInterface
import com.electrovese.setup.R
import io.reactivex.disposa... | 1 | Kotlin | 1 | 1 | 5c318e92bf68e39ea6b4310f2a84b601f0e4199d | 2,722 | Template | Apache License 2.0 |
src/main/kotlin/com/ginsberg/advent2016/assembunny/AssembunnyParser.kt | tginsberg | 74,924,040 | false | null | package com.ginsberg.advent2016.assembunny
object AssembunnyParser {
private val COPY = Regex("""^cpy (\S+) (\S+)$""")
private val INC = Regex("""^inc ([abcd])$""")
private val DEC = Regex("""^dec ([abcd])$""")
private val JUMP = Regex("""^jnz (\S+) (\S+)$""")
private val TOGGLE = Regex("""^tgl ([... | 0 | Kotlin | 0 | 3 | a486b60e1c0f76242b95dd37b51dfa1d50e6b321 | 1,661 | advent-2016-kotlin | MIT License |
app/src/main/java/com/kirakishou/photoexchange/ui/fragment/MyBaseMvRxFragment.kt | K1rakishou | 109,590,033 | false | null | package com.kirakishou.photoexchange.ui.fragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.CallSuper
import androidx.recyclerview.widget.GridLayoutManager
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
imp... | 0 | Kotlin | 1 | 4 | 15f67029376a98353a01b5523dfb42d183a26bf2 | 4,625 | photoexchange-android | Do What The F*ck You Want To Public License |
src/main/kotlin/com/github/sz763/kc/core/impl/FileStorageFavoriteTopic.kt | sz763 | 414,349,057 | false | {"Kotlin": 66154, "Batchfile": 152} | package com.github.sz763.kc.core.impl
import com.fasterxml.jackson.core.type.TypeReference
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory
import com.github.sz763.kc.core.FavoriteTopics
import org.springframework.beans.factory.InitializingBean
import org.spri... | 5 | Kotlin | 0 | 0 | fbde4303a073ae5fe3ee14b278dd8fa5d90043ff | 1,438 | kafka-client | MIT License |
libnavui-tripprogress/src/test/java/com/mapbox/navigation/ui/tripprogress/view/MapboxTripProgressViewTest.kt | jackgregory | 337,518,939 | true | {"Kotlin": 1912845, "Java": 124339, "Python": 10396, "Makefile": 5455, "JavaScript": 2362, "Shell": 1686} | package com.mapbox.navigation.ui.tripprogress.view
import android.content.Context
import android.graphics.drawable.ColorDrawable
import android.os.Build
import android.text.SpannableString
import android.view.View
import android.widget.TextView
import androidx.test.core.app.ApplicationProvider
import com.mapbox.naviga... | 0 | null | 0 | 0 | 81a06b641ddbdb4bc05c35663618b56615da6312 | 4,490 | mapbox-navigation-android | Apache License 2.0 |
src/main/kotlin/com/github/rafaelldi/tyeplugin/actions/UpdateTyeGlobalToolNotificationAction.kt | rafaelldi | 342,595,811 | false | null | package com.github.rafaelldi.tyeplugin.actions
import com.github.rafaelldi.tyeplugin.services.TyeGlobalToolService
import com.intellij.notification.Notification
import com.intellij.notification.NotificationAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.components.service
impo... | 4 | Kotlin | 1 | 5 | 6ffc7e74345a8ef926bd6c63d46e4a7cb639f5a1 | 1,122 | tye-plugin | MIT License |
src/main/kotlin/com/antwerkz/expression/types/NonWhiteSpaceChar.kt | evanchooly | 640,129,156 | false | null | package com.antwerkz.expression.types
internal object NonWhiteSpaceChar : Type("nonWhitespaceChar") {
init {
fusible = true
}
override fun copy() = NonWhiteSpaceChar
override fun evaluate() = "\\S"
}
| 0 | null | 0 | 9 | fdaf5ae2a918bae77fd76d4ca0205b8cea7b3407 | 227 | super-expressive | MIT License |
app/src/main/java/com/marknkamau/unipool/ui/pastRides/PastRidesActivity.kt | MarkNjunge | 117,090,097 | false | null | package com.marknkamau.unipool.ui.pastRides
import android.os.Bundle
import android.support.transition.TransitionManager
import android.support.v7.widget.DividerItemDecoration
import android.support.v7.widget.LinearLayoutManager
import android.view.View
import android.widget.LinearLayout
import com.marknkamau.unipool.... | 0 | Kotlin | 9 | 14 | 88c4fb319f07e3811b4a44cd7ce3236826e8edac | 2,057 | Unipool-Android | MIT License |
src/main/kotlin/at/wavywalk/simpler/router/WildNodesContainer.kt | WavyWalk | 165,830,702 | false | null | package at.wavywalk.simpler.router
class WildNodesContainer {
var nodes: MutableList<WildNode> = mutableListOf()
fun addNode(node: WildNode) {
nodes.add(node)
}
} | 0 | Kotlin | 0 | 0 | f9667ac9c04e135c075df0ee02f5b742c96d8a44 | 183 | simpler | Do What The F*ck You Want To Public License |
compiler/src/main/kotlin/com/piotrwalkusz/smartlaw/compiler/converter/naturallanguage/exporter/NaturalLanguageExporter.kt | piotrwalkusz1 | 293,285,610 | false | null | package com.piotrwalkusz.smartlaw.compiler.converter.naturallanguage.exporter
import com.piotrwalkusz.smartlaw.compiler.converter.naturallanguage.model.NaturalLanguageDocument
import java.io.OutputStream
interface NaturalLanguageExporter {
fun export(document: NaturalLanguageDocument, outputStream: OutputStream)... | 0 | Kotlin | 0 | 0 | 235354ac0469d5ba9630b91124f6fcc4481dad34 | 322 | SmartLaw | MIT License |
app/src/main/java/com/hasbihal/data/repository/UserRepo.kt | hasbihal | 148,445,846 | false | null | package com.hasbihal.data.repository
import com.hasbihal.Hasbihal
import com.hasbihal.R
import com.hasbihal.data.response.Response
import com.hasbihal.network.UserApi
class UserRepository(private val userApi: UserApi) : Repository {
override fun getData(): Response {
val serviceResponse = userApi.getUse... | 0 | Kotlin | 0 | 3 | adb30f036ccaa337f4160bebecbc844f61d3871a | 572 | android | MIT License |
app/src/main/java/com/johnseremba/currency/di/HiltNetworkModule.kt | johnseremba | 566,894,451 | false | {"Kotlin": 51280} | package com.johnseremba.currency.di
import com.google.gson.GsonBuilder
import com.johnseremba.currency.BuildConfig
import com.johnseremba.currency.data.api.interceptor.AuthInterceptor
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.... | 0 | Kotlin | 0 | 0 | 350696d91a4bd2307a01198dbd8b5e5b24d9d20b | 1,749 | currency | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.