path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/mars/co/liftmetrics/data/dao/ExerciseDao.kt | Veljko97 | 447,738,317 | false | {"Kotlin": 82806} | package com.mars.co.liftmetrics.data.dao
import androidx.room.*
import com.mars.co.liftmetrics.data.model.Exercise
import com.mars.co.liftmetrics.data.model.Muscle
import kotlinx.coroutines.flow.Flow
@Dao
interface ExerciseDao {
@Query("SELECT * FROM exercise")
fun getAll(): Flow<List<Exercise>>
// Muscl... | 0 | Kotlin | 0 | 0 | f767fff4571999d0cc560679918b91a356b8e7e0 | 3,058 | lift_metrics_public | Apache License 2.0 |
android-compose/src/main/kotlin/com/amarland/iconvector/androidcompose/IconVGResources.kt | amarland | 433,039,075 | false | {"Kotlin": 113847, "Java": 7176} | /*
* Copyright 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 0 | Kotlin | 0 | 0 | e05c63280dc922ce6bd3ea961c53ce1f9a415213 | 2,523 | iconvector | Apache License 2.0 |
src/main/kotlin/strategies/FeeCalculationStrategy.kt | Dnyaneshwar-dev | 616,314,996 | false | null | package strategies
import models.FeeInterval
import models.VehicleType
import utilities.DateTimeUtil
import java.time.LocalDateTime
import kotlin.math.min
open class FeeCalculationStrategy(private val intervals: Map<VehicleType, ArrayList<FeeInterval>>) {
open fun getBillAmount(startTime: LocalDateTime, endTime:... | 0 | Kotlin | 0 | 0 | 7a1e929549d9674278315ec2b4fa85d29289178f | 1,024 | parking-lot-design-kotlin | Apache License 2.0 |
embrace-android-sdk/src/test/java/io/embrace/android/embracesdk/injection/OpenTelemetryModuleImplTest.kt | embrace-io | 704,537,857 | false | {"Kotlin": 3067335, "C": 189946, "Java": 179438, "C++": 13140, "CMake": 4188} | package io.embrace.android.embracesdk.injection
import io.embrace.android.embracesdk.internal.logs.LogSinkImpl
import io.embrace.android.embracesdk.internal.spans.CurrentSessionSpanImpl
import io.embrace.android.embracesdk.internal.spans.EmbraceSpanService
import io.embrace.android.embracesdk.internal.spans.SpanSinkIm... | 20 | Kotlin | 7 | 130 | ca3da94e2055251ec6b3afc35fc9a1fc1bb5f57d | 934 | embrace-android-sdk | Apache License 2.0 |
business-layer-abstract/src/main/java/ru/ar2code/business_layer_abstract/usecases/AbstractLoginUserCase.kt | ar2code | 260,705,668 | false | null | package ru.ar2code.business_layer_abstract.usecases
import ru.ar2code.business_layer_abstract.models.LoginParameters
import ru.ar2code.business_layer_abstract.models.UserWithColor
import ru.ar2code.common.UseCase
abstract class AbstractLoginUserCase : UseCase<UserWithColor, LoginParameters>() | 0 | Kotlin | 1 | 13 | e95e53e8130d8137e04709d8053193625fe660c1 | 295 | AndroidArchitectureSample | MIT License |
src/main/kotlin/sam/st/demoredlist/RedListConsumer.kt | samuelstuetz | 188,720,101 | false | null | package sam.st.demoredlist
import org.springframework.boot.web.client.RestTemplateBuilder
import org.springframework.http.HttpMethod
import org.springframework.stereotype.Component
import org.springframework.web.client.RestTemplate
import org.springframework.web.client.exchange
import java.security.cert.CertPath
inte... | 0 | Kotlin | 0 | 0 | 37d759e71cb3ae8dda93c457fbea8733a89e173e | 2,438 | demo-redlist-consumer | MIT License |
features/tvshows/src/main/java/com/andhiratobing/moviecompose/tvshows/data/models/TvShowsList.kt | andhiratobing | 443,302,737 | false | {"Kotlin": 69028} | package com.andhiratobing.moviecompose.tvshows.data.models
data class TvShowsList(
val results: List<TvShows>
) | 0 | Kotlin | 0 | 1 | 05495ac44369f5fa11b3b23236f18b65b2241c62 | 116 | movie-compose | Apache License 2.0 |
examples/src/tl/td/JsonValue.kt | andreypfau | 719,064,910 | false | {"Kotlin": 62259} | // This file is generated by TLGenerator.kt
// Do not edit manually!
package tl.td
import io.github.andreypfau.tl.serialization.TLCombinatorId
import kotlin.jvm.JvmName
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.JsonClassDiscriminator
@Serializa... | 0 | Kotlin | 0 | 1 | 11f05ad1f977235e3e360cd6f6ada6f26993208e | 1,824 | tl-kotlin | MIT License |
packages/expo-modules-core/android/src/test/java/expo/modules/kotlin/types/BasicTypeConverterTest.kt | RohanChimna | 427,819,004 | true | {"Objective-C": 20221207, "Java": 14570671, "C++": 11135407, "Objective-C++": 4168395, "TypeScript": 4157771, "Kotlin": 3945940, "JavaScript": 999211, "Swift": 807304, "Starlark": 688383, "Ruby": 575982, "C": 283446, "Makefile": 159674, "HTML": 60406, "Shell": 51235, "Assembly": 46734, "CMake": 19798, "CSS": 2612, "Bat... | @file:OptIn(ExperimentalStdlibApi::class)
package expo.modules.kotlin.types
import com.facebook.react.bridge.DynamicFromObject
import com.facebook.react.bridge.JavaOnlyArray
import com.google.common.truth.Truth
import org.junit.Test
import kotlin.reflect.typeOf
class BasicTypeConverterTest {
private val converter ... | 0 | null | 0 | 0 | 6bf128b8d962f93188fbaece734accf72a9342e3 | 807 | expo | MIT License |
app/src/main/java/dae/rounder/ui/fragments/RulesFragment.kt | DavidEdwards | 177,984,336 | false | null | package dae.rounder.ui.fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.webkit.WebViewClient
import androidx.fragment.app.Fragment
import dae.rounder.databinding.FragmentRulesBinding
import kotlinx.coroutines.CoroutineScope
impo... | 0 | Kotlin | 1 | 35 | cb9986b7ef60b0c1304e93625d49d20750fa5925 | 1,061 | mvvm-example | MIT License |
app/src/main/java/com/gdsctsec/smartt/ui/main/HomeScreenFragment.kt | Krishanadave671 | 442,094,336 | true | {"Kotlin": 55820} | package com.gdsctsec.smartt.ui.main
import android.content.Intent
import android.graphics.Color
import android.os.Build
import android.os.Bundle
import android.text.Spannable
import android.text.SpannableString
import android.text.style.ForegroundColorSpan
import androidx.fragment.app.Fragment
import android.view.Layo... | 0 | Kotlin | 0 | 0 | 467dedd95defbb4bc506fbbbafdc4088dfc077bc | 7,129 | ASJ_2021 | MIT License |
app/src/main/java/com/jajinba/pixabaydemo/network/ApiClient.kt | HMW | 115,176,644 | false | null | package com.jajinba.pixabaydemo.network
import com.jajinba.pixabaydemo.BuildConfig
import com.jajinba.pixabaydemo.Constants
import com.jajinba.pixabaydemo.model.PixabayResponseObject
import com.jajinba.pixabaydemo.utils.SearchUtils
import io.reactivex.Observer
import io.reactivex.android.schedulers.AndroidSchedulers
i... | 0 | Kotlin | 0 | 1 | d077ac28a8f17ba3e19fcf21e1059f0baa46f245 | 2,209 | PixabayDemo | Apache License 2.0 |
app/src/main/java/com/anangkur/movieku/feature/main/tv/TvFragment.kt | anangkur | 228,177,144 | false | null | package com.anangkur.movieku.feature.main.tv
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.DefaultItemAnimator
import androidx.recyclerview.widget.LinearLayoutManager
import an... | 0 | Kotlin | 2 | 5 | f1211a54519f32258b087b20b63d53e3666d4419 | 5,425 | Movie-Ku | MIT License |
app/src/main/java/com/anangkur/movieku/feature/main/tv/TvFragment.kt | anangkur | 228,177,144 | false | null | package com.anangkur.movieku.feature.main.tv
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.DefaultItemAnimator
import androidx.recyclerview.widget.LinearLayoutManager
import an... | 0 | Kotlin | 2 | 5 | f1211a54519f32258b087b20b63d53e3666d4419 | 5,425 | Movie-Ku | MIT License |
src/routes/interactions/utils/ReportCreatedMessageJsonCreator.kt | bucketplace | 216,353,542 | false | null | package routes.interactions.utils
import db.members.MemberDao
import enums.Channel
import enums.Developer
import enums.Track
import routes.interactions.requests.InteractionRequestBody
import secrets.JiraSecrets
import utils.SlackJsonCreator.createMarkdownText
import utils.escapeDoubleQuotation
import utils.escapeNewLi... | 0 | Kotlin | 0 | 0 | 58e2270ed92bf19fe196613b67172aaf12442368 | 5,874 | error-report-v2 | Apache License 2.0 |
solar/src/main/java/com/chiksmedina/solar/broken/money/MoneyBag.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.broken.money
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.Round
import androidx.compose.ui.graphics.StrokeJoin.Companion.M... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 3,626 | SolarIconSetAndroid | MIT License |
socket/src/commonMain/kotlin/pw.binom.io.socket/RawServerSocketChannel.kt | RdeWilde | 226,810,340 | true | {"C": 4788382, "C++": 546364, "Kotlin": 471870, "Shell": 86} | package pw.binom.io.socket
expect class RawServerSocketChannel() : ServerSocketChannel, NetworkChannel | 0 | null | 0 | 0 | c41c8cb96395035c59a90f0fce37969c853b23c5 | 103 | pw.binom.io | Apache License 2.0 |
homework/Day11_Storage/app/src/main/java/io/sethclark/dogceo/screens/breeds/BreedListFragment.kt | setheclark | 155,976,009 | false | null | package io.sethclark.dogceo.screens.breeds
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProviders
import androidx.navigation.fragment.findNa... | 0 | Kotlin | 0 | 0 | 07e6284d7dd21191b5477df91b681f3026272846 | 1,958 | android_course_resources | Apache License 2.0 |
embedded_video_lib/src/main/java/com/gapps/library/api/models/api/StreamableVideoInfoModel.kt | TalbotGooday | 225,641,422 | false | {"Kotlin": 118314} | package com.gapps.library.api.models.api
import com.gapps.library.api.URL
import com.gapps.library.api.models.api.base.VideoInfoModel
import com.gapps.library.api.models.video.streamable.StreamableResponse
class StreamableVideoInfoModel : VideoInfoModel<StreamableResponse>() {
override val baseUrl: String
... | 3 | Kotlin | 5 | 38 | 39b1de22842a1d2ebee6edf5c2802ababd6b4f9f | 894 | Android-Oembed-Video | Apache License 2.0 |
src/me/anno/mesh/Line.kt | AntonioNoack | 266,471,164 | false | null | package me.anno.mesh
import org.joml.Vector3f
import org.joml.Vector3fc
data class Line(val a: Vector3f, val b: Vector3f){
fun scale(s: Float){
a.mul(s)
b.mul(s)
}
fun switchYZ(){
a.set(a.x, a.z, -a.y)
b.set(b.x, b.z, -b.y)
}
fun switchXZ(){
a.set(a.z, a.y, ... | 0 | Kotlin | 1 | 8 | 421ba71c93c2b660476f96ffb6f4332fa07bd2b3 | 448 | RemsStudio | Apache License 2.0 |
network/src/main/java/com/example/network/StateLiveData.kt | zcyyouminghuo | 434,528,820 | false | null | package com.example.network
import androidx.annotation.MainThread
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.example.network.entity.*
/**
* @Description:
* @CreateDate: 2021/12/3 11:18
*/
typealias StateLiveData<T> = LiveData<A... | 0 | Kotlin | 0 | 0 | ac73d78a5d9a65ad32e3a87abad73512be085e71 | 2,004 | KotlinCampus | Apache License 2.0 |
minenzyme/src/jsMain/kotlin/com/zegreatrob/minenzyme/EnzymeWrapper.kt | epabst | 284,880,640 | true | {"Kotlin": 142700, "Batchfile": 697, "Dockerfile": 282} | package com.zegreatrob.minenzyme
import react.*
import kotlin.js.Json
import kotlin.js.json
@JsModule("enzyme")
external val enzyme: Enzyme
@JsModule("enzyme-adapter-react-16")
external class Adapter
val setup = object {
init {
enzyme.configure(json("adapter" to Adapter()))
}
}
external interface E... | 0 | null | 0 | 0 | d10d932b2dc486755c184613573643bc7842daa5 | 2,089 | testmints | MIT License |
ground/src/test/java/com/google/android/ground/ui/home/mapcontainer/HomeScreenMapContainerFragmentTest.kt | google | 127,777,820 | false | {"Kotlin": 1182603, "Java": 19970, "Python": 3111} | /*
* Copyright 2023 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 agreed to ... | 189 | Kotlin | 114 | 208 | d1d66c7834a4b74122523a6dbc347a1a54e45c98 | 2,244 | ground-android | Apache License 2.0 |
src/main/kotlin/com/vaadin/plugin/starter/StarterModel.kt | vaadin | 203,115,867 | false | {"Kotlin": 80112} | package com.vaadin.plugin.starter
import com.intellij.openapi.project.Project
class StarterModel(
var framework: String, // flow / hilla-react
var language: String, // java / kotlin
var buildTool: String, // maven / gradle
var architecture: String // springboot / servlet / ...
) : D... | 10 | Kotlin | 0 | 3 | 96e66cb44798100d950368108fa5ebee5b017c76 | 620 | intellij-plugin | Apache License 2.0 |
core/src/main/java/com/vimal/core/models/LoadingMessageData.kt | vimalpsojan | 338,297,169 | false | null | package com.vimal.core.models
import android.content.Context
open class LoadingMessageData(context: Context? = null, var isLoading: Boolean = true) : MessageData(context) {
} | 0 | Kotlin | 0 | 1 | ed56628397a7711c052b47f2abd44affd6105c5b | 177 | AndroisBaseTemplate | Apache License 2.0 |
base/src/main/kotlin/browser/chromeosInfoPrivate/ManagedDeviceStatus.kt | DATL4G | 372,873,797 | false | null | package browser.chromeosInfoPrivate
import kotlin.String
/**
* Status of enterprise enrollment.
*/
public enum class ManagedDeviceStatus(
private val `value`: String,
) {
managed("managed"),
not_managed("not managed"),
;
public override fun toString(): String = value
}
| 0 | Kotlin | 1 | 37 | ab2a825dd8dd8eb704278f52c603dbdd898d1875 | 285 | Kromex | Apache License 2.0 |
libraries/core_network/src/main/kotlin/dev/marlonlom/demos/melishop/core/network/api_impl.kt | marlonlom | 615,867,775 | false | null | package dev.marlonlom.demos.melishop.core.network
import dev.marlonlom.demos.melishop.core.network.categories.CategoriesResponseItem
import dev.marlonlom.demos.melishop.core.network.categories.CategoryResponse
import io.ktor.client.HttpClient
import io.ktor.client.call.body
import io.ktor.client.request.get
import io.... | 0 | Kotlin | 0 | 0 | bad0c479ba448682f80a83116465427b78832e7e | 1,002 | melishop | MIT License |
src/test/kotlin/com/discounts/nearby/service/scheduler/SupermarketDataUpdateScheduledServiceImplTest.kt | MarchenkoVladislav | 330,028,034 | false | {"HTML": 3540056, "Kotlin": 111830, "JavaScript": 26285, "CSS": 755} | package com.discounts.nearby.service.scheduler
import com.discounts.nearby.model.Good
import com.discounts.nearby.model.Goods
import com.discounts.nearby.model.Supermarket
import com.discounts.nearby.model.SupermarketCode
import com.discounts.nearby.model.category.GoodCategory
import com.discounts.nearby.service.Super... | 0 | HTML | 0 | 0 | 035fc24a53c2313a7f0a17acd66324982c05fd98 | 2,675 | DiscountsNearby | MIT License |
view/src/main/java/com/carlitosdroid/view/CroppedBitmapCallback.kt | CarlitosDroid | 100,199,272 | false | null | package com.carlitosdroid.view
import android.graphics.Bitmap
/**
* @author carlosleonardocamilovargashuaman on 7/6/18.
*/
interface CroppedBitmapCallback {
fun onCroppedBitmapReady(croppedBitmap: Bitmap)
} | 0 | Kotlin | 4 | 0 | a6826d664009a340d1afff0238c4e46144735204 | 214 | android-ImageCropperView | MIT License |
local-aws/src/test/java/com/nimbusframework/nimbusawslocal/deployment/services/resource/LocalDynamoDbDocumentStoreCreatorTest.kt | ihsmarkitoss | 230,110,781 | true | {"Kotlin": 258342, "JavaScript": 71112, "CSS": 28446, "HTML": 3721, "Java": 2673} | package com.nimbusframework.nimbusawslocal.deployment.services.resource
import com.nimbusframework.nimbuslocal.LocalNimbusDeployment
import exampleresources.DynamoDbDocument
import io.kotlintest.shouldNotBe
import io.kotlintest.specs.AnnotationSpec
internal class LocalDynamoDbDocumentStoreCreatorTest: AnnotationSpec(... | 0 | null | 0 | 0 | 9f54c7a04c3d71a417c4c5677d299be5e9dec7a0 | 603 | nimbus-local | Apache License 2.0 |
one.lfa.updater.app/src/main/java/au/org/libraryforall/updater/app/BackgroundExecutor.kt | AULFA | 189,855,520 | false | null | package au.org.libraryforall.updater.app
import com.google.common.util.concurrent.ListeningExecutorService
data class BackgroundExecutor(
val executor: ListeningExecutorService)
| 2 | Kotlin | 0 | 0 | ed34818d3f92243a68e2f31a28fa75e216d76994 | 183 | updater | Apache License 2.0 |
compiler/testData/codegen/box/variadicGenerics/helloWorld.kt | KirpichenkovPavel | 153,478,731 | true | {"Kotlin": 36246661, "Java": 7496492, "JavaScript": 155884, "HTML": 75262, "Lex": 23159, "TypeScript": 21255, "IDL": 10801, "ANTLR": 9803, "Shell": 7727, "Groovy": 6940, "Batchfile": 5362, "CSS": 4679, "Swift": 2253, "Ruby": 668, "Objective-C": 293, "Scala": 80} | // !LANGUAGE: +NewInference
// TARGET_BACKEND: JVM
// WITH_RUNTIME
import kotlin.experimental.*
class Tuple<Ts...> (vararg values: Ts) {
private val _values: Array<Any?> = arrayOf(*values)
operator fun <T> get(ix: @TypeIndex(Ts::class, T::class) Int): T = _values[ix] as T
}
fun box(): String {
val t = Tu... | 0 | Kotlin | 0 | 0 | 63f0e934cd793a9241ede6838c0b905b77af0b6a | 362 | kotlin | Apache License 2.0 |
browser-kotlin/src/jsMain/kotlin/web/performance/PerformanceMarkOptions.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6630901} | // Automatically generated - do not modify!
package web.performance
import web.time.DOMHighResTimeStamp
sealed external interface PerformanceMarkOptions {
var detail: Any?
var startTime: DOMHighResTimeStamp?
}
| 0 | Kotlin | 6 | 28 | 664781d7bdaf5f4aca206e11990b1d304fd45212 | 221 | types-kotlin | Apache License 2.0 |
core/src/jvmMain/kotlin/it/unibo/tuprolog/argumentation/core/libs/language/RuleParser.kt | tuProlog | 333,103,830 | false | {"Kotlin": 300090, "Prolog": 61781, "JavaScript": 917, "Java": 258} | package it.unibo.tuprolog.argumentation.core.libs.language
import it.unibo.tuprolog.argumentation.core.TheoryUtils
actual object RuleParser : RuleParserBase() {
override val prologRawTheory: String
get() = TheoryUtils.loadTheoryFromPrologFile("core/translation/ruleTranslator")
}
| 15 | Kotlin | 0 | 6 | 2cf65e2f1c94bc625447a10f12e765a20245bdcc | 294 | arg2p-kt | MIT License |
core/src/jvmMain/kotlin/it/unibo/tuprolog/argumentation/core/libs/language/RuleParser.kt | tuProlog | 333,103,830 | false | {"Kotlin": 300090, "Prolog": 61781, "JavaScript": 917, "Java": 258} | package it.unibo.tuprolog.argumentation.core.libs.language
import it.unibo.tuprolog.argumentation.core.TheoryUtils
actual object RuleParser : RuleParserBase() {
override val prologRawTheory: String
get() = TheoryUtils.loadTheoryFromPrologFile("core/translation/ruleTranslator")
}
| 15 | Kotlin | 0 | 6 | 2cf65e2f1c94bc625447a10f12e765a20245bdcc | 294 | arg2p-kt | MIT License |
app/src/main/java/com/itscoderslife/hellokotlinandroid/activities/LoginActivity.kt | itsdamslife | 140,426,155 | false | {"Kotlin": 20326} | package com.itscoderslife.hellokotlinandroid.activities
import android.content.Intent
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Toast
import com.google.android.gms.tasks.Task
import com.google.firebase.auth.AuthResult
import com.google.fireba... | 0 | Kotlin | 0 | 0 | dc3f9e0e4b45f78dd71de76be5e64c647e1df346 | 2,142 | AndroidKotlin | MIT License |
src/test/kotlin/non_test/_main_/view/preferences.kt | christophpickl | 56,092,216 | false | null | package non_test._main_.view
import at.cpickl.gadsu.preferences.PreferencesData
import at.cpickl.gadsu.preferences.testInstance
import at.cpickl.gadsu.preferences.view.PreferencesSwingWindow
import at.cpickl.gadsu.service.RealClock
import at.cpickl.gadsu.view.MainFrame
import at.cpickl.gadsu.view.SwingFactory
import c... | 43 | Kotlin | 1 | 2 | f6a84c42e1985bc53d566730ed0552b3ae71d94b | 822 | gadsu | Apache License 2.0 |
android/app/src/main/kotlin/com/me/matchgame/match_game/MainActivity.kt | amuhaimin02 | 254,057,942 | false | {"Dart": 51870, "Swift": 403, "Kotlin": 343, "HTML": 183, "Objective-C": 37} | package com.me.matchgame.match_game
import android.os.Bundle
import io.flutter.app.FlutterActivity
import io.flutter.plugins.GeneratedPluginRegistrant
class MainActivity: FlutterActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
GeneratedPluginRegistrant.re... | 0 | Dart | 1 | 0 | d1212bd74271435d8d43826280c0cf83a775c5ca | 343 | match_game | MIT License |
domain/src/main/java/com/pthw/domain/usecase/GetChallengeUseCase.kt | PhyoThihaWin | 769,428,664 | false | {"Kotlin": 66565} | package com.pthw.domain.usecase
import com.pthw.domain.DispatcherProvider
import com.pthw.domain.repository.BiometricRepository
import com.pthw.domain.usecase.utils.CoroutineUseCase
import javax.inject.Inject
/**
* Created by P.T.H.W on 11/03/2024.
*/
class GetChallengeUseCase @Inject constructor(
dispatcherPro... | 0 | Kotlin | 0 | 0 | a96fb34881e17b6bef8ca3048605900abd9977e4 | 568 | compose-rsa-biometric | Apache License 2.0 |
src/main/kotlin/com/xy/designpatterns/state/DayState.kt | monkey1992 | 482,294,811 | false | null | package com.xy.designpatterns.state
/**
* 白天状态
*/
class DayState : IState {
init {
run()
}
override fun run() {
println("进入白天,吃饭、上班、运动!")
}
} | 0 | Kotlin | 0 | 1 | 18f1d2657b4688a7f518421ae160a75eaa34f121 | 178 | XyDesignPatterns | Apache License 2.0 |
src/main/kotlin/com/github/tagwan/japm/core/MonitorMethodVisitor.kt | tagwan | 465,237,066 | false | null | package com.github.tagwan.japm.core
import com.github.tagwan.japm.const.FUNC_VOID_STRING
import com.github.tagwan.japm.const.INSTANCE
import com.github.tagwan.japm.const.METHOD_OVER
import com.github.tagwan.japm.const.METHOD_START
import com.github.tagwan.japm.monitor.TimeMonitor
import org.objectweb.asm.MethodVisitor... | 0 | Kotlin | 0 | 4 | 8184b5df18daf19005309bd58122afe78c23a6ba | 1,731 | japm | MIT License |
src/test/kotlin/com/namics/oss/gradle/license/DependencyTest.kt | merkle-open | 175,251,589 | false | {"Kotlin": 26631} | /**
* MIT License
*
* Copyright (c) 2019 Namics AG
*
* 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, modif... | 0 | Kotlin | 4 | 6 | 3de359c051ac9980444da6453a98462b802620d6 | 2,037 | gradle-license-enforce-plugin | MIT License |
app/src/main/kotlin/com/gmail/yaroslavlancelot/technarium/tabs/articles/ArticlesScreen.kt | YaroslavHavrylovych | 228,385,485 | false | null | package com.gmail.yaroslavlancelot.technarium.tabs.articles
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.tooling.preview.Preview
import androidx.lifecycle.viewmodel.co... | 0 | Kotlin | 0 | 1 | 6fffd4bede6927009760bbca82810695e1203926 | 599 | technical_news | Apache License 2.0 |
src/test/kotlin/day16/ParseRuleTest.kt | lukasz-marek | 317,632,409 | false | null | package day16
import org.junit.jupiter.api.Test
import strikt.api.expectThat
import strikt.assertions.isEqualTo
class ParseRuleTest {
@Test
fun `test 1`() {
// given
val rule = "arrival station: 49-353 or 360-967"
// when
val parsed = parseRule(rule)
// then
exp... | 0 | Kotlin | 0 | 0 | a16e95841e9b8ff9156b54e74ace9ccf33e6f2a6 | 485 | aoc2020 | MIT License |
shared/src/iosMain/kotlin/com/teewhydope/melotune/util/Logger.kt | teewhydope | 418,884,621 | false | {"Kotlin": 82483, "Ruby": 2034, "Swift": 345} | package com.teewhydope.melotune.util
actual class Logger actual constructor(className: String) {
actual fun log(msg: String) {
}
} | 0 | Kotlin | 0 | 3 | 57a7f6579d36bd642a5646283465596d248aae52 | 139 | MeloTune | MIT License |
src/jvmTest/kotlin/guilds.kt | LunalaProject | 310,613,687 | false | null | import com.gabriel.lunala.project.LunalaWrapper
import com.gabriel.lunala.project.entity.Guild
import com.gabriel.lunala.project.entity.GuildCreateDTO
import com.gabriel.lunala.project.entity.GuildUpdateDTO
import com.gabriel.lunala.project.service.GuildService
import com.gabriel.lunala.project.util.prepareClient
impor... | 0 | Kotlin | 0 | 1 | 5bf00add899b197b498168436b830ffa5b0d03ee | 1,557 | wrapper | MIT License |
webrtc-kmp/src/jsAndWasmJsMain/kotlin/com/shepeliev/webrtckmp/externals/RTCTrackEvent.kt | shepeliev | 329,550,581 | false | {"Kotlin": 233515} | package com.shepeliev.webrtckmp.externals
internal external interface RTCTrackEvent {
val receiver: RTCRtpReceiver
val track: PlatformMediaStreamTrack
val transceiver: RTCRtpTransceiver
}
internal expect val RTCTrackEvent.streams: List<PlatformMediaStream>
| 13 | Kotlin | 38 | 181 | 73e482e70dc7192601acd3482a6774c017c072de | 271 | webrtc-kmp | Apache License 2.0 |
src/test/kotlin/dev/mbo/logging/LeveledLoggerTest.kt | mbogner | 878,723,166 | false | {"Kotlin": 1992} | package dev.mbo.logging
import org.junit.jupiter.api.Test
import java.util.UUID
class LeveledLoggerTest {
private val log = logger()
@Test
fun log() {
val exc = Exception("this is on purpose: ${UUID.randomUUID()}")
LeveledLogger.log(log, LogLevel.TRACE, exc)
LeveledLogger.log(log... | 0 | Kotlin | 0 | 0 | cca2ae6eaa8ae6319557b9034a7725ebb065dd89 | 606 | library-kotlin-logging | Apache License 2.0 |
app/src/main/java/io/github/ytam/githubusers/domain/usecase/GetUsersUseCase.kt | ytam | 482,583,043 | false | null | package io.github.ytam.githubusers.domain.usecase
import io.github.ytam.githubusers.domain.repository.UserRepository
class GetUsersUseCase(private val userRepository: UserRepository) {
operator fun invoke() = userRepository.getAllUser()
}
| 0 | Kotlin | 0 | 0 | 404e048975cea26b5888747638fb36b1b40f551e | 246 | Jet-Users | Apache License 2.0 |
ViolinDS/app/src/main/java/ds/violin/v1/util/common/Common.kt | DSolyom | 59,245,536 | false | null | /*
Copyright 2016 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed ... | 0 | Kotlin | 0 | 2 | 01a49c551f0cc0f2188250460c907572ba12acf3 | 22,734 | ViolinDs | Apache License 2.0 |
app/src/main/java/io/nosyntax/foundation/di/AppEntryPoint.kt | aelrahmanashraf | 683,553,348 | false | {"Kotlin": 192257, "Groovy": 3276, "HTML": 1491, "Batchfile": 1149, "Shell": 744} | package io.nosyntax.foundation.di
import dagger.hilt.EntryPoint
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
@EntryPoint
@InstallIn(SingletonComponent::class)
interface AppEntryPoint {
} | 0 | Kotlin | 0 | 0 | 5918bafc18feb5a579ef11f1fdffdea53fbffa6d | 222 | nosyntax-foundation-android | MIT License |
processor/src/main/kotlin/com/casadetasha/kexp/sproute/processor/sproutes/SprouteParent.kt | Path-to-plunder | 427,878,747 | false | null | package com.casadetasha.kexp.sproute.processor.sproutes
import com.squareup.kotlinpoet.MemberName
internal sealed class SprouteParent(
val packageName: String,
val classSimpleName: String
) : Comparable<SprouteParent> {
val memberName = MemberName(packageName, classSimpleName)
abstract val sprouteRe... | 0 | Kotlin | 0 | 1 | 3e75b3b053aac64c508568900f38b018b54b5e9e | 510 | Sproutes | Apache License 2.0 |
feature-wallet-api/src/main/java/io/novafoundation/nova/feature_wallet_api/presentation/view/amount/ChooseAmountInputView.kt | novasamatech | 415,834,480 | false | {"Kotlin": 8152538, "Java": 14723, "JavaScript": 425} | package io.novafoundation.nova.feature_wallet_api.presentation.view.amount
import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.widget.EditText
import androidx.constraintlayout.widget.ConstraintLayout
import coil.ImageLoader
import io.novafoundation.nova.common.di.Fea... | 13 | Kotlin | 6 | 9 | b39307cb56302ce7298582dbd03f33f6b2e2a807 | 2,159 | nova-wallet-android | Apache License 2.0 |
src/main/kotlin/br/com/zup/controller/NovaChaveController.kt | abner-ribeiro | 410,858,566 | true | {"Kotlin": 20288} | package br.com.zup.controller
import br.com.zup.KeyManagerRegistraServiceGrpc
import br.com.zup.dto.NovaChaveDto
import io.micronaut.http.HttpResponse
import io.micronaut.http.annotation.Body
import io.micronaut.http.annotation.Controller
import io.micronaut.http.annotation.Post
import io.micronaut.validation.Validate... | 0 | Kotlin | 0 | 0 | c2ed26c8c10f9765d4d0c45e0f99840c331f0898 | 841 | orange-talents-07-template-pix-keymanager-rest | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/deliusapi/mapper/ContactMapperTest.kt | uk-gov-mirror | 356,783,147 | false | {"Kotlin": 522238, "Dockerfile": 3159, "Shell": 2477} | package uk.gov.justice.digital.hmpps.deliusapi.mapper
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import uk.gov.justice.digital.hmpps.deliusapi.dto.v1.contact.ContactDto
import uk.gov.justice.digital.hmpps.deliusapi.dto.v1.contact.UpdateContact
import uk.gov.justice.digital.hmpp... | 0 | Kotlin | 0 | 0 | ed5f77a92a1f6f0615998bfdb4282d600a3ada71 | 2,687 | ministryofjustice.hmpps-delius-api | MIT License |
demo/src/main/java/com/zwy/demo/views/MainActivity.kt | hesiming | 273,230,049 | true | {"Kotlin": 88762} | package com.zwy.demo.views
import android.app.Activity
import android.os.Bundle
import com.zwy.demo.R
import com.zwy.demo.base.BaseActivity
import com.zwy.demo.databinding.MainLayoutBinding
import com.zwy.demo.models.MainViewModel
import d
import org.jetbrains.anko.toast
import java.io.File
import java.io.FileOutputSt... | 0 | null | 0 | 1 | 01102e2f4ee839cb5753535a399be34e43b2d325 | 2,250 | open_nsfw_android | Apache License 2.0 |
src/main/kotlin/br/com/fiap/mikes/production/application/core/domain/ProductionHistory.kt | matheuscosantos | 738,716,181 | false | {"Kotlin": 106333, "HCL": 7152, "Gherkin": 3690, "Shell": 533, "Dockerfile": 209} | package br.com.fiap.mikes.production.application.core.domain
import br.com.fiap.mikes.production.application.core.domain.valueobject.OrderId
import br.com.fiap.mikes.production.application.core.domain.valueobject.ProductionHistoryId
import br.com.fiap.mikes.production.application.core.domain.valueobject.ProductionStat... | 0 | Kotlin | 0 | 0 | 786c0143e1ef6c584b05a81ff003f9d360e1c355 | 910 | mikes-producao | Apache License 2.0 |
Pokedex/app/src/main/java/com/example/pokedex/data/model/PokemonType.kt | ricardovalverde | 400,578,357 | false | null | package com.example.pokedex.data.model
data class PokemonType(
val type: String
) | 0 | Kotlin | 0 | 0 | a4c51ffb3e7ff8252ac78ec2544ea8dafd6b913d | 86 | pokedex | MIT License |
app/src/main/java/com/geovannycode/jetpackcompose/ecoeats/data/util/Util.kt | geovannymcode | 857,588,318 | false | {"Kotlin": 61091} | package com.geovannycode.jetpackcompose.ecoeats.data.util
import android.content.SharedPreferences
object Util {
fun saveTokenSharePreferences(sharedPreferences: SharedPreferences, data:String){
sharedPreferences.edit().putString("KEY_TOKEN", data).apply()
}
fun SharedPreferences.save(data:Strin... | 0 | Kotlin | 0 | 0 | d6277851c15c8d40c92e2a586e8cf5b0eb77266a | 493 | jetpackcompose-ecoeats | Apache License 2.0 |
shared/src/desktopMain/kotlin/de/xorg/gsapp/data/sources/local/PathSource.kt | libf-de | 689,474,523 | false | {"Kotlin": 372877, "Swift": 743, "Ruby": 406, "Shell": 228} | package de.xorg.gsapp.data.sources.local
import net.harawata.appdirs.AppDirsFactory
import org.kodein.di.DI
import org.kodein.di.DIAware
import java.util.prefs.Preferences
actual class PathSource actual constructor(override val di: DI) : DIAware {
val appDir: String = AppDirsFactory.getInstance().getUserCacheDir... | 6 | Kotlin | 0 | 1 | f9bba225649a71636f407c2a47e877d828fcfe73 | 803 | GSApp3-MP | Apache License 2.0 |
src/main/kotlin/be/zvz/alsong/deserializer/LyricDeserializer.kt | JellyBrick | 373,705,678 | false | null | package be.zvz.alsong.deserializer
import be.zvz.alsong.Utils
import com.fasterxml.jackson.core.JsonParser
import com.fasterxml.jackson.databind.DeserializationContext
import com.fasterxml.jackson.databind.JsonDeserializer
class LyricDeserializer : JsonDeserializer<Map<Long, List<String>>>() {
override fun deseri... | 1 | Kotlin | 0 | 7 | 7a586b94fac0dde4e9eb04ff776f1c5853562142 | 442 | alsong-kt | Apache License 2.0 |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/codebuild/CfnProjectLogsConfigPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier", "RedundantUnitReturnType", "RemoveRedundantQualifierName", "unused", "UnusedImport", "ClassName", "REDUNDANT_PROJECTION", "DEPRECATION")
package cloudshift.awscdk.dsl.services.codebuild
import cloudshift.awscdk.common.CdkDslMarker
import software.amazon.awscdk.IResolvable... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 2,800 | awscdk-dsl-kotlin | Apache License 2.0 |
common/src/main/kotlin/com/vnapnic/common/entities/ResultCode.kt | alphaNumericEntity | 763,513,563 | false | {"Kotlin": 397164, "Java": 8775, "HTML": 6673, "Dockerfile": 224} | package com.vnapnic.common.entities
enum class ResultCode(val code: Int, val message: String) {
// Successfully
SUCCESS(200, "Successful"),
FAILED(500, "Failed"),
UNAUTHORIZED(401, "Not logged in yet or token has expired"),
FORBIDDEN(403, "No relevant permissions"),
NOT_FOUND(404, "Not found"),... | 0 | Kotlin | 0 | 0 | 495581ca09d1c4a03e2643ce8601886009b39665 | 1,686 | kotlin-spring-boot-microservices | Apache License 2.0 |
02-set-up-the-project/starter/app/src/main/java/com/raywenderlich/android/librarian/database/dao/ReadingListDao.kt | GoddayOkos | 386,239,555 | false | null | package com.raywenderlich.android.librarian.database.dao
import androidx.room.*
import com.raywenderlich.android.librarian.model.ReadingList
import kotlinx.coroutines.flow.Flow
@Dao
interface ReadingListDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun addReadingList(readingList: ReadingList... | 0 | Kotlin | 0 | 0 | 4ea73dc92ded377f15cfdf7359ffd09f0629163f | 842 | Librarian-App | Apache License 2.0 |
app/src/main/java/com/trackerbreeze/features/dailyPlan/api/PlanApi.kt | DebashisINT | 598,511,717 | false | {"Kotlin": 15827152, "Java": 1025908} | package com.trackerbreeze.features.dailyPlan.api
import com.trackerbreeze.app.NetworkConstant
import com.trackerbreeze.base.BaseResponse
import com.trackerbreeze.features.dailyPlan.model.AllPlanListResponseModel
import com.trackerbreeze.features.dailyPlan.model.GetPlanDetailsResponseModel
import com.trackerbreeze.feat... | 0 | Kotlin | 0 | 0 | cc23d7abc8ccd898d5b8f55405c013b6167c2c2c | 2,162 | NTC | Apache License 2.0 |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bold/Textalignright.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.co... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 3,885 | VuesaxIcons | MIT License |
pleo-antaeus-core/src/main/kotlin/io/pleo/antaeus/core/jobs/InvoicingJobFactory.kt | tiagobluiz | 630,198,573 | false | null | package io.pleo.antaeus.core.jobs
import io.pleo.antaeus.core.services.BillingService
import org.quartz.Job
import org.quartz.Scheduler
import org.quartz.spi.JobFactory
import org.quartz.spi.TriggerFiredBundle
class InvoicingJobFactory(private val billingService: BillingService) : JobFactory {
override fun newJo... | 0 | Kotlin | 0 | 0 | 8cb49c4d81f47380d5d115a0f61581cdd66b4cd4 | 566 | pleo-challenge | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/rs/codingexercisegyg/reviewslist/ReviewsListViewModel.kt | ranjeetsinha13 | 238,456,800 | false | null | package com.rs.codingexercisegyg.reviewslist
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.paging.LivePagedListBuilder
import androidx.paging.PagedList
import com.rs.codingexercisegyg.network.data.Review
import javax.inject.Inject
class ReviewsListViewModel @Inject
constructor... | 0 | Kotlin | 0 | 0 | f39314bb2962648ade3530e996f4ad05c5749f3b | 1,505 | CodingExerciseGYG | MIT License |
peel/src/main/kotlin/net/tjalp/peach/peel/util/GsonHelper.kt | tjalp | 421,781,027 | false | null | package net.tjalp.peach.peel.util
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import com.google.gson.JsonElement
import com.google.gson.JsonObject
/**
* Helper class for using Gson functionality
* within peach.
*/
object GsonHelper {
/** The internal Gson builder */
private val globalBuilder:... | 0 | Kotlin | 0 | 0 | 0d74c084b3e83dfaaec7a2bf52f056de7a5f6a08 | 1,648 | peach | MIT License |
vclib/src/commonMain/kotlin/at/asitplus/wallet/lib/data/InstantStringSerializer.kt | a-sit-plus | 602,578,639 | false | {"Kotlin": 779179} | package at.asitplus.wallet.lib.data
import kotlinx.datetime.Instant
import kotlinx.serialization.KSerializer
import kotlinx.serialization.descriptors.PrimitiveKind
import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor
import kotlinx.serialization.descriptors.SerialDescriptor
import kotlinx.serialization.e... | 4 | Kotlin | 2 | 9 | cd329850e8ccd735cd2b8f43624059b60dbd0008 | 807 | kmm-vc-library | Apache License 2.0 |
centurion-avro/src/main/kotlin/com/sksamuel/centurion/avro/io/DataWriter.kt | sksamuel | 13,625,531 | false | {"Dotenv": 1, "Gradle Kotlin DSL": 9, "YAML": 5, "Markdown": 2, "Java Properties": 1, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "Kotlin": 113, "INI": 1, "XML": 1, "Java": 2} | package com.sksamuel.centurion.avro.io
import org.apache.avro.Schema
import org.apache.avro.file.CodecFactory
import org.apache.avro.file.DataFileWriter
import org.apache.avro.generic.GenericDatumWriter
import org.apache.avro.generic.GenericRecord
import java.io.ByteArrayOutputStream
import java.io.OutputStream
/**
... | 0 | Kotlin | 46 | 326 | 9efc1ca590963a28712ea878a3002bc13d51a496 | 3,029 | rxhive | Apache License 2.0 |
app/src/main/java/com/foreveross/atwork/modules/lite/activity/LiteBindScanActivity.kt | AoEiuV020 | 421,650,297 | false | {"Java": 8618305, "Kotlin": 1733509, "JavaScript": 719597, "CSS": 277438, "HTML": 111559} | package com.foreveross.atwork.modules.lite.activity
import android.content.Context
import android.content.Intent
import androidx.fragment.app.Fragment
import com.foreveross.atwork.infrastructure.utils.extension.putParcelableDirectly
import com.foreveross.atwork.modules.lite.fragment.LiteBindScanFragment
import com.for... | 1 | null | 1 | 1 | 1c4ca5bdaea6d5230d851fb008cf2578a23b2ce5 | 858 | w6s_lite_android | MIT License |
chats/src/main/java/com/cyberland/messenger/chats/components/ConversationInputPanel.kt | Era-CyberLabs | 576,196,269 | false | {"Java": 6276144, "Kotlin": 5427066, "HTML": 92928, "C": 30870, "Groovy": 12495, "C++": 6551, "CMake": 2728, "Python": 1600, "AIDL": 1267, "Makefile": 472} | package com.bcm.messenger.chats.components
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.content.pm.PackageManager
import android.graphics.PorterDuff
import android.net.Uri
import android.os.Vibrator
import android.text.Editable
import android.text.Spa... | 1 | null | 1 | 1 | 65a11e5f009394897ddc08f4252969458454d052 | 37,705 | cyberland-android | Apache License 2.0 |
packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/render/RenderExtensions.kt | liu-wanshun | 595,904,109 | true | null | /*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Java | 1 | 2 | e99201cd9b6a123b16c30cce427a2dc31bb2f501 | 983 | platform_frameworks_base | Apache License 2.0 |
ConfigurationProcessor/src/main/kotlin/com/lukasbrand/configuration_processor/EnvConfiguration.kt | LukasBrand | 527,283,791 | false | {"Java": 4542, "Kotlin": 4541} | package com.lukasbrand.configuration_processor
interface EnvConfiguration : Configuration {
} | 1 | null | 1 | 1 | 1fa106844762373f9765f56431ce164ada70a96a | 94 | JavaConfiguration | MIT License |
untitled3/src/main/java/org/example/Main.kt | longerhhh | 507,487,467 | false | {"Java": 158353, "Kotlin": 54584, "Groovy": 2165, "Go": 1595} | package org.example
import org.example.entity.Context
import org.example.entity.OverlayPlugin
object Main {
@JvmStatic
fun main(args: Array<String>) {
OverlayPlugin().onCreate(Context("name", "description"))
}
} | 1 | null | 1 | 1 | ecd5f5a8daa54406c589f5eade001ad1e8bf4434 | 233 | justForLearn | Apache License 2.0 |
client/src/main/kotlin/com/ecwid/upsource/rpc/projects/BranchDTO.kt | turchenkoalex | 266,583,029 | false | null | // Generated by the codegen. Please DO NOT EDIT!
// source: message.ftl
package com.ecwid.upsource.rpc.projects
/**
* @param projectId Project ID in Upsource
* @param name Branch name
* @param lastRevision See RevisionInfoDTO parameters
* @param isDefault Whether the branch is a default one
* @param stats See Br... | 0 | Kotlin | 1 | 3 | 77dda5f8357b35683189f595b9f75f0a58f45e66 | 1,469 | upsource-rpc | Apache License 2.0 |
client/src/main/kotlin/com/ecwid/upsource/rpc/projects/BranchDTO.kt | turchenkoalex | 266,583,029 | false | null | // Generated by the codegen. Please DO NOT EDIT!
// source: message.ftl
package com.ecwid.upsource.rpc.projects
/**
* @param projectId Project ID in Upsource
* @param name Branch name
* @param lastRevision See RevisionInfoDTO parameters
* @param isDefault Whether the branch is a default one
* @param stats See Br... | 0 | Kotlin | 1 | 3 | 77dda5f8357b35683189f595b9f75f0a58f45e66 | 1,469 | upsource-rpc | Apache License 2.0 |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/Clover2.kt | walter-juan | 868,046,028 | false | null | package com.woowla.compose.icon.collections.tabler.tabler.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector... | 0 | null | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 4,591 | compose-icon-collections | MIT License |
app/src/main/java/cn/rongcloud/voiceroomdemo/mvp/activity/VoiceRoomListActivity.kt | iostyle | 396,748,047 | true | {"Kotlin": 403974, "Java": 168868} | /*
* Copyright © 2021 RongCloud. All rights reserved.
*/
package cn.rongcloud.voiceroomdemo.mvp.activity
import android.app.Dialog
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.view.LayoutInflater
import android.view.View
import androidx.appcompat.widget.AppCompa... | 0 | null | 0 | 0 | 801268cf14a5e1b65f02ad2d4b6a024c213ad05f | 5,205 | rongcloud-scene-android-demo | MIT License |
src/FEMetalSheet.kt | danftang | 140,095,532 | false | {"Kotlin": 42153, "Gnuplot": 90} | import org.apache.commons.math3.geometry.euclidean.threed.Vector3D
// Finite element metal sheet
class FEMetalSheet {
val material = materials.BellMetal
val iSize : Int = 100
val jSize : Int = 100
val kSize : Int = 2
val physicalSize = Vector3D(0.3,0.3,0.002) // m
val delta : Vector3D = physic... | 0 | Kotlin | 0 | 0 | 338cf2025a73440b1fa3275428085da8745972b4 | 1,505 | MusicalInstrumentSim | MIT License |
data/src/main/java/com/semicolon/data/repository/UserRepositoryImpl.kt | Walkhub | 443,006,389 | false | null | package com.semicolon.data.repository
import com.semicolon.data.local.datasource.LocalUserDataSource
import com.semicolon.data.remote.datasource.RemoteImagesDataSource
import com.semicolon.data.remote.datasource.RemoteUserDataSource
import com.semicolon.data.remote.request.users.*
import com.semicolon.data.remote.resp... | 30 | Kotlin | 1 | 15 | c2d85ebb9ae8b200be22e9029dcfdcbfed19e473 | 6,562 | walkhub_android | MIT License |
protocol/osrs-225/osrs-225-desktop/src/main/kotlin/net/rsprot/protocol/game/incoming/codec/misc/client/MapBuildCompleteDecoder.kt | blurite | 771,753,685 | false | {"Kotlin": 9348194} | package net.rsprot.protocol.game.incoming.codec.misc.client
import net.rsprot.buffer.JagByteBuf
import net.rsprot.protocol.ClientProt
import net.rsprot.protocol.game.incoming.misc.client.MapBuildComplete
import net.rsprot.protocol.game.incoming.prot.GameClientProt
import net.rsprot.protocol.message.codec.MessageDecode... | 4 | Kotlin | 6 | 27 | 349184703744ee53a0c260c2aad88846b95dcb93 | 610 | rsprot | MIT License |
app/src/main/java/com/sandoval/recipesapp/utils/RecipesDiffUtil.kt | juanchosandox90 | 623,182,583 | false | null | package com.sandoval.recipesapp.utils
import androidx.recyclerview.widget.DiffUtil
class RecipesDiffUtil<T>(
private val oldRecipes: List<T>,
private val newRecipes: List<T>
) : DiffUtil.Callback() {
override fun getOldListSize(): Int {
return oldRecipes.size
}
override fun getNewListSi... | 0 | Kotlin | 0 | 2 | 30ff9752624e4d917949089f051f8a1c759ea094 | 712 | RecipesApp | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsremandandsentencingapi/service/SentenceTypeService.kt | ministryofjustice | 688,886,051 | false | {"Kotlin": 168987, "Dockerfile": 1373} | package uk.gov.justice.digital.hmpps.hmppsremandandsentencingapi.service
import org.springframework.stereotype.Service
import uk.gov.justice.digital.hmpps.hmppsremandandsentencingapi.controller.dto.SentenceType
import uk.gov.justice.digital.hmpps.hmppsremandandsentencingapi.jpa.repository.SentenceTypeRepository
import... | 1 | Kotlin | 0 | 0 | 594c66fa3c01dc2fc1b344bfdd2998619c8d7c66 | 633 | hmpps-remand-and-sentencing-api | MIT License |
src/main/kotlin/ao/co/nextbss/requirekt/Preconditions.kt | nextbss | 291,957,016 | false | null | package ao.co.nextbss.requirekt
import org.springframework.beans.BeansException
import org.springframework.context.ApplicationContext
import org.springframework.context.ApplicationContextAware
import org.springframework.core.SpringProperties
import org.springframework.http.HttpStatus
import org.springframework.stereot... | 1 | Kotlin | 0 | 8 | 25823a3cae462c2ea97e09399cc0cb84275119f6 | 3,826 | requirekt | MIT License |
bitcoincore/src/main/kotlin/io/definenulls/bitcoincore/managers/IUnspentOutputProvider.kt | toEther | 677,363,684 | false | null | package io.definenulls.bitcoincore.managers
import io.definenulls.bitcoincore.storage.UnspentOutput
interface IUnspentOutputProvider {
fun getSpendableUtxo(): List<UnspentOutput>
}
| 0 | Kotlin | 0 | 0 | bbd7c809a027dd33c1fd393f6a53684d84dcbe14 | 187 | bitcoin-kit-android_s | MIT License |
app/src/main/java/com/earlier/yma/ui/settings/Settings.kt | namhyun-gu | 59,075,138 | false | {"Kotlin": 106247, "Shell": 131} | /*
* Copyright 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writin... | 4 | Kotlin | 0 | 0 | 424830c4f6550160a72cc8bc2955b99275761171 | 3,930 | MealViewer | Apache License 2.0 |
src/main/kotlin/com/example/data/dtos/sns/Sns.kt | itshedimisawi | 851,502,962 | false | {"Kotlin": 42498} | package com.example.data.dtos.sns
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class SNSSubscribeNotification(
@SerialName("Token")
val token: String
)
@Serializable
data class SNSNotification(
@SerialName("Message")
val message: String
)
@Se... | 0 | Kotlin | 0 | 3 | 07f0607f09aa028ea7dd98fe16c2153b11f2c539 | 396 | ktor-integrations | MIT License |
tuiutils/src/main/java/com/tans/tuiutils/adapter/impl/viewcreatators/SingleItemViewCreatorImpl.kt | Tans5 | 776,328,098 | false | {"Kotlin": 144830} | package com.tans.tuiutils.adapter.impl.viewcreatators
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.LayoutRes
import androidx.recyclerview.widget.RecyclerView
import com.tans.tuiutils.adapter.AdapterBuilder
import com.tans.tuiutils.adapter.ItemView... | 0 | Kotlin | 1 | 1 | ba61bca0f26b9a4ea7664414cb8122ff18aa765c | 935 | tUiUtils | Apache License 2.0 |
core/src/main/kotlin/com/heroslender/hmf/core/ui/modifier/node/ComponentWrapper.kt | heroslender | 341,310,824 | false | null | package com.heroslender.hmf.core.ui.modifier.node
import com.heroslender.hmf.core.Canvas
import com.heroslender.hmf.core.ui.Component
import com.heroslender.hmf.core.ui.Measurable
import com.heroslender.hmf.core.ui.MeasureScope
import com.heroslender.hmf.core.ui.AbstractPlaceable
abstract class ComponentWrapper(open ... | 1 | Kotlin | 4 | 58 | 23c601aa0680ae1366f63b761cfa9b74b80833ab | 1,280 | menu-framework | MIT License |
ViewModel-SavedState-ktx/src/main/java/com/wada811/viewmodelsavedstate/SavedStateAdapter.kt | wada811 | 213,007,272 | false | null | package com.wada811.viewmodelsavedstate
interface SavedStateAdapter<TValue, TState> {
fun toSavedState(value: TValue): TState
fun fromSavedState(state: TState): TValue
} | 0 | Kotlin | 1 | 20 | 5631632821588ffbed28b709e675ad2cce818a10 | 178 | ViewModel-SavedState-ktx | Apache License 2.0 |
integration/maven-plugin-integration-tests/integration/complete-setup-kotlinx/src/main/kotlin/com/example/UUIDScalarConverter.kt | ExpediaGroup | 148,706,161 | false | {"Kotlin": 2410561, "MDX": 720089, "HTML": 12165, "JavaScript": 10447, "CSS": 297, "Dockerfile": 147} | package com.example
import com.expediagroup.graphql.client.converter.ScalarConverter
import java.util.UUID
class UUIDScalarConverter : ScalarConverter<UUID> {
override fun toScalar(rawValue: Any): UUID = UUID.fromString(rawValue.toString())
override fun toJson(value: UUID): Any = value.toString()
}
| 68 | Kotlin | 345 | 1,739 | d3ad96077fc6d02471f996ef34c67066145acb15 | 310 | graphql-kotlin | Apache License 2.0 |
ocgena-domain/src/main/kotlin/ru/misterpotz/ocgena/simulation_old/transition/TransitionInstanceCreatorFacadeOriginal.kt | MisterPotz | 605,293,662 | false | {"Kotlin": 749008, "TypeScript": 495751, "JavaScript": 36713, "CSS": 14489, "Python": 8026, "HTML": 3173, "Ruby": 285, "EJS": 274, "Java": 140} | package ru.misterpotz.ocgena.simulation_old.transition
import ru.misterpotz.ocgena.simulation_old.collections.ObjectTokenRealAmountRegistry
import ru.misterpotz.ocgena.simulation_old.collections.PlaceToObjectMarkingDelta
import ru.misterpotz.ocgena.simulation_old.generator.original.TransitionInstanceDurationGeneratorO... | 0 | Kotlin | 0 | 1 | 32a25441882c4780ed6b964a24430ef086222b76 | 3,210 | ocgena | MIT License |
src/main/kotlin/pl/alpheratzteam/obfuscator/util/ConditionUtil.kt | alpheratzteam | 204,757,128 | false | null | package pl.alpheratzteam.obfuscator.util
/**
* @author Unix
* @since 30.03.2021
*/
object ConditionUtil {
/**
* Checks some conditions.
* if **true**, runs [Runnable].
* @param condition as conditions to check.
* @param runnable as runnable to run.
* @see [Runnable]
*/
fun ch... | 0 | Kotlin | 14 | 96 | a03cc48293a7feb1826581fe5e175cf7ef3ce95c | 462 | obfuscator | MIT License |
api/src/main/kotlin/com/okeicalm/scrumBoost/Application.kt | okeicalm | 628,295,165 | false | null | package com.okeicalm.scrumBoost
import com.okeicalm.scrumBoost.plugins.configureDatabases
import com.okeicalm.scrumBoost.plugins.configureRouting
import com.okeicalm.scrumBoost.plugins.configureSecurity
import com.okeicalm.scrumBoost.plugins.graphQLModule
import io.ktor.server.application.Application
fun main(args: A... | 1 | Kotlin | 0 | 0 | b034edebe557b54ba14d0e764cfcda1d138f331f | 507 | scrum_boost | MIT License |
src/main/kotlin/no/nav/pensjon/innsyn/common/PersonNotFoundException.kt | navikt | 191,574,968 | false | null | package no.nav.pensjon.innsyn.common
class PersonNotFoundException: Throwable() | 0 | Kotlin | 0 | 0 | 0f82ac51c401a6f10ff62d6416d7c40de70ed132 | 80 | pensjon-pol-innsyn | MIT License |
app/src/main/java/com/personal/weathering/aq/domain/models/EuAqType.kt | Avvami | 702,061,643 | false | {"Kotlin": 473583} | package com.personal.weathering.aq.domain.models
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
import androidx.compose.ui.graphics.Color
import com.personal.weathering.R
import com.personal.weathering.ui.theme.aqiEuExtremelyPoorUsHazardousPrimary
import com.personal.weathering.ui.theme.aq... | 0 | Kotlin | 0 | 0 | fabd0313b1d8c20dec02b498a61886fa69bf9d5f | 4,275 | Weathering | MIT License |
services/csm.cloud.reset/src/main/kotlin/com/bosch/pt/iot/smartsite/importer/boundary/DynamicTestDataExtender.kt | boschglobal | 805,348,245 | false | {"Kotlin": 13156190, "HTML": 274761, "Go": 184388, "HCL": 158560, "Shell": 117666, "Java": 52634, "Python": 51306, "Dockerfile": 10348, "Vim Snippet": 3969, "CSS": 344} | /*
* ************************************************************************
*
* Copyright: <NAME> Power Tools GmbH, 2018 - 2022
*
* ************************************************************************
*/
package com.bosch.pt.iot.smartsite.importer.boundary
import com.bosch.pt.iot.smartsite.dataimpo... | 0 | Kotlin | 3 | 9 | 9f3e7c4b53821bdfc876531727e21961d2a4513d | 11,875 | bosch-pt-refinemysite-backend | Apache License 2.0 |
src/nativeGen/kotlin/godot/GIProbe.kt | piiertho | 237,614,467 | true | {"Kotlin": 5300589} | // DO NOT EDIT, THIS FILE IS GENERATED FROM api.json
package godot
import gdnative.godot_method_bind
import godot.core.Godot
import godot.core.Variant
import godot.core.VariantArray
import godot.core.Vector3
import kotlin.Boolean
import kotlin.Float
import kotlin.Int
import kotlin.Unit
import kotlin.reflect.KCallable
... | 0 | null | 0 | 1 | 3a8c598040f9b47b2b8cf8f5432543f61d6f83e8 | 12,665 | godot-kotlin | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.