path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/example/kaano8/transactiongraph/transaction/TransactionFragment.kt | KaANO-8 | 150,004,170 | false | null | package com.example.kaano8.transactiongraph.transaction
import android.graphics.Color
import android.graphics.DashPathEffect
import android.os.Build
import android.os.Bundle
import android.support.annotation.RequiresApi
import android.support.v4.app.Fragment
import android.util.Log
import android.view.LayoutInflater
i... | 0 | Kotlin | 0 | 0 | 37108f197217f830d60decaa90fc79a416818115 | 6,312 | TransactionGraph | Apache License 2.0 |
app/src/main/java/org/stepic/droid/ui/fragments/FeedbackFragment.kt | vivekkalyanarangan30 | 81,074,544 | true | {"Gradle": 3, "Java Properties": 2, "Text": 2, "Shell": 2, "Ignore List": 2, "Batchfile": 1, "Git Attributes": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 185, "Java": 286, "XML": 164, "CSS": 1, "JavaScript": 140} | package org.stepic.droid.ui.fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import org.stepic.droid.R
import org.stepic.droid.base.FragmentBase
class FeedbackFragment : FragmentBase() {
companion object {
... | 0 | Java | 0 | 0 | f79fedb0f28f78a5fbf0f76f94de7ae962567b55 | 1,559 | stepik-android | Apache License 2.0 |
core/src/main/java/com/loitp/views/piano/listener/OnLoadAudioListener.kt | tplloi | 126,578,283 | false | null | package com.loitp.views.piano.listener
/**
* Created by Loitp on 27.09.2022
* Galaxy One company,
* Vietnam
* +840766040293
* <EMAIL>
*/
interface OnLoadAudioListener {
fun loadPianoAudioStart()
fun loadPianoAudioFinish()
fun loadPianoAudioError(e: Exception?)
fun loadPianoAudioProgress(progress:... | 1 | null | 1 | 9 | 1bf1d6c0099ae80c5f223065a2bf606a7542c2b9 | 327 | base | Apache License 2.0 |
src/main/kotlin/org/sangonomiya/kotlin/controller/NotificationController.kt | DioxideCN | 643,196,968 | false | {"Java": 379027, "Kotlin": 63938, "Groovy": 19912} | package org.sangonomiya.kotlin.controller
import io.swagger.annotations.Api
import io.swagger.annotations.ApiOperation
import org.sangonomiya.app.core.ResponseBounce
import org.sangonomiya.app.service.INotificationService
import org.springframework.web.bind.annotation.*
import javax.annotation.Resource
/**
*
* @aut... | 1 | null | 1 | 1 | 0bf51979fb52d1474b6e0d2fb3861e314bc6a288 | 2,733 | Digital-Carbon | Apache License 2.0 |
waterbalance/app/src/main/java/android/spb/waterbalance/presentation/startpage_activity/StartPageActivityViewModel.kt | Evgenijjjj | 200,550,379 | false | {"Kotlin": 98689, "Java": 1978} | package android.spb.waterbalance.presentation.startpage_activity
import android.content.SharedPreferences
import android.spb.waterbalance.app.App
import android.spb.waterbalance.base.SingleLiveEvent
import android.spb.waterbalance.database.data.DailyStatisticData
import android.spb.waterbalance.database.data.DrinkData... | 0 | Kotlin | 0 | 0 | c3fdb158bbcc637d39a68b4f218666713803607d | 4,857 | waterbalance_app | MIT License |
sample/sample-android/src/main/java/com/example/sampleandroid/view/MainScaffold.kt | dss99911 | 138,060,985 | false | null | package com.example.sampleandroid.view
import androidx.compose.foundation.Icon
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.material.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Menu
import androidx.compose.runtime.Composable
import com... | 1 | null | 2 | 38 | e9da57fdab9c9c1169fab422fac7432143e2c02c | 1,875 | kotlin-simple-architecture | Apache License 2.0 |
theodolite/src/test/kotlin/rocks/theodolite/kubernetes/patcher/ServiceSelectorPatcherTest.kt | cau-se | 265,538,393 | false | null | package rocks.theodolite.kubernetes.patcher
import io.fabric8.kubernetes.api.model.Service
import io.quarkus.test.junit.QuarkusTest
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
@QuarkusTest
internal class ServiceSelectorPatch... | 2 | null | 8 | 43 | 7f25b867314e05306bbe9205533a483a58486b11 | 778 | theodolite | Apache License 2.0 |
koin-projects/koin-core/src/main/kotlin/org/koin/log/EmptyLogger.kt | jschmid | 163,691,953 | true | {"Kotlin": 531569, "CSS": 32204, "Java": 3568, "Shell": 412} | /*
* Copyright 2017-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 0 | Kotlin | 0 | 0 | ebd03c5c372815a80bf01a27f150d0e43f2d9a0f | 841 | koin | Apache License 2.0 |
app/src/main/java/org/covidwatch/android/data/model/RiskModelConfiguration.kt | covidwatchorg | 261,834,815 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 2, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 2, "PlantUML": 2, "YAML": 3, "Proguard": 1, "Kotlin": 162, "INI": 1, "XML": 185, "Java": 2, "Protocol Buffer": 1} | package org.covidwatch.android.data.model
import com.google.gson.annotations.SerializedName
open class RiskModelConfiguration(
/**
* Exclude days relative to possible infected date
*/
@SerializedName("excludeDaysRelativeToPossibleInfectedDay")
val excludeInfectedDays: List<Int>,
val doseRes... | 11 | Kotlin | 7 | 11 | a9d6fe16427f131fb8e5a5044db34cedb760c56e | 2,244 | covidwatch-android-en | Apache License 2.0 |
kotlin/src/main/kotlin/com/spoonacular/client/model/GetRecipeEquipmentByID200Response.kt | ddsky | 189,444,765 | false | {"Java": 5284551, "PHP": 4677708, "C#": 3667634, "Python": 2916304, "C++": 2709945, "Ruby": 2645696, "TypeScript": 2614776, "Perl": 2387035, "JavaScript": 2083136, "Dart": 1382226, "Haskell": 1258600, "Objective-C": 1053991, "Lua": 986919, "Kotlin": 786150, "Rust": 666516, "Elm": 435994, "Clojure": 371499, "Scala": 312... | /**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package com.spoonacular.client.model
import com... | 1 | Java | 64 | 41 | 60d83759252522d70fe981b12a20a5f56690617e | 680 | spoonacular-api-clients | MIT License |
app-android/src/main/java/org/mtransit/android/data/IAgencyNearbyUIProperties.kt | mtransitapps | 24,649,585 | false | null | package org.mtransit.android.data
interface IAgencyNearbyUIProperties : IAgencyNearbyProperties, IAgencyUIProperties | 5 | null | 4 | 36 | 86d48b5202534c6683ea0b5090809dd5207590a6 | 117 | mtransit-for-android | Apache License 2.0 |
src/main/kotlin/com/binbraw/di/TableInjection.kt | fahmigutawan | 610,577,637 | false | null | package com.binbraw.di
import com.binbraw.data.table.emergency_contact.EmContactTable
import com.binbraw.data.table.emergency_contact.EmContactWithPatientTable
import com.binbraw.data.table.family.PatientWithFamilyTable
import com.binbraw.data.table.fcm.FcmTokenTable
import com.binbraw.data.table.general.role.RoleTabl... | 0 | Kotlin | 0 | 1 | 2b18fd59dc0198925dea279f71f08182d601e4ff | 865 | Ktor-Detaq | MIT License |
app/src/main/java/com/example/android/unsplash/ui/ImageSize.kt | wingsum93 | 120,584,940 | false | {"Gradle": 3, "Java Properties": 2, "Markdown": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "XML": 19, "Kotlin": 14, "Java": 2} | /*
* Copyright (C) 2016 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... | 1 | null | 1 | 1 | 941de0b352d974366e592b5503735b91b2f6e455 | 786 | android-unsplash | Apache License 2.0 |
src/main/kotlin/org/arend/psi/ext/ArendCaseArg.kt | JetBrains | 96,068,447 | false | {"Kotlin": 2644104, "Lex": 16187, "Java": 5894, "HTML": 2144, "CSS": 1108, "JavaScript": 713} | package org.arend.psi.ext
import com.intellij.lang.ASTNode
import com.intellij.psi.PsiElement
import org.arend.psi.*
import org.arend.psi.ArendElementTypes.*
import org.arend.term.abs.Abstract
class ArendCaseArg(node: ASTNode) : ArendSourceNodeImpl(node), Abstract.CaseArgument {
val colon: PsiElement?
ge... | 73 | Kotlin | 15 | 90 | b11d0906f9a0d9680675a418cdc50b98e2d33c92 | 859 | intellij-arend | Apache License 2.0 |
src/app/src/main/java/com/cunyn/android/financesystem/util/XinYanSDKUtils.kt | hottech-jxd | 150,100,491 | false | null | package com.cunyn.android.financesystem.util
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.widget.Toast
import com.cunyn.android.financesystem.ResultActivity
import com.cunyn.android.financesystem.base.BaseApplic... | 0 | Kotlin | 0 | 1 | ce4ed7ad9f6391401e3ce94ccb055c2fe660bf75 | 4,074 | financesystem | Apache License 2.0 |
oklibrary/src/main/java/com/gateoftruth/oklibrary/SimpleRequest.kt | xinayida | 328,561,144 | true | {"Kotlin": 62336, "Java": 4031} | package com.gateoftruth.oklibrary
import okhttp3.*
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.RequestBody.Companion.asRequestBody
import okhttp3.RequestBody.Companion.toRequestBody
import okio.appendingSink
import okio.buffer
import okio.sink
import org.json.JSONObject
import java.io.File
import jav... | 0 | Kotlin | 0 | 0 | bca7f2b411cd31a210429e3f46750fd266da4945 | 11,609 | OkSimple | Apache License 2.0 |
src/main/kotlin/io/zerobase/smarttracing/resources/OrganizationsResource.kt | knorrium | 253,064,461 | true | {"Kotlin": 47971, "Python": 2823, "CSS": 2778, "HTML": 2333, "Dockerfile": 218, "Shell": 158} | package io.zerobase.smarttracing.resources
import io.zerobase.smarttracing.GraphDao
import io.zerobase.smarttracing.MultiMap
import io.zerobase.smarttracing.models.*
import io.zerobase.smarttracing.notifications.NotificationFactory
import io.zerobase.smarttracing.notifications.NotificationManager
import javax.ws.rs.*
... | 0 | null | 0 | 0 | 4fa295b3eed6a06c31605e705aa026734e473a6c | 4,174 | smart-tracing-api | Apache License 2.0 |
backend/src/main/kotlin/com/denchic45/studiversity/feature/timetable/usecase/PutTimetableOfDayUseCase.kt | denchic45 | 435,895,363 | false | {"Kotlin": 2073955, "Vue": 15083, "JavaScript": 2830, "CSS": 1496, "HTML": 867} | package com.denchic45.studiversity.feature.timetable.usecase
import com.denchic45.studiversity.feature.timetable.TimetableRepository
import com.denchic45.studiversity.transaction.SuspendTransactionWorker
import com.denchic45.studiversity.api.timetable.model.PutTimetableOfDayRequest
import com.denchic45.studiversity.ap... | 0 | Kotlin | 0 | 7 | 9b783fe46d44964f95666641bca9323cd558c11a | 1,361 | Studiversity | Apache License 2.0 |
src/main/kotlin/net/kodehawa/lib/imageboards/entities/BoardImage.kt | Doomsdayrs | 188,209,067 | true | {"Kotlin": 49623} | /*
* Copyright 2017 Kodehawa
*
* 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 | 0 | 0 | aa9d0243de8d50309c7ce1e960a46083be066637 | 1,087 | imageboard-api | Apache License 2.0 |
android-jsBridgeCore/src/main/java/me/yamlee/jsbridge/ui/WebHeader.kt | YamLee | 122,713,770 | false | null | package me.yamlee.jsbridge.ui
import android.net.Uri
import android.view.View
/**
* The base abstract definition of web header
*/
interface WebHeader {
interface MenuClickListener {
fun onClickMenu(menuModel: ListIconTextModel)
}
data class ListIconTextModel(var iconUri: Uri?,
... | 0 | Kotlin | 2 | 3 | fca5c0eba5d313a9a06585f46c427a16ee4c8b35 | 1,318 | AndroidJsBridge | Apache License 2.0 |
kotlin/src/main/kotlin/com/example/coroutineServer/web/controller/CallGoServerController.kt | retheviper | 499,837,316 | false | null | package com.example.coroutineServer.web.controller
import com.example.coroutineServer.domain.service.CallGoServerService
import com.example.coroutineServer.web.model.response.CallGoServerResponse
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController
@R... | 0 | Kotlin | 0 | 2 | 10beb85fa8ae84a599c85e56a22888d5277342bc | 1,124 | AsyncServerExample | MIT License |
app/src/main/java/com/jonnycaley/cryptomanager/data/model/CoinMarketCap/Currency.kt | jonnycaley | 145,757,029 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "JSON": 1, "Kotlin": 183, "XML": 128, "Java": 19} | package com.jonnycaley.cryptomanager.data.model.CoinMarketCap
import java.io.Serializable
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
class Currency : Serializable {
@SerializedName("id")
@Expose
var id: Long? = null
@SerializedName("name")
@Expose
... | 1 | null | 1 | 1 | 4ad372962b2f42ef033a85c39bb755c0c692b7e8 | 1,243 | CryptoManager | MIT License |
compiler/testData/diagnostics/tests/generics/cyclicBounds/functions.fir.kt | android | 263,405,600 | false | null | fun <T : F?, F : T?> foo1() {}
fun <T : F?, F : E, E : F?> foo2() {}
fun <T, F> foo3() where T : F?, F : T {}
fun <T, F, E> foo4() where T : F?, F : E, E : F? {} | 0 | null | 37 | 316 | 74126637a097f5e6b099a7b7a4263468ecfda144 | 164 | kotlin | Apache License 2.0 |
app/src/main/java/org/simple/clinic/search/results/PatientSearchResultsUiRenderer.kt | KelvnPere | 310,601,209 | true | {"Kotlin": 4452962, "Shell": 3616, "Python": 3162} | package org.simple.clinic.search.results
import org.simple.clinic.mobius.ViewRenderer
class PatientSearchResultsUiRenderer(
private val ui: PatientSearchResultsUi
) : ViewRenderer<PatientSearchResultsModel> {
override fun render(model: PatientSearchResultsModel) {
/* Nothing to do here. Yet. */
}
}
| 0 | null | 0 | 0 | 79b5055be07a4e9b46b84b0a157bb07f6cc254ad | 315 | simple-android | MIT License |
persistence-service/src/main/kotlin/com/glycin/persistenceservice/model/Action.kt | glycin | 873,868,006 | false | {"Kotlin": 10446, "C#": 2124, "Dockerfile": 1189, "Batchfile": 1056} | package com.glycin.kotlinbackend.model
data class Action(
val timeStamp : Long,
val type: ActionType = ActionType.TAP,
)
enum class ActionType {
TAP,
} | 0 | Kotlin | 0 | 0 | 7cce7d2bc025e2f6fe3d383815d71a4bb239af11 | 165 | opentelemetry-talk | MIT License |
sona-room/src/main/java/cn/bixin/sona/util/SonaLogger.kt | BixinTech | 573,245,841 | false | null | package cn.bixin.sona.util
import android.util.Log
import cn.bixin.sona.base.Sona
import cn.bixin.sona.report.SonaReport
import cn.bixin.sona.report.SonaReportEvent
object SonaLogger {
var print = Sona.showLog()
@JvmStatic
fun print(message: String?) {
if (print) {
Log.e(SonaConstant... | 0 | Kotlin | 5 | 11 | 77fb8f41dadc18372a958810ac92e649d3929373 | 950 | sona-android | Apache License 2.0 |
app/src/main/java/com/kubiakdev/safely/base/adapter/SimpleItemTouchHelperCallback.kt | kubiakpatryk | 107,029,374 | false | null | package com.kubiakdev.safely.base.adapter
import android.graphics.Canvas
import androidx.recyclerview.widget.ItemTouchHelper
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.StaggeredGridLayoutManager
class SimpleItemTouchHelperCallback(
var adapter: ItemTouchHelperAdapter,... | 1 | null | 1 | 1 | 40e61c81e237976c1bb7c5d718c6ddf81eb6ad33 | 3,236 | Safely | Apache License 2.0 |
src/main/java/com/booknara/problem/math/ReverseIntegerKt.kt | booknara | 226,968,158 | false | {"Java": 1128390, "Kotlin": 177761} | package com.booknara.problem.math
/**
* 7. Reverse Integer (Easy)
* https://leetcode.com/problems/reverse-integer/
*/
class ReverseIntegerKt {
// T:O(logn), S:O(1)
fun reverse(x: Int): Int {
if (x == 0) return 0
val sign = if (x < 0) -1 else 1
var num: Long = Math.abs(x.toLong())
... | 0 | Java | 1 | 1 | 962cbcc94d423e24ef29ad2bb11562067a336b4f | 616 | playground | MIT License |
app/src/main/java/com/voidhash/heartstone/framework/model/card/CardModel.kt | VoidHash | 591,779,266 | false | null | package com.voidhash.heartstone.framework.model.card
import com.google.gson.annotations.SerializedName
data class CardModel(
@field:SerializedName("Knights of the Frozen Throne")
val knightsOfTheFrozenThrone: List<KnightsOfTheFrozenThroneItem?>? = null,
@field:SerializedName("Whispers of the Old Gods")
val whis... | 0 | Kotlin | 0 | 0 | 917d93b817d39f0be1c0d87da265351089a82693 | 74,234 | Hearthstone-Android | MIT License |
api/src/main/kotlin/org/kryptonmc/krypton/api/scheduling/Scheduler.kt | Esophose | 347,235,978 | true | {"Kotlin": 421806, "Dockerfile": 139} | package org.kryptonmc.krypton.api.scheduling
import org.kryptonmc.krypton.api.plugin.Plugin
import java.util.concurrent.Executor
import java.util.concurrent.TimeUnit
/**
* The scheduler. This can be used to run or schedule tasks asynchronously.
*
* @author <NAME>
*/
interface Scheduler {
/**
* The backi... | 0 | Kotlin | 0 | 0 | 76528024a0ec0e9b51ef9a77ca1ee613ffd1a9d6 | 1,930 | Krypton | MIT License |
features/main/src/main/java/com/volvocars/weather/main/domain/model/ConsolidatedWeatherModel.kt | rasoulmiri | 496,148,838 | false | null | package com.volvocars.weather.main.domain.model
import java.util.*
data class ConsolidatedWeatherModel(
val id: Long?,
val weatherStateName: String?,
val weatherStateAbbr: String?,
val windDirectionCompass: String?,
val created: Calendar?,
val applicableDate: Calendar?,
val minTemp: Doubl... | 0 | Kotlin | 0 | 0 | af34afdff99f5d38b06b14c4b0480bdc33c9ae18 | 552 | VolvoCarsWeather | Apache License 2.0 |
library/src/main/java/com/sokoobo/workinspector/ui/workers/WorkersListViewModel.kt | sokoobo | 877,075,143 | false | {"Kotlin": 43762} | package com.sokoobo.workinspector.ui.workers
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.SharingStarted
import kotlinx.coroutines.flow.catch
import kotlinx.coroutines.f... | 0 | Kotlin | 0 | 0 | 3af665e601a412821566cb5fbba139acac956f6f | 1,098 | work-inspector | Apache License 2.0 |
prefs-core/src/com/hendraanggrian/auto/prefs/internal/PreferencesBinding.kt | hendraanggrian | 167,892,632 | false | null | package com.hendraanggrian.auto.prefs.internal
import com.hendraanggrian.auto.prefs.EditablePreferences
import com.hendraanggrian.auto.prefs.PreferencesEditor
import com.hendraanggrian.auto.prefs.PreferencesSaver
import com.hendraanggrian.auto.prefs.ReadablePreferences
import com.hendraanggrian.auto.prefs.WritablePref... | 0 | Kotlin | 0 | 0 | b298680cd7fd8f1372d0b44f902fbef9af3be30a | 1,745 | prefs | Apache License 2.0 |
minecraft/sponge/src/main/kotlin/com/asledgehammer/langpack/sponge/util/text/TextComponent.kt | asledgehammer | 341,660,344 | false | null | @file:Suppress("unused")
package com.asledgehammer.langpack.sponge.util.text
import com.asledgehammer.langpack.core.util.MultilinePrinter
import com.asledgehammer.langpack.minecraft.commons.util.text.ClickEvent
import com.asledgehammer.langpack.minecraft.commons.util.text.HoverEvent
import com.asledgehammer.langpack.... | 2 | Kotlin | 0 | 0 | f88aaddc0bcf24f7986fea44f46296d3d9e2d78b | 3,977 | LangPack | Apache License 2.0 |
appupdatewrapper/src/test/java/com/motorro/appupdatewrapper/UpdateFlowBreakerTest.kt | motorro | 198,185,007 | false | {"Kotlin": 126024} | /*
* Copyright 2019 <NAME> (motorro).
* 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 w... | 1 | Kotlin | 2 | 35 | 53f96f89b0dace51c46f34b9912007dd261d7596 | 4,068 | AppUpdateWrapper | Apache License 2.0 |
library/src/se/emilsjolander/stickylistheaders/WrapperViewList.kt | naqi | 221,610,610 | true | {"Kotlin": 46564} | package se.emilsjolander.stickylistheaders
import android.content.Context
import android.graphics.Canvas
import android.graphics.Rect
import android.view.View
import android.widget.AbsListView
import android.widget.ListView
import java.lang.reflect.Field
import java.util.*
class WrapperViewList(context: Context) : Li... | 0 | Kotlin | 0 | 0 | bb294dd4cc9ca5e97557081b7247d49f28983645 | 4,863 | StickyListHeaders | Apache License 2.0 |
library/src/se/emilsjolander/stickylistheaders/WrapperViewList.kt | naqi | 221,610,610 | true | {"Kotlin": 46564} | package se.emilsjolander.stickylistheaders
import android.content.Context
import android.graphics.Canvas
import android.graphics.Rect
import android.view.View
import android.widget.AbsListView
import android.widget.ListView
import java.lang.reflect.Field
import java.util.*
class WrapperViewList(context: Context) : Li... | 0 | Kotlin | 0 | 0 | bb294dd4cc9ca5e97557081b7247d49f28983645 | 4,863 | StickyListHeaders | Apache License 2.0 |
testing/src/testFixtures/kotlin/br/com/jonathanarodr/playmovie/testing/rules/RoomDatabaseRule.kt | jonathanarodr | 136,104,400 | false | {"Kotlin": 94634, "Shell": 832} | package br.com.jonathanarodr.playmovie.testing.rules
import android.content.Context
import androidx.room.Room
import androidx.room.RoomDatabase
import androidx.test.core.app.ApplicationProvider
import org.junit.rules.ExternalResource
import java.io.IOException
class RoomDatabaseRule<T : RoomDatabase>(
private val... | 20 | Kotlin | 0 | 3 | a197cca9ca69cc78c8107f647abed5b5540f27ec | 717 | playmovie | MIT License |
library/src/main/java/com/kkagurazaka/experimental/asyncpermissions/AsyncPermissions.kt | ghostbuster91 | 122,620,021 | true | {"Kotlin": 8680} | package com.kkagurazaka.experimental.asyncpermissions
import android.support.v7.app.AppCompatActivity
import kotlinx.coroutines.experimental.suspendCancellableCoroutine
class AsyncPermissions(activity: AppCompatActivity) {
private val asyncPermissionsFragment: AsyncPermissionsFragment =
AsyncPermissi... | 0 | Kotlin | 0 | 0 | 4e6db9c458cd22f6b15e5a13cc0577c90ece349a | 719 | async-permissions | MIT License |
app/src/main/java/co/youverify/youhr/domain/use_case/GetAllAnnouncementUseCase.kt | sojious | 674,516,085 | false | null | package co.youverify.youhr.domain.use_case
import androidx.paging.PagingData
import co.youverify.youhr.core.util.Result
import co.youverify.youhr.data.model.AnnouncementListResponse
import co.youverify.youhr.domain.model.Announcement
import co.youverify.youhr.domain.repository.AnnouncementRepository
import kotlinx.cor... | 0 | Kotlin | 0 | 0 | d9e79375a51cdac0d5364d84bbb8e5a5160eef65 | 604 | YouHr | MIT License |
src/main/kotlin/cu/suitetecsa/sdk/nauta/util/LongExtension.kt | suitetecsa | 696,970,114 | false | {"Kotlin": 180648} | package cu.suitetecsa.sdk.nauta.util
// Define constants for the magic numbers
private const val SECONDS_IN_HOUR = 3600
private const val SECONDS_IN_MINUTE = 60
fun Long.toTimeString(): String {
val hours = this / SECONDS_IN_HOUR
val minutes = (this % SECONDS_IN_HOUR) / SECONDS_IN_MINUTE
val seconds = thi... | 0 | Kotlin | 0 | 2 | 936c8e49fe3c76f9d7a0ec5f6abd684583cfb1eb | 404 | sdk-kotlin | MIT License |
src/main/kotlin/org/openweather/cached/service/configurations/OpenWeatherConfigurations.kt | ZsoltBerki | 357,253,147 | false | null | package org.openweather.cached.service.configurations
data class OpenWeatherConfigurations(
val baseUrl: String = "http://api.openweathermap.org",
val version: String = "2.5",
val apiKey: String
)
| 0 | Kotlin | 0 | 0 | 2a0c19117816d4aeba9ef94b3bbc57f5b4ed4288 | 210 | OpenWeatherKotlin | Apache License 2.0 |
eva-test/src/main/kotlin/com/razz/eva/test/uow/UowBehaviorSpec.kt | razz-team | 477,827,497 | false | {"Kotlin": 607724, "PLpgSQL": 6537, "Dockerfile": 178} | package com.razz.eva.test.uow
import com.razz.eva.uow.Clocks.fixedUTC
import com.razz.eva.uow.Clocks.millisUTC
import com.razz.eva.uow.verify.EqualityVerifier
import com.razz.eva.uow.verify.EqualityVerifierAware
import io.kotest.core.spec.style.BehaviorSpec
import io.kotest.matchers.shouldBe
abstract class UowBehavio... | 6 | Kotlin | 0 | 49 | 38bb888f963894a6ce636bc98c6ea92182e53775 | 773 | eva | Apache License 2.0 |
frontend/common/data/network/post/impl/src/main/java/cc/snakechat/data/post/RealPostApi.kt | Kshitij09 | 815,484,478 | false | {"Kotlin": 193333, "Go": 57157} | package cc.snakechat.data.post
import cc.snakechat.data.post.comment.PostCommentsRequest
import cc.snakechat.data.post.comment.PostCommentsResponse
import cc.snakechat.data.post.like.LikersRequest
import cc.snakechat.data.post.like.LikersResponse
import io.ktor.client.HttpClient
import io.ktor.client.call.body
import ... | 0 | Kotlin | 0 | 1 | c2049b7ca67f1360c3b0cd492a51fe0d9e78c8f0 | 1,700 | snakechat | Apache License 2.0 |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/DatabaseX.kt | walter-juan | 868,046,028 | false | null | package com.woowla.compose.icon.collections.tabler.tabler.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector... | 0 | null | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 3,827 | compose-icon-collections | MIT License |
verik-importer/src/test/kotlin/io/verik/importer/preprocess/BasePreprocessorTest.kt | frwang96 | 269,980,078 | false | null | /*
* SPDX-License-Identifier: Apache-2.0
*/
package io.verik.importer.preprocess
import io.verik.importer.test.BaseTest
import org.junit.jupiter.api.Test
internal class BasePreprocessorTest : BaseTest() {
@Test
fun `directive ifdef`() {
drivePreprocessorTest(
"""
`defin... | 0 | Kotlin | 1 | 33 | ee22969235460fd144294bcbcbab0338c638eb92 | 1,100 | verik | Apache License 2.0 |
app/src/main/java/hakkon/sftpserver/SettingsFragment.kt | smartmagician | 640,829,052 | true | {"Kotlin": 54385} | package hakkon.sftpserver
import android.app.AlertDialog
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.support.v7.preference.PreferenceFragmentCompat
import android.text.Html
import android.view.View
import kotlinx.an... | 0 | null | 0 | 0 | f71ba61ff114dbbdf81937d45cd30958e850a7b7 | 1,707 | droid-sftp | Apache License 2.0 |
src/main/kotlin/io/github/sofiapl/ast/expr/value/String.kt | sofiapl | 202,442,654 | false | null | package io.github.sofiapl.ast.expr.value
import io.github.sofiapl.ast.expr.Value
data class String(override val bytes: List<Byte>): Value
| 0 | Kotlin | 0 | 0 | 47a1d617de7ffd11dfa96836633994ad10eb67fb | 140 | ast | MIT License |
data/src/main/java/com/costular/atomtasks/data/tasks/ReminderDao.kt | costular | 379,913,052 | false | {"Kotlin": 584012, "HTML": 7918} | package com.costular.atomtasks.data.tasks
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import androidx.room.Update
import java.time.LocalDate
import java.time.LocalTime
@Dao
interface ReminderDao {
@Insert(onConflict = OnConflictStrategy.... | 0 | Kotlin | 0 | 9 | 8c81c3a3a9198e57bca0cdf8b399c89f01f28f84 | 872 | atom-tasks | Apache License 2.0 |
src/main/kotlin/io/testaxis/backend/parsers/JacocoXMLParser.kt | testaxis | 301,692,798 | false | null | package io.testaxis.backend.parsers
import io.testaxis.backend.parsers.JUnitXMLParser.TestSuite
import org.springframework.stereotype.Component
import org.w3c.dom.Document
import org.w3c.dom.Element
@Component
class JacocoXMLParser : XMLParser<JacocoXMLParser.CoverageReportForSingleMethod>() {
data class Coverag... | 0 | Kotlin | 0 | 0 | 17494eee5c2c39bea5b32d7adc8567fddb2036be | 3,717 | testaxis-backend | MIT License |
src/test/kotlin/de/consuli/aoc/days/Day09Test.kt | ulischulte | 572,773,554 | false | null | package de.consuli.aoc.days
class Day09Test : DayTest<Day09>(
Day09(), PuzzleOutput(
partOneExpectedSampleOutput = 88,
partOneExpectedOutput = 5710,
partTwoExpectedSampleOutput = 36,
partTwoExpectedOutput = 2259
), Day09()
)
| 0 | Kotlin | 0 | 2 | 6080639892bfb85355b5f490a542e1d2404792f5 | 267 | advent-of-code | Apache License 2.0 |
src/main/kotlin/Remove.kt | somei-san | 564,974,224 | false | null | /** [elementsToRemove] の要素のキーを持つ [this] の要素を削除して、残りの要素を返します */
fun <T, KeyT> Collection<T>.removeBy(elementsToRemove: Collection<T>, keySelector: (T) -> KeyT): List<T> {
val otherKeys = elementsToRemove.map { keySelector(it) }.toSet()
return this.filterNot { keySelector(it) in otherKeys }
}
/** [keysToRemove] ... | 0 | Kotlin | 0 | 0 | 3128d02c8a6a7301d954a50e37d5832bca6cf735 | 567 | collection-tools-kt | MIT License |
sample/src/main/kotlin/com/chuckerteam/chucker/sample/HttpTask.kt | ChuckerTeam | 156,025,139 | false | {"Kotlin": 582940, "Shell": 1986} | package com.chuckerteam.chucker.sample
interface HttpTask {
fun run()
}
| 64 | Kotlin | 346 | 3,944 | 23918344a94899faeba68cf325646768533b3a21 | 77 | chucker | Apache License 2.0 |
netcode-mcbe/src/main/kotlin/com/valaphee/netcode/mcbe/network/packet/AdventureSettingsWithoutAbilitiesPacket.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 | 1,878 | netcode | Apache License 2.0 |
app/src/main/kotlin/no/nav/k9punsj/rest/eksternt/pdl/Personopplysninger.kt | navikt | 216,808,662 | false | null | package no.nav.k9punsj.rest.eksternt.pdl
import java.time.LocalDate
data class Personopplysninger (
internal val identitetsnummer: String,
internal val fødselsdato: LocalDate,
internal val fornavn: String,
internal val mellomnavn: String?,
internal val etternavn: String,
private val gradering:... | 4 | Kotlin | 2 | 1 | 79ccd972c7c380fa224b14320e7d25f1c92aa402 | 726 | k9-punsj | MIT License |
app/src/main/java/com/strawhat/looker/search/data/remote/SearchApi.kt | MohamedRejeb | 563,463,625 | false | {"Kotlin": 211194} | package com.strawhat.looker.search.data.remote
import com.strawhat.looker.map.data.remote.PlacesResponse
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.QueryMap
interface SearchApi {
@GET("user/places")
suspend fun search(
@QueryMap queries: HashMap<String, String>,
): ... | 0 | Kotlin | 0 | 2 | 4e796e5b7ac0a18bad0be70b80e3d4cc8a550805 | 444 | looker-app | Apache License 2.0 |
mui-icons-kotlin/src/jsMain/kotlin/mui/icons/material/TsunamiOutlined.kt | karakum-team | 387,062,541 | false | {"Kotlin": 3037818, "TypeScript": 2249, "HTML": 724, "CSS": 86} | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/TsunamiOutlined")
package mui.icons.material
@JsName("default")
external val TsunamiOutlined: SvgIconComponent
| 1 | Kotlin | 5 | 35 | 7c4376ba64ea84a5c40255d83c8c046978c3843d | 194 | mui-kotlin | Apache License 2.0 |
app/src/test/java/com/github/naz013/todoappconcept/home/add/AddDialogPresenterImplTest.kt | naz013 | 233,076,936 | false | null | package com.github.naz013.todoappconcept.home.add
import com.github.naz013.todoappconcept.data.repository.folder.FolderRepository
import com.github.naz013.todoappconcept.utils.threading.TestSchedulerProvider
import com.nhaarman.mockitokotlin2.*
import io.reactivex.schedulers.TestScheduler
import org.junit.Before
impor... | 0 | Kotlin | 1 | 0 | 81519d544e1b49a5eb3f00872bb8405dc96164e7 | 1,878 | todo-app-concept | Apache License 2.0 |
BaseExtend/src/main/java/com/chen/baseextend/base/fragment/BasePageFragment.kt | forJrking | 271,493,156 | false | {"Gradle": 10, "Java Properties": 2, "Shell": 1, "Text": 3, "Ignore List": 8, "Batchfile": 1, "Git Attributes": 1, "Markdown": 4, "INI": 2, "Proguard": 4, "XML": 385, "Kotlin": 373, "Java": 252} | package com.chen.baseextend.base.fragment
import android.content.Context
import android.os.Bundle
import android.util.TypedValue
import android.view.Gravity
import android.view.View
import android.view.animation.AccelerateInterpolator
import android.view.animation.DecelerateInterpolator
import android.widget.FrameLayo... | 1 | null | 1 | 1 | 281ac20234e2e5208d26f950571bfd301a7cff8a | 7,049 | EasyAndroid | Apache License 2.0 |
url-gen/src/main/kotlin/com/cloudinary/transformation/resize/LimitFit.kt | cloudinary | 226,841,227 | false | null | package com.cloudinary.transformation.resize
class LimitFit(
dimensions: Dimensions, relative: Boolean? = null,
regionRelative: Boolean? = null
) :
Resize(dimensions, relative, regionRelative) {
override val actionType = "limit"
class Builder : BaseBuilder<Builder>() {
override fun getThis... | 6 | Kotlin | 3 | 6 | 9e7dc35adc269d4de45c9b792e6132c2a6f7a245 | 489 | cloudinary_kotlin | MIT License |
app/src/main/java/fr/xgouchet/packageexplorer/ui/mvp/list/ListPresenter.kt | vaginessa | 121,990,456 | true | {"Kotlin": 102471, "Java": 220} | package fr.xgouchet.packageexplorer.ui.mvp.list
import fr.xgouchet.packageexplorer.ui.mvp.Presenter
/**
* @author <NAME>
*/
interface ListPresenter<T> : Presenter<List<T>> {
fun itemSelected(item: T)
}
| 1 | Kotlin | 0 | 0 | bdd11efe75495e2447991c1fe3b150504ef0f1ed | 211 | Stanley | MIT License |
examples/quarter-truck/quarter-truck.main.kts | NTNU-IHB | 284,521,287 | false | null | @file:DependsOn("info.laht.sspgen:dsl:0.5.1")
import no.ntnu.ihb.sspgen.dsl.ssp
val stepSize = 1.0 / 1000
ssp("QuarterTruck") {
resources {
file("fmus/chassis.fmu")
file("fmus/wheel.fmu")
file("fmus/ground.fmu")
}
ssd("QuarterTruck") {
system("QuarterTruckSystem") {
... | 4 | Kotlin | 1 | 8 | 997c708656c274cbcab94cb4375ebfdf46d5e1ad | 3,189 | Vico | MIT License |
app/src/androidTest/java/com/thiennguyen/survey/feature/forgot/ForgotFragmentTest.kt | thiennguyen0196 | 482,177,646 | false | {"Kotlin": 148873} | package com.thiennguyen.survey.feature.forgot
import androidx.navigation.NavController
import androidx.navigation.Navigation
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matche... | 6 | Kotlin | 0 | 0 | 25bed7de5aad8abfee37173ac28458d2a60c154d | 4,334 | survey | Apache License 2.0 |
nav/src/main/java/cz/pekostudio/NavConfigData.kt | PekoStudioSRO | 262,020,593 | false | null | package cz.pekostudio
import com.google.gson.JsonDeserializer
import com.google.gson.JsonSerializer
import cz.pekostudio.nav.R
/**
* Created by <NAME> on 07/05/2020.
*/
object NavConfigData {
public val navigation = Navigation()
public data class Navigation(
var fileProvider: String? = null
)
... | 0 | Kotlin | 0 | 0 | ac0364c19604e6c8c6fed64889bed6819c41f91f | 620 | nav-androidlib | Apache License 2.0 |
app/src/main/java/com/app/montra/data/remote/dto/EmailOnlyRequest.kt | nyamwaya | 568,413,595 | false | {"Kotlin": 71461} | package com.app.montra.data.remote.dto
data class EmailOnlyRequest(
val email: String,
) | 0 | Kotlin | 0 | 0 | 08d69c9a439a43a2045dc3dab0eb212710b005e6 | 93 | montra | Apache License 2.0 |
src/model/src/main/kotlin/org/jonnyzzz/teamcity/dsl/model/TCBuildTemplate.kt | jonnyzzz | 49,230,773 | false | null | package org.jonnyzzz.teamcity.dsl.model
import org.jonnyzzz.kotlin.xml.bind.XAttribute
import org.jonnyzzz.kotlin.xml.bind.XRoot
import org.jonnyzzz.kotlin.xml.bind.XText
import org.jonnyzzz.kotlin.xml.bind.jdom.JXML
interface TCBuildTemplateRef {
val id : String?
}
@XRoot("template")
abstract class TCBuildTemplat... | 8 | Kotlin | 0 | 6 | 89c0af44b07179bc21010e64b84bd1e74ad7dfab | 570 | TeamCity2DSL | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsinterventionsservice/service/CommunityAPIOffenderServiceTest.kt | ministryofjustice | 312,544,431 | false | null | package uk.gov.justice.digital.hmpps.hmppsinterventionsservice.service
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.springframework.http.HttpStatus
import org.springframework.http.HttpStatusCode
import org.springframework.web.reactive.function.client.ClientResponse
imp... | 8 | null | 1 | 2 | ba44e866429054452016b73eb71936a61e8ca645 | 3,486 | hmpps-interventions-service | MIT License |
bridge-client/src/commonMain/kotlin/org/sagebionetworks/bridge/kmm/shared/apis/PublicApi.kt | Erin-Mounts | 399,558,346 | true | {"Objective-C": 783662, "Kotlin": 390815, "Swift": 229085, "Shell": 291} | /**
* Bridge Server Public API
*/
package org.sagebionetworks.bridge.kmm.shared.apis
import io.ktor.client.*
import io.ktor.client.call.*
import io.ktor.client.request.*
import io.ktor.http.*
import org.sagebionetworks.bridge.kmm.shared.models.AssessmentConfig
import org.sagebionetworks.bridge.mpp.network.generated.m... | 0 | null | 0 | 0 | 3931aadd1de1c923d7323ff817b41b774a15ca86 | 1,021 | BridgeClientKMM | Apache License 2.0 |
app/src/test/java/xyz/malkki/neostumbler/extensions/FlowExtensionsTest.kt | mjaakko | 702,807,829 | false | {"Kotlin": 211494} | package xyz.malkki.neostumbler.extensions
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.toList
import kotlinx.coroutines.runBlocking
import org.junit.Assert.assertEquals
import org.junit.Test
import kotlin.time.Duration.Companion.milliseconds
class FlowExtensionsTe... | 10 | Kotlin | 0 | 2 | e79d2bf0d4bfdc188fde2037ca853823cb375804 | 773 | NeoStumbler | MIT License |
app/src/main/java/com/igorapp/deckster/ui/utils/GameExtensions.kt | igormsiqueira | 568,021,005 | false | null | package com.igorapp.deckster.ui.utils
import com.igorapp.deckster.model.Game
val Game.getCapsuleUrl: String
get() = "https://cdn.cloudflare.steamstatic.com/steam/apps/$id/capsule_sm_120.jpg"
val Game.getCapsuleUrl231: String
get() =
"https://cdn.cloudflare.steamstatic.com/steam/apps/$id/capsule_231x87... | 0 | Kotlin | 0 | 0 | 65e5d6d2ace941e93be74c112c56cf0f4e0a1439 | 809 | deckster-android | MIT License |
android-bindings/src/main/java/com/lightningkite/rx/android/View.removed.kt | lightningkite | 400,655,884 | false | {"Kotlin": 507296, "Java": 105216} | package com.lightningkite.rx.android
import android.view.View
import io.reactivex.rxjava3.disposables.CompositeDisposable
import io.reactivex.rxjava3.kotlin.addTo
import java.util.*
/**
* A CompositeDisposable which is tied to the life cycle of the view.
* When the view is detached from the window the CompositeDisp... | 0 | Kotlin | 0 | 2 | 156fa1ed18aebcb3c162b9e32e01eb72b711b36f | 1,514 | rxkotlin-plus | MIT License |
src/test/kotlin/runner/impl/NodeRunnerTest.kt | rdf-connect | 782,188,424 | false | {"Kotlin": 51083, "TypeScript": 37737} | package runner.impl
import runner.Runner
import runner.RunnerTest
class NodeRunnerTest : RunnerTest() {
override val target: Runner.Target = Runner.Target.NODEJS
override val metadata: Map<String, String> = mapOf("import" to "../std/transparent.js")
override fun createRunner(): Runner {
return NodeRunner(... | 12 | Kotlin | 0 | 1 | 52b6e397fc034f374f36c48764e255f5a4d73594 | 332 | jvm-runner | MIT License |
app/src/main/java/com/factor8/opUndoor/Persistence/AccountPropertiesDao.kt | akshanshgusain | 736,863,285 | false | {"Kotlin": 286606, "Java": 1157} | package com.factor8.opUndoor.Persistence
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.factor8.opUndoor.Models.AccountProperties
@Dao
interface AccountPropertiesDao {
@Insert(onConflict = OnCon... | 0 | Kotlin | 0 | 0 | 62b1fa87034405a283645fab76bed84a578d8da2 | 967 | opunroom | MIT License |
imitate/src/main/java/com/engineer/imitate/ui/widget/custom/SlideArrowView.kt | REBOOTERS | 65,188,539 | false | null | package com.engineer.imitate.ui.widget.custom
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.Path
import android.util.AttributeSet
import android.util.Log
import android.view.View
import com.engineer.imitate.util.dp
impo... | 4 | null | 352 | 1,880 | 278998c8da1da2b47778dba3dbd3f2de1e12f2ed | 2,477 | AndroidAnimationExercise | Apache License 2.0 |
domain/src/main/kotlin/com/seanshubin/kotlin/tryme/domain/huffman/HuffmanNode.kt | SeanShubin | 129,466,612 | false | {"XML": 1, "Maven POM": 3, "Ignore List": 1, "Markdown": 1, "Shell": 1, "Text": 8, "JSON": 1, "Kotlin": 355, "HTML": 2, "Java": 2} | package com.seanshubin.kotlin.tryme.domain.huffman
interface HuffmanNode: Comparable<HuffmanNode> {
val weight:Int
val codeByValue:Map<String, String>
fun toLines():List<String>
fun valueCodeList():List<Pair<String, String>>
fun encode(value:String):String = codeByValue.getValue(value)
fun deco... | 1 | null | 1 | 1 | 1803f204372d994130167749c22f825c51c6a434 | 3,419 | kotlin-tryme | The Unlicense |
app/src/main/java/uk/co/sentinelweb/cuer/app/util/chromecast/listener/ChromecastYouTubePlayerContextHolder.kt | sentinelweb | 220,796,368 | false | {"Kotlin": 2627352, "CSS": 205156, "Java": 98919, "Swift": 85812, "HTML": 19322, "JavaScript": 12105, "Ruby": 2170} | package uk.co.sentinelweb.cuer.app.util.chromecast.listener
import com.pierfrancescosoffritti.androidyoutubeplayer.chromecast.chromecastsender.ChromecastYouTubePlayerContext
import com.pierfrancescosoffritti.androidyoutubeplayer.chromecast.chromecastsender.io.infrastructure.ChromecastConnectionListener
import uk.co.se... | 94 | Kotlin | 0 | 2 | f74e211570fe3985ba45848b228e91a3a8593788 | 1,975 | cuer | Apache License 2.0 |
app/src/main/java/com/guresberat/symovie/room/MovieCacheEntity.kt | guresberat | 395,603,409 | false | null | package com.guresberat.symovie.room
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "movies")
data class MovieCacheEntity(
@PrimaryKey(autoGenerate = false)
@ColumnInfo(name = "id")
val id: Int,
@ColumnInfo(name = "budget")
val budg... | 0 | Kotlin | 0 | 0 | 62a6ed898a5005709d285b3c4fd59d8a5dd9be7b | 998 | SyMovie | Apache License 2.0 |
app/src/main/java/com/sakethh/jetspacer/screens/space/rovers/spirit/SpiritCamerasVM.kt | sakethpathike | 565,414,250 | false | null | package com.sakethh.jetspacer.screens.space.rovers.spirit
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import com.sakethh.jetspacer.screens.space.rovers.RoverCameras
import com.sakethh.jetspacer.screens.space.rovers.curiosity.cameras.random.remote.data.dto.Photo
import com.sakethh... | 2 | null | 1 | 4 | 13d2df35b3aa9efeca829c1e4d0199a48e1665ec | 5,231 | JetSpacer | MIT License |
app/src/main/java/com/dilipsuthar/wallbox/activity/AboutActivity.kt | dilipsuthar97 | 190,713,660 | false | null | package com.dilipsuthar.wallbox.activity
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.view.MenuItem
import android.view.View
import android.widget.TextView
import androidx.appcompat.widget.Toolbar
import butterknife.BindView
import butterknife.ButterKnife
import com.dili... | 0 | Kotlin | 1 | 6 | d2d4f2d31bd140e69c3714b959ba88236a460f46 | 4,160 | WallBox | Apache License 2.0 |
app/src/main/java/org/arshdeep/financemanagement/kotlin/MortgageCalculate.kt | Arsh5620 | 288,237,032 | false | null | package org.arshdeep.financemanagement.kotlin
import org.arshdeep.financemanagement.objects.MortgageFrequency
import org.arshdeep.financemanagement.objects.MortgagePayment
import org.arshdeep.financemanagement.objects.MortgageType
import kotlin.math.pow
class MortgageCalculate(amount: Double,
amortization: Int,
... | 0 | Kotlin | 0 | 0 | 5cde1cbbdc2e8bd10ed6124167f5b100dabbed1f | 3,729 | finance | The Unlicense |
repository/src/test/java/com/numero/sojodia/repository/BusDataRepositoryTest.kt | NUmeroAndDev | 58,176,699 | false | null | package com.numero.sojodia.repository
import com.numero.sojodia.model.*
import com.numero.sojodia.data.BusDataSource
import com.numero.sojodia.data.CacheBusDataSource
import kotlinx.coroutines.runBlocking
import org.junit.Before
import org.junit.Test
import org.junit.Assert.*
class BusDataRepositoryTest {
priva... | 14 | Kotlin | 3 | 9 | 8769696e7f087a78d036956569c1d73ff0507df7 | 2,785 | SojoDia-android | MIT License |
App News - Android + Kotlin + Retrofit + Coroutines + Room/app_news_mvp/app/src/main/java/com/lvb/projects/app_news_mvp/model/data/NewsDataSource.kt | Velosofurioso | 454,964,649 | false | {"Kotlin": 368162, "Dart": 70010, "C++": 16868, "CMake": 9414, "Swift": 3232, "HTML": 1847, "C": 734, "Objective-C": 304} | package com.lvb.projects.app_news_mvp.model.data
import android.content.Context
import com.lvb.projects.app_news_mvp.model.Article
import com.lvb.projects.app_news_mvp.model.db.ArticleDatabase
import com.lvb.projects.app_news_mvp.network.RetrofitInstance
import com.lvb.projects.app_news_mvp.presenter.favorite.Favorite... | 0 | Kotlin | 0 | 0 | 8256f68ae16541677e65306118968904fe467c71 | 2,386 | Mobile-Development-Courses | MIT License |
app/src/main/java/com/danielpriddle/drpnews/data/models/DataResult.kt | DPriddle96 | 529,001,714 | false | {"Kotlin": 83827} | package com.danielpriddle.drpnews.data.models
/**
* Error handling utility classes based on
* [Android Networking: Beyond the Basics](https://www.raywenderlich.com/35150454-android-networking-beyond-the-basics/)
*/
sealed class DataResult<out T : Any>
open class Success<out T : Any>(open val data: T) : DataResult<T... | 0 | Kotlin | 0 | 0 | 4438f071a550c6acd62ef2af7197331031b2eb83 | 543 | DRPNews | MIT License |
shared-ui-compose/src/desktopMain/kotlin/com/expressus/compose/desktop/rightPanel/CoffeeSelectorsPreview.kt | GuilhE | 483,274,962 | false | {"Kotlin": 123318, "Swift": 43152, "Ruby": 4889} | package com.expressus.compose.desktop.rightPanel
import androidx.compose.desktop.ui.tooling.preview.Preview
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.M... | 0 | Kotlin | 10 | 110 | 4d8b9440eae3ab936c9df022f71137eba1515c73 | 649 | Expressus | Apache License 2.0 |
src/test/kotlin/com/exactpro/th2/codec/oracle/logminer/LogMinerTransformerTest.kt | th2-net | 730,306,780 | false | {"Kotlin": 20192, "Dockerfile": 272} | /*
* Copyright 2023 Exactpro (Exactpro Systems Limited)
*
* 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 appl... | 0 | Kotlin | 0 | 0 | 54318d81a5102ffc06c910a8fe79d27f62d8b4ea | 7,557 | th2-codec-oracle-log-miner | Apache License 2.0 |
src/main/kotlin/io/moneyflow/server/config/AppConfiguration.kt | MammothMKIV | 597,151,870 | false | null | package io.moneyflow.server.config
import org.springframework.context.annotation.Configuration
import org.springframework.data.web.config.EnableSpringDataWebSupport
@Configuration
@EnableSpringDataWebSupport
class AppConfiguration | 0 | Kotlin | 0 | 0 | da053a5f2f86c4d6c4351fb2beb11b1e41381752 | 232 | moneyflow-backend | MIT License |
common-all/src/commonMain/kotlin/rubylich/ktmp/features/posts/PostsRepo.kt | RubyLichtenstein | 154,049,137 | false | null | package rubylich.ktmp.features.posts
import rubylich.ktmp.base.IBaseRepo
import rubylich.ktmp.base.IBaseParser
import rubylich.ktmp.base.BaseRepo
const val REF_POSTS = "posts"
interface IPostBaseRepo : IBaseRepo<Post>
class PostsRepo : BaseRepo<Post>(REF_POSTS, PostParser()), IPostBaseRepo
expect class PostParser(... | 10 | C++ | 16 | 117 | a6654b5c81a122735e9339dd7897e4fbe4b1f4f2 | 341 | Kotlin-Multiplatform-Firebase | Apache License 2.0 |
jetpack-compose-state/src/main/java/com/mcmouse88/jetpack_compose_state/WelnessTaskItem.kt | mcmouse88 | 691,754,136 | false | {"Kotlin": 375483} | package com.mcmouse88.jetpack_compose_state
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Close
import androidx.compose.material3.Checkbox
import androidx.compose.material3.Icon
... | 1 | Kotlin | 0 | 0 | dda1af3bab551dbc297ef011381ffb26a1f0d827 | 1,373 | GoogleCodelabs | Apache License 2.0 |
app/src/main/kotlin/app/lawnchair/lawnicons/viewmodel/LawniconsViewModel.kt | RadekBledowski | 456,189,553 | true | {"Kotlin": 71864, "Python": 2750} | package app.lawnchair.lawnicons.viewmodel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import app.lawnchair.lawnicons.repository.IconRepository
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.launch
import javax.inject.Inject
@HiltViewModel
class LawniconsV... | 1 | Kotlin | 23 | 99 | 33822fdf0eb52c753dea55b4c9fa076240f70e70 | 592 | rkicons | Apache License 2.0 |
test/com/rti/charisma/api/repository/UserRepositoryImplTest.kt | rti-international-charisma | 343,861,997 | false | null | package com.rti.charisma.api.repository
import com.rti.charisma.api.db.CharismaDB
import com.rti.charisma.api.db.tables.SecurityQuestions
import com.rti.charisma.api.db.tables.Users
import com.rti.charisma.api.route.Signup
import org.jetbrains.exposed.sql.Database
import org.jetbrains.exposed.sql.SchemaUtils
import or... | 0 | Kotlin | 0 | 0 | 57ef1ab083fac87ef41b5536ce05149a9ab761ad | 4,937 | Application-Programming-Interface | Apache License 2.0 |
Client/app/src/main/kotlin/com/casualapps/mynotes/viewmodels/LoginViewModel.kt | AlexeyPerov | 339,179,591 | false | null | package com.casualapps.mynotes.viewmodels
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.casualapps.mynotes.data.entities.User
import com.casualapps.mynot... | 0 | Kotlin | 0 | 0 | aff68c327127994c8f3463c80928bf3fa3162ad7 | 1,801 | NotesCompose | MIT License |
app/src/main/java/com/fridaytech/dex/presentation/orders/CancelOrderConfirmDialog.kt | 5daytech | 198,758,400 | false | null | package com.fridaytech.dex.presentation.orders
import android.os.Bundle
import android.view.View
import androidx.fragment.app.FragmentManager
import com.fridaytech.dex.R
import com.fridaytech.dex.presentation.dialogs.BaseDialog
import com.fridaytech.dex.presentation.orders.model.CancelOrderInfo
import kotlinx.android.... | 0 | Kotlin | 13 | 21 | 50200c97a9a7a456b588cf132fdb901141efb1d1 | 1,396 | udex-app-android | MIT License |
sceneform-ux/src/main/java/com/google/ar/sceneform/ux/PinchGestureRecognizer.kt | niusounds | 297,096,580 | true | {"Java": 820938, "Kotlin": 140890} | /*
* Copyright 2018 Google LLC All Rights Reserved.
*
* 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 applica... | 0 | Java | 0 | 0 | 3ca962ff52b17719cd6dc4ee78f6063f1e741aa7 | 2,262 | sceneform-android-sdk | Apache License 2.0 |
app/src/main/java/com/example/mytasks/business/database/AppDataBase.kt | gustavohd18 | 251,103,944 | false | null | package com.example.mytasks.business.database
import androidx.room.Database
import androidx.room.RoomDatabase
import com.example.mytasks.business.database.login.User
import com.example.mytasks.business.database.login.UserDao
import com.example.mytasks.business.database.task.Task
import com.example.mytasks.business.dat... | 5 | Kotlin | 0 | 0 | 4386fe693002b535b084d0770e90777daeb4b01c | 522 | Mytasks | MIT License |
app/src/main/java/com/rgbstudios/alte/ui/fragments/SplashFragment.kt | cooncudee | 732,994,014 | false | {"Kotlin": 94164} | package com.rgbstudios.alte.ui.fragments
import android.content.Context
import android.net.ConnectivityManager
import android.net.NetworkCapabilities
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.... | 0 | Kotlin | 0 | 0 | 02c5db879e80eded469fe382e0cf8e626133d486 | 3,496 | Alte | MIT License |
src/jvmTest/kotlin/PrettifierManagerTest.kt | sunny-chung | 711,387,879 | false | {"Kotlin": 686480} | import com.sunnychung.application.multiplatform.hellohttp.manager.PrettifierManager
import kotlin.test.Test
class PrettifierManagerTest {
val instance = PrettifierManager()
@Test
fun hasJsonPrettifier() {
assert(instance.matchPrettifiers("application/json").isNotEmpty())
assert(instance.ma... | 0 | Kotlin | 0 | 0 | e4ccb580ead7559001fc048a8d71caa437cd7775 | 392 | hello-http | Apache License 2.0 |
src/commonTest/kotlin/suite/Extensions.kt | pallavirawat | 222,564,952 | true | {"Kotlin": 941656, "Ruby": 4462} | package suite
import DateFormat
import clientAnalytics
import com.algolia.search.client.ClientSearch
import com.algolia.search.helper.toIndexName
import com.algolia.search.model.IndexName
import com.algolia.search.model.Time
import com.algolia.search.model.analytics.Variant
import com.algolia.search.model.response.Res... | 0 | Kotlin | 0 | 0 | ffbc7a8b16f9544df2e02cca5206420724f7d3c5 | 2,142 | algoliasearch-client-kotlin | MIT License |
src/backend/ci/ext/tencent/experience/api-experience-tencent/src/main/kotlin/com/tencent/devops/experience/pojo/ExperienceInfoForBuild.kt | terlinhe | 281,661,499 | true | {"Kotlin": 45598476, "Vue": 6397657, "Java": 5707849, "Go": 3274290, "JavaScript": 1968867, "Lua": 856156, "HTML": 649832, "Dart": 551043, "TypeScript": 411134, "SCSS": 405673, "Shell": 403216, "C++": 149772, "CSS": 95042, "Python": 79300, "Mustache": 65146, "Smarty": 46819, "C": 33502, "Less": 24714, "Dockerfile": 229... | package com.tencent.devops.experience.pojo
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
@ApiModel("版本体验-体验信息-根据构建")
data class ExperienceInfoForBuild(
@ApiModelProperty("体验名称", required = true)
val experienceName: String,
@ApiModelProperty("版本标题", required = true)
... | 0 | Kotlin | 0 | 0 | dccbcb9f44260f80ebfa1c2dad0c401222f7f93c | 576 | bk-ci | MIT License |
BlogMVVM/app/src/main/java/com/juanma/blogmvvm/domain/use_cases/users/GetUserById.kt | JmanuelJ | 604,375,672 | false | {"Kotlin": 147282} | package com.juanma.blogmvvm.domain.use_cases.users
import com.juanma.blogmvvm.domain.repository.UsersRepository
import javax.inject.Inject
class GetUserById @Inject constructor(private val repository: UsersRepository){
operator fun invoke(id: String) = repository.getUserById(id)
} | 0 | Kotlin | 0 | 1 | 6504b78b62abcf317cef58211edee9f0c15ff9af | 287 | Blog_Example | Academic Free License v1.1 |
app/src/main/kotlin/com/intelligentbackpack/app/view/UserDetails.kt | IntelligentBackpack | 629,745,884 | false | null | package com.intelligentbackpack.app.view
import androidx.compose.foundation.BorderStroke
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.compose... | 0 | Kotlin | 0 | 0 | 61bfdc8c21801a14d67c62b69a07a0fb341aab6d | 6,839 | IntelligentBackpackApp | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.