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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ontrack-extension-workflows/src/test/java/net/nemerosa/ontrack/extension/workflows/AbstractWorkflowTestSupport.kt | nemerosa | 19,351,480 | false | {"Git Config": 1, "Gradle Kotlin DSL": 67, "Markdown": 46, "Ignore List": 22, "Java Properties": 3, "Shell": 9, "Text": 3, "Batchfile": 2, "Groovy": 145, "JSON": 31, "JavaScript": 792, "JSON with Comments": 4, "GraphQL": 79, "Kotlin": 3960, "Java": 649, "HTML": 269, "PlantUML": 25, "AsciiDoc": 288, "XML": 9, "YAML": 33... | package net.nemerosa.ontrack.extension.workflows
import net.nemerosa.ontrack.graphql.AbstractQLKTITSupport
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.test.context.TestPropertySource
@TestPropertySource(
properties = [
"net.nemerosa.ontrack.extension.workflows.... | 44 | Kotlin | 25 | 96 | 759f17484c9b507204e5a89524e07df871697e74 | 555 | ontrack | MIT License |
src/main/kotlin/it/pureorigins/common/Json.kt | PureOrigins | 460,994,982 | false | {"Kotlin": 35848} | package it.pureorigins.common
import kotlinx.serialization.*
import kotlinx.serialization.builtins.ListSerializer
import kotlinx.serialization.descriptors.SerialDescriptor
import kotlinx.serialization.encoding.Decoder
import kotlinx.serialization.encoding.Encoder
import kotlinx.serialization.json.Json
import org.bukki... | 0 | Kotlin | 0 | 0 | f6d617487be4485701350e71b5374e5f08627059 | 4,212 | PureCommon | MIT License |
rxhive-core/src/test/kotlin/com/sksamuel/rxhive/schemas/FromHiveSchemaTest.kt | sksamuel | 13,625,531 | false | null | package com.sksamuel.rxhive.schemas
import com.sksamuel.rxhive.ArrayType
import com.sksamuel.rxhive.BooleanType
import com.sksamuel.rxhive.CharType
import com.sksamuel.rxhive.DateType
import com.sksamuel.rxhive.DecimalType
import com.sksamuel.rxhive.Float32Type
import com.sksamuel.rxhive.Float64Type
import com.sksamue... | 0 | Kotlin | 46 | 318 | a604ef62ae6bcbd148594b51ed52c4cee910c099 | 3,872 | akka-patterns | Apache License 2.0 |
skeleton/src/main/kotlin/com/tombspawn/skeleton/di/CommandLineModule.kt | aman400 | 166,827,316 | false | null | package com.tombspawn.skeleton.di
import com.tombspawn.base.common.Command
import com.tombspawn.skeleton.commandline.getCommandExecutor
import com.tombspawn.skeleton.di.qualifiers.AppDir
import com.tombspawn.skeleton.di.qualifiers.CloneDir
import com.tombspawn.skeleton.di.qualifiers.GradlePath
import com.tombspawn.ske... | 1 | Kotlin | 0 | 1 | 0a21c7d176f022585bda404e735a718f5d7ffdac | 1,286 | tombspawn | Apache License 2.0 |
buildSrc/src/main/kotlin/plugin/SigningConfigPlugin.kt | tapptitude | 462,275,098 | false | null | package plugin
import com.android.build.gradle.AppExtension
import com.android.build.gradle.internal.dsl.SigningConfig
import org.gradle.api.Plugin
import org.gradle.api.Project
import java.io.File
import java.io.FileInputStream
import java.util.Properties
class SigningConfigPlugin : Plugin<Project> {
override fu... | 8 | Kotlin | 0 | 4 | ca3dafc110fe2370eb088a73421d8045bdb89c91 | 1,917 | AndroidKotlinMVVMTemplate | MIT License |
projects/Kotlin/src/com/chronoxor/test/fbe/Sender.kt | valmac | 204,899,513 | true | {"C++": 4107551, "Yacc": 20685, "Lex": 13771, "CMake": 8686, "C": 80} | // Automatically generated by the Fast Binary Encoding compiler, do not modify!
// https://github.com/chronoxor/FastBinaryEncoding
// Source: test.fbe
// Version: 1.3.0.0
@file:Suppress("UnusedImport", "unused")
package com.chronoxor.test.fbe
// Fast Binary Encoding com.chronoxor.test sender
@Suppress("MemberVisibil... | 0 | C++ | 0 | 0 | 5e9c2f49de658473b225b730f2683a799fd2ed22 | 1,435 | FastBinaryEncoding | MIT License |
app/src/main/java/com/animestudios/animeapp/ui/screen/profile/page/theme/ThemeScreen.kt | Sozo-app | 702,850,697 | false | {"Kotlin": 789146} | package com.animestudios.animeapp.ui.screen.profile.page.theme
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.animestudios.animeapp.databindi... | 0 | Kotlin | 5 | 22 | 50c65f924489bb94632b40ab840a15377e846686 | 2,181 | Sozo | MIT License |
app/src/main/java/com/terrafarms/terrafarms/data/remote/firebase/AuthenticationDataSource.kt | Terrafarms | 641,462,443 | false | null | package com.terrafarms.terrafarms.data.remote.firebase
import com.google.firebase.auth.AuthResult
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.auth.FirebaseUser
import com.google.firebase.auth.GoogleAuthProvider
import com.google.firebase.auth.UserProfileChangeRequest
import com.google.fireb... | 0 | Kotlin | 0 | 0 | 56771ad4dab3c5c60a84cf98fe8062351e178d37 | 2,596 | bangkit-mobile-development | MIT License |
coil-base/src/test/java/coil/disk/SimpleTestDispatcher.kt | coil-kt | 201,684,760 | false | {"Kotlin": 911072, "Shell": 2187} | package coil.disk
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Runnable
import java.util.concurrent.ConcurrentLinkedQueue
import java.util.concurrent.atomic.AtomicInteger
import kotlin.coroutines.CoroutineContext
/**
* A simple test dispatcher that queues all tasks and executes one when [r... | 43 | Kotlin | 620 | 9,812 | 051e0b20969ff695d69b06cd72a1fdc9e504bf68 | 905 | coil | Apache License 2.0 |
app/src/main/java/org/freeandroidtools/trendinggithub/ui/splash/SplashActivity.kt | surengrig | 122,894,253 | false | null | package org.freeandroidtools.trendinggithub.ui.splash
import android.content.Intent
import android.os.Bundle
import androidx.lifecycle.ViewModelProviders
import org.freeandroidtools.trendinggithub.R
import org.freeandroidtools.trendinggithub.helpers.Success
import org.freeandroidtools.trendinggithub.helpers.observe
im... | 3 | Kotlin | 0 | 0 | 2dd85880f5f050dd50f95f631a8a4c8d2c10720b | 1,136 | github_trending | Apache License 2.0 |
app/src/main/java/org/freeandroidtools/trendinggithub/ui/splash/SplashActivity.kt | surengrig | 122,894,253 | false | null | package org.freeandroidtools.trendinggithub.ui.splash
import android.content.Intent
import android.os.Bundle
import androidx.lifecycle.ViewModelProviders
import org.freeandroidtools.trendinggithub.R
import org.freeandroidtools.trendinggithub.helpers.Success
import org.freeandroidtools.trendinggithub.helpers.observe
im... | 3 | Kotlin | 0 | 0 | 2dd85880f5f050dd50f95f631a8a4c8d2c10720b | 1,136 | github_trending | Apache License 2.0 |
executor/src/main/kotlin/hu/bme/aut/executor/feature/pipelines/controller/PipelineApi.kt | matusekma | 339,406,251 | false | null | package hu.bme.aut.executor.feature.pipelines.controller
import hu.bme.aut.executor.feature.pipelines.dto.PipelineResponse
import hu.bme.aut.executor.feature.pipelines.dto.PipelineResultResponse
import hu.bme.aut.executor.feature.pipelines.dto.PipelineStartRequest
import hu.bme.aut.executor.feature.uploads.dto.UploadR... | 0 | Kotlin | 0 | 0 | 3899ced4bf829524beb085599e553069324710e8 | 936 | text-analyzer | MIT License |
platform/src/main/kotlin/uk/gov/gdx/datashare/repositories/SupplierRepository.kt | alphagov | 549,031,617 | false | null | package uk.gov.gdx.datashare.repositories
import org.javers.spring.annotation.JaversSpringDataAuditable
import org.springframework.data.repository.CrudRepository
import org.springframework.stereotype.Repository
import java.util.*
@Repository
@JaversSpringDataAuditable
interface SupplierRepository : CrudRepository<Sup... | 11 | Kotlin | 4 | 14 | c209bf7e0ae1f973d11d1437b3b6d43b30f3212c | 388 | di-data-life-events-platform | MIT License |
PerformanceCodelab/app/src/main/java/com/compose/performance/MainActivity.kt | android | 290,421,574 | false | {"Kotlin": 678026, "Shell": 1224} | /*
* Copyright 2024 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 28 | Kotlin | 655 | 1,442 | c986b5afee85c5ca4036bb947e5c2b332aea01dd | 6,909 | codelab-android-compose | Apache License 2.0 |
app/src/main/java/com/example/cookit/ui/screens/favorite/FavoriteRecipeViewModel.kt | Renekakpo | 605,760,439 | false | null | package com.example.cookit.ui.screens.favorite
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.cookit.data.offline.RecipesRepository
import com.example.cookit.models.Recipe
import kotlinx.coroutines.flow.SharingStarted
import kotlinx.coroutines.flow.StateFlow
import kotl... | 0 | Kotlin | 0 | 0 | 12ed9e17582b603c561d8a7ada76b0ff51e2ac48 | 1,027 | cookIt | MIT License |
src/test/kotlin/ar/edu/unq/services/runner/MongoSessionFactoryProviderTest.kt | CristianGonzalez1980 | 340,727,280 | false | {"HTML": 1029458, "Kotlin": 208151, "JavaScript": 63660, "Gherkin": 25692, "CSS": 4371} | package ar.edu.unq.services.runner
import org.junit.Before
import org.junit.Test
import kotlin.test.assertEquals
import kotlin.test.assertNotEquals
import kotlin.test.assertNotNull
import kotlin.test.assertNull
class MongoSessionFactoryProviderTest {
@Before
fun setUp(){
}
@Test
fun testSePuedeOb... | 0 | HTML | 0 | 0 | 92ff7629378d46529905f73a79bd40dca1ba7fbc | 1,866 | sietelotos-bk | The Unlicense |
tokenview-api/src/main/kotlin/io/mokuan/tokenview/api/service/blockchain/impl/BlockchainServiceImpl.kt | squirrel-explorer | 680,471,556 | false | null | /**
* Implementation for all blockchain APIs (combined)
*
* @copyright Copyright 2022 - 2023, mokuan.io
* @license MIT
*/
package io.mokuan.tokenview.api.service.blockchain.impl
import io.mokuan.tokenview.api.bean.blockchain.btc.BlockHeaderBean
import io.mokuan.tokenview.api.service.DefaultService
... | 0 | Kotlin | 0 | 0 | 87f2e0f91b5ee3b82a893fa5660948fc6105de20 | 1,389 | tokenview-kotlin-api | MIT License |
snark-html/src/jvmMain/kotlin/space/kscience/snark/html/PageContext.kt | SciProgCentre | 507,609,502 | false | {"Kotlin": 191863, "Java": 82765, "JavaScript": 829, "Shell": 722, "Python": 566, "Dockerfile": 542} | package space.kscience.snark.html
import io.ktor.http.URLBuilder
import io.ktor.http.Url
import io.ktor.http.appendPathSegments
import space.kscience.dataforge.context.Context
import space.kscience.dataforge.context.ContextAware
import space.kscience.dataforge.data.DataTree
import space.kscience.dataforge.meta.Meta
im... | 0 | Kotlin | 0 | 5 | fb115e1ecbbb63adf87f18e0b3209f0ff6da1303 | 2,573 | snark | Apache License 2.0 |
backend-lib/src/main/java/cash/z/ecc/android/sdk/internal/model/ZcashProtocol.kt | Electric-Coin-Company | 151,763,639 | false | {"Kotlin": 1175396, "Rust": 121787} | package cash.z.ecc.android.sdk.internal.model
/**
* An enumeration of supported Zcash protocols.
*/
@Suppress("MagicNumber")
enum class ZcashProtocol {
TRANSPARENT {
override val poolCode = 0
},
SAPLING {
override val poolCode = 2
},
ORCHARD {
override val poolCode = 3
... | 182 | Kotlin | 9 | 5 | 912117c5da39b36570ddd8cc5e8e6a8e574a7f24 | 1,031 | zcash-android-wallet-sdk | MIT License |
Android/MagRss/app/src/main/java/com/example/mydomain/magrss/viewmodel/TrainPageViewModelFactory.kt | gsalinaslopez | 328,641,757 | false | {"Jupyter Notebook": 32209013, "HTML": 1946178, "Python": 275619, "Kotlin": 33007, "JavaScript": 12338} | package com.example.mydomain.magrss.viewmodel
import android.content.Context
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
class TrainPageViewModelFactory(val context: Context?): ViewModelProvider.NewInstanceFactory() {
@Suppress("UNCHECKED_CAST")
override fun <T : ViewModel... | 0 | Jupyter Notebook | 0 | 4 | df8d7cc4a0a871a4686977e673e04a0cf1e5ece5 | 411 | MagRSS | MIT License |
src/main/kotlin/com/gentooway/blog/service/CommentService.kt | acmilanfan | 167,793,213 | false | null | package com.gentooway.blog.service
import com.gentooway.blog.errors.CommentNotFoundException
import com.gentooway.blog.errors.ExceptionDescription
import com.gentooway.blog.errors.ExceptionDescription.Companion.COMMENT_NOT_FOUND
import com.gentooway.blog.errors.PostNotFoundException
import com.gentooway.blog.json.Page... | 0 | Kotlin | 0 | 0 | 2b059d8e8c67d98fdf50e03ce3d85de9dbadee21 | 2,357 | blog-backend-kotlin | MIT License |
app/src/main/java/com/harrypotter/coredata/UrlProviderImpl.kt | mnlmato | 625,648,336 | false | {"Kotlin": 115492} | package com.harrypotter.coredata
import javax.inject.Inject
class UrlProviderImpl @Inject constructor() : UrlProvider {
override val baseUrl = BASE_URL
}
private const val BASE_URL = "https://hp-api.onrender.com/api/"
| 0 | Kotlin | 0 | 3 | db8c2dfb4b841dae8effa594c7e0f73d41448b17 | 225 | harrypotter | The Unlicense |
photos/src/main/java/com/snehal/android/photosapp/di/DataModule.kt | snehalgongle | 604,774,358 | false | null | package com.snehal.android.photosapp.di
import com.snehal.android.photosapp.data.CoincapService
import com.snehal.android.photosapp.data.PHOTOS_ENDPOINT_HOST
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import retrof... | 0 | Kotlin | 0 | 0 | 836d2c42be40bb5360aba304f2e56054bab61fbd | 754 | photo-app | MIT License |
core/src/commonMain/kotlin/kase/progress/StageProgress.kt | aSoft-Ltd | 579,551,052 | false | {"Kotlin": 36627} | @file:JsExport
@file:Suppress("NON_EXPORTABLE_TYPE")
package kase.progress
import kotlinx.JsExport
interface StageProgress : Stage, Progress | 1 | Kotlin | 0 | 1 | 3a9301476094a96c36497e3d5412ade6052863e8 | 143 | kase | MIT License |
app/src/main/java/com/joshuatz/nfceinkwriter/MainActivity.kt | joshuatz | 364,138,857 | false | null | package com.joshuatz.nfceinkwriter
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.Color
import android.net.Uri
import android.os.Bundle
import android.util.Log
import android.widget.Button
import android.widget.ImageView
i... | 1 | Kotlin | 2 | 8 | 2fe5b01a48dddd5beba2d96cb858a1b927feb45c | 5,780 | nfc-epaper-writer | MIT License |
app/src/main/kotlin/dime/android/todo/db/Task.kt | puenggithub | 300,380,211 | false | {"Java": 999663, "Kotlin": 38643, "HTML": 6501} | package dime.android.todo.db
/**
* Represents a single Task
*
* Created by dime on 06/02/16.
*/
class Task(var id: Int?, var name: String, var priorityInt: Int, var completedInt: Int) {
// The enum representing the priority
enum class Priority(val integer: Int) { LOW(0), NORMAL(1), HIGH(2) }
// The p... | 0 | Java | 0 | 0 | 31921498b5b2ec0447f311064a55393804dce733 | 763 | AndroidToDoTest | Apache License 2.0 |
canvas2_lp/src/main/java/com/angcyo/canvas2/laser/pecker/dialog/dslitem/VarNumberValueItem.kt | angcyo | 229,037,684 | false | {"Kotlin": 3469834, "JavaScript": 5542, "HTML": 1598} | package com.angcyo.canvas2.laser.pecker.dialog.dslitem
import com.angcyo.item.DslIncrementItem
/**
* 当前的序号
* @author <a href="mailto:<EMAIL>">angcyo</a>
* @since 2023/09/05
*/
class VarNumberValueItem : DslIncrementItem() | 0 | Kotlin | 4 | 4 | 0a8444a72af33f18852fe3e873ad1dd650ba97eb | 227 | UICoreEx | MIT License |
src/test/kotlin/net/codetojoy/waro/casino/CollectionsTest.kt | codetojoy | 94,619,387 | false | {"JavaScript": 1286074, "Kotlin": 20765, "Shell": 1013, "HTML": 851} |
package net.codetojoy.waro.casino
import net.codetojoy.waro.domain.*
import net.codetojoy.waro.strategy.*
import kotlin.test.*
import org.junit.*
class CollectionsTestSource {
val collections = Collections()
@Test fun testPickRandom() {
val n = 3
// test
val pick = collections.pick... | 0 | JavaScript | 0 | 0 | cfabb7b59eb7e94dd15212fba0e7ba0b65f111c6 | 732 | WarO_Kotlin_JS | Apache License 2.0 |
compiler/test/data/typescript/node_modules/unionType/nestedAlias.d.kt | Kotlin | 159,510,660 | false | {"Kotlin": 2656818, "WebIDL": 323681, "TypeScript": 135641, "JavaScript": 19475, "ANTLR": 11333} | // [test] nestedAlias.module_resolved_name.kt
@file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS")
import kotlin.js.*
import org.khronos.webgl.*
import org.w3c.dom.*
import org.w3c.dom.events.*
import org.w3c.dom.parsing.*
import org.w3c.do... | 244 | Kotlin | 42 | 535 | d50b9be913ce8a2332b8e97fd518f1ec1ad7f69e | 1,197 | dukat | Apache License 2.0 |
app/src/main/java/com/dantol/overseastoolkit/OverseasApplication.kt | dantol1 | 354,518,780 | false | null | package com.dantol.overseastoolkit
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class OverseasApplication: Application() {
companion object {
const val SHARED_PREFERENCE_KEY: String = "OverseasPreferences"
}
} | 0 | Kotlin | 0 | 0 | 856f3379e2981e20594ef7d5c727f7c2f17b322a | 259 | Overseas_Toolkit | MIT License |
data/src/main/java/com/sentinel/data/datasource/remote/service/MovieService.kt | MatheusMatz | 369,885,065 | false | null | package com.sentinel.data.datasource.remote.service
import com.sentinel.data.datasource.remote.responses.*
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Path
interface MovieService {
@GET("movie/{id}?api_key=<KEY>")
suspend fun getMovieDetail(@Path("id") id: Long): Response<MovieR... | 0 | Kotlin | 0 | 0 | d2e9ae24d36e65349f74c49b7c222dd86ba907c3 | 2,210 | MyMovieCompendium | MIT License |
src/core/src/commonMain/kotlin/community/flock/aigentic/core/agent/state/State.kt | flock-community | 791,132,993 | false | {"Kotlin": 140974, "Shell": 630} | package community.flock.aigentic.core.agent.state
import community.flock.aigentic.core.agent.Run
import community.flock.aigentic.core.agent.status.toStatus
import community.flock.aigentic.core.agent.tool.FinishedOrStuck
import community.flock.aigentic.core.message.Message
import kotlinx.coroutines.flow.MutableSharedFl... | 1 | Kotlin | 0 | 1 | 9e037dc87d87e6b5cf8de8e4eca23c034289e9b0 | 1,279 | aigentic | MIT License |
app/src/main/java/com/entersekt/fido2/activity_admin/AdminActivity.kt | l1004ga | 280,838,117 | false | null | package com.entersekt.fido2.activity_admin
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.PagerSnapHelper
import com.entersekt.fido2.R
import com.entersekt.fido2.activity_admin.AdminAdapter
import com.... | 0 | Kotlin | 0 | 0 | 0c0cc3b5d2330ede6647a2c4b7d168c7a044f91c | 2,044 | Awsome | Apache License 2.0 |
app/src/main/java/ke/co/tulivuapps/hoteltours/data/di/BookingsModule.kt | RushiChavan-dev | 740,244,295 | false | {"Kotlin": 872337} | package ke.co.tulivuapps.hoteltours.data.di
import androidx.compose.runtime.Stable
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ViewModelComponent
import ke.co.tulivuapps.hoteltours.data.remote.api.BookingService
import ke.co.tulivuapps.hoteltours.data.... | 0 | Kotlin | 0 | 0 | ad74422b1b7930e5665c94cc9368ec69d425ffba | 1,240 | HotelApp | Apache License 2.0 |
app/src/main/java/com/ralphmarondev/taskify/core/MainActivity.kt | ralphmarondev | 846,540,642 | false | {"Kotlin": 15750} | package com.ralphmarondev.taskify.core
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import com.ralphmarondev.taskify.core.navigation.... | 0 | Kotlin | 0 | 0 | c010810aca2a4139f4ba342dc68f83e733f891dd | 707 | taskify | MIT License |
app/src/main/java/com/example/recipecreator/view/activities/ViewRecipesActivity.kt | tusharjha44 | 513,538,550 | false | {"Kotlin": 14769} | package com.example.recipecreator.view.activities
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import androidx.recyclerview.widget.GridLayoutManager
import com.example.recipecreator.R
import com.example.recipecreator.databinding.Activity... | 0 | Kotlin | 0 | 1 | b80c02e4704cd089a7862f43862e8f25cdc0f961 | 2,591 | RecipeCreator | MIT License |
app/src/main/java/pl/kamilszustak/justfit/domain/model/activity/ActivityEquipmentCrossReference.kt | swistak7171 | 248,487,099 | false | null | package pl.kamilszustak.justfit.domain.model.activity
import androidx.room.ColumnInfo
import androidx.room.Entity
import pl.kamilszustak.justfit.domain.model.entity.LocalDatabaseEntity
@Entity(
tableName = "activity_equipment_cross_reference",
primaryKeys = [
"id",
"activity_id",
"equi... | 0 | Kotlin | 0 | 1 | e1b584010dd7edeaa41c7d432fb398f05a2f5dea | 537 | JustFit | Apache License 2.0 |
common/src/desktopMain/kotlin/com/artemchep/keyguard/platform/LeUri.kt | AChep | 669,697,660 | false | {"Kotlin": 5516822, "HTML": 45876} | package com.artemchep.keyguard.platform
import java.io.File
actual abstract class LeUri
data class LeUriImpl(
val uri: String,
) : LeUri() {
override fun toString(): String = uri
}
actual fun leParseUri(uri: String): LeUri = LeUriImpl(uri)
actual fun leParseUri(file: File): LeUri = LeUriImpl(file.toURI().t... | 66 | Kotlin | 31 | 995 | 557bf42372ebb19007e3a8871e3f7cb8a7e50739 | 331 | keyguard-app | Linux Kernel Variant of OpenIB.org license |
examples/src/tl/ton/db/state/DbStateDbVersion.kt | andreypfau | 719,064,910 | false | {"Kotlin": 62942} | // This file is generated by TLGenerator.kt
// Do not edit manually!
package tl.ton.db.state
import io.github.andreypfau.tl.serialization.TLCombinatorId
import kotlin.jvm.JvmName
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
@SerialName("db.state.dbVersion")
@TLCombin... | 0 | Kotlin | 0 | 1 | 16de3f335d8005e35543cb7515a810fd9ac4236d | 466 | tl-kotlin | MIT License |
app/src/main/java/xyz/leomurca/flickrfinder/network/NetworkDataSource.kt | leomurca | 813,082,391 | false | {"Kotlin": 35966} | package xyz.leomurca.flickrfinder.network
import xyz.leomurca.flickrfinder.network.model.NetworkPhotosResponse
interface NetworkDataSource {
suspend fun searchPhotos(query: String): NetworkResult<NetworkPhotosResponse>
} | 0 | Kotlin | 0 | 0 | 184586f4188e2e9b6346518b8264a4234b0e38e4 | 226 | flickr-finder | MIT License |
composeApp/src/desktopMain/kotlin/com/alekso/dltstudio/timeline/filters/ExtractorChecker.kt | alexey-odintsov | 750,521,193 | false | {"Kotlin": 422203} | package com.alekso.dltstudio.timeline.filters
import com.alekso.dltstudio.timeline.DiagramType
object ExtractorChecker {
fun testRegex(
extractPattern: String?,
testPayload: String?,
extractorType: TimelineFilter.ExtractorType,
diagramType: DiagramType,
global: Boolean = fa... | 5 | Kotlin | 0 | 2 | 04515d481616bd57143c7fc6797402fd3941194e | 5,954 | DLTStudio | MIT License |
definitions-libgdx/src/test/kotlin/fledware/definitions/libgdx/lifecycles/BasicAssetLifecycleTest.kt | fledware | 408,627,203 | false | null | package fledware.definitions.libgdx.lifecycles
import com.badlogic.gdx.utils.Disposable
import fledware.definitions.DefinitionsBuilder
import fledware.definitions.Lifecycle
import fledware.definitions.reader.gatherDir
import fledware.definitions.reader.gatherJar
import fledware.definitions.libgdx.LibGdxDefinition
impo... | 3 | Kotlin | 0 | 0 | 1d3d0fcc0ad64ae0960be14bc38aa1600b6aea49 | 3,427 | FledDefs | Apache License 2.0 |
data/filmdetails/src/main/java/tech/dalapenko/data/filmdetails/model/Film.kt | dalapenko | 739,864,810 | false | {"Kotlin": 143798} | package tech.dalapenko.data.filmdetails.model
data class Film(
val id: Int,
val hdId: String?,
val imdbId: String?,
val ruName: String?,
val enName: String?,
val originName: String?,
val posterUrl: String?,
val posterUrlPreview: String?,
val coverUrl: String?,
val logoUrl: Strin... | 0 | Kotlin | 0 | 0 | f59fc55d0b1fcb5b96c8563538323403aacede08 | 1,408 | kinosearch | Apache License 2.0 |
ret-core/src/main/kotlin/io/rabobank/ret/configuration/version/MdcConfig.kt | rabobank | 626,324,322 | false | null | package io.rabobank.ret.configuration.version
import io.quarkus.runtime.StartupEvent
import org.jboss.logging.MDC
import jakarta.enterprise.context.ApplicationScoped
import jakarta.enterprise.event.Observes
@ApplicationScoped
class MdcConfig(private val versionProperties: VersionProperties) {
fun onStart(@Observ... | 6 | Kotlin | 0 | 8 | e65d2eaa1b13656ae73d75a010a3f12acd9dc54d | 523 | ret-engineering-tools | MIT License |
app/src/main/kotlin/org/jdc/template/ux/main/NavBarItem.kt | jeffdcamp | 12,853,600 | false | null | package org.jdc.template.ux.main
enum class NavBarItem {
PEOPLE,
ABOUT;
} | 0 | Kotlin | 35 | 91 | 5ee2d83ceb9fb8ddaa43aefe46801093b3b128fe | 82 | android-template | Apache License 2.0 |
services/match-service/app/src/main/kotlin/nl/runnable/gigmatch/app/stream/StreamConfiguration.kt | laurens-runnable | 595,664,400 | false | null | package nl.runnable.gigmatch.app.stream
import org.springframework.cloud.stream.schema.registry.avro.AvroSchemaMessageConverter
import org.springframework.cloud.stream.schema.registry.avro.AvroSchemaServiceManagerImpl
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Conf... | 0 | Kotlin | 0 | 0 | 961260f0c6e96be9d8e17c9772adb5169ea11bf0 | 733 | gigmatch | The Unlicense |
nebulosa-indi-device/src/main/kotlin/nebulosa/indi/device/DeviceAttached.kt | tiagohm | 568,578,345 | false | {"Kotlin": 2712371, "TypeScript": 513759, "HTML": 249483, "JavaScript": 120539, "SCSS": 11332, "Python": 2817, "Makefile": 445} | package nebulosa.indi.device
interface DeviceAttached<T : Device> : DeviceEvent<T> {
override val device: T
}
| 26 | Kotlin | 2 | 4 | 2099c6f2d7453507289a43efe903c7f92f65f770 | 116 | nebulosa | MIT License |
src/main/kotlin/ru/magmigo/models/enums/CommandType.kt | MagM1go | 875,491,730 | false | {"Kotlin": 6896} | package ru.magmigo.models.enums
public enum class CommandType {
SET_ACTIVITY
} | 0 | Kotlin | 0 | 1 | 919c974a608e53bc46867c737ddeb927b1094c20 | 83 | discord-rpc | Apache License 2.0 |
composeApp/src/wasmJsMain/kotlin/core/mvvm/ViewModel.wasmJs.kt | joaomanaia | 700,458,525 | false | {"Kotlin": 107803, "HTML": 373, "Shell": 228} | package core.mvvm
import core.mvvm.viewmodel.createViewModelScope
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.cancel
actual open class ViewModel actual constructor() {
actual val viewModelScope: CoroutineScope = createViewModelScope()
actual open fun onCleared() {
viewModelScop... | 0 | Kotlin | 0 | 1 | aa85dd09f1e45dcdaa5c3e822d72c55ecd09cd6e | 338 | compose-gobblet | Apache License 2.0 |
app/src/main/java/dev/borisochieng/artio/collab/data/models/DBSketch.kt | slowburn-404 | 839,011,977 | false | {"Kotlin": 314459} | package dev.borisochieng.artio.collab.data.models
data class DBSketch(
val id: String = "",
val dateCreated: String = "",
val lastModified: String = "",
val title: String = "",
val paths: List<DBPathProperties> = emptyList(),
val isBackedUp: Boolean = false
)
| 0 | Kotlin | 1 | 0 | 18889e8c77237214ddb7c3ada2446ac64f91dc6a | 285 | SketchPad | Apache License 2.0 |
app/src/main/java/com/acalapatih/hafalin/core/domain/interactor/bacaquran/BacaJuzInteractor.kt | acalapatih | 768,430,197 | false | {"Kotlin": 309007} | package com.acalapatih.hafalin.core.domain.interactor.bacaquran
import com.acalapatih.hafalin.core.data.Resource
import com.acalapatih.hafalin.core.domain.model.bacaquran.BacaJuzModel
import com.acalapatih.hafalin.core.domain.repository.bacaquran.BacaJuzRepository
import com.acalapatih.hafalin.core.domain.usecase.baca... | 0 | Kotlin | 0 | 0 | 17a704d2455537adffd0b60293d7610603b7f9b0 | 596 | Hafalin_MobileApp | MIT License |
plugins/plugin-javanames/src/main/kotlin/app/softwork/kobol/plugins/fir/renaming/JavaNames.kt | hfhbd | 494,537,230 | false | {"Kotlin": 515181, "Lex": 13748} | package app.softwork.kobol.plugins.fir.renaming
import app.softwork.kobol.fir.FirPluginBeforePhase
import app.softwork.serviceloader.ServiceLoader
@ServiceLoader(FirPluginBeforePhase::class)
public class JavaNames : Rename(
functions = {
toCamelCase()
},
variables = {
toCamelCase()
},
... | 52 | Kotlin | 0 | 1 | 80e51a305c3ade0f243ef019eb177d61e6234ac4 | 368 | kobol | Apache License 2.0 |
executor/type/src/commonMain/kotlin/io/github/charlietap/chasm/executor/type/extremas/TopOfConcreteHeapType.kt | CharlieTap | 743,980,037 | false | {"Kotlin": 1667685, "WebAssembly": 75136} | package io.github.charlietap.chasm.executor.type.extremas
import io.github.charlietap.chasm.ast.type.CompositeType
import io.github.charlietap.chasm.ast.type.ConcreteHeapType
import io.github.charlietap.chasm.ast.type.HeapType
import io.github.charlietap.chasm.executor.runtime.instance.ModuleInstance
import io.github.... | 2 | Kotlin | 2 | 43 | 4cb170e73e120a15de6397ad24d2f23c1fae3f87 | 1,230 | chasm | Apache License 2.0 |
utbot-framework/src/main/kotlin/org/utbot/engine/z3/Z3initializer.kt | UnitTestBot | 480,810,501 | false | null | package org.utbot.engine.z3
import com.microsoft.z3.Context
import com.microsoft.z3.Global
import org.utbot.common.FileUtil
import java.io.File
import java.nio.file.Files.createTempDirectory
abstract class Z3Initializer : AutoCloseable {
protected val context: Context by lazy {
Context().also {
// ... | 291 | Kotlin | 21 | 62 | a2dcd6e97b2e2e0a027d489fdfa4f4c18e1afc69 | 2,827 | UTBotJava | Apache License 2.0 |
app/src/main/java/com/olutoba/simplerecyclerview/data/Movie.kt | Olutobz | 460,094,468 | false | null | package com.olutoba.simplerecyclerview.data
import androidx.annotation.DrawableRes
data class Movie(
val id: Long,
val name: String,
@DrawableRes
val image: Int,
) | 0 | Kotlin | 0 | 0 | e0baf5bcba5dbcc9d5c3580aff699673e739e1ad | 181 | SimpleRecyclerView | Apache License 2.0 |
app/src/main/java/com/company_name/digital_covid19/activity/AddLocationActivity.kt | chiCKson | 249,154,464 | false | null | /*
* AddLocationActivity.kt
* digitalCovid19
*
* Created by <NAME>.
* Copyright © 2018 keliya. All rights reserved.
*/
package com.company_name.digital_covid19.activity
import android.app.Activity
import android.app.DatePickerDialog
import android.app.DatePickerDialog.OnDateSetListener
import android.content.Cont... | 1 | Kotlin | 1 | 0 | 6b5e3215a4ad43843a5c3e83e2a09da396bb7fbd | 6,697 | digitalCovid19 | MIT License |
app/src/main/java/kso/android/kotlinflow/ui/base/ViewModelFactory.kt | kyawsanoo | 748,623,910 | false | {"Kotlin": 100370} | package kso.android.kotlinflow.ui.base
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import kso.android.kotlinflow.data.api.ApiHelper
import kso.android.kotlinflow.data.local.DatabaseHelper
import kso.android.kotlinflow.ui.completion.CompletionViewModel
import kso.android.kotlinflow.u... | 0 | Kotlin | 0 | 0 | 8c11e5fafae59fc278e8038bf7fc8fb1719f5d65 | 4,471 | KotlinFlow | Apache License 2.0 |
modules/effects/arrow-effects/src/test/kotlin/arrow/effects/IOTest.kt | paulcadman | 157,551,397 | true | {"Kotlin": 1537570, "CSS": 142107, "JavaScript": 66545, "HTML": 11364, "Java": 4465, "Shell": 3043} | package arrow.effects
import arrow.Kind
import arrow.core.*
import arrow.effects.data.internal.IOCancellationException
import arrow.effects.typeclasses.milliseconds
import arrow.effects.typeclasses.seconds
import arrow.test.UnitSpec
import arrow.test.concurrency.SideEffect
import arrow.test.laws.AsyncLaws
import arrow... | 0 | Kotlin | 0 | 0 | 73bf80923d18c9a22d5383e93b99af4eb29c9f0d | 11,561 | arrow | Apache License 2.0 |
modules/effects/arrow-effects/src/test/kotlin/arrow/effects/IOTest.kt | paulcadman | 157,551,397 | true | {"Kotlin": 1537570, "CSS": 142107, "JavaScript": 66545, "HTML": 11364, "Java": 4465, "Shell": 3043} | package arrow.effects
import arrow.Kind
import arrow.core.*
import arrow.effects.data.internal.IOCancellationException
import arrow.effects.typeclasses.milliseconds
import arrow.effects.typeclasses.seconds
import arrow.test.UnitSpec
import arrow.test.concurrency.SideEffect
import arrow.test.laws.AsyncLaws
import arrow... | 0 | Kotlin | 0 | 0 | 73bf80923d18c9a22d5383e93b99af4eb29c9f0d | 11,561 | arrow | Apache License 2.0 |
gateway/src/test/kotlin/com/mdelbel/poc/paging/pagekeyed/gateway/moviedb/dto/TopMoviesDtoTest.kt | matiasdelbel | 201,551,242 | false | null | package com.mdelbel.poc.paging.pagekeyed.gateway.moviedb.dto
import com.google.common.truth.Truth.assertThat
import com.mdelbel.poc.paging.pagekeyed.domain.Movie
import com.nhaarman.mockitokotlin2.doReturn
import com.nhaarman.mockitokotlin2.mock
import org.junit.Test
class TopMoviesDtoTest {
@Test
fun `asMov... | 0 | Kotlin | 0 | 0 | 03951d68787220daee3446c3a22e78b3c9204358 | 686 | android-poc-paging-page-keyed | Apache License 2.0 |
app/src/main/java/com/example/simpletodo/MainActivity.kt | GeoCort | 448,697,345 | false | {"Kotlin": 6535} | package com.example.simpletodo
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.FileUtils
import android.util.Log
import android.widget.Button
import android.widget.EditText
import android.widget.TextView
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.... | 1 | Kotlin | 0 | 0 | 4c8e9b95773a4a647f32ea36b1ac426fc726ca24 | 3,317 | SimpleToDo | Apache License 2.0 |
app/src/main/java/com/example/luid/adapters/ParentPhaseAdapter.kt | dhnxx | 630,731,975 | false | {"Kotlin": 309383, "Java": 100} | package com.example.luid.adapters
import android.database.sqlite.SQLiteDatabase
import android.view.Gravity
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.GridLayoutManager
impo... | 0 | Kotlin | 0 | 2 | 9bd4a2b11727ce391d002e15f9388d4d2ff0c4c0 | 2,373 | Luid-Language-Learning-App | MIT License |
app/src/main/java/com/h5190047/ilacinkapinda/util/ProgressUtil.kt | Sirrisamet53 | 371,189,357 | false | null | package com.h5190047.ilacinkapinda.util
import android.app.ProgressDialog
import android.content.Context
import com.h5190047.ilacinkapinda.R
//kullanıcının uygulama içerisinde hangi aşamada olduğunu belirleyen kotlin nesne sınıfıdır
object ProgressUtil {
var progressDialog: ProgressDialog? = null
fun dialog... | 0 | Kotlin | 0 | 0 | 59c0b20928f04a8320d87cba207501d47e4b70df | 735 | IlacinKapindaApp | Apache License 2.0 |
example/android/app/src/main/kotlin/atomic/financial/atomic_transact_flutter_example/MainActivity.kt | atomicfi | 447,778,158 | false | {"Dart": 23088, "Kotlin": 11464, "Swift": 5333, "Ruby": 2369, "Objective-C": 804} | package atomic.financial.atomic_transact_flutter_example
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 1 | Dart | 6 | 6 | d2e123885fab9676c5ac26c0d5e57cf160b8b226 | 153 | atomic-transact-flutter | MIT License |
example/android/app/src/main/kotlin/atomic/financial/atomic_transact_flutter_example/MainActivity.kt | atomicfi | 447,778,158 | false | {"Dart": 23088, "Kotlin": 11464, "Swift": 5333, "Ruby": 2369, "Objective-C": 804} | package atomic.financial.atomic_transact_flutter_example
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 1 | Dart | 6 | 6 | d2e123885fab9676c5ac26c0d5e57cf160b8b226 | 153 | atomic-transact-flutter | MIT License |
src/main/kotlin/com/github/fernandospr/blocklist/service/impl/BlocklistService.kt | fernandospr | 611,228,445 | false | null | package com.github.fernandospr.blocklist.service.impl
import com.github.fernandospr.blocklist.client.RemoteBlocklistClient
import com.github.fernandospr.blocklist.ipextractor.IpExtractor
import com.github.fernandospr.blocklist.service.CacheUpdaterBlocklistService
import com.github.fernandospr.blocklist.service.CachedB... | 0 | Kotlin | 0 | 0 | 31974b033c30f224845455927963357ddab50a7c | 1,211 | blocklist-api | The Unlicense |
app/src/main/java/com/sitamadex11/CovidHelp/adapter/StateWiseViewPagerAdapter.kt | theDIRone | 362,289,927 | false | {"Kotlin": 248218} | package com.sitamadex11.CovidHelp.adapter
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter
import com.sitamadex11.CovidHelp.fragments.OtherStateFragment
import com.sitamadex11.CovidHelp.fragments.WestBengalFragment
class StateWiseView... | 9 | Kotlin | 26 | 17 | f7070477b5a6d0051f1e1f41fe5c856480e21edf | 880 | CovidHelp | MIT License |
fortis/src/main/kotlin/cmu/s3d/fortis/ts/nfa/Hide.kt | cmu-soda | 598,835,734 | false | {"Kotlin": 370315, "Python": 23122, "Shell": 13705} | package cmu.s3d.fortis.ts.nfa
import cmu.s3d.fortis.ts.alphabet
import cmu.s3d.fortis.utils.forEachSetBit
import net.automatalib.alphabet.Alphabets
import net.automatalib.automaton.fsa.CompactDFA
import net.automatalib.automaton.fsa.DFA
import net.automatalib.automaton.fsa.MutableDFA
import net.automatalib.automaton.f... | 0 | Kotlin | 1 | 1 | 873da952260e897725d999467191e14e6476c7aa | 3,266 | fortis-core | MIT License |
core/domain/src/main/java/halit/sen/domain/usecase/task/AddTaskUseCaseImpl.kt | halitsen | 584,358,783 | false | null | package halit.sen.domain.usecase.task
import halit.sen.data.dto.Note
import halit.sen.data.dto.Task
import halit.sen.data.repository.TaskRepository
import halit.sen.domain.entity.NoteEntity
import halit.sen.domain.entity.TaskEntity
import halit.sen.domain.mapper.PostponeBaseMapper
import halit.sen.postpone.common.Resp... | 0 | Kotlin | 0 | 2 | 623c772bea20bde050f121fe1a16105a6069ea63 | 1,044 | Postpone | Apache License 2.0 |
network-protection/network-protection-impl/src/main/java/com/wireguard/crypto/BitwiseExtensions.kt | hojat72elect | 822,396,044 | false | {"Kotlin": 11626231, "HTML": 65873, "Ruby": 16984, "C++": 10312, "JavaScript": 5520, "CMake": 1992, "C": 1076, "Shell": 784} |
package com.wireguard.crypto
infix fun Byte.and(that: Int): Int = this.toInt().and(that)
infix fun Byte.or(that: Int): Int = this.toInt().or(that)
infix fun Byte.shr(that: Int): Int = this.toInt().shr(that)
infix fun Byte.shl(that: Int): Int = this.toInt().shl(that)
infix fun Byte.ushr(that: Int): Int = this.toI... | 0 | Kotlin | 0 | 0 | b89591136b60933d6a03fac43a38ee183116b7f8 | 336 | DuckDuckGo | Apache License 2.0 |
feature/settings/src/main/java/com/aidventory/feature/settings/presentation/data/DataViewModel.kt | yuriikonovalov | 615,443,609 | false | null | package com.aidventory.feature.settings.presentation.data
import android.net.Uri
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.aidventory.core.common.result.Result
import com.aidventory.core.domain.usecases.ClearDataUseCase
import com.aidventory.core.domain.usecases.ImportBack... | 0 | Kotlin | 0 | 0 | 9753d24aca8bb645cef085498124e58e9cda451a | 3,633 | aidventory | MIT License |
prl-compiler/generated/src/main/kotlin/com/booleworks/prl/model/protobuf/PbIntPredicateKt.kt | booleworks | 721,827,334 | false | {"Kotlin": 1495826, "JavaScript": 835976, "Vue": 132739, "TypeScript": 50565, "Java": 32652, "ANTLR": 15836, "Lex": 3646, "CSS": 2243, "Shell": 1735, "Dockerfile": 681, "Scheme": 505} | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: model_constraints.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package com.booleworks.prl.model.protobuf;
@kotlin.jvm.JvmName("-initializepbIntPredicate")
public inline fun pbIntPredicate(block: com.bool... | 0 | Kotlin | 0 | 1 | c8f2c7ae0e73cef9ee0f3f62308d7e95fd261371 | 6,890 | boolerules | MIT License |
Sushi/app/src/main/java/com/destructo/sushi/ui/preferences/aboutApp/CreditsFragment.kt | destructo570 | 302,356,237 | false | null | package com.destructo.sushi.ui.preferences.aboutApp
import android.os.Bundle
import androidx.activity.addCallback
import androidx.navigation.fragment.findNavController
import androidx.preference.PreferenceFragmentCompat
import com.destructo.sushi.R
class CreditsFragment : PreferenceFragmentCompat(){
override fu... | 3 | Kotlin | 5 | 21 | 68317c04caa596103d3fd32b0f34fe43b189a721 | 590 | Sushi-Unofficial-MAL-Client | Apache License 2.0 |
app/src/main/java/com/creative/qrcodescanner/di/module/RepoModule.kt | dantech0xff | 735,255,021 | false | {"Kotlin": 166617} | package com.creative.qrcodescanner.di.module
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import com.creative.qrcodescanner.data.dao.QRCodeEntityDAO
import com.creative.qrcodescanner.repo.HistoryRepo
import com.creative.qrcodescanner.repo.HistoryRepoImpl
import com.cr... | 0 | Kotlin | 0 | 9 | b204cc786b5c5e146056c7ab66cc58ce5d8d66e1 | 933 | compose-barcode-scanner | MIT License |
src/main/kotlin/io/github/hc1839/crul/chemistry/species/BondImpl.kt | hc1839 | 724,383,874 | false | {"Kotlin": 541316} | /*
* Copyright Han Chen
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 0 | Kotlin | 0 | 0 | 736b3c8377ca2f2f4a4e86fde6312e50b7ea2505 | 1,276 | crul | Apache License 2.0 |
app/src/androidTest/java/com/prasadshirvandkar/fetchrewardscodingexercise/WaitUntilVisibleAction.kt | prasadshirvandkar | 463,315,592 | false | {"Kotlin": 34123} | package com.prasadshirvandkar.fetchrewardscodingexercise
import android.view.View
import androidx.test.espresso.PerformException
import androidx.test.espresso.UiController
import androidx.test.espresso.ViewAction
import androidx.test.espresso.util.HumanReadables
import org.hamcrest.CoreMatchers.any
import org.hamcrest... | 0 | Kotlin | 0 | 0 | cc81ee1e3a18b90f9c7f4d5831f45d1f0960045a | 1,242 | FetchRewards-CodingExercise | Apache License 2.0 |
Chapter02/src/main/kotlin/com/rivuchk/packtpub/reactivekotlin/chapter02/FibonacciSeriesOld.kt | tymicki | 175,694,440 | true | {"Kotlin": 121444} | package com.rivuchk.packtpub.reactivekotlin.chapter02
fun main() {
var a = 0
var b = 1
print("$a, ")
print("$b, ")
for(i in 2..9) {
val c = a+b
print("$c, ")
a=b
b=c
}
} | 0 | Kotlin | 0 | 0 | 143e1bd1473c6da3fb3fe1b9373124052f87874d | 227 | Reactive-Programming-in-Kotlin | MIT License |
app/src/main/java/uk/co/sentinelweb/cuer/app/util/firebase/FirebaseModule.kt | sentinelweb | 220,796,368 | false | {"Kotlin": 2627509, "CSS": 205156, "Java": 98919, "Swift": 85812, "HTML": 19322, "JavaScript": 12105, "Ruby": 2170} | package uk.co.sentinelweb.cuer.app.util.firebase
import org.koin.android.ext.koin.androidApplication
import org.koin.dsl.module
object FirebaseModule {
val fbModule = module {
single { FirebaseWrapper(androidApplication(), get()) }
single { FirebaseImageProvider(get()) }
}
} | 95 | Kotlin | 0 | 2 | ededd667157400da44e696c2da5adaf6f9b763ee | 301 | cuer | Apache License 2.0 |
korge/src/commonMain/kotlin/com/soywiz/korge/scene/Transition.kt | zhch0633 | 365,435,090 | false | null | package com.soywiz.korge.scene
import com.soywiz.korge.render.*
import com.soywiz.korge.tween.*
import com.soywiz.korge.view.*
import com.soywiz.korma.interpolation.*
/**
* A View that will render [prev] and [next] views using the specified [transition].
* You can set the [prev] and [next] views by calling [setView... | 0 | null | 0 | 1 | dcddb3eb4d9e34a263a235089237deb89f339cd3 | 2,113 | korge | Apache License 2.0 |
app/src/main/java/com/example/myapplication2/Questions.kt | veridetta | 669,381,677 | false | null | package com.example.myapplication2
data class Questions(
var id: Int = 0,
var question: String = "",
// var image: Int = 0,
var optionOne: String = "",
var optionTwo: String = "",
var optionThree: String = "",
var optionFour: String = "",
var answer: Int = 0
)
| 0 | Kotlin | 0 | 0 | 0b37e9f9be943ba46fee6f76b4d4f09e4ffbee2f | 293 | QuizEng | MIT License |
src/android/AMapLocatePlugin.kt | kainonly | 137,859,217 | false | {"Kotlin": 2945, "Swift": 1700, "JavaScript": 316} | package van.amap.locate
import android.Manifest
import android.os.Build
import android.support.v4.app.ActivityCompat
import com.amap.api.location.AMapLocation
import com.amap.api.location.AMapLocationClient
import com.amap.api.location.AMapLocationClientOption
import com.amap.api.location.AMapLocationClientOption.AMap... | 0 | Kotlin | 1 | 0 | e0ba01dcb0e165390d54d097d1f2e59fa1ee30d2 | 2,945 | cordova-amap-locate | MIT License |
app/src/main/java/se/barsk/park/analytics/ParkActionEvent.kt | nibarius | 94,821,344 | false | null | package se.barsk.park.analytics
/**
* Event for parking related actions.
*/
class ParkActionEvent(action: Action) : AnalyticsEvent() {
sealed class Action(val action: String) {
class Park : Action("park")
class Unpark : Action("unpark")
class Wait : Action("wait")
class StopWaitin... | 0 | Kotlin | 0 | 0 | 9a23cde5ab0c8ce4750e94cabff4c978d52c04bc | 476 | opera-park-android | MIT License |
server/src/main/java/com/rabbithouse/svr/ControlMessage.kt | BMC-Gordon0921 | 417,692,713 | true | {"Python": 58165, "Kotlin": 37716, "Makefile": 392, "Batchfile": 194} | package com.rabbithouse.svr
/**
* Union of all supported event types, identified by their `type`.
*/
class ControlMessage private constructor() {
var type = 0
private set
var text: String? = null
private set
var action: Int = 0 // KeyEvent.ACTION_* or MotionEvent.ACTION_* or POWER_MODE_* ... | 0 | Python | 0 | 0 | 5d75546c5e812a33507c60edc8415ba41099d8f3 | 1,273 | phisap | Do What The F*ck You Want To Public License |
core/src/main/kotlin/net/justmachinery/futility/controlflow/Casting.kt | ScottPeterJohnson | 350,697,854 | false | null | package net.justmachinery.futility.controlflow
import kotlin.contracts.ExperimentalContracts
import kotlin.contracts.contract
import kotlin.reflect.KClass
public inline fun <T, reified R : T> T.tryCast() : R? {
return if(this is R) this else null
}
@ExperimentalContracts
public inline fun <T : Any, reified R : T... | 0 | Kotlin | 0 | 0 | 0f863a873fa6caf3aef136b03c1b5c1fde9bb9ac | 661 | futility | Apache License 2.0 |
ui/userdetails/src/commonMain/kotlin/dev/burnoo/demo/listapp/ui/userdetails/UserDetailsViewModel.kt | burnoo | 568,089,196 | false | {"Kotlin": 112052, "HTML": 367} | package dev.burnoo.demo.listapp.ui.userdetails
import com.github.michaelbull.result.fold
import dev.burnoo.demo.listapp.core.ui.ViewModel
import dev.burnoo.demo.listapp.data.users.core.UsersRepository
import dev.burnoo.demo.listapp.data.users.model.UserId
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.... | 12 | Kotlin | 0 | 1 | ac5386bf2e2166b749c023faba51c88fb612c56b | 1,174 | DemoListApp | MIT License |
Katydid-CSS-JVM/src/test/kotlin/jvm/katydid/css/colors/HslColorTests.kt | martin-nordberg | 131,987,610 | false | null | //
// (C) Copyright 2018-2019 <NAME>
// Apache 2.0 License
//
package jvm.katydid.css.colors
import o.katydid.css.colors.*
import org.junit.jupiter.api.Test
import kotlin.test.assertEquals
@Suppress("RemoveRedundantBackticks")
class HslColorTests {
@Test
fun `HSL colors convert to strings`() {
asse... | 1 | Kotlin | 1 | 6 | 8fcb99b2d96a003ff3168aef101eaa610e268bff | 3,212 | Katydid | Apache License 2.0 |
server/test/klite/AssetsHandlerTest.kt | codeborne | 432,708,235 | false | null | package klite
import io.mockk.every
import io.mockk.mockk
import io.mockk.verify
import kotlinx.coroutines.runBlocking
import org.junit.jupiter.api.Test
import java.nio.file.Path
class AssetsHandlerTest {
val handler = AssetsHandler(Path.of("../sample/public"), useIndexForUnknownPaths = true)
val exchange = mockk... | 6 | null | 12 | 84 | 385aa50338d5fbf14beb5275a10e6613138e2444 | 1,063 | klite | MIT License |
src/main/kotlin/io/github/abdulroufsidhu/orgolink/core/business/Business.kt | abdulroufsidhu | 812,751,533 | false | {"Kotlin": 94837} | package io.github.abdulroufsidhu.orgolink.core.business
import io.github.abdulroufsidhu.orgolink.core.config.BaseTable
import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.Table
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.NotNull
@Ent... | 2 | Kotlin | 1 | 3 | 7364301ff11e8ba1b13dc250058441d1cb363626 | 783 | orgolink_core | MIT License |
src/main/kotlin/io/github/abdulroufsidhu/orgolink/core/business/Business.kt | abdulroufsidhu | 812,751,533 | false | {"Kotlin": 94837} | package io.github.abdulroufsidhu.orgolink.core.business
import io.github.abdulroufsidhu.orgolink.core.config.BaseTable
import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.Table
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.NotNull
@Ent... | 2 | Kotlin | 1 | 3 | 7364301ff11e8ba1b13dc250058441d1cb363626 | 783 | orgolink_core | MIT License |
app/src/main/kotlin/dev/sebastiano/customthemeplayground/ui/theme/Colors.kt | rock3r | 492,300,251 | false | {"Kotlin": 57628} | package dev.sebastiano.customthemeplayground.ui.theme
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Immutable
import androidx.compose.runtime.compositionLocalOf
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graph... | 0 | Kotlin | 0 | 4 | 8fb617920ad64bc8c2115d7ff994b2efc52a53ab | 2,976 | custom-theme-playground | Apache License 2.0 |
ktor-utils/common/test/io/ktor/util/GMTDateParserTest.kt | ktorio | 40,136,600 | false | null | /*
* Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package io.ktor.tests.utils
import io.ktor.util.date.*
import kotlin.test.*
class GMTDateParserTest {
@Test
fun testFormats() {
val formats = arrayOf(
"***, dd MM... | 269 | null | 806 | 9,709 | 9e0eb99aa2a0a6bc095f162328525be1a76edb21 | 1,803 | ktor | Apache License 2.0 |
src/main/kotlin/de/bybackfish/telosaddons/events/RenderTooltipEvent.kt | byBackfish | 871,607,116 | false | {"Kotlin": 78838, "Java": 14541} | package de.bybackfish.telosaddons.events
import de.bybackfish.telosaddons.core.event.Event
import net.minecraft.client.util.math.MatrixStack
import net.minecraft.item.ItemStack
import net.minecraft.text.Text
class RenderTooltipEvent(
val matrices: MatrixStack,
val item: ItemStack,
val mouseX: Int,
val... | 0 | Kotlin | 0 | 0 | d068e17e03978d162671d5a5fc458ef6cf672aa2 | 386 | TelosAddons | Creative Commons Zero v1.0 Universal |
shared/app/src/commonMain/kotlin/io/edugma/features/app/core/CoreModules.kt | Edugma | 474,423,768 | false | {"Kotlin": 944561, "Swift": 1255, "Ruby": 102} | package io.edugma.features.app.core
import io.edugma.core.api.repository.BuildConfigRepository
import io.edugma.core.arch.mvi.viewmodel.ScreenResultProvider
import io.edugma.core.navigation.core.Router
import io.edugma.core.navigation.core.router.external.ExternalRouter
import io.edugma.features.app.data.BuildConfigRe... | 1 | Kotlin | 0 | 2 | 61fa1e403cd9e0699a82c64f8a44f4f3398314ce | 655 | app | MIT License |
machines/src/main/kotlin/io/github/shkschneider/awesome/machines/infuser/InfuserBlock.kt | shkschneider | 555,774,039 | false | null | package io.github.shkschneider.awesome.machines.infuser
import io.github.shkschneider.awesome.core.AwesomeUtils
import io.github.shkschneider.awesome.machines.AwesomeMachine
import io.github.shkschneider.awesome.machines.AwesomeMachineBlock
import io.github.shkschneider.awesome.machines.AwesomeMachineBlockEntity
impor... | 0 | Kotlin | 0 | 0 | 01814cc51a64f20cae0cc9cc11a8544234393308 | 1,984 | mc_awesome | MIT License |
sample/src/main/java/com/july/studio/permissions/example/AcAnnotationPage.kt | lifelikejuly | 801,514,399 | false | {"Kotlin": 43689} | package com.july.studio.permissions.example
import android.Manifest
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.july.studio.andpermissions.annoation.RequestPermissions
/**
* @author JulyYu
* @date 2023/12/21.
* description:
*/
@RequestPermissions(permissions = [
Manife... | 0 | Kotlin | 0 | 0 | 5e48c73959999ee73cf969746e124e53d82bd36a | 655 | AndPermissions | Apache License 2.0 |
src/test/kotlin/io/cloudflight/cleancode/archunit/rules/logging/private2/MyClassWithPrivateLogger2.kt | cloudflightio | 514,544,808 | false | {"Kotlin": 110894, "Java": 1135} | package io.cloudflight.cleancode.archunit.rules.logging.private2
import io.cloudflight.cleancode.archunit.rules.logging.private1.MyClassWithPrivateLogger1
import org.slf4j.LoggerFactory
object MyClassWithPrivateLogger2 {
private val LOG = LoggerFactory.getLogger(MyClassWithPrivateLogger1::class.java)
} | 2 | Kotlin | 2 | 3 | ea7291ca51334eff7ab59172a1b89214d07122a2 | 310 | archunit-cleancode-verifier | Apache License 2.0 |
src/macosX64Main/kotlin/de/kodierer/kraytracer/material/Metal.kt | mehrmann | 176,160,226 | false | null | package de.kodierer.kraytracer.material
import de.kodierer.kraytracer.base.*
import de.kodierer.kraytracer.base.Vector.Companion.randomInUnitSphere
class Metal(private val albedo : Vector, private val fuzz: Float) : Material {
override fun scatter(ray: Ray, hit: Hit): Scatter? {
val reflected = reflect(ra... | 0 | Kotlin | 0 | 0 | cf4a74a84f8f6e940d903e9f24a6312ff8720931 | 582 | kraytracing | MIT License |
tulip/libtulip-service/src/commonMain/kotlin/com/tajmoti/libtulip/repository/impl/SubtitleFacadeImpl.kt | Tajmoti | 391,138,914 | false | null | package com.tajmoti.libtulip.repository.impl
import com.tajmoti.commonutils.logger
import com.tajmoti.libopensubtitles.OpenSubtitlesFallbackService
import com.tajmoti.libopensubtitles.OpenSubtitlesService
import com.tajmoti.libopensubtitles.model.search.SubtitleAttributes
import com.tajmoti.libopensubtitles.model.sear... | 6 | Kotlin | 0 | 0 | c653ebf97b1a43c505b1debb7aa636b06db1ff33 | 2,064 | Tulip | MIT License |
app/src/main/java/com/yehiahd/movies/util/Connection.kt | yehiahd | 138,518,395 | false | null | package com.yehiahd.movies.util
import android.content.Context
import android.net.ConnectivityManager
object Connection {
fun isNetworkAvailable(context: Context): Boolean {
val connectivityManager = context.getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager
val activeNetworkI... | 0 | Kotlin | 7 | 25 | 79f1fe0099af72c6b77162ba3347260695fb0149 | 445 | Movies | Apache License 2.0 |
module_course/src/main/java/com/vension/fastframe/module_course/bean/TabEntity.kt | unboundedcode | 198,977,992 | false | {"Gradle": 14, "Markdown": 1, "Java Properties": 2, "Shell": 1, "Ignore List": 8, "Batchfile": 1, "Proguard": 7, "JSON": 33, "Kotlin": 333, "XML": 363, "Java": 130, "HTML": 1, "INI": 1} | package com.vension.fastframe.module_course.bean
import com.flyco.tablayout.listener.CustomTabEntity
/**
* ========================================================
* 作 者:Vension
* 日 期:2019/7/25 11:58
* 更 新:2019/7/25 11:58
* 描 述:底部custom标签类
* ========================================================
*/
class Ta... | 0 | Kotlin | 0 | 3 | 2e5b1e8001d855cd34cdf04dea7eac12bd6cda32 | 652 | V-FastFrame | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.