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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
tabler-icons/src/commonMain/kotlin/compose/icons/tablericons/SquarePlus.kt | DevSrSouza | 311,134,756 | false | null | package compose.icons.tablericons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.compose.ui.graphics.StrokeCa... | 17 | null | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 2,482 | compose-icons | MIT License |
platform/core-api/src/com/intellij/openapi/progress/cancellation.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:Internal
package com.intellij.openapi.progress
import com.intellij.concurrency.withThreadContext
import com.intellij.openapi.application.asContextElement
import com.intellij.openapi.diagnosti... | 191 | null | 4372 | 13,319 | 4d19d247824d8005662f7bd0c03f88ae81d5364b | 5,311 | intellij-community | Apache License 2.0 |
fontawesome/src/de/msrd0/fontawesome/icons/FA_BABY.kt | msrd0 | 363,665,023 | false | null | /* @generated
*
* This file is part of the FontAwesome Kotlin library.
* https://github.com/msrd0/fontawesome-kt
*
* This library is not affiliated with FontAwesome.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 0 | Kotlin | 0 | 0 | b2fdb74278104be68c95e8f083fc75ab74395112 | 1,985 | fontawesome-kt | Apache License 2.0 |
app/src/main/java/it/ilker/repeatcard/ui/home/HomeViewModel.kt | guuilp | 304,411,948 | true | {"Kotlin": 113244} | package it.ilker.repeatcard.ui.home
import android.content.Context
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import it.ilker.repeatcard.db.FlashcardDatabase
import it.ilker.repeatcard.db.flashcard.Flashcard
import it.ilker.repeatcard.db.flash... | 0 | null | 0 | 0 | 2288281bedfcccb73933a36f5f07fb9b7e4f0b70 | 1,407 | repeatcard | MIT License |
demo-kotlin/src/main/java/com/skydoves/preferenceroomdemo/components/UserProfileComponent.kt | skydoves | 111,425,878 | false | null | /*
* Copyright (C) 2017 skydoves
*
* 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 ... | 2 | null | 25 | 374 | b67eb5279422b203888db71af48bb1fda5382a04 | 1,292 | PreferenceRoom | Apache License 2.0 |
credentials/credentials-play-services-auth/src/androidTest/java/androidx/credentials/playservices/getdigitalcredential/CredentialProviderGetDigitalCredentialControllerTest.kt | androidx | 256,589,781 | false | {"Kotlin": 112114129, "Java": 66594571, "C++": 9132142, "AIDL": 635065, "Python": 325169, "Shell": 194520, "TypeScript": 40647, "HTML": 35176, "Groovy": 27178, "ANTLR": 26700, "Svelte": 20397, "CMake": 15512, "C": 15043, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright 2024 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 29 | Kotlin | 1011 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 3,358 | androidx | Apache License 2.0 |
src/main/kotlin/arsmagna/utils/Utils.kt | amironov73 | 636,496,925 | false | null | @file:Suppress("unused")
package arsmagna.utils
/*
* Вспомогательные константы и методы, не вошедшие в прочие классы.
*/
import arsmagna.SubField
import org.jetbrains.annotations.Contract
/**
* Максимальное количество записей в пакете.
*/
const val MAX_PACKET = 32758
/**
* Список баз данных для администратор... | 0 | Kotlin | 0 | 0 | f408f3d6c983143aa2f263f50009e42407118753 | 7,059 | KotIrbis | MIT License |
app/src/main/java/com/sorbonne/atom_d/adapters/double_column/AdapterDoubleColumn.kt | tlagos1 | 555,409,019 | false | {"Kotlin": 158625, "Java": 4277} | package com.sorbonne.atom_d.adapters.double_column
import android.annotation.SuppressLint
import android.util.Log
import android.view.ViewGroup
import android.widget.CheckBox
import android.widget.RadioButton
import androidx.recyclerview.widget.ListAdapter
import com.sorbonne.atom_d.R
import com.sorbonne.atom_d.adapte... | 0 | Kotlin | 0 | 0 | 9852f4d9926f077cf613f14705f890f417060daa | 5,726 | AtomD | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsmanageadjudicationsapi/services/migrate/MigrateNewRecordService.kt | ministryofjustice | 416,301,250 | false | null | package uk.gov.justice.digital.hmpps.hmppsmanageadjudicationsapi.services.migrate
import org.springframework.stereotype.Service
import org.springframework.transaction.annotation.Transactional
import uk.gov.justice.digital.hmpps.hmppsmanageadjudicationsapi.controllers.ChargeNumberMapping
import uk.gov.justice.digital.h... | 2 | Kotlin | 0 | 3 | fc46931a8d940ffe3d2f14b497fc6d23f81212fa | 17,786 | hmpps-manage-adjudications-api | MIT License |
audio-recording-server-api/src/main/kotlin/com/project/audiorecording/audiorecordingserver/domain/dto/DiscDto.kt | kshchuk | 701,072,615 | false | {"Kotlin": 88429, "PLpgSQL": 2408} | package com.project.audiorecording.audiorecordingserver.domain.dto
import java.io.Serializable
import java.time.Duration
import java.util.*
/**
* DTO for {@link com.project.audiorecording.audiorecordingserver.domain.entity.Disc}
*/
data class DiscDto(
var id: UUID? = null,
var name: String? = null,
var ... | 0 | Kotlin | 0 | 0 | ec0f5b595b955b49c1ad06d21059c046f669a799 | 402 | audio-recording-app | Apache License 2.0 |
skiko/src/jvmMain/kotlin/org/jetbrains/skija/paragraph/PositionWithAffinity.kt | pa-dieter | 403,520,837 | true | {"Kotlin": 948892, "C++": 478268, "Objective-C++": 20299, "Dockerfile": 2368, "Shell": 555} | package org.jetbrains.skia.paragraph
class PositionWithAffinity(val position: Int, affinity: Affinity) {
val _affinity: Affinity
val affinity: Affinity
get() = _affinity
override fun equals(o: Any?): Boolean {
if (o === this) return true
if (o !is PositionWithAffinity) return false... | 0 | null | 0 | 0 | c9dda21dea90abfa68db1fdf8932d8f12141c1f8 | 1,138 | skiko | Apache License 2.0 |
backend/app/src/test/kotlin/io/tolgee/repository/dataImport/ImportRepositoryTest.kt | tolgee | 303,766,501 | false | null | package io.tolgee.repository.dataImport
import io.tolgee.AbstractSpringTest
import io.tolgee.model.dataImport.Import
import io.tolgee.testing.assertions.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.Spr... | 50 | Kotlin | 4 | 292 | 9896609f260b1ff073134e672303ff8810afc5a1 | 1,000 | server | Apache License 2.0 |
app/src/main/java/ch/abwesend/privatecontacts/view/screens/contactedit/components/ContactEditCommonComponents.kt | fgubler | 462,182,037 | false | {"Kotlin": 1163443, "Java": 369326} | /*
* Private Contacts
* Copyright (c) 2022.
* <NAME>
*/
package ch.abwesend.privatecontacts.view.screens.contactedit.components
import androidx.annotation.StringRes
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
impor... | 0 | Kotlin | 1 | 9 | 49b98707f8cd250f7f15279c4b9e61fef41f1fb1 | 2,925 | PrivateContacts | Apache License 2.0 |
src/main/kotlin/com/aphisiit/springkafka/service/KafkaProducer.kt | aphisiit | 744,406,846 | false | {"Kotlin": 20431, "Dockerfile": 267} | package com.aphisiit.springkafka.service
import org.springframework.stereotype.Service
@Service
class KafkaProducer {
fun send() {
}
}
| 0 | Kotlin | 0 | 0 | 2545d30f5507cc3d29c70d36173b8d38d63e648b | 140 | spring-kafka-producer | MIT License |
src/main/kotlin/com/miguel/rucoyapi/controllers/CreatureProfileController.kt | MiguelJeronimo | 705,820,521 | false | {"Kotlin": 132389, "Dockerfile": 869} | package com.miguel.rucoyapi.controllers
import com.miguel.rucoyapi.model.responses
import com.miguel.rucoyapi.repository.Repository
import org.apache.coyote.Response
import org.apache.logging.log4j.LogManager
import org.apache.logging.log4j.Logger
import org.springframework.http.ResponseEntity
import org.springframewo... | 0 | Kotlin | 0 | 0 | c05ea4415138a2c6b032f9576079b2b7d955f0d0 | 2,436 | rucoy-api | MIT License |
data/src/main/java/com/nemesis/rio/data/database/asset/AssetDatabaseChecksumStorage.kt | N3-M3-S1S | 370,791,918 | false | null | package com.nemesis.rio.data.database.asset
import android.content.SharedPreferences
import androidx.core.content.edit
class AssetDatabaseChecksumStorage(private val sharedPreferences: SharedPreferences) {
private val assetDatabaseChecksumKey = "asset_db_checksum"
fun getLastSavedChecksum(): String? =
... | 0 | Kotlin | 0 | 0 | 62dc309a7b4b80ff36ea624bacfa7b00b5d8607e | 513 | rio | MIT License |
src/main/kotlin/edu/antevortadb/patient/stain/BaseStain.kt | spg63 | 115,169,375 | false | null | package edu.antevortadb.patient.stain
// Allow inheritance
open class BaseStain {
protected val abbrev: String
protected val fullName: String
constructor(shortName: String, fullName: String){
this.abbrev = shortName
this.fullName = fullName
}
} | 0 | Kotlin | 0 | 0 | f6e44c140b8828f00d184b19b3d4e3466af52dff | 278 | antevorta-db | MIT License |
src/main/kotlin/Vector.kt | AnnaPivetta | 346,299,009 | false | null | import java.lang.IndexOutOfBoundsException
import kotlin.math.abs
import kotlin.math.sqrt
data class Vector(var x: Float = 0.0F, var y: Float = 0.0F, var z: Float = 0.0F) {
override fun toString(): String {
return "Vector ($x, $y, $z)"
}
fun isClose(other: Vector, epsilon: Float = 1e-10F): Boolea... | 2 | Kotlin | 0 | 3 | a5a8dcc0dca404e45b5e1abdac91c7ddc4eb4945 | 1,837 | KTracer | Apache License 2.0 |
app/src/main/java/net/skyscanner/backpack/demo/compose/CardStory.kt | Skyscanner | 117,813,847 | false | null | /**
* Backpack for Android - Skyscanner's Design System
*
* Copyright 2018 Skyscanner Ltd
*
* 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... | 5 | Kotlin | 31 | 80 | 47cfa7ac90005c9680eebcddb96fb50fb4e35d78 | 5,169 | backpack-android | Apache License 2.0 |
presentation/src/main/kotlin/land/sungbin/faketoss/android/activity/IntroActivity.kt | faketoss | 448,180,373 | false | {"Kotlin": 7660} | package land.sungbin.faketoss.android.activity
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.Text
import androidx.compos... | 0 | Kotlin | 0 | 2 | bcb6089ed0deab1991cdacc991cb19243628ecab | 701 | faketoss-android | MIT License |
src/test/kotlin/com/sbeins/DateparsingTest.kt | sbeins55 | 658,024,293 | false | null | package com.sbeins
import io.micronaut.runtime.EmbeddedApplication
import io.micronaut.test.extensions.kotest.annotation.MicronautTest
import io.kotest.core.spec.style.StringSpec
@MicronautTest
class DateparsingTest(private val application: EmbeddedApplication<*>) : StringSpec({
"test the server is running" {
... | 0 | Kotlin | 0 | 0 | b2c5763e12acbb24415fd68edd5f6d51ead566b5 | 365 | micronaut-aws-lambda | Apache License 2.0 |
app/src/main/java/com/serdar/rickandmorty_graphql/data/client/RickAndMortyClientImpl.kt | srdrakcay | 619,132,116 | false | null | package com.serdar.rickandmorty_graphql.data.client
import com.apollographql.apollo3.ApolloClient
import com.rickandmorty_graphql.RickAndMortyCharacterQuery
import com.serdar.rickandmorty_graphql.data.NetworkResponse
import com.serdar.rickandmorty_graphql.data.dto.Character
import com.serdar.rickandmorty_graphql.data.... | 0 | Kotlin | 0 | 3 | 41c75091b1cad20baf33c5a64b1966b36782a475 | 857 | RickAndMorty-GraphQL | MIT License |
packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/ReactAbsoluteSizeSpan.kt | react-native-tvos | 177,633,560 | false | null | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.views.text.internal.span
import android.text.style.AbsoluteSizeSpan
/** Wraps [AbsoluteSizeSpan] as ... | 7 | null | 147 | 942 | 692bc66a98c8928c950bece9a22d04c13f0c579d | 420 | react-native-tvos | MIT License |
src/main/kotlin/net/lfn3/leth/LogWriter.kt | lfn3 | 198,299,889 | false | null | package net.lfn3.leth
interface LogWriter<T> {
fun record(entry: T) : Long
/**
* This is a no-op if the returned value is null, or if the updated value == the existing one.
*/
fun update(getSequence: () -> Long, fn: (T) -> T): Pair<Long, T>
fun batchRecord(entries: Collection<T>) : Collectio... | 0 | Kotlin | 0 | 0 | 4c123098b1fccea9e3cea7220ea449df94a5703b | 379 | leth | Apache License 2.0 |
src/main/kotlin/zielu/gittoolbox/GitToolBoxPrj.kt | koalazub | 341,766,854 | true | {"Java": 355922, "Kotlin": 312085, "HTML": 7800} | package zielu.gittoolbox
import com.intellij.openapi.Disposable
import com.intellij.openapi.project.Project
import zielu.gittoolbox.util.AppUtil
internal class GitToolBoxPrj : Disposable {
override fun dispose() {
// do nothing
}
companion object {
@JvmStatic
fun getInstance(project: Project): GitT... | 0 | null | 0 | 0 | c9dc7d2f7d77d5130288ae4d6ba3a9a8867314ba | 420 | GitToolBox | Apache License 2.0 |
app/src/main/java/com/arjanvlek/oxygenupdater/models/ServerStatus.kt | iGotYourBackMr | 254,597,651 | true | {"Kotlin": 640563, "Java": 101703} | package com.arjanvlek.oxygenupdater.models
import android.content.Context
import androidx.core.content.ContextCompat
import com.arjanvlek.oxygenupdater.BuildConfig
import com.arjanvlek.oxygenupdater.R
import com.arjanvlek.oxygenupdater.utils.Utils
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com... | 0 | null | 0 | 0 | 884766371e62969831f2933ba790bbec4c2c1613 | 2,773 | oxygen-updater | MIT License |
kotlin-typescript/src/jsMain/generated/typescript/isAwaitExpression.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12635434, "JavaScript": 423801} | // Automatically generated - do not modify!
@file:JsModule("typescript")
package typescript
@JsName("isAwaitExpression")
external fun isAwaitExpressionRaw(node: Node): Boolean /* node is AwaitExpression */
| 38 | Kotlin | 162 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 210 | kotlin-wrappers | Apache License 2.0 |
src/main/kotlin/com/pineypiney/game_engine/resources/shaders/uniforms/Uniforms.kt | PineyPiney | 491,900,499 | false | {"Kotlin": 673164, "GLSL": 33407} | package com.pineypiney.game_engine.resources.shaders.uniforms
import com.pineypiney.game_engine.rendering.RendererI
import com.pineypiney.game_engine.resources.shaders.uniforms.mats.*
import com.pineypiney.game_engine.resources.shaders.uniforms.vecs.*
import glm_.mat2x2.Mat2
import glm_.mat2x2.Mat2d
import glm_.mat2x3... | 0 | Kotlin | 0 | 0 | 7e9b57404bb4433f13301294ca41c002622e757e | 19,969 | GameEngine | MIT License |
src/main/kotlin/extensions/StringContexts.kts | gorttar | 171,255,058 | false | null | package extensions
/**
* extensions/StringContexts.kts
*/
class StringConcatLog(
private val log: StringBuilder = StringBuilder()
) {
private fun String.logPlus(element: Any?) =
log.append(this).append(" + ").append(element).append("\n")
// не работает. Перекрыт методом класса kotlin.String
... | 0 | Kotlin | 0 | 0 | bc1bc4b22c891cb9e5395ecfb6ee91b7297304d0 | 519 | break_kotlin | MIT License |
compiler/tests-common-new/tests/org/jetbrains/kotlin/test/utils/FirErrorsDefaultMessagesHelper.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.test.utils
import org.jetbrains.kotlin.diagnostics.*
import org.junit.Assert
imp... | 179 | null | 5706 | 48,889 | c46c3c26038158cf80a739431ac8807ac4bbbc0c | 2,593 | kotlin | Apache License 2.0 |
app/src/main/java/com/eyebrows/video/sample/MainActivity.kt | Moosphan | 200,388,260 | false | null | package com.eyebrows.video.sample
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.view.View
import android.widget.Toast
import kotlinx.android.synthetic.main.activity_main.*
class... | 0 | Kotlin | 2 | 12 | 031b2db1a0f77bed25f5fe37985ffc27c211c199 | 3,788 | EyebrowsVideoView | MIT License |
src/main/kotlin/no/nav/syfo/oppfolgingsplan/converter/HodemeldingConverter.kt | navikt | 378,118,189 | false | null | package no.nav.syfo.oppfolgingsplan.converter
import no.kith.xmlstds.msghead._2006_05_24.ObjectFactory
import no.kith.xmlstds.msghead._2006_05_24.XMLMsgHead
import no.nav.syfo.oppfolgingsplan.domain.RSHodemelding
fun createMsgHead(
rsHodemelding: RSHodemelding,
): XMLMsgHead {
val factory = ObjectFactory()
... | 1 | Kotlin | 1 | 0 | dd12b992684acda2da79c73c5364ece6d58f3dbd | 570 | isdialogmelding | MIT License |
app/src/main/java/com/github/kotlin_mvpro/ui/presenter/MainActivityPresenter.kt | vihuela | 95,213,546 | false | null | /*
* Copyright (C) 2017 Ricky.yao https://github.com/vihuela
*
* 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
*
*/
package com.github.k... | 2 | null | 16 | 62 | c6fb6729e303862412cc0a5b35155edb3f8923d3 | 985 | Kotlin-mvpro | Apache License 2.0 |
compiler/frontend/src/org/jetbrains/kotlin/psi/KtSimpleNameExpression.kt | erokhins | 44,854,854 | true | {"Markdown": 33, "XML": 665, "Ant Build System": 45, "Ignore List": 7, "Git Attributes": 1, "Kotlin": 20967, "Java": 4534, "Protocol Buffer": 7, "Text": 4663, "JavaScript": 63, "JAR Manifest": 3, "Roff": 46, "Roff Manpage": 11, "INI": 17, "HTML": 152, "Groovy": 23, "Java Properties": 14, "Maven POM": 49, "Gradle": 74, ... | /*
* Copyright 2010-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 0 | Java | 0 | 1 | ff00bde607d605c4eba2d98fbc9e99af932accb6 | 2,512 | kotlin | Apache License 2.0 |
client_dashboard/common/src/commonMain/kotlin/org/thechance/common/data/gateway/fake/RestaurantFakeGateway.kt | TheChance101 | 671,967,732 | false | {"Kotlin": 2473455, "Ruby": 8872, "HTML": 6083, "Swift": 4726, "JavaScript": 3082, "CSS": 1436, "Dockerfile": 1407, "Shell": 1140} | package com.angus.common.data.gateway.fake
import com.angus.common.data.gateway.remote.mapper.toEntity
import com.angus.common.data.gateway.remote.model.DataWrapperDto
import com.angus.common.data.gateway.remote.model.LocationDto
import com.angus.common.data.gateway.remote.model.RestaurantDto
import com.angus.common.d... | 4 | Kotlin | 55 | 572 | 1d2e72ba7def605529213ac771cd85cbab832241 | 8,251 | beep-beep | Apache License 2.0 |
components/src/commonMain/kotlin/me/lincolnstuart/funblocks/components/misc/notification/BasicNotification.kt | LincolnStuart | 645,064,211 | false | {"Kotlin": 451042} | package me.lincolnstuart.funblocks.essentials.misc.notification
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.BoxScope
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import an... | 1 | Kotlin | 0 | 4 | 5a9d60f062132df12a6022530dfa10692fbf6c6d | 1,227 | fun-blocks | MIT License |
app/src/main/java/com/hackathon/emergency/EmergencyContactViewModel.kt | ShivarajMbhagoji | 840,589,414 | false | {"Kotlin": 113087} | package com.hackathon.emergency
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.cachedIn
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
@HiltViewModel
class EmergencyContactViewModel @Inject constructor(
private val emergencyUseCa... | 0 | Kotlin | 1 | 0 | 12cb94f302007c4c298324407568d43766957383 | 436 | CodeFury_7.0 | MIT License |
src/main/kotlin/ee/bjarn/ktify/model/Episode.kt | warriorzz | 384,555,118 | false | {"Kotlin": 77840} | package ee.bjarn.ktify.model
import ee.bjarn.ktify.model.external.ExternalUrl
import ee.bjarn.ktify.model.util.Image
import ee.bjarn.ktify.model.util.ObjectType
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.JsonObject
@Serializable
data class Episo... | 1 | Kotlin | 4 | 7 | 78124af971281342dc5bc30aaf2974646e17d97c | 1,687 | ktify | MIT License |
owntracks-android-2.5/project/app/src/main/java/org/owntracks/android/support/ContactImageBindingAdapter.kt | wir3z | 737,346,188 | false | {"Kotlin": 928031, "Groovy": 378082, "Java": 12862, "Shell": 4540} | package org.owntracks.android.support
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.PorterDuff
import android.graphics.PorterDuffXfermode
import android.graphics.Rect
import androi... | 0 | Kotlin | 3 | 5 | 110c39d811a1074b2e9288cfe70d3089b5658806 | 4,557 | hubitat | Apache License 2.0 |
app/common/src/main/kotlin/me/zhanghai/android/files/fileproperties/FilePropertiesFileViewModel.kt | overphoenix | 621,371,055 | false | null | /*
* Copyright (c) 2019 <NAME> <<EMAIL>>
* All Rights Reserved.
*/
package me.zhanghai.android.files.fileproperties
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import me.zhanghai.android.files.file.FileItem
import me.zhanghai.android.files.util.Stateful
class FilePropertiesFileViewModel... | 0 | Kotlin | 0 | 0 | 64264f261c2138d5f1932789702661917bbfae28 | 615 | phoenix-android | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/PeopleDress.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.filled
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 | 3,436 | icons | MIT License |
sdk/mfa/src/main/java/com/ibm/security/verifysdk/mfa/onprem/model/EnrollmentResult.kt | ibm-security-verify | 430,929,749 | false | {"Kotlin": 558859} | /*
* Copyright contributors to the IBM Security Verify SDK for Android project
*/
package com.ibm.security.verifysdk.mfa.model.onprem
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class EnrollmentResult(
val totalResults: Int,
val schemas: List<String>... | 1 | Kotlin | 4 | 0 | 612fed1c3206e3b952c86df44109aeab8b7e7ae7 | 1,229 | verify-sdk-android | MIT License |
random/src/commonTest/kotlin/diglol/crypto/random/RandomTest.kt | diglol | 398,510,327 | false | {"C": 284748, "Kotlin": 239933, "Objective-C": 44341, "JavaScript": 684} | package diglol.crypto.random
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith
import kotlin.test.assertFalse
import kotlin.test.assertTrue
import kotlin.test.fail
class RandomTest {
@Test
fun nextInt() {
assertFailsWith<IllegalArgumentException> { nextInt(0) }
ass... | 4 | C | 4 | 21 | 3ee370a5be809789cee99c155e59dede23d37230 | 1,410 | crypto | Apache License 2.0 |
app/src/main/java/mk/webfactory/template/feature/launcher/ui/LauncherActivity.kt | tstefanovska | 239,505,295 | true | {"Kotlin": 68280, "Java": 8476} | package mk.webfactory.template.feature.launcher.ui
import android.content.Intent
import android.os.Bundle
import mk.webfactory.template.R
import mk.webfactory.template.feature.common.ui.BaseActivity
import mk.webfactory.template.feature.home.ui.HomeActivity
import mk.webfactory.template.model.user.UserSession
import m... | 0 | null | 0 | 0 | 7176532a94fbbcf6729fb8e4871b9c619f77f02a | 894 | android-template | MIT License |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/quicksight/CfnDataSetStringDatasetParameterPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 63959868} | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package cloudshift.awscdk.dsl.services.quicksight
import cloudshift.awscdk.common.CdkDslMarker
import... | 3 | Kotlin | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 2,701 | awscdk-dsl-kotlin | Apache License 2.0 |
extension-compose/src/main/java/com/mapbox/maps/extension/compose/style/layers/generated/RasterParticleLayer.kt | mapbox | 330,365,289 | false | {"Kotlin": 3551866, "Java": 89114, "Python": 18705, "Shell": 11465, "C++": 10129, "JavaScript": 4344, "Makefile": 2847, "CMake": 1201, "EJS": 1194} | // This file is generated.
package com.mapbox.maps.extension.compose.style.layers.generated
import androidx.compose.runtime.Composable
import androidx.compose.runtime.ComposeNode
import androidx.compose.runtime.currentComposer
import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberCoroutineS... | 216 | Kotlin | 126 | 435 | 7faf620b4694bd50f4b4399abcf6eca29e3173ba | 8,830 | mapbox-maps-android | Apache License 2.0 |
stencil/src/main/kotlin/io/ight/gradle/stencil/Stencil.kt | WOCOMLABS | 796,096,413 | false | {"Kotlin": 38345} | package io.ight.gradle.stencil
object Stencil {
object Gitignore
object Gradle
object Html
object Kt
object Md
object Yml
object Kts
object Properties
} | 3 | Kotlin | 0 | 0 | eb5afa7cfe7187297787539721d50ea4891b8767 | 187 | artesano | MIT License |
src/me/egorand/kotlin/playground/misc/ThisExpression.kt | Egorand | 53,359,960 | false | null | /*
* Copyright 2016 <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 applicab... | 0 | Kotlin | 1 | 0 | 4c82596c75a8dc4046df565e08f75bafd0365887 | 967 | kotlin-playground | Apache License 2.0 |
sebenza 2/app/src/main/java/com/example/myapplication/VideoActivity.kt | FeliciaFeli | 402,631,186 | false | {"Kotlin": 8288} | package com.example.myapplication
import android.app.Activity
import android.content.Intent
import android.graphics.Bitmap
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.provider.MediaStore
import android.widget.Button
import android.widget.ImageView
import android.widget.Video... | 0 | Kotlin | 0 | 0 | 4cc8bcdbc1b402404de8ab6faeef294319b59dca | 1,339 | sebenza | Boost Software License 1.0 |
app/src/main/java/org/citruscircuits/viewer/convertToFilteredTeamsList.kt | frc1678 | 648,314,733 | false | null | package org.citruscircuits.viewer
/**
* @param teamsList The list of teams to be converted to a map of current rankings
*/
fun convertToFilteredTeamsList(teamsList: List<String>): List<String> {
val unsortedMap = HashMap<String, Double?>()
for (team in teamsList) {
unsortedMap[team] =
if ... | 0 | Kotlin | 0 | 0 | 466d49fc47e6d7cd7ae9f11140a208942b621f63 | 558 | viewer-2023-public | MIT License |
vpn/src/test/java/com/duckduckgo/mobile/android/vpn/breakage/ReportBreakageContractTest.kt | cmonfortep | 252,403,423 | false | null | /*
* Copyright (c) 2021 DuckDuckGo
*
* 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 ... | 51 | null | 786 | 3 | 228a1217aad96d19f90750d94664b7a4a5744c9a | 1,666 | Android | Apache License 2.0 |
core/ui/components/src/main/kotlin/top/chengdongqing/weui/core/ui/components/steps/Steps.kt | chengdongqing | 782,566,304 | false | {"Kotlin": 894390} | package top.chengdongqing.weui.core.ui.components.steps
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
import androidx.... | 0 | Kotlin | 3 | 8 | eb773e75aacb801cb24adb41db9fe17224eb883a | 3,649 | WeUI | Apache License 2.0 |
src/main/kotlin/org/valkyrienskies/core/util/serialization/JOMLSerializationModule.kt | ValkyrienSkies | 329,044,944 | false | null | package org.valkyrienskies.core.util.serialization
import com.fasterxml.jackson.annotation.JsonAutoDetect
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.ANY
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE
import com.fasterxml.jackson.databind.module.SimpleModule
import org.jom... | 2 | Kotlin | 0 | 1 | a9623e844643f6fa3cb38cbaed6ef1f349aaa205 | 1,906 | vs-core | Apache License 2.0 |
common/build/generated/sources/schemaCode/kotlin/main/io/portone/sdk/server/schemas/IdentityVerificationAlreadySentError.kt | portone-io | 809,427,199 | false | {"Kotlin": 385115, "Java": 331} | package io.portone.sdk.server.schemas
import kotlin.String
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* 본인인증 건이 이미 API로 요청된 상태인 경우
*/
@Serializable
@SerialName("IDENTITY_VERIFICATION_ALREADY_SENT")
internal data class IdentityVerificationAlreadySentError(
override val me... | 0 | Kotlin | 0 | 2 | f984c4cc31aa64aad5cd0fa0497bdd490a0fe33a | 377 | server-sdk-jvm | MIT License |
app/src/main/java/com/azhar/newsapp/model/ModelNews.kt | AzharRivaldi | 357,422,469 | false | null | package itts.bayu.newsapp.model
import com.google.gson.annotations.SerializedName
/**
* Created by <NAME> on 10-04-2021
* Github : https://github.com/AzharRivaldi
* Linkedin : https://www.linkedin.com/in/azhar-rivaldi
* Instagram : https://www.instagram.com/azhardvls_
* Twitter : https://twitter.com/azharrvldi_
... | 1 | Kotlin | 9 | 9 | 247346cd10abfcc496c8b314560f971610d959c6 | 730 | NewsApp | Apache License 2.0 |
src/main/kotlin/br/com/zup/academy/dto/KeyAddRequest.kt | Vitorodriguesantos | 385,240,400 | true | {"Kotlin": 35306} | package br.com.zup.academy.dto
import br.com.zup.academy.KeyManagerRequest
import br.com.zup.academy.TipoDeChave
import br.com.zup.academy.TipoDeConta
import br.com.zup.academy.validacao.notacoes.ValidaTipoChave
import br.com.zup.academy.validacao.notacoes.ValidaTipoConta
import br.com.zup.academy.validacao.notacoes.V... | 0 | Kotlin | 0 | 0 | 3ac11be88a41eb31173b54c78960eba40fdf3213 | 1,000 | orange-talents-05-template-pix-keymanager-rest | Apache License 2.0 |
app/src/main/java/es/animaldevs/app/network/AccuWeatherApi.kt | AnimalDevs | 150,321,265 | false | null | package es.animaldevs.app.network
import es.animaldevs.app.model.network.weatherday.WeatherResponse
import io.reactivex.Observable
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query
/**
* The interface which provides methods to get result of webservices
*/
interface AccuWeatherApi {
... | 0 | Kotlin | 0 | 0 | 89e5801043aded82d0d8c88fa83a1bf6841724eb | 671 | weather-kotlin-aac-mvvm | MIT License |
core/src/main/kotlin/net/corda/core/utilities/ByteArrays.kt | corda | 70,137,417 | false | null | @file:JvmName("ByteArrays")
@file:KeepForDJVM
package net.corda.core.utilities
import net.corda.core.KeepForDJVM
import net.corda.core.serialization.CordaSerializable
import java.io.ByteArrayInputStream
import java.io.OutputStream
import java.lang.Math.max
import java.lang.Math.min
import java.nio.ByteBuffer
/**
* ... | 62 | null | 1089 | 3,989 | d27aa0e6850d3804d0982024054376d452e7073a | 9,281 | corda | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/TachometerFast.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.filled
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 | 2,047 | icons | MIT License |
codebase/android/feature/accounts/src/main/java/com/makeappssimple/abhimanyu/financemanager/android/feature/accounts/edit_account/viewmodel/EditAccountScreenUIStateDelegate.kt | Abhimanyu14 | 429,663,688 | false | {"Kotlin": 1876553} | package com.makeappssimple.abhimanyu.financemanager.android.feature.accounts.edit_account.viewmodel
import androidx.compose.ui.text.input.TextFieldValue
import com.makeappssimple.abhimanyu.financemanager.android.core.model.Account
import com.makeappssimple.abhimanyu.financemanager.android.core.model.AccountType
import... | 11 | Kotlin | 0 | 3 | 7e080a68bc038bd64d2d406b75a49e8f1ea2a791 | 2,512 | finance-manager | Apache License 2.0 |
idea/tests/testData/intentions/addNameToArgument/mixingPositionedAndNamedDisabled.kt | JetBrains | 278,369,660 | false | null | // IS_APPLICABLE: false
// COMPILER_ARGUMENTS: -XXLanguage:-MixedNamedArgumentsInTheirOwnPosition
fun foo(s: String, b: Boolean){}
fun bar() {
foo(<caret>"", true)
} | 1 | Kotlin | 37 | 71 | b6789690db56407ae2d6d62746fb69dc99d68c84 | 171 | intellij-kotlin | Apache License 2.0 |
backend/src/main/kotlin/com/denchic45/studiversity/setup/DatabaseSetup.kt | denchic45 | 435,895,363 | false | {"Kotlin": 2100300, "Vue": 10384, "JavaScript": 2497, "CSS": 1496, "HTML": 867} | package com.denchic45.studiversity.setup
import com.denchic45.studiversity.database.table.*
import org.jetbrains.exposed.sql.Column
import org.jetbrains.exposed.sql.SchemaUtils
import org.jetbrains.exposed.sql.Table
import org.jetbrains.exposed.sql.batchUpsert
import org.jetbrains.exposed.sql.transactions.transaction
... | 0 | Kotlin | 0 | 5 | 8ebbe8dfa5e6f590bf2c2f22a08867177a7abf60 | 4,734 | Studiversity | Apache License 2.0 |
app/src/main/java/io/aethibo/kart/features/products/presentation/components/SearchProductItem.kt | primepixel | 626,035,115 | false | null | package io.aethibo.kart.features.products.presentation.components
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Icon
import androidx.compose.material3.OutlinedTextField
import androidx.compose.material3.Text
import a... | 0 | Kotlin | 0 | 0 | e4a6bc4c1c00d8e681c1172dbd864a2984ac1547 | 1,344 | Kart | Apache License 2.0 |
src/main/kotlin/com/github/vhromada/catalog/common/RegisterType.kt | vhromada | 23,755,847 | false | null | package com.github.vhromada.catalog.common
/**
* An enumeration represents type of register.
*
* @author <NAME>
*/
enum class RegisterType(
/**
* Number of register
*/
val number: Int
) {
/**
* Formats
*/
FORMATS(number = 1),
/**
* Languages
*/
LANGUAGES(numbe... | 0 | Kotlin | 0 | 0 | 43511beaf8b774e415b87307ea9bbd3c857db163 | 390 | Catalog | MIT License |
compiler/testData/diagnostics/tests/regressions/kt32792.kt | JetBrains | 3,432,266 | false | null |
inline fun <T> tryLambdas(lamb : () -> T) : T{
return lamb.invoke()
}
fun main() {
tryLambdas<String> {
<!ARGUMENT_TYPE_MISMATCH!>return@tryLambdas<!>
}
}
| 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 176 | kotlin | Apache License 2.0 |
app/src/main/java/com/example/quotedroid/adapters/QuoteAdapter.kt | alfianandinugraha | 445,186,140 | false | {"Kotlin": 4451} | package com.example.quotedroid.adapters
import android.text.Layout
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.example.quotedroid.R
import com.example.quotedroid.models.Quote
class ... | 0 | Kotlin | 0 | 1 | e3ca340502b0ca862de600cc2fce47c34048d633 | 1,094 | quotedroid | MIT License |
paymentsheet/src/main/java/com/stripe/android/paymentsheet/PaymentOptionUi.kt | stripe | 6,926,049 | false | null | package com.stripe.android.paymentsheet
import androidx.annotation.DrawableRes
import androidx.annotation.VisibleForTesting
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import an... | 79 | Kotlin | 580 | 1,055 | 21ceca79b2403414939d561c446ef4344b5bf03f | 7,630 | stripe-android | MIT License |
app/src/test/java/org/simple/clinic/login/applock/BCryptPasswordHasherTest.kt | pratul | 151,071,054 | false | null | package org.simple.clinic.login.applock
import org.junit.Test
class BCryptPasswordHasherTest {
@Test
fun `comparison test`() {
val bcryptHasher = BCryptPasswordHasher()
val password = "12341234"
bcryptHasher.hash(password)
.flatMap { bcryptHasher.compare(it, password) }
.test()
... | 0 | Kotlin | 0 | 1 | fa311d989cac0a167070f2e1e466191919b659b8 | 390 | citest | MIT License |
src/main/kotlin/com/gmail/blueboxware/libgdxplugin/filetypes/skin/highlighting/SkinSyntaxHighlighterFactory.kt | BlueBoxWare | 64,067,118 | false | {"Kotlin": 1214125, "Java": 14963, "Lex": 5475, "HTML": 1368, "Dockerfile": 66} | package com.gmail.blueboxware.libgdxplugin.filetypes.skin.highlighting
import com.gmail.blueboxware.libgdxplugin.filetypes.skin.SkinElementTypes
import com.gmail.blueboxware.libgdxplugin.filetypes.skin.SkinLexer
import com.intellij.json.highlighting.JsonSyntaxHighlighterFactory.*
import com.intellij.lexer.LayeredLexer... | 2 | Kotlin | 9 | 145 | bcb911e0c3f3e9319bc8ee2d5b6b554c6090fd6c | 5,167 | LibGDXPlugin | Apache License 2.0 |
core/src/main/java/com/jclibs/safetime/SafeTimeException.kt | kaungkhantjc | 871,416,839 | false | {"Kotlin": 37633} | package com.jclibs.safetime
import java.util.Locale
@Suppress("MemberVisibilityCanBePrivate")
/**
* A custom exception class for handling errors related to SafeTime operations.
*
* This exception is used to report discrepancies between expected and actual values,
* or to provide detailed error messages during Saf... | 0 | Kotlin | 1 | 0 | 941dc535d581567a7df2fea4ab78058c745e8104 | 2,121 | SafeTime | Apache License 2.0 |
filetree/src/main/kotlin/com/zyron/filetree/events/FileTreeEventListener.kt | Zyron-Official | 824,960,784 | false | null | /**
* Copyright 2024 Zyron Official.
*
* 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... | 1 | null | 0 | 5 | da290b379cabdf418cbfd52bc01fb3ffcbebc72e | 1,551 | FileTree | Apache License 2.0 |
server/server-app/src/test/kotlin/projektor/incomingresults/SaveResultsParentXmlApplicationTest.kt | craigatk | 226,096,594 | false | null | package projektor.incomingresults
import io.ktor.http.*
import io.ktor.server.testing.*
import org.junit.jupiter.api.Test
import projektor.ApplicationTestCase
import strikt.api.expectThat
import strikt.assertions.hasSize
import strikt.assertions.isEqualTo
import kotlin.test.assertNotNull
class SaveResultsParentXmlApp... | 14 | null | 15 | 47 | d6e166d7f017d296a846120ac964b880ab19df95 | 1,914 | projektor | MIT License |
kamper/modules/cpu/src/androidTest/kotlin/com/smellouk/kamper/cpu/repository/source/ShellCpuInfoSourceTest.kt | smellouk | 442,266,308 | false | null | package com.smellouk.kamper.cpu.repository.source
import com.smellouk.kamper.api.Logger
import com.smellouk.kamper.cpu.repository.CpuInfoDto
import io.mockk.confirmVerified
import io.mockk.every
import io.mockk.mockk
import io.mockk.mockkStatic
import io.mockk.unmockkStatic
import io.mockk.verify
import org.junit.Afte... | 8 | Kotlin | 0 | 31 | bbc4cad11c11e578a4017b04a1c66f51790a4e88 | 6,884 | kamper | Apache License 2.0 |
app/src/main/kotlin/com/pusher/chatkitdemo/parallel/LifecycleReceiverChannel.kt | pusher | 131,029,165 | false | null | package com.pusher.chatkitdemo.parallel
import android.arch.lifecycle.Lifecycle
import android.arch.lifecycle.Lifecycle.Event.*
import android.arch.lifecycle.LifecycleObserver
import android.arch.lifecycle.LifecycleOwner
import android.arch.lifecycle.OnLifecycleEvent
import kotlinx.coroutines.ExperimentalCoroutinesApi... | 4 | Kotlin | 6 | 9 | 8419084d0a2c9f7e32d0dbf14a269994ccd73354 | 1,708 | android-slack-clone | MIT License |
app/src/main/java/com/yuhang/novel/pirate/viewholder/ItemBooksListVH.kt | yuhanghate | 200,383,190 | false | {"Java": 1605624, "Kotlin": 875945, "HTML": 3256} | package com.yuhang.novel.pirate.viewholder
import android.view.ViewGroup
import com.yuhang.novel.pirate.R
import com.yuhang.novel.pirate.base.BaseViewHolder
import com.yuhang.novel.pirate.databinding.ItemBooksListBinding
import com.yuhang.novel.pirate.extension.niceCoverPic
import com.yuhang.novel.pirate.extension.nic... | 1 | Java | 1 | 2 | 8c72fc787a2927efb10c8c03b714195c7b1a6c76 | 1,214 | Pirate | Apache License 2.0 |
eco-api/src/main/kotlin/com/willfp/eco/core/entities/Entities.kt | Auxilor | 325,856,799 | false | {"Kotlin": 781861, "Java": 739885} | @file:JvmName("EntityExtensions")
package com.willfp.eco.core.entities
import com.willfp.eco.core.entities.ai.EntityController
import org.bukkit.entity.Mob
/** @see EntityController.getFor */
val <T : Mob> T.controller: EntityController<T>
get() = EntityController.getFor(this)
| 80 | Kotlin | 51 | 151 | 4e6960fab57522afb7e07189bb706fbd3afa45f4 | 285 | eco | MIT License |
app/src/main/kotlin/com/vsouhrada/kotlin/android/anko/fibo/core/session/ISession.kt | vsouhrada | 77,144,360 | false | null | package com.vsouhrada.kotlin.android.anko.fibo.core.session
/**
* @author vsouhrada
* @since 0.1.0
*/
interface ISession {
/**
* Method is call when session should be open and in case of that method *refresh* was called on [ISessionManager]
* @since 0.1.0
*/
fun openSession()
/**
* Called when s... | 1 | Kotlin | 6 | 29 | f13d80e93f3075708fc5e3bfd92799b51f12ada2 | 1,148 | kotlin-anko-demo | Apache License 2.0 |
vector/src/main/java/im/vector/fragments/keysbackup/restore/KeysBackupRestoreFromPassphraseFragment.kt | LiMium | 119,702,511 | true | {"Java": 2804410, "Kotlin": 1162710, "JavaScript": 141316, "HTML": 21094, "Shell": 18894} | /*
* Copyright 2019 New Vector Ltd
*
* 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 ... | 5 | Java | 4 | 44 | 09bf4c527429fe2c8283c71988efa5796dcc854b | 4,767 | mini-vector-android | Apache License 2.0 |
kerberus/src/main/java/com/eaglesakura/kerberus/Semaphore.kt | eaglesakura | 140,512,537 | false | {"Kotlin": 442196, "Ruby": 2418, "Dockerfile": 2227, "Java": 678} | @file:Suppress("unused")
package com.eaglesakura.kerberus
import kotlinx.coroutines.CancellationException
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.Job
import kotlinx.coroutines.NonCancellable
import kotlinx.coroutines.channels.Channel
import kotlinx.coro... | 3 | Kotlin | 0 | 0 | 6be9a21c69e9f01654e4586615124363d82908a9 | 2,700 | army-knife | MIT License |
android/app/src/main/kotlin/com/commons/views/MyDialogViewPager.kt | AkioUnity | 233,186,718 | false | null | package com.simplemobiletools.commons.views
import android.content.Context
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.View
import androidx.viewpager.widget.ViewPager
class MyDialogViewPager : ViewPager {
var allowSwiping = true
constructor(context: Context) : super(c... | 16 | null | 3 | 2 | b97a2be548342359c047a498beffbc976ccf854b | 1,409 | Calendar-Widget | MIT License |
countryinfo/src/main/kotlin/com/olaaref/countryinfo/CountryinfoApplication.kt | OlaAref | 628,533,894 | false | {"Java": 123474, "Kotlin": 31932} | package com.olaaref.countryinfo
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
@SpringBootApplication
class CountryinfoApplication
fun main(args: Array<String>) {
runApplication<CountryinfoApplication>(*args)
}
| 1 | null | 1 | 1 | f9e9ec76bbcce7058ee89eb898ed94fd0cdb0463 | 283 | Spring-country-Soap-client | MIT License |
extensions/parcelize/src/main/kotlin/TimeZone.kt | erikc5000 | 202,192,185 | false | {"Kotlin": 1524883, "Java": 1132} | package io.islandtime.parcelize
import android.os.Parcel
import io.islandtime.TimeZone
import kotlinx.parcelize.Parceler
object TimeZoneParceler : Parceler<TimeZone> {
override fun create(parcel: Parcel): TimeZone {
return TimeZone(parcel.readString().orEmpty())
}
override fun TimeZone.write(parc... | 14 | Kotlin | 6 | 76 | b234241ab7bb7a803bb8b2b0dd71a3fd84a12afa | 667 | island-time | Apache License 2.0 |
app/src/main/java/org/simple/clinic/facility/change/FacilityChangeEffect.kt | simpledotorg | 132,515,649 | false | {"Kotlin": 6103689, "Shell": 1660, "HTML": 545} | package org.simple.clinic.facility.change
import org.simple.clinic.facility.Facility
sealed class FacilityChangeEffect
object LoadCurrentFacility : FacilityChangeEffect()
data class OpenConfirmFacilityChangeSheet(val facility: Facility) : FacilityChangeEffect()
object GoBack : FacilityChangeEffect()
| 8 | Kotlin | 74 | 226 | d2cf8277d37aabb6bce00f74b1467b9e859a37fd | 306 | simple-android | MIT License |
whisper_android/app/src/main/cpp/tf-lite-api/include/flatbuffers/java/src/test/java/NamespaceA/NamespaceB/StructInNestedNS.kt | nyadla-sys | 684,225,721 | false | null | // automatically generated by the FlatBuffers compiler, do not modify
package NamespaceA.NamespaceB
import java.nio.*
import kotlin.math.sign
import com.google.flatbuffers.*
@Suppress("unused")
@ExperimentalUnsignedTypes
class StructInNestedNS : Struct() {
fun __init(_i: Int, _bb: ByteBuffer) {
__reset... | 14 | null | 20 | 74 | 5eaa87f3af07e580d6b79172433e460fca017224 | 925 | whisper.tflite | MIT License |
app/src/main/java/ru/whalemare/sample/CounterView.kt | whalemare | 93,920,111 | false | null | package ru.whalemare.sample
import android.content.Context
import android.support.v7.widget.LinearLayoutCompat
import android.util.AttributeSet
import android.view.View
/**
* @since 2017
* @author <NAME> - whalemare
*/
class CounterView @JvmOverloads constructor(
context: Context,
attributeSet: Att... | 0 | Kotlin | 1 | 0 | a49bfa7d80246b0435bea13906fb0e1ef2521d0b | 500 | cell-adapter | Apache License 2.0 |
apiservice/src/main/java/nl/testchamber/apiservice/interfaces/MilkTypeServiceResponseListener.kt | rutgurk | 174,993,339 | false | null | package nl.testchamber.apiservice.interfaces
import nl.testchamber.apiservice.data.MilkTypeService
import retrofit2.Response
interface MilkTypeServiceResponseListener {
fun onSuccess(response: MilkTypeService)
fun onFailure(message: String)
} | 3 | Kotlin | 9 | 1 | a7ea829cff0d01d06e39dfa5c15b21b66e8cb482 | 254 | mailordercoffee-workshop | MIT License |
compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/41.fir.kt | JetBrains | 3,432,266 | false | null | // !LANGUAGE: +NewInference
// !DIAGNOSTICS: -UNUSED_EXPRESSION -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_PARAMETER -UNUSED_VARIABLE -UNUSED_VALUE -VARIABLE_WITH_REDUNDANT_INITIALIZER
// SKIP_TXT
// TESTCASE NUMBER: 1
inline fun <reified T> case_1(x: Any?) {
when (x) {
is T -> {
<!DEBUG_INF... | 157 | null | 5563 | 44,965 | e6633d3d9214402fcf3585ae8c24213a4761cc8b | 3,259 | kotlin | Apache License 2.0 |
toothpick-sample/src/main/java/com/example/toothpick/adapter/IBackpackAdapter.kt | zawadz88 | 204,247,003 | true | {"INI": 16, "YAML": 1, "Markdown": 3, "Text": 3, "Gradle": 21, "Shell": 4, "Batchfile": 2, "Ignore List": 1, "Java": 192, "XML": 13, "Kotlin": 40, "Java Properties": 2} | package com.example.toothpick.adapter
import androidx.recyclerview.widget.RecyclerView
open abstract class IBackpackAdapter: RecyclerView.Adapter<BackpackAdapter.ItemHolder>() | 0 | Java | 0 | 0 | 87d89c15b5bc15c3a698b9d42a4adf0ceebb0ae3 | 177 | toothpick | Apache License 2.0 |
app/src/main/java/lt/vilnius/tvarkau/dagger/module/ReportDetailsActivityModule.kt | vilnius | 45,076,585 | false | null | package lt.vilnius.tvarkau.dagger.module
import dagger.Module
import dagger.android.ContributesAndroidInjector
import lt.vilnius.tvarkau.fragments.ReportDetailsFragment
@Module
abstract class ReportDetailsActivityModule {
@ContributesAndroidInjector
abstract fun reportDetailsFragment(): ReportDetailsFragment... | 7 | Kotlin | 15 | 24 | 3d546e1e70b5b05514f47e7cb6c1c2e03a7da093 | 323 | tvarkau-vilniu | MIT License |
lib_common/src/main/java/com/yunzhu/module/common/extensions/ImageViewExt.kt | esligh | 374,030,175 | false | {"Java": 629194, "Kotlin": 226783} | package com.yunzhu.module.common.extensions
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bumptech.glide.load.engine.DiskCacheStrategy
import com.bumptech.glide.load.resource.bitmap.RoundedCorners
import com.bumpt... | 1 | Java | 1 | 2 | 23cf0022ee02d18d4cc4f8400ae4c0036519d3d1 | 3,083 | zygote | Apache License 2.0 |
baselibrary/src/main/java/com/ballastlane/android/baselibrary/common/ext/StringExtensions.kt | Ballastlane-LLC | 123,138,312 | false | null | package com.ballastlane.android.baselibrary.common.ext
import android.content.Context
import android.content.Intent
import java.util.regex.Pattern
/**
* Created by Mariangela Salcedo (mariangelasalcedo@ballastlane.com) on 3/8/18.
* Copyright (c) 2018 Ballast Lane Applications LLC. All rights reserved.
*/
fun Stri... | 1 | null | 1 | 1 | 7b45852160a7ef9c6ae04e7225cd14d5335b300a | 2,120 | AndroidBaseLibrary | Apache License 2.0 |
gremlin-kore/src/main/kotlin/org/apache/tinkerpop4/gremlin/process/traversal/strategy/optimization/PathProcessorStrategy.kt | phreed | 449,920,526 | false | null | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 4 | null | 1 | 1 | cb6805d686e9a27caa8e597b0728a50a63dc9092 | 10,023 | tinkerpop4 | Apache License 2.0 |
Mobile/Android/app/src/main/java/com/razvantmz/onemove/ui/addEvent/AddEventActivity.kt | razvantmzz | 315,075,478 | false | {"Text": 1, "Markdown": 1, "Gradle": 3, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Proguard": 1, "JSON": 1, "Kotlin": 125, "XML": 114, "Java": 1} | package com.razvantmz.onemove.ui.addEvent
import android.annotation.SuppressLint
import android.app.Activity
import android.app.DatePickerDialog
import android.app.TimePickerDialog
import android.content.Intent
import android.content.res.Configuration
import android.os.Bundle
import android.text.Html
import android.ut... | 1 | null | 1 | 1 | 05bde5b64e54f6091dedcdd2da7093c3bfa4f522 | 12,174 | gym-app | MIT License |
kotlin/udacity-kotlin-bootcamp/HelloKotlin/src/playcollections.kt | hermantai | 24,401,146 | false | {"Java": 1360692, "Kotlin": 1179906, "JavaScript": 516570, "Swift": 393329, "CSS": 135262, "Go": 63056, "Python": 52652, "Rust": 49486, "Jupyter Notebook": 32258, "HTML": 22692, "Dart": 17950, "Pug": 5366, "Shell": 2280, "Ruby": 1929, "C": 369, "Procfile": 15} | fun main(args: Array<String>) {
val allBooks = setOf("Macbeth", "Romeo and Juliet", "Hamlet", "A Midsummer Night's Dream")
val library = mapOf("Shakespeare" to allBooks)
println(library.any { it.value.contains("Hamlet") })
val moreBooks = mutableMapOf<String, String>("Wilhelm Tell" to "Schiller")
moreBooks.g... | 2 | null | 1 | 1 | 87f62edef85ff947c8b8f014dfd231cbf7cab021 | 428 | samples | Apache License 2.0 |
compiler/psi/src/org/jetbrains/kotlin/parsing/util/parseFileUtils.kt | zhangdinet | 128,026,457 | true | {"Kotlin": 27944627, "Java": 9967432, "JavaScript": 157318, "HTML": 61896, "Lex": 18174, "Groovy": 14207, "ANTLR": 9797, "IDL": 8102, "Shell": 5436, "CSS": 4679, "Batchfile": 4437} | /*
* 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 org.jetbrains.kotlin.parsing.util
import com.intellij.core.CoreApplicationEnvironment
import com.intellij.core.CoreProjectEnvironment
import com.in... | 0 | Kotlin | 0 | 1 | 0439abba462a67e10c2fb73f2ae01d2a03892103 | 3,946 | kotlin | Apache License 2.0 |
app/src/main/java/com/openclassrooms/realestatemanager/data/database/dao/PictureDao.kt | mutwakilmo | 284,513,894 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Java": 6, "XML": 88, "JSON": 6, "Kotlin": 110} | package com.openclassrooms.realestatemanager.data.database.dao
import android.database.Cursor
import androidx.room.*
import com.openclassrooms.realestatemanager.data.entity.Picture
import com.openclassrooms.realestatemanager.utils.PICTURE_TABLE_NAME
/**
* Created by Mutwakil-Mo 🤩
* Android Engineer,
* Brussels
*... | 0 | Kotlin | 0 | 0 | 85115879ceee2a6e64d7730875998c115785915b | 947 | RealEstateManager | Apache License 2.0 |
app/src/main/java/com/wavesplatform/wallet/v2/ui/home/quick_action/receive/bank/BankPresenter.kt | luffy97 | 185,141,897 | true | {"Kotlin": 1222636, "Java": 270135, "HTML": 25816} | package com.wavesplatform.wallet.v2.ui.home.quick_action.receive.bank
import com.arellomobile.mvp.InjectViewState
import com.wavesplatform.wallet.v2.ui.base.presenter.BasePresenter
import javax.inject.Inject
@InjectViewState
class BankPresenter @Inject constructor() : BasePresenter<BankView>()
| 1 | Kotlin | 0 | 0 | 82539c029333ba3d9981493e771d1d273d436b20 | 297 | WavesWallet-android | MIT License |
idea/testData/intentions/conventionNameCalls/replaceContains/missingArgument.kt | staltz | 50,323,841 | false | null | // IS_APPLICABLE: false
// ERROR: No value passed for parameter b
fun test() {
class Test{
fun contains(a: Int, b: Int): Boolean = true
}
val test = Test()
test.cont<caret>ains(0)
}
| 0 | null | 0 | 1 | ff00bde607d605c4eba2d98fbc9e99af932accb6 | 206 | kotlin | Apache License 2.0 |
app/src/main/kotlin/org/misumirize/speechtoamazon/ScreenReceiver.kt | MisumiRize | 61,784,912 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Java": 2, "XML": 7, "Kotlin": 6, "JSON": 1, "Dockerfile": 1, "JavaScript": 1} | package org.misumirize.speechtoamazon
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
class ScreenReceiver : BroadcastReceiver() {
override fun onReceive(context: Context?, intent: Intent?) {
if (context != null) {
val i = Intent(context, ... | 1 | null | 1 | 1 | fedc8319fa833c1042da644de496c9f6aaf980dc | 447 | SpeechToAmazon | MIT License |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/autonomy/AutoParkDreapta.kt | cosmin-26 | 665,761,061 | false | {"Java": 223224, "Kotlin": 157107} | package org.firstinspires.ftc.teamcode.autonomy
import com.acmerobotics.dashboard.config.Config
import com.acmerobotics.roadrunner.geometry.Pose2d
import com.acmerobotics.roadrunner.geometry.Vector2d
import com.qualcomm.robotcore.eventloop.opmode.Autonomous
import com.qualcomm.robotcore.util.ElapsedTime
import org.fir... | 1 | null | 1 | 1 | 8d8ec1a95afa1fb15f82f272ee6838d814db6018 | 3,673 | ftc-qube | BSD 3-Clause Clear License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.