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/src/main/kotlin/tech/soit/quiet/service/MusicPlayerService.kt | boyan01 | 203,903,720 | false | null | package tech.soit.quiet.service
import android.content.Intent
import android.os.Bundle
import android.os.IBinder
import android.support.v4.media.MediaBrowserCompat
import android.support.v4.media.session.MediaSessionCompat
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleOwner
import androidx.lif... | 4 | Kotlin | 31 | 77 | 434e6fdc79a81d1a2a0877339ae29004c0f32734 | 2,768 | flutter-music-player | MIT License |
app/src/main/java/com/oxyethylene/easynote/ui/components/TextInputs.kt | PolyOxyethylene | 738,671,054 | false | {"Kotlin": 175216, "CSS": 229} | package com.oxyethylene.easynote.ui.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.l... | 0 | Kotlin | 0 | 0 | 1d5882c42b493fb2e88239641846de6674a7955f | 4,321 | EasyNote | Apache License 2.0 |
plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/geom/geom_histogram.kt | JetBrains | 172,682,391 | false | null | /*
* Copyright (c) 2021. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package org.jetbrains.letsPlot.geom
import org.jetbrains.letsPlot.Geom
import org.jetbrains.letsPlot.Stat
import org.jetbrains.letsPlot.intern.layer.LayerBase
import org.jetb... | 15 | null | 31 | 309 | c94d1c2e751c2bcfd337de3706add9733e365efa | 4,206 | lets-plot-kotlin | MIT License |
app/src/main/java/ua/polodarb/gmsflags/ui/screens/settingsScreen/resetSaved/ResetSavedScreen.kt | polodarb | 624,518,043 | false | {"Kotlin": 369647, "AIDL": 1483} | package ua.polodarb.gmsflags.ui.screens.settingsScreen.resetSaved
import android.widget.Toast
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.lay... | 1 | Kotlin | 2 | 61 | 8353895480a0e368297cd9aeba0d46efe9d685ed | 8,673 | GMS-Flags | MIT License |
kotlin/services/s3/src/test/kotlin/com/kotlin/s3/PresignTests.kt | awsdocs | 66,023,605 | false | null | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.kotlin.s3
import aws.sdk.kotlin.services.s3.S3Client
import aws.sdk.kotlin.services.s3.model.GetObjectRequest
import aws.smithy.kotlin.runtime.client.LogMode
import aws.smithy.kotlin.runtime.content... | 250 | null | 5614 | 9,502 | 3d8f94799b9c661cd7092e03d6673efc10720e52 | 3,809 | aws-doc-sdk-examples | Apache License 2.0 |
server/src/main/kotlin/Application.kt | Domo3000 | 509,616,464 | false | null | import data.CSS
import data.index
import data.styles
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.engine.*
import io.ktor.server.html.*
import io.ktor.server.http.content.*
import io.ktor.server.netty.*
import io.ktor.server.plugins.statuspages.*
import io.ktor.server.response.*
impor... | 0 | Kotlin | 0 | 0 | c3ba4be6049cfd9ee2a3d07bd2ba6ee90ceb3360 | 2,603 | Portfolio | MIT License |
src/org/jetbrains/r/RBundle.kt | JetBrains | 214,212,060 | false | {"Kotlin": 2657533, "Java": 558927, "R": 37082, "Lex": 14307, "HTML": 10063, "Rez": 70, "Rebol": 47} | /*
* Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package org.jetbrains.r
import com.intellij.DynamicBundle
import org.jetbrains.annotations.Nls
import org.jetbrains.annotations.NonNls
import org.jetbrains.annotations.Pr... | 2 | Kotlin | 13 | 62 | 9225567ed712f54d019ce5ab712016acdb6fc98e | 562 | Rplugin | Apache License 2.0 |
app/src/main/java/com/opsc/timesync/ui/addtimesheetentry/AddTimesheetEntryViewModel.kt | johanngeustyn | 648,824,203 | false | null | package com.opsc.timesync.ui.addtimesheetentry
import Category
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.auth.FirebaseUser
import com.google.firebase.firestore.FirebaseFirestor... | 0 | Kotlin | 0 | 0 | 546f5783e318ac654319577f0d4f169a4e0ec078 | 1,373 | TimeSync | MIT License |
basic-kotlin/app/src/main/java/nl/gjalsem/basickotlinexample/viewmodel/MainViewModelFactory.kt | gjalsem | 139,480,922 | false | null | package nl.gjalsem.basickotlinexample.viewmodel
import android.arch.lifecycle.ViewModel
import android.arch.lifecycle.ViewModelProvider
import android.content.Context
import com.android.volley.toolbox.ImageLoader
import com.android.volley.toolbox.Volley
import nl.gjalsem.basickotlinexample.model.BitmapCache
import nl.... | 1 | null | 1 | 1 | cca33f331d52a385bdd47426ef820f82d4d3ed0f | 870 | android-examples | Apache License 2.0 |
telnyx_rtc/src/main/java/com/telnyx/webrtc/sdk/model/SocketError.kt | team-telnyx | 343,455,010 | false | null | /*
* Copyright © 2021 Telnyx LLC. All rights reserved.
*/
package com.telnyx.webrtc.sdk.model
/**
* Enum class to detail the error responses that the socket connection can receive
* with the given [errorCode]
*
* @param errorCode is the Telnyx error code representation of the method, eg. Token_Error -> -32000
... | 8 | null | 1 | 9 | a4646e5ccff9b82b4871be48bcdf189534880c49 | 605 | telnyx-webrtc-android | MIT License |
strava-api/src/test/kotlin/models/TokenResponseTest.kt | PtrTeixeira | 80,689,783 | false | null | package models
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.module.kotlin.registerKotlinModule
import com.github.ptrteixeira.strava.api.models.TokenResponse
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
internal class TokenResponseTest {
pri... | 6 | Kotlin | 0 | 0 | 18b425b93c1eef5b824c695c7050e4ac69ae75ee | 1,691 | cookbook | MIT License |
app/src/main/java/com/rakib/commitviewapp/repository/model/CommitModelItem.kt | rakibcse99 | 666,992,655 | false | null | package com.rakib.commitviewapp.repository.model
data class CommitModelItem(
val author: Author,
val comments_url: String,
val commit: Commit,
val committer: CommitterX,
val html_url: String,
val node_id: String,
val parents: List<Parent>,
val sha: String,
val url: String
) | 0 | Kotlin | 0 | 0 | 8dd4edfe2bbe3524c5345602e9e4d1ff81d878d2 | 311 | CommitViewApps | The Unlicense |
app/src/main/java/com/rakib/commitviewapp/repository/model/CommitModelItem.kt | rakibcse99 | 666,992,655 | false | null | package com.rakib.commitviewapp.repository.model
data class CommitModelItem(
val author: Author,
val comments_url: String,
val commit: Commit,
val committer: CommitterX,
val html_url: String,
val node_id: String,
val parents: List<Parent>,
val sha: String,
val url: String
) | 0 | Kotlin | 0 | 0 | 8dd4edfe2bbe3524c5345602e9e4d1ff81d878d2 | 311 | CommitViewApps | The Unlicense |
src/androidTest/java/com/astoev/cave/survey/test/service/data/OpensTopoExportTest.kt | lz1asl | 13,239,867 | false | null | package com.astoev.cave.survey.test.service.data
import com.astoev.cave.survey.model.Option.UNIT_FEET
import com.astoev.cave.survey.model.Option.UNIT_GRADS
import com.astoev.cave.survey.test.helper.Common.goBack
import com.astoev.cave.survey.test.helper.Data.dataScreen
import com.astoev.cave.survey.test.helper.Data.op... | 56 | null | 9 | 44 | d8493663a76531c2833ac118e36751092eb48c48 | 3,742 | CaveSurvey | MIT License |
src/generated/kotlin/net/highteq/cylab/awssdk/dynamodb/kotlin/dsl/model/BackupSummaryDSL.kt | cylab | 258,882,001 | false | null | /*
This file was generated from https://github.com/aws/aws-sdk-java-v2 by https://github.com/cylab/aws-kotlin-dsl-builder
Like the original code, this file and project is licensed under
Apache License Version 2.0
See LICENSE.txt for more info
*/
@file:Suppress("DEPRECATION", "NOTHING_TO_INLINE")
package net.hig... | 0 | Kotlin | 0 | 4 | b3f40e013e78f363794f7671a43de88983280bb9 | 4,127 | awssdk-dynamodb-kotlin-dsl | Apache License 2.0 |
src/main/kotlin/com/oocode/Almanac.kt | ivanmoore | 725,978,325 | false | {"Kotlin": 42155} | package com.oocode
fun almanacFrom(input: String): Almanac {
val lines = input.split("\n")
val seedNumbers = lines[0].split(" ").drop(1).map { it.toLong() }
val seeds = seedNumbers.chunked(2).map {
val startNumber = it[0]
val rangeSize = it[1]
InputRange(startNumber, (startNumber + ... | 0 | Kotlin | 0 | 0 | 36ab66daf1241a607682e7f7a736411d7faa6277 | 3,672 | advent-of-code-2023 | MIT License |
exoplayer-codelab-00/src/main/java/com/example/exoplayer/App.kt | alifTC12 | 427,908,780 | false | {"Kotlin": 52456} | package com.example.exoplayer
import androidx.multidex.MultiDexApplication
class App : MultiDexApplication() {
override fun onCreate() {
super.onCreate()
}
} | 0 | Kotlin | 0 | 2 | 27c6b1b7d847305cea55723cdb77f9d946e4e3ff | 177 | ExoMotion | Apache License 2.0 |
sykepenger-model/src/main/kotlin/no/nav/helse/sykdomstidslinje/Sykdomshistorikk.kt | navikt | 193,907,367 | false | {"Kotlin": 7859394, "PLpgSQL": 2738, "Dockerfile": 168} | package no.nav.helse.sykdomstidslinje
import java.time.LocalDateTime
import java.util.UUID
import no.nav.helse.hendelser.Periode
import no.nav.helse.dto.SykdomshistorikkElementDto
import no.nav.helse.dto.SykdomshistorikkDto
import no.nav.helse.person.SykdomshistorikkVisitor
import no.nav.helse.sykdomstidslinje.Sykdoms... | 2 | Kotlin | 7 | 3 | fb626aafa84da2fbb12ebdb9cc04c8c237fa4916 | 7,007 | helse-spleis | MIT License |
dagger-basic/src/main/java/com/jintin/dagger/HoneyLemonadeComponent.kt | Jintin | 314,076,200 | false | null | package com.jintin.dagger
import dagger.Component
@Component
interface HoneyLemonadeComponent {
// Don't need this anymore
// fun getHoneyLemonade(): HoneyLemonade
fun inject(mainActivity: MainActivity)
} | 0 | Kotlin | 0 | 0 | 88756ae3772640017772db3e90687ce65829fb3e | 219 | DaggerSample | MIT License |
src/org/jetbrains/r/skeleton/psi/RSkeletonAssignmentStatement.kt | JetBrains | 214,212,060 | false | null | /*
* Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package org.jetbrains.r.skeleton.psi
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiNamedElement
import com.intellij.psi.stubs.IStubElementType
import com.... | 2 | null | 13 | 62 | 8b4f3aac10693cbfb5841f0afff46338bffbc50e | 4,436 | Rplugin | Apache License 2.0 |
velocity/src/main/kotlin/kingmc/platform/velocity/impl/extension/VelocityExtensionDispatcherImpl.kt | Kingsthere | 599,960,106 | false | null | package kingmc.platform.bukkit.impl.extension
import kingmc.common.OpenAPI
import kingmc.common.application.*
import kingmc.common.context.process.afterProcess
import kingmc.common.context.process.processBeans
import kingmc.common.logging.error
import kingmc.common.logging.slf4j.Slf4jLoggerManager
import kingmc.common... | 0 | Kotlin | 0 | 1 | 6c325cbe550bcebc70f3071564e63459c2592f6b | 13,226 | kingmc-platform | MIT License |
app/src/main/java/com/example/booklibrary/splashscreen/onboarding/screen/SecondScreen.kt | NoBody313 | 573,783,064 | false | {"Kotlin": 37355} | package com.example.booklibrary.splashscreen.onboarding.screen
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import androidx.fragment.app.Fragment
import androidx.viewpager2.widget.ViewPager2
import com.example.booklibrar... | 0 | Kotlin | 0 | 2 | 113e96b6045aaac927bc0b7e1917603409c04550 | 915 | Book_Library | MIT License |
clef-workflow-api/clef-workflow-api-factory/clef-workflow-api-factory-element/src/main/java/io/arkitik/clef/workflow/api/usecase/factory/element/request/ExecuteActionRequest.kt | arkitik | 443,436,455 | false | {"Kotlin": 433170, "Shell": 268, "Dockerfile": 244} | package io.arkitik.clef.workflow.api.usecase.factory.element.request
import io.arkitik.radix.develop.usecase.model.UseCaseRequest
/**
* Created By [**<NAME> **](https://www.linkedin.com/in/iloom/)<br></br>
* Created At **19**, **Thu Mar, 2020**
* Project **clef-workflow** [arkitik.IO](https://arkitik.io/)<br></br... | 0 | Kotlin | 0 | 0 | 785e1b4ee583b6a6e3ea01e656eecd8365f171ef | 452 | clef-workflow | Apache License 2.0 |
web/src/main/kotlin/world/phantasmal/web/viewer/stores/ViewerStore.kt | DaanVandenBosch | 189,066,992 | false | null | package world.phantasmal.web.viewer.stores
import kotlinx.coroutines.launch
import mu.KotlinLogging
import world.phantasmal.core.enumValueOfOrNull
import world.phantasmal.psolib.fileFormats.AreaGeometry
import world.phantasmal.psolib.fileFormats.CollisionGeometry
import world.phantasmal.psolib.fileFormats.ninja.NinjaO... | 1 | Kotlin | 5 | 20 | 423c3e252b2be6de63a03108915861fced90aaa6 | 11,075 | phantasmal-world | MIT License |
android/src/main/java/com/detectfrida/constant/GeneralConst.kt | imanshul | 788,112,116 | false | null | package com.detectfrida.constant
object GeneralConst {
const val CH_TYPE_UNKNOWN = 0
const val CH_TYPE_TEST_KEYS = 10
const val CH_TYPE_DEV_KEYS = 20
const val CH_TYPE_NON_RELEASE_KEYS = 30
const val CH_TYPE_DANGEROUS_PROPS = 40
const val CH_TYPE_PERMISSIVE_SELINUX = 50
const val CH_TYPE_S... | 1 | null | 23 | 9 | 2e3407f8284de3ce857622348b225593cbb90cdc | 875 | react-native-detect-frida | MIT License |
client/configservice/ad/src/commonTest/kotlin/com/oztechan/ccc/client/configservice/ad/mapper/AdConfigMapperTest.kt | Oztechan | 102,633,334 | false | null | package com.oztechan.ccc.client.configservice.ad.mapper
import kotlin.test.Test
import kotlin.test.assertEquals
import com.oztechan.ccc.client.configservice.ad.AdConfig as AdConfigRCModel
class AdConfigMapperTest {
@Test
fun toAdConfigModel() {
val rcModel = AdConfigRCModel()
val model = rcMo... | 26 | null | 30 | 331 | 6e693e802e78b411051be9c4398df2bd60023c46 | 691 | CCC | Apache License 2.0 |
src/test/resources/examples/enumPolymorphicDiscriminator/models/DiscriminatedChild2.kt | cjbooms | 229,844,927 | false | {"Kotlin": 874094, "Handlebars": 4874} | package examples.enumPolymorphicDiscriminator.models
import com.fasterxml.jackson.`annotation`.JsonProperty
import javax.validation.Valid
import javax.validation.constraints.NotNull
import kotlin.String
import kotlin.collections.List
public data class DiscriminatedChild2(
@get:JsonProperty("some_enum")
@get:NotNu... | 33 | Kotlin | 41 | 154 | b95cb5bd8bb81e59eca71e467118cd61a1848b3f | 965 | fabrikt | Apache License 2.0 |
app/src/main/java/com/wangyz/wanandroid/kotlin/view/ArchitectureFragment.kt | milovetingting | 277,392,959 | false | null | package com.wangyz.wanandroid.kotlin.view
import android.annotation.SuppressLint
import android.view.View
import androidx.lifecycle.Observer
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.OrientationHelper
import androidx.recyclerview.widget.RecyclerView
import com.wangyz.... | 0 | Kotlin | 0 | 0 | 4f3808a7b18e0d31ddf426f1de7749209c4a7efc | 3,092 | WanAndroid-Kotlin | Apache License 2.0 |
app/src/main/java/org/avmedia/gShockPhoneSync/ui/main/WatchName.kt | izivkov | 480,047,057 | false | null | /*
* Created by Ivo Zivkov (izivkov@gmail.com) on 2022-03-30, 12:06 a.m.
* Copyright (c) 2022 . All rights reserved.
* Last modified 2022-03-29, 5:57 p.m.
*/
package org.avmedia.gShockPhoneSync.ui.main
import android.annotation.SuppressLint
import android.content.Context
import android.util.AttributeSet
import or... | 6 | null | 9 | 99 | 8a04e7985ce260090cbe206800aff04684bd0dc4 | 1,629 | CasioGShockSmartSync | Apache License 2.0 |
compose-ide-plugin/compiler-hosted-src/androidx/compose/compiler/plugins/kotlin/WeakBindingTrace.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright 2019 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... | 3 | null | 945 | 925 | 71cc8d80cd2fa6899d69c7f908539c5a4ad08265 | 2,510 | android | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/Headset.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,052 | icons | MIT License |
shared/src/commonMain/kotlin/net.wwwhackcom/experience/userInfo/UserInfoScreen.kt | wwwhackcom | 656,480,862 | false | null | package net.wwwhackcom.experience.userInfo
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import android... | 0 | Kotlin | 0 | 0 | ebc912fc189f1aaa7a67894440511964c0e97bd3 | 2,434 | compose-multiplatform-exercise | Apache License 2.0 |
demo-transactions/src/test/kotlin/io/holixon/cqrshexagonaldemo/demoparent/transactions/integrationtest/GlobalIT.kt | holixon | 747,608,283 | false | {"Kotlin": 69299, "Shell": 72} | package io.holixon.cqrshexagonaldemo.demoparent.transactions.integrationtest
import io.holixon.cqrshexagonaldemo.demoparent.transactions.command.application.port.inbound.account.CreateAccountInPort
import io.holixon.cqrshexagonaldemo.demoparent.transactions.command.application.port.inbound.account.DepositAccountInPort... | 3 | Kotlin | 0 | 0 | e634c14ca89f3de72f53ae6680c8ca12c539d6a7 | 5,359 | cqrs-meets-hexagonal | Apache License 2.0 |
relive-simulator-core/src/commonMain/kotlin/xyz/qwewqa/relive/simulator/core/presets/dress/generated/dress1020001.kt | qwewqa | 390,928,568 | false | null | package xyz.qwewqa.relive.simulator.core.presets.dress.generated
import xyz.qwewqa.relive.simulator.core.stage.actor.ActType
import xyz.qwewqa.relive.simulator.core.stage.actor.Attribute
import xyz.qwewqa.relive.simulator.core.stage.actor.StatData
import xyz.qwewqa.relive.simulator.core.stage.dress.ActParameters
impor... | 0 | Kotlin | 11 | 7 | 70e1cfaee4c2b5ab4deff33b0e4fd5001c016b74 | 5,888 | relight | MIT License |
data/network/src/main/java/com/ebdz/network/utils/HttpUrlApolloAdapter.kt | lupsyn | 438,954,334 | false | {"Kotlin": 104294} | package com.ebdz.network.utils
import com.apollographql.apollo3.api.Adapter
import com.apollographql.apollo3.api.CustomScalarAdapters
import com.apollographql.apollo3.api.json.JsonReader
import com.apollographql.apollo3.api.json.JsonReader.Token.STRING
import com.apollographql.apollo3.api.json.JsonWriter
import okhttp... | 12 | Kotlin | 0 | 0 | f4d78fffde4ea59f1894c5cb558e3a095ba0676a | 969 | ny-challenge | Apache License 2.0 |
app/src/main/java/phocidae/mirounga/leonina/fragment/add/UnSocAddGralFragment.kt | poximan | 711,693,982 | false | {"Kotlin": 382538} | package phocidae.mirounga.leonina.fragment.add
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.AdapterView
import android.widget.ArrayAdapter
import androidx.fragment.ap... | 0 | Kotlin | 0 | 0 | 7de60f2aef0271c21ebe2e81e874f10bb8d7ad5c | 5,606 | harenkaren | MIT License |
app/src/main/kotlin/com/czbix/v2ex/network/V2exService.kt | CzBiX | 36,221,300 | false | null | package com.czbix.v2ex.network
import com.czbix.v2ex.db.Comment
import com.czbix.v2ex.model.*
import com.czbix.v2ex.parser.Parser
import com.czbix.v2ex.parser.TopicParser
import com.czbix.v2ex.util.TrackerUtils
import com.google.common.base.Stopwatch
import okhttp3.FormBody
import okhttp3.internal.EMPTY_REQUEST
import... | 2 | Kotlin | 25 | 138 | f6a79a91b84ae8030930231d965845798c4ce0a8 | 3,303 | v2ex-android | Apache License 2.0 |
app/src/main/java/com/adammcneilly/toa/core/ui/components/navigation/NavigationTab.kt | AdamMc331 | 402,227,056 | false | {"Kotlin": 255872, "Shell": 691, "Ruby": 666} | package com.adammcneilly.toa.core.ui.components.navigation
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Home
import androidx.compose.material.icons.filled.Settings
import androidx.compose.ui.graphics.vector.ImageVector
import com.adammcneilly.toa.R
import com.adammcneilly.... | 36 | Kotlin | 19 | 146 | ff6d0b0e0645a3bacea703108fd35fc54f0c4b1b | 969 | TOA | MIT License |
src/main/kotlin/spp/protocol/instrument/variable/LiveVariableScope.kt | sourceplusplus | 418,984,808 | false | {"Kotlin": 294528, "HTML": 3449, "Java": 813} | /*
* Source++, the continuous feedback platform for developers.
* Copyright (C) 2022-2023 CodeBrig, Inc.
*
* 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/... | 3 | Kotlin | 3 | 0 | bffdf87557ee36dc70ae5c8199eff524918459ff | 974 | protocol | Apache License 2.0 |
frontend/android/app/src/main/java/elte/moneyshare/view/viewholder/GroupViewHolder.kt | elte-sztgy | 171,624,276 | false | {"C#": 197589, "Kotlin": 195505, "TypeScript": 65554, "HTML": 32369, "TSQL": 24784, "CSS": 4476, "Shell": 3755, "JavaScript": 1737, "Batchfile": 1189, "Dockerfile": 621, "Ruby": 619} | package elte.moneyshare.view.viewholder
import android.support.constraint.ConstraintLayout
import android.support.v7.widget.RecyclerView
import android.view.View
import android.widget.TextView
import elte.moneyshare.R
class GroupViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
var groupRootLayout... | 10 | C# | 2 | 0 | 0d7b07dd6b10279ddbaeb0390a9336c1ade63fa6 | 749 | mshare | MIT License |
client/src/main/kotlin/dev/throwouterror/game/client/engine/input/KeyboardInputHelper.kt | throw-out-error | 277,902,461 | false | null | package dev.throwouterror.game.client.engine.input
import org.lwjgl.glfw.GLFW
object KeyboardInputHelper {
private const val KEYBOARD_SIZE = GLFW.GLFW_KEY_LAST + 1
private val lwjglToKeyboard: IntArray
fun get(key: Int): Int {
return lwjglToKeyboard[key]
}
private fun create() { // Map t... | 4 | Kotlin | 0 | 0 | 7850ff32883352d3ad913e03b45e898bf84a0c30 | 7,649 | java-game | MIT License |
app/src/main/java/com/guru/composecookbook/ui/demoapps/cryptoappmvvm/ui/home/CryptoHomeViewModel.kt | zedlabs | 349,067,191 | true | {"Kotlin": 583941} | package com.guru.composecookbook.ui.demoapps.cryptoappmvvm.ui.home
import androidx.lifecycle.ViewModel
import androidx.lifecycle.liveData
import androidx.lifecycle.viewModelScope
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.cachedIn
import com.guru.composecookbook.ui.demoapps... | 0 | null | 0 | 1 | f22a1101e73439dcc6feb078265722d159748530 | 1,544 | ComposeCookBook | MIT License |
buildSrc/src/test/kotlin/net/evendanan/versiongenerator/VersionGeneratorFactoryTest.kt | mirfatif | 282,874,014 | false | null | package net.evendanan.versiongenerator
import com.nhaarman.mockito_kotlin.*
import org.junit.Assert
import org.junit.Test
class VersionGeneratorFactoryTest {
open class FakeVersionGenerator(name: String, private val enabled: Boolean, private val fakeVersionCode: Int) : VersionGenerator(name) {
override fu... | 890 | null | 823 | 7 | 7dbd4e8f2df077610373cb3fda05587ac6fc86e1 | 1,767 | AnySoftKeyboard | Apache License 2.0 |
feature-account-impl/src/main/java/jp/co/soramitsu/feature_account_impl/presentation/about/di/AboutModule.kt | soramitsu | 278,060,397 | false | null | package jp.co.soramitsu.feature_account_impl.presentation.about.di
import android.content.Context
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import dagger.Module
import dagger.Provides
import dagger.multibindings.IntoMap
import jp.co.soramitsu.... | 2 | Kotlin | 15 | 55 | 756c1fea772274ad421de1b215a12bf4e2798d12 | 1,317 | fearless-Android | Apache License 2.0 |
play-services-core/src/main/kotlin/org/microg/gms/accountsettings/ui/MainActivity.kt | kazimmt | 645,813,057 | false | null | /*
* SPDX-FileCopyrightText: 2023 microG Project Team
* SPDX-License-Identifier: Apache-2.0
*/
package org.microg.gms.accountsettings.ui
import android.accounts.Account
import android.accounts.AccountManager
import android.os.Bundle
import android.util.Log
import android.view.View
import android.webkit.WebView
imp... | 990 | null | 77 | 96 | 30e774b23b845d20eb82f8a611345cf32fdc991e | 8,479 | mMicroG | Apache License 2.0 |
paymentsheet/src/androidTest/java/com/stripe/android/paymentsheet/ui/GooglePayButtonTest.kt | stripe | 6,926,049 | false | null | package com.stripe.android.paymentsheet.ui
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.testTag
import androidx.compose.ui.test.junit4.createAndroidComposeRule
import androidx.compose.ui.test.onNodeWithTag
import androidx.compose.ui.test.performClick
import com.google.common.truth.Truth.asse... | 88 | null | 644 | 1,277 | 174b27b5a70f75a7bc66fdcce3142f1e51d809c8 | 2,192 | stripe-android | MIT License |
app/src/main/java/com/adammcneilly/toa/addtask/ui/AddTaskViewModel.kt | AdamMc331 | 402,227,056 | false | null | package com.adammcneilly.toa.addtask.ui
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.adammcneilly.toa.R
import com.adammcneilly.toa.addtask.domain.model.AddTaskResult
import com.adammcneilly.toa.addtask.domain.model.TaskInput
import ... | 32 | Kotlin | 15 | 129 | b0e7a57e700c1b000bc525f9938966c5f33bbba0 | 4,659 | TOA | MIT License |
ui/src/main/java/com/redvelvet/ui/composable/PasswordTextField.kt | RedVelvet-Team | 670,763,637 | false | null | package com.redvelvet.ui.composable
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Lock
import androidx.... | 0 | Kotlin | 0 | 0 | 0d6a1934ee4bbe993a03230b01237d99bc21bc30 | 2,104 | IMovie | Apache License 2.0 |
core/src/main/java/com/supercaliman/core/di/RepositoryModule.kt | SuperCaliMan | 280,449,917 | false | null | package com.supercaliman.core.di
import android.content.Context
import androidx.datastore.preferences.createDataStore
import com.squareup.moshi.Moshi
import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory
import com.supercaliman.core.data.CoreRepository
import com.supercaliman.core.data.FireStoreAPI
import... | 0 | Kotlin | 0 | 1 | 8961f03823afd25db4624017eea1d5a49ad06d13 | 1,522 | Notes | Apache License 2.0 |
hollowkit/src/main/java/com/funnywolf/hollowkit/States.kt | liaobude | 305,176,692 | true | {"Kotlin": 191766} | package com.funnywolf.hollowkit
import android.os.Handler
import android.os.Looper
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleEventObserver
import androidx.lifecycle.LifecycleOwner
import java.lang.Exception
import java.util.concurrent.ConcurrentHashMap
import kotlin.collections.ArrayList
... | 0 | null | 0 | 0 | 2989f92d34fc961c6442b58371a7240f943e1252 | 3,993 | HollowKit | Apache License 2.0 |
nlp/front/storage-mongo/target/generated-sources/kapt/compile/ai/tock/nlp/front/shared/config/ClassifiedEntity_Serializer.kt | theopenconversationkit | 84,538,053 | false | null | package fr.vsct.tock.nlp.front.shared.config
import com.fasterxml.jackson.core.JsonGenerator
import com.fasterxml.jackson.databind.SerializerProvider
import com.fasterxml.jackson.databind.module.SimpleModule
import com.fasterxml.jackson.databind.ser.std.StdSerializer
import org.litote.jackson.JacksonModuleServiceLoade... | 163 | null | 127 | 475 | 890f69960997ae9146747d082d808d92ee407fcb | 1,690 | tock | Apache License 2.0 |
core/src/main/kotlin/gateway/handler/UserEventHandler.kt | kordlib | 202,856,399 | false | null | package dev.kord.core.gateway.handler
import dev.kord.cache.api.DataCache
import dev.kord.cache.api.put
import dev.kord.cache.api.query
import dev.kord.core.Kord
import dev.kord.core.cache.data.UserData
import dev.kord.core.cache.idEq
import dev.kord.core.entity.User
import dev.kord.core.event.user.UserUpdateEvent
imp... | 35 | null | 58 | 559 | 06e90d2db5b49ac8c4235184ef0dbb7de82ab2f7 | 1,340 | kord | MIT License |
game-plugins/src/main/kotlin/org/alter/plugins/content/items/spade/spade.plugin.kts | AlterRSPS | 421,831,790 | false | null | package gg.rsmod.plugins.content.items.spade
on_item_option(item = Items.SPADE, "dig") {
player.animate(830)
if (player.tile.x == 3229 && player.tile.z == 3209 && player.inventory.contains(Items.TREASURE_SCROLL)) {
player.queue {
player.inventory.remove(23067, 1)
player.inventor... | 8 | null | 33 | 23 | 8d3b3cb38ab6a0e4bed7976cb2dbfcf75bfac9b3 | 1,956 | Alter | Apache License 2.0 |
demo/plot/src/jvmBatikMain/kotlin/demo/plot/batik/plotConfig/ImageWithScaleLimitsBatik.kt | JetBrains | 176,771,727 | false | {"Kotlin": 7616680, "Python": 1299756, "Shell": 3453, "C": 3039, "JavaScript": 931, "Dockerfile": 94} | /*
* Copyright (c) 2020. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package demo.plot.batik.plotConfig
import demo.plot.common.model.plotConfig.ImageWithScaleLimits
import demo.common.batik.demoUtils.PlotSpecsDemoWindowBatik
fun main() {
... | 150 | Kotlin | 51 | 1,561 | c8db300544974ddd35a82a90072772b788600ac6 | 464 | lets-plot | MIT License |
src/test/kotlin/com/appifyhub/monolith/validation/impl/CleanersTest.kt | appifyhub | 323,403,014 | false | null | package com.appifyhub.monolith.validation.impl
import assertk.assertThat
import assertk.assertions.isEmpty
import assertk.assertions.isEqualTo
import assertk.assertions.isFalse
import assertk.assertions.isNull
import assertk.assertions.isTrue
import assertk.assertions.isZero
import com.appifyhub.monolith.domain.user.O... | 1 | Kotlin | 0 | 0 | 6c35d77cfe6e8d6ed29257935372aa5c35c63785 | 11,228 | monolith | MIT License |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/Tubes.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.compose.ui.gra... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,758 | icons | MIT License |
shared/src/commonMain/kotlin/com/darrenthiores/ecoswap/presentation/other_profile/OtherProfileViewModel.kt | darrenthiores | 688,372,873 | false | {"Kotlin": 770054, "Swift": 362583} | package com.darrenthiores.ecoswap.presentation.other_profile
import com.darrenthiores.ecoswap.domain.item.use_cases.GetUserItems
import com.darrenthiores.ecoswap.domain.reviews.use_cases.AddUserReview
import com.darrenthiores.ecoswap.domain.reviews.use_cases.GetUserReviews
import com.darrenthiores.ecoswap.domain.user.... | 0 | Kotlin | 0 | 0 | 792b3293b4e378b7482f948ce4de622cb88f3cf1 | 8,358 | EcoSwap | MIT License |
core/src/com/ascending/games/id1/edit/board/action/content/BattleAction.kt | AscendingGames | 147,917,936 | false | null | package com.ascending.games.id1.edit.board.action.content
import com.ascending.games.id1.edit.mechanics.BattleDomain
import com.ascending.games.id1.model.mechanics.Battle
import com.ascending.games.engine.edit.action.ITimedAction
class BattleAction(private val battle : Battle) : com.ascending.games.engine.edit.action... | 11 | null | 1 | 1 | 7fb0ee90967c49ab1056620c68a2029f663e4e40 | 837 | DungeonCreator | MIT License |
src/main/kotlin/automaton/constructor/view/module/executor/tree/ExecutionTreeView.kt | spbu-se | 460,362,528 | false | {"Kotlin": 450397, "CSS": 78} | package automaton.constructor.view.module.executor.tree
import automaton.constructor.controller.module.executor.tree.ExecutionTreeController
import automaton.constructor.model.module.executor.ExecutionState
import automaton.constructor.model.module.executor.Executor
import automaton.constructor.utils.customizedZoomScr... | 4 | Kotlin | 0 | 8 | 008858326d8b70316a95bded8c927d5a635b1f3b | 2,055 | KotlinAutomataConstructor | Apache License 2.0 |
serenity-ensure/src/main/kotlin/net/serenitybdd/screenplay/ensure/PerformableExpectations.kt | serenity-bdd | 26,201,720 | false | {"HTML": 106295454, "JavaScript": 11374128, "Java": 6664877, "Groovy": 1260866, "CSS": 1192001, "FreeMarker": 458192, "Kotlin": 389324, "Gherkin": 170891, "SCSS": 70764, "Shell": 2452, "XSLT": 980, "TypeScript": 780} | package net.serenitybdd.screenplay.ensure
import net.serenitybdd.annotations.Step
import net.serenitybdd.core.Serenity
import net.serenitybdd.screenplay.Actor
import net.serenitybdd.screenplay.Performable
import net.thucydides.core.steps.StepEventBus
import net.thucydides.model.steps.ExecutedStepDescription
import net... | 384 | HTML | 518 | 720 | 9370955ce66b3ee0cb0d400c5705fc0dcb47eddd | 5,164 | serenity-core | Apache License 2.0 |
app/src/main/java/com/example/customproject/ui/viewbrand/ViewBrandFragment.kt | Aeth01 | 542,880,018 | false | {"Kotlin": 46369} | @file:Suppress("NAME_SHADOWING")
package com.example.customproject.ui.viewbrand
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.activityViewModels
import androidx.lifecycle.LiveData
imp... | 0 | Kotlin | 0 | 1 | 46b80a8aa205c2df5a291ae50b0a8a9172b7270e | 3,491 | COS30017-Custom-Project | MIT License |
src/main/java/com/adityaamolbavadekar/hiphe/SharedActivity.kt | AdityaBavadekar | 421,028,992 | false | null | /*******************************************************************************
* Copyright (c) 2021. <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:/... | 0 | Kotlin | 0 | 1 | eb8608b7aa63ed3fca9ffd3b2e999824c1e072de | 3,795 | Hiphe | Apache License 2.0 |
app/src/main/java/org/simple/clinic/search/results/PatientSearchResultsInit.kt | KelvnPere | 310,601,209 | true | {"Kotlin": 4452962, "Shell": 3616, "Python": 3162} | package org.simple.clinic.search.results
import com.spotify.mobius.First
import com.spotify.mobius.Init
import org.simple.clinic.mobius.first
class PatientSearchResultsInit : Init<PatientSearchResultsModel, PatientSearchResultsEffect> {
override fun init(model: PatientSearchResultsModel): First<PatientSearchResult... | 0 | null | 0 | 0 | 79b5055be07a4e9b46b84b0a157bb07f6cc254ad | 388 | simple-android | MIT License |
app/src/main/java/com/zlagi/blogfy/view/blog/search/result/SearchResultFragment.kt | Zlagi | 475,379,557 | false | {"Kotlin": 496613} | package com.zlagi.blogfy.view.blog.search.result
import android.content.pm.ApplicationInfo
import android.content.pm.PackageManager
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.inputmethod.EditorInfo
import androidx.activity.addC... | 0 | Kotlin | 12 | 63 | dffd07e8533c285bb5ca9de4e9676985aa0e87cc | 7,736 | Blogfy | Apache License 2.0 |
test-common/src/main/kotlin/KontrollsamtaleTestData.kt | navikt | 227,366,088 | false | null | package no.nav.su.se.bakover.test
import no.nav.su.se.bakover.common.Tidspunkt
import no.nav.su.se.bakover.domain.kontrollsamtale.Kontrollsamtale
import no.nav.su.se.bakover.domain.kontrollsamtale.Kontrollsamtalestatus
import java.time.LocalDate
import java.util.UUID
fun kontrollsamtale(
id: UUID = UUID.randomUUI... | 1 | Kotlin | 0 | 0 | 2a69312721cc29dc5f8794bdfa1b96ac29a3f4ce | 835 | su-se-bakover | MIT License |
intellij-plugin/educational-core/src/com/jetbrains/edu/learning/framework/impl/FrameworkRecordsTable.kt | JetBrains | 43,696,115 | false | null | package com.jetbrains.edu.learning.framework.impl
import com.intellij.util.io.StorageLockContext
import com.intellij.util.io.storage.AbstractRecordsTable
import java.nio.file.Path
@Suppress("UnstableApiUsage")
class FrameworkRecordsTable(storageFilePath: Path, context: StorageLockContext) : AbstractRecordsTable(stora... | 7 | null | 49 | 150 | 9cec6c97d896f4485e76cf9a2a95f8a8dd21c982 | 613 | educational-plugin | Apache License 2.0 |
app/src/main/java/eu/kanade/domain/chapter/interactor/DeleteChapters.kt | scb261 | 381,944,147 | true | {"Kotlin": 4047397} | package eu.kanade.domain.chapter.interactor
import eu.kanade.domain.chapter.repository.ChapterRepository
class DeleteChapters(
private val chapterRepository: ChapterRepository,
) {
suspend fun await(chapters: List<Long>) {
chapterRepository.removeChaptersWithIds(chapters)
}
}
| 0 | Kotlin | 0 | 7 | 5a3a2084cbfff68c4187ea55ad6b8fd7be2796b7 | 300 | TachiyomiSY | Apache License 2.0 |
IndoorNavAndroid/nav-core/src/main/java/com/izhxx/navcore/domain/model/location/MapCoordinates.kt | ZhevlakovII | 507,916,442 | false | null | package com.izhxx.navcore.domain.model.location
/**
* Дата-класс для координа локации. Применяется на карту и зависит от её размеров
* @param startAxisX - Стартовая координата по оХ/оY
* @param endAxisX - Конечная координата по оХ/oY
* @param centerAxisX - Точка в центре локации.
* Координаты задаются как по оси ... | 2 | Kotlin | 0 | 1 | c59bbb793ee28057f49392eab36206a05909265b | 752 | IndoorNavigation | MIT License |
src/test/kotlin/de/flapdoodle/photosync/filehash/HashStrategyTest.kt | flapdoodle-oss | 231,620,257 | false | null | package de.flapdoodle.photosync.filehash
import de.flapdoodle.io.tree.Tree
import de.flapdoodle.photosync.Blob
import de.flapdoodle.photosync.LastModified
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import java.nio.file.Path
class HashStrategyTest {
@Test
fun `single group... | 1 | null | 1 | 1 | 2c39e73edb0d1eefd277c1e31d2ed7042cf62029 | 2,931 | photosync | Apache License 2.0 |
libraries/stdlib/test/time/TimeMarkTest.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
@file:OptIn(ExperimentalTime::class)
package test.time
import kotlin.test.*
import kotlin.time.*
import kotli... | 157 | Kotlin | 5209 | 42,102 | 65f712ab2d54e34c5b02ffa3ca8c659740277133 | 5,657 | kotlin | Apache License 2.0 |
restx-samplest-kotlin/src/main/java/samplest/hello/HeaderResource.kt | restx | 9,836,833 | false | {"Java": 1648842, "Less": 149456, "JavaScript": 109081, "HTML": 71380, "CSS": 19545, "Mustache": 12835, "Kotlin": 6385, "Shell": 1276} | package samplest.hello
import restx.RestxRequest
import restx.annotations.GET
import restx.annotations.Param
import restx.annotations.RestxResource
import restx.factory.Component
/**
* Created by xhanin on 13/01/2018.
*/
@Component
@RestxResource
class HeaderResource {
@GET("/headers")
fun headers(@Param(ki... | 43 | Java | 81 | 444 | f7fefe8ae398a638d226d57878b698f18e92989d | 408 | restx | Apache License 2.0 |
watchlist/src/main/java/com/pyamsoft/tickertape/watchlist/add/WatchlistAddViewModel.kt | pyamsoft | 371,196,339 | false | null | /*
* Copyright 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 5 | Kotlin | 0 | 1 | 54ea8e2b452da10d87a79c37fa72a0a7f70d8c5c | 2,129 | tickertape | Apache License 2.0 |
app/src/main/kotlin/com/flxrs/dankchat/data/api/helix/dto/CommercialRequestDto.kt | flex3r | 186,238,019 | false | {"Kotlin": 977613} | package com.flxrs.dankchat.data.api.helix.dto
import androidx.annotation.Keep
import com.flxrs.dankchat.data.UserId
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Keep
@Serializable
data class CommercialRequestDto(@SerialName("broadcaster_id") val broadcastUserId: UserId, val lengt... | 73 | Kotlin | 37 | 266 | 49d86a05f3bba655881e6e93360f216316cee7c9 | 328 | DankChat | MIT License |
confluence-plugin/src/main/java/com/networkedassets/git4c/core/GetPredefinedRepositoryUseCase.kt | rpaasche | 321,741,515 | true | {"Kotlin": 798728, "JavaScript": 351426, "Java": 109291, "Groovy": 55451, "CSS": 37375, "ANTLR": 19544, "Gherkin": 15007, "HTML": 14268, "Shell": 4490, "Ruby": 1378, "Batchfile": 1337, "PowerShell": 716} | package com.networkedassets.git4c.core
import com.networkedassets.git4c.application.BussinesPluginComponents
import com.networkedassets.git4c.boundary.GetPredefinedRepositoryCommand
import com.networkedassets.git4c.boundary.GetPredefinedRepositoryResultRequest
import com.networkedassets.git4c.boundary.outbound.Predefi... | 0 | Kotlin | 0 | 0 | e55391b33cb70d66bbf5f36ba570fb8822f10953 | 3,425 | git4c | Apache License 2.0 |
data/src/main/java/com/wasin/data/model/company/SaveCompanyByOpenAPIRequest.kt | wa-sin-sang-dam | 828,217,645 | false | {"Kotlin": 342772} | package com.wasin.data.model.company
import kotlinx.serialization.Serializable
@Serializable
data class SaveCompanyByOpenAPIRequest (
val serviceKey: String = "",
val companyFssId: String = "",
val location: String = "",
val companyName: String = ""
)
| 0 | Kotlin | 0 | 0 | 3931b34962fe857b8accd5f922b0f5df1add2595 | 270 | wasin-android | MIT License |
mbcarkit/src/main/java/com/daimler/mbcarkit/business/model/vehicle/SpeedUnitType.kt | Daimler | 199,815,262 | false | null | package com.daimler.mbcarkit.business.model.vehicle
enum class SpeedUnitType {
KM,
MILES,
UNKNOWN
}
| 1 | null | 8 | 15 | 3721af583408721b9cd5cf89dd7b99256e9d7dda | 113 | MBSDK-Mobile-Android | MIT License |
app/src/main/java/com/example/events/domain/di/DomainModule.kt | diegoleonds | 369,679,332 | false | null | package com.example.events.domain.di
import com.example.events.domain.transform.EventPersonTransform
import com.example.events.domain.usecase.JoinEventUseCase
import org.koin.dsl.module
val domainModule = module {
factory { EventPersonTransform() }
factory { JoinEventUseCase(get(), get()) }
} | 0 | Kotlin | 0 | 0 | d3b906fd44d1fab03bbc9449c218a668258c732d | 303 | Events-App | MIT License |
src/main/kotlin/br/com/ot6/BcbClient.kt | Josh-Andrade | 397,634,098 | true | {"Kotlin": 55018} | package br.com.ot6
import br.com.ot6.bcb.CreatePixKeyRequest
import br.com.ot6.bcb.DeletePixKey
import br.com.ot6.bcb.PixKeyDetailsResponse
import io.micronaut.http.HttpResponse
import io.micronaut.http.MediaType
import io.micronaut.http.annotation.*
import io.micronaut.http.client.annotation.Client
@Client("\${http.... | 0 | Kotlin | 0 | 0 | 85fc0319a8198ab15cb4c0bd0a49a24b76c4769d | 1,014 | orange-talents-06-template-pix-keymanager-grpc | Apache License 2.0 |
app/src/main/java/com/example/tracking_app/database/dao/RoadMapDao.kt | yassine-zouhri | 373,333,286 | false | null | package com.example.tracking_app.database.dao
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.example.tracking_app.database.models.RoadMapEntity
@Dao
interface RoadMapDao {
@Query("SELECT * FROM ... | 0 | Kotlin | 0 | 0 | 88d1c899814e9e3b6df86833dab19b5853963d8f | 908 | AppMobilePFE | MIT License |
framework/src/main/java/com/gw/mvvm/framework/core/ActivityManger.kt | play0451 | 347,845,609 | false | null | package com.gw.mvvm.framework.core
import android.app.Activity
import java.util.*
/**
* Activity管理单例类
*/
object ActivityManger {
private val activityList = LinkedList<Activity>()
private val currentActivity: Activity?
get() =
if (activityList.isEmpty()) null
else activityList... | 0 | Kotlin | 0 | 0 | bbf15ccf5eddb470f3841a97d79c76a867c213fd | 1,410 | wan-android-jetpack-mvvm-practice | MIT License |
lint/src/main/java/org/simple/clinic/lint/TextViewTextSizeDetector.kt | simpledotorg | 132,515,649 | false | {"Kotlin": 6129044, "Shell": 1660, "HTML": 545} | package org.simple.clinic.lint
import com.android.SdkConstants.ANDROID_URI
import com.android.SdkConstants.ATTR_TEXT_SIZE
import com.android.SdkConstants.TEXT_VIEW
import com.android.tools.lint.detector.api.Category
import com.android.tools.lint.detector.api.Implementation
import com.android.tools.lint.detector.api.Is... | 6 | Kotlin | 73 | 236 | ff699800fbe1bea2ed0492df484777e583c53714 | 1,789 | simple-android | MIT License |
src/main/kotlin/io/framed/framework/model/ModelElement.kt | Eden-06 | 138,000,306 | false | {"Kotlin": 675525, "SCSS": 21894, "HTML": 768} | package io.framed.framework.model
import kotlinx.serialization.Serializable
/**
* Base class for all model elements.
*
* @author lars
*/
@Serializable
abstract class ModelElement {
val id: Long = lastId++
abstract fun copy(): ModelElement
open fun maxId(): Long = id
companion object {
... | 5 | Kotlin | 1 | 2 | 27f4a4c44d90f20f748ab779c3c184cb012a59fe | 506 | FRaMED-io | MIT License |
src/main/kotlin/com/github/goldsubmarine/restfulhelper/utils/CommonUtils.kt | GoldSubmarine | 394,201,620 | false | null | package com.viartemev.requestmapper.utils
fun String.unquote(): String = if (length >= 2 && first() == '"' && last() == '"') substring(1, this.length - 1) else this
fun String.inCurlyBrackets(): Boolean = length >= 2 && first() == '{' && last() == '}'
fun String.unquoteCurlyBrackets(): String = if (this.inCurlyBrack... | 16 | null | 4 | 9 | 9d187542a38548a353625ea06201075d001ef8b9 | 619 | RestfulHelper | MIT License |
src/main/kotlin/com/github/goldsubmarine/restfulhelper/utils/CommonUtils.kt | GoldSubmarine | 394,201,620 | false | null | package com.viartemev.requestmapper.utils
fun String.unquote(): String = if (length >= 2 && first() == '"' && last() == '"') substring(1, this.length - 1) else this
fun String.inCurlyBrackets(): Boolean = length >= 2 && first() == '{' && last() == '}'
fun String.unquoteCurlyBrackets(): String = if (this.inCurlyBrack... | 16 | null | 4 | 9 | 9d187542a38548a353625ea06201075d001ef8b9 | 619 | RestfulHelper | MIT License |
app-tracking-protection/vpn-impl/src/main/java/com/duckduckgo/mobile/android/vpn/ui/notification/VpnEnabledNotificationBuilder.kt | duckduckgo | 78,869,127 | false | null | /*
* Copyright (c) 2020 DuckDuckGo
*
* 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 ... | 67 | null | 901 | 3,823 | 6415f0f087a11a51c0a0f15faad5cce9c790417c | 7,101 | Android | Apache License 2.0 |
home/src/main/java/com/pabloangeles/hackernewsapp/home/data/di/HomeModule.kt | PabloJair | 551,790,924 | false | {"Kotlin": 68936} | package com.pabloangeles.hackernewsapp.home.data.di
import com.pabloangeles.hackernewsapp.core.local.HackerNewsDatabase
import com.pabloangeles.hackernewsapp.core.local.dao.NewsHitsDao
import com.pabloangeles.hackernewsapp.home.data.services.NewHitsService
import dagger.Module
import dagger.Provides
import dagger.hilt... | 0 | Kotlin | 0 | 0 | a88fc09a8d5c8cbea13e598c2c75513a95533678 | 835 | hacks_news-demo | MIT License |
buildSrc/src/dependencies.kt | wanghoa | 204,402,514 | true | {"Java": 93265, "Kotlin": 13390} | import org.gradle.api.artifacts.dsl.DependencyHandler
import org.gradle.plugin.use.PluginDependenciesSpec
fun DependencyHandler.android() = "com.android.tools.build:gradle:3.5.0-beta03"
fun PluginDependenciesSpec.android(submodule: String) = id("com.android.$submodule")
fun DependencyHandler.androidx(
repository:... | 0 | Java | 0 | 0 | 55951219406a75f9d36baf50a5f85dc05cbd11d4 | 1,251 | collapsingtoolbarlayout-subtitle | Apache License 2.0 |
app/app/src/main/java/xyz/mirage/app/presentation/ui/shared/GenericDialog.kt | sentrionic | 378,704,735 | false | null | package xyz.mirage.app.presentation.ui.shared
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material.AlertDialog
import androidx.compose... | 0 | Kotlin | 2 | 1 | 8f50fc8244f16b43b8e054e79bcd50e98765a0e1 | 2,979 | Mirage | MIT License |
app/src/main/java/org/phcbest/neteasymusic/base/IBaseCallBack.kt | phcbest | 471,621,513 | false | null | package org.phcbest.neteasymusic.base
interface IBaseCallBack {
/**
* 失败调用
*/
fun onError()
/**
* 加载调用
*/
fun onLoading()
/**
* 请求成功但数据为null调用
*/
fun onEmpty()
} | 0 | Kotlin | 1 | 2 | d94a834216d24f81ee5e2e35b0c54ef6da8b50af | 218 | KotlinNetEasyMusic | MIT License |
services/csm.cloud.project.project/src/main/kotlin/com/bosch/pt/iot/smartsite/project/taskschedule/command/handler/CreateTaskScheduleCommandHandler.kt | boschglobal | 805,348,245 | false | {"Kotlin": 13156190, "HTML": 274761, "Go": 184388, "HCL": 158560, "Shell": 117666, "Java": 52634, "Python": 51306, "Dockerfile": 10348, "Vim Snippet": 3969, "CSS": 344} | /*
* ************************************************************************
*
* Copyright: Robert Bosch Power Tools GmbH, 2018 - 2023
*
* ************************************************************************
*/
package com.bosch.pt.iot.smartsite.project.taskschedule.command.handler
import com.bosch.... | 0 | Kotlin | 3 | 9 | 9f3e7c4b53821bdfc876531727e21961d2a4513d | 2,880 | bosch-pt-refinemysite-backend | Apache License 2.0 |
src/test/kotlin/sqlproxy/jdbc/SQLProxyConnectionTest.kt | dustinliu | 227,580,613 | false | null | package sqlproxy.jdbc;
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import sqlproxy.client.SQLProxyDriver
import sqlproxy.client.parseUrl
class SQLProxyConnectionTest {
@Test
fun `test parseUrl`() {
val url = SQLProxyDriver.prefix + "//localhost:8080"
... | 0 | Kotlin | 0 | 0 | bf8ccc35c73e36c941ec6dcb3770b22aa65b0e59 | 441 | sqlproxy | MIT License |
app/src/main/java/com/coderbdk/tictactoe/ui/home/HomeScreen.kt | CoderBDK | 828,847,363 | false | {"Kotlin": 74767} | package com.coderbdk.tictactoe.ui.home
import android.content.res.Configuration
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fi... | 0 | Kotlin | 0 | 2 | dfaeebc46c403cd2d28a64861fba06ce622592cf | 9,083 | TicTacToe | MIT License |
src/backend/ci/core/common/common-api/src/main/kotlin/com/tencent/devops/common/api/pojo/agent/DockerInitFileInfo.kt | TencentBlueKing | 189,153,491 | false | {"Kotlin": 30176725, "Vue": 6739254, "JavaScript": 1256623, "Go": 616850, "Lua": 567159, "TypeScript": 461781, "SCSS": 365654, "Shell": 157561, "Java": 153049, "CSS": 106299, "HTML": 96201, "Python": 39238, "Less": 24714, "Makefile": 10630, "Smarty": 10297, "Dockerfile": 5097, "Batchfile": 4908, "PowerShell": 1626, "VB... | package com.tencent.devops.common.api.pojo.agent
import io.swagger.v3.oas.annotations.media.Schema
@Schema(title = "docker init 文件升级信息")
data class DockerInitFileInfo(
@get:Schema(title = "文件md5值")
val fileMd5: String,
@get:Schema(title = "目前只支持linux机器,所以其他系统不需要检查")
val needUpgrade: Boolean
)
| 719 | Kotlin | 498 | 2,382 | dd483c38bdbe5c17fa0e5e5bc3390cd1cd40757c | 312 | bk-ci | MIT License |
app/src/main/java/imraan/imraan/thinkbright/AnimalQuizResults.kt | imraanishmail | 364,049,813 | false | {"Kotlin": 53584} | package imraan.imraan.thinkbright
import android.content.Context
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.BaseAdapter
import android.widget.ListV... | 0 | Kotlin | 2 | 0 | 8a3d018be428f309beb46c7a34ce618b12195458 | 4,641 | thinkBright-app-playstore | MIT License |
app/src/main/java/com/alessandrofarandagancio/nycschools/school/model/SchoolSimple.kt | alexs60 | 608,871,839 | false | null | package com.alessandrofarandagancio.nycschools.school.model
data class SchoolSimple(val dbn: String, val school_name: String, val location: String) | 0 | Kotlin | 0 | 0 | 842212bdff31702e8f8958fd965dab0fb94c7cc0 | 148 | 20230302-AlessandroFarandaGancio-NYCSchools | Apache License 2.0 |
src/test/kotlin/no/nav/tilleggsstonader/sak/infrastruktur/mocks/PdlClientConfig.kt | navikt | 685,490,225 | false | {"Kotlin": 1714587, "Gherkin": 41585, "HTML": 39172, "Shell": 924, "Dockerfile": 164} | package no.nav.tilleggsstonader.sak.infrastruktur.mocks
import io.mockk.every
import io.mockk.mockk
import io.mockk.slot
import no.nav.tilleggsstonader.kontrakter.pdl.GeografiskTilknytningDto
import no.nav.tilleggsstonader.kontrakter.pdl.GeografiskTilknytningType
import no.nav.tilleggsstonader.sak.opplysninger.pdl.Pdl... | 3 | Kotlin | 1 | 0 | f4191dcf48ee50d3010e5794c6d4462f1c19002f | 14,754 | tilleggsstonader-sak | MIT License |
src/main/java/mutation/tool/parser/CSharpParser.kt | jcarlosadm | 212,240,193 | true | {"XML": 10, "Maven POM": 1, "Text": 1, "Ignore List": 1, "YAML": 1, "Markdown": 1, "JSON": 3, "Kotlin": 93, "Java": 5, "C#": 2, "Java Properties": 1} | package mutation.tool.parser
import mutation.tool.context.InsertionPoint
import mutation.tool.util.xml.getAllTagNodes
import mutation.tool.util.xml.getTagNode
import org.w3c.dom.Node
import java.io.File
import javax.xml.parsers.DocumentBuilderFactory
private fun printNode(node:Node) {
/*//println(node.nodeName)
... | 0 | Kotlin | 0 | 0 | fce32936b61819b4791b04a7db7fefbe61e871c6 | 2,661 | mutation-tool-for-annotations | MIT License |
app/src/main/java/com/trackmyterm/data/remote/response/BaseResponse.kt | shah-vraj | 842,748,055 | false | {"Kotlin": 62828} | package com.trackmyterm.data.remote.response
interface BaseResponse<T> {
val resultType: String
val data: T
val message: String
} | 0 | Kotlin | 0 | 0 | a8ead944acbda14d2eb1d5967334c8afd42b1a3a | 142 | TrackMyTerm | MIT License |
common/src/main/kotlin/com/codeviking/kxg/util/TouchGestureEvaluator.kt | dwbullok | 153,008,678 | true | {"Kotlin": 925045} | package com.codeviking.kxg.util
import com.codeviking.kxg.InputManager
import com.codeviking.kxg.KxgContext
import com.codeviking.kxg.math.MutableVec2f
import com.codeviking.kxg.math.Vec2f
/**
* Evaluates standard touch gestures (pinch-to-zoom, two-finger drag)
*/
open class TouchGestureEvaluator {
var curren... | 0 | Kotlin | 0 | 0 | 5121acb8d80480bf60624ae9ef87a39b97428e27 | 5,714 | kool | Apache License 2.0 |
src/main/kotlin/Contacts.kt | nolequen | 162,179,912 | false | null | package su.nlq.icq.bot
import com.fasterxml.jackson.annotation.JsonProperty
import io.ktor.client.request.HttpRequestBuilder
import io.ktor.client.request.parameter
import io.ktor.http.HttpMethod
import su.nlq.icq.bot.request.HttpRequest
class Contacts internal constructor(private val bot: Bot) {
suspend fun all()... | 0 | Kotlin | 1 | 0 | 9cedccc0ababdb8a5b4ff80c92f79255f8831781 | 1,601 | icq-bot-core | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.