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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
tourtip/src/main/java/com/fappslab/tourtip/compose/TourtipLayout.kt | F4bioo | 815,756,472 | false | {"Kotlin": 94125, "Python": 2381} | /*
* Copyright 2024 <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 | 8 | eabe396352ab9dafcae8e035d38809418cd31645 | 3,779 | Tourtip | Apache License 2.0 |
app/src/main/java/hu/mostoha/mobile/android/huki/extensions/PermissionExtensions.kt | RolandMostoha | 386,949,428 | false | null | package hu.mostoha.mobile.android.huki.extensions
import android.Manifest
import android.app.Activity
import android.content.Context
import android.content.pm.PackageManager
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
val locationPermissions = arrayOf(Manifest.permission.ACCESS_... | 0 | null | 1 | 9 | 92587e6dcc68d89b5ffb2afd8cdd3c0cc47fb7d4 | 1,221 | HuKi-Android | The Unlicense |
src/com/wxx/design/design_04_factory/abstract/Client.kt | wuxinxi | 192,182,654 | false | null | package com.wxx.design.design_04_factory.abstract
/**
* @author :DELL on 2021/5/12 .
* @packages :com.wxx.design.design_04_factory.abstract .
* TODO:
*/
fun main() {
val miFactory = MiFactory()
val miPhoneProduct = miFactory.phoneProduct()
val miRouterProduct = miFactory.routerProduct()
miPhoneProd... | 1 | null | 1 | 1 | 1fef75f988f384fb5f9ace7087ccca3b00d587fb | 702 | DesignPatternsDemo | MIT License |
src/test/java/org/jackJew/biz/engine/test/JsEngineTest.kt | runjia1987 | 102,723,162 | false | null | package org.jackJew.biz.engine.test
import org.jackJew.biz.engine.JsEngine
import org.jackJew.biz.engine.JsEngineNashorn
import org.jackJew.biz.engine.JsEngineRhino
import org.jackJew.biz.engine.util.IOUtils
import org.junit.Test
import com.google.gson.JsonObject
/**
* when MAX is below 50, Rhino is better than Nas... | 0 | Kotlin | 0 | 0 | 1256a8bb6d9f11b7157e73cae5f39d7b01aeb1d6 | 2,095 | crawler-client-kt | Apache License 2.0 |
WeChat/src/main/java/io/github/devzwy/socialhelper/wechat/WeChatSocialEntryActivity.kt | devzwy | 493,205,062 | false | {"Kotlin": 69289, "Java": 10050} | package io.github.devzwy.socialhelper.wechat
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import com.tencent.mm.opensdk.modelbase.BaseReq
import com.tencent.mm.opensdk.modelbase.BaseResp
import com.tencent.mm.opensdk.modelmsg.SendAuth
import com.tencent.mm.opensdk.openapi.IWXAPIEv... | 0 | Kotlin | 0 | 12 | ef9417e624c5c41ed8dae86c25c4f1dbee12075a | 5,755 | SocialHelper | Apache License 2.0 |
frontend/shared/ui/src/commonMain/kotlin/com/ams/groundwater/main/MainScreenArrangementColumn.kt | meikefeliciah | 710,363,969 | false | {"Kotlin": 28346, "Swift": 652, "Dockerfile": 527, "Shell": 228} | package com.ams.groundwater.main
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.animateContentSize
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.animation.slideInVertically
import androidx.compose.animation.slideOutVer... | 0 | Kotlin | 0 | 0 | 8d350e1104aa5e2c354f0a8f45592d5df79d438d | 1,501 | groundwater | Apache License 2.0 |
src/main/kotlin/flow/AwaitableMutableFlow.kt | giacomoaccursi | 717,007,118 | false | {"Kotlin": 47272, "JavaScript": 1187, "Dockerfile": 103} | /*
* Copyright (c) 2024. <NAME>
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
package flow
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.wi... | 1 | Kotlin | 0 | 1 | cdf79d9e75e3acb08290cb1e504b7867e0968289 | 1,168 | Reactive-DES | MIT License |
fluentui_calendar/src/main/java/com/microsoft/fluentui/view/Scroller.kt | Anthonysidesapp | 454,785,341 | true | {"Kotlin": 884615} | /*
* Copyright (C) 2006 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 | Kotlin | 68 | 9 | 61cbb5799bba74342b342cd98680286a96f27f70 | 19,665 | fluentui-android | MIT License |
kotest-core/src/commonMain/kotlin/io/kotest/core/specs/AbstractFeatureSpec.kt | junron | 214,570,871 | false | null | package io.kotest.core.specs
import io.kotest.Tag
import io.kotest.TestType
import io.kotest.core.TestCaseConfig
import io.kotest.core.TestContext
import io.kotest.extensions.TestCaseExtension
import kotlin.time.Duration
import kotlin.time.ExperimentalTime
abstract class AbstractFeatureSpec(body: AbstractFeatureSpec.... | 1 | null | 1 | 1 | 3a00e967d50a43e6200060f7c3df44c730d02610 | 2,377 | kotlintest | Apache License 2.0 |
hmpps-prisoner-search-indexer/src/main/kotlin/uk/gov/justice/digital/hmpps/prisonersearch/indexer/health/OpenSearchHealthIndicator.kt | ministryofjustice | 636,804,116 | false | null | package uk.gov.justice.digital.hmpps.prisonersearch.indexer.health
import org.springframework.boot.actuate.health.AbstractHealthIndicator
import org.springframework.boot.actuate.health.Health
import org.springframework.boot.actuate.health.Status
import org.springframework.data.elasticsearch.core.ElasticsearchOperation... | 2 | null | 1 | 2 | 2ac87f7349d61e3d274bcb20b11be285c5a50700 | 2,119 | hmpps-prisoner-search | MIT License |
quickseq-plugin/src/test/kotlin/com/kiwi/quickseq/LogLineConversionTest.kt | jon-kroko | 552,961,469 | false | {"Kotlin": 104022, "Shell": 126} | /*
* Copyright (C) 2021 Kira Weinlein
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 0 | Kotlin | 0 | 0 | 7b9521a1842c9aca7b2d4ab0a4c0c351d46ec2d5 | 4,989 | quickseq | Apache License 2.0 |
app/src/main/java/com/edricchan/studybuddy/providers/fcm/StudyBuddyMessagingService.kt | EdricChan03 | 100,260,817 | false | {"Kotlin": 693890, "Ruby": 202} | package com.edricchan.studybuddy.providers.fcm
import android.app.PendingIntent
import android.content.Intent
import android.content.res.Resources
import android.graphics.Color
import android.graphics.drawable.BitmapDrawable
import android.os.Build
import android.util.Log
import androidx.core.app.NotificationCompat
im... | 8 | Kotlin | 8 | 9 | f3bd7d548380f727e8bffc6c0608b0a8e1dd17bd | 8,628 | studybuddy-android | MIT License |
app/src/main/java/gr/pchasapis/moviedb/mvvm/interactor/home/HomeInteractorImpl.kt | pandelisgreen13 | 210,415,019 | false | null | package br.ifsp.moviedb.mvvm.interactor.home
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.PagingData
import br.ifsp.moviedb.common.Definitions
import br.ifsp.moviedb.database.MovieDbDatabase
import br.ifsp.moviedb.model.common.DataResult
import br.ifsp.moviedb.model.data.Home... | 0 | null | 0 | 5 | 8f247cd825f5e1e68f135e206dea3c2ddd6a6a30 | 3,817 | movieDB | MIT License |
src/main/kotlin/de/tweerlei/plumber/pipeline/steps/text/UuidStep.kt | tweerlei | 450,150,451 | false | null | /*
* Copyright 2022 tweerlei Wruck + Buchmeier GbR - http://www.tweerlei.de/
*
* 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
*
* Unl... | 0 | Kotlin | 0 | 2 | fe9dc936f9e76faead5f2a7e6ff5c027e1152615 | 1,736 | plumber | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsalertsapi/common/LocalDateExtTest.kt | ministryofjustice | 750,461,021 | false | {"Kotlin": 272432, "Shell": 1799, "Mermaid": 1398, "Dockerfile": 1372} | package uk.gov.justice.digital.hmpps.hmppsalertsapi.common
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.Test
import java.time.LocalDate
class LocalDateExtTest {
@Nested
@DisplayName("onOrBefore")
inne... | 1 | Kotlin | 0 | 0 | e2fc6e4788371ca2c59da5126d7f4a92cb9089d5 | 1,496 | hmpps-alerts-api | MIT License |
fountain-testutils/src/main/java/com/xmartlabs/fountain/testutils/IntCacheDataSourceFactory.kt | xmartlabs | 135,512,692 | false | null | package com.xmartlabs.fountain.testutils
import android.arch.paging.DataSource
import android.arch.paging.ItemKeyedDataSource
internal class IntCacheDataSourceFactory : DataSource.Factory<Int, Int>() {
private val items: MutableList<Int> = ArrayList()
private lateinit var dataSource: MockIntDataSource
private ... | 0 | Kotlin | 8 | 174 | 3dfc4240eb0d2b12223b85f7f6c504e5a04558cc | 2,559 | fountain | MIT License |
library-base/src/main/java/com/vicpin/krealmextensions/RealmExtensions.kt | vicpinm | 77,839,704 | false | null | @file:Suppress("unused")
package com.existing.boilerx.realm
import io.realm.*
import java.lang.reflect.Field
typealias Query<T> = RealmQuery<T>.() -> Unit
/**
* Created by victor on 2/1/17.
* Extensions for Realm. All methods here are synchronous.
*/
/**
* Query to the database with RealmQuery instance as argu... | 17 | null | 54 | 534 | b313cbbbc72b65008d38f7f1044ad25b45ca6a43 | 16,127 | Kotlin-Realm-Extensions | Apache License 2.0 |
cams-module-mine/src/main/java/com/linwei/cams/module/mine/MainActivity.kt | WeiShuaiDev | 390,640,743 | false | null | package com.linwei.cams.module.mine
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
}
} | 0 | Kotlin | 0 | 0 | 43a8a8327abb1ae2d3fd9881906bc59e32fc7b7f | 261 | CamsModular | Apache License 2.0 |
libs/serialization/serialization-amqp/src/test/kotlin/net/corda/internal/serialization/amqp/EnumTests.kt | corda | 346,070,752 | false | {"Kotlin": 20585393, "Java": 308202, "Smarty": 115357, "Shell": 54409, "Groovy": 30246, "PowerShell": 6470, "TypeScript": 5826, "Solidity": 2024, "Batchfile": 244} | package net.corda.internal.serialization.amqp
import net.corda.internal.serialization.amqp.helper.testSerializationContext
import net.corda.internal.serialization.amqp.testutils.TestSerializationOutput
import net.corda.internal.serialization.amqp.testutils.deserialize
import net.corda.internal.serialization.amqp.testu... | 82 | Kotlin | 7 | 69 | 0766222eb6284c01ba321633e12b70f1a93ca04e | 9,322 | corda-runtime-os | Apache License 2.0 |
automation/test/TestNoop.kt | exertionriver | 589,248,613 | false | null | import org.junit.jupiter.api.Test
import river.exertion.kcop.automation.btree.AutoUserBehaviorHandler
import river.exertion.kcop.automation.btree.behavior.NoopBehavior
class TestNoop {
@Test
fun testNoopRun() {
AutoUserBehaviorHandler.behaviorSequenceList.add(NoopBehavior(1))
AutoUserB... | 0 | Kotlin | 0 | 1 | d31e37bd786a4091c24fae3eaa0b627c7969747c | 525 | kcop | MIT License |
automation/test/TestNoop.kt | exertionriver | 589,248,613 | false | null | import org.junit.jupiter.api.Test
import river.exertion.kcop.automation.btree.AutoUserBehaviorHandler
import river.exertion.kcop.automation.btree.behavior.NoopBehavior
class TestNoop {
@Test
fun testNoopRun() {
AutoUserBehaviorHandler.behaviorSequenceList.add(NoopBehavior(1))
AutoUserB... | 0 | Kotlin | 0 | 1 | d31e37bd786a4091c24fae3eaa0b627c7969747c | 525 | kcop | MIT License |
api/tmdb/src/main/java/app/tivi/tmdb/TmdbImageUrlProvider.kt | thesandipv | 255,834,235 | false | null | /*
* Copyright 2017 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 8 | null | 792 | 6 | e3e06960df9fa535b1a04373e7bd59ea442d9c9b | 2,337 | watchdone | Apache License 2.0 |
tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/requests/bot/GetMyShortDescription.kt | InsanusMokrassar | 163,152,024 | false | {"Kotlin": 2489785, "Shell": 373} | package dev.inmo.tgbotapi.requests.bot
import dev.inmo.micro_utils.language_codes.IetfLanguageCode
import dev.inmo.micro_utils.language_codes.IetfLanguageCodeSerializer
import dev.inmo.tgbotapi.requests.abstracts.SimpleRequest
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.abstracts.WithOptionalLangua... | 10 | Kotlin | 22 | 294 | a6c90b3df5a9d9fde0bbb2db306d5b2f48ba7304 | 991 | ktgbotapi | Apache License 2.0 |
workflow-runtime/src/jsMain/kotlin/com.squareup.workflow1.internal/SystemUtils.kt | square | 268,864,554 | false | null | package com.squareup.workflow1.internal
import kotlin.js.Date
actual fun currentTimeMillis(): Long = Date.now().toLong()
| 173 | null | 99 | 995 | daf192e24d7b47943caf534e62e4b70d08028100 | 123 | workflow-kotlin | Apache License 2.0 |
app/src/main/kotlin/io/github/erikjhordanrey/arch_components_paging_library/view/decorator/MarginDecoration.kt | erikjhordan-rey | 133,196,502 | false | null | package io.github.erikjhordanrey.arch_components_paging_library.view.decorator
import android.content.Context
import android.graphics.Rect
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import io.github.erikjhordanrey.arch_components_paging_library.R
class MarginDecoration(context: Context)... | 1 | null | 16 | 92 | f919f607ef60dd4475712545d227f9391e1846af | 618 | Movies-PagingLibrary-Arch-Components | Apache License 2.0 |
sample/src/main/java/com/androidchekhov/pagingrecyclerview/repository/CommentsRepository.kt | AndroidChekhov | 162,025,190 | false | null | package com.androidchekhov.pagingrecyclerview.repository
interface CommentsRepository {
suspend fun getComments(page: Int) : List<Comment>
} | 0 | Kotlin | 0 | 0 | b56e1b0fe92c143e27a75f9a00ef82b81e741270 | 145 | paging-indicator-list | Apache License 2.0 |
korim/src/commonMain/kotlin/com/soywiz/korim/vector/format/SVG.kt | dmitrykolesnikovich | 419,672,302 | true | {"Kotlin": 793601, "C": 13764, "Shell": 1701, "Batchfile": 1531} | package com.soywiz.korim.vector.format
import com.soywiz.kds.*
import com.soywiz.korim.color.Colors
import com.soywiz.korim.color.RGBA
import com.soywiz.korim.paint.*
import com.soywiz.korim.text.*
import com.soywiz.korim.vector.*
import com.soywiz.korio.lang.invalidOp
import com.soywiz.korio.lang.printStackTrace
impo... | 0 | null | 0 | 1 | d05eff45d0cb156336cf8dd9557731a3ec9243cb | 29,932 | korim | Apache License 2.0 |
core/src/commonMain/kotlin/work/socialhub/kslack/api/methods/response/admin/teams/AdminTeamsCreateResponse.kt | uakihir0 | 794,979,552 | false | {"Kotlin": 868677, "Ruby": 2164, "Shell": 2095, "Makefile": 316} | package work.socialhub.kslack.api.methods.response.admin.teams
import kotlinx.serialization.Serializable
import work.socialhub.kslack.api.methods.SlackApiResponse
@Serializable
class AdminTeamsCreateResponse : SlackApiResponse() {
var team: String? = null // created team id
var responseMetadata: ResponseMeta... | 5 | Kotlin | 0 | 0 | 3975e9de4fae5ef2ddc5b013c2a346536852f7b3 | 432 | kslack | MIT License |
src/main/kotlin/de/lostmekka/raymarcher/Shape.kt | LostMekka | 166,667,888 | false | null | package de.lostmekka.raymarcher
import kotlin.math.abs
import kotlin.math.max
typealias SpatialTransformation = (Point) -> Point
data class EstimatedDistance(val distance: Double, val shape: Shape)
abstract class Geometry {
protected abstract fun estimateDistanceLocally(localPoint: Point, distanceScaling: Doubl... | 0 | Kotlin | 0 | 0 | ee4232112b2341901a32fa8378687cae3aab0c8d | 3,357 | ray-marcher-kt | MIT License |
app/src/main/java/com/example/pocketplaner/comps/DashBoard.kt | TEHAQUE | 773,157,128 | false | {"Kotlin": 31566} | package com.example.pocketplaner.comps
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layo... | 0 | Kotlin | 0 | 0 | cab1970d06249c97bd9d79272a878cc71eb986ef | 8,084 | PocketPlanner | MIT License |
app/src/main/java/ch/abwesend/privatecontacts/domain/model/contact/InvalidContactIdException.kt | fgubler | 462,182,037 | false | {"Kotlin": 1163443, "Java": 369326} | /*
* Private Contacts
* Copyright (c) 2022.
* <NAME>
*/
package ch.abwesend.privatecontacts.domain.model.contact
import kotlin.reflect.KClass
class InvalidContactIdException(
requiredType: KClass<out ContactId>,
actualType: KClass<out ContactId>
) : IllegalArgumentException(
"Invalid contact-ID: is o... | 0 | Kotlin | 1 | 9 | 49b98707f8cd250f7f15279c4b9e61fef41f1fb1 | 748 | PrivateContacts | Apache License 2.0 |
presentation/src/main/java/com/desarrollodroide/pagekeeper/ui/components/CategoriesView.kt | DesarrolloAntonio | 585,604,683 | false | {"Kotlin": 382374} | package com.desarrollodroide.pagekeeper.ui.components
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ExperimentalLayoutApi
import androidx.compose.foundation.layout.FlowRow
import androidx.compose.foundation.layout.padding... | 20 | Kotlin | 3 | 94 | e2309af37b6c0a8036868afb1df0d45f5c080558 | 4,879 | Shiori-Android-Client | Apache License 2.0 |
api/src/commonMain/kotlin/krono/PureDateTimeFormatter.kt | picortex | 544,285,520 | false | null | @file:JsExport
package krono
import kotlinx.JsExport
/**
* A class to format date
* ```
* token: description: example:
* {YYYY} 4-digit year 1999
* {YY} 2-digit year 99
* {MMMM} full month name February
* {MMM} 3-letter month name Feb
*... | 0 | null | 0 | 1 | a0a970a6c3dc21dba46701b41a38ee91f0c3f814 | 1,222 | krono | MIT License |
app/src/main/java/com/Alkemy/alkemybankbase/presentation/LoginViewModel.kt | MicaMathieu | 566,627,293 | false | null | package com.Alkemy.alkemybankbase.presentation
import android.content.Context
import androidx.core.util.PatternsCompat
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.Alkemy.alkemybankbase.R
import com.Alkemy.alkemybankbase.data.local.Ac... | 0 | Kotlin | 0 | 0 | 30b3919f294626a2687d612fa2866d1e3e49c92e | 4,758 | AlkeBankBase | MIT License |
src/main/kotlin/com/kb714/i18nrailstextextractor/PluginConfiguration.kt | kb714 | 767,507,822 | false | {"Kotlin": 38946} | package com.kb714.i18nrailstextextractor
import com.google.gson.Gson
import com.intellij.ide.util.PropertiesComponent
import com.intellij.openapi.fileChooser.FileChooser
import com.intellij.openapi.fileChooser.FileChooserDescriptor
import com.intellij.openapi.options.Configurable
import com.intellij.openapi.vfs.LocalF... | 0 | Kotlin | 0 | 0 | af0362715692944bed00e9f6388ab6abcbc176d0 | 6,266 | intellij-i18n-rails-text-extractor | MIT License |
feature/addplace/src/main/java/se/gustavkarlsson/skylight/android/feature/addplace/AddPlaceKnot.kt | wowselim | 288,922,417 | true | {"Kotlin": 316543} | package se.gustavkarlsson.skylight.android.feature.addplace
import com.ioki.textref.TextRef
import de.halfbit.knot.Knot
import de.halfbit.knot.knot
import io.reactivex.Observable
import io.reactivex.Scheduler
import io.reactivex.functions.Consumer
import org.threeten.bp.Duration
import se.gustavkarlsson.skylight.andro... | 0 | null | 0 | 0 | 4da1731aca92d4e6d4b0e8128ca504fc0b3820b9 | 4,256 | skylight-android | MIT License |
src/main/kotlin/dto/Trigger.kt | novuhq | 609,113,780 | false | null | package co.novu.dto
import com.google.gson.annotations.SerializedName
data class Trigger(
val type: String? = null,
@SerializedName("_id")
val id: String? = null,
val identifier: String? = null,
val variables: List<Variables>? = null,
val subscriberVariables: List<Variables>? = null,
val r... | 7 | null | 8 | 20 | 80969d7b96cf8009219bb9891eba5e3a4e2b84c1 | 364 | novu-kotlin | MIT License |
app/src/main/java/com/appat/graphicov/utilities/sharedpreferences/SharedPrefUtility.kt | rishadappat | 338,528,633 | false | null | package com.appat.graphicov.utilities.sharedpreferences
import android.content.Context
import android.content.SharedPreferences
import androidx.lifecycle.LiveData
import androidx.preference.PreferenceManager
import com.appat.graphicov.utilities.Utility
object SharedPrefUtility {
private fun getAppPreferences(): ... | 0 | Kotlin | 0 | 5 | 51c1c81454549509f696b71e769f2966be0cfb4a | 1,159 | Graphicov | Apache License 2.0 |
src/main/kotlin/no/nav/klage/oppgave/api/filter/TimingFilter.kt | navikt | 297,650,936 | false | null | package no.nav.klage.oppgave.api.filter
import no.nav.klage.oppgave.util.getLogger
import org.springframework.stereotype.Component
import java.io.IOException
import java.time.Duration
import java.time.Instant
import javax.servlet.*
import javax.servlet.annotation.WebFilter
import javax.servlet.http.HttpServletRequest
... | 2 | Kotlin | 1 | 1 | 7255f8d9a5b0c23e4a22b5bd736d3b656790dfb7 | 1,122 | kabal-api | MIT License |
app/src/main/java/com/concordium/wallet/ui/bakerdelegation/common/BaseDelegationBakerRegisterAmountActivity.kt | Concordium | 358,250,608 | false | null | package com.concordium.wallet.ui.bakerdelegation.common
import android.widget.TextView
import com.concordium.wallet.R
import com.concordium.wallet.data.util.CurrencyUtil
import com.concordium.wallet.uicore.view.AmountEditText
import com.concordium.wallet.uicore.view.SegmentedControlView
import java.math.BigDecimal
imp... | 9 | null | 3 | 9 | 5a273dbcac459e6c2a94b2b9a241eccfcb229cb9 | 3,988 | concordium-reference-wallet-android | Apache License 2.0 |
core/src/main/kotlin/finance/tegro/core/entity/Reserve.kt | TegroTON | 586,902,794 | false | {"Kotlin": 227007} | package finance.tegro.core.entity
import finance.tegro.core.converter.MsgAddressConverter
import org.ton.block.MsgAddress
import java.math.BigInteger
import java.time.Instant
import java.util.*
import javax.persistence.*
@Entity(name = "reserve")
@Table(name = "reserves")
open class Reserve(
@Convert(converter = ... | 17 | Kotlin | 4 | 0 | f15616ec84716f9ecab118b855a8d5aaf5c2a9be | 1,172 | API-DEX-TON-Blockchain | MIT License |
common/src/main/java/com/kernel/finch/components/Divider.kt | kernel0x | 197,173,098 | false | null | package com.kernel.finch.components
import com.kernel.finch.common.contracts.component.Component
data class Divider(
override val id: String = Component.randomId
) : Component<Divider>
| 2 | null | 9 | 46 | 4f098309de71b690af5e2a7503444ad1959bf004 | 191 | finch | Apache License 2.0 |
commons/src/commonMain/kotlin/jetbrains/datalore/base/observable/property/DerivedProperty.kt | JetBrains | 176,771,727 | false | null | /*
* Copyright (c) 2019. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package jetbrains.datalore.base.observable.property
import jetbrains.datalore.base.observable.event.EventHandler
import jetbrains.datalore.base.observable.event.EventSource
i... | 98 | Kotlin | 47 | 889 | c5c66ceddc839bec79b041c06677a6ad5f54e416 | 1,286 | lets-plot | MIT License |
relive-simulator-core/src/commonMain/kotlin/xyz/qwewqa/relive/simulator/core/stage/buff/Buffs.kt | qwewqa | 390,928,568 | false | null | package xyz.qwewqa.relive.simulator.core.stage.buff
import xyz.qwewqa.relive.simulator.core.i54.I54
import xyz.qwewqa.relive.simulator.core.i54.i54
import xyz.qwewqa.relive.simulator.core.stage.ImplementationRegistry
import xyz.qwewqa.relive.simulator.core.stage.actor.Actor
import xyz.qwewqa.relive.simulator.core.stag... | 2 | Kotlin | 11 | 7 | e32dab696f56ead176e35fca40add33ad1e7f742 | 62,993 | relight | MIT License |
src/main/kotlin/pl/szymeker/csvwarehouse/query/AggregationValue.kt | szymeker | 418,118,807 | false | null | package pl.szymeker.csvwarehouse.query
import pl.szymeker.csvwarehouse.dimension.MetricDimension
data class AggregationValue(val metrics: MutableMap<MetricDimension, Number>) {
fun merge(metricDimension: MetricDimension, value: String?) {
metrics.merge(metricDimension, metricDimension.value(value)) { n1,... | 0 | Kotlin | 0 | 0 | 4eb07020d2c21ed0ee9bb73e038115c4a14bd0f5 | 367 | csv-warehouse-poc | Apache License 2.0 |
compiler/testData/codegen/box/ieee754/when.kt | AlexeyTsvetkov | 17,321,988 | true | {"Java": 22837096, "Kotlin": 18913890, "JavaScript": 180163, "HTML": 47571, "Protocol Buffer": 46162, "Lex": 18051, "Groovy": 13300, "ANTLR": 9729, "CSS": 9358, "IDL": 6426, "Shell": 4704, "Batchfile": 3703} | fun box(): String {
val plusZero: Any = 0.0
val minusZero: Any = -0.0
if (plusZero is Double) {
when (plusZero) {
-0.0 -> {
}
else -> return "fail 1"
}
if (minusZero is Double) {
when (plusZero) {
minusZero -> {
... | 1 | Java | 0 | 2 | 72a84083fbe50d3d12226925b94ed0fe86c9d794 | 419 | kotlin | Apache License 2.0 |
app/src/main/java/dev/iwilltry42/timestrap/AppPreferences.kt | iwilltry42 | 276,853,576 | false | null | package dev.iwilltry42.timestrap
import android.content.Context
import android.content.SharedPreferences
object AppPreferences {
private const val NAME = "Timestrap"
private const val MODE = Context.MODE_PRIVATE
private lateinit var preferences: SharedPreferences
// Variables
private val IS_LOGGE... | 0 | Kotlin | 0 | 0 | 3b6b353c59cbb288949e2d8cd6dbfd979dcbc9db | 1,642 | timestrap-android | MIT License |
backend/src/main/kotlin/ntnu/idatt2105/reservation/controller/ReservationControllerImpl.kt | olros | 366,615,349 | false | null | package ntnu.idatt2105.reservation.controller
import com.querydsl.core.types.Predicate
import ntnu.idatt2105.core.response.Response
import ntnu.idatt2105.reservation.dto.ReservationCreateDto
import ntnu.idatt2105.reservation.dto.ReservationDto
import ntnu.idatt2105.reservation.service.ReservationService
import org.spr... | 0 | Kotlin | 3 | 2 | a2fa5bbca5a9db67f12733301b952807d66e673f | 1,521 | Rombestilling | MIT License |
android/modules/module_common/src/main/java/github/tornaco/android/thanos/module/compose/common/widget/Spacers.kt | Tornaco | 228,014,878 | false | null | /*
* (C) Copyright 2022 Thanox
*
* 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 ... | 392 | null | 87 | 2,145 | b8b756152e609c96fd07f1f282b77582d8cde647 | 1,106 | Thanox | Apache License 2.0 |
core/core/src/jsMain/kotlin/zakadabar/core/browser/table/columns/ZkBooleanColumnV2.kt | spxbhuhb | 290,390,793 | false | null | /*
* Copyright © 2020-2021, <NAME> and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package zakadabar.core.browser.table.columns
import zakadabar.core.browser.ZkElement
import zakadabar.core.browser.table.ZkTable
import zakadabar.core.data.BaseBo
import zakadabar.core.resource.ZkIc... | 7 | null | 3 | 24 | 00859b62570bf455addc9723015ba2c48b77028b | 1,075 | zakadabar-stack | Apache License 2.0 |
komapper-dialect-mariadb-jdbc/src/main/kotlin/org/komapper/dialect/mariadb/jdbc/MariaDbJdbcDialect.kt | komapper | 349,909,214 | false | null | package org.komapper.dialect.mariadb.jdbc
import org.komapper.dialect.mariadb.MariaDbDialect
import org.komapper.jdbc.JdbcDialect
import java.sql.SQLException
interface MariaDbJdbcDialect : MariaDbDialect, JdbcDialect {
override fun isUniqueConstraintViolationError(exception: SQLException): Boolean {
retu... | 7 | null | 4 | 97 | 851b313c66645d60f2e86934a5036efbe435396a | 617 | komapper | Apache License 2.0 |
app/src/main/java/me/ekhaled1836/tp/reddit/ui/comments/CommentsViewHolder.kt | ekhaled1836 | 178,427,940 | false | null | package me.ekhaled1836.tp.reddit.ui.comments
import android.os.Build
import android.text.Html
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.widget.AppCompatImageButton
import androidx.appcompat.widget.AppCompatImageView
import androidx.appcompat.wid... | 1 | null | 1 | 1 | 33ba25396f8c1a16d3a6731bc7115dc80568cc8e | 4,579 | RedditBrowser | MIT License |
app/src/main/java/com/cxk/nwuhelper/ui/nwunet/NwunetViewModelFactory.kt | lionche | 346,945,672 | false | null | package com.cxk.nwuhelper.ui.nwunet
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.cxk.nwuhelper.ui.wenet.model.NetSpBean
class NwunetViewModelFactory(private val netSpBean: NetSpBean) :ViewModelProvider.Factory{
// override fun <T : ViewModel?> create(modelClass: Class<... | 0 | Kotlin | 0 | 0 | 070bb4120c895644525e7c70e5c235552196ab99 | 508 | NWU_Helper | The Unlicense |
app/src/main/java/com/cxk/nwuhelper/ui/nwunet/NwunetViewModelFactory.kt | lionche | 346,945,672 | false | null | package com.cxk.nwuhelper.ui.nwunet
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.cxk.nwuhelper.ui.wenet.model.NetSpBean
class NwunetViewModelFactory(private val netSpBean: NetSpBean) :ViewModelProvider.Factory{
// override fun <T : ViewModel?> create(modelClass: Class<... | 0 | Kotlin | 0 | 0 | 070bb4120c895644525e7c70e5c235552196ab99 | 508 | NWU_Helper | The Unlicense |
app/src/test/java/com/braffdev/steganofy/service/PayloadServiceTest.kt | mstaudt | 319,281,666 | false | null | package com.braffdev.steganofy.service
import com.braffdev.steganofy.lib.domain.FilePayload
import com.braffdev.steganofy.lib.domain.PlainTextPayload
import com.nhaarman.mockitokotlin2.any
import com.nhaarman.mockitokotlin2.mock
import org.assertj.core.api.Assertions.assertThat
import org.junit.Test
import org.junit.r... | 1 | Kotlin | 0 | 3 | 098dd590e27f5c5bd1c9bd52f44ce12769f6996d | 1,340 | Steganofy | Apache License 2.0 |
app/src/main/java/com/queentylion/gestra/data/tflite/TFLiteGesturePredictorImpl.kt | hackfest-Queentylion | 792,980,525 | false | {"Kotlin": 138525} | package com.queentylion.gestra.data.tflite
import android.content.Context
import android.os.SystemClock
import android.util.Log
import com.queentylion.gestra.domain.tflite.TFLiteGesturePredictor
import org.tensorflow.lite.DataType
import org.tensorflow.lite.Interpreter
import org.tensorflow.lite.nnapi.NnApiDelegate
im... | 0 | Kotlin | 0 | 0 | 1bce5eecdfe9bf25559674a54b0b2021e69f9294 | 5,205 | gestra-revamp | MIT License |
firebasecloudmessaging/app/src/main/java/com/simple/instagram/service/FirebaseMessagingService.kt | farhanroy | 326,154,185 | false | {"Kotlin": 128152} | package com.simple.instagram.service
import android.app.Notification
import android.app.NotificationManager
import android.content.Context
import android.util.Log
import com.google.firebase.firestore.ktx.firestore
import com.google.firebase.ktx.Firebase
import com.google.firebase.messaging.FirebaseMessagingService
imp... | 0 | Kotlin | 0 | 0 | eb267505f33c365f110392fc19303fc9c468a075 | 1,577 | android-self-research | MIT License |
firebasecloudmessaging/app/src/main/java/com/simple/instagram/service/FirebaseMessagingService.kt | farhanroy | 326,154,185 | false | {"Kotlin": 128152} | package com.simple.instagram.service
import android.app.Notification
import android.app.NotificationManager
import android.content.Context
import android.util.Log
import com.google.firebase.firestore.ktx.firestore
import com.google.firebase.ktx.Firebase
import com.google.firebase.messaging.FirebaseMessagingService
imp... | 0 | Kotlin | 0 | 0 | eb267505f33c365f110392fc19303fc9c468a075 | 1,577 | android-self-research | MIT License |
src/main/kotlin/com/api/todolistsystem/jwt/Jwt.kt | Matysys | 635,139,905 | false | null | package com.api.todolistsystem.jwt
import com.auth0.jwt.JWT
import com.auth0.jwt.JWTVerifier
import com.auth0.jwt.algorithms.Algorithm
import com.auth0.jwt.exceptions.JWTVerificationException
import com.auth0.jwt.interfaces.DecodedJWT
import java.util.*
class Jwt {
companion object {
// Chave secreta para... | 0 | Kotlin | 0 | 1 | 92afef6d5dcab5dc2defbc53f3057d9883c77acf | 1,360 | todolist-system-api-backend | MIT License |
core/generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api/indices.kt | Kotlin | 259,256,617 | false | {"Kotlin": 8227503, "Java": 17608, "JavaScript": 11483, "CSS": 3083, "HTML": 137, "Shell": 73} | package org.jetbrains.kotlinx.dataframe.api
import org.jetbrains.kotlinx.dataframe.AnyFrame
import org.jetbrains.kotlinx.dataframe.DataFrame
import org.jetbrains.kotlinx.dataframe.RowFilter
import org.jetbrains.kotlinx.dataframe.indices
// region DataFrame
public fun AnyFrame.indices(): IntRange = 0 until rowsCount(... | 235 | Kotlin | 60 | 833 | 54d00e69ae7c06ff254c6591242413eaf7894f01 | 470 | dataframe | Apache License 2.0 |
innsender/src/main/kotlin/no/nav/soknad/innsending/consumerapis/arena/ArenaConsumer.kt | navikt | 406,355,715 | false | {"Kotlin": 899830, "Dockerfile": 250} | package no.nav.soknad.innsending.consumerapis.arena
import no.nav.soknad.innsending.api.MaalgrupperApi
import no.nav.soknad.innsending.api.TilleggsstonaderApi
import no.nav.soknad.innsending.exceptions.BackendErrorException
import no.nav.soknad.innsending.model.Aktivitet
import no.nav.soknad.innsending.model.Aktivitet... | 8 | Kotlin | 0 | 1 | bfbec260e7dd6450ca842401b56557db9bad1040 | 3,438 | innsending-api | MIT License |
app/src/main/kotlin/dev/forcecodes/android/gitprofile/ui/BaseViewModel.kt | forceporquillo | 484,089,537 | false | {"Kotlin": 263716} | package dev.forcecodes.android.gitprofile.ui
import androidx.lifecycle.ViewModel
import dev.forcecodes.gitprofile.core.UiEvent
import dev.forcecodes.gitprofile.core.UiState
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coro... | 0 | Kotlin | 0 | 0 | 0f7efc84f35ed04b1f4c8f88176098963a8375e5 | 1,094 | github-profile-android | Apache License 2.0 |
library/src/main/java/com/getroadmap/r2rlib/models/Segment.kt | roadmaptravel | 63,339,774 | false | null | package com.getroadmap.r2rlib.models
import android.os.Parcel
import android.os.Parcelable
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
import java.util.ArrayList
/**
* https://www.rome2rio.com/documentation/search#Segment
*/
open class Segment() : Parcelable {
... | 1 | null | 1 | 5 | c3e320a0024a11cdcbeb56efdc05199cb680fa2a | 3,529 | Rome2RioAndroid | Apache License 2.0 |
src/main/kotlin/com/github/taideli/gitlabsupport/services/MyApplicationService.kt | taideli | 296,250,729 | false | null | package com.github.taideli.gitlabsupport.services
import com.github.taideli.gitlabsupport.MyBundle
class MyApplicationService {
init {
println(MyBundle.message("applicationService"))
}
}
| 0 | Kotlin | 0 | 0 | a513fa45a97308ffa54d5d7fd94b4ef04b78ba19 | 206 | gitlab-support | Apache License 2.0 |
sqldelight-gradle-plugin/src/test/custom-dialect/dialect/src/main/kotlin/foo/FooDialect.kt | sqldelight | 44,677,680 | false | null | package foo
import app.cash.sqldelight.dialect.api.DialectType
import app.cash.sqldelight.dialect.api.IntermediateType
import app.cash.sqldelight.dialect.api.SqlDelightDialect
import app.cash.sqldelight.dialect.api.TypeResolver
import app.cash.sqldelight.dialect.api.encapsulatingType
import app.cash.sqldelight.dialect... | 606 | null | 516 | 6,152 | f79bd8ae2cf991de6dccdb643376253402f665e1 | 2,060 | sqldelight | Apache License 2.0 |
common/src/test/kotlin/digital/wup/superheroapp/common/TestUseCaseScheduler.kt | wupdigital | 121,658,678 | false | {"Kotlin": 37766, "Swift": 23746, "Shell": 1290, "Java": 1141, "Objective-C": 1064, "Ruby": 619} | package digital.wup.superheroapp.common
/**
* @author <NAME>
*/
class TestUseCaseScheduler : UseCaseScheduler {
override fun execute(runnable: () -> Unit) {
runnable()
}
override fun <Rs> notifyResponse(success: (Rs) -> Unit, response: Rs) {
success(response)
}
override fun not... | 0 | Kotlin | 8 | 17 | bd4069fdbbbeba74d8925db5cbad4fd220cac113 | 373 | kotlin-native-superhero-app | Apache License 2.0 |
app/src/main/java/dev/kingbond/moveon/ui/packageandmovers/fragMov/cost/CoastPage.kt | Kingbond470 | 422,909,035 | false | {"Kotlin": 129863, "Java": 9137} | package dev.kingbond.moveon.ui.packageandmovers.fragMov.cost
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.TextView
import android.widget.Toast
import androidx.n... | 0 | Kotlin | 0 | 5 | b1f790c6cf43354857f1f98e217fe68bdb3e9e3a | 2,648 | Move-On | MIT License |
src/main/java/solar/blaz/gradle/play/tasks/CloseEditTask.kt | blazsolar | 22,805,931 | false | null | package solar.blaz.gradle.play.tasks
import org.gradle.api.logging.Logging
import javax.inject.Inject
open class CloseEditTask @Inject constructor(applicationId: String, artifactName: String) : PlayEditTask(applicationId, artifactName) {
override fun perform() {
// Commit changes for edit.
val ap... | 1 | Kotlin | 1 | 3 | aa2320ce57a9a567a0f76346e28d21c630889925 | 606 | gradle-play-publisher | MIT License |
common/src/jsMain/kotlin/AudioPlayer.kt | pilot51 | 10,723,709 | false | {"Kotlin": 123024, "HTML": 2235} | /*
* Copyright 2020-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 ... | 0 | Kotlin | 1 | 2 | 1b35cf64c360eaada6b6c126b9a8614a1ca2e5d4 | 2,085 | cometbusters | Apache License 2.0 |
app/src/main/java/com/frogobox/webview/ConfigApp.kt | frogobox | 240,291,693 | false | null | package com.frogobox.research.core
import androidx.appcompat.app.AppCompatActivity
/**
* Created by <NAME> on 24/10/22
* -----------------------------------------
* E-mail : <EMAIL>
* Github : github.com/amirisback
* -----------------------------------------
* Copyright (C) Frogobox ID / amirisback
* All r... | 1 | null | 2 | 10 | 8fef6b8a0e2d57423699d0656c64fa30f4f8d533 | 394 | kick-start-android-webview | Apache License 2.0 |
src/main/kotlin/dev/crashteam/uzumanalytics/service/SellerService.kt | crashteamdev | 647,366,680 | false | {"Kotlin": 414651, "Dockerfile": 714} | package dev.crashteam.uzumanalytics.service
import dev.crashteam.uzumanalytics.domain.mongo.SellerDetailDocument
import dev.crashteam.uzumanalytics.repository.mongo.SellerRepository
import org.springframework.stereotype.Service
import reactor.core.publisher.Flux
@Service
class SellerService(
private val sellerRep... | 4 | Kotlin | 0 | 0 | 445cff2d2f68a38343d1638d261ace2198e7b8a9 | 615 | uzum-analytics | Apache License 2.0 |
app/app/src/main/java/seven/drawalive/nodebase/NodeBaseAppConfigFile.kt | seejser | 234,864,335 | true | {"JavaScript": 170116, "HTML": 104071, "Kotlin": 55549, "CSS": 1380, "Shell": 338} | package seven.drawalive.nodebase
import java.util.HashMap
class NodeBaseAppConfigFile(config_text: String) {
private val config: HashMap<String, HashMap<String, String>>
private val defaultconfig: HashMap<String, String>
init {
config = HashMap()
defaultconfig = HashMap()
config[... | 0 | null | 0 | 1 | 667a2ca55afd172bc674d15749ca29512ba86509 | 1,674 | NodeBase | Apache License 2.0 |
src/main/kotlin/dev/turingcomplete/intellijdevelopertoolsplugin/_internal/tool/ui/converter/TextConverter.kt | marcelkliemannel | 605,260,384 | false | null | package dev.turingcomplete.intellijdevelopertoolsplugins._internal.tool.converter
import com.intellij.icons.AllIcons
import com.intellij.lang.Language
import com.intellij.openapi.Disposable
import com.intellij.openapi.observable.properties.AtomicProperty
import com.intellij.openapi.project.Project
import com.intellij.... | 7 | null | 7 | 97 | c86a3986d6811fd022fa6a869e9b18f4054a44c8 | 9,521 | intellij-developer-tools-plugin | Apache License 2.0 |
build-logic/publication/src/main/kotlin/com/avito/PublishAndroidLibraryPlugin.kt | avito-tech | 230,265,582 | false | {"Kotlin": 3573291, "Java": 67252, "Shell": 27675, "Dockerfile": 12799, "Makefile": 7970} | package com.avito
import com.android.build.gradle.LibraryExtension
import com.avito.android.publish.AndroidLibraryPublishExtension
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.publish.PublishingExtension
import org.gradle.api.publish.maven.MavenPublication
import org.gradle.api.task... | 10 | Kotlin | 48 | 393 | accdcfc1f34054978018e583702ac3b4c808b6ee | 3,252 | avito-android | MIT License |
build-logic/publication/src/main/kotlin/com/avito/PublishAndroidLibraryPlugin.kt | avito-tech | 230,265,582 | false | {"Kotlin": 3573291, "Java": 67252, "Shell": 27675, "Dockerfile": 12799, "Makefile": 7970} | package com.avito
import com.android.build.gradle.LibraryExtension
import com.avito.android.publish.AndroidLibraryPublishExtension
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.publish.PublishingExtension
import org.gradle.api.publish.maven.MavenPublication
import org.gradle.api.task... | 10 | Kotlin | 48 | 393 | accdcfc1f34054978018e583702ac3b4c808b6ee | 3,252 | avito-android | MIT License |
app/src/main/java/com/justwayward/reader/bean/support/DownloadQueue.kt | petma | 198,171,907 | true | {"Kotlin": 1560776, "Java": 34640, "JavaScript": 31488, "HTML": 5286, "CSS": 4040} | /**
* Copyright 2016 JustWayward Team
*
*
* 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... | 0 | Kotlin | 0 | 0 | d011466692aae7c583ab8a264f760f7ff7d17458 | 1,390 | BookReader-1 | Apache License 2.0 |
app/src/main/java/com/opnay/todo/Util.kt | opnay | 134,983,889 | false | {"Kotlin": 35041} | package com.opnay.todo
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.Drawable
import android.support.v4.content.ContextCompat
import android.support.v4.graphics.drawable.DrawableCompat
class Util {
companion object {
const val KEY_CATEGORY = "CATEGORY"
... | 0 | Kotlin | 0 | 1 | 5e09e5da2a6bc2e258ff2f008c488810d7aec443 | 887 | Todo | Apache License 2.0 |
projects/resettlement-passport-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/ProviderGenerator.kt | ministryofjustice | 500,855,647 | false | {"Kotlin": 4262046, "HTML": 70066, "D2": 42781, "Ruby": 25921, "Shell": 19356, "SCSS": 6370, "HCL": 2712, "Dockerfile": 2447, "JavaScript": 1372, "Python": 268} | package uk.gov.justice.digital.hmpps.data.generator
import uk.gov.justice.digital.hmpps.entity.*
object ProviderGenerator {
val DEFAULT_INSTITUTION = generateNomisInstitution(code = "LDN")
val INSTITUTION_NO_TEAM = generateNomisInstitution(code = "MDL")
val DEFAULT_AREA = generateProbationArea()
val ... | 3 | Kotlin | 0 | 2 | 3f85ef8108aa583819eeee66d9d436a760028962 | 1,760 | hmpps-probation-integration-services | MIT License |
ui/ui-foundation/src/main/kotlin/dev/teogor/ceres/ui/foundation/config/FeedbackConfig.kt | teogor | 555,090,893 | false | {"Kotlin": 1325679} | /*
* Copyright 2023 teogor (Teodor Grigor)
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 2 | Kotlin | 4 | 62 | d7381c48a88dd5f887fb41e0ad13475a47589e87 | 818 | ceres | Apache License 2.0 |
data/src/test/kotlin/com/vultisig/wallet/data/usecases/AesEncryptionTest.kt | vultisig | 789,965,982 | false | {"Kotlin": 1479669, "Ruby": 1713} | package com.vultisig.wallet.data.usecases
import io.ktor.util.decodeBase64Bytes
import org.junit.Assert.assertEquals
import org.junit.Test
import kotlin.test.assertFailsWith
class AesEncryptionTest {
private val aes = AesEncryption()
private val originalInput = "Original Input 123"
private val password ... | 31 | Kotlin | 2 | 6 | 9a24026e09bafb8667f90c8ec7e3e806697e8a08 | 1,206 | vultisig-android | Apache License 2.0 |
app/src/main/java/com/neokii/ntune/SshSession.kt | linu1983 | 290,173,226 | true | {"Kotlin": 25996, "Python": 7334, "Java": 5369} | package com.neokii.ntune
import android.os.Handler
import android.os.Looper
import com.jcraft.jsch.ChannelExec
import com.jcraft.jsch.JSch
import com.jcraft.jsch.Session
import java.io.ByteArrayOutputStream
import java.lang.Exception
import java.util.*
import java.util.concurrent.Executors
class SshSession (val host:... | 0 | null | 0 | 0 | 33088473bd2b5d803ebd23219027129e92d28f46 | 4,981 | nTune | MIT License |
kotlin-mui-icons/src/main/generated/mui/icons/material/BorderColorRounded.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/BorderColorRounded")
package mui.icons.material
@JsName("default")
external val BorderColorRounded: SvgIconComponent
| 12 | null | 5 | 983 | a99345a0160a80a7a90bf1adfbfdc83a31a18dd6 | 200 | kotlin-wrappers | Apache License 2.0 |
awesome-calendar/src/main/java/com/archit/calendardaterangepicker/customviews/CustomDateView.kt | ArchitShah248 | 100,138,200 | false | null | package com.yehia.mira_calendar_date_range.customviews
import android.content.Context
import android.graphics.Color
import android.graphics.PorterDuff.Mode.SRC_IN
import android.graphics.PorterDuffColorFilter
import android.graphics.Typeface
import android.util.AttributeSet
import android.util.TypedValue
import androi... | 45 | null | 81 | 261 | 864d3b898b3d4d6ec06405dfe671e28227d78908 | 9,263 | CalendarDateRangePicker | Apache License 2.0 |
question2/src/main/java/com/duytuan/screeningtest/question2/base/BaseDao.kt | duytuan001 | 354,739,265 | false | null | package com.duytuan.screeningtest.question2.base
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Update
// https://medium.com/androiddevelopers/7-pro-tips-for-room-fbadea4bfbd1
interface BaseDao<T> {
@Insert(onConflict = OnConflictStrategy.REP... | 0 | Kotlin | 0 | 1 | 9ea4ae8844eb61e395354d0db5441889e1d779e9 | 571 | FossilAndroidTest | MIT License |
app/src/main/java/com/madonasyombua/sportsdb/ui/screen/teamdetails/event/TeamLastEvents.kt | Madonahs | 120,659,933 | false | null | package com.madonasyombua.sportsdb.ui.screen.teamdetails.event
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.material.Card
import androidx.compose.material.MaterialTheme
import androidx.compose.materi... | 1 | null | 11 | 47 | 52f63ddb4f97b6098fb3be53ceba1de8c4efb947 | 4,422 | The-Sports-DB | Apache License 2.0 |
bgw-gui/src/test/kotlin/tools/aqua/bgw/layoutelements/grid/RemoveEmptyColumnsTest.kt | tudo-aqua | 377,420,862 | false | {"Kotlin": 1198455, "TypeScript": 2013, "JavaScript": 1242, "HTML": 507, "CSS": 359, "Ruby": 131} | /*
* Copyright 2021-2022 The BoardGameWork Authors
* SPDX-License-Identifier: Apache-2.0
*
* 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... | 31 | Kotlin | 16 | 24 | 266db439e4443d10bc1ec7eb7d9032f29daf6981 | 3,003 | bgw | Apache License 2.0 |
app/src/main/java/de/droidcon/berlin2018/di/DaoModule.kt | OpenConference | 100,889,869 | false | null | package de.droidcon.berlin2018.di
import android.content.Context
import com.hannesdorfmann.sqlbrite.dao.DaoManager
import dagger.Module
import dagger.Provides
import de.droidcon.berlin2018.schedule.database.dao.LocationDao
import de.droidcon.berlin2018.schedule.database.dao.LocationDaoSqlite
import de.droidcon.berlin2... | 1 | Kotlin | 1 | 27 | 142effaf4eb04abb12d5b812e797a89922b649a5 | 1,215 | DroidconBerlin2017 | Apache License 2.0 |
app/src/main/java/it/unibo/noteforall/utils/CurrentUser.kt | riccardopenazzi | 788,878,884 | false | {"Kotlin": 164881} | package it.unibo.noteforall.utils
data class CurrentUser(
val id: String
)
object CurrentUserSingleton {
var currentUser: CurrentUser? = null
} | 0 | Kotlin | 0 | 0 | 4abb0426a07820b9c3729bff4a06a8c18e3e2c12 | 153 | mobile-project | MIT License |
app/src/main/java/com/erkindilekci/foodbook/data/model/CategoryList.kt | erkindilekci | 668,284,495 | false | null | package com.erkindilekci.foodbook.data.model
data class CategoryList(
val categories: List<Category>
)
| 0 | Kotlin | 0 | 0 | 5ec1cc1924628acce2e329aace2e03dec0d7df77 | 108 | FoodBook | Apache License 2.0 |
autumn-core/src/main/kotlin/org/example/autumn/context/ApplicationContext.kt | NuclearMissile | 776,826,220 | false | {"Kotlin": 357540, "HTML": 8038, "FreeMarker": 4818, "Java": 1431, "JavaScript": 1347, "Dockerfile": 82} | package org.example.autumn.context
import org.example.autumn.DEFAULT_ORDER
import org.example.autumn.annotation.*
import org.example.autumn.aop.AnnotationProxyBeanPostProcessor.Companion.createProxy
import org.example.autumn.aop.Invocation
import org.example.autumn.exception.*
import org.example.autumn.utils.ClassUtil... | 0 | Kotlin | 0 | 6 | deeff25479eff195d5c4902c0aa17c43692598c6 | 25,658 | Autumn | MIT License |
diktat-ktlint-engine/src/main/kotlin/org/cqfn/diktat/ktlint/KtLintRuleWrapper.kt | saveourtool | 275,879,956 | false | null | package org.cqfn.diktat.ktlint
import org.cqfn.diktat.api.DiktatRule
import org.cqfn.diktat.api.DiktatRuleSet
import org.cqfn.diktat.common.config.rules.DIKTAT_RULE_SET_ID
import com.pinterest.ktlint.core.Rule
import com.pinterest.ktlint.core.RuleProvider
import org.jetbrains.kotlin.com.intellij.lang.ASTNode
private ... | 130 | Kotlin | 31 | 439 | 9fd78a6123c2564f693870086b5ff6982029ee2a | 2,635 | diktat | MIT License |
src/main/kotlin/com/vermouthx/stocker/activities/StockerStartupActivity.kt | WhiteVermouth | 281,630,639 | false | null | package com.vermouthx.stocker.activities
import com.intellij.ide.plugins.PluginManagerCore
import com.intellij.openapi.extensions.PluginId
import com.intellij.openapi.project.DumbAware
import com.intellij.openapi.project.Project
import com.intellij.openapi.startup.ProjectActivity
import com.vermouthx.stocker.notificat... | 11 | null | 12 | 96 | c08547ebd08d465f9d3d46555a89a30cb03e8687 | 1,090 | intellij-investor-dashboard | Apache License 2.0 |
gi/src/commonMain/kotlin/org/anime_game_servers/multi_proto/gi/data/activity/michiae_matsuri/MichiaeMatsuriChallengePositionInfo.kt | Anime-Game-Servers | 642,871,918 | false | {"Kotlin": 1651536} | package org.anime_game_servers.multi_proto.gi.data.activity.michiae_matsuri
import org.anime_game_servers.core.base.Version.GI_2_5_0
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.annotations.proto.ProtoModel
import org.anime_game_servers.multi_proto.gi.data.general... | 0 | Kotlin | 2 | 6 | 7639afe4f546aa5bbd9b4afc9c06c17f9547c588 | 482 | anime-game-multi-proto | MIT License |
java/src/main/java/trinsic/okapi/hashing/v1/Blake3DeriveKeyResponseKt.kt | trinsic-id | 305,426,498 | false | {"Dart": 573038, "Kotlin": 155130, "TypeScript": 147436, "Rust": 112106, "Python": 50752, "Java": 39903, "C#": 31124, "Go": 27567, "PowerShell": 7564, "JavaScript": 3820, "C": 3436} | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: okapi/hashing/v1/hashing.proto
package trinsic.okapi.hashing.v1
@kotlin.jvm.JvmName("-initializeblake3DeriveKeyResponse")
public inline fun blake3DeriveKeyResponse(
block: trinsic.okapi.hashing.v1.Blake3DeriveKeyResponseKt.Dsl.() -> kotlin.Unit... | 40 | Dart | 11 | 26 | d4faa62a056caa08a406fd67c4b766747a2326e6 | 2,030 | okapi | Apache License 2.0 |
src/main/kotlin/com/pineypiney/game_engine/objects/components/RenderedComponent.kt | PineyPiney | 491,900,499 | false | {"Kotlin": 541377, "GLSL": 31647} | package com.pineypiney.game_engine.objects.components
import com.pineypiney.game_engine.objects.GameObject
import com.pineypiney.game_engine.rendering.RendererI
import com.pineypiney.game_engine.rendering.lighting.DirectionalLight
import com.pineypiney.game_engine.rendering.lighting.PointLight
import com.pineypiney.ga... | 0 | Kotlin | 0 | 0 | f65818ca2e4426d4115fab5fdb6cef1ef31c3fc5 | 3,474 | GameEngine | MIT License |
cryptic-sequences-core/commonMain/src/net/plcarmel/crypticsequences/core/sequences/CrypticDoubleIterator.kt | plcarmel | 344,168,944 | false | null | package net.plcarmel.crypticsequences.core.sequences
import net.plcarmel.crypticsequences.core.bits.BitQueueTwoLongs
import net.plcarmel.crypticsequences.core.numbers.BaseSystem
class CrypticDoubleIterator(
private val baseIterator: Iterator<Long>,
baseSystem: BaseSystem,
wordSize: Int
): Iterator<Double> {
... | 0 | Kotlin | 0 | 0 | 2792e9632fef0cb22c4bacc49f209d3463ec5b19 | 880 | cryptic-sequences | MIT License |
src/main/kotlin/michi/bot/commands/misc/Math.kt | slz-br | 598,900,844 | false | {"Kotlin": 290077} | package michi.bot.commands.misc
import com.charleskorn.kaml.YamlMap
import com.charleskorn.kaml.yamlMap
import kotlinx.coroutines.*
import kotlinx.coroutines.Dispatchers.IO
import michi.bot.commands.CommandScope.GLOBAL_SCOPE
import michi.bot.commands.MichiCommand
import michi.bot.util.Emoji
import michi.bot.util.Reply... | 1 | Kotlin | 1 | 2 | d2b2925993fb809d70007821b86d2c7253b9c38e | 8,041 | Michi | Apache License 2.0 |
SDKBridgeDemo/android/app/src/main/java/com/mytestapp/ReceiptCaptureActivity.kt | getsensibill | 369,300,576 | false | null | package com.mytestapp
import android.annotation.SuppressLint
import android.os.Bundle
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.getsensibill.captureflow.coordinator.CaptureFlowCoordinator
import com.getsensibill.captureflow.coordinator.CaptureFlowState
import java.util.*... | 0 | Kotlin | 0 | 1 | 3d94876e6a31e1f2618207ffe78b0f7fc97b2717 | 2,817 | sample-spend-manager-reactnative | MIT License |
app/src/test/java/com/aliahmed/everylife/TasksViewModelTest.kt | aliahmedbd | 552,127,211 | false | {"Kotlin": 26090} | package com.aliahmed.everylife
import com.aliahmed.everylife.model.Events
import com.aliahmed.everylife.repository.TasksRepository
import com.aliahmed.everylife.viewmodel.TasksViewModel
import com.google.gson.GsonBuilder
import com.google.gson.reflect.TypeToken
import org.junit.Assert
import org.junit.Before
import or... | 0 | Kotlin | 0 | 0 | cf1636bed010d959dd441a073d467674c9cd74aa | 3,317 | EveryLife | Apache License 2.0 |
src/main/kotlin/com/antwerkz/bottlerocket/configuration/blocks/Ldap.kt | evanchooly | 36,263,772 | false | {"Kotlin": 95442, "Java": 4726} | package com.antwerkz.bottlerocket.configuration.blocks
import com.antwerkz.bottlerocket.configuration.ConfigBlock
class Ldap(
var servers: String? = null,
var timeoutMS: Int? = null,
var transportSecurity: String? = null,
var userToDNMapping: String? = null,
var validateLDAPServerConfig: Boolean? ... | 4 | Kotlin | 1 | 2 | c83adbbfecbac4327defa6da4ecb30fde0d60884 | 588 | bottlerocket | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.