path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/ar/com/wolox/android/bootstrap/utils/SharedPreferencesManager.kt | Wolox | 425,925,611 | false | {"Kotlin": 62111} | package ar.com.wolox.android.bootstrap.utils
import android.content.SharedPreferences
import javax.inject.Inject
class SharedPreferencesManager @Inject constructor(private val sharedPreferences: SharedPreferences) {
fun store(key: String, value: String?) = sharedPreferences.edit().putString(key, value).apply()
... | 0 | Kotlin | 5 | 2 | c76688cb41212fd421551895403de2439c5ee8a0 | 1,381 | android-bootstrap-mvvm | MIT License |
api/src/main/java/com/getcode/model/UpgradeablePrivateAction.kt | code-payments | 723,049,264 | false | {"Kotlin": 1199452, "C": 198685, "C++": 83029, "Java": 51811, "CMake": 2594, "JavaScript": 1912, "Ruby": 1714, "Shell": 1706} | package com.getcode.model
import com.codeinc.gen.transaction.v2.TransactionService
import com.getcode.solana.keys.Hash
import com.getcode.solana.keys.Signature
import com.getcode.solana.SolanaTransaction
import com.getcode.solana.instructions.programs.SystemProgram_AdvanceNonce
import com.getcode.solana.instructions.p... | 6 | Kotlin | 11 | 9 | 491cbd54ead3fbe1ed8af1b0e6a0f3b4a1ed2623 | 4,489 | code-android-app | MIT License |
restaurant-app/restaurant-infrastructure/src/main/kotlin/mija/hex/infrastructure/app/restaurant/RestaurantApp.kt | jacol84 | 266,496,977 | false | null | package mija.hex.infrastructure.app.restaurant;
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.Rest... | 0 | Kotlin | 0 | 1 | 061e017be49a1f9f5a04df6e159362ffe0425c21 | 672 | mija-hex | MIT License |
coucou/src/main/kotlin/com/github/mrmitew/coucou/models/DiscoveryEvent.kt | mrmitew | 153,993,393 | false | null | package com.github.mrmitew.coucou.models
sealed class DiscoveryEvent {
data class Failure(val cause: Exception) : DiscoveryEvent()
data class ServiceResolved(val service: DiscoveryService) : DiscoveryEvent()
data class ServiceLost(val service: DiscoveryService) : DiscoveryEvent()
} | 0 | Kotlin | 0 | 6 | 992dc1f7d3bb052d78509e3e078b6b0e1d758118 | 295 | coucou_android | MIT License |
app/src/main/java/com/hxl/arithcalc/di/DataModule.kt | hexley21 | 521,334,174 | false | {"Kotlin": 44271} | package com.hxl.arithcalc.di
import android.content.Context
import androidx.room.Room
import com.hxl.data.repository.EquationHistoryRepositoryImpl
import com.hxl.data.repository.PreferenceRepositoryImpl
import com.hxl.data.storage.PreferenceStorage
import com.hxl.data.storage.room.LocalDatabase
import com.hxl.data.sto... | 0 | Kotlin | 0 | 1 | 3338bf73106c3cee0054d1981413e38c544fc3ba | 1,643 | ArithCalc | Apache License 2.0 |
presenter/src/main/java/com/jadyn/ai/presenter/base/IBaseViewContract.kt | JadynAi | 164,068,439 | false | null | package com.jadyn.ai.presenter.base
/**
*@version:
*@FileDescription:
*@Author:Jing
*@Since:2019-09-06
*@ChangeList:
*/
interface IBaseViewContract {
interface IView
interface IPresenter
} | 3 | null | 60 | 222 | 4015dc217a2258e8024100ca73dc672954089b2e | 213 | MediaLearn | Apache License 2.0 |
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtSubstitutorFactory.kt | JetBrains | 3,432,266 | false | {"Kotlin": 78020897, "Java": 6696240, "Swift": 4062767, "C": 2609482, "C++": 1967339, "Objective-C++": 169966, "JavaScript": 135932, "Python": 48402, "Shell": 34800, "TypeScript": 22800, "Lex": 18369, "Groovy": 17400, "Objective-C": 15578, "Batchfile": 11746, "CSS": 11368, "Ruby": 10470, "EJS": 5241, "Dockerfile": 5136... | /*
* Copyright 2010-2020 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.
*/
package org.jetbrains.kotlin.analysis.api.components
import org.jetbrains.kotlin.analysis.api.KtAnalysisApiIn... | 176 | Kotlin | 5601 | 47,397 | a47dcc227952c0474d27cc385021b0c9eed3fb67 | 2,728 | kotlin | Apache License 2.0 |
lib/src/main/kotlin/com/github/snowdream/util/log/formatter/AbstractLogFormatter.kt | SnowdreamFramework | 72,925,527 | false | null | package com.github.snowdream.util.log.formatter
import com.github.snowdream.util.log.Log
import com.github.snowdream.util.log.LogItem
import java.io.PrintWriter
import java.io.StringWriter
import java.net.UnknownHostException
/**
* Log Formatter
*
* Created by snowdream on 17/4/23.
*/
abstract class AbstractLogFo... | 0 | Kotlin | 0 | 0 | 261895fbba7d03ab9bc5a78a7b005458b5c6aed4 | 1,691 | log | Apache License 2.0 |
bottom_sheet_fragment/app/src/test/java/danbroid/demo/Test1.kt | danbrough | 290,871,172 | false | {"Text": 4, "Ignore List": 21, "Markdown": 11, "Gradle Kotlin DSL": 49, "YAML": 9, "Java Properties": 33, "Shell": 32, "Batchfile": 9, "INI": 16, "Proguard": 8, "Kotlin": 107, "XML": 162, "Java": 12, "Go": 2, "Go Module": 1, "C++": 1, "C": 10} | package danbroid.demo
class Test1 {
fun run() {
log.info("running test")
}
}
fun main() {
Test1().run()
}
private val log = org.slf4j.LoggerFactory.getLogger(Test1::class.java)
| 0 | C | 0 | 2 | f5b1b0e0b9688c9fc0e7ff3d6d092ab86bf99fea | 191 | misc_demos | Apache License 2.0 |
2022/Bookmarklet/WebSED/src/main/kotlin/Replace.kt | kyoya-p | 253,926,918 | false | {"Kotlin": 951824, "JavaScript": 86196, "HTML": 71848, "TypeScript": 56905, "Java": 30207, "C++": 29172, "CMake": 20891, "Dart": 14886, "Shell": 7841, "CSS": 6307, "Batchfile": 6227, "Dockerfile": 4978, "C": 3042, "Swift": 2216, "PowerShell": 234, "Objective-C": 78} | import kotlinx.browser.document
import org.w3c.dom.Element
import org.w3c.dom.Text
import kotlin.js.RegExp
@ExperimentalJsExport
@JsExport
fun r() {
val regexTable = mapOf("([aA])" to "$1")
replaceNodeText(document.body) { sed(it, regexTable) }
}
fun replaceNodeText(rootElement: Element?, repOp: (String) -> ... | 16 | Kotlin | 1 | 2 | c2bc228ab79bfa3889bb189e0bad6fb070449801 | 720 | samples | Apache License 2.0 |
app/src/main/java/com/mzp/player/http/ToByteConvertFactory.kt | ice-coffee | 148,597,213 | false | {"Java": 36821, "Kotlin": 21473, "C++": 262} | package com.mzp.player.http
import android.util.Log
import okhttp3.MediaType
import okhttp3.RequestBody
import retrofit2.Retrofit
import okhttp3.ResponseBody
import retrofit2.Converter
import java.io.IOException
import java.lang.reflect.Type
/**
* author : ice-coffee.
* date : 2018/9/11.
* description :
*/
cla... | 1 | Java | 1 | 1 | ed6f9627f11a614d84a2e015dcc8d2e35290d79b | 1,268 | VideoDownLoader | Apache License 2.0 |
compiler/testData/compileKotlinAgainstCustomBinaries/typeAliasesAreInvisibleInCompatibilityMode/main.kt | JakeWharton | 99,388,807 | true | null | import test.*
import test.Str
fun use(
str: Str,
l: L<Str>,
nested: Klass.Nested
) {}
| 0 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 111 | kotlin | Apache License 2.0 |
app/src/main/java/com/first/kotlin/activity/GridViewActivity.kt | huoqiling | 149,223,868 | false | null | package com.first.kotlin.activity
import android.support.v7.widget.GridLayoutManager
import com.first.kotlin.R
import com.first.kotlin.adapter.GridAdapter
import com.first.kotlin.base.BaseActivity
import com.first.kotlin.bean.GridInfo
import com.first.kotlin.util.GridLayoutItemDecoration
import com.first.kotlin.view.C... | 1 | null | 1 | 1 | 422b0549b612af3f83870d584e0867d1c18342d1 | 1,831 | KotinStudy | Apache License 2.0 |
Chapter04/Stack.kt | PacktPublishing | 125,371,513 | false | null | import java.util.Arrays
class Stack<E> {
private val minCapacityIncrement = 12
private var elements: Array<Any?>
private var size = 0
constructor() {
this.elements = arrayOf()
}
constructor(initialCapacity: Int) {
this.elements = arrayOfNulls(initialCapacity)
}
const... | 11 | Kotlin | 37 | 98 | eafcddb954b8c61af01563e50d6a9010fa8ae44f | 4,482 | Hands-On-Data-Structures-and-Algorithms-with-Kotlin | MIT License |
MaterialMe/kotlin/src/main/java/com/example/android/kotlin/materialme/DetailActivity.kt | leftleg07 | 159,279,575 | true | {"Java": 427290, "Kotlin": 95563} | package com.example.android.kotlin.materialme
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.widget.ImageView
import android.widget.TextView
import com.bumptech.glide.Glide
class DetailActivity : AppCompatActivity() {
companion object {
const val EXTRA_IMAGE_RESOUR... | 0 | Java | 0 | 0 | 7c2c09ede6f133f34cc4ab605b5365078522e8b2 | 1,195 | android-fundamentals-apps-v2 | Apache License 2.0 |
processor/src/main/kotlin/com/dbflow5/processor/definition/behavior/ColumnBehaviors.kt | agrosner | 24,161,015 | false | null | package com.dbflow5.processor.definition.behavior
import com.dbflow5.annotation.ForeignKeyAction
import com.dbflow5.processor.definition.column.ColumnDefinition
/**
* Defines how Primary Key columns behave. If has autoincrementing column or ROWID, the [associatedColumn] is not null.
*/
data class PrimaryKeyColumnBe... | 38 | Kotlin | 613 | 4,865 | e1b6211dac6ddc0aa0c1c9a76a116478ccf92b86 | 774 | DBFlow | MIT License |
app-aqi/src/main/java/com/android/app_aqi/model/SiteModel.kt | blelalr | 245,851,898 | false | null | package com.android.app_aqi.model
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.google.gson.annotations.SerializedName
import java.io.Serializable
@Entity(tableName = "ALL_SITE")
data class SiteModel @JvmOverloads constructor(
@PrimaryKey(autoGenerate = false)
@field:... | 1 | null | 1 | 1 | 73c3365801ea90c99f1c742b71f5a09a42391edc | 966 | appcore-android | Apache License 2.0 |
app/src/main/java/org/tokend/template/features/redeem/model/RedemptionRequest.kt | tokend | 192,905,357 | false | {"Kotlin": 1830732, "HTML": 58776, "Java": 21685} | package org.tokend.template.features.redeem.model
import org.tokend.template.features.history.model.SimpleFeeRecord
import org.tokend.template.features.send.model.PaymentFee
import org.tokend.wallet.Base32Check
import org.tokend.wallet.NetworkParams
import org.tokend.wallet.Transaction
import org.tokend.wallet.Transac... | 1 | Kotlin | 1 | 6 | 05bb971859713830a9c229206dc9f525ce80f754 | 7,006 | conto-android-client | Apache License 2.0 |
application/src/main/java/de/pbauerochse/worklogviewer/fx/plugins/WorklogViewerStateAdapter.kt | pbauerochse | 34,003,778 | false | {"Kotlin": 384587, "Java": 27928, "CSS": 20807, "Shell": 638} | package de.pbauerochse.worklogviewer.fx.plugins
import de.pbauerochse.worklogviewer.plugins.state.UIState
import de.pbauerochse.worklogviewer.plugins.state.WorklogViewerState
import de.pbauerochse.worklogviewer.timereport.TimeReport
class WorklogViewerStateAdapter(
override val currentTimeReport: TimeReport?,
... | 7 | Kotlin | 10 | 38 | 7bd7ca9a1eed08184bf30400160d424bee2ee258 | 368 | youtrack-worklog-viewer | MIT License |
src/main/kotlin/com/github/gitofleonardo/simplesqlitebrowser/Extensions.kt | gitofleonardo | 528,872,699 | false | null | package com.github.gitofleonardo.simplesqlitebrowser
import com.github.gitofleonardo.simplesqlitebrowser.mvvm.ViewModel
import com.intellij.openapi.ui.ComboBox
import kotlinx.coroutines.*
import kotlinx.coroutines.swing.Swing
import java.awt.event.*
import javax.swing.JComponent
import javax.swing.text.JTextComponent
... | 3 | null | 2 | 3 | 735c89cd9f71781b09817bfe5ac3d68509b92f9f | 2,564 | SimpleSqliteBrowser | Apache License 2.0 |
app/src/main/java/com/ardakazanci/anlikmotivasyon/ui/main/ui/messages/MessagesSendFragment.kt | ardakazanci | 229,326,545 | false | null | package com.ardakazanci.anlikmotivasyon.ui.main.ui.messages
import androidx.lifecycle.ViewModelProviders
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.l... | 1 | null | 5 | 45 | 0b3628b9c9757904f1e4dbdeb757fb1ab84c4704 | 2,663 | Heyyoo | Apache License 2.0 |
ui/base/src/main/java/kr/co/architecture/model/CharactersUiModel.kt | squart300kg | 701,691,819 | false | {"Kotlin": 108442} | package kr.co.architecture.model
import androidx.annotation.DrawableRes
import kr.co.architecture.base.R
import kr.co.architecture.repository.model.CharacterDataModel
data class CharactersUiModel(
val id: Int,
val thumbnail: String,
val name: String,
val description: String,
val urlCount: Int,
... | 9 | Kotlin | 0 | 3 | 66c1c99f0f385a052822b9b81ab15281ddb06c6e | 1,422 | MarvelCharacterList | Apache License 2.0 |
app/src/main/java/app/allever/android/lib/project/DialogActivity.kt | devallever | 446,030,743 | false | null | package app.allever.android.lib.project
import app.allever.android.lib.common.BaseActivity
import app.allever.android.lib.mvvm.base.BaseViewModel
import app.allever.android.lib.project.databinding.ActivityDialogBinding
class DialogActivity: BaseActivity<ActivityDialogBinding, DialogViewModel>() {
override fun ini... | 1 | null | 8 | 52 | b5ec21078c8a6f509822c763fc90d6106b64bde3 | 1,383 | AndroidBaseLibs | Apache License 2.0 |
app/src/main/java/dk/itu/moapd/scootersharing/babb/model/ScooterViewModel.kt | BabetteB | 620,201,190 | false | null | package dk.itu.moapd.scootersharing.babb.model
import androidx.lifecycle.ViewModel
class ScooterViewModel : ViewModel() {
var activeScooterId : String? = null
} | 0 | Kotlin | 0 | 0 | 194acf4555074c8ed6384465147a8041c6f7ce51 | 167 | ScooterSharing_MoApD | MIT License |
Kazak-Android/core/src/main/kotlin/io/kazak/model/Session.kt | frakbot | 38,201,466 | false | {"Java": 137822, "Kotlin": 29863, "XSLT": 6315, "Groovy": 5469} | package io.kazak.model
interface Session : Event {
fun rooms(): List<Room>
}
| 2 | null | 1 | 1 | a33a0271ee8235fd23f90ad33b818ce4d3b7c856 | 84 | kazak-android | MIT License |
domain/src/test/java/com/shopapp/domain/interactor/blog/ArticleListUseCaseTest.kt | rubygarage | 105,554,295 | false | null | package com.shopapp.domain.interactor.blog
import com.nhaarman.mockito_kotlin.verify
import com.shopapp.domain.repository.BlogRepository
import com.shopapp.gateway.entity.SortType
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.Mock
import org.mockito.junit.MockitoJUnit... | 6 | Kotlin | 100 | 148 | 133b0060626a064b437683c3f0182d2bb3066bdb | 820 | shopapp-android | Apache License 2.0 |
recorder-view/src/main/java/com/tougee/recorderview/AudioScaleView.kt | Tougee | 133,962,690 | false | null | package com.tougee.recorderview
import android.animation.Animator
import android.animation.AnimatorListenerAdapter
import android.animation.ValueAnimator
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.util.AttributeSet
import and... | 2 | null | 13 | 51 | d6a4a434e16af67e988e9d5e17188ffc117d63ed | 3,780 | AudioRecorderView | Apache License 2.0 |
gson-json/src/main/kotlin/ru/inforion/lab403/common/json/serializers/KTypeSerializer.kt | inforion | 175,944,783 | false | null | package ru.inforion.lab403.common.json.serializers
import com.google.gson.JsonSerializationContext
import com.google.gson.JsonSerializer
import ru.inforion.lab403.common.json.serialize
import java.lang.reflect.Type
import kotlin.reflect.KType
object KTypeSerializer : JsonSerializer<KType> {
override fun serialize... | 0 | Kotlin | 1 | 1 | 35b3950832aec0ec52ce46cf0e4f704b8e21f0ea | 440 | kotlin-extensions | MIT License |
defitrack-rest/defitrack-protocol-services/defitrack-quickswap/src/main/java/io/codechef/defitrack/protocol/quickswap/staking/DQuickStakingMarketService.kt | TheMoneyLisa | 426,179,020 | true | {"Kotlin": 431663, "Dockerfile": 3748, "Shell": 3011, "Java": 2138} | package io.codechef.defitrack.protocol.quickswap.staking
import io.codechef.defitrack.staking.StakingMarketService
import io.codechef.defitrack.staking.domain.RewardToken
import io.codechef.defitrack.staking.domain.StakedToken
import io.codechef.defitrack.staking.domain.StakingMarketElement
import io.defitrack.abi.ABI... | 0 | Kotlin | 0 | 0 | 5b7d4811204d2ffa37556fb9b8b8a0f08c413dc9 | 2,348 | defitrack-core | MIT License |
domain/src/main/java/com/example/domain/marker/valueObject/Company.kt | juanfranem | 330,270,835 | false | null | package com.example.domain.marker.valueObject
import com.example.domain.marker.exception.CompanyMustBeMoreThanZero
import com.example.domain.shared.ValueObject
data class Company(val value: Int): ValueObject<Int>(value) {
init {
checkCompanyMustBeMoreThanZero()
}
private fun checkCompanyMustBeMo... | 0 | Kotlin | 0 | 0 | d45f95edc83e3f5d3c9edfecb85b3444f26aecaa | 424 | Marker-Map | MIT License |
px-checkout/src/test/java/com/mercadopago/android/px/internal/mapper/instructions/InstructionInfoMapperTest.kt | mercadopago | 49,529,486 | false | null | package com.mercadopago.android.px.internal.mapper.instructions
import com.mercadopago.android.px.internal.features.payment_result.instruction.InstructionInfo
import com.mercadopago.android.px.internal.features.payment_result.instruction.mapper.InstructionInfoMapper
import org.junit.Assert
import org.junit.Test
import... | 38 | null | 69 | 94 | f5cfa00ea5963f9153a237c3f329af5d2d6cd87f | 2,385 | px-android | MIT License |
src/main/kotlin/views/brainView/FocusedItemBox.kt | jackson-godfrey | 455,049,973 | false | {"Kotlin": 42674} | package views.brainView
import brain.Brain
import main.GameConfig
import org.hexworks.zircon.api.builder.Builder
import org.hexworks.zircon.api.component.ColorTheme
import org.hexworks.zircon.api.component.Component
import org.hexworks.zircon.api.component.builder.base.BaseComponentBuilder
import org.hexworks.zircon.a... | 0 | Kotlin | 0 | 0 | eed9c10e67a4e53f07f799ed05faf68596e4ba3b | 2,475 | Roguelike | Apache License 2.0 |
library-android/src/main/java/io/hkhc/recyclerkit/legacy/TextViewHolder.kt | hkhc | 263,622,439 | false | null | /*
* Copyright (c) 2020. <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 0 | Kotlin | 0 | 0 | a0041a0b3d45fda0ed48785af65ac01fcf48d7d3 | 1,035 | recyclerviewkit | BSD Source Code Attribution |
lib/src/main/kotlin/be/zvz/klover/container/MediaContainerRegistry.kt | organization | 673,130,266 | false | null | package be.zvz.klover.container
class MediaContainerRegistry(val all: List<MediaContainerProbe>) {
fun find(name: String): MediaContainerProbe? {
for (probe in all) {
if (name == probe.name) {
return probe
}
}
return null
}
companion object ... | 1 | Kotlin | 0 | 2 | 06e801808933ff8c627543d579c4be00061eb305 | 695 | Klover | Apache License 2.0 |
src/test/kotlin/com/sainsburys/k2zpl/command/FieldDataTest.kt | sainsburys-tech | 819,578,325 | false | {"Kotlin": 56270} | package com.sainsburys.k2zpl.command
import com.sainsburys.k2zpl.k2zpl
import com.sainsburys.k2zpl.testBuildString
import io.kotest.core.spec.IsolationMode
import io.kotest.core.spec.style.DescribeSpec
import io.kotest.matchers.shouldBe
class FieldDataTest : DescribeSpec({
isolationMode = IsolationMode.InstancePe... | 8 | Kotlin | 1 | 4 | c6596157368c41b3337f60310060f8243bdd4a2c | 1,398 | k2zpl | MIT License |
common/src/main/kotlin/org/valkyrienskies/simplici/content/block/engine/car/tractor/TractorEngineBlockEntity.kt | Dusty-Development | 844,028,643 | false | {"Kotlin": 274011, "Java": 11096} | package org.valkyrienskies.simplici.content.block.engine.car.tractor
import net.minecraft.core.BlockPos
import net.minecraft.world.level.GameRules
import net.minecraft.world.level.block.state.BlockState
import org.valkyrienskies.simplici.api.util.InterpolationCurve
import org.valkyrienskies.simplici.content.block.ModB... | 8 | Kotlin | 0 | 1 | 96c5ea67740d19a92914a5f0324216e2ff37de98 | 1,480 | Simplici | Apache License 2.0 |
app/src/main/kotlin/me/xizzhu/android/joshua/translations/TranslationsAdapter.kt | xizzhu | 173,533,770 | false | null | /*
* Copyright (C) 2023 Xizhi Zhu
*
* 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 ... | 23 | Kotlin | 7 | 26 | db43163619c37fd7febd208eb7bde2ffefc4fa99 | 6,046 | Joshua | Apache License 2.0 |
multisrc/overrides/madara/manhuaus/src/ManhuaUS.kt | IhToN | 345,428,328 | true | {"Kotlin": 3166669, "Shell": 3028, "Java": 608} | package eu.kanade.tachiyomi.extension.en.manhuaus
import eu.kanade.tachiyomi.multisrc.madara.Madara
class ManhuaUS : Madara("ManhuaUS", "https://manhuaus.com", "en") {
override val pageListParseSelector = "div.page-break, li.blocks-gallery-item"
}
| 0 | Kotlin | 0 | 0 | 8173fb390fb7a51e3559189ffb1041e081d29306 | 254 | tachiyomi-extensions | Apache License 2.0 |
project/skyway_android_sdk/sfubot/src/main/java/com/ntt/skyway/plugin/sfuBot/SFUBot.kt | skyway | 594,002,280 | false | null | /*
* Copyright © 2023 NTT Communications. All rights reserved.
*/
package com.ntt.skyway.plugin.sfuBot
import com.google.gson.Gson
import com.google.gson.JsonObject
import com.ntt.skyway.core.channel.Publication
import com.ntt.skyway.core.channel.Channel
import com.ntt.skyway.core.channel.member.Member
import com.n... | 0 | Kotlin | 0 | 1 | 64dbd4783642a4094a7dff1cb6fe1d0c02b32963 | 2,711 | android-sdk | MIT License |
ktor/src/jvmMain/kotlin/multiplatform/ktor/ServerExts.kt | juggernaut0 | 201,797,664 | false | null | package multiplatform.ktor
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.auth.*
import io.ktor.server.request.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import io.ktor.util.*
import io.ktor.util.pipeline.*
import kotlinx.serialization.DeserializationStrategy
im... | 0 | Kotlin | 0 | 0 | 4e15feab87b5ff4be16641b587309239135e9b1f | 3,213 | multiplatform-utils | MIT License |
omnitrack_core/src/main/kotlin/kr/ac/snu/hcil/omnitrack/core/fields/validators/Validator.kt | yghokim | 62,933,149 | false | null | package kr.ac.snu.hcil.omnitrack.core.fields.validators
import com.google.gson.JsonArray
import kr.ac.snu.hcil.android.common.time.TimeHelper
import kr.ac.snu.hcil.omnitrack.core.types.TimePoint
import kr.ac.snu.hcil.omnitrack.core.types.TimeSpan
object ValidationTypes {
const val SameDayTimeInputValidator = "sa... | 9 | Kotlin | 4 | 8 | f13e5c157d5646c3f9493c4fdc25ed3b1fc2e296 | 1,097 | omnitrack_android | MIT License |
streaming/src/com/android/tools/idea/streaming/actions/StreamingBackButtonAction.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 1,022 | android | Apache License 2.0 |
app/src/main/java/com/annas/playground/di/ProductModule.kt | annasta13 | 826,067,757 | false | {"Kotlin": 230187} | package com.annas.playground.di
import com.annas.playground.data.domain.usecase.getproductdetail.GetProductDetail
import com.annas.playground.data.domain.usecase.getproductdetail.GetProductDetailImpl
import com.annas.playground.data.domain.usecase.getproductlist.GetProductList
import com.annas.playground.data.domain.u... | 0 | Kotlin | 0 | 1 | a8fa4467421d9c40ff9945c07b60f3108120cd9b | 1,993 | playground | Apache License 2.0 |
1812.Determine Color of a Chessboard Square.kt | sarvex | 842,260,390 | false | {"Kotlin": 1775678, "PowerShell": 418} | internal class Solution {
fun squareIsWhite(coordinates: String): Boolean {
return (coordinates[0].code + coordinates[1].code) % 2 == 1
}
}
| 0 | Kotlin | 0 | 0 | 71f5d03abd6ae1cd397ec4f1d5ba04f792dd1b48 | 148 | kotlin-leetcode | MIT License |
1812.Determine Color of a Chessboard Square.kt | sarvex | 842,260,390 | false | {"Kotlin": 1775678, "PowerShell": 418} | internal class Solution {
fun squareIsWhite(coordinates: String): Boolean {
return (coordinates[0].code + coordinates[1].code) % 2 == 1
}
}
| 0 | Kotlin | 0 | 0 | 71f5d03abd6ae1cd397ec4f1d5ba04f792dd1b48 | 148 | kotlin-leetcode | MIT License |
app/app/src/main/java/cn/trans88/echo/network/entities/User.kt | Trans88 | 287,194,403 | false | null | package cn.trans88.echo.network.entities
import android.os.Parcelable
import cn.trans88.common.anno.PoKo
import kotlinx.android.parcel.Parcelize
@PoKo
@Parcelize
data class BasicUser(
var login: String,
var avatar_url: String,
var html_url: String
): Parcelable
@PoKo
@Parcelize
data class User (var login... | 1 | null | 1 | 1 | 0a49d846639969a3f2778de29554bc92db2a31ae | 1,201 | Echo | Apache License 2.0 |
app/src/main/java/com/betulnecanli/sailormoonapp/domain/model/SailorMoon.kt | betulnecanli | 601,536,190 | false | {"Kotlin": 107627} | package com.betulnecanli.sailormoonapp.domain.model
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.betulnecanli.sailormoonapp.utils.Constants.SAILOR_DATABASE_TABLE
import com.google.gson.annotations.SerializedName
import kotlinx.serialization.Serializable
@Serializable
@Entity(tableName = SAI... | 1 | Kotlin | 0 | 5 | a91ac59db1f964426a1e7d52caa0e83766e08f0a | 611 | Sailor-Moon-App-Compose | Apache License 2.0 |
src/main/kotlin/no/nav/familie/ef/sak/iverksett/oppgaveforbarn/BarnTilUtplukkForOppgave.kt | navikt | 206,805,010 | false | null | package no.nav.familie.ef.sak.iverksett.oppgaveforbarn
import org.springframework.data.annotation.Id
import org.springframework.data.relational.core.mapping.Column
import java.time.LocalDate
import java.util.UUID
data class BarnTilUtplukkForOppgave(
@Id
val behandlingId: UUID,
@Column("fodselsnummer_soker... | 4 | Kotlin | 2 | 0 | 68b0c68f3001e5a58940a1e9148090c1a1030cd5 | 498 | familie-ef-sak | MIT License |
app/src/main/java/fr/damienc/smash_or_pass/fragments/RegisterFragment.kt | damiencren | 596,781,900 | false | {"Kotlin": 19769} | package fr.damienc.smash_or_pass.fragments
import LoginFragment
import android.content.ContentValues
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.EditText
import android.widg... | 0 | Kotlin | 0 | 0 | 7d9c1e0af1b86db4b176158ca273f255a145b6ed | 2,158 | smashorpass | Apache License 2.0 |
app/src/main/java/xyz/artenes/budget/app/category/editor/CategoryEditorViewModel.kt | Artenes | 787,679,297 | false | {"Kotlin": 214616, "Shell": 3210} | package xyz.artenes.budget.app.category.editor
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Storefront
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.toArgb
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.lifecycle.View... | 0 | Kotlin | 0 | 0 | de6a7065dc74920f7bad86d2ae461600aa61d58c | 6,246 | BudgetApp | Apache License 2.0 |
src/main/kotlin/klev/db/groups/GroupsRoutes.kt | torland-klev | 822,687,443 | false | {"Kotlin": 88915} | package klev.db.groups
import io.ktor.http.HttpStatusCode
import io.ktor.server.application.ApplicationCall
import io.ktor.server.request.receive
import io.ktor.server.response.respond
import klev.db.groups.invitations.InvitationService
import klev.db.groups.memberships.GroupMembershipService
import klev.db.users.User... | 2 | Kotlin | 0 | 0 | 956b68adfe173071deb3d7f9a85aabe498db26b0 | 4,882 | swiftgift-api | MIT License |
smartpack-compile/src/main/kotlin/com/loong/chow/smartpacket/compiler/writer/CustomeFieldCodeWiter.kt | loongchow | 184,882,231 | false | {"Java": 112772, "Kotlin": 68964} | package com.loong.chow.smartpacket.compiler.writer
import com.loong.chow.UnpackHelper
import com.loong.chow.smartpacket.compiler.helper
import com.loong.chow.smartpacket.compiler.packMethodName
import com.loong.chow.smartpacket.compiler.unPackMethodName
import com.squareup.javapoet.ClassName
import com.squareup.javapo... | 1 | Java | 1 | 4 | ba04c31ead3892c45080897b67038131770ffd8e | 2,273 | SmartPacket | Apache License 2.0 |
domain/src/main/java/com/example/domain/models/BookDomain.kt | yusuf0405 | 484,801,816 | false | {"Kotlin": 1421124} | package com.example.domain.models
import java.util.*
data class BookDomain(
var author: String,
var createdAt: Date,
var id: String,
var page: Int,
var publicYear: String,
var book: BookPdfDomain,
var title: String,
val description: String,
var genreIds: List<String>,
var isExc... | 1 | Kotlin | 1 | 3 | e1ecdb14efbf7a25643ded1319841712f5e12a3b | 1,276 | BookLoverFinalApp | Apache License 1.1 |
src/test/kotlin/dev/shtanko/algorithms/leetcode/GrayCodeTest.kt | ashtanko | 203,993,092 | false | {"Kotlin": 5909261, "Shell": 1168, "Makefile": 917} | /*
* 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... | 4 | Kotlin | 0 | 19 | c4c83b1cc4d48f6c607c5208dd25bb9138f062e8 | 2,078 | kotlab | Apache License 2.0 |
app/src/main/java/com/kaedenoki/moviecorner/ui/adapter/anime/RecyclerItemAnime.kt | Kaede-No-Ki | 290,696,286 | false | null | package com.kaedenoki.moviecorner.ui.adapter.anime
import android.content.Context
import android.content.Intent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import coil.load
import coil.transform.RoundedCornersTransformation
... | 8 | Kotlin | 8 | 43 | ea72dc71dfc43e41a6566428db69c139c474df6e | 2,718 | moviecorner-app | MIT License |
app/src/main/java/com/mhappening/gameclock/data/workManager/worker/AlarmWorker.kt | Matt-Haywood | 769,928,478 | false | {"Kotlin": 276837} | package com.mhappening.gameclock.data.workManager.worker
import android.content.Context
import android.content.pm.ServiceInfo
import android.util.Log
import androidx.hilt.work.HiltWorker
import androidx.work.CoroutineWorker
import androidx.work.ForegroundInfo
import androidx.work.WorkerParameters
import com.mhappening... | 0 | Kotlin | 0 | 1 | 96fab1ca52d9ddede722300c1c42fe6324c4110a | 4,367 | Game-Clock | Apache License 2.0 |
wear/watchface/watchface-complications-data-source-samples/src/main/java/androidx/wear/watchface/complications/datasource/samples/NonInterpolatedColorRampDataSourceService.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 29 | null | 1011 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 3,002 | androidx | Apache License 2.0 |
tmp/arrays/youTrackTests/9496.kt | DaniilStepanov | 228,623,440 | false | {"Git Config": 1, "Gradle": 6, "Text": 3, "INI": 5, "Shell": 2, "Ignore List": 3, "Batchfile": 2, "Markdown": 2, "Kotlin": 15942, "JavaScript": 4, "ANTLR": 2, "XML": 12, "Java": 4} | // Original bug: KT-11634
interface A {
fun foo(): Int
}
class AImpl() : A {
override fun foo(): Int = 10
}
open class AFabric {
open fun createA(): A = AImpl()
}
class AWrapperFabric : AFabric() {
override fun createA(): A =
// This way everything is OK:
// val a = super.createA()
... | 1 | null | 8 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 528 | bbfgradle | Apache License 2.0 |
tmp/arrays/youTrackTests/9496.kt | DaniilStepanov | 228,623,440 | false | {"Git Config": 1, "Gradle": 6, "Text": 3, "INI": 5, "Shell": 2, "Ignore List": 3, "Batchfile": 2, "Markdown": 2, "Kotlin": 15942, "JavaScript": 4, "ANTLR": 2, "XML": 12, "Java": 4} | // Original bug: KT-11634
interface A {
fun foo(): Int
}
class AImpl() : A {
override fun foo(): Int = 10
}
open class AFabric {
open fun createA(): A = AImpl()
}
class AWrapperFabric : AFabric() {
override fun createA(): A =
// This way everything is OK:
// val a = super.createA()
... | 1 | null | 8 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 528 | bbfgradle | Apache License 2.0 |
server/src/main/kotlin/com/hatshop_api/models/ShippingRegion.kt | luisvt | 37,780,443 | false | null | package com.hatshop_api.models
import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.GeneratedValue
import jakarta.persistence.Id
import jakarta.persistence.OneToMany
import jakarta.validation.constraints.NotEmpty
@Entity
class ShippingRegion(
@NotEmpty
@Column(nullable = ... | 1 | null | 1 | 1 | 360a4076767c8970dd16f324c9af296cc6c4db3c | 624 | hatshop | Apache License 2.0 |
sample-app/src/androidTest/java/com/atiurin/sampleapp/tests/compose/ComposeListTest.kt | open-tool | 312,407,423 | false | {"Kotlin": 861507, "Java": 13304, "HTML": 3222, "Swift": 594, "Batchfile": 236, "Shell": 236, "CSS": 102} | package com.atiurin.sampleapp.tests.compose
import androidx.compose.ui.test.hasAnyDescendant
import androidx.compose.ui.test.hasTestTag
import androidx.compose.ui.test.hasText
import androidx.compose.ui.test.performScrollToIndex
import com.atiurin.sampleapp.activity.ComposeListActivity
import com.atiurin.sampleapp.com... | 8 | Kotlin | 9 | 99 | 7d19d4e0a653acc87b823b7b0c806b226faafb12 | 9,819 | ultron | Apache License 2.0 |
src/main/kotlin/org/crystal/intellij/lang/psi/CrUnionTypeElement.kt | asedunov | 353,165,557 | false | {"Kotlin": 1661507, "Java": 554445, "Crystal": 245131, "Lex": 192822, "HTML": 445} | package org.crystal.intellij.lang.psi
import com.intellij.lang.ASTNode
import com.intellij.util.containers.JBIterable
import org.crystal.intellij.lang.parser.CR_UNION_TYPE
import org.crystal.intellij.lang.stubs.api.CrTypeStub
class CrUnionTypeElement : CrTypeElement<CrUnionTypeElement> {
constructor(stub: CrTypeS... | 11 | Kotlin | 4 | 33 | 2e255da6c56a33109b8c58a0aa1a692abf977da2 | 588 | intellij-crystal-lang | Apache License 2.0 |
app/src/main/java/org/bxkr/octodiary/models/userfeed/RecentMark.kt | OctoDiary | 474,135,407 | false | null | package org.bxkr.octodiary.models.userfeed
import org.bxkr.octodiary.models.shared.Mark
data class RecentMark(
val categories: List<Category>,
val criteriaMarkType: String,
val date: Int,
val indicator: Any?,
val isFinal: Boolean,
val isImportant: Boolean,
val isNew: Boolean,
val lesso... | 0 | Kotlin | 0 | 4 | c5b4abf25b6414198dd9f4b53d1276829c47ca8d | 476 | OctoDiary-kt | MIT License |
week 7/guessingGame.kt | ftwochi | 761,340,966 | false | {"Kotlin": 8825} |
fun main() {
var userInput: Int? = null
while (userInput == null) {
print("Guess the number!")
val input = readLine()
try {
userInput = input?.toInt()
if ((userInput != null) && (userInput < 3)) {
println("Too high, please tyr again.")
... | 0 | Kotlin | 0 | 0 | 521df6e67a2d4ce6c5b146464b099c55051020aa | 496 | kotlin | MIT License |
src/test/kotlin/it/skrape/selects/html5/InteractiveElementPickersKtTest.kt | fejd | 214,291,752 | true | {"Kotlin": 138113, "HTML": 1597} | package it.skrape.selects.html5
import assertk.assertThat
import assertk.assertions.isEqualTo
import it.skrape.aStandardTag
import it.skrape.aValidResult
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.Assertions.*
internal class InteractiveElementPickersKtTest {
@Test
fun `can parse details-... | 0 | null | 0 | 0 | c921e5a79c77176ac2121a64f4891bb4e9bb53ea | 1,296 | skrape.it | MIT License |
src/main/kotlin/com/solarexsoft/kotlinexercise/K9.3.kt | flyfire | 113,817,538 | false | null | @file:JvmName(name = "TestInline")
package com.solarexsoft.kotlinexercise
/**
* Created by houruhou on 2018/11/8.
* Desc:
*/
@Retention(AnnotationRetention.SOURCE)
annotation class ABC
fun main(args: Array<String>) {
val a: List<Number> = listOf(1, 2, 3)
arrayListOf<Int>()
val b: Comparable<Int> = obj... | 0 | Kotlin | 0 | 0 | 0d3f7d2449553b3c9025bcc65233102f4b5371b2 | 676 | JavaWithKotlin | Apache License 2.0 |
lwb/spoofax.lwb.compiler.gradle/src/main/kotlin/mb/spoofax/lwb/compiler/gradle/LanguagePlugin.kt | Apanatshka | 431,905,335 | true | {"Java": 3185723, "Kotlin": 213405, "Mustache": 173515, "Makefile": 10305, "AMPL": 313} | @file:Suppress("UnstableApiUsage")
package mb.spoofax.lwb.compiler.gradle
import mb.cfg.CompileLanguageInput
import mb.cfg.CompileLanguageSpecificationInput
import mb.cfg.task.CfgRootDirectoryToObjectException
import mb.common.message.KeyedMessages
import mb.common.message.Message
import mb.common.message.Messages
im... | 0 | Java | 0 | 0 | cb77f6914e655bcae95aa62cc51a43d8eff6e0ca | 17,366 | spoofax-pie | Apache License 2.0 |
RQ2_Kotlin/src/main/kotlin/ch/uzh/ifi/seal/smr/reconfigure/analysis/shorteriterations/Variability.kt | stewue | 200,048,959 | false | {"Text": 5, "Markdown": 6, "Gradle": 6, "Shell": 3, "Ignore List": 5, "Batchfile": 3, "INI": 3, "XML": 3, "Kotlin": 140, "Python": 43, "JavaScript": 1, "Java": 19} | package ch.uzh.ifi.seal.smr.reconfigure.analysis.shorteriterations
import ch.uzh.ifi.seal.smr.reconfigure.utils.all
import ch.uzh.ifi.seal.smr.reconfigure.utils.getHistogramItems
import org.openjdk.jmh.reconfigure.helper.HistogramHelper
import org.openjdk.jmh.reconfigure.helper.HistogramItem
import org.openjdk.jmh.rec... | 0 | Kotlin | 0 | 0 | 0fb825e196f386c628f95524aa9c80af2126617e | 3,858 | masterthesis-evaluation | Apache License 2.0 |
keel-sql/src/main/kotlin/com/netflix/spinnaker/keel/sql/SqlArtifactRepository.kt | louisjimenez | 186,893,833 | true | {"Kotlin": 389787, "Shell": 2176} | package com.netflix.spinnaker.keel.sql
import com.netflix.spinnaker.keel.api.ArtifactType
import com.netflix.spinnaker.keel.api.DeliveryArtifact
import com.netflix.spinnaker.keel.api.randomUID
import com.netflix.spinnaker.keel.persistence.ArtifactAlreadyRegistered
import com.netflix.spinnaker.keel.persistence.Artifact... | 0 | Kotlin | 0 | 0 | 2783bf7748b5aa468239c86b54c0c9a3fa43b08f | 2,736 | keel | Apache License 2.0 |
app/src/main/java/ak/android/metalktalk/profile/EditProfileActivity.kt | agungkurn | 216,590,385 | false | null | package ak.android.metalktalk.profile
import ak.android.metalktalk.R
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProviders
import androidx.preference.EditTextPreference
import androidx.preference... | 0 | Kotlin | 0 | 1 | 638bf0cf29e414f1266caa2dd6095292419c41ac | 2,174 | MeTalkTalk | Apache License 2.0 |
app/src/test/java/com/example/demoapp/movie_list/presentation/details/MovieDetailsViewModelTest.kt | gomezmedinamoises | 797,519,762 | false | {"Kotlin": 64633} | package com.example.demoapp.movie_list.presentation.details
/**
* @author <NAME>
*/
class MovieDetailsViewModelTest {
} | 0 | Kotlin | 0 | 0 | 2d35ad9d6a49e0950add2af068bf9157f93ba387 | 123 | demo_android_app | MIT License |
HelloArchitectureRetrofit/data/src/main/java/dev/seabat/android/helloarchitectureretrofit/data/datasource/github/GithubApiService.kt | seabat | 636,759,391 | false | {"Kotlin": 77220} | package dev.seabat.android.helloarchitectureretrofit.data.datasource.github
import dev.seabat.android.helloarchitectureretrofit.data.datasource.github.model.GetAllRepoResponse
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query
interface GithubApiService {
@GET("search/repositories")
f... | 0 | Kotlin | 0 | 0 | 81600eceb36b4089f1ab252e1fed11b63e9c4ab0 | 386 | hello-architecture-retrofit | Apache License 2.0 |
src/main/kotlin/mod/chloeprime/elytrabooster/common/item/FuelBoostedElytraItem.kt | ChloePrime | 369,410,062 | false | null | package mod.chloeprime.elytrabooster.common.item
import mod.chloeprime.elytrabooster.api.common.IBoostedElytraItem
import mod.chloeprime.elytrabooster.api.common.IElytraInputCap
import mod.chloeprime.elytrabooster.common.config.FuelElytraConfigEntry
import mod.chloeprime.elytrabooster.common.util.TextFormats
import mo... | 1 | Kotlin | 0 | 1 | 7bf431e2f2b4912fe988896c8ee36f1efb737d06 | 5,792 | ElytraBooster | MIT License |
app/src/main/java/com/aquispe/wonkainc/ui/model/EmployeeUiModel.kt | arman-visual | 674,817,363 | false | null | package com.aquispe.wonkainc.ui.model
data class EmployeeUiModel(
val age: Int,
val country: String,
val email: String,
val favorite: FavoriteUiModel,
val firstName: String,
val gender: String,
val height: Int,
val id: Int,
val image: String,
val lastName: String,
val profes... | 0 | Kotlin | 0 | 0 | 748ecfcea8999d5f05a8784e114fd60f7c07f06e | 335 | WonkaInc | Apache License 2.0 |
designer/src/com/android/tools/idea/common/scene/target/ComponentAssistantViewAction.kt | JetBrains | 60,701,247 | false | {"Kotlin": 53054415, "Java": 43443054, "Starlark": 1332164, "HTML": 1218044, "C++": 507658, "Python": 191041, "C": 71660, "Lex": 70302, "NSIS": 58238, "AIDL": 35382, "Shell": 29838, "CMake": 27103, "JavaScript": 18437, "Smali": 7580, "Batchfile": 7357, "RenderScript": 4411, "Clean": 3522, "Makefile": 2495, "IDL": 19} | /*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | Kotlin | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 5,326 | android | Apache License 2.0 |
android/DartsScorecard/data/src/main/java/nl/entreco/data/db/turn/LocalTurnRepository.kt | Entreco | 110,022,468 | false | null | package nl.entreco.data.db.turn
import androidx.annotation.WorkerThread
import nl.entreco.data.db.DscDatabase
import nl.entreco.domain.model.Turn
import nl.entreco.domain.repository.TurnRepository
/**
* Created by Entreco on 23/12/2017.
*/
class LocalTurnRepository(db: DscDatabase, private val mapper: TurnMapper) :... | 4 | null | 1 | 1 | a031a0eeadd0aa21cd587b5008364a16f890b264 | 972 | Darts-Scorecard | Apache License 2.0 |
src/test/kotlin/no/nav/brukerdialog/ytelse/omsorgspengeraleneomsorg/kafka/OMPAleneomsorgSoknadKonsumentTest.kt | navikt | 585,578,757 | false | {"Kotlin": 1442549, "Handlebars": 126943, "Dockerfile": 98} | package no.nav.brukerdialog.ytelse.omsorgspengeraleneomsorg.kafka
import io.mockk.coEvery
import io.mockk.coVerify
import no.nav.brukerdialog.AbstractIntegrationTest
import no.nav.brukerdialog.ytelse.omsorgspengeraleneomsorg.utils.SøknadUtils
import no.nav.brukerdialog.ytelse.omsorgspengeraleneomsorg.api.domene.Barn
i... | 4 | Kotlin | 0 | 0 | 402a0658544afc0f238f3a3c7babd0addad556b0 | 7,336 | k9-brukerdialog-prosessering | MIT License |
src/test/kotlin/no/nav/brukerdialog/ytelse/omsorgspengeraleneomsorg/kafka/OMPAleneomsorgSoknadKonsumentTest.kt | navikt | 585,578,757 | false | {"Kotlin": 1442549, "Handlebars": 126943, "Dockerfile": 98} | package no.nav.brukerdialog.ytelse.omsorgspengeraleneomsorg.kafka
import io.mockk.coEvery
import io.mockk.coVerify
import no.nav.brukerdialog.AbstractIntegrationTest
import no.nav.brukerdialog.ytelse.omsorgspengeraleneomsorg.utils.SøknadUtils
import no.nav.brukerdialog.ytelse.omsorgspengeraleneomsorg.api.domene.Barn
i... | 4 | Kotlin | 0 | 0 | 402a0658544afc0f238f3a3c7babd0addad556b0 | 7,338 | k9-brukerdialog-prosessering | MIT License |
src/main/kotlin/com/spring/starter/model/person/PersonResponse.kt | tukangk3tik | 495,493,308 | false | {"Kotlin": 30759} | package com.spring.starter.model.person
import java.time.LocalDate
data class PersonResponse(
val idNumber: String,
val fullName: String,
val placeOfBirth: String,
val dateOfBirth: LocalDate,
val gender: Short,
val bloodGroup: String,
val address: String,
val religion: String,
val ... | 0 | Kotlin | 0 | 1 | b1e06b6f1ecd2c1bf3f8a073c55fe7d82f6af4a0 | 430 | population-data-center | Apache License 2.0 |
app/src/main/java/com/tbdeveloper/warikanapp/feature_roulette/domain/use_case/warikan/WarikanValidation.kt | Rokichi | 544,153,425 | false | {"Kotlin": 209273} | package com.tbdeveloper.warikanapp.feature_roulette.domain.use_case.warikan
import androidx.core.text.isDigitsOnly
import com.tbdeveloper.warikanapp.feature_roulette.domain.model.InvalidWarikanException
import com.tbdeveloper.warikanapp.feature_roulette.domain.model.resource.Warikan
class WarikanValidation {
@Thr... | 0 | Kotlin | 0 | 0 | 7f42b85cc285ce09cc93ec05e7aa22b30e007b51 | 926 | Warikan_App | Apache License 2.0 |
app/src/main/java/com/architecture/www/xmlshowcase/LeakingSingleton.kt | Johnett | 191,942,365 | false | null | package com.architecture.www.xmlshowcase
import android.view.View
/**
* This class sole purpose is to mock an android leak
* */
object LeakingSingleton {
val leakedViews = mutableListOf<View>()
} | 0 | Kotlin | 0 | 1 | 7807368ceee7305ac807e73056941b9728828793 | 201 | KotlinWorkshop | Apache License 2.0 |
tilbakekreving/infrastructure/src/main/kotlin/tilbakekreving/infrastructure/client/TilbakekrevingSoapBodyBuilder.kt | navikt | 227,366,088 | false | {"Kotlin": 10161935, "Shell": 4388, "TSQL": 1233, "Dockerfile": 1209} | @file:Suppress("HttpUrlsUsage")
package tilbakekreving.infrastructure.client
import arrow.core.Either
import no.nav.su.se.bakover.common.domain.extensions.toStringWithDecimals
import no.nav.su.se.bakover.common.ident.NavIdentBruker
import no.nav.su.se.bakover.common.sikkerLogg
import org.slf4j.LoggerFactory
import ti... | 13 | Kotlin | 1 | 1 | bb278ececbe5bc2156fe2ec295e516e3233e780f | 5,464 | su-se-bakover | MIT License |
src/main/kotlin/uk/cmdrnorthpaw/artifactory/model/Ingredient.kt | CmdrNorthpaw | 365,476,905 | false | null | package uk.cmdrnorthpaw.artifactory.model
import kotlinx.serialization.Required
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.Transient
import uk.cmdrnorthpaw.artifactory.model.serializers.Identifier
import uk.cmdrnorthpaw.artifactory.model.serializers.I... | 0 | Kotlin | 0 | 0 | bcd8f87dbb6337fbb9de00d424c37a774b181b9f | 701 | Artifactory | MIT License |
users-webflux/src/main/kotlin/com/crud/UserRepository.kt | juniorleaoo | 726,670,250 | false | {"Kotlin": 25614, "Go": 1006, "Dockerfile": 185} | package com.crud
import org.springframework.data.repository.CrudRepository
import org.springframework.stereotype.Repository
import java.util.*
@Repository
interface UserRepository : CrudRepository<User, UUID> | 0 | Kotlin | 0 | 0 | ee1df96f1d369fab89377dc6bc5c5a7e9938a5dc | 210 | crud-users-kotlin | MIT License |
src/main/kotlin/com/runetopic/api/tools/npc/NpcModule.kt | runetopic | 438,429,647 | false | {"Kotlin": 47867, "TOML": 2015, "YAML": 1593, "Dockerfile": 296} | package com.runetopic.api.tools.npc
import org.koin.dsl.module
/**
* @author Jordan Abraham
*/
fun npcModule() = module {
single { NpcService(NpcStorage("api")) }
}
| 0 | Kotlin | 0 | 1 | cec5577c8b839c0d36493275b8eb8ea501f1d290 | 173 | website-backend | MIT License |
app/src/main/java/com/example/bitfitpt2/DisplayFood.kt | XavierC003 | 797,935,702 | false | {"Kotlin": 12508} | package com.example.bitfitpt2
data class DisplayFood(
val name: String?,
val calories: String?
) : java.io.Serializable | 0 | Kotlin | 0 | 0 | 02e1a9fb3b0f540b4f2f68bdb533d8220b5960a4 | 128 | BitFitPt2 | Apache License 2.0 |
parserkt-ext/src/commonMain/kotlin/org/parserkt/pat/ext/NumUnitPattern.kt | ParserKt | 242,278,819 | false | null | package org.parserkt.pat.ext
import org.parserkt.*
import org.parserkt.util.*
import org.parserkt.pat.*
import org.parserkt.pat.complex.PairedTriePattern
// File: pat/ext/NumUnitPattern
typealias NumUnit<NUM, IN> = Pair<NUM, Iterable<IN>>
/*
val num = RepeatUn(asInt(), LexicalBasics.digitFor('0'..'9')) { it.toString... | 1 | Kotlin | 0 | 11 | 37599098dc9aafef7b509536e6d17ceca370d6cf | 2,852 | ParserKt | MIT License |
ui-lib/src/main/java/co/electriccoin/zcash/ui/screen/send/AndroidSend.kt | Electric-Coin-Company | 390,808,594 | false | {"Kotlin": 1068342} | @file:Suppress("ktlint:standard:filename")
package co.electriccoin.zcash.ui.screen.send
import android.content.pm.PackageManager
import androidx.activity.ComponentActivity
import androidx.activity.compose.BackHandler
import androidx.activity.viewModels
import androidx.annotation.VisibleForTesting
import androidx.comp... | 177 | Kotlin | 11 | 20 | 8c027003cce4aa07a0881e514ff216febd3df146 | 8,448 | zashi-android | MIT License |
buildSrc/src/main/java/dependencies/Depends.kt | xnxaxo | 169,520,929 | true | {"Kotlin": 31070} | package dependencies
@Suppress("unused")
object Depends {
/* ========================================
* Gradle
* ========================================*/
object GradlePlugin {
const val android = "com.android.tools.build:gradle:3.2.1"
const val kotlin = "org.jetbrains.kotlin:kotli... | 0 | Kotlin | 0 | 0 | 94abe81e425c560a623def9b55de9d09280d8e14 | 3,857 | master-of-android-theme | Apache License 2.0 |
sykepenger-mediators/src/main/kotlin/no/nav/helse/ApplicationBuilder.kt | navikt | 193,907,367 | false | null | package no.nav.helse
import no.nav.helse.rapids_rivers.RapidApplication
import no.nav.helse.rapids_rivers.RapidsConnection
import no.nav.helse.spleis.HendelseMediator
import no.nav.helse.spleis.MessageMediator
import no.nav.helse.spleis.db.HendelseRepository
import no.nav.helse.spleis.db.LagrePersonDao
import no.nav.h... | 0 | null | 3 | 4 | a3ba622f138449986fc9fd44e467104a61b95577 | 1,791 | helse-spleis | MIT License |
src/Day07.kt | mzlnk | 573,124,510 | false | {"Kotlin": 14876} | fun main() {
fun evaluate(input: List<String>): Directory {
val root = Directory(name = "/")
var current: Directory = root
var lineIdx = 0
while (lineIdx < input.size) {
val line = input[lineIdx++]
val pattern = Regex("\\$ (cd|ls) ?(.+)?")
val ... | 0 | Kotlin | 0 | 0 | 3a8ec82e9a8b4640e33fdd801b1ef87a06fa5cd5 | 3,347 | advent-of-code-2022 | Apache License 2.0 |
easyPopup/src/main/java/org/fattili/easypopup/view/pop/LeftPop.kt | dengzhenli | 340,673,053 | false | null | package org.fattili.easypopup.view.pop
import android.app.Activity
import android.view.Gravity
import org.fattili.easypopup.R
import org.fattili.easypopup.view.EasyPop
/**
* 2021/2/22
* 左侧弹出窗
* @author dengzhenli
*/
abstract class LeftPop : EasyPop {
constructor(activity: Activity) : super(activity) {
... | 0 | null | 1 | 5 | bf381756b5e0e1f6bf84cd11ca89ecdfe32b877e | 413 | EasyPopupX | Apache License 2.0 |
globallydynamic-android-lib/sample/src/main/java/com/example/globallydynamic/Language.kt | jeppeman | 229,767,532 | false | null | package com.example.globallydynamic
import android.content.Context
import com.example.globallydynamic.R
import java.util.*
import kotlin.reflect.KClass
interface Language {
val displayName: String
val code: String
val locale: Locale
companion object {
fun create(context: Context, type: KClass... | 13 | null | 19 | 299 | f1e32b698489941f4cfd9fcb7dafb02a042e56f1 | 1,547 | GloballyDynamic | Apache License 2.0 |
app/src/main/java/com/animsh/moviem/bindingadapters/ItemBindingAdapter.kt | animsh | 335,272,607 | false | null | package com.animsh.moviem.bindingadapters
import android.graphics.Bitmap
import android.graphics.Paint
import android.graphics.drawable.Drawable
import android.util.Log
import android.widget.ImageView
import android.widget.TextView
import androidx.annotation.Nullable
import androidx.databinding.BindingAdapter
import c... | 0 | Kotlin | 2 | 1 | 899ca640064648f9a3e31dead48ceab7b1e9fc98 | 11,252 | Moviem | Apache License 2.0 |
core-common/src/main/java/de/niklasbednarczyk/nbweather/core/common/settings/order/NBOrderModel.kt | NiklasBednarczyk | 529,683,941 | false | {"Kotlin": 1402977} | package de.niklasbednarczyk.nbweather.core.common.settings.order
data class NBOrderModel(
val currentWeatherOrder: Int,
val dailyOrder: Int,
val hourlyOrder: Int,
val precipitationOrder: Int,
val sunAndMoonOrder: Int
) {
companion object {
fun createFake(): NBOrderModel {
... | 15 | Kotlin | 0 | 1 | bd8ac5bae4ed4461e2461b6d89dd67358fdfbdd8 | 556 | NBWeather | MIT License |
app/src/main/java/com/engineerfred/kotlin/ktor/ui/model/AnswerType.kt | EngFred | 763,078,300 | false | {"Kotlin": 375304} | package com.engineerfred.kotlin.ktor.ui.model
enum class AnswerType {
Short,
Long
} | 0 | Kotlin | 0 | 0 | bf9031db3581709d5de44181361e1246850b6092 | 92 | quiz-quest | MIT License |
app/src/main/java/com/willendless/nes/emulator/util/NESException.kt | Willendless | 364,575,909 | false | null | package com.willendless.nes.emulator.util
import java.lang.RuntimeException
class NESException(val msg: String): RuntimeException() {
} | 0 | Kotlin | 1 | 3 | b9014f64efd36715a0bd2b65ff6084169f63794e | 137 | SuperNES | MIT License |
projects/combine/src/test/kotlin/support/algorithms.kt | mplatvoet | 28,311,735 | false | null | /*
* Copyright (c) 2015 Mark Platvoet<mplatvoet@gmail.com>
*
* 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,... | 10 | null | 31 | 659 | 36ff896ed8ea80edbf28706a0f50b6bac3777d78 | 1,316 | kovenant | MIT License |
src/main/kotlin/com/example/routing/NotesRouter.kt | knoldus | 656,798,007 | false | null | package com.example.routing
/**
* The com.example.routing package contains route configurations related to handling notes in the application.
*
*/
import com.example.db.DatabaseConnection
import com.example.entities.NoteEntity
import com.example.models.Note
import com.example.models.NoteRequest
import com.example.m... | 0 | Kotlin | 0 | 0 | 3b901caec48f6534a8c29613e4a44fe6a26ea483 | 6,157 | kotlin-ktor-CRUD-operation-example | MIT License |
shared/ui-models/src/commonMain/kotlin/com/paligot/confily/models/ui/CoCUi.kt | GerardPaligot | 444,230,272 | false | {"Kotlin": 897920, "Swift": 126158, "Shell": 1148, "Dockerfile": 576, "HTML": 338, "CSS": 102} | package org.gdglille.devfest.models
data class CoCUi(
val text: String,
val phone: String?,
val email: String
) {
companion object {
val fake = CoCUi(
text = "Code of conduct",
phone = "0600000000",
email = "<EMAIL>"
)
}
}
| 9 | Kotlin | 6 | 143 | 8c0985b73422d6b388012d79c7ab33c054dc55c1 | 296 | Confily | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.