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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eva-icons/src/commonMain/kotlin/compose/icons/evaicons/fill/Undo.kt | DevSrSouza | 311,134,756 | false | null | package compose.icons.evaicons.fill
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.compose.ui.graph... | 17 | null | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 2,769 | compose-icons | MIT License |
mandark-compose/src/main/kotlin/dev/jonpoulton/mandark/libraries/ui/LibrariesScreen.kt | jonapoul | 378,197,473 | false | null | package dev.jonpoulton.mandark.libraries.ui
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compo... | 0 | Kotlin | 0 | 0 | 2696c6ba88a623e713a3993d12eeccc9f9723482 | 4,525 | mandark | Apache License 2.0 |
kontroller/src/test/kotlin/no/ssb/kostra/validation/rule/barnevern/individrule/Tiltak04Test.kt | statisticsnorway | 414,216,275 | false | {"Kotlin": 1602685, "TypeScript": 57803, "Batchfile": 6608, "HTML": 694, "SCSS": 110} | package no.ssb.kostra.validation.rule.barnevern.individrule
import io.kotest.core.spec.style.BehaviorSpec
import no.ssb.kostra.validation.report.Severity
import no.ssb.kostra.validation.rule.ForAllRowItem
import no.ssb.kostra.validation.rule.KostraTestFactory.validationRuleWithArgsTest
import no.ssb.kostra.validation.... | 3 | Kotlin | 0 | 1 | bdb1043b8d6d6aa871d940be24f2b125489c6620 | 3,008 | kostra-kontrollprogram | MIT License |
app/src/main/java/com/example/inroad/di/WorkerComponent.kt | Sinetspark | 643,838,049 | false | null | package com.example.inroad.di
import android.content.Context
import androidx.work.WorkerParameters
import com.example.inroad.workers.BumpWorker
import dagger.BindsInstance
import dagger.Component
import javax.inject.Scope
@Component(
modules = [WorkerModule::class],
dependencies = [AppComponent::class]
)
@Wor... | 0 | Kotlin | 0 | 0 | 580055f91f95486d739ec7c8a737fefa8b2fa72b | 748 | RoadScan.Android | MIT License |
app/src/main/java/com/example/inroad/di/WorkerComponent.kt | Sinetspark | 643,838,049 | false | null | package com.example.inroad.di
import android.content.Context
import androidx.work.WorkerParameters
import com.example.inroad.workers.BumpWorker
import dagger.BindsInstance
import dagger.Component
import javax.inject.Scope
@Component(
modules = [WorkerModule::class],
dependencies = [AppComponent::class]
)
@Wor... | 0 | Kotlin | 0 | 0 | 580055f91f95486d739ec7c8a737fefa8b2fa72b | 748 | RoadScan.Android | MIT License |
app/src/main/java/org/stepik/android/view/comment/ui/adapter/delegate/CommentLoadMoreRepliesAdapterDelegate.kt | StepicOrg | 42,045,161 | false | null | package org.stepik.android.view.comment.ui.adapter.delegate
import android.view.View
import android.view.ViewGroup
import kotlinx.android.synthetic.main.item_comment_load_more_replies.view.*
import org.stepic.droid.R
import org.stepik.android.presentation.comment.model.CommentItem
import ru.nobird.android.ui.adapterde... | 13 | null | 54 | 189 | dd12cb96811a6fc2a7addcd969381570e335aca7 | 1,473 | stepik-android | Apache License 2.0 |
examples/src/tl/ton/id/config/IdConfigLocal.kt | andreypfau | 719,064,910 | false | {"Kotlin": 62259} | // This file is generated by TLGenerator.kt
// Do not edit manually!
package tl.ton.id.config
import io.github.andreypfau.tl.serialization.TLCombinatorId
import kotlin.jvm.JvmName
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import tl.ton.PrivateKey
@Serializable
@SerialName("id.c... | 0 | Kotlin | 0 | 1 | 11f05ad1f977235e3e360cd6f6ada6f26993208e | 483 | tl-kotlin | MIT License |
app/src/main/java/cz/blackchameleon/trendingprojects/framework/database/db/DeveloperDb.kt | klepackovakarolina | 327,316,960 | false | null | package cz.blackchameleon.trendingprojects.framework.database.db
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import cz.blackchameleon.domain.Developer
import cz.blackchameleon.domain.DeveloperRepo
/**
* Developer entity representation in DB
* Defines DB table
*
* @a... | 0 | Kotlin | 0 | 0 | 43b8ca613f068f06dbc7c8a20569c0788f0bdf39 | 942 | trending-projects | MIT License |
clef-workflow-api/clef-workflow-api-factory/clef-workflow-api-factory-workflow/src/main/java/io/arkitik/clef/workflow/api/usecase/factory/workflow/request/action/CreateTaskActionRequest.kt | arkitik | 443,436,455 | false | {"Kotlin": 433170, "Shell": 268, "Dockerfile": 244} | package io.arkitik.clef.workflow.api.usecase.factory.workflow.request.action
import io.arkitik.radix.develop.usecase.model.UseCaseRequest
import io.arkitik.clef.workflow.api.usecase.factory.workflow.request.DomainKeyRequest
import javax.validation.Valid
import javax.validation.constraints.NotBlank
import javax.validat... | 0 | Kotlin | 0 | 0 | 785e1b4ee583b6a6e3ea01e656eecd8365f171ef | 943 | clef-workflow | Apache License 2.0 |
app/src/main/java/ar/com/utn/devmobile/servimatch/MyPreferences.kt | UTN-FRBA-Mobile | 697,567,794 | false | {"Kotlin": 101906, "Python": 27300} | package ar.com.utn.devmobile.servimatch
import android.util.Log
import com.google.android.gms.maps.model.LatLng
class MyPreferences {
companion object {
private var instance: MyPreferences? = null
fun getInstance(): MyPreferences {
if (instance == null) {
instance = MyP... | 0 | Kotlin | 0 | 0 | ae043dbcfc63f3a773ecabe5e237e0d70362ee3d | 1,245 | ServiMatch | MIT License |
discussions/discussions-repo-stubs/src/main/kotlin/DiscussionsRepoStub.kt | Piligrim678 | 600,730,971 | false | null | package ru.music.discussions.repository.inmemory
import repo.*
import ru.music.common.repo.DbDiscussionUsersIdRequest
import ru.music.discussions.stubs.DiscStub
class DiscussionsRepoStub() : IDiscussionRepository {
override suspend fun createDiscussion(rq: DbDiscussionRequest): DbDiscussionResponse {
retu... | 1 | Kotlin | 0 | 0 | 2a10c588334d27a8864ff893c8a4871b8cbecac4 | 1,817 | music | Apache License 2.0 |
app/src/main/java/com/example/android/roomwordssample/WordListAdapter.kt | ferchi | 555,616,675 | false | {"Kotlin": 31274} | /*
* Copyright (C) 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 0 | Kotlin | 0 | 0 | 4075dd640305d0f4fe3db15162a7d262330606c7 | 2,849 | PruebaKosmos | Apache License 2.0 |
demo/plot/src/jvmBatikMain/kotlin/demo/plot/batik/plotConfig/AxisPositionFixedBreaksRotatedBatik.kt | JetBrains | 176,771,727 | false | {"Kotlin": 7616680, "Python": 1299756, "Shell": 3453, "C": 3039, "JavaScript": 931, "Dockerfile": 94} | /*
* 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 demo.plot.batik.plotConfig
import demo.plot.common.model.plotConfig.AxisPositionFixedBreaksRotated
import demo.common.batik.demoUtils.PlotSpecsDemoWindowBatik
fun m... | 150 | Kotlin | 51 | 1,561 | c8db300544974ddd35a82a90072772b788600ac6 | 494 | lets-plot | MIT License |
src/main/kotlin/dev/akif/cookbook/ingredient/CreateMeasuredIngredient.kt | makiftutuncu | 575,883,314 | false | {"Kotlin": 35568} | package dev.akif.cookbook.ingredient
data class CreateMeasuredIngredient(
val name: String,
val vegetarian: Boolean,
val value: Double,
val unit: Unit
)
| 1 | Kotlin | 0 | 1 | e82312edc33df58bd7a217d18504502092198798 | 170 | cook-book | MIT License |
src/main/kotlin/me/centralhardware/znatoki/telegram/statistic/entity/TelegramUser.kt | centralhardware | 867,806,349 | false | {"Kotlin": 126182, "Dockerfile": 572} | package me.centralhardware.znatoki.telegram.statistic.entity
import kotliquery.Row
import me.centralhardware.znatoki.telegram.statistic.parseLongList
import me.centralhardware.znatoki.telegram.statistic.toRole
class TelegramUser(val id: Long, val role: Role, val services: List<Long>, val name: String)
fun Row.parseU... | 0 | Kotlin | 0 | 0 | b822eb63092ee035ae657928b34aa4f56effcca2 | 472 | StudyCenterStatistic | MIT License |
src/test/kotlin/com/openmeteo/api/HistoricalTest.kt | open-meteo | 524,706,191 | false | {"Kotlin": 145141} | package com.openmeteo.api
import com.openmeteo.api.common.time.Date
import com.openmeteo.api.common.units.Units
import kotlin.test.Test
import kotlin.test.assertContains
import kotlin.test.assertContentEquals
import kotlin.test.assertEquals
class HistoricalTest {
@Test
fun `Amsterdam, 1st January 2020, no mo... | 6 | Kotlin | 1 | 20 | c342acd53559fe92b54821d6603709fee645e2d0 | 6,958 | open-meteo-api-kotlin | MIT License |
app/src/main/java/com/silencefly96/piecediary/module/plan/PlanViewModel.kt | silencefly96 | 333,001,955 | false | null | package com.silencefly96.piecediary.module.plan
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.silencefly96.piecediary.module.plan.model.Plan
import com.silencefly96.piecediary.module.plan.model.PlanRepository
class PlanViewModel: ViewModel(... | 0 | Kotlin | 0 | 0 | cd8beac02b9b306bd9290055928df0d4710b21f4 | 960 | PieceDiary | Apache License 2.0 |
platform/backend/core/src/main/kotlin/io/hamal/core/config/repo/MemoryRepositoryConfig.kt | hamal-io | 622,870,037 | false | {"Kotlin": 2339776, "C": 1398561, "TypeScript": 307292, "Lua": 119439, "C++": 40661, "Makefile": 11728, "Java": 7564, "CMake": 2810, "JavaScript": 2640, "CSS": 1567, "Shell": 977, "HTML": 903} | package io.hamal.core.config.repo
import io.hamal.repository.api.*
import io.hamal.repository.memory.AuthMemoryRepository
import io.hamal.repository.memory.ExecLogMemoryRepository
import io.hamal.repository.memory.RequestMemoryRepository
import io.hamal.repository.memory.StateMemoryRepository
import io.hamal.repositor... | 44 | Kotlin | 0 | 0 | bf899fa80b23f04ab5cf0c431e5e37d3c1038491 | 6,184 | hamal | Creative Commons Zero v1.0 Universal |
app/src/test/java/per/nullist/targetedcleaner/ExampleUnitTest.kt | nullist0 | 345,609,486 | false | {"Kotlin": 66074} | package per.nullist.targetedcleaner
import org.junit.Test
import org.junit.Assert.*
import org.junit.Rule
import org.mockito.BDDMockito.given
import org.mockito.Mockito.mock
import org.mockito.junit.MockitoJUnit
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing ... | 0 | Kotlin | 2 | 6 | 2a5952d01ded961a3f0284404adecf188ab3fb85 | 750 | targeted_cleaner | Apache License 2.0 |
app/src/main/kotlin/com/github/anninpavel/androidarchitecture/data/mapper/UserMapper.kt | pavelannin | 142,320,700 | false | null | /*
* Copyright 2018 <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 wri... | 0 | Kotlin | 0 | 2 | ce12ebf12ca659ab9c7afacbb325687fca546aa7 | 1,162 | android-mvvm-architecture-kotlin | Apache License 2.0 |
app/src/main/java/com/are/magicboxtwo/ui/common/navigationdrawer/NavigationItemsList.kt | Andreu35 | 548,239,119 | false | {"Kotlin": 55999} | package com.are.magicboxtwo.ui.common.navigationdrawer
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Home
import androidx.compose.material.icons.filled.Info
import androidx.compose.material.icons.filled.Settings
import androidx.compose.runtime.Composable
enum class Navigat... | 0 | Kotlin | 0 | 0 | 91bd4ee7be51f0aa1e91a58d459835b5eebe069d | 1,097 | MagicBox2 | Apache License 2.0 |
app/src/main/kotlin/com/twain/interprep/presentation/ui/components/interview/IPDatePicker.kt | Audienix | 614,703,096 | false | null | package com.twain.interprep.presentation.ui.components.interview
import android.icu.text.SimpleDateFormat
import android.icu.util.TimeZone
import androidx.compose.material3.DatePicker
import androidx.compose.material3.DatePickerDefaults
import androidx.compose.material3.DatePickerDialog
import androidx.compose.materia... | 2 | Kotlin | 0 | 0 | 10fd46445148d42897ea31ebd655edaf0cb585da | 3,571 | InterPrep | Apache License 2.0 |
tink/src/iosMain/kotlin/io/github/ryunen344/tink/daead/DeterministicAeadConfig.kt | RyuNen344 | 483,299,591 | false | null | package io.github.ryunen344.tink.daead
import com.google.crypto.tink.TINKConfig
import com.google.crypto.tink.TINKDeterministicAeadConfig
import io.github.ryunen344.tink.exception.GeneralSecurityException
import io.github.ryunen344.tink.util.asThrowable
import io.github.ryunen344.tink.util.memScopedInstance
import kot... | 4 | Kotlin | 1 | 9 | 05cf898fbbc3bdb460584980a0c373d8e72f2f1a | 808 | tink-kmm | MIT License |
app/src/test/java/volovyk/guerrillamail/data/remote/GuerrillaEmailDatabaseTest.kt | oleksandrvolovik | 611,731,548 | false | null | package volovyk.guerrillamail.data.remote
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.test.runTest
import org.junit.Assert.assertEquals
import org.junit.Test
import org.mockito.Mockito.anyInt
import org.mockito.Mockito.mock
import org.mockito.Mockito.`when`
import org.mockito.kotlin.anyOrNull
import... | 0 | Kotlin | 0 | 0 | 7b64b76b9c01b9289d4147bdb4115a0d66cbca27 | 4,789 | guerrilla-mail-android-client | MIT License |
src/main/kotlin/com/societegenerale/githubcrawler/parsers/FileContentParser.kt | amitaucs | 138,293,132 | true | {"Kotlin": 84086, "Java": 43670} | package com.societegenerale.githubcrawler.parsers
import com.societegenerale.githubcrawler.IndicatorDefinition
interface FileContentParser {
fun getNameInConfig(): String
fun parseFileContentForIndicator(fileContent: String, pathToFileToGetIndicatorsFrom:String, kpi: IndicatorDefinition): Map<String, Strin... | 0 | Kotlin | 0 | 0 | 794fae0c6a4f800e5ecba987a71519721807d00c | 392 | github-crawler | Apache License 2.0 |
app/src/main/kotlin/com/fernandocejas/sample/framework/network/MoviesApi.kt | Toffor | 120,717,368 | true | {"Kotlin": 66125} | package com.fernandocejas.sample.framework.network
import com.fernandocejas.sample.features.movies.MovieDetailsEntity
import com.fernandocejas.sample.features.movies.MovieEntity
import io.reactivex.Observable
import io.reactivex.Single
import retrofit2.http.GET
import retrofit2.http.Path
internal interface MoviesApi ... | 0 | Kotlin | 0 | 0 | cff78cb5eb8275e6813682c2a3ed3b9ea75c267d | 516 | Android-CleanArchitecture-Kotlin | Apache License 2.0 |
开发者挑战项目/水母运动/Jellyfish-ARouter/base/src/main/java/com/logic/utils/ext/Ext.kt | outmanchen | 370,955,452 | true | {"Text": 8, "Ignore List": 40, "Markdown": 46, "Gradle": 44, "Java Properties": 19, "Shell": 9, "Batchfile": 7, "Proguard": 28, "XML": 1171, "Kotlin": 96, "Java": 1405, "Nginx": 1, "Python": 8, "HTML": 14, "JSON": 77, "JavaScript": 183, "Vue": 244, "Less": 4, "YAML": 4, "EditorConfig": 3, "Browserslist": 3, "CSS": 36, ... | package com.logic.utils.ext
import android.annotation.SuppressLint
import android.content.Context
import android.provider.Settings
import android.util.Log
import android.widget.Toast
import com.logic.utils.Cache
fun Context.toast(content: String) {
Toast.makeText(this, content, Toast.LENGTH_LONG).show()
log(conte... | 0 | Java | 0 | 1 | 1921e40d8b5db27a4c8e0d9695f32b3dc87c0fa7 | 536 | Developer-Challenge-2021 | MIT License |
core/src/main/kotlin/ch/ergon/dope/resolvable/fromable/Bucket.kt | ergon | 745,483,606 | false | {"Kotlin": 173739} | package ch.ergon.dope.resolvable.fromable
import ch.ergon.dope.resolvable.clause.select.Fromable
import ch.ergon.dope.resolvable.expression.unaliased.type.Field
import ch.ergon.dope.validtype.StringType
abstract class Bucket(open val name: String) : Fromable {
override fun toQueryString(): String = name
}
open c... | 0 | Kotlin | 0 | 3 | 0d97fb4a52b6f0face58f3ae4529d59e2cb9b4ec | 647 | dope-query-builder | MIT License |
features/feature-detail/src/main/java/com/staygrateful/feature_detail/domain/usecase/DetailGameUsecase.kt | rikyahmad | 804,148,308 | false | {"Kotlin": 178776} | package com.staygrateful.feature_detail.domain.usecase
import com.staygrateful.core.network.local.entity.FavoriteGameEntity
import com.staygrateful.core.network.remote.mapper.Resource
import com.staygrateful.core.network.remote.model.DetailGameResponse
import kotlinx.coroutines.flow.Flow
interface DetailGameUsecase {... | 0 | Kotlin | 0 | 0 | 91a03109624d69530a69523cb1f934f8022ac9b2 | 717 | GameListApp | MIT License |
src/main/kotlin/utils/Creep.kt | ciwomuli | 451,797,895 | false | {"JavaScript": 22351, "Kotlin": 19395} | import screeps.api.CARRY
import screeps.api.Creep
import screeps.api.WORK
fun Creep.getWork(): Int {
return this.body.count { it.type == WORK }
}
fun Creep.getCarry(): Int {
return this.body.count { it.type == CARRY }
} | 0 | JavaScript | 0 | 0 | 5e05cf1b86dbda3328e0d9b6c2d51e87b57922bf | 229 | ScreepsKotlin | MIT License |
app/src/main/java/com/dicoding/habitapp/ui/countdown/CountDownActivity.kt | usmarmanalu | 725,555,662 | false | {"Kotlin": 75827} | package com.dicoding.habitapp.ui.countdown
import android.os.*
import android.widget.*
import androidx.appcompat.app.*
import androidx.core.content.IntentCompat.getParcelableExtra
import androidx.lifecycle.*
import androidx.work.*
import com.dicoding.habitapp.R
import com.dicoding.habitapp.data.*
import com.dicoding.h... | 0 | Kotlin | 0 | 0 | d0e2b66b679e939ef0781f042b05c5f16bb4ffd9 | 2,718 | Habits-App | MIT License |
src/main/kotlin/com/github/princesslana/karmaleon/Karmaleon.kt | princesslana | 223,651,988 | false | null | package com.github.princesslana.karmaleon
import com.github.michaelbull.retry.*
import com.github.michaelbull.retry.policy.*
import com.github.michaelbull.retry.policy.limitAttempts
import com.github.princesslana.smalld.SmallD
import java.io.File
import java.net.URLEncoder
import kotlinx.coroutines.*
import org.slf4j.... | 0 | Kotlin | 0 | 2 | c2a729ac83be0f943ec2b02af96626defbbec6f2 | 2,594 | karmaleon | MIT License |
core/test-util/src/main/kotlin/org/futurerobotics/jargon/math/EpsEq.kt | Future14473 | 199,776,352 | false | null | package org.futurerobotics.jargon.math
import org.futurerobotics.jargon.linalg.*
import strikt.api.Assertion
/** Asserts that this [Double] [epsEq] another. */
infix fun Assertion.Builder<Double>.isEpsEqTo(expected: Double): Assertion.Builder<Double> =
assert("is epsEq to %s", expected) {
if (it epsEq exp... | 9 | Kotlin | 0 | 1 | 2cb837a402fb3fe2ce634e07cff9bed426447125 | 1,466 | JARGON | MIT License |
koda-time/src/test/kotlin/com/github/debop/kodatimes/TimeIntervalxTest.kt | debop | 62,798,850 | false | {"Kotlin": 256811} | /*
* Copyright (c) 2016. Sunghyouk Bae <sunghyouk.bae@gmail.com>
* 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... | 3 | Kotlin | 7 | 83 | cbb0efedaa53bdf9d77b230d8477cb0ae0d7abd7 | 1,509 | koda-time | Apache License 2.0 |
src/test/kotlin/br/ufpe/liber/controllers/DefaultExceptionHandlerTest.kt | Liber-UFPE | 733,309,986 | false | {"Kotlin": 140396, "JavaScript": 7520, "SCSS": 3925, "Dockerfile": 1146, "Shell": 805} | package br.ufpe.liber.controllers
import br.ufpe.liber.StaticTemplates
import br.ufpe.liber.shouldContain
import io.kotest.core.spec.style.BehaviorSpec
import io.kotest.matchers.shouldBe
import io.micronaut.http.HttpHeaders
import io.micronaut.http.HttpMethod
import io.micronaut.http.HttpRequest
import io.micronaut.ht... | 0 | Kotlin | 0 | 0 | ff8c03aa91f7acc9591ffda9e1cde69bea71a8ea | 1,367 | visaoholandesa | Apache License 2.0 |
core/model/src/commonMain/kotlin/io/github/droidkaigi/confsched2022/model/PersistentListSerializer.kt | DroidKaigi | 517,191,221 | false | {"Kotlin": 511156, "Swift": 158736, "Shell": 3888, "JavaScript": 521} | package io.github.droidkaigi.confsched.data.core
import kotlinx.collections.immutable.PersistentList
import kotlinx.collections.immutable.PersistentMap
import kotlinx.collections.immutable.PersistentSet
import kotlinx.collections.immutable.toPersistentList
import kotlinx.collections.immutable.toPersistentMap
import ko... | 49 | Kotlin | 201 | 491 | f0ae974c7862e3ff4d70c4841d93ea64bff11ce1 | 3,590 | conference-app-2022 | Apache License 2.0 |
client/src/main/java/com/mytiki/publish/client/ui/Theme.kt | tiki | 745,005,450 | false | {"Kotlin": 31722} | package com.mytiki.publish.client.ui
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.font.Font
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
import com.mytiki.publish.client.R
/**
* Custom Theme definition
*
* @property primaryTextColor de... | 8 | Kotlin | 0 | 0 | 46acca3348e728d1186eb362710c5d98b7132c35 | 1,308 | publish-client-android | MIT License |
composeApp/src/commonTest/kotlin/gemini/GeminiViewModelTest.kt | GilbertoPapa | 808,631,367 | false | {"Kotlin": 21571} | package gemini
import gemini.domain.model.GeminiDTO
import gemini.domain.repository.GeminiRepository
import gemini.domain.usecase.GeminiUseCase
import gemini.presentation.viewmodel.GeminiState
import gemini.presentation.viewmodel.GeminiViewModel
import kotlinx.coroutines.*
import kotlinx.coroutines.flow.*
import kotli... | 0 | Kotlin | 0 | 0 | ce47525bcd44927392430bc4819b08d7c8eb8b08 | 2,107 | Gemini | MIT License |
plugin/src/main/kotlin/ru/astrainteractive/aspekt/di/impl/DiscordEventModuleImpl.kt | Astra-Interactive | 588,890,842 | false | null | package ru.astrainteractive.aspekt.di.impl
import ru.astrainteractive.aspekt.di.RootModule
import ru.astrainteractive.aspekt.event.discord.controllers.DiscordController
import ru.astrainteractive.aspekt.event.discord.controllers.LuckPermsController
import ru.astrainteractive.aspekt.event.discord.controllers.RoleContro... | 0 | Kotlin | 0 | 0 | 206574be4cd03fcd5dcb0c506e35fd5d52ef82d4 | 866 | AspeKt | MIT License |
app/src/main/java/io/deus/wallet/modules/market/overview/ui/MarketOverviewMisc.kt | DeusWallet | 810,708,619 | false | {"Kotlin": 5009329, "Shell": 6095, "Ruby": 1350} | package io.deus.wallet.modules.market.overview.ui
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.painterResource
imp... | 0 | Kotlin | 0 | 0 | f4c5e0fadbf2955edf7ba35d4617f148c191c02b | 1,002 | deus-wallet-android | MIT License |
app/src/main/java/com/example/lively/data/remote/api_endpoints.kt | utkarshgupta2009 | 848,772,461 | false | {"Kotlin": 34410} | package com.example.lively.data.remote
object ApiEndpoints {
const val BASE_URL = "https://v3.football.api-sports.io"
const val LIVE_MATCHES = "/fixtures?live=all"
const val UPCOMING_MATCHES ="/fixtures"
} | 0 | Kotlin | 0 | 0 | a3d148b30a8864ffee12c78a1c7c0c7f74e909c0 | 218 | Lively | MIT License |
kcrypto/src/main/kotlin/org/bouncycastle/kcrypto/PublicKey.kt | bcgit | 196,159,414 | false | {"Kotlin": 458444, "HTML": 419} | package org.bouncycastle.kcrypto
/**
* Base interface for a public key.
*/
interface PublicKey: Encodable
{
} | 0 | Kotlin | 15 | 69 | dc86103f5fef1baf9f6e1cdff17bbf31927637ab | 113 | bc-kotlin | MIT License |
app/src/main/kotlin/com/coredocker/android/business/model/User.kt | rolfwessels | 256,949,423 | false | null | package com.coredocker.android.business.model
import androidx.room.Entity
import java.util.Date
@Entity
class User(
/**
* The id of the user.
*/
id: String,
/**
* The name of the user.
*/
var name: String? = null,
/**
* The email of the user.
*/
var email: String?... | 0 | Kotlin | 0 | 0 | 7efd0255dcc6b3de93ea65428e3fcebd2538b016 | 704 | coredocker-droid | MIT License |
app/src/main/java/com/gdavidpb/tuindice/utils/extensions/Annotation.kt | gdavidpb | 111,769,256 | false | null | package com.gdavidpb.tuindice.utils.extensions
import com.gdavidpb.tuindice.domain.usecase.coroutines.BaseUseCase
import com.gdavidpb.tuindice.utils.annotations.Timeout
import kotlin.reflect.full.findAnnotation
import kotlin.reflect.full.hasAnnotation
fun BaseUseCase<*, *, *, *>.hasTimeoutKey() = this::class.hasAnnot... | 1 | Kotlin | 1 | 12 | 8903acc41a0e204e742f95b51230019b4ac5a00e | 427 | tuindice | MIT License |
src/test/kotlin/com/expedia/graphql/generator/types/MutationTypeBuilderTest.kt | d4rken | 157,257,082 | false | null | package com.expedia.graphql.generator.types
import com.expedia.graphql.TopLevelObject
import com.expedia.graphql.annotations.GraphQLDescription
import com.expedia.graphql.annotations.GraphQLIgnore
import com.expedia.graphql.exceptions.InvalidMutationTypeException
import com.expedia.graphql.generator.extensions.isTrue
... | 0 | null | 0 | 2 | 1d78a129b7f8e7b01c4bed063076a215ca4b29be | 3,421 | graphql-kotlin | Apache License 2.0 |
ledger/src/test/kotlin/org/knowledger/ledger/test/TestMerkleTree.kt | fakecoinbase | 282,563,487 | false | null | package org.knowledger.ledger.test
import assertk.assertThat
import assertk.assertions.containsExactly
import assertk.assertions.isEqualTo
import assertk.assertions.isNotEqualTo
import assertk.assertions.isNotNull
import assertk.assertions.isTrue
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.Test
im... | 0 | Kotlin | 0 | 0 | 8bc64987e1ab4d26663064da06393de6befc30ae | 19,011 | SeriyinslashKnowLedger | MIT License |
kubwa-annotations/src/main/java/com/wesleyelliott/kubwa/annotation/Email.kt | WesleyElliott | 64,468,999 | false | null | package com.wesleyelliott.kubwa.annotation
import com.wesleyelliott.kubwa.rule.EmailRule
/**
* Created by wesley on 2016/07/28.
*/
@ValidateUsing(EmailRule::class)
@Retention(AnnotationRetention.RUNTIME)
@Target(
AnnotationTarget.FUNCTION,
AnnotationTarget.PROPERTY_GETTER,
AnnotationTarget.PROPERTY_SETT... | 1 | Java | 7 | 28 | 557d672a76917c412fdd5c20a258a073af5e3856 | 780 | Kubwa | Apache License 2.0 |
src/main/kotlin/com/waicool20/waicoolutils/javafx/TabPaneExtensions.kt | waicool20 | 135,830,471 | false | null | /*
* The MIT License (MIT)
*
* Copyright (c) waicool20
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, m... | 0 | Kotlin | 1 | 1 | 83c675a414800c1662e3dd33a4cde2b8246962b9 | 2,687 | waicoolUtils | MIT License |
articlelist/src/main/java/guide/betterfuture/articlelist/presentation/mapper/ArticleModelDataMapper.kt | szymonchaber | 165,521,328 | false | null | package guide.betterfuture.articlelist.presentation.mapper
import guide.betterfuture.articlelist.domain.Article
import guide.betterfuture.articlelist.presentation.model.ArticleModel
import javax.inject.Inject
class ArticleModelDataMapper @Inject constructor() {
fun transform(article: Article): ArticleModel {
... | 0 | Kotlin | 0 | 0 | 8ba9f03cd33ee3351fb6a410bc2f85e4adc0c583 | 584 | better-future | MIT License |
src/main/kotlin/com/drost/gradle/buildcache/minio/internal/MinioBuildCacheServiceFactory.kt | aegis123 | 112,730,421 | false | null | package com.drost.gradle.buildcache.minio.internal
import com.drost.gradle.buildcache.minio.MinioBuildCache
import org.gradle.caching.BuildCacheService
import org.gradle.caching.BuildCacheServiceFactory
import io.minio.MinioClient
import org.gradle.caching.BuildCacheException
class MinioBuildCacheServiceFactory : Bui... | 1 | Kotlin | 0 | 7 | 495d2db911eae8afed14a64510391a87225e1341 | 2,062 | minio-buildcache | Apache License 2.0 |
app/src/main/java/com/airy/juju/bean/Message.kt | AiryMiku | 174,809,394 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "YAML": 1, "Proguard": 1, "Kotlin": 112, "XML": 76, "Java": 1} | package com.airy.juju.bean
import android.os.Parcel
import android.os.Parcelable
import java.io.Serializable
/**
* Created by Airy on 2019/3/29
* Mail: <EMAIL>
* Github: AiryMiku
*/
data class Message(
val id: Int,
val type: Int,
val from_id: Int,
val to_id: Int,
val content: String
) : Seri... | 0 | Kotlin | 1 | 1 | 3b0a2035373f9e6dfdf985c5b71c30dcce414273 | 1,225 | JuJu_Android | MIT License |
app/src/main/java/com/example/drawingapp/DrawClass.kt | Fenias-Manhenge | 608,368,129 | false | null | package com.example.drawingapp
import android.content.Context
import android.graphics.*
import android.util.AttributeSet
import android.util.TypedValue
import android.view.MotionEvent
import android.view.View
class DrawClass(context: Context, attrs: AttributeSet): View(context, attrs) {
private lateinit var draw... | 0 | Kotlin | 0 | 0 | 3d2c5549aa95024ffab2f3d47a767210e33904a7 | 3,129 | DrawingApp | MIT License |
app/src/main/java/me/sparker0i/lawnchair/EditableItemInfo.kt | Sparker0i | 102,217,081 | false | null | package me.lal.lawnchair
import android.content.ComponentName
import android.content.Context
import android.graphics.Bitmap
import android.os.Parcelable
import android.os.UserHandle
interface EditableItemInfo : Parcelable {
fun getTitle(): String
fun getTitle(context: Context): String?
fun setTitle(conte... | 1 | null | 2 | 4 | 920debb0978e4f6b6704c4f9e5e0753a260a45ce | 649 | LockLaunch | Apache License 2.0 |
app/src/main/java/me/sparker0i/lawnchair/EditableItemInfo.kt | Sparker0i | 102,217,081 | false | null | package me.lal.lawnchair
import android.content.ComponentName
import android.content.Context
import android.graphics.Bitmap
import android.os.Parcelable
import android.os.UserHandle
interface EditableItemInfo : Parcelable {
fun getTitle(): String
fun getTitle(context: Context): String?
fun setTitle(conte... | 1 | null | 2 | 4 | 920debb0978e4f6b6704c4f9e5e0753a260a45ce | 649 | LockLaunch | Apache License 2.0 |
src/main/kotlin/no/tornado/tornadofx/idea/facet/TornadoFXFacet.kt | edvin | 58,163,963 | false | null | package no.tornado.tornadofx.idea.facet
import com.intellij.application.options.CodeStyle
import com.intellij.facet.Facet
import com.intellij.facet.FacetManager
import com.intellij.openapi.module.Module
import com.intellij.openapi.project.Project
import com.intellij.openapi.util.Disposer
import com.intellij.psi.codeSt... | 22 | Kotlin | 22 | 70 | c02e7b8743c2d0213a6a2f6d1a823610fc3c14dd | 1,918 | tornadofx-idea-plugin | Apache License 2.0 |
src/main/java/com/camoal/jwe/Jwe.kt | camoal | 244,000,643 | false | null | package com.camoal.jwe
import java.security.PrivateKey
import java.security.PublicKey
import java.security.cert.X509Certificate
abstract class Jwe {
class Builder {
private var algorithm = Algorithm.RSA_OAEP
private var certificate: X509Certificate? = null
private lateinit var publicKey... | 0 | Kotlin | 0 | 0 | 7396f6424a01da7ea4850aa815259ee500ddf742 | 1,861 | jwe | MIT License |
app/src/main/java/com/stocksexchange/android/ui/wallets/fragment/WalletsResources.kt | nscoincommunity | 277,168,471 | true | {"Kotlin": 2814235} | package com.stocksexchange.android.ui.wallets.fragment
import com.arthurivanets.adapster.markers.ItemResources
import com.stocksexchange.android.R
import com.stocksexchange.android.model.Settings
import com.stocksexchange.android.utils.providers.StringProvider
import com.stocksexchange.core.formatters.NumberFormatter
... | 0 | null | 0 | 0 | 52766afab4f96506a2d9ed34bf3564b6de7af8c3 | 1,622 | Android-app | MIT License |
app/src/main/java/taufiq/apps/gsuapp/views/FavoriteActivity.kt | MtaufiqH | 346,919,566 | false | null | package taufiq.apps.gsuapp.views
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.viewbinding.library.activity.viewBinding
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import dag... | 0 | Kotlin | 0 | 9 | 7ca2be80cead58d76af1fc4af5660a768cd550ac | 2,879 | GsuApp | The Unlicense |
src/main/kotlin/com/expansemc/township/plugin/command/executor/CommandTownDelete.kt | ExpanseMC | 292,790,967 | false | {"Gradle Kotlin DSL": 3, "Markdown": 1, "INI": 2, "Shell": 1, "Batchfile": 1, "Java": 16, "JAR Manifest": 1, "Text": 1, "JSON": 1, "Kotlin": 64} | package com.expansemc.township.plugin.command.executor
import com.expansemc.township.plugin.command.TransactionalCommandExecutor
import com.expansemc.township.plugin.command.requireOwnTown
import com.expansemc.township.plugin.command.requireSelfResident
import com.expansemc.township.plugin.storage.dao.ResidentDao
impo... | 1 | null | 1 | 1 | 3c02ce5e155519124c5bb4b915d5704253454ce7 | 1,484 | township | MIT License |
bio_auth_service/src/test/kotlin/TestHelpers.kt | kiva | 274,506,511 | false | null | import io.kotest.property.Arb
import io.kotest.property.arbitrary.alphanumeric
import io.kotest.property.arbitrary.string
import io.ktor.client.HttpClient
import io.ktor.client.engine.mock.MockEngine
import io.ktor.client.engine.mock.respond
import io.ktor.client.features.json.JsonFeature
import io.ktor.client.features... | 9 | Kotlin | 1 | 1 | fd7b7230e217d7d7ea18b87d0b05c509927024d2 | 2,052 | guardian-bio-auth | Apache License 2.0 |
core/src/main/kotlin/org/katan/model/account/AccountNotFoundException.kt | KatanPanel | 182,468,654 | false | {"Kotlin": 231389, "Dockerfile": 638} | package org.katan.model.account
import org.katan.KatanException
class AccountNotFoundException : KatanException()
| 3 | Kotlin | 5 | 55 | 1525409b24e68ba858a888ff1bc2764f277cb392 | 116 | Katan | Apache License 2.0 |
test/src/me/anno/tests/shader/ComputeShaders.kt | AntonioNoack | 456,513,348 | false | null | package me.anno.tests.shader
import me.anno.gpu.hidden.HiddenOpenGLContext
import me.anno.gpu.shader.ComputeShader
fun main() {
HiddenOpenGLContext.createOpenGL()
println(ComputeShader.stats.joinToString())
}
| 0 | Kotlin | 1 | 9 | 17bbf880148cbbc81edae00494411d18e390ccd3 | 219 | RemsEngine | Apache License 2.0 |
app/src/debug/java/com/pwillmann/moviediscovery/app/di/module/DebuggingModule.kt | pwillmann | 149,355,278 | false | null | package com.pwillmann.moviediscovery.app.di.module
import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor
import com.facebook.flipper.plugins.network.NetworkFlipperPlugin
import com.pwillmann.moviediscovery.lib.remote.RemoteModule
import dagger.Module
import dagger.Provides
import dagger.multibindings.In... | 0 | Kotlin | 0 | 3 | dff67b5471902bcde67b0a0186877b86c25ad445 | 759 | moviedb-browser-android | MIT License |
libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/sync/RustSyncService.kt | vector-im | 546,522,002 | false | null | /*
* Copyright (c) 2023 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 101 | null | 32 | 271 | c535795e3bb279883fb7ea1ec8ec2c603d88c9a6 | 2,025 | element-x-android | Apache License 2.0 |
lib_battery_api/src/main/java/cn/huolala/battery/api/hookstub/common/BatteryConsumer.kt | HuolalaTech | 730,097,380 | false | {"Kotlin": 90937, "Java": 15821, "Groovy": 9816} | package cn.huolala.battery.api.hookstub.common
interface BatteryConsumer {
// 获取当前模块的功耗 单位/安
} | 0 | Kotlin | 4 | 20 | ff54302e8e17d87fc2267037254144a50e0e40df | 101 | batteryfinder-android | Apache License 2.0 |
app/src/main/java/cn/edu/bupt/countdown/main/BackupFragment.kt | xianfei | 377,534,660 | false | null | package cn.edu.bupt.countdown.main
import androidx.lifecycle.ViewModelProviders
import android.os.Bundle
import android.os.Environment
import android.view.View
import androidx.fragment.app.BaseDialogFragment
import com.nbsp.materialfilepicker.MaterialFilePicker
import cn.edu.bupt.countdown.R
import gdut.bsx.share2.Fil... | 0 | Kotlin | 0 | 0 | 6a38708d3016e47494a2f608ec6be355f19abd86 | 4,644 | bupt_countdown | Apache License 2.0 |
plugins/github/src/org/jetbrains/plugins/github/api/GithubServerPathSerializer.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.plugins.github.api
import kotlinx.serialization.KSerializer
import kotlinx.serialization.descriptors.SerialDescriptor
import kotlinx.serialization.encoding.Decoder
import kotli... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 1,591 | intellij-community | Apache License 2.0 |
samples/starter-mobile-app/src/main/kotlin/researchstack/config/provider/HealthConnectProvider.kt | S-ResearchStack | 520,365,275 | false | {"Kotlin": 178868, "AIDL": 4785} | package researchstack.config.provider
import android.content.Context
import androidx.health.connect.client.HealthConnectClient
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.SingletonComponent
import resear... | 0 | Kotlin | 20 | 26 | 58b4b9b64623a7d2a0865307d490a59a7538d7cd | 1,751 | app-sdk | Apache License 2.0 |
scripting-host/src/test/resources/simple_script.server.kts | EdwarDDay | 821,109,379 | false | {"Kotlin": 76888, "Shell": 7725} | writeOutput("OK")
| 5 | Kotlin | 1 | 11 | 28fc52eb210aba03616430b88bf515599a59e1d6 | 18 | kotlin-server-scripts | Apache License 2.0 |
src/main/kotlin/com/azhapps/lagbot/utils/PropertiesUtil.kt | Azhrei251 | 447,149,817 | false | {"Kotlin": 65715, "Dockerfile": 238, "Shell": 115} | package com.azhapps.lagbot.utils
import java.io.FileInputStream
import java.util.*
object PropertiesUtil {
const val DISCORD_TOKEN = "discord.token"
const val AFK_TIMEOUT = "afk.timeout"
const val GITHUB_TOKEN = "github.token"
const val SPOTIFY_CLIENT_ID = "spotify.client.id"
const val SPOTIFY_CL... | 7 | Kotlin | 0 | 1 | 7f7a5dd320c8af9bbcb51fc49fc19aea92eed488 | 1,118 | lagbot | Apache License 2.0 |
kotlin-mui-icons/src/main/generated/mui/icons/material/SixteenMpSharp.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/SixteenMpSharp")
@file:JsNonModule
package mui.icons.material
@JsName("default")
external val SixteenMpSharp: SvgIconComponent
| 12 | Kotlin | 145 | 983 | a99345a0160a80a7a90bf1adfbfdc83a31a18dd6 | 210 | kotlin-wrappers | Apache License 2.0 |
codegen-cli/src/main/java/pro/bilous/codegen/writer/ZipFileWriter.kt | djai-app | 355,774,450 | false | null | package pro.bilous.codegen.writer
import org.slf4j.LoggerFactory
import java.io.File
import java.util.zip.ZipEntry
import java.util.zip.ZipOutputStream
class ZipFileWriter(
private val zipOutput: ZipOutputStream,
private val zipLog: StringBuilder
) : CodegenFileWriter {
companion object {
private val log = Logge... | 18 | Kotlin | 3 | 2 | b15f7f012179c650c89b24c194933609b732f691 | 976 | djai-codegen | MIT License |
app/src/main/java/com/example/weatherapp/searchFragment/SearchPresenter.kt | 0v0d | 736,883,226 | false | {"Kotlin": 56434} | package com.example.weatherapp.searchFragment
// SearchFragmentのPresenter
class SearchPresenter(private val view: ISearchView): ISearchPresenter {
// 検索ボタンが押されたの入力文字列の処理
override fun searchLocation(query: String) {
val onlyAlphabet = query.matches("[a-zA-Z]+".toRegex())
if (!onlyAlphabet) {
view.show... | 0 | Kotlin | 0 | 0 | 78c04f0130501989ab1314af32b8fd32ba2a6ced | 385 | WeatherApp | MIT License |
app/src/main/kotlin/com/simplemobiletools/calendar/models/ListEvent.kt | letup | 77,349,221 | true | {"Kotlin": 151500} | package com.simplemobiletools.calendar.models
class ListEvent(var id: Int = 0, var startTS: Int = 0, var endTS: Int = 0, var title: String = "", var description: String = "") : ListItem() {
override fun toString(): String {
return "Event {id=$id, startTS=$startTS, endTS=$endTS, title=$title, description=$d... | 0 | Kotlin | 0 | 0 | ba49fb0c882c59c77fbaecd9c76a087cd8d25d7b | 341 | Simple-Calendar | Apache License 2.0 |
core/src/test/kotlin/io/github/llmagentbuilder/core/chatmemory/MessageWindowChatMemoryTest.kt | alexcheng1982 | 780,391,516 | false | {"Kotlin": 96695, "Java": 15305, "Mustache": 15002, "TypeScript": 7644, "Smalltalk": 2575, "Python": 1902, "CSS": 1545, "JavaScript": 89} | package io.github.alexcheng1982.llmagentbuilder.core.chatmemory
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
import org.springframework.ai.chat.messages.AssistantMessage
import org.springframework.ai.chat.messages.SystemMessag... | 0 | Kotlin | 0 | 0 | dfab459c5d657051693786c08be4ffcf791f7637 | 1,309 | llm-agent-builder | Apache License 2.0 |
SkyBlock/src/main/kotlin/sharkbound/spigot/skyblock/plugin/customitems/UsableCoin.kt | sharkbound | 234,191,763 | false | null | package sharkbound.spigot.skyblock.plugin.customitems
import org.bukkit.Material
import org.bukkit.entity.Player
import org.bukkit.event.EventHandler
import org.bukkit.event.Listener
import org.bukkit.event.player.PlayerInteractEvent
import org.bukkit.inventory.ItemStack
import sharkbound.spigot.skyblock.plugin.builde... | 0 | Kotlin | 0 | 0 | 456a40862ce7f2b287e3325e41369ffc8c36daf6 | 2,782 | spigot-projects | MIT License |
app/src/main/java/com/riyaz/weatheria/WeatheriaApp.kt | Riyaz002 | 786,449,280 | false | {"Kotlin": 37721} | package com.riyaz.weatheria
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class WeatheriaApp: Application() | 0 | Kotlin | 0 | 0 | 5cf426c35a84d1df40c0178aebe77e6ab11de9b4 | 152 | Weatheria | Apache License 2.0 |
core/src/com/coronadefense/receiver/messages/AnimationConfirmationMessage.kt | swa-group1 | 346,617,304 | false | {"Kotlin": 102514} | package com.coronadefense.receiver.messages
data class AnimationConfirmationMessage(
val time: Float,
): IMessage
| 7 | Kotlin | 0 | 1 | c93845de7e2ed4b4d95070547721ef93e0357a6e | 119 | corona-defense-client | MIT License |
src/main/kotlin/no/nav/lydia/ia/sak/domene/plan/PlanRessurs.kt | navikt | 444,072,054 | false | {"Kotlin": 1109470, "Python": 8913, "Shell": 1074, "Dockerfile": 207} | package no.nav.lydia.ia.sak.domene.plan
data class PlanRessurs(
val id: Int,
val beskrivelse: String,
val url: String?,
) | 2 | Kotlin | 0 | 1 | a804098d3363006a6d2ec525e0aceb3eb1bb0cf0 | 134 | lydia-api | MIT License |
sqlite-open-helper/src/androidMain/kotlin/ru/pixnews/sqlite/open/helper/internal/interop/SqlOpenHelperWindowBindings.kt | illarionov | 769,429,996 | false | {"Kotlin": 749374, "C": 64230} | /*
* Copyright 2024, the wasm-sqlite-open-helper project authors and contributors. Please see the AUTHORS file
* for details. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
* SPDX-License-Identifier: Apache-2.0
*/
package ru.pixnews.sqlite.open.helper.internal.... | 0 | Kotlin | 0 | 0 | 192349956f722665f53c526b72c7ca47f7e85891 | 1,574 | wasm-sqlite-open-helper | Apache License 2.0 |
trixnity-core/src/commonMain/kotlin/net/folivo/trixnity/core/serialization/events/createEventSerializersModule.kt | benkuly | 330,904,570 | false | {"Kotlin": 3997992, "JavaScript": 5163, "TypeScript": 2906, "CSS": 1454, "Dockerfile": 1243} | package net.folivo.trixnity.core.serialization.events
import kotlinx.serialization.modules.SerializersModule
import kotlinx.serialization.modules.contextual
fun createEventSerializersModule(
mappings: EventContentSerializerMappings,
): SerializersModule {
val messageEventContentSerializer = MessageEventConten... | 0 | Kotlin | 3 | 26 | 03fa8ac5df76de482adf6696d697cec8e5c69c68 | 2,670 | trixnity | Apache License 2.0 |
libs/pandautils/src/main/java/com/instructure/pandautils/compose/CanvasTheme.kt | instructure | 179,290,947 | false | {"Kotlin": 15865936, "Dart": 4454406, "HTML": 185120, "Ruby": 35686, "Java": 24752, "Shell": 19157, "Groovy": 11717, "JavaScript": 9505, "Objective-C": 7431, "Python": 2438, "CSS": 1356, "Swift": 807, "Dockerfile": 112} | /*
* Copyright (C) 2024 - present Instructure, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | 5 | Kotlin | 101 | 126 | c2c3918a37375c84b498cb0172670eac5a80e580 | 3,301 | canvas-android | Apache License 2.0 |
packages/cli/src/test/kotlin/elide/tool/cli/AbstractSubtoolTest.kt | elide-dev | 506,113,888 | false | null | package elide.tool.cli
import elide.testing.annotations.Test
import org.junit.jupiter.api.Assertions.assertDoesNotThrow
/** Common test utilities for Elide Tool sub-commands. */
abstract class AbstractSubtoolTest {
/**
* Return the sub-command implementation under test.
*/
abstract fun subcommand(): Runnabl... | 36 | Kotlin | 4 | 33 | 91800dbbf291e65a91d451ed50c9673d82efd174 | 477 | elide | MIT License |
app/src/main/java/com/leventsurer/manager/ui/fragments/HomePageFragment.kt | dijitalkale | 677,776,610 | false | null | package com.leventsurer.manager.ui.fragments
import android.Manifest.permission.READ_EXTERNAL_STORAGE
import android.Manifest.permission.WRITE_EXTERNAL_STORAGE
import android.annotation.SuppressLint
import android.content.pm.PackageManager
import android.graphics.Canvas
import android.graphics.Color
import android.gra... | 0 | Kotlin | 0 | 0 | 917f547695439fd55b3822f01b008fa1f849facf | 23,137 | apartmanyonetim | MIT License |
src/main/kotlin/dev/simpletimer/component/modal/TimerModal.kt | JanMaki | 411,888,960 | false | {"Kotlin": 276254} | package dev.simpletimer.component.modal
import dev.simpletimer.data.lang.lang_data.LangData
import dev.simpletimer.extension.getLang
import net.dv8tion.jda.api.events.interaction.ModalInteractionEvent
import net.dv8tion.jda.api.interactions.components.text.TextInput
import net.dv8tion.jda.api.interactions.components.t... | 0 | Kotlin | 1 | 7 | 576e1003a89032d317a783e6a9676399353e09dc | 2,865 | SimpleTimer | The Unlicense |
include_build/jar-cli/src/main/kotlin/ru/tutu/token/config/SerializableConfig.kt | tutu-ru-mobile | 293,538,485 | false | null | package ru.tutu.token.config
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.Json
import ru.tutu.gradle.userHomeGradleProperties
import java.io.File
val jsonSerialization:Json = Json {
this.prettyPrint = true
this.ignoreUnknownKeys = true
this.encodeDefaults = true
}
fun Seria... | 0 | Kotlin | 0 | 2 | 152a21c9573b067200d97dcf277eae973e8bc93d | 1,813 | gradle-plugin-github-token | Apache License 2.0 |
compiler/testData/codegen/bytecodeText/notNullAssertions/arrayListGet.kt | JetBrains | 3,432,266 | false | null | import java.util.ArrayList
fun foo(): Any {
val a = ArrayList<String>()
return a.get(0)
}
fun bar(a: ArrayList<String>) {
}
// 0 checkExpressionValueIsNotNull
// 1 checkNotNullExpressionValue
// 0 checkParameterIsNotNull
// 1 checkNotNullParameter
| 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 259 | kotlin | Apache License 2.0 |
RecyclerViewDemo/src/main/java/pwj/study/drag/DragAdapter.kt | a-pwj | 182,354,866 | false | {"Gradle": 3, "Java Properties": 3, "Shell": 1, "Text": 1, "Batchfile": 1, "XML": 76, "Markdown": 1, "INI": 2, "Proguard": 1, "Ignore List": 1, "Kotlin": 21, "Java": 6} | package pwj.study.drag
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.LinearLayout
import android.widget.TextView
import pwj.study.R
import pwj.s... | 0 | Kotlin | 0 | 0 | 79d2bca871dadd2c7d6c60582ec5bf38eafda908 | 1,424 | study-master | Apache License 2.0 |
RecyclerViewDemo/src/main/java/pwj/study/drag/DragAdapter.kt | a-pwj | 182,354,866 | false | {"Gradle": 3, "Java Properties": 3, "Shell": 1, "Text": 1, "Batchfile": 1, "XML": 76, "Markdown": 1, "INI": 2, "Proguard": 1, "Ignore List": 1, "Kotlin": 21, "Java": 6} | package pwj.study.drag
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.LinearLayout
import android.widget.TextView
import pwj.study.R
import pwj.s... | 0 | Kotlin | 0 | 0 | 79d2bca871dadd2c7d6c60582ec5bf38eafda908 | 1,424 | study-master | Apache License 2.0 |
kotlin/predicate.kt | Ayushd70 | 146,420,071 | false | null | fun main() {
val myNumbers = listOf(2, 3, 4, 6, 23, 90)
val myPredicate = { num: Int -> num > 10 }
val check1 = myNumbers.all(myPredicate)
println(check1)
val check2 = myNumbers.any(myPredicate)
println(check2)
val totalCount: Int = myNumbers.count(myPredicate)
println(totalCount)
... | 8 | null | 25 | 20 | 28af4dd518e66c31e8e1170f23570a952f17a08b | 380 | RetardedCodes | MIT License |
app/app/src/main/java/com/bnsantos/offline/ui/fragments/CreateCommentFragment.kt | bnsantos | 92,102,739 | false | {"Text": 1, "Markdown": 2, "Gradle": 3, "Java Properties": 2, "Shell": 1, "Ignore List": 3, "Batchfile": 1, "Proguard": 1, "Kotlin": 36, "Java": 1, "JSON": 4, "XML": 21, "JavaScript": 8} | package com.bnsantos.offline.ui.fragments
import android.arch.lifecycle.LifecycleFragment
import android.arch.lifecycle.Observer
import android.arch.lifecycle.ViewModelProvider
import android.arch.lifecycle.ViewModelProviders
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import a... | 0 | Kotlin | 0 | 0 | 8fb120535d4b791b1c232e3c80944f88adbfe0d4 | 2,015 | android-offline-example | Apache License 2.0 |
kotlin/phone-number/src/main/kotlin/PhoneNumber.kt | enolive | 96,409,842 | false | null | class PhoneNumber(rawNumber: String) {
val number: String
val areaCode: String
init {
number = format(rawNumber)
areaCode = number.take(3)
require(number.length == 10)
}
override fun toString(): String =
"($areaCode) ${number.substring(3, 6)}-${number.substring... | 81 | null | 1 | 1 | 61a64a04a257b02145310dc6ac2342f986ca0672 | 564 | exercism | MIT License |
src/main/java/net/ccbluex/liquidbounce/features/module/modules/world/CustomDisabler.kt | 2946257770 | 693,652,489 | false | {"Java": 1812636, "Kotlin": 1801560, "GLSL": 13689, "JavaScript": 9199, "HTML": 850} | /*
* LiquidBounce+ Hacked Client
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
* https://github.com/WYSI-Foundation/LiquidBouncePlus/
*
* Some parts of the code are taken and modified from Rilshrink/Minecraft-Disablers.
*/
package net.ccbluex.liquidbounce.features.m... | 1 | null | 1 | 1 | 4e111df6cd3ca03da3b285eb8572ef79a9ff8695 | 14,855 | VulgarSense | Apache License 2.0 |
demo/src/main/java/com/msx7/android/okhttpapt/MainActivity.kt | mapleskip | 132,696,577 | false | null | package com.msx7.android.okhttpapt
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.util.Log
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_m... | 1 | null | 1 | 1 | 71859d318ee6fe1315412b8bbf32d9b9f575cfff | 449 | EasyOKHttp | Apache License 2.0 |
app/src/test/kotlin/fr/free/nrw/commons/explore/depictions/SearchDepictionsDataSourceFactoryTest.kt | Sadiquedeveloper | 271,308,239 | true | {"Java Properties": 5, "YAML": 2, "Shell": 4, "Markdown": 8, "Gradle": 6, "Text": 5, "Batchfile": 2, "Ignore List": 2, "SVG": 2, "XML": 499, "PHP": 2, "Makefile": 1, "Proguard": 1, "JSON": 50, "Java": 455, "Kotlin": 177, "Python": 2, "Jinja": 1, "SPARQL": 3} | package fr.free.nrw.commons.explore.depictions
import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.spy
import com.nhaarman.mockitokotlin2.verify
import io.reactivex.processors.PublishProcessor
import org.hamcrest.MatcherAssert.assertThat
import org.hamcrest.Matchers.`is`
import org.junit.Before
... | 0 | null | 0 | 0 | f4d81eb4ca9ba2a616c15fef33562a6379cdb016 | 1,586 | apps-android-commons | Apache License 2.0 |
ontrack-extension-stale/src/main/java/net/nemerosa/ontrack/extension/stale/StaleProperty.kt | nemerosa | 19,351,480 | false | null | package net.nemerosa.ontrack.extension.stale
import net.nemerosa.ontrack.model.annotations.APIDescription
/**
* Defines a stale policy for branches. A branch last activity is the date its last build was created.
*
* @property disablingDuration Number of days of inactivity after which the branch is _disabled_
* @p... | 57 | Kotlin | 27 | 97 | 7c71a3047401e088ba0c6d43aa3a96422024857f | 2,772 | ontrack | MIT License |
urbanairship-preference-center/src/main/java/com/urbanairship/preferencecenter/util/JsonExtensions.kt | salvatorea-avi | 630,151,314 | true | {"INI": 13, "Markdown": 20, "Gradle": 20, "Shell": 4, "Batchfile": 1, "Text": 1, "Ignore List": 7, "Proguard": 16, "XML": 395, "Java": 879, "Kotlin": 266, "JSON": 15, "CODEOWNERS": 1, "YAML": 41, "Gradle Kotlin DSL": 2, "Python": 2, "TOML": 1, "SVG": 2, "CSS": 2, "C#": 2, "Java Properties": 2} | package com.urbanairship.preferencecenter.util
import com.urbanairship.json.JsonException
import com.urbanairship.json.JsonList
import com.urbanairship.json.JsonMap
import com.urbanairship.json.JsonValue
internal fun jsonMapOf(vararg fields: Pair<String, *>): JsonMap =
JsonMap.newBuilder().apply {
for ((k... | 0 | null | 0 | 0 | ee2caf458fadf39946c269c69ef2421e1c0791e0 | 2,157 | android-library | Apache License 2.0 |
compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/TowerLevels.kt | mclondonol | 236,004,770 | true | {"Markdown": 62, "Gradle": 635, "Gradle Kotlin DSL": 361, "Java Properties": 13, "Shell": 10, "Ignore List": 11, "Batchfile": 9, "Git Attributes": 7, "Protocol Buffer": 11, "Java": 6465, "Kotlin": 55229, "Proguard": 12, "XML": 1571, "Text": 10780, "JavaScript": 270, "JAR Manifest": 2, "Roff": 211, "Roff Manpage": 36, "... | /*
* 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.fir.resolve.calls
import org.jetbrains.kotlin.fir.FirSession
import org.jetbrain... | 0 | null | 0 | 0 | f01b4706d1e5eb6ccf701984621003da090b72eb | 12,291 | kotlin | Apache License 2.0 |
auth/src/main/kotlin/com/sangsiklog/domain/user/User.kt | SangsikLog | 825,352,399 | false | {"Kotlin": 115171, "Dockerfile": 3751} | package com.sangsiklog.domain.user
import com.sangsiklog.domain.base.BaseEntity
import jakarta.persistence.*
@Entity
@SequenceGenerator(
name = "USER_SEQ_GENERATOR",
sequenceName = "USER_SEQ",
initialValue = 1,
allocationSize = 50
)
@Table(name = "users", uniqueConstraints = [UniqueConstraint(columnNa... | 4 | Kotlin | 0 | 0 | 7d63c7a5208dfd8a4d182f14b40de625b9e2dd8d | 1,703 | sangsiklog-api | MIT License |
http_test/src/main/kotlin/com/hexagonkt/http/test/examples/FiltersTest.kt | ibado | 412,869,744 | true | {"Kotlin": 786858, "HTML": 20521, "CSS": 4709, "PHP": 6} | package com.hexagonkt.http.test.examples
import com.hexagonkt.core.decodeBase64
import com.hexagonkt.http.client.HttpClient
import com.hexagonkt.http.client.HttpClientPort
import com.hexagonkt.http.client.HttpClientSettings
import com.hexagonkt.http.model.ClientErrorStatus.FORBIDDEN
import com.hexagonkt.http.model.Cli... | 0 | Kotlin | 0 | 0 | 6cfa2f129607ae0dacc5619525e9cb3136cb0837 | 5,094 | hexagon | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.