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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/client/kotlin/fyi/fyw/monutils/gui/RedirectedMessageScreen.kt | FYWinds | 796,139,959 | false | {"Kotlin": 75633, "Java": 4802, "Python": 3777} | package fyi.fyw.monutils.gui
import com.mojang.blaze3d.systems.RenderSystem
import net.minecraft.client.MinecraftClient
import net.minecraft.client.gui.DrawableHelper
import net.minecraft.client.util.math.MatrixStack
import net.minecraft.text.Text
object RedirectedMessageScreen {
val messages: MutableList<Text> ... | 0 | Kotlin | 0 | 0 | 3cd0e7fca4b91398b169972281d3ad5226b249fa | 1,373 | MonutilsFabric | MIT License |
later/core/src/commonMain/kotlin/koncurrent/later/LaterBaseUtils.kt | aSoft-Ltd | 521,074,922 | false | {"Kotlin": 89425, "Java": 1554, "JavaScript": 348} | @file:Suppress(
"NO_ACTUAL_FOR_EXPECT", // removing this will make the K2/JVM not compile,
"EXPECT_ACTUAL_MISMATCH", // removing this will make the K2/JVM not compile
)
package koncurrent.later
import koncurrent.Executor
import koncurrent.Later
import kase.Result
expect fun <T, R> Later<T>.then(executor: Exec... | 0 | Kotlin | 0 | 2 | 1344b08431b8a8a8bbe28987c58efe9f45a21c6d | 924 | koncurrent | MIT License |
app/src/main/java/com/application/archelon/screens/login/LoginViewModel.kt | danoc93 | 451,251,171 | false | {"Kotlin": 104143} | package com.application.archelon.screens.login
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.application.archelon.repositories.LoginState
import com.application.archelon.repositories.SessionRepository
import com.application.archelon.system.SharedPrefs
import kotlinx.coroutine... | 0 | Kotlin | 0 | 0 | 682cacd8fa5280241e58cb68d8ad5c8df2f02ab8 | 1,757 | archelonpoc | MIT License |
app/src/main/java/com/umc/history/AuthService.kt | duck-positive | 582,929,737 | false | null | package com.umc.history
import android.util.Log
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
class AuthService {
private lateinit var existView: ExistView
private lateinit var authView: AuthView
f... | 0 | Kotlin | 0 | 0 | bae06314e26b1e91bedb7b766065f183c562ddae | 4,771 | HiStory_Refactoring | MIT License |
data/src/main/kotlin/com/zeongit/data/database/primary/dao/FollowMessageDao.kt | fuzeongit | 265,537,118 | false | null | package com.zeongit.data.database.primary.dao
import com.zeongit.data.database.primary.entity.FollowMessage
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.jpa.repository.JpaSpecificationExecutor
import org.springframework.stereotype.Repository
@Repository
interface Follow... | 2 | Kotlin | 1 | 1 | 695043ba1e5f4a7a7ad662817de77758c97f408e | 694 | zeongit-beauty | MIT License |
parser/src/commonMain/kotlin/com/faendir/om/parser/solution/model/part/Conduit.kt | F43nd1r | 244,249,918 | false | null | package com.faendir.om.parser.solution.model.part
import com.faendir.om.parser.solution.model.Position
data class Conduit(
override var position: Position,
override var rotation: Int,
var id: Int,
var positions: List<Position>
) : Part() {
override val name = "pipe"
} | 0 | Kotlin | 0 | 1 | 5370c9ae632354b3e63e4b04b2d59170467be067 | 290 | omsp | Apache License 2.0 |
app/src/main/java/com/newbiechen/nbreader/ui/page/booklist/BookListViewModel.kt | newbiechen1024 | 239,496,581 | false | null | package com.newbiechen.nbreader.ui.page.booklist
import android.content.Context
import androidx.databinding.ObservableArrayList
import androidx.databinding.ObservableField
import com.newbiechen.nbreader.data.entity.NetBookEntity
import com.newbiechen.nbreader.data.repository.impl.IBookListRepository
import com.newbiec... | 5 | Kotlin | 8 | 37 | e423b13915578ab95c1683bfa7a70e59f19f2eab | 4,125 | NBReader | Apache License 2.0 |
aegaeon-common/src/main/kotlin/ca/n4dev/aegaeonnext/common/repository/AuthorizationCodeRepository.kt | n4devca | 216,624,101 | false | null | /*
* Copyright 2019 <NAME> - n4dev.ca
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache Licens... | 8 | Kotlin | 0 | 0 | 0d4f33e49f3bc45895b40bc12fe791663c7cb568 | 1,537 | aegaeon-next | Apache License 2.0 |
app/src/main/java/com/prmto/mova_movieapp/feature_mylist/presentation/ListViewModel.kt | tolgaprm | 541,709,201 | false | {"Kotlin": 522687} | package com.prmto.mova_movieapp.feature_mylist.presentation
import androidx.lifecycle.viewModelScope
import com.prmto.mova_movieapp.core.domain.models.movie.Movie
import com.prmto.mova_movieapp.core.domain.models.tv.TvSeries
import com.prmto.mova_movieapp.core.domain.use_case.database.LocalDatabaseUseCases
import com.... | 1 | Kotlin | 3 | 56 | 1936fb736958a2e47e691ae7d694ba56e77e44f5 | 3,594 | Mova-MovieApp | Apache License 2.0 |
custom-vu/src/main/kotlin/jces1209/vu/page/CloudIssuePage.kt | dmewada-atlas | 290,410,294 | true | {"Kotlin": 235838} | package jces1209.vu.page
import com.atlassian.performance.tools.jiraactions.api.page.wait
import jces1209.vu.page.contextoperation.ContextOperationIssue
import jces1209.vu.wait
import org.apache.logging.log4j.LogManager
import org.apache.logging.log4j.Logger
import org.openqa.selenium.By
import org.openqa.selenium.Web... | 0 | null | 0 | 0 | 93fadc226720c11897fa121492d4d5831697a422 | 7,864 | jces-1209 | Apache License 2.0 |
app/src/main/java/org/listenbrainz/android/viewmodel/SearchViewModel.kt | metabrainz | 550,726,972 | false | {"Kotlin": 941501, "Ruby": 423} | package org.listenbrainz.android.viewmodel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.FlowPreview
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.c... | 15 | Kotlin | 27 | 53 | ffd438c34594b40a1dd8254391da843085739199 | 6,716 | listenbrainz-android | Apache License 2.0 |
src/main/java/com/alcosi/lib/secured/encrypt/EncryptionContainerConfig.kt | alcosi | 698,911,809 | false | {"Kotlin": 405550, "Java": 82765, "HTML": 3451, "JavaScript": 509, "CSS": 203} | /*
* Copyright (c) 2023 Alcosi Group Ltd. and affiliates.
*
* 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 ap... | 0 | Kotlin | 0 | 0 | 87c39d8bb8f80c0a5e82252e881af2fc6e363b36 | 2,995 | alcosi_commons_library | Apache License 2.0 |
cli/src/main/kotlin/io/github/legion2/tosca_orchestrator/cli/commands/CreateResources.kt | Legion2 | 350,881,803 | false | null | package io.github.legion2.tosca_orchestrator.cli.commands
import com.github.ajalt.clikt.core.CliktCommand
import com.github.ajalt.clikt.core.requireObject
import com.github.ajalt.clikt.parameters.arguments.argument
import com.github.ajalt.clikt.parameters.types.inputStream
import io.github.legion2.tosca_orchestrator.c... | 6 | Kotlin | 0 | 3 | fb4ef1a7bf3d79d258da2b6779381a87e0c435e9 | 888 | ritam | Apache License 2.0 |
v2-chatlink/src/commonTest/kotlin/com/bselzer/gw2/v2/chatlink/TraitLinkTests.kt | Woody230 | 388,820,096 | false | {"Kotlin": 750899} | package com.bselzer.gw2.v2.chatlink
class TraitLinkTests : IdLinkTests<TraitLink>() {
override val instance: TraitLink = TraitLink()
override val mapping: Map<String, Int> = mapOf(
"[&B/IDAAA=]" to 1010,
)
} | 2 | Kotlin | 0 | 2 | 7bd43646f94d1e8de9c20dffcc2753707f6e455b | 229 | GW2Wrapper | Apache License 2.0 |
app/src/main/java/com/compose/jreader/utils/Mapper.kt | alinbabu2010 | 493,496,121 | false | null | package com.compose.jreader.utils
interface Mapper<T, V> {
fun map(data: T): V
} | 0 | Kotlin | 0 | 1 | 68770268d55131f87541b2c73ee0d45df1e6ccf4 | 85 | jReader | MIT License |
app/src/test/java/com/tzion/jetpackmovies/presentation/FindMoviesViewModelTest.kt | 4mr0m3r0 | 156,536,164 | false | {"Kotlin": 151737} | package com.tzion.jetpackmovies.presentation
class FindMoviesViewModelTest
| 4 | Kotlin | 4 | 15 | 11b983e57bc1508a6ec5ca738af70c4f9a8ea9aa | 76 | movies-jetpack-sample | MIT License |
subprojects/gradle/build-trace/src/main/kotlin/com/avito/android/build_trace/BuildTracePlugin.kt | sundetova | 287,793,131 | true | {"Kotlin": 2381272, "Shell": 16491, "Python": 14168, "Dockerfile": 7088, "Makefile": 2410} | package com.avito.android.build_trace
import com.avito.android.gradle.metric.GradleCollector
import com.avito.android.gradle.metric.MetricsConsumer
import com.avito.kotlin.dsl.getBooleanProperty
import com.avito.kotlin.dsl.isRoot
import com.avito.utils.gradle.BuildEnvironment
import com.avito.utils.gradle.buildEnviron... | 0 | Kotlin | 0 | 0 | 2f65d3005671248068fe734d7fd48ced92192418 | 1,523 | avito-android | MIT License |
app/src/main/java/com/example/android/hilt/MainActivity.kt | komzakdroid | 679,382,103 | false | null | package com.example.android.hilt
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.example.android.hilt.databinding.ActivityMainBinding
import dagger.hilt.android.AndroidEntryPoint
@AndroidEntryPoint
class MainActivity : AppCompatActivity() {
private lateinit var binding: Activit... | 0 | Kotlin | 0 | 0 | 2cbc5ebe9da25fe3a07d76a0f22718e29ad53e6c | 541 | DevChallange | Apache License 2.0 |
idbdata/src/main/java/com/leperlier/quinquis/lentz/imdb/datasources/OnlineAuthorsDataSource.kt | RomainLENTZ | 773,319,710 | false | {"Kotlin": 119708} | package com.leperlier.quinquis.lentz.imdb.datasources
import AuthorsResponse
import MovieResponse
import SeriesResponse
import com.leperlier.quinquis.lentz.imdb.api.response.toToken
import com.leperlier.quinquis.lentz.imdb.api.service.MovieService
import com.leperlier.quinquis.lentz.imdb.api.service.SerieService
impor... | 0 | Kotlin | 0 | 0 | 674e161a282db8794a306806779fd18b0099380b | 2,788 | mini-projet-group_quinquis_leperlier_lentz | Apache License 2.0 |
app/src/main/java/com/example/diary/domain/activity/DiaryClickListner.kt | 8954sood | 647,554,392 | false | null | package com.example.diary.domain.activity
import com.example.diary.model.entity.Diary
interface DiaryClickListner {
fun cancelBtnEvent()
fun saveBtnEvent(diary: Diary)
} | 0 | Kotlin | 0 | 0 | b2c6e541e56957183d35bd16e5bf3f2815d93d2b | 179 | diary | MIT License |
app/src/main/java/com/example/diary/domain/activity/DiaryClickListner.kt | 8954sood | 647,554,392 | false | null | package com.example.diary.domain.activity
import com.example.diary.model.entity.Diary
interface DiaryClickListner {
fun cancelBtnEvent()
fun saveBtnEvent(diary: Diary)
} | 0 | Kotlin | 0 | 0 | b2c6e541e56957183d35bd16e5bf3f2815d93d2b | 179 | diary | MIT License |
core/data/src/main/kotlin/voodoo/data/Recommendation.kt | twilight-sparkle-irl | 150,922,158 | true | {"Kotlin": 271222, "CSS": 35899, "Shell": 5029, "Ruby": 73} | package voodoo.data
/**
* Created by nikky on 29/03/18.
* @author Nikky
*/
enum class Recommendation {
starred, avoid
} | 0 | Kotlin | 0 | 0 | 747a70d5280c17c2b6f26c88841814a6cfac5732 | 128 | Voodoo | MIT License |
elucidate-common-lib/src/main/kotlin/com/digirati/elucidate/common/infrastructure/constants/RDFConstants.kt | knaw-huc | 326,953,760 | true | {"Java": 601493, "PLpgSQL": 363672, "Kotlin": 106494, "Dockerfile": 1278} | package com.digirati.elucidate.common.infrastructure.constants
object RDFConstants {
const val URI_VALUE = "http://www.w3.org/1999/02/22-rdf-syntax-ns#value"
} | 3 | Java | 0 | 0 | ca1ca27e4bc4942b7d5204a031f7b9381183dbf5 | 164 | elucidate-server | MIT License |
vim-engine/src/main/kotlin/com/maddyhome/idea/vim/api/VimOptionGroupBase.kt | JetBrains | 1,459,486 | false | {"Kotlin": 4968245, "Java": 403572, "ANTLR": 37092, "HTML": 2184} | /*
* Copyright 2003-2023 The IdeaVim authors
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE.txt file or at
* https://opensource.org/licenses/MIT.
*/
package com.maddyhome.idea.vim.api
import com.maddyhome.idea.vim.options.EffectiveOptionValueChangeListener
imp... | 5 | Kotlin | 723 | 8,335 | cc971eb2dfa24ef333059d5fd23211124d45b828 | 31,298 | ideavim | MIT License |
app/src/main/java/com/example/capitalcityquizktx/data/network/register/UserManagementService.kt | JoseGbel | 236,566,370 | false | null | package com.example.capitalcityquizktx.data.network.register
import com.example.capitalcityquizktx.data.models.user.UserDetailsSchema
import com.example.capitalcityquizktx.data.models.user.UserExistenceSchema
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import r... | 0 | Kotlin | 0 | 0 | def161ef4a080dc388b09b0faa9dc648bae81690 | 742 | capital-city-quiz | Apache License 2.0 |
02-Android/2018MovilesGR2/app/src/main/java/com/example/usrdel/a2018movilesgr2/SegundoFragment.kt | 2018-B-GR2-AplicacionesMoviles | 151,628,031 | false | {"JavaScript": 444666, "HTML": 422568, "Kotlin": 131420, "CSS": 1150} | package com.example.usrdel.a2018movilesgr2
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
class SegundoFragment : Fragment() {
override fun onCreateView(inflater: LayoutInflater,
... | 0 | JavaScript | 0 | 0 | bc8e3f2eeee00c0acd9341b090c74ee3f4648635 | 702 | Velasco-Yepez-Andres-David | MIT License |
common/src/main/kotlin/org/jetbrains/research/common/pyflowgraph/NodeNamesUtils.kt | JetBrains-Research | 281,132,580 | false | null | package org.jetbrains.research.common.pyflowgraph
import com.intellij.psi.util.elementType
import com.jetbrains.python.psi.*
fun PyElement.getFullName(): String =
when (this) {
is PyFunction, is PyNamedParameter -> this.name ?: ""
is PyReferenceExpression, is PyTargetExpression -> {
v... | 0 | Kotlin | 1 | 8 | ad189dfd3526633d6075754658af819872bd32cd | 4,748 | revizor | Apache License 2.0 |
lib_base/src/main/java/com/example/lib_base/room/entity/WeatherDayEntity.kt | TReturn | 870,739,949 | false | {"Kotlin": 212586, "Java": 134940} | package com.example.lib_base.room.entity
import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.PrimaryKey
/**
* @CreateDate: 2022/3/15 3:28 下午
* @Author: 青柠
* @Description:
*/
@Entity(tableName = "weather_day")
class WeatherDayEntity() {
@PrimaryKey(autoGenerate = true)
var id: Int... | 0 | Kotlin | 0 | 0 | 4ff7517fc25633e55625d62cd5e9d057f89fd7ad | 653 | JellyWeather | Apache License 2.0 |
common/src/main/kotlin/org/stardustmodding/interstellar/api/registry/RegistryUtil.kt | StardustModding | 703,282,326 | false | {"Kotlin": 83772, "Shell": 5565, "Java": 2839, "GLSL": 2679} | package org.stardustmodding.interstellar.api.registry
import com.google.common.collect.ImmutableList
import com.mojang.serialization.Lifecycle
import net.minecraft.core.DefaultedMappedRegistry
import net.minecraft.core.DefaultedRegistry
import net.minecraft.core.Holder
import net.minecraft.core.MappedRegistry
import n... | 0 | Kotlin | 1 | 3 | 6185d241e7ceae7ab29f8e344d0c19596ad84b05 | 5,152 | Interstellar | MIT License |
app/src/main/java/dev/josejordan/cubo/MainActivity.kt | mundodigitalpro | 869,121,277 | false | {"Kotlin": 7179} | package dev.josejordan.cubo
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.animation.core.*
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.*
import a... | 0 | Kotlin | 0 | 0 | 772831f567bd0757fadcd047a36d3fed201f52c4 | 3,209 | cubo | MIT License |
server/transfer/src/main/kotlin/com/evidentdb/server/transfer/types.kt | evidentsystems | 481,373,137 | false | {"Kotlin": 274264, "Makefile": 4528} | package com.evidentdb.server.transfer
import arrow.core.Either
import arrow.core.NonEmptyList
import arrow.core.nonEmptyListOf
import arrow.core.raise.either
import arrow.core.raise.zipOrAccumulate
import com.evidentdb.dto.v1.proto.BatchConstraint.ConstraintCase.*
import com.evidentdb.server.domain_model.*
import com.... | 25 | Kotlin | 1 | 5 | c12933391af87eaea2f1e209f2dfb6b736359f7e | 9,523 | evident-db | Apache License 2.0 |
src/medium/_198HouseRobber.kt | ilinqh | 390,190,883 | false | {"Kotlin": 369834, "Java": 31849} | package medium
class _198HouseRobber {
class Solution {
fun rob(nums: IntArray): Int {
if (nums.isEmpty()) {
return 0
}
val length = nums.size
if (length == 1) {
return nums[0]
}
var first = nums[0]
... | 0 | Kotlin | 0 | 0 | 2ebe91593ee55c0250ce34b13a25fa0d7508e4e3 | 585 | AlgorithmsProject | Apache License 2.0 |
src/main/kotlin/org/wagham/db/scopes/KabotDBLabelScope.kt | kaironbot | 540,862,397 | false | {"Kotlin": 176625} | package org.wagham.db.scopes
import com.mongodb.client.model.UpdateOptions
import org.litote.kmongo.coroutine.CoroutineCollection
import org.litote.kmongo.eq
import org.wagham.db.KabotMultiDBClient
import org.wagham.db.enums.CollectionNames
import org.wagham.db.enums.LabelType
import org.wagham.db.models.embed.Label
i... | 1 | Kotlin | 0 | 0 | 01095594df248c29e30778f102dae8d162d260e2 | 1,222 | kabot-db-connector | MIT License |
.legacy/app/src/main/java/com/makentoshe/booruchan/screen/posts/view/PostsUiToolbar.kt | Makentoshe | 147,361,920 | false | null | package com.makentoshe.booruchan.screen.posts.view
import android.graphics.PorterDuff
import android.view.Gravity
import android.view.View
import android.view.ViewGroup
import android.widget.RelativeLayout
import com.makentoshe.booruchan.R
import com.makentoshe.booruchan.style
import com.makentoshe.booruchan.style.get... | 0 | Kotlin | 1 | 6 | d0f40fb8011967e212df1f21beb43e4c4ec03356 | 2,117 | Booruchan | Apache License 2.0 |
kotlinpoet/main/kotlin/com/meowbase/toolkit/kotlinpoet/declaration/Code.kt | siylt007 | 336,180,880 | true | {"Kotlin": 1405824, "Java": 474434, "Dart": 14190, "HTML": 70} | @file:Suppress("OVERRIDE_BY_INLINE")
package com.meowbase.toolkit.kotlinpoet.declaration
import com.meowbase.toolkit.kotlinpoet.annotation.DslApi
import com.squareup.kotlinpoet.CodeBlock
import com.squareup.kotlinpoet.ParameterSpec
typealias DeclareCode = Coding.() -> Unit
@DslApi
interface Coding {
/**
* 添加... | 0 | null | 0 | 0 | df82f0588beb13fbd22308b3d015852c25781612 | 2,209 | toolkit | Apache License 2.0 |
kmmtshared/core/src/commonMain/kotlin/com/kmmt/core/architecture/presenter/async/Async.kt | jittya | 361,707,096 | false | null | package com.kmmt.core.architecture.presenter.async
import com.kmmt.common.expectations.DispatcherDefault
import com.kmmt.common.expectations.DispatcherMain
import kotlinx.coroutines.*
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
abstract class Async {
private val exceptionHandler = Co... | 0 | Kotlin | 10 | 221 | 2faa5eb1fdd785cc1b07f03b9c186af1a3acfc40 | 1,961 | KMMT | MIT License |
app/src/main/kotlin/com/bapspatil/elon/api/model/NasaData.kt | bapspatil | 202,559,929 | false | null | package com.bapspatil.elon.api.model
import com.google.gson.annotations.SerializedName
data class NasaData(
@SerializedName("album")
val album: List<String>,
@SerializedName("center")
val center: String, // GSFC
@SerializedName("date_created")
val dateCreated: String, // 2017-12-08T00:00:00Z
... | 0 | Kotlin | 1 | 4 | 45b497a09e3ad4391f0d72d0eda10aec64de6826 | 805 | Elon | Apache License 2.0 |
src/main/kotlin/abc/298-b.kt | kirimin | 197,707,422 | false | null | package abc
import utilities.debugLog
import java.util.*
fun main(args: Array<String>) {
val sc = Scanner(System.`in`)
val n = sc.nextInt()
val a = (0 until n).map { (0 until n).map { sc.next().toInt() } }
val b = (0 until n).map { (0 until n).map { sc.next().toInt() } }
println(problem298b(n, a, ... | 0 | Kotlin | 1 | 5 | d639ff1baa5a7c7cfa33ef293863d58c558bbbfc | 1,728 | AtCoderLog | The Unlicense |
subprojects/gradle/module-types-validator/src/main/kotlin/com/avito/android/module_type/validation/configurations/missings/implementations/internal/MissingFakeModuleRootTaskDelegate.kt | avito-tech | 230,265,582 | false | {"Kotlin": 3752627, "Java": 67252, "Shell": 27892, "Dockerfile": 12799, "Makefile": 8086} | package com.avito.android.module_type.validation.configurations.missings.implementations.internal
import com.avito.android.module_type.FunctionalType
import java.util.SortedSet
internal class MissingFakeModuleRootTaskDelegate {
fun validate(
projectsTaskOutputText: String,
ignoreLogicalModuleRegex... | 10 | Kotlin | 50 | 414 | 4dc43d73134301c36793e49289305768e68e645b | 2,141 | avito-android | MIT License |
subprojects/gradle/module-types-validator/src/main/kotlin/com/avito/android/module_type/validation/configurations/missings/implementations/internal/MissingFakeModuleRootTaskDelegate.kt | avito-tech | 230,265,582 | false | {"Kotlin": 3752627, "Java": 67252, "Shell": 27892, "Dockerfile": 12799, "Makefile": 8086} | package com.avito.android.module_type.validation.configurations.missings.implementations.internal
import com.avito.android.module_type.FunctionalType
import java.util.SortedSet
internal class MissingFakeModuleRootTaskDelegate {
fun validate(
projectsTaskOutputText: String,
ignoreLogicalModuleRegex... | 10 | Kotlin | 50 | 414 | 4dc43d73134301c36793e49289305768e68e645b | 2,141 | avito-android | MIT License |
{{ cookiecutter.repo_name }}/core/src/main/java/{{ cookiecutter.core_package_dir }}/utils/configuration/StringConstants.kt | DominikJura | 143,721,226 | true | {"Kotlin": 24192} | package {{ cookiecutter.core_package_name }}.utils.configuration
object StringConstants {
const val BASE_URL = "base url"
{% if cookiecutter.amplitude_lib == "y" %}const val AMPLITUDE_KEY = "amplitude key"{% endif %}
} | 0 | Kotlin | 0 | 0 | 2aba27343da04e0c06c2d7b8876d3d9354b8a2b0 | 227 | android-kotlin-template | Apache License 2.0 |
src/main/kotlin/com/flamagames/ping/models/entities/UserEntity.kt | NahuelToloza | 398,418,103 | false | null | package com.flamagames.ping.models.entities
import javax.persistence.*
@Entity
@Table(name = "user")
data class UserEntity(
@Column(name = "name", unique = true) val name: String,
@Column(name = "password") val password: String,
@Column(name = "role") val role: Byte,
@Column(name = "active") val isAct... | 0 | Kotlin | 0 | 0 | 4a13f2cd6724dcc864fbba741f651c6ac5bb9cf3 | 465 | BackendKotlin | Apache License 2.0 |
common/src/commonMain/kotlin/org/orca/htmltext/util/nonEmptyChildren.kt | thennothinghappened | 603,730,874 | false | {"Kotlin": 23015} | package org.orca.htmltext.util
import org.jsoup.nodes.Node
internal fun Node.nonEmptyChildren() = childNodes()
.filter { it.toString().isNotBlank() }
| 1 | Kotlin | 1 | 5 | 016d7f0726028c18cde75e1df43d3438aec63386 | 156 | HtmlText | MIT License |
modules/viform-compose/src/commonMain/kotlin/Composable.kt | windedge | 661,911,964 | false | {"Kotlin": 55268, "Shell": 548, "HTML": 294} | package io.github.windedge.viform.compose
import androidx.compose.runtime.*
import io.github.windedge.viform.core.*
import kotlinx.coroutines.FlowPreview
import kotlinx.coroutines.flow.*
import kotlin.reflect.*
@Composable
public fun <T : Any> FormHost<T>.useForm(content: @Composable FormScope<T>.(T) -> Unit) {
v... | 0 | Kotlin | 0 | 0 | 5b6d44ecf5860b27dc93055674f6405d31afe530 | 5,723 | viform-multiplatform | MIT License |
app/src/main/java/com/avex/ragraa/ui/calculator/CalculatorCourse.kt | avexxx3 | 778,981,508 | false | {"Kotlin": 224969} | package com.avex.ragraa.ui.calculator
data class CalculatorCourse(
val name: String = "",
val credits: String = "",
val mca: String = "",
val obtained: String = "",
val gpa: Float = 0f,
val grade: String = "",
val isRelative: Boolean = false,
val locked: Boolean = false,
val isCusto... | 0 | Kotlin | 0 | 5 | f313c15cb8d334489b864215bd3be02f149f1eb3 | 340 | Ragraa | Apache License 2.0 |
ask-api/src/main/kotlin/com/fluxtah/ask/api/clients/openai/assistants/model/CreateAssistantRequest.kt | fluxtah | 794,032,032 | false | {"Kotlin": 126833, "Shell": 387} | /*
* Copyright (c) 2024 <NAME>
* Released under the MIT license
* https://opensource.org/licenses/MIT
*/
package com.fluxtah.ask.api.clients.openai.assistants.model
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class CreateAssistantRequest(
@SerialName("... | 0 | Kotlin | 0 | 1 | 327cdc0651ec331c5cf22a9da157da2a8e3dc43b | 1,687 | ask | MIT License |
youtubeextractor/src/main/java/com/commit451/youtubeextractor/ItagItem.kt | khamidjon-khamidov | 273,750,253 | true | {"Kotlin": 29487} | package com.commit451.youtubeextractor
internal data class ItagItem(
val id: Int,
val type: StreamType,
val format: String,
val resolution: String? = null
) {
companion object {
/**
* https://github.com/ytdl-org/youtube-dl/blob/master/youtube_dl/extractor/youtube.py#L431
... | 0 | null | 0 | 1 | 1ba377fd32c590d58eeb9a26e29fc46fcc72c69d | 5,448 | YouTubeExtractor | Apache License 2.0 |
telegram-bot/src/main/kotlin/eu/vendeli/tgbot/interfaces/SimpleAction.kt | vendelieu | 496,567,172 | false | null | package eu.vendeli.tgbot.interfaces
import eu.vendeli.tgbot.TelegramBot
import eu.vendeli.tgbot.types.internal.Response
import eu.vendeli.tgbot.utils.makeRequestAsync
import eu.vendeli.tgbot.utils.makeSilentRequest
import kotlinx.coroutines.Deferred
/**
* Simple action, see [Actions article](https://github.com/vende... | 0 | Kotlin | 2 | 70 | e35d51216afdd5748d6ee9ac8fce4aca6539f241 | 967 | telegram-bot | Apache License 2.0 |
app/src/main/java/com/example/note_app/Db.kt | enesulkerr | 651,983,924 | false | null | package com.example.note_app
import android.content.ContentValues
import android.content.Context
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper
class DB(context: Context) : SQLiteOpenHelper(context, DBName, null, Version ) {
companion object {
private val... | 0 | Kotlin | 0 | 0 | fdea31fd19f17a4ba76ad5f8b946ad601bbddc7e | 2,226 | Note-App | MIT License |
app/src/main/java/com/wei/picquest/MainActivityViewModel.kt | azrael8576 | 725,428,435 | false | {"Kotlin": 361445} | package com.wei.picquest
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.wei.picquest.core.data.repository.UserDataRepository
import com.wei.picquest.core.model.data.UserData
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.SharingStarted
import ... | 7 | Kotlin | 0 | 13 | a8deb6aee5ef3c2b252fe710e010223f5b971f5f | 1,060 | picquest | Apache License 2.0 |
presentation/measurements/src/main/kotlin/ru/vt/presentation/measurements/weight/summary/ViewModelWeightSummary.kt | magic-goop | 522,567,133 | false | {"Kotlin": 484480, "Shell": 117} | package ru.vt.presentation.measurements.weight.summary
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.flow.*
import org.threeten.bp.LocalDate
import ru.vt.core.common.LoaderHandler
import ru.vt.core.common.ResourceManger
import ru.vt.core.common.event.Even... | 0 | Kotlin | 0 | 2 | b7ff60f72cc67f43755a75b05ef4ba6a06d02315 | 6,663 | vitals-tracker | Apache License 2.0 |
ktor-http/jvm/src/io/ktor/http/HttpMessagePropertiesJvm.kt | LloydFinch | 166,520,021 | true | {"Kotlin": 2419371, "Lua": 280, "HTML": 112} | package io.ktor.http
import java.text.*
import java.util.*
private val HTTP_DATE_FORMAT: SimpleDateFormat
get() = SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z", Locale.US).apply {
timeZone = TimeZone.getTimeZone("GMT")
}
private fun parseHttpDate(date: String): Date = HTTP_DATE_FORMAT.parse(date)
p... | 0 | Kotlin | 0 | 2 | 9b9fc6c3b853c929a806c65cf6bf7c104b4c07fc | 1,107 | ktor | Apache License 2.0 |
api/src/main/kotlin/br/com/gamemods/minecity/api/id/TrustLevelId.kt | GameModsBR | 723,707,184 | false | {"Kotlin": 109716, "Java": 1275} | package br.com.gamemods.minecity.api.id
import br.com.gamemods.minecity.api.serializer.UniqueId
import kotlinx.serialization.Serializable
import java.util.*
/**
* UUID identifier that identifies a custom trust level registered on MineCity
*/
@Serializable
@JvmInline
public value class TrustLevelId(public val uuid: ... | 1 | Kotlin | 0 | 6 | 81abd62fc7724d99ec48d90a8eb3c87ad3c03dde | 657 | MineCity2 | MIT License |
IPassPlusSdk/src/main/java/com/sdk/ipassplussdk/utils/Errors.kt | yazanalqasem | 808,584,767 | false | {"Kotlin": 308101, "Java": 4759} | package com.sdk.ipassplussdk.utils
enum class Errors {
INVALID_KEY, WRONG_API_SPECIFIER, EMPTY_X_API_KEY, API_URL_NOT_FOUND, EMAIL_EMPTY, FNAME_EMPTY, LNAME_EMPTY, MEMBERSHIPID_EMPTY, DOB_EMPTY, GENDER_EMPTY, HEALTH_CON_EMPTY, CUS_FIELDS_EMPTY, INVALID_EMAIL_FROMAT, HEALTH_METRIC_EMPTY, EMAILNOT_UNIQUE
}
| 0 | Kotlin | 0 | 0 | 1fc3247607811f7f52e1d401c252b82e2c98c3a8 | 311 | iPass2.0NativeAndroidSDK | Apple MIT License |
solar/src/main/java/com/chiksmedina/solar/linear/transportpartsservice/ElectricRefueling.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.linear.transportpartsservice
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeC... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 4,299 | SolarIconSetAndroid | MIT License |
solar/src/main/java/com/chiksmedina/solar/linear/transportpartsservice/ElectricRefueling.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.linear.transportpartsservice
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeC... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 4,299 | SolarIconSetAndroid | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/StoreBuyer.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 4,826 | icons | MIT License |
CoordinatorLayout/app/src/main/java/eduardo/gladzik/coordinatorlayout/LayoutBased.kt | EduardoGladzik | 289,071,387 | false | null | package eduardo.gladzik.coordinatorlayout
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
class LayoutBased : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_layout_based)
}
... | 0 | Kotlin | 0 | 0 | 7854c98a604dc4b436583ae0143e86c96ced739f | 321 | kotlin-android | MIT License |
app/src/main/java/com/rewardtodo/presentation/models/UserView.kt | mattrob33 | 241,623,871 | false | null | package com.rewardtodo.presentation.models
import java.util.*
data class UserView (
var name: String = "",
var points: Int = 0,
var id: String = UUID.randomUUID().toString()
) | 0 | Kotlin | 0 | 0 | eefb7aade1c43be3e32dedc83bffb6145fcc37e1 | 189 | reward | Apache License 2.0 |
src/Day09.kt | jinie | 572,223,871 | false | {"Kotlin": 76283} | import kotlin.math.sign
//Advent of Code 2022 Day 9, Rope Physics
class Day09 {
private class Rope(knotAmt: Int){
val knots = mutableListOf<Point2d>()
val tailPositions = mutableSetOf<Pair<Int,Int>>()
val maxKnotDistance = 1
init {
tailPositions.add(Pair(0,0))
... | 0 | Kotlin | 0 | 0 | 4b994515004705505ac63152835249b4bc7b601a | 2,096 | aoc-22-kotlin | Apache License 2.0 |
voice-search/voice-search-impl/src/main/java/com/duckduckgo/voice/impl/remoteconfig/VoiceSearchFeatureModels.kt | hojat72elect | 822,396,044 | false | {"Kotlin": 11626231, "HTML": 65873, "Ruby": 16984, "C++": 10312, "JavaScript": 5520, "CMake": 1992, "C": 1076, "Shell": 784} |
package com.duckduckgo.voice.impl.remoteconfig
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class VoiceSearchSetting(
@field:Json(name = "excludedManufacturers")
val excludedManufacturers: List<Manufacturer>,
@field:Json(name = "excludedLocal... | 0 | Kotlin | 0 | 0 | b89591136b60933d6a03fac43a38ee183116b7f8 | 668 | DuckDuckGo | Apache License 2.0 |
ui/src/main/java/app/allever/android/lib/demo/ui/RippleFragment.kt | devallever | 522,186,250 | false | {"Kotlin": 581282, "Java": 333458, "C++": 14228, "Makefile": 1672, "CMake": 1635, "C": 1050} | package app.allever.android.lib.demo.ui
import app.allever.android.lib.common.BaseFragment
import app.allever.android.lib.demo.databinding.FragmentRippleBinding
import app.allever.android.lib.mvvm.base.BaseViewModel
class RippleFragment: BaseFragment<FragmentRippleBinding, BaseViewModel>() {
override fun inflate(... | 1 | Kotlin | 0 | 2 | 6d781e9e3d1754784712986e597ffbac518f4764 | 405 | AndroidSampleLibs | Apache License 2.0 |
ui/src/main/java/app/allever/android/lib/demo/ui/RippleFragment.kt | devallever | 522,186,250 | false | {"Kotlin": 581282, "Java": 333458, "C++": 14228, "Makefile": 1672, "CMake": 1635, "C": 1050} | package app.allever.android.lib.demo.ui
import app.allever.android.lib.common.BaseFragment
import app.allever.android.lib.demo.databinding.FragmentRippleBinding
import app.allever.android.lib.mvvm.base.BaseViewModel
class RippleFragment: BaseFragment<FragmentRippleBinding, BaseViewModel>() {
override fun inflate(... | 1 | Kotlin | 0 | 2 | 6d781e9e3d1754784712986e597ffbac518f4764 | 405 | AndroidSampleLibs | Apache License 2.0 |
DiscernoPet/app/src/main/java/com/mobile/discernopet/MyAppNavigation.kt | discerno-pet | 804,957,302 | false | {"Kotlin": 49918} | package com.mobile.discernopet
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.compose.rememberNavController
import com.mobile.discernopet.ui.screens.HomeScreen
import com.... | 0 | Kotlin | 0 | 1 | 58f8e6aa8b4add6b027c91c3bc957da3de880cfd | 957 | mobile-android | MIT License |
imx-core-sdk-kotlin-jvm/generated/src/main/kotlin/com/immutable/sdk/api/WithdrawalsApi.kt | immutable | 467,767,205 | false | {"Kotlin": 668106, "Java": 131024, "Mustache": 29745, "Solidity": 10068} | /**
* Immutable X API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.1
* Contact: <EMAIL>
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not e... | 2 | Kotlin | 2 | 5 | 4a823d30db92356c325140874f5ba708547585ca | 20,439 | imx-core-sdk-kotlin-jvm | Apache License 2.0 |
src/rider/main/kotlin/com/jetbrains/rider/plugins/unreal/actions/InstallActions.kt | SmelJey | 280,050,545 | true | {"C++": 225577, "C#": 76880, "Kotlin": 68267, "CMake": 797, "C": 198, "Batchfile": 41} | package com.jetbrains.rider.plugins.unreal.actions
import com.intellij.notification.Notification
import com.intellij.notification.NotificationAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.jetbrains.rider.model.PluginInstallLocation
import com.jetbrains.rider.model.rdRiderModel
import com.jet... | 0 | null | 0 | 0 | 591c42c9b7a0bf6f7c97121d6982ca118ec68f96 | 1,183 | UnrealLink | Apache License 2.0 |
src/test/kotlin/year2022/day06/ProblemTest.kt | Ddxcv98 | 573,823,241 | false | {"Kotlin": 164514} | package year2022.day06
import kotlin.test.Test
import kotlin.test.assertEquals
class ProblemTest {
private val problem = Problem()
@Test
fun part1() {
assertEquals(7, problem.part1())
}
@Test
fun part2() {
assertEquals(19, problem.part2())
}
}
| 0 | Kotlin | 0 | 0 | 0164fa1eca1660fcaeb15a9e17e5ce779d2f7b61 | 292 | advent-of-code | The Unlicense |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Teleop/Testing/TestSlide.kt | MostlyOperational18119 | 792,554,577 | false | {"Git Config": 1, "Gradle": 7, "Java Properties": 1, "Shell": 1, "Text": 10, "Ignore List": 2, "Batchfile": 1, "Markdown": 7, "INI": 1, "YAML": 1, "Java": 116, "XML": 12, "Kotlin": 53} | package org.firstinspires.ftc.teamcode.Teleop.Testing
import com.qualcomm.robotcore.hardware.DcMotor
import org.firstinspires.ftc.teamcode.DriveMethods
import org.firstinspires.ftc.teamcode.Variables
class testSlide: DriveMethods() {
override fun runOpMode() {
initMotorsSecondBot()
Variables.slid... | 0 | Java | 0 | 0 | eabd8a0691079c43e61f9ff65a811cc2c6d8ce25 | 626 | Mostly-Operational-Center-Stage | BSD 3-Clause Clear License |
src/dorkbox/console/input/MacOsTerminal.kt | dorkbox | 25,707,709 | false | {"Gradle Kotlin DSL": 2, "Java Properties": 1, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Kotlin": 27, "INI": 1, "Java": 9} | /*
* Copyright 2023 dorkbox, llc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 1 | null | 1 | 1 | 30b800de83d7cb06ecf33b0829120aea2c848e08 | 7,808 | Console | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/tfm/musiccommunityapp/data/repository/CommonPostRepositoryImpl.kt | luiscruzr8 | 613,985,223 | false | null | package com.tfm.musiccommunityapp.data.repository
import arrow.core.Either
import com.tfm.musiccommunityapp.data.datasource.GenericPostDatasource
import com.tfm.musiccommunityapp.domain.model.CommentDomain
import com.tfm.musiccommunityapp.domain.model.DomainError
import com.tfm.musiccommunityapp.domain.model.GenericPo... | 28 | Kotlin | 0 | 1 | e852d00c4b26e54a3f232e1d19b46446dbba4811 | 1,951 | android-musiccommunity | MIT License |
tools-java-gen/src/main/kotlin/com/afoxer/javagen/Main.kt | NeoChow | 187,137,725 | true | {"Rust": 152601, "Swift": 138377, "Kotlin": 26421, "C": 7920, "Java": 2939, "Objective-C": 1004, "Shell": 881} | package com.afoxer.javagen
import java.io.File
fun main(args: Array<String>) {
if (args.size < 5) {
println("Usage: javabind package_name so_name ext_libs ast_path out_path")
return
}
val pkg = args[0]
val soName = args[1]
val extLibs = args[2]
val astPath = args[3]
val ou... | 0 | Rust | 0 | 0 | 9399c9c8c811dcfe44b12f9930f10c8748c71621 | 1,150 | rsbind | Apache License 2.0 |
week10/MovieViewer/app/src/test/java/com/wmw/movieviewer/di/ModuleTests.kt | wmwprogrammer | 268,119,454 | false | null | package com.wmw.movieviewer.di
import com.wmw.movieviewer.di.dbModule
import com.wmw.movieviewer.di.networkModule
import com.wmw.movieviewer.di.repositoryModule
import com.wmw.movieviewer.di.viewModelModule
import org.junit.Test
import org.koin.core.context.startKoin
import org.koin.core.context.stopKoin
import org.ko... | 0 | Kotlin | 0 | 0 | 45615152f94198900495edec827552f7f3504ac7 | 603 | RWAndroidBootcamp2020 | MIT License |
sugar-processor/src/main/kotlin/team/duckie/quackquack/sugar/processor/SugarComponentRegistrar.kt | duckie-team | 523,387,054 | false | null | /*
* Designed and developed by Duckie Team 2023.
*
* Licensed under the MIT.
* Please see full license: https://github.com/duckie-team/quack-quack-android/blob/main/LICENSE
*/
@file:Suppress("DEPRECATION")
@file:OptIn(ExperimentalCompilerApi::class)
package team.duckie.quackquack.sugar.processor
import com.goog... | 30 | Kotlin | 4 | 57 | 30d04c7342ca409a45ba449dcf6408cf4f7bc456 | 3,127 | quack-quack-android | MIT License |
app/src/main/java/com/example/woodinvoicetest/Common.kt | MaherDeeb | 270,105,871 | false | null | package com.example.woodinvoicetest
import android.content.Context
import android.util.Log
import java.io.File
object Common {
fun getAppPath(context: Context): String {
val dir = File(
android.os.Environment.getExternalStorageDirectory().toString() +
File.separator + "invo... | 0 | Kotlin | 4 | 43 | 63bdf72166f5a0bcd50d90ea569880aea91d3e83 | 465 | take_orders_app | Apache License 2.0 |
src/main/kotlin/io/github/sofiapl/ast/FictiveTypeSpecification.kt | sofiapl | 202,442,654 | false | null | package io.github.sofiapl.ast
// [[("in"/"out")] <name>]
data class FictiveTypeSpecification(
val name: String?,
val restriction: FictiveTypeDeclaration.Restriction?
): Node
| 0 | Kotlin | 0 | 0 | 47a1d617de7ffd11dfa96836633994ad10eb67fb | 183 | ast | MIT License |
src/test/kotlin/com/github/rushyverse/api/item/ItemComparatorTest.kt | Rushyverse | 578,345,187 | false | null | package com.github.rushyverse.api.item
import net.kyori.adventure.text.Component
import net.minestom.server.item.ItemStack
import net.minestom.server.item.Material
import org.junit.jupiter.api.Test
import kotlin.test.assertFalse
import kotlin.test.assertTrue
class ItemComparatorTest {
@Test
fun `similar shou... | 0 | Kotlin | 0 | 2 | 5c29c90fe5bba716063c6a083979c2335a9a5dc3 | 2,349 | api | MIT License |
sample/src/main/kotlin/com/arianegraphql/sample/resolvers.kt | arianegraphql | 354,885,191 | false | {"Kotlin": 70789, "HTML": 20} | package com.arianegraphql.sample
import com.arianegraphql.ktx.resolvers
import com.arianegraphql.sample.model.MutationWithNullableScalar
import com.arianegraphql.sample.model.MutationWithScalarArray
import com.arianegraphql.sample.model.ProductType
import com.arianegraphql.sample.model.ResultObject
import com.example.... | 6 | Kotlin | 0 | 5 | ee11124d4e28b8af3510647b1192acdce535031d | 2,130 | ariane-server | MIT License |
src/main/kotlin/br/com/zup/ot5/chave_pix/ChavePixInexistenteException.kt | DaviLevi | 383,277,033 | true | {"Kotlin": 84053, "Smarty": 2172} | package br.com.zup.ot5.chave_pix
class ChavePixInexistenteException(
chave : String
) : RuntimeException("Chave pix '$chave' inexistente") | 0 | Kotlin | 0 | 0 | f00bfecba37e7f78e18c4d89e617d90c6fb13ea3 | 143 | orange-talents-05-template-pix-keymanager-grpc | Apache License 2.0 |
app/src/main/java/com/demo/jetpack/navigation/fragment/Fragment02.kt | woniu0936 | 750,355,893 | false | {"Kotlin": 74615} | package com.demo.jetpack.navigation.fragment
import android.os.Bundle
import android.view.View
import android.widget.Toast
import androidx.fragment.app.Fragment
import com.demo.jetpack.R
import com.demo.jetpack.core.extension.viewBinding
import com.demo.jetpack.databinding.FragmentNavigation02Binding
class Fragment02... | 0 | Kotlin | 1 | 0 | 10382f0f240ae063a4a8440098876c6ef159645e | 717 | JetpackDemo | MIT License |
demo-command/src/main/kotlin/io/holixon/cqrshexagonaldemo/demoparent/command/domain/MetaData.kt | holixon | 747,608,283 | false | {"Kotlin": 26026, "TSQL": 2855, "Shell": 72} | package io.holixon.cqrshexagonaldemo.demoparent.command.domain
import com.fasterxml.jackson.annotation.JsonProperty
data class MetaData(@field:JsonProperty("total_hits") @param:JsonProperty("total_hits") val totalHits: Long)
| 7 | Kotlin | 0 | 0 | e77edf997fc816ba7ca392fec8df1a537d6611aa | 227 | cqrs-meets-hexagonal | Apache License 2.0 |
src/test/kotlin/dev/realmkit/hellper/fixture/stat/StatFixture.kt | RealmKit | 590,912,533 | false | {"Kotlin": 376600} | /*
* Copyright (c) 2023 RealmKit
*
* 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, modify, merge, publish, dist... | 28 | Kotlin | 0 | 0 | 75824606b7edf018adf82af1cc588fe25c5f9de5 | 3,638 | game | MIT License |
src/main/kotlin/com/github/jozott00/wokwiintellij/runner/profileStates/WokwiSimulatorStartState.kt | Jozott00 | 737,328,628 | false | {"Kotlin": 113010, "HTML": 2436} | package com.github.jozott00.wokwiintellij.runner.profileStates
import com.github.jozott00.wokwiintellij.runner.WokwiProcessHandler
import com.github.jozott00.wokwiintellij.services.WokwiProjectService
import com.github.jozott00.wokwiintellij.simulator.args.WokwiArgs
import com.intellij.execution.ExecutionResult
import... | 0 | Kotlin | 0 | 3 | 89bc09e4a0a95c17d039f873f8466f1984bc52d9 | 1,746 | wokwi-intellij | MIT License |
src/main/kotlin/MathUtils.kt | evilthreads669966 | 721,369,481 | false | {"Kotlin": 16467} | /*
Copyright 2023 <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 writing, software
distributed ... | 0 | Kotlin | 0 | 1 | 53f1cf3a3b1a31649d93e2c07ca2d057258ab866 | 3,222 | fraction_calculator | Apache License 2.0 |
src/main/kotlin/com/github/durun/nitron/inout/database/FileDatabaseBase.kt | Durun | 212,494,212 | false | null | package com.github.durun.nitron.inout.database
import org.jetbrains.exposed.sql.Database
import java.nio.file.Path
import java.sql.Driver
import kotlin.reflect.KClass
import kotlin.reflect.jvm.jvmName
internal class FileDatabaseBase(
private val driver: KClass<out Driver>,
private val urlMap: (Path) -... | 9 | Kotlin | 0 | 0 | d61f5c0f3884413fc42ce24aaa12921676c1b1b8 | 546 | nitron | MIT License |
wearApp/src/main/java/dev/johnoreilly/starwars/wearApp/people/PeopleList.kt | joreilly | 357,294,402 | false | null | package dev.johnoreilly.starwars.wearApp.people
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.co... | 0 | Kotlin | 10 | 141 | 41fc40dd50ce18a0034bc1cd270b74e040fba2e1 | 2,017 | StarWars | Apache License 2.0 |
BlurBenchmark/src/main/java/at/favre/app/blurbenchmark/adapter/BenchmarkResultAdapter.kt | Parseus | 181,662,644 | true | {"Kotlin": 208376, "C": 53487, "RenderScript": 8951, "C++": 3637, "Makefile": 641} | package at.favre.app.blurbenchmark.adapter
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.fragment.app.FragmentManager
import androidx.recyclerview.widget.RecyclerView
import at.favre.app.blurbenchmark.R
import at.favre.app.blurbenchmark.models.Benchmark... | 0 | Kotlin | 1 | 0 | f99cf1cb6c3843a95c53758fa2210980a205ad52 | 1,134 | BlurTestAndroid | Apache License 2.0 |
src/main/kotlin/com/timoh/aoc2018/first/part1/solution.kt | TimoHanisch | 159,952,280 | false | null | package com.timoh.aoc2018.first.part1
import java.io.File
fun main(args: Array<String>) {
val resource = ClassLoader.getSystemClassLoader().getResource("input/input1")
val value = File(resource.toURI())
.useLines { it.toList() }
.fold(0L) { acc, line -> acc + line.toLong() }
println(value... | 0 | Kotlin | 0 | 0 | 6487bb44daeb13763a90ac33c0a706d7641cfbb4 | 323 | aoc2018 | MIT License |
data/RF03521/rnartist.kts | fjossinet | 449,239,232 | false | {"Kotlin": 8214424} | import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
rfam {
id = "RF03521"
name = "consensus"
use alignment numbering
}
}
theme {
details {
value = 3
}
color {
location {
2 to 3... | 0 | Kotlin | 0 | 0 | 3016050675602d506a0e308f07d071abf1524b67 | 3,099 | Rfam-for-RNArtist | MIT License |
app/src/main/java/com/example/soundmonoapp/AudioMonitorService.kt | gcapuccia | 871,057,302 | false | {"Kotlin": 14939} | import android.annotation.SuppressLint
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.Service
import android.content.Intent
import android.media.AudioFormat
import android.media.AudioRecord
import android.media.AudioTrack
import android.m... | 0 | Kotlin | 0 | 0 | 50e483f1d2b795f195fabcf7e2f232d57ad8d715 | 2,668 | SoundMonoApp | MIT License |
client/src/commonMain/kotlin/com/algolia/search/dsl/strategy/DSLAlternativesAsExact.kt | algolia | 153,273,215 | false | {"Kotlin": 1346247, "Dockerfile": 163} | package com.algolia.search.dsl.strategy
import com.algolia.search.dsl.DSL
import com.algolia.search.dsl.DSLParameters
import com.algolia.search.model.search.AlternativesAsExact
/**
* DSL for building a [List] of [AlternativesAsExact].
*/
@Suppress("PropertyName")
@DSLParameters
public class DSLAlternativesAsExact(
... | 14 | Kotlin | 23 | 59 | 21f0c6bd3c6c69387d1dd4ea09f69a220c5eaff4 | 1,194 | algoliasearch-client-kotlin | MIT License |
app/src/main/java/com/iutcalendar/task/TaskAdapter.kt | wwwazz333 | 486,323,544 | false | {"Kotlin": 204168} | package com.iutcalendar.task
import android.app.AlertDialog
import android.content.Context
import android.content.DialogInterface
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.Toast
import androidx.recyclerview.widget.RecyclerView
import com.iutcalendar.calendrier.EventCalendri... | 2 | Kotlin | 0 | 0 | 95d2a6a5bb3a2d843d647563a4124847ed4b1d62 | 2,429 | AgendaLyon1 | MIT License |
src/main/kotlin/Test.kt | gblmedeiros | 133,167,034 | false | null | class Test(val layerId: Long) {
fun test() {
println(layerId)
}
} | 0 | Kotlin | 0 | 0 | f9bdf1ab379277393df2826b14ae5f78aea89f02 | 82 | spring-boot-kotlin-starter-kit | Apache License 2.0 |
backend/test/annotationdefinition/generator/FinalizeConditionTest.kt | MaxMello | 211,313,972 | false | {"JavaScript": 710246, "Kotlin": 539611, "Python": 19119, "Dockerfile": 1460, "HTML": 793, "Shell": 554, "CSS": 39} | package annotationdefinition.generator
import document.annotation.*
import org.junit.jupiter.api.Assertions.assertFalse
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
internal class FinalizeConditionTest {
private val annotationMap: AnnotationMap = mutableMapOf(
"A1"... | 2 | JavaScript | 0 | 6 | 831e1be853a63b7059ad8aa942049eeb6f07a74e | 4,251 | ActiveAnno | MIT License |
defitrack-rest/defitrack-protocol-services/defitrack-kyberswap/src/main/java/io/defitrack/protocol/kyberswap/pooling/KyberswapEthereumPoolingMarketProvider.kt | decentri-fi | 426,174,152 | false | null | package io.defitrack.protocol.kyberswap.pooling
import io.defitrack.common.network.Network
import io.defitrack.market.pooling.PoolingMarketProvider
import io.defitrack.market.pooling.domain.PoolingMarket
import io.defitrack.protocol.Protocol
import io.defitrack.protocol.kyberswap.apr.KyberswapAPRService
import io.defi... | 16 | Kotlin | 6 | 5 | e4640223e69c30f986b8b4238e026202b08a5548 | 2,544 | defi-hub | MIT License |
app/src/main/java/com/stats/nhlcompose/teams/TeamsViewModel.kt | NoNews | 345,416,215 | false | null | package com.stats.nhlcompose.teams
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.data.features.TeamsRepository
import com.stats.nhlcompose.R
import kotlinx.coroutines.flow.colle... | 0 | Kotlin | 0 | 0 | 7548b7aeaf5cb3862397c0340f5d2150ebf578c6 | 1,845 | JetNhl | Apache License 2.0 |
src/main/kotlin/com/rootsid/wal/agent/api/model/outofband/AttachDecorator.kt | roots-id | 481,774,698 | false | {"Kotlin": 105977, "JavaScript": 16655} | package com.rootsid.wal.agent.api.model.outofband
import com.fasterxml.jackson.annotation.JsonProperty
import io.swagger.v3.oas.annotations.media.Schema
@Schema
data class AttachDecorator(
@Schema(description = "Attachment identifier", example = "3fa85f64-5717-4562-b3fc-2c963f66afa6")
var id: String,
@Sc... | 1 | Kotlin | 0 | 3 | f92eddedf2e476420fbb72a1f7651f0cb8498809 | 594 | wal-agent | Apache License 2.0 |
smash-ranks-android/app/src/main/java/com/garpr/android/misc/DeviceUtilsImpl.kt | charlesmadere | 41,832,700 | true | null | package com.garpr.android.misc
import android.content.Context
import androidx.core.app.ActivityManagerCompat
import com.garpr.android.extensions.activityManager
class DeviceUtilsImpl(
context: Context
) : DeviceUtils {
override val hasLowRam: Boolean = ActivityManagerCompat.isLowRamDevice(context.activit... | 0 | Kotlin | 0 | 9 | 151b2a0f9b4d38be60c3f73344ca444f17810bfd | 333 | smash-ranks-android | The Unlicense |
oapp/src/main/java/com/example/oapp/adapter/HomeAdapter.kt | Asmewill | 415,843,980 | false | {"Kotlin": 1283675, "Java": 382535} | package com.example.oapp.adapter
import android.text.Html
import android.text.TextUtils
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.example.oapp.R
import com.... | 0 | Kotlin | 0 | 0 | 641dc8c22f4b537b12ab93c1c52d4f8701a0b945 | 3,281 | JetpackMvvm | Apache License 2.0 |
breathOfTheWild/src/main/kotlin/breathOfTheWild/roastedFood/RoastedFoodsRouter.kt | adamWeesner | 239,233,558 | false | null | package breathOfTheWild.roastedFood
import BaseRouter
import shared.zelda.RoastedFood
import shared.zelda.responses.RoastedFoodsResponse
import kotlin.reflect.full.createType
data class RoastedFoodsRouter(
override val basePath: String,
override val service: RoastedFoodsService
) : BaseRouter<RoastedFood, Roa... | 1 | Kotlin | 1 | 1 | a04ad390fe844a7d89db2fa726599c23d3f796f6 | 418 | weesnerDevelopment | MIT License |
Chapter 07/18_weight.kt | bpbpublications | 649,604,575 | false | {"Kotlin": 93212, "Java": 3484} | package com.example.chapter7
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.RowScope
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
@Composable
fun WeightExample2() {
Row {
ExtractedText("Item A... | 0 | Kotlin | 0 | 1 | d3a62fb563db2ecd138981b709abd3c3641509ee | 538 | A-Solutions-Guide-for-Android-Developers-in-Kotlin | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.