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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
compiler/src/test/kotlin/software/amazon/test/SingleInAppScope.kt | amzn | 844,818,788 | false | {"Kotlin": 135742} | package software.amazon.test
import me.tatarka.inject.annotations.Scope
@Scope
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER)
annotation class SingleInAppScope
| 6 | Kotlin | 1 | 40 | d0919d28f4fdf5a7d1ef96cffdfe2b6be324d1e0 | 208 | kotlin-inject-anvil | Apache License 2.0 |
Fragment/fragment_improvement/app/src/main/java/com/workaholiclab/fragment_improvement/MainActivity.kt | Workaholic-Lab | 298,015,933 | false | {"Kotlin": 418971, "C++": 159092, "Makefile": 31044, "Java": 4576, "HTML": 2236, "QMake": 753, "C": 263} | package com.workaholiclab.fragment_improvement
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Toast
import kotlinx.android.synthetic.*
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override f... | 0 | Kotlin | 0 | 1 | 55220c5c71cbce5b398c4b6c0aacacaa5e94c4e4 | 1,018 | Android-Kotlin-startup | Apache License 2.0 |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/TextAddSpaceAfter.kt | Konyaco | 574,321,009 | false | null |
package com.konyaco.fluent.icons.filled
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Filled.TextAddSpaceAfter: ImageVector
get() {
if (_textAddSpaceAfter... | 1 | Kotlin | 3 | 83 | 9e86d93bf1f9ca63a93a913c990e95f13d8ede5a | 1,792 | compose-fluent-ui | Apache License 2.0 |
app/src/androidTest/java/com/phicdy/mycuration/TestCoroutineDispatcherProvider.kt | phicdy | 24,188,186 | false | null | package com.phicdy.mycuration
import com.phicdy.mycuration.core.CoroutineDispatcherProvider
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.test.TestCoroutineDispatcher
class TestCoroutineDispatcherProvider(private val testDispatcher: TestCoroutineDispatcher): CoroutineDispatcherProvider {
... | 30 | Kotlin | 7 | 17 | fb059cb8f9527e7efdf3c16ebd63e2506dc7398f | 573 | MyCuration | MIT License |
ui/component/src/main/kotlin/com/louisfn/somovie/ui/component/movie/MovieVoteAverageChart.kt | LouisFn | 571,351,948 | false | {"Kotlin": 500276, "Shell": 779} | package com.louisfn.somovie.ui.component.movie
import androidx.annotation.FloatRange
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.... | 3 | Kotlin | 6 | 23 | 772c90cf46e0056d826344b1f95c559b8101de2d | 1,907 | SoMovie | MIT License |
app/src/main/java/br/com/chicorialabs/astranovos/presentation/ui/MainActivity.kt | chicorasia | 426,225,621 | false | null | package br.com.chicorialabs.astranovos.presentation.ui
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import br.com.chicorialabs.astranovos.R
/**
* A MainActivity serve essencialmente para hospedar os
* fragmentos.
*/
class MainActivity : AppCompatActivity() {
override fun onCreate(sa... | 0 | Kotlin | 5 | 9 | dea4bb5462c48dd45b716348199c54beeea285bc | 446 | astranovos | MIT License |
app/src/main/java/fr/squadella/saucisse/game/BoardHelper.kt | Squadella | 369,272,719 | false | null | package fr.squadella.saucisse.game
import fr.squadella.saucisse.constant.CellTypeEnum
import fr.squadella.saucisse.util.RandomUtils
import kotlin.random.nextInt
/**
* Permet de manipuler le plateau de jeu.
*/
object BoardHelper {
/**
* Permet d'initialiser une colonne du tableau.
*
* @param heig... | 0 | Kotlin | 0 | 0 | c767d56938092b6c40b80350ede4164018c51b9e | 1,755 | JeuDeLaSaucisse | Apache License 2.0 |
app/src/main/java/johnnysc/github/forcepush/sl/MainModule.kt | MAXCONTROLL | 618,882,645 | false | null | package johnnysc.github.forcepush.sl
import johnnysc.github.forcepush.sl.core.BaseModule
import johnnysc.github.forcepush.sl.core.CoreModule
import johnnysc.github.forcepush.ui.main.MainViewModel
/**
* @author Asatryan on 18.08.2021
**/
class MainModule(private val coreModule: CoreModule) : BaseModule<MainViewModel... | 0 | Kotlin | 0 | 0 | 6e953ea9602b93a3ecb9aaf582170b47108a0064 | 422 | ForcePush | MIT License |
app/src/main/java/com/adsama/clevertapassignment/utils/BindingUtil.kt | Adsama94 | 667,024,201 | false | null | package com.adsama.clevertapassignment.utils
import android.widget.Button
import android.widget.ImageView
import androidx.appcompat.content.res.AppCompatResources
import androidx.databinding.BindingAdapter
import com.adsama.clevertapassignment.R
import com.bumptech.glide.Glide
@BindingAdapter("setSubmitButtonState")
... | 0 | Kotlin | 0 | 0 | 8b4fc78a085c81d5a0b17fdc7f1be64a86cc91f8 | 499 | CleverTap-Assignment | Apache License 2.0 |
rhetorikal-core/src/commonMain/kotlin/rhetorikal/Statement.kt | aSoft-Ltd | 363,783,179 | false | null | package rhetorikal
import kotlinx.serialization.Serializable
@Serializable
data class Statement(
val uid: String,
val rhetorician: Rhetorician,
val body: String,
val status: Status = Status.Allowed
) {
enum class Status {
Allowed, Disallowed
}
} | 0 | Kotlin | 0 | 0 | 64a25f697dbfa2e4ca848138463341f3ea0c2c0a | 279 | rhetorikal | MIT License |
domain/src/test/kotlin/fobo66/valiutchik/domain/fake/FakeCurrencyRateRepository.kt | fobo66 | 256,453,787 | false | {"Kotlin": 299921} | /*
* 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 ... | 4 | Kotlin | 0 | 2 | f5edbe9c5b92054c8af23535f53ac1e188b2084a | 1,208 | valiutchik-android | Apache License 2.0 |
app/src/main/java/com/merative/healthpass/common/App.kt | digitalhealthpass | 563,978,682 | false | {"Kotlin": 1047923, "HTML": 79495, "Python": 22113, "Java": 1959} | package com.merative.healthpass.common
import android.content.Context
import androidx.multidex.MultiDex
import androidx.multidex.MultiDexApplication
import com.google.firebase.crashlytics.FirebaseCrashlytics
import com.merative.healthpass.common.dagger.AppModule
import com.merative.healthpass.common.dagger.Application... | 0 | Kotlin | 0 | 0 | 2b086f6fad007d1a574f8f0511fff0e65e100930 | 1,503 | dhp-android-app | Apache License 2.0 |
app/src/main/java/com/merative/healthpass/common/App.kt | digitalhealthpass | 563,978,682 | false | {"Kotlin": 1047923, "HTML": 79495, "Python": 22113, "Java": 1959} | package com.merative.healthpass.common
import android.content.Context
import androidx.multidex.MultiDex
import androidx.multidex.MultiDexApplication
import com.google.firebase.crashlytics.FirebaseCrashlytics
import com.merative.healthpass.common.dagger.AppModule
import com.merative.healthpass.common.dagger.Application... | 0 | Kotlin | 0 | 0 | 2b086f6fad007d1a574f8f0511fff0e65e100930 | 1,503 | dhp-android-app | Apache License 2.0 |
app/src/main/java/saityan/misc/copycat/view/bottom_bar/BottomBar.kt | saityan | 516,775,828 | false | {"Kotlin": 72739} | package saityan.misc.copycat.view.bottom_bar
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.BottomNavigation
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
im... | 0 | Kotlin | 0 | 0 | 9f4cbb5c5f192ecd8e8e4a942a4589f622711a31 | 1,451 | copycat | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/oauth2server/auth/repository/OauthCodeRepository.kt | ministryofjustice | 118,512,431 | false | {"Kotlin": 2265565, "HTML": 206930, "Shell": 16327, "CSS": 11834, "Dockerfile": 1459, "JavaScript": 439, "Procfile": 74} | package uk.gov.justice.digital.hmpps.oauth2server.auth.repository
import org.springframework.data.repository.CrudRepository
import uk.gov.justice.digital.hmpps.oauth2server.auth.model.OauthCode
import java.time.LocalDateTime
interface OauthCodeRepository : CrudRepository<OauthCode, String> {
fun deleteByCreatedDate... | 4 | Kotlin | 4 | 8 | 82c9be0579d1377093d227c4376589939a0811ff | 356 | hmpps-auth | MIT License |
app/src/main/java/com/codrutursache/casey/domain/repository/NotificationRepository.kt | ursachecodrut | 739,025,706 | false | {"Kotlin": 173858} | package com.codrutursache.casey.domain.repository
import com.codrutursache.casey.data.response.RandomFoodTriviaResponse
import com.codrutursache.casey.domain.model.Resource
interface NotificationRepository {
suspend fun getRandomFoodTrivia(): Resource<RandomFoodTriviaResponse>
} | 0 | Kotlin | 0 | 1 | aa33fd6417fdaf4476b2cb42736725ea51a5d275 | 286 | casey | MIT License |
app/src/main/java/io/github/tonnyl/mango/data/remote/AuthUserRemoteDataSource.kt | TonnyL | 96,067,211 | false | null | /*
* Copyright (c) 2017 Lizhaotailang
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publi... | 1 | Kotlin | 100 | 659 | 0e771001d1b8b06770d0a0d9f2a3dc222f976895 | 3,010 | Mango | MIT License |
core/src/main/kotlin/org/web3j/corda/protocol/ClientBuilder.kt | net3j | 363,037,366 | false | null | /*
* Copyright 2019 Web3 Labs LTD.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 0 | Kotlin | 0 | 0 | 357ee69e1deee7f5bdf9009db0b169a8dce02bd6 | 3,213 | web3j-corda | Apache License 2.0 |
SMBeautyEngine_andriod/pixelfree_android_demo/hapiAVRender/src/main/java/com/hapi/avcapture/CameraXTrack.kt | uu-code007 | 292,572,680 | false | {"C++": 2577952, "C": 558070, "Objective-C": 160089, "Java": 95073, "Kotlin": 72622, "Dart": 14074, "Ruby": 3409, "CMake": 2940} | package com.hapi.avcapture
import android.annotation.SuppressLint
import android.content.Context
import android.util.Log
import android.util.Size
import androidx.camera.core.CameraSelector
import androidx.camera.core.ImageAnalysis
import androidx.camera.lifecycle.ProcessCameraProvider
import androidx.core.content.Cont... | 0 | C++ | 26 | 117 | c14fb6d4debdbf42caf4ede3b72dee682a95428e | 2,666 | PixelFreeEffects | MIT License |
app/src/main/kotlin/ch/addere/keystrokeenumerator/app/domain/service/ScannerService.kt | ryru | 618,528,017 | false | null | package ch.addere.keystrokeenumerator.app.domain.service
import ch.addere.keystrokeenumerator.app.domain.model.AppSettings
import ch.addere.keystrokeenumerator.app.domain.model.output.OutputData
import ch.addere.keystrokeenumerator.core.domain.model.FileResult
import ch.addere.keystrokeenumerator.core.domain.model.lay... | 2 | Kotlin | 0 | 1 | b47e4c389756dc8a98bec28b2a2b16505250594f | 2,264 | keystroke_enumerator | MIT License |
app/src/main/java/com/example/vishwa/wordsearchchallenge/listeners/WordClickListener.kt | VishwaP98 | 185,311,084 | false | null | package com.example.vishwa.wordsearchchallenge.listeners
import android.content.Context
import android.view.View
import android.widget.Button
import android.widget.TextView
import android.widget.Toast
import com.example.vishwa.wordsearchchallenge.R
import com.example.vishwa.wordsearchchallenge.model.CharGrid
import co... | 0 | Kotlin | 0 | 0 | c06f6fa570859fa6985bfd41b628a5086cd15063 | 1,111 | Word-Search | MIT License |
remote/src/main/java/com/demo/remote/api/AlbumApi.kt | Mithrandir21 | 415,935,855 | false | null | package com.demo.remote.api
import com.demo.remote.api.models.RemoteAlbum
import io.reactivex.rxjava3.core.Maybe
import io.reactivex.rxjava3.core.Single
import retrofit2.http.GET
import retrofit2.http.Path
internal interface AlbumApi {
@GET("/albums")
fun getAlbums(): Single<List<RemoteAlbum>>
@GET("/al... | 0 | Kotlin | 0 | 0 | 09eb085fd6428750ce2825b6a7e9403f216742c8 | 407 | demo | Apache License 2.0 |
app/src/test/java/com/example/sharingang/database/repositories/InMemoryItemRepositoryTest.kt | Sharingang | 344,538,791 | false | null | package com.example.sharingang.database.repositories
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import com.example.sharingang.utils.getOrAwaitValue
import com.example.sharingang.models.Item
import kotlinx.coroutines.runBlocking
import org.junit.Rule
import org.junit.Test
class InMemoryItemRepo... | 12 | Kotlin | 0 | 0 | 32f29e4b9ac5bc8952a8a544e65dae4d50d9f50a | 2,832 | Sharingang-Android | MIT License |
src/main/kotlin/com/ffaero/openrocketassembler/controller/ComponentController.kt | wildcat-rocketry | 313,389,669 | false | {"Kotlin": 162168} | package com.ffaero.openrocketassembler.controller
import com.ffaero.openrocketassembler.model.ComponentFile
import com.ffaero.openrocketassembler.model.HistoryTransaction
import com.ffaero.openrocketassembler.model.proto.ComponentOuterClass.Component
import com.ffaero.openrocketassembler.model.proto.ProjectOuterClass.... | 5 | Kotlin | 0 | 0 | 4c12948ed3b2fd5656a88ceb0cb2fcaa72d738ef | 3,605 | openrocket-assembler | MIT License |
websocket/src/main/java/com/angcyo/websocket/WSClientModel.kt | angcyo | 229,037,684 | false | {"Kotlin": 3502808, "JavaScript": 5542, "HTML": 1598} | package com.angcyo.websocket
import androidx.lifecycle.ViewModel
import com.angcyo.viewmodel.vmDataNull
import com.angcyo.viewmodel.vmDataOnce
import com.angcyo.websocket.data.WSServerMessageInfo
import com.angcyo.websocket.data.WSServerStateInfo
/**
* [WSClient]数据模式
* Email:<EMAIL>
* @author angcyo
* @date 2023/... | 0 | Kotlin | 4 | 4 | 438d0a123f5eea7cad0aeadd9ae9f2dca60d8142 | 642 | UICoreEx | MIT License |
schema/src/main/kotlin/dev/vihang/neo4jstore/schema/Registry.kt | vihangpatil | 255,573,656 | false | null | package dev.vihang.neo4jstore.schema
import dev.vihang.neo4jstore.schema.model.HasId
import dev.vihang.neo4jstore.schema.model.Relation
import kotlin.reflect.KClass
private object EntityRegistry {
private val entityTypeMap = mutableMapOf<KClass<out HasId>, EntityType<out HasId>>()
private val entityStoreMap ... | 0 | Kotlin | 0 | 2 | e210f023a25762cc0da31e12ac5bb98209f950d1 | 1,871 | neo4j-store | Apache License 2.0 |
app/src/main/java/io/start/composesample/MainActivity.kt | StartApp-SDK | 594,126,913 | false | null | package io.start.composesample
import android.os.Bundle
import android.util.Log
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.*
import androidx.compose.material.Button
import androidx.compose.material.MaterialTheme
import androidx.compo... | 0 | Kotlin | 0 | 0 | b0cb6dee873d40ed712de7f9dd987d014b453e49 | 3,789 | android-compose-sample | Apache License 2.0 |
app/SaucerLuminous/app/src/main/java/it/achdjian/saucer/luminous/protobuf/ListEntitiesNumberResponseKt.kt | paoloach | 584,642,532 | false | null | //Generated by the protocol buffer compiler. DO NOT EDIT!
// source: api.proto
package it.achdjian.saucer.luminous.protobuf;
@kotlin.jvm.JvmName("-initializelistEntitiesNumberResponse")
public inline fun listEntitiesNumberResponse(block: it.achdjian.saucer.luminous.protobuf.ListEntitiesNumberResponseKt.Dsl.() -> kotl... | 0 | Kotlin | 0 | 0 | c0b7967ce4dbf61b44b1b5ad969d5c60d4b0a7b3 | 7,029 | LuminousSaucer | Apache License 2.0 |
app/src/main/java/com/kt/allanimations/screens/DrawAnimatonsScreen.kt | ahmetufan | 802,980,539 | false | {"Kotlin": 108094} | package com.kt.allanimations.screens
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.... | 0 | Kotlin | 0 | 0 | cc4a59fc573fd3883572301080ddd785bb9a4f3d | 2,127 | ComposeAllCompanent | MIT License |
pagador/src/main/java/br/com/braspag/pagador/contracts/VoidResponse.kt | lu-moreira | 150,673,438 | false | null | package br.com.braspag.pagador.contracts
import br.com.braspag.pagador.models.TransactionStatus
import com.google.gson.annotations.SerializedName
data class VoidResponse(
@SerializedName("ProviderReturnCode")val providerReturnCode: String,
@SerializedName("ProviderReturnMessage")val providerReturnMess... | 0 | Kotlin | 1 | 0 | 5a27b3bbed121239e511e637f5397555e321350e | 525 | Braspag.Android.Sdk | MIT License |
blaze-core/src/main/kotlin/com/jacobtread/blaze/tdf/types/PairTdf.kt | jacobtread | 516,940,107 | false | {"Kotlin": 138261} | package com.jacobtread.blaze.tdf.types
import com.jacobtread.blaze.data.VarPair
import com.jacobtread.blaze.tdf.Tdf
import com.jacobtread.blaze.tdf.TdfReadable
import io.netty.buffer.ByteBuf
class PairTdf(label: String, override val value: VarPair) : Tdf<VarPair>(label, PAIR) {
companion object : TdfReadable<Pair... | 0 | Kotlin | 0 | 1 | 38fee2e995c23f9efce6876a446979060f4752ea | 1,030 | BlazeKt | MIT License |
src/test/kotlin/cc/ekblad/toml/StringTest.kt | valderman | 426,810,086 | false | {"Kotlin": 235023, "Shell": 99} | package cc.ekblad.toml
interface StringTest : RandomTest {
val escapeCodeSamples: List<Pair<String, String>>
get() = listOf(
"\\b" to "\b",
"\\f" to "\u000C",
"\\n" to "\n",
"\\r" to "\r",
"\\t" to "\t",
"\\\"" to "\"",
"\\... | 10 | Kotlin | 11 | 71 | a036e7c0f16e342ed4f285ebc66e9fac902cd469 | 755 | 4koma | MIT License |
src/main/kotlin/no/nav/klage/clients/KlageKafkaConsumer.kt | navikt | 261,756,831 | false | {"Kotlin": 56580, "Dockerfile": 135} | package no.nav.klage.clients
import no.nav.klage.domain.KlageAnkeType
import no.nav.klage.domain.toKlageAnkeInput
import no.nav.klage.getLogger
import no.nav.klage.getSecureLogger
import no.nav.klage.service.ApplicationService
import no.nav.slackposter.Severity
import no.nav.slackposter.SlackClient
import org.apache.k... | 2 | Kotlin | 0 | 0 | f9140f35464ccac00b36e23be97d9997711281ce | 3,419 | klage-arkiver-journalpost | MIT License |
subprojects/library/src/commonTest/kotlin/org/kotools/types/ZeroTest.kt | kotools | 581,475,148 | false | {"Kotlin": 364548, "Java": 21198, "Shell": 2365} | package org.kotools.types
import kotools.types.experimental.ExperimentalKotoolsTypesApi
import kotlin.test.Test
import kotlin.test.assertEquals
class ZeroTest {
@OptIn(ExperimentalKotoolsTypesApi::class)
@Test
fun toByte_should_pass() {
val actual: Byte = Zero.toByte()
val expected: Byte =... | 54 | Kotlin | 5 | 71 | 6950677677e9397cebec28ed8bb6dc628ca9f355 | 587 | types | MIT License |
app/src/main/java/org/treeo/treeo/models/RegisterUser.kt | fairventures-worldwide | 498,242,730 | false | {"Kotlin": 586304, "C++": 87995, "Java": 3688, "CMake": 2149} | package org.treeo.treeo.models
data class RegisterUser(
var firstName: String="",
var lastName: String="",
var password: String="",
var email: String="",
var country: String="",
var username: String="",
var phoneNumber: String=""
)
| 0 | Kotlin | 0 | 0 | 2e3e780e325cb97c72a79d9d22fc7ac053fee350 | 261 | treeo2-mobile-app-open | Apache License 2.0 |
analysis/src/main/kotlin/io/gitplag/analysis/analyzer/JPlagAnalyzer.kt | nikita715 | 163,607,927 | false | {"Kotlin": 210708, "JavaScript": 63990, "Java": 10988, "CSS": 3445, "HTML": 2310, "Dockerfile": 1200, "Shell": 148} | package io.gitplag.analysis.analyzer
import io.gitplag.analysis.analysisFilesDirectoryName
import io.gitplag.analysis.client.JPlagClient
import io.gitplag.analysis.repoInfo
import io.gitplag.analysis.solutions.SourceCodeStorage
import io.gitplag.gitplagapi.model.enums.AnalyzerProperty
import io.gitplag.model.data.Anal... | 2 | Kotlin | 1 | 3 | fb0cd89f62c482d880f7b9c2f8c679a14f09e45e | 6,067 | gitplag | Apache License 2.0 |
app/src/main/java/org/jnanaprabodhini/happyteacherapp/adapter/firestore/ResourceHeaderRecyclerAdapter.kt | HappyTeacher | 102,859,416 | false | null | package org.jnanaprabodhini.happyteacherapp.adapter.firestore
import android.app.Activity
import android.text.format.DateFormat
import android.view.ViewGroup
import org.jnanaprabodhini.happyteacherapp.R
import org.jnanaprabodhini.happyteacherapp.adapter.helper.FirebaseDataObserver
import org.jnanaprabodhini.happyteach... | 6 | Kotlin | 1 | 2 | 5487bcdefb8f0e8452d21e160a95b869290d4e23 | 3,142 | HappyTeacherAndroid | Apache License 2.0 |
backend/spring-boot-kotlin/src/main/kotlin/org/bootstrapbugz/api/auth/payload/request/RefreshAuthTokensRequest.kt | while1618 | 242,270,582 | false | null | package org.bootstrapbugz.api.auth.payload.request
import jakarta.validation.constraints.NotBlank
data class RefreshAuthTokensRequest(
@NotBlank(message = "{token.required}") val refreshToken: String
)
| 15 | null | 5 | 9 | 6939e8e7c3f55fd577411c4d6ebf1a535bb512f2 | 206 | BootstrapBugZ | MIT License |
app/src/main/java/com/veyndan/paper/reddit/api/reddit/network/interceptor/AccessTokenInterceptor.kt | veyndan | 62,396,630 | false | {"Kotlin": 139925, "Java": 11420} | package com.veyndan.paper.reddit.api.reddit.network.interceptor
import com.veyndan.paper.reddit.api.reddit.network.AccessToken
import com.veyndan.paper.reddit.api.reddit.network.AuthenticationService
import com.veyndan.paper.reddit.api.reddit.network.Credentials
import io.reactivex.Observable
import io.reactivex.Singl... | 0 | Kotlin | 1 | 0 | 26f49906a1f2fe1273e2d8637a212afd28199fbd | 1,892 | paper-for-reddit | MIT License |
buildSrc/src/main/kotlin/com/spark/task/ExtensionTask.kt | ZuYun | 402,787,726 | false | {"Gradle": 3, "Kotlin": 55, "Gradle Kotlin DSL": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Markdown": 1, "YAML": 1, "Proguard": 3, "XML": 90, "Java": 3, "Groovy": 9} | package com.spark.task
import com.android.build.gradle.internal.dsl.BaseAppModuleExtension
import com.spark.extension.AppleArg
import com.spark.extension.Argument
import com.spark.extension.GreetingPluginExtension
import org.gradle.api.DefaultTask
import org.gradle.api.plugins.ExtensionAware
import org.gradle.api.task... | 1 | null | 1 | 1 | 53460de3f8192ed958a4351243c7c7762c4aac7a | 3,287 | sparkj | Apache License 2.0 |
library/src/main/java/com/applexis/mediapicker/BaseMPDialog.kt | alent13 | 121,996,053 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Kotlin": 7, "XML": 12, "Java": 3} | package com.applexis.mediapicker
abstract class BaseMPDialog {
private lateinit var mediaPicker: MediaPicker
fun init(mediaPicker: MediaPicker) {
this.mediaPicker = mediaPicker
}
fun onPhotoCamera() {
mediaPicker.pickPhotoFromCamera()
}
fun onVideoCamera() {
mediaPic... | 1 | Kotlin | 1 | 3 | dc365c38a17dae9b41602aab9c0293feb046485b | 559 | MediaPicker | Apache License 2.0 |
vector/src/main/java/vmodev/clearkeep/viewmodels/interfaces/AbstractSplashActivityViewModel.kt | telred-llc | 194,596,139 | false | null | package vmodev.clearkeep.viewmodels.interfaces
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import io.reactivex.Observable
import vmodev.clearkeep.viewmodelobjects.Message
import vmodev.clearkeep.viewmodelobjects.Resource
import vmodev.clearkeep.viewmodelobjects.Room
import vmodev.clearkeep.v... | 5 | null | 1 | 3 | 2d20e94e9711b51aee89fa569efd61449cc7e9c3 | 1,039 | clearkeep-android | Apache License 2.0 |
app-core/src/main/kotlin/com/wavetogether/core/service/user/impl/CreateUserServiceImpl.kt | wavetogether | 399,639,606 | false | null | package com.wavetogether.core.service.user.impl
import com.wavetogether.core.domain.user.User
import com.wavetogether.core.domain.user.UserRepository
import com.wavetogether.core.domain.user.impl.EditableUserVo
import com.wavetogether.core.service.user.CreateUserService
import java.util.*
internal class CreateUserSer... | 0 | null | 0 | 4 | a0f5cd2d4fea3e9343a409656ab12d3a4e9f3685 | 570 | templates_kotlin_spring | MIT License |
idea/testData/copyPaste/plainTextConversion/InsideIdentifier.to.kt | JakeWharton | 99,388,807 | true | null | fun foo() {
b<caret>ar()
}
| 0 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 31 | kotlin | Apache License 2.0 |
src/main/kotlin/com/imma/model/TupleUtils.kt | Indexical-Metrics-Measure-Advisory | 344,732,013 | false | {"XML": 2, "Gradle Kotlin DSL": 2, "INI": 1, "Text": 1, "Ignore List": 1, "Markdown": 1, "Kotlin": 175, "Java": 3} | package com.imma.model
import com.imma.utils.getCurrentDateTime
import com.imma.utils.isFakeOrNull
import java.util.*
import kotlin.contracts.ExperimentalContracts
/**
* @return true when id is null or fake one
*/
@ExperimentalContracts
fun determineFakeOrNullId(getId: () -> String?, replace: Boolean = true, setId:... | 0 | Kotlin | 0 | 1 | c42a959826e72ac8cea7a8390ccc7825f047a591 | 1,438 | watchmen-ktor | MIT License |
app/src/main/java/infosecadventures/allsafe/Contants.kt | attacker-codeninja | 317,579,867 | true | {"Java Properties": 2, "Shell": 2, "Markdown": 1, "Batchfile": 1, "Proguard": 1, "CMake": 1, "C++": 1, "Kotlin": 10, "Java": 10} | package infosecadventures.allsafe
object Constants {
const val GITHUB_URI = "https://www.github.com/t0thkr1s"
const val TWITTER_URI = "https://www.twitter.com/t0thkr1s"
const val BTC_ADDRESS = "bc1qd44kvj6zatjgn27n45uxd3nprzt6rm9x9g2yc8"
const val ETH_ADDRESS = "0x1835a58E866a668C48Ee63d32432C7Fe28aF5... | 0 | null | 0 | 0 | e9e781ff6cfc623a92c26f60b510cc7ee2bb2c66 | 326 | allsafe | Apache License 2.0 |
crowdin/src/main/java/com/crowdin/platform/data/model/TokenRequest.kt | crowdin | 193,449,073 | false | null | package com.crowdin.platform.data.model
import com.google.gson.annotations.SerializedName
internal data class TokenRequest(
@SerializedName("grant_type")
val grantType: String,
@SerializedName("client_id")
val clientId: String,
@SerializedName("client_secret")
val clientSecret: String,
@Se... | 6 | null | 38 | 98 | 468e9d2c50cf37ed1aa2a540a2f66e410f4b7ab5 | 401 | mobile-sdk-android | MIT License |
shared/src/commonMain/kotlin/com/teewhydope/muvieapp/datasource/network/model/MovieSearchResponse.kt | teewhydope | 408,187,945 | false | {"Java": 126190, "Kotlin": 89637, "Ruby": 2034, "Swift": 345, "Assembly": 118} | package com.teewhydope.muvieapp.datasource.network.model
import kotlinx.serialization.*
@Serializable
data class MovieSearchResponse (
val page: Long,
val results: List<MovieDto>,
@SerialName("total_pages")
val totalPages: Long,
@SerialName("total_results")
val totalResults: Long
)
| 1 | Java | 1 | 4 | 22ba7cbc9c911ee57604a775d6f62bb66d5a5e23 | 313 | MuvieApp | MIT License |
oneadapter/src/main/java/com/idanatz/oneadapter/internal/utils/extensions/RecyclerViewExtensions.kt | ironSource | 158,571,396 | false | null | package com.idanatz.oneadapter.internal.utils.extensions
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.StaggeredGridLayoutManager
import com.idanatz.oneadapter.internal.h... | 4 | Kotlin | 36 | 414 | 6b76733a516eb62a758c63bfe8bfe716ab698c44 | 2,215 | OneAdapter | MIT License |
app/src/main/java/com/yalantis/beamazingtoday/sample/activity/KeyAdapter.kt | wwan12 | 112,451,351 | false | {"Java": 88090, "Kotlin": 82612} | package com.yalantis.beamazingtoday.sample.activity
import android.support.v7.app.AppCompatActivity
import android.view.View
import android.view.ViewGroup
import android.widget.BaseAdapter
import com.yalantis.beamazingtoday.sample.R
import kotlinx.android.synthetic.main.item_key.view.*
class KeyAdapter(val activity: ... | 1 | null | 1 | 1 | deccd98c4703ac97305c7c7505598c062f5ffc68 | 1,128 | Today | MIT License |
selector/src/main/java/com/hzy/selector/bean/MediaSelectorFolder.kt | huangziye | 170,786,000 | false | null | package com.hzy.selector.bean
import android.os.Parcelable
import android.os.Parcel
/**
*
* @author: ziye_huang
* @date: 2019/2/12
*/
class MediaSelectorFolder() : Parcelable {
var folderName: String? = null
var folderPath: String? = null
var fileData: ArrayList<MediaSelectorFile> = arrayListOf()
... | 0 | Kotlin | 0 | 1 | 7e547a6c3fcc57f5cfae3bfd370424706b5e4d81 | 1,929 | MediaSelector | Apache License 2.0 |
src/main/java/at/petrak/hexcasting/api/utils/HexUtils.kt | najlitarvan | 484,156,630 | true | {"Java Properties": 1, "Groovy": 1, "Text": 3, "Gradle": 5, "Shell": 1, "Markdown": 2, "Git Attributes": 1, "Batchfile": 1, "Ignore List": 1, "INI": 3, "Kotlin": 173, "Java": 215, "JSON": 917, "TOML": 1} | package at.petrak.hexcasting.api.utils
import at.petrak.hexcasting.api.spell.math.HexCoord
import net.minecraft.nbt.LongArrayTag
import net.minecraft.world.InteractionHand
import net.minecraft.world.phys.Vec2
import net.minecraft.world.phys.Vec3
import kotlin.math.absoluteValue
import kotlin.math.max
import kotlin.mat... | 0 | Java | 0 | 0 | fada64d770cc013285815139470188f0d4c72753 | 2,707 | HexMod | MIT License |
src/org/elixir_lang/structure_view/element/modular/Implementation.kt | KronicDeth | 22,329,177 | false | {"Kotlin": 2461440, "Elixir": 2165417, "Java": 1582388, "Euphoria": 151683, "Lex": 69822, "HTML": 22466, "Makefile": 499} | package org.elixir_lang.structure_view.element.modular
import com.intellij.navigation.ItemPresentation
import com.intellij.psi.ElementDescriptionLocation
import com.intellij.psi.PsiElement
import com.intellij.usageView.UsageViewTypeLocation
import org.elixir_lang.navigation.item_presentation.Implementation
import org.... | 590 | Kotlin | 153 | 1,815 | b698fdaec0ead565023bf4461d48734de135b604 | 3,984 | intellij-elixir | Apache License 2.0 |
imageeditor/src/main/java/com/app/imageeditor/editor/brush/Properties.kt | hbdevmdm | 409,558,908 | false | {"Gradle": 4, "Markdown": 2, "Java Properties": 2, "Shell": 1, "Ignore List": 3, "Batchfile": 1, "Proguard": 2, "Kotlin": 29, "XML": 59, "INI": 1, "Java": 4} | package com.app.imageeditor.editor.brush
interface Properties {
fun onColorChanged(colorCode: Int)
fun onOpacityChanged(opacity: Int)
fun onBrushSizeChanged(brushSize: Int)
} | 1 | null | 1 | 1 | d89c6d1dc135097f64040d2cad479a19069d2d62 | 187 | ImageEditor | Apache License 2.0 |
wan/src/main/java/com/hzy/wan/fragment/SysListFragment.kt | ThornJuice | 375,262,031 | false | null | package com.hzy.wan.fragment
import android.os.Bundle
import android.view.View
import androidx.core.content.ContextCompat
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.c... | 1 | null | 1 | 1 | f130226df6e3c97bead46b3f577c756b391a3d7e | 3,755 | wan-mvp | Apache License 2.0 |
Temas-1-2-3/Ejemplos/Ejemplos/src/main/kotlin/Main.kt | idanirf | 508,465,509 | false | {"Kotlin": 31341} | /**
* @author idanirf
* @date 04/07/2022
*/
//En Kotlin kas funciones son ciudadanos de 1ª Clase, por lo tanto, las funciones son un tipo de dato
fun main(args: Array<String>) {
println("Protección/Mutabilidad/Variables de solo lectura o variables de lectura y escritura")
println("val -> variables de solo l... | 1 | Kotlin | 0 | 2 | 74d62574c657babf0f658d3739e2646da44cfe65 | 2,323 | KotlinCamp | MIT License |
src/main/java/com/github/bhlangonijr/kengine/montecarlo/Node.kt | bhlangonijr | 310,976,641 | false | null | package com.github.bhlangonijr.kengine.montecarlo
import com.github.bhlangonijr.chesslib.Side
import com.github.bhlangonijr.chesslib.move.Move
import java.util.concurrent.atomic.AtomicBoolean
import java.util.concurrent.atomic.AtomicLong
import kotlin.math.ln
import kotlin.math.sqrt
class Node(val move: Move,
... | 0 | Kotlin | 0 | 4 | c79dfbdeb2a6870bd001aa6dd861eccd66c5968d | 2,141 | kengine | Apache License 2.0 |
analytics/src/main/java/io/appmetrica/analytics/impl/DistributionInfo.kt | appmetrica | 650,662,094 | false | null | package io.appmetrica.analytics.impl
internal interface DistributionInfo<CANDIDATE, CHOSEN> {
val chosen: CHOSEN
val candidates: List<CANDIDATE>
}
| 2 | null | 7 | 54 | ae0626e12338a01ce0effad1e9e3706a85b9e752 | 157 | appmetrica-sdk-android | MIT License |
shared/src/commonMain/kotlin/com/mehmedmert/minesweeperkmmshowcase/domain/game/OpenCellUseCase.kt | mmert1988 | 718,163,465 | false | {"Kotlin": 24095, "Swift": 342} | package com.mehmedmert.minesweeperkmmshowcase.domain.game
import com.mehmedmert.minesweeperkmmshowcase.domain.repository.GameRepository
class OpenCellUseCase(
private val gameRepository: GameRepository,
) {
suspend operator fun invoke(row: Int, column: Int) {
gameRepository.openCell(row, column)
}... | 0 | Kotlin | 0 | 0 | a5040152374f08d725f09a0fa0d81fca1d6a44dd | 323 | minesweeper-kmm-showcase | Apache License 2.0 |
compiler/testData/diagnostics/tests/exposed/localInMemberType.kt | JakeWharton | 99,388,807 | true | null | // FIR_IDENTICAL
class Something {
public val publicVal1 = object { override fun toString() = "!" }
protected val protectedVal1 = object { override fun toString() = "!" }
internal val internalVal1 = object { override fun toString() = "!" }
private val privateVal1 = object { override fun toString() = "!"... | 181 | Kotlin | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 1,236 | kotlin | Apache License 2.0 |
app/src/main/java/org/oppia/android/app/onboarding/CreateProfileFragmentPresenter.kt | oppia | 148,093,817 | false | {"Kotlin": 13302271, "Starlark": 693163, "Java": 34760, "Shell": 18872} | package org.oppia.android.app.onboarding
import android.content.Intent
import android.graphics.PorterDuff
import android.net.Uri
import android.provider.MediaStore
import android.text.Editable
import android.text.TextWatcher
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
impo... | 487 | Kotlin | 517 | 315 | 95699f922321f49a3503783187a14ad1cef0d5d3 | 9,177 | oppia-android | Apache License 2.0 |
code/kotlin/StringRemoveWhitespace.kts | evmorov | 41,193,119 | false | {"Java": 20279, "Ruby": 12660, "Python": 8674, "PHP": 8387, "JavaScript": 8285, "Kotlin": 8107, "Haml": 3478, "CoffeeScript": 967, "SCSS": 763, "HTML": 60} | println(" eh? ".trim()) | 3 | Java | 7 | 24 | c1a0608f74bd27f26b5bfb457cfdac23a9a06e53 | 23 | lang-compare | MIT License |
library/src/main/java/com/wahidabd/library/presentation/adapter/BaseAsyncRecyclerAdapter.kt | wahidabd | 609,474,062 | false | null | package com.wahidabd.library.presentation.adapter
import android.annotation.SuppressLint
import android.view.ViewGroup
import android.view.ViewParent
import androidx.recyclerview.widget.AsyncListDiffer
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import androidx.viewbin... | 0 | Kotlin | 0 | 4 | feaed1fcf868d64f3852351e5f130a989caac1d8 | 1,398 | one-library | MIT License |
Shared/webrepository/src/commonMain/kotlin/shared/webrepository/WebRepositoryContext.kt | SingularityIndonesia | 776,620,771 | false | {"Kotlin": 125451, "Shell": 7143, "Swift": 585} | /*
* Copyright (c) 2024 Singularity Indonesia (<EMAIL>)
* You are not allowed to remove the copyright. Unless you have a "free software" licence.
*/
package shared.webrepository
import io.ktor.client.HttpClient
import io.ktor.client.HttpClientConfig
import system.core.context.WebRepositoryContext
fun webRepository... | 0 | Kotlin | 3 | 0 | 7052a619d90cba81d670c0dd3ddc90416f79ae76 | 979 | SingularityBaseMobile | Creative Commons Zero v1.0 Universal |
feature/dashboard/src/main/java/org/expenny/feature/dashboard/view/DashboardWidgetsSection.kt | expenny-application | 712,607,222 | false | {"Kotlin": 1159082} | package org.expenny.feature.dashboard.view
import androidx.compose.foundation.gestures.snapping.rememberSnapFlingBehavior
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.BoxWithConstraints
import androidx.compose.foundation.layout.Column
import androidx.compose.foundatio... | 0 | Kotlin | 3 | 42 | 0eb0f1fa9a4376c3ad2222d16ec704754f7f0786 | 3,040 | expenny-android | Apache License 2.0 |
app/src/main/kotlin/com/virajbhartiya/pyxis/ui/fragments/keylog/InterfaceInteractorKeys.kt | virajbhartiya | 644,530,410 | false | null | package com.virajbhartiya.pyxis.ui.fragments.keylog
import com.virajbhartiya.pyxis.di.PerActivity
import com.virajbhartiya.pyxis.ui.activities.base.InterfaceInteractor
@PerActivity
interface InterfaceInteractorKeys<V : InterfaceViewKeys> : InterfaceInteractor<V> {
fun valueEventEnableKeys()
} | 0 | Kotlin | 0 | 0 | 497696bd6a24a4d9c30117614b65eecb485a7f6e | 300 | Pyxis | Apache License 2.0 |
krypt-csprng/src/mingwMain/kotlin/com.chrynan.krypt.csprng/WindowsSecureRandom.kt | chRyNaN | 402,214,083 | false | {"Kotlin": 281475} | @file:Suppress("unused")
package com.chrynan.krypt.csprng
import kotlinx.cinterop.Pinned
import kotlinx.cinterop.addressOf
import kotlinx.cinterop.convert
import kotlinx.cinterop.reinterpret
import org.kotlincrypto.SecRandomCopyException
import platform.windows.BCRYPT_USE_SYSTEM_PREFERRED_RNG
import platform.windows.... | 0 | Kotlin | 0 | 17 | e1db291cbe4a033bf6b70bf83697191a440e1582 | 1,334 | krypt | Apache License 2.0 |
hammer-core/src/main/kotlin/dev/vini2003/hammer/core/api/common/util/serializer/NbtByteArraySerializer.kt | Shnupbups | 497,613,399 | true | {"Kotlin": 647205, "Java": 143999, "GLSL": 925} | package dev.vini2003.hammer.core.api.common.util.serializer
import dev.vini2003.hammer.core.api.common.util.serializer.descriptor.ListDescriptor
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.KSerializer
import kotlinx.serialization.Serializer
import kotlinx.serialization.builti... | 0 | null | 0 | 0 | b08882400350ae95672e24b2696be04c04e15140 | 1,355 | Hammer | MIT License |
core/src/main/kotlin/me/kgustave/json/internal/JSArrayImpl.kt | Shengaero | 123,973,669 | false | null | /*
* Copyright 2018 <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 | 7 | 73f88bdee77dee67d7ae1a8c6181723c849327f1 | 1,052 | kotlin-json | Apache License 2.0 |
own_media_player/src/main/java/com/danwolve/own_media_player/views/OwnSurfaceView.kt | Danwolve98 | 756,259,961 | false | {"Kotlin": 48756} | package com.danwolve.own_media_player.views
import android.content.Context
import android.content.pm.ActivityInfo
import android.content.res.Configuration
import android.media.AudioManager
import android.os.Build
import android.util.AttributeSet
import android.util.Log
import android.view.Surface
import android.view.S... | 0 | Kotlin | 0 | 1 | 88ecad22ae1709db33d3847490c683caf8321736 | 5,983 | OwnMediaPlayer | MIT License |
app/src/main/java/com/example/assistantapp/GeminiAPI 1.kt | knightafter | 833,813,030 | false | {"Kotlin": 57574} | package com.example.assistantapp
import com.google.ai.client.generativeai.GenerativeModel
import com.google.ai.client.generativeai.type.BlockThreshold
import com.google.ai.client.generativeai.type.Content
import com.google.ai.client.generativeai.type.GenerationConfig
import com.google.ai.client.generativeai.type.HarmC... | 0 | Kotlin | 0 | 5 | 31531355710be7f4fd893791f8ced6a2c00f0c03 | 1,906 | Blind-Nav-Android-App-for-Blind-persons | MIT License |
lib/android/src/main/java/cn/qiuxiang/react/amap3d/navigation/AMapWalk.kt | yptech | 115,300,159 | true | {"Kotlin": 55968, "JavaScript": 44985, "Objective-C": 42092, "Java": 1578, "Ruby": 802} | package cn.qiuxiang.react.amap3d.navigation
import android.annotation.SuppressLint
import com.facebook.react.bridge.ReadableArray
import com.facebook.react.uimanager.ThemedReactContext
@SuppressLint("ViewConstructor")
class AMapWalk(context: ThemedReactContext) : AMapNavigation(context) {
override fun calculateRo... | 0 | Kotlin | 0 | 1 | c4b19dfac94ebde728d35ef24ef06c95259ea823 | 516 | react-native-amap3d | MIT License |
sdk/src/commonTest/kotlin/com/kss/zoom/auth/config/AuthorizationConfigTest.kt | Kotlin-server-squad | 710,163,911 | false | {"Kotlin": 85688, "JavaScript": 98} | package com.kss.zoom.auth.config
import com.kss.zoom.auth.model.ClientId
import com.kss.zoom.auth.model.ClientSecret
import com.kss.zoom.sdk.common.model.Url
import kotlin.test.Test
import kotlin.test.assertEquals
class AuthorizationConfigTest {
@Test
fun shouldCorrectlyCreateConfig() {
assertEquals(... | 6 | Kotlin | 0 | 1 | ab7a25689dd1b661ed7fcc3472b40cbd862970a7 | 662 | zoomsdk | Apache License 2.0 |
app/src/androidTest/kotlin/com/example/returnpals/composetools/HomeTest.kt | BC-CS481-Capstone | 719,299,432 | false | {"Kotlin": 257007, "Java": 64793} | package com.example.returnpals.composetools
import androidx.compose.ui.test.assertHasClickAction
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.onNodeWithText
import androidx.navigation.NavController
import androidx.navigation.... | 25 | Kotlin | 0 | 0 | e5e0d4668c071998a11f2b3049dd3ef5ad7bc8ce | 788 | ReturnPalsApp | MIT License |
net/src/main/kotlin/io/rsbox/net/codec/StatefulMessageDecoder.kt | NovaGTX | 202,261,395 | true | {"Kotlin": 196617} | package io.rsbox.net.codec
import io.netty.buffer.ByteBuf
import io.netty.channel.ChannelHandlerContext
import io.netty.handler.codec.ByteToMessageDecoder
import java.util.*
/**
* @author <NAME>
*/
abstract class StatefulMessageDecoder<T : Enum<T>>(private var state: T) : ByteToMessageDecoder() {
fun setState(... | 0 | Kotlin | 1 | 0 | 046f0bbb8f857fea17669f7d5a14bd99017e990d | 650 | rsbox | MIT License |
src/main/java/me/shadowalzazel/mcodyssey/enchantments/armor/DreadfulShriek.kt | ShadowAlzazel | 511,383,377 | false | {"Kotlin": 1044746} | package me.shadowalzazel.mcodyssey.enchantments.armor
import me.shadowalzazel.mcodyssey.enchantments.OdysseyEnchantment
import net.kyori.adventure.text.Component
import net.minecraft.world.entity.EquipmentSlot
import net.minecraft.world.item.enchantment.EnchantmentCategory
import org.bukkit.Material
import org.bukkit.... | 0 | Kotlin | 0 | 3 | 797cbcef57f6dd88ae63870b5e95f376b98992f9 | 1,578 | MinecraftOdyssey | MIT License |
colormath/src/jvmMain/kotlin/com/github/ajalt/colormath/internal/Mpp.kt | ajalt | 139,778,270 | false | null | package com.github.ajalt.colormath.internal
internal actual fun cbrt(float: Float): Float = Math.cbrt(float.toDouble()).toFloat()
internal actual fun cbrt(float: Double): Double = Math.cbrt(float)
| 2 | Kotlin | 11 | 217 | 0cee7397c0e300d4a98e0172117b82d8610534d3 | 198 | colormath | MIT License |
kotlin/src/src/main/java/com/techlabcamp/neuronet/ui/frag/MyCommentsFrag.kt | dimske-sys | 610,048,630 | false | null | package com.techlabcamp.neuronet.ui.frag
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.recyclerview.widget.LinearLayoutManager
import com.techlabcamp.neu... | 0 | Kotlin | 0 | 0 | 0f4cc0534a3c77a8edfb0fa043fb2ed7e2707250 | 3,401 | neuronet | Apache License 2.0 |
app/src/main/java/com/jbkalit/movies/presentation/main/MainActivity.kt | jbkalit | 382,017,718 | false | null | package com.jbkalit.movies.presentation.main
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.navigation.NavController
import androidx.navigation.fragment.NavHostFragment
import com.jbkalit.movies.R
import dagger.hilt.android.AndroidEntryPoint
@AndroidEntryPoint
class MainActiv... | 0 | Kotlin | 0 | 0 | e25738801e18b61dd971bc739f7f7977cc22d5ee | 866 | Movies | Apache License 2.0 |
app/src/main/java/com/example/swiftbargain/ui/utils/shared_ui_state/ReviewUiState.kt | ahmedfikry24 | 814,676,783 | false | {"Kotlin": 480967} | package com.example.swiftbargain.ui.utils.shared_ui_state
import com.example.swiftbargain.data.models.ReviewDto
data class ReviewUiState(
val name: String,
val email: String,
val rating: String,
val comment: String,
val date: String
)
fun ReviewDto.toUiState(): ReviewUiState {
return ReviewUi... | 0 | Kotlin | 0 | 0 | c83e040911380b9f75e35007fff4d04433da7e1e | 475 | SwiftBargain | MIT License |
openglk_basic/src/main/java/com/mozhimen/openglk/basic/mos/Triangle.kt | mozhimen | 774,833,290 | false | {"Kotlin": 16652} | package com.mozhimen.openglk.basic.mos
import android.opengl.GLES30
import android.opengl.Matrix
import com.mozhimen.openglk.basic.utils.GLES30Util
import java.nio.ByteBuffer
import java.nio.ByteOrder
import java.nio.FloatBuffer
/**
* @ClassName Triangle
* @Description TODO
* @Author Mozhimen & <NAME>
* @Date 202... | 0 | Kotlin | 0 | 0 | 383d95d9e6bf6ea4bd2a1f23b5d3197abb577975 | 2,833 | AOpenGLKit | Apache License 2.0 |
common/src/jsMain/kotlin/com/niji/claudio/common/tool/MediaUtils.kt | GuillaumeMuret | 718,024,230 | false | {"Kotlin": 268180, "Shell": 4408, "Swift": 571, "HTML": 357, "CSS": 108} | package com.niji.claudio.common.tool
import com.niji.claudio.common.data.model.Media
actual object MediaUtils {
actual fun getFileByteArray(media: Media): ByteArray? {
TODO("Not yet implemented")
}
actual fun fileChooser(
window: Any,
launchFileChooserIntent: (() -> Unit)?,
... | 0 | Kotlin | 0 | 0 | ba51c11e7188de07a943dffe6604d7d9a336f8c1 | 474 | claudio-app | Apache License 2.0 |
domain/src/main/java/com/anytypeio/anytype/domain/config/UserSettingsRepository.kt | anyproto | 647,371,233 | false | {"Kotlin": 11301138, "Java": 69306, "Shell": 11350, "Makefile": 1334} | package com.anytypeio.anytype.data.auth.repo
import com.anytypeio.anytype.core_models.Id
import com.anytypeio.anytype.core_models.ThemeMode
import com.anytypeio.anytype.core_models.Wallpaper
import com.anytypeio.anytype.core_models.WidgetSession
import com.anytypeio.anytype.core_models.primitives.SpaceId
import com.an... | 37 | Kotlin | 40 | 488 | 363237f0c5a59b2d3c933c1fc7571e156a2da76f | 1,130 | anytype-kotlin | RSA Message-Digest License |
app/src/main/java/com/hypertrack/android/ui/screens/confirm_email/ConfirmEmailViewModel.kt | hypertrack | 241,723,736 | false | null | package com.hypertrack.android.ui.screens.confirm_email
import android.app.Activity
import androidx.lifecycle.MutableLiveData
import com.hypertrack.android.interactors.*
import com.hypertrack.android.interactors.app.AppInteractor
import com.hypertrack.android.interactors.app.LoginAppAction
import com.hypertrack.androi... | 1 | Kotlin | 17 | 31 | 7a613e4b618043d95e101b819d903c3b1eda6773 | 5,107 | visits-android | MIT License |
mobile/src/main/java/ro/cluj/sorin/bitchat/utils/BitChatViewPagerChangeListener.kt | sorinirimies | 135,047,483 | false | {"Gradle": 3, "XML": 44, "INI": 3, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Java Properties": 1, "JSON": 2, "Proguard": 1, "Kotlin": 54, "Java": 3} | package ro.cluj.sorin.bitchat.utils
import android.support.v4.view.ViewPager
/**
* Created by sorin on 12.05.18.
*/
interface BitChatViewPagerChangeListener : ViewPager.OnPageChangeListener {
override fun onPageScrollStateChanged(state: Int) = Unit
override fun onPageScrolled(position: Int, positionOffset: ... | 1 | null | 1 | 1 | 8bfc9889fbfeb4ca840c1848c643fda188615bff | 723 | BitChat | MIT License |
fashion-tryon-compose/src/main/kotlin/com/aiuta/fashionsdk/tryon/compose/data/internal/repository/config/ConfigRepository.kt | aiuta-com | 759,918,511 | false | {"Kotlin": 528387, "Shell": 562} | package com.aiuta.fashionsdk.tryon.compose.data.internal.repository.config
import com.aiuta.fashionsdk.Aiuta
import com.aiuta.fashionsdk.tryon.compose.data.internal.datasource.config.ConfigLocalDataSource
import com.aiuta.fashionsdk.tryon.compose.data.internal.datasource.config.ConfigRemoteDataSource
import com.aiuta.... | 2 | Kotlin | 0 | 2 | 8bd13e58eb930cb1f4396894e8178173c94033df | 2,209 | android-sdk | Apache License 2.0 |
libs/pipeline/src/testFixtures/kotlin/micro/apps/pipeline/PubsubHelper.kt | xmlking | 236,108,779 | false | null | package micro.apps.pipeline
import com.google.api.core.ApiFutureCallback
import com.google.api.core.ApiFutures
import com.google.api.gax.core.CredentialsProvider
import com.google.api.gax.core.NoCredentialsProvider
import com.google.api.gax.grpc.GrpcTransportChannel
import com.google.api.gax.rpc.ApiException
import co... | 9 | null | 11 | 48 | 135c0f6b8ccfe17121a367bbfdd8024c77ea3c51 | 5,489 | micro-apps | MIT License |
app/src/main/java/com/example/network/ApiProvider.kt | SohailAhmed145 | 805,666,706 | false | {"Kotlin": 9762} | package com.example.network
import com.BASE_URL
import okhttp3.OkHttpClient
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
import retrofit2.create
object ApiProvider {
fun provideApi() = Retrofit.Builder().baseUrl(BASE_URL)
.addConverterFactory(GsonConverterFactory.create()... | 0 | Kotlin | 0 | 0 | fdd2759299fd7fb3d942254c38f31f34f705ceaa | 371 | NewsApp | MIT License |
app/src/main/java/com/gun/hiltexample/constant/Constants.kt | My-Gun | 612,184,099 | false | null | package com.gun.hiltexample.constant
import android.net.Uri
import com.gun.hiltexample.data.repository.AppDatabase.Companion.TABLE_NAME
object Constants {
const val TAG: String = "HiltExample"
private const val PROVIDER_AUTHORITY = "com.gun.hiltexampleforcontentprovider.provider"
const val PROVIDER_APP_... | 0 | Kotlin | 0 | 0 | 18f649ce74273f1142ccc551a09910181f05ea0f | 453 | HiltExample | Apache License 2.0 |
ksp/src/main/java/io/github/yakuraion/destinationscompose/ksp/specs/GetDefaultRouteFunCreator.kt | yakuraion | 701,847,856 | false | {"Kotlin": 41419, "Shell": 520} | package io.github.yakuraion.destinationscompose.ksp.specs
import com.squareup.kotlinpoet.FunSpec
import io.github.yakuraion.destinationscompose.ksp.screendeclaration.ScreenDeclaration
class GetDefaultRouteFunCreator : FunCreator {
override fun createKpFunSpec(screen: ScreenDeclaration): FunSpec {
val fun... | 0 | Kotlin | 0 | 0 | 361ddaa62e9ebe7f140b4d063af2f3da5451e680 | 529 | destinations-compose | MIT License |
bbfgradle/tmp/results/BACKUP_JS/FRONTEND_oavweie_FILE.kt | DaniilStepanov | 346,008,310 | false | null | // Bug happens on JS
// FILE: tmp0.kt
{
var result
::result!!
| 1 | null | 1 | 1 | e772ef1f8f951873ebe7d8f6d73cf19aead480fa | 86 | kotlinWithFuzzer | Apache License 2.0 |
src/main/kotlin/com/mazekine/nova/models/SelfTradingPrevention.kt | mazekine | 321,032,816 | false | null | package com.mazekine.nova.models
enum class SelfTradingPrevention {
DoNothing, CancelOldest, CancelNewest, CancelBoth
}
| 0 | Kotlin | 0 | 0 | f89a7ff2669691923ea7b00312df213ada80ae09 | 125 | nova-lib | Apache License 2.0 |
balloon/src/main/kotlin/com/skydoves/balloon/ArrowOrientation.kt | skydoves | 196,805,860 | false | null | /*
* Copyright (C) 2019 skydoves
*
* 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 ... | 7 | Kotlin | 209 | 2,466 | f7bc5f9ed9d534b1673de9c6f12f89172d40b05e | 1,545 | Balloon | Apache License 2.0 |
src/main/kotlin/icu/windea/pls/core/index/ParadoxValueSetValueIndex.kt | DragonKnightOfBreeze | 328,104,626 | false | null | package icu.windea.pls.core.index
import com.intellij.psi.stubs.*
import icu.windea.pls.script.psi.*
class ParadoxValueSetValueIndex : StringStubIndexExtension<ParadoxScriptStringExpressionElement>() {
companion object {
@JvmField val KEY = StubIndexKey.createIndexKey<String, ParadoxScriptStringExpression... | 2 | Kotlin | 2 | 14 | a3816071d500f8cf993240885895966be67ef5c8 | 619 | Paradox-Language-Support | MIT License |
poo/encapsulamento2/Application.kt | Artur-Brasileiro | 800,775,302 | false | {"Kotlin": 16228, "Java": 871} | package br.com.kotlin.poo.encapsulamento2
import java.time.LocalDate
class Application {
companion object{
@JvmStatic
fun main(args: Array<String>) {
val fernando = Pessoa("1234568910", "Fernando", LocalDate.of(1998, 12, 7))
fernando.email = "<EMAIL>"
fernando.... | 0 | Kotlin | 0 | 0 | 6d6cceffc212233a23f9f60995f4260800529e6a | 357 | Kotlin | MIT License |
src/main/kotlin/lu/kremi151/prefgen/AndroidPrefgenPluginExtension.kt | kremi151 | 569,354,689 | false | {"Kotlin": 13516} | package lu.kremi151.prefgen
import org.gradle.api.provider.Property
abstract class AndroidPrefgenPluginExtension {
abstract val packageName: Property<String>
abstract val generateFragments: Property<Boolean>
abstract val generatePrefR: Property<Boolean>
init {
packageName.convention("")
generateFragments.con... | 0 | Kotlin | 0 | 0 | a8d197503d6ef193b06a89c6252c0fe93fd5e664 | 371 | prefgen | MIT License |
app/src/main/java/com/aracoix/registeradapter/viewholder/TypeAViewHolder.kt | Aracoix | 411,181,084 | false | {"Kotlin": 47092} | package com.aracoix.registeradapter.viewholder
import android.annotation.SuppressLint
import com.aracoix.register.BaseRegisterViewHolder
import com.aracoix.registeradapter.bean.TypeABean
import com.aracoix.registeradapter.databinding.ItemTypeABinding
/**
* 基础文字类型
*/
class TypeAViewHolder(override val mBinding: Item... | 0 | Kotlin | 0 | 0 | c7321bbb80eea9d32c9b3823412d78cf5e91ae64 | 1,258 | register | Apache License 2.0 |
app/src/main/java/com/iamdilipkumar/randomiser/ui/activities/cam/CamActivity.kt | dilipkumar4813 | 380,500,430 | false | null | package com.iamdilipkumar.randomiser.ui.activities.cam
import android.content.Intent
import android.content.pm.PackageManager
import android.graphics.Bitmap
import android.os.Build
import android.view.SurfaceView
import android.view.View
import android.view.WindowInsets
import android.view.WindowManager
import com.iam... | 0 | Kotlin | 0 | 0 | 176918c6664ca82c60529863ad39b18684255278 | 5,305 | Randomiser-Android | MIT License |
app/src/main/java/com/muedsa/tvbox/room/dao/EpisodeProgressDao.kt | muedsa | 869,997,551 | false | {"Kotlin": 264631} | package com.muedsa.tvbox.room.dao
import androidx.room.Dao
import androidx.room.Query
import androidx.room.Upsert
import com.muedsa.tvbox.room.model.EpisodeProgressModel
@Dao
interface EpisodeProgressDao {
@Query("SELECT * FROM episode_progress WHERE plugin_package = :pluginPackage and media_id = :mediaId")
... | 0 | Kotlin | 0 | 0 | b7add9c5b98a943eb504428e71ee08fc961a54fd | 974 | TvBox | MIT License |
app/src/main/java/com/parth8199/fetchrewardsexercise/network/response/GetListFetchRewardsItem.kt | rama25 | 605,708,589 | false | null | package com.parth8199.fetchrewardsexercise.network.response
data class GetListFetchRewardsItem(
val id: Int,
val listId: Int,
val name: String
) | 0 | Kotlin | 0 | 0 | 83336404235b09570df1aac98ade0c2fa0aa8852 | 157 | Fetch-Android-Software-Engineering | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.