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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
brd-android/fabriik-common/src/main/java/com/fabriik/common/data/FabriikApiConstants.kt | fabriik | 489,117,365 | false | null | package com.fabriik.common.data
import android.os.Build
import com.fabriik.common.BuildConfig
import okhttp3.Request
object FabriikApiConstants {
const val HOST = "${BuildConfig.SERVER_HOST}/blocksatoshi"
private const val BASE_URL = "https://$HOST"
const val HOST_WYRE_API = "$BASE_URL/wyre/"
const... | 2 | Kotlin | 1 | 1 | 8894f5c38203c64e48242dae9ae9344ed4b2a61f | 1,660 | wallet-android | MIT License |
modules/networking/src/main/kotlin/org/teamvoided/voidlib/networking/C2SVoidPacket.kt | TeamVoided | 570,651,037 | false | {"Kotlin": 316530, "Java": 10455, "GLSL": 386} | package org.teamvoided.voidlib.networking
import net.fabricmc.fabric.api.networking.v1.PacketSender
import net.minecraft.network.PacketByteBuf
import net.minecraft.server.MinecraftServer
import net.minecraft.server.network.ServerPlayNetworkHandler
import net.minecraft.server.network.ServerPlayerEntity
interface C2SVo... | 0 | Kotlin | 0 | 2 | 53b2d25509d4cb1c6e32577c0f6c4eb7990251b8 | 917 | VoidLib | MIT License |
work_13/shared/src/commonMain/kotlin/network/NetworkingConfig.kt | goldenplan | 243,709,136 | false | {"Swift": 436583, "Kotlin": 17889} | package com.overinet
const val API_KEY = "0564bb225da38996fdbb42d71ab58067"
const val BASE_URL = "https://api.themoviedb.org/"
const val MOVIE_LIST_BASE_PATH = "${BASE_URL}3/movie/popular?api_key=$API_KEY&page=1"
const val MOVIE_SEARCH_BASE_PATH = "${BASE_URL}3/search/movie?api_key=$API_KEY&page=1"
const val MOVIE_IMA... | 0 | Swift | 0 | 0 | 32900adc508fd69207f25814e00a5453692cd30c | 368 | home_work | MIT License |
src/main/kotlin/org/halflife/clientmanager/mapper/impl/ClientMapperImpl.kt | xEnakil | 793,054,418 | false | {"Kotlin": 72479} | package org.halflife.clientmanager.mapper.impl
import org.halflife.clientmanager.dto.request.ClientRequest
import org.halflife.clientmanager.dto.response.ClientResponse
import org.halflife.clientmanager.dto.response.FullClientResponse
import org.halflife.clientmanager.mapper.ClientMapper
import org.halflife.clientmana... | 0 | Kotlin | 0 | 0 | 763b04aa6046eaef1eb72ec6114233e8b621763a | 1,667 | ClientManager | MIT License |
shared/src/commonMain/kotlin/markdown/elements/MarkdownText.kt | AntonAlekseevich93 | 683,819,027 | false | null | package markdown.elements
import androidx.compose.foundation.text.selection.SelectionContainer
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import androidx.com... | 0 | Kotlin | 0 | 0 | 3f328a95c2de861889b81c1c571954d6e67b02d2 | 1,445 | ChatGTP | Apache License 2.0 |
app/src/main/java/org/rfcx/incidents/data/SubscribeRepositoryImp.kt | rfcx | 104,899,135 | false | {"Kotlin": 1176262, "Java": 1049} | package org.rfcx.incidents.data
import io.reactivex.Single
import org.rfcx.incidents.data.interfaces.SubscribeRepository
import org.rfcx.incidents.data.remote.subscribe.SubscribeEndpoint
import org.rfcx.incidents.entity.user.SubscribeRequest
import org.rfcx.incidents.entity.user.SubscribeResponse
class SubscribeRepos... | 30 | Kotlin | 0 | 0 | cbcb9402733a959104aff97f26d04244b73bc109 | 703 | guardian-app-android | Apache License 2.0 |
app/src/main/java/org/rfcx/incidents/data/SubscribeRepositoryImp.kt | rfcx | 104,899,135 | false | {"Kotlin": 1176262, "Java": 1049} | package org.rfcx.incidents.data
import io.reactivex.Single
import org.rfcx.incidents.data.interfaces.SubscribeRepository
import org.rfcx.incidents.data.remote.subscribe.SubscribeEndpoint
import org.rfcx.incidents.entity.user.SubscribeRequest
import org.rfcx.incidents.entity.user.SubscribeResponse
class SubscribeRepos... | 30 | Kotlin | 0 | 0 | cbcb9402733a959104aff97f26d04244b73bc109 | 703 | guardian-app-android | Apache License 2.0 |
app/src/main/java/com/weibo/biz/kotlin/listview/ToDoListAdapter.kt | huipengo | 166,368,980 | false | null | package com.weibo.biz.kotlin.listview
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import com.weibo.biz.kotlin.R
import android.widget.BaseAdapter
import android.widget.ImageView
import com.bumptech.glide.Glide
... | 0 | Kotlin | 0 | 1 | f163bcb30c89bd42de1ac1b50313d6f9fc293f51 | 2,129 | Kotlin_Learning | MIT License |
plugin/src/main/kotlin/io/github/realyusufismail/config/impl/JConfigPluginImpl.kt | RealYusufIsmail | 790,074,096 | false | {"Kotlin": 19093} | /*
* Copyright 2024 Yusuf Arfan Ismail (RealYusufIsmail)
*
*
* 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 b... | 0 | Kotlin | 0 | 0 | ed4c56f666e1874ad59774c7292f40a8e029f432 | 2,280 | jconfig-plugin | Apache License 2.0 |
composeApp/src/commonMain/kotlin/presentation/components/GroupLayout.kt | Coding-Meet | 740,487,604 | false | {"Kotlin": 107587, "JavaScript": 707, "Swift": 659, "HTML": 401} | package presentation.components
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.*
import androidx.compose.material3.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.style.TextOverflow... | 0 | Kotlin | 0 | 7 | d1680ef03820bb5e6645ff16c88ad3b0e4a73bc8 | 2,241 | Gemini-AI-KMP-App | MIT License |
app/src/main/java/com/cuong/moviehero/domain/use_case/movie/FetchMovieDetail.kt | cuonghuynhvan | 471,910,042 | false | {"Kotlin": 141883} | package com.cuong.moviehero.domain.use_case.movie
import com.cuong.moviehero.domain.model.MovieDetail
import com.cuong.moviehero.domain.repository.MovieRepository
class FetchMovieDetail(
private val repository: MovieRepository
) {
suspend operator fun invoke(movieId: String): MovieDetail {
return repo... | 0 | Kotlin | 0 | 0 | 36bc4b4d840343e7f7b63bc70f81546f8b49665d | 360 | MovieHero | MIT License |
src/main/kotlin/me/hrrocha0/avaliaunb/models/data/ProfessorOuDisciplinaDAO.kt | hrrocha0 | 657,358,914 | false | null | package me.hrrocha0.avaliaunb.models.data
import me.hrrocha0.avaliaunb.models.ProfessorOuDisciplinaModel
import java.sql.ResultSet
object ProfessorOuDisciplinaDAO : ReadWriteDAO<ProfessorOuDisciplinaModel> {
override fun create(model: ProfessorOuDisciplinaModel) = try {
val sql = """
INSERT IN... | 0 | Kotlin | 0 | 0 | 80b2205c73e9bc0ca0eec81148f776e885761534 | 1,918 | AvaliaUnB | MIT License |
app/src/main/java/br/com/natanloterio/bankingapp/presentation/ui/welcome/WelcomeContract.kt | natanloterio | 188,720,586 | false | null | package br.com.natanloterio.bankingapp.presentation.ui.welcome
import br.com.natanloterio.bankingapp.presentation.base.BasePresenterInterface
import br.com.natanloterio.bankingapp.presentation.base.BaseViewInterface
interface WelcomeContract{
interface View : BaseViewInterface{
fun openMainScreen()
... | 0 | Kotlin | 0 | 4 | 50c851e36c9e15f718a5ac40ae13a001024044cb | 499 | BankingAppBoilerplate | MIT License |
app/src/main/java/com/mospolytech/mospolyhelper/domain/account/messaging/repository/MessagingRepository.kt | mospolyhelper | 259,442,737 | false | {"Kotlin": 839539, "Batchfile": 69} | package com.mospolytech.mospolyhelper.domain.account.messaging.repository
import com.mospolytech.mospolyhelper.domain.account.messaging.model.Message
import com.mospolytech.mospolyhelper.utils.Result0
import kotlinx.coroutines.flow.Flow
interface MessagingRepository {
suspend fun getDialog(dialogKey: String): Flo... | 2 | Kotlin | 2 | 8 | 4f37c3617cf7523f22f03a22d7de2d7ecc74a098 | 644 | mospolyhelper-android | MIT License |
cookbook/src/main/kotlin/chapter03/Task.kt | highright96 | 499,829,960 | false | {"Kotlin": 114073, "Java": 941} | package chapter03
class Task(val name: String, _priority: Int = DEFAULT_PRIORITY) {
companion object {
const val MIN_PRIORITY = 1
const val MAX_PRIORITY = 5
const val DEFAULT_PRIORITY = 3
}
val isLowPriority
get() = priority < 3
var priority = validPriority(_priority)... | 0 | Kotlin | 0 | 2 | c3cd06deba34ac5b1e60650c638af65034d6ac42 | 612 | kotlin-sandbox | MIT License |
app/src/main/java/com/example/lun/pocket_health_advisor/medicReport/MedicReportHistoryFragment.kt | WLun001 | 110,719,603 | false | null | package com.example.lun.pocket_health_advisor.medicReport
import android.content.Intent
import android.os.Bundle
import android.support.v4.app.ListFragment
import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
import android.view.View
import android.widget.AdapterView
import android.wi... | 4 | Kotlin | 9 | 9 | 603967a465f1e4c1cd46877be6892a50cf0bb030 | 11,001 | pocket-health-advisor | MIT License |
app/src/main/kotlin/me/miguelos/sample/data/MarvelRepositoryImpl.kt | Miguelos | 321,421,228 | false | null | package me.miguelos.sample.data
import io.reactivex.rxjava3.core.Single
import me.miguelos.sample.data.source.local.MarvelLocalRemoteDataSource
import me.miguelos.sample.data.source.remote.MarvelRemoteRemoteDataSource
import me.miguelos.sample.domain.MarvelRepository
import me.miguelos.sample.domain.usecase.GetCharact... | 0 | Kotlin | 0 | 0 | 9d03ca4e7690973d7d1a1378742ff8e601db3f56 | 2,342 | AndroidSample | Apache License 2.0 |
app/src/main/java/com/stack/open_work_mobile/models/UpdateResponse.kt | 1OPENWORK | 708,477,953 | false | {"Kotlin": 132763} | package com.stack.open_work_mobile.models
data class UpdateResponse (
val userId: Long,
var nome: String,
var email: String,
var tipo: String,
var token: String,
var companyId: Long,
var image: String,
) | 0 | Kotlin | 0 | 0 | a00ad9c6c60c89bd1379052c7b07c7553ea3231b | 232 | Kotlin | MIT License |
src/main/kotlin/com/dymesolutions/linkedevents/migrations/Migrations.kt | dymesolutions | 155,518,740 | false | null | package com.dymesolutions.linkedevents.migrations
import com.dymesolutions.common.utils.Readers
import com.dymesolutions.linkedevents.App
import com.dymesolutions.linkedevents.dao.*
import com.dymesolutions.linkedevents.models.*
import com.google.gson.JsonArray
import com.google.gson.JsonParser
import org.jetbrains.ex... | 0 | Kotlin | 0 | 1 | f43b33d2c24bdbbc5375106b61bb9a2d2f9fa3aa | 9,199 | satakunta-events-api | MIT License |
data/src/main/java/com/yvkalume/data/util/Extension.kt | yveskalume | 356,004,687 | false | null | package com.yvkalume.data.util
| 3 | Kotlin | 0 | 2 | b0911c5bd75172708c52d86d3540958236d2c25e | 32 | eventcademy-old | Apache License 2.0 |
app/src/main/java/com/migueldev/floranotify/Cadastro.kt | MiguelDK17 | 775,581,227 | false | {"Kotlin": 6465} | package com.migueldev.floranotify
import android.content.Intent
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.auth.userProfileChangeRequest
import com.google.firebase.firestore.ktx.firestore
i... | 0 | Kotlin | 0 | 0 | 0db0a1c38aba1ed88427e200be9c9cfc9e4b75cf | 3,188 | FloraNotify | Apache License 2.0 |
src/main/kotlin/com/github/jschlicht/multitenantdbbenchmark/strategy/PartitionHash.kt | jschlicht | 744,785,772 | false | {"Kotlin": 25061} | package com.github.jschlicht.multitenantdbbenchmark.strategy
data object PartitionHash : Strategy("partition_hash") {
override val simpleKeys = false
override val denormalizedTenantId = true
}
| 0 | Kotlin | 0 | 0 | 1b9fbeb637cad3e6cf3d9abf2eaeac07a8d03fcd | 202 | multi-tenant-db-benchmark | MIT License |
app/src/main/java/fi/jara/thesis/thesisnative/listitems/data/filesystem/AssetsImageLoader.kt | jarkkos-crossplatform-comparison-thesis | 145,214,257 | false | null | package fi.jara.thesis.thesisnative.listitems.data.filesystem
import android.content.Context
import fi.jara.thesis.thesisnative.listitems.data.ImageLoader
import kotlinx.coroutines.CoroutineScope
import java.io.InputStream
class AssetsImageLoader(private val context: Context): ImageLoader() {
override fun getImag... | 0 | Kotlin | 0 | 0 | 4d9d05a3f097042e9d615b27a219787f609a7d7e | 408 | android-native | MIT License |
src/commonMain/kotlin/csense/kotlin/logger/L.kt | csense-oss | 136,911,995 | false | null | @file:Suppress("unused", "NOTHING_TO_INLINE", "MemberVisibilityCanBePrivate")
package csense.kotlin.logger
import csense.kotlin.*
import csense.kotlin.extensions.collections.*
import csense.kotlin.extensions.primitives.*
/**
* Logging types / levels
* A simple enumeration over the types of logging that can happen... | 1 | Kotlin | 0 | 2 | 49113dd6b2cb1e18992d07faa1e0305d18f766f4 | 9,383 | csense-kotlin | MIT License |
app/src/main/java/com/bengisusahin/wordwander/di/WordRepositoryModule.kt | bengisusaahin | 855,798,311 | false | {"Kotlin": 22839} | package com.bengisusahin.wordwander.di
import com.bengisusahin.wordwander.data.datasource.WordDataSource
import com.bengisusahin.wordwander.data.repository.WordRepository
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Single... | 0 | Kotlin | 0 | 0 | a564ebba2be2256d3a6aad432ef1c11195ef1860 | 690 | WordWander | MIT License |
app/src/main/java/com/example/scankitdemo/core_example/FormActivity.kt | albertpatera | 690,790,271 | false | {"Kotlin": 328450, "Java": 78652} | package com.example.scankitdemo.core
import android.Manifest
import android.app.Activity
import android.app.AlertDialog
import android.content.Intent
import android.os.Bundle
import android.os.Environment
import android.text.Editable
import android.text.TextWatcher
import android.view.View
import android.widget.*
impo... | 0 | Kotlin | 0 | 0 | ac936d0b90979cdfd5c0b7873c525e81ed2a11e9 | 18,233 | barCodeScanner | Apache License 2.0 |
app/src/main/java/com/prisma/prismavi/permissions/PermissionManeger.kt | PrismaVision | 846,809,499 | false | {"Kotlin": 8146} | package com.prisma.prismavi.permissions
import android.Manifest
import android.app.AlertDialog
import android.content.pm.PackageManager
import androidx.activity.result.contract.ActivityResultContracts
import androidx.core.content.ContextCompat
import com.prisma.prismavi.MainActivity
class PermissionManager(private va... | 1 | Kotlin | 1 | 0 | 0e8f1c4e76db0f66ce4823f6b8d118b310f50269 | 1,383 | Prisma-VI | MIT License |
src/main/kotlin/server/RequestType.kt | Liu-Junyan | 392,420,224 | false | null | package server
import kotlinx.serialization.Serializable
@Serializable
data class Message(val raw_message: String, val message_type: String, val user_id: Long, val group_id: Long? = null) | 0 | Kotlin | 0 | 0 | c8aa5f97461a9693720bd3c0326afd9c36f32dd9 | 189 | cq_backend | MIT License |
app/src/androidTest/java/com/santansarah/scan/di/TestUsecases.kt | santansarah | 588,753,371 | false | null | package com.santansarah.scan.di
import com.santansarah.scan.domain.usecases.ParseDescriptor
import com.santansarah.scan.domain.usecases.ParseNotification
import com.santansarah.scan.domain.usecases.ParseRead
import com.santansarah.scan.domain.usecases.ParseScanResult
import com.santansarah.scan.domain.usecases.ParseSe... | 0 | Kotlin | 1 | 16 | 9e76dab6a244e1eded2480e5e19a812612698326 | 659 | ble-scanner | MIT License |
app/src/main/java/levkaantonov/com/study/notice/screens/start/StartFragment.kt | levkaantonov | 335,081,649 | false | null | package levkaantonov.com.study.notice.screens.start
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.lifecycle.ViewModelProvider
import levkaantonov.com.study.notice.R
import levkaantonov.com.study.n... | 0 | Kotlin | 0 | 0 | fefc4b155b5ceacb4c055362be2377658c4cbdb2 | 2,697 | Notice | MIT License |
wear/src/main/java/com/devlomi/prayerwatchface/ui/calculationmethods/CalculationMethodsScreen.kt | 3llomi | 569,805,694 | false | {"Kotlin": 353465} | package com.devlomi.prayerwatchface.ui.calculationmethods
import androidx.compose.foundation.focusable
import androidx.compose.foundation.gestures.animateScrollBy
import androidx.compose.foundation.gestures.scrollBy
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.paddin... | 2 | Kotlin | 2 | 9 | d42a6c69d5013177274d127484696173d67ee33d | 3,314 | PrayerWatchFace | Apache License 2.0 |
app/src/main/java/com/lucidsoftworksllc/taxidi/main_activities/driver_user/fragments/DriverMapFragment.kt | Wakamoly | 331,492,101 | false | null | package com.lucidsoftworksllc.taxidi.main_activities.driver_user.fragments
import android.annotation.SuppressLint
import android.content.pm.PackageManager
import android.content.res.Resources
import android.graphics.Color
import android.os.Bundle
import android.os.Looper
import android.util.Log
import android.view.*
i... | 0 | Kotlin | 0 | 2 | bb03b30490d11d31363e38ed8b84e328c37e06fb | 24,287 | Taxidi | Apache License 2.0 |
app/shared/state-machine/ui/public/src/commonMain/kotlin/build/wallet/statemachine/inheritance/InheritanceManagementUiStateMachineImpl.kt | proto-at-block | 761,306,853 | false | {"C": 10474259, "Kotlin": 7954899, "Rust": 2637832, "Swift": 864356, "HCL": 349275, "Python": 338898, "Shell": 136166, "TypeScript": 118945, "C++": 69203, "Meson": 64811, "JavaScript": 36398, "Just": 32977, "Ruby": 13559, "Dockerfile": 5934, "Makefile": 3915, "Open Policy Agent": 1552, "Procfile": 80} | package build.wallet.statemachine.inheritance
import androidx.compose.runtime.*
import build.wallet.statemachine.core.ScreenModel
import build.wallet.statemachine.core.form.FormBodyModel
import build.wallet.statemachine.core.form.FormHeaderModel
import build.wallet.ui.model.StandardClick
import build.wallet.ui.model.b... | 3 | C | 16 | 113 | 1af1bc74d51ecf1dff2f5355e3f33d000957b19b | 2,076 | bitkey | MIT License |
kotlin-antd/antd-samples/src/main/kotlin/samples/radio/RadioGroup.kt | oxiadenine | 206,398,615 | false | {"Kotlin": 1619835, "HTML": 1515} | package samples.radio
import antd.radio.RadioChangeEvent
import antd.radio.radio
import antd.radio.radioGroup
import react.*
import styled.css
import styled.styledDiv
external interface RadioGroupAppState : State {
var value: Any
}
class RadioGroupApp : RComponent<Props, RadioGroupAppState>() {
private val h... | 1 | Kotlin | 8 | 50 | e0017a108b36025630c354c7663256347e867251 | 1,284 | kotlin-js-wrappers | Apache License 2.0 |
app/src/main/java/com/blazecode/tsviewer/util/database/UserCount.kt | BlazeCodeDev | 434,321,563 | false | null | /*
*
* * Copyright (c) BlazeCode / <NAME>, 2022.
*
*/
package com.blazecode.tsviewer.util.database
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
data class UserCount(
@PrimaryKey(autoGenerate = true) val id: Int?,
@ColumnInfo(name = "timeStamp") val ... | 1 | Kotlin | 1 | 12 | 8c425360db42ab6bb2bfad304ac87011f1f88922 | 446 | TSViewer | MIT License |
app/src/main/java/com/mahmudur/gitcommitviewer/model/CommitViewModel.kt | MAHMUDURRAHMANARNOB | 666,666,963 | false | null | package com.mahmudur.gitcommitviewer.model
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.cachedIn
import com.mahmudur.gitcommitviewer.data.GitHubRepository
import com.mahmudur.gitcommitviewer.paging.C... | 0 | Kotlin | 0 | 0 | 42163426483e278960286a1099673ce70b48da72 | 719 | GitCommitsViewer | MIT License |
app/src/main/java/jp/cordea/gene/viewmodels/GenesListItemViewModel.kt | CORDEA | 93,741,813 | false | null | package jp.cordea.gene.viewmodels
import android.arch.lifecycle.ViewModel
import jp.cordea.gene.api.response.Gene
/**
* Created by <NAME> on 2017/05/26.
*/
class GenesListItemViewModel(item: Gene) : ViewModel() {
val id = item.id
val title = item.symbol
val description = item.name
} | 0 | Kotlin | 0 | 0 | a048af5f1e83f7a847fee71f60ba94b276d79dab | 303 | Gene | Apache License 2.0 |
app/src/main/java/jp/cordea/gene/viewmodels/GenesListItemViewModel.kt | CORDEA | 93,741,813 | false | null | package jp.cordea.gene.viewmodels
import android.arch.lifecycle.ViewModel
import jp.cordea.gene.api.response.Gene
/**
* Created by <NAME> on 2017/05/26.
*/
class GenesListItemViewModel(item: Gene) : ViewModel() {
val id = item.id
val title = item.symbol
val description = item.name
} | 0 | Kotlin | 0 | 0 | a048af5f1e83f7a847fee71f60ba94b276d79dab | 303 | Gene | Apache License 2.0 |
domain/src/main/java/com/athimue/domain/usecase/getFavoriteTracks/GetFavoriteTracksUseCaseImpl.kt | athimue | 676,430,924 | false | {"Kotlin": 168414} | package com.athimue.domain.usecase.getFavoriteTracks
import com.athimue.domain.model.Track
import com.athimue.domain.repository.FavoriteTracksRepository
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject
class GetFavoriteTracksUseCaseImpl @Inject constructor(
private val favoriteTracksRepository: Favo... | 0 | Kotlin | 0 | 0 | 76df1a4b661dae0246dc3bd16fca86e571b68e32 | 478 | GrooveWave | MIT License |
app/src/main/java/com/github/skytoph/simpleweather/data/location/mapper/LocalNameDataMapper.kt | skytoph | 482,520,275 | false | null | package com.github.skytoph.simpleweather.data.location.mapper
import com.github.skytoph.simpleweather.core.Mapper
import java.util.*
import javax.inject.Inject
interface LocalNameDataMapper : Mapper<Pair<String, String>> {
fun map(language: String = "en", name: String): Pair<String, String>
fun map(language:... | 0 | Kotlin | 0 | 0 | 5629e9b11861dc3866510a366a1ba3cc95075fc9 | 632 | SimpleWeather | MIT License |
shared/src/commonMain/kotlin/cat/alexgluque/paraulogicsolver/data/words/W.kt | alexluque | 451,162,453 | false | null | package cat.alexgluque.paraulogicsolver.data.words
val wordsW = listOf(
"wagnerisme",
"washingtònia",
"waterpolo",
"watt",
"wattímetre",
"wàttmetre",
"waw",
"web",
"weber",
"welwítsquia",
"whisky",
"wolfram",
"wolframat",
"wolframi",
"wolfràmic -a",
"wolf... | 0 | Kotlin | 0 | 0 | 4d1d0b78d4c5d8b9a9d7c20a75e1fc857e9b1ccf | 396 | ParaulogicSolver | Apache License 2.0 |
app/src/main/kotlin/kozyriatskyi/anton/sked/login/student/StudentLoginComponent.kt | antonKozyriatskyi | 123,421,471 | false | null | package kozyriatskyi.anton.sked.login.student
import dagger.Component
import kozyriatskyi.anton.sked.di.Login
import kozyriatskyi.anton.sked.di.AppComponent
import kozyriatskyi.anton.sked.di.module.ConnectionModule
@Login
@Component(modules = [StudentLoginModule::class, ConnectionModule::class],
dependencies ... | 0 | Kotlin | 0 | 3 | 0814886758513a7d836e6908aeb7f14a45273683 | 439 | sked | Apache License 2.0 |
datacapture/src/main/java/com/google/android/fhir/datacapture/views/QuestionnaireItemEditTextViewHolderFactory.kt | sbh04101989 | 329,770,920 | true | {"Kotlin": 285905, "Shell": 1101} | /*
* Copyright 2020 Google 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... | 0 | null | 0 | 0 | 0a206de34740db8f45ae105fb36d2dd40c97ba6a | 2,347 | android-fhir | Apache License 2.0 |
app/src/main/java/com/ghataa/metaweather/data/source/DefaultWeatherInfoRepository.kt | ghataa | 360,263,493 | false | null | package com.ghataa.metaweather.data.source
import android.util.Log
import com.ghataa.metaweather.data.Result
import com.ghataa.metaweather.data.Result.Error
import com.ghataa.metaweather.data.Result.Success
import com.ghataa.metaweather.data.model.WeatherInfo
import com.ghataa.metaweather.di.ApplicationModule.WeatherI... | 0 | Kotlin | 0 | 0 | 3b28eb0c5b5b55e110d4e04647db913daad1f1ad | 2,777 | MetaWeather | Apache License 2.0 |
core/src/main/kotlin/edu/umontreal/kotlingrad/experimental/Vector.kt | cerkut | 287,769,250 | true | {"Kotlin": 238851} | @file:Suppress("ClassName", "LocalVariableName", "NonAsciiCharacters", "FunctionName", "MemberVisibilityCanBePrivate", "UNUSED_VARIABLE")
package edu.umontreal.kotlingrad.experimental
import edu.mcgill.kaliningraph.circuits.*
import edu.umontreal.kotlingrad.utils.matmul
import org.jetbrains.bio.viktor.F64Array
import ... | 0 | null | 0 | 0 | a105474549a6ae24df629164bd0cb546e449b4da | 19,184 | kotlingrad | Apache License 2.0 |
features/settings/src/main/kotlin/io/plastique/settings/SettingsActivityComponent.kt | plastiqueapp | 150,879,887 | false | null | package io.plastique.settings
import io.plastique.settings.licenses.LicensesActivity
interface SettingsActivityComponent {
fun inject(activity: LicensesActivity)
fun inject(activity: SettingsActivity)
}
| 0 | Kotlin | 2 | 9 | 9271853f3741add18822858cbad9d4f8e8104f54 | 214 | plastique | Apache License 2.0 |
features/settings/src/main/kotlin/io/plastique/settings/SettingsActivityComponent.kt | plastiqueapp | 150,879,887 | false | null | package io.plastique.settings
import io.plastique.settings.licenses.LicensesActivity
interface SettingsActivityComponent {
fun inject(activity: LicensesActivity)
fun inject(activity: SettingsActivity)
}
| 0 | Kotlin | 2 | 9 | 9271853f3741add18822858cbad9d4f8e8104f54 | 214 | plastique | Apache License 2.0 |
src/main/java/lu/jimenez/research/tools/utils/Serialization.kt | mmakowski | 170,404,529 | false | null | /*-
* #%L
* Utilitary
* %%
* Copyright (C) 2016 <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... | 0 | Kotlin | 0 | 0 | 77964d4e37043d460c05f33366d75b99cced12b6 | 5,814 | vpmreplication-utils | Apache License 2.0 |
v2-model-enumeration/src/commonMain/kotlin/com/bselzer/gw2/v2/model/enumeration/EquipmentSlot.kt | Woody230 | 388,820,096 | false | {"Kotlin": 750899} | package com.bselzer.gw2.v2.model.enumeration
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
enum class EquipmentSlot {
/**
* The breathing apparatus for aquatic environments.
*/
@SerialName("HelmAquatic")
BREATHING_APPARATUS,
/**
* The b... | 2 | Kotlin | 0 | 2 | 32f1fd4fc4252dbe886b6fc0f4310cf34ac2ef27 | 2,437 | GW2Wrapper | Apache License 2.0 |
reposilite-backend/src/main/kotlin/com/reposilite/frontend/application/FrontendPlugin.kt | Saladoc | 512,031,617 | true | {"Kotlin": 551099, "JavaScript": 88725, "Vue": 72681, "CSS": 9405, "Java": 5555, "HTML": 4501, "Shell": 1835, "Dockerfile": 1563, "Groovy": 1136} | /*
* Copyright (c) 2022 dzikoysk
*
* 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... | 0 | Kotlin | 0 | 0 | e59d785c042792b46165149b693a94c23ba457db | 3,457 | reposilite | Apache License 2.0 |
search-client/src/commonTest/kotlin/com/jillesvangurp/ktsearch/IndexCreateTest.kt | jillesvangurp | 494,038,243 | false | {"Kotlin": 292386, "Jupyter Notebook": 4181, "Shell": 511} | package com.jillesvangurp.ktsearch
import io.kotest.matchers.shouldBe
import kotlinx.coroutines.test.runTest
import kotlinx.serialization.json.jsonArray
import kotlinx.serialization.json.jsonObject
import kotlin.test.Test
class IndexCreateTest: SearchTestBase() {
@Test
fun createIndex() = runTest {
va... | 7 | Kotlin | 13 | 72 | 404eaaf952ad8d2a1e5bac4fe2faff2d014318da | 1,313 | kt-search | MIT License |
core/src/main/kotlin/io/github/shaksternano/borgar/core/collect/CollectionUtil.kt | shaksternano | 482,092,089 | false | {"Kotlin": 577124} | package io.github.shaksternano.borgar.core.collect
import kotlinx.coroutines.async
import kotlinx.coroutines.awaitAll
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
fun <T> MutableCollection<in T>.addAll(vararg elements: T): Boolean =
addAll(elemen... | 2 | Kotlin | 3 | 9 | 9966f86126e32b18fea3e5cc8456359745ca82d2 | 1,200 | borgar | MIT License |
src/commonMain/kotlin/guru/zoroark/lixy/matchers/LixyMatcherResult.kt | utybo | 234,806,930 | false | null | package guru.zoroark.lixy.matchers
import guru.zoroark.lixy.LixyToken
/**
* Subclasses of this class represent the different possible outputs for
* matchers.
* @see LixyNoMatchResult
* @see LixyIgnoreMatchResult
* @see LixyMatchedTokenResult
*/
sealed class LixyMatcherResult
/**
* Indicates that the match was... | 1 | Kotlin | 0 | 48 | 1849bb1d75c1c775c28b4e411fb705a4d642fc89 | 1,115 | Lixy | Apache License 2.0 |
src/commonMain/kotlin/guru/zoroark/lixy/matchers/LixyMatcherResult.kt | utybo | 234,806,930 | false | null | package guru.zoroark.lixy.matchers
import guru.zoroark.lixy.LixyToken
/**
* Subclasses of this class represent the different possible outputs for
* matchers.
* @see LixyNoMatchResult
* @see LixyIgnoreMatchResult
* @see LixyMatchedTokenResult
*/
sealed class LixyMatcherResult
/**
* Indicates that the match was... | 1 | Kotlin | 0 | 48 | 1849bb1d75c1c775c28b4e411fb705a4d642fc89 | 1,115 | Lixy | Apache License 2.0 |
core/notifications/src/main/kotlin/com/matabel/core/notifications/NotificationBuilderImpl.kt | anthony-cannon | 642,328,700 | false | null | package com.matabel.core.notifications
import android.Manifest
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationChannelGroup
import android.app.NotificationManager
import android.content.Context
import android.content.pm.PackageManager
import androidx.core.app.Activ... | 0 | Kotlin | 0 | 0 | 226ad1f20a6f35f2a7fb01744a9f04bfd1c47003 | 2,723 | left-behind | MIT License |
app/src/main/java/com/example/fiadosafe/Presentation/ClientsListViewModel.kt | BrunoAnndrade | 651,568,365 | false | null | package com.example.fiadosafe.Presentation
import android.app.Application
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.example.fiadosafe.FiadoSafeApplication
import com.example.fiadosafe.data.Clients
import com.example.fiadosafe.data.Client... | 0 | Kotlin | 0 | 0 | 7032248ece6ee3e67849012916ae9c441bcc7b50 | 903 | FiadoSafe | MIT License |
src/commonMain/kotlin/com/bkahlert/kommons/kaomoji/categories/RollOver.kt | bkahlert | 323,048,013 | false | null | @file:Suppress(
"KDocMissingDocumentation",
"ObjectPropertyName",
"RemoveRedundantBackticks",
"unused",
"NonAsciiCharacters",
"SpellCheckingInspection"
)
package com.bkahlert.kommons.kaomoji.categories
import com.bkahlert.kommons.kaomoji.Category
import com.bkahlert.kommons.kaomoji.Kaomoji
imp... | 7 | Kotlin | 0 | 9 | 35e2ac1c4246decdf7e7a1160bfdd5c9e28fd066 | 3,506 | kommons | MIT License |
src/day24/Interactive.kt | g0dzill3r | 576,012,003 | false | null | package day24
fun main (args: Array<String>) {
val example = true
var valley = loadValley(example)
val blizzards = { p: Point ->
val dirs = valley.getBlizzards (p)
when (dirs.size) {
0 -> '.'
1 -> dirs[0].encoded
in 1..9 -> "${dirs.size}"[0]
... | 0 | Kotlin | 0 | 0 | 6ec11a5120e4eb180ab6aff3463a2563400cc0c3 | 4,012 | advent_of_code_2022 | Apache License 2.0 |
app/src/main/java/com/stocksexchange/android/model/Option.kt | nscoincommunity | 277,168,471 | true | {"Kotlin": 2814235} | package com.stocksexchange.android.model
data class Option(
val id: Int,
val iconDrawableId: Int,
val title: String,
val status: Status = Status.DEFAULT
) {
enum class Status {
DEFAULT,
HIGHLIGHTED
}
} | 0 | null | 0 | 0 | 52766afab4f96506a2d9ed34bf3564b6de7af8c3 | 248 | Android-app | MIT License |
src/main/kotlin/com/target/nativememoryallocator/buffer/OnHeapMemoryBuffer.kt | target | 489,390,330 | false | {"Kotlin": 211151} | package com.target.nativememoryallocator.buffer
import java.nio.ByteBuffer
/**
* An onheap memory buffer that expands on demand when setReadableBytes is called.
*
* Backed by a [ByteArray].
*
* OnHeapMemoryBuffer is not synchronized - each instance should be used in a single thread, or the user must provide sync... | 0 | Kotlin | 4 | 7 | 9244efc1a54d6c6ee9a850f93a7edb0e10b60e88 | 1,219 | native_memory_allocator | Apache License 2.0 |
app/src/main/java/kr/ac/gachon/sw/safenoisecanceling/models/Sound.kt | Aftermoon-dev | 436,584,571 | false | null | package kr.ac.gachon.sw.safenoisecanceling.models
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
data class Sound(
@PrimaryKey(autoGenerate = true) val id: Long = 0,
@ColumnInfo(name="type") val soundType: String,
@ColumnInfo(name="score") val score: Fl... | 0 | Kotlin | 0 | 0 | 3ae6a01d73d482523cc02f2e8996f67474c9cdbe | 371 | SafeNoiseCanceling | Apache License 2.0 |
domain/src/main/java/com/example/domain/reposImpl/LinkRepoImpl.kt | City-Zouitel | 576,223,915 | false | null | package com.example.domain.reposImpl
import com.example.domain.repos.LinkRepo
import com.example.local.daos.LinkDao
import com.example.local.model.Link
import dagger.hilt.android.lifecycle.HiltViewModel
import dagger.hilt.android.scopes.ViewModelScoped
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines... | 27 | Kotlin | 6 | 43 | 07734f993db841e6ad56f484379ea399e30dc55e | 800 | JetNote | Apache License 2.0 |
app/src/main/java/com/realtomjoney/pyxlmoose/listeners/ColorPalettesFragmentListener.kt | realtomjoney | 419,545,692 | false | null | package com.realtomjoney.pyxlmoose.listeners
import com.realtomjoney.pyxlmoose.models.ColorPalette
interface ColorPalettesFragmentListener {
fun onColorPaletteTapped(selectedColorPalette: ColorPalette)
} | 15 | Kotlin | 2 | 30 | ecea3c6d807483c31fa61fbf8d127e9ed92d1258 | 209 | PyxlMoose | MIT License |
app/src/main/java/com/apolloclinicmalda/features/chat/presentation/AddGroupFragment.kt | DebashisINT | 592,683,732 | false | null | package com.apolloclinicmalda.features.chat.presentation
import android.content.ActivityNotFoundException
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.speech.RecognizerIntent
import androidx.appcompat.widget.AppCompatImageView
import androidx.recyclerview.widget.... | 0 | Kotlin | 0 | 0 | f34844a556c5651f8e49b786918b06c3b5cce9db | 12,349 | ApolloClinic_Malda | Apache License 2.0 |
app/src/main/java/com/adishakti/repohunt/components/NoData.kt | Sharma-Prince | 801,077,283 | false | {"Kotlin": 68948} | package com.adishakti.repohunt.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.... | 0 | Kotlin | 0 | 1 | 70fc082bacf8b11581a2f03a3fe588a6da61d2a8 | 1,797 | RepoHunt | MIT License |
app/src/main/java/com/zigis/paleontologas/application/data/BaseDao.kt | edgar-zigis | 240,962,785 | false | null | package com.zigis.paleontologas.application.data
import androidx.room.*
import androidx.sqlite.db.SupportSQLiteQuery
@Dao
interface BaseDao<T> {
@Insert(onConflict = OnConflictStrategy.IGNORE)
suspend fun insertAll(list: List<T>)
@RawQuery
suspend fun findOne(query: SupportSQLiteQuery): T
@RawQu... | 0 | Kotlin | 16 | 126 | 4ee09d3c6f29278aa1762e71f7db6a84d0ca3dea | 458 | Paleontologas | Apache License 2.0 |
translatorCompiler/src/main/kotlin/net/earthcomputer/multiconnect/compiler/CompileException.kt | LostLuma | 504,882,998 | true | {"Java Properties": 2, "Batchfile": 2, "Gradle": 5, "Shell": 3, "Text": 26, "Markdown": 3, "Ignore List": 1, "JSON": 61, "Java": 808, "Gradle Kotlin DSL": 6, "Kotlin": 67, "XML": 3, "YAML": 3, "Groovy": 1, "Graphviz (DOT)": 3, "SVG": 3, "INI": 1, "Python": 3, "JavaScript": 1} | package net.earthcomputer.multiconnect.compiler
class CompileException(desc: String) : RuntimeException(desc) {
}
| 0 | null | 0 | 0 | ee5cbf489d9d03e9cd12b43e26d75e367666d973 | 115 | multiconnect | MIT License |
platform/lang-impl/src/com/intellij/util/indexing/diagnostic/dto/JsonProjectIndexingHistoryTimes.kt | gaiazov | 269,263,276 | false | {"Text": 4081, "XML": 4715, "Ant Build System": 13, "Shell": 533, "Markdown": 309, "Ignore List": 80, "Git Attributes": 9, "Batchfile": 30, "SVG": 2073, "Java": 66131, "C++": 20, "HTML": 2399, "Kotlin": 5911, "DTrace": 1, "Gradle": 58, "Java Properties": 109, "INI": 279, "JFlex": 27, "CSS": 53, "Objective-C": 19, "Groo... | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.util.indexing.diagnostic.dto
@Suppress("unused", "used for JSON")
data class JsonProjectIndexingHistoryTimes(
val indexingTime: JsonTime,
val scanFilesTi... | 1 | null | 1 | 1 | 494310d2ec94e226e915efda681d20ee92fbe412 | 732 | intellij-community | Apache License 2.0 |
play-default-fallback/src/main/kotlin/org/example/df/demos/interfaces/ACFIKotlinInterfaceKotlinDemo.kt | dowenliu-xyz | 808,693,582 | false | {"Gradle Kotlin DSL": 13, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 2, "Java": 399, "YAML": 4, "INI": 6, "Kotlin": 354, "Java Properties": 1} | package org.example.df.demos.interfaces
import com.alibaba.csp.sentinel.annotation.SentinelResource
import org.example.df.biz.Greeting.doGreeting
import org.springframework.stereotype.Component
/**
* case impl: Annotation in Class and Fallback in Interface
* <br/>
* Aspect takes effect, but CAN NOT find fallback m... | 0 | Java | 0 | 1 | 8b6df6f693a0c7efa25c3a7d634823d7b8ec4915 | 577 | sentinel-plays | Apache License 2.0 |
libnavui-dropin/src/main/java/com/mapbox/navigation/dropin/map/longpress/RoutePreviewLongPressMapComponent.kt | mapbox | 87,455,763 | false | null | package com.mapbox.navigation.dropin.map.longpress
import com.mapbox.maps.MapView
import com.mapbox.maps.plugin.gestures.OnMapLongClickListener
import com.mapbox.maps.plugin.gestures.gestures
import com.mapbox.navigation.core.MapboxNavigation
import com.mapbox.navigation.dropin.navigationview.NavigationViewContext
imp... | 505 | null | 319 | 621 | ad73c6011348cb9b24b92a369024ca06f48845ab | 2,131 | mapbox-navigation-android | Apache License 2.0 |
leetcode/p0791/20240311/Solution.kt | suhwanhwang | 199,259,343 | false | {"Text": 138, "Ignore List": 2, "Markdown": 1, "Makefile": 2, "Java": 638, "C++": 118, "YAML": 15, "JSON": 311, "Shell": 56, "Gradle": 12, "Python": 6, "Jupyter Notebook": 10, "XML": 4, "Kotlin": 232, "Swift": 67, "INI": 1} | class Solution {
fun customSortString(order: String, s: String): String {
val map = IntArray(26) {0}
for(c in s) {
map[c - 'a']++
}
val sb = StringBuilder()
for (c in order) {
for(i in 0 until map[c - 'a']) sb.append(c)
ma... | 0 | Java | 0 | 0 | 0cc37fd7b9350a2a9f01f4828e3f4a22cf2121e5 | 486 | problem-solving | MIT License |
src/main/kotlin/cn/yiiguxing/plugin/translate/action/TitleBarActionRegistrar.kt | holiday-toby | 107,372,591 | true | {"Gradle Kotlin DSL": 2, "SVG": 81, "Markdown": 8, "Java Properties": 5, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "INI": 5, "Kotlin": 215, "Java": 7, "XML": 33, "YAML": 7, "JSON": 1} | package cn.yiiguxing.plugin.translate.action
import cn.yiiguxing.plugin.translate.util.IdeVersion
import cn.yiiguxing.plugin.translate.util.Plugin
import com.intellij.ide.AppLifecycleListener
import com.intellij.ide.plugins.DynamicPluginListener
import com.intellij.ide.plugins.IdeaPluginDescriptor
import com.intellij.... | 0 | Kotlin | 0 | 0 | 8714eeb23eebe0391d99a71b6649e2439360d833 | 1,640 | TranslationPlugin | MIT License |
src/commonMain/kotlin/money/terra/client/lcd/api/TreasuryApi.kt | buzlinklabs | 260,423,602 | false | {"Gradle Kotlin DSL": 2, "INI": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Kotlin": 72, "Java": 3} | package money.terra.client.lcd.api
import money.terra.client.HttpClient
import money.terra.model.ResultWrapper
class TreasuryApi(
private val client: HttpClient
) {
suspend fun getTaxRate(): ResultWrapper<String> {
return client.get("/treasury/tax_rate")
}
suspend fun getTaxCapacity(denom: S... | 1 | null | 1 | 1 | 82a47540c4dded49989c71d9743834051dfbfc32 | 413 | terra-sdk | Apache License 2.0 |
src/main/kotlin/com/demonwav/mcdev/nbt/lang/format/NbttParameterNameHints.kt | robertizotov-zz | 101,105,621 | false | {"Gradle": 1, "Markdown": 1, "Gradle Kotlin DSL": 1, "Text": 15, "Java Properties": 3, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "XML": 37, "YAML": 2, "INI": 12, "Java": 3, "Groovy": 4, "HAProxy": 2, "Kotlin": 450, "HTML": 28, "JFlex": 2} | /*
* Minecraft Dev for IntelliJ
*
* https://minecraftdev.org
*
* Copyright (c) 2017 minecraft-dev
*
* MIT License
*/
package com.demonwav.mcdev.nbt.lang.format
import com.demonwav.mcdev.nbt.lang.gen.psi.NbttByteArray
import com.demonwav.mcdev.nbt.lang.gen.psi.NbttCompound
import com.demonwav.mcdev.nbt.lang.ge... | 1 | null | 1 | 1 | 9b91deed668fce98cd21474b9135ec9b92212c2b | 1,907 | MinecraftDevIntelliJ | MIT License |
chapter5-Translator/app/src/main/java/me/adswt518/translator/MainActivity.kt | ADSWT518 | 420,092,466 | false | null | package me.adswt518.translator
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.os.Message
import android.util.Log
import android.widget.Button
import android.widget.EditText
import android.widget.TextView
import com.google.gson.... | 1 | null | 1 | 4 | 96bbb24da5146157e3550deaf08f87c5b4084327 | 3,615 | android-develop-bytedance | MIT License |
extensions/intellij/intellij_generator_plugin/src/main/java/com/bloc/intellij_generator_plugin/generator/Generator.kt | noahmateen | 183,264,134 | false | {"Markdown": 59, "Text": 5, "Ignore List": 19, "YAML": 26, "CODEOWNERS": 1, "Dart": 199, "Gradle": 35, "XML": 114, "INI": 22, "Java Properties": 12, "Java": 12, "OpenStep Property List": 23, "Objective-C": 33, "JSON": 25, "JSON with Comments": 2, "Shell": 3, "Batchfile": 2, "Kotlin": 7, "Ruby": 3, "HTML": 10, "CSS": 4,... | package com.bloc.intellij_generator_plugin.generator
import com.google.common.base.CaseFormat
import com.google.common.io.CharStreams
import org.apache.commons.lang.text.StrSubstitutor
import java.io.InputStreamReader
import java.lang.RuntimeException
abstract class Generator(private val blocName: String,
... | 1 | null | 1 | 1 | 300f6b6d28b9427a15ea336b78ae9799c73b087e | 1,687 | bloc | MIT License |
gradle-plugin/src/main/kotlin/com/alecstrong/cocoapods/gradle/plugin/CocoapodsCompileTask.kt | jrocharodrigues | 167,940,603 | true | {"Kotlin": 19221, "Shell": 937, "Objective-C": 464} | package com.alecstrong.cocoapods.gradle.plugin
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.TaskAction
import org.jetbrains.kotlin.gradle.plugin.mpp.NativeBuildType
import org.jetbrains.kotlin.gradle.tasks.KotlinNativeLink
import org.jetbrains.kotlin.konan.target.Architecture
import java.io.File
open... | 0 | Kotlin | 0 | 0 | 4c6dda39341d10e0c586d432405f6c8682305c02 | 2,716 | kotlin-native-cocoapods | Apache License 2.0 |
src/main/kotlin/com/clprunner/runnertalkchat/domain/chatroom/ChatRoom.kt | clp-runner | 740,936,919 | false | {"Kotlin": 5897} | package com.clprunner.runnertalkchat.chatroom
import com.clprunner.runnertalkchat.global.document.MongoBaseDocument
import lombok.AccessLevel
import lombok.AllArgsConstructor
import lombok.Builder
import lombok.NoArgsConstructor
import org.springframework.data.mongodb.core.mapping.Document
import java.time.ZonedDateTi... | 2 | Kotlin | 0 | 0 | 53421b9d5adf2834c2959e98e43ce346cb0d9351 | 961 | runner-talk-chat | Apache License 2.0 |
core/src/test/kotlin/no/ntnu/ihb/vico/util/ExtensionsKtTest.kt | NTNU-IHB | 284,521,287 | false | null | package no.ntnu.ihb.vico.util
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
internal class ExtensionsKtTest {
@Test
fun insert() {
val original = "Hello, pants!"
val insert = "smarty"
val modified = original.insert(original.indexOf(' '), inse... | 4 | Kotlin | 1 | 8 | 997c708656c274cbcab94cb4375ebfdf46d5e1ad | 389 | Vico | MIT License |
sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/register/Permission.kt | wulkanowy | 138,756,468 | false | null | package io.github.wulkanowy.sdk.scrapper.register
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class Permission(
@Json(name = "AuthInfos")
val authInfos: List<AuthInfo>,
@Json(name = "Units")
val units: List<Unit>
)
@JsonClass(generateAd... | 9 | Kotlin | 4 | 18 | 57680ecb3fa0ddf352ab1c5c53a00f260e5d6c9c | 1,097 | sdk | Apache License 2.0 |
app/src/main/java/com/example/dapurmamatur/di/NetworkModule.kt | MFaisal00359 | 792,108,953 | false | {"Kotlin": 59155} | package com.example.dapurmamatur.di
import android.content.Context
import android.net.ConnectivityManager
object NetworkModule {
fun provideConnectivityManager(context: Context): ConnectivityManager {
return context.getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager
}
} | 3 | Kotlin | 0 | 2 | 333c3cecb0e11e182b70fc8f925d23774103fa1f | 308 | Recipe-Meals-Dapur-Mama-Tur | MIT License |
src/main/kotlin/com/intellij/ml/llm/template/utils/EFCandidateFactory.kt | JetBrains-Research | 616,565,282 | false | null | package com.intellij.ml.llm.template.utils
import com.intellij.ml.llm.template.extractfunction.EFCandidate
import com.intellij.ml.llm.template.extractfunction.EFSuggestion
import com.intellij.ml.llm.template.extractfunction.EfCandidateType
import com.intellij.openapi.editor.Editor
import com.intellij.psi.PsiElement
im... | 1 | Kotlin | 0 | 0 | e07bad76788d74e67a7b599c5db2ff01bafad7bd | 5,473 | llm-guide-refactorings | MIT License |
2021/src/main/kotlin/aoc/day2.kt | daf276 | 433,385,608 | false | null | package aoc.day2
sealed class Instruction {
data class FORWARD(val value: Int) : Instruction()
data class DOWN(val value: Int) : Instruction()
data class UP(val value: Int) : Instruction()
}
fun parseInstructions(input: List<String>): List<Instruction> =
input.map { it.split(" ") }.map { (instruction... | 0 | Rust | 0 | 0 | d397cfe0daab24604615d551cbdb7c6ae145ae74 | 1,495 | AdventOfCode | MIT License |
src/main/kotlin/io/zerobase/smarttracing/Router.kt | knorrium | 253,064,461 | true | {"Kotlin": 47971, "Python": 2823, "CSS": 2778, "HTML": 2333, "Dockerfile": 218, "Shell": 158} | package io.zerobase.smarttracing
import com.fasterxml.jackson.annotation.JsonProperty
import io.zerobase.smarttracing.models.DeviceId
import io.zerobase.smarttracing.models.Fingerprint
import javax.ws.rs.Consumes
import javax.ws.rs.POST
import javax.ws.rs.Path
import javax.ws.rs.Produces
import javax.ws.rs.core.MediaT... | 0 | null | 0 | 0 | 4fa295b3eed6a06c31605e705aa026734e473a6c | 1,828 | smart-tracing-api | Apache License 2.0 |
cbor-processor/src/main/kotlin/com/android/identity/cbor/annotation/CborSerializable.kt | openwallet-foundation-labs | 248,844,077 | false | {"Kotlin": 2822892, "Java": 682870, "Python": 85755, "JavaScript": 28064, "HTML": 841, "CSS": 286, "Dockerfile": 267} | package com.android.identity.cbor.annotation
@Target(AnnotationTarget.CLASS)
@Retention(AnnotationRetention.SOURCE)
annotation class CborSerializable(
/**
* Optional parameter for sealed class hierarchies to define the key that carries type id.
*
* This parameter should be used on the root (sealed) ... | 97 | Kotlin | 69 | 135 | a39789f8d2b2c35a2eaa032f7827a3aa3ecda758 | 574 | identity-credential | Apache License 2.0 |
src/main/kotlin/com/ferum_bot/quotesapi/models/create_entities/CreateTagModel.kt | Ferum-bot | 378,502,194 | false | null | package com.ferum_bot.quotesapi.models.create_entities
data class CreateTagModel(
val text: String
)
| 0 | Kotlin | 0 | 0 | ad69f72ca5d87f819085ef396eabae35ebbd3a0e | 108 | QuotesAPI | Apache License 2.0 |
src/ext/kotlin/slatekit-providers-kafka/src/main/kotlin/slatekit/providers/kafka/KafkaConfig.kt | slatekit | 55,942,000 | false | null | package slatekit.providers.kafka
import slatekit.common.conf.Conf
import org.apache.kafka.clients.CommonClientConfigs
import org.apache.kafka.clients.producer.ProducerConfig
import org.apache.kafka.common.config.SaslConfigs
import org.apache.kafka.common.security.auth.SecurityProtocol
import org.apache.kafka.common.s... | 6 | Kotlin | 12 | 107 | f8ae048bc7d19704a2558e1d02374e98782e7b47 | 1,800 | slatekit | Apache License 2.0 |
src/test/kotlin/me/stockingd/current/operators/FlatMapConcatKtTest.kt | dmstocking | 375,025,377 | false | null | package me.stockingd.current.operators
import io.kotest.core.spec.style.DescribeSpec
import io.kotest.matchers.shouldBe
import kotlinx.coroutines.delay
import me.stockingd.current.current
import me.stockingd.current.currentOf
internal class FlatMapConcatKtTest : DescribeSpec({
describe("map") {
it("should... | 0 | Kotlin | 0 | 0 | 6e4b04e47038b0a402a5732adfbc70c52347243d | 1,047 | current | MIT License |
chatlibrary/src/main/java/com/zaeem/myapplication/adapters/ConversationListAdapter.kt | ZaeemSattar | 432,133,401 | false | null | package com.zaeem.myapplication.adapters
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import com.zaeem.myapplication.data.models.ConversationListViewItem
import com.zaeem.myapplication.databinding.RowConve... | 0 | Kotlin | 0 | 0 | 546b9e73e8c1f7843cc98ce9a9767d41cac52f00 | 2,239 | TwilioChat | MIT License |
script/src/main/java/ru/flowernetes/script/domain/usecase/ValidateSourceScriptUseCaseImpl.kt | b1nd | 252,335,785 | false | null | package ru.flowernetes.script.domain.usecase
import org.apache.commons.io.FilenameUtils
import org.springframework.stereotype.Component
import ru.flowernetes.script.api.domain.dto.SourceScriptDto
import ru.flowernetes.script.api.domain.entity.SourceScriptValidationException
import ru.flowernetes.script.api.domain.usec... | 0 | Kotlin | 1 | 2 | 8eef7e3324642fa4b26a69be69525d79a4873ea4 | 1,271 | flowernetes | MIT License |
src/main/kotlin/fr/ziedelth/jais/countries/FranceCountry.kt | Ziedelth | 371,147,884 | false | null | /*
* Copyright (c) 2021. Ziedelth
*/
package fr.ziedelth.jais.countries
import fr.ziedelth.jais.platforms.AnimeDigitalNetworkPlatform
import fr.ziedelth.jais.platforms.CrunchyrollPlatform
import fr.ziedelth.jais.platforms.NetflixPlatform
import fr.ziedelth.jais.platforms.WakanimPlatform
import fr.ziedelth.jais.util... | 0 | Kotlin | 0 | 1 | 08e122a2858d73f6afe5e8bf0433101b65313202 | 3,278 | Jais | MIT License |
src/main/kotlin/Visibilidade_Heranca/Cliente.kt | original-carreira | 391,493,690 | false | null | package Visibilidade_Heranca
open class Cliente (var numeroCodigo:Long,var nome:String,var sobreNome:String) | 0 | Kotlin | 0 | 0 | a0c21bd46cdcdc9535f85e66b98dbbc1401850e9 | 109 | Digita_House | MIT License |
src/main/java/com/nextdevv/kgui/utils/Alignment.kt | NextDevv | 684,177,399 | false | {"Kotlin": 58170} | package com.nextdevv.kgui.utils
enum class Alignment {
TOP_LEFT,
TOP_CENTER,
TOP_RIGHT,
CENTER_LEFT,
CENTER,
CENTER_RIGHT,
BOTTOM_LEFT,
BOTTOM_CENTER,
BOTTOM_RIGHT;
companion object {
fun getIndex(alignment: Alignment, rows: Int): Int {
when(alignment) {
... | 0 | Kotlin | 0 | 2 | 985c776175291262f91c8ba988a7767bac6a5a43 | 1,361 | KGui | MIT License |
tests/src/main/kotlin/se/ansman/dagger/auto/ktorfit/KtorfitModule.kt | ansman | 565,464,998 | false | {"Kotlin": 269874, "Java": 4602, "Shell": 503} | package se.ansman.dagger.auto.ktorfit
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import de.jensklingenberg.ktorfit.Ktorfit
import javax.inject.Singleton
@Module
@InstallIn(SingletonComponent::class)
object KtorfitModule {
@Provides
... | 6 | Kotlin | 3 | 69 | 10c439594cea772cdc90e5e89c0847061d7a26e9 | 477 | auto-dagger | Apache License 2.0 |
source-code/starter-project/app/src/main/java/com/droidcon/easyinvoice/ui/home/nav/InvoiceNav.kt | droidcon-academy | 731,477,787 | false | {"Kotlin": 1511048} | /*
* Copyright (c) 2022. Droidcon
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 0 | Kotlin | 1 | 0 | ce943998fb00f7df6e83465c75abde4e6c7e542f | 4,213 | android-room-database-course-materials | Apache License 2.0 |
app/src/main/java/com/example/skycast/data/model/dailyforcast/Sun.kt | pavannamepalli | 683,812,643 | false | {"Kotlin": 46045} | package com.example.skycast.data.model.dailyforcast
data class Sun(
val EpochRise: Int,
val EpochSet: Int,
val Rise: String,
val Set: String
) | 0 | Kotlin | 0 | 0 | e0fc2c35610b961948281f29756b714a2c24c0ee | 159 | SkyCast | MIT License |
konsist/src/test/kotlin/com/timplifier/boilerplate/konsist/data/assertions/architecture/DataLayerArchitectureTest.kt | timplifier | 699,749,494 | false | {"Kotlin": 41055} | package com.timplifier.rickandmortyremastered.konsist.data.assertions.architecture
import com.lemonappdev.konsist.api.Konsist
import com.lemonappdev.konsist.api.architecture.KoArchitectureCreator.assertArchitecture
import com.lemonappdev.konsist.api.architecture.Layer
import org.junit.Test
internal class DataLayerArc... | 0 | Kotlin | 0 | 0 | e3b78301d47e39a4d897aa533f21d178adaa6149 | 1,214 | RickAndMortyRemastered | Apache License 2.0 |
src/main/kotlin/androidstudio/tools/missed/missedtoolwindow/model/MissedToolsWindowStateUi.kt | rasoulmiri | 668,869,188 | false | {"Kotlin": 440329} | package androidstudio.tools.missed.missedtoolwindow.model
sealed class MissedToolsWindowStateUi {
object Loading : MissedToolsWindowStateUi()
object Success : MissedToolsWindowStateUi()
object NeedToConnectDevice : MissedToolsWindowStateUi()
object Error : MissedToolsWindowStateUi()
}
| 0 | Kotlin | 0 | 2 | fb33080fef3289880a4efdaf92bb9826c322cfc4 | 303 | AndroidStudioToolsMissed | Apache License 2.0 |
src/main/java/com/denis/morozov/retrobot/core/database/condition/ConditionDescriptor.kt | dmoroz0v | 151,746,932 | false | null | package com.denis.morozov.retrobot.core.database.condition
sealed class ConditionDescriptor
class Equal(val field: String, val value: Any): ConditionDescriptor()
class Relationship(val field1: String, val field2: String): ConditionDescriptor()
class And(vararg val elements: ConditionDescriptor): ConditionDescriptor()
... | 0 | Kotlin | 0 | 0 | e22c3587034d4147d5dd4a32e252863cce942b0b | 461 | retrobot | MIT License |
bilimiao-compose/src/main/java/cn/a10miaomiao/bilimiao/compose/pages/BlankPage.kt | 10miaomiao | 142,169,120 | false | {"Kotlin": 1671460, "Java": 664642, "HTML": 601} | package cn.a10miaomiao.bilimiao.compose.pages
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModel
import cn.a10miaomiao.bilimiao.compose.comm.diViewModel
import cn.a10miaomiao.bilimiao.compose.comm.localCont... | 44 | Kotlin | 38 | 977 | 1d59b82ba30b4c2e83c781479d09c48c3a82cd47 | 1,030 | bilimiao2 | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.