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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
HamsterListCore/src/androidMain/kotlin/org/stratum0/hamsterlist/koin/KoinModule.android.kt | Evylon | 597,770,657 | false | {"Kotlin": 80616, "Swift": 22953} | package org.stratum0.hamsterlist.koin
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.androidx.viewmodel.dsl.viewModelOf
import org.koin.dsl.module
import org.stratum0.hamsterlist.viewmodel.home.HomeViewModel
import org.stratum0.hamsterlist.viewmodel.shoppinglist.ShoppingListViewModel
actual val view... | 9 | Kotlin | 0 | 2 | 8b1ea5ddc2030d8dcaf4de3e0452957a8ad7152b | 457 | HamsterList-Native | MIT License |
next/kmp/dwebview/src/iosMain/kotlin/org/dweb_browser/dwebview/DWebViewRender.ios.kt | BioforestChain | 594,577,896 | false | {"Kotlin": 3452649, "TypeScript": 797969, "Swift": 368692, "Vue": 156621, "SCSS": 39016, "Objective-C": 17350, "HTML": 16888, "Shell": 13534, "JavaScript": 4687, "Svelte": 3504, "CSS": 818} | package org.dweb_browser.dwebview
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.interop.UIKitView
import kotlinx.cinterop.ExperimentalForeignApi
import kotlinx.coroutines.launch
@OptIn(ExperimentalForeignApi::class)
@Composable
actual fun IDWebView.Render(
... | 60 | Kotlin | 4 | 13 | 31a925694978ec33fe08fcbf6005cd7f6f85e3e6 | 738 | dweb_browser | MIT License |
GudiCafeteria_a/app/src/main/java/com/duzi/gudicafeteria_a/ui/detail/ReviewFragment.kt | devJJo | 161,967,828 | true | {"Kotlin": 88906, "Java": 9676} | package com.duzi.gudicafeteria_a.ui.detail
import android.annotation.SuppressLint
import android.arch.lifecycle.Observer
import android.arch.lifecycle.ViewModelProviders
import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v7.widget.LinearLayoutManager
import android.view.LayoutInflat... | 0 | Kotlin | 0 | 0 | f7fb9e4313fdd5abc64b3545fd726388af720507 | 2,088 | GudiCafeteria | MIT License |
java-program-design/src/test/kotlin/chapter/one/two/three/one/AccountTestTest.kt | masx200 | 683,903,760 | false | {"Maven POM": 4, "Text": 1, "Ignore List": 5, "XML": 2, "Markdown": 1, "Kotlin": 91, "Java": 146, "YAML": 3, "Gradle Kotlin DSL": 2, "INI": 1, "Shell": 1, "Batchfile": 1, "Java Properties": 1} | package chapter.one.two.three.one
import org.junit.jupiter.api.Test
internal class AccountTestTest {
@Test
fun maintest() {
AccountTest.main(arrayOf())
}
} | 4 | Java | 0 | 1 | 11d2deb7b3a7a0ac600563c2eaae51a030d3068d | 177 | learn-java-kotlin-programming | Mulan Permissive Software License, Version 2 |
components/src/main/java/com/mercadolibre/android/andesui/thumbnail/utils/AndesThumbnailConfigurationApiLevelResolver.kt | maaguero | 252,283,086 | false | {"Gradle": 9, "Markdown": 17, "Java Properties": 1, "Shell": 1, "Ignore List": 4, "Batchfile": 1, "YAML": 5, "XML": 150, "Proguard": 3, "Kotlin": 311, "INI": 1, "HTML": 1, "JSON": 1, "Java": 1} | package com.mercadolibre.android.andesui.thumbnail.utils
import android.content.Context
import com.mercadolibre.android.andesui.thumbnail.factory.AndesThumbnailConfigurationFactory
import com.mercadolibre.android.andesui.thumbnail.size.AndesThumbnailSizeInterface
import com.mercadolibre.android.andesui.thumbnail.type.... | 1 | null | 1 | 1 | bc12913d8a91c4a71faed6ba7e5d6fdfa16de123 | 2,337 | fury_andesui-android | MIT License |
core/src/main/kotlin/commands/StatusCommand.kt | 4ds23d | 742,029,131 | false | {"Kotlin": 16997, "Shell": 1133} | package org.example.commands
import java.nio.file.Path
class StatusCommand(private val workingDirectory: Path) {
fun hasUncommitedChanges(): Boolean {
val command = OsCommand("git status --porcelain", workingDirectory).executeOrThrow()
return command.response.isNotEmpty()
}
} | 0 | Kotlin | 0 | 0 | 964ee9c88892f4b36d72524c40229e604e8cdf20 | 303 | git-release | MIT License |
webservice/src/main/kotlin/com/andigeeky/spring/webservice/greetings/dao/FakeStudentDAOImpl.kt | mamatagelanee07 | 292,259,360 | false | null | package com.andigeeky.spring.webservice.greetings.dao
import com.andigeeky.spring.webservice.greetings.model.Student
import org.springframework.stereotype.Repository
import java.util.*
@Repository("fakeDAO")
class FakeStudentDAOImpl : StudentDAO {
private val database: MutableMap<UUID, Student> = mutableMapOf()
... | 0 | Kotlin | 0 | 0 | 3f9374da70c95a843b2de4e7e1cf5401af34b823 | 1,082 | spring_guides | Apache License 2.0 |
app/src/main/java/com/example/dropy/network/models/getWaterPoints/GetWaterPointsResItem.kt | dropyProd | 705,360,878 | false | {"Kotlin": 3916897, "Java": 20617} | package com.example.dropy.network.models
data class CreateWaterPointRes(
val bank_account: String,
val capacity: Int,
val city: String,
val county: String,
val description: String,
val email: String,
val holidays_open: Boolean,
val id: String,
val is_active: Boolean,
val latitud... | 0 | Kotlin | 0 | 0 | 6d994c9c61207bac28c49717b6c250656fe4ae6b | 928 | DropyLateNights | Apache License 2.0 |
src/main/kotlin/com/ex/ex/core/data/type/entity/TypeEntity.kt | fajaragungpramana | 750,128,637 | false | {"Kotlin": 75790} | package com.ex.ex.core.data.type.entity
import com.ex.ex.core.data.DataConstant
import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.GeneratedValue
import jakarta.persistence.GenerationType
import jakarta.persistence.Id
import jakarta.persistence.Table
@Entity
@Table(name = D... | 0 | Kotlin | 0 | 1 | edac4e71d3f37015a932c64b0f522af508dcef95 | 790 | backend.ex | Apache License 2.0 |
worldwind/src/commonMain/kotlin/earth/worldwind/util/Pool.kt | WorldWindEarth | 488,505,165 | false | {"Kotlin": 2798182, "JavaScript": 459619, "HTML": 108987, "CSS": 8778} | package earth.worldwind.util
/**
* Pool provides an interface for managing a pool of object instances.
*
* @param <T> the pooled type */
interface Pool<T> {
/**
* Acquires an instance from the pool. This returns null if the pool is empty.
*
* @return an instance from the pool, or null if the pool... | 22 | Kotlin | 12 | 98 | b5ee69cdd30f6c6a90bf3bec638a3bc5bdb0fbc2 | 547 | WorldWindKotlin | Apache License 2.0 |
src/main/kotlin/com/example/serverFactoryAPI/controllers/AdminController.kt | milos85vasic | 279,128,792 | false | null | package com.example.serverFactoryAPI.controllers
import com.example.serverFactoryAPI.response.MessageResponse
import org.springframework.http.ResponseEntity
import org.springframework.security.access.prepost.PreAuthorize
import org.springframework.web.bind.annotation.*
@CrossOrigin(origins = ["*"], maxAge = 3600)
@Re... | 4 | Kotlin | 0 | 0 | de3462cf4a56be872537ade98d476c8f76ba583f | 571 | Server-Factory-API | Apache License 2.0 |
archive/438/solve.kt | daniellionel01 | 435,306,139 | false | null | /*
=== #438 Integer part of polynomial equation's solutions - Project Euler ===
For an n-tuple of integers t = (a1, ..., an), let (x1, ..., xn) be the solutions of the polynomial equation xn + a1xn-1 + a2xn-2 + ... + an-1x + an = 0.
Consider the following two conditions:
x1, ..., xn are all real.
If x1, ..., xn are ... | 0 | Kotlin | 0 | 1 | 1ad6a549a0a420ac04906cfa86d99d8c612056f6 | 784 | euler | MIT License |
datapipelines/src/main/kotlin/io/customer/sdk/CustomerIO.kt | customerio | 355,691,391 | false | {"Kotlin": 574486, "Shell": 10050, "Makefile": 1568, "Ruby": 257} | package io.customer.sdk
import androidx.annotation.VisibleForTesting
import com.segment.analytics.kotlin.android.Analytics
import com.segment.analytics.kotlin.core.Analytics
import com.segment.analytics.kotlin.core.ErrorHandler
import com.segment.analytics.kotlin.core.platform.plugins.logger.LogKind
import com.segment... | 9 | Kotlin | 9 | 13 | 7ee9714bff991675042e7929ae269272f69a4706 | 15,766 | customerio-android | MIT License |
app/src/main/java/com/pandaways/simplelist/adapter/PersonAdapter.kt | mzennis | 581,418,405 | false | null | package com.pandaways.simplelist.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.pandaways.simplelist.adapter.viewholder.PersonViewHolder
import com.pandaways.simplelist.databinding.ItemPersonBinding
import com.pandaways.simplelist.mo... | 0 | Kotlin | 0 | 0 | c57ebfb8a138b1ae016d1f22708983caf4d000ec | 1,090 | simple-list-date-range | Apache License 2.0 |
app/src/main/java/com/hakkasuru/jetdex/JetDexGlideModule.kt | hakkasuru | 676,897,806 | false | null | package com.hakkasuru.jetdex
import android.content.Context
import com.bumptech.glide.Glide
import com.bumptech.glide.Registry
import com.bumptech.glide.annotation.GlideModule
import com.bumptech.glide.integration.okhttp3.OkHttpUrlLoader
import com.bumptech.glide.load.model.GlideUrl
import com.bumptech.glide.module.Ap... | 0 | Kotlin | 0 | 0 | f536e59427a26f559f327261578385ac0dcfbc47 | 1,473 | jetpack-pokedex | MIT License |
bbfgradle/tmp/results/BACKUP_JVM-Xuse-ir/FRONTEND_pldczjo_FILE.kt | DaniilStepanov | 346,008,310 | false | null | // Bug happens on JVM -Xuse-ir
//File: tmp/tmp0.kt
@Target(@Annotation v)
class Annotation
| 1 | null | 1 | 1 | e772ef1f8f951873ebe7d8f6d73cf19aead480fa | 92 | kotlinWithFuzzer | Apache License 2.0 |
androidApp/src/main/java/app/trian/mvi/feature/quiz/detailQuiz/DetailQuizIntent.kt | triandamai | 652,614,502 | false | null | package app.trian.mvi.feature.quiz.detailQuiz
sealed interface DetailQuizIntent {
object Nothing : DetailQuizIntent
} | 0 | Kotlin | 0 | 2 | 8b2e573592d16d1f9755221058cb1a7284184a7c | 122 | mvi | MIT License |
app/src/main/java/com/volie/wallhalla/view/viewmodel/SearchViewModel.kt | harunuyan | 630,386,273 | false | null | package com.volie.wallhalla.view.viewmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.volie.wallhalla.data.model.Media
import com.volie.wallhalla.data.model.SearchResponse
import com.volie.wallhall... | 0 | Kotlin | 0 | 1 | 8b27718441a01e44d066296e369aef15a91cddf1 | 1,329 | Wallhalla | The Unlicense |
plata/src/main/java/br/com/stone/plata/support/NumericExtensions.kt | stone-payments | 95,133,180 | false | null | package br.com.stone.plata.support
import java.text.NumberFormat
import java.util.*
/**
* @author filpgame
* @since 23/06/2017
*/
fun Double.asLong() = (this * 100).toLong()
fun Double.parseCentsToCurrency(locale: Locale): String {
return NumberFormat.getCurrencyInstance(locale).format((this / 100))
}
fun Lo... | 0 | Kotlin | 0 | 2 | 50bef62c526bed4aa2b868f22cdbbc9d6ed66229 | 455 | Plata-Android | MIT License |
app/src/main/java/com/example/istjobportal/screen/LoginScreen.kt | AbdirashidHaji | 843,937,296 | false | {"Kotlin": 57391} | package com.example.istjobportal.screen
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import... | 0 | Kotlin | 0 | 0 | 562479cc8048831cb90b3e16a07e99d6fa2c6607 | 7,547 | Ist-job-port | MIT License |
src/test/kotlin/com/karumi/maxibonkata/Generators.kt | Karumi | 108,970,241 | false | null | package com.karumi.maxibonkata
import io.kotlintest.properties.Gen
object Generators {
open class DeveloperGenerator(
private val nameGenerator: Gen<String>,
private val numbersOfMaxibonsGenerator: Gen<Int>
) : Gen<Developer> {
override fun constants(): Iterable<Developer> = emptyList(... | 1 | Kotlin | 26 | 44 | aefc3702de5487923fea6c2de50c8efd295e05e1 | 1,607 | MaxibonKataKotlin | Apache License 2.0 |
BasicRx/app/src/main/java/com/snappymob/kotlincomponents/retrofit/WebService.kt | ahmedrizwan | 102,922,354 | false | null | package com.snappymob.kotlincomponents.retrofit
import com.snappymob.kotlincomponents.model.Repo
import io.reactivex.Flowable
import retrofit2.http.GET
import retrofit2.http.Path
/**
* Created by ahmedrizwan on 9/9/17.
* Retrofit Service class
* TODO: Add your Web Api Endpoints here!
*/
interface WebService {
... | 1 | Kotlin | 26 | 80 | a2de61b93aeacc11e494f1acd3cee15b0fad0fd6 | 421 | AndroidKotlinComponents | Apache License 2.0 |
lib/src/main/java/com/basistheory/android/service/BasisTheoryElements.kt | Basis-Theory | 556,981,035 | false | null | package com.basistheory.android.service
import com.basistheory.CreateSessionResponse
import com.basistheory.CreateTokenRequest
import com.basistheory.CreateTokenResponse
import com.basistheory.Token
import com.basistheory.android.model.ElementValueReference
import com.basistheory.android.model.exceptions.IncompleteEle... | 4 | Kotlin | 0 | 3 | 01f32573c867e8b7a32adeff814236b01589a703 | 4,609 | basistheory-android | Apache License 2.0 |
tabulate-core/src/main/kotlin/io/github/voytech/tabulate/core/model/border/Borders.kt | voytech | 262,033,710 | false | {"Kotlin": 899049, "Java": 7351, "Shell": 679} | package io.github.voytech.tabulate.core.model.border
import io.github.voytech.tabulate.core.model.Height
import io.github.voytech.tabulate.core.model.UnitsOfMeasure
import io.github.voytech.tabulate.core.model.Width
import io.github.voytech.tabulate.core.model.color.Color
interface Borders {
val leftBorderStyle: ... | 20 | Kotlin | 0 | 2 | 5c33cdab6e37dcfc55200ca8654ca1fdb6963b49 | 1,418 | tabulate | Apache License 2.0 |
app/src/main/java/com/bls/flight/ui/profile/components/ProfileItem.kt | B-L-Studios | 700,247,918 | false | {"Kotlin": 133504} | package com.bls.flight.ui.profile.components
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundatio... | 0 | Kotlin | 0 | 0 | 3021ea1663086591d13f16470d602648d2b63d90 | 1,922 | FlightAir | Apache License 2.0 |
app/src/main/java/com/breezefieldsalesayshfacade/features/lead/api/GetLeadListRegRepository.kt | DebashisINT | 849,339,890 | false | {"Kotlin": 15796449, "Java": 1028706} | package com.breezefieldsalesayshfacade.features.lead.api
import com.breezefieldsalesayshfacade.base.BaseResponse
import com.breezefieldsalesayshfacade.features.NewQuotation.model.AddQuotRequestData
import com.breezefieldsalesayshfacade.features.lead.model.*
import com.breezefieldsalesayshfacade.features.taskManagement... | 0 | Kotlin | 0 | 0 | 1a7295943ae51c2feff787bed4219be9c8399217 | 1,652 | AyshFacade | Apache License 2.0 |
ivy-design/src/main/java/com/ivy/design/l3_ivyComponents/chart/PieChart.kt | ILIYANGERMANOV | 442,188,120 | false | null | package com.ivy.design.l3_ivyComponents.chart
| 0 | Kotlin | 1 | 1 | eab596d90f3580dea527d404a0f453e5b9d2167e | 47 | ivy-design-android | MIT License |
framework/src/main/kotlin/pt/isel/SHORT/html/element/Caption.kt | 48276AntonioMarques | 762,862,793 | false | {"Kotlin": 290899, "CSS": 6361, "JavaScript": 2091, "HTML": 587} | package pt.isel.SHORT.html.element
import pt.isel.SHORT.html.base.attribute.Attribute
import pt.isel.SHORT.html.base.element.HtmlReceiver
import pt.isel.SHORT.html.base.element.Tag
import pt.isel.SHORT.html.base.element.prototype
/**
* Represents the HTML <caption> tag.
* Description: Specifies the caption (or titl... | 0 | Kotlin | 0 | 1 | 0457515ab97855e4f42f7eeacec53f2919908918 | 512 | short | Apache License 2.0 |
compiler/testData/loadJava/compiledJavaCompareWithKotlin/kotlinSignature/propagation/typeParameter/UseParameterAsUpperBound.kt | udalov | 10,645,710 | false | null | package test
public trait UseParameterAsUpperBound: Object {
public trait Super: Object {
public fun <A, B: A> foo(p0: A, p1: B)
}
public trait Sub: Super {
override fun <B, A: B> foo(p0: B, p1: A)
}
}
| 0 | null | 1 | 6 | 3958b4a71d8f9a366d8b516c4c698aae80ecfe57 | 237 | kotlin-objc-diploma | Apache License 2.0 |
library/src/main/java/com/kvs/samsunghealthreporter/resolver/StepCountResolver.kt | kvs-coder | 300,033,140 | false | {"Kotlin": 148209} | package com.kvs.samsunghealthreporter.resolver
import com.kvs.samsunghealthreporter.decorator.*
import com.kvs.samsunghealthreporter.model.*
import com.kvs.samsunghealthreporter.model.session.StepCount
import com.samsung.android.sdk.healthdata.*
import java.util.*
class StepCountResolver(healthDataStore: HealthDataSt... | 0 | Kotlin | 0 | 4 | dc0985f3b0d64e26737d9027d15820a96d072b80 | 4,243 | SamsungHealthReporter | MIT License |
lib_asyn/src/main/java/com/cokt/asyn/DeliveryMain.kt | neilnee | 118,887,273 | false | null | package com.cokt.asyn
import android.os.Handler
import android.os.Looper
import java.util.concurrent.Executor
class DeliveryMain {
private var poster: Executor? = null
init {
val handler = Handler(Looper.getMainLooper())
poster = Executor { command -> handler.post(command) }
}
fun p... | 0 | Kotlin | 0 | 0 | 6f28ff6871257bfe9a5dde59aae47d1c1469ae49 | 688 | cokt | Apache License 2.0 |
app/src/main/java/codeone/com/br/mobile_gym_pass/commons/domain/Place.kt | luizgoes10 | 146,340,452 | false | null | package codeone.com.br.mobile_gym_pass.commons.domain
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.android.parcel.Parcelize
@Parcelize
data class Place(
@SerializedName("place_id")
var placeId:String,
@SerializedName("formatted_address")
... | 0 | Kotlin | 0 | 0 | ac286581c48aaa0404083a1698e187afb38bd447 | 612 | mobile-gym-pass-android | MIT License |
app/src/main/java/com/synthesizer/source/mars/data/remote/PhotoListItemResponse.kt | Synthesizer-source | 413,733,276 | false | null | package com.synthesizer.source.mars.data.remote
import com.google.gson.annotations.SerializedName
data class PhotoListItemResponse(
@SerializedName("camera")
val camera: CameraResponse,
@SerializedName("earth_date")
val earthDate: String,
@SerializedName("id")
val id: Int,
@SerializedName... | 0 | Kotlin | 1 | 0 | facd7a32bfa4262ad94c9d2b466815e8d0af44a4 | 460 | mars-photos-app | MIT License |
app/src/main/java/com/hannesdorfmann/navigation/view/onboarding/personalinterests/PersonalInterestsAdapter.kt | sockeqwe | 132,318,664 | false | null | package com.hannesdorfmann.navigation.view.onboarding.personalinterests
import android.graphics.drawable.ColorDrawable
import android.support.v4.content.ContextCompat
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.w... | 0 | Kotlin | 19 | 121 | 520d1add832e5ff72e425123a887889cbc9dea6f | 1,498 | CoordinatorsAndroid | Apache License 2.0 |
net.akehurst.language/agl-processor/src/commonMain/kotlin/agl/runtime/structure/RuntimeRuleNonTerminalBuilder.kt | Fxztam | 371,916,557 | true | {"Kotlin": 1054789, "ANTLR": 51068, "Rascal": 17698, "Java": 5508} | /**
* Copyright (C) 2018 Dr. <NAME> (http://dr.david.h.akehurst.net)
*
* 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... | 0 | null | 0 | 0 | ae355cc02afb1d4ca1d169ce4f892ee6ee75a688 | 4,290 | net.akehurst.language | Apache License 2.0 |
src/test/kotlin/no/nav/familie/klage/behandling/StegServiceTest.kt | navikt | 524,953,794 | false | null | package no.nav.tilleggsstonader.klage.behandling
import io.mockk.Runs
import io.mockk.every
import io.mockk.just
import io.mockk.mockk
import io.mockk.mockkObject
import io.mockk.slot
import io.mockk.unmockkObject
import io.mockk.verify
import io.mockk.verifyOrder
import no.nav.tilleggsstonader.klage.behandling.domain... | 1 | Kotlin | 0 | 2 | 79b9d38a55dab2679aa2c4b6047be57f16462e1e | 6,715 | familie-klage | MIT License |
domain/src/main/kotlin/com/ilgiz/kitsu/domain/models/anime/AnimeCharactersModel.kt | ilgiz05 | 493,465,307 | false | null | package com.ilgiz.kitsu.domain.models.anime
data class AnimeCharactersModel(
val links: LinksXXXXXXXXXXXModel
)
| 0 | Kotlin | 0 | 0 | f9d4b4b9899bc2faa3fc992233c3187774d3d8d8 | 117 | lesson7.kotlin3 | MIT License |
src/main/kotlin/g0801_0900/s0822_card_flipping_game/Solution.kt | javadev | 190,711,550 | false | {"Kotlin": 4870729, "TypeScript": 50437, "Python": 3646, "Shell": 994} | package g0801_0900.s0822_card_flipping_game
// #Medium #Array #Hash_Table #2023_03_25_Time_186_ms_(100.00%)_Space_41.2_MB_(33.33%)
class Solution {
fun flipgame(fronts: IntArray, backs: IntArray): Int {
val max = findMax(fronts, backs)
var value = 10000
val twinCardHash = IntArray(max + 1)... | 0 | Kotlin | 20 | 43 | e8b08d4a512f037e40e358b078c0a091e691d88f | 1,316 | LeetCode-in-Kotlin | MIT License |
alarm/AlarmReceiver.kt | nitish098123 | 481,869,940 | false | null | package com.example.database_part_3.alarm
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.util.Log
class MyAlarm : BroadcastReceiver(){
override fun onReceive(context : Context?, intent : Intent?) {
Log.d("alarm bell","Alarm just fired"... | 1 | Kotlin | 0 | 1 | 61ef3ffb99db93ece011f701a55804cb8fedf211 | 329 | Sofessist-a-messaging-specialist | Apache License 2.0 |
app/src/main/java/com/bytebitx/wanandroid/main/MainViewModel.kt | bytebitx | 371,705,786 | false | {"Kotlin": 368798, "Java": 130630} | package com.bytebitx.wanandroid.main
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.bytebitx.base.ext.Resource
import com.bytebitx.service.login.LoginOutService
import kotlinx.coroutines.flow.catch
import kotlinx.coroutines.flow.collect... | 3 | Kotlin | 13 | 51 | bd66b15a5f990067be7148fabcd22e3fb560bac7 | 832 | WanAndroid | Apache License 2.0 |
src/test/kotlin/org/homieiot/TestHomieBoolProperties.kt | boc-tothefuture | 155,069,544 | false | null | package org.homieiot
import org.assertj.core.api.Assertions
import org.junit.jupiter.api.Test
class TestHomieBoolProperties {
@Test
fun `Test Property Config`() {
val publisherMock = PublisherFake()
val property = BoolProperty(id = "foo", name = "bar", parentPublisher = publisherMock.publis... | 2 | Kotlin | 2 | 7 | 1a4ae6260f3fa6a2cdebfc7eca30cfbe59c98736 | 2,258 | kotlin-homieiot | Apache License 2.0 |
src/main/kotlin/com/squaredcandy/europa/model/SmartDevice.kt | squaredcandy | 297,300,114 | false | null | package com.squaredcandy.europa.model
import com.squaredcandy.europa.model.user.Group
abstract class SmartDevice(
open val groupId: String = Group.PUBLIC_GROUP_ID
) | 0 | Kotlin | 0 | 0 | 5ce602b664d5f0f4351bb1b95c562eba3efaeb96 | 170 | Europa | MIT License |
plugin-dotnet-agent/src/main/kotlin/jetbrains/buildServer/dotcover/DotCoverProjectSerializer.kt | JetBrains | 49,584,664 | false | {"Kotlin": 2628735, "C#": 319161, "Java": 95520, "Dockerfile": 831, "CSS": 123} |
package jetbrains.buildServer.dotcover
import jetbrains.buildServer.Serializer
interface DotCoverProjectSerializer : Serializer<DotCoverProject> | 3 | Kotlin | 25 | 94 | 695c67acf4a34a3157221c82388ee34b38fe70cf | 148 | teamcity-dotnet-plugin | Apache License 2.0 |
src/main/kotlin/me/melijn/melijnbot/internals/web/rest/settings/GetUserSettingsResponseHandler.kt | ToxicMushroom | 107,187,088 | false | null | package me.melijn.melijnbot.internals.web.rest.settings
import kotlinx.coroutines.Job
import kotlinx.coroutines.joinAll
import me.melijn.melijnbot.MelijnBot
import me.melijn.melijnbot.commands.utility.PREMIUM_PRIVATE_PREFIXES_LIMIT
import me.melijn.melijnbot.commands.utility.PRIVATE_PREFIXES_LIMIT
import me.melijn.mel... | 5 | Kotlin | 22 | 80 | 01107bbaad0e343d770b1e4124a5a9873b1bb5bd | 4,044 | Melijn | MIT License |
app/src/main/java/org/tokend/template/view/assetchart/AssetChartScale.kt | CLPAAN | 177,770,901 | true | {"Kotlin": 846056, "HTML": 55444, "Java": 9720} | package org.tokend.template.view.assetchart
import java.text.DateFormat
import java.text.SimpleDateFormat
import java.util.*
enum class AssetChartScale {
DAY,
WEEK,
MONTH,
YEAR;
/**
* @returns best looking [DateFormat] for the scale
*/
val dateFormat: DateFormat
get() {
... | 0 | Kotlin | 0 | 0 | e62e2c5b9dfd7250c5ca06bcdfbceeae781453e1 | 1,080 | android-client | Apache License 2.0 |
feature/src/main/kotlin/br/com/jonathanarodr/playmovie/feature/repository/local/db/DateConverter.kt | jonathanarodr | 136,104,400 | false | {"Kotlin": 94029, "Shell": 832} | package br.com.jonathanarodr.playmovie.feature.repository.local.db
import androidx.room.TypeConverter
import java.util.Date
class DateConverter {
@TypeConverter
fun toDate(timestamp: Long): Date = Date(timestamp)
@TypeConverter
fun toTimestamp(date: Date): Long = date.time
}
| 21 | Kotlin | 0 | 3 | ccdc6ef22e2b2a83fef5447b180ecdbbd5a3b191 | 296 | playmovie | MIT License |
app/src/main/java/com/example/b_my_friend/data/model/AllUser.kt | maximFenyuk | 304,598,098 | false | null | package com.example.b_my_friend.data.model
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
import java.util.ArrayList
data class AllUser (
@SerializedName("current_page")
@Expose
var currentPage: String = "",
@SerializedName("data")
@Expose
var data... | 0 | Kotlin | 0 | 0 | 4f4bb1f75beda89d2ffcac7dcc07f6aab1e8bdad | 1,117 | b-my-friend | MIT License |
app/src/main/kotlin/util/LocationExtensions.kt | amandeepg | 487,098,236 | false | {"Kotlin": 200413, "Shell": 5920, "Python": 1095} | package ca.amandeep.path.util
import android.content.Context
import android.content.pm.PackageManager
import androidx.core.content.ContextCompat
import ca.amandeep.path.data.model.Coordinates
import kotlin.math.abs
// NJ: 40.71670935568646, -74.03240619573852
// NY: 40.71599747828071, -74.01354955895476
private const... | 0 | Kotlin | 0 | 3 | 9707bade835d629a5ade6fd9de518d0e860bdf99 | 1,033 | PathTimes | Apache License 2.0 |
app/src/androidTest/java/com/mobile/pablo/iosnotes/screens/AddNoteTestScreen.kt | mobile-pablo | 618,046,628 | false | null | package com.mobile.pablo.iosnotes.screens
import androidx.compose.ui.test.junit4.AndroidComposeTestRule
import androidx.test.ext.junit.rules.ActivityScenarioRule
import com.mobile.pablo.iosnotes.MainActivity
import com.mobile.pablo.addNote.R as Res
class AddNoteTestScreen constructor(
rule: AndroidComposeTestRule... | 0 | Kotlin | 0 | 1 | 490169886eee41d388824fb340d1fb4dcb27b956 | 535 | Noteworthy | MIT License |
shared/src/commonMain/kotlin/com/programmergabut/quranyuk/utils/NetworkBoundResource.kt | jiwomdf | 657,885,790 | false | null | package com.programmergabut.quranyuk.utils
suspend inline fun <ResultType, RequestType> networkBoundResource(
crossinline query: () -> ResultType,
crossinline fetch: suspend () -> RequestType,
crossinline saveFetchResult: suspend (RequestType) -> Unit,
crossinline shouldFetch: (ResultType) -> Boolean =... | 0 | Kotlin | 2 | 5 | ab6fb46f3a967ef6e77faa79feaf6770c6bbdc58 | 510 | Quran-Yuk-KMM | MIT License |
app/src/main/java/little/goose/openglsample/logic/video/VideoEncoder.kt | FnGoose | 790,337,039 | false | {"Kotlin": 52160} | package little.goose.openglsample.logic.video
import android.media.MediaCodec
import android.media.MediaCodec.BufferInfo
import android.media.MediaCodecInfo
import android.media.MediaFormat
import android.media.MediaMuxer
import android.os.Handler
import android.os.HandlerThread
import kotlinx.coroutines.CoroutineExce... | 0 | Kotlin | 0 | 0 | 47e467d34b12ba5d00b8087cc52a12b3ed396f1a | 8,662 | OpenGLExample | MIT License |
src/shmp/lang/language/syntax/features/PredicatePossession.kt | ShMPMat | 240,860,070 | false | null | package shmp.lang.language.syntax.features
data class PredicatePossessionPresence(val predicatePossessionType: SsoSyntaxFeatures<PredicatePossessionType>) {
override fun toString() = predicatePossessionType.joinToString(", ")
}
enum class PredicatePossessionType(override val probability: Double): SyntaxFeature ... | 0 | Kotlin | 0 | 1 | 4d26b0d50a1c3c6318eede8dd9678d3765902d4b | 467 | LanguageGenerator | MIT License |
app/src/main/java/com/kylecorry/trail_sense/weather/domain/tendency/BasePressureTendencyCalculator.kt | kylecorry31 | 215,154,276 | false | {"Kotlin": 2317561, "Python": 17455, "HTML": 16563, "Shell": 5160, "CSS": 4886, "JavaScript": 2574, "Batchfile": 2553} | package com.kylecorry.trail_sense.weather.domain.tendency
import com.kylecorry.sol.science.meteorology.PressureCharacteristic
import com.kylecorry.sol.science.meteorology.PressureTendency
import com.kylecorry.trail_sense.weather.domain.PressureReading
import java.time.Duration
import kotlin.math.abs
abstract class Ba... | 430 | Kotlin | 51 | 771 | dbbc736ffbfafd38d91371106b8906de2ed32a6b | 1,275 | Trail-Sense | MIT License |
core/src/main/java/org/redaksi/core/extension/String.kt | 100nandoo | 475,824,222 | false | {"Kotlin": 107507, "Java": 34584} | package org.redaksi.core.extension
fun String.capitalizeEveryWord() = this.lowercase().split(" ").map { it.replaceFirstChar { it.titlecase() } }.joinToString(" ")
| 0 | Kotlin | 0 | 2 | 2a73d58126b20f75f09ae0cdf9f629b95b2c4dd5 | 164 | Pillar | MIT License |
src/main/kotlin/io/github/oxisto/reticulated/ast/expression/primary/atom/enclosure/DictDisplay.kt | oxisto | 223,569,455 | false | null | /*
* Copyright (c) 2020, <NAME> and <NAME>. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 18 | Kotlin | 3 | 4 | a38c8bd9c842be4f4c8ddc73c61c70aeceb07248 | 1,725 | reticulated-python | Apache License 2.0 |
src/main/kotlin/org/unbrokendome/gradle/plugins/helm/dsl/HelmExtension.kt | researchgate | 256,585,899 | true | {"Kotlin": 455108} | package org.unbrokendome.gradle.plugins.helm.dsl
import org.gradle.api.Action
import org.gradle.api.Project
import org.gradle.api.file.Directory
import org.gradle.api.file.DirectoryProperty
import org.gradle.api.file.ProjectLayout
import org.gradle.api.model.ObjectFactory
import org.gradle.api.provider.ListProperty
im... | 0 | Kotlin | 1 | 0 | fcb71b67f3a94cca090b4c083217638c73678c22 | 5,945 | gradle-helm-plugin | MIT License |
app/src/main/java/com/diogocabral/producstlistapp/model/Product.kt | drcabral | 364,737,532 | false | null | package com.diogocabral.producstlistapp.model
import com.google.gson.annotations.SerializedName
import java.io.Serializable
data class Product(
@SerializedName("id") val id: String,
@SerializedName("currency") val currency: String,
@SerializedName("name") val name: String,
@SerializedName("description... | 0 | Kotlin | 0 | 0 | d673167ddd8d21cb1cd031878fef891b2e6bc52c | 519 | ProductListApp | MIT License |
api/src/main/kotlin/org/nevillejrbrown/c4app/main.kt | nevillejrbrown | 139,591,448 | false | {"Kotlin": 25711, "Gherkin": 669} | package org.nevillejrbrown.c4app
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
@SpringBootApplication
class SpringBootKotlinApplication
fun main(args: Array<String>) {
SpringApplication.run(SpringBootKotlinApplication::class.java, *args)
... | 0 | Kotlin | 0 | 0 | 39213fc19ee633065b63f9929b0de55669b0426c | 359 | c4app | MIT License |
app/src/main/java/com/cyberlogitec/freight9/lib/ui/datepicker/date/YearPicker.kt | manosbatsis | 549,532,234 | false | null | package com.cyberlogitec.freight9.lib.ui.datepicker.date
import android.content.Context
import android.util.AttributeSet
import com.cyberlogitec.freight9.R
import com.cyberlogitec.freight9.lib.ui.datepicker.WheelPicker
import java.util.*
/**
* 年份选择器
* Created by ycuwq on 17-12-27.
*/
class YearPicker @JvmOverload... | 0 | null | 0 | 0 | ca9c94c2b83f5808edca00a4abc99f0b8b836817 | 2,840 | fremvp | Apache License 2.0 |
src/main/kotlin/com/github/chatgptassistant/assistantback/model/ChatDTO.kt | chat-gpt-assistant | 614,355,032 | false | null | package com.github.chatgptassistant.assistantback.model
import com.github.chatgptassistant.assistantback.domain.Chat
import java.time.LocalDateTime
import java.util.*
data class ChatDTO(
val id: UUID,
val title: String,
val createTime: LocalDateTime,
) {
companion object {
fun from(chat: Chat): ChatDTO {
... | 0 | Kotlin | 0 | 1 | 3b7e16cedc260891726c1d412cf0ae547b78fd29 | 450 | assistant-back | MIT License |
app/src/main/java/com/mozhimen/pagingk/test/crud/DefaultLoadStateAdapter.kt | mozhimen | 747,018,353 | false | {"Kotlin": 124808} | package com.mozhimen.pagingk.test.crud
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.paging.LoadState
import androidx.paging.LoadStateAdapter
import androidx.recyclerview.widget.RecyclerView
import com.mozhimen.pagingk.test.R
/**
* @ClassName DefaultLoadStateAdapter
* @Description... | 0 | Kotlin | 2 | 2 | 7020e375be50c2f3d12f264a8b83f9e7ee79bebf | 867 | APagingKit | Apache License 2.0 |
sample/src/main/java/com/kkagurazaka/redukt/sample/di/AppComponent.kt | k-kagurazaka | 115,560,556 | false | null | package com.kkagurazaka.redukt.sample.di
import com.kkagurazaka.redukt.sample.TodoApplication
import dagger.Component
import dagger.android.AndroidInjector
import dagger.android.support.AndroidSupportInjectionModule
import javax.inject.Singleton
@Singleton
@Component(modules = [
AndroidSupportInjectionModule::cla... | 0 | Kotlin | 0 | 12 | a13bcdd3d934357a0bb8744765efb104efc362ac | 607 | ReduKt | Apache License 2.0 |
app/src/main/java/com/example/composelearning/maths/path/EffectivePathDrawing.kt | sparrow007 | 376,206,634 | false | {"Kotlin": 209234} | package com.example.composelearning.maths.path
import android.graphics.PointF
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.gestures.detectDragGestures
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.C... | 0 | Kotlin | 1 | 6 | cc39cedb5c9d1a448d44378f580b072ea8f2d41b | 2,994 | Jetpack-Compose-Arena | Apache License 2.0 |
src/main/kotlin/neverwintertoolkit/Build.kt | jeffmcclure | 775,771,544 | false | {"Kotlin": 582110, "Shell": 226} | package neverwintertoolkit
import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.coroutines.launch
import kotlinx.coroutines.newFixedThreadPoolContext
import kotlinx.coroutines.runBlocking
import neverwintertoolkit.command.BuildCommand
import neverwintertoolkit.file.erf.ErfWriter
import neverwintertoolkit.fil... | 0 | Kotlin | 0 | 0 | e2dd381254ac5e3e16c2a823734f41226c5ae399 | 13,445 | nwt | MIT License |
repository2/src/main/kotlin/com/dzirbel/kotify/repository2/DatabaseSavedRepository.kt | dzirbel | 211,595,180 | false | null | package com.dzirbel.kotify.repository2
import com.dzirbel.kotify.db.KotifyDatabase
import com.dzirbel.kotify.db.SavedEntityTable
import com.dzirbel.kotify.repository.global.GlobalUpdateTimesRepository
import com.dzirbel.kotify.repository2.util.JobLock
import com.dzirbel.kotify.repository2.util.SynchronizedWeakStateFlo... | 1 | Kotlin | 2 | 34 | 6e52611f540d070053009e1b4c21f82c940588a5 | 6,396 | kotify | MIT License |
app/src/main/java/com/example/androiddevchallenge/ui/TimerApp.kt | drinkthestars | 345,270,310 | false | null | /*
* Copyright 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 4 | 9f0a46ee16bc1541d673efa24e08906c5e196856 | 10,407 | its-time | Apache License 2.0 |
utgang-pdl/src/main/kotlin/no/nav/paw/arbeidssoekerregisteret/utgang/pdl/kafka/processors/PeriodeProcessor.kt | navikt | 794,874,233 | false | null | package no.nav.paw.arbeidssoekerregisteret.utgang.pdl.kafka.processors
import io.micrometer.prometheusmetrics.PrometheusMeterRegistry
import no.nav.paw.arbeidssoekerregisteret.utgang.pdl.clients.pdl.PdlHentForenkletStatus
import no.nav.paw.arbeidssoekerregisteret.utgang.pdl.clients.pdl.PdlHentPerson
import no.nav.paw.... | 5 | null | 0 | 1 | e00be97578399169989b3b81be3ffd6f7d59081c | 3,456 | paw-arbeidssoekerregisteret-utgang | MIT License |
test/client/src/main/kotlin/main.kt | VEuPathDB | 445,019,647 | false | {"Kotlin": 28883, "Dockerfile": 744, "Makefile": 563} | @file:JvmName("Main")
import com.fasterxml.jackson.databind.node.TextNode
import org.veupathdb.lib.hash_id.HashID
import org.veupathdb.lib.rabbit.jobs.QueueWorker
import org.veupathdb.lib.rabbit.jobs.model.ErrorNotification
import org.veupathdb.lib.rabbit.jobs.model.SuccessNotification
fun main() {
println("Sleepin... | 0 | Kotlin | 0 | 0 | cd7b24b827a4b7ba4deeb4cc892100b6bf900b44 | 660 | lib-rabbit-job-queue | MIT License |
FoodOrganizer/app/src/main/java/es/fron99/Foodorganize/Dao/Model/TimeMenuDao.kt | Fron99 | 339,039,759 | false | null | package es.fron99.Foodorganize.Dao.Model
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.io.Serializable
import java.util.*
@Entity(tableName = "TimeMenus")
class TimeMenuDao(
@PrimaryKey(autoGenerate = true)
@ColumnInfo(name = "idTimeMenu")
... | 1 | Kotlin | 0 | 0 | a735bfaf377093d76f5562d4b65b2013ed6391db | 523 | FoodOrganizer | Creative Commons Zero v1.0 Universal |
app/src/main/java/org/fnives/library/reloadable/module/hilt/SettingsActivity.kt | fknives | 391,189,260 | false | null | package org.fnives.library.reloadable.module.hilt
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import androidx.appcompat.app.AppCompatActivity
import dagger.hilt.android.AndroidEntryPoint
import org.fnives.library.reloadable.module.hilt.databinding.ActivityLogoutBinding
imp... | 6 | Kotlin | 0 | 0 | cd4994ae4a200b2bfd481c130bdd302d26889d2f | 1,197 | ReloadableHiltModule | Apache License 2.0 |
pub-catalog-service/src/main/kotlin/idlab/obelisk/services/pub/catalog/types/GQLStreamMutation.kt | idlab-discover | 495,291,260 | false | null | package idlab.obelisk.services.pub.catalog.types
import graphql.schema.DataFetchingEnvironment
import idlab.obelisk.definitions.catalog.AccessManager
import idlab.obelisk.definitions.catalog.DataStream
import idlab.obelisk.definitions.catalog.MetaStore
import idlab.obelisk.definitions.catalog.Token
import idlab.obelis... | 21 | Kotlin | 0 | 6 | 8d715941a87ed1f26b9499cedcad8b07fa6715f2 | 2,496 | obelisk | Apache License 2.0 |
app/src/main/java/com/xacalet/minesweeper/ui/component/Cells.kt | Xacalet | 347,681,423 | false | null | package com.xacalet.minesweeper.ui.component
import androidx.compose.foundation.*
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.interaction.collectIsPressedAsState
import androidx.compose.foundation.layout.*
import androidx.compose.material.Text
import andro... | 1 | Kotlin | 1 | 6 | 25f4906e3585b7c0168b53805caf7d91937708bc | 5,667 | Minesweeper | MIT License |
src/main/java/com/sayzen/campfiresdk/models/events/fandom/EventFandomReviewTextRemoved.kt | Daboo011 | 217,832,397 | false | {"Kotlin": 1107825} | package com.sayzen.campfiresdk.models.events.fandom
class EventFandomReviewTextRemoved(
var unitId: Long
)
| 0 | null | 1 | 0 | 33c46da49d3758a1a006ac660dc823d35c66baea | 116 | CampfireSDK | Apache License 2.0 |
src/main/kotlin/klay/core/SoundImpl.kt | cdietze | 89,875,388 | false | null | package klay.core
import euklid.f.MathUtil
import react.RPromise
/**
* An implementation detail. Not part of the public API.
*/
abstract class SoundImpl<I>(private val exec: Exec) : Sound(exec.deferredPromise<Sound>()) {
protected var playing: Boolean = false
protected var _looping: Boolean = false
pro... | 0 | Kotlin | 0 | 4 | 72031aa267cd304a0612b31c871e2f5cf73d2c4c | 2,462 | klay | Apache License 2.0 |
app/src/main/java/com/example/androidjetpack/ui/SplashFragment.kt | agul1no | 505,866,398 | false | {"Kotlin": 53149} | package com.example.androidjetpack.ui
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.fragment.findNavController
import com.example.andr... | 0 | Kotlin | 0 | 0 | b0b0fb60b196ecc58116fb784f910708c7830d91 | 752 | AndroidJetpack | MIT License |
src/test/kotlin/com/kjetland/jackson/jsonSchema/testDataKotlin/ClassNotExtendingAnythingKotlin.kt | roee88 | 75,208,279 | false | null | package com.kjetland.jackson.jsonSchema.testDataKotlin
import com.kjetland.jackson.jsonSchema.testData.MyEnum
data class ClassNotExtendingAnythingKotlin(var someString:String,
var myEnum: MyEnum,
var myEnumO: MyEnum?)
| 1 | Kotlin | 1 | 2 | 39c35844be808b58a93ea89f5c8e819e6e677d71 | 304 | kt-jackson-jsonSchema | Apache License 2.0 |
app/src/main/java/com/example/jetpackcompose/sdui/Constants.kt | Muran-Hu | 288,347,573 | true | {"Kotlin": 389260} | package com.example.jetpackcompose.sdui
class Constants {
companion object {
const val SDUI_BEAN = "SDUI_BEAN"
const val H1 = "H1"
const val H2 = "H2"
const val H3 = "H3"
const val ICON_AND_TEXT_CTA = "IconAndTextCta"
const val PRIMARY_CTA_SLIDER = "PrimaryCtaSlider... | 0 | Kotlin | 0 | 1 | 3b9b20c1c2815248a68b144811aedc80b11cf720 | 434 | SDUI-By-Jetpack-Compose-Example | Apache License 2.0 |
usefetch/src/main/java/me/nikhilchaudhari/usefetch/helper/Parameters.kt | CuriousNikhil | 431,820,990 | false | null | package me.nikhilchaudhari.usefetch.helper
import java.net.URLEncoder
/*
* This class represents Parameters and encodes them into URL
*/
internal class Parameters(private vararg val parameters: Pair<String, String>) : Map<String, String> by mapOf(*parameters) {
constructor(parameters: Map<String, String>) : th... | 0 | Kotlin | 1 | 15 | 552e6adbb8793dd05af1bfb7f165777e8c46016e | 679 | compose-hooks | Apache License 2.0 |
restAPI/testNaukiApi/src/dataBase/tables/ProductionCalendar.kt | mizunotlt | 265,983,831 | false | null | package com.testApi.dataBase.tables
import com.testApi.dataBase.enums.DaysType
import org.jetbrains.exposed.sql.Table
import org.jetbrains.exposed.sql.jodatime.date
import org.postgresql.util.PGobject
object ProductionCalendar: Table() {
class PGEnum<T:Enum<T>>(enumTypeName: String, enumValue: T?) : PGobject() {... | 0 | Kotlin | 0 | 0 | 2152cd62a516f20227dfe580bd6bd5c9eff0f380 | 847 | taskForNauka | MIT License |
ui-main/src/main/java/pl/kamilszustak/read/ui/main/quotes/QuoteItem.kt | swistak7171 | 289,985,013 | false | null | package pl.kamilszustak.read.ui.main.quotes
import android.view.LayoutInflater
import android.view.ViewGroup
import com.mikepenz.fastadapter.binding.BindingViewHolder
import com.mikepenz.fastadapter.binding.ModelAbstractBindingItem
import pl.kamilszustak.read.model.domain.Quote
import pl.kamilszustak.read.ui.main.R
im... | 2 | Kotlin | 0 | 1 | 70d7be58042410bdb969035413b726126426e3d3 | 1,305 | read | Apache License 2.0 |
terra-alliance/src/jvmMain/kotlin/alliance/params.converter.kt | jdekim43 | 759,720,689 | false | {"Kotlin": 8940168, "Java": 3242559} | // Transform from alliance/params.proto
@file:GeneratorVersion(version = "0.3.1")
package alliance
import kr.jadekim.protobuf.`annotation`.GeneratorVersion
import kr.jadekim.protobuf.converter.ProtobufConverter
public actual object ParamsConverter : ProtobufConverter<Params> by ParamsJvmConverter
public actual obje... | 0 | Kotlin | 0 | 0 | eb9b3ba5ad6b798db1d8da208b5435fc5c1f6cdc | 414 | chameleon.proto | Apache License 2.0 |
app/src/main/java/ca/uwaterloo/cs/db/DBClient.kt | dgwarlug47 | 499,220,641 | false | null | package ca.uwaterloo.cs.db
import android.content.Context
import android.net.Uri
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.core.content.FileProvider
import androidx.core.net.to... | 0 | Kotlin | 1 | 0 | a4bec152778f48221cdea7c171446d835fa03b6c | 4,766 | Online-Food-Retailer | MIT License |
shopping_list/src/main/java/com/zizohanto/android/tobuy/shopping_list/presentation/products/Alias.kt | zizoh | 292,960,353 | false | {"Kotlin": 112248} | package com.zizohanto.android.tobuy.shopping_list.presentation.products
import com.zizohanto.android.tobuy.presentation.mvi.IntentProcessor
import com.zizohanto.android.tobuy.presentation.mvi.StateMachine
import com.zizohanto.android.tobuy.presentation.mvi.ViewStateReducer
import com.zizohanto.android.tobuy.shopping_l... | 0 | Kotlin | 1 | 7 | f6df57510764c7e4f69567952ae7d375b89fcff1 | 931 | Shopping-List-MVI | Apache License 2.0 |
lib/src/main/java/com/drew/metadata/exif/makernotes/ReconyxUltraFireMakernoteDescriptor.kt | baelec | 231,688,360 | false | null | /*
* Copyright 2002-2019 <NAME> and contributors
*
* 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... | 1 | null | 1 | 1 | 2df8efc24efa24aca040bc4f392d9b9285d23369 | 3,952 | metadata-extractor | Apache License 2.0 |
plugin/src/main/kotlin/com/github/gmazzo/buildconfig/internal/DefaultBuildConfigClassSpec.kt | gmazzo | 172,272,573 | false | null | package com.github.gmazzo.buildconfig.internal
import com.github.gmazzo.buildconfig.BuildConfigClassSpec
import javax.inject.Inject
internal abstract class DefaultBuildConfigClassSpec @Inject constructor() :
BuildConfigClassSpec,
GroovyNullValueWorkaround()
| 0 | null | 29 | 668 | 8d7b847ae31dc746f651b552a24d2edfd41cb817 | 268 | gradle-buildconfig-plugin | MIT License |
plugin/src/main/kotlin/com/github/gmazzo/buildconfig/internal/DefaultBuildConfigClassSpec.kt | gmazzo | 172,272,573 | false | null | package com.github.gmazzo.buildconfig.internal
import com.github.gmazzo.buildconfig.BuildConfigClassSpec
import javax.inject.Inject
internal abstract class DefaultBuildConfigClassSpec @Inject constructor() :
BuildConfigClassSpec,
GroovyNullValueWorkaround()
| 0 | null | 29 | 668 | 8d7b847ae31dc746f651b552a24d2edfd41cb817 | 268 | gradle-buildconfig-plugin | MIT License |
impl/misskey/src/main/kotlin/dev/usbharu/multim/misskey/v12/model/DriveFilesShow.kt | multim-dev | 591,652,793 | false | null | package dev.usbharu.multim.misskey.v12.model
import dev.usbharu.multim.misskey.v12.model.components.DriveFile
import kotlinx.serialization.Serializable
@Serializable
data class DriveFilesShowRequestByFileId(
val fileId: String
)
@Serializable
data class DriveFilesShowRequestByUrl(
val url: String
)
typealia... | 8 | Kotlin | 0 | 7 | daad2d142ae6fa7414acdb6704832a4d477dc41f | 357 | multim | Apache License 2.0 |
app/src/main/java/com/justnik/mosplace/presentation/disctrictplaces/DistrictPlacesFragment.kt | JustNik8 | 460,106,261 | false | {"Kotlin": 160815} | package com.justnik.mosplace.presentation.disctrictplaces
import android.os.Bundle
import android.util.Log
import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
import android.view.View
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.naviga... | 0 | Kotlin | 1 | 1 | 8ae2a811c895c6b4d75f8e31139dd4d15c425561 | 5,245 | MosPlace | Apache License 2.0 |
tests/spring-boot/src/main/kotlin/io/github/radeklos/cloudlock/test/springboot/SchedulerMemory.kt | radeklos | 566,824,559 | false | {"Kotlin": 27745, "Dockerfile": 162} | package io.github.radeklos.cloudlock.test.springboot
import java.time.Instant
object SchedulerMemory {
private val mutableData: MutableList<Instant> = mutableListOf()
val data: List<Instant>
get() = this.mutableData.toList()
fun add() {
mutableData.add(Instant.now())
}
fun clean... | 2 | Kotlin | 0 | 0 | 427b020afc4e9de1c4f9dad347c2fc4eb3ee13d4 | 362 | cloudlock | Apache License 2.0 |
source_code/app/src/main/java/com/example/eksamen_store_app/data/Product.kt | TianhiD | 851,324,720 | false | {"Kotlin": 89059} | package com.example.eksamen_store_app.data
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters
import com.example.eksamen_store_app.data.room.ProductTypeConverter
@Entity(tableName = "products")
@TypeConverters(ProductTypeConverter::class)
data class Product(
@Primary... | 0 | Kotlin | 0 | 0 | 068c9565dd2907c17124ddbb12c2f24951d20154 | 586 | AndroidClothingApp | Apache License 2.0 |
engine/taskpool-collector/src/main/kotlin/io/holunda/camunda/taskpool/sender/gateway/AxonCommandListGateway.kt | kgeis | 244,446,791 | true | {"Batchfile": 1, "YAML": 21, "Shell": 7, "Maven POM": 31, "Text": 1, "Ignore List": 7, "Groovy": 1, "EditorConfig": 4, "AsciiDoc": 1, "INI": 1, "XML": 14, "Kotlin": 235, "SQL": 8, "JSON with Comments": 10, "JSON": 15, "Dockerfile": 3, "Markdown": 12, "Browserslist": 3, "HTML": 21, "SCSS": 18, "JavaScript": 3, "Mustache... | package io.holunda.camunda.taskpool.sender.gateway
import io.holunda.camunda.taskpool.TaskCollectorProperties
import io.holunda.camunda.taskpool.sender.CommandSender
import org.axonframework.commandhandling.CommandResultMessage
import org.axonframework.commandhandling.gateway.CommandGateway
import org.slf4j.Logger
imp... | 0 | null | 0 | 0 | 7a6e818e74debe3d9c4f285c841202c73673c0a3 | 2,457 | camunda-bpm-taskpool | Apache License 2.0 |
components/membership/membership-client/src/main/kotlin/net/corda/membership/client/CouldNotFindMemberException.kt | corda | 346,070,752 | false | null | package net.corda.membership.client
import net.corda.v5.base.exceptions.CordaRuntimeException
import net.corda.virtualnode.ShortHash
class CouldNotFindMemberException(holdingIdentityShortHash: ShortHash) :
CordaRuntimeException("Could not find member: $holdingIdentityShortHash")
| 82 | Kotlin | 7 | 24 | 17f5d2e5585a8ac56e559d1c099eaee414e6ec5a | 286 | corda-runtime-os | Apache License 2.0 |
bodyindex/src/main/java/com/lefu/bodyindex/BodyFatIndexStandardProgressUtils.kt | LefuHengqi | 803,267,593 | false | null | package com.anker.bodyindex
import com.peng.ppscale.util.PPUtil
/**
* author : whs
* e-mail : <EMAIL>
* date : 2021/10/28 9:10
* desc :测量结果的标准范围和进度计算
*/
object BodyFatIndexStandardProgressUtils {
/**
* 获取体重的范围值
* 分别是:最小值,标准最小值,标准最大值,最大值
*/
fun getWeightRangeValue(gender: I... | 0 | null | 1 | 1 | d9e0df85147e2305fe38ba57a2875b346a7df635 | 12,913 | BluetoothKit-AndroidDemo | MIT License |
meistercharts-commons/src/commonMain/kotlin/it/neckar/open/observable/ObservableInt.kt | Neckar-IT | 599,079,962 | false | {"Kotlin": 5819931, "HTML": 87784, "JavaScript": 1378, "CSS": 1114} | package it.neckar.open.observable
/**
* Convenience class; it is the same as [ObservableObject] with type-parameter [Int]
*/
class ObservableInt(initValue: Int) : ObservableObject<Int>(initValue), ReadOnlyObservableInt
/**
* Convenience class; it is the same as [ReadOnlyObservableObject] with type-parameter [Int]
... | 3 | Kotlin | 3 | 5 | ed849503e845b9d603598e8d379f6525a7a92ee2 | 1,528 | meistercharts | Apache License 2.0 |
bindings/core/graphene/src/nativeMain/kotlin/org/gtkkn/bindings/graphene/Vec3.kt | gtk-kn | 609,191,895 | false | {"Kotlin": 10448515, "Shell": 2740} | // This is a generated file. Do not modify.
package org.gtkkn.bindings.graphene
import kotlinx.cinterop.CPointed
import kotlinx.cinterop.CPointer
import kotlinx.cinterop.reinterpret
import org.gtkkn.extensions.glib.Record
import org.gtkkn.extensions.glib.RecordCompanion
import org.gtkkn.native.graphene.graphene_vec3_a... | 0 | Kotlin | 0 | 13 | c033c245f1501134c5b9b46212cd153c61f7efea | 15,213 | gtk-kn | Creative Commons Attribution 4.0 International |
app/src/main/java/com/ollieSoft/ballCorral/view/paintFactory/AbstractPaintFactory.kt | trlaw | 330,250,448 | false | null | package com.ollieSoft.ballCorral.view.paintFactory
abstract class AbstractPaintFactory {
} | 0 | Kotlin | 0 | 0 | 7af42878d2760ae778e08aaa453ce802f0480180 | 91 | BallCorral | MIT License |
CallofProjectAndroid/app/src/main/java/callofproject/dev/androidapp/presentation/components/CustomDatePicker.kt | CallOfProject | 751,531,328 | false | {"Kotlin": 429418, "Java": 5965} | package callofproject.dev.androidapp.presentation.components
import androidx.compose.material3.DatePicker
import androidx.compose.material3.DatePickerDialog
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
import androidx.com... | 0 | Kotlin | 1 | 1 | 9cc12cd78cc212d474cd32b7ea3a89a5b8d5905b | 1,882 | Call-Of-Project-Android | MIT License |
src/main/kotlin/com/yapp/web2/exception/ErrorResponse.kt | YAPP-19th | 399,059,127 | false | null | package com.yapp.web2.exception
// TODO: 2021/12/09 Http StatusCode 추가
data class ErrorResponse(
val message: String? = null,
val errors: MutableList<Error> = mutableListOf()
) {
private constructor(message: String) : this(message, mutableListOf())
companion object {
fun of(message: String?) =... | 10 | Kotlin | 1 | 7 | ecc6a3da2a66dceb1a25a4cfe9ed699f0325180a | 563 | Web-Team-2-Backend | Apache License 2.0 |
src/main/kotlin/com/senderman/anijuniorbot/ExecutorKeeper.kt | Senderman | 230,479,661 | false | null | package com.senderman.anijuniorbot
import com.senderman.anijuniorbot.commands.Help
import com.senderman.anijuniorbot.commands.SlowMode
import com.senderman.anijuniorbot.commands.SlowModeOff
import com.senderman.neblib.AbstractExecutorKeeper
class ExecutorKeeper(handler: AnijuniorBotHandler) : AbstractExecutorKeeper()... | 0 | Kotlin | 0 | 0 | 64a672088e16b57b1f87bab528661b14506c0b09 | 466 | anijuniorbot | MIT License |
app/src/main/java/com/kurulabs/mycards/ui/cards/models/CardData.kt | Kuruchy | 420,692,090 | false | {"Kotlin": 61547} | package com.kurulabs.mycards.ui.cards.models
import com.kurulabs.mycards.ui.cards.models.CardActionItem.CardAction
import com.kurulabs.mycards.ui.theme.Orange
import com.kurulabs.mycards.ui.theme.Turquoise
data class CardData(
val bankName: String,
val typeName: CardType,
val number: String,
val valid... | 0 | Kotlin | 0 | 5 | 11cfd50d147454f2e8628102aeddce2e04feb7ee | 624 | MyCards | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.