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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
example/src/main/java/com/mitteloupe/randomgenktexample/data/model/flat/DivisionType.kt | EranBoudjnah | 154,015,466 | false | {"Kotlin": 252028, "Java": 1056} | package com.mitteloupe.randomgenktexample.data.model.flat
enum class DivisionType {
NONE,
HORIZONTAL,
VERTICAL
}
| 0 | Kotlin | 0 | 36 | c76069b9355da2c5fd5486363f0f5b5218460816 | 126 | RandomGenKt | MIT License |
src/main/kotlin/no/nav/personbruker/tms/innloggingsinfo/api/config/ApplicationContext.kt | navikt | 418,867,364 | false | null | package no.nav.personbruker.tms.innloggingsinfo.api.config
class ApplicationContext {
val environment = Environment()
}
| 0 | Kotlin | 0 | 0 | fc43d7abd0834a66ec8eec7c4124f41d6767c9e2 | 127 | tms-innloggingsinfo-api | MIT License |
src/kotlin/org/intellij/plugins/tickscript/psi/impl/TickScriptRegexLiteralMixin.kt | VladRassokhin | 97,291,445 | false | null | /*
* Copyright 2000-2017 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... | 1 | null | 2 | 3 | 8a494283b28fc1ccc70acfd8fd1d0cb3e2d4a6e2 | 2,311 | intellij-kapacitor | Apache License 2.0 |
library/src/main/kotlin/chat/tamtam/botsdk/model/request/Subscription.kt | Litemn | 175,861,105 | true | {"Kotlin": 109750} | package chat.tamtam.botsdk.model.request
import kotlinx.serialization.Optional
import kotlinx.serialization.Serializable
/**
* This class use when you want subscribe on [chat.tamtam.botsdk.model.response.Updates]
*
* @param url - WebHook not supported yet. Url which server will use when need send you new [chat.tam... | 0 | Kotlin | 0 | 0 | fcfc679cf672d4402651e3ffbb0bfaa6f2b99c69 | 535 | TamTamBotApiClientDsl | Apache License 2.0 |
app/src/main/java/com/example/movieappnahian/DetailsFragment.kt | nahian0 | 612,936,926 | false | null | package com.example.movieappnahian
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import com.bumptech.glide.Glide
import com.example.movieappnahian.databinding.Fragm... | 0 | Kotlin | 0 | 0 | ca5f0099cb22fafef150c84d5e3b3789e831c009 | 2,755 | MovieApp_Kotlin | MIT License |
app/src/main/java/com/hari/covid_19app/ui/item/ItemHeader.kt | HariKulhari06 | 268,235,652 | false | null | package com.hari.covid_19app.ui.item
import android.view.View
import androidx.annotation.StringRes
import com.hari.covid_19app.R
import com.hari.covid_19app.databinding.ItemHeaderBinding
import com.xwray.groupie.viewbinding.BindableItem
class ItemHeader(@StringRes private val titleRes: Int) : BindableItem<ItemHeaderB... | 1 | Kotlin | 37 | 133 | 477685e19f7b3c0df1c41f3b86884ef99eab0221 | 660 | Covid-19-Tracker | MIT License |
Frontend/app/src/main/java/com/kalabekov/frontend/client/Client.kt | tugarinzmey | 640,968,912 | false | null | package com.kalabekov.frontend.client
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
import java.io.Serializable
@Parcelize
data class Client(
val _id: String?,
val firstName: String,
val lastName: String,
val email: String,
val phone: String,
val status: String
) : Serializab... | 0 | Kotlin | 0 | 0 | c211282c0b04c19fe3657768e897ca56c173616b | 715 | GoatServicesKotlin | MIT License |
app/src/test/kotlin/com/fibelatti/pinboard/features/MainViewModelTest.kt | fibelatti | 165,537,939 | false | null | package com.fibelatti.pinboard.features
import com.fibelatti.pinboard.BaseViewModelTest
import com.fibelatti.pinboard.collectIn
import com.fibelatti.pinboard.runUnconfinedTest
import com.google.common.truth.Truth.assertThat
import io.mockk.mockk
import org.junit.jupiter.api.Test
internal class MainViewModelTest : Bas... | 5 | null | 10 | 95 | c6ff28fea78b4785ea02eace40f5811c83e8e14a | 2,805 | pinboard-kotlin | Apache License 2.0 |
app/src/main/java/com/deerangle/example/mvvm/data/model/epoxy/BookCardData.kt | ychenbrian | 702,226,183 | false | {"Kotlin": 26297, "Java": 222} | package com.deerangle.example.mvvm.data.model.epoxy
data class BookCardData(
val title: String?,
val author: String?,
val bookImage: String?,
val rank: String?,
)
| 0 | Kotlin | 0 | 0 | 177fe4176ace5afd6a8fe15826beb2c1975bbc34 | 180 | example-mvvm-android | Apache License 2.0 |
core/base/src/jvmCommonMain/kotlin/nl/adaptivity/xmlutil/core/impl/CharsequenceReader.kt | pdvrieze | 143,553,364 | false | null | /*
* Copyright (c) 2018.
*
* This file is part of XmlUtil.
*
* This file is licenced to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You should have received a copy of the license with the source distribution.
* Alternatively, y... | 35 | null | 31 | 378 | c4053519a8b6c90af9e1683a5fe0e9e2b2c0db79 | 2,810 | xmlutil | Apache License 2.0 |
debot/src/main/java/com/tomoima/debot/DebotDialog.kt | tomoima525 | 43,158,812 | false | null | package com.tomoima.debot
import android.content.DialogInterface
import android.os.Bundle
import androidx.annotation.VisibleForTesting
import androidx.fragment.app.FragmentActivity
import androidx.fragment.app.FragmentManager
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
imp... | 2 | Kotlin | 10 | 79 | a3105c95955ad4bf2c5be82a291e1971c6bf678a | 2,352 | debot | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/RankingStars.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.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 | 7,184 | icons | MIT License |
Chapter07/Journaler API/api/src/main/kotlin/com/journaler/api/reactor/TodosCountNotificationConsumer.kt | PacktPublishing | 102,436,360 | false | null | package com.journaler.api.reactor
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service
import reactor.bus.Event
@Service
class TodosCountNotificationConsumer : NotificationConsumer<TodosCountNotification> {
@Autowired
lateinit var service: TodosCountNoti... | 0 | Kotlin | 12 | 22 | 914a9d5d336e3563c3a12b6ad7b8e3321f3ec46d | 496 | Building-Applications-with-Spring-5-and-Kotlin | MIT License |
sample/android/src/main/java/co/nimblehq/kmm/template/ui/screens/home/HomeViewModel.kt | nimblehq | 662,848,235 | false | {"Kotlin": 26074, "Shell": 9344, "Ruby": 3299} | package co.nimblehq.kmm.template.ui.screens.home
import androidx.lifecycle.viewModelScope
import co.nimblehq.kmm.template.domain.usecases.UseCase
import co.nimblehq.kmm.template.ui.base.BaseViewModel
import co.nimblehq.kmm.template.ui.models.UiModel
import co.nimblehq.kmm.template.ui.models.toUiModel
import co.nimbleh... | 6 | Kotlin | 0 | 2 | 4e0c6d540b463970d4b29f0c1c2f7fbee7680de3 | 974 | kmm-templates | MIT License |
enquete/android/app/src/main/kotlin/com/example/enquete/MainActivity.kt | CriandoGames | 393,689,015 | false | {"Dart": 30586, "HTML": 3693, "Swift": 404, "Kotlin": 124, "Objective-C": 38} | package com.example.enquete
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 1 | 7714af92e828f8af92d99d3b7fc35e4028d7417d | 124 | Flutter-Enquete | MIT License |
coroutines/src/main/kotlin/br/com/devsrsouza/kotlinbukkitapi/coroutines/flow/EventFlow.kt | DevSrSouza | 123,673,532 | false | null | package br.com.devsrsouza.kotlinbukkitapi.flow
import br.com.devsrsouza.kotlinbukkitapi.extensions.event.*
import br.com.devsrsouza.kotlinbukkitapi.extensions.plugin.WithPlugin
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.channels.*
import kotlinx.coroutines.flow.*
import kotlinx.coroutines.launch
i... | 11 | Kotlin | 22 | 144 | 14874b92734a0273b4e7a748391a6e449bbaae1d | 2,843 | KotlinBukkitAPI | MIT License |
app/src/main/java/eu/kanade/domain/updates/interactor/GetUpdates.kt | AriaMoradi | 391,623,094 | true | {"Kotlin": 2487091} | package eu.kanade.domain.updates.interactor
import eu.kanade.domain.library.service.LibraryPreferences
import eu.kanade.domain.updates.model.UpdatesWithRelations
import eu.kanade.domain.updates.repository.UpdatesRepository
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.onEach
import java.util.Calen... | 0 | Kotlin | 0 | 1 | ba00d9e5d2c00b9cf415932bb2821bf9914fe248 | 863 | tachiyomi | Apache License 2.0 |
android/src/main/kotlin/net/jayson/flutter_ezviz/EzvizView.kt | jaysonjh | 204,406,157 | false | null | package net.jayson.flutter_ezviz
import android.content.Context
import android.view.View
import io.flutter.plugin.common.EventChannel
import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel
import io.flutter.plugin.common.PluginRegistry
import io.flutter.plugin.platform.PlatformView
im... | 0 | null | 1 | 1 | 3811f75eae809b32c0f921991feaf78d78c49256 | 4,739 | flutter_ezviz | Apache License 2.0 |
plot-core/src/jvmTest/kotlin/org/jetbrains/letsPlot/core/commons/data/SeriesUtilResolutionTest.kt | JetBrains | 176,771,727 | false | null | /*
* Copyright (c) 2023. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package jetbrains.datalore.plot.common.data
import jetbrains.datalore.plot.common.data.MeshGen.genGrid
import org.jetbrains.letsPlot.core.commons.data.SeriesUtil
import org.j... | 97 | Kotlin | 51 | 889 | c5c66ceddc839bec79b041c06677a6ad5f54e416 | 2,911 | lets-plot | MIT License |
app/src/main/java/com/battagliandrea/beerappandroid/ui/utils/FontSpan.kt | battagliandrea | 253,013,900 | false | null | package com.battagliandrea.beerappandroid.ui.utils
import android.graphics.Typeface
import android.text.TextPaint
import android.text.style.MetricAffectingSpan
open class FontSpan(private val font: Typeface?) : MetricAffectingSpan() {
companion object {
const val WRONG_TYPEFACE = 0
}
override fu... | 0 | Kotlin | 0 | 0 | e2fca8b8994f4d4c7c224414e10a761933bf9e5c | 729 | BeerAppAndroid | Apache License 2.0 |
app/src/main/kotlin/com/quittle/a11yally/preferences/PreferenceProviderBooleanMember.kt | quittle | 135,217,260 | false | null | package com.quittle.a11yally.preferences
import android.content.Context
import android.content.SharedPreferences
internal class PreferenceProviderBooleanMember(
context: Context,
prefKeyId: Int,
defaultValue: Boolean = false
) :
PreferenceProviderMember<Boolean>(
context, prefKeyId, defaultVal... | 48 | Kotlin | 4 | 22 | b277dda83087b12774198ec8372914278088da3a | 406 | a11y-ally | Apache License 2.0 |
src/main/kotlin/io/github/vivanov93/wikipedia/dumps/parser/sql/Categories.kt | vivanov1993 | 183,777,187 | false | null | package io.github.vivanov93.wikipedia.dumps.parser.sql
import io.github.vivanov93.wikipedia.dumps.parser.common.CloseableIterator
import java.io.BufferedReader
import java.io.File
import java.util.*
/**
* Wiki category from dumps named like ruwiki-latest-category.sql
*
* Table is created by script:
*
* CREATE TA... | 0 | Kotlin | 0 | 0 | 09f2b78d76101c8b21181e83d5acc812644bb114 | 3,996 | wikipedia-dump-parser | Apache License 2.0 |
io/src/iosMain/kotlin/app/meetacy/sdk/io/NSError.kt | meetacy | 604,657,616 | false | {"Kotlin": 291693, "Swift": 9285, "HTML": 129, "JavaScript": 114} | @file:OptIn(ExperimentalForeignApi::class)
package app.meetacy.sdk.io
import kotlinx.cinterop.*
import platform.Foundation.NSError
import kotlinx.cinterop.ExperimentalForeignApi
public inline fun <T> MemScope.runCatching(block: (ObjCObjectVar<NSError?>) -> T): IosResult<T> {
val error = alloc<ObjCObjectVar<NSErr... | 6 | Kotlin | 1 | 29 | 5aa835f4e2524bca6ec82604b764fefe40a6ab03 | 716 | sdk | MIT License |
composeApp/src/androidMain/kotlin/com/dee/themovie/component/MovieItemView.kt | deeheinhtet | 776,096,363 | false | {"Kotlin": 98395, "Swift": 15749} | package com.dee.themovie.component
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout... | 0 | Kotlin | 5 | 44 | 460fa93dae6162332280c1a515e2875a6efbf599 | 2,501 | TheMovie | MIT License |
features/media/list/src/main/java/ir/mehdiyari/krypt/mediaList/data/FalleryBuilderProvider.kt | mehdiyari | 459,064,107 | false | {"Kotlin": 470699, "Java": 87170} | package ir.mehdiyari.krypt.mediaList.data
import android.content.Context
import android.content.Intent
import android.content.Intent.FLAG_ACTIVITY_NEW_TASK
import androidx.core.content.ContextCompat
import dagger.hilt.android.qualifiers.ApplicationContext
import ir.mehdiyari.fallery.imageLoader.FalleryImageLoader
impo... | 17 | Kotlin | 1 | 3 | e25bd222787ed7312ca4f0f78974fdee5d3148e0 | 3,611 | krypt | Apache License 2.0 |
base/src/main/java/com/ng/base/utils/ViewUtils.kt | jiangzhengnan | 461,363,304 | false | {"Java": 1266106, "Kotlin": 298036, "CSS": 85875} | package com.ng.ngbaselib.utils
import android.content.Context
import android.content.res.Resources
import android.util.TypedValue
/**
* 描述:
* @author Jzn
* @date 2020/6/20
*/
object ViewUtils {
fun dpToPx(v: Float): Int {
val resource = Resources.getSystem()
return TypedValue.applyDimension(Ty... | 0 | Java | 4 | 23 | 58fe2721a7a2c04c5a8e0356248c1520200c526d | 614 | NgLeetCode | Apache License 2.0 |
base/src/main/java/com/ng/base/utils/ViewUtils.kt | jiangzhengnan | 461,363,304 | false | {"Java": 1266106, "Kotlin": 298036, "CSS": 85875} | package com.ng.ngbaselib.utils
import android.content.Context
import android.content.res.Resources
import android.util.TypedValue
/**
* 描述:
* @author Jzn
* @date 2020/6/20
*/
object ViewUtils {
fun dpToPx(v: Float): Int {
val resource = Resources.getSystem()
return TypedValue.applyDimension(Ty... | 0 | Java | 4 | 23 | 58fe2721a7a2c04c5a8e0356248c1520200c526d | 614 | NgLeetCode | Apache License 2.0 |
compiler/fir/analysis-tests/testData/resolve/fakeRecursiveTypealias.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | import <!UNRESOLVED_IMPORT!>incorrect<!>.directory.Your
typealias My = <!UNRESOLVED_REFERENCE!>incorrect<!>.directory.My
typealias Your = <!RECURSIVE_TYPEALIAS_EXPANSION!>Your<!>
| 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 181 | kotlin | Apache License 2.0 |
core/src/main/kotlin/games/august/byteme/Main.kt | August-Games | 739,160,453 | false | {"Kotlin": 40224} | package games.august.byteme
import games.august.byteme.common.ByteOrder
import games.august.byteme.common.Endian
import games.august.byteme.common.Transformation
import games.august.byteme.write.WriteByteArrayDsl.writeByteArray
fun main() {
val bytes1: ByteArray = writeByteArray {
put1(100)
putByt... | 1 | Kotlin | 0 | 1 | 1538cef867babde8bcab3ae40f5d4028a05e4db1 | 1,477 | byteme | Apache License 2.0 |
common/src/commonMain/kotlin/es/guillermoorellana/keynotedex/datasource/responses/SignInResponse.kt | wiyarmir | 116,376,394 | false | null | package es.guillermoorellana.keynotedex.datasource.responses
import kotlinx.serialization.Serializable
@Serializable
data class SignInResponse(val jwtToken: String)
| 6 | Kotlin | 3 | 51 | ec6d7e50d5c7285e6d26f06caaca03a279af38c6 | 167 | keynotedex | Apache License 2.0 |
src/main/kotlin/de/oschwald/mofilegpttranslator/controller/UploadController.kt | robertoschwald | 625,474,182 | false | null | package de.oschwald.mofilegpttranslator.controller
import de.oschwald.mofilegpttranslator.services.TranslationService
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.stereotype.Controller
import org.springframework.ui.Model
import org.springframework.web.bind.annotation.GetMapping
imp... | 0 | Kotlin | 0 | 0 | abbc6075c5a5dcbf2de25cb53d415d44a90dd780 | 1,757 | po-file-gpt-translator | Apache License 2.0 |
compose/src/main/java/com/kizitonwose/calendar/compose/CalendarMonths.kt | kizitonwose | 182,417,603 | false | {"Kotlin": 670112, "HTML": 343, "CSS": 102} | package com.kizitonwose.calendar.compose
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.BoxScope
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.foundation.layout.Row
import androidx.compose.foundati... | 13 | Kotlin | 505 | 4,651 | 36de800a6c36a8f142f6432a0992e0ea4ae8a789 | 3,949 | Calendar | MIT License |
09-Android/app/src/main/java/com/saehyun/a09_android/remote/RcProductRvAdapter.kt | 09-Project | 400,092,415 | false | null | package com.saehyun.a09_android.remote
import android.content.Context
import android.content.Intent
import android.media.Image
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.constraintlayout.widget... | 0 | Kotlin | 1 | 3 | 58ba1108eb54eee94fb9c52b64341e2b03903507 | 3,816 | 09-Android | MIT License |
src/main/kotlin/ru/rosmolodez/onboarding/tea/SimpleEffectHandler.kt | mmoschenskikh | 603,213,304 | false | null | package ru.rosmolodez.onboarding.tea
abstract class SimpleEffectHandler<Eff : Any, Msg : Any> : EffectHandler<Eff, Msg> {
private val effCancelables = mutableListOf<Cancelable>()
private var listener: ((Msg) -> Unit)? = null
final override fun cancel() {
effCancelables.forEach { it.cancel() }
... | 0 | Kotlin | 0 | 0 | 39e50fed0f5d67b1e1cb53efa623ad3375170e9e | 650 | onboarding | MIT License |
platform/platform-impl/src/com/intellij/openapi/application/JBProtocolCommand.kt | pamikola | 10,377,361 | 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:Suppress("ReplacePutWithAssignment", "ReplaceGetOrSet")
package com.intellij.openapi.application
import com.intellij.diagnostic.PluginException
import com.intellij.ide.IdeBundle
import com.in... | 1 | null | 1 | 1 | 839c8173ca942efd3da9f1190eac3de30f875f8c | 3,413 | intellij-community | Apache License 2.0 |
http4k-client/fuel/src/main/kotlin/org/http4k/client/Fuel.kt | http4k | 86,003,479 | false | null | package org.http4k.client
import com.github.kittinunf.fuel.core.FuelError
import com.github.kittinunf.fuel.core.Method
import com.github.kittinunf.fuel.core.ResponseResultOf
import org.http4k.core.BodyMode
import org.http4k.core.BodyMode.Memory
import org.http4k.core.BodyMode.Stream
import org.http4k.core.Parameters
i... | 34 | null | 249 | 2,615 | 7ad276aa9c48552a115a59178839477f34d486b1 | 2,917 | http4k | Apache License 2.0 |
idea/src/org/jetbrains/kotlin/idea/actions/internal/refactoringTesting/FileSystemChangesTracker.kt | android | 263,405,600 | false | null | /*
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.actions.internal.refactoringTesting
import com.intellij.openapi.Disposable
... | 0 | null | 37 | 316 | 74126637a097f5e6b099a7b7a4263468ecfda144 | 1,716 | kotlin | Apache License 2.0 |
backend/src/main/kotlin/uk/gov/justice/digital/backend/DomainBuilderBackend.kt | ministryofjustice | 620,391,775 | false | null | package uk.gov.justice.digital
import io.micronaut.runtime.Micronaut
object DomainBuilderBackend {
@JvmStatic
fun main(args: Array<String>) {
Micronaut.build(*args)
.mainClass(DomainBuilderBackend::class.java)
.environmentPropertySource(true)
.environmentVariableIn... | 2 | Kotlin | 1 | 2 | 11f4737c5b5f16fc80b52c9690874679dd6567ef | 546 | digital-prison-reporting-domain-builder | MIT License |
《第一行代码——Android(第3版)》随书资源/源码/第11章/NetworkTest/app/src/main/java/com/example/networktest/HttpCallbackListener.kt | Workaholic-Lab | 298,015,933 | false | {"Kotlin": 418971, "C++": 159092, "Makefile": 31044, "Java": 4576, "HTML": 2236, "QMake": 753, "C": 263} | package com.example.networktest
interface HttpCallbackListener {
fun onFinish(response: String)
fun onError(e: Exception)
} | 0 | Kotlin | 0 | 1 | 55220c5c71cbce5b398c4b6c0aacacaa5e94c4e4 | 132 | Android-Kotlin-startup | Apache License 2.0 |
app/src/main/java/mil/nga/msi/geopackage/export/definition/PortDefinition.kt | ngageoint | 588,211,646 | false | {"Kotlin": 1877953} | package mil.nga.msi.geopackage.export.definition
import mil.nga.geopackage.db.GeoPackageDataType
import mil.nga.geopackage.extension.nga.style.FeatureTableStyles
import mil.nga.geopackage.extension.nga.style.StyleRow
import mil.nga.mgrs.MGRS
import mil.nga.msi.datasource.DataSource
import mil.nga.msi.datasource.port.P... | 0 | Kotlin | 0 | 0 | a7288e3f64f5d070e332eb787af9818ede0122fc | 17,769 | marlin-android | MIT License |
app/src/main/java/com/gmribas/desafioverity/presentation/screens/userlist/UserItem.kt | gmribas | 655,080,888 | false | null | package com.gmribas.desafioverity.presentation.screens.userlist
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.com... | 0 | Kotlin | 0 | 0 | f909b720a8d1f463f40a6b2000946f41ab22423c | 2,136 | DesafioVerity | Apache License 2.0 |
app/src/main/java/com/example/cheapac/domain/use_case/GetWishlistByCategoryUseCase.kt | mtndrms | 715,470,930 | false | {"Kotlin": 240118} | package com.example.cheapac.domain.use_case
import com.example.cheapac.data.repository.WishlistRepository
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import javax.inject.Inject
class GetWishlistByCategoryUseCase @Inject constructor(private val wishlistRepository: WishlistRepository) {
... | 0 | Kotlin | 0 | 0 | 58ee9a2030eaca38109e99a95f17077cb6e8f1a9 | 588 | cheapac | The Unlicense |
app/src/main/java/com/phicdy/billingsample2/MainViewModel.kt | phicdy | 546,471,628 | false | null | package com.phicdy.billingsample2
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import com.android.billingclient.api.BillingResult
import com.android.billingclient.api.ProductDetails
import com.androi... | 0 | Kotlin | 0 | 0 | af5a387c6a6532fa254a996b68e33e06a0cc89d3 | 3,827 | BillingSample | Apache License 2.0 |
data/src/test/java/com/grishko188/data/categories/dao/CategoriesDaoInstrumentedTest.kt | grishko188 | 574,075,114 | false | null | package com.grishko188.data.categories.dao
import android.graphics.Color
import com.grishko188.data.features.categories.dao.CategoriesDao
import com.grishko188.data.features.categories.model.CategoryEntity
import dagger.hilt.android.testing.HiltAndroidRule
import dagger.hilt.android.testing.HiltAndroidTest
import dagg... | 0 | null | 3 | 55 | 599037f8a2aee0696cd20609eaf734d75e9af1ba | 5,674 | Points-of-interest | Apache License 2.0 |
ui-view/src/main/java/cl/tiocomegfas/lib/uiview/recyclerview/adapter/Adapter.kt | TioComeGfas | 708,796,414 | false | {"Kotlin": 146161} | package cl.tiocomegfas.lib.uiview.recyclerview.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.viewbinding.ViewBinding
interface Adapter<VB: ViewBinding, Item: AdapterItem> {
fun onCreateBinding(inflater: LayoutInflater, parent: ViewGroup): VB
fun onDrawItem(binding: V... | 0 | Kotlin | 0 | 0 | 9b923b3f013f2fd19df45659c340caf361387c0a | 624 | Android-Libraries | Apache License 2.0 |
z2-kotlin-plugin/src/hu/simplexion/z2/kotlin/ir/schematic/globals.kt | spxbhuhb | 665,463,766 | false | {"Kotlin": 1353484, "CSS": 126893, "Java": 7121, "HTML": 1560, "JavaScript": 975} | /*
* Copyright © 2022-2023, Simplexion, Hungary and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package hu.simplexion.z2.kotlin.ir.schematic
const val RUNTIME_PACKAGE = "hu.simplexion.z2.schematic"
const val SCHEMATIC_CLASS = "Schematic"
const val FIELD_DEFINITION_FUNCTION_CLASS ... | 6 | Kotlin | 0 | 1 | dc9927d64bde9722060961c2d58e499fb5c6c29f | 2,575 | z2 | Apache License 2.0 |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/synthetics/CfnGroup.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.synthetics
import io.cloudshiftdev.awscdk.CfnResource
import io.cloudshiftdev.awscdk.CfnTag
import io... | 4 | null | 0 | 4 | eb3eef728b34da593a3e55dc423d4f5fa3668e9c | 9,905 | kotlin-cdk-wrapper | Apache License 2.0 |
library/src/main/kotlin/de/eternalwings/focus/storage/data/Perspective.kt | kumpelblase2 | 259,880,502 | false | null | package de.eternalwings.focus.storage.data
import de.eternalwings.focus.storage.plist.PlistObject
import java.time.ZonedDateTime
data class Perspective(
override val id: String,
override val added: ZonedDateTime?,
override val order: Long?,
val content: PlistObject<*>?
// TODO missing icon attachm... | 1 | Kotlin | 0 | 5 | 80ed810a66a954739219ac73af3d1e626f55c58c | 697 | focus | Apache License 2.0 |
dialog/src/main/java/com/angcyo/dialog/dslitem/DslDialogIconTextItem.kt | angcyo | 229,037,615 | false | {"Kotlin": 6722659, "JavaScript": 5194} | package com.angcyo.dialog.dslitem
import android.graphics.drawable.Drawable
import android.view.View
import com.angcyo.dialog.R
import com.angcyo.dsladapter.DslAdapterItem
import com.angcyo.library.ex._color
import com.angcyo.library.ex.setTintList
import com.angcyo.widget.DslViewHolder
import com.angcyo.widget.base.c... | 0 | Kotlin | 6 | 5 | 10ad5753c3ff675d7f7513db5d98665bcf6f7418 | 2,588 | UICore | MIT License |
flavor-server-list/src/main/java/com/mukul/jan/primer/flavor/server/list/RootEntry.kt | Mukuljangir372 | 600,396,968 | false | null | package com.mukul.jan.primer.flavor.server.list
import android.app.Activity
import android.content.Intent
class RootEntry(private val activity: Activity) {
fun enter() {
val intent = Intent(activity, FlavorActivity::class.java)
activity.startActivity(intent)
}
} | 0 | Kotlin | 4 | 8 | 5135cc81e1bca2c380460694779d5c343de4ea18 | 288 | Primer-Android | Apache License 2.0 |
http4k-incubator/src/main/kotlin/org/http4k/lens/HasLens.kt | http4k | 86,003,479 | false | null | package org.http4k.lens
import org.http4k.core.with
import org.http4k.format.AutoMarshalling
import org.http4k.lens.ParamMeta.ObjectParam
import kotlin.reflect.KClass
/**
* Experimental superclass companion objects to provide a lens for a class.
*
* Access the lens using Class.lens
*/
abstract class HasLens<T : A... | 34 | null | 249 | 2,615 | 7ad276aa9c48552a115a59178839477f34d486b1 | 986 | http4k | Apache License 2.0 |
http4k-incubator/src/main/kotlin/org/http4k/lens/HasLens.kt | http4k | 86,003,479 | false | null | package org.http4k.lens
import org.http4k.core.with
import org.http4k.format.AutoMarshalling
import org.http4k.lens.ParamMeta.ObjectParam
import kotlin.reflect.KClass
/**
* Experimental superclass companion objects to provide a lens for a class.
*
* Access the lens using Class.lens
*/
abstract class HasLens<T : A... | 34 | null | 249 | 2,615 | 7ad276aa9c48552a115a59178839477f34d486b1 | 986 | http4k | Apache License 2.0 |
mynlp/src/main/java/com/mayabot/nlp/perceptron/ConvertHanlpModel.kt | mayabot | 113,726,044 | false | null | package com.mayabot.nlp.perceptron
import com.mayabot.nlp.collection.dat.DoubleArrayTrie
import java.io.DataInputStream
import java.io.File
/**
* 转换hanlp lager/cws.bin里面的信息为mynlp的自定义格式
* 从里面提取出来的features.txt 是 key 和 id的键值对
* parameter.bin是每个id对应的BMES参数,第一行是数组总大小
*
* 在LinearModel加载是,发现tagLabel=4的时候,
* 访问featureM... | 18 | null | 90 | 668 | b980da3a6f9cdcb83e0800f6cab50656df94a22a | 2,267 | mynlp | MIT License |
backend/src/main/kotlin/com/github/davinkevin/podcastserver/cover/CoverRepositoryV2.kt | krystopher4400 | 262,683,500 | true | {"HTML": 17233800, "Kotlin": 993725, "TypeScript": 162745, "JavaScript": 97270, "CSS": 26945, "Shell": 7166, "Dockerfile": 4456, "Smarty": 328} | package com.github.davinkevin.podcastserver.cover
import com.github.davinkevin.podcastserver.cover.DeleteCoverInformation.ItemInformation
import com.github.davinkevin.podcastserver.cover.DeleteCoverInformation.PodcastInformation
import com.github.davinkevin.podcastserver.database.Tables.ITEM
import com.github.davinkev... | 0 | null | 0 | 0 | 66351d2956bf0dab931e877d89a4828b98e029ad | 2,757 | Podcast-Server | Apache License 2.0 |
app/src/main/java/de/msdevs/einschlafhilfe/utils/NetworkUtils.kt | DonMarv00 | 171,038,644 | false | null | package de.msdevs.einschlafhilfe.utils
import android.content.Context
import android.net.ConnectivityManager
class NetworkUtils {
public fun isConnected(context : Context) : Boolean{
val currentNetwork = context.getSystemService(ConnectivityManager::class.java).activeNetwork
return currentNetwork... | 2 | null | 2 | 4 | 47e6f2766873d243150169b3fdc87e754281d552 | 337 | DieDreiFragezeichenEinschlafhilfe | MIT License |
presentation/src/main/java/com/tristaam/presentation/ui/home/TaskAdapter.kt | TrisTaam | 810,636,912 | false | {"Kotlin": 51097} | package com.tristaam.presentation.ui.home
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.tristaam.data.model.Task
import com.tristaam.data.model.TaskP... | 0 | Kotlin | 0 | 0 | 2436fcc954150b27816f531700f882bd39f677cf | 4,183 | ToDo-List | MIT License |
src/commonMain/kotlin/ehn/techiop/hcert/kotlin/chain/CborService.kt | asit-fdraschbacher | 373,781,190 | true | {"Kotlin": 195978, "HTML": 3567, "JavaScript": 1308} | package ehn.techiop.hcert.kotlin.chain
import ehn.techiop.hcert.kotlin.data.GreenCertificate
/**
* Encodes/decodes input as a CBOR structure
*/
interface CborService {
fun encode(input: GreenCertificate): ByteArray
fun decode(input: ByteArray, verificationResult: VerificationResult): GreenCertificate?
}
| 0 | null | 0 | 0 | f347dc143010e5299765551df41bc4228ad728d2 | 320 | hcert-kotlin | Apache License 2.0 |
app/src/main/java/com/commit451/gitlab/event/BuildChangedEvent.kt | Commit451 | 39,787,724 | false | null | package com.commit451.gitlab.event
import com.commit451.gitlab.model.api.Build
/**
* A build changed
*/
class BuildChangedEvent(val build: Build)
| 6 | Kotlin | 27 | 248 | 504b5311c00ac2b87ba728d74925c6f46e6c5781 | 150 | LabCoat | Apache License 2.0 |
leetcode/src/offer/middle/Offer32_1.kt | zhangweizhe | 387,808,774 | false | null | package offer.middle
import linkedlist.TreeNode
import java.util.*
import kotlin.collections.ArrayList
fun main() {
// 剑指 Offer 32 - I. 从上到下打印二叉树
// https://leetcode.cn/problems/cong-shang-dao-xia-da-yin-er-cha-shu-lcof/
}
private fun levelOrder(root: TreeNode?): IntArray {
if (root == null) {
r... | 0 | Kotlin | 0 | 0 | 86d3414a84cc43054f13f6be9b1b3e66c184a246 | 883 | kotlin-study | MIT License |
models/src/main/java/dev/zacsweers/jsonserialization/models/moshiKotlinReflective/KRResponse.kt | cbeyls | 544,563,380 | true | {"INI": 1, "Markdown": 8, "YAML": 2, "Text": 1, "Gradle": 5, "Shell": 2, "Batchfile": 1, "Ignore List": 1, "XML": 1, "Kotlin": 21, "Java": 16, "JSON": 9, "Java Properties": 1} | package dev.zacsweers.jsonserialization.models.moshiKotlinReflective
import com.squareup.moshi.Json
data class KRResponse(
val users: List<KRUser>,
val status: String,
@Json(name = "is_real_json")
val isRealJson: Boolean
)
| 5 | Java | 23 | 6 | c76cfc2b5172754a8793bfd0f6142d64599312cc | 241 | json-serialization-benchmarking | Apache License 2.0 |
app/src/main/java/me/arunsharma/devupdates/utils/cache/FeedUtils.kt | DroidNinja | 264,527,317 | false | null | package me.arunsharma.devupdates.utils.cache
import com.dev.services.api.models.DataSource
import me.arunsharma.devupdates.R
object FeedUtils {
fun getDrawable(type: DataSource): Int {
return when (type) {
DataSource.GITHUB -> {
R.drawable.ic_github
}
Da... | 11 | null | 2 | 8 | 314fe81bad047f862749030e50034de7c8bf7cb1 | 489 | DevUpdates | Apache License 2.0 |
app/src/main/java/com/example/weather/ui/viewmodel/WeatherViewModel.kt | Pavan121 | 390,347,762 | false | null | package com.example.weather.ui.viewmodel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.liveData
import com.example.weather.api.repository.WeatherRepository
import com.example.weather.utils.Resource
import kotlinx.coroutines.Dispatchers
import java.lang.Exception
class WeatherViewModel(private val weat... | 0 | Kotlin | 0 | 0 | aa4efc374cb7d512d694b714a28e07d084216a51 | 754 | weatherApp | Apache License 2.0 |
slideshow/src/main/java/com/ndhzs/slideshow/viewpager/transformer2/ForegroundToBackgroundTransformer.kt | 985892345 | 371,737,299 | false | null | /*
* Copyright 2014 <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 ... | 0 | Kotlin | 0 | 3 | aeb8556932fdab1864b98259475456f754c64794 | 1,206 | SlideShow | Apache License 2.0 |
core/src/com/sergey/spacegame/common/io/PathFileHandle.kt | SergeySave | 88,623,560 | false | {"Java": 243814, "Kotlin": 180384, "Lua": 12948, "GLSL": 696, "Shell": 88} | package com.sergey.spacegame.common.io
import com.badlogic.gdx.Files
import com.badlogic.gdx.files.FileHandle
import java.io.BufferedInputStream
import java.io.BufferedReader
import java.io.File
import java.io.FileFilter
import java.io.FilenameFilter
import java.io.InputStream
import java.io.OutputStream
import java.i... | 1 | Java | 1 | 2 | b3a73ac904e379cfc038fa04e5f8042855398c66 | 6,323 | SpaceGame | MIT License |
{{cookiecutter.repo_name}}/app/src/main/java/db/entities/Post.kt | cong91 | 140,465,417 | false | {"Kotlin": 60134, "Python": 3301} | package {{ cookiecutter.package_name }}.db.entities
import android.arch.persistence.room.Entity
import android.arch.persistence.room.PrimaryKey
/**
* Class which provides a model for post
* @constructor Sets all properties of the post
* @property userId the unique identifier of the author of the post
* @property ... | 0 | Kotlin | 1 | 2 | b080f4a11bff3029ba18f0ba390496d3bbb266e1 | 594 | Kotlin_Android_MVVM_BolierPlate | MIT License |
subprojects/gradle/module-api-extraction/src/main/kotlin/com/avito/module_api_extraction/ModuleApiExtractionTask.kt | avito-tech | 230,265,582 | false | null | package com.avito.module_api_extraction
import org.gradle.api.DefaultTask
import org.gradle.api.file.ConfigurableFileCollection
import org.gradle.api.file.DirectoryProperty
import org.gradle.api.provider.ListProperty
import org.gradle.api.tasks.CacheableTask
import org.gradle.api.tasks.Input
import org.gradle.api.task... | 10 | null | 50 | 414 | 4dc43d73134301c36793e49289305768e68e645b | 1,101 | avito-android | MIT License |
src/2/2475.kt | WhiteKr | 408,140,568 | false | null | /**
* 2475. 검증수
*
* 작성자: whitekr
* 언어: Kotlin (JVM)
* 사용 메모리: 13,208 KB
* 소요 시간: 140 ms
* 해결 날짜: 2021년 9월 14일
*/
import java.util.*
fun main() = with(Scanner(System.`in`)) {
var result = 0
for (i in 0 until 5) {
val n: Int = nextInt()
result += n * n
}
print(result % 10)
} | 5 | Kotlin | 0 | 1 | 913fcc9f293c62a1b4e67bccb075820578e097ea | 315 | Baekjoon-grass | MIT License |
csstype-kotlin/src/jsMain/kotlin/web/cssom/BorderTopWidth.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6272741} | // Automatically generated - do not modify!
package web.cssom
typealias BorderTopWidth = LineWidthProperty
| 0 | Kotlin | 8 | 36 | 95b065622a9445caf058ad2581f4c91f9e2b0d91 | 109 | types-kotlin | Apache License 2.0 |
features/game/src/main/java/io/github/japskiddin/sudoku/feature/main/SudokuGenerator.kt | Japskiddin | 766,410,608 | false | {"Kotlin": 42243} | package io.github.japskiddin.sudoku.feature.main
import kotlin.math.floor
import kotlin.math.sqrt
internal class SudokuGenerator(
private val size: Int,
private val missingDigits: Int,
) {
private val items = Array(size) { IntArray(size) }
private val squareRootOfSize = sqrt(size.toDouble()).toInt()
... | 0 | Kotlin | 0 | 0 | 0407277d6da7afb679b3f69d7ffcf4d9eecdcbd7 | 3,723 | SudokuGame | Apache License 2.0 |
app/src/main/java/fr/forum_thalie/tsumugi/playerstore/PlayerStore.kt | jppcel | 232,852,912 | true | {"Kotlin": 144417} | package fr.forum_thalie.tsumugi.playerstore
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.support.v4.media.session.PlaybackStateCompat
import android.util.Log
import androidx.lifecycle.MutableLiveData
import fr.forum_thalie.tsumugi.*
class PlayerSto... | 0 | null | 0 | 0 | 8318bf1bc64ee77dcc1d3206d0986a4642af78a0 | 2,998 | webradio-app | MIT License |
src/main/kotlin/com/n9mtq4/eventsystem/usertext/ui/impl/UIScanner.kt | n9Mtq4 | 117,906,552 | false | null | package com.n9mtq4.eventsystem.usertext.ui.impl
import com.n9mtq4.eventsystem.usertext.events.PrintEvent
import com.n9mtq4.eventsystem.usertext.events.UserTextEvent
import com.n9mtq4.eventsystem.usertext.ui.SimpleEventSystemUI
import com.n9mtq4.eventsystem.usertext.utils.Colour
import java.io.Console
import java.util.... | 0 | Kotlin | 0 | 0 | ff9d37dce3daf3ceb760da987c6f7a6bb99fefb2 | 2,938 | EventSystem | MIT License |
src/main/kotlin/com/n9mtq4/eventsystem/usertext/ui/impl/UIScanner.kt | n9Mtq4 | 117,906,552 | false | null | package com.n9mtq4.eventsystem.usertext.ui.impl
import com.n9mtq4.eventsystem.usertext.events.PrintEvent
import com.n9mtq4.eventsystem.usertext.events.UserTextEvent
import com.n9mtq4.eventsystem.usertext.ui.SimpleEventSystemUI
import com.n9mtq4.eventsystem.usertext.utils.Colour
import java.io.Console
import java.util.... | 0 | Kotlin | 0 | 0 | ff9d37dce3daf3ceb760da987c6f7a6bb99fefb2 | 2,938 | EventSystem | MIT License |
data/src/main/java/com/edwin/randompicture/data/repository/photo/PhotoDataStore.kt | EdwinRomelta | 154,439,136 | false | null | package com.edwin.randompicture.data.repository.photo
import com.edwin.randompicture.data.model.PhotoEntity
import io.reactivex.Single
interface PhotoDataStore {
fun savePhoto(photoEntity: PhotoEntity): Single<PhotoEntity>
} | 1 | Kotlin | 1 | 2 | 4ec4eff34efe189cc8db49907de7fc92ad11e929 | 231 | random-picture-android | MIT License |
ledger/src/main/kotlin/org/knowledger/ledger/config/chainid/SAChainIdStorageAdapter.kt | fakecoinbase | 282,563,487 | false | null | package org.knowledger.ledger.config.chainid
import org.knowledger.ledger.adapters.cacheStore
import org.knowledger.ledger.adapters.cachedLoad
import org.knowledger.ledger.crypto.Hash
import org.knowledger.ledger.database.ManagedSession
import org.knowledger.ledger.database.StorageElement
import org.knowledger.ledger.... | 0 | Kotlin | 0 | 0 | 8bc64987e1ab4d26663064da06393de6befc30ae | 1,178 | SeriyinslashKnowLedger | MIT License |
plugins/gradle/src/org/jetbrains/plugins/gradle/util/GradleJvmComboBoxUtil.kt | wwjiang007 | 125,151,656 | false | null | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
@file:JvmName("GradleJvmComboBoxUtil")
@file:ApiStatus.Internal
package org.jetbrains.plugins.gradle.util
import com.intellij.openapi.externalSystem.service.execution.ExternalSy... | 1 | null | 1 | 1 | 3c242292801d1c58e02cf0cb1a2eb5fb024be3ac | 3,212 | intellij-community | Apache License 2.0 |
MediaButton/src/main/kotlin/kim/uno/sample/mediabutton/MainActivity.kt | rubythonode | 80,263,440 | false | {"Gradle": 11, "Java Properties": 2, "Shell": 1, "Ignore List": 9, "Batchfile": 1, "Markdown": 4, "Proguard": 9, "Java": 29, "XML": 101, "Kotlin": 36} | package kim.uno.sample.mediabutton
import android.content.ComponentName
import android.content.Context
import android.media.AudioManager
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
... | 1 | null | 1 | 1 | 6f5ee0d9e106cbc53f9a1a6579af61b6bb04394d | 603 | UnoBase | Apache License 2.0 |
app/src/main/java/com/example/covid_19statistics/common/Base.kt | mamad2050 | 453,816,547 | false | {"Kotlin": 85049, "Java": 9701} | package com.example.covid_19statistics.common
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.app.AppCompatActivity
import androidx.coordinatorlayout.widget.CoordinatorLayout
import androidx.core.view.children
import and... | 0 | Kotlin | 0 | 0 | c3bb077856bbde7bb18866eaac4a941a54b6c6e7 | 3,604 | Covid-19-Statistics | MIT License |
src/main/kotlin/ru/spbstu/diagrams/GraphicsUtil.kt | vorpal-research | 182,095,791 | false | null | package ru.spbstu.diagrams
import java.awt.Color
import java.awt.Dimension
import java.awt.Graphics2D
import java.awt.geom.Ellipse2D
import kotlin.math.ceil
interface Drawable {
fun getSize(): Dimension
fun draw(g: Graphics2D)
}
inline fun Graphics2D.withOtherColor(c: Color, body: () -> Unit) {
val tmp ... | 1 | Kotlin | 0 | 0 | 0cdebc7d36a41f68623395274ec14b321abb6c7d | 604 | simple-diagrammer | MIT License |
onnx/src/jvmTest/kotlin/org/jetbrains/kotlinx/dl/onnx/summary/OnnxModelsSummaryTests.kt | Kotlin | 249,948,572 | false | {"Kotlin": 1599075, "Jupyter Notebook": 50439} | package org.jetbrains.kotlinx.dl.onnx.summary
import ai.onnxruntime.OnnxJavaType
import org.jetbrains.kotlinx.dl.api.core.shape.TensorShape
import org.jetbrains.kotlinx.dl.api.summary.ModelHubModelSummary
import org.jetbrains.kotlinx.dl.onnx.inference.ONNXModels
import org.jetbrains.kotlinx.dl.onnx.inference.OnnxModel... | 81 | Kotlin | 102 | 1,418 | 0f36d1b481fc755a7108a34aaf7d8cc226bcc4eb | 2,699 | kotlindl | Apache License 2.0 |
app/src/main/java/com/example/bitfit2/FoodEntity.kt | lmeiucsd | 555,721,269 | false | null | package com.example.bitfit
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "food_table")
data class FoodEntity(
@ColumnInfo(name = "foodName") val foodName: String?,
@ColumnInfo(name = "caloriesNumber") val caloriesNumber: String?,
@ColumnInf... | 2 | Kotlin | 0 | 0 | de3a826b7e51e055527ee29194bab4af119aec6a | 427 | BitfFitPart1 | Apache License 2.0 |
src/main/kotlin/com/swisschain/matching/engine/holders/UUIDHolder.kt | swisschain | 255,464,363 | false | {"Gradle": 2, "Text": 2, "Ignore List": 1, "Markdown": 1, "Kotlin": 578, "XML": 2, "Shell": 2, "Batchfile": 1, "Java": 3, "Protocol Buffer": 14, "Java Properties": 1, "INI": 2, "YAML": 2} | package com.swisschain.matching.engine.holders
interface UUIDHolder {
fun getNextValue(): String
} | 1 | null | 1 | 1 | 5ef23544e9c5b21864ec1de7ad0f3e254044bbaa | 103 | Exchange.MatchingEngine | Apache License 2.0 |
cache/src/main/java/com/mm/http/cache/IgnoreCache.kt | ma-jian | 407,821,385 | false | {"Kotlin": 8643} | package com.mm.http.cache
/**
* Created by : majian
* Date : 2021/8/24
* 设置忽略缓存策略。执行优先级高于[CacheStrategy]
* ```
* @IgnoreCache
* @CacheStrategy(value = StrategyType.CACHE_AND_NETWORK)
* @GET("users/{user}")
* suspend fun getUser(@Path("user") user: String): Any
* ```
*/
@Target(AnnotationTarget.FUNCTION)... | 0 | Kotlin | 0 | 2 | 420b0442ee20c6715cc0692feb594400bd2b2121 | 389 | retrofit_cache | Apache License 2.0 |
genogram/src/main/kotlin/ffc/genogram/RelationshipLine/RelationshipLabel.kt | ffc-nectec | 147,616,400 | false | null | /*
* Copyright 2018 NECTEC
* National Electronics and Computer Technology Center, Thailand
*
* Licensed under the Apache License, Version FamilyTree2.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/lic... | 0 | Kotlin | 1 | 0 | 0beda205242b5a59bcfaae7aa03da5cb85ff2ffa | 1,021 | genogram | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/smregistrering/SmregistreringQueries.kt | navikt | 526,559,029 | false | null | package no.nav.syfo.smregistrering
import no.nav.syfo.db.Database
import no.nav.syfo.db.toList
fun Database.getApenRegistreringsoppgave(journalpostId: String): Int? =
connection.use { connection ->
connection
.prepareStatement(
"""
SELECT oppgave_id
... | 0 | Kotlin | 0 | 0 | b2918e3cdb8618331434dc095097d8c4a31d1e20 | 1,066 | macgyver | MIT License |
src/main/kotlin/org/ergoplatform/obolflip/Utils.kt | ObolFlip | 549,191,417 | false | {"Kotlin": 73439, "JavaScript": 5904, "HTML": 1328} | package org.ergoplatform.obolflip
import java.net.Inet4Address
import java.net.InetAddress
import java.net.NetworkInterface
import java.text.DateFormat
import java.util.*
import kotlin.math.abs
fun millisecondsToRelativeTime(milliseconds: Long): String {
val relTimeMinutes = abs((((System.currentTimeMillis() - mi... | 0 | Kotlin | 0 | 0 | f1937b4a6a9b1345414aa2cd5bb55b7ca1b44f20 | 1,635 | obolflip-client | MIT License |
onebusaway-sdk-kotlin-core/src/test/kotlin/org/onebusaway/services/blocking/AgencyServiceTest.kt | OneBusAway | 869,113,248 | false | {"Kotlin": 1790435, "Shell": 3662, "Dockerfile": 399} | // File generated from our OpenAPI spec by Stainless.
package org.onebusaway.services.blocking
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
import org.onebusaway.TestServerExtension
import org.onebusaway.client.okhttp.OnebusawaySdkOkHttpClient
import org.onebusaway.models.*
@Ex... | 0 | Kotlin | 1 | 1 | 082e649863d464e351fac0ed334825c6e1b9ceb9 | 831 | kotlin-sdk | Apache License 2.0 |
shared/src/main/kotlin/io/unthrottled/doki/icons/jetbrains/shared/listeners/ApplicationLifecycleListener.kt | doki-theme | 527,949,815 | false | null | package io.unthrottled.doki.icons.jetbrains.shared.listeners
import com.intellij.ide.AppLifecycleListener
import com.intellij.openapi.project.DumbAware
import io.unthrottled.doki.icons.jetbrains.shared.PluginMaster
import io.unthrottled.doki.icons.jetbrains.shared.integrations.PlatformHacker
class ApplicationLifecycl... | 0 | Kotlin | 0 | 22 | 39a9f214dad6f21a5e91a0ea30613c6b9310bfc0 | 635 | doki-theme-icons-jetbrains | MIT License |
src/main/kotlin/com/alipay/sofa/koupleless/kouplelessidea/service/splitmodule/AnalyseAppDependencyService.kt | koupleless | 783,180,038 | false | {"Kotlin": 840464, "Java": 26198, "Shell": 3994} | package com.alipay.sofa.koupleless.kouplelessidea.service.splitmodule
import com.alipay.sofa.koupleless.kouplelessidea.factory.FileDependencyTreeNodeFactory
import com.alipay.sofa.koupleless.kouplelessidea.model.splitmodule.FileDependByTreeNode
import com.alipay.sofa.koupleless.kouplelessidea.model.splitmodule.FileDep... | 1 | Kotlin | 1 | 2 | 371a738491d60019d9c25a131fab484ad8064fc2 | 9,118 | koupleless-idea | Apache License 2.0 |
app/src/main/java/com/github/lanalebedeva/mydiscord/messages/data/dto/MessageDto.kt | LanaLebedeva | 655,453,977 | false | null | package com.github.lanalebedeva.mydiscord.messages.data.dto
import com.github.lanalebedeva.mydiscord.messages.data.model.MessageData
import com.github.lanalebedeva.mydiscord.messages.data.model.Reactions
import com.squareup.moshi.Json
import ru.tinkoff.mobile.tech.ti_recycler.base.ViewTyped
class ReactionsDto(
@J... | 0 | Kotlin | 0 | 0 | 9652339bd637fa72db479d0e20df52c97e56cb2e | 2,494 | messangerLanaLebedeva | Apache License 2.0 |
explore/src/main/java/com/lmorda/explore/ExploreScreen.kt | lmorda | 829,125,663 | false | {"Kotlin": 28567} | package com.lmorda.explore
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import and... | 0 | Kotlin | 0 | 0 | a9a00a10a04c62e6c08526aa819beb36061fc8f8 | 6,900 | android-convention-plugins | Apache License 2.0 |
chat-sdk/src/main/java/com/amazon/connect/chat/sdk/network/api/APIClient.kt | amazon-connect | 777,463,654 | false | {"Kotlin": 281048} | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazon.connect.chat.sdk.network.api
import com.amazon.connect.chat.sdk.model.MetricRequestBody
import okhttp3.MediaType.Companion.toMediaTypeOrNull
import okhttp3.RequestBody.Companion.asRequestBod... | 0 | Kotlin | 1 | 0 | 999deb6a88289a29ed025640919f1933c0d8bf3b | 1,785 | amazon-connect-chat-android | Apache License 2.0 |
app/src/main/java/com/tatsuki/droidkitapp/ui/compose/view/SectionTitle.kt | TatsukiIshijima | 619,142,905 | false | {"Kotlin": 53887} | package com.tatsuki.droidkitapp.ui.compose.view
import androidx.annotation.StringRes
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.... | 0 | Kotlin | 0 | 1 | 0adca3afe916c3a9b60f3cc5a480280e1d089a96 | 956 | DroidKit | MIT License |
solar/src/main/java/com/chiksmedina/solar/outline/sports/Stretching.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.outline.sports
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 4,140 | SolarIconSetAndroid | MIT License |
matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/sync/model/PresenceSyncResponse.kt | matrix-org | 287,466,066 | false | null | /*
* Copyright 2020 The Matrix.org Foundation C.I.C.
*
* 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 ... | 75 | null | 27 | 97 | 55cc7362de34a840c67b4bbb3a14267bc8fd3b9c | 1,098 | matrix-android-sdk2 | Apache License 2.0 |
java/kotlin/src/main/kotlin/ibc/core/channel/v1/MsgChannelOpenInitKt.kt | furysport | 798,989,200 | false | {"Kotlin": 3487859, "TypeScript": 3402397, "Java": 1230297, "Shell": 1687, "Makefile": 737} | //Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ibc/core/channel/v1/tx.proto
package ibc.core.channel.v1;
@kotlin.jvm.JvmSynthetic
inline fun msgChannelOpenInit(block: ibc.core.channel.v1.MsgChannelOpenInitKt.Dsl.() -> Unit): ibc.core.channel.v1.Tx.MsgChannelOpenInit =
ibc.core.channel.v1.MsgCh... | 0 | Kotlin | 0 | 0 | ddd9cd1abce2d51cf273be478c2b614960ace761 | 2,911 | terra.proto | Apache License 2.0 |
app/src/main/java/dem/vaccae/autoupgradedemo/net/retrofitUpGrade.kt | Vaccae | 392,537,777 | false | null | package dem.vaccae.autoupgradedemo.net
import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Streaming
import retrofit2.http.Url
/**
* 作者:Vaccae
* 邮箱:<EMAIL>
* 创建时间: 12:46
* 功能模块说明:
*/
interface retrofitUpGrade {
//检测服务器系统版本号
@GET("download/upgrade.txt")
fu... | 0 | Kotlin | 0 | 1 | fc59c1b450d6e683ba991ddb0040a0c270f97a2d | 454 | AndroidAutoUpGrade | Apache License 2.0 |
school/buildSrc/src/main/kotlin/workspace/database/DatabaseManager.kt | cccp-education | 847,664,213 | false | {"Kotlin": 575151, "Java": 289030, "TypeScript": 265868, "JavaScript": 59422, "CSS": 41823, "HTML": 27171, "Python": 16560, "FreeMarker": 16318, "Shell": 14047, "MDX": 12760, "SCSS": 9199, "Makefile": 2743, "Dockerfile": 1970, "Gherkin": 1823, "Jupyter Notebook": 1171, "Batchfile": 1088} | package workspace.database
object DatabaseManager | 0 | Kotlin | 0 | 1 | 5f90b87e4d69673c993df4a97ffab97f9890fc6a | 50 | atelier | Apache License 2.0 |
app/src/main/java/com/costular/leuksna_moon_phases/domain/model/Zodiac.kt | costular | 237,480,973 | false | null | package com.costular.leuksna_moon_phases.domain.model
enum class Zodiac {
ARIES,
TAURUS,
GEMINI,
CANCER,
LEO,
VIRGO,
LIBRA,
SCORPIO,
SAGITTARIUS,
CAPRICORN,
AQUARIUS,
PISCES
}
| 1 | Kotlin | 1 | 1 | 27941f4f535f8f7eedfa2532f17d7b865506700b | 225 | leuksna-moon-app | Apache License 2.0 |
src/main/kotlin/io/snyk/plugin/ui/toolwindow/panels/SuggestionDescriptionPanel.kt | snyk | 117,852,067 | false | {"Kotlin": 1072491, "Java": 216250, "JavaScript": 9475, "HCL": 562} | package io.snyk.plugin.ui.toolwindow.panels
import ai.deepcode.javaclient.core.MyTextRange
import ai.deepcode.javaclient.core.SuggestionForFile
import ai.deepcode.javaclient.responses.ExampleCommitFix
import com.intellij.icons.AllIcons
import com.intellij.psi.PsiDocumentManager
import com.intellij.ui.HyperlinkLabel
im... | 6 | Kotlin | 31 | 51 | bf772d7cd71bb8dc5a0471e1d3418c6d6857ec09 | 13,688 | snyk-intellij-plugin | Apache License 2.0 |
app/src/main/java/dev/arkbuilders/navigator/presentation/screen/gallery/GalleryViewModelFactory.kt | ARK-Builders | 394,855,699 | false | {"Kotlin": 310860, "Shell": 619} | package dev.arkbuilders.navigator.presentation.screen.gallery
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import dagger.assisted.Assisted
import dagger.assisted.AssistedFactory
import dagger.assisted.AssistedInject
import dev.arkbuilders.arkfilepicker.folders.RootAndFav
import dev.a... | 100 | Kotlin | 15 | 15 | 773409bf18bee5267bf0a104e6e2038fa1e3a1d3 | 2,727 | ARK-Navigator | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.