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/main/kotlin/org/jetbrains/kotlincodeanomaliespublisher/main.kt | petukhovv | 124,805,879 | false | null | package org.jetbrains.kotlincodeanomaliespublisher
import com.xenomachina.argparser.ArgParser
import org.jetbrains.kotlincodeanomaliespublisher.structures.AnomalyType
import org.jetbrains.kotlincodeanomaliespublisher.structures.ProcessMethod
fun main(args : Array<String>) {
val parser = ArgParser(args)
val a... | 0 | Kotlin | 1 | 1 | 3821684cfd8b4f56ac3934b3b9c1f0788c04a1fa | 974 | kotlin-code-anomalies-publisher | Apache License 2.0 |
secdra-service/src/main/kotlin/com/junjie/secdraservice/serviceimpl/CommentMessageServiceImpl.kt | fuzeongit | 154,359,683 | false | null | package com.junjie.secdraservice.serviceimpl
import com.junjie.secdracore.util.DateUtil
import com.junjie.secdradata.database.primary.dao.CommentMessageDAO
import com.junjie.secdradata.database.primary.entity.CommentMessage
import com.junjie.secdraservice.service.CommentMessageService
import org.springframework.data.j... | 1 | Kotlin | 4 | 11 | f75c32e5fb834d456a3182f71aee08029a1629d3 | 1,762 | secdra | MIT License |
app/src/main/java/com/vicky7230/sunny/ui/weather/WeatherActivity.kt | vicky7230 | 188,676,424 | false | null | package com.vicky7230.sunny.ui.weather
import android.Manifest
import android.animation.ObjectAnimator
import android.animation.ValueAnimator
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Intent
import android.content.IntentSender
import android.content.pm.PackageManager
imp... | 0 | Kotlin | 5 | 6 | f46bf5ab713070e338618392780b9cbeca3bf1cf | 10,957 | Sunny | Apache License 2.0 |
core/domain/src/main/java/com/season/winter/core/domain/database/ImageDatabaseRoomDao.kt | winter-love-dev | 660,596,555 | false | {"Kotlin": 266095} | package com.season.winter.core.domain.database
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.season.winter.core.domain.entity.ImageNameUrlPairEntity
import kotlinx.coroutines.flow.Flow
@Dao
interface ImageDatabaseRoomDao {
// F... | 0 | Kotlin | 0 | 0 | d84a7f228b553a631bccaf2352be0ae88ed22b8e | 1,176 | CatchBottle | Apache License 2.0 |
androidApp/src/main/java/com/marcocastope/mcsports/android/di/AppModule.kt | marcocastope | 630,538,499 | false | null | package com.marcocastope.mcsports.android.di
import com.marcocastope.mcsports.android.ui.home.HomeViewModel
import com.marcocastope.mcsports.android.ui.livescore.LiveScoreViewModel
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module
val appModule = module {
viewModel { HomeViewModel(get(),... | 0 | Kotlin | 0 | 0 | 06d9f702d169759a699e36425fee7cbc48ab36f4 | 375 | McSports | MIT License |
app/src/main/java/com/theapache64/topcorn/data/local/Converters.kt | HarshDhakate | 437,835,535 | false | null | package com.<NAME>.MoviesMad.data.local
import androidx.room.TypeConverter
class Converters {
@TypeConverter
fun fromStringList(list: List<String>): String {
return list.joinToString(",")
}
@TypeConverter
fun fromStringToList(string: String): List<String> {
return string.split(","... | 0 | Kotlin | 0 | 0 | ab64de10afbfc38c1c111325288c727b6c1f66ad | 329 | Mad_Assignment_2 | Apache License 2.0 |
src/test/kotlin/com/zupacademy/henio/pix/RemoveChaveControllerTest.kt | HenioJunior | 402,023,059 | true | {"Kotlin": 44282, "Smarty": 1962, "Dockerfile": 171} | package com.zupacademy.henio.pix
import com.zupacademy.henio.pix.exceptions.GlobalExceptionHandler
import com.zupacademy.henio.pix.grpc.KeymanagerRemoveGrpcServiceGrpc
import com.zupacademy.henio.pix.grpc.RemoveChavePixResponse
import com.zupacademy.henio.pix.shared.grpc.KeyManagerGrpcFactory
import io.grpc.Status
imp... | 0 | Kotlin | 0 | 0 | 64442d63dcdd7dddab56481c3174a44ee0666879 | 3,413 | orange-talents-06-template-pix-keymanager-rest | Apache License 2.0 |
generator/src/test/kotlin/com/android/gradle/replicator/generator/fixtures/BaseTest.kt | android | 281,446,649 | false | null | /*
* Copyright (C) 2020 The Android Open Source Project
*
* 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 app... | 3 | Kotlin | 27 | 87 | dcdbd2d77b0a3e511c5da0ef960668bfec9f25a3 | 1,904 | project-replicator | Apache License 2.0 |
PADCX_HealthCareApp_NCT/doctor/src/main/java/com/padcx/doctor/views/viewholders/BasePreviousConsultListViewHolder.kt | NayChiThin | 316,665,297 | false | null | package com.padcx.doctor.views.viewholders
import android.view.View
import com.padcx.shared.views.viewholders.BaseViewHolder
import com.padcx.shared.data.vos.ConsultVO
abstract class BasePreviousConsultListViewHolder(itemView:View) : BaseViewHolder<ConsultVO>(itemView){
} | 0 | Kotlin | 0 | 0 | 80f24209ef34e56a6db6bfef72d115c7125dc4d8 | 274 | PADCX_HealthCareApp_NCT | Apache License 2.0 |
app/src/main/java/konsum/gandalf/mealmate/recipe/ui/fragments/RecipeSearchFragment.kt | KonsumGandalf | 586,627,095 | false | null | package konsum.gandalf.mealmate.recipe.ui.fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.recyclerview.widget.LinearLayoutManager
import dagger.hilt... | 0 | Kotlin | 0 | 1 | cae793002ae065f2b06e0da6e76e448b0201bd74 | 4,462 | mealmate | MIT License |
Todo/src/commonMain/kotlin/io/nacular/doodle/examples/NativeLinkStyler.kt | linhtran04 | 378,655,764 | true | {"Kotlin": 104185, "HTML": 1962} | package io.nacular.doodle.examples
import io.nacular.doodle.controls.buttons.HyperLink
import io.nacular.doodle.core.Behavior
/**
* Adapter interface to wrap `NativeHyperLinkBehaviorBuilder`--which is JS only--and make it available to
* common code.
*/
interface NativeLinkStyler {
/**
* Gets a native [Hyp... | 0 | null | 0 | 0 | 647ba646dea65d9637f534aa0a2abea7859255a9 | 618 | doodle-tutorials | MIT License |
app/src/main/java/software/orpington/rozkladmpk/home/NewsContract.kt | frysztak | 178,226,007 | false | null | package software.orpington.rozkladmpk.home
import software.orpington.rozkladmpk.BaseView
import software.orpington.rozkladmpk.data.model.NewsItem
interface NewsContract {
interface Presenter {
fun attachView(view: View)
fun detachView()
fun loadMostRecentNews()
fun showMoreClicked... | 0 | Kotlin | 0 | 0 | afcddfdddfd7490af4fe0994a5b647c8161c45f1 | 459 | niebieskie-tramwaje | MIT License |
app/src/test/java/com/kiwiandroiddev/sc2buildassistant/feature/translate/data/CachedSupportedLanguagesAgentTest.kt | kiwiandroiddev | 93,439,255 | false | {"Java": 312136, "Kotlin": 187776} | package com.kiwiandroiddev.sc2buildassistant.feature.translate.data
import com.kiwiandroiddev.sc2buildassistant.feature.cache.Cache
import com.kiwiandroiddev.sc2buildassistant.feature.translate.data.cache.CachedSupportedLanguagesAgent
import com.kiwiandroiddev.sc2buildassistant.feature.translate.domain.LanguageCode
im... | 1 | null | 1 | 1 | 83c7b27afae29a81689be2b5fbc74b84c4934ddb | 4,150 | starcraft-2-build-player | MIT License |
src/commonMain/kotlin/com/jessecorbett/diskord/util/Json.kt | iLemonBr | 304,697,089 | true | {"Kotlin": 303386} | package com.jessecorbett.diskord.util
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.JsonConfiguration
/**
* [JsonConfiguration] that modifies [JsonConfiguration.Stable].
*/
internal val jsonConfiguration = JsonConfiguration.Stable.copy(ignoreUnknownKeys = true, isLenient = true, useArray... | 0 | null | 0 | 1 | a49da4b3c162a2e6177437b5499b328ee01ea32a | 598 | Diskord | Apache License 2.0 |
app/src/main/java/github/sachin2dehury/musicplayer/exoplayer/MediaMetadataCompatExt.kt | sachin2dehury | 318,585,413 | false | null | package github.sachin2dehury.musicplayer.exoplayer
import android.support.v4.media.MediaMetadataCompat
import github.sachin2dehury.musicplayer.data.entities.Song
fun MediaMetadataCompat.toSong(): Song? {
return description?.let { song ->
Song(
song.mediaId ?: "",
song.title.toStrin... | 0 | Kotlin | 0 | 1 | f64ac670e0fd32e74b191ddbbcee200ce5124267 | 455 | MusicPlayer | Apache License 2.0 |
chat_ui/src/main/java/com/camerash/skygear/chat/ui/holder/IncomingImageMessageView.kt | Camerash | 148,086,046 | false | null | package com.camerash.skygear.chat.ui.holder
import android.view.View
import com.camerash.skygear.chat.ui.model.ImageMessage
import com.camerash.skygear.chatkit.messages.MessageHolders
class IncomingImageMessageView(itemView: View) : MessageHolders.IncomingImageMessageViewHolder<ImageMessage>(itemView) {
var send... | 0 | Kotlin | 0 | 1 | 9b08cf07a3bd2f273053ab200ada014cfc661cd2 | 915 | skygear-chat-ui | Apache License 2.0 |
middleware/src/main/java/com/anytypeio/anytype/middleware/discovery/NsdDiscoveryListener.kt | anyproto | 647,371,233 | false | {"Kotlin": 11623123, "Java": 69306, "Shell": 11350, "Makefile": 1334} | package com.anytypeio.anytype.middleware.discovery
import android.net.nsd.NsdManager
import android.net.nsd.NsdServiceInfo
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.launch
import kotlinx.coroutines.sync.Semaphore
import service.DiscoveryObserver
im... | 45 | Kotlin | 43 | 528 | c708958dcb96201ab7bb064c838ffa8272d5f326 | 2,058 | anytype-kotlin | RSA Message-Digest License |
themes/new-ui/new-ui-standalone/src/main/kotlin/org/jetbrains/jewel/themes/expui/standalone/control/ActionButton.kt | JetBrains | 440,164,967 | false | null | @file:Suppress("MatchingDeclarationName")
package org.jetbrains.jewel.themes.expui.standalone.control
import androidx.compose.foundation.Indication
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Box
import ... | 17 | null | 8 | 318 | 817adc042a029698983c9686d0f1497204bfdf14 | 3,421 | jewel | Apache License 2.0 |
app/src/main/kotlin/com/github/nomisrev/androidarrowplayground/ui/main/MainActivity.kt | nomisRev | 123,711,466 | false | null | package com.github.nomisrev.androidarrowplayground.ui.main
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import com.github.nomisrev.androidarrowplayground.R
import com.github.nomisrev.androidarrowplayground.onClick
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : A... | 0 | Kotlin | 0 | 3 | 876b31cbb0f01cef26fcfe9c8ccbff8a34007b50 | 724 | AndroidArrowPlayground | Apache License 2.0 |
mui-kotlin/src/jsMain/kotlin/muix/tree/view/TreeItemContent.kt | karakum-team | 387,062,541 | false | {"Kotlin": 1395285, "TypeScript": 2249, "JavaScript": 1167, "HTML": 724, "CSS": 86} | // Automatically generated - do not modify!
@file:JsModule("@mui/x-tree-view/TreeItemContent")
package muix.tree.view
import web.cssom.ClassName
import web.html.HTMLElement
external interface TreeItemContentProps :
react.dom.html.HTMLAttributes<HTMLElement>,
react.PropsWithClassName {
override var class... | 0 | Kotlin | 5 | 35 | 94a6fb01da33181e516144509e5a92105ac32d2a | 1,092 | mui-kotlin | Apache License 2.0 |
app/src/main/java/classes/WordBdHelper.kt | icEngineer-tech | 313,282,872 | false | {"Kotlin": 14972} | package classes
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper
import android.content.Context
class WordBdHelper(context:Context?): SQLiteOpenHelper(context, "WordsGame.db",null,1) {
companion object {
val THE_TABLE = "Tmot"
val THE_SCORE="TScore"
... | 0 | Kotlin | 0 | 0 | 05b4e3bbbda70fcea3fd8baca96830a4a7ba1a4c | 937 | WordGame | MIT License |
sample/src/main/java/io/denison/typedvalue/sample/ui/animation/AnimationPresenter.kt | YuriDenison | 126,976,818 | false | null | package io.denison.typedvalue.sample.ui.animation
import io.denison.typedvalue.sample.mvp.presenter.BasePresenter
import io.denison.typedvalue.sample.preferences.AppPreferences
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Schedulers
import timber.log.Timber
import javax.injec... | 1 | Kotlin | 2 | 19 | df82eb36b61336badade897534fbeb92fdb2029e | 1,063 | typedvalue | Apache License 2.0 |
sample/src/main/java/io/denison/typedvalue/sample/ui/animation/AnimationPresenter.kt | YuriDenison | 126,976,818 | false | null | package io.denison.typedvalue.sample.ui.animation
import io.denison.typedvalue.sample.mvp.presenter.BasePresenter
import io.denison.typedvalue.sample.preferences.AppPreferences
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Schedulers
import timber.log.Timber
import javax.injec... | 1 | Kotlin | 2 | 19 | df82eb36b61336badade897534fbeb92fdb2029e | 1,063 | typedvalue | Apache License 2.0 |
app/src/main/java/be/hogent/faith/faith/skyscraper/startscreen/SkyscraperViewholderFactory.kt | hydrolythe | 353,694,404 | false | null | package be.hogent.faith.faith.skyscraper.startscreen
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.RecyclerView
import be.hogent.faith.R
import be.hogent.faith.fait... | 0 | Kotlin | 0 | 0 | 14c6aec4b3c0a42bc73a7f779964d166fffeea20 | 4,179 | FAITHAndroid | The Unlicense |
src/benchmarks/kotlin/com/github/quillraven/fleks/benchmark/fleks.kt | Quillraven | 413,555,458 | false | null | package com.github.quillraven.fleks.benchmark
import com.github.quillraven.fleks.*
import org.openjdk.jmh.annotations.*
import java.util.concurrent.TimeUnit
data class FleksPosition(var x: Float = 0f, var y: Float = 0f)
data class FleksLife(var life: Float = 0f)
data class FleksSprite(var path: String = "", var ani... | 2 | Kotlin | 3 | 16 | 1d59527c7c9a2f5e214d7f4ac7ed6a772f2101c8 | 3,357 | Fleks | MIT License |
ui-home/src/main/java/dev/sasikanth/twine/home/HomeViewModel.kt | msasikanth | 516,650,081 | false | {"Kotlin": 364930} | package dev.sasikanth.twine.home
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.cachedIn
import dagger.hilt.android.lifecycle.HiltViewModel
import dev.sasikanth.twine.common.utils.TweetLinkParser
import dev.sasikanth.twine.data.clipboard.Clipboard
import dev.sasikan... | 1 | Kotlin | 0 | 27 | 6c259de1a818da155a29a3837a85326e1b132955 | 3,069 | tweet-unroll-android | Apache License 2.0 |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/ec2/CfnEnclaveCertificateIamRoleAssociationPropsDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.ec2
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.String
import software.amazon.awscdk.ser... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 1,795 | awscdk-dsl-kotlin | Apache License 2.0 |
src/main/kotlin/com/github/fabianloewe/imagediff/extractors/lsb/Types.kt | fabianloewe | 753,265,420 | false | {"Kotlin": 44750} | package com.github.fabianloewe.imagediff.extractors.lsb
enum class ColorChannel {
RED, GREEN, BLUE, ALPHA
} | 0 | Kotlin | 0 | 0 | b3cb397fc7ed4b6f15741002b13aef156c7df22a | 112 | image-diff | MIT License |
mobile/src/main/java/universum/mind/synergy/device/headset/data/MeditationDataObservable.kt | roman104 | 131,326,615 | false | null | /*
* *************************************************************************************************
* Copyright 2018 Universum Studios
* *************************************************************************************************
* Licensed under the Apache L... | 1 | Kotlin | 0 | 0 | 76158c92b7a636b365cb899ce25a828d3b944567 | 2,256 | MakerfaireVienna2018-android | Apache License 2.0 |
kpermissions/src/test/kotlin/com/fondesa/kpermissions/extension/PermissionRequestExtensionsTest.kt | naseemakhtar994 | 198,167,072 | true | {"Kotlin": 123298, "Groovy": 16841} | /*
* Copyright (c) 2018 Fondesa
*
* 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 | cc45352c7ce17cc06b1fa11bdf8c622966762b97 | 5,163 | KPermissions | Apache License 2.0 |
src/main/kotlin/com/tony/liu/plugins/gradle/tree/utils/NodeTextUtils.kt | TonyLiu0112 | 683,707,324 | false | {"Kotlin": 51189, "Java": 6691} | package com.tony.liu.plugins.gradle.tree.utils
import org.apache.commons.lang3.StringUtils
class NodeTextUtils {
companion object {
fun getArtifactId(nodeText: String): String {
return if (StringUtils.countMatches(nodeText, " : ") == 2) {
nodeText.split(" : ")[1]
... | 0 | Kotlin | 0 | 8 | 80ec890ca8bff586b63c9fc97f24ae75d7ae4349 | 537 | gradle-tree | Apache License 2.0 |
app/src/main/java/com/krygodev/singlesplanet/repository/ProfileRepositoryImpl.kt | krygo-dev | 419,788,067 | false | {"Kotlin": 155940} | package com.krygodev.singlesplanet.repository
import android.net.Uri
import com.google.firebase.crashlytics.buildtools.reloc.org.apache.http.HttpException
import com.google.firebase.firestore.FirebaseFirestore
import com.google.firebase.firestore.FirebaseFirestoreException
import com.google.firebase.storage.FirebaseSt... | 0 | Kotlin | 0 | 0 | 7c4383045a9cf6f6b13aeaa5f016ae714d5dcf1c | 3,120 | Singles-Planet-Dating-Mobile-App | MIT License |
assemblyadapter-common-recycler/src/main/java/androidx/recyclerview/widget/HighPerformanceSpanSizeLookup.kt | panpf | 42,781,599 | false | null | /*
* Copyright (C) 2021 panpf <<EMAIL>>
*
* 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... | 0 | Kotlin | 33 | 169 | 00cf02eb1b2be82685a2997d5473579246e256c8 | 2,103 | assembly-adapter | Apache License 2.0 |
library/src/main/java/com/inteniquetic/ass/cipher/StorageAlgorithmsCipher.kt | prongbang | 834,765,764 | false | {"Kotlin": 30554} | package com.inteniquetic.ass.cipher
enum class StorageAlgorithmsCipher {
AES_CBC_PKCS7_PADDING,
AES_GCM_NO_PADDING
} | 0 | Kotlin | 0 | 0 | b5ce39492596c44f367ac50d37ed01899b73adb1 | 125 | android-secure-storage | MIT License |
FirstProjectInfnet/app/src/main/java/com/poc/firstprojectinfnet/home/navigation/RedirectHomeFlowEnum.kt | OsvaldoAironInfnet | 614,215,531 | false | null | package com.poc.firstprojectinfnet.home.navigation
import com.poc.commom.base.views.navigation.NavigationScreen
import com.poc.firstprojectinfnet.R
import com.poc.firstprojectinfnet.home.presentation.HomeListFragment
enum class RedirectHomeFlowEnum(val navigationScreen: NavigationScreen) {
HOME_LIST_FRAGMENT(
... | 0 | Kotlin | 0 | 0 | 7ea9f5daf0d64374c29b6054db166f92ae2d4c76 | 448 | Tasks | MIT License |
netcode-mcbe/src/main/kotlin/com/valaphee/netcode/mcbeautomation/PacketCodec.kt | valaphee | 431,915,568 | false | {"Kotlin": 1365906} | /*
* Copyright (c) 2021-2022, Valaphee.
*
* 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 ag... | 0 | Kotlin | 0 | 2 | 4230a7ed71665360df32601956795b9ce8e2eb6c | 2,737 | netcode | Apache License 2.0 |
data/src/main/kotlin/ru/khiraevmalik/theguardiannews/NewsRepositoryImpl.kt | Hiraev | 278,637,711 | false | null | package ru.khiraevmalik.theguardiannews
import ru.khiraevmalik.theguardiannews.api.Api
import ru.khiraevmalik.theguardiannews.api.NewsApi
import ru.khiraevmalik.theguardiannews.converters.NewsConverter
import ru.khiraevmalik.theguardiannews.news.News
class NewsRepositoryImpl(
private val newsApi: NewsApi
) : ... | 0 | Kotlin | 0 | 0 | 7ea7eb210a4d258aa04d8e1a079e74098c89fbd6 | 1,147 | TheGuardianNews | Apache License 2.0 |
src/main/kotlin/com/avaquo/starry/queries/Filter.kt | Pairjax | 430,216,321 | false | {"Kotlin": 35882, "Java": 529} | package com.avaquo.starry.queries
import com.avaquo.starry.ids.IDs
import com.avaquo.starry.ids.Table
import com.avaquo.starry.world.Store
/**
* A search for an entity based on specific terms.
* @param store Reference to the world's storage
* @param terms The list of Terms used to compare to a given entity.
*/
op... | 0 | Kotlin | 0 | 1 | 9b4501de0513ff46110f86e91f02f1dbba9d2ac5 | 1,897 | StarryECS | MIT License |
mealkitary-application/src/main/kotlin/com/mealkitary/shop/application/port/output/LoadShopPort.kt | le2sky | 640,586,872 | false | {"Kotlin": 261380} | package com.mealkitary.shop.application.port.output
import com.mealkitary.shop.domain.shop.Shop
interface LoadShopPort {
fun loadAllShop(): List<Shop>
fun loadOneShopById(shopId: Long): Shop
}
| 3 | Kotlin | 0 | 2 | 96d994def17d6114b9cec8c2e043dac68711fb2c | 204 | mealkitary-server | Apache License 2.0 |
app/src/main/java/com/example/hiretop/ui/screens/messaging/ChatListScreen.kt | Renekakpo | 757,782,501 | false | {"Kotlin": 573394} | package com.example.hiretop.ui.screens.messaging
import android.util.Log
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import... | 0 | Kotlin | 0 | 0 | 50977e5855fd8a3f532bdd1f6881549fed49356a | 11,146 | hiretop | MIT License |
modules/features/common/src/commonMain/kotlin/com/makeevrserg/kmmplayground/presentation/counter/store/CounterStore.kt | makeevrserg | 583,260,374 | false | {"Kotlin": 105522, "Swift": 18712, "Ruby": 357} | package com.makeevrserg.kmmplayground.presentation.counter.store
import com.arkivanov.mvikotlin.core.store.Store
import com.makeevrserg.kmmplayground.presentation.counter.store.CounterStore.Intent
import com.makeevrserg.kmmplayground.presentation.counter.store.CounterStore.Label
import com.makeevrserg.kmmplayground.pr... | 0 | Kotlin | 0 | 1 | 4a1ff9f6cb52ed49c53d0bf383791e81c0eb8f29 | 694 | KMM-Playground | MIT License |
app/src/main/kotlin/com/ceh9/portfolio/common/AppViewModel.kt | CeH9 | 202,865,791 | false | null | package com.ceh9.portfolio.common
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.ceh9.portfolio.common.domain.useCases.SystemThemeInteractor
import com.ceh9.portfolio.common.presentation.navigation.NavigationAction
import com.ceh9.portfolio.co... | 0 | Kotlin | 0 | 0 | d4efdcffbee64a02cdb82d73d4f707f322964c40 | 1,220 | Portfolio | MIT License |
app/src/main/java/com/roadster/roam/basesetup/module/AppModule.kt | Atul206 | 510,028,347 | false | {"Kotlin": 118252} | package com.roadster.roam.basesetup.module
import com.roadster.roam.basesetup.ui.main.BlankViewModel
import com.roadster.roam.basesetup.ui.main.ExampleUseCase
import com.roadster.roam.basesetup.ui.main.MainViewModel
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module
var appModule = module {
... | 0 | Kotlin | 1 | 0 | 46ed3bd53e40ec7edf5a6063c6f8f8e556dc2225 | 426 | baserepo | MIT License |
app/src/main/java/vegabobo/languageselector/ui/screen/main/MainScreenVm.kt | VegaBobo | 641,658,205 | false | {"Kotlin": 66857, "Java": 2997, "AIDL": 507} | package vegabobo.languageselector.ui.screen.main
import android.app.Application
import android.content.pm.ApplicationInfo
import android.content.pm.PackageManager
import android.os.Handler
import android.os.Looper
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifecy... | 4 | Kotlin | 11 | 256 | 013dd83a3bf12ec0abca5d586c6d76a94c6f1136 | 4,881 | Language-Selector | Apache License 2.0 |
src/main/kotlin/com/guidovezzoni/gradle/smartproperties/gradle/ConfigScriptBlock.kt | guidovezzoni | 246,418,881 | false | {"Kotlin": 32846} | package com.guidovezzoni.gradle.smartproperties.gradle
import java.io.File
/**
* Config script block for plugin configuration
*/
open class ConfigScriptBlock {
constructor()
@Suppress("unused")
constructor(name: String) {
this.name = name
}
var name: String? = null
var sourceFile:... | 3 | Kotlin | 0 | 1 | 3010397cfab60be1ea81b7bbfc06b5964d88be15 | 426 | smart-properties | Apache License 2.0 |
app/src/main/java/com/bartonsolutions/ledkovac/MainActivity.kt | Pebin | 377,947,797 | false | {"Kotlin": 18542} | package com.bartonsolutions.ledkovac
import android.Manifest.permission.CAMERA
import android.content.Intent
import android.content.SharedPreferences
import android.os.Bundle
import android.util.Log
import android.view.Menu
import android.view.MenuItem
import android.view.View
import android.view.WindowManager
import ... | 0 | Kotlin | 0 | 0 | 0d29c99f4c8714e0e70aa0d25ebf9ad71db70013 | 7,587 | ledkovac-client | MIT License |
src/main/kotlin/de/debuglevel/simplebenchmark/benchmarks/BenchmarkConfiguration.kt | debuglevel | 294,937,712 | false | null | package de.debuglevel.simplebenchmark.benchmarks
import javax.validation.constraints.Min
import javax.validation.constraints.NotBlank
open class BenchmarkConfiguration {
@NotBlank
var enabled: Boolean = false
@NotBlank
@Min(1L)
var iterations: Int = 1
@NotBlank
@Min(0L)
var baseline:... | 0 | Kotlin | 0 | 0 | cd0a6c18506873d491cb0287005ec8056ebaaf32 | 335 | simple-benchmark | The Unlicense |
aquarius/src/main/java/ru/haroncode/aquarius/core/clicker/Clickers.kt | HaronCode | 296,919,440 | false | null | package ru.haroncode.aquarius.core.clicker
import android.view.View
import androidx.recyclerview.widget.RecyclerView
object Clickers {
fun <ItemModel, VH : RecyclerView.ViewHolder> none(): Clicker<ItemModel, VH> = NoneClicker()
fun <ItemModel, VH : RecyclerView.ViewHolder> default(
consumer: (ItemMo... | 0 | Kotlin | 0 | 4 | 5ec7e67f6559e057eb7227e485438f03d3cb334f | 687 | Aquarius | The Unlicense |
app/src/main/java/com/kshitijpatil/tazabazar/ui/orders/OrdersViewModel.kt | Kshitij09 | 395,308,440 | false | null | package com.kshitijpatil.tazabazar.ui.orders
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.kshitijpatil.tazabazar.domain.GetUserOrdersUseCase
import com.kshitijpatil.tazabazar.domain.ObserveSessionStateUseCase
import com.kshitijpatil.tazabazar.domain.Result
import com.kshitijp... | 8 | Kotlin | 2 | 1 | d709b26d69cf46c3d6123a217190f098b79a6562 | 2,975 | TazaBazar | Apache License 2.0 |
ParkingCalc/app/src/main/java/com/isoft/parkingcalc/ParkingApplication.kt | VishnuPrabhu | 223,960,704 | false | null | package com.isoft.parkingcalc
import android.app.Application
import androidx.room.Room
import com.isoft.parkingcalc.db.VehicleDatabase
import com.isoft.parkingcalc.di.ApplicationModule
import com.isoft.parkingcalc.di.DaggerApplicationComponent
import com.isoft.parkingcalc.di.DatabaseModule
class ParkingApplication: ... | 0 | Kotlin | 0 | 1 | bee430ad334a4b446b68d62f2d434f14e47e67e8 | 1,101 | InterviewProblemSolution | Apache License 2.0 |
core/ui/src/main/java/in/surajsau/jisho/ui/theme/components/JishoScaffold.kt | surajsau | 489,927,815 | false | null | package `in`.surajsau.jisho.ui.theme.components
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Scaffold
import androidx.compose.material3.Snackbar
import androidx.compos... | 0 | Kotlin | 0 | 1 | f926cd4111d7d19f1f4853cff13200b4d00f5760 | 1,690 | Multiplatform-Jisho | Apache License 2.0 |
app/src/main/java/com/sunnyweather/android/ui/weather/WeatherViewModel.kt | guokun1998 | 357,155,529 | false | null | package com.sunnyweather.android.ui.weather
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
import com.sunnyweather.android.logic.Repository
import com.sunnyweather.android.logic.model.Location
import com.sunnyweather.android.logic.model.Place
cl... | 0 | Kotlin | 0 | 0 | 0e1f1be2240d842b422c353fe24aaf74b624542b | 1,029 | SunnyWeather | Apache License 2.0 |
content-types/content-types-core-model/src/main/kotlin/org/orkg/contenttypes/domain/ComparisonConfig.kt | TIBHannover | 197,416,205 | false | {"Kotlin": 6060326, "Cypher": 220506, "Python": 4881, "Shell": 2904, "Groovy": 1936, "HTML": 240, "Batchfile": 82} | package org.orkg.contenttypes.domain
data class ComparisonConfig(
val predicates: List<String>,
val contributions: List<String>,
val transpose: Boolean,
val type: ComparisonType,
val shortCodes: List<String> = emptyList()
)
enum class ComparisonType {
PATH,
MERGE
}
| 0 | Kotlin | 0 | 4 | c80778b8800a0ad6698eecfa6bdb0e198aa8f7bb | 296 | orkg-backend | MIT License |
tanker-bindings/src/androidTest/kotlin/io/tanker/api/Datastore.kt | TankerHQ | 160,205,806 | false | {"Kotlin": 204429, "Python": 9014, "Java": 1665, "Assembly": 693, "CMake": 384, "C++": 373, "Shell": 174} | package io.tanker.api
import org.assertj.core.api.Assertions.assertThat
import org.junit.Test
import org.junit.Rule
import org.junit.rules.TemporaryFolder
import com.sun.jna.*
import io.tanker.bindings.DatastoreLib
import io.tanker.datastore.*
typealias AdminPointer = Pointer
@Suppress("FunctionName")
internal inter... | 0 | Kotlin | 1 | 13 | 8bba26a4b6376669ea53712def3dcac6387005f7 | 1,215 | sdk-android | Apache License 2.0 |
presentation/src/main/java/com/bugeto/presentation/di/AppModule.kt | maysambabaei | 240,897,471 | false | null | package com.bugeto.presentation.di
import androidx.room.Room
import com.bugeto.data.api.RemoteNewsApi
import com.bugeto.data.db.NewsDatabase
import com.bugeto.data.entities.NewsDataEntityMapper
import com.bugeto.data.entities.NewsEntityDataMapper
import com.bugeto.data.repository.NewsCacheImpl
import com.bugeto.domain... | 0 | Kotlin | 0 | 0 | 594b6e65d21cf8583558332cea7a29436461b9ec | 2,152 | KotlinCleanArchitecture | Apache License 2.0 |
library/src/main/java/cz/mroczis/netmonster/core/Types.kt | mroczis | 199,189,308 | false | {"Kotlin": 482369} | package cz.mroczis.netmonster.core
/**
* Numeric value representing some sort of time stamp in milliseconds
*/
typealias Milliseconds = Long
/**
* Subscription id as a unique identifier per SIM card in the device
*/
typealias SubscriptionId = Int | 19 | Kotlin | 71 | 334 | b63cee478b2e637a5d982160090df23e4be8f75c | 252 | netmonster-core | Apache License 2.0 |
app/src/main/java/com/wackalooon/ecometer/base/Event.kt | Wackaloon | 56,212,468 | false | {"Kotlin": 33112} | package com.wackalooon.ecometer.base
interface Event {
}
| 0 | Kotlin | 0 | 0 | 40986f366aded16446ce00674323f1ba462c4900 | 58 | EcoMeter | Apache License 2.0 |
shared/src/androidMain/kotlin/com/jittyandiyan/shared/core/architecture/view/KMMActivity.kt | jittya | 361,707,096 | false | null | package com.jittyandiyan.shared.core.architecture.view
import android.app.ProgressDialog
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatActivity
import androidx.viewbinding.ViewBinding
import com.jittyandiyan.shared.core.architect... | 0 | Kotlin | 6 | 125 | 3a30c984b215b6df4a90d4a7a5ce965127b9ca09 | 2,671 | KMMT | MIT License |
app/src/main/java/com/aappeye/foreksty/data/repository/ForecastRepositoryImpl.kt | ihjohny | 198,017,929 | false | null | package com.aappeye.foreksty.data.repository
import android.util.Log
import androidx.lifecycle.LiveData
import com.aappeye.foreksty.data.db.CurrentWeatherDao
import com.aappeye.foreksty.data.db.DailyWeatherDao
import com.aappeye.foreksty.data.db.HourlyWeatherDao
import com.aappeye.foreksty.data.db.WeatherLocationDao
i... | 0 | Kotlin | 0 | 5 | 30f80e8f604b92bce1e7c13b8bc9e260d57980a1 | 4,189 | Foreksty | Apache License 2.0 |
17-rxbindings/projects/starter/app/src/test/java/com/raywenderlich/android/hexcolor/ViewModelTest.kt | kodecocodes | 289,350,935 | false | {"Shell": 1914} | package com.raywenderlich.android.hexcolor
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import io.mockk.mockk
import io.reactivex.rxjava3.core.Scheduler
import io.reactivex.rxjava3.internal.schedulers.TrampolineScheduler
import io.reactivex.rxjava3.schedulers.TestScheduler
import org.junit.Assert... | 1 | Shell | 16 | 35 | 6961389dd1ebf85b992ad88fd711c98d31276390 | 2,264 | rxa-materials | Apache License 2.0 |
app/src/main/java/com/fprieto/hms/wearable/presentation/ui/di/FragmentBindingModule.kt | ferPrieto | 359,387,500 | false | null | package com.fprieto.hms.wearable.presentation.ui.di
import androidx.fragment.app.FragmentFactory
import com.fprieto.hms.wearable.android.InjectingFragmentFactory
import dagger.Binds
import dagger.Module
@Module
abstract class FragmentBindingModule {
@Binds
abstract fun bindFragmentFactory(factory: InjectingFr... | 0 | Kotlin | 1 | 9 | b1488e6baafed6d4ff98b615bde46e01b4aa7a9a | 354 | HMS-Wearable-Example | Apache License 2.0 |
app/src/main/java/com/dev/moviehut/view/MovieListAdapter.kt | sarojkmri | 367,659,414 | false | null | package com.dev.moviehut.view
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.bumptech.glid... | 0 | Kotlin | 0 | 0 | 92d8c1fdf85bf5f1eff1a39f3851e3bef2901eb1 | 2,176 | MoviehutRepo | MIT License |
app/src/main/java/org/oppia/app/options/RouteToReadingTextSizeListener.kt | The-Fuse | 290,502,917 | true | {"Kotlin": 3041512, "Starlark": 85090, "Java": 27484, "Shell": 1855} | package org.oppia.app.options
/** Listener for when an activity should route to a [ReadingTextSizeActivity]. */
interface RouteToReadingTextSizeListener {
fun routeReadingTextSize(readingTextSize: String?)
}
| 0 | null | 0 | 0 | 6ee99027a169c501855271b80c0a86ab2cf84420 | 211 | oppia-android | Apache License 2.0 |
domain/src/main/java/com/vkochenkov/wordlegame/Repository.kt | Kochenkov | 469,035,279 | false | {"Kotlin": 57431} | package com.vkochenkov.wordlegame
import com.vkochenkov.wordlegame.model.Cell
import com.vkochenkov.wordlegame.model.Language
interface Repository {
fun isWordPresent(word: String) : Boolean
fun getRandomWord(): List<Char>
fun getKeyboard(): List<List<Cell>>
fun getLength(): Int
fun getLangua... | 10 | Kotlin | 0 | 0 | 7f78b9638f2107d892a0765168818630132b0753 | 397 | AndroidApp-WordleGame | Apache License 2.0 |
core/src/commonMain/kotlin/com/xebia/functional/xef/llm/models/chat/Message.kt | xebia-functional | 629,411,216 | false | null | package com.xebia.functional.xef.llm.models.chat
data class Message(val role: Role, val content: String, val name: String) {
companion object {
suspend fun systemMessage(message: suspend () -> String) =
Message(role = Role.SYSTEM, content = message(), name = Role.SYSTEM.name)
suspend fun userMessage(m... | 20 | Kotlin | 7 | 81 | fe1cca34bb9a8cac63f77b9a1b5ab97964432b1e | 587 | xef | Apache License 2.0 |
app/src/main/java/com/example/teknosa/ui/login/LoginActivity.kt | baranac12 | 377,786,338 | false | null | package com.example.teknosa.ui.login
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.Gravity.apply
import android.widget.Toast
import androidx.core.view.GravityCompat.apply
import androidx.lifecycle.Observer
import com.bumptech.glide.util.Util
import... | 0 | Kotlin | 0 | 0 | 5912f2f381970f3a74de56c993c04afdf719797c | 3,685 | Teknosa | Apache License 2.0 |
client/core/shared/src/commonMain/kotlin/com/oztechan/ccc/client/core/shared/model/OldPurchase.kt | Oztechan | 102,633,334 | false | null | package com.oztechan.ccc.client.core.shared.model
data class OldPurchase(
val date: Long,
val type: PremiumType
)
| 19 | Kotlin | 26 | 262 | ed69a750e7dab82aef6115003243b8e6d5d9f54f | 123 | CCC | Apache License 2.0 |
app/src/main/java/com/mkdev/vpnnewdesign/adapter/ConnectionDiffCallback.kt | msddev | 398,879,947 | false | null | package com.mkdev.vpnnewdesign.adapter
import androidx.recyclerview.widget.DiffUtil
import com.mkdev.vpnnewdesign.models.ConnectionModel
class ConnectionDiffCallback(
private val oldList: List<ConnectionModel>,
private val newList: List<ConnectionModel>
) : DiffUtil.Callback() {
override fun getOldListSi... | 0 | Kotlin | 3 | 5 | efc2a40d83174c4b079853601d9a651dc837b001 | 721 | VPN-Material-UI-Sample | Apache License 2.0 |
mobikulOC/src/main/java/webkul/opencart/mobikul/model/GetProduct/ProductPrev.kt | fortunedev223 | 435,488,584 | false | {"Kotlin": 1128789, "Java": 655153} | package webkul.opencart.mobikul.model.GetProduct
/**
* Created by manish.choudhary on 3/8/17.
*/
import android.os.Parcel
import android.os.Parcelable
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
class ProductPrev : Parcelable {
@SerializedName("product_id")
... | 0 | Kotlin | 0 | 0 | fe2513dab910dc471810fa37d6c01c848712c295 | 1,160 | Boutiquey_Android | MIT License |
core/src/commonMain/kotlin/work/socialhub/ktumblr/api/AuthResource.kt | uakihir0 | 790,148,281 | false | {"Kotlin": 104222, "Ruby": 2171, "Shell": 2118, "Makefile": 288} | package work.socialhub.ktumblr.api
import work.socialhub.ktumblr.api.request.auth.AuthAuthorizeUrlRequest
import work.socialhub.ktumblr.api.request.auth.AuthOAuth2TokenRefreshRequest
import work.socialhub.ktumblr.api.request.auth.AuthOAuth2TokenRequest
import work.socialhub.ktumblr.api.response.Response
import work.so... | 0 | Kotlin | 0 | 1 | 1dcf73e589421dec7dfb2b7195f2b818dcacabdc | 739 | ktumblr | MIT License |
composeApp/src/commonMain/kotlin/screens/Mobile/CryptoListScreen.kt | FernandoSini | 803,072,673 | false | {"Kotlin": 93174, "Swift": 636} | package screens.Mobile
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Co... | 0 | Kotlin | 0 | 0 | 859d1100e3e8b62dfa89a4fc384e50fa59c987a6 | 12,192 | cryptoApp | Apache License 2.0 |
domain/src/main/kotlin/com/bykov/footea/models/FootballTeamDetails.kt | grine4ka | 419,372,892 | false | null | package com.bykov.footea.models
data class FootballTeamDetails(
val id: Int,
val name: String,
val country: String,
val venue: String,
val badgeUrl: String
)
| 7 | Kotlin | 0 | 1 | e1431d8f4d4f84048f21fd0d45a7466886e60301 | 179 | footea | MIT License |
MapGenerator/src/main/kotlin/Generator/GraphGenerator.kt | Mopchik | 489,210,419 | false | {"Kotlin": 59364, "Assembly": 354} | package generator
import kotlin.random.Random
class GraphGenerator(val mapSize:Int) {
private var matr:MutableList<MutableList<Int>>
private val n:Int
private val kOfEdges:Double
init{
matr = ArrayList()
n = Random.nextInt((mapSize / 3.0).toInt(), (mapSize).toInt())
kOfEdges = ... | 0 | Kotlin | 0 | 1 | a92762772284c7d44ecd192f8f67559cdb96a70e | 2,386 | MapGenerator | Apache License 2.0 |
app/src/main/java/com/tugrulbo/foodrecipe/data/remote/RemoteDataSource.kt | tugrulbo | 524,135,237 | false | {"Kotlin": 59790} | package com.tugrulbo.foodrecipe.data.remote
import com.tugrulbo.foodrecipe.data.model.FoodRecipe
import retrofit2.Response
import javax.inject.Inject
class RemoteDataSource @Inject constructor(
private val foodRecipeApi: FoodRecipeApi
) {
suspend fun getRecipes(queries: Map<String,String>):Response<FoodRecip... | 0 | Kotlin | 0 | 1 | ef8febbd131a55a6c3b3e452b3c21e8f63b28002 | 521 | FoodRecipeApp | MIT License |
ui/ui-gift/src/main/java/CreateGiftHandler.kt | breadwallet | 37,503,422 | false | null | /**
* BreadWallet
*
* Created by <NAME> <<EMAIL>> on 12/1/20.
* Copyright (c) 2020 breadwallet LLC
*
* 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 wit... | 36 | null | 450 | 385 | dfbbfbfc92dae054e47f245e1ce2ac8a39e65e57 | 10,025 | breadwallet-android | MIT License |
ChatroomService/src/main/java/io/agora/chatroom/UICustomType.kt | apex-wang | 728,010,838 | false | {"Kotlin": 497622} | package io.agora.chatroom
import android.text.TextUtils
import io.agora.chatroom.model.UIConstant
enum class UICustomMsgType(name: String) {
/**
* 系统消息 成员加入
*/
CHATROOMUIKITUSERJOIN(UIConstant.CHATROOM_UIKIT_USER_JOIN),
/**
* 礼物消息
*/
CHATROOMUIKITGIFT(UIConstant.CHATROOM_UIKIT_GIF... | 0 | Kotlin | 0 | 0 | 20b1ff03d06d87d44565e322ccf9abced24264c5 | 619 | test | MIT License |
app/src/main/kotlin/ch/empa/openbisio/interfaces/CreatableEntity.kt | empa-scientific-it | 618,383,912 | false | null | /*
* 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 wr... | 0 | Kotlin | 0 | 0 | f61b168531320739a3450e9c3f0bb2a0f0299ce0 | 913 | instanceio | Apache License 2.0 |
app/src/main/java/net/ldasilva/expertisetest/ui/movie/list/MovieListViewModel.kt | ldasilva-net | 186,191,066 | false | null | package net.ldasilva.expertisetest.ui.movie.list
import androidx.lifecycle.ViewModel
import net.ldasilva.expertisetest.data.SearchMovieType
import net.ldasilva.expertisetest.data.repository.MovieRepository
class MovieListViewModel(
private val movieRepository: MovieRepository
) : ViewModel() {
suspend fun... | 0 | Kotlin | 1 | 4 | 8a3b921fa84021b5166239529701751e7e82d14c | 496 | android-expertise-test | MIT License |
app/src/main/java/io/github/fate_grand_automata/ui/launcher/ScriptLauncherResponse.kt | estella2012 | 720,234,144 | false | {"Kotlin": 905461, "Ruby": 714} | package io.github.fate_grand_automata.ui.launcher
sealed class ScriptLauncherResponse {
data object Cancel : ScriptLauncherResponse()
data object FP : ScriptLauncherResponse()
data class Lottery(
val giftBox: GiftBox?
) : ScriptLauncherResponse()
data class GiftBox(
val maxGoldEmbe... | 0 | Kotlin | 0 | 0 | 660d7db1660332ebb3b14cc1e53b8e6c702b9792 | 1,103 | FGA | MIT License |
app/src/main/java/com/wkxjc/wanandroid/common/bean/PublicAccountsBean.kt | wkxjc | 246,898,873 | false | null | package com.wkxjc.wanandroid.common.bean
| 0 | Kotlin | 0 | 1 | ccb6e3be80ba985e3c6dff789b2093b6dbe80ee2 | 42 | WanAndroid | Apache License 2.0 |
tv_usecase/src/test/java/com/bytebyte6/usecase/SearchCountryImageTest.kt | bytebyte6 | 324,579,353 | false | null | package com.bytebyte6.usecase
import com.bytebyte6.testdata.countries
import com.bytebyte6.data.entity.Country
import com.bytebyte6.image.SearchImageImpl
import com.bytebyte6.usecase.work.SearchCountryImage
import org.junit.Test
class SearchCountryImageTest {
@Test
fun test() {
val dataManager = objec... | 0 | Kotlin | 7 | 9 | 3c22f2baad651c3df53b3615fd6fc28263621a42 | 874 | Tv | Apache License 2.0 |
src/main/kotlin/stellarwitch7/ram/cca/entity/ModEntityComponents.kt | StellarWitch7 | 843,940,487 | false | {"Kotlin": 7051} | package stellarwitch7.ram.cca.entity
import org.ladysnake.cca.api.v3.entity.RespawnCopyStrategy
import stellarwitch7.libstellar.registry.cca.entity.CCAEntityComponentRegistrar
import stellarwitch7.ram.RandomAccessMind
import stellarwitch7.ram.cca.RAMComponent
//TODO: something something private can't access Kotlin wh... | 0 | Kotlin | 0 | 1 | dd9ab1053dc76139d15d473c3d85c3bdb695e151 | 548 | ram | MIT License |
website/src/main/java/info/xiaomo/website/XiaomoMain.kt | tangyinbo | 109,561,532 | true | {"Kotlin": 323648, "CSS": 117781, "FreeMarker": 7915, "HTML": 6836, "Java": 2501, "Ruby": 37} | package info.xiaomo.website
import info.xiaomo.website.view.UserView
import io.swagger.annotations.ApiOperation
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.EnableAutoConfiguration
import org.springframework.boot.autoconfigure.domain.EntityScan
import org.springframew... | 0 | Kotlin | 0 | 0 | 23d20b605e842d32f53c8b7e0effe92e52475c65 | 3,242 | SpringBootUnity | MIT License |
core/src/main/kotlin/com/muedsa/snapshot/rendering/box/RenderColoredBox.kt | muedsa | 736,941,747 | false | {"Kotlin": 595873} | package com.muedsa.snapshot.rendering.box
import com.muedsa.geometry.Offset
import com.muedsa.geometry.Size
import com.muedsa.snapshot.rendering.PaintingContext
import org.jetbrains.skia.Paint
class RenderColoredBox(
var color: Int,
) : RenderSingleChildBox() {
override fun paint(context: PaintingContext, of... | 0 | Kotlin | 0 | 1 | 15eea1ed32843abd3c453a919ab828592a3a9e93 | 644 | snapshot | MIT License |
src/main/daos/Metadata.kt | ncent-archive | 150,326,270 | false | {"Kotlin": 352866, "JavaScript": 7544, "Makefile": 563, "Shell": 222} | package main.daos
import com.fasterxml.jackson.databind.ObjectMapper
import framework.models.BaseIntEntity
import framework.models.BaseIntEntityClass
import framework.models.BaseIntIdTable
import org.jetbrains.exposed.dao.EntityID
import kotlin.reflect.full.primaryConstructor
/**
* Metadata will be a key-value store... | 16 | Kotlin | 2 | 2 | 802160f3332c4b6d63d4219067848e38a689c48b | 942 | ncent-api-v2 | MIT License |
app/src/main/java/com/emerjbl/ultra8/chip8/machine/Disassembler.kt | jblebrun | 10,089,457 | false | {"Kotlin": 123397, "Shell": 816} | package com.emerjbl.ultra8.chip8.machine
sealed interface Segment {
data class Code(val instruction: List<Chip8Instruction>) : Segment
data class Data(val bytes: List<UByte>) : Segment
}
private val byteFormat = HexFormat {
number {
this.prefix = "0x"
}
}
class Disassembly(
/** The disass... | 2 | Kotlin | 0 | 0 | 8e0bc70811dfe46571ee1cdabd6e552194373d67 | 3,715 | ultra8 | MIT License |
app/src/main/java/grack/dev/moviedagger/ui/movie/catalogue/CatalogueFragment.kt | Rarj | 186,447,222 | false | {"Kotlin": 80078} | package grack.dev.moviedagger.ui.movie.catalogue
import android.annotation.SuppressLint
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
impo... | 0 | Kotlin | 0 | 1 | e91621462d0583ee3586c6b7ce16fd8da8513edb | 4,829 | Simple-dagger | Apache License 2.0 |
app/src/main/java/com/emretnkl/myshopapp/feature/basket/adapter/BasketProductAdapter.kt | emretnkl | 559,308,167 | false | null | package com.emretnkl.myshopapp.feature.basket.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.emretnkl.myshopapp.R... | 0 | Kotlin | 0 | 1 | 77ee7168cf5484f38f0665082c7dd26b38973622 | 2,514 | MyShopApp | Apache License 2.0 |
src/main/kotlin/br/com/zup/edu/shared/filter/ExceptionHandler.kt | almiracioly | 347,077,154 | true | {"Kotlin": 34204} | package br.com.zup.edu.shared.filter
import io.grpc.*
import java.lang.Exception
interface ExceptionHandler<E : Exception> {
fun handle(e: E): StatusWithDetails
fun supports(e: Exception): Boolean
data class StatusWithDetails(
val status: Status,
val metaData: Metadata = Metadata(),
... | 0 | Kotlin | 0 | 0 | 1a418f8b4d9e3f8cd4f1449083e8af0407d96427 | 607 | orange-talents-01-template-pix-keymanager-grpc | Apache License 2.0 |
src/main/kotlin/br/com/zup/edu/shared/filter/ExceptionHandler.kt | almiracioly | 347,077,154 | true | {"Kotlin": 34204} | package br.com.zup.edu.shared.filter
import io.grpc.*
import java.lang.Exception
interface ExceptionHandler<E : Exception> {
fun handle(e: E): StatusWithDetails
fun supports(e: Exception): Boolean
data class StatusWithDetails(
val status: Status,
val metaData: Metadata = Metadata(),
... | 0 | Kotlin | 0 | 0 | 1a418f8b4d9e3f8cd4f1449083e8af0407d96427 | 607 | orange-talents-01-template-pix-keymanager-grpc | Apache License 2.0 |
app/src/test/kotlin/com/octo/mob/octomeuh/settings/presenter/SettingsPresenterImplTest.kt | rpradal | 61,704,332 | false | null | package com.octo.mob.octomeuh.settings.presenter
import com.octo.mob.octomeuh.countdown.manager.PreferencesPersistor
import com.octo.mob.octomeuh.countdown.model.RepetitionMode
import com.octo.mob.octomeuh.settings.model.RepetitionModeDescription
import com.octo.mob.octomeuh.settings.screen.SettingsScreen
import com.o... | 2 | Kotlin | 1 | 1 | 28a873d52b9196e886eb42e44f30e28530d921b7 | 3,405 | OCTOMeuh | MIT License |
src/main/java/at/petrak/hexcasting/common/casting/operators/math/logic/OpEquality.kt | najlitarvan | 482,865,156 | true | {"Java Properties": 1, "Groovy": 1, "Text": 3, "Shell": 1, "Markdown": 2, "Git Attributes": 1, "Batchfile": 1, "Gradle": 1, "Ignore List": 1, "Kotlin": 146, "Java": 140, "JSON": 630, "TOML": 1, "INI": 1} | package at.petrak.hexcasting.common.casting.operators.math.logic
import at.petrak.hexcasting.api.spell.ConstManaOperator
import at.petrak.hexcasting.api.spell.Operator.Companion.spellListOf
import at.petrak.hexcasting.api.spell.SpellDatum
import at.petrak.hexcasting.api.spell.casting.CastingContext
import net.minecraf... | 0 | null | 0 | 0 | 526360b1d0a8e1559896b4755f1222158e1fdb67 | 1,358 | HexMod | MIT License |
RobotCode2024/src/main/kotlin/frc/lib/behaviorTree/nodes/BehaviorTreeNode.kt | 3015RangerRobotics | 802,925,561 | false | {"Text": 2, "Git Attributes": 5, "Gradle": 2, "JSON": 19, "Shell": 1, "Ignore List": 12, "Batchfile": 1, "Markdown": 5, "YAML": 12, "INI": 1, "Java": 119, "Kotlin": 106, "XML": 25, "Ruby": 3, "OpenStep Property List": 9, "Swift": 11, "CMake": 15, "C": 8, "C++": 27, "Dart": 69} | package frc.lib.behaviorTree.nodes
import frc.lib.behaviorTree.BehaviorTreeDebug
import frc.lib.behaviorTree.Blackboard
import frc.lib.behaviorTree.ExecutionStatus
abstract class BehaviorTreeNode(private val uuid: String) {
fun initialize(blackboard: Blackboard) {
handleInitialize(blackboard)
BehaviorTreeDe... | 0 | Java | 1 | 5 | 60a1c9b5cb1d4957e68a242bc44e9cd5b5967155 | 885 | 2024Public | MIT License |
hello-algo/hello-algo-main/zh-hant/codes/kotlin/chapter_dynamic_programming/climbing_stairs_dp.kt | CoderDream | 402,249,596 | false | {"Maven POM": 206, "XML": 643, "Text": 661, "Ignore List": 121, "Markdown": 677, "YAML": 235, "JSON": 112, "JavaScript": 832, "EditorConfig": 9, "Browserslist": 15, "HTML": 431, "robots.txt": 1, "SVG": 21, "Vue": 121, "Java": 4312, "Java Properties": 58, "SQL": 25, "Batchfile": 33, "Shell": 71, "Dockerfile": 23, "INI":... | /**
* File: climbing_stairs_dp.kt
* Created Time: 2024-01-25
* Author: curtishd (<EMAIL>)
*/
package chapter_dynamic_programming
/* 爬樓梯:動態規劃 */
fun climbingStairsDP(n: Int): Int {
if (n == 1 || n == 2) return n
// 初始化 dp 表,用於儲存子問題的解
val dp = IntArray(n + 1)
// 初始狀態:預設最小子問題的解
dp[1] = 1
dp[2... | 1 | Java | 5 | 5 | 1af9462ce13a6fd1125a160e418b549c4510fa30 | 848 | java-architect-util | Apache License 2.0 |
abstract-factory/src/main/kotlin/com/github/ftfetter/oopdesignpatterns/abstractfactory/factory/ClassFactory.kt | ftfetter | 206,670,571 | false | {"Java": 15364, "Kotlin": 4473} | package com.github.ftfetter.oopdesignpatterns.abstractfactory.factory
import com.github.ftfetter.oopdesignpatterns.abstractfactory.armor.Armor
import com.github.ftfetter.oopdesignpatterns.abstractfactory.weapon.Weapon
interface ClassFactory {
fun name(): String
fun armor(): Armor
fun weapon(): Weapon
} | 1 | null | 1 | 1 | 05be9d5b55c84c429a193da76b1b25fe56ffe5f4 | 317 | oop-design-patterns | MIT License |
app/src/main/java/io/suyong/kakaobridge/Config.kt | khu-suyong | 261,373,882 | false | null | package io.suyong.kakaobridge
object Config {
val KAKAOTALK = "com.kakao.talk"
} | 0 | Kotlin | 0 | 1 | 5bf08f176cb5f029989214dcab0133d3078428d4 | 85 | linux-kakaotalk-android | MIT License |
library/src/main/java/com/wahidabd/library/utils/common/PhoneUtils.kt | wahidabd | 609,474,062 | false | null | package com.wahidabd.library.utils.common
import com.google.i18n.phonenumbers.NumberParseException
import com.google.i18n.phonenumbers.PhoneNumberUtil
import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat
import com.google.i18n.phonenumbers.Phonenumber
private fun formatNumber(
phoneNumber: String... | 1 | Kotlin | 0 | 0 | 9e0d6cad1b927387ed38e696fcba93d934e3fa37 | 1,681 | one-library | MIT License |
performance-jump-search/src/test/java/com/jesperancinha/performance/test/jumpsearch/AllSingleTests.kt | jesperancinha | 43,874,844 | false | {"Kotlin": 26723, "Makefile": 1629, "Shell": 400} | package com.jesperancinha.performance.test.jumpsearch
import org.junit.platform.suite.api.SelectClasses
import org.junit.platform.suite.api.Suite
@Suite
@SelectClasses(
JumpSearchFileSameStepMethod0Test::class,
JumpSearchFileSameStepMethodStreams0Test::class,
JumpSearchFileSameStepMethodStreams0Test::clas... | 0 | Kotlin | 1 | 2 | 3c9cb4dcac97e73863f5ff71e97c718d6f2fdd35 | 345 | performance-projects | Apache License 2.0 |
performance-jump-search/src/test/java/com/jesperancinha/performance/test/jumpsearch/AllSingleTests.kt | jesperancinha | 43,874,844 | false | {"Kotlin": 26723, "Makefile": 1629, "Shell": 400} | package com.jesperancinha.performance.test.jumpsearch
import org.junit.platform.suite.api.SelectClasses
import org.junit.platform.suite.api.Suite
@Suite
@SelectClasses(
JumpSearchFileSameStepMethod0Test::class,
JumpSearchFileSameStepMethodStreams0Test::class,
JumpSearchFileSameStepMethodStreams0Test::clas... | 0 | Kotlin | 1 | 2 | 3c9cb4dcac97e73863f5ff71e97c718d6f2fdd35 | 345 | performance-projects | Apache License 2.0 |
app/src/main/java/com/bharathvishal/messagecommunicationusingwearabledatalayer/Utils/Botresponse.kt | CBNU-IMY | 571,782,360 | false | {"Kotlin": 96645} | package com.bharathvishal.messagecommunicationusingwearabledatalayer.Utils
import android.util.Log
import com.bharathvishal.messagecommunicationusingwearabledatalayer.Api.RetrofitBuilder
import com.bharathvishal.messagecommunicationusingwearabledatalayer.Dto.CorpusDto
import com.bharathvishal.messagecommunicationusing... | 0 | Kotlin | 0 | 0 | 61b7f0b8c37d6c8f452baa652cece31831516426 | 5,186 | WearOs-for-Sound- | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.