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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
weather/src/main/java/ru/androidpiraters/aiweather/presentation/WeatherItemComparator.kt | Luckyss | 135,089,769 | false | {"Kotlin": 111674} | package ru.androidpiraters.aiweather.presentation
import ru.androidpirates.aiweather.presentation.recyclerview.DisplayableItem
import ru.androidpirates.aiweather.presentation.recyclerview.ItemComparator
class WeatherItemComparator : ItemComparator {
override fun areItemsTheSame(
item1: DisplayableIte... | 0 | Kotlin | 0 | 0 | e1f4e39a153de104f5983b48b478ae751feaa36d | 618 | aiweather | Apache License 2.0 |
blog/service/impl/src/test/kotlin/com/excref/kotblog/blog/service/user/UserServiceIntegrationTest.kt | rubvardanyan | 93,776,768 | true | {"Kotlin": 36902} | package com.excref.kotblog.blog.service.user
import com.excref.kotblog.blog.service.test.AbstractServiceIntegrationTest
import com.excref.kotblog.blog.service.user.domain.UserRole
import org.assertj.core.api.Assertions.assertThat
import org.junit.Test
import org.springframework.beans.factory.annotation.Autowired
impor... | 0 | Kotlin | 0 | 0 | e9c752d7e7248223ff2b4ba53f54388ce25fd7cc | 1,360 | kotblog | Apache License 2.0 |
modules/wasm-binary/src/commonMain/kotlin/visitors/ExceptionSectionVisitor.kt | wasmium | 761,480,110 | false | {"Kotlin": 352107, "JavaScript": 200} | package org.wasmium.wasm.binary.visitors
import org.wasmium.wasm.binary.tree.WasmType
public interface ExceptionSectionVisitor {
public fun visitExceptionType(exceptionIndex: UInt, types: Array<WasmType>)
public fun visitEnd()
}
| 0 | Kotlin | 0 | 1 | f7ddef76630278616d221e7c8251adf0f11b9587 | 240 | wasmium-wasm-binary | Apache License 2.0 |
minecraft/src/test/kotlin/tests/minecraft/Location.kt | MineKing9534 | 871,916,804 | false | {"Kotlin": 126964} | package tests.minecraft
import de.mineking.database.*
import de.mineking.database.vendors.PostgresConnection
import de.mineking.database.vendors.PostgresMappers
import org.bukkit.Location
import org.bukkit.World
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import setup.Console... | 0 | Kotlin | 0 | 0 | ebfd06cfb21c5d5697a28f2c6b09dc54ec1683c6 | 2,309 | KORMite | MIT License |
rtmp/src/main/java/com/pedro/rtmp/flv/video/H264Packet.kt | magiQAQ | 374,279,754 | true | {"Java": 842431, "Kotlin": 206016, "GLSL": 40954} | package com.pedro.rtmp.flv.video
import android.media.MediaCodec
import android.util.Log
import com.pedro.rtmp.flv.FlvPacket
import com.pedro.rtmp.flv.FlvType
import java.nio.ByteBuffer
import kotlin.experimental.and
/**
* Created by pedro on 8/04/21.
*
* ISO 14496-15
*/
class H264Packet(private val videoPacketCa... | 0 | Java | 0 | 0 | 3848d191a149484d2190d1c863e4b5d2f6265404 | 8,669 | rtmp-rtsp-stream-client-java | Apache License 2.0 |
app/src/main/java/me/rerere/rainmusic/util/ConditionCheck.kt | re-ovo | 414,157,893 | false | {"Kotlin": 240173} | package me.rerere.rainmusic.util
/**
* 确保T是确定数值中的一员
* 某些函数的参数可能是确定的几个值,使用此函数确保参数在确定范围内
*
* @receiver 要校验的值
* @param condition 该值的几种可能性
*/
fun <T> T.requireOneOf(vararg condition: T) {
require(condition.contains(this)) {
"param must be one of: ${condition.joinToString(",")}"
}
} | 0 | Kotlin | 4 | 71 | d2d8c7508463123da5d7183116fab8926d72b079 | 301 | RainMusic | MIT License |
heroapp/src/main/java/com/preachooda/heroapp/section/patrolling/viewModel/PatrollingViewModel.kt | Ko4eBHuK | 768,244,174 | false | {"Kotlin": 869239} | package com.preachooda.heroapp.section.patrolling.viewModel
import androidx.lifecycle.viewModelScope
import com.preachooda.assets.util.BaseViewModel
import com.preachooda.assets.util.NetworkCallState
import com.preachooda.assets.util.Status
import com.preachooda.domain.model.Patrol
import com.preachooda.heroapp.BuildC... | 0 | Kotlin | 0 | 0 | 8c7051c9000bd132e27be0ce786a6881661791ce | 4,741 | BokuNoHeroServiceApps | The Unlicense |
config/src/test/kotlin/org/springframework/security/config/annotation/web/oauth2/login/UserInfoEndpointDslTests.kt | spring-projects | 3,148,979 | false | null | /*
* Copyright 2002-2021 the original author or authors.
*
* 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 a... | 961 | null | 5864 | 8,737 | 9ba2435cb21a828dd2bccaabcac63dabf12d5dc8 | 5,748 | spring-security | Apache License 2.0 |
domain/usecase/src/main/kotlin/it/battagliandrea/formula1/domain/usecase/GetCurrentLastResultUseCase.kt | battagliandrea | 708,330,176 | false | {"Kotlin": 69787, "Shell": 1093} | package it.battagliandrea.formula1.domain.usecase
import it.battagliandrea.formula1.data.results.api.repository.IResultsRepository
import it.battagliandrea.formula1.domain.models.QueryResult
import it.battagliandrea.formula1.domain.models.Race
import it.battagliandrea.formula1.domain.usecase.GetCurrentLastResultUseCas... | 5 | Kotlin | 0 | 0 | acb9141d28ad9890eb0e4da76b22f26d5d76ae56 | 995 | Fomula1 | Apache License 2.0 |
hmf-id-generator/src/main/kotlin/com/hartwig/hmftools/idgenerator/anonymizedIds/HashId.kt | jiaan-yu | 171,220,496 | true | {"XML": 35, "Maven POM": 30, "Markdown": 13, "Git Attributes": 1, "Text": 22, "Ignore List": 1, "Java": 1078, "SQL": 34, "Shell": 1, "Kotlin": 233, "R": 3, "JSON": 1} | package com.hartwig.hmftools.idgenerator.anonymizedIds
import com.hartwig.hmftools.idgenerator.Hash
data class HashId(override val hash: Hash, override val id: Int) : AnonymizedId {
companion object {
operator fun invoke(hashString: String, id: Int) = HashId(Hash(hashString), id)
}
}
| 0 | Java | 0 | 0 | f619e02cdb166594e7dd4d7d1dd7fe8592267f2d | 303 | hmftools | MIT License |
unlockable/core-common/src/test/kotlin/com/rarible/protocol/unlockable/util/SignUtilTest.kt | NFTDroppr | 418,665,809 | true | {"Kotlin": 2329156, "Scala": 37343, "Shell": 6001, "HTML": 547} | package com.rarible.protocol.unlockable.util
import com.rarible.ethereum.common.generateNewKeys
import com.rarible.ethereum.common.toBinary
import com.rarible.ethereum.domain.EthUInt256
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
import org.web3j.crypto.Sign
import scalether.domain.Addres... | 0 | Kotlin | 0 | 1 | b1efdaceab8be95429befe80ce1092fab3004d18 | 1,085 | ethereum-indexer | MIT License |
application-model/src/test/kotlin/pl/beone/promena/transformer/barcodedetector/zxingopencv/applicationmodel/support/ZxingOpenCvBarcodeDetectorMediaTypeSupportTest.kt | BeOne-PL | 235,078,126 | false | null | package pl.beone.promena.transformer.barcodedetector.zxingopencv.applicationmodel.support
import io.kotlintest.shouldNotThrow
import io.kotlintest.shouldThrow
import org.junit.jupiter.api.Test
import pl.beone.promena.transformer.applicationmodel.exception.transformer.TransformationNotSupportedException
import pl.beone... | 1 | null | 1 | 1 | 3aa2e278563b3b580639f3bcefc44d6696e56cd3 | 1,367 | promena-transformer-barcode-detector-zxing-opencv | Apache License 2.0 |
features/search/src/test/java/com/lcabral/catsbyme/features/search/StubsSearch.kt | LucianaCabral | 745,895,275 | false | {"Kotlin": 66172} | package com.lcabral.catsbyme.features.search
import com.lcabral.catsbyme.features.search.domain.model.Search
internal object StubsSearch {
fun searchBreeds(): List<Search> {
return listOf(
Search(
id = "adsfs",
name = "Siamese",
referenceImageId ... | 0 | Kotlin | 0 | 0 | 374b1a31b67b8eb14b3d92006b985c77bf058c94 | 359 | Catsbyme | MIT License |
core/src/main/kotlin/com/sbgapps/scoreit/core/utils/string/StringFactory.kt | StephaneBg | 16,022,770 | false | null | /*
* Copyright 2019 <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 writin... | 1 | null | 11 | 37 | 7684d40c56c3293b1e9b06158efcbefa51693f7a | 980 | ScoreIt | Apache License 2.0 |
app/src/main/java/com/innovara/autoseers/onboarding/ui/PhoneAuthenticationScreen.kt | Autoseer-Org | 821,653,056 | false | {"Kotlin": 214370} | package com.innovara.autoseers.onboarding.ui
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.pa... | 1 | Kotlin | 0 | 2 | d5a8a6d3bfc8215716544d37792230f796728053 | 5,112 | autoseers | Apache License 2.0 |
sykepenger-model/src/test/kotlin/no/nav/helse/spleis/e2e/BerOmInntektsmeldingTest.kt | navikt | 193,907,367 | false | null | package no.nav.helse.spleis.e2e
import no.nav.helse.februar
import no.nav.helse.hendelser.Periode
import no.nav.helse.hendelser.Sykmeldingsperiode
import no.nav.helse.hendelser.Søknad.Søknadsperiode.Sykdom
import no.nav.helse.hendelser.til
import no.nav.helse.januar
import no.nav.helse.mars
import no.nav.helse.person.... | 2 | null | 7 | 5 | 314d8a6e32b3dda391bcac31e0b4aeeee68f9f9b | 6,186 | helse-spleis | MIT License |
app/src/main/java/com/project/farmingapp/viewmodel/UserDataViewModel.kt | hetsuthar028 | 325,234,399 | false | null | package com.project.farmingapp.viewmodel
import android.content.Context
import android.util.Log
import android.widget.Toast
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.google.firebase.firestore.DocumentSnapshot
import com.google.firebase.firestore.FieldValue
import com.goog... | 9 | Kotlin | 25 | 58 | 53cf61fe4158db356d1c7741065820deea7104ce | 3,619 | Farming-App | MIT License |
feature-staking-impl/src/main/java/io/novafoundation/nova/feature_staking_impl/domain/validations/setup/SetupStakingValidationFailure.kt | novasamatech | 415,834,480 | false | null | package io.novafoundation.nova.feature_staking_impl.domain.validations.setup
import java.math.BigDecimal
sealed class SetupStakingValidationFailure {
object CannotPayFee : SetupStakingValidationFailure()
object NotEnoughStakeable : SetupStakingValidationFailure()
class AmountLessThanAllowed(val thresho... | 9 | Kotlin | 3 | 5 | 67bd23703276cdc1b804919d0baa679ada28db7f | 537 | nova-wallet-android | Apache License 2.0 |
compose/runtime/runtime/src/commonMain/kotlin/androidx/compose/runtime/Effects.kt | RikkaW | 389,105,112 | false | null | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 28 | null | 992 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 21,598 | androidx | Apache License 2.0 |
app/src/main/java/com/adgvcxz/diycode/util/AppBlockCanaryContext.kt | adgvcxz | 81,537,644 | false | null | package com.car_inspection.app
import android.content.Context
import com.github.moduth.blockcanary.BlockCanaryContext
import com.github.moduth.blockcanary.internal.BlockInfo
import java.io.File
import java.util.*
class AppBlockCanaryContext : BlockCanaryContext() {
/**
* Implement in your project.
*
... | 1 | null | 1 | 4 | 9c10218be1291a2a3cd7676f3357320bf7c8961f | 4,003 | Diycode | Apache License 2.0 |
src/app/src/main/java/com/huawei/demo/health/HealthKitMainActivity.kt | HMS-Core | 310,166,404 | false | null | /*
* Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
* 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... | 1 | null | 7 | 25 | 914f1007264a15e3f9ff387c1b8d774da3cc3d54 | 3,990 | hms-health-demo-kotlin | Apache License 2.0 |
libraries/stdlib/unsigned/src/kotlin/UnsignedUtils.kt | JakeWharton | 99,388,807 | false | null | /*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package kotlin
internal fun uintCompare(v1: Int, v2: Int): Int = (v1 xor Int.MIN_VALUE).compareTo(v2 xor Int.MIN_VALUE)
internal fun ulongCompare(v1: Long,... | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 2,434 | kotlin | Apache License 2.0 |
pluto-plugins/plugins/network/core/lib/src/main/java/com/pluto/plugins/network/internal/share/ShareOptionsAdapter.kt | androidPluto | 390,471,457 | false | {"Kotlin": 744352, "Shell": 646} | package com.pluto.plugins.network.internal.share
import android.view.ViewGroup
import com.pluto.plugins.network.internal.share.holders.ShareHeadingHolder
import com.pluto.plugins.network.internal.share.holders.ShareOptionHolder
import com.pluto.plugins.network.internal.share.holders.ShareResponseOptionHolder
import co... | 23 | Kotlin | 64 | 657 | 5562cb7065bcbcf18493820e287d87c7726f630b | 1,517 | pluto | Apache License 2.0 |
src/tools/important/tankslua/tkv/TKVDecoder.kt | dabigf5 | 752,112,579 | false | {"Kotlin": 47791, "Lua": 5421} | package tools.important.tankslua.tkv
class TKVDecodeException(message: String) : Exception(message)
private fun decodeFail(message: String): Nothing = throw TKVDecodeException(message)
private class ParseState(val text: String, var position: Int = 0) {
fun peek(offset: Int = 0): Char? {
val peekPos = pos... | 0 | Kotlin | 0 | 2 | 9a9cef853f320490e7d00588368f986f3f0dd5f8 | 3,929 | TanksLua | MIT License |
src/main/kotlin/de/akquinet/tim/proxy/logging/LogLevelService.kt | tim-ref | 751,475,615 | false | {"Kotlin": 312946, "Perl": 30621, "Shell": 11056, "Dockerfile": 3792, "Python": 976} | /*
* Copyright © 2023 - 2024 akquinet GmbH (https://www.akquinet.de)
*
* 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 req... | 0 | Kotlin | 0 | 1 | 70c6c72b6ce80b877628d7634754f30f00cf21b9 | 2,222 | messenger-proxy | Apache License 2.0 |
availability/core/src/main/java/com/github/availability/ad/core/AdCache.kt | 7449 | 652,961,505 | false | {"Kotlin": 72805} | package com.github.availability.ad.core
import com.github.availability.ad.debug.AdLog
object AdCache {
private val adCaches = linkedMapOf<String, Ad?>()
@JvmStatic
@Synchronized
fun checkExpireTimeCache() {
AdLog.i("checkExpireTimeCache")
adCaches.checkExpireTimeCache()
}
@J... | 0 | Kotlin | 1 | 4 | 4f4a08e973abd1b6c00182ee66c0ae9c3b86ae24 | 1,754 | AvailabilityAd | Apache License 2.0 |
app/src/main/java/com/qxy/tiktlin/data/netData/VideoList.kt | lukelmouse-github | 517,612,289 | false | null | package com.qxy.tiktlin.data.netData
import java.io.Serializable
data class VideoList(
val data: Data,
val extra: Extra
) : Serializable {
data class Data(
val cursor: Long,
val has_more: Boolean,
val list: List<Video>
) : Serializable
data class Video(
val video_s... | 0 | Kotlin | 0 | 1 | 5ba2bdc7eb41371b578d52e8289b8d08f77ce10d | 927 | Tiktlin | Apache License 2.0 |
src/main/kotlin/de/debuglevel/streetdirectory/street/GetStreetResponse.kt | debuglevel | 349,827,124 | false | null | package de.debuglevel.streetdirectory.street
import io.micronaut.data.annotation.DateCreated
import io.micronaut.data.annotation.DateUpdated
import java.time.LocalDateTime
import java.util.*
data class AddStreetResponse(
val id: UUID,
/**
* The postal code
*/
var postalcode: String,
/**
... | 9 | Kotlin | 0 | 1 | f979b8311174d7182ade8fb801f28f4d08d491be | 1,057 | street-lister | The Unlicense |
Android/app/src/main/java/com/amrdeveloper/askme/ui/notification/NotificationViewModel.kt | AmrDeveloper | 223,007,000 | false | null | package com.amrdeveloper.askme.ui.notification
import android.util.Log
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.*
import com.amrdeveloper.askme.data.Notification
import com.amrdeveloper.askme.data.source.NotificationRe... | 9 | Kotlin | 4 | 19 | 7b86588cd7cff18d7ba93758ceeff56e3b44d2be | 1,645 | Askme | MIT License |
eva-icons/generate-source.main.kts | DevSrSouza | 311,134,756 | false | null | @file:Repository("https://jitpack.io")
@file:Repository("https://maven.google.com")
@file:Repository("https://jetbrains.bintray.com/trove4j")
@file:Repository("file:///home/devsrsouza/.m2/repository")
// svg-to-compose
//@file:DependsOn("com.github.DevSrSouza:svg-to-compose:0.5.0")
@file:DependsOn("br.com.devsrsouza:s... | 15 | null | 20 | 460 | 651badc4ace0137c5541f859f61ffa91e5242b83 | 5,824 | compose-icons | MIT License |
game/plugins/src/main/kotlin/gg/rsmod/plugins/content/npcs/definitions/undeads/count_draynor_level_37.plugin.kts | 2011Scape | 578,880,245 | false | null | package gg.rsmod.plugins.content.npcs.definitions.undeads
import gg.rsmod.game.model.attr.killedCountDraynor
import gg.rsmod.plugins.content.drops.DropTableFactory
val count = Npcs.COUNT_DRAYNOR
val table = DropTableFactory
val countTable = table.build {
guaranteed {
nothing(128)
}
}
table.register... | 39 | null | 143 | 34 | e5400cc71bfa087164153d468979c5a3abc24841 | 1,656 | game | Apache License 2.0 |
ttl2-compatible/src/test/java/com/alibaba/perf/Utils.kt | alibaba | 13,536,393 | false | null | package com.alibaba.perf
import java.util.*
private val random = Random()
internal fun bytes2Hex(bytes: ByteArray): String {
val sb = StringBuilder(1024)
for (b in bytes) {
val s = Integer.toHexString(b.toInt() and 0xFF)
sb.append(if (s.length == 1) "0$s" else s)
}
return sb.toString(... | 33 | null | 1687 | 7,600 | 4e9957584f204ce45274f038342268c66e694d85 | 531 | transmittable-thread-local | Apache License 2.0 |
modules/libgdx/kotlin/com/huskerdev/openglfx/libgdx/internal/OGLFXGraphics.kt | husker-dev | 393,363,130 | false | {"C++": 14907461, "C": 196825, "Kotlin": 146113, "Objective-C": 5907} | package com.huskerdev.openglfx.libgdx.internal
import com.badlogic.gdx.AbstractGraphics
import com.badlogic.gdx.Application
import com.badlogic.gdx.Graphics
import com.badlogic.gdx.Graphics.DisplayMode
import com.badlogic.gdx.graphics.*
import com.badlogic.gdx.graphics.Cursor.SystemCursor.*
import com.badlogic.gdx.gra... | 9 | C++ | 8 | 84 | ac22d5435915f16fa731b9e3564533c2507f2dc0 | 5,174 | openglfx | Apache License 2.0 |
src/main/kotlin/silentorb/imp/intellij/actions/ToggleTilingAction.kt | silentorb | 239,162,536 | false | null | package silentorb.imp.intellij.actions
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.ToggleAction
import com.intellij.openapi.application.ApplicationManager
import silentorb.imp.intellij.messaging.toggleTilingTopic
import silentorb.imp.intellij.ui.texturing.getTiling
i... | 0 | Kotlin | 0 | 0 | 24c4f4b4e712256ee7686a947021072a6e9a2549 | 778 | imp-intellij | MIT License |
app/src/main/java/com/example/ead_mobile_application__native/screen/CartActivity.kt | LakinduVirajith | 860,762,466 | false | {"Kotlin": 110114} | package com.example.ead_mobile_application__native.screen
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.view.View
import android.view.WindowInsetsController
import android.widget.Button
import android.widget.LinearLayout
import android.widget.TextView
import android.widg... | 0 | Kotlin | 0 | 0 | 3a895c7398f9ec6989ce9374d604560d435359c6 | 7,610 | EAD-Mobile-Application--Native | MIT License |
app/src/main/java/pl/droidsonroids/toast/repositories/contact/ContactRepositoryImpl.kt | l-o-b-s-t-e-r | 126,404,496 | true | {"Kotlin": 377167, "Prolog": 102} | package pl.droidsonroids.toast.repositories.contact
import io.reactivex.Single
import pl.droidsonroids.toast.data.dto.contact.MessageDto
import pl.droidsonroids.toast.data.mapper.toApi
import pl.droidsonroids.toast.services.ContactService
import pl.droidsonroids.toast.services.ContactStorage
import javax.inject.Inject... | 0 | Kotlin | 0 | 0 | b33bb2419802e936cec67f771b067adda92f2117 | 749 | Toast-App | Apache License 2.0 |
src/main/kotlin/io/github/seggan/sf4k/extensions/VectorUtils.kt | Seggan | 745,690,345 | false | {"Kotlin": 67244, "Java": 3127} | package io.github.seggan.sf4k.extensions
import org.bukkit.util.Vector
operator fun Vector.component1() = x
operator fun Vector.component2() = y
operator fun Vector.component3() = z
operator fun Vector.plus(other: Vector) = clone().add(other)
operator fun Vector.plusAssign(other: Vector) { add(other) }
operator fun... | 0 | Kotlin | 1 | 4 | 18c0074c9e8502c6431294da0c101b182269a034 | 1,278 | sf4k | Apache License 2.0 |
app/src/main/java/com/example/gibmejob/model/Constants.kt | ken1000minus7 | 558,568,195 | false | {"Kotlin": 112607} | package com.example.gibmejob.model
object Constants {
const val Users = "Users"
const val JobApplications = "JobApplications"
const val Jobs = "Jobs"
} | 0 | Kotlin | 2 | 0 | 895f90c938c3ebeff5edcb2287575af80e9f0ea9 | 164 | GibMeJob | MIT License |
app/src/main/java/com/android254/droidconke19/firebase/InstanceIdService.kt | carolinemusyoka | 222,480,419 | true | {"Kotlin": 179280, "HTML": 54621, "Java": 828} | package com.android254.droidconke19.firebase
import android.content.SharedPreferences
import com.android254.droidconke19.utils.SharedPref.FIREBASE_TOKEN
import com.google.firebase.messaging.FirebaseMessagingService
import org.koin.android.ext.android.inject
import org.koin.core.parameter.parametersOf
class InstanceI... | 0 | null | 0 | 2 | 8e5410b786760a573a5498007a53cec94729c9ed | 684 | droidconKE2019App | MIT License |
src/main/kotlin/io/github/deficuet/alpa/gui/PaintingPanel.kt | Deficuet | 482,093,606 | false | null | package io.github.deficuet.alpa.gui
import io.github.deficuet.alpa.function.PaintingFunctions
import io.github.deficuet.alpa.utils.*
import javafx.beans.property.SimpleObjectProperty
import javafx.beans.property.SimpleStringProperty
import javafx.geometry.Pos
import javafx.scene.control.*
import javafx.scene.paint.Col... | 1 | Kotlin | 0 | 22 | 8dd8106a9d3c827c9f23e730cc15c895f8e9cc2e | 2,153 | AzurLanePaintingAnalysis-Kt | MIT License |
openpss/src/main/kotlin/com/hanggrian/openpss/control/DoubleField.kt | hanggrian | 104,778,225 | false | {"Kotlin": 324374, "HTML": 18736, "SCSS": 7162, "CSS": 5335, "Ruby": 147} | package com.hanggrian.openpss.control
import com.jfoenix.controls.JFXTextField
import javafx.beans.property.BooleanProperty
import javafx.beans.property.DoubleProperty
import javafx.beans.property.SimpleBooleanProperty
import javafx.beans.property.SimpleDoubleProperty
import ktfx.bindings.booleanBindingOf
import ktfx.... | 1 | Kotlin | 0 | 7 | 02013488fc115de903e7775d7c6d18d83537dcac | 1,328 | openpss | Apache License 2.0 |
src/main/kotlin/codespitz10/SortType.kt | skaengus2012 | 195,506,540 | false | {"Gradle": 2, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Kotlin": 109, "Java": 22} | /*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 1 | null | 1 | 1 | 645130abf71e0374dfea6077a1b7babcd10921b2 | 1,119 | OBJECT_STUDY | Apache License 2.0 |
src/commonMain/kotlin/csense/kotlin/extensions/collections/generic/ForEach.kt | csense-oss | 136,911,995 | false | null | @file:Suppress("unused", "NOTHING_TO_INLINE")
package csense.kotlin.extensions.collections.generic
import csense.kotlin.*
import csense.kotlin.annotations.numbers.*
import csense.kotlin.extensions.collections.*
import csense.kotlin.extensions.primitives.*
public typealias Function2Unit<T, U> = (first: T, second: U)... | 1 | Kotlin | 0 | 2 | 49113dd6b2cb1e18992d07faa1e0305d18f766f4 | 4,244 | csense-kotlin | MIT License |
app/src/main/java/com/yablunin/shopnstock/di/DomainModule.kt | yabluninn | 702,962,028 | false | null | package com.yablunin.shopnstock.di
import com.yablunin.shopnstock.domain.repositories.ListHandlerRepository
import com.yablunin.shopnstock.domain.repositories.ListRepository
import com.yablunin.shopnstock.domain.repositories.ShoppingListHandlerRepository
import com.yablunin.shopnstock.domain.repositories.ShoppingListR... | 0 | null | 0 | 3 | eb1b9e2f0ceda62b0cc57173034b3186aef7e3e2 | 4,573 | shopnstock | MIT License |
framework666/src/main/java/studio/attect/framework666/extensions/Context.kt | Attect | 192,833,321 | false | null | package studio.attect.framework666.extensions
import android.app.ActivityManager
import android.content.Context
import android.os.Build
import android.os.Environment
import android.os.Handler
import android.os.Looper
import android.os.storage.StorageManager
import org.msgpack.core.MessagePack
import studio.attect.fram... | 0 | null | 1 | 6 | 22285ee7026abf6fd00150af6a96d12287154336 | 13,524 | Android-Framework666 | Apache License 2.0 |
framework666/src/main/java/studio/attect/framework666/extensions/Context.kt | Attect | 192,833,321 | false | null | package studio.attect.framework666.extensions
import android.app.ActivityManager
import android.content.Context
import android.os.Build
import android.os.Environment
import android.os.Handler
import android.os.Looper
import android.os.storage.StorageManager
import org.msgpack.core.MessagePack
import studio.attect.fram... | 0 | null | 1 | 6 | 22285ee7026abf6fd00150af6a96d12287154336 | 13,524 | Android-Framework666 | Apache License 2.0 |
base-domain/src/main/kotlin/org/ossiaustria/lib/domain/database/NfcInfoDao.kt | ossi-austria | 430,606,582 | false | {"Kotlin": 456155, "HTML": 2066, "Dockerfile": 441} | package org.ossiaustria.lib.domain.database
import androidx.room.Dao
import androidx.room.Query
import androidx.room.Transaction
import kotlinx.coroutines.flow.Flow
import org.ossiaustria.lib.domain.database.entities.NfcInfoEntity
import java.util.*
@Dao
abstract class NfcInfoDao : AbstractEntityDao<NfcInfoEntity, Nf... | 0 | Kotlin | 0 | 1 | 8d8b167555d62e6ceb58a20efe9d6ee0c609b199 | 800 | amigo-box | MIT License |
sphinx/application/network/concepts/concept-link-preview/src/main/java/chat/sphinx/concept_link_preview/LinkPreviewHandler.kt | stakwork | 340,103,148 | false | {"Kotlin": 4008358, "Java": 403469, "JavaScript": 4745, "HTML": 4706, "Shell": 2453} | package chat.sphinx.concept_link_preview
import chat.sphinx.wrapper_common.tribe.TribeJoinLink
import chat.sphinx.concept_link_preview.model.HtmlPreviewData
import chat.sphinx.concept_link_preview.model.TribePreviewData
abstract class LinkPreviewHandler {
abstract suspend fun retrieveHtmlPreview(url: String): Htm... | 96 | Kotlin | 11 | 18 | 64eb5948ee1878cea6f375adc94ac173f25919fa | 435 | sphinx-kotlin | MIT License |
src/main/kotlin/model/Course.kt | KevinD-UP | 278,425,508 | false | null | package model
data class Course(val id: Int,
val title: String,
val level: Int,
val isActive: Boolean) | 0 | Kotlin | 0 | 0 | 87e60d33325946e09e787637397d5a220fc03882 | 157 | OCWebServer | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsalertsapi/service/event/AlertEventServiceTest.kt | ministryofjustice | 750,461,021 | false | {"Kotlin": 693597, "Shell": 1834, "Mermaid": 1398, "Dockerfile": 1372} | package uk.gov.justice.digital.hmpps.hmppsalertsapi.service.event
import com.microsoft.applicationinsights.TelemetryClient
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.mockito.kotlin.any
import org.mockito.kotlin.argumentCaptor
import org.mockito.kotlin.mock
import org... | 1 | Kotlin | 1 | 0 | ff2c9aee38daa3cc0654b7957a9da0ffca7ceee8 | 3,282 | hmpps-alerts-api | MIT License |
app/src/main/java/com/kyant/pixelmusic/ui/sharedelements/MathUtils.kt | Kyant0 | 334,608,108 | false | null | package sharedelementtransaction
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.geometry.Rect
import androidx.compose.ui.geometry.Size
import androidx.compose.ui.layout.ScaleFactor
import androidx.compose.ui.layout.lerp
internal val Rect.area: Float
get() = width * height
internal operator... | 2 | Kotlin | 9 | 95 | e94362a4bc9c6da13b1a1848dce528975bf52b13 | 1,911 | PixelMusic | Apache License 2.0 |
core/src/main/kotlin/com/justai/jaicf/plugin/PathValue.kt | just-ai | 246,869,336 | false | null | package com.justai.jaicf.plugin
/**
* This annotation indicates to the plugin that a StatePath will be passed to the annotated parameter or receiver.
* This allows you to use the plugin's features, such as state navigation and inspections. To use it,
* you need to annotate a parameter of a function or a primary con... | 21 | null | 39 | 241 | cc076db73e03bf89db2ab94e7f48c8736735706b | 777 | jaicf-kotlin | Apache License 2.0 |
app/src/main/java/com/newgamesoftware/moviesappdemo/subviews/imageViews/ImageViewTop.kt | nejatboy | 426,532,203 | false | null | package com.newgamesoftware.moviesappdemo.subviews.imageViews
import android.content.Context
import androidx.constraintlayout.widget.ConstraintLayout
import com.newgamesoftware.moviesappdemo.base.view.imageView.BaseImageView
class ImageViewTop(context: Context) : BaseImageView(context) {
init {
layoutPar... | 0 | Kotlin | 0 | 2 | f1f4a0f21834b1f32d914cd4a0e089d0a587a46e | 513 | MoviesDemo-Android | MIT License |
app/src/main/java/com/boolder/boolder/view/detail/composable/CircuitControls.kt | boolder-org | 566,723,758 | false | null | package com.boolder.boolder.view.detail.composable
import androidx.annotation.DrawableRes
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.p... | 7 | null | 9 | 26 | dd93a7b9c29ee0eec80b63a62de4b5eea7203f6e | 3,546 | boolder-android | MIT License |
core/src/main/kotlin/no/nav/poao_tilgang/core/provider/GeografiskTilknyttetEnhetProvider.kt | navikt | 491,417,288 | false | null | package no.nav.poao_tilgang.core.provider
import no.nav.poao_tilgang.core.domain.NavEnhetId
import no.nav.poao_tilgang.core.domain.NorskIdent
interface GeografiskTilknyttetEnhetProvider {
fun hentGeografiskTilknytetEnhet(norskIdent: NorskIdent): NavEnhetId?
}
| 3 | Kotlin | 0 | 0 | 720f11182c5e648ff74a21cf030a02a2449318bf | 264 | poao-tilgang | MIT License |
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/quickfix/AddModifierFixFE10.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.quickfix
import com.intellij.codeInsight.intention.IntentionAction
import com.intellij.openapi.editor.Editor
import com.intel... | 191 | null | 4372 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 5,121 | intellij-community | Apache License 2.0 |
app/src/main/java/com/example/moviedatabase/favourites/data/entity/FavouriteMapper.kt | ali-gevari | 838,166,478 | false | {"Kotlin": 192241} | package com.example.moviedatabase.favourites.data.entity
import com.example.moviedatabase.allMovies.data.entity.MovieDto
import com.example.moviedatabase.allShows.data.entity.ShowDto
import com.example.moviedatabase.favourites.domain.entity.FavouriteProgram
import com.example.moviedatabase.util.Constant.IMAGE_BASE_URL... | 1 | Kotlin | 0 | 0 | 764509e150c28857d2992f2d2e1b427faaa0c5f7 | 1,491 | MovieDatabase | Apache License 2.0 |
samples/src/main/kotlin/com/simplemobiletools/fileproperties/samples/MainActivity.kt | srkns | 83,441,285 | true | {"Kotlin": 9412} | package com.simplemobiletools.fileproperties.samples
import android.Manifest
import android.content.pm.PackageManager
import android.os.Bundle
import android.support.v4.app.ActivityCompat
import android.support.v7.app.AppCompatActivity
import com.simplemobiletools.filepicker.dialogs.FilePickerDialog
import com.simplem... | 0 | Kotlin | 0 | 0 | a8b4d2a164427bb9525c10442f9ac0942276d6ed | 1,831 | Simple-File-Properties | Apache License 2.0 |
presentation/src/main/kotlin/com/yossisegev/movienight/popularmovies/PopularMoviesViewModel.kt | mrsegev | 122,669,273 | false | null | package com.yossisegev.movienight.popularmovies
import android.arch.lifecycle.MutableLiveData
import com.yossisegev.domain.Mapper
import com.yossisegev.domain.entities.MovieEntity
import com.yossisegev.domain.usecases.GetPopularMovies
import com.yossisegev.movienight.common.BaseViewModel
import com.yossisegev.movienig... | 7 | null | 147 | 772 | 7df52e6c93d6932b4b58de9f4f906f86df93dce1 | 1,493 | MovieNight | Apache License 2.0 |
time/src/commonMain/kotlin/com/merseyside/merseyLib/time/ext/CollectionExt.kt | Merseyside | 396,607,192 | false | null | package com.merseyside.merseyLib.time.ext
import com.merseyside.merseyLib.time.TimeUnit
import com.merseyside.merseyLib.time.plus
fun List<TimeUnit>.sum(): TimeUnit {
var sum = TimeUnit.getEmpty()
forEach { sum += it }
return sum
}
inline fun <T> Iterable<T>.sumOf(selector: (T) -> TimeUnit): TimeUnit {
... | 0 | Kotlin | 0 | 0 | 6c3fc6caade990ad92562f89bc33beb77072f879 | 447 | mersey-kmp-time | Apache License 2.0 |
compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/loops/ProgressionHandlers.kt | walltz556 | 212,946,144 | false | null | /*
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.backend.common.lower.loops
import org.jetbrains.kotlin.backend.common.CommonBack... | 7 | null | 1 | 1 | f17e9ba9febdabcf7a5e0f17e4be02e0f9e87f13 | 17,620 | kotlin | Apache License 2.0 |
firebase-messaging/src/nativeMain/kotlin/suntrix/kmp/firebase/messaging/Firebase.kt | kotlin-multiplatform | 542,823,504 | false | {"Kotlin": 126662, "Makefile": 152} | package suntrix.kmp.firebase.messaging
import native.FirebaseMessaging.FIRMessaging
import suntrix.kmp.firebase.Firebase
/**
* Created by <NAME> on 14/04/2023
*/
actual val Firebase.messaging: FirebaseMessaging
get() = FirebaseMessaging(FIRMessaging.messaging()) | 0 | Kotlin | 0 | 1 | 684e9142ce9fced949c1a9c539e8651aeb0a87da | 270 | firebase-kmp-sdks | MIT License |
compiler/testData/diagnostics/tests/smartCasts/kt27221_2.fir.kt | JetBrains | 3,432,266 | false | null | // !DIAGNOSTICS: -UNUSED_VARIABLE
// SKIP_TXT
sealed class A
sealed class B : A()
sealed class C : B()
sealed class D : C()
object BB : B()
object CC : C()
object DD : D()
fun foo1(a: A) {
if (a is B) {
if (a is D) {
if (<!USELESS_IS_CHECK!>a is C<!>) {
val t =
... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 681 | kotlin | Apache License 2.0 |
commonCompose/src/commonMain/kotlin/tk/zwander/commonCompose/view/pages/DecryptView.kt | zacharee | 342,079,605 | false | null | package tk.zwander.commonCompose.view.pages
import androidx.compose.foundation.ScrollState
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.verticalScroll
import androidx.compose.material3.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.com... | 12 | Kotlin | 57 | 484 | d96d942d745e8fb96c88202ba39c2ad116335351 | 5,868 | SamloaderKotlin | MIT License |
detekt-api/src/main/kotlin/io/gitlab/arturbosch/detekt/api/KtTestCompiler.kt | warnergodfrey | 79,441,818 | true | {"Kotlin": 161349, "Java": 153} | package io.gitlab.arturbosch.detekt.api
import com.intellij.openapi.util.Disposer
import com.intellij.psi.PsiFileFactory
import org.jetbrains.kotlin.cli.jvm.compiler.EnvironmentConfigFiles
import org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment
import org.jetbrains.kotlin.config.CompilerConfiguration
import... | 0 | Kotlin | 0 | 0 | 645ff4b571dff29e728171ffbd2906132d0c2c11 | 1,814 | detekt | Apache License 2.0 |
site/src/jvmMain/kotlin/dev/yekta/searchit/api/SearchEngine.kt | YektaDev | 806,609,098 | false | {"Kotlin": 59797} | package dev.yekta.searchit.api
import com.moriatsushi.cacheable.Cacheable
import com.varabyte.kobweb.api.log.Logger
import dev.yekta.searchit.api.model.Page
import dev.yekta.searchit.api.repo.DBManager
import dev.yekta.searchit.api.repo.StringNormalizer
import dev.yekta.searchit.api.repo.WebpageIndexes
import dev.yekt... | 0 | Kotlin | 0 | 0 | 2252d39c1274b3d71899ef9d11848afa6de0b711 | 4,624 | searchit | Apache License 2.0 |
src/frontendMain/kotlin/io/joaofig/vedmap/viewmodels/VehicleListViewModel.kt | joaofig | 437,581,924 | false | null | package io.joaofig.vedmap.viewmodels
class VehicleListViewModel : ViewModel() {
} | 0 | Kotlin | 0 | 1 | 6b11d1183cc48526612a33967c516a5bfcbc6e07 | 82 | ved-map | MIT License |
app/common/src/commonMain/kotlin/sh/christian/ozone/user/UserDatabase.kt | christiandeange | 611,550,055 | false | {"Kotlin": 484890, "Shell": 1254, "Swift": 690, "HTML": 306, "JavaScript": 202, "CSS": 129} | package sh.christian.ozone.user
import app.bsky.actor.GetProfileQueryParams
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.distinctUntilChanged
import kotlinx.coroutines.flow.emitAll
import kotlinx.coroutines.flow.filterNotNull
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.mapN... | 1 | Kotlin | 6 | 34 | df457f4fcedca8e621c99689a79b46812023bffd | 2,452 | ozone | MIT License |
Client/app/src/main/java/uk/ac/aber/dcs/mmp/faa/ui/adoption/AdoptionStatusCard.kt | Pasarus | 236,987,746 | 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 writing... | 0 | Kotlin | 1 | 2 | 1080db746af565288fa6a7bdca419f01932a7a28 | 3,991 | FelineAdoptionAgencyMajorProject | Apache License 2.0 |
plugin-dotnet-agent/src/main/kotlin/jetbrains/buildServer/agent/runner/ToolInstanceFactory.kt | JetBrains | 49,584,664 | false | null |
package jetbrains.buildServer.agent.runner
import jetbrains.buildServer.agent.Version
import jetbrains.buildServer.dotnet.Platform
import java.io.File
interface ToolInstanceFactory {
fun tryCreate(path: File, baseVersion: Version, platform: Platform): ToolInstance?
} | 3 | null | 25 | 94 | 5f444c22b3354955d1060e08478d543d2b0b99b0 | 275 | teamcity-dotnet-plugin | Apache License 2.0 |
app/src/test/java/com/zeynelerdi/deezer/repository/MainRepositoryTest.kt | ZeynelErdiKarabulut | 318,848,182 | false | null | package com.fevziomurtekin.deezer.repository
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import app.cash.turbine.test
import com.fevziomurtekin.deezer.core.MockUtil
import com.fevziomurtekin.deezer.core.Result
import com.fevziomurtekin.deezer.data.albumdetails.AlbumData
import com.fevziomurtekin... | 0 | null | 0 | 1 | f6ef2843d34dbb853181658cb9e001206df4694a | 11,067 | DeezerClone | Apache License 2.0 |
sdk/src/main/java/com/seamlesspay/ui/common/filled/CvcInputFilled.kt | seamlesspay | 235,817,887 | false | {"Kotlin": 190728, "Java": 131412} | package com.seamlesspay.ui.common.filled
import android.content.Context
import android.os.Build
import android.text.Editable
import android.text.InputFilter
import android.text.InputType
import android.text.method.DigitsKeyListener
import android.util.AttributeSet
import android.view.View
import androidx.core.content.... | 11 | Kotlin | 1 | 2 | ceefb734015ad35bb8a556ba6b2933687b59ef7f | 3,300 | seamlesspay-android | MIT License |
MSDKUIDemo/MSDKUIApp/src/main/java/com/here/msdkuiapp/guidance/GuidanceRouteSelectionCoordinator.kt | heremaps | 141,680,627 | false | null | /*
* Copyright (C) 2017-2019 HERE Europe B.V.
*
* 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... | 1 | null | 19 | 49 | 3b54e002f92cb92edb5a71e55fb064e6112158d6 | 4,333 | msdkui-android | Apache License 2.0 |
src/main/kotlin/net/andreinc/serverneat/server/RouteDSL.kt | nomemory | 255,720,445 | false | null | package net.andreinc.serverneat.server
import io.vertx.core.http.HttpHeaders
import io.vertx.core.http.HttpMethod
import io.vertx.ext.web.Router
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import mu.KotlinLogging
import net.andreinc.mockneat.abstraction.MockUn... | 11 | Kotlin | 0 | 18 | 13e34a1e4cab05dade445f1ad5495cb3956e97fc | 4,634 | serverneat | Apache License 2.0 |
app/src/main/java/com/wwy/android/ui/homeplaza/MainWeChatNumFragment.kt | wwy863399246 | 209,758,901 | false | null | package com.wwy.android.ui.homeplaza
import android.view.View
import android.widget.TextView
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.viewpager2.widget.ViewPager2
import com.angcyo.tablayout.delegate2.ViewPager2Delegate
import com.jeremyliao.liveeventbus.LiveEventBus
imp... | 0 | Kotlin | 9 | 71 | 672b054b5c1aba0b323e8e082a3dea13b25bf971 | 3,869 | WanAndroid | Apache License 2.0 |
android/classic/src/main/kotlin/studio/forface/covid/android/classic/ClassicRouter.kt | 4face-studi0 | 245,708,616 | false | null | package studio.forface.covid.android.classic
import androidx.fragment.app.FragmentActivity
import studio.forface.covid.android.Router
import studio.forface.covid.android.classic.ui.CountryStatActivity
import studio.forface.covid.android.classic.ui.SearchActivity
import studio.forface.covid.domain.entity.CountryId
/**... | 2 | Kotlin | 0 | 6 | ebabaf30bcb5d9cd46bfb7132a6046cc56f86362 | 908 | Covid19 | Apache License 2.0 |
src/main/kotlin/lib/InputDownloader.kt | Advent-of-Code-Netcompany-Unions | 726,531,711 | false | {"Kotlin": 28575} | package lib
import io.ktor.client.*
import io.ktor.client.engine.cio.*
import io.ktor.client.request.*
import io.ktor.client.statement.*
import java.io.File
class InputDownloader {
private val session = File("src/main/resources/session").readText()
suspend fun downloadInput(day: Int, year: Int): String = do... | 0 | Kotlin | 0 | 0 | 482052531188c2b3a6e4042d7fcb3f206865720f | 1,374 | AoC-2023-DDJ | MIT License |
utils/ui/src/test/java/com/grappim/hateitorrateit/utils/ui/NativeTextTest.kt | Grigoriym | 704,244,986 | false | {"Kotlin": 500015} | package com.grappim.hateitorrateit.core
import com.grappim.hateitorrateit.ui.R
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
import org.robolectric.RuntimeEnvironment
import kotlin.test.assertEquals
@RunWith(RobolectricTestRunner::class)
class NativeTextTest {
... | 7 | Kotlin | 0 | 1 | 6d34205597a6934f0f71b7120abfb5003997e8db | 1,346 | HateItOrRateIt | Apache License 2.0 |
src/main/kotlin/no/nav/k9/los/integrasjon/k9/K9SakServiceSystemClient.kt | navikt | 238,874,021 | false | {"Kotlin": 1669919, "JavaScript": 741, "Shell": 659, "Dockerfile": 343, "PLpgSQL": 167} | package no.nav.k9.los.integrasjon.k9
import com.github.kittinunf.fuel.coroutines.awaitStringResponseResult
import com.github.kittinunf.fuel.httpPost
import io.ktor.http.*
import kotlinx.coroutines.runBlocking
import no.nav.helse.dusseldorf.ktor.core.Retry
import no.nav.helse.dusseldorf.ktor.metrics.Operation
import no... | 8 | Kotlin | 0 | 0 | f606f3e4f6619c941c610b0307dca73598aa0a02 | 4,004 | k9-los-api | MIT License |
views/src/test/java/com/guhungry/views/recyclerview/BindableViewHolderTest.kt | guhungry | 142,478,766 | false | null | package com.guhungry.views.recyclerview
import android.view.View
import org.hamcrest.MatcherAssert.assertThat
import org.hamcrest.core.IsEqual.equalTo
import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.dsl.given
import org.jetbrains.spek.api.dsl.it
import org.jetbrains.spek.api.dsl.on
import org.mockito.... | 0 | Kotlin | 0 | 0 | 5a4c4c4d428bef602949399de0fbb9198122e8fd | 1,260 | android-customviews | MIT License |
sqlite-open-helper/src/commonMain/kotlin/internal/SQLiteGlobal.kt | illarionov | 769,429,996 | false | null | /*
* Copyright 2024, the wasm-sqlite-open-helper project authors and contributors. Please see the AUTHORS file
* for details. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
* SPDX-License-Identifier: Apache-2.0
*/
package ru.pixnews.wasm.sqlite.open.helper.inte... | 0 | null | 1 | 3 | 5f513e2413987ce681f12ea8e14a2aff2c56a7fd | 2,619 | wasm-sqlite-open-helper | Apache License 2.0 |
adoptium-marketplace-server/adoptium-marketplace-persistence/src/main/kotlin/net/adoptium/marketplace/dataSources/persitence/mongo/MongoClient.kt | adoptium | 707,379,717 | false | {"Kotlin": 158856, "Java": 57343, "Shell": 1954, "Dockerfile": 1844, "CSS": 992, "HTML": 576} | package net.adoptium.marketplace.dataSources.persitence.mongo
import com.fasterxml.jackson.annotation.JsonInclude
import com.fasterxml.jackson.databind.SerializationFeature
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
import com.mongodb.ConnectionStr... | 7 | Kotlin | 3 | 4 | 40289a01c90c3dc38fb715d6007aef368c260ff0 | 4,261 | marketplace-api.adoptium.net | Apache License 2.0 |
src/Day05.kt | MarkRunWu | 573,656,261 | false | {"Kotlin": 25971} | import java.lang.Math.abs
import java.util.Stack
fun main() {
fun parseStacks(input: List<String>): List<Stack<String>> {
val stackStrings = input.joinToString("\n") { it }.split(
"\n\n"
)[0].split("\n")
val labelLine = stackStrings.last().split(" ")
val stacks = labe... | 0 | Kotlin | 0 | 0 | ced885dcd6b32e8d3c89a646dbdcf50b5665ba65 | 2,883 | AOC-2022 | Apache License 2.0 |
yenaly_libs/src/main/java/com/yenaly/yenaly_libs/utils/DeviceUtil.kt | YenalyLiew | 524,046,895 | false | {"Kotlin": 723868, "Java": 88900} | @file:Suppress("unused")
package com.yenaly.yenaly_libs.utils
import android.annotation.SuppressLint
import android.content.res.Configuration
import android.content.res.Resources
import androidx.core.util.TypedValueCompat
/**
* 通过dp获取相应px值
*/
val Number.dp: Int
@JvmName("dpToPx")
get() = TypedValueCompat.... | 21 | Kotlin | 78 | 999 | b0fa1a9e50b1567e4b5a504dcb6579d5f35427fa | 1,481 | Han1meViewer | Apache License 2.0 |
app/src/main/java/cn/saymagic/begonia/ui/activity/ViewPhotoActivity.kt | saymagic | 140,292,136 | false | null | package cn.saymagic.begonia.ui.activity
import android.Manifest
import android.app.SearchManager
import android.arch.lifecycle.Observer
import android.arch.lifecycle.ViewModel
import android.arch.lifecycle.ViewModelProvider
import android.arch.lifecycle.ViewModelProviders
import android.content.Context
import android.... | 0 | Kotlin | 13 | 56 | 92d75320f516731d9ea3be8fd495b9708b352024 | 3,570 | Begonia | The Unlicense |
app/src/main/java/io/github/alanrb/tikiassignment/data/KeywordRepositoryImpl.kt | alanrb | 162,383,977 | false | null | package io.github.alanrb.tikiassignment.data
import io.github.alanrb.tikiassignment.data.remote.HttpService
import io.github.alanrb.tikiassignment.domain.KeywordRepository
import io.reactivex.Single
class KeywordRepositoryImpl(private val httpService: HttpService) : KeywordRepository {
override fun keywords(): S... | 0 | Kotlin | 0 | 2 | 74fb51f73c41ea3a60a544a11f3165131ef61a78 | 389 | TIKI-Assignment | Apache License 2.0 |
app/src/main/java/com/qdot/mylandai/HomeActivity.kt | JoyMajumdar2001 | 832,791,430 | false | {"Kotlin": 23427} | package com.qdot.mylandai
import android.Manifest
import android.content.pm.PackageManager
import android.graphics.Color
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.ActivityCompat
import coil.load
import com.google.ai.client.generativeai.Ge... | 0 | Kotlin | 0 | 0 | cbf906830ba12d1d364e14e6faed0d85320bd256 | 14,434 | MyLandAi | MIT License |
widgetssdk/src/main/java/com/glia/widgets/chat/controller/ChatController.kt | salemove | 312,288,713 | false | {"Kotlin": 1297050, "Java": 726043, "Shell": 1802} | package com.glia.widgets.chat.controller
import android.net.Uri
import android.view.View
import com.glia.androidsdk.GliaException
import com.glia.androidsdk.Operator
import com.glia.androidsdk.chat.AttachmentFile
import com.glia.androidsdk.chat.SingleChoiceAttachment
import com.glia.androidsdk.chat.SingleChoiceOption
... | 6 | Kotlin | 1 | 5 | ed3e21e234223ccf38e212f4f3e6efd5f7cf441c | 40,517 | android-sdk-widgets | MIT License |
src/main/kotlin/com/amazon/opendistroforelasticsearch/indexmanagement/indexstatemanagement/resthandler/RestRemovePolicyAction.kt | changsongyang | 367,441,169 | true | {"Kotlin": 1908596, "Python": 1396} | /*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
/*
* Copyright 2019 Amaz... | 0 | null | 0 | 0 | 062658a6862dfadac9247a8a27b4af2fb4773c58 | 2,788 | opensearch-project-index-management | Apache License 2.0 |
app/src/main/java/com/shehuan/wanandroid/ui/chapter/chapterDetail/ChapterDetailPresenterImpl.kt | shehuan | 153,994,354 | false | null | package com.shehuan.wanandroid.ui.chapter.chapterDetail
import com.shehuan.wanandroid.apis.WanAndroidApis
import com.shehuan.wanandroid.base.BasePresenter
import com.shehuan.wanandroid.base.net.RequestManager
import com.shehuan.wanandroid.base.net.RetrofitManager
import com.shehuan.wanandroid.base.net.exception.Respon... | 1 | Kotlin | 10 | 39 | 6d8e12117dc0b5cdf3df98f28df2e7a8dd3e03fd | 2,877 | WanAndroid | Apache License 2.0 |
design/src/main/kotlin/com/kotlinground/design/creationalpatterns/factory/gui/App.kt | BrianLusina | 113,182,832 | false | null | package com.kotlinground.design.creationalpatterns.factory.gui
import com.kotlinground.design.creationalpatterns.factory.gui.mac.MacFactory
import com.kotlinground.design.creationalpatterns.factory.gui.win.WinFactory
import java.util.*
class App(val factory: GUIFactory) {
private val button: Button = factory.crea... | 0 | Kotlin | 1 | 2 | abf4ff467a7ffe8bdac4ac5a846c56a6e797be44 | 1,003 | KotlinGround | MIT License |
src/jsTest/kotlin/dev/rhovas/interpreter/Platform.kt | Rhovas | 249,287,295 | false | {"Kotlin": 754050} | package dev.rhovas.interpreter
actual object Platform {
actual val TARGET: Target = Target.JS
actual fun readFile(path: String): String {
val fs = js("require('fs')")
return fs.readFileSync(path, "utf8") as String
}
}
| 8 | Kotlin | 2 | 28 | bbd1bd129a7ee129944cf1d4f53a5151fb047568 | 250 | Interpreter | MIT License |
project-course/kotlin-tutorial/src/kiz/learn/loops/Main.kt | vel02 | 261,988,454 | false | {"Text": 1, "Ignore List": 59, "Markdown": 1, "XML": 511, "Kotlin": 200, "Java": 8, "Gradle": 25, "Java Properties": 16, "Shell": 8, "Batchfile": 8, "Proguard": 8} | package kiz.learn.loops
fun main(args: Array<String>) {
// val vel = Player("Ariel")
// vel.weapon = Weapon("Sword", 20)
// println(vel)
// val chestArmor = Loot("+3 Chest Armor", LootType.ARMOR, 80.00)
// val redPotion = Loot("Red Potion", LootType.POTION, 7.50)
// vel.inventory.add(redPotion)
// ... | 1 | null | 1 | 1 | 7644d1911ff35fda44e45b1486bcce5d790fe7c0 | 1,393 | learn-kotlin-android | MIT License |
src/main/kotlin/automaton/constructor/utils/StringUtils.kt | spbu-se | 460,362,528 | false | {"Kotlin": 450397, "CSS": 78} | package automaton.constructor.utils
import java.util.*
fun String.capitalize(locale: Locale = I18N.locale): String =
replaceFirstChar { it.titlecase(locale) }
| 4 | Kotlin | 0 | 8 | 008858326d8b70316a95bded8c927d5a635b1f3b | 165 | KotlinAutomataConstructor | Apache License 2.0 |
app/src/androidTest/java/com/ccb/proandroiddevreader/screens/MainActivityScreen.kt | curlx | 723,311,151 | false | {"Kotlin": 51613} | package com.ccb.proandroiddevreader.screens
import androidx.compose.ui.semantics.SemanticsNode
import androidx.compose.ui.test.SemanticsMatcher
import androidx.compose.ui.test.SemanticsNodeInteractionsProvider
import com.ccb.proandroiddevreader.extensions.LazyListItemPosition
import io.github.kakaocup.compose.node.ele... | 0 | Kotlin | 0 | 0 | eeb75f7d92057a70ff4cad65f765ec7448196516 | 1,541 | proandroiddev-reader | Apache License 2.0 |
bbootimg/src/main/kotlin/Signer.kt | scarlet-glass | 172,427,678 | false | {"Gradle": 5, "Markdown": 5, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "YAML": 1, "Java": 4, "INI": 3, "Python": 2, "Makefile": 2, "Diff": 1, "C": 6, "C++": 1, "Kotlin": 40, "Text": 1} | package cfig
import avb.AVBInfo
import avb.alg.Algorithms
import com.fasterxml.jackson.databind.ObjectMapper
import org.apache.commons.exec.CommandLine
import org.apache.commons.exec.DefaultExecutor
import org.slf4j.LoggerFactory
import java.io.File
class Signer {
companion object {
private val log = Logg... | 1 | null | 1 | 1 | 482ab1f998a449f3d3cc1b71f8a52497ef6e742d | 3,970 | Android_boot_image_editor | Apache License 2.0 |
src/main/kotlin/org/radarbase/push/integration/garmin/util/RedisRemoteLockManager.kt | RADAR-base | 307,485,421 | false | null | package org.radarbase.output.accounting
import org.slf4j.LoggerFactory
import redis.clients.jedis.params.SetParams
import java.util.*
import kotlin.time.Duration.Companion.days
class RedisRemoteLockManager(
private val redisHolder: RedisHolder,
private val keyPrefix: String,
) : RemoteLockManager {
privat... | 9 | null | 2 | 2 | 1745929ccb91041bb03def684f95c60db5355b60 | 1,380 | RADAR-PushEndpoint | Apache License 2.0 |
kotlin-react-core/src/main/kotlin/react/PropsWithRef.kt | JetBrains | 93,250,841 | false | null | package react
external interface PropsWithRef<T : Any> : Props {
var ref: Ref<T>?
}
| 12 | Kotlin | 145 | 983 | 372c0e4bdf95ba2341eda473d2e9260a5dd47d3b | 89 | kotlin-wrappers | Apache License 2.0 |
streams-consumer/src/main/kotlin/no/nav/dagpenger/saksbehandling/streams/kafka/Serder.kt | navikt | 571,475,339 | false | {"Kotlin": 361937, "PLpgSQL": 7983, "Mustache": 4238, "HTML": 699, "Dockerfile": 77} | package no.nav.dagpenger.saksbehandling.streams.kafka
import io.confluent.kafka.streams.serdes.avro.SpecificAvroSerde
import org.apache.avro.specific.SpecificRecord
import org.apache.kafka.common.serialization.Serde
import org.apache.kafka.common.serialization.Serdes
val stringSerde: Serde<String> = Serdes.String()
... | 1 | Kotlin | 0 | 0 | 4ed26ab80727164289d64b81ee5ce1205acc3fd3 | 498 | dp-saksbehandling | MIT License |
src/main/kotlin/org/emgen/Expression.kt | emilancius | 234,365,097 | false | null | package org.emgen
import java.math.BigDecimal
import java.util.*
data class Expression(val tokens: List<Token>) {
fun evaluate(): BigDecimal {
val stack = Stack<Operand>()
tokens.forEach {
if (it !is Operator) {
stack.push(it as Operand)
} else {
... | 1 | Kotlin | 2 | 0 | f73f335268f6cc41f6ccb18c69036081514c3aa5 | 690 | sono-core | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.