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/kotlin/com/soquiz/plugins/routing/routes/QuestionRoutes.kt | waminiyi | 859,267,402 | false | {"Kotlin": 38025, "Dockerfile": 827} | package com.soquiz.plugins.routing.routes
import com.soquiz.database.mapping.toQuestionWithDetails
import com.soquiz.database.repositories.QuestionRepository
import com.soquiz.models.Difficulty
import com.soquiz.models.Language
import com.soquiz.models.QuestionUpdate
import com.soquiz.models.QuestionWithDetails
import... | 0 | Kotlin | 0 | 0 | c1c02fea3cc7883cab6270a1aee9d2b01f9e43ba | 5,177 | soquiz_api | PostgreSQL License |
measurements/src/main/java/be/appwise/measurements/units/UnitArea.kt | appwise-labs | 349,150,482 | false | null | package be.appwise.measurements.units
import android.icu.util.MeasureUnit
import be.appwise.measurements.converters.UnitConverter
import be.appwise.measurements.converters.UnitConverterLinear
import be.appwise.measurements.isAtLeastO
class UnitArea(symbol: String, converter: UnitConverter, measureUnit: MeasureUnit? =... | 19 | Kotlin | 4 | 5 | 2eed1771160637082553336aa7673d076c518264 | 4,225 | AndroidCore | MIT License |
core/src/main/java/com/kylecorry/andromeda/core/specifications/Specification.kt | kylecorry31 | 394,273,851 | false | null | package com.kylecorry.andromeda.core.specifications
abstract class Specification<T> {
abstract fun isSatisfiedBy(value: T): Boolean
fun and(other: Specification<T>): Specification<T> {
return AndSpecification(this, other)
}
fun or(other: Specification<T>): Specification<T> {
return O... | 29 | Kotlin | 0 | 8 | 4ddd86ebe72ffec5c6f9800e61eb54b29d9dd5ed | 435 | andromeda | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/TrashClock.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 4,581 | icons | MIT License |
src/me/anno/utils/structures/arrays/IntArrayList.kt | won21kr | 351,713,352 | true | {"Kotlin": 1983578, "Java": 301507, "C": 75596, "GLSL": 9436} | package me.anno.utils.structures.arrays
class IntArrayList(val capacity: Int){
private val buffers = ArrayList<IntArray>()
var size = 0
operator fun get(index: Int) = buffers[index / capacity][index % capacity]
operator fun plusAssign(value: Int){
val index = size % capacity
if(index ==... | 0 | null | 0 | 0 | b85295f59ddfa9fc613a384d439fd1b30b06a5a4 | 416 | RemsStudio | Apache License 2.0 |
mybatis-flex-kotlin-ksp/src/test/kotlin/KTest.kt | KAMO030 | 678,726,164 | false | {"Kotlin": 229069, "Smarty": 4372, "Java": 95} | import org.junit.jupiter.api.Test
class KTest {
@Test
fun test() {
}
} | 0 | Kotlin | 4 | 25 | 5e4539da55d0d7d3ed9f5f4c401fd33b86f49457 | 84 | MyBatis-Flex-Kotlin | Apache License 2.0 |
keel-echo/src/main/kotlin/com/netflix/spinnaker/keel/echo/EchoService.kt | robumberger | 114,662,961 | true | {"Kotlin": 276511, "Shell": 2094} | /*
* Copyright 2017 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 0 | Kotlin | 0 | 0 | 5381ff45dde711ccaab904c61085c2d4bf2ad87c | 1,479 | keel | Apache License 2.0 |
app/src/main/java/chat/rocket/android/authentication/login/presentation/LoginPresenter.kt | mortada-codes | 139,255,922 | true | {"Kotlin": 780066, "Shell": 2737} | package chat.rocket.android.authentication.login.presentation
import chat.rocket.android.authentication.domain.model.LoginDeepLinkInfo
import chat.rocket.android.authentication.presentation.AuthenticationNavigator
import chat.rocket.android.core.lifecycle.CancelStrategy
import chat.rocket.android.helper.OauthHelper
im... | 0 | Kotlin | 0 | 1 | e6b014150523f5f5ee1390ca34893472a02bbfef | 21,981 | Rocket.Chat.Android | MIT License |
app/src/main/java/chat/rocket/android/authentication/login/presentation/LoginPresenter.kt | mortada-codes | 139,255,922 | true | {"Kotlin": 780066, "Shell": 2737} | package chat.rocket.android.authentication.login.presentation
import chat.rocket.android.authentication.domain.model.LoginDeepLinkInfo
import chat.rocket.android.authentication.presentation.AuthenticationNavigator
import chat.rocket.android.core.lifecycle.CancelStrategy
import chat.rocket.android.helper.OauthHelper
im... | 0 | Kotlin | 0 | 1 | e6b014150523f5f5ee1390ca34893472a02bbfef | 21,983 | Rocket.Chat.Android | MIT License |
app/src/main/java/com/enginebai/moviehunt/utils/Formatter.kt | enginebai | 32,935,880 | false | null | package com.enginebai.moviehunt.utils
import java.text.DateFormat
import java.text.SimpleDateFormat
import java.time.Instant
import java.time.format.DateTimeFormatter
import java.util.*
import kotlin.math.ln
import kotlin.math.pow
fun Int.format(): String {
// source: https://stackoverflow.com/questions/9769554/h... | 4 | Kotlin | 79 | 657 | a08608e4b23dbf7d1aebfe4dbd3f7811f267abc8 | 1,409 | MovieHunt | MIT License |
src/main/kotlin/io/runescript/plugin/ide/codeInsight/intention/RsNumberConversionIntention.kt | waleedyaseen | 642,509,853 | false | {"Kotlin": 389293, "Java": 258593, "Lex": 11778, "HTML": 1047} | package io.runescript.plugin.ide.codeInsight.intention
import com.intellij.codeInsight.intention.numeric.AbstractNumberConversionIntention
import com.intellij.codeInsight.intention.numeric.NumberConverter
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiFile
import com.intellij.psi.util.elementType
import... | 8 | Kotlin | 2 | 3 | 02196142c95e7e5923e425fff5535b5299f8ce64 | 2,704 | intellij-runescript | MIT License |
app/src/main/java/com/xluo/nops/adapter/PenListAdapter.kt | VocientLuo | 794,170,414 | false | {"Kotlin": 469730, "Java": 118636} | package com.xluo.nops.adapter
import android.content.Context
import android.graphics.Color
import android.view.LayoutInflater
import android.view.ViewGroup
import com.xluo.lib_base.adapter.BaseSingleRVAdapter
import com.xluo.nops.R
import com.xluo.nops.databinding.PopPaintListItemBinding
import com.xluo.pen.PenManage... | 0 | Kotlin | 0 | 0 | 2ffabe9101cf772ee51a76a48b4287e18e64a5ed | 1,884 | NoPS | Apache License 2.0 |
src/main/kotlin/com/xrpn/immutable/FKMap.kt | xrpn | 364,037,871 | false | null | package com.xrpn.immutable
import com.xrpn.imapi.*
import com.xrpn.immutable.FKSet.Companion.emptyIMKSet
import com.xrpn.immutable.FRBTree.Companion.nul
import com.xrpn.immutable.TKVEntry.Companion.ofIntKey
import com.xrpn.immutable.TKVEntry.Companion.ofk
import kotlin.reflect.KClass
//
// W W I P P P
// W ... | 0 | Kotlin | 1 | 3 | 09da19a3b49d41ae0679b853b4efe4605ba319f6 | 17,549 | immutable-kotlin | Apache License 2.0 |
src/main/kotlin/com/marconcini/kdlparser/objects/KDLValue.kt | Gryzor | 695,637,336 | false | {"Kotlin": 79997, "Java": 61971} | package com.marconcini.kdlparser.objects
import com.marconcini.kdlparser.print.PrintConfig
import com.marconcini.kdlparser.print.PrintUtil
import java.io.IOException
import java.io.StringWriter
import java.io.Writer
import java.math.BigDecimal
import java.math.BigInteger
abstract class KDLValue<T>(private val type: ... | 0 | Kotlin | 0 | 0 | fcc9e73eaebad2d95a06a18074be890b1a5a8253 | 2,835 | KDLkt | MIT License |
core/src/com/thedeadpixelsociety/ld34/scripts/WallScript.kt | deadpixelsociety | 47,857,871 | false | null | package com.thedeadpixelsociety.ld34.scripts
import com.badlogic.ashley.core.Engine
import com.badlogic.ashley.core.Entity
import com.badlogic.gdx.math.Vector2
import com.thedeadpixelsociety.ld34.Events
import com.thedeadpixelsociety.ld34.TimeKeeper
import com.thedeadpixelsociety.ld34.components.Box2DComponent
import ... | 0 | Kotlin | 1 | 12 | 198f23d667b6e1b4829481bd9f54aa5e26bde051 | 2,162 | roto-ld34 | MIT License |
7_kyu/A_Rule_of_Divisibility_by_7.kt | UlrichBerntien | 439,630,417 | false | {"Go": 293606, "Rust": 191729, "Python": 184557, "Lua": 137612, "Assembly": 89144, "C": 76738, "Julia": 35473, "Kotlin": 33204, "R": 27633, "C#": 20860, "Shell": 14326, "Forth": 3750, "PLpgSQL": 2117, "C++": 122} | package divseven
fun seven(n:Long):LongArray {
var counter = 0L
var m = n
while( m > 99 ) {
m = (m/10) - 2*(m%10)
++counter
}
return longArrayOf(m, counter)
} | 0 | Go | 0 | 0 | 034d7f2bdcebc503b02877f2241e4dd143188b43 | 195 | Codewars-Katas | MIT License |
k8s-plugin-igor/src/main/kotlin/com/amazon/spinnaker/igor/k8s/service/GitHubService.kt | nimakaviani | 287,605,692 | false | null | // Copyright 2022 Amazon.com, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 7 | Kotlin | 9 | 13 | 2a8bb2191ec71548fc318cdfde79b209707ede91 | 1,314 | managed-delivery-k8s-plugin | Apache License 2.0 |
app/src/main/kotlin/ru/annin/truckmonitor/domain/value/NavigationMenuItem.kt | VTUZ-12IE1bzud | 89,852,740 | false | null | package ru.annin.truckmonitor.domain.value
/**
* Пункты меню.
*
* @author <NAME>.
*/
enum class NavigationMenuItem {
HOME, HISTORY, USER_INFO, ABOUT, LOG_OUT
}
| 0 | Kotlin | 0 | 0 | ae30f652737892b23030f885a1a60b62e2080306 | 169 | TruckMonitor-Android | Apache License 2.0 |
app/src/main/java/com/eneskayiklik/word_diary/feature/quiz/component/session_components/WritingSession.kt | Enes-Kayiklik | 651,794,521 | false | null | package com.eneskayiklik.word_diary.feature.quiz.component.session_components
import androidx.compose.animation.animateColorAsState
import androidx.compose.animation.core.tween
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.... | 0 | Kotlin | 0 | 3 | c40d2b7fe1ce9b8926b660dcbbaa088fbca05f11 | 5,558 | WordDiary | MIT License |
native/native.tests/tests/org/jetbrains/kotlin/konan/blackboxtest/support/runner/AbstractLocalProcessRunner.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2021 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.konan.blackboxtest.support.runner
import org.jetbrains.kotlin.konan.blackboxtest... | 125 | Kotlin | 4813 | 39,375 | 83d2d2cfcfc3d9903c902ca348f331f89bed1076 | 1,678 | kotlin | Apache License 2.0 |
src/main/java/me/arial/spawner/Main.kt | AxieFeat | 784,539,859 | false | {"Kotlin": 62774} | package me.arial.spawner
import me.arial.spawner.particle.LoadParticles
import org.bukkit.configuration.file.FileConfiguration
import org.bukkit.configuration.file.YamlConfiguration
import org.bukkit.plugin.java.JavaPlugin
import java.io.File
class Main : JavaPlugin() {
companion object {
var instance: ... | 0 | Kotlin | 0 | 0 | a84fa454022cbeaaf7d0b318b705f4071768997a | 808 | FunSpawner | MIT License |
app/src/main/java/loodos/droid/bitcointicker/api/models/GenericResponse.kt | BatuhanGunes | 360,654,341 | false | null | package loodos.droid.bitcointicker.api.models
data class GenericResponse(
val code: Int,
val message: String
) | 0 | Kotlin | 1 | 0 | 40507e84762ef9a69c12de52d183119780401109 | 119 | BitcoinTicker | Apache License 2.0 |
PPWRemote6/java/com/example/yamamoto2002/ppwremote6/RemoteCommand.kt | yamamoto2002 | 39,676,340 | false | {"C#": 5012231, "C++": 2828025, "C": 1112991, "Mathematica": 137805, "HLSL": 70194, "TeX": 44058, "Cuda": 42378, "Kotlin": 41458, "Shell": 32693, "MATLAB": 10267, "Python": 5479, "Batchfile": 4075, "Assembly": 3075, "HTML": 2472, "Objective-C": 552, "PowerShell": 204, "Makefile": 167} | package com.example.yamamoto2002.ppwremote6
import android.util.Log
import java.io.IOException
import java.io.InputStream
import java.lang.System.arraycopy
import java.nio.ByteBuffer
import java.nio.ByteOrder
import java.nio.charset.StandardCharsets
/**
@param trackIdx Track idx. Used on Play Pause and Seek.
*/
... | 37 | C# | 1 | 0 | 331a9fc531269e5dfdc78548e583f793a7687dc0 | 11,495 | bitspersampleconv2 | MIT License |
meistercharts-commons/src/jvmMain/kotlin/it/neckar/logging/LevelJvm.kt | Neckar-IT | 599,079,962 | false | {"Kotlin": 5819931, "HTML": 87784, "JavaScript": 1378, "CSS": 1114} | package it.neckar.logging
/**
* Alias for our expected Level defined in commons to existing slf4j Level class
*/
actual typealias Level = org.slf4j.event.Level
| 3 | Kotlin | 3 | 5 | ed849503e845b9d603598e8d379f6525a7a92ee2 | 163 | meistercharts | Apache License 2.0 |
presentation/src/commonMain/kotlin/ireader/presentation/ui/component/list/scrollbars/LazyColumnScrollbar.kt | kazemcodes | 540,829,865 | true | {"Kotlin": 2179459} | package ireader.presentation.ui.component.list.scrollbars
import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import androidx.compo... | 0 | Kotlin | 0 | 6 | b6b2414fa002cec2aa0d199871fcfb4c2e190a8f | 1,827 | IReader | Apache License 2.0 |
app/src/main/java/com/vineelsai/dm/MainActivity.kt | VSPlayStore | 559,578,184 | false | {"Kotlin": 3283} | package com.vineelsai.dm
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.widget.Button
import android.widget.EditText
import androidx.appcompat.app.AppCompatActivity
import com.hbb20.CountryCodePicker
class MainActivity : AppCompatActivity() {
override fun onCreate(sav... | 0 | Kotlin | 0 | 0 | f8064bfd58865de6bdedd7886fbf1864fc20bf19 | 1,211 | Direct-Message | MIT License |
kotlin-reference-server/src/main/kotlin/org/stellar/reference/model/Customer.kt | rkharevych | 673,720,892 | true | {"YAML": 61, "Gradle Kotlin DSL": 10, "Markdown": 19, "Shell": 6, "Git Attributes": 1, "Dockerfile": 3, "Batchfile": 1, "Text": 3, "Ignore List": 1, "Makefile": 1, "Kotlin": 173, "INI": 3, "Java": 405, "Smarty": 1, "JSON": 18, "XML": 14, "Java Properties": 2, "TOML": 6, "HCL": 13, "Python": 1, "Dotenv": 2, "SQL": 8} | package org.stellar.reference.model
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class Customer(
val id: String? = null,
@SerialName("stellar_account") val stellarAccount: String? = null,
val memo: String? = null,
val memoType: String? = null,
@SerialN... | 1 | Java | 0 | 0 | 6442a92a84627af1993a007990918134b589982b | 852 | java-stellar-anchor-sdk | Apache License 2.0 |
feature_discovery/src/main/kotlin/com/leovp/feature_discovery/data/DiscoveryModule.kt | yhz61010 | 665,842,314 | false | {"Kotlin": 236627} | @file:Suppress("unused")
package com.leovp.feature_discovery.data
import com.leovp.feature_discovery.data.repository.DiscoveryRepositoryImpl
import com.leovp.feature_discovery.domain.repository.DiscoveryRepository
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.Sing... | 0 | Kotlin | 0 | 0 | c7c9e50984fc39ba1baf50378e4dde5b71c7205c | 780 | AndroidShowcase | MIT License |
imx-core-sdk-kotlin-jvm/src/test/kotlin/com/immutable/sdk/extensions/ECKeyPairExtensionsTest.kt | immutable | 467,767,205 | false | {"Kotlin": 668106, "Java": 131024, "Mustache": 29745, "Solidity": 10068} | package com.immutable.sdk.extensions
import junit.framework.TestCase.assertEquals
import org.junit.Test
import org.web3j.crypto.ECKeyPair
import java.math.BigInteger
class ECKeyPairExtensionsTest {
@Test
fun testGetUncompressedPublicKey() {
val priKey = BigInteger("649213322138664452954024524063596696... | 2 | Kotlin | 2 | 5 | 4a823d30db92356c325140874f5ba708547585ca | 901 | imx-core-sdk-kotlin-jvm | Apache License 2.0 |
src/main/kotlin/id/walt/idp/siwe/siwfManager.kt | walt-id | 472,421,655 | false | {"Kotlin": 129734, "Vue": 29550, "JavaScript": 4711, "Dockerfile": 1131} | package id.walt.idp.siwe
import id.walt.idp.config.IDPConfig
import id.walt.idp.oidc.OIDCSession
import io.ktor.client.*
import io.ktor.client.call.*
import io.ktor.client.engine.cio.*
import io.ktor.client.plugins.contentnegotiation.*
import io.ktor.client.plugins.logging.*
import io.ktor.client.request.*
import io.k... | 0 | Kotlin | 6 | 21 | e6c1c7694ca8da80e2510b0fbef3fd8a04a31d19 | 1,843 | waltid-idpkit | Apache License 2.0 |
app/src/main/java/com/uzias/starwarsshop/util/ErrorPredicate.kt | uziassantosferreira | 108,789,405 | false | null | package com.uzias.starwarsshop.util
interface ErrorPredicate {
fun evaluate(error: Throwable): Boolean
} | 0 | Kotlin | 1 | 38 | dec2d949a69e870bf37a76c4f22d86c93c12c143 | 109 | Star-Wars-Shop | Apache License 2.0 |
kondor-core/src/test/kotlin/com/ubertob/kondor/json/JsonRenderTest.kt | uberto | 343,412,601 | false | {"Kotlin": 298299, "Java": 46239, "Shell": 910} | package com.ubertob.kondor.json
import com.ubertob.kondor.json.JsonStyle.Companion.compact
import com.ubertob.kondor.json.JsonStyle.Companion.compactWithNulls
import com.ubertob.kondor.json.JsonStyle.Companion.pretty
import com.ubertob.kondor.json.JsonStyle.Companion.prettyWithNulls
import com.ubertob.kondor.json.json... | 0 | Kotlin | 10 | 66 | a43e01ddca5a493cd10824a485b3a7e81554afbf | 8,838 | kondor-json | Apache License 2.0 |
Functional Programming/Manipulating Lists/Exercise 6/src/Task.kt | marchdz | 633,862,396 | false | null | // ManipulatingLists/Task6.kt
package manipulatingListsExercise6
import atomictest.eq
fun <T> List<List<T>>.flatten(): List<T> =
flatMap { TODO() }
fun main() {
val listOfLists = listOf(listOf(1, 2, 3), listOf(4, 5, 6))
listOfLists.flatten() eq listOf(1, 2, 3, 4, 5, 6)
} | 0 | Kotlin | 0 | 0 | 1efabf8721c4efbb0891b7b9469efc9e7b36f189 | 280 | atomic-kotlin-exercises | MIT License |
app/src/main/java/com/chrynan/launcher/exception/NotDefaultLauncherException.kt | chRyNaN | 161,240,007 | false | null | package com.chrynan.launcher.exception
class NotDefaultLauncherException(errorMessage: String? = null) : RuntimeException(errorMessage) | 0 | Kotlin | 0 | 0 | c226fc3997b0e76bcb237e2d09ee47ceed5bad2e | 136 | Launcher | Apache License 2.0 |
app/src/main/java/com/example/winner/tebakgambar2.kt | laser123495 | 591,175,591 | false | {"Kotlin": 105375} | package com.example.winner
import android.app.Dialog
import android.content.Intent
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.media.MediaPlayer
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import android.widget.Butto... | 0 | Kotlin | 0 | 0 | 4ca08dd0f2268aca296da39b9a685d181170b62a | 4,653 | winner_app | Apache License 2.0 |
src/main/java/me/han/muffin/client/module/modules/other/StreamerModeModule.kt | SmallFishDD | 425,272,585 | false | {"Kotlin": 1725682, "Java": 943392, "GLSL": 15937} | package me.han.muffin.client.module.modules.other
import me.han.muffin.client.core.Globals
import me.han.muffin.client.event.EventStageable
import me.han.muffin.client.event.events.client.UpdateEvent
import me.han.muffin.client.event.events.render.TextEvent
import me.han.muffin.client.module.Module
import me.han.muffi... | 1 | Kotlin | 2 | 2 | 13235eada9edd9ccca039dea4d3a59cc7a930830 | 1,670 | muffin-0.10.4-src-leaked | MIT License |
app/src/main/java/com/myapp/medled/adapters/recycler_view/DoctorsRecyclerViewAdapter.kt | F-Y-E-F | 307,081,321 | false | null | package com.myapp.medled.adapters.recycler_view
import android.annotation.SuppressLint
import android.text.format.DateFormat
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.myapp.medled.R
import com.myapp.medled.adapters.recycler_view.view_ho... | 0 | Kotlin | 0 | 1 | e13b29a1be0cda44071d6326fff65025464dc0fd | 1,983 | medled-compiled-version | The Unlicense |
baseLib/src/main/java/me/ycdev/android/lib/common/internalapi/android/os/UserHandleIA.kt | yongce | 12,662,755 | false | null | package me.ycdev.android.lib.common.internalapi.android.os
import android.annotation.SuppressLint
import android.os.UserHandle
import androidx.annotation.RestrictTo
import timber.log.Timber
import java.lang.reflect.InvocationTargetException
import java.lang.reflect.Method
@SuppressLint("PrivateApi")
object UserHandle... | 0 | Kotlin | 6 | 19 | 5ffb4444b1e285a5f31138bbb98a39f869342c15 | 1,240 | AndroidLib | Apache License 2.0 |
app/src/main/java/com/business/the_movie_app/remote/MovieApiMethodImpl.kt | sterlingking1990 | 656,014,950 | false | null | package com.business.the_movie_app.remote
import com.business.the_movie_app.model.response.Movie
import io.reactivex.Single
import javax.inject.Inject
class MovieApiMethodImpl @Inject constructor(private val movieApi: MovieApi) : MovieApiMethod {
override fun getMovies(apiKey:String): Single<List<Movie>> {
... | 0 | Kotlin | 0 | 0 | 3bc93a50405a9b15e9e53be0a3b11bd5ef3b9e95 | 420 | the-movie-app | MIT License |
app/src/main/java/com/business/the_movie_app/remote/MovieApiMethodImpl.kt | sterlingking1990 | 656,014,950 | false | null | package com.business.the_movie_app.remote
import com.business.the_movie_app.model.response.Movie
import io.reactivex.Single
import javax.inject.Inject
class MovieApiMethodImpl @Inject constructor(private val movieApi: MovieApi) : MovieApiMethod {
override fun getMovies(apiKey:String): Single<List<Movie>> {
... | 0 | Kotlin | 0 | 0 | 3bc93a50405a9b15e9e53be0a3b11bd5ef3b9e95 | 420 | the-movie-app | MIT License |
app/src/test/java/com/softcube/re_reddit/application/base/BaseUseCaseTest.kt | wgarcia4190 | 374,144,617 | false | null | package com.softcube.re_reddit.application.base
import com.softcube.re_reddit.data.remote.model.ApiError
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
/**
* com.softcube.re_reddit.application.base
*
* Created by <NAME> on 6/5/21
* Copyright © 2021 <NAME>. All rights reserved.
*/
abstrac... | 0 | Kotlin | 0 | 1 | 9a8a1aac6c3c7daf7717cdc381acde328dbd4749 | 631 | re-reddit-android | MIT License |
domene/src/main/kotlin/no/nav/tiltakspenger/domene/behandling/Søknadsbehandling.kt | navikt | 487,246,438 | false | {"Kotlin": 916954, "Shell": 1309, "Dockerfile": 495, "HTML": 45} | package no.nav.tiltakspenger.domene.behandling
import no.nav.tiltakspenger.domene.saksopplysning.Saksopplysning
import no.nav.tiltakspenger.domene.saksopplysning.lagVurdering
import no.nav.tiltakspenger.domene.vilkår.Utfall
import no.nav.tiltakspenger.felles.BehandlingId
import no.nav.tiltakspenger.felles.Periode
impo... | 2 | Kotlin | 0 | 2 | 5f464f9a99de224789f79dda35ea949978bd04e8 | 7,781 | tiltakspenger-vedtak | MIT License |
brav/app/src/main/java/com/thadocizn/brav/views/PaymentActivity.kt | labs14-brav | 196,241,971 | false | {"Kotlin": 52438} | package com.thadocizn.brav.views
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.stripe.android.ApiResultCallback
import com.stripe.android.Stripe
import com.stripe.android.model.Card
import com.stripe.android.model.Token
import com.stripe.android.view.CardMultilineWidget
import com... | 0 | Kotlin | 1 | 0 | 7c2adfbe4fc365d58bf724e9c2d84e211b2d43b4 | 2,955 | Android | MIT License |
cassandra-data-service/src/main/kotlin/com/example/DataInitializer.kt | xmlking | 104,446,236 | false | null | package com.example
import com.example.domain.GuestBookEntry
import com.example.repository.GuestBookRepository
import org.springframework.context.event.ContextRefreshedEvent
import org.springframework.context.event.EventListener
import org.springframework.stereotype.Component
import reactor.core.publisher.Flux
@Compo... | 0 | Kotlin | 17 | 40 | 8ab1b2a2f98fae739562c733360fb4e69687879d | 1,151 | microservices-observability | MIT License |
app/src/main/java/ca/kieve/yomiyou/ui/theme/Color.kt | kieve | 442,198,320 | false | null | package ca.kieve.yomiyou.ui.theme
import androidx.compose.ui.graphics.Color
val DarkGray = Color(0xFF020202)
val Blue700 = Color(0xFF1976D2)
val Blue500 = Color(0xFF2196F3)
val Blue200 = Color(0xFF90CAF9)
| 0 | Kotlin | 0 | 3 | f65b454c0e21602744f875fee51554eaafd89bca | 207 | yomiyou | Apache License 2.0 |
app/src/main/java/ca/kieve/yomiyou/ui/theme/Color.kt | kieve | 442,198,320 | false | null | package ca.kieve.yomiyou.ui.theme
import androidx.compose.ui.graphics.Color
val DarkGray = Color(0xFF020202)
val Blue700 = Color(0xFF1976D2)
val Blue500 = Color(0xFF2196F3)
val Blue200 = Color(0xFF90CAF9)
| 0 | Kotlin | 0 | 3 | f65b454c0e21602744f875fee51554eaafd89bca | 207 | yomiyou | Apache License 2.0 |
plugin-dotnet-agent/src/test/kotlin/jetbrains/buildServer/dotnet/test/utils/TestUtils.kt | JetBrains | 49,584,664 | false | {"Kotlin": 2711266, "C#": 319161, "Java": 95520, "Dockerfile": 831, "CSS": 123} | package jetbrains.buildServer.dotnet.test.utils
import jetbrains.buildServer.TempFiles
class TestUtils {
companion object {
val myTempFiles = TempFiles()
@Suppress("UNCHECKED_CAST")
fun <T> uninitialized(value: T?): T = value as T
}
} | 3 | Kotlin | 25 | 94 | c7f12409b67420d5655780ce6e50638ce4ca1f8d | 269 | teamcity-dotnet-plugin | Apache License 2.0 |
mastodon/src/commonMain/kotlin/fediapi/mastodon/model/Error.kt | wingio | 739,512,706 | false | {"Kotlin": 162782} | package fediapi.mastodon.model
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* Represents an error message.
*
* @param error The error message.
* @param errorDescription A longer description of the error, mainly provided with the OAuth API.
*/
@Serializable
public data cla... | 0 | Kotlin | 0 | 1 | 60720c72c90cd503e9b4cff88bcef1ac71c578b6 | 429 | fediapi | MIT License |
app/src/main/java/com/example/weatherapp/feature_settings/domain/use_case/SaveSettings.kt | VladShurakov | 712,506,582 | false | {"Kotlin": 89164} | package com.example.weatherapp.feature_settings.domain.use_case
import com.example.weatherapp.feature_settings.domain.model.SettingsBundle
import com.example.weatherapp.feature_settings.domain.repository.SettingsRepository
/*
* Save settings in sharedPreferences
*/
class SaveSettings(
private val repository: S... | 3 | Kotlin | 0 | 2 | cf88fa650b18e7e11ed7294f1d073e1162b60016 | 455 | WeatherApp | Apache License 2.0 |
content-types/content-types-core-services/src/main/kotlin/org/orkg/contenttypes/domain/actions/papers/PaperResearchFieldCreator.kt | TIBHannover | 197,416,205 | false | {"Kotlin": 4657129, "Cypher": 219284, "Python": 4881, "Shell": 2767, "Groovy": 1936, "HTML": 240} | package org.orkg.contenttypes.domain.actions.papers
import org.orkg.contenttypes.domain.actions.CreatePaperCommand
import org.orkg.contenttypes.domain.actions.CreatePaperState
import org.orkg.contenttypes.domain.actions.StatementCollectionPropertyCreator
import org.orkg.graph.domain.Predicates
import org.orkg.graph.in... | 0 | Kotlin | 0 | 4 | d54b4998b1f620f03e0afbece9cd3f26abdbf055 | 1,135 | orkg-backend | MIT License |
base/gen/src/main/java/com/spirytusz/booster/processor/gen/functions/write/strategy/base/KtTypeWriteCodeGenerator.kt | spirytusz | 392,160,927 | false | null | package com.spirytusz.booster.processor.gen.functions.write.strategy.base
import com.spirytusz.booster.processor.base.data.type.KtType
import com.squareup.kotlinpoet.CodeBlock
interface KtTypeWriteCodeGenerator {
fun generate(
fieldName: String,
ktType: KtType,
codegenHook: (CodeBlock.Bui... | 1 | Kotlin | 4 | 27 | e2ede7bcece69832ae0267d1a34c4c6f2fdaac09 | 360 | GsonBooster | MIT License |
src/main/kotlin/com/skillw/uisystem/internal/manager/UIConfig.kt | q210520993 | 757,874,891 | false | {"Kotlin": 21497, "JavaScript": 5002} | package com.skillw.uisystem.internal.manager
import com.daxton.unrealcore.application.UnrealCoreAPI
import com.skillw.pouvoir.Pouvoir
import com.skillw.pouvoir.api.manager.ConfigManager
import com.skillw.pouvoir.internal.core.script.javascript.JSGlobal
import com.skillw.pouvoir.util.static
import com.skillw.uisystem.U... | 0 | Kotlin | 0 | 0 | 44f9aefe12c6f26d54ecbffd0d13b79968811a19 | 1,644 | UISystem | MIT License |
crystal-map-api/src/main/java/com/schwarz/crystalapi/query/Query.kt | SchwarzIT | 92,849,438 | false | {"Kotlin": 267497, "Java": 22478} | package com.schwarz.crystalapi.query
@Retention(AnnotationRetention.BINARY)
annotation class Query(val fields: Array<String>)
| 1 | Kotlin | 3 | 14 | 6737df3ffdde97826152d8239f403a01fa6db7af | 127 | crystal-map | MIT License |
app/src/main/java/com/renatojobal/orix/ui/HomeScreen.kt | renatojobal | 391,631,511 | false | null | package com.renatojobal.orix.ui
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.... | 0 | Kotlin | 0 | 1 | 5f3895f6f208585b4a8701d7793f3f7dfb2a2622 | 7,008 | Orix | MIT License |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/regular/BluetoothDisabled.kt | Konyaco | 574,321,009 | false | null |
package com.konyaco.fluent.icons.regular
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Regular.BluetoothDisabled: ImageVector
get() {
if (_bluetoothDisabl... | 0 | Kotlin | 0 | 24 | 336c85b59b6a6ad97a522a25a0042cd8e0750474 | 2,078 | compose-fluent-ui | Apache License 2.0 |
CoffeeProtectionandAnalysisSystem/app/src/main/java/com/example/coffeeprotectionandanalysissystem/view/detail/DetailArtikelActivity.kt | C241-PS120 | 797,800,217 | false | {"Kotlin": 65335} | package com.example.coffeeprotectionandanalysissystem.view.detail
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.bumptech.glide.Glide
import com.example.coffeeprotectionandanalysissystem.R
import com.... | 0 | Kotlin | 0 | 0 | 1f8acf8af157ece656ed9dd170e3ffbd3db11513 | 2,960 | bangkit-mobile-dev | Apache License 2.0 |
src/main/kotlin/at/cpickl/gadsu/appointment/gcal/sync/controller.kt | christophpickl | 56,092,216 | false | null | package at.cpickl.gadsu.appointment.gcal.sync
import at.cpickl.gadsu.appointment.Appointment
import at.cpickl.gadsu.appointment.AppointmentService
import at.cpickl.gadsu.appointment.gcal.CalendarNameInvalidException
import at.cpickl.gadsu.appointment.gcal.GCalService
import at.cpickl.gadsu.client.ClientService
import ... | 43 | Kotlin | 1 | 2 | f6a84c42e1985bc53d566730ed0552b3ae71d94b | 5,874 | gadsu | Apache License 2.0 |
src/ors_client/api/src/main/kotlin/org/astu/reviewed_objects_client/reviewed_objects_api/models/GetReviewPlanDTO.kt | sesuineg | 776,441,411 | false | {"Kotlin": 125595, "C#": 24410, "JavaScript": 475} | /**
* ors_server
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0
*
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manuall... | 0 | Kotlin | 0 | 0 | e45e4854a027fc6bd418a7b42f47b3ccebb0f2d4 | 949 | object-review-system | MIT License |
src/main/kotlin/shader/FragmentShader.kt | Heknon | 368,843,099 | false | null | package shader
import org.lwjgl.opengl.GL20
class FragmentShader(
shaderCode: String,
programId: Int
) : Shader(
shaderCode,
GL20.GL_FRAGMENT_SHADER,
programId
) | 0 | Kotlin | 0 | 0 | ef898d4dd6fbc1fc7a0f38ad990871a274d1c02d | 183 | Minecraft-Final-CS | MIT License |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bold/Arrangecircle.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Compa... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 3,317 | VuesaxIcons | MIT License |
mvi_rhine/src/main/java/com/github/qingmei2/mvi/di/Scopes.kt | qingmei2 | 167,174,767 | false | null | package com.github.qingmei2.mvi.di
import javax.inject.Scope
@Scope
@MustBeDocumented
@Retention(AnnotationRetention.RUNTIME)
annotation class ActivityScope
@Scope
@MustBeDocumented
@Retention(AnnotationRetention.RUNTIME)
annotation class FragmentScope | 4 | Kotlin | 25 | 170 | 6fce8ebc0b123bec8684f90f9b11fa606d469c42 | 255 | MVI-Architecture | Apache License 2.0 |
projects/unpaid-work-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/controller/user/UserService.kt | ministryofjustice | 500,855,647 | false | {"Kotlin": 4403685, "HTML": 72513, "D2": 44286, "Ruby": 26979, "Shell": 23475, "SCSS": 6630, "HCL": 2712, "Dockerfile": 2552, "JavaScript": 1428, "Python": 268} | package uk.gov.justice.digital.hmpps.controller.user
import org.springframework.stereotype.Service
import uk.gov.justice.digital.hmpps.service.UserAccessService
@Service
class UserService(private val userAccessService: UserAccessService) {
fun userAccessFor(username: String, crn: String) = userAccessService.case... | 4 | Kotlin | 0 | 2 | 35dce3c0cb146117ab52162a8a14d97394d05101 | 347 | hmpps-probation-integration-services | MIT License |
bytebank/src/main/kotlin/br/com/alura/bytebank/teste/testaExpressao.kt | FernandoLink | 670,308,529 | false | null | package br.com.alura.bytebank.teste
public fun testeExpressao() {
val entrada: String = "1.0"
val valorRecebido: Double? = try {
entrada.toDouble()
} catch (e: NumberFormatException) {
println("Problema na conversão")
e.printStackTrace()
null
}
val valorComTaxa: Do... | 0 | Kotlin | 0 | 0 | 872d9192a741afaa438894698ec0b5e31088434b | 747 | kotlin | MIT License |
pumps/ethereum/src/main/kotlin/fund/cyber/PumpApplication.kt | GoodforGod | 129,151,733 | true | {"Kotlin": 332422, "Shell": 139} | package fund.cyber
import fund.cyber.pump.common.ChainPump
import fund.cyber.search.configuration.CHAIN
import fund.cyber.search.configuration.env
import fund.cyber.search.model.chains.EthereumFamilyChain
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplicat... | 0 | Kotlin | 0 | 1 | dcf7f09463cd76674326caf87509e048882b4176 | 1,111 | cyber-search | MIT License |
src/main/kotlin/com/terraformation/backend/species/api/SpeciesLookupController.kt | terraware | 323,722,525 | false | {"Kotlin": 3741923, "HTML": 88820, "Python": 46278, "FreeMarker": 16407, "PLpgSQL": 3305, "Makefile": 746, "Dockerfile": 674} | package com.terraformation.backend.species.api
import com.fasterxml.jackson.annotation.JsonInclude
import com.terraformation.backend.api.ApiResponse404
import com.terraformation.backend.api.CustomerEndpoint
import com.terraformation.backend.api.SuccessResponsePayload
import com.terraformation.backend.db.default_schema... | 3 | Kotlin | 1 | 9 | 4b567755b38c1021a76d677f22d865c45d4099b1 | 5,953 | terraware-server | Apache License 2.0 |
app/src/main/java/com/peruapps/christopher_elias/ui/fragments/profile/ProfileModule.kt | ChristopherME | 189,524,605 | false | null | package com.peruapps.christopher_elias.ui.fragments.profile
import androidx.lifecycle.ViewModel
import com.peruapps.christopher_elias.di.ViewModelKey
import dagger.Binds
import dagger.Module
import dagger.android.ContributesAndroidInjector
import dagger.multibindings.IntoMap
/**
* Created by <NAME> on 30-may-2019
*... | 0 | Kotlin | 0 | 0 | 785b1e3938a69936b0c0732f82cb6b40fbfc8d0b | 675 | senior-test | Apache License 2.0 |
examples/src/main/kotlin/examples/tweens/FadingInASprite.kt | hiperbou | 77,711,558 | false | {"Kotlin": 456816, "HTML": 335} |
package examples.tweens
import Phaser.*
class FadingInASprite: State() {
//var game = Phaser.Game(800, 600, Phaser.AUTO, "phaser-example", object{ var preload= preload; var create= create })
override fun preload() {
game.load.image("space", "assets/misc/starfield.png", 138, 15)
game.load.image(... | 2 | Kotlin | 11 | 55 | 18d247ecf44c32f5aca0560dce7727c10dfe196a | 711 | kotlin-phaser | MIT License |
app/src/main/java/com/chalkbox/propertyfinder/application/components/MainActivityComponent.kt | RiversideOtters | 250,147,724 | false | null | package com.chalkbox.propertyfinder.application.components
import com.chalkbox.propertyfinder.MainActivity
import com.chalkbox.propertyfinder.application.scopes.MainActivityScope
import dagger.Component
@MainActivityScope
@Component(
dependencies = [
BaseComponent::class
]
)
interface MainActivityComp... | 0 | Kotlin | 0 | 0 | 92c3be6363c19a68493fd91546e1bd373bc5ae82 | 363 | PropertyFinder-Android | MIT License |
baselibrary/src/main/java/com/sscl/baselibrary/widget/AutoSwipeRefreshLayout.kt | JackiePenghe | 576,202,469 | false | null | package com.sscl.baselibrary.widget
import android.content.*
import android.util.AttributeSet
import android.view.*
import java.lang.Exception
import java.lang.reflect.Field
import java.lang.reflect.Method
import kotlin.jvm.JvmOverloads
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
/**
* 可以自动触发下拉刷新的控... | 0 | Kotlin | 0 | 0 | 0fb258b891552e8eb1f6f5d8132ad923c399773d | 1,368 | baselibrary-for-kotlin | Apache License 2.0 |
app/src/main/java/dev/yunzai/milibrary/activities/SignUpActivity.kt | yunjaena | 373,853,053 | false | null | package dev.yunzai.milibrary.activities
import android.os.Bundle
import android.view.inputmethod.EditorInfo
import dev.yunzai.milibrary.R
import dev.yunzai.milibrary.base.activity.ViewBindingActivity
import dev.yunzai.milibrary.base.hideKeyBoard
import dev.yunzai.milibrary.base.showAlertDialog
import dev.yunzai.milibr... | 0 | Kotlin | 0 | 2 | 4c6774ff46c20eb53465ef64366a2ee0c90d2930 | 2,993 | MiliBrary_AOS | Apache License 2.0 |
app/src/main/java/co/utils/CrashUtils.kt | CANDY-HOUSE | 280,844,064 | false | {"Kotlin": 675713, "Shell": 406} | package co.utils
import android.annotation.SuppressLint
import android.content.Context
import android.content.pm.PackageManager
import android.os.Build
import android.provider.Settings
import android.util.Log
import org.json.JSONException
import org.json.JSONObject
import java.io.*
import java.text.SimpleDateFormat
im... | 14 | Kotlin | 11 | 24 | e1cf834bc30b619751566542034079ee45239ba5 | 10,246 | SesameSDK_Android_with_DemoApp | MIT License |
presentation/src/test/java/com/tayfuncesur/presentation/viewmodel/ProjectsViewModelTest.kt | TayfunCesur | 184,639,163 | false | null | package com.tayfuncesur.presentation.viewmodel
import android.arch.core.executor.testing.InstantTaskExecutorRule
import com.nhaarman.mockito_kotlin.*
import com.tayfuncesur.domain.bookmark.GetBookmarkedProjects
import com.tayfuncesur.domain.getProjects.GetProjects
import com.tayfuncesur.domain.model.Project
import com... | 0 | Kotlin | 10 | 65 | 8aa6705cf42651422ec677c5e48c9cab12e54b9f | 2,752 | GithubProjectBrowser | Apache License 2.0 |
src/test/java/org/jitsi/rtp/rtcp/RtcpSdesPacketTest.kt | bbaldino | 173,043,170 | true | {"Kotlin": 349802} | /*
* Copyright @ 2018 - present 8x8, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 0 | Kotlin | 0 | 0 | b8226d21296d773b792eaff18add487c27d35b1c | 3,470 | jitsi-rtp-1 | Apache License 2.0 |
ktor-network/androidNative/src/io/ktor/network/util/SocketUtils.androidNative.kt | ktorio | 40,136,600 | false | {"Kotlin": 6007831, "C": 453568, "Python": 948, "JavaScript": 775, "HTML": 336, "Mustache": 77, "Handlebars": 9} | /*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package io.ktor.network.util
import io.ktor.network.interop.*
import kotlinx.cinterop.*
import platform.posix.*
@OptIn(ExperimentalForeignApi::class)
internal actual fun ktor_inet_ntop(
... | 156 | Kotlin | 1051 | 12,926 | f90f2edf11caca28a61dbe9973faae64c17a2842 | 917 | ktor | Apache License 2.0 |
app/src/main/java/com/gwj/sem4_anime_app/data/model/FavouriteAnime.kt | GWJian | 730,619,677 | false | {"Kotlin": 141201} | package com.gwj.sem4_anime_app.data.model
import android.util.Log
import com.gwj.sem4_anime_app.data.model.data.Images
import com.gwj.sem4_anime_app.data.model.data.Jpg
import com.gwj.sem4_anime_app.data.model.data.Webp
data class FavouriteAnime(
val id: String = "",
val mal_id: Int?,
val title: String,
... | 0 | Kotlin | 0 | 0 | bc0e0d52caadcacf33c0b01e6dd3acc6f9f546d7 | 1,171 | sem4_anime_app | MIT License |
commons/src/main/java/net/xpece/android/app/XpFragment.kt | cypherdare | 94,902,452 | true | {"Java": 709225, "Kotlin": 187437, "IDL": 719, "Batchfile": 44} | @file:JvmName("XpFragment")
package net.xpece.android.app
import android.support.v4.app.DialogFragment
import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentTransaction
/**
* Created by Eugen on 29.10.2016.
*/
fun Fragment.invalidateOptionsMenu(... | 0 | Java | 0 | 0 | 278a3fde7a662635450c5296b372a91b5f33db60 | 1,685 | android-commons | Apache License 2.0 |
library/src/main/java/io/dotlottie/loader/models/DotLottieConfig.kt | dotlottie | 301,698,570 | false | null | package io.dotlottie.loader.models
import io.dotlottie.loader.DotLottieCache
import io.dotlottie.loader.DotLottieCacheStrategy
import io.dotlottie.loader.DotLottieConverter
/**
* Model for loader configuration options
* must initialize default values for all as
* it will be used as the default global config
*/
p... | 0 | Kotlin | 1 | 4 | 7c3ad2dd37cc60ea1a437d538c946747061311d3 | 502 | dotlottieloader-android | The Unlicense |
app/src/main/java/com/example/themoviedb/data/room/AppDatabase.kt | arenas782 | 550,447,044 | false | {"Kotlin": 92444} | package com.example.themoviedb.data.room
import androidx.room.Database
import androidx.room.RoomDatabase
import com.example.themoviedb.data.model.response.tvshows.TVShow
import com.example.themoviedb.data.model.RemoteKeys
@Database(entities = [TVShow::class, RemoteKeys::class], version = 5)
abstract class AppDatabase... | 0 | Kotlin | 0 | 0 | 05aad8942a280eb917b74d0304a22100cf385b29 | 517 | the_movie_dbv_compose | MIT License |
kotlin-react-core/src/jsMain/kotlin/react/internal/isolatedPromise.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12635434, "JavaScript": 423801} | package react.internal
import js.coroutines.internal.IsolatedCoroutineScope
import js.coroutines.promise
import js.promise.Promise
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.CoroutineStart
internal fun <T> isolatedPromise(
block: suspend CoroutineScope.() -> T,
): Promise<T> =
Isolated... | 38 | Kotlin | 162 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 441 | kotlin-wrappers | Apache License 2.0 |
src/test/kotlin/org/neo4j/graphql/AugmentationTests.kt | claymccoy | 291,179,346 | true | {"Kotlin": 177994, "Python": 1290} | package org.neo4j.graphql
import org.junit.jupiter.api.TestFactory
import org.neo4j.graphql.utils.GraphQLSchemaTestSuite
class AugmentationTests {
@TestFactory
fun `augmentation-tests`() = GraphQLSchemaTestSuite("augmentation-tests.adoc").run()
}
| 0 | null | 0 | 0 | 9187d2218b91201a106e0614ed6895152536f5fc | 258 | neo4j-graphql-java | Apache License 2.0 |
app/src/main/java/com/github/skytoph/taski/di/habit/WorkManagerModule.kt | skytoph | 708,362,840 | false | {"Kotlin": 602263} | package com.github.skytoph.taski.di.habit
import android.content.Context
import androidx.work.WorkManager
import com.github.skytoph.taski.core.adapter.GeneralTypeAdapterFactory
import com.github.skytoph.taski.core.alarm.HabitUriConverter
import com.github.skytoph.taski.core.alarm.ReminderScheduler
import com.github.sk... | 0 | Kotlin | 0 | 1 | 6639c40403f384c2125b6370499fcd6a0120a72b | 1,250 | HabitMate | The Unlicense |
Skyflow/src/main/kotlin/Skyflow/Margin.kt | skyflowapi | 396,648,989 | false | {"Kotlin": 674976, "Shell": 585} | package Skyflow
class Margin(val left: Int = 10, val top: Int = 10, val right: Int = 10, val bottom: Int = 10) {} | 12 | Kotlin | 2 | 7 | 0ffcbf43c2767d6324f29952e8ce94d354aa57d8 | 114 | skyflow-android | MIT License |
examples/src/main/java/com/mapbox/navigation/examples/utils/RouteDrawingUtil.kt | jackgregory | 337,518,939 | true | {"Kotlin": 1912845, "Java": 124339, "Python": 10396, "Makefile": 5455, "JavaScript": 2362, "Shell": 1686} | package com.mapbox.navigation.examples.utils
import android.annotation.SuppressLint
import android.graphics.Color
import android.widget.Toast
import com.mapbox.api.directions.v5.DirectionsCriteria
import com.mapbox.api.matching.v5.MapboxMapMatching
import com.mapbox.api.matching.v5.models.MapMatchingResponse
import co... | 0 | null | 0 | 0 | 81a06b641ddbdb4bc05c35663618b56615da6312 | 9,570 | mapbox-navigation-android | Apache License 2.0 |
desktop/src/jvmMain/kotlin/presentation/window/translation/TranslationScreenState.kt | kisa002 | 584,385,916 | false | {"Kotlin": 223546, "Ruby": 1722, "Swift": 860} | package presentation.window.translation
sealed class TranslationScreenState {
object Home : TranslationScreenState()
object Translate : TranslationScreenState()
object Recent : TranslationScreenState()
object Saved : TranslationScreenState()
data class Error(val errorEvent: TranslationScreenErrorEv... | 1 | Kotlin | 2 | 51 | fbe00ebee9ae05c5e10986b7dedabc4609c0085e | 353 | Transer | MIT License |
keventbus/src/main/java/com/library/keventbus/SubscriberInfoIndex.kt | wkxjc | 350,606,522 | false | null | package com.library.keventbus
interface SubscriberInfoIndex {
val methodsByClass: Map<Class<*>, MutableList<SubscriberMethodInfo>>
} | 0 | Kotlin | 0 | 1 | b953e60b8cf95f83adbc13aebb8a5a60f606a0ba | 137 | KEventBus | Apache License 2.0 |
SKIE/compiler/kotlin-plugin/src/kgp_common/kotlin/co/touchlab/skie/sir/element/SirDeclaration.kt | touchlab | 685,579,240 | false | {"Kotlin": 1136590, "Swift": 24501, "Shell": 183} | package co.touchlab.skie.sir.element
sealed interface SirDeclaration : SirElement {
val parent: SirDeclarationParent
}
val SirDeclaration.module: SirModule
get() = parent.module
val SirDeclaration.namespaceParent: SirDeclarationParent
get() = if (parent is SirDeclarationNamespace) parent.namespaceParent... | 6 | Kotlin | 4 | 327 | 00e56fd551ab19df6945a456060688888848ddf1 | 436 | SKIE | Apache License 2.0 |
app/src/main/java/com/miguel/match_point/Match.kt | migueldemollet | 396,967,805 | false | null | package com.miguel.match_point
class Match(service: Int, sets: Int, goldPoint: Boolean) {
private var isTieBreak = false
private var state = 0
private var side = 0
private var service = service
private val sets = sets
private val goldPoint = goldPoint
fun point(playerWin: Player, playerLo... | 0 | Kotlin | 0 | 1 | 2fed6750664e2e0ea3c40a7ed6a8e125ff0ea1ad | 2,529 | Match-Point | MIT License |
app/src/main/java/com/grudus/minutnikpoprzezwieki/dto/TimeState.kt | grudus | 146,987,884 | false | null | package com.grudus.minutnikpoprzezwieki.dto
data class TimeState(val remainingTime: String, val progress: Float) {
init {
require(progress in 0.0..100.0)
}
} | 0 | Kotlin | 0 | 0 | a127d02adc248bec6fdf8a5d5a67ca8143e53a9d | 174 | MinutnikPoprzezWieki | MIT License |
Ppap/app/src/main/java/com/jeongg/ppap/data/dto/user/RefreshTokenDTO.kt | PnuPostAlarmProject | 674,548,015 | false | {"Kotlin": 224253} | package com.jeongg.ppap.data.dto.user
import kotlinx.serialization.Serializable
@Serializable
data class RefreshTokenDTO(
val refreshToken: String
)
| 0 | Kotlin | 0 | 5 | dd489dc5b6fdad778e7634a4a45f1760fc7ed920 | 155 | android | MIT License |
app/src/main/java/br/com/connectattoo/local/database/entitys/TagEntity.kt | connectattoo | 601,818,127 | false | {"Kotlin": 104943, "Shell": 88, "JavaScript": 67} | package br.com.connectattoo.local.database.entitys
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import br.com.connectattoo.data.Tag
@Entity(tableName = "client_profile_tags")
data class TagEntity(
@PrimaryKey(autoGenerate = true) val idRoom: Long = 0,
@ColumnInfo... | 0 | Kotlin | 3 | 0 | 91abd4461e2d3d24e982e5815ec4ca29dd2e0e98 | 579 | connectattoo.android | MIT License |
app/src/main/java/com/soszynski/mateusz/dotmeme/activities/FoldersSettingsActivity.kt | TheLastGimbus | 163,899,086 | false | null | package com.soszynski.mateusz.dotmeme.activities
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.soszynski.mateusz.dotmeme.R
import kotlinx.android.synthetic.main.activity_folders_settings.*
class FoldersSettingsActivity : AppCompatActivity() {
override fun onCreate(savedInsta... | 0 | Kotlin | 0 | 3 | 126dcccf2f822ec3733b0737db6f381b86f6b22f | 537 | .meme | Apache License 2.0 |
app/src/main/java/com/example/earthimagesapp/domain/model/Day.kt | mateico | 637,574,482 | false | null | package com.example.earthimagesapp.domain.model
import com.example.earthimagesapp.data.local.DayStatus
data class Day(
val date: String,
val status: DayStatus
)
| 1 | Kotlin | 0 | 1 | 03bf5b5034cf8bede35d846333e88438023910b9 | 171 | earth_image_app | MIT License |
src/main/kotlin/dev/sublab/substrate/metadata/lookup/type/def/RuntimeTypeDefVariant.kt | sublabdev | 540,213,973 | false | {"Kotlin": 157012} | /**
*
* Copyright 2023 SUBSTRATE LABORATORY LLC <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by appl... | 3 | Kotlin | 3 | 6 | 8a5469b2820c74f4a5a85576db4fdd681cfefa94 | 1,053 | substrate-client-kotlin | Apache License 2.0 |
src/Day03.kt | baghaii | 573,918,961 | false | {"Kotlin": 11922} | fun main() {
fun part1(input: List<String>): Int {
var totalScore = 0
input.forEach {
val firstHalf = it.substring(0, it.length / 2)
val secondHalf = it.substring(it.length / 2, it.length )
val inBoth = mutableListOf<Char>()
firstHalf.forEach { ch ->
... | 0 | Kotlin | 0 | 0 | 8c66dae6569f4b269d1cad9bf901e0a686437469 | 1,401 | AdventOfCode2022 | Apache License 2.0 |
src/day02/Day02.kt | Dr4kn | 575,092,295 | false | {"Kotlin": 12652} | package day02
import readInput
import java.lang.Exception
fun main() {
fun convertToValue(letter: String): Int {
return when (letter) {
"A", "X" -> 1 // Rock
"B", "Y" -> 2 // Paper
"C", "Z" -> 3 // Scissors
else -> throw Exception("Not a valid Symbol")
... | 0 | Kotlin | 0 | 0 | 6de396cb4eeb27ff0dd9a98b56e68a13c2c90cd5 | 2,376 | advent-of-code-2022 | Apache License 2.0 |
src/main/kotlin/no/nav/pensjon/opptjening/omsorgsopptjening/bestem/pensjonsopptjening/person/external/pdl/PdlResponse.kt | navikt | 593,529,397 | false | {"Kotlin": 589332, "Dockerfile": 97} | package no.nav.pensjon.opptjening.omsorgsopptjening.bestem.pensjonsopptjening.person.external.pdl
import com.fasterxml.jackson.annotation.JsonFormat
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import no.nav.pensjon.opptjening.omsorgsopptjening.bestem.pensjonsopptjening.omsorgsopptjening.model.Familier... | 1 | Kotlin | 1 | 0 | 3e2c545126479f2bd50907ec47ada6d4a9ead3a1 | 4,592 | omsorgsopptjening-bestem-pensjonsopptjening | MIT License |
app/src/main/java/com/whalescale/binit/view/main/screens/drop_locations/DropOffLocationsScreen.kt | Ninise | 605,546,083 | false | {"Kotlin": 257021} | package com.whalescale.binit.view.main.screens.drop_locations
import android.widget.Toast
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.shape.Ro... | 0 | Kotlin | 0 | 0 | 57bfe5d533c7576e83126220d7f43ecf27404d4f | 5,370 | BinitAndroid | Apache License 2.0 |
compiler/testData/ir/irText/classes/inlineClassSyntheticMethods.kt | mcpiroman | 375,462,779 | true | {"Kotlin": 73023707, "Java": 6608057, "Swift": 4256908, "C": 2635707, "C++": 2546276, "Objective-C": 636652, "JavaScript": 211357, "Objective-C++": 165224, "Groovy": 103363, "Python": 44364, "Shell": 31842, "TypeScript": 22854, "Lex": 18369, "Batchfile": 11692, "CSS": 11368, "HTML": 6971, "Ruby": 6839, "EJS": 5241, "Do... | // !LANGUAGE: +InlineClasses
// MUTE_SIGNATURE_COMPARISON_K2: JVM_IR
// ^ KT-57429
class C<T>(val t: T) {
override fun hashCode(): Int = t as Int
}
inline class IC<TT>(val c: C<TT>) {
fun foo(): Int = c.hashCode()
}
fun box(): String {
val ic = IC<Int>(C(42))
if (ic.foo() != 42) return "FAIL"
r... | 0 | Kotlin | 0 | 1 | 973adb6a38df87d16ee089eee7faafa1983fd76a | 332 | kotlin | Apache License 2.0 |
library/src/main/java/com/inconceptlabs/designsystem/components/emptyitem/EmptyItemTokens.kt | inconcept | 766,961,605 | false | {"Kotlin": 81700} | package com.inconceptlabs.designsystem.components.emptyitem
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.runtime.Composable
import androidx.compose.runtime.compositionLocalOf
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.TextStyle
import androidx.compose.u... | 0 | Kotlin | 0 | 6 | a22053277401b9762391cc64a34e05c0bd67a28d | 1,340 | android-design-system | MIT License |
src/main/kotlin/it/andbin/colortools/controller/model/ColorsBrowserForm.kt | andbin | 272,759,577 | false | null | /*
* Copyright (C) 2020 <NAME> ("andbin")
*
* This file is part of the "Kotlin+SpringBoot Color Tools" project
* and is released under the MIT License. See one of the license files
* included in the root of the project for the full text of the license.
*/
package it.andbin.colortools.controller.model
import it.... | 0 | Kotlin | 0 | 0 | 31a6c1a59b75bd1f45de712a4cbba1632b1ce104 | 655 | kotlin-springboot-color-tools | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.