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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
android/features/profile/deletion/src/main/kotlin/io/chefbook/features/profile/deletion/ui/ProfileDeletionScreen.kt | mephistolie | 379,951,682 | false | {"Kotlin": 1334117, "Ruby": 16819, "Swift": 352} | package io.chefbook.features.profile.deletion.ui
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.ui.platform.LocalContext
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import com.ramcosta.composedestinations.annotation.Destination
import... | 0 | Kotlin | 0 | 12 | ddaf82ee3142f30aee8920d226a8f07873cdcffe | 1,276 | chefbook-mobile | Apache License 2.0 |
src/test/kotlin/ar/edu/unq/mientradita/model/StadiumTest.kt | FeNixCrew | 403,775,742 | false | {"Kotlin": 153585} | package ar.edu.unq.mientradita.model
import ar.edu.unq.mientradita.model.builders.StadiumBuilder
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
class StadiumTest {
@Test
fun `un estadio tiene un nombre`() {
val estadio = StadiumBuilder().withName("<NAME>").build()... | 0 | Kotlin | 0 | 1 | 3276ea3935a722ee6486ec6e2c08e224b6a4f87c | 868 | MiEntradita-backend | MIT License |
kotest-tests/kotest-tests-android/src/androidTest/java/io/kotest/android/matchers/textview/TextViewMatchersTests.kt | kotest | 249,072,229 | false | null | package io.kotest.android.matchers.textview
import android.graphics.Color
import androidx.test.core.app.launchActivity
import io.kotest.androidtest.MainActivity
import io.kotest.assertions.throwables.shouldThrow
import io.kotest.runner.junit4.FreeSpec
import kotlinx.android.synthetic.main.activity_main.*
class TextVi... | 8 | Kotlin | 2 | 6 | fe41d9506227d22a5c123015fe7a8d5f00713e05 | 1,869 | kotest-android | Apache License 2.0 |
app/src/main/java/com/app/darktodoapp/features/projects/ProjectAdapter.kt | Magno-Ramos | 341,404,929 | false | null | package com.app.darktodoapp.features.projects
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.app.darktodoapp.R
import com.app.darktodoapp.customview.Pie... | 0 | Kotlin | 0 | 0 | 28d6e034a1431d9415763b9d27053a5fedfbe290 | 2,911 | dark-todo-app | Apache License 2.0 |
core/src/main/java/com/zigis/paleontologas/core/ui/parallax/OnScrollViewChangeListener.kt | edgar-zigis | 240,962,785 | false | {"Kotlin": 184730} | package com.zigis.paleontologas.core.ui.parallax
interface OnScrollViewChangeListener {
fun onInternalScrollChanged(left: Int, top: Int, oldLeft: Int, oldTop: Int)
} | 0 | Kotlin | 16 | 122 | 5e8d658e8898a4c55c2f11f5dc54438c876ae8a3 | 170 | Paleontologas | Apache License 2.0 |
src/main/kotlin/net/devoev/vanilla_cubed/item/armor/ArmorData.kt | Devoev | 473,273,645 | false | null | package net.devoev.vanilla_cubed.item.armor
import net.minecraft.item.ArmorMaterial
import net.minecraft.item.Item.Settings
import net.minecraft.item.ArmorItem
/**
* Data needed for the creation of a set of [armor][ArmorItem].
*/
data class ArmorData(
val material: ArmorMaterial,
val settings: Settings
)
| 0 | Kotlin | 1 | 1 | eeacd0115113a7bc1dd9a9ce6d17f95894fac3ee | 318 | vanilla-cubed | Creative Commons Zero v1.0 Universal |
app/src/main/java/es/dam/pi/vinilaapp_v3/viewmodel/UserGalleryViewModel.kt | ptrdck | 809,465,277 | false | {"Kotlin": 123243, "JavaScript": 1824} | package es.dam.pi.vinilaapp_v3.viewmodel
import android.net.Uri
import androidx.lifecycle.ViewModel
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.firestore.FirebaseFirestore
import com.google.firebase.storage.FirebaseStorage
import es.dam.pi.vinilaapp_v3.ui.model.Image
import kotlinx.coroutin... | 0 | Kotlin | 0 | 0 | 430399f6ab9f40e6a536a747cef41df94d8c0c39 | 3,232 | VinilaApp_v3 | MIT License |
src/test/java/no/nav/bidrag/dokument/arkiv/hendelser/JournalpostKafkaEventProducerTest.kt | navikt | 157,384,962 | false | {"Kotlin": 645757, "Java": 63620, "Shell": 1505, "Dockerfile": 261} | package no.nav.bidrag.dokument.arkiv.hendelser
import no.nav.bidrag.dokument.arkiv.dto.JournalStatus
import no.nav.bidrag.dokument.arkiv.dto.Sak
import no.nav.bidrag.dokument.arkiv.dto.TilknyttetJournalpost
import no.nav.bidrag.dokument.arkiv.dto.TilleggsOpplysninger
import no.nav.bidrag.dokument.arkiv.stubs.BRUKER_AK... | 2 | Kotlin | 1 | 1 | ef939947f72bb1f928a120d035f997ac1ce6bcdc | 5,051 | bidrag-dokument-arkiv | MIT License |
app/src/main/java/com/sys1yagi/safe_args_sample/ui/MainActivity.kt | sys1yagi | 174,689,109 | false | null | package com.sys1yagi.safe_args_sample.ui
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.sys1yagi.safe_args_sample.R
import com.sys1yagi.safe_args_sample.ui.top.TopFragment
import com.sys1yagi.safe_args_sample.util.newFragmentInstance
class MainActivity : AppCompatActivity() {
... | 0 | Kotlin | 0 | 0 | 54351ff6c7c7791c8d90efe018774b49b8bdc1d5 | 802 | tbf6-safe-args | MIT License |
modules/api/src/commonMain/kotlin/api/OllamaException.kt | nirmato | 816,013,962 | false | {"Kotlin": 133457, "JavaScript": 203} | package org.nirmato.ollama.api
/** Ollama client exception */
public sealed class OllamaException(message: String? = null, throwable: Throwable? = null) : RuntimeException(message, throwable)
/** Runtime Http Client exception */
public class OllamaClientException(throwable: Throwable? = null) : OllamaException(throwa... | 1 | Kotlin | 1 | 1 | ce995579460485520852ddbd804c29dd8a319881 | 513 | nirmato-ollama | Apache License 2.0 |
android/app/src/main/kotlin/com/v2ray/ang/viewmodel/SettingsViewModel.kt | PsrkGrmez | 759,525,035 | false | null | package com.v2ray.ang.viewmodel
import android.app.Application
import android.content.SharedPreferences
import android.util.Log
import androidx.lifecycle.AndroidViewModel
import androidx.preference.PreferenceManager
import com.tencent.mmkv.MMKV
import com.v2ray.ang.AppConfig
import com.v2ray.ang.util.MmkvManager
clas... | 2 | null | 7 | 85 | 1a6d3d8e6c6edcfd3be8f23bee339e1c83ab9346 | 2,717 | ChiselBox | MIT License |
desktop/views/src/main/kotlin/com/soyle/stories/layout/WindowChild.kt | Soyle-Productions | 239,407,827 | false | null | package com.soyle.stories.layout
import com.soyle.stories.project.layout.WindowChildViewModel
import javafx.beans.property.Property
import tornadofx.Fragment
/**
* Created by Brendan
* Date: 2/15/2020
* Time: 4:32 PM
*/
abstract class WindowChild : Fragment() {
val model: Property<WindowChildViewModel> by pa... | 45 | Kotlin | 0 | 9 | 1a110536865250dcd8d29270d003315062f2b032 | 327 | soyle-stories | Apache License 2.0 |
src/main/kotlin/org/veupathdb/vdi/lib/common/util/short-id.kt | VEuPathDB | 619,968,031 | false | {"Kotlin": 45667} | package org.veupathdb.vdi.lib.common.util
import org.unbrokendome.base62.Base62
import java.nio.ByteBuffer
import java.util.concurrent.locks.ReentrantLock
import kotlin.concurrent.withLock
import kotlin.random.Random
object ShortID {
private val random = Random(System.nanoTime())
private val miniLock = Reentrant... | 0 | Kotlin | 0 | 0 | c0d231a00980ccffb0b04d2cd68cd878aab84761 | 2,188 | vdi-component-common | Apache License 2.0 |
lib/src/main/java/com/sha/rxrequester/exception/handler/resumable/ResumableHandler.kt | thasneemp | 216,811,559 | true | {"Kotlin": 33828, "Java": 660} | package com.sha.rxrequester.exception.handler.resumable
import com.sha.rxrequester.exception.handler.throwable.ThrowableInfo
import io.reactivex.Flowable
abstract class ResumableHandler {
/**
* checks if the handler can handle the error
* @return true if can handle
*/
abstract fun canHandle(in... | 0 | null | 0 | 0 | ad38fff6e7061212d80ec8e201ca59bc58feb728 | 749 | RxRequester | Apache License 2.0 |
src/main/java/com/sayzen/campfiresdk/models/events/fandom/EventFandomReviewTextRemoved.kt | HorsePower68 | 230,018,763 | true | {"Kotlin": 1489208} | package com.sayzen.campfiresdk.models.events.fandom
class EventFandomReviewTextRemoved(
var publicationId: Long
)
| 0 | null | 0 | 0 | 214a4ee9262e185eb33a0ddcfc3a6803f22d54fd | 123 | CampfireSDK | Apache License 2.0 |
src/commonMain/kotlin/ch/tutteli/kbox/isNotNullAndNot.kt | robstoll | 79,735,987 | false | null | package ch.tutteli.kbox
/**
* Returns true if this [CharSequence] is neither `null` nor empty.
*/
fun CharSequence?.isNotNullAndNotEmpty() = this != null && this.isNotEmpty()
/**
* Returns true if this [CharSequence] is neither `null` nor blank.
*/
fun CharSequence?.isNotNullAndNotBlank() = this != null && this.i... | 2 | Kotlin | 3 | 7 | de34a0239d64ed0fdebf61c4f8163e7b8d05e316 | 332 | kbox | Apache License 2.0 |
app/src/main/java/br/com/gilbercs/pokemon/api/RetrofitService.kt | gilbercs | 406,868,895 | false | {"Kotlin": 7911} | package br.com.gilbercs.pokemon.api
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
object RetrofitService {
//url p/ API pokemon
private val base_url = "https://pokeapi.co/api/v2/"
//Create
val retrofit = Retrofit.Builder()
.baseUrl(base_url)
.addConvert... | 0 | Kotlin | 0 | 3 | f7caa424af63d13eee62eeb5c089319f21e7510b | 501 | appPokemon | MIT License |
app/src/main/java/xyz/sentrionic/harmony/repository/main/SearchRepository.kt | sentrionic | 220,498,638 | false | {"Kotlin": 325826} | package xyz.sentrionic.harmony.repository.main
import android.util.Log
import androidx.lifecycle.LiveData
import androidx.lifecycle.switchMap
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Dispatchers.IO
import kotlinx.coroutines.Job
import kotlinx.coroutines.withContext
import xyz.sentrionic.harmony.... | 0 | Kotlin | 0 | 1 | 0751148a2566ad11098ddd7f122cade7c1792dc3 | 11,525 | HarmonyApp | MIT License |
src/test/kotlin/AsyncTest.kt | syahrulfahmi | 734,462,073 | false | {"Kotlin": 34990} | import kotlinx.coroutines.*
import org.junit.jupiter.api.Test
import kotlin.system.measureTimeMillis
@OptIn(DelicateCoroutinesApi::class)
class AsyncTest {
/**
* Async mengembalikan object Deferred. Deffered adalah turunan dari job yang membawa
* hasil dari async function
*/
private suspend fun... | 0 | Kotlin | 0 | 0 | df7b4f7b8226cc657d15b750b716b1b3ecd0e64f | 1,243 | learn-kotlin-coroutines | MIT License |
ethers-core/src/test/kotlin/io/ethers/core/types/transactions/TransactionUnsignedTest.kt | Kr1ptal | 712,963,462 | false | {"Kotlin": 854851, "Solidity": 3601} | package io.ethers.core.types.transactions
import io.ethers.core.types.AccessList
import io.ethers.core.types.Address
import io.ethers.core.types.Bytes
import io.ethers.core.types.Hash
import io.ethers.core.types.transaction.TransactionUnsigned
import io.ethers.core.types.transaction.TxAccessList
import io.ethers.core.... | 13 | Kotlin | 1 | 5 | 6c71cceb6461c8fd50f64b7746b53139a1c6f726 | 6,227 | ethers-kt | Apache License 2.0 |
app/src/main/java/com/example/cryptoassets/core/repository/TransacaoRepository.kt | fabiosoaza | 275,875,400 | false | null | package com.example.cryptoassets.core.repository
import com.example.cryptoassets.core.model.entidade.Ativo
import com.example.cryptoassets.core.model.entidade.Transacao
interface TransacaoRepository {
fun transacoes():Set<Transacao>
fun transacoes(ativo:Ativo):Set<Transacao>
fun salvar(transacao: Transa... | 0 | Kotlin | 0 | 0 | 312bbd3448e1aa1b44493b321a781af1f65a4019 | 401 | crypto-assets | MIT License |
app/src/main/java/com/example/getty_images_app/data/source/mapper/MainMapper.kt | dev-baik | 806,049,181 | false | {"Kotlin": 21027} | package com.example.getty_images_app.data.source.mapper
import com.example.getty_images_app.data.model.main.MainDTO
import com.example.getty_images_app.data.model.main.MainResponse
import com.example.getty_images_app.domain.model.HtmlParseResult
import com.example.getty_images_app.domain.model.MainList
import com.exam... | 0 | Kotlin | 0 | 0 | 1b28c4875cfebe90c2c28e2f2dc99402948516ab | 1,097 | Getty-Images-App | Apache License 2.0 |
app/src/main/java/com/example/getty_images_app/data/source/mapper/MainMapper.kt | dev-baik | 806,049,181 | false | {"Kotlin": 21027} | package com.example.getty_images_app.data.source.mapper
import com.example.getty_images_app.data.model.main.MainDTO
import com.example.getty_images_app.data.model.main.MainResponse
import com.example.getty_images_app.domain.model.HtmlParseResult
import com.example.getty_images_app.domain.model.MainList
import com.exam... | 0 | Kotlin | 0 | 0 | 1b28c4875cfebe90c2c28e2f2dc99402948516ab | 1,097 | Getty-Images-App | Apache License 2.0 |
chrome/src/main/kotlin/chrome/index.chrome.system.storage.kt | GaryLaurenceau | 626,374,779 | false | null | @file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS", "EXTERNAL_DELEGATION", "NESTED_CLASS_IN_EXTERNAL_INTERFACE")
@file:JsQualifier("chrome.system.storage")
package chrome.system.storage
import kotlin.js.*
import kotlin.js.Json
import org.k... | 0 | Kotlin | 0 | 22 | d74e08a26e34f6b93572af18aededfc92736b9a7 | 1,487 | kotlin-chrome-extension | The Unlicense |
app/src/unitTest/kotlin/batect/ui/FailureErrorMessageFormatterSpec.kt | camjackson | 201,380,011 | true | {"Kotlin": 1979130, "Python": 19036, "Shell": 12803, "Groovy": 11432, "PowerShell": 5620, "Dockerfile": 5069, "Batchfile": 2828, "Java": 1205, "HTML": 400} | /*
Copyright 2017-2019 <NAME>.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | 0 | Kotlin | 0 | 0 | 940b607ea42d5d87b0e841aa692a4d9f058282bc | 22,910 | batect | Apache License 2.0 |
bbimageview/src/main/java/com/cjespinozani/widget/BbImageViewSwitcher.kt | cjespinoza-ni | 267,804,586 | false | null | /*
* Copyright (C) 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 0 | 2 | 4f2138c4f821fbf6e1a5c705f1881dea47cc40a0 | 6,609 | BbImageView | Apache License 2.0 |
bbimageview/src/main/java/com/cjespinozani/widget/BbImageViewSwitcher.kt | cjespinoza-ni | 267,804,586 | false | null | /*
* Copyright (C) 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 0 | 2 | 4f2138c4f821fbf6e1a5c705f1881dea47cc40a0 | 6,609 | BbImageView | Apache License 2.0 |
core/src/main/java/org/bitcoinj/core/AlertMessage.kt | brad1121 | 128,862,201 | false | {"Java": 3778141, "Kotlin": 908516, "Shell": 2950, "Groovy": 2178, "CSS": 1838, "Batchfile": 746} | /*
* Copyright 2011 Google Inc.
* Copyright 2015 <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 appl... | 1 | null | 1 | 1 | d25f870673836ef09eaf31eab6f7c3cb77a13035 | 7,305 | bitcoinkt-cash | Apache License 2.0 |
kotlin-dsl/example/src/test/kotlin/com/chutneytesting/example/selenium/SeleniumTest.kt | owerfelli | 791,217,559 | true | {"Markdown": 64, "Batchfile": 2, "Shell": 2, "Gradle Kotlin DSL": 6, "INI": 5, "Java": 984, "HTML": 64, "JavaScript": 6, "Kotlin": 241, "SQL": 4, "Java Properties": 1, "Dockerfile": 3, "CSS": 1, "TypeScript": 250} | package com.chutneytesting.example.selenium
import com.chutneytesting.example.scenario.selenium_scenario
import com.chutneytesting.kotlin.dsl.Environment
import com.chutneytesting.kotlin.launcher.Launcher
import org.junit.jupiter.api.AfterEach
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
i... | 0 | null | 0 | 0 | a7b0bf69921fd29f846763ba4e67e271dbfaad13 | 1,673 | chutney | Apache License 2.0 |
jdbc/spring-data-jpa/src/test/kotlin/tech/ydb/jpa/YdbDockerTest.kt | ydb-platform | 491,175,873 | false | {"Maven POM": 20, "Text": 1, "Ignore List": 1, "Markdown": 2, "INI": 9, "XML": 12, "Kotlin": 30, "SQL": 2, "Java": 74, "YAML": 3, "HTML": 1} | package tech.ydb.jpa
import org.junit.jupiter.api.extension.RegisterExtension
import org.springframework.test.context.ActiveProfiles
import org.springframework.test.context.DynamicPropertyRegistry
import org.springframework.test.context.DynamicPropertySource
import tech.ydb.test.junit5.YdbHelperExtension
/**
* @auth... | 1 | Java | 4 | 6 | 125bb467d959b5a10c44d7a30557996a6d204d6e | 895 | ydb-java-examples | Apache License 2.0 |
library_api/src/main/java/com/crow/ksp/api/RouteInterceptor.kt | crowforkotlin | 798,153,843 | false | {"Kotlin": 27881} | package com.crow.ksp.api
interface RouteInterceptor {
fun intercept(request: RouteRequest): Boolean
} | 0 | Kotlin | 0 | 0 | 5a89525b8254cf84f9da450714e8df631cbe2a76 | 107 | Ksp-Template | Apache License 2.0 |
feature-wallet-api/src/main/java/io/novafoundation/nova/feature_wallet_api/data/network/crosschain/CrossChainTransfersRepository.kt | novasamatech | 415,834,480 | false | {"Kotlin": 8137060, "Java": 14723, "JavaScript": 425} | package io.novafoundation.nova.feature_wallet_api.data.network.crosschain
import io.novafoundation.nova.feature_wallet_api.domain.model.CrossChainTransfersConfiguration
import kotlinx.coroutines.flow.Flow
interface CrossChainTransfersRepository {
suspend fun syncConfiguration()
fun configurationFlow(): Flow... | 12 | Kotlin | 6 | 9 | 618357859a4b7af95391fc0991339b78aff1be82 | 427 | nova-wallet-android | Apache License 2.0 |
app/src/main/java/com/btpj/wanandroid/ui/share/add/AddArticleViewModel.kt | BTPJ | 486,802,334 | false | null | package com.btpj.module_mine.ui.share.add
import androidx.databinding.ObservableBoolean
import androidx.databinding.ObservableField
import com.btpj.lib_base.base.BaseViewModel
import com.btpj.lib_base.data.local.UserManager
import com.btpj.lib_base.ext.handleRequest
import com.btpj.lib_base.ext.launch
import com.btpj.... | 1 | null | 33 | 91 | 139d4bfe53154ad6da773e94c6a71d96e1f4b25c | 1,279 | WanAndroid | Apache License 2.0 |
src/main/kotlin/org/opensearch/replication/task/shard/TranslogSequencer.kt | saikaranam-amazon | 395,243,911 | true | {"Kotlin": 737317, "Shell": 1132} | /*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
package org.opensearch.re... | 0 | null | 0 | 0 | 4e552ff07fd5284e30327f9558ce0ea04488ab0e | 4,377 | cross-cluster-replication-2 | Apache License 2.0 |
app/src/main/java/com/mob/lee/fastair/fragment/ConnectFragment.kt | hongui | 123,892,735 | false | null | package com.mob.lee.fastair.fragment
import com.mob.lee.fastair.R
import com.mob.lee.fastair.base.AppFragment
import com.mob.lee.fastair.p2p.P2PManager
abstract class ConnectFragment : AppFragment() {
override fun setting() {
if (!P2PManager.isConnected()) {
navigation(R.id.discoverFragment)
... | 3 | Kotlin | 14 | 72 | 0526fe4bb1eff33c1278c1ac86f02785710817bd | 382 | FastAir | Apache License 2.0 |
app/src/main/java/com/soneso/lumenshine/presentation/wallets/FundedWalletCardView.kt | Soneso | 144,008,654 | false | null | package com.soneso.lumenshine.presentation.wallets
import android.annotation.SuppressLint
import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.widget.TextView
import androidx.core.view.size
import com.soneso.lumenshine.R
import com.soneso.lumenshine.domain.data.Wallet... | 0 | Kotlin | 2 | 1 | a088d0107dbe769c2814b199dddea0177a9aabec | 3,047 | lumenshine-android-wallet | Apache License 2.0 |
shared/src/commonMain/kotlin/com.zzx/common/socket/FileHelper.kt | zhangzexin | 695,853,977 | false | {"Kotlin": 182996, "Java": 921, "Swift": 580, "Shell": 228} | package com.zzx.common.socket
import com.zzx.common.socket.ByteType.MARK_END
import com.zzx.common.socket.ByteType.MARK_READY
import okhttp3.WebSocket
import okio.ByteString.Companion.toByteString
import java.io.File
import java.nio.ByteBuffer
/**
*@描述:
*@time:2023/9/25
*@author:zhangzexin
*/
object FileHelper {... | 0 | Kotlin | 0 | 0 | acd46309574857fe28f0414ca5bd6fc9745d73ef | 1,272 | Team_Deck | Apache License 2.0 |
feature/weight/src/main/java/com/paradise/ptpt/feature/weight/nav/FeatureWeightModule.kt | sksowk156 | 624,277,724 | false | {"Kotlin": 579556} | package com.paradise.ptpt.feature.weight.nav
import com.paradise.ptpt.core.common_ui.navicontract.FeatureWeightContract
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton
@Module
@InstallIn(SingletonComponent::class)
... | 0 | Kotlin | 0 | 1 | f498af23b88d27870467efca989a12a2be7b851a | 472 | Hellth | Apache License 2.0 |
app/src/main/java/com/ved/ui/fragment/select/SelectItemFragment.kt | vedeng | 244,312,896 | false | null | package com.ved.ui.fragment.select
import android.view.View
import com.bese.view.SelectTextAttr
import com.bese.view.SelectTextLayout
import com.blankj.utilcode.util.LogUtils
import com.ved.R
import com.ved.ui.base.BaseFragment
import kotlinx.android.synthetic.main.fragment_select_item.*
import kotlin.random.Random
/... | 0 | Kotlin | 0 | 0 | 8a92cd925b57a481a8e0422d225da2c5396bca22 | 2,259 | Bese | Creative Commons Zero v1.0 Universal |
frogosdk/src/main/java/com/frogobox/sdk/core/FrogoConstant.kt | frogobox | 293,762,352 | false | null | package com.frogobox.sdk.core
import android.os.Environment
/*
* Created by faisalamir on 26/07/21
* FrogoSDK
* -----------------------------------------
* Name : <NAME>
* E-mail : <EMAIL>
* Github : github.com/amirisback
* -----------------------------------------
* Copyright (C) 2021 FrogoBox Inc. ... | 0 | Kotlin | 0 | 8 | 427d5a98ef5027f000fab91d8e563a606bbb0462 | 1,553 | frogo-android-sdk | Apache License 2.0 |
BlogMVVM/app/src/main/java/com/juanma/blogmvvm/presentation/screens/new_post/NewPostScreen.kt | JmanuelJ | 604,375,672 | false | {"Kotlin": 147282} | package com.juanma.blogmvvm.presentation.screens.new_post
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material.Scaffold
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.viewm... | 0 | Kotlin | 0 | 1 | 6504b78b62abcf317cef58211edee9f0c15ff9af | 1,301 | Blog_Example | Academic Free License v1.1 |
buildSrc/src/main/kotlin/Modules.kt | im-o | 718,908,780 | false | {"Kotlin": 156609} | /** Created by github.com/im-o on 11/15/2023. */
object Modules {
const val core = ":core"
const val home = ":features:home"
const val auth = ":features:auth"
} | 0 | Kotlin | 1 | 0 | 6cc1658634eb8273d6cf6d02d37b3a9c7f33dd30 | 173 | android-compose-haidoc-ui | MIT License |
src/main/kotlin/com/retheviper/excel/worker/BookWorker.kt | retheviper | 352,027,386 | false | null | package com.retheviper.excel.worker
import com.retheviper.excel.definition.BookDef
import com.retheviper.excel.definition.SheetDef
import org.apache.poi.ss.usermodel.Workbook
import org.apache.poi.ss.usermodel.WorkbookFactory
import java.io.File
import java.nio.file.Files
import java.nio.file.Path
/**
* Worker for... | 0 | Kotlin | 0 | 1 | 518f78b17911d10a093ce19a467829f7d0074884 | 3,279 | ExcelWeaverKotlin | MIT License |
app/src/main/java/com/breezefsmshreebajrangsteeludyog/features/stockCompetetorStock/api/AddCompStockRepository.kt | DebashisINT | 645,424,403 | false | null | package com.breezefsmshreebajrangsteeludyog.features.stockCompetetorStock.api
import com.breezefsmshreebajrangsteeludyog.base.BaseResponse
import com.breezefsmshreebajrangsteeludyog.features.orderList.model.NewOrderListResponseModel
import com.breezefsmshreebajrangsteeludyog.features.stockCompetetorStock.ShopAddCompet... | 0 | Kotlin | 0 | 0 | 45503058a15346909552eeab08a9e78ffb3a199a | 922 | ShreeBajrangSteelUdyog | Apache License 2.0 |
app/src/main/java/com/example/epoxypagingsample/ui/model/DataBindingModel.kt | yutaro6547 | 226,437,428 | false | null | package com.example.epoxypagingsample.ui.model
import android.content.Context
import androidx.databinding.ViewDataBinding
import com.airbnb.epoxy.EpoxyModel
import com.airbnb.epoxy.EpoxyModelWithHolder
abstract class DataBindingModel<in T : ViewDataBinding> :
EpoxyModelWithHolder<DataBindingEpoxyHolder<Any?>>() {... | 0 | Kotlin | 0 | 0 | 8e853536b49b080bd595d233e2dc794e5b8142b8 | 1,199 | EpoxyPagingSample | Apache License 2.0 |
app/src/main/java/com/ozan/cleanpokedex/ui/detail/recycler/stats/PokemonStatsRecyclerAdapter.kt | rooest | 365,615,639 | true | {"Kotlin": 54971} | package com.ozan.cleanpokedex.ui.detail.recycler.stats
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.ozan.cleanpokedex.R
import com.ozan.cleanpokedex.databinding.ItemPokemonStatBinding
import com.ozan.cleanpokedex.extension.inflateBinding
import com.ozan.cleanpokedex.ui.uimo... | 0 | null | 0 | 0 | fc7bab2501e2b9a836db21bed3d241cd71f35ce2 | 1,033 | CleanPokedex | Apache License 2.0 |
app/src/main/kotlin/me/xizzhu/android/joshua/infra/arch/ViewPresenter.kt | andriiginting | 288,359,910 | true | {"Kotlin": 1000193} | /*
* Copyright (C) 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | null | 0 | 1 | 2372855404bc56da08adff1f5b03f2f2026d50c3 | 1,434 | Joshua | Apache License 2.0 |
member/src/main/kotlin/com/brainbackdoor/members/domain/Member.kt | brainbackdoor | 671,999,287 | false | {"Kotlin": 158130, "Shell": 253} | package com.brainbackdoor.members.domain
import com.brainbackdoor.domain.RandomId
import jakarta.persistence.CascadeType
import jakarta.persistence.Column
import jakarta.persistence.Embeddable
import jakarta.persistence.Embedded
import jakarta.persistence.Entity
import jakarta.persistence.FetchType
import jakarta.pers... | 0 | Kotlin | 4 | 3 | 6e66d19d6e2e8fce7b1eb51d86e51a4634aaa35b | 2,879 | infra-workshop | MIT License |
app/src/main/java/com/kanyideveloper/muviz/favorites/presentation/FavoritesViewModel.kt | joelkanyi | 458,180,234 | false | {"Kotlin": 259972} | /*
* Copyright 2024 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 4 | Kotlin | 24 | 88 | 8f496c15795a14d9e4c5b3fd593d15ee5ae5fd41 | 1,715 | Muviz | Apache License 2.0 |
app/src/main/java/com/ainshams/graduation_booking_halls/navigation/graphs/wellcomeNavGraph.kt | Tonistark92 | 700,629,104 | false | {"Kotlin": 354268} | package com.ainshams.graduation_booking_halls.navigation.graphs
import androidx.fragment.app.FragmentActivity
import androidx.navigation.*
import androidx.navigation.compose.composable
import com.ainshams.graduation_booking_halls.navigation.HallsScreans
import com.ainshams.graduation_booking_halls.presentation.screens... | 0 | Kotlin | 0 | 0 | e7e08886afa9d8936727ad75e2a966a6feeb4030 | 2,369 | Booking-Halls | MIT License |
app/src/main/java/com/zigis/paleontologas/quiz/usecases/QuizGenerateQuestionsUseCase.kt | edgar-zigis | 240,962,785 | false | null | package com.zigis.paleontologas.quiz.usecases
import com.zigis.paleontologas.quiz.data.entities.Question
import com.zigis.paleontologas.quiz.repositories.QuestionRepository
class QuizGenerateQuestionsUseCase(
private val questionRepository: QuestionRepository
) {
suspend fun generateRandomQuestions(questionCo... | 0 | Kotlin | 16 | 126 | 4ee09d3c6f29278aa1762e71f7db6a84d0ca3dea | 1,057 | Paleontologas | Apache License 2.0 |
core/src/test/kotlin/main/operation/Reset_test.kt | elect86 | 364,643,104 | false | null | package main.operation
import main.*
import main.Gik.ResetMode
import main.Status.Changes
import kotlin.test.BeforeTest
import kotlin.test.Test
import kotlin.test.assertFailsWith
class Reset_test : SimpleGit() {
val commits = ArrayList<Commit>()
@BeforeTest
override fun setup() {
super.setup()
... | 1 | Kotlin | 1 | 2 | f5f28edfee6a2683ce5da5ea8fdc4e1ba32a3f33 | 2,470 | gik | Apache License 2.0 |
src/main/kotlin/be/arby/taffy/lang/tuples/T3.kt | adjabaev | 839,569,114 | false | {"Kotlin": 638630, "HTML": 558738, "JavaScript": 9416, "CSS": 2507, "Shell": 866} | package be.arby.taffy.lang.tuples
data class T3<out A, out B, out C>(
val first: A,
val second: B,
val third: C
) {
override fun toString(): String = "($first, $second, $third)"
}
| 0 | Kotlin | 0 | 0 | 464b84e9bc323a43d349dc2b72c72319df359a87 | 197 | TaffyKT | MIT License |
app/src/main/java/com/nelc/cakesizer/welcomeactivity/SettingsScreen.kt | chakflying | 636,123,689 | false | {"Kotlin": 166391, "Shell": 350, "PowerShell": 283} | package com.nelc.cakesizer.welcomeactivity
import androidx.appcompat.app.AppCompatDelegate
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation... | 0 | Kotlin | 0 | 0 | 5d5f17a2beef3670d4e212207d724fd1564753c7 | 8,187 | cakesizer | MIT License |
app/src/main/java/com/layfones/composewanandroid/data/services/model/CollectArticleInfo.kt | layfones | 623,881,761 | false | null | package com.layfones.composewanandroid.data.services.model
/**
* 收藏文章信息
*/
data class CollectArticleInfo(
val count: Int = 0
) | 0 | Kotlin | 1 | 3 | 6944e510e0e41f7d5c105a8e308adee417478ac4 | 133 | Jetpack-Compose-Practice | Apache License 2.0 |
app/src/main/java/xyz/teamgravity/runningtracker/fragment/fragment/StatisticsFragment.kt | raheemadamboev | 326,260,049 | false | null | package xyz.teamgravity.runningtracker.fragment.fragment
import android.graphics.Color
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.fragment.app.Fragment
import androidx.fragment.app.Fragmen... | 0 | Kotlin | 0 | 0 | 8a069bbfdf0d4b987b4c7f74b5d89c159bab5a3e | 4,793 | running-tracker-app | Apache License 2.0 |
api/type/type-builders/src/main/kotlin/org/rsmod/api/type/builders/loc/LocBuilder.kt | rsmod | 293,875,986 | false | {"Kotlin": 1695754} | package org.rsmod.api.type.builders.loc
import org.rsmod.api.type.builders.HashTypeBuilder
import org.rsmod.game.type.loc.LocTypeBuilder
import org.rsmod.game.type.loc.UnpackedLocType
public abstract class LocBuilder : HashTypeBuilder<LocTypeBuilder, UnpackedLocType>() {
override fun build(internal: String, init:... | 0 | Kotlin | 64 | 92 | 8821a9cddc54314c03c873d4fdaaef760a3a2ada | 451 | rsmod | ISC License |
bot/src/main/java/com/dongtronic/diabot/exceptions/NoSuchEpisodeException.kt | discord-diabetes | 151,116,011 | false | {"Kotlin": 408572, "Dockerfile": 527, "Procfile": 67} | package com.dongtronic.diabot.exceptions
class NoSuchEpisodeException : Exception()
| 18 | Kotlin | 14 | 19 | 8be95fd823503913f612978442c06ca8653afb5a | 85 | diabot | MIT License |
AlsatIPGCore/src/main/java/com/alsatpardakht/alsatipgcore/data/remote/dto/VERIFYDto.kt | AlsatPardakht | 460,316,372 | false | null | package com.alsatpardakht.alsatipgcore.data.remote.dto
import com.alsatpardakht.alsatipgcore.data.Mapper
import com.alsatpardakht.alsatipgcore.domain.model.VERIFY
import kotlinx.serialization.Serializable
@Serializable
data class VERIFYDto(
val HashedCardNumber: String?,
val IsSuccess: Boolean?,
val Maske... | 0 | Kotlin | 0 | 4 | 52f8ad23d4f8675a7e7179d212a6a7e22272ddee | 732 | AlsatIPGCore | MIT License |
app/src/main/java/com/xeniac/chillclub/feature_settings/domain/use_cases/SettingsUseCases.kt | WilliamGates99 | 840,710,908 | false | {"Kotlin": 380219} | package com.xeniac.chillclub.feature_settings.domain.use_cases
import dagger.Lazy
data class SettingsUseCases(
val getCurrentAppThemeUseCase: Lazy<GetCurrentAppThemeUseCase>,
val getIsPlayInBackgroundEnabledUseCase: Lazy<GetIsPlayInBackgroundEnabledUseCase>,
val storeCurrentAppThemeUseCase: Lazy<StoreCurr... | 0 | Kotlin | 0 | 2 | 4740cc0fca1dc7445c0a28793aefc35fbbf780e6 | 433 | ChillClub | Apache License 2.0 |
app/src/main/java/com/connectycube/messenger/api/UserService.kt | ConnectyCube | 198,286,170 | false | null | package com.connectycube.messenger.api
import android.content.Context
import com.connectycube.chat.ConnectycubeChatService
import com.connectycube.core.exception.ResponseException
import com.connectycube.messenger.data.AppDatabase
import com.connectycube.users.ConnectycubeUsers
import kotlinx.coroutines.Dispatchers
im... | 8 | null | 22 | 50 | a0e4f3be09f39ff43fc66c94bcbfe0b9f2e3cf4f | 1,269 | android-messenger-app | Apache License 2.0 |
app/src/main/java/com/example/jetpack_compose_all_in_one/features/download_manager/DownloadReceiver.kt | myofficework000 | 626,474,700 | false | {"Kotlin": 1392414} | package com.example.jetpack_compose_all_in_one.features.download_manager
import android.app.DownloadManager
import android.content.BroadcastReceiver
import android.content.ContentValues
import android.content.Context
import android.content.Intent
import android.net.Uri
import androidx.activity.ComponentActivity
import... | 21 | Kotlin | 22 | 222 | 4de5418608d6917b5c97fac7d868454c424daa26 | 2,358 | Jetpack-Compose-All-in-one-Guide | MIT License |
panna-shared/src/main/kotlin/com/mgtriffid/games/panna/shared/game/effects/MovementEffect.kt | mgtriffid | 524,701,185 | false | {"Kotlin": 478306, "Java": 9323} | package com.mgtriffid.games.panna.shared.game.effects
import com.mgtriffid.games.cotta.core.effects.CottaEffect
import com.mgtriffid.games.cotta.core.entities.id.EntityId
interface MovementEffect : CottaEffect {
val velocityX: Float
val velocityY: Float
val entityId: EntityId // should be careful when tra... | 2 | Kotlin | 0 | 6 | ee0bd897c67451b31f68a3a31a6ee8de756b2b52 | 351 | cotta | MIT License |
app/src/main/kotlin/Reversi/ReversiState.kt | aqtech-ca | 311,016,146 | false | {"Kotlin": 88461, "TeX": 4464, "Shell": 96} | package Reversi
class ReversiState : Cloneable {
val squares: Array<Array<ReversiSquare>>
val size: Int
var currentPlayer: ReversiSquare
constructor(size: Int) {
squares = Array(size) {
Array(size) {
ReversiSquare.EMPTY
}
}
squares[size/... | 8 | Kotlin | 1 | 6 | a9a533f9004a96c09bdef3e67c9c7c7dcb62655d | 1,787 | mctreesearch4j | MIT License |
app/src/main/java/com/example/groxcounter/MainActivity.kt | kshirsagarps | 139,342,598 | false | {"Kotlin": 6376} | package com.example.groxcounter
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(save... | 1 | Kotlin | 0 | 0 | a4c36e833e85c50ce24ca1a3bf133e40061cac58 | 650 | GroxCounterApp | Apache License 2.0 |
types/src/test/kotlin/org/kethereum/contract/abi/types/ThePaddingFun.kt | komputing | 92,780,266 | false | {"Kotlin": 776856} | package org.kethereum.contract.abi.types
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import kotlin.test.assertFailsWith
class ThePaddingFun {
@Test
fun paddingWorks() {
assertThat(byteArrayOf(2).leftPadToFixedSize(3)).isEqualTo(byteArrayOf(0, 0, 2))
}
... | 43 | Kotlin | 82 | 333 | 1f42cede2d31cb5d3c488bd74eeb8480ec47c919 | 739 | KEthereum | MIT License |
app/src/main/java/io/github/satoshun/example/AppActivity.kt | satoshun-android-example | 539,307,380 | false | null | package io.github.satoshun.example
import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.appcompat.app.AppCompatActivity
import io.github.satoshun.example.share.Share
import javax.inject.Inject
class AppActivity : AppCompatActivity() {
@Inject lateinit var viewModel: AppViewModel
o... | 0 | Kotlin | 0 | 0 | a072d10961034239013c4822603a7e7cd28bed9c | 588 | napt-sample | Apache License 2.0 |
app/src/main/java/com/rickinc/decibels/presentation/ui/components/RationaleDialog.kt | Rick-AB | 540,820,468 | false | {"Kotlin": 126933} | package com.rickinc.decibels.presentation.ui.components
import androidx.annotation.StringRes
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Card
import androidx.compose.material.Text
i... | 0 | Kotlin | 0 | 0 | 33b9a8fc4f68af2dddf829d07e664f82edd10655 | 2,974 | Decibels | Apache License 2.0 |
src/main/java/org/module/structure/CommandListenerAdapter.kt | krabiworld | 449,676,433 | false | {"Kotlin": 85903} | package org.module.structure
interface CommandListenerAdapter {
fun onCommand() {}
}
| 0 | Kotlin | 0 | 3 | 0e558e7858521f801d347ffa64df38758f9b5a60 | 90 | Module | MIT License |
src/main/kotlin/com/tradeshift/blayze/dto/Update.kt | Tradeshift | 132,719,809 | false | {"Kotlin": 91470} | package com.tradeshift.blayze.dto
import com.tradeshift.blayze.Protos
/**
* Outcome and [Inputs], e.g. (in json)
*
* {
* "outcome": "spam",
* "inputs": {
* "text": {
* "subject": "Attention, is it true?",
* "body": "Good day dear beneficiar... | 4 | Kotlin | 11 | 20 | 7d53dbef7a39af44f753417e80af7305a4f675ae | 1,181 | blayze | MIT License |
room/room-compiler/src/test/test-data/common/input/GuavaRoom.kt | androidx | 256,589,781 | false | {"Kotlin": 112114129, "Java": 66594571, "C++": 9132142, "AIDL": 635065, "Python": 325169, "Shell": 194520, "TypeScript": 40647, "HTML": 35176, "Groovy": 27178, "ANTLR": 26700, "Svelte": 20397, "CMake": 15512, "C": 15043, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright 2024 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 29 | Kotlin | 1011 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 2,393 | androidx | Apache License 2.0 |
LogisticManager/src/main/kotlin/engine/Warehouse.kt | ostis-apps | 209,274,423 | false | {"C++": 190974, "Python": 158695, "JavaScript": 121504, "Kotlin": 28151, "CSS": 16444, "CMake": 15212, "Shell": 13239, "HTML": 5019, "Dockerfile": 1567} | package engine
data class Warehouse(
val name: String,
val connectedShops: MutableMap<Shop, Int>,
val connectedFactories: MutableMap<Factory, Int>,
val connectedWarehouse: MutableMap<Warehouse, Int>
){
override fun toString(): String {
return "Warehouse(name='$name.', connectedShops=$connec... | 46 | C++ | 128 | 2 | dade10e5ffdb02a7cd7dab3ebeb83496ac43d5ae | 425 | ostis-geography | MIT License |
src/me/anno/rubikscube/api/Side.kt | AntonioNoack | 777,290,171 | false | {"Kotlin": 28143} | package me.anno.rubikscube.api
enum class Side(val colorSeenFromFront: Color) {
LEFT(Color.ORANGE),
RIGHT(Color.RED),
FRONT(Color.GREEN),
BACK(Color.BLUE),
UP(Color.WHITE),
DOWN(Color.YELLOW)
} | 0 | Kotlin | 0 | 0 | 6188297619ee8b2c84cc5b9acd5e121cc16167c3 | 218 | RubiksCubeUI | Apache License 2.0 |
karballo-common/src/main/kotlin/karballo/Square.kt | albertoruibal | 87,008,703 | false | null | package karballo
object Square {
val ALL: Long = -1
val WHITES: Long = -6172840429334713771
val BLACKS: Long = 6172840429334713770
val H1 = 1L
val G1 = H1 shl 1
val F1 = H1 shl 2
val E1 = H1 shl 3
val D1 = H1 shl 4
val C1 = H1 shl 5
val B1 = H1 shl 6
val A1 = H1 shl 7
... | 0 | Kotlin | 2 | 12 | a709a7eefa3ad966a775821e80b1e566b77b9491 | 1,610 | karballo | MIT License |
app/src/main/java/com/lostincontext/users/UsersActivity.kt | LostInContext | 65,417,953 | false | null | package com.lostincontext.users
import android.os.Bundle
import com.lostincontext.R
import com.lostincontext.commons.BaseActivity
import com.lostincontext.utils.addFragmentToActivity
class UsersActivity : BaseActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceS... | 1 | Kotlin | 5 | 46 | 0a2650852fb8bc56cb71c158fc1724f69cdbb640 | 682 | LostContext-App | Beerware License |
app/src/main/java/com/haton/walletwise/presentation/screen/auth/view/firstentry/FirstEntryView.kt | KotlinType | 802,754,938 | false | {"Kotlin": 120404} | package com.haton.walletwise.presentation.screen.auth.view.firstentry
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.gestures.Orientation
import androidx.compose.foundation.gestures.ScrollableState
import androidx.compose.foundation.gestures.re... | 0 | Kotlin | 0 | 0 | 7c80997b132a423c0bee59d3c0ec70af9e870838 | 10,142 | WalletWise-Front | MIT License |
plugins/analysis/common/src/main/kotlin/arrow/meta/plugins/analysis/phases/analysis/solver/ast/context/elements/WhenConditionWithExpression.kt | arrow-kt | 217,378,939 | false | null | package arrow.meta.plugins.analysis.phases.analysis.solver.ast.context.elements
interface WhenConditionWithExpression : WhenCondition {
val expression: Expression?
}
| 97 | Kotlin | 40 | 316 | 8d2a80cf3a1275a752c18baceed74cb61aa13b4d | 169 | arrow-meta | Apache License 2.0 |
plugins/idea-plugin/src/main/kotlin/dev/ahmedmourad/nocopy/idea/inspections/fixes/ConvertToDataClassFix.kt | AhmedMourad0 | 242,375,329 | false | {"Kotlin": 24100} | package dev.ahmedmourad.nocopy.idea.inspections.fixes
import com.intellij.codeInsight.FileModificationService
import com.intellij.codeInspection.LocalQuickFix
import com.intellij.codeInspection.ProblemDescriptor
import com.intellij.openapi.project.Project
import org.jetbrains.kotlin.lexer.KtTokens
import org.jetbrains... | 1 | Kotlin | 4 | 150 | e62c2564f114c0dcff9b09760601f651b21d6762 | 936 | no-copy | Apache License 2.0 |
app/src/main/java/com/kotlin/architecture/utils/StatusCode.kt | KaranMavadhiya | 270,289,104 | false | null | package com.kotlin.architecture.utils
object StatusCode {
const val STATUS_CODE_INTERNET_VALIDATION = 100
const val STATUS_CODE_NAME_VALIDATION = 101
const val STATUS_CODE_EMAIL_VALIDATION = 102
const val STATUS_CODE_PASSWORD_VALIDATION = 103
const val STATUS_CODE_SUCCESS = 200
const val STAT... | 0 | Kotlin | 1 | 2 | 022d88d54f0d0217f5bbd64e2dadbc53b16671ec | 487 | Kotlin-Architecture | Apache License 2.0 |
plugins/net/src/main/kotlin/org/rsmod/plugins/net/login/downstream/BadSessionIdCodec.kt | rsmod | 293,875,986 | false | null | package org.rsmod.plugins.net.login.downstream
import org.rsmod.protocol.packet.ZeroLengthPacketCodec
import javax.inject.Singleton
@Singleton
class BadSessionIdCodec : ZeroLengthPacketCodec<LoginResponse.BadSessionId>(
packet = LoginResponse.BadSessionId,
opcode = 10
)
| 0 | Kotlin | 49 | 55 | 5293efb07c833715f9bd9df4cad6ff9aa68143da | 281 | rsmod | ISC License |
zzsong-device-edge/src/main/kotlin/com/zzsong/device/edge/infrastructure/repository/EdgeSentCommandRepositoryImpl.kt | Songzhizong | 465,969,434 | false | null | package com.zzsong.device.edge.infrastructure.repository
import com.zzsong.device.edge.domain.model.command.EdgeSentCommandDo
import com.zzsong.device.edge.domain.model.command.EdgeSentCommandRepository
import kotlinx.coroutines.reactor.awaitSingle
import kotlinx.coroutines.reactor.awaitSingleOrNull
import org.springf... | 0 | Kotlin | 0 | 0 | 06f8f2664499e92576b0bc329083ec15bebfdad9 | 1,102 | zzsong-device | MIT License |
core/src/commonMain/kotlin/Dsl.kt | kowasm | 586,987,800 | false | {"Kotlin": 620989, "JavaScript": 545, "Shell": 263} | /*
* Copyright 2023 the original author or authors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package org.kowasm.core
/**
* A marker annotation for KoWasm DSLs.
*/
@DslMarker
annotation class Dsl | 10 | Kotlin | 5 | 315 | a45430d559057f5a3e10ee88d26eba07103bf69d | 266 | kowasm | Apache License 2.0 |
app/src/main/java/dev/pankaj/cleanarchitecture/di/FactoryModule.kt | pankaj046 | 806,227,972 | false | {"Kotlin": 79661} | package dev.pankaj.cleanarchitecture.di
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import dev.pankaj.cleanarchitecture.App
import dev.pankaj.cleanarchitecture.domain.usecase.AuthUseCase
import dev.pankaj.cleanarchitecture.domain.usecase.Pro... | 0 | Kotlin | 0 | 0 | 050fa0aae45e4500c9fc85a04c6b7ee5b6439d71 | 1,234 | Clean-Architecture | The Unlicense |
krefty-core/src/commonTest/kotlin/dev/ustits/krefty/predicate/collections/EmptyTest.kt | ustitc | 410,678,793 | false | {"Kotlin": 49157} | package dev.ustits.krefty.predicate.collections
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe
import io.kotest.property.Arb
import io.kotest.property.arbitrary.list
import io.kotest.property.arbitrary.string
import io.kotest.property.forAll
class EmptyTest : StringSpec({
"returns... | 0 | Kotlin | 1 | 8 | a0c6301bcf28154b59afcd14f32563ba40dd2993 | 653 | krefty | MIT License |
app/src/main/java/com/androidstarter/ui/settings/ISettings.kt | syedtehrimabbas | 526,100,544 | false | null | package com.androidstarter.ui.settings
import com.androidstarter.base.interfaces.IBase
interface ISettings {
interface State : IBase.State {
}
interface ViewModel : IBase.ViewModel<State> {
}
} | 0 | Kotlin | 0 | 0 | b89ab5c66b9e750915481295a30034889d590480 | 212 | dida-procop-android | MIT License |
day03/src/test/kotlin/Tests.kt | rstockbridge | 225,212,001 | false | null | import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
class Tests {
@Test
fun closestDistance1() {
val wire1 = parseInput("R8,U5,L5,D3")
val wire2 = parseInput("U7,R6,D4,L4")
val output = calculateDistanceToClosestIntersectionPoint(wire1, wire2)
Assertions.... | 0 | Kotlin | 0 | 0 | bcd6daf81787ed9a1d90afaa9646b1c513505d75 | 1,821 | AdventOfCode2019 | MIT License |
app/src/main/java/com/sothsez/sqliteconnect/MainActivity.kt | Senzlter | 274,884,772 | false | null | package com.sothsez.sqliteconnect
import android.content.ContentValues
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.provider.BaseColumns
import android.text.Editable
import android.util.Log
import android.widget.Toast
import androidx.databinding.DataBindingUtil
import android... | 0 | Kotlin | 0 | 0 | 4f971f0ab6dc9affed0888cd8c28511953289181 | 7,437 | SQLiteConnect | Apache License 2.0 |
rentalproperty-mp-common/src/commonMain/kotlin/ru/otus/otuskotlin/vd/rentalproperty/kmp/common/validation/validators/ValidatorHasInList.kt | otuskotlin | 327,227,710 | false | null | package ru.otus.otuskotlin.vd.rentalproperty.kmp.common.validation.validators
import ru.otus.otuskotlin.vd.rentalproperty.kmp.common.validation.IValidator
import ru.otus.otuskotlin.vd.rentalproperty.kmp.common.validation.ValidationFieldError
import ru.otus.otuskotlin.vd.rentalproperty.kmp.common.validation.ValidationR... | 1 | Kotlin | 1 | 0 | d921e9c8ce4b071efa9ae7bc251f663660b8f5f6 | 864 | otuskotlin-202012-rentalproperty-vd | MIT License |
subprojects/gradle/instrumentation-tests/src/main/kotlin/com/avito/instrumentation/suite/dex/TestInApk.kt | matzuk | 344,157,673 | true | {"Kotlin": 2509850, "Shell": 16022, "Python": 14063, "Dockerfile": 7151, "Makefile": 2131} | package com.avito.android
import com.avito.report.model.TestName
/**
* Тест это обязательно метод, запуск на классе хоть и поддерживается из IDE или фильтром по классу,
* по факту обозначает запуск всех методов в классе
*
* @param annotations при совпадении аннотаций на классе и методе будет выброшен exception
*... | 0 | null | 1 | 0 | 96463f7714c0550e331d2a37fb32ad98fac9d62d | 441 | avito-android | MIT License |
OfficialSite/Coroutine/ContextAndDispatchers/ChildrenCoroutine.kt | kazenetu | 238,936,555 | false | null | import kotlinx.coroutines.*
/*
* コルーチン:ディスパッチャーとスレッド:兄弟コルーチンのキャンセル
*/
fun main() = runBlocking {
// 「GlobalScopeとrunBlockingに属するスレッドの兄弟コルーチン」のキャンセル時の動作の違い
println("---Children of a coroutine---")
val request = launch {
GlobalScope.launch {
// GlobalScopeのためキャンセル対象外
print... | 0 | Kotlin | 0 | 0 | 77df823ed3131e45d6aadd325a4726e106c6ef60 | 1,246 | kotlin-practice | MIT License |
app/src/main/java/com/example/todoperfect/logic/dao/TaskDao.kt | Spark-RTG | 530,464,724 | false | null | package com.example.todoperfect.logic.dao
import androidx.room.*
import com.example.todoperfect.TodoPerfectApplication
import com.example.todoperfect.logic.model.Task
import java.sql.Timestamp
import java.util.*
@Dao
interface TaskDao {
@Insert
fun insertTask(task: Task): Long
@Update
fun updateTas... | 0 | Kotlin | 0 | 0 | 29df23623699b40af791ebe5f5dcec3f0312cf39 | 1,446 | CS8803-First-Assignment | Apache License 2.0 |
app/src/main/java/ludugz/pomodoro/ui/theme/IbmPlexSansTypography.kt | ludugz | 644,216,137 | false | {"Kotlin": 54378} | package ludugz.pomodoro.ui.theme
/**
* Created by <NAME>, on 28 August, 2024
* Email: <EMAIL>
*/
import androidx.compose.material3.Typography
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.Font
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.Fon... | 0 | Kotlin | 0 | 0 | caf369f3be96a53755cece064fb699ff9da653ad | 2,655 | pomodoro | MIT License |
undertow/src/test/kotlin/org/springframework/samples/petclinic/rest/webmvc/jdbc/UndertowWebMvcJdbcPetTypeControllerTest.kt | kotoant | 612,221,740 | false | {"Kotlin": 230920, "JavaScript": 102019, "Mustache": 10054, "PLpgSQL": 2929, "Shell": 1403, "Dockerfile": 709} | package org.springframework.samples.petclinic.rest.webmvc.jdbc
class UndertowWebMvcJdbcPetTypeControllerTest : WebMvcJdbcPetTypeControllerTest()
| 0 | Kotlin | 0 | 2 | 365b0ce4d9eaacee8c888511915c404f414cbd8c | 146 | spring-petclinic-rest | Apache License 2.0 |
app/src/main/java/cn/cqautotest/sunnybeach/paging/source/RichPagingSource.kt | anjiemo | 378,095,612 | false | {"Kotlin": 1615160, "Java": 17208, "HTML": 2257, "JavaScript": 1720} | package cn.cqautotest.sunnybeach.paging.source
import androidx.paging.PagingSource
import androidx.paging.PagingState
import cn.cqautotest.sunnybeach.execption.ServiceException
import cn.cqautotest.sunnybeach.http.network.UserNetwork
import cn.cqautotest.sunnybeach.model.RichList
import cn.cqautotest.sunnybeach.util.C... | 0 | Kotlin | 25 | 148 | 5d9b1a38bd594bced70cd4f5b7963815a9dfe005 | 1,944 | SunnyBeach | Apache License 2.0 |
src/test/kotlin/com/gentooway/blog/web/WebControllerTest.kt | acmilanfan | 167,793,213 | false | null | package com.gentooway.blog.web
import com.fasterxml.jackson.databind.ObjectMapper
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test... | 0 | Kotlin | 0 | 0 | 2b059d8e8c67d98fdf50e03ce3d85de9dbadee21 | 602 | blog-backend-kotlin | MIT License |
app/src/main/java/com/kanedasoftware/masterscrobbler/main/MainActivity.kt | cardoso-thiago | 272,305,777 | false | null | package com.kanedasoftware.masterscrobbler.main
import android.app.WallpaperManager
import android.content.Context
import android.content.Intent
import android.content.res.Resources
import android.graphics.Bitmap
import android.graphics.PorterDuff
import android.graphics.PorterDuffColorFilter
import android.os.Bundle
... | 0 | Kotlin | 0 | 0 | b1f66f4fc85e0b9514b6b0f6f1eb55395d7ce0cc | 22,693 | master-scrobbler | MIT License |
data/src/main/java/com/mnatsakanyan/data/network/CollectionService.kt | araratthehero | 667,529,727 | false | null | package com.mnatsakanyan.data.network
import com.mnatsakanyan.data.model.NetworkArtObjectCollectionResponse
import com.mnatsakanyan.data.model.NetworkArtObjectResponse
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query
internal interface CollectionService {
@GET("collection?s=artist... | 0 | Kotlin | 0 | 0 | c65d7e18bbd9cab9b9ddbc3fc28349797668f08d | 693 | rijksmuseum-collection | Apache License 2.0 |
app/src/main/java/com/modmobility/weatherapp/models/Main.kt | yash300685 | 228,751,285 | false | null | package com.modmobility.weatherapp.models
data class Main (val temp:String) | 0 | Kotlin | 0 | 0 | 529f6216f6d16717ef1484c3c1422e764ea08784 | 76 | WeatherApplication | The Unlicense |
app/src/main/java/com/swc/sampleapp_mvvm/di/NetworkModule.kt | JuheonYi | 870,656,016 | false | {"Kotlin": 8521} | package com.swc.sampleapp_mvvm.di
import com.swc.sampleapp_mvvm.network.RetrofitClient
import com.swc.sampleapp_mvvm.network.WeatherApiService
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
@Module
@InstallIn(SingletonComponent::class)
object ... | 0 | null | 0 | 0 | e223580c1f3f45804daac731c223eef50942d41d | 496 | sampleapp-mvvm | MIT License |
magic-obs-bootstrap/src/main/kotlin/com/github/vatbub/magic/bootstrap/UpdateAndLaunchTask.kt | vatbub | 352,061,373 | false | null | /*-
* #%L
* magic-obs-bootstrap
* %%
* Copyright (C) 2019 - 2021 Frederik Kammel
* %%
* 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-... | 0 | Kotlin | 0 | 0 | 9919d8db94fd972cba32fab334f59cc43a156988 | 3,851 | magic-obs | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.