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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
mordant/src/jvmTest/kotlin/com/github/ajalt/mordant/terminal/TerminalCursorTest.kt | caleb-lewis | 318,118,618 | true | {"Kotlin": 272310, "Python": 5498} | package com.github.ajalt.mordant.terminal
import com.github.ajalt.mordant.internal.CSI
import io.kotest.data.blocking.forAll
import io.kotest.data.row
import io.kotest.matchers.shouldBe
import org.junit.Test
private fun c(b: TerminalCursor.() -> Unit): String {
val t = VirtualTerminal()
t.cursor.b()
retur... | 0 | null | 0 | 0 | 0b52548c3a8f84074ea7f2726700257a163af267 | 2,062 | mordant | Apache License 2.0 |
src/ru/vkurdin/idea/php/lambdafolding/TreeUtils.kt | vkurdin | 63,182,447 | false | null | package ru.vkurdin.idea.php.lambdafolding
import com.intellij.psi.PsiElement
fun PsiElement.prevSiblings() = elementSeq { it.prevSibling }
fun PsiElement.nextSiblings() = elementSeq { it.nextSibling }
fun PsiElement.parents() = elementSeq { it.parent }
inline private fun <T> T.elementSeq(crossinline elementProvide... | 5 | Kotlin | 3 | 32 | 7a18d84585b70a74256b63c10bb8269b5a268c6e | 772 | idea-php-lambda-folding | MIT License |
sdk/src/main/java/com/appsci/panda/sdk/data/subscriptions/google/PurchasesGoogleStore.kt | AppSci | 303,741,765 | false | {"Kotlin": 143280, "HTML": 82124} | package com.appsci.panda.sdk.data.subscriptions.google
import com.android.billingclient.api.*
import com.appsci.panda.sdk.data.subscriptions.PurchasesMapper
import com.appsci.panda.sdk.data.subscriptions.local.PurchaseEntity
import com.appsci.panda.sdk.data.subscriptions.local.TYPE_PRODUCT
import com.appsci.panda.sdk.... | 0 | Kotlin | 0 | 1 | 99d2c07a480164fa6e7bee59b13f820510fabc04 | 4,776 | panda-sdk-android | MIT License |
0485.Max Consecutive Ones.kt | sarvex | 842,260,390 | false | {"Kotlin": 1775678, "PowerShell": 418} | internal class Solution {
fun findMaxConsecutiveOnes(nums: IntArray): Int {
var ans = 0
var cnt = 0
for (x in nums) {
if (x == 1) {
ans = max(ans, ++cnt)
} else {
cnt = 0
}
}
return ans
}
}
| 0 | Kotlin | 0 | 0 | 17a80985d970c8316fb694e4952692e598d700af | 248 | kotlin-leetcode | MIT License |
src/test/kotlin/org/xpathqs/core/reflection/parser/ObjectWithNoScanTest.kt | xpathqs | 363,898,788 | false | null | /*
* Copyright (c) 2021 XPATH-QS
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, d... | 3 | Kotlin | 6 | 3 | 1e026264117655efa7f20fa8120065376e80d9ae | 3,307 | core | MIT License |
src/main/kotlin/de/fruiture/cor/ccs/CCSApplication.kt | fruiture | 750,555,472 | false | {"Kotlin": 75404} | package de.fruiture.cor.ccs
import de.fruiture.cor.ccs.git.Git
import de.fruiture.cor.ccs.semver.PreRelease
import de.fruiture.cor.ccs.semver.PreReleaseIndicator.Strategy
import de.fruiture.cor.ccs.semver.Release
import de.fruiture.cor.ccs.semver.Version
import kotlinx.serialization.ExperimentalSerializationApi
import... | 0 | Kotlin | 0 | 0 | db20c964acd2f615e3a9929396fef0162cde2169 | 3,137 | git-ccs | MIT License |
buildSrc/src/main/kotlin/ProjectConfig.kt | HiWay-Media | 777,670,503 | false | {"Kotlin": 159872} | import org.gradle.api.JavaVersion
object ProjectConfig {
const val compileSdk = 34
const val applicationId = "com.hiway.media"
const val minSdk = 24
const val targetSdk = 34
const val versionCode = 1
const val versionName = "1.0.4e"
const val jvmTarget = "17"
const val kotlinCompilerExt... | 0 | Kotlin | 0 | 2 | 6b3ac251e0475d1815b7295ea9cc7058eeb2e9f5 | 459 | Hiway-Media-Player | MIT License |
cassandra-service/src/main/kotlin/fund/cyber/markets/cassandra/model/TokensPair.kt | cybercongress | 97,112,173 | false | {"Kotlin": 330007, "HTML": 7008, "Dockerfile": 907} | package fund.cyber.markets.cassandra.model
import fund.cyber.markets.common.model.TokensPair
import org.springframework.data.cassandra.core.mapping.UserDefinedType
@UserDefinedType("tokenpair")
data class CqlTokensPair(
val base: String,
val quote: String
) {
constructor(pair: TokensPair): this(
b... | 17 | Kotlin | 10 | 46 | f3254bc93784f4d570a7d6bfda58f76413cf6444 | 475 | cyber-markets | MIT License |
diskordin-base/src/main/kotlin/org/tesserakt/diskordin/impl/core/entity/Guild.kt | ITesserakt | 218,969,129 | false | null | @file:Suppress("DEPRECATION")
package org.tesserakt.diskordin.impl.core.entity
import org.tesserakt.diskordin.core.cache.CacheProcessor
import org.tesserakt.diskordin.core.data.*
import org.tesserakt.diskordin.core.data.json.response.*
import org.tesserakt.diskordin.core.entity.*
import org.tesserakt.diskordin.core.... | 1 | Kotlin | 1 | 12 | e93964fcb5ecb0e1d03dd0fc7d3dd2637a0e08ae | 9,934 | diskordin | Apache License 2.0 |
library/src/main/java/ru/yoomoney/sdk/kassa/payments/model/ConfirmationType.kt | yoomoney | 140,608,545 | false | null | /*
* The MIT License (MIT)
* Copyright © 2021 NBCO YooMoney LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
* associated documentation files (the “Software”), to deal in the Software without restriction, including
* without limitation the rights to use, co... | 9 | Kotlin | 21 | 35 | 421619230cce92280641ea943c5ecb00f3dd8827 | 1,691 | yookassa-android-sdk | MIT License |
src/commonTest/kotlin/net.iceyleagons.klarity.test/customization/FunctionTest.kt | IceyLeagons | 669,827,661 | false | {"Kotlin": 93338, "ANTLR": 496} | /*
* MIT License
*
* Copyright (c) 2023 IceyLeagons and Contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* t... | 0 | Kotlin | 0 | 1 | 59e85a24587addfb9c16e0f3a22e57b23e4bf259 | 2,431 | Klarity | MIT License |
shared/src/commonMain/kotlin/com/jerryokafor/networth/Greeting.kt | jerryOkafor | 696,975,183 | false | {"Kotlin": 42659, "Ruby": 2447, "Swift": 2337, "Shell": 228} | package com.jerryokafor.networth
class Greeting {
private val platform: Platform = DefaultPlatform()
fun greet(): String {
return "Hello, ${platform.name}!"
}
}
| 0 | Kotlin | 1 | 15 | 3ac464f74ddde82389a5b39c070835c2afc35b2d | 183 | NetWorth | Apache License 2.0 |
src/main/kotlin/org/generousg/fruitylib/util/NetUtils.kt | wingertge | 95,062,948 | false | null | package org.generousg.fruitylib.util
import com.google.common.collect.ImmutableList
import com.google.common.collect.ImmutableSet
import io.netty.channel.ChannelFutureListener
import net.minecraft.entity.player.EntityPlayerMP
import net.minecraft.world.WorldServer
import net.minecraftforge.fml.common.network.handshake... | 0 | Kotlin | 0 | 1 | c7d0d67c07b0b47c3a3ae8371795d2b6f59687aa | 1,519 | FruityLib | MIT License |
core/src/test/kotlin/dev/andrewohara/getit/api/AuthorizerTest.kt | oharaandrew314 | 517,856,092 | false | null | package dev.andrewohara.getit.api
import com.nimbusds.jose.JWSAlgorithm
import com.nimbusds.jose.jwk.source.ImmutableSecret
import dev.andrewohara.getit.UserId
import io.kotest.matchers.shouldBe
import org.junit.jupiter.api.Test
import java.time.Clock
import java.time.Instant
import java.time.ZoneOffset
class Authori... | 0 | Kotlin | 0 | 2 | fad5595f8f51bc366e0ec1e21b5caef7c50f9809 | 1,517 | getit-api | Apache License 2.0 |
android/app/src/main/kotlin/com/example/dart_builder/MainActivity.kt | zeeshux7860 | 317,635,428 | false | {"C++": 24649, "CMake": 14872, "Dart": 6871, "HTML": 1513, "C": 1383, "Swift": 1258, "Kotlin": 129, "Objective-C": 38} | package com.example.dart_builder
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | C++ | 0 | 0 | 09fc59cfb8b030eb1edd0866e657a088e751e3e3 | 129 | dart_builder | MIT License |
src/main/kotlin/config/manager/GuildConfigImporter.kt | holasoyender | 540,916,134 | false | null | package config.manager
import interfaces.CommandResponse
import net.dv8tion.jda.api.entities.Guild
import net.dv8tion.jda.api.entities.Message.Attachment
import org.json.JSONObject
import org.yaml.snakeyaml.Yaml
import org.yaml.snakeyaml.error.YAMLException
import plugins.twitch.TwitchManager
object GuildConfigImport... | 4 | Kotlin | 3 | 4 | 8dc0f45df7d8373df5198e75a173440ae36dcfad | 10,426 | mini-ender | Apache License 2.0 |
app/src/main/java/com/example/fatecplayground/ui/ProjetosScreen.kt | h4mn | 603,062,062 | false | null | package com.example.fatecplayground.ui
import androidx.compose.foundation.clickable
import androidx.compose.foundation.gestures.Orientation
import androidx.compose.foundation.gestures.scrollable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.f... | 1 | Kotlin | 0 | 0 | 529ac9ec2553c1d669e917564dd2cca7d79a6c53 | 3,260 | fatec_mobile | MIT License |
FlowStateFlowPoc/app/src/main/java/com/example/flowstateflowpoc/shared/Result.kt | brunogabriel | 335,454,794 | false | null | package com.example.flowstateflowpoc.shared
sealed class Result<out R> {
object Empty : Result<Nothing>()
object Loading : Result<Nothing>()
object DismissLoading : Result<Nothing>()
data class Success<out T>(val data: T) : Result<T>()
data class Error(val throwable: Throwable) : Result<Nothing>()
... | 0 | Kotlin | 0 | 2 | f7853a80ce9465552beec2395037f25bfb8bc817 | 321 | android-flow-stateflow-poc | MIT License |
app/src/main/java/fr/mcgalanes/rectus/RectusApp.kt | McGalanes | 504,936,229 | false | {"Kotlin": 46792} | package fr.mcgalanes.rectus
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class RectusApp : Application() | 0 | Kotlin | 0 | 0 | 575d456b0708a588b3979f244b44da543f90f06e | 150 | rectus | Apache License 2.0 |
app/src/main/java/com/weather/android/logic/network/PlaceService.kt | wujiandao233 | 526,502,460 | false | null | package com.weather.android.logic.network
import com.weather.android.logic.model.PlaceResponse
import retrofit2.Call
import com.weather.android.weatherApplication
import retrofit2.http.GET
import retrofit2.http.Query
interface PlaceService {
@GET("v2/place?token=${weatherApplication.TOKEN}&lang=zn_CN")
//TOKEN... | 0 | Kotlin | 0 | 0 | d255ad783e43a1abcfbe52ab7613030d4722d117 | 697 | weather | The Unlicense |
core-types/src/main/java/lang/taxi/services/operations/constraints/ExpressionConstraint.kt | taxilang | 601,101,781 | false | {"Kotlin": 1587516, "ANTLR": 67682, "TypeScript": 7231, "JavaScript": 4324, "Shell": 1468, "Java": 1454, "MDX": 286} | package lang.taxi.services.operations.constraints
import lang.taxi.expressions.Expression
import lang.taxi.types.CompilationUnit
/**
* A Simple wrapper around Expressions to make them implement the Constraint contract
*/
class ExpressionConstraint(val expression: Expression) : Constraint {
override fun asTaxi():... | 8 | Kotlin | 5 | 71 | 26a3d83b98f73f7fbbba8b0b98c6d97a651f3b3a | 441 | taxilang | Apache License 2.0 |
androidApp/src/main/java/com/blackmidori/familyexpenses/android/ui/workspace/AddChargesModelScreen.kt | BLACKMIDORI | 744,320,391 | false | {"Kotlin": 192024, "Swift": 342} | package com.blackmidori.familyexpenses.android.ui.workspace
import android.util.Log
import android.widget.Toast
import androidx.compose.foundation.layout.Column
import androidx.compose.material3.Button
import androidx.compose.material3.Text
import androidx.compose.material3.TextField
import androidx.compose.runtime.Co... | 0 | Kotlin | 0 | 0 | 8afe58ae1642f6b436a81cd0c4dc8c5c630abf3f | 3,357 | family-expenses-mobile | MIT License |
app-main/src/main/kotlin/com/github/fj/board/service/board/impl/GetBoardServiceImpl.kt | oen142 | 449,552,568 | true | {"Kotlin": 584930, "Groovy": 179252, "Java": 88552, "Dart": 11943, "HTML": 1113, "Batchfile": 488, "Shell": 479, "Swift": 404, "Vim Snippet": 314, "Objective-C": 38} | /*
* spring-message-board-demo
* Refer to LICENCE.txt for licence details.
*/
package com.github.fj.board.service.board.impl
import com.github.fj.board.persistence.entity.board.Board
import com.github.fj.board.persistence.model.board.BoardAccess
import com.github.fj.board.persistence.model.board.BoardStatus
import ... | 0 | null | 0 | 0 | 9a3860f780a1c994fcc7f2bed1525a0d73a3fa64 | 2,645 | spring-board-demo | Beerware License |
src/main/kotlin/com/cycode/plugin/components/toolWindow/components/violationCardContentTab/common/shortSummary/CardShortSummary.kt | cycodehq | 661,784,325 | false | {"Kotlin": 198842} | package com.cycode.plugin.components.toolWindow.components.violationCardContentTab.common.shortSummary
import com.intellij.ui.components.JBLabel
import java.awt.GridBagConstraints
import java.awt.GridBagLayout
import javax.swing.JComponent
import javax.swing.JPanel
open class CardShortSummary {
fun getContent(sho... | 0 | Kotlin | 0 | 1 | 5a9aa8d537c5dda60df5ead08c3b4d53d4f4b545 | 747 | intellij-platform-plugin | MIT License |
app/src/main/java/ru/serguun42/android/ats/model/BusinessDetails.kt | serguun42 | 695,939,084 | false | {"Kotlin": 26003} | package ru.serguun42.android.ats.model
abstract class BusinessDetails(
var companyName: String,
var companyLocation: String,
var jobPosition: String,
var startDate: String,
var endDate: String,
var duties: String
)
| 0 | Kotlin | 0 | 0 | 2743a484c68593fc3c353c4090f6f3182213843d | 240 | ATS-App | Boost Software License 1.0 |
src/main/kotlin/me/ftmc/hotpot/soup/effects/HotpotEffectHelper.kt | FishMagic | 723,117,949 | false | {"Kotlin": 211369, "Java": 15622} | package me.ftmc.hotpot.soup.effects
import me.ftmc.hotpot.HotpotTagsHelper
import net.minecraft.entity.effect.StatusEffectInstance
import net.minecraft.item.ItemStack
import net.minecraft.nbt.NbtCompound
import net.minecraft.nbt.NbtElement
import net.minecraft.nbt.NbtList
import java.util.stream.Collectors
object Ho... | 0 | Kotlin | 0 | 3 | cb4528a99d120e892844a615c11bae58458ad045 | 2,402 | EveryXHotpot-Fabric | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/ShareAltSquare.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,796 | icons | MIT License |
support/samples/sample-android/app/src/androidTest/java/io/github/marcelbraghetto/mockifer/example/android/MockiferTestRule.kt | MarcelBraghetto | 96,596,914 | false | {"Shell": 10, "Text": 4, "Ignore List": 6, "Markdown": 1, "CMake": 1, "Gradle": 5, "Proguard": 2, "Batchfile": 3, "Java Properties": 5, "XML": 16, "Java": 1, "C++": 23, "C": 5, "OpenStep Property List": 4, "Swift": 20, "Objective-C++": 2, "Objective-C": 2, "JSON": 14, "Kotlin": 34, "JavaScript": 2, "HTML": 1} | package io.github.marcelbraghetto.mockifer.example.android
import android.net.Uri
import androidx.test.platform.app.InstrumentationRegistry
import androidx.appcompat.app.AppCompatActivity
import androidx.test.rule.ActivityTestRule
import io.github.marcelbraghetto.mockifer.Mockifer
import io.github.marcelbraghetto.mock... | 0 | C | 1 | 21 | d9e18d4979176ff149f36fc646474456704fbd7c | 932 | mockifer | MIT License |
java_pro/src/main/kotlin/kt/com/tencent/cain/desigin_pattern/bridge/HandsetBrandHuaWei.kt | JayRichrd | 510,423,945 | false | {"Java": 77189, "Kotlin": 54914, "C++": 5055, "CMake": 529} | package kt.com.tencent.cain.desigin_pattern.bridge
/**
* @author : jiangyu
* @date : 2020/7/11
* @desc : xxx
*/
class HandsetBrandHuaWei(brandName:String):HandsetBrand(brandName) {
override fun run() {
println("$brandName 手机")
soft?.run()
}
} | 1 | null | 1 | 1 | 00e247591b9e95083d6de362bca512429169af96 | 275 | design_pattern_structure | MIT License |
platform/build-scripts/src/org/jetbrains/intellij/build/impl/productRunner/ModuleBasedProductRunner.kt | koxudaxi | 196,571,905 | false | {"Text": 9778, "INI": 517, "YAML": 423, "Ant Build System": 11, "Batchfile": 34, "Dockerfile": 10, "Shell": 634, "Markdown": 752, "Ignore List": 141, "Git Revision List": 1, "Git Attributes": 11, "EditorConfig": 261, "XML": 7881, "SVG": 4447, "Kotlin": 59448, "Java": 84016, "HTML": 3792, "Java Properties": 217, "Gradle... | // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.intellij.build.impl.productRunner
import com.intellij.platform.runtime.repository.RuntimeModuleId
import org.jetbrains.intellij.build.BuildContext
import org.jetbrains.intellij... | 1 | null | 1 | 1 | 641c9567cc039e31dd60adbe4011f1b80a168b59 | 1,937 | intellij-community | Apache License 2.0 |
app/src/test/java/com/duckduckgo/app/widget/AddWidgetCompatLauncherTest.kt | hojat72elect | 822,396,044 | false | {"Kotlin": 11626231, "HTML": 65873, "Ruby": 16984, "C++": 10312, "JavaScript": 5520, "CMake": 1992, "C": 1076, "Shell": 784} |
package com.duckduckgo.app.widget
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.duckduckgo.app.widget.ui.WidgetCapabilities
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.kotlin.mock
import org.mockito.kotlin.verify
import org.mockito.kotlin.whenever
@RunWith(AndroidJUnit... | 0 | Kotlin | 0 | 0 | b89591136b60933d6a03fac43a38ee183116b7f8 | 1,299 | DuckDuckGo | Apache License 2.0 |
components/flow/flow-service/src/main/kotlin/net/corda/flow/pipeline/handlers/requests/SubFlowFinishedRequestHandler.kt | corda | 346,070,752 | false | {"Kotlin": 20585393, "Java": 308202, "Smarty": 115357, "Shell": 54409, "Groovy": 30246, "PowerShell": 6470, "TypeScript": 5826, "Solidity": 2024, "Batchfile": 244} | package net.corda.flow.pipeline.handlers.requests
import net.corda.data.flow.state.waiting.SessionConfirmation
import net.corda.data.flow.state.waiting.SessionConfirmationType
import net.corda.data.flow.state.waiting.WaitingFor
import net.corda.flow.fiber.FlowIORequest
import net.corda.flow.pipeline.events.FlowEventCo... | 14 | Kotlin | 27 | 69 | 0766222eb6284c01ba321633e12b70f1a93ca04e | 2,533 | corda-runtime-os | Apache License 2.0 |
projects/pathfinder-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/UserService.kt | ministryofjustice | 500,855,647 | false | {"Kotlin": 4133825, "HTML": 70066, "D2": 40497, "Ruby": 25921, "Shell": 15549, "SCSS": 6370, "HCL": 2712, "Dockerfile": 2414, "JavaScript": 1372, "Python": 268} | package uk.gov.justice.digital.hmpps.service
import org.springframework.ldap.core.LdapTemplate
import org.springframework.stereotype.Service
import uk.gov.justice.digital.hmpps.ldap.addRole
import uk.gov.justice.digital.hmpps.ldap.removeRole
import uk.gov.justice.digital.hmpps.model.DeliusRole
@Service
class UserServ... | 5 | Kotlin | 0 | 2 | f7042c113b7cfd4d439c6c77231a1a28f93e9485 | 558 | hmpps-probation-integration-services | MIT License |
src/test/kotlin/uk/co/agware/carpet/TestChange.kt | philipw1988 | 57,885,380 | false | null | package uk.co.agware.carpet
import org.jetbrains.spek.api.SubjectSpek
import org.jetbrains.spek.api.dsl.Dsl
import org.jetbrains.spek.api.dsl.SubjectDsl
import org.jetbrains.spek.api.dsl.describe
import org.jetbrains.spek.api.dsl.it
import org.junit.platform.runner.JUnitPlatform
import org.junit.runner.RunWith
import ... | 1 | Kotlin | 1 | 0 | 4faa9e1ae38728f3b69ba32ab03deb72e3082f12 | 1,589 | MagicCarpet | Apache License 2.0 |
ldb/kodein-leveldb/src/commonTest/kotlin/org/kodein/db/leveldb/test/LDBTests_01_Snapshot.kt | Kodein-Framework | 147,318,269 | false | null | package org.kodein.db.leveldb.test
import org.kodein.db.leveldb.LevelDB
import org.kodein.db.leveldb.LevelDBFactory
import org.kodein.db.leveldb.default
import org.kodein.db.leveldb.inDir
import org.kodein.db.leveldb.inmemory.inMemory
import org.kodein.db.test.utils.assertBytesEquals
import org.kodein.db.test.utils.ar... | 13 | Kotlin | 22 | 273 | 044ad75e88d14c2702a3716c8150a7ba158d97b6 | 1,407 | Kodein-DB | MIT License |
location/src/main/java/com/example/location/LocationActivity.kt | hamzeh-pourshabanan | 576,882,359 | false | null | package com.example.location
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.Drawable
import android.os.Bundle
import androi... | 0 | Kotlin | 1 | 0 | 166bf7078f631bc11731c451f359b0982a8365de | 9,219 | Box-Bike | MIT License |
flutter-projects/scrum_deck/android/app/src/main/kotlin/com/example/scrum_deck/MainActivity.kt | vitorecomp | 292,507,661 | false | null | package com.example.scrum_deck
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Rust | 0 | 0 | 4f2580debf281cf43061c497295fca53f3151bab | 127 | learning-projects | MIT License |
app/src/main/kotlin/com/github/premnirmal/ticker/BaseFragment.kt | sanshao27 | 88,776,729 | true | {"Kotlin": 191856, "Shell": 217} | package com.github.premnirmal.ticker
import android.app.Activity
import android.os.Bundle
import android.support.v4.app.Fragment
import android.util.AndroidRuntimeException
import android.view.View
import com.trello.rxlifecycle.FragmentEvent
import com.trello.rxlifecycle.RxLifecycle
import rx.Observable
import rx.subj... | 0 | Kotlin | 0 | 0 | 5fd50934a75277add91288804862874bef24a526 | 2,252 | StockTicker | MIT License |
src/main/kotlin/engine/scene/components/ParticleEffectComponent.kt | CozmicGames | 560,807,673 | false | {"Kotlin": 612419} | package engine.scene.components
import com.cozmicgames.utils.Updateable
import engine.graphics.particles.ParticleEffect
import engine.scene.Component
class ParticleEffectComponent : Component(), Updateable {
var create: ParticleEffect.() -> Unit = {}
set(value) {
isDirty = true
fie... | 0 | Kotlin | 0 | 0 | d85d016431fb0490dcb6b125be5fd285e409bfc4 | 900 | GameOff2022 | MIT License |
feature/notes-list/api/src/main/java/ru/maksonic/beresta/feature/notes_list/api/NotesListApi.kt | maksonic | 580,058,579 | false | null | package ru.maksonic.beresta.feature.notes_list.api
import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import ru.maksonic.beresta.feature.notes_list.api.ui.NoteUi
import ru.maksonic.beresta.navigation.router.router.MainScreenRouter
/**
... | 0 | Kotlin | 0 | 0 | 5704d413cd57a8eabe27b02a185a999fce2ca1e4 | 905 | Beresta | MIT License |
app/src/main/java/com/vikaspatidar/shvan/home/HomePage.kt | vikaspatidar | 343,876,445 | false | null | /*
* Copyright 2021 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 applica... | 0 | Kotlin | 0 | 0 | 6b537fdb96b6c86fc54acce5756b6d9e64d5e59d | 2,254 | Shvan | Apache License 2.0 |
app/src/main/java/com/duckduckgo/app/global/rating/AppEnjoymentPromptCriteria.kt | hojat72elect | 822,396,044 | false | {"Kotlin": 11626231, "HTML": 65873, "Ruby": 16984, "C++": 10312, "JavaScript": 5520, "CMake": 1992, "C": 1076, "Shell": 784} |
package com.duckduckgo.app.global.rating
const val MINIMUM_SEARCHES_THRESHOLD = 5
const val MINIMUM_DAYS_USAGE_BEFORE_FIRST_PROMPT = 3
const val MINIMUM_DAYS_USAGE_SINCE_INITIAL_PROMPT_BEFORE_SECOND_PROMPT = 4
| 0 | Kotlin | 0 | 0 | b89591136b60933d6a03fac43a38ee183116b7f8 | 213 | DuckDuckGo | Apache License 2.0 |
flutter_ml_vision_app/android/app/src/main/kotlin/com/fby/flutter/ml/vision/app/MainActivity.kt | fbernaly | 366,480,242 | false | {"Dart": 5811, "HTML": 3735, "Ruby": 1286, "Swift": 404, "Kotlin": 134, "Objective-C": 38} | package com.fby.flutter.ml.vision.app
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | e3b938bbce8f911b7eb44eee160e3a638c9108e3 | 134 | flutter-ml-kit-vision | MIT License |
tanker-bindings/src/main/kotlin/io/tanker/api/HttpClient.kt | TankerHQ | 160,205,806 | false | {"Kotlin": 204429, "Python": 9014, "Java": 1665, "Assembly": 693, "CMake": 384, "C++": 373, "Shell": 174} | package io.tanker.api
import com.sun.jna.Memory
import com.sun.jna.Pointer
import io.tanker.bindings.TankerHttpRequest
import io.tanker.bindings.TankerHttpResponse
import io.tanker.bindings.TankerLib
import okhttp3.*
import okhttp3.MediaType.Companion.toMediaTypeOrNull
import okhttp3.RequestBody.Companion.toRequestBod... | 0 | Kotlin | 1 | 13 | 8bba26a4b6376669ea53712def3dcac6387005f7 | 4,668 | sdk-android | Apache License 2.0 |
spring-social-slideshare/src/main/kotlin/io/t28/springframework/social/slideshare/api/impl/xml/FavoriteMixin.kt | t28hub | 280,412,223 | 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 wr... | 1 | Kotlin | 0 | 0 | a87b4991dbe121f84253825a5c5dc147603be998 | 1,406 | spring-social-slideshare | Apache License 2.0 |
android/app/src/main/java/uvg/edu/gt/smartfridge/models/LightIngredient.kt | DanielRasho | 680,686,449 | false | {"Kotlin": 174774, "Rust": 90196, "Nix": 710} | package uvg.edu.gt.smartfridge.models
import kotlinx.serialization.Serializable
@Serializable
data class LightIngredient(
val Name: String,
val Display : String
)
| 0 | Kotlin | 0 | 0 | db66b15b88c12123fad7b87db0f01b352a504019 | 173 | SmartFridge | MIT License |
android/app/src/main/kotlin/de/stuermerbenjamin/ble/ui/scan/ScanScreen.kt | thebino | 518,865,547 | false | {"Kotlin": 52876, "C": 35607, "CMake": 2148, "C++": 685} | package de.stuermerbenjamin.ble.ui.scan
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.f... | 0 | Kotlin | 0 | 2 | 110ed892ae7f9aab82d810b92012e8f0767bb415 | 5,648 | esp_iot_template | Apache License 2.0 |
src/main/kotlin/com/atsuya046/random/RandomizerRegistry.kt | atsuya046 | 123,290,518 | false | null | package com.atsuya046.random
import kotlin.reflect.KClass
internal abstract class AbstractRandomizerRegistry : Choosable, Registrable {
protected val randomizers: MutableMap<KClass<out Any>, Randomizer<Any>> = mutableMapOf()
override fun <T : Any> register(clazz: KClass<T>, randomizer: Randomizer<T>) {
... | 0 | Kotlin | 1 | 2 | a39c165329d36c4a5dc9675aa3d87b2f018fa940 | 1,848 | random-seed-kotlin | MIT License |
photoselector/src/test/java/software/ninetofive/photoselector/PhotoSelectorTest.kt | Borek321 | 242,739,859 | false | null | package software.ninetofive.photoselector
import android.app.Activity
import android.app.Dialog
import android.content.ContentResolver
import android.content.Intent
import android.graphics.Bitmap
import android.net.Uri
import com.nhaarman.mockitokotlin2.*
import org.junit.Assert.assertEquals
import org.junit.Assert.fa... | 0 | Kotlin | 0 | 1 | b9d69134827d1face68c136760bb0f3215c6118c | 12,657 | 9to5-tools | MIT License |
app/src/main/java/com/alanLobo/nycschools/data/entities/SchoolDetails.kt | alanl279447 | 342,117,687 | false | null | package com.example.nycschools.data.entities
class SchoolDetails : ArrayList<SchoolDetailsItem>() | 0 | Kotlin | 0 | 0 | 6a4e4e7264be6f47e8e74dd47bd4c4e43f0ea8e7 | 98 | 20210224-AlanLobo-NYCSchools | Apache License 2.0 |
dlang/psi-impl/src/main/kotlin/io/github/intellij/dlanguage/psi/ext/DLanguageCommaExpressionImplMixin.kt | intellij-dlanguage | 27,922,930 | false | {"D": 1787183, "Kotlin": 1068238, "Java": 834373, "Lex": 22913, "DTrace": 3220, "HTML": 1386, "Makefile": 457} | package io.github.intellij.dlanguage.psi.ext
import com.intellij.extapi.psi.ASTWrapperPsiElement
import com.intellij.lang.ASTNode
import io.github.intellij.dlanguage.psi.DLanguageCommaExpression
import io.github.intellij.dlanguage.psi.types.DPrimitiveType
import io.github.intellij.dlanguage.psi.types.DType
abstract ... | 160 | D | 51 | 328 | 298d1db45d2b35c1715a1b1b2e1c548709101f05 | 509 | intellij-dlanguage | MIT License |
app/src/main/java/io/github/drumber/kitsune/data/repository/MediaUnitRepository.kt | Drumber | 406,471,554 | false | {"Kotlin": 993796, "Ruby": 2109} | package io.github.drumber.kitsune.data.repository
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.map
import io.github.drumber.kitsune.constants.Repository
import io.github.drumber.kitsune.data.mapper.MediaUnitMapper.toMediaUnit
import io.github.drumber.kitsune.data.source.netwo... | 6 | Kotlin | 4 | 92 | ba6f2a69cb71a9fd71d4825921ff6d9b6300471e | 1,541 | Kitsune | Apache License 2.0 |
AndroidArchitectureStudy/presentation/src/main/java/com/mtjin/presentation/views/search/MovieSearchViewModel.kt | mtjin | 333,763,532 | false | null | package com.mtjin.presentation.views.search
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.mtjin.domain.model.search.Movie
import com.mtjin.domain.usecase.GetLocalMoviesUseCase
import com.mtjin.domain.usecase.GetMoviesUseCase
import com.mtjin.domain.usecase.GetPagingMoviesUseCa... | 1 | Kotlin | 1 | 9 | edc3e6aad017063bf00ef17126eb9aae7100bdb8 | 4,402 | mtjin-android-clean-architecture-movieapp | MIT License |
src/main/kotlin/com/github/parkee/messenger/model/response/ResponseRecipient.kt | parkee | 58,060,512 | false | null | package com.github.parkee.messenger.model.response
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonProperty
@JsonIgnoreProperties(ignoreUnknown = true)
data class ResponseRecipient(
@JsonProperty("id") val id: Long? = null
) | 0 | Kotlin | 3 | 5 | ddde00d68f36f26978426cfe5ebb1a6cecb310af | 291 | messenger-send-api-client | MIT License |
app/src/main/java/dev/marcosfarias/pokedex/ui/dashboard/evolution/EvolutionFragment.kt | zsmb13 | 232,301,179 | true | null | package dev.marcosfarias.pokedex.ui.dashboard.evolution
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProviders
import dev.marcosfarias.pokedex.R
import dev.marcosfarias.pokedex... | 0 | Kotlin | 8 | 48 | a2ab162c1de76700e16ba521b1193c503b6b3f84 | 894 | Kotlin-Pokedex | MIT License |
Repairs/app/src/main/java/com/rooio/repairs/ChooseServiceProvider.kt | roopairs | 212,211,326 | false | {"XML": 431086, "Kotlin": 299391, "Java": 26386} | package com.rooio.repairs
import android.content.Context
import android.content.Intent
import android.graphics.Color
import android.media.AudioManager
import android.os.Build
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.view.View
import android.widget.Button
impo... | 0 | XML | 0 | 0 | e81487aba0a997812769e893dc8e34d21935647f | 6,684 | Rooio | MIT License |
contrib/rqjava/src/com/dhsdevelopments/rqjava/PotatoConnection.kt | cicakhq | 48,153,988 | false | null | package com.dhsdevelopments.rqjava
import com.google.gson.Gson
import com.rabbitmq.client.*
import java.io.BufferedReader
import java.io.ByteArrayInputStream
import java.io.InputStreamReader
import java.nio.charset.Charset
import java.util.logging.Level
import java.util.logging.Logger
class PotatoConnection(val host:... | 1 | Common Lisp | 16 | 168 | 88b6c92dbbc80a6c9552435604f7b1ae6f2a4026 | 2,414 | potato | Apache License 2.0 |
app/src/main/java/info/hzvtc/hipixiv/util/AppMessage.kt | Tait4198 | 94,422,381 | false | null | package info.hzvtc.hipixiv.util
import android.content.Context
import android.util.Log
import android.widget.Toast
class AppMessage {
companion object{
fun toastMessageLong(resId : Int,context: Context){
Toast.makeText(context,context.getString(resId),Toast.LENGTH_LONG).show()
}
... | 0 | Kotlin | 0 | 0 | 35def2de39973a82e0fcf03f63733bb34c32d98d | 757 | hi_pixiv | MIT License |
ktoroauth2/src/main/java/com/eldersoss/ktoroauth2/OAuth2.kt | Elders | 421,793,019 | false | null | package com.eldersoss.ktoroauth2
import com.eldersoss.ktoroauth2.authorizer.Authorizer
import com.eldersoss.ktoroauth2.throwable.*
import io.ktor.client.*
import io.ktor.client.call.*
import io.ktor.client.features.*
import io.ktor.client.request.*
import io.ktor.client.request.forms.*
import io.ktor.client.statement.... | 0 | Kotlin | 0 | 0 | aec463d3b5d0f1bc5229cb09a2c26d69f8b00da6 | 1,874 | KtorOAuth2 | MIT License |
app/src/main/java/com/dew/aihua/download/background/DownloadMissionManagerImpl.kt | ed828a | 172,828,123 | false | null | package com.dew.aihua.download.background
import android.content.Context
import android.content.Intent
import android.os.Handler
import android.util.Log
import android.widget.Toast
import com.dew.aihua.database.downloadDB.MissionEntity
import com.dew.aihua.download.background.MissionControl.Companion.NO_ERROR
import c... | 0 | Kotlin | 0 | 1 | 1896f46888b5a954b367e83f40b845ce174a2328 | 14,633 | Aihua | Apache License 2.0 |
todo-sample/src/main/java/com/toggl/komposable/sample/todo/AppState.kt | toggl | 316,494,344 | false | {"Kotlin": 90172} | package com.toggl.komposable.sample.todo
import com.toggl.komposable.architecture.Effect
import com.toggl.komposable.architecture.Mutable
import com.toggl.komposable.extensions.mutateWithoutEffects
import com.toggl.komposable.sample.todo.data.EditableTodoItem
import com.toggl.komposable.sample.todo.data.Identity
impor... | 5 | Kotlin | 17 | 223 | 49c47a30dcb71fd35d9c70fa468cf91820b34f33 | 1,286 | komposable-architecture | Apache License 2.0 |
learn_note/src/main/java/com/ablechange/learn/kotlin/NonNull.kt | AbelChange | 420,311,870 | false | {"Kotlin": 210159, "Java": 26553, "CMake": 1695, "C++": 990, "AIDL": 931} | package com.ablechange.learn.kotlin
import com.google.gson.Gson
val jsonStr = """{}"""
//存在参数没有默认值->不会生成无参构造
//gson:使用unsafe方式创建对象,默认值无效(java行为一致),同时绕过了kotlin的空安全监测
//非基本类型使用时可能会导致npe
data class NonNull(val id: String, val age: Int) {
init {
println("init 函数 在主构造方法之后执行")
}
}
//所有参数都有默认值->生成无参构造
//先... | 0 | Kotlin | 0 | 1 | 13cc81a9c4037253b573b2f4174c7d276cf245eb | 571 | MyArchiteture | Apache License 2.0 |
rider/buildSrc/src/main/kotlin/com/jetbrains/rider/plugins/gradle/BackendPaths.kt | 20chan | 254,533,394 | true | {"C#": 2979478, "Kotlin": 407975, "ShaderLab": 67905, "Lex": 36697, "GLSL": 7572, "HLSL": 7370, "Java": 5463, "PowerShell": 1036, "Shell": 129} | package com.jetbrains.rider.plugins.gradle
import com.jetbrains.rider.plugins.gradle.buildServer.buildServer
import org.apache.tools.ant.taskdefs.condition.Os
import org.gradle.api.Project
import org.gradle.api.logging.Logger
import org.jetbrains.intellij.IntelliJPluginExtension
import java.io.File
class BackendPaths... | 0 | null | 0 | 1 | 1e0db52a0144ac83206bf71a79eacffe4307cdba | 3,476 | resharper-unity | Apache License 2.0 |
.teamcity/delivery/staging/manifest/PublishLocal.kts | JetBrains | 261,739,564 | false | {"C#": 191431, "Dockerfile": 179109, "Kotlin": 50785, "Batchfile": 18825, "Shell": 13946, "Python": 6106, "PowerShell": 4921} | package delivery.staging.manifest
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildTypeSettings
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.script
import utils.dsl.general.teamCityImageBuildFeatures
import utils.dsl.general.teamCi... | 9 | C# | 57 | 91 | 16ea3a7aa8e4d17050bde5a7932246fb337c0090 | 1,838 | teamcity-docker-images | Apache License 2.0 |
src/commonMain/kotlin/com/adyen/model/transferwebhooks/UKLocalAccountIdentification.kt | tjerkw | 733,432,442 | false | {"Kotlin": 5043126, "Makefile": 6356} | /**
* Transfer webhooks
*
* Adyen sends webhooks to inform your system about incoming and outgoing transfers in your platform. You can use these webhooks to build your implementation. For example, you can use this information to update balances in your own dashboards or to keep track of incoming funds.
*
* The ve... | 0 | Kotlin | 0 | 0 | 2da5aea5519b2dfa84454fe1665e9699edc87507 | 1,766 | adyen-kotlin-multiplatform-api-library | MIT License |
src/chapter3/section5/ex10.kt | w1374720640 | 265,536,015 | false | {"Kotlin": 1373556} | package chapter3.section5
import chapter3.section3.RedBlackBST
/**
* 修改红黑树RedBlackBST,允许在树中保存重复的键
* 对于get()方法,返回给定键所关联的任意值,对于delete()方法,删除树中所有和给顶尖相等的结点
*/
class DuplicateKeysRedBlackBST<K : Comparable<K>, V : Any> : RedBlackBST<K, V>(), DuplicateKeysST<K, V> {
class Node<K : Comparable<K>, V : Any>(
... | 0 | Kotlin | 1 | 6 | 879885b82ef51d58efe578c9391f04bc54c2531d | 1,826 | Algorithms-4th-Edition-in-Kotlin | MIT License |
library-mvvmlazy/src/main/java/com/rui/mvvmlazy/binding/viewadapter/view/ViewAdapter.kt | jirywell | 418,722,038 | false | {"Kotlin": 779701, "Java": 48117} | package com.rui.mvvmlazy.binding.viewadapter.view
import android.os.SystemClock
import android.view.View
import android.view.View.OnFocusChangeListener
import androidx.databinding.BindingAdapter
/**
* Created by zjr on 2020/6/16.
*/
object ViewAdapter {
/**
* requireAll 是意思是是否需要绑定全部参数, false为否
* View... | 0 | Kotlin | 7 | 27 | b37dcb02d8b93699299aada9ec98a1c3ae10e346 | 2,636 | MvvmLazy-kotlin | Apache License 2.0 |
app/src/main/java/com/lonard/camerlangproject/api/ApiConfig.kt | lonard2 | 490,593,898 | false | null | package com.lonard.camerlangproject.api
import com.lonard.camerlangproject.BuildConfig
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
class ApiConfig {
companion object {
fun getApiProduct(): ApiInt... | 0 | Kotlin | 2 | 2 | 52f69ed3312071307b5c8c9221a45ccdde6c7351 | 1,019 | CAMerlang-Mobile-Development | MIT License |
TIM-Android-lib/src/main/java/com/trifork/timandroid/models/openid/OpenIDScope.kt | trifork | 399,110,548 | false | null | package com.trifork.timandroid.models.openid
val OIDScopeOpenID = "openid"
val OIDScopeProfile = "profile"
val OIDScopeEmail = "email"
val OIDScopeAddress = "address"
val OIDScopePhone = "phone" | 0 | Kotlin | 3 | 5 | 0a8bcccd84d981853a56678f4a04e64171a16a73 | 195 | TIM-Android | MIT License |
plugins/analysis/common/src/main/kotlin/arrow/meta/plugins/analysis/phases/analysis/solver/ast/context/elements/TypeParameter.kt | arrow-kt | 217,378,939 | false | null | package arrow.meta.plugins.analysis.phases.analysis.solver.ast.context.elements
import arrow.meta.plugins.analysis.phases.analysis.solver.ast.context.types.Variance
interface TypeParameter {
val variance: Variance
val extendsBounds: List<TypeReference>
}
| 97 | Kotlin | 40 | 316 | 8d2a80cf3a1275a752c18baceed74cb61aa13b4d | 261 | arrow-meta | Apache License 2.0 |
game-server/game/src/main/kotlin/com/osrs/game/world/service/LoginService.kt | runetopic | 613,076,716 | false | {"Kotlin": 296499, "Witcher Script": 2511} | package com.osrs.game.world.service
import com.google.inject.Inject
import com.google.inject.Singleton
import com.osrs.cache.entry.config.enum.EnumEntryProvider
import com.osrs.cache.entry.config.obj.ObjEntryProvider
import com.osrs.api.ui.InterfaceInfoMap
import com.osrs.game.actor.player.Player
import com.osrs.game.... | 1 | Kotlin | 1 | 10 | 2a5186b2b7befa7c364e0b989da68ed83070a926 | 1,082 | osrs-server | MIT License |
app/src/main/java/me/alexdevs/tictactoe/feature_tictactoe/data/data_source/HistoryDatabase.kt | Ale32bit | 703,467,051 | false | {"Kotlin": 60151} | package me.alexdevs.tictactoe.feature_tictactoe.data.data_source
import androidx.room.Database
import androidx.room.RoomDatabase
import me.alexdevs.tictactoe.feature_tictactoe.domain.model.History
@Database(
entities = [History::class],
version = 1,
exportSchema = true,
)
abstract class HistoryDatabase: R... | 0 | Kotlin | 0 | 1 | 40eb841864f1bd327888f424c52b996138e2a813 | 455 | TicTacToe | MIT License |
app/src/main/java/com/cp15/mapres/ui/view/activity/DetailEventActivity.kt | Refanz | 626,299,891 | false | {"Kotlin": 32145, "HTML": 2675} | package com.cp15.mapres.ui.view.activity
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.ImageButton
import android.widget.LinearLayout
import android.widget.RelativeLayout
import android.widget.TextView
import co... | 0 | Kotlin | 0 | 2 | 0706bfb9b8a1d0b8250233b48119c553487193c6 | 1,662 | MAPRES | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsassessforearlyreleaseapi/service/prison/AddressService.kt | ministryofjustice | 836,190,144 | false | {"Kotlin": 226428, "Shell": 3815, "Dockerfile": 1400} | package uk.gov.justice.digital.hmpps.hmppsassessforearlyreleaseapi.service.prison
import jakarta.transaction.Transactional
import org.springframework.stereotype.Service
import uk.gov.justice.digital.hmpps.hmppsassessforearlyreleaseapi.entity.Address
import uk.gov.justice.digital.hmpps.hmppsassessforearlyreleaseapi.ent... | 0 | Kotlin | 0 | 1 | f9c1ddf00811109b2b01b8379047d248eda3a18f | 6,495 | hmpps-assess-for-early-release-api | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsassessforearlyreleaseapi/service/prison/AddressService.kt | ministryofjustice | 836,190,144 | false | {"Kotlin": 226428, "Shell": 3815, "Dockerfile": 1400} | package uk.gov.justice.digital.hmpps.hmppsassessforearlyreleaseapi.service.prison
import jakarta.transaction.Transactional
import org.springframework.stereotype.Service
import uk.gov.justice.digital.hmpps.hmppsassessforearlyreleaseapi.entity.Address
import uk.gov.justice.digital.hmpps.hmppsassessforearlyreleaseapi.ent... | 0 | Kotlin | 0 | 1 | f9c1ddf00811109b2b01b8379047d248eda3a18f | 6,495 | hmpps-assess-for-early-release-api | MIT License |
dccomics/src/main/java/com/cubidevs/dccomics/maps/MapsFragment.kt | Team-111-MisionTic | 426,814,942 | false | {"Kotlin": 36927} | package com.cubidevs.dccomics.maps
import androidx.fragment.app.Fragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.cubidevs.dccomics.R
import com.google.android.gms.maps.CameraUpdateFactory
import com.google.android.gms.maps.OnMapRea... | 0 | Kotlin | 1 | 1 | 5966f252450af93ef4499d182a8952f4f9aa9848 | 1,972 | Team-111 | MIT License |
app/src/main/java/pl/jitsolutions/agile/presentation/MainActivity.kt | jit-team | 190,179,705 | false | {"Kotlin": 210569} | package pl.jitsolutions.agile.presentation
import pl.jitsolutions.agile.R
import pl.jitsolutions.agile.presentation.common.BaseActivity
class MainActivity : BaseActivity() {
override val navigationGraphResId = R.navigation.nav_graph
} | 0 | Kotlin | 0 | 0 | 636d750aff6e10bb879ac08fdef162a62e35df9e | 240 | jit-agile-android | MIT License |
composeApp/src/commonMain/kotlin/ui/Components/HomeContent.kt | Orisu179 | 734,403,072 | false | {"Kotlin": 32869, "Swift": 594} | package ui.Components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ru... | 0 | Kotlin | 0 | 0 | 4a3c86976adafc21f31a94fe51b3f570dfb1d123 | 1,136 | Unofficial-Anilist-App | MIT License |
src/main/kotlin/no/nav/syfo/web/api/InntektsmeldingRequest.kt | navikt | 121,716,621 | false | {"Kotlin": 368783, "Dockerfile": 440} | package no.nav.syfo.web.api
import no.nav.syfo.domain.inntektsmelding.Inntektsmelding
data class InntektsmeldingRequest(
val inntektsmelding: Inntektsmelding
)
| 9 | Kotlin | 3 | 4 | f50563ea7d1a57279788d354ab28ea1406813702 | 166 | syfoinntektsmelding | MIT License |
app/common/src/main/kotlin/me/zhanghai/android/files/compat/ResourcesCompat.kt | overphoenix | 621,371,055 | false | null | /*
* Copyright (c) 2020 Hai Zhang <dreaming.in.code.zh@gmail.com>
* All Rights Reserved.
*/
package me.zhanghai.android.files.compat
import android.content.res.Resources
import androidx.annotation.DimenRes
import androidx.core.content.res.ResourcesCompat
fun Resources.getFloatCompat(@DimenRes id: Int) = Resources... | 0 | Kotlin | 0 | 0 | 64264f261c2138d5f1932789702661917bbfae28 | 346 | phoenix-android | Apache License 2.0 |
app/src/main/java/com/kiprosh/optimizeprime/view/activity/AboutCelebratlyActivity.kt | amangarg95 | 354,863,116 | false | {"Kotlin": 79256, "Java": 5838, "PureBasic": 3565} | package com.kiprosh.optimizeprime.view.activity
import android.os.Bundle
import android.view.Window
import android.view.WindowManager
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.ContextCompat
import com.kiprosh.optimizeprime.R
class AboutCelebratlyActivity : AppCompatActivity() {
... | 0 | Kotlin | 0 | 0 | d68553632c642bbadc554bcd750ffb2d292ee51f | 842 | celebratly | MIT License |
app/src/main/java/com/vivek/eton/feature_note/data/data_source/NoteDatabase.kt | V9vek | 450,054,297 | false | {"Kotlin": 49875} | package com.vivek.eton.feature_note.data.data_source
import androidx.room.Database
import androidx.room.RoomDatabase
import com.vivek.eton.feature_note.domain.model.Note
@Database(
entities = [Note::class],
version = 1
)
abstract class NoteDatabase : RoomDatabase() {
abstract val noteDao: NoteDao
co... | 0 | Kotlin | 0 | 3 | 3f598e2e4c74bf77e303afaf423cd93e1414dfc8 | 383 | Eton | Apache License 2.0 |
core/utils/kotlin/src/main/java/com/core/utils/logger/AppLogger.kt | LStudioO | 653,597,932 | false | null | package com.core.utils.logger
import org.jetbrains.annotations.NonNls
interface AppLogger {
/** Set a one-time tag for use on the next logging call. */
fun tag(@NonNls tag: String)
/** Log a verbose message. */
fun v(@NonNls message: String?)
/** Log a verbose exception and a message. */
... | 0 | Kotlin | 0 | 2 | 4b7ad630dbd4838b66e560f463b025e79327bebd | 1,922 | CodeWarsChallengeViewer | Apache License 2.0 |
ocgena-domain/src/main/kotlin/ru/misterpotz/ocgena/simulation_old/stepexecutor/StepExecutor.kt | MisterPotz | 605,293,662 | false | {"Kotlin": 749008, "TypeScript": 495751, "JavaScript": 36713, "CSS": 14489, "Python": 8026, "HTML": 3173, "Ruby": 285, "EJS": 274, "Java": 140} | package ru.misterpotz.ocgena.simulation_old.stepexecutor
import ru.misterpotz.ocgena.simulation_old.continuation.ExecutionContinuation
interface StepExecutor {
suspend fun executeStep(executionContinuation: ExecutionContinuation)
} | 0 | Kotlin | 0 | 1 | 32a25441882c4780ed6b964a24430ef086222b76 | 237 | ocgena | MIT License |
backend/domain/src/main/kotlin/com/enjoycode/hexagonal/domain/Employee.kt | s-petit | 398,474,879 | false | {"HTML": 24912, "Kotlin": 16976, "TypeScript": 5835, "Shell": 452, "JavaScript": 419, "SCSS": 80} | package com.enjoycode.hexagonal.domain
data class Employee(
val id: String,
val name: String
)
| 0 | HTML | 0 | 0 | d0f172432672c578c7252a95b0ab681f9a99f884 | 104 | ddd-hexagonal-template | MIT License |
app/src/test/java/io/github/wulkanowy/data/repositories/student/StudentRemoteTest.kt | dominik-korsa | 162,416,621 | true | {"Kotlin": 668158, "Shell": 220, "IDL": 131} | package io.github.wulkanowy.data.repositories.student
import io.github.wulkanowy.api.Api
import io.github.wulkanowy.api.register.Student
import io.reactivex.Single
import org.junit.Assert.assertEquals
import org.junit.Before
import org.junit.Test
import org.mockito.Mock
import org.mockito.Mockito.doReturn
import org.m... | 0 | Kotlin | 0 | 0 | ba84f2be6ea7f4722560d7323a0c314f88614b75 | 876 | wulkanowy | Apache License 2.0 |
app/src/main/kotlin/util/ZipFlowExtensions.kt | amandeepg | 487,098,236 | false | {"Kotlin": 200351, "Shell": 5920, "Python": 1095} | package ca.amandeep.path.util
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.emptyFlow
import kotlinx.coroutines.flow.map
import kotlinx.coroutines.flow.zip
/**
* Combines the given flows into a single flow that emits a list of values.
*/
fun <T, R> zip(
vararg flows: Flow<T>,
transform:... | 0 | Kotlin | 0 | 3 | 9decf523468ea3567544e3974acdfab383d0528e | 1,224 | PathTimes | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/arnscoordinatorapi/oasys/associations/repository/OasysAssociation.kt | ministryofjustice | 858,719,887 | false | {"Kotlin": 270210, "Makefile": 2528, "Dockerfile": 1185} | package uk.gov.justice.digital.hmpps.arnscoordinatorapi.oasys.associations.repository
import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.EnumType
import jakarta.persistence.Enumerated
import jakarta.persistence.GeneratedValue
import jakarta.persistence.GenerationType
import ... | 2 | Kotlin | 0 | 0 | c7ce9fdb04301a23268b4c1713e2d7bcb24a83d4 | 1,711 | hmpps-assess-risks-and-needs-coordinator-api | MIT License |
app/src/main/java/com/example/hospitalfinder/PlaceJSONParser.kt | aalshawa97 | 274,258,169 | false | null | package com.example.hospitalfinder
import java.util.HashMap;
import org.json.JSONObject;
class PlaceJSONParser {
//JSONArray jPlaces = null;
val jsonObject = JSONObject(strJson)
private fun JSONObject(strJson: strJson): Any {
return JSONObject()
}
val JSONArray = "Employee"
var hashMap: H... | 0 | Kotlin | 0 | 0 | 8c2967cd9ccf9bb08a8553dbdcecb6eaf543b91f | 429 | HosiptalLocator | MIT License |
src/main/kotlin/dev/austinzhu/algods/containers/util/Operation.kt | AustinZhu | 287,033,539 | false | null | package dev.austinzhu.algods.containers.util
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.FUNCTION)
annotation class Operation(val description: String = "")
| 0 | Kotlin | 0 | 0 | e0188bad8a6519e571bdc3ee21c41764c1271f10 | 178 | AlgoDS | MIT License |
lib/src/main/java/com/sd/lib/compose/gesture/FPointerChange.kt | zj565061763 | 519,831,774 | false | null | package com.sd.lib.compose.gesture
import androidx.compose.foundation.gestures.calculatePan
import androidx.compose.foundation.gestures.forEachGesture
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import androidx.compose.ui.composed
import androidx.compose.ui.geometry.Offset
import andro... | 0 | Kotlin | 0 | 0 | 3232d9f27decc8497103086f95a5f0625835e4a8 | 5,166 | compose-gesture | MIT License |
app/src/main/java/info/penadidik/p2pmobile/MainActivity.kt | penadidik | 511,021,144 | false | null | package info.penadidik.p2pmobile
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.WindowCompat
import androidx.navigation.ui.AppBarConfiguration
import info.penadidik.couchbase.ClientPeerActivity
import info.penadidik.couchbase.ServerPeerA... | 0 | Kotlin | 0 | 0 | 723741ec32ff9adf14571c979b2c8988d62c0a0f | 1,080 | p2pMobile | MIT License |
app/src/main/java/com/yasinkacmaz/jetflix/ui/moviedetail/person/PeopleGridScreen.kt | yasinkacmaz | 223,481,763 | false | null | package com.yasinkacmaz.jetflix.ui.moviedetail.person
import androidx.compose.animation.core.Easing
import androidx.compose.animation.core.FastOutSlowInEasing
import androidx.compose.animation.core.LinearOutSlowInEasing
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.PaddingValu... | 1 | Kotlin | 27 | 256 | 1c17321bd154586b35f55cb764c73f5febeea872 | 4,026 | jetflix | MIT License |
ktaf/src/test/kotlin/com/github/benpollarduk/ktaf/command/global/AboutTest.kt | benpollarduk | 696,256,399 | false | {"Kotlin": 531898, "JavaScript": 486, "HTML": 346, "CSS": 343} | package com.github.benpollarduk.ktaf.command.global
import com.github.benpollarduk.ktaf.assets.interaction.ReactionResult
import com.github.benpollarduk.ktaf.commands.global.About
import com.github.benpollarduk.ktaf.logic.GameTestHelper
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
class A... | 1 | Kotlin | 0 | 9 | 1b865af8f8d207c3c4505647e88cca0d281869b0 | 633 | ktaf | MIT License |
app/src/main/java/com/autosec/pie/viewModels/ShareReceiverViewModel.kt | cryptrr | 850,497,911 | false | {"Kotlin": 334195, "Shell": 1942} | package com.autosec.pie.viewModels
import android.app.Application
import android.content.Intent
import android.os.Environment
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.core.content.ContextCompat.startForegroundServic... | 2 | Kotlin | 0 | 2 | 5dc9ce2a1a0950e2e6db0c85a0927b2b5e9e16f0 | 17,814 | AutoPie | Apache License 2.0 |
app/src/main/java/fnsb/macstransit/routematch/Route.kt | yeSpud | 214,586,881 | false | {"Kotlin": 170540, "Java": 2845} | package fnsb.macstransit.routematch
import android.graphics.Color
import android.util.Log
import androidx.annotation.UiThread
import com.google.android.gms.maps.GoogleMap
import com.google.android.gms.maps.model.LatLng
import com.google.maps.android.ktx.addPolyline
import org.json.JSONArray
import org.json.JSONExcepti... | 6 | Kotlin | 2 | 9 | 3562922b39aad52a2010de4c0aed15521bc220c0 | 8,392 | MACSTransitApp | The Unlicense |
08-build-common-ui-components-part-3/final/app/src/main/java/com/raywenderlich/android/librarian/ui/addBook/AddBookView.kt | kodecocodes | 300,386,927 | false | null | package com.raywenderlich.android.librarian.ui.addBook
interface AddBookView {
fun onBookAdded()
} | 4 | Kotlin | 21 | 34 | b93afbacc1e903b7b3332cd2c687ed54a703c89c | 102 | video-jcomp-materials | Apache License 2.0 |
android-app/app/src/main/java/arun/com/chromer/util/animations/SpringUtils.kt | Efreak | 435,082,649 | true | {"Java": 572028, "Kotlin": 472360, "HTML": 15099, "AIDL": 11594} | package arun.com.chromer.util.animations
import android.os.Build.VERSION.SDK_INT
import android.os.Build.VERSION_CODES.LOLLIPOP
import android.view.View
import android.view.View.*
import androidx.dynamicanimation.animation.DynamicAnimation
import androidx.dynamicanimation.animation.SpringAnimation
import androidx.dyna... | 0 | Java | 0 | 1 | 8ae744e51849a961059517fa50f6c5fd5e580fd9 | 1,729 | lynket-browser | Condor Public License v1.1 |
algorithms-kotlin/src/main/kotlin/io/github/brunogabriel/math/Factorial.kt | brunogabriel | 294,995,479 | false | null | package io.github.brunogabriel.math
fun factorial(number: Long): Long {
if (number < 0L) {
return Long.MIN_VALUE
}
var result = 1L
(2L..number).forEach {
result *= it
}
return result
}
fun factorialRecursive(number: Long): Long {
return when {
number < 0L -> retu... | 0 | Kotlin | 0 | 3 | 050a7093c0f2cf3864157c74adb84a969dea8882 | 429 | algorithms | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/personrecord/message/listeners/OffenderDomainEventsListenerIntTest.kt | ministryofjustice | 608,040,205 | false | {"Kotlin": 213786, "PLpgSQL": 15020, "Shell": 2601, "Dockerfile": 1145, "Makefile": 214} | package uk.gov.justice.digital.hmpps.personrecord.message.listeners
import org.assertj.core.api.Assertions.assertThat
import org.awaitility.kotlin.await
import org.awaitility.kotlin.matches
import org.awaitility.kotlin.untilCallTo
import org.awaitility.kotlin.untilNotNull
import org.junit.jupiter.api.Test
import uk.go... | 8 | Kotlin | 2 | 1 | 0403e4eae7fd4191d10adcb7838c055a3fe680a0 | 6,279 | hmpps-person-record | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.