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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/commonMain/kotlin/datalayer/functions/updateBlockHeight.kt | luca992 | 716,489,959 | false | {"Kotlin": 57317, "HTML": 359, "CSS": 108} | package datalayer.functions
import Repository
import com.ionspin.kotlin.bignum.integer.toBigInteger
suspend fun Repository.updateBlockHeight() {
runtimeCache.blockHeight.value = client.getLatestBlock().block.header.height.toBigInteger()
} | 0 | Kotlin | 0 | 1 | 605304dcd1b4f983d5063d18c8cf645ff476caee | 244 | sienna-lend-liquidator | MIT License |
relive-simulator-core/src/commonMain/kotlin/xyz/qwewqa/relive/simulator/core/presets/dress/generated/dress3020010.kt | pointillion | 415,443,028 | true | {"Kotlin": 1212476, "HTML": 26704, "CSS": 26127, "JavaScript": 1640} | package xyz.qwewqa.relive.simulator.core.presets.dress.generated
import xyz.qwewqa.relive.simulator.core.stage.actor.ActType
import xyz.qwewqa.relive.simulator.core.stage.actor.Attribute
import xyz.qwewqa.relive.simulator.core.stage.actor.StatData
import xyz.qwewqa.relive.simulator.core.stage.dress.ActParameters
impor... | 0 | Kotlin | 0 | 0 | 4c7a14047ee5cdec2ad2f59f0491d99d2efef5ea | 10,789 | relive-simulator | MIT License |
lib-gson/src/main/java/net/codefeet/lemmyandroidclient/gen/types/PostReportResponse.kt | Flex4Reddit | 648,927,752 | false | null | package net.codefeet.lemmyandroidclient.gen.types
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize
@Parcelize
public data class PostReportResponse(
@SerializedName("post_report_view")
public val postReportView: PostReportView,
) : Parcelable
| 0 | Kotlin | 0 | 0 | 8028bbf4fc50d7c945d20c7034d6da2de4b7c0ac | 313 | lemmy-android-client | MIT License |
app/src/main/java/com/mospolytech/mospolyhelper/domain/schedule/repository/ScheduleSourcesRepository.kt | mospolyhelper | 259,442,737 | false | {"Kotlin": 839539, "Batchfile": 69} | package com.mospolytech.mospolyhelper.domain.schedule.repository
import com.mospolytech.mospolyhelper.domain.schedule.model.ScheduleSource
import kotlinx.coroutines.flow.Flow
interface ScheduleSourcesRepository {
fun getFavoriteScheduleSources(): Flow<List<ScheduleSource>>
suspend fun addFavoriteScheduleSourc... | 2 | Kotlin | 2 | 8 | 4f37c3617cf7523f22f03a22d7de2d7ecc74a098 | 601 | mospolyhelper-android | MIT License |
domain/src/main/kotlin/com/muradtop/kitsu/domain/models/manga/MangaModel.kt | muradtop | 493,279,085 | false | {"Kotlin": 139828} | package com.muradtop.kitsu.domain.models.manga
data class MangaModel(
val createdAt: String,
val updatedAt: String,
val slug: String,
val synopsis: String,
val coverImageTopOffset: Int,
val titles: com.muradtop.kitsu.domain.models.manga.TitlesModel,
val canonicalTitle: String,
val abbre... | 0 | Kotlin | 0 | 0 | 087deab6fb04c81671f6c64f78430159d72f35ca | 1,050 | Kitsu-Api | MIT License |
domain/src/main/kotlin/com/muradtop/kitsu/domain/models/manga/MangaModel.kt | muradtop | 493,279,085 | false | {"Kotlin": 139828} | package com.muradtop.kitsu.domain.models.manga
data class MangaModel(
val createdAt: String,
val updatedAt: String,
val slug: String,
val synopsis: String,
val coverImageTopOffset: Int,
val titles: com.muradtop.kitsu.domain.models.manga.TitlesModel,
val canonicalTitle: String,
val abbre... | 0 | Kotlin | 0 | 0 | 087deab6fb04c81671f6c64f78430159d72f35ca | 1,050 | Kitsu-Api | MIT License |
EarthGardener-Android/app/src/main/java/team/gdsc/earthgardener/presentation/user/signup/retrofit/SignUpRetrofitInterface.kt | gdsckoreahackathon2022 | 454,347,534 | false | null | package team.gdsc.earthgardener.presentation.user.signup.retrofit
import okhttp3.MultipartBody
import okhttp3.RequestBody
import retrofit2.Call
import retrofit2.http.Multipart
import retrofit2.http.POST
import retrofit2.http.Part
import retrofit2.http.PartMap
interface SignUpRetrofitInterface {
@Multipart
@PO... | 0 | Kotlin | 0 | 0 | f36bb9cc0d5dbddfb0bad67f88c1b670766d0867 | 481 | 41_EarthGardener | MIT License |
app/src/main/java/com/keykat/keykat/brawlkat/common/util/DataViewModel.kt | betterafter | 275,093,766 | false | {"Java": 333257, "Kotlin": 87511} | package com.keykat.keykat.brawlkat.common.util
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
class DataViewModel : ViewModel() {
private val _isBackgroundServiceOn = MutableLiveData<Boolean>()
val isBackgroundServiceOn: LiveData<Boolean> = _i... | 11 | Java | 1 | 1 | e44ed64fffe9d5adabd446de3291a84e2ec171e2 | 342 | BrawlKat | MIT License |
pdf-classifier/src/main/kotlin/de/ideasinlogic/tools/imappdf/PdfClassifier.kt | elektro-wolle | 125,924,218 | false | {"Kotlin": 23592, "Dockerfile": 708, "Shell": 491} | package de.ideasinlogic.tools.imappdf
import mu.KotlinLogging
import org.apache.pdfbox.io.RandomAccessBuffer
import org.apache.pdfbox.pdfparser.PDFParser
import org.apache.pdfbox.pdmodel.PDDocument
import org.apache.pdfbox.rendering.PDFRenderer
import org.apache.pdfbox.text.PDFTextStripper
import org.apache.pdfbox.tex... | 0 | Kotlin | 0 | 4 | cf3205998addb328ff12366a8f328be2821e62d0 | 6,016 | imap-pdf-ocr | Apache License 2.0 |
NOCI/app/src/main/java/com/example/noci/lists/input/ListsInputFragment.kt | Maarchosias | 291,082,916 | false | null | package com.example.noci.lists.input
import android.content.Intent
import android.os.Bundle
import android.text.TextUtils
import android.util.Log
import android.view.KeyEvent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.databindin... | 0 | Kotlin | 0 | 0 | da86524942a1521128c99221faa4c82dc13a7d5a | 6,440 | android.development | MIT License |
app/src/main/java/uk/co/sentinelweb/cuer/app/db/dao/MediaDao.kt | sentinelweb | 220,796,368 | false | null | package uk.co.sentinelweb.cuer.app.db.dao
import androidx.room.*
import uk.co.sentinelweb.cuer.app.db.entity.MediaAndChannel
import uk.co.sentinelweb.cuer.app.db.entity.MediaEntity
@Dao
interface MediaDao {
@Transaction
@Query("SELECT * FROM media")
suspend fun getAll(): List<MediaAndChannel>
@Query(... | 59 | Kotlin | 0 | 0 | e9b3baf857c9e08eb21444291e8c4f8b8ca0838d | 1,763 | cuer | Apache License 2.0 |
DictionaryApp/app/src/main/java/tr/com/abdulsamet/dictionary/view/fragment/DetailFragment.kt | AbdulsametAyyildiz | 589,340,352 | false | null | package tr.com.abdulsamet.dictionary.view.fragment
import android.os.Bundle
import android.view.View
import android.widget.Toast
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyclerview.widget.LinearLayoutManager
import tr.com.abdulsamet.dictionary.R
import tr.com.abdulsamet.dictionary.ba... | 0 | Kotlin | 0 | 0 | b51b61e0f3db7df478b9d856eddbd1aec457eda9 | 6,202 | DictionaryApp-Android | MIT License |
http4k/src/test/kotlin/com/github/christophpickl/kpotpourri/http4k/api_test.kt | christophpickl | 83,411,497 | false | null | package com.github.christophpickl.kpotpourri.http4k
import com.github.christophpickl.kpotpourri.http4k.non_test.testDummy
import com.github.christophpickl.kpotpourri.test4k.hamkrest_matcher.shouldMatchValue
import org.testng.annotations.Test
@Test class Response4kTest {
fun `readJson sunshine`() {
Respon... | 0 | Kotlin | 0 | 4 | eb6ad4d00be86ce88417d32dcb49370a632a9c1e | 474 | kpotpourri | Apache License 2.0 |
app/src/main/java/com/ahmedtikiwa/fxapp/network/models/NetworkHistoricalResponse.kt | akitikkx | 371,123,034 | false | null | package com.ahmedtikiwa.fxapp.network.models
import com.google.gson.internal.LinkedTreeMap
data class NetworkHistoricalResponse(
val date: String,
val price: LinkedTreeMap<String, Double>
) | 0 | Kotlin | 0 | 0 | a782a5a5f6960b3926e670faa37d8f9b5f4355e1 | 199 | fx-app | MIT License |
feature/metis/src/test/kotlin/de/tum/informatics/www1/artemis/native_app/feature/metis/ConversationBaseTest.kt | ls1intum | 537,104,541 | false | null | package de.tum.informatics.www1.artemis.native_app.feature.metis
import android.content.Context
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.test.platform.app.InstrumentationRegistry
import de.tum.informatics.www1.artemis.native_app.core.model.Course
import de.tum.informatics.www1.artemis.n... | 2 | Kotlin | 0 | 2 | 466a1c60c3b2f9a9b57c4a98adac0361e4c711c3 | 3,530 | artemis-android | Apache License 2.0 |
app/src/main/java/com/krossmanzs/kateringyuk/AboutActivity.kt | krossmanzs | 430,032,621 | false | {"Kotlin": 20250} | package com.krossmanzs.kateringyuk
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
class AboutActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_about)
supportAct... | 0 | Kotlin | 0 | 0 | 3d94d3a73ef2ecb6210518d8073c19b142fb36c5 | 369 | Katering-Yuk | MIT License |
fontawesome/src/de/msrd0/fontawesome/icons/FA_EARTH_AFRICA.kt | msrd0 | 363,665,023 | false | {"Kotlin": 3912511, "Jinja": 2214} | /* @generated
*
* This file is part of the FontAwesome Kotlin library.
* https://github.com/msrd0/fontawesome-kt
*
* This library is not affiliated with FontAwesome.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 0 | Kotlin | 0 | 0 | ee6a62d201fd5df2555859271cb0c6a7ee887e7a | 2,497 | fontawesome-kt | Apache License 2.0 |
src/main/kotlin/com/example/spring/boot/web/failure/analyzer/MyPortInUseFailureAnalyzer.kt | ShassBeleth | 233,717,293 | false | null | package com.example.spring.boot.web.failure.analyzer
import org.springframework.boot.diagnostics.AbstractFailureAnalyzer
import org.springframework.boot.diagnostics.FailureAnalysis
import org.springframework.boot.web.server.PortInUseException
/**
* アプリ起動時に指定のポートが既に使われていた場合に起きるExceptionの分析
*/
class MyPortInUseFailur... | 0 | Kotlin | 0 | 0 | 5bb6aec2f58febf71475bb5e0bf3f2e13f5af77a | 782 | SpringBootExample | MIT License |
app/src/main/java/jp/cordea/ribsdemo/ui/region/RegionScope.kt | CORDEA | 163,973,049 | false | null | package jp.cordea.ribsdemo.ui.region
import javax.inject.Scope
@Scope
@Retention(AnnotationRetention.BINARY)
annotation class RegionScope
| 0 | Kotlin | 0 | 2 | 3ff23b50b9d59ca42ba95cdf437d36f2ddd4bda0 | 140 | RIBsDemo | Apache License 2.0 |
OpenDaySkill/src/main/kotlin/furhatos/app/opendayskill/flow/main/OpenDay.kt | TeresaRM | 540,570,003 | false | {"Kotlin": 63183, "HTML": 3375, "CSS": 1380} | package furhatos.app.opendayskill.flow.main
import furhatos.flow.kotlin.*
import furhatos.app.opendayskill.flow.Parent
import furhatos.app.opendayskill.flow.nlu.NegativeRemark
import furhatos.app.opendayskill.flow.nlu.PositiveRemark
import furhatos.app.opendayskill.setting.name
import furhatos.gestures.Gestures
val ... | 0 | Kotlin | 0 | 0 | 529a90df65523c8296ba65209a57cf59846375a5 | 2,056 | Furhat-skills | Creative Commons Zero v1.0 Universal |
app/src/main/java/dalian/razvan/cucer/ibm/core/repository/IBMRepositoryImpl.kt | daliaan | 367,817,053 | false | null | package dalian.razvan.cucer.ibm.core.repository
import android.util.Log
import dalian.razvan.cucer.ibm.core.network.API
import dalian.razvan.cucer.ibm.core.network.Result
import dalian.razvan.cucer.ibm.core.network.model.APIResponse
import dalian.razvan.cucer.ibm.core.network.safeApiCall
import dalian.razvan.cucer.ibm... | 0 | Kotlin | 0 | 0 | f1c87dd1745ee8477d486b036dc5c45aacabe59e | 2,341 | IBM | Apache License 2.0 |
kotlin/aoc2018/src/test/kotlin/Day04Tests.kt | aochsner | 160,386,044 | false | null | import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import java.io.File
class Day04Tests {
@Test
fun `example part 1`() {
// act
val result = Day04().part1(listOf(
"[1518-11-01 00:00] Guard #10 begins shift",
"[1518-11-01 00:05] falls asleep",
... | 0 | Kotlin | 0 | 1 | 7c42ec9c20147c4be056d03e5a1492c137e63615 | 2,605 | adventofcode2018 | MIT License |
android/src/main/kotlin/com/adyen/checkout/flutter/components/card/session/CardSessionCallback.kt | Adyen | 665,573,538 | false | {"Dart": 324930, "Swift": 211098, "Kotlin": 197710, "Ruby": 2348, "Objective-C": 38} | package com.adyen.checkout.flutter.components.card.session
import ComponentFlutterInterface
import com.adyen.checkout.card.CardComponentState
import com.adyen.checkout.components.core.action.Action
import com.adyen.checkout.flutter.components.ComponentHeightMessenger
import com.adyen.checkout.flutter.components.base.C... | 5 | Dart | 3 | 17 | c7d5a08ef12335410898e0c3c854047d4fbc4e28 | 936 | adyen-flutter | MIT License |
src/test/kotlin/no/nav/familie/ef/mottak/api/SøknadControllerTest.kt | blommish-test | 359,384,928 | true | {"Kotlin": 312719, "Shell": 269, "Dockerfile": 141} | package no.nav.familie.ef.mottak.api
import no.nav.familie.ef.mottak.IntegrasjonSpringRunnerTest
import no.nav.familie.ef.mottak.service.Testdata.søknadBarnetilsyn
import no.nav.familie.ef.mottak.service.Testdata.søknadOvergangsstønad
import no.nav.familie.ef.mottak.service.Testdata.søknadSkolepenger
import no.nav.fam... | 0 | null | 0 | 0 | 9719027a081bd3255bb3f429585612c90ec4f57d | 4,552 | familie-ef-mottak | MIT License |
sourceamazing-schema/src/main/kotlin/org/codeblessing/sourceamazing/schema/datacollection/validation/exceptions/UnknownConceptException.kt | code-blessing | 695,574,460 | false | {"Kotlin": 325769} | package org.codeblessing.sourceamazing.schema.datacollection.validation.exceptions
class UnknownConceptException(msg: String): SchemaValidationException(msg)
| 4 | Kotlin | 0 | 0 | 1d5545d838b18b74912d96be80e5acaa177fcdbe | 160 | sourceamazing | MIT License |
library/src/main/kotlin/com/android/pandora/display/ClaysAdapter.kt | contafu | 193,933,691 | false | {"Gradle": 5, "Markdown": 3, "Java Properties": 2, "Shell": 1, "Ignore List": 3, "Batchfile": 1, "INI": 2, "Proguard": 2, "XML": 22, "Kotlin": 13, "Java": 3} | package com.android.pandora.display
import android.content.Context
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import com.android.pandora.Clay
import com.android.pa... | 0 | Kotlin | 0 | 2 | cc5e498252015c81045154da1ab3e5542e342d01 | 2,756 | pandora | Apache License 2.0 |
dorm/core/src/main/kotlin/org/sirius/dorm/json/ObjectModule.kt | coolsamson7 | 856,851,180 | false | {"Kotlin": 243947, "ANTLR": 13837} | package org.sirius.dorm.json
import org.sirius.dorm.`object`.DataObject
import com.fasterxml.jackson.databind.module.SimpleDeserializers
import com.fasterxml.jackson.databind.module.SimpleModule
import com.fasterxml.jackson.databind.module.SimpleSerializers
class ObjectModule: SimpleModule() {
// override
ov... | 0 | Kotlin | 0 | 1 | 85c2da7608171bb0703d974a5ac0b3ce6034515e | 848 | dorm | Apache License 2.0 |
zeppelin/implementation/src/org/intellij/plugin/zeppelin/api/remote/rest/RestApiException.kt | veor12 | 124,130,369 | false | {"Kotlin": 158204, "Java": 36950, "Scala": 5054} | package org.intellij.plugin.zeppelin.api.remote.rest
import org.intellij.plugin.zeppelin.models.ZeppelinException
data class RestApiException(val customMessage: String, val error: String) : ZeppelinException() {
override val message: String
get() = "$customMessage.\nError: $error"
} | 5 | Kotlin | 1 | 1 | 90dfce523d9ccca40d0001158ce4117eb2c18780 | 297 | Zeppelin-Remote-Run | Apache License 2.0 |
cottontaildb-dbms/src/main/kotlin/org/vitrivr/cottontail/dbms/index/pq/rebuilder/AsyncPQIndexRebuilder.kt | vitrivr | 160,775,368 | false | {"Kotlin": 2769415, "TypeScript": 98011, "Java": 97672, "HTML": 38965, "ANTLR": 23679, "CSS": 8582, "SCSS": 1690, "JavaScript": 1441, "Dockerfile": 548} | package org.vitrivr.cottontail.dbms.index.pq.rebuilder
import jetbrains.exodus.env.Store
import jetbrains.exodus.env.StoreConfig
import org.vitrivr.cottontail.core.database.ColumnDef
import org.vitrivr.cottontail.core.database.TupleId
import org.vitrivr.cottontail.core.queries.functions.Signature
import org.vitrivr.co... | 24 | Kotlin | 20 | 38 | bc4d0aa435aac78628fa7771dbf8333f1fe5a971 | 10,500 | cottontaildb | MIT License |
app/src/main/java/com/yamin/chatchat/MainActivity.kt | YaminArafat | 609,940,129 | false | null | package com.yamin.chatchat
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.yamin.chatchat.fragments.AppWelcomeScreenFragment
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setCon... | 0 | Kotlin | 0 | 0 | 88b605caa6e2f22f166cfdfc6ccb0d82b9ebc6b8 | 635 | ChatChat | Apache License 2.0 |
plugin-dotnet-agent/src/main/kotlin/jetbrains/buildServer/inspect/XmlPluginsSpecificationProvider.kt | JetBrains | 49,584,664 | false | {"Kotlin": 2711266, "C#": 319161, "Java": 95520, "Dockerfile": 831, "CSS": 123} |
package jetbrains.buildServer.inspect
import jetbrains.buildServer.XmlElement
import jetbrains.buildServer.agent.Version
import jetbrains.buildServer.agent.runner.LoggerService
import java.io.ByteArrayOutputStream
class XmlPluginsSpecificationProvider(
private val _pluginDescriptorsProvider: PluginDescriptorsPr... | 3 | Kotlin | 25 | 94 | c7f12409b67420d5655780ce6e50638ce4ca1f8d | 2,226 | teamcity-dotnet-plugin | Apache License 2.0 |
simplified-main/src/main/java/org/librarysimplified/main/MainTransifex.kt | NatLibFi | 730,988,035 | false | {"Kotlin": 3589739, "JavaScript": 853788, "Java": 403841, "CSS": 65407, "HTML": 49894, "Shell": 18611, "Ruby": 7554} | package org.librarysimplified.main
import android.content.Context
import com.transifex.txnative.LocaleState
import com.transifex.txnative.TxNative
import com.transifex.txnative.missingpolicy.WrappedStringPolicy
import fi.kansalliskirjasto.ekirjasto.util.SecretsUtil
import java.io.FileNotFoundException
import java.util... | 1 | Kotlin | 0 | 0 | e4fc752f3cba3427d3822ccae259c57983488e46 | 1,691 | ekirjasto-android-core | Apache License 2.0 |
business/splash/src/test/java/com/alessandrocandolini/splash/WeatherApiTest.kt | alessandrocandolini | 297,105,248 | false | null | package com.alessandrocandolini.splash
import com.alessandrocandolini.withMockServer
import com.jakewharton.retrofit2.converter.kotlinx.serialization.asConverterFactory
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.collections.shouldBeIn
import io.kotest.property.Exhaustive
import io.kotest.proper... | 0 | Kotlin | 0 | 0 | e6a7108aacbc18f173e42e20c5213ba7de835997 | 3,862 | di-alternatives | MIT License |
Sample/sdkA/src/main/kotlin/io/popbrain/sdk/a/HelloWorkImpl.kt | Popbrain | 236,398,711 | false | null | package io.popbrain.sdk.a
import io.popbrain.hellowork.HelloWork
import io.popbrain.hellowork.Job
import io.popbrain.sdk.a.api.WorkerResultHandlingAdapter
class HelloWorkImpl {
companion object {
fun <T: Job> build(job: Class<T>): T {
return HelloWork.Dispatcher()
.addFrontDe... | 0 | Kotlin | 0 | 2 | 9a9eb133bb7c1712113e0001e5f52e653ab36023 | 460 | HelloWork | Apache License 2.0 |
app/src/main/java/jp/juggler/subwaytooter/api/entity/TootApplication.kt | geckour | 143,372,698 | true | {"Java Properties": 2, "Perl": 4, "Text": 11, "JSON": 6, "Gradle": 9, "Shell": 1, "Markdown": 1, "Batchfile": 1, "Ignore List": 8, "Git Config": 1, "Proguard": 6, "XML": 120, "Java": 34, "INI": 1, "Kotlin": 211} | package jp.juggler.subwaytooter.api.entity
import org.json.JSONObject
import jp.juggler.subwaytooter.util.parseString
class TootApplication(
val name : String?,
@Suppress("unused") private val website : String?
) {
constructor(src : JSONObject) : this(
name = src.parseString("name"),
website = src.parseStri... | 0 | Java | 0 | 0 | 881a9fda46051ae55630d9c8d473853e78a45ecc | 339 | SubwayTooter | Apache License 2.0 |
src/main/kotlin/before/청년이룸_과제3/ATM/Main.kt | K-Diger | 642,489,846 | false | {"Kotlin": 105578, "Java": 49568} | package before.청년이룸_과제3.ATM
import java.io.BufferedReader
import java.io.BufferedWriter
import java.io.InputStreamReader
import java.io.OutputStreamWriter
private val br = BufferedReader(InputStreamReader(System.`in`))
private val bw = BufferedWriter(OutputStreamWriter(System.out))
fun main() {
val n = br.readLi... | 0 | Kotlin | 0 | 0 | 344cf6c78b6491460219d1c23e381d4beda1d839 | 611 | algorithm-rehab | MIT License |
mnn/src/main/java/ru/gordinmitya/mnn/ConvertedModel.kt | gordinmitya | 229,242,123 | false | null | package ru.gordinmitya.mnn
import ru.gordinmitya.common.Model
import ru.gordinmitya.common.classification.MobileNetModel
import ru.gordinmitya.common.segmentation.DeepLabModel
class ConvertedModel<T> private constructor(
val model: T,
val fileName: String
) {
companion object {
val mobilenet_v2 = ... | 6 | null | 4 | 15 | ee8363a47ac91602c8babf791aaf2423578b606c | 840 | dnn_benchmark | MIT License |
core/nativeMain/src/kotlinx/serialization/internal/Platform.kt | Kotlin | 97,827,246 | false | null | /*
* Copyright 2017-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.serialization.internal
import kotlinx.serialization.*
import kotlin.reflect.*
@Suppress("NOTHING_TO_INLINE")
internal actual inline fun <T> Array<T>.getChecked(index: Int): T {
return get... | 351 | Kotlin | 481 | 3,787 | 784892467f292dae27d3544148515795cd8eeee8 | 2,223 | kotlinx.serialization | Apache License 2.0 |
batteryview/src/main/java/iam/thevoid/batteryview/BatteryView.kt | iamthevoid | 108,580,690 | false | null | @file:Suppress("unused", "MemberVisibilityCanBePrivate")
package iam.thevoid.batteryview
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.RectF
import android.util.AttributeSet
import androidx.annotation.ColorInt
import a... | 1 | null | 1 | 17 | fb5ce00e92b6e8029bcbb017fec2b682bb2d0924 | 5,776 | battery-view-android | MIT License |
quicklist-presentation/src/main/java/com/unatxe/quicklist/features/detailScreen/component/QListDetailColumn.kt | PepitoStudios | 491,644,872 | false | null | package com.unatxe.quicklist.features.detailScreen.component
import android.util.Log
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout... | 0 | Kotlin | 0 | 0 | 5d640ba44f33a29e0fc8ee06c00c1d55ac5eb1d1 | 5,437 | one-for-all | Apache License 2.0 |
frontend-example/modules/spacex-crew/src/jsMain/kotlin/io/github/andrewk2112/kjsbox/frontend/example/spacexcrew/data/RemoteDataSourceExceptionsCatcher.kt | andrew-k-21-12 | 497,585,003 | false | {"Kotlin": 399649, "JavaScript": 7404, "HTML": 726} | package io.github.andrewk2112.kjsbox.frontend.example.spacexcrew.data
import io.github.andrewk2112.utility.common.utility.Result
import kotlinx.coroutines.CoroutineExceptionHandler
import kotlin.coroutines.cancellation.CancellationException
/**
* Provides middleware to catch all possible exceptions and wrap (convert... | 0 | Kotlin | 0 | 3 | 80493596e7fee976df1aaa74a11d136de9cad13c | 1,735 | kjs-box | MIT License |
app/src/main/java/com/techgv/themovielibrary/ui/MoviesFragment.kt | GvHarish9894 | 506,704,556 | false | {"Kotlin": 73843} | package com.techgv.themovielibrary.ui
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.findNavController
import and... | 0 | Kotlin | 0 | 0 | 3bfd3721f4d7c5bae2f950c177691eabfa7bada0 | 4,151 | TheMovieLibrary | Apache License 2.0 |
app/src/main/java/com/jumpingphantom/weather/ExtendedForecastFragment.kt | JumpingPhantom | 786,273,042 | false | {"Kotlin": 9247} | package com.jumpingphantom.weather
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
class ExtendedForecastFragment : Fragment() {
override fun onCreateView(
inflater: LayoutInflater,
container: ... | 0 | Kotlin | 0 | 0 | c19da4f4394b39e429774dcc576acc4c806321cb | 538 | WeatherApp | Apache License 2.0 |
app/src/main/java/com/huseyincan/financemobile/data/adapter/PortfolioAdapter.kt | huseyincn | 750,915,865 | false | {"Kotlin": 52256} | package com.huseyincan.financemobile.data.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.huseyincan.financemobile.R
import com.huseyincan.financemobile.data.model.Portfolio
cla... | 0 | Kotlin | 0 | 0 | 9e9a8cd2fc737573cea53963a5a5ed3f991971e6 | 2,207 | Finance-fe | MIT License |
code/bookStoreApp/app/src/main/java/com/example/fragment/ShoppingCartFragment.kt | 99611400 | 318,499,414 | false | null | package com.example.fragment
import androidx.lifecycle.ViewModelProvider
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Adapter
import android.widget.Toast
import andr... | 0 | Kotlin | 0 | 0 | d028770ac632138900301e691af35fbfd51f5dda | 3,517 | SdustAndroidDevelopmentExperiment | Apache License 2.0 |
src/test/kotlin/nl/jackploeg/aoc/_2023/calendar/day19/Day19Test.kt | jackploeg | 736,755,380 | false | {"Kotlin": 318734} | package nl.jackploeg.aoc._2023.calendar.day19
import javax.inject.Inject
import nl.jackploeg.aoc._2023.DaggerTestDayComponent
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
internal class Day19Test {
@Inject
lateinit var day19: Day1... | 0 | Kotlin | 0 | 0 | f2b873b6cf24bf95a4ba3d0e4f6e007b96423b76 | 993 | advent-of-code | MIT License |
plugin-dotnet-agent/src/main/kotlin/jetbrains/buildServer/dotcover/report/model/AssemblyInfo.kt | JetBrains | 49,584,664 | false | {"Kotlin": 2713429, "C#": 319161, "Java": 96855, "Dockerfile": 831, "CSS": 123} | package jetbrains.buildServer.dotcover.report.model
class AssemblyInfo(private val _assemblyName: String) {
val assemblyName: String
get() = _assemblyName
fun newNamespace(name: String): NamespaceInfo {
return NamespaceInfo(this, name)
}
}
| 3 | Kotlin | 25 | 94 | 5f444c22b3354955d1060e08478d543d2b0b99b0 | 271 | teamcity-dotnet-plugin | Apache License 2.0 |
detekt-cli/src/main/kotlin/io/gitlab/arturbosch/detekt/cli/Main.kt | supersven | 221,434,333 | true | {"Kotlin": 1531402, "Groovy": 3832, "HTML": 3416, "Shell": 1057} | @file:JvmName("Main")
package io.gitlab.arturbosch.detekt.cli
import io.gitlab.arturbosch.detekt.cli.runners.AstPrinter
import io.gitlab.arturbosch.detekt.cli.runners.ConfigExporter
import io.gitlab.arturbosch.detekt.cli.runners.Executable
import io.gitlab.arturbosch.detekt.cli.runners.Runner
import io.gitlab.arturbo... | 0 | Kotlin | 0 | 0 | 867db13594ae6a1888a7ace4d6db9a0cb10ce6a8 | 1,890 | detekt | Apache License 2.0 |
app/src/main/java/com/bluehub/mixi/common/utils/Ext.kt | ashfaq1701 | 275,871,797 | false | null | package com.bluehub.mixi.common.utils
import android.R
import android.os.Build
import android.util.TypedValue
import android.view.View
import java.util.*
fun <T> List<T>.areEqual(anotherList: List<T>): Boolean {
if (this.size != anotherList.size) return false
return this.zip(anotherList).all { (x, y) -> x ==... | 0 | C | 9 | 48 | dc9b650d8a07afb9da27057aa1336482b83e2010 | 1,029 | fast-mixer | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/viewbindingsample/ui/core/BaseFragment.kt | Ashwagandha-coder | 580,717,181 | false | null | package com.viewbindingsample.ui.core
| 0 | Kotlin | 0 | 0 | b960503b274dc64a508a5efe4f0334622a0c07e0 | 41 | viewbinding | MIT License |
multiitem/src/main/java/com/sanniou/multiitem/ItemSpanSizeLookup.kt | sanniou | 232,019,052 | false | null | package com.sanniou.multiitem
import androidx.recyclerview.widget.GridLayoutManager.SpanSizeLookup
class ItemSpanSizeLookup(private val data: List<DataItem>, private val span: Int) :
SpanSizeLookup() {
override fun getSpanSize(position: Int): Int {
if (data.size > position) {
val itemSpan... | 0 | Kotlin | 0 | 1 | 7f16bf40f78d46790a57dc55114a4570d9e4949c | 447 | MultiItemKit | Apache License 2.0 |
app/src/main/java/com/findmyphone/clapping/find/resource/utils/Extension.kt | daovu97 | 813,479,646 | false | {"Kotlin": 113404, "Java": 134} | package com.findmyphone.clapping.find.resource.utils
import android.content.Context
import android.content.pm.PackageManager
import android.content.res.Resources
import android.graphics.drawable.Drawable
import android.os.Build
import android.util.DisplayMetrics
import android.view.View
import androidx.annotation.Requ... | 0 | Kotlin | 0 | 0 | f139270dc79580afa0145e6c2b4898b016c060bd | 3,013 | clapfinder | MIT License |
meetnote3/src/nativeMain/kotlin/meetnote3/Logger.kt | tokuhirom | 817,853,357 | false | {"Kotlin": 45540, "Python": 3927} | package meetnote3
import platform.posix.getenv
import kotlinx.cinterop.ExperimentalForeignApi
import kotlinx.cinterop.toKString
const val LOG_LEVEL_TRACE = 0
const val LOG_LEVEL_DEBUG = 1
const val LOG_LEVEL_INFO = 2
const val LOG_LEVEL_WARNING = 3
const val LOG_LEVEL_ERROR = 4
private var logLevel = LOG_LEVEL_INFO... | 1 | Kotlin | 0 | 0 | 06356e1b07a682295655ebf28d85fc964763ab3f | 1,372 | meetnote3 | MIT License |
client/src/main/kotlin/com.chrynan.sitetheme/binder/HomeBinder.kt | chRyNaN | 200,936,464 | false | {"JavaScript": 5798148, "CSS": 485678, "Kotlin": 88005, "PHP": 62866, "HTML": 475} | package com.chrynan.sitetheme.binder
import com.chrynan.sitetheme.viewmodel.PostItemViewModel
interface HomeBinder : HeaderFooterBinder {
fun bindPosts(models: List<PostItemViewModel>)
} | 0 | JavaScript | 0 | 0 | a398f21f02d0b059694d533e81505b49fcc63594 | 193 | old-site-theme-experiment | Apache License 2.0 |
shared/src/commonMain/kotlin/de/jensklingenberg/showdown/model/ShowdownError.kt | cybernetics | 284,643,634 | true | {"Kotlin": 100658, "HTML": 1189, "CSS": 661, "JavaScript": 419} | package de.jensklingenberg.showdown.model
import kotlinx.serialization.Serializable
@Serializable
sealed class ShowdownError(var message: String) {
@Serializable
class NotAuthorizedError : ShowdownError("NotAuthorizedError")
@Serializable
class NoConnectionError : ShowdownError("NotAuthorizedError"... | 0 | null | 0 | 0 | 3a1993d4e7032dd4e45b5644a357c6b4dfe56958 | 323 | Showdown | Apache License 2.0 |
app/src/main/java/com/example/visuallithuanian/constants/ImageStore.kt | klaus19 | 541,931,828 | false | {"Kotlin": 696917} | package com.example.visuallithuanian.constants
import com.example.visuallithuanian.R
object ImageStore {
val imagesNamesMap = mutableMapOf<Int, Triple<String, String,Int>>()
fun addImageResource(resId:Int,english:String,lithuanian:String,voiceClip:Int){
imagesNamesMap[resId] = Triple(english,lithuani... | 10 | Kotlin | 4 | 9 | 07e434a018c263db43555321ce0904b369242e3d | 595 | Labas | Apache License 2.0 |
SharedCode/src/iOSMain/kotlin/MainLoopDispatcher.kt | armcha | 152,214,178 | false | null | package org.kotlin.mpp.mobile
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Runnable
import platform.Foundation.NSRunLoop
import platform.Foundation.performBlock
import kotlin.coroutines.CoroutineContext
object MainLoopDispatcher: CoroutineDispatcher() {
override fun dispatch(context: Co... | 0 | Kotlin | 1 | 13 | 9ea9fdc880084cdf94f491222e39ce1f0c9eea21 | 443 | KotlinMultiplatformSample | Apache License 2.0 |
kord-extensions/src/main/kotlin/com/kotlindiscord/kord/extensions/commands/events/UserCommandEvents.kt | Kord-Extensions | 262,018,456 | false | null | package com.kotlindiscord.kord.extensions.commands.events
import com.kotlindiscord.kord.extensions.commands.application.user.EphemeralUserCommand
import com.kotlindiscord.kord.extensions.commands.application.user.PublicUserCommand
import com.kotlindiscord.kord.extensions.commands.application.user.UserCommand
import de... | 15 | Kotlin | 14 | 53 | c4a5a8cc8a65c0bd0928a4dcc6c05e3fc4fd75cf | 4,029 | kord-extensions | MIT License |
src/main/java/com/dzen/campfire/server/executors/quests/EQuestsSaveState.kt | ZeonXX | 442,862,191 | false | {"Kotlin": 1072092} | package com.dzen.campfire.server.executors.quests
import com.dzen.campfire.api.API
import com.dzen.campfire.api.models.quests.QuestDetails
import com.dzen.campfire.api.requests.quests.RQuestsSaveState
import com.dzen.campfire.api.tools.ApiException
import com.dzen.campfire.server.controllers.ControllerPublications
imp... | 1 | Kotlin | 2 | 0 | 40a2fbdbbdbe6706ed852f7218cb10fd57e50445 | 2,706 | CampfireServer | Apache License 2.0 |
domain-objects/src/main/kotlin/com/github/vincentfree/model/Order.kt | vincentfree | 354,959,125 | false | null | package com.github.vincentfree.model
import io.vertx.core.json.JsonObject
import io.vertx.kotlin.core.json.jsonObjectOf
data class Order(val id: String, val name: String, val orderId: String) {
fun toJson(): JsonObject = jsonObjectOf(
"id" to id,
"name" to name,
"orderId" to orderId,
)... | 0 | Kotlin | 0 | 0 | 8d97070899f6d133ec2b1c69caea01b19dc72326 | 765 | dapr-experiments | MIT License |
ObjectOrientedParadigm/Exercise-2/Book.kt | Johanx22x | 674,064,501 | false | {"Kotlin": 19851, "Go": 18444, "F#": 13580, "Prolog": 4760, "Rust": 4512, "Makefile": 822} | class Book(id: Long, title: String, author: String) {
var id: Long = id
private set
var title: String = title
private set
var author: String = author
private set
var isAvailable: Boolean = true
override fun toString(): String {
return "Book(id=$id, title='$title', au... | 0 | Kotlin | 0 | 1 | 17ef99cfb4e12803a15615f235bfd3d0961ec373 | 371 | ProgrammingLanguages | MIT License |
app/src/main/java/com/sky/xposed/rmad/provider/SettingsProvider.kt | ijustyce | 131,395,536 | true | {"Kotlin": 39468, "Java": 2346} | /*
* Copyright (c) 2017 The sky Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 0 | Kotlin | 0 | 0 | ef3d56dd001423c80ad7384ab79cb42446663cc7 | 4,609 | xposed-rmad | Apache License 2.0 |
src/commonMain/kotlin/data/activity/user_generated_content/GetUgcRsp.kt | Hartie95 | 642,871,918 | false | {"Kotlin": 301622} | package data.activity.user_generated_content
import annotations.AddedIn
import data.activity.user_generated_content.music_game.UgcMusicBriefInfo
import data.activity.user_generated_content.music_game.UgcMusicRecord
import messages.VERSION
import org.anime_game_servers.annotations.*
@AddedIn(VERSION.V2_7_0)
@ProtoComm... | 0 | Kotlin | 2 | 5 | cb458b49dc9618e3826b890689becc0f12585998 | 655 | anime-game-multi-proto | MIT License |
src/main/kotlin/dev/lunarcoffee/beanly/exts/commands/utility/timers/BaseTimer.kt | LunarCoffee | 184,699,115 | false | null | package dev.lunarcoffee.beanly.exts.commands.utility.timers
import net.dv8tion.jda.api.events.Event
import org.litote.kmongo.coroutine.CoroutineCollection
import java.util.*
interface BaseTimer {
val time: Date
fun <T : Any> schedule(event: Event, col: CoroutineCollection<T>)
}
| 0 | Kotlin | 0 | 0 | 8f428aa32dd7b69903bf57dab67e248fdbda688d | 290 | Beanly | MIT License |
spring-boot-async-and-mockito-spies/kotlin/src/test/kotlin/x/scratch/TestAsyncConfiguration.kt | kandhdxhd | 321,755,623 | true | {"Kotlin": 207497, "Java": 63586, "Batchfile": 16635, "Rust": 14764, "Shell": 10120, "HTML": 4668, "Dockerfile": 258} | package x.scratch
import org.assertj.core.api.Assertions.assertThat
import org.springframework.boot.test.context.TestConfiguration
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Primary
import org.springframework.core.task.TaskExecutor
import org.springframework.schedu... | 0 | null | 0 | 0 | c9a9fd827b163fe4ae259a6c617cb109e3bca575 | 1,915 | spikes | The Unlicense |
ImageLoader/src/main/java/cn/quibbler/imageloader/cache/disk/impl/ext/StrictLineReader.kt | quibbler01 | 524,270,844 | false | {"Kotlin": 252007} | package cn.quibbler.imageloader.cache.disk.impl.ext
import java.io.*
import java.nio.charset.Charset
/**
* Buffers input from an {@link InputStream} for reading lines.
*
* <p>This class is used for buffered reading of lines. For purposes of this class, a line ends
* with "\n" or "\r\n". End of input is reported b... | 0 | Kotlin | 0 | 0 | d2fae5a52fe791f0338bd303f3f7cb128fa7e504 | 6,612 | ImageLoader | Apache License 2.0 |
src/main/kotlin/br/com/alura/forum/mapper/TopicCreateMapper.kt | rdiego26 | 611,817,827 | false | null | package br.com.alura.forum.mapper
import br.com.alura.forum.dto.CreateTopic
import br.com.alura.forum.model.Topic
import br.com.alura.forum.service.CourseService
import br.com.alura.forum.service.UserService
import org.springframework.stereotype.Component
@Component
class TopicCreateMapper(
private val courseServ... | 0 | Kotlin | 0 | 0 | 046f8d1d0f75ac2b4c3974c5135d2127a85e6085 | 676 | demo-forum-spring-boot-and-kotlin | MIT License |
app/src/main/java/com/breezebengaldetergentproducts/features/stockAddCurrentStock/api/ShopAddStockProvider.kt | DebashisINT | 863,405,964 | false | {"Kotlin": 15991783, "Java": 1032672} | package com.breezebengaldetergentproducts.features.stockAddCurrentStock.api
import com.breezebengaldetergentproducts.features.location.shopRevisitStatus.ShopRevisitStatusApi
import com.breezebengaldetergentproducts.features.location.shopRevisitStatus.ShopRevisitStatusRepository
object ShopAddStockProvider {
fun p... | 0 | Kotlin | 0 | 0 | 0cd8b29158b494893e3d7be77b87a725e3d49abf | 448 | BengalDetergentProducts | Apache License 2.0 |
pretixscan/gui/src/main/kotlin/eu/pretix/pretixscan/desktop/ui/MainController.kt | JonasOstergaard | 370,630,356 | false | null | package eu.pretix.pretixscan.desktop.ui
import com.github.kittinunf.fuel.httpPost
import eu.pretix.libpretixsync.check.TicketCheckProvider
import eu.pretix.libpretixsync.db.Answer
import eu.pretix.pretixscan.desktop.PretixScanMain
import eu.pretix.pretixscan.desktop.VERSION
import org.json.JSONObject
import java.util.... | 0 | Kotlin | 0 | 0 | a769845aaa396c4ddaa1007b96691a6cf2e62395 | 2,701 | pretixscan-windows-modified-mavea | Apache License 2.0 |
composeApp/src/desktopMain/kotlin/com/tecknobit/refy/viewmodels/collections/CollectionListViewModel.kt | N7ghtm4r3 | 832,103,900 | false | {"Kotlin": 391913, "Java": 1845} | package com.tecknobit.refy.viewmodels.collections
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.snapshots.SnapshotStateList
import androidx.compose.runtime.toMutableStateList
import androidx.lifecycle.ViewModel
import com.tecknobit.equinox.FetcherManager.FetcherManagerWrapper
impor... | 0 | Kotlin | 0 | 0 | 9aad2edeac2a2e1bbe8a27c219be31b4a29dd4a4 | 2,405 | Refy-Desktop | MIT License |
app/src/androidTest/java/com/bandiago/cointrends/activity/MainActivityTest.kt | franticnick | 158,977,620 | false | null | /*
* Copyright (c) 2018 Bandiago
*
* 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 | 3 | 16 | d4b732462f78ffb0bf7c805effed1f8d04d0d79a | 6,022 | cointrends | Apache License 2.0 |
superwall/src/main/java/com/superwall/sdk/misc/CurrentActivityTracker.kt | superwall | 642,585,064 | false | {"Kotlin": 1190760} | package com.superwall.sdk.misc
import android.app.Activity
import android.app.Application
import android.os.Bundle
class CurrentActivityTracker :
Application.ActivityLifecycleCallbacks,
ActivityProvider {
private var currentActivity: Activity? = null
override fun onActivityCreated(
activity: ... | 6 | Kotlin | 3 | 9 | 2582de8d48af7c0ad080e30949d920e8a34d9219 | 1,316 | Superwall-Android | MIT License |
sphinx/service/features/media-player/feature-service-media-player-android/src/main/java/chat/sphinx/feature_service_media_player_android/di/MediaServiceModule.kt | stakwork | 340,103,148 | false | {"Kotlin": 4019370, "Java": 403469, "JavaScript": 4745, "HTML": 4706, "Shell": 2453} | package chat.sphinx.feature_service_media_player_android.di
import android.app.Application
import chat.sphinx.concept_repository_feed.FeedRepository
import chat.sphinx.concept_service_media.MediaPlayerServiceController
import chat.sphinx.feature_service_media_player_android.MediaPlayerServiceControllerImpl
import dagg... | 90 | Kotlin | 11 | 18 | a28cbb8174ef7874d156f31e22023b014cba6029 | 1,153 | sphinx-kotlin | MIT License |
core_android/src/main/java/mohamedalaa/mautils/core_android/extensions/_Log.kt | MohamedAlaaEldin636 | 178,618,838 | false | null | /*
* Copyright (c) 2019 Mohamed Alaa
*
* 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... | 0 | Kotlin | 0 | 0 | 16d6a8fdbf0d851c74485bdc1a609afaf3bb76f9 | 3,049 | MAUtils | Apache License 2.0 |
app/src/main/java/com/stanford/edu/HistoryActivity.kt | qwang70 | 258,441,849 | false | null | package com.stanford.edu
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.stanford.edu.MyApplication.Companion.tipInfoList
class HistoryActivity : AppCompatActivity() {
priva... | 0 | Kotlin | 0 | 0 | eae96df7bacb0fdf4fdd1cece7dfe9c9a736d81f | 1,212 | Tippy | Apache License 2.0 |
app/src/main/java/app/razar/vincent_sample/App.kt | razar-dev | 379,371,419 | false | null | package app.razar.vincent_sample
import android.app.Application
import app.razar.vincent.Style
import app.razar.vincent.StylePack
import app.razar.vincent.initVincent
class App: Application() {
override fun onCreate() {
super.onCreate()
val setting = getSharedPreferences("app.razar.vincent_sampl... | 0 | Kotlin | 0 | 0 | cd516f1fe6e92a2653395cd3f08c249d7392c8dc | 913 | Vincent | Apache License 2.0 |
sample/sample-app/src/test/kotlin/com/farcsal/sample/testengine/clock/TestClock.kt | fzoli | 541,286,565 | false | {"Kotlin": 369907, "ANTLR": 1659} | /*
* Copyright 2022 <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... | 0 | Kotlin | 0 | 1 | a3ead5eaf24c7189f2507e7d8aba25ff76e53ef9 | 1,138 | dql-kotlin | Apache License 2.0 |
src/main/kotlin/me/duncte123/io/Main.kt | dunste123 | 768,797,973 | false | {"Kotlin": 13960, "Dockerfile": 368} | package me.duncte123.io
import net.dv8tion.jda.api.JDABuilder
val commandManager = CommandManager()
fun main() {
commandManager.registerUserCommands()
JDABuilder.createLight(System.getenv("BOT_TOKEN"))
.addEventListeners(Listener())
.build()
}
| 0 | Kotlin | 1 | 0 | d5ead22bb3cfeffd6256e5c96761723ea046695b | 272 | io | MIT License |
src/main/kotlin/org/partiql/scribe/ScribeCompiler.kt | partiql | 716,254,976 | false | {"Kotlin": 322500} | package org.partiql.scribe
import org.partiql.ast.AstNode
import org.partiql.ast.Statement
import org.partiql.ast.Type
import org.partiql.ast.util.AstRewriter
import org.partiql.errors.Problem
import org.partiql.errors.ProblemCallback
import org.partiql.errors.ProblemSeverity
import org.partiql.parser.PartiQLParser
im... | 6 | Kotlin | 0 | 4 | b295356e7112bbf364f4bdb0727d24c7bdda8ff3 | 3,361 | partiql-scribe | Apache License 2.0 |
library/sync/src/main/java/ir/kaaveh/sync/initializer/SyncInitializer.kt | Kaaveh | 576,928,671 | false | null | package ir.kaaveh.sync.initializer
import android.content.Context
import androidx.startup.Initializer
import androidx.work.ExistingWorkPolicy
import androidx.work.WorkManager
import androidx.work.WorkManagerInitializer
import ir.kaaveh.sync.Sync
import ir.kaaveh.sync.SyncWorkName
import ir.kaaveh.sync.worker.SyncWorke... | 1 | Kotlin | 14 | 98 | d0504db4e522a95b8732ed04a0de35eef7def700 | 872 | ComposeNews | Apache License 2.0 |
AndroidFirebaseApp/app/src/main/java/br/inatel/alexander/androidfirebaseapp/productdetail/ProductDetailViewModel.kt | inatel-codes | 497,574,642 | false | {"Kotlin": 61929, "CMake": 1779, "C++": 356} | package br.inatel.alexander.androidfirebaseapp.productdetail
import android.util.Log
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import br.inatel.alexander.androidfirebaseapp.model.Product
import br.inatel.alexander.androidfirebaseapp.persistence.ProductRepository
private const val T... | 0 | Kotlin | 0 | 0 | 4006bc620359b879338830ea938f084b1f63ed46 | 1,546 | DM125 | MIT License |
src/main/kotlin/com/forgerock/sapi/gateway/framework/configuration/ExternalSystemDependenciesConfig.kt | SecureApiGateway | 795,036,493 | false | {"Kotlin": 116164, "Makefile": 1375, "Dockerfile": 379} | package com.forgerock.sapi.gateway.framework.configuration
/**
* This class is initialized by Jackson from the config file specified in Config.kt
*/
data class ExternalSystemDependenciesConfig(
val variables: List<String>,
val trustedDirectory: ProductionTrustedDirectoryConfig,
val apiUnderTest: ApiConfi... | 1 | Kotlin | 0 | 0 | 446a008372ac1fcc95424f9c45e979ce75e54cc9 | 3,981 | secure-api-gateway-functional-test-framework | Apache License 2.0 |
multiplatform-compose/src/commonMain/kotlin/com/rouge41/kmm/compose/material/Text.kt | cl3m | 327,994,833 | false | null | package com.rouge41.kmm.compose.material
import com.rouge41.kmm.compose.runtime.Composable
import com.rouge41.kmm.compose.ui.Modifier
import com.rouge41.kmm.compose.ui.graphics.Color
@Composable
expect fun Text(
text: String,
modifier: Modifier = Modifier,
color: Color = Color.Unspecified) | 2 | Kotlin | 24 | 458 | 4bf075118ccc5f80d03e4ed28118299e1b749182 | 316 | multiplatform-compose | Apache License 2.0 |
app/src/main/java/com/lyscraft/apparel/compose/theme/Font.kt | brahman10 | 843,088,920 | false | {"Kotlin": 47388} | package com.lyscraft.apparel.compose.theme
import androidx.compose.ui.text.font.Font
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
import com.lyscraft.apparel.R
val Montserrat = FontFamily(
//normal
Font(R.font.montserrat_thin, FontWeight.Thin),
Font(R.fo... | 0 | Kotlin | 0 | 0 | fdfbc5a48a48933d667f97aefba8348f11bf56d8 | 1,280 | MovieAppCompose | MIT License |
feature-staking-impl/src/main/java/io/novafoundation/nova/feature_staking_impl/presentation/staking/rewardDestination/confirm/parcel/ConfirmRewardDestinationPayload.kt | novasamatech | 415,834,480 | false | {"Kotlin": 11121812, "Rust": 25308, "Java": 17664, "JavaScript": 425} | package io.novafoundation.nova.feature_staking_impl.presentation.staking.rewardDestination.confirm.parcel
import android.os.Parcelable
import io.novafoundation.nova.feature_wallet_api.presentation.mixin.fee.FeeParcelModel
import kotlinx.android.parcel.Parcelize
@Parcelize
class ConfirmRewardDestinationPayload(
va... | 12 | Kotlin | 30 | 50 | 127f8739ca86dc74d006f018237daed0de5095a1 | 415 | nova-wallet-android | Apache License 2.0 |
core/util/src/commonMain/kotlin/com/thomaskioko/tvmaniac/util/DateFormatter.kt | c0de-wizard | 361,393,353 | false | null | package com.thomaskioko.tvmaniac.util
const val DATE_PATTERN = "EEE, MMM d, yyyy"
interface DateFormatter {
/**
* Returns the current time in milliseconds
*
* @return timestamp
*/
fun getTimestampMilliseconds(): Long
/**
* Formats date to provided pattern
*
* @param d... | 9 | Kotlin | 13 | 98 | 8bc3853d84c58520dffe26ddb260a2e7b6482ae9 | 479 | tv-maniac | Apache License 2.0 |
tipoftheday/src/main/kotlin/com/deflatedpickle/rawky/tipoftheday/TipOfTheDay.kt | DeflatedPickle | 286,057,841 | false | null | /* Copyright (c) 2020 DeflatedPickle under the MIT license */
package com.deflatedpickle.rawky.tipoftheday
import com.deflatedpickle.haruhi.Haruhi
import com.deflatedpickle.haruhi.api.plugin.Plugin
import com.deflatedpickle.haruhi.api.plugin.PluginType
import com.deflatedpickle.haruhi.event.EventWindowShown
import co... | 1 | Kotlin | 0 | 0 | 67bff386b444a4ac443fb1b0e262ea57557a5f3b | 1,244 | sniffle | MIT License |
Kotlin/src/main/kotlin/fr97/medium/Encryption.kt | FR97 | 273,481,555 | false | null | package fr97.medium
import java.util.*
import kotlin.io.*
import kotlin.math.sqrt
fun encryption(s: String): String {
val withoutSpaces = s.filterNot { it == ' ' }
val lengthSqrt = sqrt(withoutSpaces.length.toDouble()).toInt()
val col = if(withoutSpaces.length > lengthSqrt*lengthSqrt) lengthSqrt+1 else ... | 0 | Kotlin | 0 | 0 | 1b13faaa1e7976c55b7400f901c6a84a2e2c52fc | 738 | hackerrank | MIT License |
app/src/main/java/com/megical/easyaccess/example/MainActivity.kt | megical | 369,156,591 | false | {"Kotlin": 23831} | package com.megical.easyaccess.example
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.megical.easyaccess.example.ui.main.ExampleFragment
import timber.log.Timber
import timber.log.Timber.DebugTree
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstance... | 0 | Kotlin | 1 | 0 | 4e5434df7e4ab6cc2697cae2b6294da7494c510b | 678 | megical-easyaccess-example-android | MIT License |
backend/todolist/src/main/kotlin/com/steiner/workbench/todolist/service/TaskProjectService.kt | nesteiner | 693,014,583 | false | {"Kotlin": 366481, "Dart": 247737, "C++": 24228, "CMake": 19460, "HTML": 1843, "C": 1425} | package com.steiner.workbench.todolist.service
import com.steiner.workbench.common.DEFAULT_AVATAR_ID
import com.steiner.workbench.common.exception.BadRequestException
import com.steiner.workbench.common.util.Page
import com.steiner.workbench.login.table.Users
import com.steiner.workbench.todolist.model.TaskProject
imp... | 1 | Kotlin | 0 | 0 | e0fe7a0f9aca965bc74736f1364153a695597bfe | 5,914 | Workbench | MIT License |
app/src/main/kotlin/ru/maksonic/beresta/ui/MainActivity.kt | maksonic | 580,058,579 | false | {"Kotlin": 1622432} | package ru.maksonic.beresta.ui
import android.content.res.Configuration
import android.graphics.Color
import android.os.Bundle
import androidx.activity.SystemBarStyle
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.animation.core.tween
import androidx.compo... | 0 | Kotlin | 0 | 0 | 227b0a5f6c27b0f731b1f6e81b1fe2deeaa720aa | 5,202 | Beresta | MIT License |
src/test/kotlin/org/occidere/ticketseer/service/MusicalTicketRepositoryTest.kt | occidere | 306,612,792 | false | null | package org.occidere.ticketseer.service
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
import org.occidere.ticketseer.configuration.ElasticsearchConfiguration
import org.occidere.ticketseer.enums.SiteType
import org.occidere.ticketseer.vo.MusicalTicket
import org.springframework.beans.factor... | 2 | Kotlin | 1 | 5 | b8f87e4dc0ae9bef3be0dc0a72742039b86fa11a | 2,072 | ticketseer | Apache License 2.0 |
app/src/main/java/com/bulletapps/candypricer/data/repository/CandyPricerRepository.kt | jvsena42 | 485,055,339 | false | {"Kotlin": 265086} | package com.bulletapps.candypricer.data.repository
import com.bulletapps.candypricer.config.Resource
import com.bulletapps.candypricer.data.parameters.*
import com.bulletapps.candypricer.data.response.LoginResponse
import com.bulletapps.candypricer.data.response.UserResponse
import com.bulletapps.candypricer.domain.mo... | 18 | Kotlin | 0 | 2 | c89da3d248d32f976ad7f0d918815822787ae33a | 1,770 | baking_calculator | MIT License |
app/src/main/java/com/gram/pictory/model/UserModel.kt | notmyfault02 | 178,123,874 | false | null | package com.gram.pictory.model
//data class UserModel (
// var username: String,
// var id: String,
// var birth: String,
// var myfile: String,
// var active: Boolean,
// var profileIMG: String,
// var imageName: ArrayList<String>,
// var postCount: String,
// var followingCount: String,
//... | 0 | Kotlin | 0 | 1 | 503ee703d906ee61c90ac737f3cfad86d662c20d | 432 | Pictory_Master | MIT License |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Lift.kt | amarcolini | 557,562,421 | false | {"Kotlin": 94873, "Java": 41907} | package org.firstinspires.ftc.teamcode
import com.amarcolini.joos.command.*
import com.amarcolini.joos.control.PIDCoefficients
import com.amarcolini.joos.control.PIDFController
import com.amarcolini.joos.dashboard.JoosConfig
import com.amarcolini.joos.profile.MotionProfileGenerator
import com.amarcolini.joos.profile.M... | 0 | Kotlin | 0 | 0 | 5b6595ba7098c6d924b8a0f05812d5f225f5e21c | 8,382 | 18421-PP | BSD 3-Clause Clear License |
app-testdb/src/jsMain/kotlin/ExampleView.kt | UstadMobile | 344,538,858 | false | null | import db2.ExampleEntity2
interface ExampleView {
var list: List<ExampleEntity2>?
var entity: ExampleEntity2
} | 0 | Kotlin | 0 | 89 | 58f93d9057ece78cc3f8be3d4d235c0204a15f11 | 119 | door | Apache License 2.0 |
lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/TokenizationDecisioningRetrieveSecretParamsTest.kt | lithic-com | 658,974,440 | false | {"Kotlin": 6900850, "Shell": 3630, "Dockerfile": 399} | // File generated from our OpenAPI spec by Stainless.
package com.lithic.api.models
import com.lithic.api.models.*
import org.junit.jupiter.api.Test
class TokenizationDecisioningRetrieveSecretParamsTest {
@Test
fun createTokenizationDecisioningRetrieveSecretParams() {
TokenizationDecisioningRetrieve... | 0 | Kotlin | 0 | 2 | 7fd02f6dcbd597a96e4ab4ad136de7f01a12c576 | 359 | lithic-kotlin | Apache License 2.0 |
common/src/commonMain/kotlin/com/artemchep/keyguard/common/usecase/CipherPlaceholder.kt | AChep | 669,697,660 | false | {"Kotlin": 5516822, "HTML": 45876} | package com.artemchep.keyguard.common.usecase
import com.artemchep.keyguard.common.io.IO
import com.artemchep.keyguard.common.model.DSecret
interface CipherPlaceholder : (DSecret.Uri, String) -> IO<Boolean>
| 66 | Kotlin | 31 | 995 | 557bf42372ebb19007e3a8871e3f7cb8a7e50739 | 209 | keyguard-app | Linux Kernel Variant of OpenIB.org license |
src/me/anno/ui/input/NumberInput.kt | won21kr | 351,713,352 | true | {"Kotlin": 1983578, "Java": 301507, "C": 75596, "GLSL": 9436} | package me.anno.ui.input
import me.anno.gpu.Cursor
import me.anno.input.MouseButton
import me.anno.objects.animation.AnimatedProperty
import me.anno.objects.animation.Type
import me.anno.ui.base.Visibility
import me.anno.ui.base.groups.PanelListY
import me.anno.ui.input.components.NumberInputComponent
import me.anno.u... | 0 | null | 0 | 0 | b85295f59ddfa9fc613a384d439fd1b30b06a5a4 | 3,002 | RemsStudio | Apache License 2.0 |
demo/app/src/main/java/dev/goobar/advancedandroiddemo/home/DemoNavigationDestinations.kt | goobar-dev | 655,460,041 | false | null | package dev.goobar.advancedandroiddemo.home
import dev.goobar.advancedandroiddemo.data.AndroidVersionInfo
object DemoNavigationDestinations {
object VersionsList : NavigationDestination
object VersionDetails : ArgumentDestination<AndroidVersionInfo>
object Topics : NavigationDestination
object Notes :... | 0 | Kotlin | 0 | 0 | e88c2601dbc255e14bf40ae9b7ae82bac68fbdef | 436 | android-403-advanced-android-kotlin | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.