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/cn/haohao/dbbook/presentation/activity/SearchActivity.kt | githubhaohao | 95,271,877 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Text": 1, "Markdown": 1, "Proguard": 1, "Java": 16, "XML": 52, "Kotlin": 60} | package cn.haohao.dbbook.presentation.activity
import android.content.Intent
import android.graphics.Color
import android.os.Build
import android.os.Bundle
import android.os.Handler
import android.speech.RecognizerIntent
import android.support.design.widget.Snackbar
import android.support.v4.app.ActivityOptionsCompat
... | 1 | Kotlin | 32 | 163 | bc08d6dd89fc86304b2b95cc1c2b3f67b55ee451 | 8,435 | DoubanBook | Apache License 2.0 |
solar/src/main/java/com/chiksmedina/solar/linear/electronicdevices/Printer2.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.linear.electronicdevices
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeCap.C... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 8,385 | SolarIconSetAndroid | MIT License |
app/src/main/java/com/alfanse/feedmycity/data/models/NeedierItemStatusEntity.kt | sachinrana135 | 251,589,078 | false | null | package com.alfanse.feedmycity.data.models
import com.google.gson.annotations.SerializedName
data class NeedierItemStatusEntity (
@SerializedName("id")
val id: String?,
@SerializedName("name")
val name: String?
) | 0 | Kotlin | 0 | 1 | e31ca6b0011e117d513eeb1139665768c6ba95e4 | 230 | FeedMyCity | Apache License 2.0 |
mediator/src/test/kotlin/no/nav/dagpenger/vedtak/iverksett/client/IverksettDtoBuilderTest.kt | navikt | 657,115,239 | false | {"Kotlin": 77184, "Dockerfile": 557} | package no.nav.dagpenger.vedtak.iverksett.client
import io.kotest.matchers.shouldBe
import io.kotest.matchers.shouldNotBe
import no.nav.dagpenger.vedtak.iverksett.PersonIdentifikator.Companion.tilPersonIdentfikator
import no.nav.dagpenger.vedtak.iverksett.Sak
import no.nav.dagpenger.vedtak.iverksett.SakId
import no.na... | 0 | Kotlin | 0 | 0 | a4b0c41d3ea7b028f5d2855eb23a507f79d1e64e | 4,979 | dp-vedtak-iverksett | MIT License |
src/test/kotlin/org/thiyagu/zally/rules/HintRuleCheckerTest.kt | thiyagu06 | 384,658,347 | false | {"Kotlin": 53809, "HTML": 1660} | package org.thiyagu.zally.rules
import org.junit.jupiter.api.Test
import org.thiyagu.zally.internal.ZallyViolationRules
import org.zalando.zally.rule.api.Severity
import kotlin.test.assertFalse
import kotlin.test.assertTrue
class HintRuleCheckerTest {
@Test
fun `should return true when result has more violat... | 17 | Kotlin | 1 | 3 | 556ced61e8d0298feedb2bd490e37dc9c972dd64 | 1,132 | zally-gradle-plugin | MIT License |
app/src/main/kotlin/com/tanyayuferova/lifestylenews/utils/RxExtensions.kt | TanyaYu | 114,388,222 | false | {"Kotlin": 91914} | package com.tanyayuferova.lifestylenews.utils
import io.reactivex.Flowable
import io.reactivex.Observable
import io.reactivex.Single
import io.reactivex.functions.BiFunction
/**
* Author: <NAME>
* Date: 7/27/2019
*/
fun <X: Any, Y: Any>Single<List<X>>.mapList(transformer: (X) -> Y) : Single<List<Y>> {
return t... | 1 | Kotlin | 0 | 0 | 2f078d3fa116bee3236104511e5868868d89acc9 | 817 | LifestyleNews | Apache License 2.0 |
app/src/main/java/com/puntogris/posture/ui/login/InternalLoginFragment.kt | puntogris | 398,388,678 | false | null | package com.puntogris.posture.ui.login
import android.widget.ProgressBar
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.findNavController
import com.puntogris.posture.R
import com.puntogris.posture.databinding.FragmentInternalLoginBinding
import com.puntogris.posture.ui.base.BaseLoginFragm... | 0 | Kotlin | 2 | 2 | 32d558348f1fb83ecec5d81ad38123276286db4a | 828 | posture-reminder | MIT License |
lib-multisrc/masonry/src/eu/kanade/tachiyomi/multisrc/masonry/Masonry.kt | keiyoushi | 740,710,728 | false | {"Kotlin": 6577281, "JavaScript": 2160} | package eu.kanade.tachiyomi.multisrc.masonry
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.source.model.Filter
import eu.kanade.tachiyomi.source.model.FilterList
import eu.kanade.tachiyomi.source.model.MangasPage
import eu.kanade.tachiyomi.source.model.Page
import eu.kanade.tachiyomi.source.model.S... | 404 | Kotlin | 461 | 2,055 | 4bf6be0a99cdfeb96345aca7c87cd1ab8c771a4d | 7,363 | extensions-source | Apache License 2.0 |
app/src/main/java/com/zivkesten/cleanwidget/domain/DateExt.kt | zivkesten | 778,673,524 | false | {"Kotlin": 16925} | package com.zivkesten.cleanwidget.domain
import java.time.LocalDate
import java.time.temporal.ChronoUnit
fun LocalDate.getStreakCount(): Int {
// Current date
val currentDate = LocalDate.now()
// Calculate the difference in days
val daysBetween = ChronoUnit.DAYS.between(this, currentDate)
// Che... | 0 | Kotlin | 0 | 0 | 42f22f7421e9cf06bd49a0880efc0937b8a7f264 | 479 | MilestoneWidget | MIT License |
databinding-observables-rx/src/main/java/io/androidalatan/databinding/observables/rx/ObservableLongRxAdapter.kt | android-alatan | 464,567,867 | false | null | package io.androidalatan.databinding.observables.rx
import androidx.databinding.ObservableLong
import io.androidalatan.databinding.observables.rx.internal.toFlowableOfBaseObservable
import io.androidalatan.databinding.observables.rx.internal.toMaybeOfBaseObservable
import io.androidalatan.databinding.observables.rx.in... | 0 | Kotlin | 1 | 2 | 4be87a61a89ff1e8010ec2b8227a1fa307bfda8d | 1,129 | Databinding | MIT License |
plugin-build/plugin-base/src/test/java/io/truthencode/gradle/plugin/taxi/KotlinXTest.kt | adarro | 866,853,454 | false | {"Kotlin": 56418} | package io.truthencode.gradle.plugin.taxi
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.SerializationException
import kotlinx.serialization.hocon.Hocon
import kotlinx.serialization.hocon.encodeToConfig
import lang.taxi.packages.TaxiPackageProject
import org.junit.jupiter.api.As... | 0 | Kotlin | 0 | 0 | 5fa0f2c1a29ad198a3a454bbc00df40ff2a2b976 | 772 | taxi-gradle-plugin | MIT License |
app/domain/src/main/java/com/sanketguru/expensetraker/domain/ExpenseFilterRepo.kt | SanketGuru | 430,870,568 | false | null | package com.sanketguru.expensetraker.domain
import com.sanketguru.expensetraker.domain.data.Category
import com.sanketguru.expensetraker.domain.data.Expense
import java.util.Date
interface ExpenseFilterRepo{
fun getExpenseBetween(from: Date, to: Date):List<Expense>
fun getExpenseCategory(from: Date, to: Date,... | 0 | Kotlin | 0 | 0 | c9c81bcda52669b5ddc744388f33c8cc5f0aa8ec | 356 | Moneytracker | MIT License |
app/src/main/java/com/faigenbloom/familybudget/domain/details/GetSpendingDetailsByIdUseCase.kt | ZakharchenkoWork | 706,155,222 | false | {"Kotlin": 690594} | package com.faigenbloom.familybudget.domain.details
import com.faigenbloom.familybudget.common.Identifiable
import com.faigenbloom.familybudget.common.Mapper
import com.faigenbloom.familybudget.datasources.db.entities.SpendingDetailEntity
import com.faigenbloom.familybudget.repositories.DetailsRepository
import kotlin... | 0 | Kotlin | 0 | 0 | 40920c59d6d598db8e0214ec8e550d38a51785e7 | 855 | FamilyBudget | Apache License 2.0 |
src/main/kotlin/no/nav/tilgangsmaskin/populasjonstilgangskontroll/rest/Tilgangskontroll.kt | navikt | 843,415,610 | false | {"Kotlin": 3684, "Dockerfile": 170} | package no.nav.tilgangsmaskin.populasjonstilgangskontroll.rest
import no.nav.tilgangsmaskin.populasjonstilgangskontroll.service.TilgangsService
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestCon... | 0 | Kotlin | 0 | 0 | 26cca7e2313d46e940266c4838ec0f90b2bd177f | 1,385 | populasjonstilgangskontroll | MIT License |
app/src/main/java/android/project/auction/domain/use_case/createitem/CreateItem.kt | RavanSA | 515,232,661 | false | {"Kotlin": 429676} | package android.project.auction.domain.use_case.createitem
import android.content.SharedPreferences
import android.net.Uri
import android.project.auction.common.Constants
import android.project.auction.common.Resource
import android.project.auction.data.remote.dto.items.createitem.CreateItemRequest
import android.proj... | 0 | Kotlin | 1 | 3 | c5914b4870d6b004152c45d6d41d7bd6c99eb9e6 | 2,183 | AuctionProject | MIT License |
app/android/src/main/java/com/denchic45/studiversity/widget/transition/Elevation.kt | denchic45 | 435,895,363 | false | null | package com.denchic45.studiversity.widget.transition
import android.animation.Animator
import android.animation.ObjectAnimator
import android.view.ViewGroup
import androidx.transition.Transition
import androidx.transition.TransitionValues
class Elevation : Transition() {
override fun captureStartValues(transition... | 0 | Kotlin | 0 | 5 | 02d19321d16604a052f6dd29aa54be29343991e6 | 1,149 | Studiversity | Apache License 2.0 |
vgscheckout/src/androidTest/java/com/verygoodsecurity/vgscheckout/payments/add/ui/DefaultCheckoutSetupTest.kt | verygoodsecurity | 371,054,567 | false | null | package com.verygoodsecurity.vgscheckout.payments.add.ui
import android.content.Context
import android.content.Intent
import androidx.test.core.app.ActivityScenario
import androidx.test.core.app.ApplicationProvider
import androidx.test.espresso.Espresso
import androidx.test.espresso.action.ViewActions
import androidx.... | 5 | Kotlin | 2 | 2 | 49fdede7a225435b37837f5396dcfea06217e275 | 5,570 | vgs-checkout-android | MIT License |
common/src/main/java/com/topview/purejoy/common/component/db/entity/CookieData.kt | giagor | 421,858,760 | false | {"Kotlin": 800571, "AIDL": 3111} | package com.topview.purejoy.common.component.db.entity
import androidx.room.Entity
import okhttp3.Cookie
@Entity(primaryKeys = ["domain", "path", "name"], tableName = "cookie_data")
data class CookieData(
val name: String,
val value: String,
val expiresAt: Long,
val domain: String,
val path: Strin... | 1 | Kotlin | 1 | 5 | f58ca9570486871066d99fc5e0827af66d6f0c3b | 978 | PureJoy | MIT License |
src/test/groovy/graphql/StarWarsData.kt | LarsKrogJensen | 78,951,235 | false | null | package graphql
import graphql.schema.DataFetcher
import graphql.schema.TypeResolver
import java.util.concurrent.CompletableFuture
val luke = mapOf(
"id" to "1000",
"name" to "<NAME>",
"friends" to listOf("1002", "1003", "2000", "2001"),
"appearsIn" to listOf(4, 5, 6),
"homePl... | 0 | Kotlin | 1 | 3 | aa8e3c645dedf1048e2124d43e1deff28ad16cdf | 3,050 | graphql-kotlin | MIT License |
app/src/main/java/com/dyte/kotlinsample/MainActivity.kt | akshaybhalotia | 431,038,044 | false | {"Kotlin": 20043} | package com.dyte.kotlinsample
import android.app.AlertDialog
import android.content.Intent
import android.os.Bundle
import android.widget.EditText
import android.widget.Spinner
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.findNavController
import androidx.navigation.ui.AppBarConfiguration... | 0 | null | 2 | 0 | 03f7340f6c092823c82ae862a89cce072a9de5e2 | 6,374 | kotlin-sample-app | Apache License 2.0 |
app/src/main/java/tech/salvatore/livro_android_kotlin_paulo_salvatore/model/domain/CreatureType.kt | paulosalvatore | 387,030,484 | false | null | package tech.salvatore.livro_android_kotlin_paulo_salvatore.model.domain
data class CreatureType(
val name: String
)
| 0 | Kotlin | 4 | 7 | 7ff57a05e57a6a09b8ca27085f9fca51c5dcbddb | 122 | Livro_Android_Kotlin_PauloSalvatore | MIT License |
app/src/main/java/tech/salvatore/livro_android_kotlin_paulo_salvatore/model/domain/CreatureType.kt | paulosalvatore | 387,030,484 | false | null | package tech.salvatore.livro_android_kotlin_paulo_salvatore.model.domain
data class CreatureType(
val name: String
)
| 0 | Kotlin | 4 | 7 | 7ff57a05e57a6a09b8ca27085f9fca51c5dcbddb | 122 | Livro_Android_Kotlin_PauloSalvatore | MIT License |
src/main/java/no/stunor/origo/eventorapi/services/converter/ResultListConverter.kt | stunor92 | 763,985,971 | false | {"Kotlin": 193679, "Dockerfile": 595} | package no.stunor.origo.eventorapi.services.converter
import no.stunor.origo.eventorapi.model.Eventor
import no.stunor.origo.eventorapi.model.event.competitor.Competitor
import no.stunor.origo.eventorapi.model.event.competitor.CompetitorStatus
import no.stunor.origo.eventorapi.model.event.competitor.PersonCompetitor
i... | 0 | Kotlin | 0 | 0 | 6e3b10a30cf8919b8ef11a4ceb1d3dd2214b3847 | 14,874 | OriGo-EventorApi | MIT License |
app/src/main/java/com/example/beering/feature/auth/join/view/JoinViewModel.kt | Beering-KUIT | 659,221,278 | false | {"Kotlin": 201754} | package com.example.beering.feature.auth.join.view
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.ViewModelProvider.AndroidViewModelFactory.Companion.APPLICATION_KEY
import androidx.l... | 2 | Kotlin | 5 | 0 | 293da633843d0ac8729a48fac97b96f69f5f28fb | 2,448 | Beering-Android | MIT License |
src/main/kotlin/org/elm/lang/core/psi/elements/ElmTuplePattern.kt | intellij-elm | 104,530,474 | false | {"Kotlin": 1475967, "Elm": 19420, "Lex": 5823, "HTML": 2289} | package org.elm.lang.core.psi.elements
import com.intellij.lang.ASTNode
import com.intellij.psi.util.PsiTreeUtil
import org.elm.lang.core.psi.ElmFunctionParamTag
import org.elm.lang.core.psi.ElmPatternChildTag
import org.elm.lang.core.psi.ElmPsiElementImpl
import org.elm.lang.core.psi.ElmUnionPatternChildTag
/**
* ... | 180 | Kotlin | 70 | 390 | 7c0c3fac666735bc5170fe1878165ed19bda99c3 | 707 | intellij-elm | MIT License |
src/main/kotlin/data/repository/OpenAiTranscription.kt | SuperCaliMan | 785,222,272 | false | {"Kotlin": 14989} | package data.repository
import com.aallam.openai.api.audio.TranscriptionRequest
import com.aallam.openai.api.file.FileSource
import com.aallam.openai.api.http.Timeout
import com.aallam.openai.api.logging.LogLevel
import com.aallam.openai.api.model.ModelId
import com.aallam.openai.client.LoggingConfig
import com.aallam... | 0 | Kotlin | 0 | 0 | f384e315be6d34fb7b726e518ac6d5f27c8039e8 | 1,519 | AI-Telegram-Bot | Apache License 2.0 |
diskord-core/src/commonMain/kotlin/com/jessecorbett/diskord/util/Json.kt | SolarisGC | 392,766,027 | true | {"Kotlin": 366629} | package com.jessecorbett.diskord.util
import kotlinx.serialization.json.Json
import com.jessecorbett.diskord.api.common.audit.AuditLogChange
import com.jessecorbett.diskord.api.common.audit.AuditLogEntry
/**
* Our base [Json] configuration
*/
internal val defaultJson = Json {
ignoreUnknownKeys = true
isLen... | 0 | Kotlin | 0 | 1 | 979b586339b0bc6b5b3406ccfe440dde2df57509 | 890 | Diskord | Apache License 2.0 |
src/main/kotlin/org/beckn/one/sandbox/bap/client/order/orders/services/OrderServices.kt | JSarala | 425,698,605 | true | {"Kotlin": 537921, "Jinja": 3348} | package org.beckn.one.sandbox.bap.client.order.orders.services
import arrow.core.Either
import org.beckn.one.sandbox.bap.auth.utils.SecurityUtil
import org.beckn.one.sandbox.bap.client.shared.dtos.OrderResponse
import org.beckn.one.sandbox.bap.client.shared.errors.CartError
import org.beckn.one.sandbox.bap.errors.data... | 0 | null | 0 | 0 | 760e51d8f05b9a15b8b68cdaff93f5380f088a7c | 1,430 | biab-bap-client | MIT License |
DSLs/kubernetes/dsl/src/main/kotlin-gen/com/fkorotkov/kubernetes/certificates/v1/status.kt | fkorotkov | 84,911,320 | false | null | // GENERATED
package com.fkorotkov.kubernetes.certificates.v1
import io.fabric8.kubernetes.api.model.certificates.v1.CertificateSigningRequest as v1_CertificateSigningRequest
import io.fabric8.kubernetes.api.model.certificates.v1.CertificateSigningRequestStatus as v1_CertificateSigningRequestStatus
fun v1_Certifica... | 6 | Kotlin | 19 | 317 | ef8297132e6134b6f65ace3e50869dbb2b686b21 | 526 | k8s-kotlin-dsl | MIT License |
presentation/src/test/java/me/androidbox/presentation/authentication/reset/ResetPasswordViewModelTest.kt | steve1rm | 804,664,997 | false | {"Kotlin": 152478} | package me.androidbox.presentation.authentication.reset
import com.google.common.truth.Truth.assertThat
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.test.runTest
import kotlinx.coroutines.test.setMain
import me.androidbox.domain.authorization.models.ResetPasswordModel
import me.androidbox.domain.aut... | 0 | Kotlin | 0 | 0 | 5b80ada6d22093fc66d36debe028eaa15cc4886e | 1,476 | BusbyNimbleSurvey | MIT License |
presentation/src/test/java/me/androidbox/presentation/authentication/reset/ResetPasswordViewModelTest.kt | steve1rm | 804,664,997 | false | {"Kotlin": 152478} | package me.androidbox.presentation.authentication.reset
import com.google.common.truth.Truth.assertThat
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.test.runTest
import kotlinx.coroutines.test.setMain
import me.androidbox.domain.authorization.models.ResetPasswordModel
import me.androidbox.domain.aut... | 0 | Kotlin | 0 | 0 | 5b80ada6d22093fc66d36debe028eaa15cc4886e | 1,476 | BusbyNimbleSurvey | MIT License |
app/src/test/java/com/dk/newssync/presentation/ui/entries/EntriesViewModelTest.kt | dimkonomis | 173,963,908 | false | null | package com.dk.newssync.presentation.ui.entries
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.lifecycle.Observer
import com.dk.newssync.data.entity.Entry
import com.dk.newssync.data.usecase.EntriesUseCase
import com.dk.newssync.presentation.common.State
import com.nhaarman.mockitok... | 2 | Kotlin | 7 | 50 | b299ca3b040c93cfa79d47fd7b7e3335c9ccc5a4 | 3,764 | NewsSync | Apache License 2.0 |
mobile-common-lib/src/commonMain/kotlin/fi/riista/common/util/SequentialDataFetcher.kt | suomenriistakeskus | 78,840,058 | false | null | package fi.riista.common.util
import co.touchlab.stately.concurrency.AtomicBoolean
import co.touchlab.stately.concurrency.AtomicReference
import co.touchlab.stately.concurrency.value
import fi.riista.common.logging.getLogger
import fi.riista.common.model.LoadStatus
import fi.riista.common.reactive.Observable
import ko... | 0 | Kotlin | 0 | 3 | 23645d1abe61c68d649b6d0ca1d16556aa8ffa16 | 3,658 | oma-riista-android | MIT License |
app/src/main/java/com/patrykkosieradzki/androidmviexample/ui/features/add/components/EmployeeGenderRadioButtons.kt | k0siara | 374,188,998 | false | null | package com.patrykkosieradzki.androidmviexample.ui.features.add.components
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.material.*
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
impo... | 0 | Kotlin | 3 | 58 | 5039dc84d560bd7ccdd43895108d3cde15df699f | 1,822 | AndroidMVIExample | Apache License 2.0 |
app/src/main/java/com/example/cupcake/PickupFragment.kt | TaufanBudiSusatya | 542,890,336 | false | null | package com.example.cupcake
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.navigation.fragment.findNavController
import com.example.cupcake.databindi... | 0 | Kotlin | 0 | 0 | fcca9c46495d9f6f54fb7dbc5cf8ad75f9a96ad2 | 1,836 | Cupcake | Apache License 2.0 |
app/src/main/java/com/solo/cartoonbazaar/data/constantCartoonUids/PinkPantherUid.kt | MahdiJamali2004 | 850,736,910 | false | {"Kotlin": 167028} | package com.solo.cartoonbazaar.data.constantCartoonUids
object PinkPantherUid {
private const val allUid = "VmR9s," +
"h34tyg8," +
"i533492," +
"o56u3l2," +
"q13r441," +
"iG50r," +
"l9493m3," +
"q1259k7," +
"d31nm2i," +... | 0 | Kotlin | 0 | 0 | f348697e5524805a556f725a127cf813b508b7d9 | 8,992 | CartoonBazaar | MIT License |
src/main/kotlin/abc/128-a.kt | kirimin | 197,707,422 | false | null | package abc
import java.util.*
fun main(args: Array<String>) {
val sc = Scanner(System.`in`)
val a = sc.nextInt()
val p = sc.nextInt()
println(problem128a(a, p))
}
fun problem128a(a: Int, p: Int): Int {
return (a * 3 + p) / 2
} | 0 | Kotlin | 1 | 5 | 87f20b4aa2031c130867c546dd5533890f1978ee | 250 | AtCoderLog | The Unlicense |
app/src/main/java/com/example/wildlifegym/services/MusicService.kt | VojtechMinarik | 487,226,028 | false | {"Kotlin": 67391} | package com.example.wildlifegym.services
import android.app.Service
import android.content.Intent
import android.media.MediaPlayer
import android.os.IBinder
import com.example.wildlifegym.R
/**
* This is the Music service
* It plays music on the background of this application
*/
class MusicService : Service() {
... | 0 | Kotlin | 0 | 0 | 8f3e958f8f0390332cd8c49d766690c4380ed8ea | 1,290 | Wildlife_Gym | MIT License |
embrace-android-payload/src/main/kotlin/io/embrace/android/embracesdk/internal/payload/LegacyExceptionInfo.kt | embrace-io | 704,537,857 | false | {"Kotlin": 2863483, "C": 190133, "Java": 175321, "C++": 13140, "CMake": 4261} | package io.embrace.android.embracesdk.internal.payload
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
/**
* Describes a particular Java exception. Where an exception has a cause, there will be an
* [LegacyExceptionInfo] for each nested cause.
*/
@JsonClass(generateAdapter = true)
public class L... | 22 | Kotlin | 8 | 133 | e5b92a8e0ed1ea64602b68ec071780369e0ea915 | 2,499 | embrace-android-sdk | Apache License 2.0 |
src/test/kotlin/biz/koziolek/adventofcode/UtilsTest.kt | pkoziol | 434,913,366 | false | {"Kotlin": 539525, "Shell": 1892} | package biz.koziolek.adventofcode
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.Assertions.*
import java.util.*
internal class UtilsTest {
@Test
fun testConvertHexStringToBitSet() {
assertEquals("110100101111111000101", "D2FE28".hexStringToBitSet().toBinaryString())
assertEq... | 0 | Kotlin | 0 | 0 | 650c8a976221c2d40cb0e250cc4795e1af3447b5 | 2,021 | advent-of-code | MIT License |
KotlinMessenger2/app/src/main/java/com/letsbuildthatapp/kotlinmessenger/registration/LoginActivity.kt | kickflip666 | 203,946,511 | false | null | package com.letsbuildthatapp.kotlinmessenger.registration
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import com.google.firebase.auth.FirebaseAuth
import com.letsbuildthatapp.kotlinmessenger.R
import kotlinx.android.synthetic.main.activity_login.*
class LoginActivi... | 0 | Kotlin | 0 | 0 | ab9d3e67f3359e4bcd4b510fa5cc7f143e4d10a9 | 996 | kotlin_firebase | MIT License |
app/src/main/java/com/kieronquinn/app/discoverkiller/utils/extensions/Extensions+Fragment.kt | KieronQuinn | 273,963,637 | false | null | package com.kieronquinn.app.discoverkiller.utils.extensions
import androidx.fragment.app.Fragment
import com.kieronquinn.app.discoverkiller.ui.screens.settings.container.SettingsContainerFragment
fun Fragment.expandAppBar(){
(parentFragment as? SettingsContainerFragment)?.expandAppBar()
} | 2 | Kotlin | 7 | 98 | 9d27d0b5c8f73268d683732bb7f4f3b3c4e0deef | 295 | DiscoverKiller | Apache License 2.0 |
app/src/main/java/net/fitken/movieapp/app/presentation/moviedetails/MovieDetailsViewModel.kt | nmhung | 437,233,110 | false | null | package net.fitken.movieapp.app.presentation.moviedetails
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.launch
import net.fitken.domain.model.Movie
import net.fitken.domain.usecase.GetMovieDetailsUseCase
import net.fitken.movieapp.base.viewmodel.B... | 0 | Kotlin | 0 | 1 | b6615f5fe27027b6835a24e5e5e7efd542519946 | 2,633 | movie-app | MIT License |
Dota2Narrator/src/main/kotlin/classes/Ancient.kt | FR98 | 139,889,050 | false | {"Kotlin": 63463} | package classes
data class Ancient (
var isAlive: Boolean = true
){
fun muereAncient() {
isAlive = false
}
} | 0 | Kotlin | 0 | 1 | 72f2c97d3d04a4fb4d7c0bc4999e64f3898de1c0 | 133 | uvg-kotlin | MIT License |
src/main/kotlin/bridge/InputView.kt | ChunBaee | 577,162,230 | false | null | package bridge
/**
* 사용자로부터 입력을 받는 역할을 한다.
*/
class InputView {
/**
* 다리의 길이를 입력받는다.
*/
fun readBridgeSize(): Int {
return 0
}
/**
* 사용자가 이동할 칸을 입력받는다.
*/
fun readMoving(): String {
return ""
}
/**
* 사용자가 게임을 다시 시도할지 종료할지 여부를 입력받는다.
*/
f... | 0 | Kotlin | 0 | 0 | 87486bf8126e3a6ca6173dd1ae98450fcef152e7 | 377 | kotlin-subway-map | MIT License |
app/src/main/java/com/weighttracker/persistence/datastore/water/WaterFlow.kt | nicolegeorgieva | 556,229,503 | false | {"Kotlin": 221653} | package com.weighttracker.persistence.datastore.water
import com.weighttracker.base.FlowAction
import com.weighttracker.base.persistence.AppDataStore
import com.weighttracker.domain.data.Water
import com.weighttracker.persistence.datastore.DataStoreKeys
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flo... | 0 | Kotlin | 0 | 5 | 9df6604d4968d62958667658a33ee7cb64c86db7 | 809 | weight-tracker-android | MIT License |
springback/src/main/java/com/lws/springback/view/SpringOperator.kt | liu-wanshun | 644,407,338 | false | {"Kotlin": 69279} | package com.lws.springback.view
import kotlin.math.pow
class SpringOperator(f: Float, f2: Float) {
private val damping: Double
private val tension: Double
init {
tension = (6.283185307179586 / f2).pow(2.0)
damping = f * 12.566370614359172 / f2
}
fun updateVelocity(velocity: Doubl... | 0 | Kotlin | 0 | 1 | 2dcfcad3ebbc0a1f79e89f2c0db96b94ec71ee15 | 496 | SpringBackLayout | Apache License 2.0 |
src/main/java/com/yazan98/actor/executers/ActorResultMapper.kt | Yazan98 | 233,988,825 | false | null | package com.yazan98.actor.executers
import com.yazan98.actor.models.ActorApplicationInfo
import com.yazan98.actor.models.ActorController
import com.yazan98.actor.models.ActorRequest
import com.yazan98.actor.models.ActorRequestContent
import org.json.JSONArray
import org.json.JSONObject
import java.io.File
import java.... | 0 | Kotlin | 0 | 0 | e3dbcd99732a9fb1e6d9ab3768a943515ad263cc | 3,248 | Actor | Apache License 1.1 |
core/networkApi/userModules/impl/src/test/kotlin/UserInfoRepositoryTest.kt | 19111OdooApp | 546,191,502 | false | {"Kotlin": 889625} | import io.mockk.clearAllMocks
import io.reactivex.rxjava3.core.Single
import kotlinx.coroutines.runBlocking
import odoo.miem.android.core.networkApi.userInfo.api.source.OdooGroupsResponse
import odoo.miem.android.core.networkApi.userInfo.api.source.OdooModulesResponse
import odoo.miem.android.core.networkApi.userModule... | 0 | Kotlin | 1 | 5 | e107fcbb8db2d179d40b5c1747051d2cb75e58c6 | 1,098 | OdooApp-Android | Apache License 2.0 |
src/test/kotlin/codes/monkey/tictactoe/TestInterpreterContext.kt | monkey-codes | 647,581,768 | false | null | package codes.monkey.tictactoe
class TestInterpreterContext(vararg inputValues: String) : InterpreterContext {
private val inputs = inputValues.toMutableList()
val outputs: MutableList<String?> = mutableListOf()
override fun printMessage(message: Any?) {
outputs.add(message?.toString())
}
override fun ... | 0 | Kotlin | 0 | 0 | 2910bf641106fe63f38ce74b73cf0f2eb741cd0b | 395 | fp-kotlin-tictactoe | MIT License |
app/src/main/java/com/furkanaskin/app/podpocket/utils/extensions/LiveDataExt.kt | furkanaskin | 183,442,441 | false | null | package com.furkanaskin.app.podpocket.utils.extensions
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.LiveData
import androidx.lifecycle.Observer
/**
* Created by Furkan on 2019-07-20
*/
inline fun <T : Any> LiveData<T>.observeWith(
lifecycleOwner: LifecycleOwner,
crossinline on... | 3 | Kotlin | 18 | 109 | 9af0d1052f83cfb79824e2eaa96ade938cdefdfe | 451 | podpocket | MIT License |
lib/src/main/kotlin/me/tb/ScriptResult.kt | thunderbiscuit | 796,881,490 | false | {"Kotlin": 49161, "Just": 160} | /*
* Copyright 2022-2024 thunderbiscuit and contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the ./LICENSE.txt file.
*/
package me.tb
public sealed class ScriptResult {
public data object Success : ScriptResult()
public data class Failure(val error: String)... | 0 | Kotlin | 0 | 1 | 62832a90ef40bd7754c5cf3466b1733013f2d96d | 340 | bitcoin-script-interpreter | Apache License 2.0 |
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Kasasmart.kt | DevSrSouza | 311,134,756 | false | null | package compose.icons.simpleicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Butt
import androidx.compose.ui.graphics.StrokeJoin.Miter
import androidx.compose.ui.graphics... | 17 | null | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 2,746 | compose-icons | MIT License |
android_0/src/main/java/coffee/flavors/android_0/controllers/adapter/HorizontalPagerAdapter.kt | PabloRosas17 | 473,046,637 | false | {"Kotlin": 49637} |
package coffee.flavors.android_0.controllers.adapter
import androidx.fragment.app.Fragment
import androidx.viewpager2.adapter.FragmentStateAdapter
import coffee.flavors.android_0.views.screens.activities.TabsView
import coffee.flavors.android_0.views.screens.fragments.HorizontalTabView
class HorizontalPagerAdapter (... | 0 | Kotlin | 0 | 2 | c31119c468bd0d8df8238bdd8f3f4b59b265e0d1 | 896 | Medium-Android | MIT License |
app/src/main/java/com/g00fy2/circularbackgroundtransitionsample/MainActivity.kt | G00fY2 | 137,694,235 | false | {"Kotlin": 4668} | package com.g00fy2.circularbackgroundtransitionsample
import android.graphics.Color
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.g00fy2.circularbackgroundtransition.CircularBackgroundTransition
import com.g00fy2.circularbackgroundtransitionsample.R.id
import com.g00fy2.circularba... | 0 | Kotlin | 0 | 0 | ab89510cdf9a232e213a4d49a230fa30aff2515e | 916 | CircularBackgroundTransition | The Unlicense |
src/main/kotlin/co/nums/intellij/aem/extensions/StringExtensions.kt | karollewandowski | 74,054,504 | false | null | package co.nums.intellij.aem.extensions
fun String.getSingularForm() = when {
endsWith("ies") -> dropLast(3) + 'y'
endsWith("IES") -> dropLast(3) + 'Y'
toLowerCase().endsWith("sses") || toLowerCase().endsWith("shes") -> dropLast(2)
toLowerCase().last() == 's' -> dropLast(1)
else -> prependIndefinit... | 0 | Kotlin | 8 | 26 | 9e76302b897bddb9ce6721d67787e92be575794f | 475 | aem-intellij-plugin | MIT License |
mangaworld/src/main/java/com/programmersbox/mangaworld/reader/ReadViewModel.kt | jakepurple13 | 353,155,453 | false | null | package com.programmersbox.mangaworld.reader
import android.content.Context
import android.net.Uri
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.compose.ui.util.fastMap
... | 7 | Kotlin | 7 | 148 | abb04ad8533b940984866865239ab9656e469ace | 7,705 | OtakuWorld | Apache License 2.0 |
translator/src/test/kotlin/tests/global_vars_1/global_vars_1.kt | olonho | 60,483,862 | false | null |
val MY_FIRST_CONSTANT: Int = 3000
val MY_SECOND_CONSTANT: Int = 4000
fun global_test1(): Int {
return MY_FIRST_CONSTANT
}
fun global_test2(): Int {
return MY_SECOND_CONSTANT + 1
}
| 0 | C | 1 | 10 | 321925af6cd64339a12a1658c3412a5461a32563 | 191 | carkot | MIT License |
My-Quiz-App/app/src/main/java/com/example/myquizapp/ResultsActivity.kt | swoyam2609 | 543,537,820 | false | null | package com.example.myquizapp
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.TextView
class ResultsActivity : AppCompatActivity() {
private var outputText : TextView? = null
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstan... | 0 | Kotlin | 0 | 2 | 0d805f7492036241fcdc36a8bfe3be92b509b0cf | 621 | App-Dev-Kotlin | MIT License |
codeforces-solutions/A/344-A Magnets.kt | jaikarans | 392,014,185 | false | {"C++": 29682, "Java": 14418, "Kotlin": 7680, "C": 4092, "PHP": 758} | import java.io.BufferedReader
import java.io.InputStreamReader
fun main(args: Array<String>) {
val reader = BufferedReader(InputStreamReader(System.`in`))
reader.readLine()
var count = 0;
var pre = "any"
reader.lines().let { line->
line.spliterator().forEachRemaining { if (it.equals(pre)==f... | 0 | C++ | 0 | 0 | dfda645b69d4884f950ad3b40bb0cd4e941af076 | 412 | coding-solutions | MIT License |
stubbedmock/src/test/kotlin/stubbedmock/filters/FiltersTest.kt | blacklane | 175,016,358 | false | null | package stubbedmock.filters
import stubbedmock.annotation.StubbedMock
import stubbedmock.annotation.StubAnnotationParser.initStubbedMocks
import stubbedmock.filters.types.LazyFilter
import stubbedmock.filters.types.TypeFilter
import stubbedmock.mock.Stubber
import stubbedmock.models.User
import org.junit.Assert
import... | 10 | Kotlin | 0 | 11 | ed514f6eb341139a3c26442b65e7eb8b5cfff9cf | 1,091 | stubbed-mock | MIT License |
common/src/commonMain/kotlin/com/mocoding/geometryapp/common/tools/Pencil.kt | MohamedRejeb | 593,666,158 | false | null | package com.mocoding.geometryapp.common.tools
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.Edit
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.geometry.Size
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.vector.ImageV... | 0 | Kotlin | 0 | 60 | e093bb74ad08d1ab90175fd4c964c7838213ba52 | 4,344 | Compose-Geometry-Playground | Apache License 2.0 |
src/jvmTest/kotlin/com/github/ikovalyov/infrastructure/dynamodb/repository/RecordsRepositoryTest.kt | ikovalyov | 355,338,939 | false | null | package com.github.ikovalyov.infrastructure.dynamodb.repository
import io.micronaut.test.extensions.junit5.annotation.MicronautTest
import io.micronaut.test.support.TestPropertyProvider
import jakarta.inject.Inject
import kotlinx.coroutines.future.await
import kotlinx.coroutines.runBlocking
import org.junit.jupiter.ap... | 25 | null | 0 | 2 | 81830ed91f528043da381233bae4d31eaffdaccc | 1,711 | kotlin-blogpost-engine | MIT License |
app/src/main/kotlin/com/munzenberger/feed/app/Loggers.kt | bmunzenb | 12,436,966 | false | {"Kotlin": 87889} | package com.munzenberger.feed.app
import com.munzenberger.feed.Logger
import java.io.File
import java.io.PrintWriter
import java.io.StringWriter
class CompositeLogger : Logger {
private val loggers = mutableListOf<Logger>()
fun add(logger: Logger) {
loggers.add(logger)
}
override fun print(... | 1 | Kotlin | 0 | 2 | cd5f726f137df26b303a00feff5182ae3c7d898b | 1,337 | feed-buddy | Apache License 2.0 |
core/mobile/src/main/kotlin/com/boswelja/smartwatchextensions/core/ui/theme/Color.kt | boswelja | 103,805,743 | false | {"Kotlin": 496889} | @file:Suppress("MagicNumber")
package com.boswelja.smartwatchextensions.core.ui.theme
import androidx.compose.ui.graphics.Color
/**
* The alpha used for disabled components. Text, buttons etc.
*/
const val DisabledAlpha = 0.38f
internal val md_theme_light_primary = Color(0xFF9a25ae)
internal val md_theme_light_onP... | 11 | Kotlin | 0 | 25 | ec7e9ad4c98e18a9a4b5c07f1d39f6c0b1fbfd65 | 3,402 | SmartwatchExtensions | Apache License 2.0 |
backend/src/main/kotlin/hr/fer/or/service/TeamService.kt | mdodik1609 | 712,130,338 | false | {"Kotlin": 4483} | package hr.fer.or.service
import hr.fer.or.repository.TeamRepository
import jakarta.inject.Singleton
@Singleton
class TeamService(
private val teamRepository: TeamRepository
) {
suspend fun getAllTeams() = teamRepository.findAll()
} | 0 | Kotlin | 0 | 0 | e8bfdb883606651f70d67fd1fb9ca0be6d4b765c | 243 | otvorenoRac | MIT License |
bookingservice-common/src/main/kotlin/models/meeting/BsMeetingPermissions.kt | akopovab | 638,664,041 | false | null | package ru.otuskotlin.public.bookingservice.common.models.meeting
enum class BsMeetingPermissions {
DELETE, READ, UPDATE
} | 0 | Kotlin | 0 | 0 | 7d837698d96892fe5ac9369ee069e1f7913855d3 | 128 | ok-bookingservice | Apache License 2.0 |
src/main/kotlin/com/zhenai/lib/idea/config/ZhenaiSmartFoxProjectConfig.kt | dengqu | 202,319,834 | false | {"Roff": 9456617, "Java": 249902, "Kotlin": 173095, "Assembly": 12227, "FreeMarker": 729} | /*
* Copyright 1999-2017 Alibaba Group.
*
* 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 a... | 0 | Roff | 1 | 5 | c564aad5211bd45da11ab81f0b32fd31c0ed9ea3 | 1,548 | KotlinLintPlugin | Apache License 2.0 |
src/test/kotlin/org/yanislavcore/konverter/KonverterTest.kt | Yanislavcore | 206,337,227 | false | null | package org.yanislavcore.konverter
import io.kotlintest.properties.assertAll
import io.kotlintest.shouldNotBe
import io.kotlintest.shouldThrowExactly
import io.kotlintest.specs.StringSpec
import org.amshove.kluent.shouldBe
import org.amshove.kluent.shouldEqual
import org.amshove.kluent.shouldMatchAllWith
class Konver... | 1 | Kotlin | 0 | 3 | b8192079acba6f80eeb63b26587b65572a85674e | 5,558 | konverter | MIT License |
src/test/resources/test-compile-data/jvm/kotlin-web-site/constructing-collections/e10792dd9229343ed962f1f8bd33cb3f.4.kt | AlexanderPrendota | 219,478,945 | false | null | fun main() {
//sampleStart
val sourceList = mutableListOf(1, 2, 3)
val referenceList = sourceList
referenceList.add(4)
println("Source size: ${sourceList.size}")
//sampleEnd
} | 14 | Kotlin | 47 | 89 | 95326951087813b6dea8b5ef4234fc06f252bd80 | 191 | kotlin-compiler-server | Apache License 2.0 |
plugin/src/main/kotlin/io/github/gmazzo/docker/compose/DockerComposeExtension.kt | gmazzo | 681,085,796 | false | {"Kotlin": 39265} | package io.github.gmazzo.docker.compose
import org.gradle.api.NamedDomainObjectContainer
interface DockerComposeExtension : DockerSettings, DockerComposeSettings {
/**
* The registered [DockerComposeService] services
*/
val services: NamedDomainObjectContainer<DockerComposeSpec>
}
| 0 | Kotlin | 0 | 2 | ab7598e425b0a7c271c7eb1df8e71aaf1b95eeb6 | 304 | gradle-docker-compose-plugin | MIT License |
compose/src/main/java/com/onlinepayments/client/kotlin/exampleapp/compose/extensions/List.kt | wl-online-payments-direct | 781,368,077 | false | {"Kotlin": 240164} | /**
* Copyright © 2024 Global Collect Services. All rights reserved.
*/
package com.onlinepayments.client.kotlin.exampleapp.compose.extensions
fun <T> concatenate(vararg lists: List<T>): List<T> {
return listOf(*lists).flatten()
}
| 0 | Kotlin | 0 | 0 | 9c330939686fa56be0eb138a3db079843c2e76f5 | 239 | sdk-client-android-example-kotlin | Apache License 2.0 |
android/src/main/java/com/reactnativepiwikprosdk/PiwikProSdkPackage.kt | PiwikPRO | 413,420,764 | false | {"TypeScript": 82775, "Objective-C": 36999, "Kotlin": 22161, "Java": 6422, "JavaScript": 1476, "Ruby": 944, "Shell": 149, "C": 103, "Swift": 63} | package com.reactnativepiwikprosdk
import com.facebook.react.ReactPackage
import com.facebook.react.bridge.NativeModule
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.uimanager.ViewManager
class PiwikProSdkPackage : ReactPackage {
override fun createNativeModules(reactContext:... | 2 | TypeScript | 9 | 0 | 2833f10922bfe18a9795c8bee9e704086f599ec6 | 567 | react-native-piwik-pro-sdk | MIT License |
api/src/test/kotlin/pl/ejdev/spotifyplugin/api/service/MockSpotifyApi.kt | Emil-Wozniak-Shared | 650,676,730 | false | null | package pl.ejdev.spotifyplugin.api.service
import io.mockk.every
import io.mockk.mockkConstructor
import io.mockk.mockkStatic
import se.michaelthelin.spotify.SpotifyApi
import se.michaelthelin.spotify.requests.data.AbstractDataRequest
internal inline fun <reified REQUEST : AbstractDataRequest<BODY>, reified BODY> moc... | 0 | Kotlin | 0 | 0 | a67d3c5266b3d5bcff5a093df23a5b7435fddae4 | 723 | Intellij-Spotify-Plugin | MIT License |
fisheye_kotlin/app/src/main/java/com/example/fisheye/MainActivity.kt | lipoyang | 763,841,942 | false | {"Rust": 12202, "C#": 9903, "Haskell": 9503, "Python": 9345, "Java": 9179, "Kotlin": 8695, "C++": 6892, "Ruby": 6283, "JavaScript": 5569, "C": 3584, "Processing": 2643, "CMake": 2642, "HTML": 1350, "Batchfile": 122} | package com.example.fisheye
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
// FisheyeViewをメイン画面に配置
val fisheyeView = FisheyeView(thi... | 0 | Rust | 0 | 0 | f9106714bd34c3490a04b0adce83849ed751cd79 | 416 | fisheye_examples | Apache License 2.0 |
src/commonMain/kotlin/character/classes/hunter/talents/ImprovedArcaneShot.kt | marisa-ashkandi | 332,658,265 | false | null | package character.classes.hunter.talents
import character.Talent
class ImprovedArcaneShot(currentRank: Int) : Talent(currentRank) {
companion object {
const val name = "Improved Arcane Shot"
}
override val name: String = Companion.name
override val maxRank: Int = 5
fun arcaneShotCooldownR... | 21 | Kotlin | 11 | 25 | 9cb6a0e51a650b5d04c63883cb9bf3f64057ce73 | 381 | tbcsim | MIT License |
platform/lang-impl/src/com/intellij/ide/navigationToolbar/experimental/NewToolbarRootPaneExtension.kt | serrres | 329,582,251 | true | null | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.navigationToolbar.experimental
import com.intellij.ide.ui.ToolbarSettings
import com.intellij.ide.ui.UISettings
import com.intellij.ide.ui.UISettings.Com... | 0 | null | 0 | 0 | 39edb08ca69c2b096ecca0f0ec26a760acb8f976 | 6,218 | intellij-community | Apache License 2.0 |
shoring/compat/src/main/kotlin/com/panopset/compat/Listop.kt | panopset | 762,886,104 | false | {"Kotlin": 605926, "Java": 27179, "Shell": 11146, "CSS": 4625, "JavaScript": 4084, "Batchfile": 3151, "HTML": 1311} | package com.panopset.compat
class Listop {
fun filter(input: String, filter: String): String {
val sb = StringBuffer()
FOR@ for (inp in Stringop.stringToList(input)) {
for (fs in Stringop.stringToList(filter)) {
if (inp == fs) {
continue@FOR
... | 0 | Kotlin | 0 | 0 | 4fb502f573b40ab05bf936a57948586a3b02e678 | 458 | pan | MIT License |
Pelp/app/src/main/java/com/PelpCrews/NavGraph.kt | linpeterk | 468,955,365 | false | {"Kotlin": 1250910, "Shell": 2388, "Java": 40} | package com.PelpCrews
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import androidx.navigation.NavType
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.navArgument
@Composable
fun SetupNavGraph(
navControl... | 0 | Kotlin | 0 | 0 | 09b576f0b4e646f49c75b9273aa27f2eab6e6ee4 | 2,154 | Pelpers | Apache License 2.0 |
src/main/kotlin/com/example/gui/buttons/ButtonFeature.kt | u9g | 557,349,138 | false | {"Kotlin": 190433, "Java": 4574} | package com.example.gui.buttons
import com.example.core.Feature
import net.minecraft.client.gui.GuiButton
/**
* Create a button that is assigned a feature (to toggle/change color etc.).
*/
open class ButtonFeature internal constructor(buttonId: Int, x: Int, y: Int, buttonText: String?, var feature: Feature) // The ... | 0 | Kotlin | 0 | 0 | 24da64379848220297ec15095df6b54d41fbb5b1 | 394 | sba-gui | The Unlicense |
Application-Challenge/【立正队】忘忧/VMMatchAndroid/app/src/main/java/com/vmloft/develop/app/match/ui/main/home/MatchActivity.kt | AgoraIO-Community | 355,093,340 | false | {"Ignore List": 167, "Markdown": 122, "Gradle": 122, "Java Properties": 55, "Shell": 53, "Batchfile": 22, "Proguard": 69, "Java": 1189, "XML": 1726, "INI": 44, "C": 158, "C++": 988, "CMake": 25, "HTML": 797, "CSS": 246, "JavaScript": 1271, "PHP": 209, "SVG": 100, "Text": 103, "YAML": 78, "Python": 413, "JSON": 363, "Ed... | package com.vmloft.develop.app.match.ui.main.home
import android.widget.FrameLayout
import android.widget.ImageView
import com.alibaba.android.arouter.facade.annotation.Route
import com.vmloft.develop.app.match.R
import com.vmloft.develop.app.match.common.SignManager
import com.vmloft.develop.app.match.databinding.Ac... | 1 | null | 1 | 1 | 558c96cf0f029fb02188ca83f60920c89afd210f | 5,629 | RTE-2021-Innovation-Challenge | MIT License |
src/main/kotlin/me/untouchedodin0/kotlin/menu/Menu.kt | bobooski | 536,825,258 | false | {"YAML": 5, "Gradle": 2, "Shell": 1, "Markdown": 1, "Batchfile": 1, "Text": 3, "Ignore List": 1, "Kotlin": 6, "Java": 67, "Java Properties": 4, "INI": 1} | package me.untouchedodin0.kotlin.menu
import me.untouchedodin0.privatemines.PrivateMines
import me.untouchedodin0.privatemines.utils.ActionUtils
import me.untouchedodin0.privatemines.utils.Utils
import org.bukkit.Bukkit
import org.bukkit.ChatColor
import org.bukkit.Material
import org.bukkit.entity.Player
import org.b... | 1 | null | 1 | 1 | 412ef612ee4af7d20bbc8a8c2c664c0e1358233b | 2,960 | PrivateMines | MIT License |
sample/app/src/main/java/com/google/android/jacquard/sample/places/PlacesDetailsViewModel.kt | gildardoperez | 624,963,235 | true | {"Text": 2, "Markdown": 16, "Gradle": 8, "Ignore List": 5, "Java Properties": 2, "XML": 138, "Shell": 2, "Proguard": 2, "Java": 251, "JSON": 4, "YAML": 1, "SVG": 2, "SCSS": 1, "JavaScript": 1, "INI": 1, "Kotlin": 100} | /*
*
*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 0 | null | 0 | 0 | f88ec2dea9813203a4ed5d70646915c4d5651d6e | 3,532 | JacquardSDKAndroid | Apache License 2.0 |
time-service/app/src/test/kotlin/com/example/marvel/domain/record/RecordListingViewTest.kt | soberich | 194,400,851 | false | null | package com.example.marvel.domain.record
import com.example.marvel.api.RecordType
import io.mockk.MockKAnnotations
import io.mockk.impl.annotations.MockK
import java.time.Duration
import java.time.LocalDate
import org.junit.Before
class RecordListingViewTest {
private lateinit var cut: RecordListingView
@Moc... | 0 | Kotlin | 1 | 6 | f737108d2fb4fdab4e003ba7aeae252e557d7b1f | 713 | marvel | MIT License |
time-service/app/src/test/kotlin/com/example/marvel/domain/record/RecordListingViewTest.kt | soberich | 194,400,851 | false | null | package com.example.marvel.domain.record
import com.example.marvel.api.RecordType
import io.mockk.MockKAnnotations
import io.mockk.impl.annotations.MockK
import java.time.Duration
import java.time.LocalDate
import org.junit.Before
class RecordListingViewTest {
private lateinit var cut: RecordListingView
@Moc... | 0 | Kotlin | 1 | 6 | f737108d2fb4fdab4e003ba7aeae252e557d7b1f | 713 | marvel | MIT License |
android/app/src/main/kotlin/com/example/qrGenerator/MainActivity.kt | jafri-zz | 336,109,959 | true | {"Dart": 28953, "Swift": 404, "Kotlin": 128, "Objective-C": 38} | package com.example.qrGenerator
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | 9b14beb96671c39bef30b342562e17ad734ef636 | 128 | QR-Generator | MIT License |
android/app/src/main/kotlin/com/example/qrGenerator/MainActivity.kt | jafri-zz | 336,109,959 | true | {"Dart": 28953, "Swift": 404, "Kotlin": 128, "Objective-C": 38} | package com.example.qrGenerator
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | 9b14beb96671c39bef30b342562e17ad734ef636 | 128 | QR-Generator | MIT License |
oops/src/main/kotlin/io/nichijou/oops/sp/EnumValuePref.kt | iota9star | 148,626,401 | false | null | package io.nichijou.oops.sp
import android.content.SharedPreferences
import kotlin.reflect.KClass
import kotlin.reflect.KProperty
class EnumValuePref<T : Enum<*>>(enumClass: KClass<T>, private val value: T, override val key: String) : DelegatePref<T>() {
private val enumConstants = enumClass.java.enumConstants
o... | 0 | Kotlin | 1 | 11 | 81cfcfe281cd659e07c14defcafbcaee19cfed19 | 755 | oops-android-kt | Apache License 2.0 |
app/src/main/java/baldufal/goldesel/model/Converter.kt | baldufal | 598,668,778 | false | null | package baldufal.goldesel.model
import androidx.room.TypeConverter
import java.time.LocalDateTime
import java.time.ZoneOffset
class Converters {
@TypeConverter
fun long2ldt(value: Long): LocalDateTime {
return LocalDateTime.ofEpochSecond(value, 0, ZoneOffset.UTC)
}
@TypeConverter
fun ldt2... | 0 | Kotlin | 0 | 0 | 54c5820faecab4e728f0f306011a8c5a4f74127f | 683 | Goldesel | MIT License |
mvi-core/src/main/kotlin/ru/surfstudio/mvi/core/reducer/Reducer.kt | surfstudio | 450,378,728 | true | {"Kotlin": 115667} | /*
* Copyright 2022 Surf LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 3 | Kotlin | 0 | 12 | c7f8789fd7c2d4b66f336a4196bd6ebe90669014 | 1,805 | surf-mvi-flow | Apache License 2.0 |
HelloJetpack/rally/src/androidTest/java/com/example/rally/RallyNavHostTest.kt | ETSEmpiricalStudyKotlinAndroidApps | 496,360,419 | false | {"Kotlin": 718685, "Java": 174794} | package com.example.rally
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.onNodeWithContentDescription
import androidx.compose.ui.test.performClick
import androidx.compose.ui.test.performScrollTo
import androidx.navigation.NavHo... | 0 | null | 0 | 0 | 147caab2622d15c52cd5b8cf21779c73481c9020 | 2,307 | android-dev | MIT License |
app/src/main/java/uk/co/sentinelweb/cuer/app/service/cast/YoutubeCastServiceManager.kt | sentinelweb | 220,796,368 | false | null | package uk.co.sentinelweb.cuer.app.service.cast
import android.app.Application
import android.content.Intent
class YoutubeCastServiceManager constructor(
private val app: Application
) {
fun start() {
if (!isRunning()) {
app.startForegroundService(intent())
}
}
fun stop()... | 90 | Kotlin | 0 | 2 | a3a99bf0950cfe3f4dcdecd331fad746067138e7 | 616 | cuer | Apache License 2.0 |
features/feature-flicker-domain/src/main/java/com/mctech/showcase/feature/flicker_domain/interactions/SaveTagCase.kt | MayconCardoso | 243,645,089 | false | null | package com.mctech.showcase.feature.flicker_domain.interactions
import com.mctech.library.logger.Logger
import com.mctech.showcase.feature.flicker_domain.service.FlickerTagHistoryService
/**
* @author <NAME> on 2020-03-01.
*/
class SaveTagCase(
private val service: FlickerTagHistoryService,
private val logg... | 0 | Kotlin | 0 | 2 | aad7d8abac6b79416a52ebc76e0d23a574715de2 | 484 | Modularized-Flicker-Showcase | Apache License 2.0 |
app/src/main/java/com/kohne/memoryleaks/adapterleak/ListAdapterMemoryLeakFragment.kt | maxkohne | 319,732,680 | false | {"Kotlin": 21446} | package com.kohne.memoryleaks.adapterleak
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import com.kohne.memoryleaks.MainNavigationListener
import com.kohne.memoryleaks.R
import com.kohne.memoryleaks.databinding.ListAdapterMemoryLeakFragmentBinding
import com.kohne.memoryleaks... | 0 | Kotlin | 1 | 9 | ec1435760776480aa2c4ab24d1cf32f611bd99f4 | 1,415 | Android-Memory-Leaks | Apache License 2.0 |
src/main/kotlin/pcf/crskdev/koonsplash/api/Api.kt | criske | 297,303,213 | false | null | /*
* Copyright (c) 2020. Pela Cristian
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, pu... | 13 | Kotlin | 0 | 0 | 463d9cf9cda3a092a1abf1a3301cdc184eee5c97 | 2,943 | koonsplash | MIT License |
app/src/main/java/id/ridhaaf/androidanatomy/MessageFragment.kt | RidhaAF | 359,387,536 | false | null | package id.ridhaaf.androidanatomy
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import id.ridhaaf.androidanatomy.databinding.FragmentMessageBinding
// TODO: R... | 0 | Kotlin | 0 | 0 | b11b40c967acba1bffbd91efde59f6310b489a0a | 2,476 | AndroidAnatomy | MIT License |
project/src/main/kotlin/cga/exercise/components/gameobjects/Collision.kt | nthometzki | 280,411,694 | true | {"Kotlin": 147371, "GLSL": 20259} | package cga.exercise.components.gameobjects
class Collision (var x1: Float, var y1: Float, var z1: Float, var x2: Float, var y2: Float, var z2: Float) {
fun checkPointCollision(check_x: Float, check_y: Float, check_z: Float) : Boolean {
if (check_x >= x1 && check_x <= x2
&& check_y >= y1 &... | 0 | Kotlin | 0 | 0 | 09f966e074ad728daf9b9b704087afe41b9e5e4a | 452 | CGAProject | MIT License |
app/src/test/java/com/vmenon/mpo/core/work/UpdateAllShowsWorkerTest.kt | hitoshura25 | 91,402,384 | false | {"Kotlin": 574795, "HTML": 14355, "Gherkin": 11761, "Shell": 4889, "Ruby": 4474} | package com.vmenon.mpo.core.work
import android.content.Context
import androidx.work.ListenableWorker
import androidx.work.WorkerParameters
import androidx.work.impl.utils.taskexecutor.TaskExecutor
import com.vmenon.mpo.core.usecases.Interactors
import com.vmenon.mpo.di.AppComponentProvider
import com.vmenon.mpo.test.... | 14 | Kotlin | 0 | 1 | 81e767df18899bf9556cfe323322f0ba41343752 | 1,874 | Media-Player-Omega-Android | Apache License 2.0 |
client/app/src/main/java/com/glodanif/spgt/MainActivity.kt | glodanif | 128,554,938 | false | null | package com.glodanif.spgt
import android.graphics.Color
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.support.v7.app.AppCompatDelegate
import android.view.MotionEvent
import android.view.ViewGroup
import android.widget.FrameLayout
import android.widget.ImageButton
import andro... | 0 | Kotlin | 0 | 1 | 4952b3ca0530086884e00601df05e56069bdde9e | 6,836 | SPGT | Apache License 2.0 |
app/src/main/java/data/DrawingRepository.kt | th3kumar | 639,369,031 | false | null | package data
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
class DrawingRepository(private val drawingDao: DrawingDao) {
suspend fun getAllDrawings(): List<Drawing> = withContext(Dispatchers.IO) {
drawingDao.getAllDrawings()
}
suspend fun getDrawingById(drawingId: In... | 0 | Kotlin | 0 | 0 | 894351d6af167026898b0270f5c767862f785800 | 1,348 | doda_App | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.