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/com/epitech/diabetips/storages/CalculationOptionObject.kt | Diabetips | 275,361,973 | false | null | package com.epitech.diabetips.storages
import android.content.Context
import com.epitech.diabetips.R
import com.epitech.diabetips.utils.TimeHandler
import java.io.Serializable
data class CalculationOptionObject (
var start: String = "",
var end: String = "",
var format: String = "",
var count: Boolean... | 0 | Kotlin | 0 | 1 | 6a1b5be85ab0aec6064849b4b630dbc8c035e126 | 1,514 | diabetips-android | MIT License |
app/src/main/java/com/forcetower/uefs/core/storage/repository/ContributorRepository.kt | Matoro17 | 171,460,349 | false | null | /*
* Copyright (c) 2019.
* <NAME> <<EMAIL>>
*
* This file is part of the UNES Open Source Project.
*
* UNES is licensed under the MIT License
*
* 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 th... | 1 | null | 1 | 1 | 000e7aa8b9123959d2704ee5dc9b45b03b46dbb1 | 4,062 | Melon | MIT License |
app/src/main/java/me/bakumon/moneykeeper/ui/about/AboutActivity.kt | twwbmitnlf | 166,140,516 | true | {"Gradle": 4, "Markdown": 3, "Java Properties": 2, "Shell": 1, "Text": 3, "Ignore List": 2, "Batchfile": 1, "Proguard": 1, "JSON": 4, "Kotlin": 184, "XML": 114, "Java": 2} | /*
* Copyright 2018 Bakumon. https://github.com/Bakumon
*
* 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 appli... | 1 | Kotlin | 1 | 1 | 822d49e4c515098ef75d7140512412eff590e269 | 4,481 | MoneyKeeper | Apache License 2.0 |
platform/instanceContainer/src/internal/UnregisterHandle.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.platform.instanceContainer.internal
import org.jetbrains.annotations.ApiStatus.NonExtendable
@NonExtendable
fun interface UnregisterHandle {
/**
* @return map of register... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 444 | intellij-community | Apache License 2.0 |
example/src/main/java/com/github/sckm/example/itemnameplate/viewholder/SimpleItemsHeaderViewHolder.kt | sckm | 162,469,373 | false | null | package com.github.sckm.example.itemnameplate.viewholder
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.github.sckm.example.itemnameplate.R
class SimpleItemsHeaderViewHolder private constructor(itemView: View) : Recycl... | 0 | Kotlin | 0 | 0 | 1e2cf4a23120a9908d504651ca09b116f78b88bb | 663 | item-nameplate | Apache License 2.0 |
compiler/testData/codegen/box/reflection/mapping/mappedClassIsEqualToClassLiteral.kt | JetBrains | 3,432,266 | false | null | // IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
// WITH_REFLECT
class A
fun box(): String {
val a1 = A::class.java.kotlin
val a2 = A::class
if (a1 != a2) return "Fail equals"
if (a1.hashCode() != a2.hashCode()) return "Fail hashCode"
if (a1.toString() != a2.toString()) return "Fail toString... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 341 | kotlin | Apache License 2.0 |
app/src/main/java/com/setiawanpaiman/sunnyreader/data/db/Item.kt | setiawanp | 56,954,893 | false | {"Java": 175911, "Kotlin": 2891} | package com.setiawanpaiman.sunnyreader.data.db
import androidx.room.*
@Entity
data class Item(
@PrimaryKey(autoGenerate = true) val id: Long,
@ColumnInfo(name = "response") val response: String,
@ColumnInfo(name = "last_update") val lastUpdate: Long = System.currentTimeMillis()
) {
}
@Dao
interface Item... | 1 | null | 1 | 1 | d14233ef2369c3c2daf5c1b48897a60ac4e92deb | 907 | sunny-reader | Apache License 2.0 |
src/main/kotlin/com/timepath/steam/SteamUtils.kt | SourceUtils | 9,677,327 | false | {"Gradle": 1, "Ignore List": 1, "Text": 1, "YAML": 1, "Markdown": 1, "Kotlin": 20, "Java": 23, "ANTLR": 1} | package com.timepath.steam
import com.timepath.plaf.OS
import com.timepath.plaf.win.WinRegistry
import com.timepath.steam.io.VDF
import java.io.File
import java.io.IOException
import java.util.logging.Level
import java.util.logging.Logger
import kotlin.platform.platformStatic
/**
* Utility class for accessing local... | 0 | Kotlin | 1 | 0 | 3e9e0bc4dc82d0d993db420de3b7b767f843ffb3 | 5,139 | steam-toolkit | Artistic License 2.0 |
Pullup/app/src/main/java/edu/uw/eep523/sensorrtplot/MainActivity3.kt | koujunnan1996 | 269,229,414 | false | null | package edu.uw.eep523.sensorrtplot
import android.content.Context
import android.content.Intent
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import android.hardware.SensorManager
import android.media.MediaPlayer
import androidx.appcompat.app.AppCompatAc... | 0 | Kotlin | 0 | 0 | 89afff84a29493e97b21f0d646f5cacce7fb5f70 | 7,296 | EEP523 | MIT License |
gremlin-kore/src/main/kotlin/org/apache/tinkerpop4/gremlin/jsr223/GremlinScriptEngine.kt | phreed | 449,920,526 | false | null | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 4 | null | 1 | 1 | cb6805d686e9a27caa8e597b0728a50a63dc9092 | 2,587 | tinkerpop4 | Apache License 2.0 |
HappyBirthday.kt | kangdy57 | 499,102,634 | false | {"Java": 61936, "Kotlin": 9929, "Shell": 693, "Python": 473} | /**
* Run the program that prints a cake in the console depending on the age of the birthday person
*
* @author VitasSalvantes
*/
fun main() {
// The age of the birthday person
val age = 24
// The number of the layers in the cake
val layers = 5
printCakeCandles(age)
printCakeTop(age)
pr... | 1 | null | 1 | 1 | c4661bb167b0d8c8069625f7ccc76e6797ebb111 | 1,143 | SimplePrograms | MIT License |
Example/PrebidInternalTestApp/src/main/java/org/prebid/mobile/renderingtestapp/plugplay/bidding/max/MaxBannerFragmentAdaptive.kt | media-net | 578,071,520 | true | {"Java Properties": 6, "Shell": 9, "Markdown": 4, "Batchfile": 1, "INI": 5, "Proguard": 4, "Java": 733, "JavaScript": 4, "HTML": 10, "Kotlin": 149} | package org.prebid.mobile.renderingtestapp.plugplay.bidding.max
import android.view.ViewGroup
import android.widget.FrameLayout
import com.applovin.mediation.MaxAdFormat
import com.applovin.mediation.adapters.prebid.utils.MaxMediationBannerUtils
import com.applovin.mediation.ads.MaxAdView
import com.applovin.sdk.AppLo... | 1 | Java | 0 | 0 | 3e6666320482bcb3ef26c31529371ee9ae565423 | 1,444 | prebid-mobile-android | Apache License 2.0 |
http4k-security-oauth/src/test/kotlin/org/http4k/security/FakeOAuthPersistence.kt | quii | 154,645,976 | false | null | package org.http4k.security
import org.http4k.core.Request
import org.http4k.core.Response
class FakeOAuthPersistence : OAuthPersistence {
var csrf: CrossSiteRequestForgeryToken? = null
var accessToken: AccessTokenContainer? = null
override fun retrieveCsrf(request: Request): CrossSiteRequestForgeryToke... | 0 | null | 1 | 1 | 7c41c6f295e1d573ae4e8e7c7006556400937e5f | 817 | http4k | Apache License 2.0 |
eos-chain-actions/src/main/kotlin/com/memtrip/eos/chain/actions/transaction/transfer/actions/TransferArgs.kt | memtrip | 149,500,589 | false | null | /**
* Copyright 2013-present memtrip LTD.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 5 | null | 19 | 38 | 30006ce7047843ba3f2f8d43d657c7e7627a63ca | 1,247 | eos-jvm | Apache License 2.0 |
app/src/main/java/cn/kirilenkoo/www/coolpets/model/ApiPHMsg.kt | kirilenkoo | 124,344,519 | false | null | package cn.kirilenkoo.www.coolpets.model
class ApiPHMsg(val remoteGeneratedId: String) {
} | 1 | null | 1 | 1 | 969ed3dfbac859e390cea7a1be24fcf2a9cd3931 | 91 | CoolPets | MIT License |
jhip60video/kotlin-app/src/main/kotlin/com/mycompany/myapp/config/DefaultProfileUtil.kt | PacktPublishing | 181,413,961 | false | null | package com.mycompany.myapp.config
import io.github.jhipster.config.JHipsterConstants
import org.springframework.boot.SpringApplication
/**
* Utility class to load a Spring profile to be used as default
* when there is no `spring.profiles.active` set in the environment or as command line argument.
* If the value ... | 57 | null | 4 | 2 | 29988104aef5240a44686aa51f64e8390c58aabb | 1,141 | Hands-On-JHipster-Powerful-Web-Apps-in-Spring-Boot-and-Angular | MIT License |
app/src/main/java/com/ofalvai/bpinfo/api/AlertApiClient.kt | ofalvai | 61,564,061 | false | null | /*
* Copyright 2018 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 1 | Kotlin | 2 | 9 | 8c4231e43c976aa36a9e48776e8167f064195011 | 1,175 | BPInfo | Apache License 2.0 |
app/src/main/java/org/y20k/escapepod/core/Collection.kt | holliebaker | 214,641,470 | true | {"Kotlin": 293252} | /*
* Collection.kt
* Implements the Collection class
* A Collection object holds a list of Podcasts
*
* This file is part of
* ESCAPEPOD - Free and Open Podcast App
*
* Copyright (c) 2018-19 - Y20K.org
* Licensed under the MIT-License
* http://opensource.org/licenses/MIT
*/
package org.y20k.escapepod.core
... | 0 | Kotlin | 0 | 0 | a896a87b5d1b3ad38f05fb7a0d75c54d91066a32 | 1,331 | escapepod | MIT License |
src/main/kotlin/no/nav/bidrag/commons/CorrelationId.kt | navikt | 173,967,918 | false | {"Kotlin": 212683} | package no.nav.bidrag.commons
class CorrelationId private constructor(private val idValue: String) {
init {
CORRELATION_ID_VALUE.set(idValue)
}
fun get(): String {
return idValue
}
companion object {
const val CORRELATION_ID_HEADER = "X-Correlation-ID"
private val ... | 5 | Kotlin | 0 | 2 | ac682fa49fc8e3628449eb9ba72daf954bbf40e0 | 991 | bidrag-commons | MIT License |
src/main/kotlin/network/codec/tlv/T128.kt | KatiumDev | 488,028,614 | false | null | /*
* Copyright 2022 Katium 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 applicable law or agreed t... | 0 | Kotlin | 0 | 6 | 996181191d9a01fd58c0cee055e582d173f6b6d9 | 1,509 | katium-client-tencent-qq | Apache License 2.0 |
src/main/kotlin/com/londogard/nlp/meachinelearning/predictors/classifiers/LogisticRegression.kt | londogard | 324,636,955 | false | null | package com.londogard.nlp.meachinelearning.predictors.classifiers
import ai.djl.modality.nlp.preprocess.SimpleTokenizer
import com.londogard.nlp.meachinelearning.dot
import com.londogard.nlp.meachinelearning.inplaceOp
import com.londogard.nlp.meachinelearning.loss.LogisticLoss
import com.londogard.nlp.meachinelearning... | 15 | Kotlin | 3 | 55 | 6e5692575b6b0be69f4fe06b9118d6d0eb8befe3 | 2,176 | londogard-nlp-toolkit | Apache License 2.0 |
src/main/kotlin/com/github/jntakpe/proxyswitcher/platform/Platform.kt | jntakpe | 103,762,961 | false | null | package com.github.jntakpe.proxyswitcher.platform
import java.nio.file.Paths
interface Platform {
fun userHome() = Paths.get(System.getProperty("user.home"))
} | 0 | Kotlin | 0 | 3 | 42aae4364cc7d7da740956b440939ba70bb423ae | 167 | proxy-switcher | MIT License |
feature/solve-problem/src/main/kotlin/team/duckie/app/android/feature/solve/problem/common/LoadingIndicator.kt | duckie-team | 503,869,663 | false | null | /*
* Designed and developed by Duckie Team, 2022
*
* Licensed under the MIT.
* Please see full license: https://github.com/duckie-team/duckie-android/blob/develop/LICENSE
*/
package team.duckie.app.android.feature.solve.problem.common
import androidx.compose.foundation.layout.Box
import androidx.compose.foundati... | 19 | Kotlin | 2 | 34 | 4fa7edae1fd24811ec278b0e24236c247f98dff0 | 862 | duckie-android | MIT License |
libnavui-maps/src/test/java/com/mapbox/navigation/ui/maps/guidance/junction/api/MapboxRasterToBitmapParserTest.kt | engelzero | 371,880,512 | true | {"Kotlin": 3077882, "Java": 96097, "Python": 11740, "Makefile": 6255, "Shell": 1686} | package com.mapbox.navigation.ui.maps.guidance.junction.api
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import androidx.test.core.app.ApplicationProvider
import com.mapbox.navigation.ui.base.model.Expected
import io.mockk.every
import io.mockk.mockk
import io.moc... | 0 | null | 0 | 0 | a29fc2e301880748ab67b9d1a90c61532dce975d | 1,482 | mapbox-navigation-android | Apache License 2.0 |
src/main/kotlin/br/com/jiratorio/repository/IssueRepository.kt | jirareport | 126,883,660 | false | {"Kotlin": 628412, "Dockerfile": 302} | package br.com.jiratorio.repository
import br.com.jiratorio.domain.entity.IssueEntity
import org.springframework.data.jpa.repository.EntityGraph
import org.springframework.data.repository.CrudRepository
import org.springframework.stereotype.Repository
import java.util.Optional
@Repository
interface IssueRepository : ... | 12 | Kotlin | 12 | 21 | 845540e238f47fbd05c1f7f6839152545521c63e | 771 | jirareport | MIT License |
app/src/main/java/com/example/gonggubox/ui/items/certOTPCode/CertOTPCodeBtn.kt | Project-GongGuBox | 686,542,035 | false | {"Kotlin": 55828} | package com.example.gonggubox.ui.items.certOTPCode
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compose.material3.Button
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material3.MaterialTheme
import androidx.compos... | 1 | Kotlin | 1 | 1 | 61ceb6b85e29d010737695c0f4dd2e2df063e62e | 1,409 | GongGuBox-Android | Apache License 2.0 |
hideout-core/src/test/kotlin/dev/usbharu/hideout/core/application/post/GetPostApplicationServiceTest.kt | usbharu | 627,026,893 | false | {"Kotlin": 1152289, "Mustache": 111758, "HTML": 14705, "Dockerfile": 121} | package dev.usbharu.hideout.core.application.post
import dev.usbharu.hideout.core.application.exception.PermissionDeniedException
import dev.usbharu.hideout.core.domain.model.post.PostId
import dev.usbharu.hideout.core.domain.model.post.PostRepository
import dev.usbharu.hideout.core.domain.model.post.TestPostFactory
i... | 18 | Kotlin | 0 | 12 | 5f97c459062bcd1580ea5fdb248176e9539029f5 | 2,200 | Hideout | Apache License 2.0 |
src/main/kotlin/io/kjson/JSONStructure.kt | pwall567 | 390,720,614 | false | null | /*
* @(#) JSONStructure.kt
*
* kjson-core JSON Kotlin core functionality
* Copyright (c) 2022, 2023 Peter Wall
*
* 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, ... | 0 | Kotlin | 0 | 1 | 99f0b9df5ca4e13248017accc37e33e4475a40e0 | 3,059 | kjson-core | MIT License |
RxHttp/src/main/java/io/github/kongpf8848/rxhttp/callback/ProgressCallback.kt | kongpf8848 | 194,521,674 | false | null | package io.github.kongpf8848.rxhttp.callback
interface ProgressCallback {
fun onProgress(readBytes: Long, totalBytes: Long)
} | 2 | null | 6 | 30 | 349f8c7a443fe1f67f5d135c9ababba8cd9d6394 | 130 | RxHttp | Apache License 2.0 |
src/main/kotlin/dev/queercoded/webring/SiteChecker.kt | diademiemi | 699,384,826 | false | {"Kotlin": 28256, "CSS": 3929, "HTML": 3436} | package dev.queercoded.webring
import jakarta.inject.Inject
import jakarta.transaction.Transactional
import org.eclipse.microprofile.config.inject.ConfigProperty
import java.net.http.HttpClient
import java.net.http.HttpRequest
import java.net.http.HttpResponse
@jakarta.enterprise.context.RequestScoped
class SiteCheck... | 0 | Kotlin | 0 | 4 | d4c16854879f0a25cfc5d580705bffe131fd1464 | 4,304 | webring-api | Creative Commons Zero v1.0 Universal |
app/src/test/java/fr/afaucogney/mobile/android/base/domain/TestUseCaseTest.kt | afaucogney | 162,284,165 | false | null | package fr.afaucogney.mobile.android.base.domain
import org.junit.Assert.assertEquals
import org.junit.Test
class TestUseCaseTest {
@Test
fun execute() {
assertEquals(TestUseCase().execute("YES"), 10)
assertEquals(TestUseCase().execute("NO"), 0)
assertEquals(TestUseCase().execute("N")... | 0 | Kotlin | 0 | 0 | 826f6464c69f3e1b19bd1de32da45c1067afe1fd | 333 | BaseCleanUseCase | MIT License |
feature/src/main/java/com/thelazybattley/feature/ui/forecast/ForecastWeatherTabScreen.kt | dellosaneil | 720,658,411 | false | {"Kotlin": 238872} | package com.dellosaneil.feature.ui.forecast
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableS... | 0 | Kotlin | 0 | 0 | adb7ffc205a27b95b8c847ee3af6dcca373b80ca | 3,383 | weather-app | Apache License 2.0 |
app/src/main/java/com/niu/jetpack_android_online/http/ApiResult.kt | niumenglin | 718,961,323 | false | {"Kotlin": 115504} | package com.niu.jetpack_android_online.http
class ApiResult<T> {
var status = 0
val success
get() = status == 200
var errorMsg: String = ""
var body: T? = null
} | 0 | Kotlin | 0 | 0 | 67d48152908e6b18c3daf5cb32eb5ae393598f91 | 186 | Jetpack_android_online | Apache License 2.0 |
src/backend/ci/core/common/common-pipeline/src/main/kotlin/com/tencent/devops/common/pipeline/pojo/transfer/RunAtomParam.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.pipeline.pojo.transfer
data class RunAtomParam(
val shell: String? = null,
val script: String? = null,
val charsetType: CharsetType? = null
) {
enum class CharsetType {
/*默认类型*/
DEFAULT,
/*UTF_8*/
UTF_8,
/*GBK*/
GBK;
... | 719 | Kotlin | 498 | 2,382 | dd483c38bdbe5c17fa0e5e5bc3390cd1cd40757c | 1,009 | bk-ci | MIT License |
app/src/androidTest/java/me/nasrabadiam/tictactoe/GameTests.kt | nasrabadiAM | 755,819,522 | false | {"Kotlin": 87677} | package me.nasrabadiam.tictactoe
import androidx.compose.ui.test.assertHasClickAction
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.assertIsNotDisplayed
import androidx.compose.ui.test.hasTestTag
import androidx.compose.ui.test.hasText
import androidx.compose.ui.test.isDisplayed
imp... | 8 | Kotlin | 0 | 0 | a73a87dccf67a3c4e6008e712597276d010ee6db | 4,094 | tictactoe | Apache License 2.0 |
app/src/main/java/com/droidfeed/ui/module/main/MainNavController.kt | wangwindlong | 260,666,264 | true | {"Kotlin": 225457} | package com.droidfeed.ui.module.main
import androidx.fragment.app.Fragment
import com.droidfeed.R
import com.droidfeed.di.MainScope
import com.droidfeed.ui.common.Scrollable
import com.droidfeed.ui.module.about.AboutFragment
import com.droidfeed.ui.module.conferences.ConferencesFragment
import com.droidfeed.ui.module.... | 0 | Kotlin | 0 | 0 | ee9032dd18e599b2aa0b4ffae451a42b24d53adf | 2,246 | droid-feed | Apache License 2.0 |
app/src/main/java/com/sunnyweather/android/MainActivity.kt | lliukhi | 844,307,151 | false | {"Kotlin": 24210} | package com.sunnyweather.android
import android.icu.text.SimpleDateFormat
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.RelativeLayout
import android.widget.ScrollView
import android.widget.T... | 0 | Kotlin | 0 | 0 | fdbe1802ad6ba2d40b368a6f9bada4bbf04aa1ed | 1,256 | SunnyWeather | Apache License 2.0 |
snowplow-tracker/src/main/java/com/snowplowanalytics/snowplow/network/OkHttpNetworkConnection.kt | snowplow | 20,056,757 | false | null | /*
* Copyright (c) 2015-present Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.ap... | 20 | null | 64 | 108 | 05fdaa6959cc4ad38738d153e8455394a6fd676b | 14,816 | snowplow-android-tracker | Apache License 2.0 |
snowplow-tracker/src/main/java/com/snowplowanalytics/snowplow/network/OkHttpNetworkConnection.kt | snowplow | 20,056,757 | false | null | /*
* Copyright (c) 2015-present Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.ap... | 20 | null | 64 | 108 | 05fdaa6959cc4ad38738d153e8455394a6fd676b | 14,816 | snowplow-android-tracker | Apache License 2.0 |
src/examples/kotlin/net/dinkla/raytracer/examples/test/World5.kt | jdinkla | 38,753,756 | false | {"Kotlin": 467284, "Shell": 427} | package net.dinkla.raytracer.examples.test
import net.dinkla.raytracer.colors.Color
import net.dinkla.raytracer.math.Normal
import net.dinkla.raytracer.math.Point3D
import net.dinkla.raytracer.world.Builder
import net.dinkla.raytracer.world.WorldDefinition
object World5 : WorldDefinition {
override val id: String... | 0 | Kotlin | 2 | 5 | fdf196ff5370a5e64f27c6e7ea66141a25d17413 | 1,226 | from-the-ground-up-ray-tracer | Apache License 2.0 |
src/main/java/com/booknara/problem/array/FlippingImage.kt | booknara | 226,968,158 | false | {"Java": 1128390, "Kotlin": 177761} | package com.booknara.problem.array
/**
* 832. Flipping an Image (Easy)
* https://leetcode.com/problems/flipping-an-image/
*/
class FlippingImage {
// T:O(n^2), S:O(1)
fun flipAndInvertImage(A: Array<IntArray>): Array<IntArray> {
// input check
for (row in A) {
var l = 0
... | 0 | Java | 1 | 1 | 962cbcc94d423e24ef29ad2bb11562067a336b4f | 1,292 | playground | MIT License |
src/main/java/com/kydzombie/link/block/CanFindDoubleChest.kt | KydZombie | 711,585,669 | false | {"Kotlin": 63241, "Java": 10383} | package com.kydzombie.link.block
import net.minecraft.inventory.InventoryBase
interface CanFindDoubleChest {
fun findInventory(): InventoryBase?
}
| 0 | Kotlin | 0 | 0 | 1bf293a1bd76ed2f24de9511280e7be57b4b750f | 153 | link | MIT License |
protocol/osrs-225/osrs-225-api/src/main/kotlin/net/rsprot/protocol/api/repositories/MessageEncoderRepositories.kt | blurite | 771,753,685 | false | {"Kotlin": 11355829} | package net.rsprot.protocol.api.repositories
import net.rsprot.compression.provider.HuffmanCodecProvider
import net.rsprot.protocol.ServerProt
import net.rsprot.protocol.common.client.ClientTypeMap
import net.rsprot.protocol.common.client.OldSchoolClientType
import net.rsprot.protocol.common.js5.outgoing.prot.Js5Messa... | 5 | Kotlin | 6 | 27 | d08cb7c11ae758b5dcabd6e85d34a4bfdba7ad3c | 1,430 | rsprot | MIT License |
app/src/main/java/io/github/nosix/android/compose/example/composable/material3/components/Buttons.kt | nosix | 725,363,839 | false | {"Kotlin": 127844} | package io.github.nosix.android.compose.example.composable.material3.components
import androidx.compose.animation.core.rememberInfiniteTransition
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
im... | 0 | Kotlin | 0 | 0 | c24a5673e8b8e427c177d3fc9541b68bf34de5c4 | 3,023 | android-compose-example | Apache License 2.0 |
client/src/jvmMain/kotlin/batect/dockerclient/io/TextOutput.kt | batect | 401,175,530 | false | null | /*
Copyright 2017-2022 <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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | 3 | Kotlin | 0 | 9 | 0ef5cdfc03bd44fbf5f1758192d6bcb490a40cb0 | 2,473 | docker-client | Apache License 2.0 |
src/main/kotlin/com/github/attacktive/troubleshootereditor/ingamedata/roster/port/outbound/RosterRepository.kt | Attacktive | 517,579,517 | false | {"Kotlin": 47898} | package com.github.attacktive.troubleshootereditor.ingamedata.roster.port.outbound
import com.github.attacktive.troubleshootereditor.ingamedata.roster.domain.Roster
interface RosterRepository {
fun selectRosters(url: String): List<Roster>
fun saveChanges(url: String, newRosters: Collection<Roster>)
}
| 2 | Kotlin | 0 | 1 | 7a99c7b6d7aff7273132e39e8d8a7961131f60dd | 307 | troubleshooter-editor-back-end | MIT License |
buildSrc/src/main/kotlin/publishing.kt | NextFaze | 90,596,780 | false | {"Gradle": 1, "Proguard": 4, "Shell": 3, "Gradle Kotlin DSL": 24, "Java Properties": 2, "Text": 2, "Ignore List": 21, "Batchfile": 1, "Markdown": 6, "Kotlin": 251, "XML": 106, "Java": 9, "CSS": 32, "JavaScript": 56, "SCSS": 18, "Less": 17, "HTML": 1, "SVG": 2, "INI": 2} | @file:Suppress("UnstableApiUsage")
import com.jfrog.bintray.gradle.BintrayExtension
import com.jfrog.bintray.gradle.tasks.BintrayUploadTask
import groovy.util.Node
import groovy.util.NodeList
import org.gradle.api.Project
import org.gradle.api.artifacts.Configuration
import org.gradle.api.publish.PublishingExtension
i... | 5 | Kotlin | 4 | 51 | cbf83014e478426750a2785b1e4e6a22d6964698 | 7,539 | dev-fun | Apache License 2.0 |
host/src/commonMain/kotlin/emscripten/function/EmscriptenGetNowFunctionHandle.kt | illarionov | 848,247,126 | false | {"Kotlin": 993693, "TypeScript": 3148, "CSS": 1042, "FreeMarker": 450, "JavaScript": 89} | /*
* Copyright 2024, the wasi-emscripten-host project authors and contributors. Please see the AUTHORS file
* for details. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
* SPDX-License-Identifier: Apache-2.0
*/
package at.released.weh.host.emscripten.function
... | 0 | Kotlin | 0 | 2 | eaa94b81d4da64d2ea763eb2cfe61a386d56f092 | 753 | wasi-emscripten-host | Apache License 2.0 |
host/src/commonMain/kotlin/emscripten/function/EmscriptenGetNowFunctionHandle.kt | illarionov | 848,247,126 | false | {"Kotlin": 993693, "TypeScript": 3148, "CSS": 1042, "FreeMarker": 450, "JavaScript": 89} | /*
* Copyright 2024, the wasi-emscripten-host project authors and contributors. Please see the AUTHORS file
* for details. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
* SPDX-License-Identifier: Apache-2.0
*/
package at.released.weh.host.emscripten.function
... | 0 | Kotlin | 0 | 2 | eaa94b81d4da64d2ea763eb2cfe61a386d56f092 | 753 | wasi-emscripten-host | Apache License 2.0 |
app/src/main/java/org/p2p/wallet/jupiter/ui/main/mapper/SwapWidgetMapper.kt | p2p-org | 306,035,988 | false | null | package org.p2p.wallet.jupiter.ui.main.mapper
import java.math.BigDecimal
import org.p2p.core.common.TextContainer
import org.p2p.core.utils.asUsdSwap
import org.p2p.core.utils.emptyString
import org.p2p.core.utils.formatToken
import org.p2p.uikit.utils.skeleton.textCellSkeleton
import org.p2p.uikit.utils.text.TextVie... | 8 | null | 18 | 34 | d091e18b7d88c936b7c6c627f4fec96bcf4a0356 | 9,081 | key-app-android | MIT License |
sample/src/main/java/com/arttttt/simplemvi/notes/presentation/models/NoteListItem.kt | arttttt | 854,289,980 | false | {"Kotlin": 14007} | package com.arttttt.simplemvi.notes.presentation.models
import com.arttttt.simplemvi.ui.ListItem
data class NoteListItem(
val id: String,
val message: String,
) : ListItem {
override val key: Any by this::id
} | 0 | Kotlin | 0 | 0 | aeede8bd65e5f7263aa9e436c4d587c308756bd1 | 224 | SimpleMVI | MIT License |
common/sdk/recipe/crud/impl/src/commonMain/kotlin/io/chefbook/sdk/recipe/crud/impl/data/sources/remote/services/dto/pictures/GenerateRecipePicturesUploadLinks.kt | mephistolie | 379,951,682 | false | {"Kotlin": 1334117, "Ruby": 16819, "Swift": 352} | package io.chefbook.sdk.recipe.crud.impl.data.sources.remote.services.dto.pictures
import io.chefbook.sdk.core.api.internal.data.models.PictureUploading
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
internal data class GenerateRecipePicturesUploadLinksRequest(
@Seri... | 0 | Kotlin | 0 | 12 | ddaf82ee3142f30aee8920d226a8f07873cdcffe | 827 | chefbook-mobile | Apache License 2.0 |
libraries/core/src/test/java/com/n27/core/domain/LiveUseCaseTest.kt | Narsuf | 52,900,182 | false | {"Kotlin": 247331} | package com.n27.core.domain
import com.n27.core.domain.live.LiveRepository
import com.n27.core.domain.live.models.LocalElectionIds
import com.n27.core.domain.region.RegionRepository
import com.n27.test.generators.getLiveElection
import com.n27.test.generators.getLiveElections
import com.n27.test.generators.getMunicipa... | 1 | Kotlin | 0 | 2 | ef21ef7e7ef0b132224e6d40f316e960932ee895 | 4,576 | Elections | Apache License 2.0 |
src/me/anno/config/DefaultConfig.kt | AntonioNoack | 456,513,348 | false | null | package me.anno.config
import me.anno.Engine.projectName
import me.anno.config.DefaultStyle.baseTheme
import me.anno.io.ISaveable.Companion.registerCustomClass
import me.anno.io.SaveableArray
import me.anno.io.config.ConfigBasics
import me.anno.io.files.InvalidRef
import me.anno.io.unity.UnityReader
import me.anno.io.... | 0 | null | 3 | 9 | b2532f7d40527eb2c9e24e3659dd904aa725a1aa | 3,706 | RemsEngine | Apache License 2.0 |
kmock-processor/src/main/kotlin/tech/antibytes/kmock/processor/mock/KMockReceiverGenerator.kt | bitPogo | 455,829,905 | false | {"Kotlin": 3506361} | /*
* Copyright (c) 2024 Matthias Geisler (bitPogo) / All rights reserved.
*
* Use of this source code is governed by Apache v2.0
*/
package tech.antibytes.kmock.processor.mock
import com.google.devtools.ksp.symbol.KSFunctionDeclaration
import com.google.devtools.ksp.symbol.KSPropertyDeclaration
import com.google.... | 3 | Kotlin | 2 | 56 | 9a94e2842f615b08d4e2942c4987278a3d5c9f43 | 16,520 | kmock | Apache License 2.0 |
buildSrc/src/main/java/Versions.kt | raamcosta | 402,228,168 | false | null | object Versions {
const val minSdk = 21
const val compileSdk = 31
const val targetSdk = compileSdk
const val kotlin = "1.6.10"
const val dependencyCheckPlugin = "0.42.0"
const val gradlePluginVersion = "7.1.1"
const val composeViewModel = "2.4.1"
const val activityCompose = "1.4.0"
... | 7 | Kotlin | 39 | 717 | 3a91c74cd6459ba9befd60c546d1a8cc3a4c4f06 | 2,160 | compose-destinations | Apache License 2.0 |
SingleModuleApp/app/src/main/java/com/github/yamamotoj/singlemoduleapp/package66/Foo06616.kt | yamamotoj | 163,851,411 | false | null | package com.github.yamamotoj.module3.package66
class Foo06616 {
fun method0() {
Foo06615().method5()
}
fun method1() {
method0()
}
fun method2() {
method1()
}
fun method3() {
method2()
}
fun method4() {
method3()
}
fun method5() {... | 0 | Kotlin | 0 | 9 | 2a771697dfebca9201f6df5ef8441578b5102641 | 347 | android_multi_module_experiment | Apache License 2.0 |
app/src/main/java/com/ece452s24g7/mindful/activities/CalendarActivity.kt | mlqh | 869,132,586 | false | {"Kotlin": 87008} | package com.ece452s24g7.mindful.activities
import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.activity.enableEdgeToEdge
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import com.ece... | 0 | Kotlin | 0 | 0 | 8096788875beecd24bd8722914c283633265be18 | 4,981 | Mindful | MIT License |
app/src/main/java/com/example/androiddevchallenge/Pet.kt | seth0027 | 342,097,469 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | 09bf6f58daaff933c543465e87c40046e4d0707b | 1,353 | compose-template | Apache License 2.0 |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/StructuralImportance.kt | Danilo-Araujo-Silva | 271,904,885 | false | null | package com.daniloaraujosilva.mathemagika.library.common.mathematica.functions
import com.daniloaraujosilva.mathemagika.library.common.mathematica.MathematicaFunction
/**
*````
*
* Name: StructuralImportance
*
* Full name: System`StructuralImportance
*
* StructuralImportanc... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 1,506 | mathemagika | Apache License 2.0 |
elk/src/main/java/com/softklass/elk/uiautomator/Settings.kt | JoshLudahl | 427,848,023 | false | {"Kotlin": 74318} | package com.softklass.elk.uiautomator
import android.Manifest
import android.content.Context
import android.content.Intent
import android.os.Build
import android.provider.Settings
import androidx.test.uiautomator.By
import androidx.test.uiautomator.Until
import androidx.test.uiautomator.v18.BuildConfig
import com.soft... | 0 | Kotlin | 0 | 0 | ea0a689b87d53fee350b723130ccdc3c1e59f462 | 2,813 | espresso-library-kotlin | The Unlicense |
adapty/src/main/java/com/adapty/internal/data/models/ViewConfigurationDto.kt | adaptyteam | 238,537,754 | false | {"Kotlin": 408771} | package com.adapty.internal.data.models
import androidx.annotation.RestrictTo
import com.google.gson.annotations.SerializedName
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
internal class ViewConfigurationDto(
@SerializedName("paywall_builder_config")
val config: ViewConfigurationConfig?,
@SerializedName("... | 2 | Kotlin | 14 | 80 | 49bc4d25fffc19183221652d24df0996b4178b4e | 1,978 | AdaptySDK-Android | MIT License |
adapty/src/main/java/com/adapty/internal/data/models/ViewConfigurationDto.kt | adaptyteam | 238,537,754 | false | {"Kotlin": 408771} | package com.adapty.internal.data.models
import androidx.annotation.RestrictTo
import com.google.gson.annotations.SerializedName
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
internal class ViewConfigurationDto(
@SerializedName("paywall_builder_config")
val config: ViewConfigurationConfig?,
@SerializedName("... | 2 | Kotlin | 14 | 80 | 49bc4d25fffc19183221652d24df0996b4178b4e | 1,978 | AdaptySDK-Android | MIT License |
ext/src/main/java/com/lekaha/android/boilerplate/ext/system/Time.kt | lekaha | 118,922,178 | false | null | package com.playone.mobile.ext.system
/**
* An extension collections about the Time.
*/
val currentTime get() = System.currentTimeMillis() | 5 | Kotlin | 0 | 7 | 370dbe4fbcd3c59b8d0f27d954ef0efcabb00fef | 141 | android-clean-architecture-component-boilerplate | MIT License |
bitgouel-api/src/main/kotlin/team/msg/domain/certification/service/CertificationServiceImpl.kt | School-of-Company | 700,741,727 | false | null | package team.msg.domain.certification.service
import org.springframework.data.repository.findByIdOrNull
import org.springframework.stereotype.Service
import org.springframework.transaction.annotation.Transactional
import team.msg.common.ulid.ULIDGenerator
import team.msg.common.util.UserUtil
import team.msg.domain.adm... | 4 | null | 0 | 17 | 92225918f0f9fb7b3a248ce76b5fd7fe20728a74 | 8,878 | Bitgouel-Server | MIT License |
app/src/main/java/com/example/motostranacompose/data/model/DashboardContent.kt | FunnyRider34Rus | 602,934,577 | false | null | package com.example.motostranacompose.data.model
import com.google.firebase.Timestamp
data class DashboardContent(
val key: String? = null,
val timestamp: Timestamp? = null,
val uid: String? = null,
val title: String? = null,
val header: String? = null,
val body: String? = null,
val image:... | 0 | Kotlin | 0 | 0 | c9edf33abec1ff1b550543114aafa0de4e136092 | 450 | MotoStranaCompose | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/service/VirusScanService.kt | navikt | 145,608,534 | false | null | package no.nav.syfo.service
import java.util.Base64
import no.nav.syfo.client.ClamAvClient
import no.nav.syfo.client.Status
import no.nav.syfo.logger
import no.nav.syfo.metrics.VEDLEGG_OVER_300_MEGABYTE_COUNTER
import no.nav.syfo.vedlegg.model.Vedlegg
class VirusScanService(
private val clamAvClient: ClamAvClient... | 1 | Kotlin | 1 | 0 | de5eedb2f5db7d2af4705d5a3f11d99bb54a1998 | 1,832 | syfosmmottak | MIT License |
old_baser/ktrecipe/src/main/java/work/shion/ktrecipe/pages/websample/views/MainActivity.kt | tshion | 261,409,412 | false | null | package work.shion.ktrecipe.pages.websample.views
import android.app.Activity
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.websample_fragment_main.*
import work.shion.baser.android.throwAway
import wo... | 4 | Kotlin | 0 | 0 | 1bd854f0621a0a102c07b7a85f5718cc0c01f5b8 | 1,931 | XAppRecipe | MIT License |
videopager/src/main/kotlin/com/videopager/models/ViewState.kt | vFunny-App | 606,671,781 | false | null | package com.videopager.models
import com.player.models.DownloadDialogState
import com.player.models.VideoData
import com.player.players.AppPlayer
internal data class ViewState(
val appPlayer: AppPlayer? = null,
val attachPlayer: Boolean = false,
val page: Int = 0,
val showPlayer: Boolean = false,
... | 1 | Kotlin | 0 | 0 | 2e1f3bf3be75080e975a9b2c7b70394167e48f81 | 457 | vFunny | MIT License |
finch-java-core/src/main/kotlin/com/tryfinch/api/core/handlers/JsonHandler.kt | Finch-API | 581,317,330 | false | {"Kotlin": 2801661, "Shell": 3626, "Java": 1235, "Dockerfile": 399} | @file:JvmName("JsonHandler")
package com.tryfinch.api.core.handlers
import com.fasterxml.jackson.databind.json.JsonMapper
import com.fasterxml.jackson.module.kotlin.jacksonTypeRef
import com.tryfinch.api.core.http.HttpResponse
import com.tryfinch.api.core.http.HttpResponse.Handler
import com.tryfinch.api.errors.Finch... | 0 | Kotlin | 1 | 5 | 55940857bf56dde03999af60433248899da65a35 | 726 | finch-api-java | Apache License 2.0 |
app/src/main/java/cz/dmn/cpska/ui/home/HomeModule.kt | kletzander | 141,282,285 | false | {"Kotlin": 138837} | package cz.dmn.cpska.ui.home
import android.support.v7.app.AppCompatActivity
import cz.dmn.cpska.di.BaseActivityModule
import cz.dmn.cpska.ui.clubs.ClubsModule
import cz.dmn.cpska.ui.flights.FlightsModule
import cz.dmn.cpska.ui.leaderboard.LeaderboardModule
import dagger.Binds
import dagger.Module
import dagger.Provid... | 0 | Kotlin | 0 | 0 | 17a0b9e855458b73ac014bb7aab9698f89b741d2 | 834 | cpska-android | MIT License |
apps/student/src/androidTest/java/com/instructure/student/ui/e2e/ConferencesE2ETest.kt | instructure | 179,290,947 | false | {"Kotlin": 16429003, "Dart": 4454406, "HTML": 185120, "Ruby": 35686, "Java": 24416, "Shell": 19157, "Groovy": 11717, "JavaScript": 9505, "Objective-C": 7431, "Python": 2438, "CSS": 1356, "Swift": 807, "Dockerfile": 112} | package com.instructure.student.ui.e2e
import android.util.Log
import com.instructure.canvas.espresso.E2E
import com.instructure.canvas.espresso.FeatureCategory
import com.instructure.canvas.espresso.Priority
import com.instructure.canvas.espresso.TestCategory
import com.instructure.canvas.espresso.TestMetaData
import... | 5 | Kotlin | 102 | 127 | 465503ddd469b8e2183ab2c502e1cd897f5736c9 | 4,890 | canvas-android | Apache License 2.0 |
src/test/kotlin/io/exchangerate/app/service/ExchangeRateServiceImplTest.kt | simao-ferreira | 606,527,253 | false | {"Kotlin": 75632, "Makefile": 824} | package io.exchangerate.app.service
import com.ninjasquad.springmockk.MockkBean
import io.exchangerate.app.controller.v1.model.DatedExchangeRateResponse
import io.exchangerate.app.controller.v1.model.ExchangeRateResponse
import io.exchangerate.app.exceptions.CorruptedResponseException
import io.exchangerate.app.except... | 1 | Kotlin | 0 | 0 | 592e941814c0be6598d835bbf74d27eaf24c481b | 7,263 | exchange-rate-api | MIT License |
sdkexample/src/main/java/obelab/com/sdkexample/model/Song.kt | WanyeLin | 196,349,191 | false | null | package obelab.com.sdkexample.model
import android.os.Parcel
import android.os.Parcelable
/**
* Created by anriku on 2018/10/31.
*/
class Song() : Parcelable {
// 自定义属性表示本音乐是在线音乐还是本地音乐
var musicType: Int = LOCAL
var id: Long = 0
var data: String? = null
var size: Long = 0
var displayNam... | 1 | Kotlin | 1 | 0 | eef728ca6d5c7617fd30b744c078012200cb8a05 | 2,746 | NirsitSDK_2 | Apache License 2.0 |
analysis/analysis-api/testData/components/expressionInfoProvider/isUsedAsExpression/elvisWithBreak.kt | JetBrains | 3,432,266 | false | null | fun test() {
while(true) {
val x = 45 ?: <expr>break</expr>
return
}
}
// IGNORE_FE10
// FIR considers all expressions of type `Nothing` as unused. | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 172 | kotlin | Apache License 2.0 |
app/src/main/java/com/mindorks/example/coroutines/data/local/DatabaseHelper.kt | MindorksOpenSource | 257,329,243 | false | null | package com.mindorks.example.coroutines.data.local
import com.mindorks.example.coroutines.data.local.entity.User
interface DatabaseHelper {
suspend fun getUsers(): List<User>
suspend fun insertAll(users: List<User>)
} | 7 | Kotlin | 263 | 990 | 6f30d9b08ea6b836237e0661b083a896791c8b86 | 230 | Kotlin-Coroutines-Android-Examples | Apache License 2.0 |
app/src/main/java/io/spacecowboyapps/pugs/di/module/ActivityModule.kt | BaranMichal25 | 132,350,762 | false | null | package io.spacecowboyapps.pugs.di.module
import android.content.Context
import android.support.v7.app.AppCompatActivity
import dagger.Module
import dagger.Provides
import io.spacecowboyapps.pugs.di.ActivityContext
@Module
class ActivityModule(private val activity: AppCompatActivity) {
@Provides
@ActivityCon... | 0 | Kotlin | 0 | 1 | 0ece1c7088d06755e03e16db0c436ba8ae9a89da | 442 | PagingPugs | The Unlicense |
app/src/main/java/com/ealva/toque/db/AlbumDao.kt | pandasys | 311,981,753 | 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... | 0 | Kotlin | 0 | 0 | f64ca9023f2384d322d924ceeb0cf3c8c5a1809d | 24,750 | toque | Apache License 2.0 |
app/src/main/java/com/implementing/cozyspace/inappscreens/task/screens/AddTaskBottomSheetContent.kt | Brindha-m | 673,871,291 | false | {"Kotlin": 622958, "Java": 1436} | package com.implementing.cozyspace.inappscreens.task.screens
import android.app.DatePickerDialog
import android.app.TimePickerDialog
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.*
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCorn... | 0 | Kotlin | 0 | 0 | 364eec6bdcf7c41b21133af7826e68694184dc6c | 14,768 | DoodSpace-Todos.Notes.Doodles | Apache License 2.0 |
2021/kotlin/src/main/kotlin/com/pietromaggi/aoc2021/day16/Day16.kt | pfmaggi | 438,378,048 | 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... | 0 | Kotlin | 0 | 0 | 9a5855b3edb6f3a279a9d73320ccab1e78a3ce30 | 3,849 | AdventOfCode | Apache License 2.0 |
domain/src/main/kotlin/cz/eman/kaalsample/domain/feature/movies/common/MoviesCache.kt | eManPrague | 189,150,450 | false | null | package cz.eman.kaalsample.domain.feature.movies.common
import cz.eman.kaalsample.domain.feature.movies.common.model.Movie
import cz.eman.kaal.domain.result.Result
/**
* @author vsouhrada (vaclav.souhrada@eman.cz)
*/
interface MoviesCache {
suspend fun save(movie: Movie)
suspend fun remove(movie: Movie)
... | 1 | null | 2 | 6 | f9c0f2c8f617a4810e5c050d6fb1b9f3e508988c | 570 | kaal-sample | MIT License |
src/main/kotlin/mtymes/tasks/common/collection/QueueExt.kt | MatejTymes | 167,620,588 | false | {"Kotlin": 263036, "Java": 10751} | package mtymes.tasks.common.collection
import java.util.*
object QueueExt {
fun <T> Queue<T>.consumeAll(action: (T) -> Unit): Unit {
var value: T
do {
value = this.poll()
if (value != null) {
action(value)
}
} while (value != null)
... | 0 | Kotlin | 0 | 0 | fe5a84440cd3daffff538290cb63c95af5586929 | 823 | SimpleQueue | Apache License 2.0 |
app/src/main/java/com/example/foodike/presentation/onboarding/util/OnBoardingItem.kt | gautam84 | 528,051,224 | false | {"Kotlin": 259631} | /**
*
* MIT License
*
* Copyright (c) 2023 <NAME>
*
* 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, modif... | 0 | Kotlin | 6 | 36 | 8ddc7d98544055ff79556a5fc4f1f724bd5c0456 | 1,990 | Foodike | MIT License |
Entregaveis/dossier/codigo fonte/Code/services/src/main/kotlin/pt/iselearning/services/service/AuthenticationService.kt | joaoesantos | 246,681,200 | false | {"JavaScript": 455525, "Kotlin": 404146, "TeX": 299099, "Java": 95781, "PLpgSQL": 57852, "C#": 51126, "Python": 18286, "HTML": 4930, "Dockerfile": 2658, "CSS": 1280, "Shell": 848} | package pt.iselearning.services.service
import org.mindrot.jbcrypt.BCrypt
import org.modelmapper.ModelMapper
import org.springframework.stereotype.Service
import pt.iselearning.services.domain.User
import pt.iselearning.services.exception.ServiceException
import pt.iselearning.services.exception.error.ErrorCode
import... | 1 | JavaScript | 1 | 2 | ad3a27cd6e24693f8f9a90de7ce298a4f300d97e | 4,113 | ise_learning | MIT License |
feature/users/domain/src/jvmTest/kotlin/org/timemates/app/users/usecases/GetUserUseCaseTest.kt | timemates | 575,537,317 | false | null | package io.timemates.app.users.usecases
import io.mockk.coEvery
import io.mockk.mockk
import io.timemates.app.users.repositories.UsersRepository
import io.timemates.sdk.common.constructor.createOrThrow
import io.timemates.sdk.common.exceptions.NotFoundException
import io.timemates.sdk.users.profile.types.User
import i... | 21 | null | 0 | 27 | af5f6048c2cef30ac56d80754de54849650d78d2 | 2,564 | app | MIT License |
src/jsFrontendCommonMain/kotlin/de/robolab/client/ui/views/boxes/DetailBoxPlanetStatisticsView.kt | pixix4 | 243,975,894 | false | null | package de.robolab.client.ui.views.boxes
import de.robolab.client.app.model.file.boxes.PlanetStatisticsDetailBox
import de.robolab.client.app.viewmodel.ViewModel
import de.robolab.client.ui.ViewFactory
import de.robolab.client.ui.ViewFactoryRegistry
import de.westermann.kwebview.View
import de.westermann.kwebview.View... | 4 | Kotlin | 0 | 2 | 1f20731971a9b02f971f01ab8ae8f4e506ff542b | 847 | robolab-renderer | MIT License |
mobile_app/smartkc_mobile_app_src/app/src/main/java/com/example/kt/data/interceptors/HostSelectionInterceptor.kt | microsoft | 423,710,474 | false | {"Python": 41, "Text": 17, "Shell": 2, "Ignore List": 5, "Markdown": 5, "C++": 1, "Gradle": 5, "Java Properties": 3, "Batchfile": 1, "Proguard": 2, "XML": 39, "Java": 99, "JSON": 15, "Kotlin": 30, "AIDL": 1, "YAML": 1} | package com.example.kt.data.interceptors
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.stringPreferencesKey
import com.example.kt.BuildConfig
import com.example.kt.utils.PreferenceKeys
import kotlinx.coroutines.flow.first
impo... | 13 | Java | 12 | 32 | 1bbd5b8aeef82cd2addf8361e30a411b5a60aa28 | 1,115 | SmartKC-A-Smartphone-based-Corneal-Topographer | MIT License |
caila-client-entities-api/src/main/kotlin/com/denire/jaicf/caila/entities/entitites/ClientEntitiesApi.kt | Denire | 348,846,229 | false | null | package com.denire.jaicf.caila.entities.entitites
import com.denire.jaicf.caila.entities.entitites.model.NamedEntityRecordData
import com.denire.jaicf.caila.entities.entitites.model.NamedEntityRecordType
import com.denire.jaicf.caila.entities.entitites.model.NamedEntityWithRecordsData
import kotlinx.coroutines.Corouti... | 0 | Kotlin | 0 | 1 | 5248d368fb4c894844c8ef98ee39c497a6e6fe6e | 1,766 | incubator-jaicf-caila-client-entities | Apache License 2.0 |
KotlinBasics/src/main/kotlin/basics/Job.kt | abondar24 | 324,012,036 | false | null | package basics
sealed class Job {
class ComplexJob {
fun doJob(){
println("JOB")
}
}
}
| 0 | Kotlin | 0 | 0 | 926df29bf040bfa54b34f152cfcf4eaeb19332bd | 124 | SomeKotlin | MIT License |
samples/boot/kotlin/src/test/kotlin/org/springframework/security/samples/KotlinApplicationTests.kt | mustafamuratcoskun | 330,475,892 | false | null | /*
* Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 1 | null | 2 | 8 | f36e2fca5993dfcf1191babfb44c895be79c6036 | 3,102 | spring-security | Apache License 2.0 |
app/src/main/kotlin/com/goodwy/keyboard/ime/popup/PopupSet.kt | Goodwy | 811,363,624 | 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 wr... | 505 | null | 403 | 7 | 472b7eb1a9efcf6e12e55474698f7cc3254c1341 | 11,890 | Keyboard | Apache License 2.0 |
app/src/main/java/com/example/neoticket/MainActivity.kt | rybakova-auca-2021 | 747,738,666 | false | {"Kotlin": 442862} | package com.example.neoticket
import android.content.ContentValues
import android.os.Bundle
import android.util.Log
import android.view.View
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.setupWithNav... | 0 | Kotlin | 0 | 0 | 7b7a198cc176704e613ee794176463935480b3aa | 3,867 | NeoTicket | MIT License |
src/main/kotlin/no/nav/syfo/client/tilgangskontroll/TilgangDTO.kt | navikt | 270,656,175 | false | null | package no.nav.syfo.client.tilgangskontroll
data class TilgangDTO(
val harTilgang: Boolean,
val begrunnelse: String? = null,
)
| 2 | Kotlin | 0 | 0 | a937d2b69295aa6c6a8cbad0346d47336fed95dc | 136 | ispengestopp | MIT License |
feature-account-impl/src/main/java/com/dfinn/wallet/feature_account_impl/di/AccountFeatureComponent.kt | finn-exchange | 500,972,990 | false | null | package com.dfinn.wallet.feature_account_impl.di
import dagger.BindsInstance
import dagger.Component
import com.dfinn.wallet.common.di.CommonApi
import com.dfinn.wallet.common.di.scope.FeatureScope
import com.dfinn.wallet.core_db.di.DbApi
import com.dfinn.wallet.feature_account_api.di.AccountFeatureApi
import com.dfin... | 0 | Kotlin | 0 | 0 | 6cc7a0a4abb773daf3da781b7bd1dda5dbf9b01d | 4,269 | dfinn-android-wallet | Apache License 2.0 |
foundation/src/commonMain/kotlin/net/ntworld/foundation/cqrs/InfrastructureCommandHandlerContext.kt | nhat-phan | 201,625,092 | false | null | package net.ntworld.foundation.cqrs
import net.ntworld.foundation.*
import kotlin.reflect.KClass
open class InfrastructureCommandHandlerContext(open val self: Infrastructure) {
@InfrastructureDsl.CommandHandlerDsl
fun environment(): Environment = self.environment()
@InfrastructureDsl.CommandHandlerDsl
... | 0 | Kotlin | 3 | 3 | 2fd4b0f0a4966e3aa687f7108d3b0a1cb800c6be | 1,346 | foundation | MIT License |
src/main/kotlin/no/nav/familie/ba/sak/kjerne/autovedtak/fødselshendelse/filtreringsregler/Filtreringsregel.kt | navikt | 224,639,942 | false | null | package no.nav.familie.ba.sak.kjerne.autovedtak.fødselshendelse.filtreringsregler
import no.nav.familie.ba.sak.kjerne.autovedtak.fødselshendelse.Evaluering
import no.nav.familie.ba.sak.kjerne.autovedtak.fødselshendelse.Resultat
import no.nav.familie.ba.sak.kjerne.autovedtak.fødselshendelse.filtreringsregler.utfall.Fil... | 8 | Kotlin | 0 | 7 | d4a7ef6bc7ba6f0dfdbea1e0d7c7413a97891d55 | 4,703 | familie-ba-sak | MIT License |
simplecanvaslib/src/main/java/com/phaulson/simplecanvaslib/customView/CanvasView.kt | phaulson | 194,511,237 | false | null | package com.phaulson.simplecanvaslib.customView
import android.content.Context
import android.graphics.*
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.View
import com.phaulson.simplecanvaslib.CanvasTouchListener
import com.phaulson.simplecanvaslib.data.DrawItem
import com.phaulso... | 0 | Kotlin | 0 | 2 | 63947f6cf2be5227a98fb125583bea2c2aaf6dbb | 8,640 | SimpleCanvas | MIT License |
platform/backend/api/src/main/kotlin/io/hamal/api/http/controller/extension/ExtensionCreateController.kt | hamal-io | 622,870,037 | false | {"Kotlin": 2271632, "C": 1398396, "TypeScript": 281644, "Lua": 117891, "C++": 40651, "Makefile": 11728, "Java": 7564, "CMake": 2810, "JavaScript": 2640, "CSS": 1567, "Shell": 977, "HTML": 903} | package io.hamal.api.http.controller.extension
import io.hamal.api.http.controller.accepted
import io.hamal.core.adapter.ExtensionExtensionPort
import io.hamal.core.component.Retry
import io.hamal.lib.domain.request.ExtensionCreateRequested
import io.hamal.lib.domain.vo.GroupId
import io.hamal.lib.sdk.api.ApiExtension... | 20 | Kotlin | 0 | 0 | 2f4cb1768aaf245950c4dd6547c4321da5a7f0cc | 1,119 | hamal | Creative Commons Zero v1.0 Universal |
platform/backend/api/src/main/kotlin/io/hamal/api/http/controller/extension/ExtensionCreateController.kt | hamal-io | 622,870,037 | false | {"Kotlin": 2271632, "C": 1398396, "TypeScript": 281644, "Lua": 117891, "C++": 40651, "Makefile": 11728, "Java": 7564, "CMake": 2810, "JavaScript": 2640, "CSS": 1567, "Shell": 977, "HTML": 903} | package io.hamal.api.http.controller.extension
import io.hamal.api.http.controller.accepted
import io.hamal.core.adapter.ExtensionExtensionPort
import io.hamal.core.component.Retry
import io.hamal.lib.domain.request.ExtensionCreateRequested
import io.hamal.lib.domain.vo.GroupId
import io.hamal.lib.sdk.api.ApiExtension... | 20 | Kotlin | 0 | 0 | 2f4cb1768aaf245950c4dd6547c4321da5a7f0cc | 1,119 | hamal | Creative Commons Zero v1.0 Universal |
src/main/kotlin/sample/util/Validator.kt | jkazama | 145,971,105 | false | null | package sample.util
import sample.ValidationException
import sample.Warns
import java.util.function.Consumer
/**
* 審査例外の構築概念を表現します。
*/
class Validator(val warns: Warns = Warns.init()) {
/** 審査を行います。validがfalseの時に例外を内部にスタックします。 */
fun check(valid: Boolean, message: String): Validator {
if (!valid) ... | 1 | Kotlin | 1 | 7 | 8d03ce29d4988325c0e369c54b9b784071c3da29 | 1,548 | sample-boot-kotlin | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.