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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
basick/src/main/java/com/mozhimen/basick/animk/builders/temps/ScaleType.kt | mozhimen | 353,952,154 | false | null | package com.mozhimen.basick.animk.builder.temps
import android.animation.*
import android.view.View
import android.view.animation.Animation
import android.view.animation.ScaleAnimation
import androidx.annotation.FloatRange
import com.mozhimen.basick.animk.builder.bases.BaseAnimKType
import com.mozhimen.basick.animk.bu... | 0 | null | 6 | 2 | 0b6d7642b1bd7c697d9107c4135c1f2592d4b9d5 | 7,058 | SwiftKit | Apache License 2.0 |
mylib-file/mylib-file-doc/src/test/kotlin/com/zy/mylib/file/doc/DocUtilTest.kt | ismezy | 140,005,112 | false | null | /*
* Copyright © 2020 ismezy (<EMAIL>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 0 | Kotlin | 0 | 0 | 5c16d5d9b41628b4c9408df97d225ebea1d605e8 | 2,154 | mylib | Apache License 2.0 |
app/src/main/java/com/duckduckgo/app/global/initialization/AppDataLoader.kt | tanujnotes | 387,097,583 | true | {"Kotlin": 2976206, "HTML": 42259, "Ruby": 7252, "JavaScript": 6544, "C++": 1820, "CMake": 1298, "Shell": 712} | /*
* Copyright (c) 2019 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 ... | 0 | Kotlin | 0 | 10 | 0c48a2a934afee7df12e98b8e345a84f112d878a | 1,177 | DuckDuckPlus | Apache License 2.0 |
app/src/main/java/io/wax911/sample/extension/AppExt.kt | fossabot | 223,555,788 | true | {"Kotlin": 288406, "Java": 19109} | package io.wax911.sample.extension
| 0 | Kotlin | 0 | 0 | 50be1a136fc46fb0eaccc041ef40eca2f4c67771 | 36 | support-arch | Apache License 2.0 |
billing/src/main/java/de/charlex/billing/BillingSecurity.kt | ch4rl3x | 311,794,036 | false | {"Kotlin": 20013} | package de.charlex.billing
import android.text.TextUtils
import android.util.Base64
import android.util.Log
import java.io.IOException
import java.security.InvalidKeyException
import java.security.KeyFactory
import java.security.NoSuchAlgorithmException
import java.security.PublicKey
import java.security.Signature
imp... | 0 | Kotlin | 0 | 6 | f840d8f53346b59f54d30b27b3039a55eec97ad4 | 4,433 | billing-suspend | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsactivitiesmanagementapi/service/appointment/AppointmentCreateDomainService.kt | ministryofjustice | 533,838,017 | false | {"Kotlin": 3213032, "Shell": 11230, "Dockerfile": 1490} | package uk.gov.justice.digital.hmpps.hmppsactivitiesmanagementapi.entity
import com.microsoft.applicationinsights.TelemetryClient
import org.springframework.stereotype.Service
import org.springframework.transaction.annotation.Transactional
import uk.gov.justice.digital.hmpps.hmppsactivitiesmanagementapi.model.audit.Ap... | 6 | Kotlin | 0 | 1 | eae02fa4109011532d8b881a6338788d16e021ca | 12,411 | hmpps-activities-management-api | MIT License |
samples/app/src/main/kotlin/com/bumble/appyx/app/composable/ScreenCenteredContent.kt | bumble-tech | 493,334,393 | false | null | package com.bumble.appyx.app.composable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
@Composable
internal fun ScreenCenteredContent(
modifier: ... | 68 | Kotlin | 45 | 754 | 1c13ab49fb3e2eb0bcd192332d597f8c05d3f6a9 | 574 | appyx | Apache License 2.0 |
src/main/kotlin/spritz/builtin/companions/BooleanCompanion.kt | SpritzLanguage | 606,570,819 | false | null | package spritz.builtin.companions
import spritz.value.bool.BooleanValue
/**
* @author surge
* @since 26/03/2023
*/
class BooleanCompanion(value: BooleanValue) : Companion(value) {
fun binary() = if ((value as BooleanValue).value) 1 else 0
} | 0 | Kotlin | 0 | 23 | f50d81fa2d5aa7784ac4c76717603eea079c8db2 | 251 | Spritz | The Unlicense |
kotlin-jvm/src/main/kotlin/playground/Retrofit.kt | LouisCAD | 295,134,297 | false | null | @file:Suppress("PackageDirectoryMismatch")
package playground.retrofit
import com.jakewharton.retrofit2.converter.kotlinx.serialization.asConverterFactory
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.json.Json
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.OkHt... | 16 | null | 54 | 171 | ff3ae6af7530d3b873b79486cf6e947f1ee53aa1 | 2,042 | kotlin-libraries-playground | MIT License |
utils/src/main/kotlin/com/aqrlei/open/utils/TransformType.kt | AqrLei | 163,511,183 | false | null | package com.aqrlei.open.utils
import android.content.res.Resources
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.Drawable
import java.io.ByteArrayInputStream
import java.io.ByteArrayOutputStream
import java.io.Objec... | 0 | Kotlin | 0 | 0 | 8f1fafab152404cee5ddc36d2747fc0e37c6c1fd | 1,825 | Utils | Apache License 2.0 |
domene/src/main/kotlin/no/nav/tiltakspenger/domene/behandling/BehandlingVilkårsvurdert.kt | navikt | 487,246,438 | false | {"Kotlin": 846627, "Dockerfile": 495, "Shell": 150, "HTML": 45} | package no.nav.tiltakspenger.domene.behandling
import mu.KotlinLogging
import no.nav.tiltakspenger.domene.saksopplysning.Saksopplysning
import no.nav.tiltakspenger.domene.vilkår.Utfall
import no.nav.tiltakspenger.domene.vilkår.Vilkår
import no.nav.tiltakspenger.domene.vilkår.Vurdering
import no.nav.tiltakspenger.felle... | 3 | Kotlin | 0 | 2 | a873372e114b2067022fb71a1d959568dc80c712 | 12,374 | tiltakspenger-vedtak | MIT License |
app/src/main/java/com/example/kotlinSub2Ara/api/SportDbRepository.kt | hantulautt | 177,001,059 | false | {"Kotlin": 20071} | package com.example.kotlinSub2Ara.Api
import com.example.kotlinSub2Ara.BuildConfig
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
object SportDbRepository {
fun create(): SportDbService {
val retrofit = Retrofit.Builder()
.addConverterFactory(GsonConverterFactor... | 0 | Kotlin | 0 | 0 | feb81a6b7f327e8eba6628f800936fbdd117bd8f | 462 | kotlin-with-thesportdb-api | MIT License |
app/src/main/java/com/prabhatpandey/otpcomposeapp/MainActivity.kt | prabhatsdp | 752,274,865 | false | {"Kotlin": 28309} | package com.prabhatpandey.otpcomposeapp
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import and... | 0 | Kotlin | 0 | 2 | 78b4ee9d3da89475b4a60094aa82b87991052851 | 2,951 | otp-compose | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/prisonerfromnomismigration/adjudications/AdjudicationTransformationTest.kt | ministryofjustice | 452,734,022 | false | {"Kotlin": 1281774, "Mustache": 1803, "Dockerfile": 1374} | package uk.gov.justice.digital.hmpps.prisonerfromnomismigration.adjudications
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.Test
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.param... | 1 | Kotlin | 0 | 2 | c71ab77d1a2131357b360aa9165ea8ce50823ce4 | 54,372 | hmpps-prisoner-from-nomis-migration | MIT License |
utbot-framework-test/src/test/kotlin/org/utbot/examples/annotations/lombok/EnumWithAnnotationsTest.kt | UnitTestBot | 480,810,501 | false | null | package org.utbot.examples.annotations.lombok
import org.junit.jupiter.api.Test
import org.utbot.testcheckers.eq
import org.utbot.testing.DoNotCalculate
import org.utbot.testing.UtValueTestCaseChecker
/**
* Tests for Lombok annotations
*
* We do not calculate coverage here as Lombok always make it pure
* (see, i.... | 396 | Kotlin | 31 | 91 | ca7df7c1665cdab2a5d8bc2619611e02e761a228 | 799 | UTBotJava | Apache License 2.0 |
swan-third-libs/shark-libs/shark-graph/src/main/java/shark/internal/ByteSubArray.kt | YoungTr | 469,053,611 | false | null | package kshark.internal
/**
* Provides read access to a sub part of a larger array.
*/
internal class ByteSubArray(
private val array: ByteArray,
private val rangeStart: Int,
size: Int,
private val longIdentifiers: Boolean
) {
private val endInclusive = size - 1
private var currentIndex = 0
... | 62 | null | 411 | 8 | 65169f46a5af9af3ce097d2cbb67b8f34e9df3f1 | 2,804 | Swan | Apache License 2.0 |
detekt-test/src/main/kotlin/io/gitlab/arturbosch/detekt/test/RuleExtensions.kt | niraj8 | 272,693,530 | false | null | package io.gitlab.arturbosch.detekt.test
import io.github.detekt.test.utils.KotlinScriptEngine
import io.github.detekt.test.utils.KtTestCompiler
import io.gitlab.arturbosch.detekt.api.Finding
import io.gitlab.arturbosch.detekt.api.Rule
import io.gitlab.arturbosch.detekt.api.internal.BaseRule
import org.intellij.lang.a... | 0 | null | 0 | 1 | 8536e848ec2d4470c970442a8ea4579937b4b2d8 | 2,288 | detekt | Apache License 2.0 |
app/src/main/java/br/com/alura/technews/ui/viewModel/VizualizaNoticiaViewModel.kt | Josue10599 | 204,558,088 | false | null | package br.com.alura.technews.ui.viewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import br.com.alura.technews.model.Noticia
import br.com.alura.technews.repository.NoticiaRepository
import br.com.alura.technews.repository.Resource
class VizualizaNoticiaViewModel(
private val repos... | 0 | Kotlin | 0 | 0 | ae540ea41000ba26179ff0dcda79e8405d8ecaf3 | 545 | TechNews-Kotlin | Apache License 2.0 |
core/src/main/java/com/github/corentinc/core/home/HomeInteractor.kt | corentin-c | 235,539,306 | false | null | package com.github.corentinc.core.home
import com.github.corentinc.core.EditSearchInteractor
import com.github.corentinc.core.SearchAdsPosition
import com.github.corentinc.core.SearchAdsPostionDefaultSorter
import com.github.corentinc.core.alarmManager.AlarmManagerInteractor
import com.github.corentinc.core.repository... | 0 | Kotlin | 0 | 1 | 47ec5cbe754c9cae371546e08d74b43b20644cb0 | 4,676 | notificoin | Apache License 2.0 |
src/main/kotlin/se/kth/spork/spoon/matching/ClassRepresentatives.kt | ASSERT-KTH | 237,440,106 | false | null | package se.kth.spork.spoon.matching
import se.kth.spork.base3dm.Revision
import se.kth.spork.spoon.wrappers.NodeFactory
import se.kth.spork.spoon.wrappers.SpoonNode
import spoon.reflect.declaration.CtElement
import spoon.reflect.visitor.CtScanner
import java.util.HashMap
/**
* Create the class representatives mappin... | 30 | null | 8 | 51 | 990397e537300ec3dd2687bc43e3766dd5baed73 | 7,719 | spork | MIT License |
plugins/kotlin/code-insight/inspections-k2/tests/testData/inspectionsLocal/replaceSizeZeroCheckWithIsEmpty/string.kt | ingokegel | 72,937,917 | false | null | // WITH_STDLIB
fun foo() {
"123".length<caret> == 0
} | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 58 | intellij-community | Apache License 2.0 |
app/src/main/java/com/example/android/politicalpreparedness/network/CivicsHttpClient.kt | nawal-alghamdi | 737,314,786 | false | {"Kotlin": 40127} | package com.example.android.politicalpreparedness.network
import com.example.android.politicalpreparedness.BuildConfig
import okhttp3.OkHttpClient
import com.facebook.stetho.okhttp3.StethoInterceptor
import okhttp3.logging.HttpLoggingInterceptor
class CivicsHttpClient: OkHttpClient() {
companion object {
... | 0 | Kotlin | 0 | 0 | 4cb9dd6afc89e08177a9e855a4c208265fd13ac8 | 1,262 | PoliticalPreparedness | Apache License 2.0 |
src/main/kotlin/org/oso/core/services/DeviceType.kt | OSOSystem | 156,911,157 | false | null | package org.oso.core.services
import org.oso.core.entities.DeviceType
interface DeviceTypeService {
fun findAll(): List<DeviceType>
} | 14 | Kotlin | 4 | 12 | 70473b0dca460ff313f5d839b7d166efdd11d0fb | 139 | oso-backend | Apache License 2.0 |
feature-staking-impl/src/main/java/com/dfinn/wallet/feature_staking_impl/presentation/mappers/Identity.kt | finn-exchange | 500,972,990 | false | null | package com.dfinn.wallet.feature_staking_impl.presentation.mappers
import com.dfinn.wallet.feature_staking_api.domain.model.Identity
import com.dfinn.wallet.feature_staking_impl.presentation.validators.details.model.IdentityModel
import com.dfinn.wallet.feature_staking_impl.presentation.validators.parcel.IdentityParce... | 0 | Kotlin | 0 | 0 | 6cc7a0a4abb773daf3da781b7bd1dda5dbf9b01d | 753 | dfinn-android-wallet | Apache License 2.0 |
src/test/kotlin/org/move/lang/resolve/ResolveStubOnlyTest.kt | pontem-network | 279,299,159 | false | null | package org.move.lang.resolve
import org.move.utils.tests.resolve.ResolveProjectTestCase
class ResolveStubOnlyTest : ResolveProjectTestCase() {
fun `test stub resolve module import`() = stubOnlyResolve {
namedMoveToml("MyPackage")
sources {
move(
"module.move", """
... | 4 | null | 29 | 69 | 3420e175b388e503dbe796274939df4c84e329a8 | 3,078 | intellij-move | MIT License |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/Snowmobile.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
i... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 4,224 | icons | MIT License |
plugins/base/base-test-utils/src/main/kotlin/renderers/TestPage.kt | Kotlin | 21,763,603 | false | null | /*
* Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package renderers
import org.jetbrains.dokka.DokkaConfiguration
import org.jetbrains.dokka.base.signatures.KotlinSignatureProvider
import org.jetbrains.dokka.base.transformers.pages.comments.CommentsToContent... | 421 | Kotlin | 388 | 3,010 | 97bccc0e12fdc8c3bd6d178e17fdfb57c3514489 | 2,063 | dokka | Apache License 2.0 |
roboquant-server/src/test/kotlin/org/roboquant/server/WebServerTest.kt | neurallayer | 406,929,056 | false | null | /*
* Copyright 2020-2023 Neural Layer
*
* 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 applicable law or ag... | 18 | Kotlin | 30 | 228 | e46bebffdd0aa845fa8c4a5051d35b64420e214f | 1,442 | roboquant | Apache License 2.0 |
sample/src/main/java/com/drake/net/sample/interceptor/RefreshTokenInterceptor.kt | liangjingkanji | 370,593,764 | false | null | package com.drake.net.sample.interceptor
import com.drake.net.Net
import com.drake.net.exception.ResponseException
import com.drake.net.sample.constants.UserConfig
import okhttp3.Interceptor
import okhttp3.Response
import org.json.JSONObject
/**
* 演示如何自动刷新token令牌
*/
class RefreshTokenInterceptor : Interceptor {
... | 1 | Kotlin | 3 | 38 | ef866475ea0249d7be2672ad5e8864c841bbbd4b | 1,221 | Net-okhttp3 | MIT License |
src/main/kotlin/com/mitya1234/uuid/service/UuidService.kt | DmitriiTrifonov | 274,063,153 | false | null | package com.mitya1234.uuid.service
import com.mitya1234.uuid.model.UuidList
interface UuidService {
fun generate(number: Int): UuidList
} | 0 | Kotlin | 0 | 0 | 86deb5c20d04a4c708953966405c1d28803d6f69 | 143 | cbrf-uuid-service | Apache License 2.0 |
feature/main/src/main/java/com/t8rin/imagetoolboxlite/feature/main/presentation/components/ScreenBasedMaxBrightnessEnforcement.kt | T8RIN | 767,600,774 | false | null | /*
* ImageToolbox is an image editor for android
* Copyright (c) 2024 T8RIN (<NAME>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under ... | 5 | null | 90 | 8 | f8fe322c2bde32544e207b49a01cfeac92c187ce | 2,149 | ImageToolboxLite | Apache License 2.0 |
buildSrc/src/main/kotlin/GradlePlugin.kt | vasilevungureanu | 205,379,317 | false | null | object GradlePlugin {
const val android = "com.android.tools.build:gradle:3.4.2"
const val versions = "com.github.ben-manes:gradle-versions-plugin:0.23.0"
const val kotlin = "org.jetbrains.kotlin:kotlin-gradle-plugin:${Kotlin.version}"
} | 0 | Kotlin | 0 | 0 | 053e5d8d420a55963c5d88250fe8c3cdf8b5eea5 | 249 | android-kata-template | MIT License |
patient/src/main/kotlin/com/fiap/hackthon/healthmed/patient/domain/usecase/PatientUpdateUseCase.kt | fabianogoes | 858,450,295 | false | {"Kotlin": 146787, "HCL": 2976, "HTML": 774, "Dockerfile": 295, "Shell": 194} | package com.fiap.hackthon.healthmed.patient.domain.usecase
import com.fiap.hackthon.healthmed.patient.domain.entity.Patient
import com.fiap.hackthon.healthmed.patient.domain.exception.PatientNotFoundException
import com.fiap.hackthon.healthmed.patient.ports.PatientPersistencePort
import com.fiap.hackthon.healthmed.pat... | 0 | Kotlin | 0 | 0 | 57f2a072dbc1293d33a621405d5263b1d9f0a5fe | 1,090 | fiap-hackthon-health-med | MIT License |
app/src/main/java/com/example/bookly/api/model/VolumeInfo.kt | glitterylungs | 622,685,373 | false | null | package com.example.bookly.api.model
data class VolumeInfo(
val authors: List<String?>? = null,
val categories: List<String?>? = null,
val description: String? = null,
val imageLinks: ImageLinks? = null,
val pageCount: Int? = null,
val publishedDate: String? = null,
val publisher: String? =... | 0 | Kotlin | 0 | 0 | e603067ed94e43378b9007a73ced0fe5ff37cc0b | 392 | Bookly | MIT License |
src/main/kotlin/io/github/rybalkinsd/kohttp/dsl/context/BodyContext.kt | mlevesquedion | 193,717,567 | true | {"Kotlin": 70859} | package io.github.rybalkinsd.kohttp.dsl.context
import io.github.rybalkinsd.kohttp.util.Form
import io.github.rybalkinsd.kohttp.util.Json
import okhttp3.MediaType
import okhttp3.RequestBody
import okhttp3.RequestBody.create
import java.io.File
/**
*
* @since 0.1.0
* @author sergey, alex
*/
@HttpDslMarker
open cl... | 0 | Kotlin | 0 | 0 | b7502e1c4b91376284caeeaceaafa69a5d23f038 | 1,070 | kohttp | Apache License 2.0 |
sampleapp-kotlin/src/main/java/com/grab/partner/sdk/sampleapp/scheduleprovider/SchedulerProvider.kt | grab | 157,938,313 | false | {"Gradle": 9, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 5, "Batchfile": 1, "Markdown": 1, "Proguard": 4, "XML": 46, "Kotlin": 83, "Java": 3} | /*
* Copyright (c) Grab Taxi Holdings PTE LTD (GRAB)
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
package com.grab.partner.sdk.sampleappkotlin.wrapper.scheduleprovider
import io.reactivex.Scheduler
import io.reactivex.android.... | 1 | Kotlin | 7 | 22 | cf4d95a8f2a1b553799c950b411d673d139a757e | 715 | grabplatform-sdk-android | MIT License |
common/util/SystemUtil.kt | typedb | 159,188,705 | false | null | /*
* Copyright (C) 2021 Vaticle
*
* 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, Ver... | 37 | null | 53 | 155 | 8bd47812bd957380d1f56ce1a5afb98ea2a3f788 | 1,423 | bazel-distribution | Apache License 2.0 |
client/src/main/kotlin/ru/spb/kry127/netbench/client/net/Client.kt | kry127 | 328,053,995 | false | null | package ru.spb.kry127.netbench.client.net
import ru.spb.kry127.netbench.client.InputDataPoint
import ru.spb.kry127.netbench.client.IntGenerator
import ru.spb.kry127.netbench.client.MeanStatistics
import ru.spb.kry127.netbench.client.MeanStatistics.Companion.mean
import ru.spb.kry127.netbench.proto.ArraySorter
import j... | 1 | null | 1 | 1 | 498b1f7063c2da7daf64ed3afe396442fe2079ef | 7,344 | JvmServerArchitectures | MIT License |
backend/src/main/kotlin/io/github/katarem/domain/model/User.kt | katarem | 857,288,553 | false | {"Kotlin": 89540, "Dockerfile": 824, "Swift": 621} | package io.github.katarem.domain.model
import kotlinx.datetime.LocalDateTime
data class User(
val id: Long,
val username: String,
val email: String,
val password: String,
val cards: List<Card>,
val nextCard: LocalDateTime?,
val role: Roles = Roles.USER
)
enum class Roles{
ADMIN,USER
} | 0 | Kotlin | 0 | 0 | bbe068561694292ac1ee8da518e79dfa0f188961 | 320 | anime-card-trader | MIT License |
app/src/main/java/com/dinaraparanid/prima/utils/web/youtube/json/YouTubeSearchResult.kt | dinaraparanid | 365,311,683 | false | null | package com.dinaraparanid.prima.utils.web.youtube.json
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
@Deprecated(
"The YouTube API key is very limited in resources, " +
"and it will not be enough for users from the Play Market"
)
class YouTubeSearchResult(... | 0 | Kotlin | 0 | 6 | c3b5bb93f515820862b04db199c9425fc03472e3 | 750 | PrimaMobile | Apache License 2.0 |
app/src/unitTest/kotlin/batect/cli/CommandLineOptionsParserSpec.kt | uBuFun | 221,905,828 | true | {"Kotlin": 1851760, "Shell": 13393, "Groovy": 11432, "Python": 10433, "Dockerfile": 5030, "JavaScript": 4104, "Java": 1097, "HTML": 878} | /*
Copyright 2017-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 wr... | 4 | Kotlin | 1 | 1 | e933116cad5b1c5c877233317534ba3e91e9475e | 10,903 | batect | Apache License 2.0 |
app/src/main/java/com/mhappening/gameclock/data/workManager/factory/RescheduleAlarmWorkerFactory.kt | Matt-Haywood | 769,928,478 | false | {"Kotlin": 276837} | package com.mhappening.gameclock.data.workManager.factory
import android.content.Context
import androidx.work.ListenableWorker
import androidx.work.WorkerParameters
import com.mhappening.gameclock.data.alarms.AlarmRepository
import com.mhappening.gameclock.data.alarms.GameClockAlarmManager
import com.mhappening.gamecl... | 0 | Kotlin | 0 | 1 | 96fab1ca52d9ddede722300c1c42fe6324c4110a | 930 | Game-Clock | Apache License 2.0 |
compiler/testData/codegen/box/ranges/stepped/unsigned/literal/downTo/illegalStepNonConst.kt | JetBrains | 3,432,266 | false | null | // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit!
// WITH_STDLIB
// KT-34166: Translation of loop over literal completely removes the validation of step
// DONT_TARGET_EXACT_BACKEND: JS
import kotlin.test.*
fun zero() = 0
fun box(): String {
assertFailsWith<IllegalArgumentException> {
... | 179 | null | 5706 | 48,889 | c46c3c26038158cf80a739431ac8807ac4bbbc0c | 516 | kotlin | Apache License 2.0 |
libs/ui-theme/src/main/kotlin/mono/ui/theme/ThemeManager.kt | tuanchauict | 325,686,408 | false | null | package mono.ui.theme
import mono.livedata.LiveData
import mono.livedata.MutableLiveData
import mono.livedata.distinctUntilChange
/**
* A class for managing the theme of the app.
*/
class ThemeManager private constructor(initialThemeMode: ThemeMode) {
private val themeModeMutableLiveData: MutableLiveData<ThemeM... | 15 | Kotlin | 9 | 91 | 21cef26b45c984eee31ea2c3ba769dfe5eddd92e | 1,197 | MonoSketch | Apache License 2.0 |
src/main/java/test/AHSTUTest.kt | YZune | 232,583,513 | false | null | import java.io.File
import java.util.Scanner
import main.java.parser.AHSTUCourseProvider
import main.java.parser.supwisdom.SupwisdomParser
//获取课表html
fun getCourseHTML() {
val xuke = AHSTUCourseProvider()
val img = xuke.getCaptchaImage()
val _file = File("captcha.png")
_file.writeBytes(img)
printl... | 0 | Kotlin | 119 | 96 | 2bc26e588f80cb7f9a1715b02309b653ba090454 | 765 | CourseAdapter | MIT License |
scan-engine/src/main/java/de/tillhub/scanengine/default/ui/GoogleScanningActivity.kt | tillhub | 459,124,731 | false | null | package de.tillhub.scanengine.default.ui
import android.Manifest
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Bundle
import android.view.LayoutInflater
import android.widget.Toast
import androidx.activity.result.contract.ActivityResultContracts
import androidx.activity.viewM... | 0 | null | 0 | 2 | 2c0383d3e7f395d0fac179b5438b65f794c6c930 | 4,739 | scan-engine | MIT License |
app/src/main/java/com/maderix/bubblepickerdemo/BubbleFragment.kt | maderix | 119,283,207 | false | null | package com.maderix.bubblepickerdemo
import android.content.Context
import android.os.Bundle
import android.support.v4.app.DialogFragment
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ToggleButton
import com.github... | 0 | Kotlin | 0 | 0 | e7d8a906a539064c0ff2c7c2e6df5a93b250fa0d | 6,134 | Bubble-Picker2 | The Unlicense |
ProjectService/app/src/main/java/me/liuqingwen/android/projectservice/APIService.kt | spkingr | 99,180,956 | false | null | package me.liuqingwen.android.projectservice
import com.google.gson.annotations.SerializedName
import io.reactivex.Observable
import retrofit2.Retrofit
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
import retrofit2.converter.gson.GsonConverterFactory
import retrofit2.http.GET
import retrofit2.http.Query
... | 0 | Kotlin | 30 | 94 | 43756ad5107521e8156b0e5afa9e83fd0c20092a | 3,187 | 50-android-kotlin-projects-in-100-days | MIT License |
src/main/kotlin/cn/gionrose/facered/genshinDrawcard2/api/manager/CardManager.kt | 13022631363 | 701,322,305 | false | {"Kotlin": 95406} | package cn.gionrose.facered.genshinDrawcard2.api.manager
import cn.gionrose.facered.genshinDrawcard2.api.card.Card
import cn.gionrose.facered.genshinDrawcard2.api.card.CardStarGrade
import com.skillw.pouvoir.api.manager.Manager
import com.skillw.pouvoir.api.plugin.map.LowerKeyMap
import org.bukkit.inventory.ItemStack
... | 0 | Kotlin | 0 | 0 | 4caea9da4a398301c98a39de3867928ba6fb6757 | 1,258 | GenshinDrawcard2 | Apache License 2.0 |
app/src/main/java/com/duckduckgo/app/feedback/ui/negative/openended/ShareOpenEndedNegativeFeedbackViewModel.kt | Rachelmorrell | 132,979,208 | false | null | /*
* Copyright (c) 2019 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 ... | 41 | null | 671 | 3 | c03633f7faee192948e68c3897c526c323ee0f2e | 2,332 | Android | Apache License 2.0 |
app/src/main/kotlin/com/wiley/fordummies/androidsdk/tictactoe/ui/fragment/GameOptionsFragment.kt | acchampion | 157,287,910 | false | null | package com.wiley.fordummies.androidsdk.tictactoe.ui
import android.content.Intent
import android.os.Bundle
import android.view.*
import android.widget.Button
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import com.wiley.fordummies.androidsdk.tictactoe.*
/**
* Fragment that h... | 0 | Kotlin | 2 | 1 | bb4b953341d594d1401199d1cb8749a8ffadbfe0 | 4,284 | TicTacToeKotlin | Apache License 2.0 |
exposed-tests/src/test/kotlin/org/jetbrains/exposed/sql/tests/shared/dml/SelectTests.kt | JetBrains | 11,765,017 | false | null | package org.jetbrains.exposed.sql.tests.shared.dml
import org.jetbrains.exposed.dao.id.IntIdTable
import org.jetbrains.exposed.sql.*
import org.jetbrains.exposed.sql.tests.DatabaseTestsBase
import org.jetbrains.exposed.sql.tests.TestDB
import org.jetbrains.exposed.sql.tests.shared.assertEquals
import org.junit.Test
im... | 301 | null | 480 | 5,838 | eb6e68abc152b7ee1cc73dd05a3827df6938a4b8 | 8,564 | Exposed | Apache License 2.0 |
app/src/main/java/com/example/musicplayer/localModule/LocalMusicListAdapter.kt | Mimosa0w0 | 631,589,917 | false | null | package com.example.musicplayer.localModule
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.constraintlayout.utils.widget.ImageFilterView
import androidx.recyclerview.widget.RecyclerView
import com.example.... | 0 | Kotlin | 0 | 0 | 07c6661adbccf2500c16209aaa807a41c599fa07 | 2,010 | MusicPlayer | Apache License 2.0 |
app/src/main/java/com/twilio/video/app/ui/room/RoomViewEvent.kt | gershire | 261,673,245 | false | null | package com.twilio.video.app.ui.room
import com.twilio.audioswitch.selection.AudioDevice
sealed class RoomViewEvent {
object ScreenLoad : RoomViewEvent()
data class SelectAudioDevice(val device: AudioDevice) : RoomViewEvent()
object ActivateAudioDevice : RoomViewEvent()
object DeactivateAudioDevice : ... | 0 | null | 0 | 1 | 0b6a4d1fed3d7874884a5c44e15bcfb0a2b45d3e | 800 | twilio-video-app-android | Apache License 2.0 |
app/src/main/kotlin/com/sbgapps/scoreit/app/ui/edition/universal/UniversalEditionViewModel.kt | StephaneBg | 16,022,770 | false | null | /*
* Copyright 2019 Stéphane Baiget
*
* 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 | 11 | 37 | 7684d40c56c3293b1e9b06158efcbefa51693f7a | 2,410 | ScoreIt | Apache License 2.0 |
EuSouDaltonico_app/app/src/main/java/tads/eaj/ufrn/eusoudaltonico_app/ui/model/Desafio.kt | EuNetu | 541,246,366 | false | null | package tads.eaj.ufrn.eusoudaltonico_app.ui.model
class Desafio(
var resposta1: String,
var resposta2: String,
var resposta3: String
) {
fun resultadoDoTeste(): String {
if (this.resposta1.equals("") || this.resposta2.equals("") || this.resposta3.equals("")) {
return "Você deixou al... | 0 | Kotlin | 0 | 0 | bc38e195ca4f1727f1de7a6cb4d6f85779b30256 | 556 | daltonico_teste_app | MIT License |
data/src/main/java/com/udacity/political/preparedness/data/util/Constant.kt | RicardoBravoA | 321,486,289 | false | null | package com.udacity.political.preparedness.data.util
object Constant {
const val BASE_URL = "https://civicinfo.googleapis.com/civicinfo/v2/"
const val GEOCODE_URL = "https://maps.googleapis.com/maps/api/geocode/json"
const val DURATION = 10L
const val SPACE = " "
const val EMPTY = ""
} | 0 | Kotlin | 0 | 1 | 7b04440ba25aa12ada732603283ea06e35fb4e54 | 309 | PoliticalPreparedness | Apache License 2.0 |
ArchitectureLib/network/src/main/java/com/notrace/network/mvvm/LiveDataListDataSourceFactory.kt | messnoTrace | 179,020,296 | false | {"Java": 104721, "Kotlin": 104083} | package com.notrace.network.mvvm
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.paging.DataSource
import com.notrace.network.mvvm.base.ApiResponse
class LiveDataListDataSourceFactory<T>(
val dataSource: (page: Int) -> LiveData<ApiResponse<List<T>>>
) :
DataSource... | 1 | Java | 1 | 2 | 6c6de7092018309dda5d4c4d4f14f4bf5163ea28 | 615 | Architecture | Apache License 2.0 |
favorite/favoritedb/src/main/java/com/example/favoritedb/db/FavoritesDatabase.kt | prdp89 | 391,939,601 | false | null | package com.example.favoritedb.db
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.example.core.domain.ParameterizedSingleton
import com.example.core.entity.FavoriteRepoEntity
const val FAVORITES_DB_NAME = "favorites-db"
@Database(en... | 0 | Kotlin | 0 | 1 | 651bd0b582f4b8844181c253cd7a5018d096a648 | 671 | Trending-Git | MIT License |
core/src/main/kotlin/fr/xgouchet/elmyr/regex/node/BackReferenceNode.kt | cybernetics | 365,665,131 | true | {"Kotlin": 447545, "Java": 19634} | package fr.xgouchet.elmyr.regex.node
import fr.xgouchet.elmyr.Forge
/**
* Describe a back reference to a previously captured group.
* e.g.: ```/(a*)bc\1/```
*/
internal class BackReferenceNode(
internal val groupReference: Int,
private val parentNode: ParentNode
) : ChildNode {
internal lateinit var r... | 0 | null | 0 | 0 | 1d4bc5176784fe678a4befdab8f29a15f7756000 | 609 | Elmyr | MIT License |
src/main/kotlin/dev/moru3/compsql/datatype/types/numeric/SMALLINT.kt | moruch4nn | 386,672,322 | false | {"Kotlin": 107931, "Java": 2738} | package dev.moru3.compsql.datatype.types.numeric
import dev.moru3.compsql.datatype.BaseDataType
import java.sql.PreparedStatement
import java.sql.ResultSet
import java.sql.Types
/**
* SmallInt -32768 から 32767 までの整数を格納できるSQLの型です。
* これ以上大きな型が必要な場合は INTEGER, UINTEGER を使用します。
* Unsigned: USMALLINT, Non-Unsigned: SMALL... | 0 | Kotlin | 0 | 2 | 9c354863cd5ef504adf73f40e7a9993b175e4c38 | 1,585 | CompSQL | MIT License |
core/android/src/main/java/com/pilinhas/android/core/android/viewstateholder/ViewStateHolder.kt | pilinhasapp | 587,541,347 | false | null | package com.pilinhas.android.core.android.viewstateholder
import kotlinx.coroutines.flow.StateFlow
interface ViewStateHolder<T> {
val viewState: StateFlow<T>
}
| 0 | Kotlin | 0 | 0 | 075edd796b36203b4950567aecd303e22a330b43 | 166 | Android | MIT License |
dlock-core/src/main/kotlin/com/dlock/core/SimpleLocalKeyLock.kt | pmalirz | 166,285,922 | false | {"Kotlin": 40973, "Groovy": 6221, "Java": 1584} | package com.dlock.core
import com.dlock.core.expiration.LocalLockExpirationPolicy
import com.dlock.core.handle.LockHandleUUIDIdGenerator
import com.dlock.core.repository.LocalLockRepository
import com.dlock.core.util.time.DateTimeProvider
/**
* Local, memory-based key lock (uses LocalLockRepository).
*
* @author <... | 0 | Kotlin | 0 | 0 | f6df7935ce9207432f2d545b50efc321e60d4ed5 | 518 | dlock | MIT License |
vk-api-generated/src/main/kotlin/name/anton3/vkapi/generated/messages/objects/KeyboardReturned.kt | Anton3 | 159,801,334 | true | {"Kotlin": 1382186} | @file:Suppress("unused", "SpellCheckingInspection")
package name.anton3.vkapi.generated.messages.objects
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
/**
* Keyboard from a received message object
*
* @property authorId Community or bot, which set this keyboard
* @property oneTime Should this ... | 2 | Kotlin | 0 | 8 | 773c89751c4382a42f556b6d3c247f83aabec625 | 717 | kotlin-vk-api | MIT License |
app/src/main/java/dev/marcosfarias/pokedex/ui/dashboard/DashboardFragment.kt | zsmb13 | 232,301,179 | false | null | package dev.marcosfarias.pokedex.ui.dashboard
import android.graphics.PorterDuff
import android.graphics.PorterDuffColorFilter
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
imp... | 0 | null | 8 | 48 | a2ab162c1de76700e16ba521b1193c503b6b3f84 | 3,140 | Kotlin-Pokedex | MIT License |
profilers-android/src/com/android/tools/idea/profilers/AndroidProfilerToolWindow.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2016 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 app... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 15,159 | android | Apache License 2.0 |
app/src/main/java/com/funs/eye/logic/network/api/MainPageService.kt | hhhcan | 507,734,165 | false | null | package com.funs.eye.logic.network.api
import com.funs.eye.logic.model.*
import com.funs.eye.logic.network.ServiceCreator
import retrofit2.http.GET
import retrofit2.http.Url
/**
* 主页界面,主要包含:(首页,社区,通知,我的)对应的 API 接口。
*
* @author can
*/
interface MainPageService {
/**
* 首页-发现列表
*/
@GET
suspend... | 0 | Kotlin | 0 | 0 | a127a42d98aa6e8d0d793d74d057f1ac3d5c2799 | 1,458 | FunsEye | Apache License 2.0 |
airin-gradle-android/src/main/kotlin/io/morfly/airin/feature/AndroidToolchainFeature.kt | Morfly | 368,910,388 | false | null | package io.morfly.airin.feature
import io.morfly.airin.FeatureContext
import io.morfly.airin.FeatureComponent
import io.morfly.airin.GradleModule
import io.morfly.airin.module.RootModule
import io.morfly.airin.property
import io.morfly.pendant.starlark.android_sdk_repository
import io.morfly.pendant.starlark.define_kt... | 1 | null | 5 | 34 | 7ba3fada7a1e0e73a758d37447a42ef7f54d338f | 6,894 | airin | Apache License 2.0 |
sample/src/main/java/ru/tinkoff/acquiring/sample/ui/AboutActivity.kt | TinkoffCreditSystems | 268,528,392 | false | null | /*
* Copyright © 2020 Tinkoff Bank
*
* 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 agree... | 26 | null | 16 | 23 | 6deb46fa37a41292e8065a3d7b944acb2e3eac26 | 1,803 | AcquiringSdkAndroid | Apache License 2.0 |
line-awesome/src/commonMain/kotlin/compose/icons/lineawesomeicons/PrescriptionSolid.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.lineawesomeicons
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
... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 2,498 | compose-icons | MIT License |
ktor-network/jvm/src/io/ktor/network/sockets/CIOWriter.kt | ktorio | 40,136,600 | false | null | package io.ktor.network.sockets
import io.ktor.network.selector.*
import kotlinx.coroutines.*
import kotlinx.coroutines.io.*
import kotlinx.coroutines.io.ByteChannel
import kotlinx.io.pool.*
import java.nio.*
import java.nio.channels.*
import kotlin.coroutines.*
internal fun CoroutineScope.attachForWritingImpl(
c... | 303 | null | 958 | 9,709 | 9e0eb99aa2a0a6bc095f162328525be1a76edb21 | 2,910 | ktor | Apache License 2.0 |
app/src/main/java/com/nightwalker/runnersstopwatch/fragments/splash/SplashFragment.kt | mihailolukic | 393,330,102 | false | null | package com.nightwalker.runnersstopwatch.fragments.splash
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.navigation.Navigation
i... | 0 | Kotlin | 0 | 0 | 7017939fd9b0a6edb715cb804a5d25b8d7f25287 | 1,118 | RunnersStopwatch | Apache License 2.0 |
models/src/commonMain/kotlin/com/revenuecat/purchases/kmp/models/PurchasingData.kt | RevenueCat | 758,647,648 | false | {"Kotlin": 339864, "Ruby": 17314, "Swift": 594} | package com.revenuecat.purchases.kmp.models
import com.revenuecat.purchases.kmp.ProductType
/**
* Data connected to a purchase.
*/
public expect interface PurchasingData {
public val productId: String
public val productType: ProductType
}
| 6 | Kotlin | 2 | 68 | 7c60a7131a5b7aa0476078ea7a86f7e6dd59de84 | 251 | purchases-kmp | MIT License |
app/src/test/java/com/balocco/androidcomponents/feature/toprated/viewmodel/TopRatedViewModelTest.kt | AlexBalo | 285,021,731 | false | null | package com.balocco.androidcomponents.feature.toprated.viewmodel
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.lifecycle.Observer
import com.balocco.androidcomponents.R
import com.balocco.androidcomponents.TestUtils
import com.balocco.androidcomponents.common.navigation.Navigator
i... | 0 | Kotlin | 0 | 0 | 8c6909841af60db6d3370793a4383d6bdacf2d42 | 5,711 | AndroidComponents | Apache License 2.0 |
src/main/kotlin/com/dp/advancedgunnerycontrol/combatgui/buttongroups/CreateSimpleButtons.kt | DesperatePeter | 361,380,141 | false | null | package com.dp.advancedgunnerycontrol.combatgui.buttongroups
/**
* Simple implementation of CreateButtonsAction interface that creates
* a button for each entry in names.
* @param names list of display names of buttons. Must not be null and defines the number of buttons created
* @param data list of data that butt... | 2 | Kotlin | 3 | 9 | 514c3a1b9bd3f16ad6d0c602c9d9bdd9b50fb9fb | 931 | starsector-advanced-weapon-control | MIT License |
v_shared_packages/v_chat_media_editor/media_example/android/app/src/main/kotlin/com/example/media_example/MainActivity.kt | hatemragab | 388,805,542 | false | null | package com.example.media_example
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 20 | 42 | efa20b4b2e1426404c2f50020d08975d572f0d19 | 130 | v_chat_sdk | MIT License |
page/src/main/java/dev/entao/keb/page/bootstrap/BootImage.kt | yangentao | 213,028,942 | false | null | package dev.entao.keb.page.bootstrap
import dev.entao.keb.page.tag.*
fun Tag.imgFluid(vararg kv: HKeyValue, block: TagCallback): Tag {
return this.tag("img", class_ to _img_fluid, *kv, block = block)
}
fun Tag.imgThumbnail(vararg kv: HKeyValue, block: TagCallback): Tag {
return this.tag("img", class_ to _img_thumb... | 0 | Kotlin | 0 | 0 | f428379568e33c3f63d6fe9b2f1bf794271d0a2a | 793 | KebPage | MIT License |
src/main/kotlin/cn/yiiguxing/plugin/figlet/TestAllFontsDialog.kt | YiiGuxing | 167,921,297 | false | null | package cn.yiiguxing.plugin.figlet
import com.intellij.openapi.Disposable
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.application.ModalityState
import com.intellij.openapi.command.WriteCommandAction
import com.intellij.openapi.editor.ex.DocumentEx
import com.intellij.openapi.... | 0 | Kotlin | 5 | 35 | e4d9a915d8f7f65137d22bad70539b1e072ed9e3 | 6,550 | intellij-figlet | MIT License |
plugins/kotlin/idea/tests/testData/refactoring/bindToElement/extensionProperty/SafeAccess.kt | JetBrains | 2,489,216 | false | null | // BIND_TO test.barFoo
package test
fun foo() {
val x: Any? = null
x?.<caret>fooBar
}
val Any?.fooBar: Any? = null
val Any?.barFoo: Any? = null | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 154 | intellij-community | Apache License 2.0 |
chat-core/src/main/java/com/fzm/chat/core/session/UserDataSource.kt | txchat | 507,831,442 | false | {"Kotlin": 2234450, "Java": 384844} | package com.fzm.chat.core.session
import com.fzm.chat.core.data.bean.Field
import com.fzm.chat.core.data.bean.ChatQuery
import com.fzm.chat.core.data.bean.ServerGroupInfo
import com.zjy.architecture.data.Result
/**
* @author zhengjy
* @since 2020/12/04
* Description:
*/
interface UserDataSource {
/**
* ... | 0 | Kotlin | 1 | 1 | 6a3c6edf6ae341199764d4d08dffd8146877678b | 765 | ChatPro-Android | MIT License |
boxicons/src/commonMain/kotlin/com/woowla/compose/icon/collections/boxicons/boxicons/logos/BxlWhatsappSquare.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.boxicons.boxicons.logos
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 5,477 | compose-icon-collections | MIT License |
Squadris/src/main/java/com/squadris/squadris/compose/components/CustomPullRefresh.kt | JacobCube | 683,485,839 | false | null | package com.squadris.squadris.compose.components
import android.app.Activity
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.pullrefresh.PullRefreshState
import androidx.compos... | 0 | Kotlin | 0 | 0 | ff06694f062c3b9a5c648ce1705ce2b26121eda2 | 3,769 | Study-me-please | Apache License 2.0 |
android/app/src/test/java/com/yubico/authenticator/device/InfoTest.kt | Yubico | 16,949,032 | false | {"Dart": 1512777, "Kotlin": 295587, "Python": 119028, "C++": 26701, "CMake": 19488, "Shell": 12660, "Swift": 1903, "C": 1425, "Ruby": 1330, "PowerShell": 1243, "Batchfile": 1008} | /*
* Copyright (C) 2023 Yubico.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 55 | Dart | 136 | 999 | 353766bc01c24909d55384354f87bad71c170516 | 4,085 | yubioath-flutter | Apache License 2.0 |
src/main/kotlin/nobility/downloader/ui/views/SettingsView.kt | NobilityDeviant | 836,259,311 | false | null | package nobility.downloader.ui.views
import androidx.compose.foundation.*
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.HorizontalDivider
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Scaffol... | 4 | null | 0 | 9 | cf9790e125c977646f63e800a0ee949b5f806ec4 | 51,952 | ZenDownloader | Apache License 2.0 |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/outline/Speaker.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 4,184 | VuesaxIcons | MIT License |
services/hanke-service/src/main/kotlin/fi/hel/haitaton/hanke/HankealueEntity.kt | City-of-Helsinki | 300,534,352 | false | null | package fi.hel.haitaton.hanke
import fi.hel.haitaton.hanke.domain.HasId
import java.time.LocalDate
import javax.persistence.Entity
import javax.persistence.FetchType
import javax.persistence.GeneratedValue
import javax.persistence.GenerationType
import javax.persistence.Id
import javax.persistence.JoinColumn
import ja... | 6 | Kotlin | 5 | 2 | 970a4d9fb82acb48541e5fac9a357dd28cf39acc | 2,555 | haitaton-backend | MIT License |
ktor-io/js/src/io/ktor/utils/io/ConditionJS.kt | ktorio | 40,136,600 | false | null | package kotlinx.coroutines.io
import kotlin.coroutines.*
internal actual class Condition actual constructor(val predicate: () -> Boolean) {
private var cont: Continuation<Unit>? = null
actual fun check(): Boolean {
return predicate()
}
actual fun signal() {
val cont = cont
if... | 302 | null | 774 | 9,308 | 9244f9a4a406f3eca06dc05d9ca0f7d7ec74a314 | 752 | ktor | Apache License 2.0 |
app/src/main/java/io/github/sdwfqin/quickseed/di/AppModule.kt | sdwfqin | 119,345,649 | false | null | package io.github.sdwfqin.app_kt.di
import android.util.Log
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ApplicationComponent
import io.github.sdwfqin.app_kt.BuildConfig
import io.github.sdwfqin.app_kt.data.remote.WeatherService
import io.github.sdwfqin... | 1 | null | 166 | 850 | b4741e22d20b137342282219d41d2533b55d5b69 | 2,457 | AndroidQuick | Apache License 2.0 |
compiler/testData/codegen/box/inlineClasses/boxImplDoesNotExecuteInSecondaryConstructorGeneric.kt | JetBrains | 3,432,266 | false | null | // WITH_STDLIB
// WORKS_WHEN_VALUE_CLASS
// LANGUAGE: +ValueClasses, +GenericInlineClassParameter
OPTIONAL_JVM_INLINE_ANNOTATION
value class IC<T: Int> private constructor(val i: T) {
@Suppress("SECONDARY_CONSTRUCTOR_WITH_BODY_INSIDE_VALUE_CLASS")
constructor() : this(0 as T) {
counter += 1
}
}
va... | 34 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 543 | kotlin | Apache License 2.0 |
build-logic/convention/src/main/kotlin/AndroidLibraryComposeConventionPlugin.kt | kamerok | 192,063,678 | false | {"Kotlin": 200991} |
import com.android.build.gradle.LibraryExtension
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
class AndroidLibraryComposeConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
with(target) {
with(pluginManager) {
... | 0 | Kotlin | 0 | 4 | 55b69474c7cc421c084bba5896b31d38eee0bc24 | 662 | EasyDone | Apache License 2.0 |
netflix-graph/src/main/kotlin/uy/klutter/graph/netflix/internal/Building.kt | kohesive | 40,305,456 | false | null | package uy.klutter.graph.netflix.internal
import com.netflix.nfgraph.build.NFBuildGraph
import com.netflix.nfgraph.spec.NFGraphSpec
import com.netflix.nfgraph.spec.NFNodeSpec
import com.netflix.nfgraph.spec.NFPropertySpec
import uy.klutter.graph.netflix.*
import java.io.DataOutputStream
import java.io.OutputStream
c... | 1 | null | 8 | 142 | f93e32817aac31aa7b4b40ee6ed69c885b65e44f | 11,433 | klutter | MIT License |
Aulas/Aula_2023_03_03/Aula2_continuacao.kt | brlpdiniz | 615,543,194 | false | null | fun main(
print("Digite uma frase: ")
val texto = readLine()
println(text)
) | 0 | Kotlin | 0 | 1 | 51eddb2f15efd67e6795214fc857ac4a2f66e6cf | 88 | programacao-mobile-1 | MIT License |
medium/kotlin/c0169_338_counting-bits/00_leetcode_0169.kt | drunkwater | 127,843,545 | false | {"Text": 2, "Shell": 7, "Markdown": 3, "Perl": 12, "HTML": 3645, "C": 2246, "Java": 738, "Swift": 738, "Go": 738, "C#": 750, "Microsoft Visual Studio Solution": 4, "XML": 8, "Makefile": 1476, "Python": 1476, "Kotlin": 738, "Ruby": 738, "JavaScript": 738, "Scala": 738, "C++": 1484} | // DRUNKWATER TEMPLATE(add description and prototypes)
// Question Title and Description on leetcode.com
// Function Declaration and Function Prototypes on leetcode.com
//338. Counting Bits
//Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binar... | 1 | null | 1 | 1 | 8cc4a07763e71efbaedb523015f0c1eff2927f60 | 931 | leetcode | Ruby License |
codelabs/updating-ui/app/src/main/java/com/facebook/litho/codelab/RootComponentSpec.kt | facebook | 80,179,724 | false | null | /*
* Copyright 2019-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 88 | null | 765 | 7,703 | 8bde23649ae0b1c594b9bdfcb4668feb7d8a80c0 | 2,460 | litho | Apache License 2.0 |
app/src/main/java/com/demo/app/TextFragment.kt | czy1121 | 874,719,761 | false | {"Kotlin": 39557} | package com.demo.app
import android.content.res.Resources
import android.graphics.BlurMaskFilter
import android.graphics.Color
import android.graphics.Typeface
import android.os.Bundle
import android.text.method.LinkMovementMethod
import android.text.style.MaskFilterSpan
import android.view.View
import android.widget.... | 0 | Kotlin | 0 | 3 | dded0412663cca0a0ef2cf665d7f0d45655f4466 | 2,950 | span | Apache License 2.0 |
src/main/kotlin/net/fabricmc/example/items/Stable_creeper.kt | nikjust | 394,595,634 | false | null | package net.fabricmc.example.items
import net.fabricmc.fabric.api.item.v1.FabricItemSettings
import net.minecraft.entity.player.PlayerEntity
import net.minecraft.item.FoodComponent
import net.minecraft.item.Item
import net.minecraft.item.ItemGroup
import net.minecraft.item.ItemStack
import net.minecraft.util.Hand
impo... | 0 | Kotlin | 0 | 0 | 7519111c9087bf338101652f3f2251b0bf570208 | 843 | Rituality-fabric | Creative Commons Zero v1.0 Universal |
stream-video-android-ui-xml/src/main/kotlin/io/getstream/video/android/xml/widget/participant/internal/CallParticipantsListView.kt | GetStream | 505,572,267 | false | {"Kotlin": 2549850, "MDX": 279508, "Python": 18285, "Shell": 4455, "JavaScript": 1112, "PureBasic": 107} | /*
* Copyright (c) 2014-2023 Stream.io Inc. All rights reserved.
*
* Licensed under the Stream License;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://github.com/GetStream/stream-video-android/blob/main/LICENSE
*
* Unless required by ... | 3 | Kotlin | 30 | 308 | 1c67906e4c01e480ab180f30b39f341675bc147e | 5,237 | stream-video-android | FSF All Permissive License |
scripts/src/main/java/io/github/fate_grand_automata/scripts/models/battle/RunState.kt | Fate-Grand-Automata | 245,391,245 | false | null | package com.mathewsachin.fategrandautomata.scripts.models.battle
import kotlin.time.TimeSource
class RunState {
private val timestamp = TimeSource.Monotonic.markNow()
val runTime get() = timestamp.elapsedNow()
var totalTurns = 0
private set
var stage = -1
private set(value) {
... | 25 | null | 187 | 993 | eb630b8efcdb56782f796de2e17b36fdf9e19f3b | 823 | FGA | MIT License |
compiler/testData/codegen/bytecodeListing/tailcall/tailSuspendUnitFun.kt | JakeWharton | 99,388,807 | false | null | suspend fun empty() {}
suspend fun withoutReturn() { empty() }
suspend fun withReturn() { return empty() }
suspend fun notTailCall() { empty(); empty() }
suspend fun lambdaAsParameter(c: suspend ()->Unit) { c() }
suspend fun lambdaAsParameterNotTailCall(c: suspend ()->Unit) { c(); c() }
suspend fun lambdaAsParameterRet... | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 1,710 | kotlin | Apache License 2.0 |
src/main/java/org/samoxive/safetyjim/discord/DiscordBot.kt | SosiskaDBMG | 195,842,972 | true | {"Kotlin": 191650, "Python": 1253, "Dockerfile": 414} | package org.samoxive.safetyjim.discord
import com.uchuhimo.konf.Config
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import net.dv8tion.jda.core.EmbedBuilder
import net.dv8tion.jda.core.MessageBuilder
import net.dv8tion.jda.core.Permission
import net.dv8tion.jda... | 0 | Kotlin | 0 | 0 | c585de5f5b66f7d5275fed094076b593fddc72ed | 9,600 | SafetyJim | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.